iobroker.javascript 9.3.1 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/admin/assets/AiChatPanel-p0KAg6Cs.js +237 -0
- package/admin/assets/AiDatapointProvider-DzFpUKkT.js +2 -0
- package/admin/assets/AiDiffView-BPTLnNx1.js +1 -0
- package/admin/assets/AiInlineProvider-CaHd2G2Q.js +5 -0
- package/admin/assets/AiScriptAnalyzer--BHML2rN.js +9 -0
- package/admin/assets/BlocklyEditor-CAjVMhYT.js +81 -0
- package/admin/assets/ContextWrapper-BVc8wTK_.css +1 -0
- package/admin/assets/ContextWrapper-D9CrnNKs.js +127 -0
- package/admin/assets/Debugger-SjROokFI.js +15 -0
- package/admin/assets/Error-DDfrxAt2.js +1 -0
- package/admin/assets/Import-DpTg1Jow.js +1 -0
- package/admin/assets/RulesEditor-BSRFWpEm.css +1 -0
- package/admin/assets/RulesEditor-D0hgrcBc.js +1 -0
- package/admin/assets/ScriptEditor-BGIuoNei.js +2 -0
- package/admin/assets/ScriptEditorVanillaMonaco-DyMQtoTQ.js +3 -0
- package/admin/assets/_virtual_mf-localSharedImportMap___mfe_internal__iobroker_javascript__mf_owner__1-DWJotR1B.js +1 -0
- package/admin/assets/_virtual_mf___mfe_internal__iobroker_javascript__mf_owner__1__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-CxICLr5Z.js +1243 -0
- package/admin/assets/_virtual_mf___mfe_internal__iobroker_javascript__mf_owner__1__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-BBAXJaqI.js +9 -0
- package/admin/assets/aiCodeLensProvider-hyAmut0e.js +4 -0
- package/admin/assets/aiPromptBuilder-Bs27qOHT.js +7 -0
- package/admin/assets/applyCodeEdit-D3nb7erO.js +1 -0
- package/admin/assets/blocklyDarkTheme-DEiAX5DT.js +1 -0
- package/admin/assets/cronHoverProvider-pKJkSevo.js +2 -0
- package/admin/assets/dist-uw5orDgd.js +4 -0
- package/admin/assets/{docs-compact-CKNGiYh2.js → docs-compact-D7rpMc7r.js} +2 -2
- package/admin/assets/hostInit-BFg5u9hY.js +1 -0
- package/admin/assets/index-B1gICjdq.js +192 -0
- package/admin/assets/index-BHhhebRG.css +1 -0
- package/admin/assets/inlineChatWidget-ZaisTOLh.js +2 -0
- package/admin/assets/inlineDiffController-hTwHHqcc.js +16 -0
- package/admin/assets/mf-entry-bootstrap-0-d6052b31.js +36 -0
- package/admin/assets/mjs-DWqivHEk.js +90 -0
- package/admin/assets/rolldown-runtime-C0FnF6B9.js +1 -0
- package/admin/assets/stateHoverProvider-C7DawIs-.js +9 -0
- package/admin/assets/virtualExposes-Ed0lGq7k.js +1 -0
- package/admin/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__iobroker_javascript__remoteEntry_js-BYs71IQF.js +1 -0
- package/admin/assets/virtual_mf-exposes___mfe_internal__iobroker_javascript__remoteEntry_js-DnnXQRkG.js +1 -0
- package/admin/assets/vite-preload-helper-B7qeedMF.js +1 -0
- package/admin/custom/assets/Components-BrDyDHXh.js +1 -0
- package/admin/custom/assets/Components-DftM8alF.css +1 -0
- package/admin/custom/assets/_virtual_mf-localSharedImportMap___mfe_internal__ConfigCustomJavascriptSet__mf_owner__1-CyYJM2-v.js +1 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__1__loadShare___mf_0_emotion_mf_1_react__loadShare__.js-BdzCssLn.js +1 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__1__loadShare___mf_0_emotion_mf_1_styled__loadShare__.js-CGb5Cofy.js +1 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__1__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-BVCIAgbo.js +1243 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__1__loadShare___mf_0_iobroker_mf_1_json_mf_2_config__loadShare__.js-BkB0anQX.js +1494 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__1__loadShare__leaflet__loadShare__.js-h-rCw3iz.js +1 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__1__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-BotqDuw-.js +9 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__1__prebuild__date_mf_2_fns__prebuild__-Cb5TR7FB.js +1 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__1__prebuild__leaflet__prebuild__-DARUoA03.js +1 -0
- package/admin/custom/assets/hostInit-DJx2uXXy.js +1 -0
- package/admin/custom/assets/index-uEKAoVT7.js +1 -0
- package/admin/custom/assets/lib-Yj8cfN0A.js +3 -0
- package/admin/custom/assets/mf-entry-bootstrap-0-77793feb.js +36 -0
- package/admin/custom/assets/rolldown-runtime-BcKkbAw3.js +1 -0
- package/admin/custom/assets/setYear-DJ9FbdkO.js +1 -0
- package/admin/custom/assets/virtualExposes-CxDjLoYu.js +1 -0
- package/admin/custom/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__ConfigCustomJavascriptSet__customComponents_js-BU-ugy_7.js +1 -0
- package/admin/custom/assets/virtual_mf-exposes-ssr___mfe_internal__ConfigCustomJavascriptSet__customComponents_js-BEfZbrf7.js +2 -0
- package/admin/custom/assets/virtual_mf-exposes___mfe_internal__ConfigCustomJavascriptSet__customComponents_js-CTeZ0Jpm.js +2 -0
- package/admin/custom/assets/vite-preload-helper-B7qeedMF.js +1 -0
- package/admin/custom/customComponents.js +1 -1
- package/admin/jsonConfig.json +1 -1
- package/admin/mf-manifest.json +1 -1
- package/admin/mf-stats.json +1 -0
- package/admin/remoteEntry.js +1 -1
- package/admin/tab.html +12 -17
- package/build/lib/debugger.js +1 -1
- package/build/lib/debugger.js.map +1 -1
- package/build/lib/eventObj.js.map +1 -1
- package/build/lib/inspect.js.map +1 -1
- package/build/lib/javascript.d.ts +18 -19
- package/build/lib/nodeModulesManagement.js +3 -1
- package/build/lib/nodeModulesManagement.js.map +1 -1
- package/build/lib/protectFs.js.map +1 -1
- package/build/lib/sandbox.js +84 -31
- package/build/lib/sandbox.js.map +1 -1
- package/build/lib/scheduler.js.map +1 -1
- package/build/lib/tools.js +1 -1
- package/build/lib/tools.js.map +1 -1
- package/build/lib/typescriptSettings.js +16 -10
- package/build/lib/typescriptSettings.js.map +1 -1
- package/build/lib/typescriptTools.js +2 -2
- package/build/lib/typescriptTools.js.map +1 -1
- package/build/main.js +7 -4
- package/build/main.js.map +1 -1
- package/build/src/lib/aiProviderResolver.js +107 -0
- package/build/src/lib/aiProviderResolver.js.map +1 -0
- package/build/src/lib/anthropicAdapter.js +175 -0
- package/build/src/lib/anthropicAdapter.js.map +1 -0
- package/build/src/lib/consts.js +346 -0
- package/build/src/lib/consts.js.map +1 -0
- package/build/src/lib/convert.js +121 -0
- package/build/src/lib/convert.js.map +1 -0
- package/build/src/lib/crypto.js +32 -0
- package/build/src/lib/crypto.js.map +1 -0
- package/build/src/lib/debug.js +163 -0
- package/build/src/lib/debug.js.map +1 -0
- package/build/src/lib/debugger.js +1135 -0
- package/build/src/lib/debugger.js.map +1 -0
- package/build/src/lib/eventObj.js +194 -0
- package/build/src/lib/eventObj.js.map +1 -0
- package/build/src/lib/inspect.js +728 -0
- package/build/src/lib/inspect.js.map +1 -0
- package/build/src/lib/mirror.js +634 -0
- package/build/src/lib/mirror.js.map +1 -0
- package/build/src/lib/nodeModulesManagement.js +26 -0
- package/build/src/lib/nodeModulesManagement.js.map +1 -0
- package/build/src/lib/patternCompareFunctions.js +293 -0
- package/build/src/lib/patternCompareFunctions.js.map +1 -0
- package/build/src/lib/protectFs.js +554 -0
- package/build/src/lib/protectFs.js.map +1 -0
- package/build/src/lib/sandbox.js +4897 -0
- package/build/src/lib/sandbox.js.map +1 -0
- package/build/src/lib/scheduler.js +555 -0
- package/build/src/lib/scheduler.js.map +1 -0
- package/build/src/lib/tools.js +188 -0
- package/build/src/lib/tools.js.map +1 -0
- package/build/src/lib/typescriptSettings.js +39 -0
- package/build/src/lib/typescriptSettings.js.map +1 -0
- package/build/src/lib/typescriptTools.js +435 -0
- package/build/src/lib/typescriptTools.js.map +1 -0
- package/build/src/lib/utils.js +66 -0
- package/build/src/lib/utils.js.map +1 -0
- package/build/src/lib/words.js +76 -0
- package/build/src/lib/words.js.map +1 -0
- package/build/src/main.js +3414 -0
- package/build/src/main.js.map +1 -0
- package/build/types.d.ts +2 -10
- package/io-package.json +15 -15
- package/package.json +15 -16
- package/admin/assets/AiChatPanel-C3bIw_D5.js +0 -317
- package/admin/assets/AiDatapointProvider-B0i3I5Fm.js +0 -2
- package/admin/assets/AiDiffView-RPozjjHf.js +0 -1
- package/admin/assets/AiInlineProvider-DkgjVSFQ.js +0 -7
- package/admin/assets/Save-CkuNSiWL.js +0 -1
- package/admin/assets/ScriptEditor-8UU88tT5.js +0 -2
- package/admin/assets/ScriptEditorVanillaMonaco-Bn8xJ3LV.js +0 -3
- package/admin/assets/applyCodeEdit-BdRnbz2g.js +0 -1
- package/admin/assets/createSvgIcon-DYs_tNrE.js +0 -8
- package/admin/assets/cronHoverProvider-Bg0Vz-1E.js +0 -2
- package/admin/assets/hostInit-LzITLWDa.js +0 -1
- package/admin/assets/index-45IwpC7_.js +0 -1
- package/admin/assets/index-BCK6q-N6.css +0 -1
- package/admin/assets/index-BTsjunTt.css +0 -1
- package/admin/assets/index-BkyLyaYT.js +0 -8
- package/admin/assets/index-C0ZnUCQf.js +0 -990
- package/admin/assets/index-CO9RA-Wq.js +0 -1267
- package/admin/assets/index-CRGWWpGb.js +0 -1
- package/admin/assets/index-CVZSzCXy.js +0 -1
- package/admin/assets/index-CsyuIWlD.js +0 -16
- package/admin/assets/index-Dsh1HfIY.js +0 -1
- package/admin/assets/index-dN73sbyQ.js +0 -193
- package/admin/assets/index-wHNMOf-c.js +0 -5
- package/admin/assets/inheritsLoose-CIXm_zPk.js +0 -29
- package/admin/assets/inlineChatWidget-Cu6rb4Ar.js +0 -2
- package/admin/assets/inlineDiffController-DBLpPOe2.js +0 -16
- package/admin/assets/iobroker_javascript__loadShare___mf_0_iobroker_mf_1_adapter_mf_2_react_mf_2_v5__loadShare__.mjs-DkBjPSMw.js +0 -1
- package/admin/assets/iobroker_javascript__loadShare___mf_0_mui_mf_1_material__loadShare__.mjs-CV1_X-Lf.js +0 -1
- package/admin/assets/iobroker_javascript__loadShare__prop_mf_2_types__loadShare__.mjs-BCtSFofY.js +0 -1
- package/admin/assets/iobroker_javascript__loadShare__react__loadShare__.mjs-CTZOFJS2.js +0 -1
- package/admin/assets/iobroker_javascript__loadShare__react__loadShare__.mjs_commonjs-proxy-CE9lvhW8.js +0 -1
- package/admin/assets/iobroker_javascript__loadShare__react_mf_2_dom__loadShare__.mjs-DeVAS-oa.js +0 -1
- package/admin/assets/iobroker_javascript__loadShare__react_mf_2_dom__loadShare__.mjs_commonjs-proxy-RQRRZMX5.js +0 -1
- package/admin/assets/localSharedImportMap-Db5DxDmY.js +0 -1
- package/admin/assets/preload-helper-BDBacUwf.js +0 -1
- package/admin/assets/stateHoverProvider-C82xsI7Q.js +0 -9
- package/admin/assets/useTheme-DuTJsNQ-.js +0 -1
- package/admin/assets/virtualExposes-BPsCufin.js +0 -1
- package/admin/assets/virtual_mf-REMOTE_ENTRY_ID_iobroker_javascript__remoteEntry_js-Bw22wl4W.js +0 -8
- package/admin/custom/assets/Components-BOms95_F.css +0 -1
- package/admin/custom/assets/Components-CGiJE5Zh.js +0 -1
- package/admin/custom/assets/ConfigCustomJavascriptSet__loadShare___mf_0_emotion_mf_1_react__loadShare__.mjs-sg07E3QA.js +0 -1
- package/admin/custom/assets/ConfigCustomJavascriptSet__loadShare___mf_0_emotion_mf_1_styled__loadShare__.mjs-CwjI4A-J.js +0 -1
- package/admin/custom/assets/ConfigCustomJavascriptSet__loadShare___mf_0_iobroker_mf_1_adapter_mf_2_react_mf_2_v5__loadShare__.mjs-B7D2xOvV.js +0 -1
- package/admin/custom/assets/ConfigCustomJavascriptSet__loadShare___mf_0_iobroker_mf_1_json_mf_2_config__loadShare__.mjs-ClsgYnEX.js +0 -1
- package/admin/custom/assets/ConfigCustomJavascriptSet__loadShare___mf_0_mui_mf_1_icons_mf_2_material__loadShare__.mjs-B551AMx-.js +0 -1
- package/admin/custom/assets/ConfigCustomJavascriptSet__loadShare___mf_0_mui_mf_1_material__loadShare__.mjs-KsT5vKjV.js +0 -1
- package/admin/custom/assets/ConfigCustomJavascriptSet__loadShare___mf_0_mui_mf_1_x_mf_2_date_mf_2_pickers__loadShare__.mjs-DgHZUNxn.js +0 -1
- package/admin/custom/assets/ConfigCustomJavascriptSet__loadShare__leaflet__loadShare__.mjs-BYONkEgA.js +0 -1
- package/admin/custom/assets/ConfigCustomJavascriptSet__loadShare__react__loadShare__.mjs-BW9Qbxx5.js +0 -1
- package/admin/custom/assets/ConfigCustomJavascriptSet__loadShare__react__loadShare__.mjs_commonjs-proxy-2W2BYT2K.js +0 -1
- package/admin/custom/assets/ConfigCustomJavascriptSet__loadShare__react_mf_2_dom__loadShare__.mjs-CL--xmjC.js +0 -1
- package/admin/custom/assets/ConfigCustomJavascriptSet__loadShare__react_mf_2_dom__loadShare__.mjs_commonjs-proxy-D8zcZsJo.js +0 -1
- package/admin/custom/assets/DefaultPropsProvider-CfKHPa-G.js +0 -1
- package/admin/custom/assets/TextField-CxPfV5Sr.js +0 -139
- package/admin/custom/assets/ThemeProvider-DSTCckLJ.js +0 -29
- package/admin/custom/assets/blue-CagzI6CQ.js +0 -1
- package/admin/custom/assets/createSvgIcon-b2B2NI3g.js +0 -1
- package/admin/custom/assets/createTheme-MsdB8zt7.js +0 -8
- package/admin/custom/assets/defaultTheme-CmVP-QNF.js +0 -1
- package/admin/custom/assets/emotion-cache.browser.esm-BgJfNZJN.js +0 -1
- package/admin/custom/assets/emotion-react.browser.esm-chZAeh_-.js +0 -1
- package/admin/custom/assets/emotion-serialize.esm-BUa21YfQ.js +0 -1
- package/admin/custom/assets/emotion-styled.browser.esm-Yi13plpH.js +0 -1
- package/admin/custom/assets/emotion-use-insertion-effect-with-fallbacks.browser.esm-CEPeBbh9.js +0 -1
- package/admin/custom/assets/extends-CF3RwP-h.js +0 -1
- package/admin/custom/assets/hostInit-iUL-wyj1.js +0 -1
- package/admin/custom/assets/index-17vbGv00.js +0 -1
- package/admin/custom/assets/index-B5DqCD_a.js +0 -1
- package/admin/custom/assets/index-Bvwv5H7k.js +0 -1
- package/admin/custom/assets/index-CMsuyEZj.js +0 -964
- package/admin/custom/assets/index-CuAhFQ4L.js +0 -1523
- package/admin/custom/assets/index-CzRngQHl.js +0 -31
- package/admin/custom/assets/index-DLNtxshy.js +0 -1
- package/admin/custom/assets/index-DV76KW3-.js +0 -7
- package/admin/custom/assets/index-D_5kZmfw.js +0 -1
- package/admin/custom/assets/index-DlQbqHom.js +0 -8
- package/admin/custom/assets/index-DpJ18x6R.js +0 -1
- package/admin/custom/assets/index-FTmk0JJx.js +0 -55
- package/admin/custom/assets/index-mkhHeJ3Q.js +0 -1
- package/admin/custom/assets/isSameWeek-DDsSIa_t.js +0 -1
- package/admin/custom/assets/jsx-runtime-BplTyRFk.js +0 -1
- package/admin/custom/assets/leaflet-src-B472P7Y1.js +0 -1
- package/admin/custom/assets/localSharedImportMap-BsMINYMr.js +0 -1
- package/admin/custom/assets/preload-helper-BDBacUwf.js +0 -1
- package/admin/custom/assets/useTheme-BV4xOYIL.js +0 -1
- package/admin/custom/assets/useTheme-ldICnlmf.js +0 -1
- package/admin/custom/assets/virtualExposes-D402kVGY.js +0 -2
- package/admin/custom/assets/virtual_mf-REMOTE_ENTRY_ID_ConfigCustomJavascriptSet__customComponents_js-BzLNCazi.js +0 -8
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BlocklyEditor-CAjVMhYT.js","./Import-DpTg1Jow.js","./Error-DDfrxAt2.js","./blocklyDarkTheme-DEiAX5DT.js","./RulesEditor-D0hgrcBc.js","./ContextWrapper-D9CrnNKs.js","./ContextWrapper-BVc8wTK_.css","./RulesEditor-BSRFWpEm.css","./Debugger-SjROokFI.js","./mjs-DWqivHEk.js","./ScriptEditorVanillaMonaco-DyMQtoTQ.js","./aiCodeLensProvider-hyAmut0e.js","./ScriptEditor-BGIuoNei.js","./AiChatPanel-p0KAg6Cs.js","./AiScriptAnalyzer--BHML2rN.js","./aiPromptBuilder-Bs27qOHT.js","./AiDiffView-BPTLnNx1.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e,o as t,r as n,t as r}from"./rolldown-runtime-C0FnF6B9.js";import"./virtual_mf-exposes___mfe_internal__iobroker_javascript__remoteEntry_js-DnnXQRkG.js";import{t as i}from"./vite-preload-helper-B7qeedMF.js";import"./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__iobroker_javascript__remoteEntry_js-BYs71IQF.js";import{$n as a,$t as o,A as s,At as c,B as l,Bn as u,Bt as d,D as f,Dt as p,E as m,Et as h,F as g,Fn as _,Ft as v,G as y,Gn as b,Gt as x,H as S,Hn as C,Ht as w,In as T,J as E,K as D,L as O,Ln as k,Lt as A,M as j,Mn as M,Mt as ee,N,Nn as P,Nt as F,O as I,On as L,Ot as R,P as z,Pn as te,Pt as ne,Q as re,R as ie,Rn as B,S as ae,Sn as oe,St as se,Tt as ce,U as le,Un as V,Ut as ue,V as de,Vn as fe,Vt as pe,W as me,Wt as he,X as ge,Xn as H,Xt as _e,Y as ve,Yt as ye,Z as be,Zt as xe,_n as Se,_r as Ce,ar as we,at as Te,bn as Ee,bt as De,c as Oe,cr as ke,d as Ae,dn as je,dr as Me,en as Ne,er as Pe,et as Fe,f as U,fn as Ie,fr as Le,g as Re,gn as ze,gr as Be,gt as Ve,h as He,hn as Ue,hr as We,ht as Ge,in as Ke,ir as qe,it as Je,jn as W,jt as Ye,k as Xe,kn as Ze,kt as Qe,ln as G,lr as $e,mn as et,mr as tt,mt as nt,n as rt,nr as it,nt as at,o as ot,or as st,ot as ct,p as lt,pn as ut,pt as dt,q as ft,qn as pt,r as mt,rt as ht,s as gt,sn as _t,t as vt,tn as yt,tr as bt,tt as xt,un as St,vn as Ct,vt as wt,wn as Tt,wt as Et,x as Dt,xn as Ot,xt as kt,y as At,yr as K,yt as jt,zt as q}from"./_virtual_mf___mfe_internal__iobroker_javascript__mf_owner__1__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-CxICLr5Z.js";import{t as Mt}from"./_virtual_mf___mfe_internal__iobroker_javascript__mf_owner__1__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-BBAXJaqI.js";import{n as Nt,t as Pt}from"./mjs-DWqivHEk.js";import{_ as Ft,a as It,c as Lt,d as Rt,g as zt,h as Bt,l as Vt,m as J,t as Ht,u as Ut}from"./ContextWrapper-D9CrnNKs.js";import{r as Wt}from"./Import-DpTg1Jow.js";import{t as Gt}from"./Error-DDfrxAt2.js";import{i as Kt}from"./AiScriptAnalyzer--BHML2rN.js";import{n as qt}from"./aiCodeLensProvider-hyAmut0e.js";import{t as Jt}from"./BlocklyEditor-CAjVMhYT.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})(),K();var Yt=M(C(`path`,{d:`M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z`}),`BugReport`),Xt=M(C(`path`,{d:`M3.27 5 2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.55 5.27zM6 5v.18L8.82 8h2.4l-.72 1.68 2.1 2.1L14.21 8H20V5z`}),`FormatClear`),Zt=M(C(`path`,{d:`M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2M11 16l4-4-4-4v3H1v2h10z`}),`Input`),Qt=M(C(`path`,{d:`M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z`}),`Lock`),$t=M(C(`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`),en=M(C(`path`,{d:`M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5`}),`Palette`),tn=M(C(`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`),nn=M(C(`path`,{d:`M16 17.01V10h-2v7.01h-3L15 21l4-3.99zM9 3 5 6.99h3V14h2V6.99h3z`}),`SwapVert`),rn=M(C(`path`,{d:`M7.41 18.59 8.83 20 12 16.83 15.17 20l1.41-1.41L12 14zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10z`}),`UnfoldLess`),an=M(C(`path`,{d:`M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z`}),`UnfoldMore`);function on(e){"@babel/helpers - typeof";return on=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},on(e)}function sn(e,t){if(on(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(on(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function cn(e){var t=sn(e,`string`);return on(t)==`symbol`?t:t+``}function ln(e,t,n){return(t=cn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function un(e){return`Minified Redux error #`+e+`; visit https://redux.js.org/Errors?code=`+e+` for the full message or use the non-minified dev environment for full errors. `}var dn=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})(),fn=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},pn={INIT:`@@redux/INIT`+fn(),REPLACE:`@@redux/REPLACE`+fn(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+fn()}};function mn(e){if(typeof e!=`object`||!e)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function hn(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(un(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(un(1));return n(hn)(e,t)}if(typeof e!=`function`)throw Error(un(2));var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw Error(un(3));return a}function d(e){if(typeof e!=`function`)throw Error(un(4));if(c)throw Error(un(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw Error(un(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),o=null}}}function f(e){if(!mn(e))throw Error(un(7));if(e.type===void 0)throw Error(un(8));if(c)throw Error(un(9));try{c=!0,a=i(a,e)}finally{c=!1}for(var t=o=s,n=0;n<t.length;n++){var r=t[n];r()}return e}function p(e){if(typeof e!=`function`)throw Error(un(10));i=e,f({type:pn.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw Error(un(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[dn]=function(){return this},e}return f({type:pn.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[dn]=m,r}function gn(e,t,n){return t.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:n||null,e)}function _n(e,t){return e.filter(e=>e!==t)}function vn(e){return typeof e==`object`}function yn(e,t){let n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);let i=[];return n.forEach((e,t)=>{e===1&&i.push(t)}),i}function bn(e,t){return e.filter(e=>t.indexOf(e)>-1)}var xn=`dnd-core/INIT_COORDS`,Sn=`dnd-core/BEGIN_DRAG`,Cn=`dnd-core/PUBLISH_DRAG_SOURCE`,wn=`dnd-core/HOVER`,Tn=`dnd-core/DROP`,En=`dnd-core/END_DRAG`;function Dn(e,t){return{type:xn,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var On={type:xn,payload:{clientOffset:null,sourceClientOffset:null}};function kn(e){return function(t=[],n={publishSource:!0}){let{publishSource:r=!0,clientOffset:i,getSourceClientOffset:a}=n,o=e.getMonitor(),s=e.getRegistry();e.dispatch(Dn(i)),An(t,o,s);let c=Nn(t,o);if(c==null){e.dispatch(On);return}let l=null;if(i){if(!a)throw Error(`getSourceClientOffset must be defined`);jn(a),l=a(c)}e.dispatch(Dn(i,l));let u=s.getSource(c).beginDrag(o,c);return u==null?void 0:(Mn(u),s.pinSource(c),{type:Sn,payload:{itemType:s.getSourceType(c),item:u,sourceId:c,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!r}})}}function An(e,t,n){J(!t.isDragging(),`Cannot call beginDrag while dragging.`),e.forEach(function(e){J(n.getSource(e),`Expected sourceIds to be registered.`)})}function jn(e){J(typeof e==`function`,`When clientOffset is provided, getSourceClientOffset must be a function.`)}function Mn(e){J(vn(e),`Item must be an object.`)}function Nn(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function Pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Pn(e,t,n[t])})}return e}function In(e){return function(t={}){let n=e.getMonitor(),r=e.getRegistry();Ln(n),Bn(n).forEach((i,a)=>{let o={type:Tn,payload:{dropResult:Fn({},t,Rn(i,a,r,n))}};e.dispatch(o)})}}function Ln(e){J(e.isDragging(),`Cannot call drop while not dragging.`),J(!e.didDrop(),`Cannot call drop twice during one drag operation.`)}function Rn(e,t,n,r){let i=n.getTarget(e),a=i?i.drop(r,e):void 0;return zn(a),a===void 0&&(a=t===0?{}:r.getDropResult()),a}function zn(e){J(e===void 0||vn(e),`Drop result must either be an object or undefined.`)}function Bn(e){let t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Vn(e){return function(){let t=e.getMonitor(),n=e.getRegistry();Hn(t);let r=t.getSourceId();return r!=null&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:En}}}function Hn(e){J(e.isDragging(),`Cannot call endDrag while not dragging.`)}function Un(e,t){return t===null?e===null:Array.isArray(e)?e.some(e=>e===t):e===t}function Wn(e){return function(t,{clientOffset:n}={}){Gn(t);let r=t.slice(0),i=e.getMonitor(),a=e.getRegistry();return qn(r,a,i.getItemType()),Kn(r,i,a),Jn(r,i,a),{type:wn,payload:{targetIds:r,clientOffset:n||null}}}}function Gn(e){J(Array.isArray(e),`Expected targetIds to be an array.`)}function Kn(e,t,n){J(t.isDragging(),`Cannot call hover while not dragging.`),J(!t.didDrop(),`Cannot call hover after drop.`);for(let t=0;t<e.length;t++){let r=e[t];J(e.lastIndexOf(r)===t,`Expected targetIds to be unique in the passed array.`);let i=n.getTarget(r);J(i,`Expected targetIds to be registered.`)}}function qn(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r];Un(t.getTargetType(i),n)||e.splice(r,1)}}function Jn(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}function Yn(e){return function(){if(e.getMonitor().isDragging())return{type:Cn}}}function Xn(e){return{beginDrag:kn(e),publishDragSource:Yn(e),hover:Wn(e),drop:In(e),endDrag:Vn(e)}}var Zn=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){let e=this,{dispatch:t}=this.store;function n(n){return(...r)=>{let i=n.apply(e,r);i!==void 0&&t(i)}}let r=Xn(this);return Object.keys(r).reduce((e,t)=>{let i=r[t];return e[t]=n(i),e},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{let e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function Qn(e,t){return{x:e.x+t.x,y:e.y+t.y}}function $n(e,t){return{x:e.x-t.x,y:e.y-t.y}}function er(e){let{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:$n(Qn(t,r),n)}function tr(e){let{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:$n(t,n)}var nr=[],rr=[];nr.__IS_NONE__=!0,rr.__IS_ALL__=!0;function ir(e,t){return e===nr?!1:e===rr||t===void 0||bn(t,e).length>0}var ar=class{subscribeToStateChange(e,t={}){let{handlerIds:n}=t;J(typeof e==`function`,`listener must be a function.`),J(n===void 0||Array.isArray(n),`handlerIds, when specified, must be an array of strings.`);let r=this.store.getState().stateId;return this.store.subscribe(()=>{let t=this.store.getState(),i=t.stateId;try{i===r||i===r+1&&!ir(t.dirtyHandlerIds,n)||e()}finally{r=i}})}subscribeToOffsetChange(e){J(typeof e==`function`,`listener must be a function.`);let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{let n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;let t=this.registry.getSource(e);return J(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;let t=this.registry.getTarget(e);return J(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop()?!1:Un(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;let t=this.registry.getSource(e,!0);return J(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic()||this.registry.getSourceType(e)!==this.getItemType()?!1:t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;let{shallow:n}=t;if(!this.isDragging())return!1;let r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!Un(r,i))return!1;let a=this.getTargetIds();if(!a.length)return!1;let o=a.indexOf(e);return n?o===a.length-1:o>-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 er(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return tr(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},or=typeof global<`u`?global:self,sr=or.MutationObserver||or.WebKitMutationObserver;function cr(e){return function(){let t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}function lr(e){let t=1,n=new sr(e),r=document.createTextNode(``);return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}var ur=typeof sr==`function`?lr:cr,dr=class{enqueueTask(e){let{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{let{queue:e}=this;for(;this.index<e.length;){let t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=ur(this.flush),this.requestErrorThrow=cr(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},fr=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},pr=class{create(e){let t=this.freeTasks,n=t.length?t.pop():new fr(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}},mr=new dr,hr=new pr(mr.registerPendingError);function gr(e){mr.enqueueTask(hr.create(e))}var _r=`dnd-core/ADD_SOURCE`,vr=`dnd-core/ADD_TARGET`,yr=`dnd-core/REMOVE_SOURCE`,br=`dnd-core/REMOVE_TARGET`;function xr(e){return{type:_r,payload:{sourceId:e}}}function Sr(e){return{type:vr,payload:{targetId:e}}}function Cr(e){return{type:yr,payload:{sourceId:e}}}function wr(e){return{type:br,payload:{targetId:e}}}function Tr(e){J(typeof e.canDrag==`function`,`Expected canDrag to be a function.`),J(typeof e.beginDrag==`function`,`Expected beginDrag to be a function.`),J(typeof e.endDrag==`function`,`Expected endDrag to be a function.`)}function Er(e){J(typeof e.canDrop==`function`,`Expected canDrop to be a function.`),J(typeof e.hover==`function`,`Expected hover to be a function.`),J(typeof e.drop==`function`,`Expected beginDrag to be a function.`)}function Dr(e,t){if(t&&Array.isArray(e)){e.forEach(e=>Dr(e,!1));return}J(typeof e==`string`||typeof e==`symbol`,t?`Type can only be a string, a symbol, or an array of either.`:`Type can only be a string or a symbol.`)}var Or;(function(e){e.SOURCE=`SOURCE`,e.TARGET=`TARGET`})(Or||={});var kr=0;function Ar(){return kr++}function jr(e){let t=Ar().toString();switch(e){case Or.SOURCE:return`S${t}`;case Or.TARGET:return`T${t}`;default:throw Error(`Unknown Handler Role: ${e}`)}}function Mr(e){switch(e[0]){case`S`:return Or.SOURCE;case`T`:return Or.TARGET;default:throw Error(`Cannot parse handler ID: ${e}`)}}function Nr(e,t){let n=e.entries(),r=!1;do{let{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}var Pr=class{addSource(e,t){Dr(e),Tr(t);let n=this.addHandler(Or.SOURCE,e,t);return this.store.dispatch(xr(n)),n}addTarget(e,t){Dr(e,!0),Er(t);let n=this.addHandler(Or.TARGET,e,t);return this.store.dispatch(Sr(n)),n}containsHandler(e){return Nr(this.dragSources,e)||Nr(this.dropTargets,e)}getSource(e,t=!1){return J(this.isSourceId(e),`Expected a valid source ID.`),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return J(this.isTargetId(e),`Expected a valid target ID.`),this.dropTargets.get(e)}getSourceType(e){return J(this.isSourceId(e),`Expected a valid source ID.`),this.types.get(e)}getTargetType(e){return J(this.isTargetId(e),`Expected a valid target ID.`),this.types.get(e)}isSourceId(e){return Mr(e)===Or.SOURCE}isTargetId(e){return Mr(e)===Or.TARGET}removeSource(e){J(this.getSource(e),`Expected an existing source.`),this.store.dispatch(Cr(e)),gr(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){J(this.getTarget(e),`Expected an existing target.`),this.store.dispatch(wr(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){let t=this.getSource(e);J(t,`Expected an existing source.`),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){J(this.pinnedSource,`No source is pinned at the time.`),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){let r=jr(e);return this.types.set(r,t),e===Or.SOURCE?this.dragSources.set(r,n):e===Or.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}},Fr=(e,t)=>e===t;function Ir(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Lr(e,t,n=Fr){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function Rr(e=nr,t){switch(t.type){case wn:break;case _r:case vr:case br:case yr:return nr;case Sn:case Cn:case En:case Tn:default:return rr}let{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=yn(n,r);if(!(i.length>0||!Lr(n,r)))return nr;let a=r[r.length-1],o=n[n.length-1];return a!==o&&(a&&i.push(a),o&&i.push(o)),i}function zr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Br(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){zr(e,t,n[t])})}return e}var Vr={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Hr(e=Vr,t){let{payload:n}=t;switch(t.type){case xn:case Sn:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case wn:return Ir(e.clientOffset,n.clientOffset)?e:Br({},e,{clientOffset:n.clientOffset});case En:case Tn:return Vr;default:return e}}function Ur(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ur(e,t,n[t])})}return e}var Gr={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Kr(e=Gr,t){let{payload:n}=t;switch(t.type){case Sn:return Wr({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Cn:return Wr({},e,{isSourcePublic:!0});case wn:return Wr({},e,{targetIds:n.targetIds});case br:return e.targetIds.indexOf(n.targetId)===-1?e:Wr({},e,{targetIds:_n(e.targetIds,n.targetId)});case Tn:return Wr({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case En:return Wr({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function qr(e=0,t){switch(t.type){case _r:case vr:return e+1;case yr:case br:return e-1;default:return e}}function Jr(e=0){return e+1}function Yr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Yr(e,t,n[t])})}return e}function Zr(e={},t){return{dirtyHandlerIds:Rr(e.dirtyHandlerIds,{type:t.type,payload:Xr({},t.payload,{prevTargetIds:gn(e,`dragOperation.targetIds`,[])})}),dragOffset:Hr(e.dragOffset,t),refCount:qr(e.refCount,t),dragOperation:Kr(e.dragOperation,t),stateId:Jr(e.stateId)}}function Qr(e,t=void 0,n={},r=!1){let i=$r(r),a=new Zn(i,new ar(i,new Pr(i))),o=e(a,t,n);return a.receiveBackend(o),a}function $r(e){let t=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__;return hn(Zr,e&&t&&t({name:`dnd-core`,instanceId:`dnd-core`}))}function ei(e,t){if(e==null)return{};var n=ti(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ti(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ni=0,ri=Symbol.for(`__REACT_DND_CONTEXT_INSTANCE__`),ii=qe(function(e){var{children:t}=e;let[n,r]=ai(ei(e,[`children`]));return ke(()=>{if(r){let e=si();return++ni,()=>{--ni===0&&(e[ri]=null)}}},[]),C(Bt.Provider,{value:n,children:t})});function ai(e){return`manager`in e?[{dragDropManager:e.manager},!1]:[oi(e.backend,e.context,e.options,e.debugMode),!e.context]}function oi(e,t=si(),n,r){let i=t;return i[ri]||(i[ri]={dragDropManager:Qr(e,t,n,r)}),i[ri]}function si(){return typeof global<`u`?global:window}function ci(e){let t=null;return()=>(t??=e(),t)}function li(e,t){return e.filter(e=>e!==t)}function ui(e,t){let n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);let i=[];return n.forEach(e=>i.push(e)),i}var di=class{enter(e){let t=this.entered.length,n=t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e));return this.entered=ui(this.entered.filter(n),[e]),t===0&&this.entered.length>0}leave(e){let t=this.entered.length;return this.entered=li(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},fi=class{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){let t={};Object.keys(this.config.exposeProperties).forEach(n=>{let r=this.config.exposeProperties[n];r!=null&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},pi=n({FILE:()=>mi,HTML:()=>_i,TEXT:()=>gi,URL:()=>hi}),mi=`__NATIVE_FILE__`,hi=`__NATIVE_URL__`,gi=`__NATIVE_TEXT__`,_i=`__NATIVE_HTML__`;function vi(e,t,n){return t.reduce((t,n)=>t||e.getData(n),``)??n}var yi={[mi]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:[`Files`]},[_i]:{exposeProperties:{html:(e,t)=>vi(e,t,``),dataTransfer:e=>e},matchesTypes:[`Html`,`text/html`]},[hi]:{exposeProperties:{urls:(e,t)=>vi(e,t,``).split(`
|
|
3
|
+
`),dataTransfer:e=>e},matchesTypes:[`Url`,`text/uri-list`]},[gi]:{exposeProperties:{text:(e,t)=>vi(e,t,``),dataTransfer:e=>e},matchesTypes:[`Text`,`text/plain`]}};function bi(e,t){let n=yi[e];if(!n)throw Error(`native type ${e} has no configuration`);let r=new fi(n);return r.loadDataTransfer(t),r}function xi(e){if(!e)return null;let t=Array.prototype.slice.call(e.types||[]);return Object.keys(yi).filter(e=>{let n=yi[e];return n!=null&&n.matchesTypes?n.matchesTypes.some(e=>t.indexOf(e)>-1):!1})[0]||null}var Si=ci(()=>/firefox/i.test(navigator.userAgent)),Ci=ci(()=>!!window.safari),wi=class{interpolate(e){let{xs:t,ys:n,c1s:r,c2s:i,c3s:a}=this,o=t.length-1;if(e===t[o])return n[o];let s=0,c=a.length-1,l;for(;s<=c;){l=Math.floor(.5*(s+c));let r=t[l];if(r<e)s=l+1;else if(r>e)c=l-1;else return n[l]}o=Math.max(0,c);let u=e-t[o],d=u*u;return n[o]+r[o]*u+i[o]*d+a[o]*u*d}constructor(e,t){let{length:n}=e,r=[];for(let e=0;e<n;e++)r.push(e);r.sort((t,n)=>e[t]<e[n]?-1:1);let i=[],a=[],o=[],s,c;for(let r=0;r<n-1;r++)s=e[r+1]-e[r],c=t[r+1]-t[r],a.push(s),i.push(c),o.push(c/s);let l=[o[0]];for(let e=0;e<a.length-1;e++){let t=o[e],n=o[e+1];if(t*n<=0)l.push(0);else{s=a[e];let r=a[e+1],i=s+r;l.push(3*i/((i+r)/t+(i+s)/n))}}l.push(o[o.length-1]);let u=[],d=[],f;for(let e=0;e<l.length-1;e++){f=o[e];let t=l[e],n=1/a[e],r=t+l[e+1]-f-f;u.push((f-t-r)*n),d.push(r*n*n)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=u,this.c3s=d}},Ti=1;function Ei(e){let t=e.nodeType===Ti?e:e.parentElement;if(!t)return null;let{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function Di(e){return{x:e.clientX,y:e.clientY}}function Oi(e){var t;return e.nodeName===`IMG`&&(Si()||!((t=document.documentElement)!=null&&t.contains(e)))}function ki(e,t,n,r){let i=e?t.width:n,a=e?t.height:r;return Ci()&&e&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function Ai(e,t,n,r,i){let a=Oi(t),o=Ei(a?e:t),s={x:n.x-o.x,y:n.y-o.y},{offsetWidth:c,offsetHeight:l}=e,{anchorX:u,anchorY:d}=r,{dragPreviewWidth:f,dragPreviewHeight:p}=ki(a,t,c,l),m=()=>{let e=new wi([0,.5,1],[s.y,s.y/l*p,s.y+p-l]).interpolate(d);return Ci()&&a&&(e+=(window.devicePixelRatio-1)*p),e},h=()=>new wi([0,.5,1],[s.x,s.x/c*f,s.x+f-c]).interpolate(u),{offsetX:g,offsetY:_}=i,v=g===0||g,y=_===0||_;return{x:v?g:h(),y:y?_:m()}}var ji=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<`u`)return window}get document(){var e;if((e=this.globalContext)!=null&&e.document)return this.globalContext.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.optionsArgs)==null?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}};function Mi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ni(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Mi(e,t,n[t])})}return e}var Pi=class{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)==null?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((t=this.dragOverTargetIds)==null?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){let e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw Error(`Cannot have two HTML5 backends at the same time.`);e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){let e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var t;(t=this.window)==null||t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);let r=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute(`draggable`,`true`),t.addEventListener(`dragstart`,r),t.addEventListener(`selectstart`,i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener(`dragstart`,r),t.removeEventListener(`selectstart`,i),t.setAttribute(`draggable`,`false`)}}connectDropTarget(e,t){let n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener(`dragenter`,n),t.addEventListener(`dragover`,r),t.addEventListener(`drop`,i),()=>{t.removeEventListener(`dragenter`,n),t.removeEventListener(`dragover`,r),t.removeEventListener(`drop`,i)}}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(){let e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Ni({dropEffect:this.altKeyPressed?`copy`:`move`},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?`copy`:this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){let e=this.monitor.getSourceId();return Ni({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){let e=this.monitor.getItemType();return Object.keys(pi).some(t=>pi[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=bi(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return(e=this.rootElement)==null?void 0:e.addEventListener(`mousemove`,this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)==null||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener(`mousemove`,this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||=[],this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,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=e=>{let t=this.sourceNodes.get(e);return t&&Ei(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>!!(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{let e=this.currentDragSourceNode;e==null||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{this.hoverRafId===null&&typeof requestAnimationFrame<`u`&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{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=e=>{if(e.defaultPrevented)return;let{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;let n=Di(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});let{dataTransfer:r}=e,i=xi(r);if(this.monitor.isDragging()){if(r&&typeof r.setDragImage==`function`){let e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){let{anchorX:e,anchorY:a,offsetX:o,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),c=Ai(t,i,n,{anchorX:e,anchorY:a},{offsetX:o,offsetY:s});r.setDragImage(i,c.x,c.y)}}try{r==null||r.setData(`application/json`,{})}catch{}this.setCurrentDragSourceNode(e.target);let{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(i)this.beginDragNativeItem(i);else if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute(`draggable`)))return;else e.preventDefault()},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var t;(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;let{dataTransfer:n}=e,r=xi(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{let{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:Di(e)}),t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var t;(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}},this.handleTopDragOver=e=>{let{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`none`);return}this.altKeyPressed=e.altKey,this.lastClientOffset=Di(e),this.scheduleHover(t),(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`none`))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var t;e.preventDefault(),(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}else xi(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{let{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:Di(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{let t=e.target;typeof t.dragDrop==`function`&&(t.tagName===`INPUT`||t.tagName===`SELECT`||t.tagName===`TEXTAREA`||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new ji(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new di(this.isNodeInDocument)}},Fi=function(e,t,n){return new Pi(e,t,n)},Ii=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='512'%20height='512'%20shape-rendering='geometricPrecision'%20image-rendering='optimizeQuality'%20fill-rule='evenodd'%20xmlns:v='https://vecta.io/nano'%3e%3cpath%20fill='%23efda4e'%20d='M-.5-.5h512v512H-.5V-.5z'/%3e%3cpath%20fill='%23020100'%20d='M308.5%20287.5c1.777-3.005%202.777-6.338%203-10%209.147-21.963%2025.48-35.463%2049-40.5%2021.999-4.173%2043.666-2.84%2065%204%2014.575%205.411%2025.575%2014.911%2033%2028.5l-1%202c-12.413%205.624-24.58%2011.624-36.5%2018-5.321-8.25-12.821-13.417-22.5-15.5-13.957-3.122-27.29-1.455-40%205-8.125%205.36-10.958%2012.86-8.5%2022.5%203.223%206.223%208.057%2010.723%2014.5%2013.5l64%2020c38.459%2016.085%2052.626%2044.585%2042.5%2085.5-7.572%2026.208-24.738%2042.041-51.5%2047.5-25.102%205.733-49.768%204.4-74-4-19.291-8.625-32.291-22.958-39-43%2011.266-8.887%2023.433-16.387%2036.5-22.5%203.117%206.896%206.784%2013.563%2011%2020%2012.705%2012.307%2027.872%2016.807%2045.5%2013.5%2022.189-3.504%2032.355-16.338%2030.5-38.5-2.833-6.833-7.667-11.667-14.5-14.5l-57-17c-36.004-11.84-52.67-36.673-50-74.5z'/%3e%3cpath%20fill='%23020200'%20d='M222.5%20238.5h43l-.5%20159c-2.688%2052.355-30.188%2076.855-82.5%2073.5-24.871-3.543-41.204-17.21-49-41l.5-2.5a12.14%2012.14%200%200%200%204.5-3.5c10.653-5.825%2021.32-11.325%2032-16.5%204.763%2021.72%2017.763%2028.887%2039%2021.5%204.616-2.618%207.783-6.451%209.5-11.5%201.163-5.968%202.163-11.968%203-18l.5-161z'/%3e%3cpath%20fill='%23615820'%20d='M311.5%20277.5c-.223%203.662-1.223%206.995-3%2010%20.223-3.662%201.223-6.995%203-10z'/%3e%3c/svg%3e`,Li=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20500%20500'%3e%3cpath%20fill='%234285f4'%20d='M44.271%2027.275l206.5%201v170l-58.5-36.5c-7.005-.916-12.505%201.584-16.5%207.5v147c4.625%204.412%2010.125%206.245%2016.5%205.5l57.5-35.5c.833%2054.003%201.356%20108.003.189%20162-1.272.546-45.599-.242-48.689%201.121-3.674%207.844-4.79%2011.207-13%2023.879-4.372%205.527-2.19%204.097-10.689%2012.258-5.166%202.748-4.191%203.45-14.311%206.242-17.67%201.983-35.336%201.983-53%200-9.535-3.774-10.879-4.163-18.526-11.22-5.562-4.39-11.131-11.803-11.974-15.28-4.068-7.881-3.42-9.116-5.5-13.5-3.672-1.503-35.798.203-40.746-1.335-5.823-2.314-2.946-.422-7.954-3.689-2.888-2.668-2.255-3.221-2.421-9.904L20.771%2050.275c.36-2.108-.41-5.806%202.522-11.615%204.343-5.852%205.374-7%2010.061-9.146%206.083-2.73%208.677-1.475%2010.917-2.239z'/%3e%3cpath%20d='M258.271%2030.275l154.63.407c5.654.559%2010.783%203.17%2014.37%207.093%204.907%204.408%206.204%208.723%207.5%2013.5v373c-.208%205.716-.297%207.982-4.848%2015.404-7.078%206.393-9.879%206.39-15.652%206.692-24.804%201.296-50.079%201.189-74.96%201.041-24.516-.014-68.46.89-81.5.391l-2.512-172.528c-20.083%2012.625-42.777%2025.125-63.028%2037.5-4.127%201.292-7.294.125-9.5-3.5l1-137c1.864-2.707%204.364-3.541%207.5-2.5%2020.366%2013.427%2064.35%2038.947%2065.581%2038.339l1.419-177.839z'%20fill='%23DDD'/%3e%3c/svg%3e`,Ri=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%20width='32'%20height='32'%3e%3cpath%20fill='%23007acc'%20d='M-.5-.5h503l-1%20179h10v333h-421v-7h-91V-.5z'/%3e%3cpath%20fill='%230f81cf'%20d='M502.5-.5h9v179h-10l1-179z'/%3e%3cpath%20fill='%23fdfefe'%20d='M470.5%20227.5c.33%2017.508-.003%2034.841-1%2052-23.486-15.709-48.82-19.875-76-12.5-15.89%208.078-19.39%2019.911-10.5%2035.5%204.673%205.577%2010.173%2010.077%2016.5%2013.5l38%2019c17.945%209.278%2031.112%2023.112%2039.5%2041.5%201.352%203.22%202.186%206.553%202.5%2010a305.16%20305.16%200%200%201%201%2026c-3.553%2033.726-21.886%2054.559-55%2062.5-34.769%207.363-68.435%204.196-101-9.5-.167-19.003%200-38.003.5-57%2022.903%2021.314%2049.736%2029.147%2080.5%2023.5%2019.435-5.701%2025.268-17.868%2017.5-36.5-4.718-6.44-10.552-11.606-17.5-15.5a1552.42%201552.42%200%200%201-47-24c-27.679-19.331-38.846-45.831-33.5-79.5%206.43-26.433%2022.597-43.933%2048.5-52.5%2026.131-6.625%2052.464-7.292%2079-2a565.56%20565.56%200%200%201%2018%205.5z'/%3e%3cpath%20fill='%23fefefe'%20d='M122.5%20222.5h182v46h-65v206h-52v-206h-65v-46z'/%3e%3cpath%20fill='%2370b3e1'%20d='M470.5%20227.5c1.327%2017.505%201.327%2035.171%200%2053-.607-.124-.94-.457-1-1%20.997-17.159%201.33-34.492%201-52z'/%3e%3cpath%20fill='%236cafe0'%20d='M479.5%20386.5c1.465%205.09%202.132%2010.423%202%2016-.002%203.518-.335%206.851-1%2010a305.16%20305.16%200%200%200-1-26z'/%3e%3cpath%20fill='%231283cf'%20d='M-.5%20504.5h91v7h-91v-7z'/%3e%3c/svg%3e`,zi=`data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIj4KICAgIDxyYWRpYWxHcmFkaWVudCBpZD0ibXlHcmFkaWVudCI+CiAgICAgICAgPHN0b3Agb2Zmc2V0PSIxMCUiIHN0b3AtY29sb3I9IiMxQzJENUYiIC8+CiAgICAgICAgPHN0b3Agb2Zmc2V0PSI5NSUiIHN0b3AtY29sb3I9IiMwQjFENTMiIC8+CiAgICA8L3JhZGlhbEdyYWRpZW50PgogICAgPHBhdGggZmlsbD0idXJsKCcjbXlHcmFkaWVudCcpIiBkPSJNLS4xLS4xaDUxMnY1MTJILS4xVi0uMXoiLz4KICAgIDxwYXRoIGZpbGw9IiNmOGY4ZmEiCiAgICAgICAgICBkPSJNNDgyLjUgMjMxLjV2NmgtMjVjLS45NzItOC4xNy01LjYzOS0xMi4xNy0xNC0xMi05LjUzMS4wMjktMTMuMzY1IDQuNjk1LTExLjUgMTRsNC41IDQuNSAzMyA4YzE5LjM4OCA5LjYzNCAyMy4zODggMjMuODAxIDEyIDQyLjVhMzUuMDYgMzUuMDYgMCAwIDAtOCA2Yy0xMy45MjUgNC43NjEtMjguMjU4IDYuMjYxLTQzIDQuNS0xMC42MDEtMS4wMjQtMTguOTM1LTUuODU3LTI1LTE0LjUtMS4wNzctMi4yMjktMS43NDQtNC41NjMtMi03di04aDI1YzEuNDk1IDQuMjc5IDMuODI4IDguMTEzIDcgMTEuNSA3LjQ3OCAyLjI1OCAxNC44MTEgMS45MjUgMjItMSAyLjg5NC0yLjkwOSAzLjcyNy02LjQwOSAyLjUtMTAuNWEzNi44IDM2LjggMCAwIDAtMTIuNS01LjUgNTM5Ljc5IDUzOS43OSAwIDAgMS0yOC04Yy0xMi44NzQtNi41NjItMTcuNzA3LTE3LjA2Mi0xNC41LTMxLjUgMy41Ny0xMC41NjkgMTAuNzM3LTE3LjQwMyAyMS41LTIwLjUgMTYuMTQ4LTQuNTM5IDMxLjQ4Mi0yLjcwNiA0NiA1LjUgMiAyLjY2NyA0LjMzMyA1IDcgNyAxLjg3MSAyLjczNCAyLjg3MSA1LjczNCAzIDl6Ii8+CiAgICA8cGF0aCBmaWxsPSIjYTRhYmJmIiBkPSJNMTUzLjUgMjA5LjVjLjA2LS41NDMuMzkzLS44NzYgMS0xYTEwMjQuNjMgMTAyNC42MyAwIDAgMSAxIDY0bC0yLTYzeiIvPgogICAgPHBhdGggZmlsbD0iI2ZhZmJmYyIKICAgICAgICAgIGQ9Ik0xNTMuNSAyMDkuNWwyIDYzYzEuMjc4IDExLjQ0NCA3LjYxMSAxNi4yNzcgMTkgMTQuNSA4LjcwNC0xLjM3OCAxMy4yMDQtNi41NDQgMTMuNS0xNS41LjUtMjAuNjY0LjY2Ny00MS4zMzEuNS02MiA5Ljc0My0uMjE5IDE5LjQwOS0uMjE5IDI5IDAgLjQwMSAyMy4zNjItLjA5OSA0Ni42OTYtMS41IDcwLTQuMjk4IDE0Ljk2OC0xNC4xMzEgMjMuNDY4LTI5LjUgMjUuNWEyMjUuMTQgMjI1LjE0IDAgMCAxLTMwIDBjLTE1LjgyMi0yLjE1NS0yNS42NTUtMTAuOTg4LTI5LjUtMjYuNWwtLjUtNjloMjd6Ii8+CiAgICA8cGF0aCBmaWxsPSIjZmVmZWZlIgogICAgICAgICAgZD0iTTIzMy41IDIwOS41aDI3Yy0uMzMxIDI1LjE3Mi4wMDIgNTAuMTcyIDEgNzUgMCAuNjY3LjMzMyAxIDEgMSAxMy4xNTYuOTk2IDI2LjQ5IDEuMzI5IDQwIDF2MTdoLTY5di05NHoiLz4KICAgIDxwYXRoIGZpbGw9IiNhNWFjYmYiIGQ9Ik0yMzMuNSAyMDkuNWM5LjE1Mi0uOTk0IDE4LjQ4NS0xLjMyNyAyOC0xdjc2Yy0uOTk4LTI0LjgyOC0xLjMzMS00OS44MjgtMS03NWgtMjd6Ii8+CiAgICA8cGF0aCBmaWxsPSIjYTdhZWMxIiBkPSJNMzE2LjUgMjA5LjVoNzNjLjMyMyA2LjE5LS4wMSAxMi4xOS0xIDE4di0xN2MtMjQuMTcyLjMzMS00OC4xNzItLjAwMi03Mi0xeiIvPgogICAgPHBhdGggZmlsbD0iI2E1YWNjMCIgZD0iTTg1LjUgMjEwLjVoLTU5djkzaDI3Yy0uMzI4LTExLjE3OS4wMDUtMjIuMTc5IDEtMzN2MzRoLTI5di05NWE5MDAuOTggOTAwLjk4IDAgMCAxIDYwIDF6Ii8+CiAgICA8cGF0aCBmaWxsPSIjZmNmY2ZjIgogICAgICAgICAgZD0iTTg1LjUgMjEwLjVjMjIuMjIzIDMuNzU4IDI5LjU1NiAxNi40MjUgMjIgMzgtNC4yMjggNS4zOTctOS4yMjggOS44OTctMTUgMTMuNS0xLjMwNS44MDQtMS45NzEgMS45NzEtMiAzLjVsMjMgMzZjLTQuNDUxIDEuMzI3LTkuMjg0IDEuOTk0LTE0LjUgMmExMjguMTkgMTI4LjE5IDAgMCAxLTE1LjUtMWMtNi45NTUtMTAuMzI2LTEzLjQ1NS0yMC45OTItMTkuNS0zMi0zLjI2OS0xLjMxOC02LjQzNS0xLjMxOC05LjUgMC0uOTk1IDEwLjgyMS0xLjMyOCAyMS44MjEtMSAzM2gtMjd2LTkzaDU5eiIvPgogICAgPHBhdGggZmlsbD0iI2ZlZmVmZSIKICAgICAgICAgIGQ9Ik0zMTYuNSAyMDkuNWMyMy44MjguOTk4IDQ3LjgyOCAxLjMzMSA3MiAxdjE3Yy0xNC42Ny0uMTY3LTI5LjMzNyAwLTQ0IC41LTEuMzI2IDYuNTk5LTEuMzI2IDEzLjA5OSAwIDE5LjUgMTQuNDkuOTk2IDI5LjE1NyAxLjMyOSA0NCAxdjE2Yy0xNC44NDMtLjMyOS0yOS41MS4wMDQtNDQgMWE1MC41MSA1MC41MSAwIDAgMCAwIDIwYzE0LjQ5Ljk5NiAyOS4xNTcgMS4zMjkgNDQgMXYxN2gtNzNjLS4zMzItMzEuNTA0LjAwMi02Mi44MzggMS05NHoiLz4KICAgIDxwYXRoIGZpbGw9IiMxODI3NWIiCiAgICAgICAgICBkPSJNNTUuNSAyMjkuNWM3LjA4OS0uMzg0IDE0LjA4OS4xMTYgMjEgMS41IDMuNDAxIDEuMzIgNC43MzUgMy44MiA0IDcuNWwtLjUgNWMtMS43NzEuODA0LTMuMjcxIDEuOTcxLTQuNSAzLjUtNi41OTIgMS4zMjktMTMuMjU5IDEuODI5LTIwIDEuNXYtMTl6Ii8+CiAgICA8cGF0aCBmaWxsPSIjYTVhY2MwIiBkPSJNNDgyLjUgMjMxLjVjLjk2OCAyLjEwNyAxLjMwMiA0LjQ0MSAxIDctOC44NDkuMzI2LTE3LjUxNi0uMDA3LTI2LTFoMjV2LTZ6Ii8+CiAgICA8cGF0aCBmaWxsPSIjYTZhZGMwIiBkPSJNMzQ0LjUgMjQ3LjVoNDV2MThoLTQ1YzE0LjQ5LS45OTYgMjkuMTU3LTEuMzI5IDQ0LTF2LTE2Yy0xNC44NDMuMzI5LTI5LjUxLS4wMDQtNDQtMXoiLz4KICAgIDxwYXRoIGZpbGw9IiNhMmE5YmUiIGQ9Ik00MjguNSAyNzUuNWgtMjV2OGMtLjk3Ny0yLjc4Ny0xLjMxLTUuNzg3LTEtOSA4Ljg0OS0uMzI2IDE3LjUxNi4wMDcgMjYgMXoiLz4KICAgIDxwYXRoIGZpbGw9IiNhNWFjYmYiCiAgICAgICAgICBkPSJNMTEzLjUgMzAxLjVjLjk3OC4zMTEgMS42NDUuOTc4IDIgMmwtMTYgMWMtNS43MTEtLjAwNS0xMS4wNDQtLjY3Mi0xNi0yYTEyOC4xOSAxMjguMTkgMCAwIDAgMTUuNSAxYzUuMjE2LS4wMDYgMTAuMDQ5LS42NzMgMTQuNS0yeiIvPgogICAgPHBhdGggZmlsbD0iI2E1YWNjMCIgZD0iTTIzMy41IDIwOS41djk0aDY5di0xN2MtMTMuNTEuMzI5LTI2Ljg0NC0uMDA0LTQwLTFoNDF2MTloLTcxYTIyNTYuNDEgMjI1Ni40MSAwIDAgMSAxLTk1eiIvPgogICAgPHBhdGggZmlsbD0iI2E2YWNjMCIKICAgICAgICAgIGQ9Ik0zMTYuNSAyMDkuNWMtLjk5OCAzMS4xNjItMS4zMzIgNjIuNDk2LTEgOTRoNzN2LTE3Yy0xNC44NDMuMzI5LTI5LjUxLS4wMDQtNDQtMWg0NXYxOWgtNzVhMjMwNC45NSAyMzA0Ljk1IDAgMCAxIDEtOTZjLjYwNy4xMjQuOTQuNDU3IDEgMXoiLz4KPC9zdmc+`;K();var Bi=class e extends H.Component{constructor(t){super(t),W(this,`isShowInstance`,void 0),W(this,`oldId`,void 0),W(this,`handleCancel`,()=>{this.props.onClose()}),W(this,`handleOk`,()=>{this.props.onRename(this.oldId,this.state.id,this.state.name,this.state.instance===0?0:this.state.instance||void 0),this.props.onClose()}),W(this,`handleChange`,e=>{this.setState({name:e,id:this.getId(e)})}),this.state={name:t.name,id:t.id,instance:t.instance||0,prefix:e.getPrefix(t.id)},this.isShowInstance=!t.folder&&!!t.instances&&(!!t.instance||!!t.instances[0]||t.instances.length>1),this.oldId=t.id}static getPrefix(e){let t=(e||``).split(`.`);return t.pop(),t.join(`.`)}getId(e){return e=(e||``).replace(/[\\/\][.*,;'"`<>?\s]/g,`_`).trim().replace(/\.$/,`_`),`${this.state.prefix}.${e}`}render(){let e=this.props.instanceHosts||{};return V(ye,{onClose:()=>!1,maxWidth:`md`,fullWidth:!0,open:!0,"aria-labelledby":`confirmation-dialog-title`,children:[C(o,{id:`confirmation-dialog-title`,children:U.t(`Rename`)}),C(xe,{children:V(`form`,{noValidate:!0,autoComplete:`off`,children:[C(F,{variant:`standard`,style:{width:`100%`},id:`standard-name`,autoFocus:!0,label:U.t(`Name`),value:this.state.name,onKeyUp:e=>{e.key===`Enter`&&(e.preventDefault(),setTimeout(()=>this.handleOk(),200))},onChange:e=>this.handleChange(e.target.value),margin:`normal`}),C(F,{variant:`standard`,id:`standard-name-id`,style:{width:`100%`},label:U.t(`ID`),value:this.state.id,disabled:!0,margin:`normal`}),this.isShowInstance&&V(Ke,{variant:`standard`,children:[C(Ie,{htmlFor:`instance`,children:U.t(`Instance`)}),C(Tt,{variant:`standard`,value:this.state.instance,onChange:e=>this.setState({instance:parseInt(e.target.value,10)}),inputProps:{name:`instance`,id:`instance`},children:this.props.instances.map(t=>{let n=e[t];return V(Ot,{value:t,children:[t||`0`,n?C(`span`,{style:{opacity:.6,marginLeft:8,fontSize:`smaller`},children:`@ ${n}`}):null]},t)})})]})]})}),V(_e,{children:[C(q,{variant:`contained`,onClick:this.handleOk,color:`primary`,startIcon:C(De,{}),children:U.t(`Ok`)}),C(q,{color:`grey`,variant:`contained`,onClick:this.handleCancel,startIcon:C(kt,{}),children:U.t(`Cancel`)})]})]})}};K();var Vi=class extends H.Component{constructor(e){super(e),W(this,`handleCancel`,()=>{this.props.onClose()}),W(this,`handleOk`,()=>{this.props.onDelete(this.state.id),this.props.onClose()}),this.state={name:e.name,id:e.id}}render(){return V(ye,{onClose:()=>!1,maxWidth:`md`,open:!0,"aria-labelledby":`confirmation-dialog-title`,children:[C(o,{id:`confirmation-dialog-title`,children:U.t(`Are you sure?`)}),V(xe,{children:[C(nt,{}),C(`span`,{style:{fontSize:14,fontWeight:`bold`},children:U.t(`Delete %s`,this.state.name)})]}),V(_e,{children:[C(q,{variant:`contained`,onClick:this.handleOk,color:`primary`,startIcon:C(De,{}),children:U.t(`Ok`)}),C(q,{color:`grey`,variant:`contained`,onClick:this.handleCancel,startIcon:C(kt,{}),children:U.t(`Cancel`)})]})]})}},Hi=``+new URL(`tileJS-C48gYbHw.png`,import.meta.url).href,Ui=``+new URL(`tileTS-CsXmgy4B.png`,import.meta.url).href,Wi=``+new URL(`tileBlockly-BMpdinN3.png`,import.meta.url).href,Gi=``+new URL(`tileRules-BkbaFIhs.png`,import.meta.url).href;K();var Ki={card:{maxWidth:345,minWidth:250,display:`inline-block`,margin:`0 10px 0 10px`},media:{height:122},text:{maxWidth:218,minHeight:30},complexity:{fontWeight:`bold`,fontStyle:`italic`,marginBottom:8}},qi=class e extends H.Component{constructor(...e){super(...e),W(this,`handleCancel`,()=>{this.props.onClose()})}static openHtml(e){let t=U.getLanguage();!e.includes(`javascript.md`)&&(t===`de`||t===`ru`)&&(e=e.replace(/\/en\//,`/${t}/`));let n=window.open(e,`_blank`);n==null||n.focus()}getJSCard(){return V(d,{style:Ki.card,children:[V(pe,{onClick:()=>this.props.onClose&&this.props.onClose(`Javascript/js`),children:[C(he,{style:Ki.media,image:Hi,title:`JavaScript`}),V(ue,{children:[C(`h2`,{children:`JavaScript`}),C(`div`,{style:Ki.complexity,children:U.t(`for programmers`)}),C(`div`,{style:Ki.text,children:U.t(`JS description`)})]})]}),V(w,{children:[C(q,{size:`small`,color:`primary`,variant:`contained`,onClick:()=>this.props.onClose&&this.props.onClose(`Javascript/js`),children:U.t(`Add`)}),C(q,{size:`small`,color:`secondary`,onClick:()=>e.openHtml(`https://github.com/ioBroker/ioBroker.javascript/blob/master/docs/en/javascript.md`),children:U.t(`Learn More`)})]})]})}getTSCard(){return V(d,{style:Ki.card,children:[V(pe,{onClick:()=>this.props.onClose&&this.props.onClose(`TypeScript/ts`),children:[C(he,{style:Ki.media,image:Ui,title:`TypeScript`}),V(ue,{children:[C(`h2`,{children:`TypeScript`}),C(`div`,{style:Ki.complexity,children:U.t(`for professionals`)}),C(`div`,{style:Ki.text,children:U.t(`TS description`)})]})]}),V(w,{children:[C(q,{size:`small`,color:`primary`,variant:`contained`,onClick:()=>this.props.onClose&&this.props.onClose(`TypeScript/ts`),children:U.t(`Add`)}),C(q,{size:`small`,color:`secondary`,onClick:()=>e.openHtml(`https://github.com/ioBroker/ioBroker.javascript/blob/master/docs/en/javascript.md`),children:U.t(`Learn More`)})]})]})}getBlocklyCard(){return V(d,{style:Ki.card,children:[V(pe,{onClick:()=>this.props.onClose&&this.props.onClose(`Blockly`),children:[C(he,{style:Ki.media,image:Wi,title:`Blockly`}),V(ue,{children:[C(`h2`,{children:`Blockly`}),C(`div`,{style:Ki.complexity,children:U.t(`normal`)}),C(`div`,{style:Ki.text,children:U.t(`Blockly description`)})]})]}),V(w,{children:[C(q,{size:`small`,color:`primary`,variant:`contained`,onClick:()=>this.props.onClose&&this.props.onClose(`Blockly`),children:U.t(`Add`)}),C(q,{size:`small`,color:`secondary`,onClick:()=>e.openHtml(`https://github.com/ioBroker/ioBroker.javascript/blob/master/docs/en/blockly.md`),children:U.t(`Learn More`)})]})]})}getRulesCard(){return V(d,{style:Ki.card,children:[V(pe,{onClick:()=>this.props.onClose&&this.props.onClose(`Rules`),children:[C(he,{style:Ki.media,image:Gi,title:`Rules`}),V(ue,{children:[C(`h2`,{children:`Rules`}),C(`div`,{style:Ki.complexity,children:U.t(`easy`)}),C(`div`,{style:Ki.text,children:U.t(`Rules description`)})]})]}),V(w,{children:[C(q,{size:`small`,color:`primary`,variant:`contained`,onClick:()=>this.props.onClose&&this.props.onClose(`Rules`),children:U.t(`Add`)}),C(q,{size:`small`,color:`secondary`,onClick:()=>e.openHtml(`https://github.com/ioBroker/ioBroker.javascript/blob/master/docs/en/javascript.md`),children:U.t(`Learn More`)})]})]})}render(){return V(ye,{onClose:()=>!1,maxWidth:`lg`,fullWidth:!0,open:!0,"aria-labelledby":`confirmation-dialog-title`,children:[C(o,{id:`confirmation-dialog-title`,children:U.t(`Add new script`)}),V(xe,{style:{textAlign:`center`},children:[this.getRulesCard(),this.getBlocklyCard(),this.getJSCard(),this.getTSCard()]}),C(_e,{children:C(q,{color:`grey`,onClick:this.handleCancel,startIcon:C(kt,{}),children:U.t(`Cancel`)})})]})}};K();var Ji=class extends H.Component{constructor(e){super(e),W(this,`isShowInstance`,void 0),W(this,`handleOk`,()=>{this.props.onAdd(this.getId(this.state.name),this.state.name,this.state.instance,this.props.type),this.props.onClose()}),this.state={name:e.name||`Script`,instance:e.instance||0,parent:e.parent,error:``,id:``},this.isShowInstance=!e.folder&&!!e.instances&&(!!e.instance||!!e.instances[0]||e.instances.length>1)}getId(e){return e=e||this.state.name||``,e=e.replace(/[\\/\][.*,;'"`<>?\s]/g,`_`).trim().replace(/\.$/,`_`),`${this.state?this.state.parent:this.props.parent}.${e}`}render(){var e;return V(ye,{onClose:()=>!1,maxWidth:`md`,fullWidth:!0,open:!0,"aria-labelledby":`confirmation-dialog-title`,children:[C(o,{id:`confirmation-dialog-title`,children:this.props.title||U.t(`Create new`)}),C(xe,{children:V(`form`,{noValidate:!0,autoComplete:`off`,children:[C(F,{variant:`standard`,style:{width:`100%`},id:`standard-name`,autoFocus:!0,error:!!this.state.error,label:U.t(`Name`),value:this.state.name||``,helperText:this.state.error,slotProps:{input:{endAdornment:this.state.name?C(G,{size:`small`,onClick:()=>this.setState({name:``}),children:C(jt,{})}):void 0}},onKeyUp:e=>{e.preventDefault(),e.key===`Enter`&&!this.state.error&&setTimeout(()=>this.handleOk(),200)},onChange:e=>{var t;let n=e.target.value,r=this.getId(n);n?(t=this.props.existingItems)!=null&&t.includes(r)?this.setState({name:n,id:r,error:U.t(`Duplicate name`)}):this.setState({name:n,id:r,error:``}):this.setState({name:n,id:r,error:U.t(`Empty name is not allowed`)})},margin:`normal`}),V(Ke,{variant:`standard`,style:{width:`100%`},children:[C(Ie,{htmlFor:`parent`,children:U.t(`Folder`)}),C(Tt,{variant:`standard`,style:{width:`100%`},value:this.state.parent,onChange:e=>this.setState({parent:e.target.value}),inputProps:{name:`parent`,id:`parent`},children:this.props.parents.map(e=>{let t=e.id.split(`.`);t.splice(0,2);let n=[],r=`script.js`;return t.forEach(e=>{r+=`.${e}`;let t=this.props.parents.find(e=>e.id===r);t?n.push(t.name):n.push(e)}),n.length||n.push(e.name),C(Ot,{value:e.id,children:n.join(` / `)},e.id)})})]}),C(F,{variant:`standard`,id:`standard-name-id`,style:{width:`100%`},label:U.t(`ID`),value:this.getId(),disabled:!0,margin:`normal`}),this.isShowInstance&&V(Ke,{variant:`standard`,children:[C(Ie,{htmlFor:`instance`,children:U.t(`Instance`)}),C(Tt,{variant:`standard`,value:this.state.instance,onChange:e=>this.setState({instance:e.target.value}),inputProps:{name:`instance`,id:`instance`},children:(e=this.props.instances)==null?void 0:e.map(e=>C(Ot,{value:e,children:e||`0`},`instance${e}`))})]})]})}),V(_e,{children:[C(q,{variant:`contained`,onClick:this.handleOk,disabled:!!this.state.error,color:`primary`,startIcon:C(De,{}),children:U.t(`Ok`)}),C(q,{color:`grey`,variant:`contained`,onClick:()=>this.props.onClose(),startIcon:C(kt,{}),children:U.t(`Cancel`)})]})]})}};K();var Yi={buttonIcon:{marginRight:8},icon:{width:24,height:24},filter:{width:`100%`},filterWithButton:{width:`100%`},title:{fontWeight:`bold`,marginTop:16}},Xi=class extends H.Component{constructor(e){super(e),W(this,`handleOk`,()=>{var e;if((e=this.state.instances.find(e=>e.id===this.state.adapterToDebug))!=null&&e.enabled){this.props.socket.getObject(`system.adapter.${this.state.adapterToDebug}`).then(e=>{e&&(e.common.enabled=!1,this.props.socket.setObject(e._id,e).then(()=>this.props.onDebug(this.state.jsInstance,this.state.adapterToDebug)))});return}this.props.onDebug(this.state.jsInstance,this.state.adapterToDebug)}),this.state={instances:[],filter:window.localStorage.getItem(`javascript.debug.filter`)||``,showAskForStop:!1,jsInstance:window.localStorage.getItem(`javascript.debug.instance`)||``,jsInstanceHost:``,adapterToDebug:window.localStorage.getItem(`javascript.debug.adapter`)||``}}componentDidMount(){this.props.socket.getAdapterInstances().then(e=>{let t=e.filter(e=>{var t;return e&&!((t=e.common)!=null&&t.onlyWWW)}).map(e=>{var t,n,r;let i=e._id.replace(/^system\.adapter\./,``),[a]=i.split(`.`);return{id:i,enabled:(t=e.common)==null?void 0:t.enabled,host:(n=e.common)==null?void 0:n.host,icon:(r=e.common)!=null&&r.icon?`../../adapter/${a}/${e.common.icon}`:``}});t.sort((e,t)=>e.id>t.id?1:e.id<t.id?-1:0);let n=this.state.jsInstance||``,r=this.state.jsInstance?t.find(e=>e.id===this.state.jsInstance):null,i;if(!this.state.jsInstance||!r){let e=t.find(e=>e.id.startsWith(`javascript.`));i=(e==null?void 0:e.host)||``,n=(e==null?void 0:e.id)||``}else i=(r==null?void 0:r.host)||``;let a=this.state.adapterToDebug||``;a&&!t.find(e=>e.id===a)&&(a=``),this.setState({instances:t,jsInstance:n,adapterToDebug:a,jsInstanceHost:i})})}renderJavascriptList(){let e=this.state.instances.filter(e=>e.id.startsWith(`javascript.`));return e.length<2?null:V(_t,{children:[C(`div`,{style:Yi.title,children:U.t(`Host`)}),C(et,{component:`nav`,children:e.map(e=>V(ze,{component:`div`,selected:this.state.jsInstance===e.id,onClick:()=>this.setState({jsInstance:e.id,jsInstanceHost:e.host}),children:[C(Se,{children:C(`img`,{src:e.icon,alt:e.id,style:Yi.icon})}),C(Ct,{primary:e.id})]},e.id))})]})}renderInstances(){if(!this.state.jsInstance)return C(_t,{});let e=this.state.instances.filter(e=>e.id!==this.state.jsInstance&&e.host===this.state.jsInstanceHost&&(!this.state.filter||e.id.includes(this.state.filter.toLowerCase())));return V(_t,{children:[C(`div`,{style:Yi.title,children:U.t(`Instances`)}),C(et,{component:`nav`,children:e.map(e=>V(ze,{selected:this.state.adapterToDebug===e.id,onDoubleClick:()=>this.setState({adapterToDebug:e.id},()=>this.handleOk()),onClick:()=>this.setState({adapterToDebug:e.id}),children:[C(Se,{children:C(`img`,{src:e.icon,alt:e.id,style:Yi.icon})}),C(Ct,{primary:e.id})]},e.id))})]})}render(){return V(ye,{maxWidth:`md`,fullWidth:!1,open:!0,onClose:()=>!1,"aria-labelledby":`confirmation-dialog-title`,children:[C(o,{id:`confirmation-dialog-title`,children:this.props.title||U.t(`Debug instance`)}),C(xe,{children:V(Ze,{children:[C(_t,{children:C(St,{style:Yi.filterWithButton,value:this.state.filter,placeholder:U.t(`Filter`),onChange:e=>{this.setState({filter:e.target.value}),window.localStorage.setItem(`javascript.debug.filter`,e.target.value)},endAdornment:C(je,{position:`end`,children:this.state.filter?C(G,{size:`small`,"aria-label":`toggle password visibility`,onClick:()=>this.setState({filter:``}),children:C(wt,{})}):``})})}),C(_t,{children:V(_t,{container:!0,children:[this.renderJavascriptList(),this.renderInstances()]})})]})}),V(_e,{children:[C(q,{variant:`contained`,onClick:this.handleOk,disabled:!this.state.jsInstance||!this.state.adapterToDebug,color:`primary`,startIcon:C(De,{}),children:U.t(`Start`)}),C(q,{color:`grey`,variant:`contained`,onClick:()=>this.props.onClose(),startIcon:C(kt,{}),children:U.t(`Close`)})]})]})}};function Zi(e){if(!e)throw Error(`Password must be a non-empty string.`)}function Qi(e){return new TextEncoder().encode(e)}function $i(e){return new TextDecoder().decode(e)}function ea(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function ta(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function na(e,t){let n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e[r]^t[r%t.length];return n}function ra(e,t){return Zi(e),ea(na(Qi(t),Qi(e)))}function ia(e,t){return Zi(e),$i(na(ta(t),Qi(e)))}K();var aa=48,oa=_[400],sa=P[400],ca=T[400],la=`script.js`,ua=`${la}.common`,da=`${la}.global`,fa=350,pa=16,Y={drawerPaper:{position:`relative`,width:`100%`,height:`100%`,overflow:`hidden`},toolbar:e=>({height:e.toolbar.height}),toolbarButtons:e=>({color:e.palette.mode===`dark`?`white !important`:`black !important`}),iconButtonsDisabled:{filter:`grayscale(100%)`,opacity:.5},toolbarSearch:{width:`calc(100% - 105px)`,lineHeight:`34px`,marginLeft:5},iconButtons:{width:32,height:32,padding:2},iconDropdownMenu:{paddingRight:5},iconOnTheRight:{position:`absolute`,right:10,top:`calc(50% - 8px)`},menu:{width:`100%`,height:`100%`},innerMenu:{width:`100%`,height:`calc(100% - 76px)`,overflowX:`hidden`,overflowY:`auto`},listItemIcon:{minWidth:32},filterIcon:{width:18,height:18,borderRadius:2,marginRight:5},scriptIcon:{width:18,height:18,borderRadius:2,marginTop:4,marginBottom:4,marginLeft:8,marginRight:4},folder:{cursor:`pointer`,padding:0,userSelect:`none`},folderReorder:{opacity:.3,transitionDuration:`0.5s`,transitionProperty:`opacity`},folderIcon:{width:20,height:20},folderIconReorder:{paddingTop:4,paddingBottom:4,paddingLeft:8,paddingRight:4},folderIconNoReorder:{cursor:`pointer`,paddingTop:4,paddingBottom:4,paddingLeft:8,paddingRight:4},script:{cursor:`pointer`,padding:0,userSelect:`none`},scriptReorder:{opacity:1,transitionDuration:`0.5s`,transitionProperty:`opacity`},reorder:{},expandButton:{width:37,height:37},selected:window.vendorPrefix?e=>({backgroundColor:e.palette.primary.main,color:e.palette.text.primary}):{backgroundColor:`#164477`,color:`white`},instances:{fontSize:`smaller`,fontWeight:`bold`,marginRight:4},childrenCount:{fontSize:10,opacity:.4},footer:{height:24,display:`flex`},footerButtons:e=>({"& img":{color:e.palette.mode===`dark`?`#ffffff`:`#111111`,cursor:`pointer`,mt:`1px`,mr:`2px`,height:22,width:22,"&:hover":{backgroundColor:`#dbdbdb`}},"& svg":{color:e.palette.mode===`dark`?`#ffffff`:`#111111`,cursor:`pointer`,mt:`1px`,mr:`2px`,height:22,width:22,"&:hover":{backgroundColor:`#dbdbdb`}}}),footerButtonsRight:{float:`right`}},ma={Blockly:Li,"Javascript/js":Ii,def:Ii,Rules:zi,"TypeScript/ts":Ri};function ha(e,t,n){var r;return n||=U.getLanguage(),t!=null&&(r=t.common)!=null&&r.name?typeof t.common.name==`object`?(t.common.name[n]||t.common.name.en||e.replace(/^script\.js./,``)).toString():t.common.name.toString():e.replace(/^script\.js./,``)}function ga(e){let t=[{id:la,depth:0,index:0,parent:null,title:`root`,type:`folder`,parentIndex:null}],n=Object.keys(e);for(let i=0;i<n.length;i++){let a=e[n[i]],o=n[i].split(`.`);if(o.pop(),a.type===`script`){var r;t.push({id:n[i],title:ha(n[i],a),enabled:!!(a!=null&&(r=a.common)!=null&&r.enabled),depth:o.length-1,type:a.common.engineType,parent:o.length>1?o.join(`.`):null,instance:a.common.engine?parseInt(a.common.engine.split(`.`).pop(),10)||0:null,index:0,parentIndex:0})}else t.push({id:n[i],title:ha(n[i],a),depth:o.length-1,type:`folder`,parent:o.length>1?o.join(`.`):null,index:0,parentIndex:null})}let i;do i=!1,t.forEach(e=>{if(e.parent&&!t.find(t=>t.id===e.parent)){let n=e.parent.split(`.`);n.pop(),t.push({id:e.parent,title:e.parent.split(`.`).pop()||``,depth:n.length-1,type:`folder`,parent:n.length>1?n.join(`.`):null,index:0,parentIndex:null}),i=!0}});while(i);return t.sort((e,t)=>{let n=e.id.toLowerCase(),r=t.id.toLowerCase();return e.type===`folder`&&t.type!==`folder`?-1:t.type===`folder`&&e.type!==`folder`||n>r?1:n<r?-1:0}),t.forEach((e,t)=>e.index=t),t.forEach(e=>{if(e.parent){let n=t.find(t=>t.id===e.parent);n&&(e.parentIndex=n.index)}}),t}function _a(e){let{onDrop:t}=e,[{isOver:n,isOverAny:r},i]=Ut({accept:`script`,drop:e=>n?t(e):void 0,collect:e=>({isOver:e.isOver({shallow:!0}),isOverAny:e.isOver()})});return C(`div`,{ref:e=>{i(e)},style:{background:n?`#40adff`:void 0,opacity:r?.7:void 0},children:e.children},e.folderName)}function va(e){let{name:t}=e,[{opacity:n},r]=Rt({type:`script`,item:()=>({name:t}),collect:e=>({opacity:e.isDragging()?.3:1})});return C(`div`,{ref:e=>{r(e)},style:{opacity:n,transform:`translate3d(0, 0, 0)`},children:e.children},t)}var ya=class e extends H.Component{constructor(e){super(e),W(this,`inputRef`,void 0),W(this,`filterTimer`,void 0),W(this,`problems`,void 0),W(this,`problemsTimer`,void 0),W(this,`onProblemUpdatedBound`,void 0),W(this,`parent`,null);let t=window.localStorage?window.localStorage.getItem(`SideMenu.expanded`):`[]`,n;try{n=JSON.parse(t||`[]`)||[]}catch{n=[]}this.inputRef=H.createRef(),this.state={listItems:ga(e.scripts||{}),expanded:n,problems:[],reorder:!1,themeName:this.props.themeName,selected:window.localStorage&&window.localStorage.getItem(`SideMenu.selected`)||null,creatingScript:null,creatingFolder:!1,copingScript:``,renaming:null,deleting:null,choosingType:!1,errorText:``,instances:e.instances||[],menuOpened:!1,menuAnchorEl:null,menuAnchorFilterEl:null,searchMode:!1,expertMode:this.props.expertMode,searchText:``,width:this.props.width||300,typeFilter:window.localStorage&&window.localStorage.getItem(`SideMenu.typeFilter`)||``,statusFilter:window.localStorage&&window.localStorage.getItem(`SideMenu.statusFilter`)||``,runningInstances:this.props.runningInstances||{},scriptsHash:e.scriptsHash,showAdapterDebug:!1,isAllZeroInstances:!1,showExportDialog:!1};let r=this.ensureSelectedIsVisible();r&&Object.assign(this.state,{expanded:r}),this.filterTimer=null,Object.assign(this.state,{isAllZeroInstances:this.getIsAllZeroInstances()}),this.problems=null,this.problemsTimer=null,this.onProblemUpdatedBound=this.onProblemUpdated.bind(this)}readProblems(e,t){if(t||=Object.keys(this.props.scripts),!t||!t.length)e&&e();else{var n,r;let i=t.shift(),a=this.props.scripts[i];if(((n=this.props.scripts)==null?void 0:n[i].type)===`script`&&(r=a.common)!=null&&r.enabled&&!i.match(/^script\.js\.global\./)){let n=a.common.engine.split(`.`).pop(),r=this,o=`javascript.${n}.scriptProblem.${i.substring(10)}`;this.props.socket.getState(o).then(n=>{r.onProblemUpdated(o,n),setTimeout(()=>r.readProblems(e,t),0)})}else setTimeout(()=>this.readProblems(e,t),0)}}componentDidMount(){this.readProblems(()=>{this.props.instances.forEach(e=>{this.props.socket.subscribeState(`javascript.${e}.scriptProblem.*`,this.onProblemUpdatedBound)})})}componentWillUnmount(){this.props.instances.forEach(e=>{this.props.socket.unsubscribeState(`javascript.${e}.scriptProblem.*`,this.onProblemUpdatedBound)}),this.filterTimer&&=(clearTimeout(this.filterTimer),null),this.problemsTimer&&=(clearTimeout(this.problemsTimer),null)}onProblemUpdated(e,t){if(!t||!e)return;e=`${la}.${e.replace(/^javascript\.\d+\.scriptProblem\./,``)}`,this.problems||=JSON.parse(JSON.stringify(this.state.problems))||[];let n=!1;if(t.val)this.problems.includes(e)||(this.problems.push(e),n=!0);else{let t=this.problems.indexOf(e);t!==-1&&(this.problems.splice(t,1),n=!0)}n&&!this.problemsTimer&&(this.problemsTimer=setTimeout(()=>{this.problemsTimer=null,this.setState({problems:this.problems}),this.problems=null},300))}static filterListStatic(e,t,n,r,i){t=JSON.parse(JSON.stringify(t));let a=!1,o={listItems:t};if(e&&n&&r){let e=r.toLowerCase();if(t.forEach(t=>{var n;let r=t.title.toLowerCase();t.filteredPartly=!1;let o=r.includes(e),s=i==null||(n=i[t.id])==null?void 0:n.common;if(!o&&s!=null&&s.source)if(s.engineType===`Blockly`){let t=s.source.lastIndexOf(`//`);o=s.source.substring(0,t).toLowerCase().includes(e)}else o=s.source.toLowerCase().includes(e);o?t.filtered&&(t.filtered=!1,a=!0):t.filtered||(t.filtered=!0,a=!0)}),a)for(let e=t.length-1;e>=0;e--){let n=t[e];if(!n.filtered||n.filteredPartly){let e=n;do e!=null&&e.parent&&t[e.parentIndex]&&(a=!0,t[e.parentIndex].filteredPartly=!0),e=e!=null&&e.parent&&t[e.parentIndex]?t[e.parentIndex]:null;while(e)}}}else t.forEach(e=>{(e.filtered||e.filteredPartly)&&(e.filtered=!1,e.filteredPartly=!1,a=!0)}),e||(o.searchText=``,o.searchMode=!1,a=!0);return a?o:null}filterList(t,n){let r=e.filterListStatic(t,this.state.listItems,this.state.searchMode,this.state.searchText,this.props.scripts);r?this.setState(r,()=>n&&n()):n&&n()}static ensureSelectedIsVisibleStatic(e,t,n){t=JSON.parse(JSON.stringify(t));let r=!1,i=typeof e==`object`?e:n.find(t=>t.id===e);do{if(i!=null&&i.parent){let e=i.parent;i=n.find(t=>t.id===e)}else i=void 0;i&&(t.includes(i.id)||(t.push(i.id),r=!0))}while(i);return r?t:null}ensureSelectedIsVisible(t,n){return e.ensureSelectedIsVisibleStatic(t||this.state.selected,n||this.state.expanded,this.state.listItems)}static getDerivedStateFromProps(t,n){let r={},i=!1;if(n.expertMode!==t.expertMode&&(i=!0,r.expertMode=t.expertMode),n.scriptsHash!==t.scriptsHash&&t.scripts){let a=ga(t.scripts||{});if(r.listItems=a,n.searchText){let i=e.filterListStatic(!0,a,n.searchMode,n.searchText,t.scripts);i&&Object.assign(r,i)}let o=e.getIsAllZeroInstancesStatic(a,t.instances||[]),s=e.ensureSelectedIsVisibleStatic(n.selected,n.expanded,n.listItems);r.isAllZeroInstances=o,s&&(r.expanded=s),i=!0}if(n.width!==t.width&&(i=!0,r.width=t.width),n.themeName!==t.themeName&&(i=!0,r.themeName=t.themeName),t.selectId&&n.selected!==t.selectId){let a=n.listItems.find(e=>e.id===t.selectId);if(!n.reorder&&a){let t=e.ensureSelectedIsVisibleStatic(a,n.expanded,n.listItems);r.selected=a.id,t&&(r.expanded=t),i=!0,window.localStorage&&window.localStorage.setItem(`SideMenu.selected`,a.id)}}return i?r:null}static getIsAllZeroInstancesStatic(e,t){let n=!t[0]&&t.length<=1;return n&&e.forEach(e=>{e.type!==`folder`&&e.instance!==0&&(n=!1)}),n}getIsAllZeroInstances(t,n){return t||=this.state.listItems,n||=this.state.instances,e.getIsAllZeroInstancesStatic(t||this.state.listItems,n||this.state.instances)}saveExpanded(e){window.localStorage.setItem(`SideMenu.expanded`,JSON.stringify(e||this.state.expanded))}showError(e){this.setState({errorText:e})}onToggle(e,t){if(t==null||t.stopPropagation(),e===la)return;let n=[...this.state.expanded],r=n.indexOf(e);r===-1?(n.push(e),n.sort()):(n.splice(r,1),this.state.selected&&this.state.selected.startsWith(`${e}.`)&&window.localStorage&&window.localStorage.setItem(`SideMenu.selected`,e)),this.setState({expanded:n}),this.saveExpanded(n)}renderItemButtonsOnEnd(e,t){if(this.state.reorder)return null;if(e.type!==`folder`){let t=e.enabled?oa:ca;return e.enabled&&this.state.problems.includes(e.id)&&(t=sa),[C(G,{onClick:t=>{t.stopPropagation(),this.props.onEnableDisable&&this.props.onEnableDisable(e.id,!e.enabled)},title:e.enabled?U.t(`Pause script`):U.t(`Run script`),disabled:this.props.debugMode,style:{...Y.iconButtons,...this.props.debugMode?Y.iconButtonsDisabled:void 0,color:t},size:`medium`,children:e.enabled?C(Ft,{}):C(zt,{})},`startStop`),this.state.width>fa?C(G,{style:this.props.debugMode?Y.iconButtonsDisabled:void 0,title:U.t(`Delete script`),disabled:e.id===da||e.id===ua||this.props.debugMode,onClick:t=>this.onDelete(e,t),size:`medium`,children:C(nt,{})},`delete`):null,C(G,{style:this.props.debugMode?Y.iconButtonsDisabled:void 0,disabled:this.props.debugMode,title:U.t(`Edit script or just double click`),onClick:t=>this.onEdit(e,t),size:`medium`,children:C(Zt,{})},`openInEdit`)]}return this.state.width>fa&&e.id!==la&&e.id!==ua&&e.id!==da&&!(t!=null&&t.length)?C(G,{style:this.props.debugMode?Y.iconButtonsDisabled:void 0,title:U.t(`Delete folder`),disabled:e.id===da||e.id===ua||this.props.debugMode,onClick:t=>this.onDelete(e,t),size:`medium`,children:C(nt,{})},`delete`):null}onDelete(e,t){return t==null||t.stopPropagation(),new Promise(t=>{if(!e){t();return}typeof e==`object`?this.setState({deleting:e.id},()=>t()):this.setState({deleting:e},()=>t())})}onEdit(e,t){this.onClick(e,t),this.props.onEdit&&this.props.onEdit(e.id)}getTextStyle(e){return!this.state.reorder&&e.type!==`folder`?{width:`calc(100% - ${this.state.width>fa?185:137}px)`,overflow:`hidden`,whiteSpace:`nowrap`,flex:`none`,padding:`0 16px 0 0`}:{whiteSpace:`nowrap`,padding:`0 16px 0 0`}}onClick(e,t){if(t==null||t.stopPropagation(),!this.state.reorder&&e){let t=this.ensureSelectedIsVisible(e),n={selected:e.id};t&&(n.expanded=t),this.setState(n),window.localStorage&&window.localStorage.setItem(`SideMenu.selected`,e.id)}}onDblClick(e,t){t==null||t.stopPropagation(),!this.state.reorder&&(e.type===`folder`?this.onToggle(e.id):this.onEdit(e))}isFilteredOut(e){var t;return e.filtered&&!e.filteredPartly||this.state.typeFilter&&e.type!==`folder`&&e.type.toLowerCase()!==this.state.typeFilter.toLowerCase()||!this.state.expertMode&&(t=this.props.scripts[e.id])!=null&&(t=t.native)!=null&&t.protected||this.state.statusFilter&&e.type!==`folder`&&(this.state.statusFilter===`running`&&!e.enabled||this.state.statusFilter===`paused`&&e.enabled||this.state.statusFilter===`problems`&&(!e.enabled||!this.state.problems.includes(e.id)))?!0:e.id===da&&!this.state.expertMode}hasVisibleContent(e,t){return e.type===`folder`?t.some(n=>n.parent===e.id&&this.hasVisibleContent(n,t)):!this.isFilteredOut(e)}countDescendantScripts(e,t){let n=0,r=t.filter(t=>t.parent===e.id);for(let e of r)e.type===`folder`?n+=this.countDescendantScripts(e,t):n++;return n}countVisibleDescendantScripts(e,t){let n=0,r=t.filter(t=>t.parent===e.id);for(let e of r)e.type===`folder`?n+=this.countVisibleDescendantScripts(e,t):this.isFilteredOut(e)||n++;return n}renderListItem(e,t,n,r=0,i=0){var a;if(e.id===la&&!this.state.reorder)return null;let o=(this.state.reorder?e.depth:e.depth-1)*pa,s=e.title;if(this.state.searchText){let e=s.toLowerCase().indexOf(this.state.searchText.toLowerCase());e!==-1&&(s=[C(`span`,{children:s.substring(0,e)},`first`),C(`span`,{style:{color:`orange`},children:s.substring(e,e+this.state.searchText.length)},`second`),C(`span`,{children:s.substring(e+this.state.searchText.length)},`third`)])}if(!this.state.isAllZeroInstances&&e.type!==`folder`){let t=this.state.runningInstances[`system.adapter.javascript.${e.instance}`];s=[V(`span`,{title:`${U.t(`Instance`)} ${e.instance}${t?``:` (${U.t(`not running`)})`}`,style:{...Y.instances,color:t?oa:ca},children:[`[`,e.instance,`]`]},`instance`),C(`span`,{children:s},`title`)]}let c=this.state.reorder&&!this.props.debugMode,l={marginLeft:o,cursor:e.type===`folder`&&c?`default`:`inherit`,width:`calc(100% - ${o}px)`};c||(l.opacity=e.filteredPartly?.5:1),e.id===da&&e.id!==this.state.selected&&(l.color=`#00a200`);let u=e.id===la;!u&&t&&(u=this.state.expanded.includes(e.id));let d;d=e.type===`folder`?{...Y.folderIcon,...c?Y.folderIconReorder:Y.folderIconNoReorder}:{...Y.scriptIcon},e.id===da?d.color=`#356956`:e.id===ua&&(d.color=`#4899e1`);let f=null;if(e.type===`folder`&&r>0){let e=!!(this.state.statusFilter||this.state.typeFilter);f=C(`span`,{style:Y.childrenCount,children:e&&i!==r?`${i}(${r})`:r})}let p={...e.type===`folder`?Y.folder:Y.script,...c?Y.reorder:void 0,...c&&e.type!==`folder`?Y.scriptReorder:void 0,...c&&e.type===`folder`?Y.folderReorder:void 0,...l};return V(Ue,{style:p,sx:e.id===this.state.selected&&!c?Y.selected:void 0,className:Re.clsx(c&&e.type===`folder`&&`folder-reorder`,c&&e.type!==`folder`&&`script-reorder`),onClick:t=>this.onClick(e,t),onDoubleClick:t=>this.onDblClick(e,t),secondaryAction:this.renderItemButtonsOnEnd(e,t),children:[(a=this.props.scripts[e.id])!=null&&(a=a.native)!=null&&a.protected?C(Qt,{style:{color:`orange`,position:`absolute`,right:5,width:10,height:10}}):null,C(Se,{style:Y.listItemIcon,children:e.type===`folder`?C(c||u?ct:Te,{style:d,onClick:t=>!c&&this.onToggle(e.id,t)}):C(`img`,{style:d,alt:e.type,src:ma[e.type]||ma.def})}),C(Ct,{sx:{"& .MuiListItemText-primary":e.id===this.state.selected&&!c?Y.selected:void 0},style:this.getTextStyle(e),primary:V(`span`,{style:{display:`flex`,alignItems:`center`},children:[C(`span`,{style:{flex:1,overflow:`hidden`,textOverflow:`ellipsis`},children:s}),f]})})]},e.id)}onDragFinish(e,t){let n=`${t}.${e.split(`.`).pop()}`;n!==e&&(this.state.listItems.find(e=>e.id===n)&&(n+=`_${U.t(`copy`)}`),this.props.onRename&&this.props.onRename(e,n))}renderOneItem(e,t){let n=this.state.statusFilter||this.state.typeFilter?e.filter(n=>n.parent===t.id&&this.hasVisibleContent(n,e)):[],r=e.filter(e=>e.parent===t.id);if(this.isFilteredOut(t)||t.type===`folder`&&(this.state.statusFilter||this.state.typeFilter)&&!n.length)return null;let i=this.state.reorder&&!this.props.debugMode,a=t.type===`folder`?this.countDescendantScripts(t,e):0,o=t.type===`folder`&&(this.state.statusFilter||this.state.typeFilter)?this.countVisibleDescendantScripts(t,e):a,s=this.renderListItem(t,r,n,a,o),c=[],l;return r&&(i||this.state.expanded.includes(t.id)||t.id===la)&&(l=r.map(t=>this.renderOneItem(e,t)).reduce((e,t)=>t?e.concat(t.filter(e=>!!e)):e,[])),i?t.type===`folder`?c.push(V(_a,{onDrop:e=>this.onDragFinish(e.name,t.id),folderName:t.id,children:[C(va,{name:t.id,children:s},`draggable_${t.id}`),C(`div`,{children:l||null})]},`droppable_${t.id}`)):c.push(V(va,{name:t.id,children:[s,l||null]},`draggable_${t.id}`)):(c.push(s),l==null||l.forEach(e=>c.push(e))),c}renderAllItems(e){let t=e.filter(e=>!e.parent).map(t=>this.renderOneItem(e,t)).reduce((e,t)=>t?e.concat(t.filter(e=>!!e)):e,[]);return C(et,{dense:!0,disablePadding:!0,sx:Y.mainList,children:t})}onAddNew(e){e==null||e.stopPropagation();let t=this.state.listItems.find(e=>e.id===this.state.selected),n=la;for(;t&&t.type!==`folder`;)t=this.state.listItems[t.parentIndex];t&&(n=t.id),this.parent=n,this.setState({choosingType:!0})}onCopy(e,t){e==null||e.stopPropagation();let n=this.state.listItems.find(e=>e.id===t),r=la;for(;n&&n.type!==`folder`;)n=this.state.listItems[n.parentIndex];n&&(r=n.id),this.parent=r,this.setState({copingScript:t||``})}onAddNewFolder(e){e==null||e.stopPropagation();let t=this.state.listItems.find(e=>e.id===this.state.selected),n=la;for(;t&&t.type!==`folder`;)t=this.state.listItems[t.parentIndex];t&&(n=t.id),this.parent=n,this.setState({creatingFolder:!0})}onRename(e){e==null||e.stopPropagation(),this.setState({renaming:this.state.selected})}getUniqueName(e){let t=1,n=`${U.t(`Script`)} `;if(e){let r=ha(e,this.props.scripts[e]),i=r.match(/\d+$/);i?(n=r.replace(/\d+$/,``),t=parseInt(i[0],10)+1):n=r}for(;this.state.listItems.find(e=>e.id===`${this.parent}.${n.replace(/\.\s/g,`_`)}${t}`);)t++;return n+t}getUniqueFolderName(){let e=1;for(;this.state.listItems.find(t=>t.id===`${this.parent}.${U.t(`Folder`)}_${e}`);)e++;return`${U.t(`Folder`)} ${e}`}onCloseMenu(e){this.setState({menuOpened:!1,menuAnchorEl:null,menuAnchorFilterEl:null},e)}getMainMenu(e,t){var n,r;let i=this.state.expertMode&&!!Object.keys(this.props.changedScripts).find(e=>{var t;return this.props.changedScripts[e]&&((t=this.props.scripts[e])==null||(t=t.native)==null?void 0:t.protected)});return V(Ee,{id:`long-menu`,anchorEl:this.state.menuAnchorEl,open:this.state.menuOpened,onClose:()=>this.setState({menuOpened:!1,menuAnchorEl:null}),slotProps:{paper:{style:{maxHeight:aa*7.5}}},children:[this.state.width<=fa?V(Ot,{disabled:this.props.debugMode||!this.state.selected||this.state.selected===da||this.state.selected===ua||!!(e!=null&&e.length),onClick:e=>{if(e.stopPropagation(),e.preventDefault(),this.state.listItems.find(e=>e.parent===this.state.selected)){this.showError(U.t(`Cannot delete non empty item!`));return}this.setState({menuOpened:!1,menuAnchorEl:null},()=>this.onDelete(this.state.selected).then(()=>{}))},children:[C(nt,{style:{...Y.iconDropdownMenu,color:`red`}}),U.t(`Delete`)]},`delete`):null,V(Ot,{disabled:this.props.debugMode||i,selected:this.state.expertMode,onClick:e=>{e.stopPropagation(),e.preventDefault(),this.onCloseMenu(()=>this.props.onExpertModeChange&&this.props.onExpertModeChange(!this.state.expertMode))},children:[C(At,{style:{...Y.iconDropdownMenu,color:this.state.expertMode?`orange`:`inherit`}}),U.t(`Expert mode`)]},`expertMode`),this.props.onExport&&V(Ot,{onClick:e=>{e.stopPropagation(),e.preventDefault(),this.onCloseMenu(()=>this.setState({showExportDialog:!0}))},children:[C(at,{style:Y.iconDropdownMenu}),U.t(`Export all scripts`)]},`exportAll`),this.props.onImport&&V(Ot,{disabled:this.props.debugMode,onClick:e=>{e.stopPropagation(),e.preventDefault(),this.onCloseMenu(()=>this.props.onImport())},children:[C(ht,{style:Y.iconDropdownMenu}),U.t(`Import scripts`)]},`import`),this.props.onThemeChange&&V(Ot,{onClick:()=>this.onCloseMenu(()=>{this.props.onThemeChange&&this.props.onThemeChange(Re.toggleTheme(this.state.themeName))}),children:[C(en,{style:Y.iconDropdownMenu}),U.t(`Change theme (actual "%s")`,this.state.themeName)]},`dark`),this.props.onAddNew&&V(Ot,{disabled:!this.state.selected||!t||t.type===`folder`,onClick:e=>{let t=this.state.selected;this.onCloseMenu(()=>this.onCopy(e,t))},children:[C(Ve,{style:Y.iconDropdownMenu}),U.t(`Copy script`)]},`copy`),this.state.expertMode&&V(Ot,{disabled:this.props.debugMode,onClick:e=>{e.stopPropagation(),e.preventDefault(),this.onCloseMenu(()=>this.setState({showAdapterDebug:!0}))},children:[C(Yt,{style:Y.iconDropdownMenu}),U.t(`Debug instance`)]},`debugInstance`),this.state.selected&&this.props.password&&this.props.scripts[this.state.selected].type===`script`?V(Ot,{disabled:this.props.debugMode||this.props.changedScripts[this.state.selected],onClick:e=>{e.stopPropagation(),e.preventDefault(),this.onCloseMenu(async()=>{let e=await this.props.socket.getObject(this.state.selected);if(e){var t;(t=e.native)!=null&&t.protected?(delete e.native.protected,e.common.source=ia(this.props.password,e.common.source||``)):(e.native||={},e.native.protected=!0,e.common.source=ra(this.props.password,e.common.source||``)),await this.props.socket.setObject(e._id,e)}})},children:[C(Qt,{style:{...Y.iconDropdownMenu,color:`orange`}}),(n=this.props.scripts[this.state.selected])!=null&&(n=n.native)!=null&&n.protected?C(`span`,{style:{color:(r=this.props.scripts[this.state.selected])!=null&&(r=r.native)!=null&&r.protected?`orange`:void 0},children:U.t(`Unprotect script`)}):U.t(`Protect script`)]},`encrypt`):null]},`menu`)}getToolbarButtons(){let e=[],t=this.state.reorder&&!this.props.debugMode;if(this.state.searchMode&&!this.props.debugMode)e.push(C(St,{value:this.state.searchText,style:Y.toolbarSearch,ref:this.inputRef,autoFocus:!0,placeholder:U.t(`Search...`),onChange:e=>{this.setState({searchText:e.target.value}),this.filterTimer&&clearTimeout(this.filterTimer),this.filterTimer=setTimeout(()=>{this.filterTimer=null,this.filterList(!0),this.props.onSearch&&this.props.onSearch(this.state.searchText)},400)}},`searchInput`)),e.push(C(G,{sx:Y.toolbarButtons,style:{float:`right`},title:U.t(`End search mode`),onClick:e=>{e.stopPropagation(),this.filterList(!1,()=>this.props.onSearch&&this.props.onSearch(this.state.searchText))},size:`medium`,children:C(Xt,{})},`disableSearch`)),this.state.searchText&&e.push(C(G,{title:U.t(`Clear search input`),sx:Y.toolbarButtons,style:{marginTop:7,float:`right`},onClick:e=>{e.stopPropagation(),this.setState({searchText:``},()=>{this.filterList(!0),this.props.onSearch&&this.props.onSearch(this.state.searchText)})},size:`medium`,children:C(wt,{fontSize:`small`})},`cleanSearch`));else{if(!t){e.push(C(G,{"aria-label":`More`,"aria-owns":this.state.menuOpened?`long-menu`:void 0,title:U.t(`Menu`),"aria-haspopup":`true`,onClick:e=>{e.stopPropagation(),e.preventDefault(),this.setState({menuOpened:!0,menuAnchorEl:e.currentTarget})},size:`medium`,children:C($t,{})},`menuButton`));let n=this.state.listItems.find(e=>e.id===this.state.selected),r;n&&this.state.width<=fa&&n.type===`folder`&&(r=this.state.listItems.filter(e=>e.parent===this.state.selected)),e.push(this.getMainMenu(r,n)),e.push(C(G,{disabled:this.props.debugMode,title:U.t(`Create new script`),sx:{...Y.toolbarButtons,...this.props.debugMode?Y.iconButtonsDisabled:void 0},style:{color:t?`red`:`inherit`},onClick:e=>this.onAddNew(e),size:`medium`,children:C(se,{})},`new-script`)),e.push(C(G,{disabled:this.props.debugMode,title:U.t(`Create new folder`),sx:{...Y.toolbarButtons,...this.props.debugMode?Y.iconButtonsDisabled:void 0},style:{color:t?`red`:`inherit`},onClick:e=>this.onAddNewFolder(e),size:`medium`,children:C(Ge,{})},`new-folder`))}e.push(C(G,{disabled:t||this.props.debugMode,sx:{...Y.toolbarButtons,...this.props.debugMode?Y.iconButtonsDisabled:void 0},title:U.t(`Search in scripts`),style:{float:`right`,opacity:this.props.debugMode?.5:+!t},onClick:e=>{e.stopPropagation(),this.setState({searchMode:!0})},size:`medium`,children:C(tn,{})},`search`)),e.push(C(G,{disabled:this.props.debugMode,title:U.t(`Reorder scripts in folders`),sx:{...Y.toolbarButtons,...this.props.debugMode?Y.iconButtonsDisabled:void 0},style:{color:t?`red`:`inherit`,float:`right`},onClick:e=>{e.stopPropagation(),this.setState({reorder:!this.state.reorder})},size:`medium`,children:C(nn,{})},`reorder`)),!t&&this.state.selected&&this.state.selected!==da&&this.state.selected!==ua&&e.push(C(G,{sx:{...Y.toolbarButtons,...this.props.debugMode?Y.iconButtonsDisabled:void 0},disabled:this.props.debugMode,title:U.t(`Rename`),onClick:e=>this.onRename(e),size:`medium`,children:C(dt,{})},`rename`)),e.push(V(`span`,{style:{opacity:.5,fontSize:10},children:[`v`,this.props.version]},`version`))}return e}getFolders(){let e=[{id:la,name:U.t(`Root folder`)}];return this.state.listItems.forEach(t=>{t.type===`folder`&&t.id!==la&&(!t.id.startsWith(da)||this.state.expertMode)&&e.push({id:t.id,name:t.title})}),e}onCollapseAll(){this.setState({expanded:[]}),this.saveExpanded([])}onExpandAll(){let e=[];this.state.listItems.forEach(t=>this.state.listItems.find(e=>e.parent===t.id)&&e.push(t.id)),this.setState({expanded:e}),this.saveExpanded(e)}getBottomButtons(){return this.state.reorder||this.props.debugMode?null:[C(A,{sx:Y.footerButtons,title:U.t(`Show only running scripts`),onClick:e=>{e.stopPropagation(),e.preventDefault();let t=this.state.statusFilter===`running`?``:`running`;window.localStorage&&window.localStorage.setItem(`SideMenu.statusFilter`,t),this.setState({statusFilter:t})},children:C(Ft,{style:{color:oa,opacity:this.state.statusFilter===`running`?1:.3,background:this.state.statusFilter===`running`?`gray`:`inherit`}})},`filterByRunning`),C(A,{sx:Y.footerButtons,title:U.t(`Show only paused scripts`),onClick:()=>{let e=this.state.statusFilter===`paused`?``:`paused`;window.localStorage&&window.localStorage.setItem(`SideMenu.statusFilter`,e),this.setState({statusFilter:e})},children:C(zt,{style:{color:ca,opacity:this.state.statusFilter===`paused`?1:.3,background:this.state.statusFilter===`paused`?`gray`:`inherit`}})},`filterByPaused`),C(A,{sx:Y.footerButtons,style:{marginRight:16},title:U.t(`Show only scripts with problems`),onClick:()=>{let e=this.state.statusFilter===`problems`?``:`problems`;window.localStorage&&window.localStorage.setItem(`SideMenu.statusFilter`,e),this.setState({statusFilter:e})},children:C(Ft,{style:{color:sa,opacity:this.state.statusFilter===`problems`?1:.3,background:this.state.statusFilter===`problems`?`gray`:`inherit`}})},`filterByProblem`),C(A,{sx:Y.footerButtons,children:C(`img`,{alt:`Blockly`,style:{opacity:this.state.typeFilter===`Blockly`?1:.3,background:this.state.typeFilter===`Blockly`?`gray`:`inherit`},src:ma.Blockly||ma.def,onClick:()=>{let e=this.state.typeFilter===`Blockly`?``:`Blockly`;window.localStorage&&window.localStorage.setItem(`SideMenu.typeFilter`,e),this.setState({typeFilter:e})}})},`filterBlockly`),C(A,{sx:Y.footerButtons,children:C(`img`,{alt:`Javascript`,style:{opacity:this.state.typeFilter===`Javascript/js`?1:.3,background:this.state.typeFilter===`Javascript/js`?`gray`:`inherit`},src:ma[`Javascript/js`]||ma.def,onClick:()=>{let e=this.state.typeFilter===`Javascript/js`?``:`Javascript/js`;window.localStorage&&window.localStorage.setItem(`SideMenu.typeFilter`,e),this.setState({typeFilter:e})}})},`filterJS`),C(A,{sx:Y.footerButtons,children:C(`img`,{alt:`TypeScript`,style:{opacity:this.state.typeFilter===`TypeScript/ts`?1:.3,background:this.state.typeFilter===`TypeScript/ts`?`gray`:`inherit`},src:ma[`TypeScript/ts`]||ma.def,onClick:()=>{let e=this.state.typeFilter===`TypeScript/ts`?``:`TypeScript/ts`;window.localStorage&&window.localStorage.setItem(`SideMenu.typeFilter`,e),this.setState({typeFilter:e})}})},`filterTS`),C(A,{sx:Y.footerButtons,children:C(`img`,{alt:`Rules`,style:{opacity:this.state.typeFilter===`Rules`?1:.3,background:this.state.typeFilter===`Rules`?`gray`:`inherit`},src:ma.Rules||ma.def,onClick:()=>{let e=this.state.typeFilter===`Rules`?``:`Rules`;window.localStorage&&window.localStorage.setItem(`SideMenu.typeFilter`,e),this.setState({typeFilter:e})}})},`filterRules`),C(`div`,{style:{flexGrow:1}},`padding`),C(A,{sx:Y.footerButtons,onClick:()=>this.onExpandAll(),title:U.t(`Expand all`),children:C(an,{style:Y.footerButtonsRight})},`expandAll`),this.state.expanded.length?C(A,{sx:Y.footerButtons,onClick:()=>this.onCollapseAll(),title:U.t(`Collapse all`),children:C(rn,{style:Y.footerButtonsRight})},`collapseAll`):C(`div`,{style:{height:22,width:24}})]}getAdapterDebugDialog(){return this.state.showAdapterDebug?C(Xi,{socket:this.props.socket,onClose:()=>this.setState({showAdapterDebug:!1}),onDebug:(e,t)=>this.setState({showAdapterDebug:!1},()=>this.props.onDebugInstance({instance:e,adapter:t}))},`debug`):null}render(){var e,t;let n=this.state.renaming?this.state.listItems.find(e=>e.id===this.state.renaming):void 0,r=this.state.copingScript&&this.props.scripts[this.state.copingScript].type===`script`?this.props.scripts[this.state.copingScript]:void 0;return[V(yt,{variant:`permanent`,style:Y.menu,sx:{"& .MuiDrawer-paper":Y.drawerPaper},anchor:`left`,onClick:()=>this.onClick({id:``}),children:[C(A,{sx:Y.toolbar,children:this.getToolbarButtons()}),C(Ne,{}),C(ii,{backend:Fi,children:C(`div`,{style:Y.innerMenu,children:this.renderAllItems(this.state.listItems)})}),C(Ne,{}),C(`div`,{style:Y.footer,children:this.getBottomButtons()})]},`drawer`),n?C(Bi,{name:n.title,id:this.state.renaming||``,folder:n.type===`folder`,instance:n.instance,instances:this.props.instances,instanceHosts:this.props.instanceHosts,onClose:()=>this.setState({renaming:null}),onRename:(e,t,n,r)=>this.props.onRename&&this.props.onRename(e,t,n,r)},`dialog-rename`):null,this.state.deleting?C(Vi,{name:this.state.listItems.find(e=>e.id===this.state.deleting).title,id:this.state.deleting,onClose:()=>this.setState({deleting:null}),onDelete:e=>this.props.onDelete&&this.props.onDelete(e)},`dialog-delete`):null,this.state.choosingType?C(qi,{onClose:e=>{let t={choosingType:!1};e&&(t.creatingScript=e),this.setState(t)}},`dialog-script-type`):null,this.state.creatingScript?C(Ji,{onClose:()=>this.setState({creatingScript:null}),title:U.t(`Create new script`),name:this.getUniqueName(),parents:this.getFolders(),folder:!1,existingItems:this.state.listItems.map(e=>e.id),instance:this.props.instances[0]||0,instances:this.props.instances,type:this.state.creatingScript,parent:this.parent,onAdd:(e,t,n,r)=>this.props.onAddNew&&this.props.onAddNew(e,t,!1,n,r)},`dialog-new-script`):null,this.state.copingScript?C(Ji,{onClose:()=>this.setState({copingScript:``}),title:U.t(`Copy script`),name:this.getUniqueName(this.state.copingScript),parents:this.getFolders(),folder:!1,instance:parseInt(r==null||(e=r.common)==null||(e=e.engine)==null?void 0:e.split(`.`).pop(),10)||0,instances:this.props.instances,type:(r==null||(t=r.common)==null?void 0:t.engineType)||`Javascript/js`,parent:this.parent,onAdd:(e,t,n,r)=>{var i;let a=this.state.copingScript&&this.props.scripts[this.state.copingScript].type===`script`?this.props.scripts[this.state.copingScript]:void 0;a!=null&&a.common&&(a.common.enabled=!1),this.props.onAddNew&&this.props.onAddNew(e,t,!1,n,r,a==null||(i=a.common)==null?void 0:i.source)}},`dialog-copy-script`):null,this.state.creatingFolder?C(Ji,{onClose:()=>this.setState({creatingFolder:!1}),title:U.t(`Create new folder`),parents:this.getFolders(),name:this.getUniqueFolderName(),parent:this.parent,onAdd:(e,t)=>this.props.onAddNew&&this.props.onAddNew(e,t,!0)},`dialog-new-folder`):null,this.state.errorText?C(Gt,{onClose:()=>this.setState({errorText:``}),text:this.state.errorText},`error`):null,this.getAdapterDebugDialog(),this.state.showExportDialog?V(ye,{open:!0,onClose:()=>this.setState({showExportDialog:!1}),children:[C(o,{children:U.t(`Export all scripts`)}),V(_e,{children:[C(q,{variant:`contained`,onClick:()=>{this.setState({showExportDialog:!1}),this.props.onExport(!0)},color:`primary`,children:U.t(`as JSON`)}),C(q,{variant:`contained`,onClick:()=>{this.setState({showExportDialog:!1}),this.props.onExport(!1)},color:`grey`,children:U.t(`as plain text`)}),C(q,{variant:`contained`,onClick:()=>this.setState({showExportDialog:!1}),color:`primary`,children:U.t(`Cancel`)})]})]},`dialog-export-format`):null]}};K();var ba=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgAQMAAADYVuV7AAAABlBMVEUAAAAzMzPI8eYgAAAAAXRSTlMAQObYZgAAACFJREFUeAFjAIJRwP////8PYIKWHCigNQdKj/pn1D+jAABTG16wVQqVpQAAAABJRU5ErkJggg==`,xa=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgAQMAAADYVuV7AAAABlBMVEUAAAAzMzPI8eYgAAAAAXRSTlMAQObYZgAAABtJREFUeAFjAIJRwP8fCj7QkENn/4z6Z5QzCgBjbWaoyx1PqQAAAABJRU5ErkJggg==`;function Sa(e){let t,n=e.getHours();return n<10&&(n=`0${n.toString()}`),t=`${n}:`,n=e.getMinutes(),n<10&&(n=`0${n.toString()}`),t+=`${n}:`,n=e.getSeconds(),n<10&&(n=`0${n.toString()}`),t+=`${n}.`,n=e.getMilliseconds(),n<10?n=`00${n.toString()}`:n<100&&(n=`0${n.toString()}`),t+=n,t}var Ca=34,wa={logBox:{width:`100%`,height:`100%`,position:`relative`,overflow:`hidden`},logBoxInner:e=>({display:`inline-block`,color:e.palette.mode===`dark`?`white`:`black`,width:`calc(100% - ${Ca}px)`,height:`100%`,overflow:`auto`,position:`relative`,verticalAlign:`top`}),info:e=>({background:e.palette.mode===`dark`?`darkgrey`:`lightgrey`,color:(e.palette.mode,`black`)}),error:e=>({background:`#FF0000`,color:e.palette.mode===`dark`?`black`:`white`}),warn:e=>({background:`#FF8000`,color:e.palette.mode===`dark`?`black`:`white`}),debug:e=>({background:`gray`,opacity:.8,color:e.palette.mode===`dark`?`black`:`white`}),silly:e=>({background:`gray`,opacity:.6,color:e.palette.mode===`dark`?`black`:`white`}),table:{fontFamily:`monospace`,width:`100%`},toolbox:{width:Ca,height:`100%`,boxShadow:`2px 0px 4px -1px rgba(0, 0, 0, 0.2), 4px 0px 5px 0px rgba(0, 0, 0, 0.14), 1px 0px 10px 0px rgba(0, 0, 0, 0.12)`,display:`inline-block`,verticalAlign:`top`,overflow:`hidden`},trFrom:{width:90},trTime:{width:90},trSeverity:{width:40,fontWeight:`bold`},trPreMessage:{padding:0,margin:0},iconButtons:{width:32,height:32,padding:4},layoutIcon:e=>({"& img":{width:24,height:24,background:e.palette.mode===`dark`?`#9d9d9d`:void 0,borderRadius:e.palette.mode===`dark`?`30px`:void 0}})};function Ta(e){return e<10?`00${e}`:e<100?`0${e}`:e.toString()}var Ea={},Da=class e extends H.Component{constructor(t){super(t),W(this,`messagesEnd`,void 0),W(this,`logHandler`,t=>{let n=this.state.lines,r=this.state.editing.filter(e=>t.message.includes(e)),i=null;if(!r.length||(r.length===1?i=r[0]:(r.sort(),i=r[r.length-1]),!i))return;let a=n[i]||[],o=Ea[i]||[];a.push(e.generateLine(t,i));let s=t.severity;(s===`info`||s===`warn`)&&(s+=` `);let c=new Date(t.ts);if(o.push(`${c.toLocaleString()}.${Ta(c.getMilliseconds())}\t[${s}]: ${t.message}`),a.length>300){let e=a.length-300;a.splice(0,e),o.splice(0,e)}Ea[i]=o,n[i]=a,this.setState({lines:n})}),this.state={lines:{},goBottom:!0,selected:null,editing:this.props.editing||[]},this.messagesEnd=H.createRef()}static generateLine(e,t){let n=e.message||``;if(typeof n!=`object`){let t=RegExp(`${e.from.replace(`.`,`\\.`).replace(`)`,`\\)`).replace(`(`,`\\(`)} \\(\\d+\\) `,`g`),r=n.match(t);n=r?n.replace(r[0],``):n.replace(`${e.from} `,``)}return n.startsWith(`${t}: `)&&(n=n.substring(t.length+2)),V(A,{component:`tr`,sx:wa[e.severity],children:[C(`td`,{style:wa.trFrom,children:e.from}),C(`td`,{style:wa.trTime,children:Sa(new Date(e.ts))}),C(`td`,{style:wa.trSeverity,children:e.severity}),C(`td`,{children:C(`pre`,{style:wa.trPreMessage,children:n})})]},`tr_${e.ts}_${e.message.substring(e.message.length-10)}`)}scrollToBottom(){var e;(e=this.messagesEnd)==null||(e=e.current)==null||e.scrollIntoView({behavior:`smooth`})}componentDidMount(){this.props.socket.registerLogHandler(this.logHandler)}componentWillUnmount(){this.props.socket.unregisterLogHandler(this.logHandler)}componentDidUpdate(){this.state.goBottom&&this.scrollToBottom()}static getDerivedStateFromProps(e,t){let n=!1,r={};if(e.selected!==t.selected){let i=e.selected,a=t.lines;i&&(a[i]=a[i]||[],Ea[i]=Ea[i]||[]),r.selected=i,n=!0}if(JSON.stringify(e.editing)!==JSON.stringify(t.editing)){let i=JSON.parse(JSON.stringify(e.editing));n=!0;let a=t.lines;for(let e in Ea)Object.prototype.hasOwnProperty.call(Ea,e)&&(i.includes(e)||(delete Ea[e],delete a[e]));r.editing=i}return n?r:null}onCopy(){Re.copyToClipboard((Ea[this.state.selected]||[]).join(`
|
|
4
|
+
`))}clearLog(){let e=this.state.lines;e[this.state.selected]&&(e[this.state.selected]=[]),Ea[this.state.selected]&&(Ea[this.state.selected]=[]),this.setState({lines:e})}renderLogList(e){return this.state.selected&&e!=null&&e.length?V(A,{sx:wa.logBoxInner,children:[C(`table`,{style:wa.table,children:C(`tbody`,{children:e})},`logTable`),C(`div`,{ref:this.messagesEnd,style:{float:`left`,clear:`both`}},`logScrollPoint`)]},`logList`):C(A,{sx:wa.logBoxInner,style:{paddingLeft:10},children:U.t(`Log outputs`)},`logList`)}render(){let e=this.state.selected?this.state.lines[this.state.selected]:null;return V(`div`,{style:wa.logBox,children:[V(`div`,{style:wa.toolbox,children:[C(G,{style:wa.iconButtons,onClick:()=>this.setState({goBottom:!this.state.goBottom}),color:this.state.goBottom?`secondary`:void 0,size:`medium`,children:C(ge,{})}),e!=null&&e.length?C(G,{style:wa.iconButtons,onClick:()=>this.clearLog(),size:`medium`,children:C(O,{})}):null,e!=null&&e.length?C(G,{style:wa.iconButtons,onClick:()=>this.onCopy(),size:`medium`,children:C(g,{})}):null,this.props.onLayoutChange?C(G,{style:wa.iconButtons,onClick:()=>this.props.onLayoutChange&&this.props.onLayoutChange(),title:U.t(`Change layout`),size:`medium`,sx:wa.layoutIcon,children:C(`img`,{alt:`split`,src:this.props.verticalLayout?ba:xa})}):null,C(G,{style:wa.iconButtons,onClick:()=>this.props.onHideLog(),title:U.t(`Hide logs`),size:`medium`,children:C(re,{})})]},`toolbox`),this.renderLogList(e)]})}},Oa=`focus-outline-hidden`;function ka(){var e=this;document.addEventListener(`keydown`,function(t){e.focusByKeyboard=!0},!0),document.addEventListener(`mousedown`,function(t){e.focusByKeyboard=!1},!0),document.addEventListener(`focus`,function(t){e.updateVisibility()},!0),document.addEventListener(`focusout`,function(t){window.setTimeout(function(){document.hasFocus()||(e.focusByKeyboard=!0,e.updateVisibility())},0)}),this.updateVisibility()}ka.prototype={focusByKeyboard:!0,updateVisibility:function(){this.hidden=!this.focusByKeyboard},set hidden(e){document.documentElement.classList.toggle(Oa,e)},get hidden(){return document.documentElement.classList.contains(Oa)}},new ka;var Aa=r(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var t=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var a=typeof i;if(a===`string`||a===`number`)t.push(i);else if(Array.isArray(i)){if(i.length){var o=n.apply(null,i);o&&t.push(o)}}else if(a===`object`)if(i.toString===Object.prototype.toString)for(var s in i)e.call(i,s)&&i[s]&&t.push(s);else t.push(i.toString())}}return t.join(` `)}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()})),ja=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=e.easeFunctions={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:-1+(4-2*e)*e},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},n=e.isNumeric=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};e.setPosition=function(e,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:`easeInOutCubic`;return r>i?n:e+(n-e)*t[a](r/i)},e.calcEndPoint=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n(e))return parseInt(e)+r;var i=t===window||t===document.documentElement?window.pageYOffset:t.scrollTop-t.getBoundingClientRect().top;return(e.nodeName.toLowerCase()===`html`?-i:e.getBoundingClientRect().top+i)+r}})),Ma=r(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r=ja();e.default=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.duration,a=i===void 0?500:i,o=t.context,s=o===void 0?window:o,c=t.offset,l=c===void 0?0:c,u=t.ease,d=u===void 0?`easeInOutCubic`:u,f=t.callback;if((typeof window>`u`?`undefined`:n(window))===`object`){var p=s.scrollTop!==null&&s.scrollTop!==void 0?s.scrollTop:window.pageYOffset,m=(0,r.calcEndPoint)(e,s,l),h=performance.now(),g=window.requestAnimationFrame;(function t(){var n=performance.now()-h,i=(0,r.setPosition)(p,m,n,a,d);s===window?window.scroll(0,i):s.scrollTop=i,n>a?typeof f==`function`&&f(e):g(t)})()}},t.exports=e.default})),Na=r(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=i(Ma());function i(e){return e&&e.__esModule?e:{default:e}}e.default=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.query,i=t===void 0?`[href^="#"]:not([href="#"]`:t,a=e.match,o=a===void 0?function(e){return document.getElementById(e.hash.substring(1))}:a,s=e.hashChange,c=s===void 0||s,l=e.scrollSmoothConfig,u=document.querySelectorAll(i),d=function(e){e.preventDefault();var t=o(e.target);t&&(c&&history.replaceState(null,null,`#`+t.id),(0,r.default)(t,n({},l)))};Array.from(u).map(function(e){e.addEventListener(`click`,d,!1)})},t.exports=e.default})),Pa=r(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}e.default=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.activeClass,r=t===void 0?`active`:t,i=e.query,a=i===void 0?`[href^="#"]:not([href="#"]):not([href="#0"])`:i,o=e.threshold,s=o===void 0?[.25,.5,.75]:o,c=e.detectType,l=c===void 0?`max`:c,u={threshold:s},d=function(e){return e.classList.remove(r)},f=function(e){return e.classList.add(r)},p=function(){document.querySelectorAll(`.`+r).forEach(d)},m=function(e){p(),f(document.querySelector(`a[href="#`+e.id+`"]`))},h=function(e){e.forEach(function(e){e.intersectionRatio>=Math[l].apply(Math,n(s))&&m(e.target)})},g=document.querySelectorAll(a),_=new IntersectionObserver(h,u);g.forEach(function(e){var t=document.querySelector(`#`+e.hash.slice(1));_.observe(t)})},t.exports=e.default})),Fa=r(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=o(Ma()),r=ja(),i=o(Na()),a=o(Pa());function o(e){return e&&e.__esModule?e:{default:e}}e.default={to:n.default,calcEndPoint:r.calcEndPoint,anchorScroll:i.default,observe:a.default},t.exports=e.default})),Ia=r(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([],n):typeof t==`object`&&t.exports?t.exports=n():e.Scrollparent=n()})(e,function(){var e=/(auto|scroll)/,t=function(e,n){return e.parentNode===null?n:t(e.parentNode,n.concat([e]))},n=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},r=function(e){return n(e,`overflow`)+n(e,`overflow-y`)+n(e,`overflow-x`)},i=function(t){return e.test(r(t))};return function(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var n=t(e.parentNode,[]),r=0;r<n.length;r+=1)if(i(n[r]))return n[r];return document.scrollingElement||document.documentElement}}})})),La=r(((e,t)=>{var n=NaN,r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,c=typeof global==`object`&&global&&global.Object===Object&&global,l=typeof self==`object`&&self&&self.Object===Object&&self,u=c||l||Function(`return this`)(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return u.Date.now()};function h(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,h=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=y(t)||0,g(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?f(y(n.maxWait)||0,t):a,h=`trailing`in n?!!n.trailing:h);function _(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function v(e){return l=e,s=setTimeout(S,t),u?_(e):o}function b(e){var n=e-c,r=e-l,i=t-n;return d?p(i,a-r):i}function x(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function S(){var e=m();if(x(e))return C(e);s=setTimeout(S,b(e))}function C(e){return s=void 0,h&&r?_(e):(r=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function T(){return s===void 0?o:C(m())}function E(){var e=m(),n=x(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return v(c);if(d)return s=setTimeout(S,t),_(c)}return s===void 0&&(s=setTimeout(S,t)),o}return E.cancel=w,E.flush=T,E}function g(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _(e){return!!e&&typeof e==`object`}function v(e){return typeof e==`symbol`||_(e)&&d.call(e)==`[object Symbol]`}function y(e){if(typeof e==`number`)return e;if(v(e))return n;if(g(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=g(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(r,``);var c=a.test(e);return c||o.test(e)?s(e.slice(2),c?2:8):i.test(e)?n:+e}t.exports=h})),Ra=t(Aa()),za=t(Fa()),Ba=t(Ia()),Va=t(La());function Ha(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ua=`data-focus-lock`,Wa=`data-focus-lock-disabled`,Ga=`data-no-focus-lock`,Ka=`data-autofocus-inside`,qa=`data-no-autofocus`;function Ja(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}K();function Ya(e,t){var n=We(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}K();var Xa=typeof window<`u`?Me:ke,Za=new WeakMap;function Qa(e,t){var n=Ya(t||null,function(t){return e.forEach(function(e){return Ja(e,t)})});return Xa(function(){var t=Za.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Ja(e,null)}),i.forEach(function(e){r.has(e)||Ja(e,a)})}Za.set(n,e)},[e]),n}K();var $a={width:`1px`,height:`0px`,padding:0,overflow:`hidden`,position:`fixed`,top:`1px`,left:`1px`},eo=function(){return eo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},eo.apply(this,arguments)};function to(e){return e}function no(e,t){t===void 0&&(t=to);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function ro(e,t){return t===void 0&&(t=to),no(e,t)}function io(e){e===void 0&&(e={});var t=no(null);return t.options=eo({async:!0,ssr:!1},e),t}var ao=ro({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),oo=ro(),so=ro(),co=io({async:!0,ssr:typeof document<`u`});K();var lo=a(void 0);K();var uo=[],fo=it(function(e,t){var n,r=We(),i=r[0],a=r[1],o=tt(),s=tt(!1),c=tt(null),l=We({})[1],d=e.children,f=e.disabled,p=f!==void 0&&f,m=e.noFocusGuards,h=m!==void 0&&m,g=e.persistentFocus,_=g!==void 0&&g,v=e.crossFrame,y=v===void 0||v,b=e.autoFocus,x=b===void 0||b;e.allowTextSelection;var S=e.group,C=e.className,w=e.whiteList,T=e.hasPositiveIndices,E=e.shards,D=E===void 0?uo:E,O=e.as,k=O===void 0?`div`:O,A=e.lockProps,j=A===void 0?{}:A,M=e.sideCar,ee=e.returnFocus,N=ee!==void 0&&ee,P=e.focusOptions,F=e.onActivation,I=e.onDeactivation,L=We({})[0],R=st(function(e){var t=e.captureFocusRestore;if(!c.current){var n,r=(n=document)==null?void 0:n.activeElement;c.current=r,r!==document.body&&(c.current=t(r))}o.current&&F&&F(o.current),s.current=!0,l()},[F]),z=st(function(){s.current=!1,I&&I(o.current),l()},[I]),te=st(function(e){var t=c.current;if(t){var n=(typeof t==`function`?t():t)||document.body,r=typeof N==`function`?N(n):N;if(r){var i=typeof r==`object`?r:void 0;c.current=null,e?Promise.resolve().then(function(){return n.focus(i)}):n.focus(i)}}},[N]),ne=st(function(e){s.current&&ao.useMedium(e)},[]),re=oo.useMedium,ie=st(function(e){o.current!==e&&(o.current=e,a(e))},[]),B=u((n={},n[Wa]=p&&`disabled`,n[Ua]=S,n),j),ae=h!==!0,oe=ae&&h!==`tail`,se=Qa([t,ie]),ce=Le(function(){return{observed:o,shards:D,enabled:!p,active:s.current}},[p,s.current,D,i]);return H.createElement($e,null,ae&&[H.createElement(`div`,{key:`guard-first`,"data-focus-guard":!0,tabIndex:p?-1:0,style:$a}),T?H.createElement(`div`,{key:`guard-nearest`,"data-focus-guard":!0,tabIndex:p?-1:1,style:$a}):null],!p&&H.createElement(M,{id:L,sideCar:co,observed:i,disabled:p,persistentFocus:_,crossFrame:y,autoFocus:x,whiteList:w,shards:D,onActivation:R,onDeactivation:z,returnFocus:te,focusOptions:P,noFocusGuards:h}),H.createElement(k,u({ref:se},B,{className:C,onBlur:re,onFocus:ne}),H.createElement(lo.Provider,{value:ce},d)),oe&&H.createElement(`div`,{"data-focus-guard":!0,tabIndex:p?-1:0,style:$a}))});fo.propTypes={};function po(e,t){return po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},po(e,t)}function mo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,po(e,t)}K();function ho(e,t){function n(e){return e.displayName||e.name||`Component`}return function(r){var i=[],a;function o(){a=e(i.map(function(e){return e.props})),t(a)}var s=function(e){mo(t,e);function t(){return e.apply(this,arguments)||this}t.peek=function(){return a};var n=t.prototype;return n.componentDidMount=function(){i.push(this),o()},n.componentDidUpdate=function(){o()},n.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),o()},n.render=function(){return H.createElement(r,this.props)},t}(Be);return ln(s,`displayName`,`SideEffect(`+n(r)+`)`),s}}var go=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},_o=function(e){return Array.isArray(e)?e:[e]},vo=function(e){return Array.isArray(e)?e[0]:e},yo=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue(`display`)===`none`||t.getPropertyValue(`visibility`)===`hidden`},bo=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},xo=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},So=function(e){return e.hasAttribute(`inert`)},Co=function(e,t){return!e||xo(e)||!yo(e)&&!So(e)&&t(bo(e))},wo=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=Co(t,wo.bind(void 0,e));return e.set(t,r),r},To=function(e,t){return e&&!xo(e)?Mo(e)?t(bo(e)):!1:!0},Eo=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=To(t,Eo.bind(void 0,e));return e.set(t,r),r},Do=function(e){return e.dataset},Oo=function(e){return e.tagName===`BUTTON`},ko=function(e){return e.tagName===`INPUT`},Ao=function(e){return ko(e)&&e.type===`radio`},jo=function(e){return!((ko(e)||Oo(e))&&(e.type===`hidden`||e.disabled))},Mo=function(e){var t=e.getAttribute(qa);return![!0,`true`,``].includes(t)},No=function(e){var t;return!!(e&&(t=Do(e))!=null&&t.focusGuard)},Po=function(e){return!No(e)},Fo=function(e){return!!e},Io=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),i=n-r,a=e.index-t.index;if(i){if(!n)return 1;if(!r)return-1}return i||a},Lo=function(e){return e.tabIndex<0&&!e.hasAttribute(`tabindex`)?0:e.tabIndex},Ro=function(e,t,n){return go(e).map(function(e,t){var r=Lo(e);return{node:e,index:t,tabIndex:n&&r===-1?(e.dataset||{}).focusGuard?0:-1:r}}).filter(function(e){return!t||e.tabIndex>=0}).sort(Io)},zo=[`button:enabled`,`select:enabled`,`textarea:enabled`,`input:enabled`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[tabindex]`,`[contenteditable]`,`[autofocus]`].join(`,`),Bo=`${zo}, [data-focus-guard]`,Vo=function(e,t){return go((e.shadowRoot||e).children).reduce(function(e,n){return e.concat(n.matches(t?Bo:zo)?[n]:[],Vo(n))},[])},Ho=function(e,t){var n;return e instanceof HTMLIFrameElement&&(n=e.contentDocument)!=null&&n.body?Uo([e.contentDocument.body],t):[e]},Uo=function(e,t){return e.reduce(function(e,n){var r,i=Vo(n,t),a=(r=[]).concat.apply(r,i.map(function(e){return Ho(e,t)}));return e.concat(a,n.parentNode?go(n.parentNode.querySelectorAll(zo)).filter(function(e){return e===n}):[])},[])},Wo=function(e){return go(e.querySelectorAll(`[${Ka}]`)).map(function(e){return Uo([e])}).reduce(function(e,t){return e.concat(t)},[])},Go=function(e,t){return go(e).filter(function(e){return wo(t,e)}).filter(function(e){return jo(e)})},Ko=function(e,t){return t===void 0&&(t=new Map),go(e).filter(function(e){return Eo(t,e)})},qo=function(e,t,n){return Ro(Go(Uo(e,n),t),!0,n)},Jo=function(e,t){return Ro(Go(Uo(e),t),!1)},Yo=function(e,t){return Go(Wo(e),t)},Xo=function(e,t){return e.shadowRoot?Xo(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:go(e.children).some(function(e){var n;if(e instanceof HTMLIFrameElement){var r=(n=e.contentDocument)==null?void 0:n.body;return r?Xo(r,t):!1}return Xo(e,t)})},Zo=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var a=e[r].compareDocumentPosition(e[i]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(e,n){return!t.has(n)})},Qo=function(e){return e.parentNode?Qo(e.parentNode):e},$o=function(e){return _o(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(Ua);return e.push.apply(e,n?Zo(go(Qo(t).querySelectorAll(`[${Ua}="${n}"]:not([${Wa}="disabled"])`))):[t]),e},[])},es=function(e){try{return e()}catch{return}},ts=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?ts(t.shadowRoot):t instanceof HTMLIFrameElement&&es(function(){return t.contentWindow.document})?ts(t.contentWindow.document):t}},ns=function(e,t){return e===t},rs=function(e,t){return!!go(e.querySelectorAll(`iframe`)).some(function(e){return ns(e,t)})},is=function(e,t){return t===void 0&&(t=ts(vo(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:$o(e).some(function(e){return Xo(e,t)||rs(e,t)})},as=function(e){e===void 0&&(e=document);var t=ts(e);return t?go(e.querySelectorAll(`[${Ga}]`)).some(function(e){return Xo(e,t)}):!1},os=function(e,t){return t.filter(Ao).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e},ss=function(e,t){return Ao(e)&&e.name?os(e,t):e},cs=function(e){var t=new Set;return e.forEach(function(n){return t.add(ss(n,e))}),e.filter(function(e){return t.has(e)})},ls=function(e){return e[0]&&e.length>1?ss(e[0],e):e[0]},us=function(e,t){return e.indexOf(ss(t,e))},ds=`NEW_FOCUS`,fs=function(e,t,n,r,i){var a=e.length,o=e[0],s=e[a-1],c=No(r);if(!(r&&e.indexOf(r)>=0)){var l=r===void 0?-1:n.indexOf(r),u=i?n.indexOf(i):l,d=i?e.indexOf(i):-1;if(l===-1)return d===-1?ds:d;if(d===-1)return ds;var f=l-u,p=n.indexOf(o),m=n.indexOf(s),h=cs(n),g=r===void 0?-1:h.indexOf(r),_=i?h.indexOf(i):g,v=h.filter(function(e){return e.tabIndex>=0}),y=r===void 0?-1:v.indexOf(r),b=i?v.indexOf(i):y,x=y>=0&&b>=0?b-y:_-g;if(!f&&d>=0||t.length===0)return d;var S=us(e,t[0]),C=us(e,t[t.length-1]);if(l<=p&&c&&Math.abs(f)>1)return C;if(l>=m&&c&&Math.abs(f)>1)return S;if(f&&Math.abs(x)>1)return d;if(l<=p)return C;if(l>m)return S;if(f)return Math.abs(f)>1?d:(a+d+f)%a}},ps=function(e){return function(t){var n,r=(n=Do(t))==null?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!==`false`||e.indexOf(t)>=0}},ms=function(e,t,n){var r=Ko(e.map(function(e){return e.node}).filter(ps(n)));return r&&r.length?ls(r):ls(Ko(t))},hs=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&hs(e.parentNode.host||e.parentNode,t),t},gs=function(e,t){for(var n=hs(e),r=hs(t),i=0;i<n.length;i+=1){var a=n[i];if(r.indexOf(a)>=0)return a}return!1},_s=function(e,t,n){var r=_o(e),i=_o(t),a=r[0],o=!1;return i.filter(Boolean).forEach(function(e){o=gs(o||e,e)||o,n.filter(Boolean).forEach(function(e){var t=gs(a,e);t&&(o=!o||Xo(t,o)?t:gs(t,o))})}),o},vs=function(e,t){return e.reduce(function(e,n){return e.concat(Yo(n,t))},[])},ys=function(e,t){var n=new Map;return t.forEach(function(e){return n.set(e.node,e)}),e.map(function(e){return n.get(e)}).filter(Fo)},bs=function(e,t){var n=ts(_o(e).length>0?document:vo(e).ownerDocument),r=$o(e).filter(Po),i=_s(n||e,e,r),a=new Map,o=Jo(r,a),s=o.filter(function(e){var t=e.node;return Po(t)});if(s[0]){var c=Jo([i],a).map(function(e){return e.node}),l=ys(c,s),u=l.map(function(e){return e.node}),d=l.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),f=fs(u,d,c,n,t);if(f===`NEW_FOCUS`){var p=ms(o,d,vs(r,a))||ms(o,u,vs(r,a));if(p)return{node:p};console.warn(`focus-lock: cannot find any node to move focus into`);return}return f===void 0?f:l[f]}},xs=function(e){var t=$o(e).filter(Po),n=Ro(Uo([_s(e,e,t)],!0),!0,!0),r=Uo(t,!1);return n.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:r.indexOf(t)>=0,guard:No(t)}})},Ss=function(e,t){e&&(`focus`in e&&e.focus(t),`contentWindow`in e&&e.contentWindow&&e.contentWindow.focus())},Cs=0,ws=!1,Ts=function(e,t,n){n===void 0&&(n={});var r=bs(e,t);if(!ws&&r){if(Cs>2){console.error(`FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting`),ws=!0,setTimeout(function(){ws=!1},1);return}Cs++,Ss(r.node,n.focusOptions),Cs--}};function Es(e){if(!e)return null;if(typeof WeakRef>`u`)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var Ds=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Es(n),parent:Es(n.parentElement),left:Es(n.previousElementSibling),right:Es(n.nextElementSibling)}),n=n.parentElement;return{element:Es(e),stack:t,ownerDocument:e.ownerDocument}},Os=function(e){var t,n,r;if(e)for(var i=e.stack,a=e.ownerDocument,o=new Map,s=0,c=i;s<c.length;s++){var l=c[s],u=(t=l.parent)==null?void 0:t.call(l);if(u&&a.contains(u)){for(var d=(n=l.left)==null?void 0:n.call(l),f=l.current(),p=u.contains(f)?f:void 0,m=(r=l.right)==null?void 0:r.call(l),h=qo([u],o),g=p??(d==null?void 0:d.nextElementSibling)??m??d;g;){for(var _=0,v=h;_<v.length;_++){var y=v[_];if(g!=null&&g.contains(y.node))return y.node}g=g.nextElementSibling}if(h.length)return h[0].node}}},ks=function(e){var t=Ds(e);return function(){return Os(t)}},As=function(e,t,n){if(!e||!t)return console.error(`no element or scope given`),{};var r=_o(t);if(r.every(function(t){return!Xo(t,e)}))return console.error(`Active element is not contained in the scope`),{};var i=n?qo(r,new Map):Jo(r,new Map),a=i.findIndex(function(t){return t.node===e});if(a!==-1)return{prev:i[a-1],next:i[a+1],first:i[0],last:i[i.length-1]}},js=function(e,t){var n=t?qo(_o(e),new Map):Jo(_o(e),new Map);return{first:n[0],last:n[n.length-1]}},Ms=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)},Ns=function(e,t,n){t===void 0&&(t={});var r=Ms(t),i=As(e,r.scope,r.onlyTabbable);if(i){var a=n(i,r.cycle);a&&Ss(a.node,r.focusOptions)}},Ps=function(e,t){t===void 0&&(t={}),Ns(e,t,function(e,t){var n=e.next,r=e.first;return n||t&&r})},Fs=function(e,t){t===void 0&&(t={}),Ns(e,t,function(e,t){var n=e.prev,r=e.last;return n||t&&r})},Is=function(e,t,n){var r=js(e,t.onlyTabbable??!0)[n];r&&Ss(r.node,t.focusOptions)},Ls=function(e,t){t===void 0&&(t={}),Is(e,t,`first`)},Rs=function(e,t){t===void 0&&(t={}),Is(e,t,`last`)};function zs(e){setTimeout(e,1)}var Bs=function(e){return e&&`current`in e?e.current:e};K();var Vs=function(){return document&&document.activeElement===document.body},Hs=function(){return Vs()||as()},Us=null,Ws=null,Gs=function(){return null},Ks=null,qs=!1,Js=!1,Ys=function(){return!0},Xs=function(e){return(Us.whiteList||Ys)(e)},Zs=function(e,t){Ks={observerNode:e,portaledElement:t}},Qs=function(e){return Ks&&Ks.portaledElement===e};function $s(e,t,n,r){var i=null,a=e;do{var o=r[a];if(o.guard)o.node.dataset.focusAutoGuard&&(i=o);else if(o.lockItem){if(a!==e)return;i=null}else break}while((a+=n)!==t);i&&(i.node.tabIndex=0)}var ec=function(e){return e?!!qs:qs===`meanwhile`},tc=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},nc=function(e,t){return t.some(function(t){return tc(e,t,t)})},rc=function(e){return Jo(e,new Map)},ic=function(e){return!rc([e.parentNode]).some(function(t){return t.node===e})},ac=function(){var e=!1;if(Us){var t=Us,n=t.observed,r=t.persistentFocus,i=t.autoFocus,a=t.shards,o=t.crossFrame,s=t.focusOptions,c=t.noFocusGuards,l=n||Ks&&Ks.portaledElement;if(Vs()&&Ws&&Ws!==document.body&&(!document.body.contains(Ws)||ic(Ws))){var u=Gs();u&&u.focus()}var d=document&&document.activeElement;if(l){var f=[l].concat(a.map(Bs).filter(Boolean));if((!d||Xs(d))&&(r||function(){if(!ec(o)||!c||!Ws||Js)return!1;var e=rc(f),t=e.findIndex(function(e){return e.node===Ws});return t===0||t===e.length-1}()||!Hs()||!Ws&&i)&&(l&&!(is(f)||d&&nc(d,f)||Qs(d,l))&&(document&&!Ws&&d&&!i?(d.blur&&d.blur(),document.body.focus()):(e=Ts(f,Ws,{focusOptions:s}),Ks={})),Ws=document&&document.activeElement,Ws!==document.body&&(Gs=ks(Ws)),qs=!1),document&&d!==document.activeElement&&document.querySelector(`[data-focus-auto-guard]`)){var p=document&&document.activeElement,m=xs(f),h=m.map(function(e){return e.node}).indexOf(p);h>-1&&(m.filter(function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute(`tabIndex`)}),$s(h,m.length,1,m),$s(h,-1,-1,m))}}}return e},oc=function(e){ac()&&e&&(e.stopPropagation(),e.preventDefault())},sc=function(){return zs(ac)},cc=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||Zs(n,t)},lc=function(){return null},uc=function(){Js=!0},dc=function(){Js=!1,qs=`just`,zs(function(){qs=`meanwhile`})},fc=function(){document.addEventListener(`focusin`,oc),document.addEventListener(`focusout`,sc),window.addEventListener(`focus`,uc),window.addEventListener(`blur`,dc)},pc=function(){document.removeEventListener(`focusin`,oc),document.removeEventListener(`focusout`,sc),window.removeEventListener(`focus`,uc),window.removeEventListener(`blur`,dc)};function mc(e){return e.filter(function(e){return!e.disabled})}var hc={moveFocusInside:Ts,focusInside:is,focusNextElement:Ps,focusPrevElement:Fs,focusFirstElement:Ls,focusLastElement:Rs,captureFocusRestore:ks};function gc(e){var t=e.slice(-1)[0];t&&!Us&&fc();var n=Us,r=n&&t&&t.id===n.id;Us=t,n&&!r&&(n.onDeactivation(),e.filter(function(e){return e.id===n.id}).length||n.returnFocus(!t)),t?(Ws=null,(!r||n.observed!==t.observed)&&t.onActivation(hc),ac(!0),zs(ac)):(pc(),Ws=null)}ao.assignSyncMedium(cc),oo.assignMedium(sc),so.assignMedium(function(e){return e(hc)});var _c=ho(mc,gc)(lc);K();var vc=it(function(e,t){return H.createElement(fo,u({sideCar:_c,ref:t},e))}),yc=fo.propTypes||{};yc.sideCar,Ha(yc,[`sideCar`]),vc.propTypes={};var bc=vc,X=`-ms-`,xc=`-moz-`,Z=`-webkit-`,Sc=`comm`,Cc=`rule`,wc=`decl`,Tc=`@import`,Ec=`@namespace`,Dc=`@keyframes`,Oc=`@layer`,kc=Math.abs,Ac=String.fromCharCode,jc=Object.assign;function Mc(e,t){return Ic(e,0)^45?(((t<<2^Ic(e,0))<<2^Ic(e,1))<<2^Ic(e,2))<<2^Ic(e,3):0}function Nc(e){return e.trim()}function Pc(e,t){return(e=t.exec(e))?e[0]:e}function Q(e,t,n){return e.replace(t,n)}function Fc(e,t,n){return e.indexOf(t,n)}function Ic(e,t){return e.charCodeAt(t)|0}function Lc(e,t,n){return e.slice(t,n)}function Rc(e){return e.length}function zc(e){return e.length}function Bc(e,t){return t.push(e),e}function Vc(e,t){return e.map(t).join(``)}function Hc(e,t){return e.filter(function(e){return!Pc(e,t)})}var Uc=1,Wc=1,Gc=0,Kc=0,qc=0,Jc=``;function Yc(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Uc,column:Wc,length:o,return:``,siblings:s}}function Xc(e,t){return jc(Yc(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function Zc(e){for(;e.root;)e=Xc(e.root,{children:[e]});Bc(e,e.siblings)}function Qc(){return qc}function $c(){return qc=Kc>0?Ic(Jc,--Kc):0,Wc--,qc===10&&(Wc=1,Uc--),qc}function el(){return qc=Kc<Gc?Ic(Jc,Kc++):0,Wc++,qc===10&&(Wc=1,Uc++),qc}function tl(){return Ic(Jc,Kc)}function nl(){return Kc}function rl(e,t){return Lc(Jc,e,t)}function il(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function al(e){return Uc=Wc=1,Gc=Rc(Jc=e),Kc=0,[]}function ol(e){return Jc=``,e}function sl(e){return Nc(rl(Kc-1,ul(e===91?e+2:e===40?e+1:e)))}function cl(e){for(;(qc=tl())&&qc<33;)el();return il(e)>2||il(qc)>3?``:` `}function ll(e,t){for(;--t&&el()&&!(qc<48||qc>102||qc>57&&qc<65||qc>70&&qc<97););return rl(e,nl()+(t<6&&tl()==32&&el()==32))}function ul(e){for(;el();)switch(qc){case e:return Kc;case 34:case 39:e!==34&&e!==39&&ul(qc);break;case 40:e===41&&ul(e);break;case 92:el();break}return Kc}function dl(e,t){for(;el()&&e+qc!==57&&(e+qc!==84||tl()!==47););return`/*`+rl(t,Kc-1)+`*`+Ac(e===47?e:el())}function fl(e){for(;!il(tl());)el();return rl(e,Kc)}function pl(e){return ol(ml(``,null,null,null,[``],e=al(e),0,[0],e))}function ml(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=el()){case 40:if(m!=108&&Ic(C,d-1)==58){Fc(C+=Q(sl(v),`&`,`&\f`),`&\f`,kc(l?s[l-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:C+=sl(v);break;case 9:case 10:case 13:case 32:C+=cl(m);break;case 92:C+=ll(nl()-1,7);continue;case 47:switch(tl()){case 42:case 47:Bc(gl(dl(el(),nl()),t,n,c),c),(il(m||1)==5||il(tl()||1)==5)&&Rc(C)&&Lc(C,-1,void 0)!==` `&&(C+=` `);break;default:C+=`/`}break;case 123*h:s[l++]=Rc(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=Q(C,/\f/g,``)),p>0&&(Rc(C)-d||h===0&&m===47)&&Bc(p>32?_l(C+`;`,r,n,d-1,c):_l(Q(C,` `,``)+`;`,r,n,d-2,c),c);break;case 59:C+=`;`;default:if(Bc(S=hl(C,t,n,l,u,i,s,y,b=[],x=[],d,a),a),v===123)if(u===0)ml(C,t,S,S,b,a,d,s,x);else{switch(f){case 99:if(Ic(C,3)===110)break;case 108:if(Ic(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?ml(e,S,S,r&&Bc(hl(e,S,S,0,0,i,s,y,i,b=[],d,x),x),i,x,d,s,r?b:x):ml(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+Rc(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&$c()==125)continue}switch(C+=Ac(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(Rc(C)-1)*_,_=1;break;case 64:tl()===45&&(C+=sl(el())),f=tl(),u=d=Rc(y=C+=fl(nl())),v++;break;case 45:m===45&&Rc(C)==2&&(h=0)}}return a}function hl(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=zc(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=Lc(e,f+1,f=kc(g=o[h])),b=e;v<m;++v)(b=Nc(g>0?p[v]+` `+y:Q(y,/&\f/g,p[v])))&&(c[_++]=b);return Yc(e,t,n,i===0?Cc:s,c,l,u,d)}function gl(e,t,n,r){return Yc(e,t,n,Sc,Ac(Qc()),Lc(e,2,-2),0,r)}function _l(e,t,n,r,i){return Yc(e,t,n,wc,Lc(e,0,r),Lc(e,r+1,-1),r,i)}function vl(e,t,n){switch(Mc(e,t)){case 5103:return Z+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Z+e+e;case 4855:return Z+e.replace(`add`,`source-over`).replace(`substract`,`source-out`).replace(`intersect`,`source-in`).replace(`exclude`,`xor`)+e;case 4789:return xc+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Z+e+xc+e+X+e+e;case 5936:switch(Ic(e,t+11)){case 114:return Z+e+X+Q(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return Z+e+X+Q(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return Z+e+X+Q(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}case 6828:case 4268:case 2903:return Z+e+X+e+e;case 6165:return Z+e+X+`flex-`+e+e;case 5187:return Z+e+Q(e,/(\w+).+(:[^]+)/,Z+`box-$1$2`+X+`flex-$1$2`)+e;case 5443:return Z+e+X+`flex-item-`+Q(e,/flex-|-self/g,``)+(Pc(e,/flex-|baseline/)?``:X+`grid-row-`+Q(e,/flex-|-self/g,``))+e;case 4675:return Z+e+X+`flex-line-pack`+Q(e,/align-content|flex-|-self/g,``)+e;case 5548:return Z+e+X+Q(e,`shrink`,`negative`)+e;case 5292:return Z+e+X+Q(e,`basis`,`preferred-size`)+e;case 6060:return Z+`box-`+Q(e,`-grow`,``)+Z+e+X+Q(e,`grow`,`positive`)+e;case 4554:return Z+Q(e,/([^-])(transform)/g,`$1`+Z+`$2`)+e;case 6187:return Q(Q(Q(e,/(zoom-|grab)/,Z+`$1`),/(image-set)/,Z+`$1`),e,``)+e;case 5495:case 3959:return Q(e,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return Q(Q(e,/(.+:)(flex-)?(.*)/,Z+`box-pack:$3`+X+`flex-pack:$3`),/space-between/,`justify`)+Z+e+e;case 4200:if(!Pc(e,/flex-|baseline/))return X+`grid-column-align`+Lc(e,t)+e;break;case 2592:case 3360:return X+Q(e,`template-`,``)+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Pc(e.props,/grid-\w+-end/)})?~Fc(e+(n=n[t].value),`span`,0)?e:X+Q(e,`-start`,``)+e+X+`grid-row-span:`+(~Fc(n,`span`,0)?Pc(n,/\d+/):Pc(n,/\d+/)-+Pc(e,/\d+/))+`;`:X+Q(e,`-start`,``)+e;case 4896:case 4128:return n&&n.some(function(e){return Pc(e.props,/grid-\w+-start/)})?e:X+Q(Q(e,`-end`,`-span`),`span `,``)+e;case 4095:case 3583:case 4068:case 2532:return Q(e,/(.+)-inline(.+)/,Z+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Rc(e)-1-t>6)switch(Ic(e,t+1)){case 109:if(Ic(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,`$1`+Z+`$2-$3$1`+xc+(Ic(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~Fc(e,`stretch`,0)?vl(Q(e,`stretch`,`fill-available`),t,n)+e:e}break;case 5152:case 5920:return Q(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return X+n+`:`+r+s+(i?X+n+`-span:`+(a?o:o-+r)+s:``)+e});case 4949:if(Ic(e,t+6)===121)return Q(e,`:`,`:`+Z)+e;break;case 6444:switch(Ic(e,Ic(e,14)===45?18:11)){case 120:return Q(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,`$1`+Z+(Ic(e,14)===45?`inline-`:``)+`box$3$1`+Z+`$2$3$1`+X+`$2box$3`)+e;case 100:return Q(e,`:`,`:`+X)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Q(e,`scroll-`,`scroll-snap-`)+e}return e}function yl(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function bl(e,t,n,r){switch(e.type){case Oc:if(e.children.length)break;case Tc:case Ec:case wc:return e.return=e.return||e.value;case Sc:return``;case Dc:return e.return=e.value+`{`+yl(e.children,r)+`}`;case Cc:if(!Rc(e.value=e.props.join(`,`)))return``}return Rc(n=yl(e.children,r))?e.return=e.value+`{`+n+`}`:``}function xl(e){var t=zc(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Sl(e){return function(t){t.root||(t=t.return)&&e(t)}}function Cl(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case wc:e.return=vl(e.value,e.length,n);return;case Dc:return yl([Xc(e,{value:Q(e.value,`@`,`@`+Z)})],r);case Cc:if(e.length)return Vc(n=e.props,function(t){switch(Pc(t,r=/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:Zc(Xc(e,{props:[Q(t,/:(read-\w+)/,`:`+xc+`$1`)]})),Zc(Xc(e,{props:[t]})),jc(e,{props:Hc(n,r)});break;case`::placeholder`:Zc(Xc(e,{props:[Q(t,/:(plac\w+)/,`:`+Z+`input-$1`)]})),Zc(Xc(e,{props:[Q(t,/:(plac\w+)/,`:`+xc+`$1`)]})),Zc(Xc(e,{props:[Q(t,/:(plac\w+)/,X+`input-$1`)]})),Zc(Xc(e,{props:[t]})),jc(e,{props:Hc(n,r)})}return``})}}K();var wl=typeof process<`u`&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||`data-styled`,Tl=`active`,El=`data-styled-version`,Dl=`6.4.4`,Ol=`/*!sc*/
|
|
5
|
+
`,kl=typeof window<`u`&&typeof document<`u`;function Al(e){if(typeof process<`u`){let t={}[e];if(t!==void 0&&t!==``)return t!==`false`}}var jl=!!(typeof SC_DISABLE_SPEEDY==`boolean`?SC_DISABLE_SPEEDY:Al(`REACT_APP_SC_DISABLE_SPEEDY`)??Al(`SC_DISABLE_SPEEDY`)??(typeof process<`u`&&!1)),Ml=`sc-keyframes-`,Nl={};function Pl(e,...t){return Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(`, `)}`:``}`)}var Fl=new Map,Il=new Map,Ll=1,Rl=e=>{if(Fl.has(e))return Fl.get(e);for(;Il.has(Ll);)Ll++;let t=Ll++;return Fl.set(e,t),Il.set(t,e),t},zl=e=>Il.get(e),Bl=(e,t)=>{Ll=t+1,Fl.set(e,t),Il.set(t,e)},Vl=Object.freeze([]),Hl=Object.freeze({});function Ul(e,t,n=Hl){return e.theme!==n.theme&&e.theme||t||n.theme}var Wl=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Gl=/(^-|-$)/g;function Kl(e){return e.replace(Wl,`-`).replace(Gl,``)}var ql=/(a)(d)/gi,Jl=e=>String.fromCharCode(e+(e>25?39:97));function Yl(e){let t,n=``;for(t=Math.abs(e);t>52;t=t/52|0)n=Jl(t%52)+n;return(Jl(t%52)+n).replace(ql,`$1-$2`)}var Xl=5381,Zl=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},Ql=e=>Zl(Xl,e);function $l(e){return Yl(Ql(e)>>>0)}function eu(e){return e.displayName||e.name||`Component`}function tu(e){return typeof e==`string`&&!0}function nu(e){return tu(e)?`styled.${e}`:`Styled(${eu(e)})`}var ru=Symbol.for(`react.memo`),iu=Symbol.for(`react.forward_ref`),au={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},ou={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},su={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cu={[iu]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[ru]:su};function lu(e){return(`type`in(t=e)&&t.type.$$typeof)===ru?su:`$$typeof`in e?cu[e.$$typeof]:au;var t}var uu=Object.defineProperty,du=Object.getOwnPropertyNames,fu=Object.getOwnPropertySymbols,pu=Object.getOwnPropertyDescriptor,mu=Object.getPrototypeOf,hu=Object.prototype;function gu(e,t,n){if(typeof t!=`string`){let r=mu(t);r&&r!==hu&&gu(e,r,n);let i=du(t).concat(fu(t)),a=lu(e),o=lu(t);for(let r=0;r<i.length;++r){let s=i[r];if(!(s in ou||n&&n[s]||o&&s in o||a&&s in a)){let n=pu(t,s);try{uu(e,s,n)}catch{}}}}return e}function _u(e){return typeof e==`function`}var vu=Symbol.for(`react.forward_ref`);function yu(e){return e!=null&&(typeof e==`object`||typeof e==`function`)&&e.$$typeof===vu&&`styledComponentId`in e}function bu(e,t){return e&&t?e+` `+t:e||t||``}function xu(e,t){return e.join(t||``)}function Su(e){return typeof e==`object`&&!!e&&e.constructor.name===Object.name&&!(`props`in e&&e.$$typeof)}function Cu(e,t,n=!1){if(!n&&!Su(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Cu(e[n],t[n]);else if(Su(t))for(let n in t)e[n]=Cu(e[n],t[n]);return e}function wu(e,t){Object.defineProperty(e,"toString",{value:t})}var Tu=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){let t=this.groupSizes,n=t.length,r=n;for(;e>=r;)if(r<<=1,r<0)throw Pl(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let i=0,a=t.length;i<a;i++)this.tag.insertRule(n,t[i])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){let t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t=``;if(e>=this.length||this.groupSizes[e]===0)return t;let n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;for(let e=r;e<i;e++)t+=this.tag.getRule(e)+Ol;return t}},Eu=`style[${wl}][${El}="${Dl}"]`,Du=RegExp(`^${wl}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Ou=e=>typeof ShadowRoot<`u`&&e instanceof ShadowRoot||`host`in e&&e.nodeType===11,ku=e=>{if(!e)return document;if(Ou(e))return e;if(`getRootNode`in e){let t=e.getRootNode();if(Ou(t))return t}return document},Au=(e,t,n)=>{let r=n.split(`,`),i;for(let n=0,a=r.length;n<a;n++)(i=r[n])&&e.registerName(t,i)},ju=(e,t)=>{let n=(t.textContent??``).split(Ol),r=[];for(let t=0,i=n.length;t<i;t++){let i=n[t].trim();if(!i)continue;let a=i.match(Du);if(a){let t=0|parseInt(a[1],10),n=a[2];t!==0&&(Bl(n,t),Au(e,n,a[3]),e.getTag().insertRules(t,r)),r.length=0}else r.push(i)}},Mu=e=>{let t=ku(e.options.target).querySelectorAll(Eu);for(let n=0,r=t.length;n<r;n++){let r=t[n];r&&r.getAttribute(wl)!==Tl&&(ju(e,r),r.parentNode&&r.parentNode.removeChild(r))}},Nu=!1;function Pu(){if(!1!==Nu)return Nu;if(typeof document<`u`){let e=document.head.querySelector(`meta[property="csp-nonce"]`);if(e)return Nu=e.nonce||e.getAttribute(`content`)||void 0;let t=document.head.querySelector(`meta[name="sc-nonce"]`);if(t)return Nu=t.getAttribute(`content`)||void 0}return Nu=typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}var Fu=(e,t)=>{let n=document.head,r=e||n,i=document.createElement(`style`),a=(e=>{let t=Array.from(e.querySelectorAll(`style[${wl}]`));return t[t.length-1]})(r),o=a===void 0?null:a.nextSibling;i.setAttribute(wl,Tl),i.setAttribute(El,Dl);let s=t||Pu();return s&&i.setAttribute(`nonce`,s),r.insertBefore(i,o),i},Iu=class{constructor(e,t){this.element=Fu(e,t),this.element.appendChild(document.createTextNode(``)),this.sheet=(e=>{if(e.sheet)return e.sheet;let t=e.getRootNode().styleSheets??document.styleSheets;for(let n=0,r=t.length;n<r;n++){let r=t[n];if(r.ownerNode===e)return r}throw Pl(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){let t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:``}},Lu=class{constructor(e,t){this.element=Fu(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){let n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:``}},Ru=kl,zu={isServer:!kl,useCSSOMInjection:!jl},Bu=class e{static registerId(e){return Rl(e)}constructor(e=Hl,t={},n){this.options=Object.assign(Object.assign({},zu),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&kl&&Ru&&(Ru=!1,Mu(this)),wu(this,()=>(e=>{let t=e.getTag(),{length:n}=t,r=``;for(let i=0;i<n;i++){let n=zl(i);if(n===void 0)continue;let a=e.names.get(n);if(a===void 0||!a.size)continue;let o=t.getGroup(i);if(o.length===0)continue;let s=wl+`.g`+i+`[id="`+n+`"]`,c=``;for(let e of a)e.length>0&&(c+=e+`,`);r+=o+s+`{content:"`+c+`"}/*!sc*/
|
|
6
|
+
`}return r})(this))}rehydrate(){!this.server&&kl&&Mu(this)}reconstructWithOptions(t,n=!0){let r=new e(Object.assign(Object.assign({},this.options),t),this.gs,n&&this.names||void 0);return r.keyframeIds=new Set(this.keyframeIds),!this.server&&kl&&t.target!==this.options.target&&ku(this.options.target)!==ku(t.target)&&Mu(r),r}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new Iu(t,n):new Lu(t,n))(this.options),new Tu(e));var e}hasNameForId(e,t){var n,r;return(r=(n=this.names.get(e))==null?void 0:n.has(t))!=null&&r}registerName(e,t){Rl(e),e.startsWith(Ml)&&this.keyframeIds.add(e);let n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(Rl(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(Rl(e)),this.clearNames(e)}clearTag(){this.tag=void 0}},Vu=new WeakSet,Hu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Uu(e,t){return t==null||typeof t==`boolean`||t===``?``:typeof t!=`number`||t===0||e in Hu||e.startsWith(`--`)?String(t).trim():t+`px`}var Wu=47;function Gu(e){if(e.charCodeAt(0)===45&&e.charCodeAt(1)===45)return e;let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=r>=65&&r<=90?`-`+String.fromCharCode(r+32):e[n]}return t.startsWith(`ms-`)?`-`+t:t}var Ku=Symbol.for(`sc-keyframes`);function qu(e){return typeof e==`object`&&!!e&&Ku in e}function Ju(e){return _u(e)&&!(e.prototype&&e.prototype.isReactComponent)}var Yu=e=>e==null||!1===e||e===``,Xu=Symbol.for(`react.client.reference`);function Zu(e){return e.$$typeof===Xu}function Qu(e,t){for(let n in e){let r=e[n];e.hasOwnProperty(n)&&!Yu(r)&&(Array.isArray(r)&&Vu.has(r)||_u(r)?t.push(Gu(n)+`:`,r,`;`):Su(r)?(t.push(n+` {`),Qu(r,t),t.push(`}`)):t.push(Gu(n)+`: `+Uu(n,r)+`;`))}}function $u(e,t,n,r,i=[]){if(Yu(e))return i;let a=typeof e;if(a===`string`)return i.push(e),i;if(a===`function`)return Zu(e)?i:Ju(e)&&t?$u(e(t),t,n,r,i):(i.push(e),i);if(Array.isArray(e)){for(let a=0;a<e.length;a++)$u(e[a],t,n,r,i);return i}return yu(e)?(i.push(`.${e.styledComponentId}`),i):qu(e)?(n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i):Zu(e)?i:Su(e)&&e.toString===Object.prototype.toString?(Qu(e,i),i):(i.push(e.toString()),i)}var ed=Ql(Dl),td=class{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=Zl(ed,t),this.baseStyle=n,Bu.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):``;{let i=``;for(let r=0;r<this.rules.length;r++){let a=this.rules[r];if(typeof a==`string`)i+=a;else if(a)if(Ju(a)){let r=a(e);typeof r==`string`?i+=r:r!=null&&!1!==r&&(i+=xu($u(r,e,t,n)))}else i+=xu($u(a,e,t,n))}if(i){this.dynamicNameCache||=new Map;let e=n.hash?n.hash+i:i,a=this.dynamicNameCache.get(e);if(!a){if(a=Yl(Zl(Zl(this.baseHash,n.hash),i)>>>0),this.dynamicNameCache.size>=200){let e=this.dynamicNameCache.keys().next().value;e!==void 0&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,a)}if(!t.hasNameForId(this.componentId,a)){let e=n(i,`.`+a,void 0,this.componentId);t.insertRules(this.componentId,a,e)}r=bu(r,a)}}return r}},nd=/&/g;function rd(e,t){let n=0;for(;--t>=0&&e.charCodeAt(t)===92;)n++;return!(1&~n)}function id(e){let t=e.length,n=``,r=0,i=0,a=0,o=!1,s=!1;for(let c=0;c<t;c++){let l=e.charCodeAt(c);if(a!==0||o||l!==Wu||e.charCodeAt(c+1)!==42)if(o)l===42&&e.charCodeAt(c+1)===Wu&&(o=!1,c++);else if(l!==34&&l!==39||rd(e,c)){if(a===0)if(l===123)i++;else if(l===125){if(i--,i<0){s=!0;let n=c+1;for(;n<t;){let t=e.charCodeAt(n);if(t===59||t===10)break;n++}n<t&&e.charCodeAt(n)===59&&n++,i=0,c=n-1,r=n;continue}i===0&&(n+=e.substring(r,c+1),r=c+1)}else l===59&&i===0&&(n+=e.substring(r,c+1),r=c+1)}else a===0?a=l:a===l&&(a=0);else o=!0,c++}return s||i!==0||a!==0?(r<t&&i===0&&a===0&&(n+=e.substring(r)),n):e}function ad(e,t){let n=t+` `,r=`,`+n;for(let i=0;i<e.length;i++){let a=e[i];if(a.type===`rule`){a.value=(n+a.value).replaceAll(`,`,r);let e=a.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];a.props=t}Array.isArray(a.children)&&a.type!==`@keyframes`&&ad(a.children,t)}return e}function od({options:e=Hl,plugins:t=Vl}=Hl){let n,r,i,a=(e,t,i)=>i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,``).length>0?`.${n}`:e,o=t.slice();o.push(e=>{e.type===`rule`&&e.value.includes(`&`)&&(i||=RegExp(`\\${r}\\b`,`g`),e.props[0]=e.props[0].replace(nd,r).replace(i,a))}),e.prefix&&o.push(Cl),o.push(bl);let s=[],c=xl(o.concat(Sl(e=>s.push(e)))),l=(t,a=``,o=``,l=`&`)=>{n=l,r=a,i=void 0;let u=function(e){let t=e.indexOf(`//`)!==-1,n=e.indexOf(`}`)!==-1;if(!t&&!n)return e;if(!t)return id(e);let r=e.length,i=``,a=0,o=0,s=0,c=0,l=0,u=!1;for(;o<r;){let t=e.charCodeAt(o);if(t!==34&&t!==39||rd(e,o))if(s===0)if(t===Wu&&o+1<r&&e.charCodeAt(o+1)===42){for(o+=2;o+1<r&&(e.charCodeAt(o)!==42||e.charCodeAt(o+1)!==Wu);)o++;o+=2}else if(t!==40)if(t!==41)if(c>0)o++;else if(t===42&&o+1<r&&e.charCodeAt(o+1)===Wu)i+=e.substring(a,o),o+=2,a=o,u=!0;else if(t===Wu&&o+1<r&&e.charCodeAt(o+1)===Wu){for(i+=e.substring(a,o);o<r&&e.charCodeAt(o)!==10;)o++;a=o,u=!0}else t===123?l++:t===125&&l--,o++;else c>0&&c--,o++;else c++,o++;else o++;else s===0?s=t:s===t&&(s=0),o++}return u?(a<r&&(i+=e.substring(a)),l===0?i:id(i)):l===0?e:id(e)}(t),d=pl(o||a?o+` `+a+` { `+u+` }`:u);return e.namespace&&(d=ad(d,e.namespace)),s=[],yl(d,c),s},u=e,d=Xl;for(let e=0;e<t.length;e++)t[e].name||Pl(15),d=Zl(d,t[e].name);return u!=null&&u.namespace&&(d=Zl(d,u.namespace)),u!=null&&u.prefix&&(d=Zl(d,`p`)),l.hash=d===Xl?``:d.toString(),l}var sd=new Bu,cd=od(),ld=H.createContext({shouldForwardProp:void 0,styleSheet:sd,stylis:cd,stylisPlugins:void 0});ld.Consumer;function ud(){return H.useContext(ld)}var dd=H.createContext(void 0);dd.Consumer;var fd=Object.prototype.hasOwnProperty,pd={};function md(e,t){let n=typeof e==`string`?Kl(e):`sc`;pd[n]=(pd[n]||0)+1;let r=n+`-`+$l(Dl+n+pd[n]);return t?t+`-`+r:r}function hd(e,t,n){let r=yu(e),i=e,a=!tu(e),{attrs:o=Vl,componentId:s=md(t.displayName,t.parentComponentId),displayName:c=nu(e)}=t,l=t.displayName&&t.componentId?Kl(t.displayName)+`-`+t.componentId:t.componentId||s,u=r&&i.attrs?i.attrs.concat(o).filter(Boolean):o,{shouldForwardProp:d}=t;if(r&&i.shouldForwardProp){let e=i.shouldForwardProp;if(t.shouldForwardProp){let n=t.shouldForwardProp;d=(t,r)=>e(t,r)&&n(t,r)}else d=e}let f=new td(n,l,r?i.componentStyle:void 0);function p(e,t){return function(e,t,n){let{attrs:r,componentStyle:i,defaultProps:a,foldedComponentIds:o,styledComponentId:s,target:c}=e,l=H.useContext(dd),u=ud(),d=e.shouldForwardProp||u.shouldForwardProp,f=Ul(t,l,a)||Hl,p,m;{let e=H.useRef(null),n=e.current;if(n!==null&&n[1]===f&&n[2]===u.styleSheet&&n[3]===u.stylis&&n[7]===i&&function(e,t,n){let r=e,i=t,a=0;for(let e in i)if(fd.call(i,e)&&(a++,r[e]!==i[e]))return!1;return a===n}(n[0],t,n[4]))p=n[5],m=n[6];else{p=function(e,t,n){let r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),i=e.length>1;for(let n=0;n<e.length;n++){let a=e[n],o=_u(a)?a(i?Object.assign({},r):r):a;for(let e in o)e===`className`?r.className=bu(r.className,o[e]):e===`style`?r.style=Object.assign(Object.assign({},r.style),o[e]):e in t&&t[e]===void 0||(r[e]=o[e])}return`className`in t&&typeof t.className==`string`&&(r.className=bu(r.className,t.className)),r}(r,t,f),m=function(e,t,n,r){return e.generateAndInjectStyles(t,n,r)}(i,p,u.styleSheet,u.stylis);let n=0;for(let e in t)fd.call(t,e)&&n++;e.current=[t,f,u.styleSheet,u.stylis,n,p,m,i]}}let h=p.as||c,g=function(e,t,n,r){let i={};for(let a in e)e[a]===void 0||a[0]===`$`||a===`as`||a===`theme`&&e.theme===n||(a===`forwardedAs`?i.as=e.forwardedAs:r&&!r(a,t)||(i[a]=e[a]));return i}(p,h,f,d),_=bu(o,s);return m&&(_+=` `+m),p.className&&(_+=` `+p.className),g[tu(h)&&h.includes(`-`)?`class`:`className`]=_,n&&(g.ref=n),Pe(h,g)}(m,e,t)}p.displayName=c;let m=H.forwardRef(p);return m.attrs=u,m.componentStyle=f,m.displayName=c,m.shouldForwardProp=d,m.foldedComponentIds=r?bu(i.foldedComponentIds,i.styledComponentId):``,m.styledComponentId=l,m.target=r?i.target:e,Object.defineProperty(m,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=r?function(e,...t){for(let n of t)Cu(e,n,!0);return e}({},i.defaultProps,e):e}}),wu(m,()=>`.${m.styledComponentId}`),a&&gu(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),m}var gd=new Set(`a.abbr.address.area.article.aside.audio.b.bdi.bdo.blockquote.body.button.br.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.main.map.mark.menu.meter.nav.object.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.slot.small.span.strong.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.foreignObject.g.image.line.linearGradient.marker.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.switch.symbol.text.textPath.tspan.use`.split(`.`));function _d(e,t){let n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var vd=e=>(Vu.add(e),e);function yd(e,...t){if(_u(e)||Su(e))return vd($u(_d(Vl,[e,...t])));let n=e;return t.length===0&&n.length===1&&typeof n[0]==`string`?$u(n):vd($u(_d(n,t)))}function bd(e,t,n=Hl){if(!t)throw Pl(1,t);let r=(r,...i)=>e(t,n,yd(r,...i));return r.attrs=r=>bd(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>bd(e,t,Object.assign(Object.assign({},n),r)),r}var xd=e=>bd(hd,e),Sd=xd;gd.forEach(e=>{Sd[e]=xd(e)});var Cd=class{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(_u(n)&&!yu(n))return!1}return!0}(e),Bu.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){let i=this.componentId;if(this.isStatic){if(n.hasNameForId(i,i+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{let a=this.computeRules(e,t,n,r);n.insertRules(i,a.name,a.rules)}return}let a=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&a){let t=a.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){let i=xu($u(this.rules,t,n,r)),a={name:this.componentId+e,rules:r(i,``)};return this.instanceRules.set(e,a),a}rebuildGroup(e){let t=this.componentId;e.clearRules(t);for(let n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}};function wd(e,...t){let n=yd(e,...t),r=`sc-global-${$l(JSON.stringify(n))}`,i=new Cd(n,r),a=e=>{let t=ud(),n=H.useContext(dd),a;{let e=H.useRef(null);e.current===null&&(e.current=t.styleSheet.allocateGSInstance(r)),a=e.current}t.styleSheet.server&&o(a,e,t.styleSheet,n,t.stylis);{let s=i.isStatic?[a,t.styleSheet,i]:[a,e,t.styleSheet,n,t.stylis,i],c=H.useRef(i);H.useLayoutEffect(()=>{t.styleSheet.server||(c.current!==i&&(t.styleSheet.clearRules(r),c.current=i),o(a,e,t.styleSheet,n,t.stylis))},s),H.useLayoutEffect(()=>()=>{t.styleSheet.server||i.removeStyles(a,t.styleSheet)},[a,t.styleSheet,i])}return t.styleSheet.server&&i.instanceRules.delete(a),null};function o(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,Nl,n,o);else{let s=Object.assign(Object.assign({},t),{theme:Ul(t,r,a.defaultProps)});i.renderStyles(e,s,n,o)}}return H.memo(a)}`${wl}`,`${wl}`,`${wl}`,K(),pt();function Td(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ed(e){if(Array.isArray(e))return e}function Dd(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Od(e,t,n){return t=Pd(t),Vd(e,Id()?Reflect.construct(t,n||[],Pd(e).constructor):t.apply(e,n))}function kd(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Ad(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Kd(r.key),r)}}function jd(e,t,n){return t&&Ad(e.prototype,t),n&&Ad(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Md(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=qd(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
7
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Nd(e,t,n){return(t=Kd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pd(e){return Pd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pd(e)}function Fd(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hd(e,t)}function Id(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Id=function(){return!!e})()}function Ld(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Rd(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zd(Object(n),!0).forEach(function(t){Nd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vd(e,t){if(t&&(typeof t==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Dd(e)}function Hd(e,t){return Hd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hd(e,t)}function Ud(e,t){return Ed(e)||Ld(e,t)||qd(e,t)||Rd()}function Wd(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Gd(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Kd(e){var t=Gd(e,`string`);return typeof t==`symbol`?t:t+``}function qd(e,t){if(e){if(typeof e==`string`)return Td(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Td(e,t):void 0}}var Jd,Yd=wd(Jd||=Wd([`
|
|
9
|
+
.focus-outline-hidden :focus {
|
|
10
|
+
outline: none;
|
|
11
|
+
}
|
|
12
|
+
`])),Xd,Zd=Sd.button(Xd||=Wd([`
|
|
13
|
+
display: block;
|
|
14
|
+
padding: 0;
|
|
15
|
+
border: 0;
|
|
16
|
+
background: none;
|
|
17
|
+
font-size: 0;
|
|
18
|
+
cursor: `,`;
|
|
19
|
+
`]),function(e){return e.disabled?`not-allowed`:`pointer`}),Qd,$d,ef=Sd.span(Qd||=Wd([`
|
|
20
|
+
font-size: 12px;
|
|
21
|
+
line-height: 1;
|
|
22
|
+
`]));function tf(e){var t=e.className,n=e.onClick,r=e.inverted,i=e.label,a=e.disabled;return H.createElement(Zd,{className:t,onClick:n,"data-tour-elem":`${r?`right`:`left`}-arrow`,disabled:a},i?H.createElement(ef,null,i):H.createElement(`svg`,{viewBox:`0 0 18.4 14.4`},H.createElement(`path`,{d:r?`M17 7.2H1M10.8 1L17 7.2l-6.2 6.2`:`M1.4 7.2h16M7.6 1L1.4 7.2l6.2 6.2`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeMiterlimit:`10`})))}tf.propTypes={className:B.string.isRequired,onClick:B.func.isRequired,inverted:B.bool,label:B.node,disabled:B.bool};var nf=Sd(tf)($d||=Wd([`
|
|
23
|
+
color: `,`;
|
|
24
|
+
|
|
25
|
+
`,`;
|
|
26
|
+
`,`;
|
|
27
|
+
|
|
28
|
+
&:hover {
|
|
29
|
+
color: `,`;
|
|
30
|
+
}
|
|
31
|
+
`]),function(e){return e.disabled?`#caccce`:`#646464`},function(e){return e.inverted?`margin-left: 24px;`:`margin-right: 24px;`},function(e){return!e.label&&`
|
|
32
|
+
width: 16px;
|
|
33
|
+
height: 12px;
|
|
34
|
+
flex: 0 0 16px;
|
|
35
|
+
`},function(e){return e.disabled?`#caccce`:`#000`}),rf;function af(e){var t=e.className,n=e.onClick,r=e.ariaLabel;return H.createElement(Zd,{className:t,onClick:n,"aria-label":r},H.createElement(`svg`,{viewBox:`0 0 9.1 9.1`,"aria-hidden":!0,role:`presentation`},H.createElement(`path`,{fill:`currentColor`,d:`M5.9 4.5l2.8-2.8c.4-.4.4-1 0-1.4-.4-.4-1-.4-1.4 0L4.5 3.1 1.7.3C1.3-.1.7-.1.3.3c-.4.4-.4 1 0 1.4l2.8 2.8L.3 7.4c-.4.4-.4 1 0 1.4.2.2.4.3.7.3s.5-.1.7-.3L4.5 6l2.8 2.8c.3.2.5.3.8.3s.5-.1.7-.3c.4-.4.4-1 0-1.4L5.9 4.5z`})))}af.propTypes={className:B.string.isRequired,onClick:B.func.isRequired,ariaLabel:B.string};var of=Sd(af)(rf||=Wd([`
|
|
36
|
+
position: absolute;
|
|
37
|
+
top: 22px;
|
|
38
|
+
right: 22px;
|
|
39
|
+
width: 9px;
|
|
40
|
+
height: 9px;
|
|
41
|
+
color: #5e5e5e;
|
|
42
|
+
&:hover {
|
|
43
|
+
color: #000;
|
|
44
|
+
}
|
|
45
|
+
`]));function sf(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function cf(e,t){if(!t.highlightedSelectors)return sf(e);var n=sf(e),r=Md(t.highlightedSelectors),i;try{for(r.s();!(i=r.n()).done;){var a=i.value,o=document.querySelector(a);if(!(!o||o.style.display===`none`||o.style.visibility===`hidden`)){var s=sf(o);s.top<n.top&&(n.top=s.top),s.right>n.right&&(n.right=s.right),s.bottom>n.bottom&&(n.bottom=s.bottom),s.left<n.left&&(n.left=s.left)}}}catch(e){r.e(e)}finally{r.f()}return n.width=n.right-n.left,n.height=n.bottom-n.top,n}function lf(e){var t=e.top,n=e.right,r=e.bottom,i=e.left,a=e.w,o=e.h,s=e.threshold,c=s===void 0?0:s;return t>=0+c&&i>=0+c&&r<=o-c&&n<=a-c}function uf(e){return e===document.querySelector(`body`)||e===document.querySelector(`html`)}var df=function(e){return/(left|right)/.test(e)},ff=function(e,t){return e>t},pf=function(e,t){return e>t},mf=function(e){return e<0?0:e};function hf(e){return Object.keys(e).map(function(t){return{position:t,value:e[t]}}).sort(function(e,t){return t.value-e.value}).map(function(e){return e.position})}var gf,_f=Sd.div(gf||=Wd([`
|
|
46
|
+
--reactour-accent: `,`;
|
|
47
|
+
`,`
|
|
48
|
+
position: fixed;
|
|
49
|
+
transition: transform 0.3s;
|
|
50
|
+
top: 0;
|
|
51
|
+
left: 0;
|
|
52
|
+
z-index: 1000000;
|
|
53
|
+
|
|
54
|
+
transform: `,`;
|
|
55
|
+
`]),function(e){return e.accentColor},function(e){return e.defaultStyles?`
|
|
56
|
+
max-width: 331px;
|
|
57
|
+
min-width: 150px;
|
|
58
|
+
padding-right: 40px;
|
|
59
|
+
border-radius: ${e.rounded}px;
|
|
60
|
+
background-color: #fff;
|
|
61
|
+
padding: 24px 30px;
|
|
62
|
+
box-shadow: 0 0.5em 3em rgba(0, 0, 0, 0.3);
|
|
63
|
+
color: inherit;
|
|
64
|
+
`:``},function(e){var t=e.targetTop,n=e.targetRight,r=e.targetBottom,i=e.targetLeft,a=e.windowWidth,o=e.windowHeight,s=e.helperWidth,c=e.helperHeight,l=e.helperPosition,u=e.padding,d={left:i,right:a-n,top:t,bottom:o-r},f=function(e){return d[e]>(df(e)?s+u*2:c+u*2)},p=function(e){for(var t=hf(d),n=0;n<t.length;n++)if(f(t[n]))return e[t[n]];return e.center},m=function(e){if(Array.isArray(e)){var l=ff(e[0],a),d=pf(e[1],o),m=function(e,t){console.warn(`${e}:${t} is outside window, falling back to center`)};return l&&m(`x`,e[0]),d&&m(`y`,e[1]),[l?a/2-s/2:e[0],d?o/2-c/2:e[1]]}var h=ff(i+s,a)?ff(n+u,a)?n-s:n-s+u:i-u,g=h>u?h:u,_=pf(t+c,o)?pf(r+u,o)?r-c:r-c+u:t-u,v=_>u?_:u,y={top:[g,t-c-u*2],right:[n+u*2,v],bottom:[g,r+u*2],left:[i-s-u*2,v],center:[a/2-s/2,o/2-c/2]};return e===`center`||f(e)?y[e]:p(y)}(l);return`translate(${Math.round(m[0])}px, ${Math.round(m[1])}px)`}),vf,yf=Sd.span(vf||=Wd([`
|
|
65
|
+
position: absolute;
|
|
66
|
+
font-family: monospace;
|
|
67
|
+
background: var(--reactour-accent);
|
|
68
|
+
background: `,`;
|
|
69
|
+
height: 1.875em;
|
|
70
|
+
line-height: 2;
|
|
71
|
+
padding-left: 0.8125em;
|
|
72
|
+
padding-right: 0.8125em;
|
|
73
|
+
font-size: 1em;
|
|
74
|
+
border-radius: 1.625em;
|
|
75
|
+
color: white;
|
|
76
|
+
text-align: center;
|
|
77
|
+
box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.3);
|
|
78
|
+
top: -0.8125em;
|
|
79
|
+
left: -0.8125em;
|
|
80
|
+
`]),function(e){return e.accentColor}),bf,xf=Sd.div(bf||=Wd([`
|
|
81
|
+
display: flex;
|
|
82
|
+
margin-top: 24px;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
`])),Sf,Cf=Sd.nav(Sf||=Wd([`
|
|
86
|
+
counter-reset: dot;
|
|
87
|
+
display: flex;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
align-items: center;
|
|
90
|
+
flex-wrap: wrap;
|
|
91
|
+
`])),wf,Tf=Sd.button(wf||=Wd([`
|
|
92
|
+
counter-increment: dot;
|
|
93
|
+
width: 8px;
|
|
94
|
+
height: 8px;
|
|
95
|
+
border: `,`;
|
|
96
|
+
|
|
97
|
+
border-radius: 100%;
|
|
98
|
+
padding: 0;
|
|
99
|
+
display: block;
|
|
100
|
+
margin: 4px;
|
|
101
|
+
transition: opacity 0.3s, transform 0.3s;
|
|
102
|
+
cursor: `,`;
|
|
103
|
+
transform: scale(`,`);
|
|
104
|
+
|
|
105
|
+
color: `,`;
|
|
106
|
+
background: `,`;
|
|
107
|
+
|
|
108
|
+
color: `,`;
|
|
109
|
+
background: `,`;
|
|
110
|
+
|
|
111
|
+
&:before {
|
|
112
|
+
content: counter(dot);
|
|
113
|
+
position: absolute;
|
|
114
|
+
bottom: calc(100% + 0.25em);
|
|
115
|
+
left: 50%;
|
|
116
|
+
opacity: 0;
|
|
117
|
+
transform: translate(-50%, 1em);
|
|
118
|
+
transition: 0.3s;
|
|
119
|
+
display: `,`;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:hover {
|
|
123
|
+
background-color: currentColor;
|
|
124
|
+
|
|
125
|
+
&:before {
|
|
126
|
+
opacity: 0.5;
|
|
127
|
+
transform: translate(-50%, -2px);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
`]),function(e){return e.current===e.index?`0`:`1px solid #caccce`},function(e){return e.disabled?`not-allowed`:`pointer`},function(e){return e.current===e.index?1.25:1},function(e){return e.current===e.index?`var(--reactour-accent)`:`#caccce`},function(e){return e.current===e.index?`var(--reactour-accent)`:`none`},function(e){return e.current===e.index?e.accentColor:`#caccce`},function(e){return e.current===e.index?e.accentColor:`none`},function(e){return e.showNumber?`block`:`none`}),Ef,Df=Sd.div(Ef||=Wd([`
|
|
131
|
+
opacity: `,`;
|
|
132
|
+
color: `,`;
|
|
133
|
+
width: 100%;
|
|
134
|
+
left: 0;
|
|
135
|
+
top: 0;
|
|
136
|
+
height: 100%;
|
|
137
|
+
position: fixed;
|
|
138
|
+
z-index: 99999;
|
|
139
|
+
pointer-events: none;
|
|
140
|
+
`]),function(e){return!e.maskClassName&&.7},function(e){return!e.maskClassName&&`#000`});function Of(e){var t=e.windowWidth,n=e.windowHeight,r=e.targetWidth,i=e.targetHeight,a=e.targetTop,o=e.targetLeft,s=e.padding,c=e.rounded,l=e.roundedStep,u=e.disableInteraction,d=e.disableInteractionClassName,f=e.className,p=e.onClick,m=e.highlightedBorder,h=mf(r+s*2),g=mf(i+s*2),_=mf(a-s),v=mf(o-s),y=l?Math.min(h/2,g/2):c;return H.createElement(Df,{onClick:p,maskClassName:f},H.createElement(`svg`,{width:t,height:n,xmlns:`http://www.w3.org/2000/svg`,className:f},H.createElement(`defs`,null,H.createElement(`mask`,{id:`mask-main`},H.createElement(`rect`,{x:0,y:0,width:t,height:n,fill:`white`}),H.createElement(`rect`,{x:v,y:_,width:h,height:g,fill:`black`}),H.createElement(`rect`,{x:v-1,y:_-1,width:y,height:y,fill:`white`}),H.createElement(`circle`,{cx:v+y,cy:_+y,r:y,fill:`black`}),H.createElement(`rect`,{x:v+h-y+1,y:_-1,width:y,height:y,fill:`white`}),H.createElement(`circle`,{cx:v+h-y,cy:_+y,r:y,fill:`black`}),H.createElement(`rect`,{x:v-1,y:_+g-y+1,width:y,height:y,fill:`white`}),H.createElement(`circle`,{cx:v+y,cy:_+g-y,r:y,fill:`black`}),H.createElement(`rect`,{x:v+h-y+1,y:_+g-y+1,width:y,height:y,fill:`white`}),H.createElement(`circle`,{cx:v+h-y,cy:_+g-y,r:y,fill:`black `})),H.createElement(`clipPath`,{id:`clip-path`},H.createElement(`rect`,{x:0,y:0,width:t,height:_}),H.createElement(`rect`,{x:0,y:_,width:v,height:g}),H.createElement(`rect`,{x:o+r+s,y:_,width:mf(t-r-v),height:g}),H.createElement(`rect`,{x:0,y:a+i+s,width:t,height:mf(n-i-_)}))),H.createElement(`rect`,{x:0,y:0,width:t,height:n,fill:`currentColor`,mask:`url(#mask-main)`}),H.createElement(`rect`,{x:0,y:0,width:t,height:n,fill:`currentColor`,clipPath:`url(#clip-path)`,pointerEvents:`auto`}),H.createElement(`rect`,{x:v,y:_,width:h,height:g,pointerEvents:`auto`,fill:`transparent`,display:u?`block`:`none`,className:d}),m&&H.createElement(`rect`,{x:mf(v+m.width/2),y:mf(_+m.width/2),width:mf(h-m.width),height:mf(g-m.width),pointerEvents:`auto`,fill:`none`,strokeWidth:m.width,stroke:m.color,rx:y-2})))}Of.propTypes={windowWidth:B.number.isRequired,windowHeight:B.number.isRequired,targetWidth:B.number.isRequired,targetHeight:B.number.isRequired,targetTop:B.number.isRequired,targetLeft:B.number.isRequired,padding:B.number.isRequired,rounded:B.number.isRequired,roundedStep:B.bool,disableInteraction:B.bool.isRequired,disableInteractionClassName:B.string.isRequired,highlightedBorder:B.shape({color:B.string.isRequired,width:B.number.isRequired})};var kf=(function(e){var t=e.step,n=e.refresh,r=Ud(We(0),2),i=r[0],a=r[1];return ke(function(){if(t.resizeObservables){var e=function(e){var n=Md(e),r;try{var o=function(){var e=r.value;if(!e.attributes)return 1;t.resizeObservables.find(function(t){return e.matches(t)||e.querySelector(t)!=null})&&a(i+1)};for(n.s();!(r=n.n()).done;)if(o())continue}catch(e){n.e(e)}finally{n.f()}},n=new MutationObserver(function(t){var n=Md(t),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;i.addedNodes.length!==0&&e(i.addedNodes),i.removedNodes.length!==0&&e(i.removedNodes)}}catch(e){n.e(e)}finally{n.f()}}),r=document.documentElement||document.body;return n.observe(r,{childList:!0,subtree:!0}),function(){n.disconnect()}}},[t,i]),ke(function(){if(t.resizeObservables){var e=new ResizeObserver(function(e){n()}),r=Md(t.resizeObservables),i;try{for(r.s();!(i=r.n()).done;){var a=i.value,o=document.querySelector(a);o&&e.observe(o)}}catch(e){r.e(e)}finally{r.f()}return function(){e.disconnect()}}},[t,i]),null}),Af=(function(e){var t=e.step,n=e.refresh;return ke(function(){if(t.mutationObservables){var e=function(e){var r=Md(e),i;try{var a=function(){var e=i.value;if(!e.attributes)return 1;t.mutationObservables.find(function(t){return e.matches(t)||e.querySelector(t)!=null})&&n()};for(r.s();!(i=r.n()).done;)if(a())continue}catch(e){r.e(e)}finally{r.f()}},r=new MutationObserver(function(t){var n=Md(t),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;i.addedNodes.length!==0&&e(i.addedNodes),i.removedNodes.length!==0&&e(i.removedNodes)}}catch(e){n.e(e)}finally{n.f()}}),i=document.documentElement||document.body;return r.observe(i,{childList:!0,subtree:!0}),function(){r.disconnect()}}},[t]),null});function jf(e){var t=e.children,n=tt(null);return n.current===null&&(n.current=document.createElement(`div`),n.current.setAttribute(`id`,`___reactour`)),ke(function(){return document.body.appendChild(n.current),function(){document.body.removeChild(n.current)}},[n]),b(t,n.current)}var Mf={disableFocusLock:B.bool,badgeContent:B.func,highlightedMaskClassName:B.string,children:B.oneOfType([B.node,B.element]),className:B.string,closeButtonAriaLabel:B.string,closeWithMask:B.bool,inViewThreshold:B.number,isOpen:B.bool.isRequired,lastStepNextButton:B.node,maskClassName:B.string,maskSpace:B.number,nextButton:B.node,onAfterOpen:B.func,onBeforeClose:B.func,onRequestClose:B.func,prevButton:B.node,scrollDuration:B.number,scrollOffset:B.number,showButtons:B.bool,showCloseButton:B.bool,showNavigation:B.bool,showNavigationNumber:B.bool,showNumber:B.bool,startAt:B.number,goToStep:B.number,getCurrentStep:B.func,nextStep:B.func,prevStep:B.func,steps:B.arrayOf(B.shape({selector:B.string,content:B.oneOfType([B.node,B.element,B.func]).isRequired,position:B.oneOfType([B.arrayOf(B.number),B.oneOf([`top`,`right`,`bottom`,`left`,`center`])]),action:B.func,style:B.object,stepInteraction:B.bool,navDotAriaLabel:B.string,roundedStep:B.bool})),update:B.string,updateDelay:B.number,disableInteraction:B.bool,disableDotsNavigation:B.bool,disableKeyboardNavigation:B.oneOfType([B.arrayOf(B.oneOf([`esc`,`right`,`left`])),B.bool]),rounded:B.number,accentColor:B.string,highlightedBorder:B.shape({color:B.string.isRequired,width:B.number.isRequired})},Nf={disableFocusLock:!1,showNavigation:!0,showNavigationNumber:!0,showButtons:!0,showCloseButton:!0,closeButtonAriaLabel:`Close`,showNumber:!0,scrollDuration:1,maskSpace:10,updateDelay:1,disableInteraction:!1,rounded:0,accentColor:`#007aff`,closeWithMask:!0},Pf={mask:{base:`reactour__mask`,isOpen:`reactour__mask--is-open`,disableInteraction:`reactour__mask--disable-interaction`},helper:{base:`reactour__helper`,isOpen:`reactour__helper--is-open`},dot:{base:`reactour__dot`,active:`reactour__dot--is-active`}},Ff=function(e){function t(){var e;return kd(this,t),e=Od(this,t),Nd(e,`unlockFocus`,function(t){e.setState({focusUnlocked:!0},t())}),Nd(e,`showStep`,function(){if(!(!e.helper||!e.helper.current)){var t=e.props.steps,n=e.state,r=n.current;n.focusUnlocked&&e.setState({focusUnlocked:!1});var i=t[r],a=i.selector?document.querySelector(i.selector):null,o=function(t){i.action&&typeof i.action==`function`&&e.unlockFocus(function(){return i.action(t)})};if(i.observe){var s=document.querySelector(i.observe),c={attributes:!0,childList:!0,characterData:!0};e.setState(function(t){return t.observer&&setTimeout(function(){t.observer.disconnect()},0),{observer:new MutationObserver(function(t){t.forEach(function(t){if(t.type===`childList`&&t.addedNodes.length>0){var n=function(){return o(t.addedNodes[0])};setTimeout(function(){return e.calculateNode(t.addedNodes[0],i,n)},100)}else t.type===`childList`&&t.removedNodes.length>0&&e.calculateNode(a,i,function(){return o(a)})})})}},function(){return e.state.observer.observe(s,c)})}else e.state.observer&&(e.state.observer.disconnect(),e.setState({observer:null}));a?e.calculateNode(a,i,function(){return o(a)}):(e.setState(If(null,i,e.helper.current),o),i.selector&&console.warn(`Doesn't find a DOM node '${i.selector}'. Please check the 'steps' Tour prop Array at position ${r}.`))}}),Nd(e,`calculateNode`,function(t,n,r){var i=e.props,a=i.scrollDuration,o=i.inViewThreshold,s=i.scrollOffset,c=cf(t,n),l=Math.max(document.documentElement.clientWidth,window.innerWidth||0),u=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(lf(Bd(Bd({},c),{},{w:l,h:u,threshold:o})))e.setState(If(t,n,e.helper.current),r);else{var d=(0,Ba.default)(t),f=s||(c.height>u?-25:-(u/2)+c.height/2);za.default.to(t,{context:uf(d)?window:d,duration:a,offset:f,callback:function(t){e.setState(If(t,n,e.helper.current),r)}})}}),Nd(e,`recalculateNode`,function(t){var n=document.querySelector(t.selector),r=function(n){t.action&&typeof t.action==`function`&&e.unlockFocus(function(){return t.action(n)})};e.calculateNode(n,t,function(){return r(n)})}),Nd(e,`maskClickHandler`,function(t){var n=e.props,r=n.closeWithMask,i=n.onRequestClose;r&&!t.target.classList.contains(Pf.mask.disableInteraction)&&i(t)}),Nd(e,`nextStep`,function(){var t=e.props,n=t.steps,r=t.getCurrentStep;e.setState(function(e){var t=e.current<n.length-1?e.current+1:e.current;return typeof r==`function`&&r(t),{current:t}},e.showStep)}),Nd(e,`prevStep`,function(){var t=e.props.getCurrentStep;e.setState(function(e){var n=e.current>0?e.current-1:e.current;return typeof t==`function`&&t(n),{current:n}},e.showStep)}),Nd(e,`gotoStep`,function(t){var n=e.props,r=n.steps,i=n.getCurrentStep;e.setState(function(e){var n=r[t]?t:e.current;return typeof i==`function`&&i(n),{current:n}},e.showStep)}),Nd(e,`keyDownHandler`,function(t){var n=e.props,r=n.onRequestClose,i=n.nextStep,a=n.prevStep,o=n.disableKeyboardNavigation;if(t.stopPropagation(),o!==!0){var s,c,l;o&&(s=o.includes(`esc`),c=o.includes(`right`),l=o.includes(`left`)),t.keyCode===27&&!s&&(t.preventDefault(),r()),t.keyCode===39&&!c&&(t.preventDefault(),typeof i==`function`?i():e.nextStep()),t.keyCode===37&&!l&&(t.preventDefault(),typeof a==`function`?a():e.prevStep())}}),e.state={isOpen:!1,current:0,top:0,right:0,bottom:0,left:0,width:0,height:0,w:0,h:0,inDOM:!1,observer:null,focusUnlocked:!1},e.helper=bt(),e.helperElement=null,e.debouncedShowStep=(0,Va.default)(e.showStep,70),e}return Fd(t,e),jd(t,[{key:`componentDidMount`,value:function(){var e=this.props,t=e.isOpen,n=e.startAt;t&&this.open(n)}},{key:`UNSAFE_componentWillReceiveProps`,value:function(e){var t=this.props,n=t.isOpen,r=t.update,i=t.updateDelay;!n&&e.isOpen?this.open(e.startAt):n&&!e.isOpen&&this.close(),n&&r!==e.update&&(e.steps[this.state.current]?setTimeout(this.showStep,i):this.props.onRequestClose()),n&&e.isOpen&&this.state.current!==e.goToStep&&this.gotoStep(e.goToStep)}},{key:`componentWillUnmount`,value:function(){this.props.isOpen&&this.close(),this.state.observer&&this.state.observer.disconnect()}},{key:`open`,value:function(e){var t=this,n=this.props.onAfterOpen;this.setState(function(t){return{isOpen:!0,current:e===void 0?t.current:e}},function(){setTimeout(t.showStep,1),t.helperElement=t.helper.current,t.props.disableFocusLock||t.helper.current.focus(),n&&n(t.helperElement)}),window.addEventListener(`resize`,this.debouncedShowStep,!1),window.addEventListener(`keydown`,this.keyDownHandler,!1)}},{key:`close`,value:function(){this.setState(function(e){return e.observer&&e.observer.disconnect(),{isOpen:!1,observer:null}},this.onBeforeClose),window.removeEventListener(`resize`,this.debouncedShowStep),window.removeEventListener(`keydown`,this.keyDownHandler)}},{key:`onBeforeClose`,value:function(){var e=this.props.onBeforeClose;e&&e(this.helperElement)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.className,r=t.steps,i=t.maskClassName,a=t.showButtons,o=t.showCloseButton,s=t.closeButtonAriaLabel,c=t.showNavigation,l=t.showNavigationNumber,u=t.showNumber,d=t.onRequestClose,f=t.maskSpace,p=t.lastStepNextButton,m=t.nextButton,h=t.prevButton,g=t.badgeContent,_=t.highlightedMaskClassName,v=t.disableInteraction,y=t.disableDotsNavigation,b=t.nextStep,x=t.prevStep,S=t.rounded,C=t.accentColor,w=t.CustomHelper,T=t.disableFocusLock,E=t.highlightedBorder,D=this.state,O=D.isOpen,k=D.current,A=D.inDOM,j=D.top,M=D.right,ee=D.bottom,N=D.left,P=D.width,F=D.height,I=D.w,L=D.h,R=D.helperWidth,z=D.helperHeight,te=D.helperPosition;return O?H.createElement(jf,null,H.createElement(Yd,null),H.createElement(kf,{step:r[k],refresh:function(){return e.recalculateNode(r[k])}}),H.createElement(Af,{step:r[k],refresh:function(){return e.recalculateNode(r[k])}}),H.createElement(Of,{onClick:this.maskClickHandler,forwardRef:function(t){return e.mask=t},windowWidth:I,windowHeight:L,targetWidth:P,targetHeight:F,targetTop:j,targetLeft:N,padding:f,rounded:S,roundedStep:r[k].roundedStep,className:i,disableInteraction:r[k].stepInteraction===!1||v?!r[k].stepInteraction:v,disableInteractionClassName:`${Pf.mask.disableInteraction} ${_}`,highlightedBorder:E}),H.createElement(bc,{disabled:T,autoFocus:!1},H.createElement(_f,{ref:this.helper,targetHeight:F,targetWidth:P,targetTop:j,targetRight:M,targetBottom:ee,targetLeft:N,windowWidth:I,windowHeight:L,helperWidth:R,helperHeight:z,helperPosition:te,padding:f,tabIndex:-1,current:k,style:r[k].style?r[k].style:{},rounded:S,className:(0,Ra.default)(Pf.helper.base,n,Nd({},Pf.helper.isOpen,O)),accentColor:C,defaultStyles:!w,role:`dialog`},w?H.createElement(w,{current:k,totalSteps:r.length,gotoStep:this.gotoStep,close:d,content:r[k]&&(typeof r[k].content==`function`?r[k].content({close:d,goTo:this.gotoStep,inDOM:A,step:k+1}):r[k].content)},this.props.children):H.createElement(H.Fragment,null,this.props.children,r[k]&&(typeof r[k].content==`function`?r[k].content({close:d,goTo:this.gotoStep,inDOM:A,step:k+1}):r[k].content),u&&H.createElement(yf,{"data-tour-elem":`badge`,accentColor:C},typeof g==`function`?g(k+1,r.length):k+1),(a||c)&&H.createElement(xf,{"data-tour-elem":`controls`},a&&H.createElement(nf,{onClick:typeof x==`function`?x:this.prevStep,disabled:k===0,label:h||null}),c&&H.createElement(Cf,{"data-tour-elem":`navigation`},r.map(function(t,n){return H.createElement(Tf,{key:`${t.selector?t.selector:`undef`}_${n}`,onClick:function(){return e.gotoStep(n)},current:k,index:n,accentColor:C,disabled:k===n||y,showNumber:l,"data-tour-elem":`dot`,className:(0,Ra.default)(Pf.dot.base,Nd({},Pf.dot.active,k===n)),"aria-label":t.navDotAriaLabel})})),a&&H.createElement(nf,{onClick:k===r.length-1?p?d:function(){}:typeof b==`function`?b:this.nextStep,disabled:!p&&k===r.length-1,inverted:!0,label:p&&k===r.length-1?p:m||null})),o&&H.createElement(of,{onClick:d,className:`reactour__close`,ariaLabel:s}))))):null}}])}(we),If=function(e,t,n){if(n){var r=Math.max(document.documentElement.clientWidth,window.innerWidth||0),i=Math.max(document.documentElement.clientHeight,window.innerHeight||0),a=sf(n),o=a.width,s=a.height,c={top:i+10,right:r/2+9,bottom:i/2+9,left:r/2-o/2,width:0,height:0,w:r,h:i,helperPosition:`center`};return e&&(c=cf(e,t)),function(){return Bd(Bd({w:r,h:i,helperWidth:o,helperHeight:s,helperPosition:t.position},c),{},{inDOM:!!e})}}};Ff.propTypes=Mf,Ff.defaultProps=Nf,``+new URL(`blockly2js-B3Jxf2e-.svg`,import.meta.url).href,``+new URL(`rules2js-DnYyR8mI.svg`,import.meta.url).href;var Lf=`data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCAzMiIgd2lkdGg9IjY0IiBoZWlnaHQ9IjMyIj4KICA8cG9seWdvbiBwb2ludHM9IjgsMSA2MywxIDYzLDMxIDgsMzEgMSwxNiIgZmlsbD0iIzRhOTBkOSIgZmlsbC1vcGFjaXR5PSIwLjE1IiBzdHJva2U9IiM0YTkwZDkiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CiAgPGNpcmNsZSBjeD0iMTAuNSIgY3k9IjE2IiByPSIyIiBmaWxsPSJub25lIiBzdHJva2U9IiM0YTkwZDkiIHN0cm9rZS13aWR0aD0iMS4yIi8+CiAgPHRleHQgeD0iMzciIHk9IjIxIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmb250LWZhbWlseT0iQXJpYWwsc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgZm9udC13ZWlnaHQ9ImJvbGQiIGZpbGw9IiM0YTkwZDkiPk5hbWU8L3RleHQ+Cjwvc3ZnPgo=`,Rf=`data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCAzMiIgd2lkdGg9IjY0IiBoZWlnaHQ9IjMyIj4KICA8cG9seWdvbiBwb2ludHM9IjgsMSA2MywxIDYzLDMxIDgsMzEgMSwxNiIgZmlsbD0iIzRhOTBkOSIgc3Ryb2tlPSIjNGE5MGQ5IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgogIDxjaXJjbGUgY3g9IjEwLjUiIGN5PSIxNiIgcj0iMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjYThjZWYwIiBzdHJva2Utd2lkdGg9IjEuMiIvPgogIDx0ZXh0IHg9IjM3IiB5PSIxOCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZm9udC1mYW1pbHk9IkFyaWFsLHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTQiIGZvbnQtd2VpZ2h0PSJib2xkIiBmaWxsPSIjYThjZWYwIj5OYW1lPC90ZXh0PgogIDxjaXJjbGUgY3g9IjMwIiBjeT0iMjUiIHI9IjEuNSIgZmlsbD0iI2E4Y2VmMCIvPgogIDxjaXJjbGUgY3g9IjM3IiBjeT0iMjUiIHI9IjEuNSIgZmlsbD0iI2E4Y2VmMCIvPgogIDxjaXJjbGUgY3g9IjQ0IiBjeT0iMjUiIHI9IjEuNSIgZmlsbD0iI2E4Y2VmMCIvPgo8L3N2Zz4K`,zf=`data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCAzMiIgd2lkdGg9IjY0IiBoZWlnaHQ9IjMyIj4KICA8cG9seWdvbiBwb2ludHM9IjgsMSA2MywxIDYzLDMxIDgsMzEgMSwxNiIgZmlsbD0iI2U2N2UyMiIgZmlsbC1vcGFjaXR5PSIwLjE1IiBzdHJva2U9IiNlNjdlMjIiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CiAgPGNpcmNsZSBjeD0iMTAuNSIgY3k9IjE2IiByPSIyIiBmaWxsPSJub25lIiBzdHJva2U9IiNlNjdlMjIiIHN0cm9rZS13aWR0aD0iMS4yIi8+CiAgPHRleHQgeD0iMzciIHk9IjIxIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmb250LWZhbWlseT0iQXJpYWwsc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgZm9udC13ZWlnaHQ9ImJvbGQiIGZpbGw9IiNlNjdlMjIiPklEPC90ZXh0Pgo8L3N2Zz4K`,Bf=`data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCAzMiIgd2lkdGg9IjY0IiBoZWlnaHQ9IjMyIj4KICA8cG9seWdvbiBwb2ludHM9IjgsMSA2MywxIDYzLDMxIDgsMzEgMSwxNiIgZmlsbD0iI2U2N2UyMiIgc3Ryb2tlPSIjZTY3ZTIyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgogIDxjaXJjbGUgY3g9IjEwLjUiIGN5PSIxNiIgcj0iMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZjVjMjhhIiBzdHJva2Utd2lkdGg9IjEuMiIvPgogIDx0ZXh0IHg9IjM3IiB5PSIxOCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZm9udC1mYW1pbHk9IkFyaWFsLHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTQiIGZvbnQtd2VpZ2h0PSJib2xkIiBmaWxsPSIjZjVjMjhhIj5JRDwvdGV4dD4KICA8Y2lyY2xlIGN4PSIzMCIgY3k9IjI1IiByPSIxLjUiIGZpbGw9IiNmNWMyOGEiLz4KICA8Y2lyY2xlIGN4PSIzNyIgY3k9IjI1IiByPSIxLjUiIGZpbGw9IiNmNWMyOGEiLz4KICA8Y2lyY2xlIGN4PSI0NCIgY3k9IjI1IiByPSIxLjUiIGZpbGw9IiNmNWMyOGEiLz4KPC9zdmc+Cg==`;K();var Vf=187,Hf={root:{left:0,top:0,width:`100%`,height:`100%`,position:`fixed`,background:`rgba(0, 0, 0, .3)`,zIndex:2e4},connecting:{left:`40%`,top:`40%`,width:`20%`,height:`20%`,position:`absolute`},spinner:{animation:`admin-connecting-rotator 1.4s linear infinite`},path:{strokeDasharray:187,strokeDashoffset:0,transformOrigin:`center`,animation:`admin-connecting-dash 1.4s ease-in-out infinite, $colors 5.6s ease-in-out infinite`}};function Uf(){return V(`div`,{style:Hf.root,children:[C(`style`,{children:`
|
|
141
|
+
' @keyframes admin-connecting-colors {
|
|
142
|
+
0% {
|
|
143
|
+
stroke: #4285F4;
|
|
144
|
+
}
|
|
145
|
+
25% {
|
|
146
|
+
stroke: #DE3E35;
|
|
147
|
+
}
|
|
148
|
+
50% {
|
|
149
|
+
stroke: #F7C223;
|
|
150
|
+
}
|
|
151
|
+
75% {
|
|
152
|
+
stroke: #1B9A59;
|
|
153
|
+
}
|
|
154
|
+
100% {
|
|
155
|
+
stroke: #4285F4;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
@keyframes admin-connecting-dash {
|
|
159
|
+
0% {
|
|
160
|
+
stroke-dashoffset: ${Vf};
|
|
161
|
+
}
|
|
162
|
+
50% {
|
|
163
|
+
stroke-dashoffset: ${Vf/4};
|
|
164
|
+
transform: rotate(135deg);
|
|
165
|
+
}
|
|
166
|
+
100% {
|
|
167
|
+
stroke-dashoffset: ${Vf};
|
|
168
|
+
transform: 'rotate(450deg);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
@keyframes admin-connecting-rotator {
|
|
172
|
+
0% {
|
|
173
|
+
transform: rotate(0deg);
|
|
174
|
+
}
|
|
175
|
+
100% {
|
|
176
|
+
transform: rotate(270deg);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
`}),C(`div`,{style:Hf.connecting,children:C(`svg`,{style:Hf.spinner,width:`100%`,height:`100%`,viewBox:`0 0 66 66`,xmlns:`http://www.w3.org/2000/svg`,children:C(`circle`,{style:Hf.path,fill:`none`,strokeWidth:`6`,strokeLinecap:`round`,cx:`33`,cy:`33`,r:`30`})})})]})}function Wf(e,t,n){let r=0,i=!1;for(let n=t-1;n<e.length;n++){let t=e[n];for(let e=0;e<t.length;e++){let a=t[e];if(a===`{`)r++,i=!0;else if(a===`}`&&(r--,i&&r===0))return n+1}}return n}function Gf(e,t){if(!e||!t)return null;let n=qt(e);if(!n.length)return null;let r=qt(t);if(!r.length)return null;let i=t.split(`
|
|
180
|
+
`),a=new Map;for(let e=0;e<r.length;e++){let t=r[e];if(a.has(t.name))continue;let n=e+1<r.length?r[e+1].line-1:i.length,o=Wf(i,t.line,n);a.set(t.name,{line:t.line,endLine:o})}for(let e of n){let t=a.get(e.name);if(t){let n=i[t.endLine-1]??``;return{range:{startLine:t.line,startColumn:1,endLine:t.endLine,endColumn:n.length+1},confidence:1,method:`name`,matchedName:e.name}}}return null}function Kf(e){return!(e.length<4||/^[{}();,]+$/.test(e))}function qf(e,t,n=.5){if(!e||!t)return null;let r=e.split(`
|
|
181
|
+
`),i=t.split(`
|
|
182
|
+
`);if(r.length<2||i.length<2)return null;let a=new Set;for(let e of r){let t=e.trim();Kf(t)&&a.add(t)}if(a.size<2)return null;let o=r.length,s=Math.ceil(o*1.5),c=Math.max(2,Math.floor(o*.5)),l=-1,u=-1,d=0,f=new Uint8Array(i.length);for(let e=0;e<i.length;e++)a.has(i[e].trim())&&(f[e]=1);let p=new Int32Array(i.length+1);for(let e=0;e<i.length;e++)p[e+1]=p[e]+f[e];for(let e=0;e+c<=i.length;e++){let t=Math.min(e+s,i.length),n=(p[t]-p[e])/a.size;n>d&&(d=n,l=e,u=t)}if(l<0||d<n)return null;for(;u>l+1&&!f[u-1];)u--;for(;l<u-1&&!f[l];)l++;let m=i[u-1]??``;return{range:{startLine:l+1,startColumn:1,endLine:u,endColumn:m.length+1},confidence:d,method:`similarity`}}function Jf(e){let t=e.split(`
|
|
183
|
+
`).map(e=>e.trim()).filter(e=>e.length>0);return t.length!==0&&t.every(e=>e.startsWith(`//`)||e.startsWith(`/*`)||e.startsWith(`*`)||e.endsWith(`*/`))}function Yf(e){let t=[],n=!1,r=null,i=0;for(let a=0;a<e.length;a++){let o=e[a].trim();n?r===`jsdoc`?(o.endsWith(`*/`)||o.includes(`*/`))&&(t.push({startLine:i,endLine:a+1}),n=!1,r=null):r===`line`&&(!o.startsWith(`//`)&&o.length>0||o.length===0)&&(t.push({startLine:i,endLine:a}),n=!1,r=null):o.startsWith(`/*`)?(n=!0,r=`jsdoc`,i=a+1,o.includes(`*/`)&&(t.push({startLine:i,endLine:a+1}),n=!1,r=null)):o.startsWith(`//`)&&(n=!0,r=`line`,i=a+1)}return n&&i>0&&t.push({startLine:i,endLine:e.length}),t}function Xf(e,t,n=.2){if(!Jf(e)||!t)return null;let r=t.split(`
|
|
184
|
+
`),i=Yf(r);if(!i.length)return null;let a=new Set;for(let t of e.split(`
|
|
185
|
+
`)){let e=t.trim().replace(/^\/\*+/,``).replace(/\*+\/$/,``).replace(/^\/\//,``).replace(/^\*+/,``).trim();e.length>=3&&a.add(e.toLowerCase())}if(a.size===0){if(i.length===1){let e=i[0],t=r[e.endLine-1]??``;return{range:{startLine:e.startLine,startColumn:1,endLine:e.endLine,endColumn:t.length+1},confidence:.5,method:`similarity`}}return null}let o=i[0],s=0;for(let e of i){let t=0;for(let n=e.startLine-1;n<e.endLine;n++){let e=r[n].trim().replace(/^\/\*+/,``).replace(/\*+\/$/,``).replace(/^\/\//,``).replace(/^\*+/,``).trim().toLowerCase();e&&a.has(e)&&t++}let n=t/a.size;n>s&&(s=n,o=e)}if(s<n)if(i.length===1)s=Math.max(s,.3);else return null;let c=r[o.endLine-1]??``;return{range:{startLine:o.startLine,startColumn:1,endLine:o.endLine,endColumn:c.length+1},confidence:s,method:`similarity`}}function Zf(e,t,n){return Gf(e,t)||Xf(e,t)||qf(e,t,n==null?void 0:n.similarityThreshold)}K();var Qf=[Lf,Rf,zf,Bf],$f=H.lazy(()=>i(()=>import(`./BlocklyEditor-CAjVMhYT.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3]),import.meta.url)),ep=H.lazy(()=>i(()=>import(`./RulesEditor-D0hgrcBc.js`),__vite__mapDeps([4,5,1,6,7]),import.meta.url)),tp=H.lazy(()=>i(()=>import(`./Debugger-SjROokFI.js`),__vite__mapDeps([8,9,2,10,11]),import.meta.url)),np=H.lazy(()=>i(()=>import(`./ScriptEditorVanillaMonaco-DyMQtoTQ.js`).then(e=>e.n),__vite__mapDeps([10,11]),import.meta.url)),rp=H.lazy(()=>i(()=>import(`./ScriptEditor-BGIuoNei.js`),__vite__mapDeps([12,10,11]),import.meta.url)),ip=H.lazy(()=>i(()=>import(`./AiChatPanel-p0KAg6Cs.js`),__vite__mapDeps([13,14,3,15]),import.meta.url)),ap=H.lazy(()=>i(()=>import(`./AiDiffView-BPTLnNx1.js`),__vite__mapDeps([16]),import.meta.url)),op={Blockly:Li,"Javascript/js":Ii,Rules:zi,def:Ii,"TypeScript/ts":Ri},sp=48,cp=`#02a102`,lp=`#70aae9`,up=_[400],dp=T[400],$={toolbar:e=>({minHeight:38,boxShadow:`0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)`,backgroundColor:e.palette.mode===`dark`?`#1e1e1e`:`#E2E2E2`}),toolbarButtons:{padding:4,marginLeft:4},toolbarButtonsDisabled:{filter:`grayscale(100%)`,opacity:.5},editorDiv:e=>({height:`calc(100% - ${(parseInt(e.toolbar.height,10)||48)+38+10}px)`,width:`100%`,overflow:`hidden`,position:`relative`}),textButton:{marginRight:10,minHeight:24,padding:`6px 16px`,height:32},saveButton:{background:`#ff9900`},textIcon:{marginLeft:8},tabIcon:{width:24,height:24,verticalAlign:`middle`,marginBottom:2,marginRight:2,borderRadius:3},hintIcon:{padding:`0 8px 0 8px`},hintText:{},hintButton:{marginTop:8,marginLeft:20},tabMenuButton:{position:`absolute`,top:0,right:0},tabChanged:e=>({color:e.palette.secondary.main}),tabText:{maxWidth:130,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`,display:`inline-block`,verticalAlign:`middle`},tabChangedIcon:{color:`#FF0000`,fontSize:16,marginLeft:5},closeButton:{marginLeft:5},notRunning:{color:`#ffbc00`,marginRight:8,marginLeft:8},tabButton:{minHeight:48},tabButtonWrapper:{display:`inline-block`},menuIcon:{width:18,height:18,borderRadius:2,marginRight:5}},fp=class e extends H.Component{constructor(e){var t;super(e),W(this,`getSelect`,null),W(this,`changedMirror`,{}),W(this,`cron`,{initValue:null,callback:null}),W(this,`scriptDialog`,{initValue:null,callback:null,args:null,isReturn:!1}),W(this,`objects`,void 0),W(this,`scripts`,void 0),W(this,`selectId`,{initValue:null,callback:null}),W(this,`confirmCallback`,null),W(this,`blocklyEditorRef`,H.createRef()),W(this,`scriptEditorRef`,H.createRef()),W(this,`lastKnownTs`,{}),W(this,`onBrowserClose`,e=>{let t=Object.keys(this.scripts).find(e=>JSON.stringify(this.scripts[e])!==JSON.stringify(this.getScriptFromObject(e)));if(t){console.log(`Script ${JSON.stringify(this.scripts[t])}`);let n=U.t(`Configuration not saved.`);return e||=window.event,e&&(e.returnValue=n),n}}),W(this,`cachedScriptInfos`,null),W(this,`lastObjectsHash`,``),W(this,`setTourStep`,e=>this.setState({tourStep:e}));let n=window.localStorage.getItem(`Editor.selected`)||``,r=window.localStorage.getItem(`Editor.editing`)||`[]`,i;try{i=JSON.parse(r)}catch{i=[]}n&&!i.includes(n)&&i.push(n),n&&!this.props.password&&(t=this.props.objects[n])!=null&&(t=t.native)!=null&&t.protected&&(n=i.find(e=>{var t;return!((t=this.props.objects[e])!=null&&(t=t.native)!=null&&t.protected)})||``),!n&&i.length&&(n=this.props.password?i[0]:i.find(e=>{var t;return!((t=this.props.objects[e])!=null&&(t=t.native)!=null&&t.protected)})||``),this.state={askAboutDebug:!1,astroEvents:null,blockly:null,changed:{},cmdToBlockly:``,cmdToRules:``,confirm:``,debugEnabled:!1,editing:i,insert:``,instancesLoaded:!1,isTourOpen:window.localStorage.getItem(`tour`)!==`true`,menuDebugAnchorEl:null,menuOidDisplayAnchorEl:null,oidDisplayMode:parseInt(window.localStorage.getItem(`Blockly.FieldOID.displayMode`)||`0`,10)||0,oidShowIcon:window.localStorage.getItem(`Blockly.FieldOID.showIcon`)===`true`,menuOpened:!!this.props.menuOpened,menuTabsOpened:!1,aiChatOpen:window.localStorage.getItem(`Editor.aiChatOpen`)===`true`,aiDiffView:null,aiActionRequest:null,inlineAskHandler:null,aiCompletionsEnabled:window.localStorage.getItem(`Editor.aiCompletions`)!==`false`,triggerPrettier:1,scriptConflict:``,rules:null,runningInstances:this.props.runningInstances||{},searchText:``,selected:n,showAdapterDebug:!1,showAstro:!1,showCompiledCode:!1,showCron:!1,showDebugMenu:!1,showScript:!1,showSelectId:!1,themeType:this.props.themeType,toast:``,tourStep:Lt.selectTriggers,verboseEnabled:!1,visible:e.visible},this.setChangedInAdmin(),window.systemLang=U.getLanguage(),window.main={objects:{},getObject:(e,t)=>this.props.socket.getObject(e).then(e=>t==null?void 0:t(null,e)).catch(e=>t==null?void 0:t(e)),getState:(e,t)=>this.props.socket.getState(e).then(e=>t==null?void 0:t(null,e)).catch(e=>t==null?void 0:t(e)),instances:[],selectIdDialog:(e,t,n)=>{typeof t==`function`&&(n=t,t=null),this.selectId.callback=n,this.selectId.initValue=e,this.selectId.type=t,this.setState({showSelectId:!0})},cronDialog:(e,t)=>{this.cron.callback=t,this.cron.initValue=e,this.setState({showCron:!0})},showScriptDialog:(e,t,n,r)=>{this.scriptDialog.callback=r,this.scriptDialog.initValue=e,this.scriptDialog.args=t,this.scriptDialog.isReturn=n||!1,this.setState({showScript:!0})}},this.objects=e.objects,this.scripts={},this.getAllAdapterInstances().then(()=>{this.props.onSelectedChange&&this.state.selected&&setTimeout(()=>this.props.onSelectedChange(this.state.selected,this.state.editing),100)})}async getAllAdapterInstances(){let e=await this.props.socket.getAdapterInstances(!0),t={},n=e.map(e=>(t[e._id]=e,e._id));window.main.objects=t,window.main.instances=n,this.setState({instancesLoaded:!0})}static onInstanceChanged(e,t){if(e)if(!t&&window.main.instances.includes(e)){delete window.main.objects[e];let t=window.main.instances.indexOf(e);window.main.instances.splice(t,1)}else(t==null?void 0:t.type)===`instance`&&(window.main.instances.includes(e)||(window.main.instances.push(e),window.main.instances.sort()),window.main.objects[e]=t)}setChangedInAdmin(){let e=Object.keys(this.state.changed).find(e=>this.state.changed[e]);Object.keys(this.state.changed).forEach(e=>{this.changedMirror[e]=this.state.changed[e]}),Object.keys(this.changedMirror).forEach(e=>{this.state.changed[e]===void 0&&delete this.changedMirror[e]}),this.props.onChangedChanged(this.changedMirror),window.parent!==void 0&&window.parent&&(window.parent.configNotSaved=!!e)}componentDidMount(){window.addEventListener(`beforeunload`,this.onBrowserClose,!1),this.props.socket.subscribeObject(`system.adapter.*`,e.onInstanceChanged)}componentWillUnmount(){window.removeEventListener(`beforeunload`,this.onBrowserClose),this.props.socket.unsubscribeObject(`system.adapter.*`,e.onInstanceChanged)}componentDidUpdate(e){if(e.scriptsHash!==this.props.scriptsHash)for(let e of this.state.editing){let t=this.props.objects[e];if(!t||t.type!==`script`)continue;let n=t.ts||0,r=this.lastKnownTs[e];r!==void 0&&n!==r&&(this.state.changed[e]?this.state.scriptConflict||this.setState({scriptConflict:e}):(this.scripts[e]=this.getScriptFromObject(e),this.lastKnownTs[e]=n))}}removeNonExistingScripts(e,t){e||=this.props,t||={};let n=!1;if(this.state.editing&&this.state.editing.find(t=>e&&!e.objects[t])){let e=[...this.state.editing];for(let t=e.length-1;t>=0;t--)this.objects[e[t]]||(n=!0,e.splice(t,1));n&&(t.editing=e),this.state.selected&&!this.objects[this.state.selected]&&(n=!0,t.selected=e[0]||``,t.selected&&this.scripts[t.selected]&&(this.state.blockly!==(this.scripts[t.selected].engineType===`Blockly`)&&(t.blockly=this.scripts[t.selected].engineType===`Blockly`,n=!0),this.state.rules!==(this.scripts[t.selected].engineType===`Rules`)&&(t.rules=this.scripts[t.selected].engineType===`Rules`,n=!0),this.state.verboseEnabled!==this.scripts[t.selected].verbose&&(t.verboseEnabled=this.scripts[t.selected].verbose,n=!0),this.state.debugEnabled!==this.scripts[t.selected].debug&&(t.debugEnabled=this.scripts[t.selected].debug,n=!0)))}return n}UNSAFE_componentWillReceiveProps(e){let t={},n=!1;if(JSON.stringify(e.runningInstances)!==JSON.stringify(this.state.runningInstances)&&(n=!0,t.runningInstances=e.runningInstances),this.state.menuOpened!==e.menuOpened&&(t.menuOpened=e.menuOpened,n=!0),this.state.themeType!==e.themeType&&(t.themeType=e.themeType,n=!0),this.removeNonExistingScripts(e,t)&&(n=!0),this.state.searchText!==e.searchText&&(t.searchText=e.searchText,n=!0),this.objects!==e.objects){this.objects=e.objects,window.main.objects=e.objects,Object.keys(this.scripts).forEach(e=>{let t=this.scripts[e].source;this.scripts[e]=JSON.parse(JSON.stringify(this.objects[e].common)),this.scripts[e].source=t}),this.state.selected&&this.objects[this.state.selected]&&(this.scripts[this.state.selected]||=JSON.parse(JSON.stringify(this.objects[this.state.selected].common)),this.state.blockly!==(this.scripts[this.state.selected].engineType===`Blockly`)&&(t.blockly=this.scripts[this.state.selected].engineType===`Blockly`,n=!0),this.state.rules!==(this.scripts[this.state.selected].engineType===`Rules`)&&(t.rules=this.scripts[this.state.selected].engineType===`Rules`,n=!0),this.state.verboseEnabled!==this.scripts[this.state.selected].verbose&&(t.verboseEnabled=this.scripts[this.state.selected].verbose,n=!0),this.state.debugEnabled!==this.scripts[this.state.selected].debug&&(t.debugEnabled=this.scripts[this.state.selected].debug,n=!0));let r=[...this.state.editing];for(let e=r.length-1;e>=0;e--)this.objects[r[e]]||(n=!0,r.splice(e,1),this.state.changed[r[e]]!==void 0&&(t.changed||={...this.state.changed},t.changed&&delete t.changed[r[e]]));this.state.selected&&!this.objects[this.state.selected]&&(t.selected=r[0]||``),n&&(t.editing=r)}else for(let e in this.scripts){var r;if(Object.prototype.hasOwnProperty.call(this.scripts,e)){if((r=this.objects[e])!=null&&r.common){if(this.objects[e].type===`script`){let r=this.scripts[e].source,o=JSON.parse(JSON.stringify(this.scripts[e]));if(o.source=this.objects[e].common.source,JSON.stringify(o)!==JSON.stringify(this.objects[e].common)&&(this.scripts[e]=JSON.parse(JSON.stringify(this.objects[e].common)),this.scripts[e].source=r),r!==this.objects[e].common.source)if(this.state.changed[e]){var i;(i=this.objects[e].from)!=null&&i.startsWith(`system.adapter.javascript.`)&&(this.objects[e].from=`system.adapter.admin.0`,this.setState({toast:U.t(`Script %s was modified on disk.`,e.split(`.`).pop())}))}else{var a;this.props.password&&(a=this.objects[e].native)!=null&&a.protected?this.scripts[e].source=ia(this.props.password,this.objects[e].common.source):this.scripts[e].source=this.objects[e].common.source}else this.state.changed[e]&&(t.changed||={...this.state.changed},t.changed&&(t.changed[e]=!1),n=!0)}}else if(this.scripts[e]&&(delete this.scripts[e],this.state.selected===e)){if(this.state.editing.indexOf(e)!==-1){let r=[...this.state.editing],i=r.indexOf(e);i!==-1&&(r.splice(i,1),t.editing=r,n=!0)}t.selected=this.state.editing[0]||``,n=!0}}}if(e.selected&&this.state.selected!==e.selected){let r=this.getScriptFromObject(e.selected);this.scripts[e.selected]||=r;let i=r&&JSON.stringify(this.scripts[e.selected])!==JSON.stringify(r),a=[...this.state.editing];e.selected&&!a.includes(e.selected)&&(a.push(e.selected),this.props.onSelectedChange(e.selected,a),window.localStorage.setItem(`Editor.editing`,JSON.stringify(a))),n=!0,t.changed||={...this.state.changed},t.changed[e.selected]=!!i,t.editing=a,t.selected=e.selected,t.blockly=this.scripts[e.selected].engineType===`Blockly`,t.rules=this.scripts[e.selected].engineType===`Rules`,t.verboseEnabled=this.scripts[e.selected].verbose,t.debugEnabled=this.scripts[e.selected].debug,t.showCompiledCode=!1}this.state.visible!==e.visible&&(n=!0,t.visible=e.visible),n&&this.setState(t,()=>this.setChangedInAdmin())}onRestart(){var e,t;(e=(t=this.props).onRestart)==null||e.call(t,this.state.selected)}onStartStop(){var e,t,n;let r=JSON.parse(JSON.stringify(this.scripts[this.state.selected]));r.enabled=!r.enabled,this.props.password&&(e=this.props.objects[this.state.selected].native)!=null&&e.protected&&(r.source=ra(this.props.password,r.source)),(t=(n=this.props).onChange)==null||t.call(n,this.state.selected,r)}onSave(){if(this.state.isTourOpen&&this.state.tourStep===Lt.saveTheScript&&(this.setState({isTourOpen:!1}),window.localStorage.setItem(`tour`,`true`)),this.state.changed[this.state.selected]){let e={...this.state.changed};e[this.state.selected]=!1,this.setState({changed:e},()=>{var e,t,n;this.setChangedInAdmin();let r=JSON.parse(JSON.stringify(this.scripts[this.state.selected]));this.props.password&&(e=this.props.objects[this.state.selected].native)!=null&&e.protected&&(r.source=ra(this.props.password,r.source)),(t=(n=this.props).onChange)==null||t.call(n,this.state.selected,r)})}}onSaveAll(){let e={...this.state.changed};Object.keys(e).forEach(t=>{if(e[t]){var n,r,i;e[t]=!1;let a=JSON.parse(JSON.stringify(this.scripts[t]));this.props.password&&(n=this.props.objects[t].native)!=null&&n.protected&&(a.source=ra(this.props.password,a.source)),(r=(i=this.props).onChange)==null||r.call(i,t,a)}}),this.setState({changed:e},()=>this.setChangedInAdmin())}onCancel(){var e;this.scripts[this.state.selected]=this.getScriptFromObject(this.state.selected),this.lastKnownTs[this.state.selected]=((e=this.props.objects[this.state.selected])==null?void 0:e.ts)||0;let t={...this.state.changed};t[this.state.selected]=!1,this.setState({changed:t},()=>this.setChangedInAdmin())}onRegisterSelect(e){this.getSelect=e}handleAiAction(e){let t={aiActionRequest:e};this.state.aiChatOpen||(window.localStorage.setItem(`Editor.aiChatOpen`,`true`),t.aiChatOpen=!0),this.setState(t)}getEditorApi(){let e=()=>this.scriptEditorRef.current;return{getSelection:()=>{var t,n;return((t=e())==null||(n=t.getEditorSelection)==null?void 0:n.call(t))??null},getContent:()=>{var t,n;return((t=e())==null||(n=t.getEditorContent)==null?void 0:n.call(t))??``},getCursorPosition:()=>{var t,n;return((t=e())==null||(n=t.getCursorPosition)==null?void 0:n.call(t))??null},highlightText:t=>{var n,r;return((n=e())==null||(r=n.highlightText)==null?void 0:r.call(n,t))??0},highlightLineRange:(t,n)=>{var r,i;return((r=e())==null||(i=r.highlightLineRange)==null?void 0:i.call(r,t,n))??!1},goToLine:(t,n)=>{var r,i;return((r=e())==null||(i=r.goToLine)==null?void 0:i.call(r,t,n))??!1},insertTextAtCursor:t=>{let n=e();return n!=null&&n.insertTextIntoEditor?(n.insertTextIntoEditor(t),!0):!1},replaceSelection:t=>{var n,r;return((n=e())==null||(r=n.replaceSelection)==null?void 0:r.call(n,t))??!1},getDiagnostics:()=>{var t,n;return((t=e())==null||(n=t.getDiagnostics)==null?void 0:n.call(t))??[]},getSymbols:async()=>{var t,n;return((t=e())==null||(n=t.getDocumentSymbols)==null?void 0:n.call(t))??[]}}}onConvertBlockly2JS(){this.showConfirmDialog(U.t(`It will not be possible to revert this operation.`),e=>{if(e){this.scripts[this.state.selected].engineType=`Javascript/js`;let e=this.scripts[this.state.selected].source.split(`
|
|
186
|
+
`);e.pop(),this.scripts[this.state.selected].source=e.join(`
|
|
187
|
+
`);let t=this.state.selected,n={...this.state.changed};n[this.state.selected]=!0,this.setState({changed:n,blockly:!1,selected:``},()=>{this.setChangedInAdmin(),setTimeout(()=>this.setState({selected:t}),100)})}})}onChange(e){if(e.script!==void 0){if(e.script===this.scripts[this.state.selected].source)return;this.scripts[this.state.selected].source=e.script}e.debug!==void 0&&(this.scripts[this.state.selected].debug=e.debug),e.verbose!==void 0&&(this.scripts[this.state.selected].verbose=e.verbose);let t=JSON.stringify(this.scripts[this.state.selected])!==JSON.stringify(this.getScriptFromObject(this.state.selected));if(t!==!!this.state.changed[this.state.selected]){let e={...this.state.changed};e[this.state.selected]=t,this.objects[this.state.selected].from=`system.adapter.admin.0`,this.setState({changed:e},()=>this.setChangedInAdmin())}}onTabChange(e){var t,n;if(this.props.debugMode)return;window.localStorage.setItem(`Editor.selected`,e);let r=this.scripts[e]||this.getScriptFromObject(e);this.scripts[e]||(this.scripts[e]=r),this.lastKnownTs[e]===void 0&&this.props.objects[e]&&(this.lastKnownTs[e]=this.props.objects[e].ts||0),this.setState({selected:e,rules:r.engineType===`Rules`,blockly:r.engineType===`Blockly`,showCompiledCode:!1,verboseEnabled:r.verbose,debugEnabled:r.debug}),(t=(n=this.props).onSelectedChange)==null||t.call(n,e,this.state.editing)}isScriptChanged(e){return!!(this.scripts[e]&&this.props.objects[e]&&JSON.stringify(this.scripts[e])!==JSON.stringify(this.getScriptFromObject(e)))}onTabClose(e,t){t==null||t.stopPropagation();let n=this.state.editing.indexOf(e);if(this.state.editing.includes(e))if(this.isScriptChanged(e))this.showConfirmDialog(U.t(`Discard changes for %s`,this.props.objects[e].common.name),t=>{t&&(delete this.scripts[e],delete this.lastKnownTs[e],this.onTabClose(e))});else{let t=[...this.state.editing];t.splice(n,1);let r={editing:t};if(e===this.state.selected?r.selected=t.length?n===0||t.length===1?t[0]:t[n-1]:``:this.state.selected&&!t.length&&(r.selected=``),window.localStorage.setItem(`Editor.editing`,JSON.stringify(t)),r.selected!==void 0){r.changed||={...this.state.changed},r.changed[r.selected]=this.isScriptChanged(r.selected);let e=r.selected?this.scripts[r.selected]||this.getScriptFromObject(r.selected):void 0;r.blockly=(e==null?void 0:e.engineType)===`Blockly`,r.rules=(e==null?void 0:e.engineType)===`Rules`,r.verboseEnabled=!!(e!=null&&e.verbose),r.debugEnabled=!!(e!=null&&e.debug),r.showCompiledCode=!1}this.setState(r,()=>{if(this.setChangedInAdmin(),r.selected!==void 0){var e,t;(e=(t=this.props).onSelectedChange)==null||e.call(t,r.selected,this.state.editing),window.localStorage.setItem(`Editor.selected`,r.selected)}else{var n,i;(n=(i=this.props).onSelectedChange)==null||n.call(i,this.state.selected,this.state.editing)}})}}showConfirmDialog(e,t){this.confirmCallback=t,this.setState({confirm:e})}sendCommandToBlockly(e){this.setState({cmdToBlockly:e},()=>setTimeout(()=>this.setState({cmdToBlockly:``}),200))}sendCommandToRules(e){this.setState({cmdToRules:e},()=>setTimeout(()=>this.setState({cmdToRules:``}),200))}static getText(e){return typeof e==`object`?e[U.getLanguage()]||e.en:e}getScriptFullName(t){let n=t.split(`.`);n.shift(),n.shift();let r=[],i=`script.js`;for(let t=0;t<n.length;t++){var a;i+=`.${n[t]}`,(a=this.props.objects[i])!=null&&a.common?r.push(e.getText(this.props.objects[i].common.name)):r.push(n[t])}return`/ ${r.join(` / `)}`}getTabs(){return this.state.editing.length?[V(Ye,{component:`div`,value:this.props.debugInstance?this.props.debugInstance.adapter:this.state.selected,onChange:(e,t)=>this.onTabChange(t),indicatorColor:`primary`,style:{position:`relative`,marginLeft:10,width:this.state.editing.length>1?`calc(100% - 50px)`:`100%`,display:`inline-block`},textColor:`primary`,variant:`scrollable`,scrollButtons:`auto`,allowScrollButtonsMobile:!0,children:[this.state.editing.map(t=>{var n,r;if(!this.props.objects[t]){let e=[C(A,{sx:this.isScriptChanged(t)?$.tabChanged:void 0,style:$.tabText,children:t.split(`.`).pop()},`text`),C(G,{onClick:e=>this.onTabClose(t,e),style:$.closeButton,size:`small`,component:`span`,children:C(N,{})},`icon`)];return C(Et,{wrapped:!0,href:`#${t}`,label:e,value:t,sx:{"& .MuiTab-wrapper":$.tabButtonWrapper}},t)}if(!this.props.password&&(n=this.props.objects[t].native)!=null&&n.protected)return null;let i=e.getText(this.props.objects[t].common.name)||``,a=this.getScriptFullName(t);i.length>18&&(i=`${i.substring(0,15)}...`);let o=(r=this.getScriptFromObject(t))==null?void 0:r.source,s=this.scripts[t]&&o!==this.scripts[t].source,c=[C(A,{sx:this.isScriptChanged(t)?$.tabChanged:void 0,style:$.tabText,children:i},`text`),s?C(`span`,{style:$.tabChangedIcon,children:`▣`},`changedSign`):null,!this.props.debugInstance&&(!this.props.debugMode||this.state.selected!==t)&&C(G,{onClick:e=>this.onTabClose(t,e),style:$.closeButton,size:`small`,component:`span`,children:C(N,{})},`icon`)];return C(Et,{disabled:!!this.props.debugInstance||this.state.selected!==t&&this.props.debugMode,wrapped:!0,iconPosition:`start`,icon:C(`img`,{alt:``,src:op[this.props.objects[t].common.engineType]||op.def,style:$.tabIcon},`icon`),href:`#${t}`,label:c,style:$.tabButton,value:t,title:a,sx:{"& .MuiTab-wrapper":$.tabButtonWrapper}},t)}),this.props.debugInstance?C(Et,{disabled:!1,wrapped:!0,href:`#${this.props.debugInstance.adapter}`,label:this.props.debugInstance.adapter,style:$.tabButton,value:this.props.debugInstance.adapter,title:this.props.debugInstance.adapter,sx:{"& .MuiTab-wrapper":$.tabButtonWrapper}},this.props.debugInstance.adapter):``]},`tabs1`),this.state.editing.length>1?C(G,{href:`#`,"aria-label":`Close all but current`,style:$.tabMenuButton,title:U.t(`Close all but current`),"aria-haspopup":`false`,onClick:e=>{let t=[this.state.selected];Object.keys(this.scripts).forEach(e=>e!==this.state.selected&&JSON.stringify(this.scripts[e])!==JSON.stringify(this.getScriptFromObject(e))&&t.push(e)),window.localStorage.setItem(`Editor.editing`,JSON.stringify(t)),this.setState({menuTabsOpened:!1,editing:t})},size:`medium`,children:C(j,{})},`menuButton`):null]:C(A,{sx:$.toolbar,children:V(q,{color:`grey`,disabled:!0,style:$.hintButton,href:``,children:[C(`span`,{children:U.t(`Click on this icon`)},`select2`),C(de,{style:$.hintIcon},`select3`),C(`span`,{children:U.t(`for edit or create script`)},`select4`)]},`select1`)},`tabs2`)}getDebugMenu(){return this.state.showDebugMenu?V(Ee,{id:`menu-debug`,anchorEl:this.state.menuDebugAnchorEl,open:this.state.showDebugMenu,onClose:()=>this.setState({showDebugMenu:!1,menuDebugAnchorEl:null}),slotProps:{root:{style:{maxHeight:sp*7.5}}},children:[V(Ot,{title:U.t(`debug_help`),onClick:e=>{e.stopPropagation(),e.preventDefault(),this.setState({showDebugMenu:!1,menuDebugAnchorEl:null,debugEnabled:!this.state.debugEnabled},()=>this.onChange({debug:this.state.debugEnabled}))},children:[C(x,{checked:this.state.debugEnabled}),C(I,{style:{...$.menuIcon,color:cp}}),U.t(`debug_label`)]},`debugEnabled`),V(Ot,{title:U.t(`verbose_help`),onClick:e=>{e.stopPropagation(),e.preventDefault(),this.setState({showDebugMenu:!1,menuDebugAnchorEl:null,verboseEnabled:!this.state.verboseEnabled},()=>this.onChange({verbose:this.state.verboseEnabled}))},children:[C(x,{checked:this.state.verboseEnabled}),C(y,{style:{...$.menuIcon,color:lp}}),U.t(`verbose_label`)]},`verboseEnabled`)]},`menuDebug`):null}getDebugBadge(){return[this.state.debugEnabled&&this.state.verboseEnabled?C(I,{style:{...$.menuIcon,color:lp}},`DebugVerbose`):null,this.state.debugEnabled&&!this.state.verboseEnabled?C(I,{style:{...$.menuIcon,color:cp}},`DebugNoVerbose`):null,!this.state.debugEnabled&&this.state.verboseEnabled?C(y,{style:{...$.menuIcon,color:lp}},`noDebugVerbose`):null]}getAskAboutDebug(){return this.state.askAboutDebug?C(vt,{onClose:()=>{this.setState({askAboutDebug:!1},()=>this.props.onDebugModeChange(!0))},ok:U.t(`Yes`),cancel:U.t(`Cancel`),text:U.t(`The script will be stopped and must be activated manually after debugging. Continue?`)}):null}getToolbar(){var e,t;let n=!!(this.state.selected&&(e=this.scripts[this.state.selected])!=null&&e.engine&&this.state.runningInstances[this.scripts[this.state.selected].engine]),r=!!(this.state.selected&&(t=this.scripts[this.state.selected])!=null&&t.enabled);if(this.state.selected){let e=Object.keys(this.state.changed).filter(e=>this.state.changed[e]).length,t=this.state.changed[this.state.selected];return V(ne,{variant:`dense`,sx:$.toolbar,children:[!this.props.debugInstance&&this.state.menuOpened&&this.props.onLocate&&C(G,{style:$.toolbarButtons,title:U.t(`Locate file`),onClick:()=>this.props.onLocate(this.state.selected),size:`medium`,children:C(l,{})},`locate`),!this.props.debugInstance&&!t&&n?C(G,{disabled:this.props.debugMode,style:$.toolbarButtons,onClick:()=>this.onRestart(),title:U.t(`Restart`),size:`medium`,children:C(ft,{})},`restart`):null,!this.props.debugInstance&&!t?C(G,{disabled:this.props.debugMode,onClick:()=>this.onStartStop(),title:r?U.t(`Pause script`):U.t(`Run script`),size:`medium`,style:{...$.toolbarButtons,color:r?up:dp},children:C(r?le:me,{})},`start-stop`):null,!this.props.debugInstance&&!t&&!r?C(`span`,{style:$.notRunning,children:U.t(`Script is not running`)}):null,!t&&r&&!n?C(`span`,{style:$.notRunning,children:U.t(`Instance is disabled`)}):null,t?C(q,{color:`grey`,variant:`contained`,style:{...$.textButton,...$.saveButton},className:`button-save`,onClick:()=>this.onSave(),endIcon:C(E,{}),children:U.t(`Save`)},`save`):null,e>1||e===1&&!t?C(q,{color:`grey`,variant:`contained`,style:$.textButton,onClick:()=>this.onSaveAll(),endIcon:C(E,{}),children:U.t(`Save all`)},`saveall`):null,t?C(q,{color:`grey`,variant:`contained`,style:$.textButton,onClick:()=>this.onCancel(),endIcon:C(s,{}),children:U.t(`Cancel`)},`cancel`):null,!this.state.showCompiledCode&&!this.state.rules?C(G,{title:U.t(`Undo`),style:$.toolbarButtons,onClick:()=>{if(this.state.blockly){var e;let t=(e=this.blocklyEditorRef.current)==null?void 0:e.blocklyWorkspace;t==null||t.undo(!1)}else{var t;(t=this.scriptEditorRef.current)==null||t.undo()}},size:`medium`,children:C(ve,{})},`undo`):null,!this.state.showCompiledCode&&!this.state.rules?C(G,{title:U.t(`Redo`),style:$.toolbarButtons,onClick:()=>{if(this.state.blockly){var e;let t=(e=this.blocklyEditorRef.current)==null?void 0:e.blocklyWorkspace;t==null||t.undo(!0)}else{var t;(t=this.scriptEditorRef.current)==null||t.redo()}},size:`medium`,children:C(D,{})},`redo`):null,C(`div`,{style:{flex:2}}),this.state.blockly&&!this.state.showCompiledCode&&C(G,{"aria-label":`OID display mode`,title:U.t(`OID display mode`),style:$.toolbarButtons,onClick:e=>this.setState({menuOidDisplayAnchorEl:e.currentTarget}),size:`medium`,children:C(`img`,{src:Qf[this.state.oidDisplayMode]||Qf[0],alt:`OID`,width:36,height:22})},`oid-display-mode`),V(Ee,{anchorEl:this.state.menuOidDisplayAnchorEl,open:!!this.state.menuOidDisplayAnchorEl,onClose:()=>this.setState({menuOidDisplayAnchorEl:null}),children:[Qf.map((e,t)=>V(Ot,{selected:this.state.oidDisplayMode===t,onClick:()=>{var e,n;this.setState({oidDisplayMode:t,menuOidDisplayAnchorEl:null});let r=(e=window.scripts)==null?void 0:e.blocklyWorkspace;r&&(n=window.Blockly)!=null&&(n=n.FieldOID)!=null&&n.setDisplayMode&&window.Blockly.FieldOID.setDisplayMode(t,r)},children:[C(`img`,{src:e,alt:``,width:48,height:28,style:{marginRight:8}}),(()=>{var e,n,r;let i=(e=window.Blockly)==null||(e=e.FieldOID)==null||(e=e.DISPLAY_MODE_KEYS)==null?void 0:e[t];return i&&(((n=window.Blockly)==null||(n=n.Words)==null||(n=n[i])==null?void 0:n[U.getLanguage()])||((r=window.Blockly)==null||(r=r.Words)==null||(r=r[i])==null?void 0:r.en))||[`Show name`,`Show name path`,`Show ID`,`Show full ID`][t]})()]},`oid-mode-${t}`)),C(Ne,{}),V(Ot,{onClick:()=>{var e,t;let n=!this.state.oidShowIcon;this.setState({oidShowIcon:n});let r=(e=window.scripts)==null?void 0:e.blocklyWorkspace;r&&(t=window.Blockly)!=null&&(t=t.FieldOID)!=null&&t.setShowIcon&&window.Blockly.FieldOID.setShowIcon(n,r)},children:[C(x,{checked:this.state.oidShowIcon,style:{padding:0,marginRight:8}}),(()=>{var e,t;let n=`oid_show_icon`;return((e=window.Blockly)==null||(e=e.Words)==null||(e=e[n])==null?void 0:e[U.getLanguage()])||((t=window.Blockly)==null||(t=t.Words)==null||(t=t[n])==null?void 0:t.en)||`Show icon`})()]},`oid-show-icon`)]},`menuOidDisplay`),!this.props.debugInstance&&!this.state.showCompiledCode&&C(G,{style:$.toolbarButtons,title:U.t(`Prettify the script`),onClick:()=>this.setState({triggerPrettier:this.state.triggerPrettier+1}),size:`medium`,children:C(z,{})},`prettier`),this.state.blockly&&!this.state.showCompiledCode?C(G,{"aria-label":`Export Blocks`,title:U.t(`Export blocks`),style:$.toolbarButtons,onClick:()=>this.sendCommandToBlockly(`export`),size:`medium`,children:C(at,{})},`export`):null,this.state.blockly&&!this.state.showCompiledCode&&C(G,{"aria-label":`Import Blocks`,title:U.t(`Import blocks`),style:$.toolbarButtons,onClick:()=>this.sendCommandToBlockly(`import`),size:`medium`,children:C(ht,{})},`import`),this.state.blockly&&!this.state.showCompiledCode&&C(G,{"aria-label":`Check code`,title:U.t(`Check blocks`),style:$.toolbarButtons,onClick:()=>this.sendCommandToBlockly(`check`),size:`medium`,children:C(Je,{})},`check`),!this.props.debugMode&&!this.state.blockly&&!this.state.rules&&!this.state.showCompiledCode?C(G,{"aria-label":`create CRON`,title:U.t(`Create or edit CRON or time wizard`),style:$.toolbarButtons,onClick:()=>this.setState({showCron:!0}),size:`medium`,children:C(xt,{})},`select-cron`):null,this.scripts[this.state.selected]&&this.scripts[this.state.selected].engineType!==`Rules`?C(fe,{children:C(G,{"aria-label":`AI`,title:U.t(`AI Chat`),style:{...$.toolbarButtons,...this.state.aiChatOpen?{color:`#4caf50`}:{}},size:`medium`,onClick:()=>{let e=!this.state.aiChatOpen;window.localStorage.setItem(`Editor.aiChatOpen`,String(e)),this.setState({aiChatOpen:e})},children:C(m,{})},`ai`)}):null,C(G,{"aria-label":`Show astronomical events`,title:U.t(`Show astronomical events`),style:$.toolbarButtons,disabled:!n,onClick:()=>{this.setState({showAstro:!0,astroEvents:null}),this.props.socket.sendTo(this.scripts[this.state.selected].engine.replace(`system.adapter.`,``),`calcAstroAll`,{}).then(e=>this.setState({astroEvents:e}))},size:`medium`,children:C(f,{})},`show-astro`),!this.props.debugMode&&!this.state.blockly&&!this.state.rules&&!this.state.showCompiledCode&&C(G,{"aria-label":`select ID`,title:U.t(`Insert object ID`),style:$.toolbarButtons,onClick:()=>this.setState({showSelectId:!0}),size:`medium`,children:C(Fe,{})},`select-id`),this.state.blockly&&!this.state.rules&&this.state.showCompiledCode&&C(q,{color:`grey`,"aria-label":`convert to javascript`,title:U.t(`Convert blockly to javascript for ever.`),onClick:()=>this.onConvertBlockly2JS(),children:`Blockly=>JS`},`convert2js`),this.state.rules&&!this.state.showCompiledCode&&C(G,{"aria-label":`Export Blocks`,title:U.t(`Export blocks`),style:$.toolbarButtons,onClick:()=>this.sendCommandToRules(`export`),size:`medium`,children:C(at,{})},`export`),this.state.rules&&!this.state.showCompiledCode&&C(G,{"aria-label":`Import Blocks`,title:U.t(`Import blocks`),style:$.toolbarButtons,onClick:()=>this.sendCommandToRules(`import`),size:`medium`,children:C(ht,{})},`import`),this.props.expertMode&&!t&&(this.props.debugMode||!this.state.blockly&&!this.state.rules||(this.state.blockly||this.state.rules)&&this.state.showCompiledCode)&&C(G,{style:$.toolbarButtons,color:this.props.debugMode?`primary`:`default`,disabled:!this.props.debugMode&&!n,onClick:()=>{!this.props.debugMode&&r?this.setState({askAboutDebug:!0}):this.props.onDebugModeChange(!this.props.debugMode)},size:`medium`,children:C(I,{style:{fontSize:32}})}),(this.state.blockly||this.state.rules)&&C(q,{"aria-label":`blockly`,title:U.t(`Show javascript code`),className:`button-js-code`,color:this.state.showCompiledCode?`secondary`:`inherit`,disabled:this.props.debugMode,style:{...$.toolbarButtons,...this.props.debugMode?$.toolbarButtonsDisabled:void 0,padding:`0 5px`},onClick:()=>{this.props.debugMode||(this.setState({showCompiledCode:!this.state.showCompiledCode}),this.state.isTourOpen&&this.state.tourStep===Lt.showJavascript&&this.setState({tourStep:Lt.switchBackToRules}),this.state.isTourOpen&&this.state.tourStep===Lt.switchBackToRules&&this.setState({tourStep:Lt.saveTheScript}))},children:C(`img`,{alt:this.state.blockly?`blockly2js`:`rules2js`,src:this.state.blockly?``+new URL(`blockly2js-B3Jxf2e-.svg`,import.meta.url).href:``+new URL(`rules2js-DnYyR8mI.svg`,import.meta.url).href})},`blockly-code`),C(G,{disabled:this.props.debugMode,"aria-label":`Debug menu`,title:U.t(`Debug options`),style:$.toolbarButtons,onClick:e=>this.setState({showDebugMenu:!0,menuDebugAnchorEl:e.currentTarget}),size:`medium`,children:C(ee,{style:$.badgeMargin,badgeContent:this.getDebugBadge(),children:C(Xe,{})})},`debug`)]},`toolbar1`)}return null}getScriptInfos(){let e=Object.keys(this.props.objects).join(`,`);return this.cachedScriptInfos&&this.lastObjectsHash===e?this.cachedScriptInfos:(this.lastObjectsHash=e,this.cachedScriptInfos=Kt(this.props.objects),this.cachedScriptInfos)}getScriptEditor(){if(!this.props.debugMode&&this.state.selected&&this.props.objects[this.state.selected]&&this.state.blockly!==null&&(!this.state.blockly||this.state.showCompiledCode)&&(!this.state.rules||this.state.showCompiledCode)){this.scripts[this.state.selected]||=this.getScriptFromObject(this.state.selected);let n=this.scripts[this.state.selected].engineType===`TypeScript/ts`?`typescript`:`javascript`,r=C(Ce,{fallback:C(Uf,{}),children:C(np,{ref:this.scriptEditorRef,name:this.state.selected,adapterName:this.props.adapterName,insert:this.state.insert,onInserted:()=>this.setState({insert:``}),onForceSave:()=>this.onSave(),searchText:this.state.searchText,onRegisterSelect:e=>this.onRegisterSelect(e),readOnly:this.state.showCompiledCode,changed:this.state.changed[this.state.selected],code:this.scripts[this.state.selected].source||``,isDark:this.state.themeType===`dark`,socket:this.props.socket,runningInstances:this.state.runningInstances,triggerPrettier:this.state.triggerPrettier,onChange:e=>this.onChange({script:e}),language:n,aiCompletionsEnabled:this.state.aiCompletionsEnabled,onAiAction:e=>this.handleAiAction(e),onInlineAsk:this.state.inlineAskHandler?e=>this.state.inlineAskHandler(e.question,e.selectedCode):void 0},`scriptEditor1`)});if(this.state.aiDiffView)return C(A,{sx:$.editorDiv,children:C(Ce,{fallback:C(Uf,{}),children:C(ap,{originalCode:this.state.aiDiffView.original,modifiedCode:this.state.aiDiffView.modified,language:n,themeType:this.state.themeType,onAccept:e=>{this.onChange({script:e}),this.setState({aiDiffView:null})},onReject:()=>this.setState({aiDiffView:null})})})},`scriptEditorDiv`);if(this.state.aiChatOpen){var e,t;let i=window.localStorage.getItem(`Editor.aiChatSizes`),a=[70,30];try{i&&(a=JSON.parse(i))}catch{}return C(A,{sx:$.editorDiv,children:V(Pt,{direction:Nt.Horizontal,initialSizes:a,minWidths:[200,250],gutterClassName:this.state.themeType===`dark`?`Dark visGutter`:`Light visGutter`,onResizeFinished:(e,t)=>{window.localStorage.setItem(`Editor.aiChatSizes`,JSON.stringify(t))},children:[r,C(Ce,{fallback:C(Uf,{}),children:C(ip,{socket:this.props.socket,runningInstances:this.state.runningInstances,themeType:this.state.themeType,currentCode:((e=this.scripts[this.state.selected])==null?void 0:e.source)||``,currentLanguage:n,selectedCode:((t=this.getSelect)==null?void 0:t.call(this))||``,allScripts:this.getScriptInfos(),editorApi:this.getEditorApi(),aiActionRequest:this.state.aiActionRequest,onAiActionConsumed:()=>this.setState({aiActionRequest:null}),onRegisterInlineAsk:e=>this.setState({inlineAskHandler:e}),currentScriptId:this.state.selected,onInsertCode:e=>this.setState({insert:e}),onShowDiff:(e,t)=>{var n;let r=this.state.selected,i=((n=this.scripts[r])==null?void 0:n.source)||``,a=this.scriptEditorRef.current,o=(t,n)=>{a==null||a.showInlineDiff({range:t,originalText:n,modifiedText:e,onAccepted:()=>{var e;let t=(a==null||(e=a.getEditorContent)==null?void 0:e.call(a))||i;this.onChange({script:t})}})};if(t&&t.range&&t.scriptId===r){o(t.range,t.originalText);return}try{let t=Zf(e,i);if(t){let e=i.split(`
|
|
188
|
+
`).slice(t.range.startLine-1,t.range.endLine).join(`
|
|
189
|
+
`);o(t.range,e);return}}catch{}this.setState({aiDiffView:{original:i,modified:e}})},onClose:()=>{window.localStorage.setItem(`Editor.aiChatOpen`,`false`),this.setState({aiChatOpen:!1})}})})]})},`scriptEditorDiv`)}return C(A,{sx:$.editorDiv,children:r},`scriptEditorDiv`)}return null}getBlocklyEditor(){if(!this.props.debugMode&&this.state.instancesLoaded&&this.state.selected&&this.props.objects[this.state.selected]&&this.state.blockly&&!this.state.showCompiledCode&&this.state.visible){this.scripts[this.state.selected]||=this.getScriptFromObject(this.state.selected);let e=C(Ce,{fallback:C(Uf,{}),children:C($f,{ref:this.blocklyEditorRef,command:this.state.cmdToBlockly,themeType:this.state.themeType,searchText:this.state.searchText,code:this.scripts[this.state.selected].source||``,scriptId:this.state.selected,onChange:e=>this.onChange({script:e})},`BlocklyEditor`)});if(this.state.aiChatOpen){let t=window.localStorage.getItem(`Editor.aiBlocklyChatSizes`),n=[70,30];try{t&&(n=JSON.parse(t))}catch{}return C(A,{sx:$.editorDiv,children:V(Pt,{direction:Nt.Horizontal,initialSizes:n,minWidths:[200,250],gutterClassName:this.state.themeType===`dark`?`Dark visGutter`:`Light visGutter`,onResizeFinished:(e,t)=>{window.localStorage.setItem(`Editor.aiBlocklyChatSizes`,JSON.stringify(t))},children:[e,C(Ce,{fallback:C(Uf,{}),children:C(ip,{socket:this.props.socket,runningInstances:this.state.runningInstances,themeType:this.state.themeType,currentCode:(()=>{let e=this.blocklyEditorRef.current,t=``,n=``;try{t=(e==null?void 0:e.blocklyCode2JSCode(!0))||``}catch{}try{n=(e==null?void 0:e.getWorkspaceXml())||``}catch{}return`${t}\n%%BLOCKLY_XML%%\n${n}`})(),currentLanguage:`blockly`,allScripts:this.getScriptInfos(),onInsertCode:e=>{let t=this.blocklyEditorRef.current;t&&t.appendBlocksFromXml(e)},onApplyCode:e=>{let t=this.blocklyEditorRef.current;t&&t.applyAiBlocks(e)},onClose:()=>{window.localStorage.setItem(`Editor.aiChatOpen`,`false`),this.setState({aiChatOpen:!1})}})})]})},`blocklyEditorDiv`)}return C(A,{sx:$.editorDiv,children:e},`blocklyEditorDiv`)}return null}getRulesEditor(){if(!this.props.debugMode&&this.state.instancesLoaded&&this.state.selected&&this.props.objects[this.state.selected]&&this.state.rules&&!this.state.showCompiledCode&&this.state.visible){var e,t;this.scripts[this.state.selected]||=this.getScriptFromObject(this.state.selected);let n=!!this.state.selected&&!!((e=this.scripts[this.state.selected])!=null&&e.engine)&&this.state.runningInstances[this.scripts[this.state.selected].engine],r=!!this.state.selected&&((t=this.scripts[this.state.selected])==null?void 0:t.enabled);return C(A,{sx:$.editorDiv,children:C(Ce,{fallback:C(Uf,{}),children:C(ep,{scriptId:this.state.selected,setTourStep:this.setTourStep,tourStep:this.state.tourStep,isTourOpen:this.state.isTourOpen,changed:this.state.changed[this.state.selected],running:n&&r,command:this.state.cmdToRules,themeType:this.state.themeType,themeName:this.props.themeName,theme:this.props.theme,searchText:this.state.searchText,resizing:this.props.resizing,code:this.scripts[this.state.selected].source||``,onChange:e=>this.onChange({script:e})},`flowEditor`)})},`flowEditorDiv`)}return null}getScriptConflictDialog(){var e;if(!this.state.scriptConflict)return null;let t=this.state.scriptConflict,n=((e=this.props.objects[t])==null||(e=e.common)==null?void 0:e.name)||t;return V(ye,{open:!0,onClose:()=>this.setState({scriptConflict:``}),children:[C(o,{children:U.t(`Script was modified externally`)}),C(xe,{children:U.t(`The script "%s" has been modified by another user or in another window. Do you want to reload the script or keep your local changes?`,n)}),V(_e,{children:[C(q,{variant:`contained`,onClick:()=>{var e;this.scripts[t]=this.getScriptFromObject(t),this.lastKnownTs[t]=((e=this.props.objects[t])==null?void 0:e.ts)||0;let n={...this.state.changed};n[t]=!1,this.setState({scriptConflict:``,changed:n},()=>this.setChangedInAdmin())},color:`primary`,autoFocus:!0,children:U.t(`Reload`)}),C(q,{variant:`contained`,onClick:()=>{var e;this.lastKnownTs[t]=((e=this.props.objects[t])==null?void 0:e.ts)||0,this.setState({scriptConflict:``})},color:`secondary`,children:U.t(`Keep my changes`)})]})]},`dialogScriptConflict`)}getConfirmDialog(){return this.state.confirm?C(vt,{text:this.state.confirm,onClose:e=>{if(this.confirmCallback){let t=this.confirmCallback;this.confirmCallback=null,t(e)}this.setState({confirm:``})}},`dialogConfirm1`):null}getSelectIdDialog(){if(this.state.showSelectId){var e;let t=[`state`,`channel`,`device`,`adapter`,`instance`,`enum`,`host`,`config`,`script`,`user`,`group`],n=[`adapter`,`instance`,`enum`,`host`,`config`,`script`,`user`,`group`],r=this.selectId.callback?this.selectId.initValue||``:this.getSelect&&this.getSelect()||``,i=r.indexOf(`/*`);i!==-1&&(r=r.substring(0,i)),i=r.indexOf(`//`),i!==-1&&(r=r.substring(0,i));let a=r.match(/"([^"]+)"/);return a&&(r=a[1]),a=r.match(/'([^']+)'/),a&&(r=a[1]),C(gt,{theme:this.props.theme,imagePrefix:`../..`,themeName:this.props.themeName,themeType:this.state.themeType,socket:this.props.socket,selected:r,expertMode:this.selectId.type&&this.selectId.type!==`all`&&n.includes(this.selectId.type)?!0:void 0,types:((e=this.selectId)==null?void 0:e.type)===`all`?t:[this.selectId.type||`state`],onClose:()=>{this.setState({showSelectId:!1}),this.selectId.callback&&(this.selectId.callback=null)},onOk:(e,t)=>{this.selectId.initValue=null,this.selectId.callback?(this.selectId.callback(e),this.selectId.callback=null):this.setState({insert:`'${e}'/*${t}*/`})}},`dialogSelectID1`)}return null}getCronDialog(){return this.state.showCron?C(mt,{theme:this.props.theme,cron:this.cron.callback?this.cron.initValue||``:this.getSelect?this.getSelect():`* * * * *`,onClose:()=>this.setState({showCron:!1}),onOk:e=>{this.cron.initValue=null,this.cron.callback?(this.cron.callback(e),this.cron.callback=null):this.setState({insert:`'${e}'`})}},`dialogCron1`):null}getAstroDialog(){return this.state.showAstro?V(ye,{open:!0,onClose:()=>this.setState({showAstro:!1}),children:[C(o,{children:U.t(`Astronomical events today`)}),C(xe,{children:this.state.astroEvents?C(R,{component:oe,children:V(ce,{size:`small`,children:[C(Qe,{children:V(c,{children:[C(p,{children:U.t(`Name`)}),C(p,{children:U.t(`Server time`)}),C(p,{children:U.t(`Description`)})]})}),C(h,{children:Object.keys(this.state.astroEvents).map(e=>{var t,n,r,i;return V(c,{children:[C(p,{component:`th`,scope:`row`,children:e.startsWith(`next`)?``:e}),C(v,{title:`${U.t(`Local time`)}: ${(t=this.state.astroEvents)!=null&&t[e].isValidDate?new Date((n=this.state.astroEvents)==null?void 0:n[e].date).toLocaleTimeString():`n/a`}`,children:C(p,{align:`right`,children:(r=this.state.astroEvents)!=null&&r[e].isValidDate?(i=this.state.astroEvents)==null?void 0:i[e].serverTime:`n/a`})}),C(p,{children:U.t(e)})]},e)})})]})}):C(ut,{})}),C(_e,{children:C(q,{variant:`contained`,onClick:()=>this.setState({showAstro:!1}),color:`primary`,startIcon:C(N,{}),children:U.t(`Close`)})})]},`dialogAstro`):null}getEditorDialog(){return this.state.showScript?C(Ce,{fallback:C(Uf,{}),children:C(rp,{adapterName:this.props.adapterName,source:this.scriptDialog.initValue||``,args:this.scriptDialog.args?this.scriptDialog.args.join(`, `):``,isReturn:this.scriptDialog.isReturn,socket:this.props.socket,runningInstances:this.state.runningInstances,themeType:this.state.themeType,onClose:e=>{this.scriptDialog.initValue=null,this.scriptDialog.callback&&(e!==!1&&this.scriptDialog.callback(e||``),this.scriptDialog.callback=null),this.setState({showScript:!1})}},`scriptEditorDialog`)}):null}getToast(){return C(L,{anchorOrigin:{vertical:`bottom`,horizontal:`left`},open:!!this.state.toast,autoHideDuration:6e3,onClose:()=>this.setState({toast:``}),slotProps:{content:{"aria-describedby":`message-id`}},message:C(`span`,{id:`message-id`,children:this.state.toast}),action:[C(G,{"aria-label":`close`,color:`inherit`,style:$.closeToast,onClick:()=>this.setState({toast:``}),size:`medium`,children:C(N,{})},`close`)]},`toast`)}getTour(){return this.state.instancesLoaded&&this.state.selected&&this.props.isAnyRulesExists===1&&this.props.objects[this.state.selected]&&this.state.rules&&this.state.visible?C(Ff,{steps:Vt,isOpen:this.state.isTourOpen,onRequestClose:()=>{this.setState({isTourOpen:!1}),window.localStorage.setItem(`tour`,`true`),this.props.socket.setState(`javascript.0.variables.rulesTour`,{val:!0,ack:!0})},goToStep:this.state.tourStep},`tour`):null}getDebug(){return this.props.debugMode?this.state.selected&&this.scripts[this.state.selected]&&this.scripts[this.state.selected].engine&&this.state.runningInstances[this.scripts[this.state.selected].engine]?C(Ce,{fallback:C(Uf,{}),children:C(tp,{runningInstances:this.state.runningInstances,adapterName:this.props.adapterName,socket:this.props.socket,themeName:this.props.themeName,themeType:this.props.themeType,src:this.props.debugInstance?this.props.debugInstance.adapter:this.state.selected,debugInstance:this.props.debugInstance},`debugger`)}):(setTimeout(()=>this.props.onDebugModeChange(!1)),null):null}getScriptFromObject(e){var t,n;if(!((t=this.props.objects[e])!=null&&t.common))return;let r=JSON.parse(JSON.stringify(this.props.objects[e].common));return(n=this.props.objects[e].native)!=null&&n.protected&&this.props.password&&(r.source=ia(this.props.password,r.source)),r}render(){var e;if(this.state.selected&&this.props.objects[this.state.selected]&&this.state.blockly===null&&this.state.rules===null){if(!this.scripts[this.state.selected]){var t;this.scripts[this.state.selected]=this.getScriptFromObject(this.state.selected),this.lastKnownTs[this.state.selected]=((t=this.props.objects[this.state.selected])==null?void 0:t.ts)||0}setTimeout(()=>{let e={blockly:this.scripts[this.state.selected].engineType===`Blockly`,rules:this.scripts[this.state.selected].engineType===`Rules`,showCompiledCode:!1,debugEnabled:this.scripts[this.state.selected].debug,verboseEnabled:this.scripts[this.state.selected].verbose};this.removeNonExistingScripts(null,e),this.setState(e)},100)}return this.state.selected&&!this.props.password&&(e=this.props.objects[this.state.selected])!=null&&(e=e.native)!=null&&e.protected&&setTimeout(()=>{let e=this.state.editing.find(e=>{var t;return!((t=this.props.objects[e])!=null&&(t=t.native)!=null&&t.protected)})||``;Object.keys(this.scripts).forEach(e=>{var t;(t=this.props.objects[e])!=null&&(t=t.native)!=null&&t.protected&&delete this.scripts[e]}),this.setState({selected:e},()=>{var t,n;(t=(n=this.props).onSelectedChange)==null||t.call(n,e,this.state.editing),this.state.selected?window.localStorage.setItem(`Editor.selected`,this.state.selected):window.localStorage.removeItem(`Editor.selected`)})},50),!this.state.selected&&this.props.password&&this.state.editing.length&&setTimeout(()=>{let e=this.state.editing[0];this.setState({selected:e},()=>{var t,n;(t=(n=this.props).onSelectedChange)==null||t.call(n,e,this.state.editing),window.localStorage.setItem(`Editor.selected`,this.state.selected)})},50),[this.getTabs(),this.getToolbar(),this.getScriptEditor(),this.getAskAboutDebug(),this.getBlocklyEditor(),this.getRulesEditor(),this.getDebug(),this.getConfirmDialog(),this.getScriptConflictDialog(),this.getSelectIdDialog(),this.getCronDialog(),this.getEditorDialog(),this.getAstroDialog(),this.getDebugMenu(),this.getToast(),this.getTour()]}};K();var pp={dialog:{height:`95%`},fullHeight:{height:`100%`,overflow:`hidden`},dropzone:{marginTop:20,width:`100%`,borderWidth:5,borderStyle:`dashed`,borderColor:`#d0cccc`,textAlign:`center`,boxSizing:`border-box`,paddingTop:45,borderRadius:10,height:`calc(100% - 10px)`},dropzoneDiv:{width:`100%`,height:`100%`},dropzoneRejected:{borderColor:`#970000`},dropzoneAccepted:{borderColor:`#17cd02`},icon:{height:`30%`,width:`30%`,color:`#eeeeee`,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%,-50%)`,zIndex:0},iconError:{color:`#ffc3c6`},iconOk:{color:`#aaeebc`},text:{top:`50%`,left:`50%`,transform:`translate(-50%,-50%)`,color:`#868686`,position:`absolute`,zIndex:1}},mp=class e extends H.Component{constructor(e){super(e),this.state={error:``,imageStatus:``}}componentDidMount(){setTimeout(()=>{try{var e;(e=window.document.getElementById(`import-text-area`))==null||e.focus()}catch{}},100)}handleCancel(){this.props.onClose()}static readFileDataUrl(e,t){let n=new FileReader;n.onload=()=>{t(null,{data:n.result,name:e.name})},n.onabort=()=>{console.error(`file reading was aborted`),t(U.t(`file reading was aborted`))},n.onerror=e=>{console.error(`file reading has failed`),t(U.t(`file reading has failed: %s`,e))},n.readAsDataURL(e)}handleDropFile(t){if(!(t!=null&&t.length))return;let n=t[t.length-1];n&&e.readFileDataUrl(n,(e,t)=>{if(e||!t)this.setState({error:e||`No data`});else{var n;this.props.onClose(((n=t.data)==null?void 0:n.toString())||``,t.name)}})}render(){let e={...pp.dropzone,...this.state.imageStatus===`accepted`?pp.dropzoneAccepted:this.state.imageStatus===`rejected`?pp.dropzoneRejected:void 0};return V(ye,{onClose:()=>!1,maxWidth:`lg`,sx:{"& .MuiDialog-paper":pp.dialog},fullWidth:!0,open:!0,"aria-labelledby":`import-dialog-title`,slotProps:{paper:{style:{minHeight:`90%`,maxHeight:`90%`}}},children:[C(o,{id:`import-dialog-title`,children:U.t(`Import scripts`)}),V(xe,{children:[C(Wt,{maxSize:5e7,onDrop:(e,t)=>{if(e.length)this.handleDropFile(e);else{var n;window.alert((t==null||(n=t[0])==null||(n=n.errors)==null||(n=n[0])==null?void 0:n.message)||U.t(`ra_Cannot upload`))}},multiple:!1,accept:{"application/zip":[],"application/x-zip-compressed":[]},children:({getRootProps:t,getInputProps:n,isDragActive:r,isDragReject:i})=>i?(this.state.imageStatus!==`rejected`&&this.setState({imageStatus:`rejected`}),V(`div`,{style:{...e,...pp.dropzoneDiv},...t(),children:[C(`input`,{...n()}),C(`span`,{style:pp.text,children:U.t(`Some files will be rejected`)},`text`),C(s,{style:{...pp.icon,...pp.iconError}},`icon`)]})):r?(this.state.imageStatus!==`accepted`&&this.setState({imageStatus:`accepted`}),V(`div`,{style:{...e,...pp.dropzoneDiv},...t(),children:[C(`input`,{...n()}),C(`span`,{style:pp.text,children:U.t(`All files will be accepted`)},`text`),C(Dt,{style:{...pp.icon,...pp.iconOk}},`icon`)]})):(this.state.imageStatus!==`wait`&&this.setState({imageStatus:`wait`}),V(`div`,{style:{...e,...pp.dropzoneDiv},...t(),children:[C(`input`,{...n()}),C(`span`,{style:pp.text,children:U.t(`Drop some files here or click...`)},`text`),C(ie,{style:pp.icon},`icon`)]}))},`image-drop`),this.state.error?C(Gt,{text:this.state.error,onClose:()=>this.setState({error:``})}):null]}),C(_e,{children:C(q,{color:`grey`,variant:`contained`,onClick:()=>this.handleCancel(),startIcon:C(kt,{}),children:U.t(`Close`)})})]})}},hp={"%s not found":`%s not found`,"()":`()`,"(at %s)":`(at %s)`,"(optional)":`(optional)`,"-":`-`,".":`.`,Ack:`Acknowledged`,Actions:`Actions`,"Actual time of day":`Actual time of day`,Add:`Add`,"Add new script":`Add new script`,All:`All`,"All files will be accepted":`All files will be accepted`,Any:`Any`,"Any month":`Any month`,Apply:`Apply`,April:`April`,"Are you sure?":`Are you sure?`,Ask:`Ask`,Astronomical:`Astronomical`,"Astronomical events today":`Astronomical events today`,August:`August`,"Blockly description":`Creating rules by graphic blocks`,"Body:":`Body:`,Cancel:`Cancel`,"Cannot delete non empty item!":`Cannot delete non empty item!`,"Change layout":`Change layout`,'Change theme (actual "%s")':`Change theme (now - "%s")`,"Check blocks":`Check blocks`,"Check is not active, because javascript adapter is disabled":`Check is not active, because Javascript adapter is disabled`,"Clear search input":`Clear search input`,"Click on this icon":`Click on this icon`,Close:`Close`,"Close all but current":`Close all but current`,"Collapse all":`Collapse all`,"Compares current time with astronomical event":`Compares current time with astronomical event`,"Compares current time with the user specific time":`Compares current time with the user specific time`,"Compares the state value with user defined value":`Compares the state value with user defined value`,Condition:`Condition`,Conditions:`Conditions`,"Configuration not saved.":`Configuration not saved.`,Console:`Console`,"Control or update some state":`Control or update some state`,"Control or update some state with delay":`Control or update some state with delay`,"Convert blockly to javascript for ever.":`Permanently convert Blockly to Javascript.`,Copied:`Copied`,"Copy script":`Copy script`,"Copy to clipboard":`Copy to clipboard`,"Create new":`Create new`,"Create new folder":`Create new folder`,"Create new script":`Create new script`,"Create or edit CRON or time wizard":`Create or edit CRON or time wizard`,"Cron expression":`Cron expression`,"Dark Theme":`Dark theme`,"Dark style":`Dark style`,Date:`Date`,"Day of month":`Day of month`,"Day of week":`Day of week`,"Debug instance":`Debug instance`,"Debug options":`Debug options`,December:`December`,Default:`Default`,"Define cron...":`Define cron...`,"Define schedule...":`Define schedule...`,Delay:`Delay`,Delete:`Delete`,"Delete %s":`Delete %s...`,"Delete folder":`Delete folder`,"Delete script":`Delete script`,Description:`Description`,"Deselect all":`Deselect all`,"Discard changes for %s":`Discard changes for %s`,Done:`Done`,"Double click to write value":`Double click to write value`,"Download as file":`Download as file`,"Drop some files here or click...":`Drop some files here or click...`,"Duplicate name":`Duplicate name`,"Edit script or just double click":`Edit script or just double click`,"Empty name is not allowed":`Empty name is not allowed`,"End search mode":`End search mode`,Error:`Error`,"Error formatting code":`Error formatting code`,"Error was found":`Error was found`,"Every day":`Every day`,Exec:`Exec shell`,"Executes some shell command":`Executes some shell command`,"Existing scripts will be overwritten.":`Existing scripts will be overwritten.`,"Expand all":`Expand all`,"Expert mode":`Expert mode`,Explanation:`Explanation`,Export:`Export`,"Export all scripts":`Export all scripts`,"Export blocks":`Export blocks`,"Export selected blocks":`Export selected blocks`,Februar:`Februar`,February:`February`,Filter:`Filter`,Folder:`Folder`,Fr:`Fr`,Friday:`Friday`,Function:`Function`,"Function editor":`Function editor`,"Function: executed":`Function: executed`,"Go to next line":`Go to next line`,"HTTP Call":`HTTP Call`,"Hide logs":`Hide logs`,Hour:`Hour`,ID:`ID`,ID1:`ID1`,ID2:`ID2`,Import:`Import`,"Import blocks":`Import blocks`,"Import error":`Import error`,"Import scripts":`Import scripts`,"Insert object ID":`Insert object ID`,Instance:`Instance`,"Instance is disabled":`Instance is disabled`,"Instance:":`Instance:`,Instances:`Instances`,Instructions:`Instructions`,"Invalid CRON":`Invalid CRON`,"It will not be possible to revert this operation.":`It will not be possible to revert this operation.`,"JS description":`Creating rules by writing Javascript`,Januar:`Januar`,January:`January`,July:`July`,June:`June`,"Just check":`Just check`,"Keep my changes":`Keep my changes`,"Language:":`Language:`,"Learn More":`Learn More`,"Light style":`Light style`,Limit:`Limit`,"Local time":`Local time`,"Locate file":`Locate file`,"Log outputs":`Log outputs`,"Log text":`Log text`,"Log: %s":`Log: %s`,"Make a HTTP get request":`Make a HTTP get request`,"Make a pause between actions":`Make a pause between actions`,March:`March`,"March ":`March `,May:`May`,Menu:`Menu`,Message:`Message`,Minute:`Minute`,Mo:`Mo`,Model:`Model`,Monday:`Monday`,Month:`Month`,More:`More`,Name:`Name`,"No active host found":`No active host found`,"Nothing found":`Nothing found`,November:`November`,OK:`OK`,October:`October`,Ok:`Ok`,"On condition change":`On condition result change`,"On script save or adapter start":`On script save or adapter start`,"On weekdays":`On weekdays`,"Operate two states":`Operate two states`,"Operations with two states":`Operations with two states`,"Paste your blocks here":`Paste your blocks here`,Pause:`Pause`,"Pause execution":`Pause execution`,"Pause script":`Pause script`,"Phone:":`Phone:`,"Please select object ID...":`Please select object ID...`,"Prettify the script":`Prettify the script`,"Print some text in log":`Print some text in log`,"Priority:":`Priority:`,Pushover:`Pushover`,Pushsafer:`Pushsafer`,"Read only ID selected: %s":`Read only ID selected: %s`,Reload:`Reload`,Rename:`Rename`,"Reorder scripts in folders":`Reorder scripts in folders`,Repeat:`Repeat`,Restart:`Restart`,Result:`Result`,"Resume execution":`Resume execution`,"Root folder":`Root folder`,"Rules description":`Create rules with IF, THEN, ELSE blocks`,"Run script":`Run script`,Sa:`Sa`,Saturday:`Saturday`,Save:`Save`,"Save all":`Save all`,"Say It":`Say It`,"Say some text via sayit adapter":`Say some text via sayit adapter`,Schedule:`Schedule`,Script:`Script`,"Script %s was modified on disk":`Script %s was modified on disk`,"Script was modified externally":`Script was modified externally`,"Script is not running":`Script is not running`,"Search in scripts":`Search in scripts`,"Search...":`Search...`,Second:`Second`,"Select all":`Select all`,"Send email":`Send email`,"Sends an email":`Sends an email`,"Sends message via Pushsafer":`Sends message via Pushsafer`,"Sends message via pushover":`Sends message via pushover`,"Sends message via telegram":`Sends message via telegram`,"Sends message via whatsapp-cmb":`Sends message via whatsapp-cmb`,September:`September`,"Server time":`Server time`,"Set state action":`Set state action`,"Set with delay":`Set with delay`,"Shell command":`Shell command`,"Show astronomical events":`Show astronomical events`,"Show javascript code":`Show Javascript code`,"Show ioBroker state value":`Show ioBroker state value`,"Show logs":`Show logs`,"Show only paused scripts":`Show only paused scripts`,"Show only running scripts":`Show only running scripts`,"Show only scripts with problems":`Show only scripts with problems`,Simulate:`Simulate`,"Some files will be rejected":`Some files will be rejected`,"Sound:":`Sound:`,Stack:`Stack`,Start:`Start`,"Start script":`Start script`,State:`State`,"State condition":`State condition`,"Step into function":`Step into function`,"Step out from function":`Step out from function`,"Stop on exception":`Stop on exception`,Su:`Su`,"Subject:":`Subject:`,Sunday:`Sunday`,"TS description":`Creating rules by writing Typescript`,Telegram:`Telegram`,"Text:":`Text:`,Th:`Th`,'The script "%s" has been modified by another user or in another window. Do you want to reload the script or keep your local changes?':`The script "%s" has been modified by another user or in another window. Do you want to reload the script or keep your local changes?`,"The script will be stopped and must be activated manually after debugging. Continue?":`The script will be stopped and must be activated manually after debugging. Continue?`,"This is advances option. You can write your own code here and it will be executed on trigger":`This is advances option. You can write your own code here and it will be executed on trigger`,Thursday:`Thursday`,Time:`Time`,"Time condition":`Time condition`,"Title:":`Title:`,"To:":`To:`,"Trigger with value":`Trigger with value`,Triggered:`Triggered`,Triggers:`Triggers`,"Triggers the on script saving or the javascript instance restart":`Triggers the on script saving or the javascript instance restart`,"Triggers the rule on update or change of some state":`Triggers the rule on update or change of some state`,"Triggers the rule periodically or on some specific time":`Triggers the rule periodically or on some specific time`,Tu:`Tu`,Tuesday:`Tuesday`,URL:`URL`,"Unknown error":`Unknown error`,"Unknown error!":`Unknown error!`,"User function":`User function`,"User:":`User:`,Value:`Value`,"Vibration:":`Vibration:`,Volume:`Volume`,We:`We`,Wednesday:`Wednesday`,"Whatsapp-cmb":`Whatsapp-cmb`,Write:`Write`,"Write your own code":`Write your own code`,Year:`Year`,Yes:`Yes`,"Yet exists!":`Yet exists!`,"You can use %s in the URL to use current trigger value or %id to use the triggered object ID":`You can use %s in the URL to use current trigger value, %id to use the triggered object ID, %name to show triggered object ID name or %old to use old trigger value`,"You can use %s in the command to use current trigger value or %id to use the triggered object ID":`You can use %s in the command to use current trigger value, %id to use the triggered object ID, %name to show triggered object ID name or %old to use old trigger value`,"You can use %s in the text to display current trigger value or %id to display the triggered object ID":`You can use %s in the text to display current trigger value, %id to use the triggered object ID, %name to show triggered object ID name or %old to use old trigger value`,"You can use %s in the value to use the current trigger value or %id to display the triggered object ID":`You can use %s in the value to use the current trigger value, %id to use the triggered object ID, %name to show triggered object ID name or %old to use old trigger value`,"Please select a valid model":`Please select a valid model`,"[equal]":`[equal]`,"[greater or equal]":`[greater or equal]`,"[greater]":`[greater]`,"[hysteresis]":`[hysteresis]`,"[includes]":`[includes]`,"[less or equal]":`[less or equal]`,"[less]":`[less]`,"[not equal]":`[not equal]`,acknowledgment:`acknowledgment`,all:`all`,and:`and`,"as JSON":`as JSON`,"as plain text":`as plain text`,astro:`Astro`,at:`at`,"clear running":`clear running`,control:`control`,copy:`copy`,cron:`CRON`,dawn:`Dawn`,debug_help:`This is a special mode in which states and objects will not change. But only information about each planned change will be displayed in the protocol.`,debug_label:`Debug`,default:`default`,dusk:`Dusk`,easy:`easy`,else:`else`,"equal to":`equal to`,every:`every`,"every hour at 0 minutes":`every hour at 0 minutes`,false:`false`,"file reading has failed: %s":`file reading has failed: %s`,"file reading was aborted":`file reading was aborted`,filter_func:`Function`,filter_id:`ID`,filter_name:`Name`,filter_role:`Role`,filter_room:`Room`,"for edit or create script":`for edit or create a new script`,"for professionals":`for professionals`,"for programmers":`for programmers`,goldenHour:`Golden hour`,goldenHourEnd:`End of golden hour`,"greater or equal":`greater or equal`,"greater or equal to":`greater or equal to`,"greater than":`greater than`,help_just_check:`The code will be executed only every time when condition is true. E.g. if triggering on the temperature sensor value and the condition is "if temperature is greater than 20°C", the "then" actions will be executed every time when sensor sends the temperature and it is over 20°C. By 21°C, by 22°C and so on.`,help_on_change:`The code will be executed only if the condition result changes. E.g. if triggering on the temperature sensor value and the condition is "if temperature is greater than 20°C", the "then" actions will be executed once when temperature is over 20. Next time the "then" actions will be executed when the temperature fails under 20 and then rises over 20 again.`,"high priority":`high priority`,"high-priority":`high-priority`,"highest priority":`highest priority`,hours:`hours`,includes:`includes`,interval:`interval`,"just check":`just check`,"less or equal":`less or equal`,"less or equal to":`less or equal to`,"less than":`less than`,"lower priority":`lower priority`,"lowest priority":`lowest priority`,magic:`magic`,milliseconds:`milliseconds`,minutes:`minutes`,ms:`ms`,nadir:`Nadir`,nauticalDawn:`Nautical dawn`,nauticalDusk:`Nautical dusk`,nextSunrise:`Next Sunrise`,nextSunset:`Next sunset`,night:`Night`,nightEnd:`Night end`,"no blocks found":`No blocks found`,"no group":`NO GROUP`,normal:`normal`,"normal priority":`normal priority`,"not running":`not running`,"not equal to":`not equal to`,"not properly connected":`This block is not properly connected to other blocks.`,offset:`offset`,"on change":`on change`,"on condition change":`on condition change`,"on update":`on update`,one:`one`,or:`or`,quiet:`quiet`,"reset search":`reset search`,search:`search`,seconds:`seconds`,solarNoon:`Solar noon`,"store in":`store in`,sunrise:`sunrise`,sunriseEnd:`Sunrise end`,sunset:`Sunset`,sunsetStart:`Sunset start`,then:`then`,"toggle value":`toggle value`,tooltip_ack:`Acknowledge`,tooltip_from:`From`,tooltip_lc:`Last changed`,tooltip_quality:`Quality`,tooltip_ts:`Timestamp`,tooltip_user:`User`,tooltip_value:`Value`,true:`true`,two:`two`,undefined:`undefined`,update:`update`,"use seconds":`use seconds`,"use trigger value":`use trigger value`,verbose_help:`Adds debug output to the log for many system commands`,verbose_label:`Verbose log outputs`,when:`when`,with:`with`,"with date":`with date`,"with offset":`with offset`,wizard:`Wizard`,"Loading models...":`Loading models...`,"Could not connect to API at %s":`Could not connect to API at %s`,"Invalid API key":`Invalid API key`,"Access denied by API":`Access denied by API`,"API error: %s":`API error: %s`,'Model "%s" not found':`Model "%s" not found`,"Request failed: %s":`Request failed: %s`,Retry:`Retry`,"No running javascript instance found":`No running javascript instance found`,"OID display mode":`OID display mode`,"AI Chat":`AI Chat`,"AI inline completions":`AI inline completions`,"New chat":`New chat`,"Ask about your script...":`Ask about your script...`,"Insert blocks":`Insert blocks`,"Apply blocks":`Apply blocks`,Undo:`Undo`,Redo:`Redo`,"Insert into editor":`Insert into editor`,"Show as diff":`Show as diff`,"Selected code as context":`Selected code as context`,"Ask questions about your script, request changes, or generate new code.":`Ask questions about your script, request changes, or generate new code.`,"to send":`to send`,"Thinking...":`Thinking...`,"AI suggested changes":`AI suggested changes`,Accept:`Accept`,Reject:`Reject`,"No API keys configured":`No API keys configured`,"for new line":`for new line`,"AI chat mode":`AI chat mode`,"Plain conversation. Use for questions, explanations, syntax help. Does not read or modify your scripts.":`Plain conversation. Use for questions, explanations, syntax help. Does not read or modify your scripts.`,'For larger models with tool support. The AI can read, create, and edit scripts, look up datapoints, and browse the object tree — useful for "create a script that...", "which scripts use this state?" or "analyze my light script".':`For larger models with tool support. The AI can read, create, and edit scripts, look up datapoints, and browse the object tree — useful for "create a script that...", "which scripts use this state?" or "analyze my light script".`,'For smaller models without tool support. Two-step script generator (plan then code) — useful for "create a script that..." or "write a Blockly rule for...". Output goes into the editor for smart-apply.':`For smaller models without tool support. Two-step script generator (plan then code) — useful for "create a script that..." or "write a Blockly rule for...". Output goes into the editor for smart-apply.`,"Plain conversation. Best for: general questions, syntax help, concept explanations.":`Plain conversation. Best for: general questions, syntax help, concept explanations.`,"For larger models with tool support. Best for: creating, editing, or analyzing scripts; finding datapoint usages; inspecting the object tree.":`For larger models with tool support. Best for: creating, editing, or analyzing scripts; finding datapoint usages; inspecting the object tree.`,"For smaller models without tool support. Best for: creating new JavaScript/TypeScript or Blockly scripts from a description.":`For smaller models without tool support. Best for: creating new JavaScript/TypeScript or Blockly scripts from a description.`,"Mention scripts as context for the AI. Use @all for all scripts or @scriptName for a specific one.":`Mention scripts as context for the AI. Use @all for all scripts or @scriptName for a specific one.`,Context:`Context`,"current script":`current script`,"all scripts":`all scripts`,devices:`devices`,"Searching datapoints":`Searching datapoints`,"Reading value":`Reading value`,"Loading object info":`Loading object info`,"Searching scripts":`Searching scripts`,"Reading script":`Reading script`,"Loading script list":`Loading script list`,"All scripts":`All scripts`,"Smart home devices":`Smart home devices`,"Generating plan...":`Generating plan...`,"Generating code...":`Generating code...`,Plan:`Plan`,"mention @all":`@all`,"mention @devices":`@devices`,Send:`Send`,Copy:`Copy`,"AI inline chat":`AI inline chat`,'e.g. "Refactor this to use async/await"':`e.g. "Refactor this to use async/await"`,"Open in chat":`Open in chat`,"Selection: %s line(s)":`Selection: %s line(s)`,"No selection — the question will use context from the whole script.":`No selection — the question will use context from the whole script.`,"Please enter a question.":`Please enter a question.`,"Thinking…":`Thinking…`,"Code proposal — press Apply to replace your selection.":`Code proposal — press Apply to replace your selection.`,"Plain text answer.":`Plain text answer.`,"Show more details":`Show more details`,"AI: Inline chat…":`AI: Inline chat…`,"AI: Explain":`AI: Explain`,"AI: Refactor":`AI: Refactor`,"AI: Add comments":`AI: Add comments`,"AI: Fix problem":`AI: Fix problem`,"AI: Suggest tests":`AI: Suggest tests`,"Ask the AI about the selected code:":`Ask the AI about the selected code:`,Explain:`Explain`,Refactor:`Refactor`,Tests:`Tests`,"Explain %s %s":`Explain %s %s`,"Refactor %s %s":`Refactor %s %s`,"Suggest tests for %s %s":`Suggest tests for %s %s`,"Apply changes":`Apply changes`,"Discard changes":`Discard changes`,'Ask anything, or request a change (e.g. "what does this do?")':`Ask anything, or request a change (e.g. "what does this do?")`},gp={"%s not found":`%s nicht gefunden`,"()":`()`,"(at %s)":`(um %s)`,"(optional)":`(optional)`,"-":`-`,".":`.`,Ack:`Bestätigt`,Actions:`Aktionen`,"Actual time of day":`Tatsächliche Tageszeit`,Add:`Hinzufügen`,"Add new script":`Neues Skript hinzufügen`,All:`Alle`,"All files will be accepted":`Alle Dateien werden akzeptiert`,Any:`Egal`,"Any month":`Jeden Monat`,Apply:`Anwenden`,April:`April`,"Are you sure?":`Wirklich sicher?`,Ask:`Fragen`,Astronomical:`Astronomisch`,"Astronomical events today":`Astronomische Ereignisse heute`,August:`August`,"Blockly description":`Erstellen von Regeln durch Grafikblöcke`,"Body:":`Körper:`,Cancel:`Abbrechen`,"Cannot delete non empty item!":`Kann nicht gelöscht werden, weil noch einige Elementen darin sind!`,"Change layout":`Layout ändern`,'Change theme (actual "%s")':`Thema ändern (jetzt - "%s")`,"Check blocks":`Blöcke prüfen`,"Check is not active, because javascript adapter is disabled":`Syntax-Check ist nicht aktiv, weil der Javascript Adapter nicht aktiv ist.`,"Clear search input":`Sucheingabe löschen`,"Click on this icon":`Auf dieses Symbol klicken`,Close:`Schließen`,"Close all but current":`Alle anderen außer dem Aktiven schließen`,"Collapse all":`Alles einklappen`,"Compares current time with astronomical event":`Vergleicht die aktuelle Zeit mit einem astronomischen Ereignis`,"Compares current time with the user specific time":`Vergleicht die aktuelle Zeit mit der benutzerspezifischen Zeit`,"Compares the state value with user defined value":`Vergleicht den Zustandswert mit dem benutzerdefinierten Wert`,Condition:`Bedingung`,Conditions:`Bedingungen`,"Configuration not saved.":`Die Konfiguration ist nicht gespeichert.`,Console:`Konsole`,"Control or update some state":`Zustand steuern oder aktualisieren`,"Control or update some state with delay":`Zustand mit Verzögerung steuern oder aktualisieren`,"Convert blockly to javascript for ever.":`Blockly dauerhaft in Javascript konvertieren.`,Copied:`Kopiert`,"Copy script":`Skript kopieren`,"Copy to clipboard":`In die Zwischenablage kopieren`,"Create new":`Neu erstellen`,"Create new folder":`Neuen Ordner erstellen`,"Create new script":`Neues Skript erstellen`,"Create or edit CRON or time wizard":`CRON- oder Zeit-Assistenten erstellen oder bearbeiten`,"Cron expression":`Cron-Ausdruck`,"Dark Theme":`Dunkles Thema`,"Dark style":`Dunkler Stil`,Date:`Datum`,"Day of month":`Tag (des Monats)`,"Day of week":`Wochentag`,"Debug instance":`Debug-Instanz`,"Debug options":`Debug-Optionen`,December:`Dezember`,Default:`Standard`,"Define cron...":`Cron definieren ...`,"Define schedule...":`Zeitplan definieren ...`,Delay:`Verzögerung`,Delete:`Löschen`,"Delete %s":`Löschen %s...`,"Delete folder":`Ordner löschen`,"Delete script":`Skript löschen`,Description:`Beschreibung`,"Deselect all":`Alles abwählen`,"Discard changes for %s":`Änderungen für %s verwerfen`,Done:`Fertig`,"Double click to write value":`Doppelklick zum Schreiben des Wertes`,"Download as file":`Download als Datei`,"Drop some files here or click...":`Dateien hier ablegen oder klicken ...`,"Duplicate name":`Doppelter Name`,"Edit script or just double click":`Skript bearbeiten oder einfach doppelklicken`,"Empty name is not allowed":`Leerer Name ist nicht zulässig`,"End search mode":`Suchmodus beenden`,Error:`Fehler`,"Error formatting code":`Fehler beim Formatieren des Codes`,"Error was found":`Fehler wurde gefunden`,"Every day":`Täglich`,Exec:`Exec shell`,"Executes some shell command":`Führt einen Shell-Befehl aus`,"Existing scripts will be overwritten.":`Vorhandene Skripte werden überschrieben.`,"Expand all":`Alle erweitern`,"Expert mode":`Expertenmodus`,Explanation:`Erläuterung`,Export:`Export`,"Export all scripts":`Alle Skripte exportieren`,"Export blocks":`Blöcke exportieren`,"Export selected blocks":`Ausgewählte Blöcke exportieren`,Februar:`Februar`,February:`Februar`,Filter:`Filter`,Folder:`Ordner`,Fr:`Fr`,Friday:`Freitag`,Function:`Funktion`,"Function editor":`Funktions-Editor`,"Function: executed":`Funktion: ausgeführt`,"Go to next line":`Gehe zur nächsten Zeile`,"HTTP Call":`HTTP-Aufruf`,"Hide logs":`Protokoll ausblenden`,Hour:`Stunde`,ID:`ID`,ID1:`ID1`,ID2:`ID2`,Import:`Import`,"Import blocks":`Blöcke importieren`,"Import error":`Fehler beim Importieren`,"Import scripts":`Skripte importieren`,"Insert object ID":`Objekt-ID einfügen`,Instance:`Instanz`,"Instance is disabled":`Instanz ist deaktiviert`,"Instance:":`Instanz:`,Instances:`Instanzen`,Instructions:`Anleitung`,"Invalid CRON":`Ungültiger CRON`,"It will not be possible to revert this operation.":`Dieser Vorgang kann nicht rückgängig gemacht werden.`,"JS description":`Regeln erstellen mit JavaScript`,Januar:`Januar`,January:`Januar`,July:`Juli`,June:`Juni`,"Just check":`Einfach überprüfen`,"Keep my changes":`Meine Änderungen behalten`,"Language:":`Sprache:`,"Learn More":`Mehr erfahren`,"Light style":`Heller Stil`,Limit:`Grenze`,"Local time":`Lokale Zeit`,"Locate file":`Datei zeigen`,"Log outputs":`Protokoll`,"Log text":`Protokolltext`,"Log: %s":`Log: %s`,"Make a HTTP get request":`Eine HTTP-Abrufanforderung stellen`,"Make a pause between actions":`Eine Pause zwischen den Aktionen machen`,March:`März`,"March ":`März `,May:`Mai`,Menu:`Menü`,Message:`Nachricht`,Minute:`Minute`,Mo:`Mo`,Model:`Modell`,Monday:`Montag`,Month:`Monat`,More:`Mehr`,Name:`Name`,"No active host found":`Kein aktiver Host gefunden`,"Nothing found":`Nichts gefunden`,November:`November`,OK:`OK`,October:`Oktober`,Ok:`Ok`,"On condition change":`Bei Änderung des Ergebnis der Bedingung`,"On script save or adapter start":`Beim Speichern des Skripts oder beim Starten des Adapters`,"On weekdays":`An Wochentagen`,"Operate two states":`Zwei Zustände operieren`,"Operations with two states":`Operationen mit zwei Zuständen`,"Paste your blocks here":`Fügen Sie Ihre Blöcke hier ein`,Pause:`Pause`,"Pause execution":`Ausführung pausieren`,"Pause script":`Skript anhalten`,"Phone:":`Telefon:`,"Please select object ID...":`Objekt-ID auswählen ...`,"Prettify the script":`Verschönern Sie das Skript`,"Print some text in log":`Einen Text im Protokoll ausdrucken`,"Priority:":`Priorität:`,Pushover:`Pushover`,Pushsafer:`Pushsafer`,"Read only ID selected: %s":`Schreibgeschützte ID ausgewählt: %s`,Reload:`Neu laden`,Rename:`Umbenennen`,"Reorder scripts in folders":`Skripte in Ordnern neu ordnen`,Repeat:`Wiederholen`,Restart:`Neustart`,Result:`Ergebnis`,"Resume execution":`Ausführung fortsetzen`,"Root folder":`Root-Verzeichnis`,"Rules description":`Regeln erstellen mit WENN-, DANN- und SONST-Blöcken`,"Run script":`Skript ausführen`,Sa:`Sa`,Saturday:`Samstag`,Save:`Speichern`,"Save all":`Alle speichern`,"Say It":`Say It`,"Say some text via sayit adapter":`Einen Text über den Sayit-Adapter sagen`,Schedule:`Zeitplan`,Script:`Skript`,"Script %s was modified on disk":`Skript "%s" wurde auf der Festplatte geändert`,"Script was modified externally":`Skript wurde extern geändert`,"Script is not running":`Skript läuft nicht`,"Search in scripts":`Suche in Skripten`,"Search...":`Suche...`,Second:`Sekunde`,"Select all":`Alles auswählen`,"Send email":`E-Mail senden`,"Sends an email":`Sendet eine E-Mail`,"Sends message via Pushsafer":`Sendet eine Nachricht über Pushsafer`,"Sends message via pushover":`Sendet eine Nachricht per Pushover`,"Sends message via telegram":`Sendet eine Nachricht per telegram`,"Sends message via whatsapp-cmb":`Sendet eine Nachricht über WhatsApp-Cmb`,September:`September`,"Server time":`Server-Zeit`,"Set state action":`Zustand setzten`,"Set with delay":`Setzen mit Verzögerung`,"Shell command":`Shell-Befehl`,"Show astronomical events":`Astronomische Ereignisse anzeigen`,"Show javascript code":`Javascript-Code zeigen`,"Show ioBroker state value":`ioBroker-Statuswert anzeigen`,"Show logs":`Protokoll anzeigen`,"Show only paused scripts":`Nur angehaltene Skripte zeigen`,"Show only running scripts":`Nur laufende Skripte zeigen`,"Show only scripts with problems":`Nur Skripte mit Problemen zeigen`,Simulate:`Simulieren`,"Some files will be rejected":`Einige Dateien werden abgelehnt`,"Sound:":`Klang:`,Stack:`Stack`,Start:`Start`,"Start script":`Skript starten`,State:`Zustand`,"State condition":`Zustandsbedingung`,"Step into function":`Schritt in die Funktion`,"Step out from function":`Raus aus der Funktion`,"Stop on exception":`Bei Ausnahme anhalten`,Su:`So`,"Subject:":`Gegenstand:`,Sunday:`Sonntag`,"TS description":`Regeln erstellen mit TypeScript`,Telegram:`Telegram`,"Text:":`Text:`,Th:`Do`,'The script "%s" has been modified by another user or in another window. Do you want to reload the script or keep your local changes?':`Das Skript "%s" wurde von einem anderen Benutzer oder in einem anderen Fenster geändert. Möchten Sie das Skript neu laden oder Ihre lokalen Änderungen behalten?`,"The script will be stopped and must be activated manually after debugging. Continue?":`Das Skript wird gestoppt und muss nach dem Debuggen manuell aktiviert werden. Fortsetzen?`,"This is advances option. You can write your own code here and it will be executed on trigger":`Dies ist eine erweiterte Option. Sie können hier Ihren eigenen Code schreiben, der beim Auslösen ausgeführt wird`,Thursday:`Donnerstag`,Time:`Zeit`,"Time condition":`Zeitbedingung`,"Title:":`Titel:`,"To:":`Zu:`,"Trigger with value":`Trigger mit Wert`,Triggered:`Ausgelöst`,Triggers:`Löst aus`,"Triggers the on script saving or the javascript instance restart":`Löst das Speichern des Skripts oder den Neustart der Javascript-Instanz aus`,"Triggers the rule on update or change of some state":`Löst die Regel beim Aktualisieren oder Ändern eines Zustands aus`,"Triggers the rule periodically or on some specific time":`Löst periodisch oder zu einem bestimmten Zeitpunkt aus`,Tu:`Di`,Tuesday:`Dienstag`,URL:`URL`,"Unknown error":`Unbekannter Fehler`,"Unknown error!":`Unbekannter Fehler!`,"User function":`Benutzerfunktion`,"User:":`Benutzer:`,Value:`Wert`,"Vibration:":`Vibration:`,Volume:`Volumen`,We:`Mi`,Wednesday:`Mittwoch`,"Whatsapp-cmb":`WhatsApp-cmb`,Write:`Schreiben`,"Write your own code":`Eigenen Code schreiben`,Year:`Jahr`,Yes:`Ja`,"Yet exists!":`Existiert schon!`,"You can use %s in the URL to use current trigger value or %id to use the triggered object ID":`Sie können %s in der URL verwenden, um den aktuellen Triggerwert zu verwenden, %id, um die ausgelöste Objekt-ID zu verwenden, %name, um den ID-Namen des ausgelösten Objekts anzuzeigen, oder %old, um den alten Triggerwert zu verwenden`,"You can use %s in the command to use current trigger value or %id to use the triggered object ID":`Sie können %s im Befehl verwenden, um den aktuellen Triggerwert zu verwenden, %id, um die ausgelöste Objekt-ID zu verwenden, %name, um den ID-Namen des ausgelösten Objekts anzuzeigen, oder %old, um den alten Triggerwert zu verwenden`,"You can use %s in the text to display current trigger value or %id to display the triggered object ID":`Sie können %s im Text verwenden, um den aktuellen Triggerwert anzuzeigen, %id, um die ausgelöste Objekt-ID zu verwenden, %name, um den ID-Namen des ausgelösten Objekts anzuzeigen, oder %old, um den alten Triggerwert zu verwenden`,"You can use %s in the value to use the current trigger value or %id to display the triggered object ID":`Sie können %s im Wert verwenden, um den aktuellen Triggerwert zu verwenden, %id, um die ID des ausgelösten Objekts zu verwenden, %name, um den ID-Namen des ausgelösten Objekts anzuzeigen, oder %old, um den alten Triggerwert zu verwenden`,"Please select a valid model":`Bitte ein gültiges Modell auswählen`,"[equal]":`[gleich]`,"[greater or equal]":`[größer oder gleich]`,"[greater]":`[größer]`,"[hysteresis]":`[Hysterese]`,"[includes]":`[enthält]`,"[less or equal]":`[kleiner oder gleich]`,"[less]":`[kleiner]`,"[not equal]":`[ungleich]`,acknowledgment:`Wissen`,all:`alle`,and:`und`,"as JSON":`als JSON`,"as plain text":`als Klartext`,astro:`Astro`,at:`um`,"clear running":`laufende abbrechen`,control:`Steuerung`,copy:`Kopie`,cron:`CRON`,dawn:`Morgendämmerung`,debug_help:`Dies ist ein spezieller Modus, in dem sich Zustände und Objekte nicht ändern. Im Protokoll werden jedoch nur Informationen zu jeder geplanten Änderung angezeigt.`,debug_label:`Debuggen`,default:`Standard`,dusk:`Abenddämmerung`,easy:`einfach`,else:`sonst`,"equal to":`gleich`,every:`jeder`,"every hour at 0 minutes":`jede Stunde bei 0 Minuten`,false:`falsch`,"file reading has failed: %s":`Das Lesen der Datei ist fehlgeschlagen: %s`,"file reading was aborted":`Das Lesen der Datei wurde abgebrochen`,filter_func:`Funktion`,filter_id:`ID`,filter_name:`Name`,filter_role:`Rolle`,filter_room:`Raum`,"for edit or create script":`zum Bearbeiten oder zum Erstellen eines neues Skripts`,"for professionals":`für Profis`,"for programmers":`für Programmierer`,goldenHour:`Goldene Abendstunde`,goldenHourEnd:`Vormittag`,"greater or equal":`größer oder gleich`,"greater or equal to":`größer oder gleich`,"greater than":`größer als`,help_just_check:`Der Code wird jedes Mal ausgeführt, wenn die Bedingung erfüllt ist. z.B. wenn der Temperatur wert sich ändert und die Bedingung "Wenn die Temperatur größer als 20°C ist" lautet, werden die "Dann" -Aktionen jedes Mal ausgeführt, wenn der Sensor die Temperatur sendet und diese über 20°C liegt. Bei 21°C, bei 22°C und so weiter.`,help_on_change:`Der Code wird nur ausgeführt, wenn sich das Ergebnis der Bedingung ändert. z.B. wenn sich der Temperatur wert ändert und die Bedingung "Wenn die Temperatur größer als 20°C ist" lautet, werden die "Dann" -Aktionen einmal ausgeführt, wenn die Temperatur über 20°C liegt. Das nächste Mal werden die "Dann" -Aktionen ausgeführt, wenn die Temperatur unter 20°C gefallen ist und dann wieder über 20°C ansteigt.`,"high priority":`hohe Priorität`,"high-priority":`hohe Priorität`,"highest priority":`höchste Priorität`,hours:`Stunden`,includes:`beinhaltet`,interval:`Intervall`,"just check":`einfach prüfen`,"less or equal":`kleiner oder gleich`,"less or equal to":`kleiner oder gleich`,"less than":`kleiner als`,"lower priority":`geringere Priorität`,"lowest priority":`niedrigste Priorität`,magic:`Magie`,milliseconds:`Millisekunden`,minutes:`Minuten`,ms:`ms`,nadir:`Nadir`,nauticalDawn:`nautische Morgendämmerung`,nauticalDusk:`nautische Abenddämmerung`,nextSunrise:`Nächster Sonnenaufgang`,nextSunset:`Nächster Sonnenuntergang`,night:`Nacht`,nightEnd:`astronomische Morgendämmerung`,"no blocks found":`Keine Blöcke gefunden`,"no group":`KEINE GRUPPE`,normal:`Normal`,"normal priority":`normale Priorität`,"not running":`nicht gestartet`,"not equal to":`ungleich`,"not properly connected":`Dieser Block ist mit anderen nicht richtig verbunden.`,offset:`Versatz`,"on change":`bei Änderung`,"on condition change":`bei Zustandsänderung`,"on update":`beim Aktualisieren`,one:`einer`,or:`oder`,quiet:`ruhig`,"reset search":`Suche zurücksetzen`,search:`Suche`,seconds:`Sekunden`,solarNoon:`(Nach-)Mittag`,"store in":`speichern in`,sunrise:`Sonnenaufgang`,sunriseEnd:`Goldene Morgenstunde`,sunset:`Sonnenuntergang`,sunsetStart:`Sonnenuntergang (Anfang)`,then:`dann`,"toggle value":`Wert umschalten`,tooltip_ack:`Bestätigen`,tooltip_from:`Von`,tooltip_lc:`Zuletzt geändert`,tooltip_quality:`Qualität`,tooltip_ts:`Zeitstempel`,tooltip_user:`Benutzer`,tooltip_value:`Wert`,true:`wahr`,two:`zwei`,undefined:`nicht definiert`,update:`Aktualisieren`,"use seconds":`Sekunden verwenden`,"use trigger value":`Triggerwert benutzen`,verbose_help:`Fügt Debug-Ausgaben für viele Systembefehle zum Protokoll hinzu`,verbose_label:`Ausführliche Protokollausgaben`,when:`falls`,with:`mit`,"with date":`mit Datum`,"with offset":`mit Versatz`,wizard:`Assistent`,"Loading models...":`Modelle werden geladen...`,"Could not connect to API at %s":`Verbindung zur API unter %s nicht möglich`,"Invalid API key":`Ungültiger API-Schlüssel`,"Access denied by API":`Zugriff von der API verweigert`,"API error: %s":`API-Fehler: %s`,'Model "%s" not found':`Modell "%s" nicht gefunden`,"Request failed: %s":`Anfrage fehlgeschlagen: %s`,Retry:`Erneut versuchen`,"No running javascript instance found":`Keine laufende JavaScript-Instanz gefunden`,"OID display mode":`OID-Anzeigemodus`,"AI Chat":`KI Chat`,"AI inline completions":`KI Inline-Vervollständigung`,"New chat":`Neuer Chat`,"Ask about your script...":`Frage zu deinem Script stellen...`,"Insert blocks":`Blöcke einfügen`,"Apply blocks":`Blöcke anwenden`,Undo:`Rückgängig`,Redo:`Wiederherstellen`,"Insert into editor":`In Editor einfügen`,"Show as diff":`Als Diff anzeigen`,"Selected code as context":`Ausgewählter Code als Kontext`,"Ask questions about your script, request changes, or generate new code.":`Stelle Fragen zu deinem Script, fordere Änderungen an oder generiere neuen Code.`,"to send":`zum Senden`,"Thinking...":`Denke nach...`,"AI suggested changes":`KI-vorgeschlagene Änderungen`,Accept:`Akzeptieren`,Reject:`Ablehnen`,"No API keys configured":`Keine API-Schlüssel konfiguriert`,"for new line":`für neue Zeile`,"AI chat mode":`KI-Chat-Modus`,"Plain conversation. Use for questions, explanations, syntax help. Does not read or modify your scripts.":`Reine Unterhaltung. Für Fragen, Erklärungen und Syntaxhilfe. Greift nicht auf deine Skripte zu und ändert sie nicht.`,'For larger models with tool support. The AI can read, create, and edit scripts, look up datapoints, and browse the object tree — useful for "create a script that...", "which scripts use this state?" or "analyze my light script".':`Für größere Modelle mit Tool-Unterstützung. Die KI kann Skripte lesen, erstellen und bearbeiten, Datenpunkte nachschlagen und den Objektbaum durchsuchen — nützlich für „Erstelle ein Skript, das …“, „Welche Skripte nutzen diesen State?“ oder „Analysiere mein Licht-Skript“.`,'For smaller models without tool support. Two-step script generator (plan then code) — useful for "create a script that..." or "write a Blockly rule for...". Output goes into the editor for smart-apply.':`Für kleinere Modelle ohne Tool-Unterstützung. Zweistufiger Skript-Generator (erst Plan, dann Code) — nützlich für „Erstelle ein Skript, das …“ oder „Schreibe eine Blockly-Regel für …“. Das Ergebnis landet im Editor und kann per Smart-Apply übernommen werden.`,"Plain conversation. Best for: general questions, syntax help, concept explanations.":`Reine Unterhaltung. Am besten für: allgemeine Fragen, Syntaxhilfe, Konzept-Erklärungen.`,"For larger models with tool support. Best for: creating, editing, or analyzing scripts; finding datapoint usages; inspecting the object tree.":`Für größere Modelle mit Tool-Unterstützung. Am besten für: Skripte erstellen, bearbeiten oder analysieren; Datenpunkt-Verwendungen finden; Objektbaum durchsuchen.`,"For smaller models without tool support. Best for: creating new JavaScript/TypeScript or Blockly scripts from a description.":`Für kleinere Modelle ohne Tool-Unterstützung. Am besten für: neue JavaScript-/TypeScript- oder Blockly-Skripte aus einer Beschreibung erzeugen.`,"Mention scripts as context for the AI. Use @all for all scripts or @scriptName for a specific one.":`Skripte als Kontext für die KI erwähnen. Nutze @alle für alle Skripte oder @Skriptname für ein bestimmtes.`,Context:`Kontext`,"current script":`aktuelles Script`,"all scripts":`alle Scripts`,devices:`Geräte`,"Searching datapoints":`Suche Datenpunkte`,"Reading value":`Lese Wert`,"Loading object info":`Lade Objekt-Info`,"Searching scripts":`Durchsuche Scripts`,"Reading script":`Lese Script`,"Loading script list":`Lade Script-Liste`,"All scripts":`Alle Scripts`,"Smart home devices":`Smart-Home-Geräte`,"Generating plan...":`Erstelle Plan...`,"Generating code...":`Generiere Code...`,Plan:`Plan`,"mention @all":`@alle`,"mention @devices":`@geräte`,Send:`Senden`,Copy:`Kopieren`,"AI inline chat":`KI-Inline-Chat`,'e.g. "Refactor this to use async/await"':`z.B. "Refaktoriere das zu async/await"`,"Open in chat":`Im Chat öffnen`,"Selection: %s line(s)":`Auswahl: %s Zeile(n)`,"No selection — the question will use context from the whole script.":`Keine Auswahl — die Frage bezieht sich auf das gesamte Skript.`,"Please enter a question.":`Bitte gib eine Frage ein.`,"Thinking…":`Denke nach…`,"Code proposal — press Apply to replace your selection.":`Code-Vorschlag — drücke Anwenden, um die Auswahl zu ersetzen.`,"Plain text answer.":`Textantwort.`,"Show more details":`Mehr Details anzeigen`,"AI: Inline chat…":`KI: Inline-Chat…`,"AI: Explain":`KI: Erklären`,"AI: Refactor":`KI: Refaktorieren`,"AI: Add comments":`KI: Kommentare hinzufügen`,"AI: Fix problem":`KI: Problem beheben`,"AI: Suggest tests":`KI: Tests vorschlagen`,"Ask the AI about the selected code:":`Frage die KI zum ausgewählten Code:`,Explain:`Erklären`,Refactor:`Refaktorieren`,Tests:`Tests`,"Explain %s %s":`%s %s erklären`,"Refactor %s %s":`%s %s refaktorieren`,"Suggest tests for %s %s":`Tests für %s %s vorschlagen`,"Apply changes":`Änderungen übernehmen`,"Discard changes":`Änderungen verwerfen`,'Ask anything, or request a change (e.g. "what does this do?")':`Frag etwas oder bitte um eine Änderung (z.B. "was macht dieser Befehl?")`},_p={"%s not found":`%s no encontrado`,"()":`()`,"(at %s)":`(en %s)`,"(optional)":`(Opcional)`,"-":`-`,".":`.`,Ack:`Admitido`,Actions:`Comportamiento`,"Actual time of day":`Hora real del día`,Add:`Añadir`,"Add new script":`Agregar nuevo script`,All:`Todos`,"All files will be accepted":`Todos los archivos serán aceptados.`,Any:`Alguna`,"Any month":`Cualquier mes`,Apply:`Apply`,April:`abril`,"Are you sure?":`¿Estás seguro?`,Ask:`Preguntar`,Astronomical:`Astronómico`,"Astronomical events today":`Eventos astronómicos hoy`,August:`agosto`,"Blockly description":`Crear reglas por bloques gráficos`,"Body:":`Cuerpo:`,Cancel:`Cancelar`,"Cannot delete non empty item!":`¡No se puede eliminar un elemento no vacío!`,"Change layout":`Cambia el diseño`,'Change theme (actual "%s")':`Cambiar tema (ahora - "%s")`,"Check blocks":`Comprobar bloques`,"Check is not active, because javascript adapter is disabled":`La comprobación no está activa porque el adaptador Javascript está desactivado`,"Clear search input":`Borrar entrada de búsqueda`,"Click on this icon":`Haga clic en este ícono`,Close:`Cerrar`,"Close all but current":`Cerrar todo menos el actual`,"Collapse all":`Desplegar todo`,"Compares current time with astronomical event":`Compara la hora actual con un evento astronómico`,"Compares current time with the user specific time":`Compara la hora actual con la hora específica del usuario`,"Compares the state value with user defined value":`Compara el valor del estado con el valor definido por el usuario`,Condition:`Condición`,Conditions:`Condiciones`,"Configuration not saved.":`Configuración no guardada.`,Console:`Consola`,"Control or update some state":`Controlar o actualizar algún estado`,"Control or update some state with delay":`Controlar o actualizar algún estado con retraso`,"Convert blockly to javascript for ever.":`Convierta instantáneamente en bloque a Javascript.`,Copied:`Copiado`,"Copy script":`Copiar guion`,"Copy to clipboard":`Copiar al portapapeles`,"Create new":`Crear nuevo`,"Create new folder":`Crear nueva carpeta`,"Create new script":`Crear nuevo script`,"Create or edit CRON or time wizard":`Crear o editar CRON o asistente de tiempo`,"Dark Theme":`Tema oscuro`,"Dark style":`Estilo oscuro`,Date:`Fecha`,"Debug instance":`Instancia de depuración`,"Debug options":`Opciones de depuración`,December:`diciembre`,Default:`Defecto`,"Define cron...":`Definir cron ...`,"Define schedule...":`Definir horario ...`,Delay:`Demora`,Delete:`Eliminar`,"Delete %s":`Eliminar %s ...`,"Delete folder":`Eliminar carpeta`,"Delete script":`Eliminar guión`,Description:`Descripción`,"Deselect all":`Deseleccionar todo`,"Discard changes for %s":`Descartar cambios para %s`,Done:`Hecho`,"Double click to write value":`Doble clic para escribir el valor`,"Download as file":`Descargar como archivo`,"Drop some files here or click...":`Suelta algunos archivos aquí o haz clic ...`,"Duplicate name":`Nombre duplicado`,"Edit script or just double click":`Editar guión o simplemente hacer doble clic`,"Empty name is not allowed":`No se permite el nombre vacío`,"End search mode":`Fin del modo de búsqueda`,Error:`Error`,"Error formatting code":`Código de formato de error`,"Error was found":`Error encontrado`,"Every day":`Diario`,Exec:`Ejecutivo shell`,"Executes some shell command":`Ejecuta algún comando de shell`,"Existing scripts will be overwritten.":`Los guiones existentes se sobrescribirán.`,"Expand all":`Expandir todo`,"Expert mode":`Modo experto`,Explanation:`Explicación`,Export:`Exportar`,"Export all scripts":`Exportar todos los scripts`,"Export blocks":`Exportar bloques`,"Export selected blocks":`Exportar bloques seleccionados`,Februar:`Februar`,February:`febrero`,Filter:`Filtrar`,Folder:`Carpeta`,Fr:`P.`,Friday:`viernes`,Function:`Función`,"Function editor":`Editor de funciones`,"Function: executed":`Función: ejecutada`,"Go to next line":`Ir a la siguiente línea`,"HTTP Call":`Llamada HTTP`,"Hide logs":`Ocultar registros`,ID:`CARNÉ DE IDENTIDAD`,ID1:`ID1`,ID2:`ID2`,Import:`Importar`,"Import blocks":`Importar bloques`,"Import error":`Error de importación`,"Import scripts":`Importar guiones`,"Insert object ID":`Insertar ID de objeto`,Instance:`Ejemplo`,"Instance is disabled":`La instancia está deshabilitada`,"Instance:":`Ejemplo:`,Instances:`Instancias`,Instructions:`Instrucciones`,"Invalid CRON":`CRON inválido`,"It will not be possible to revert this operation.":`No será posible revertir esta operación.`,"JS description":`Crear reglas escribiendo Javascript`,Januar:`Enero`,January:`enero`,July:`julio`,June:`junio`,"Just check":`Sólo revisa`,"Keep my changes":`Mantener mis cambios`,"Language:":`Idioma:`,"Learn More":`Aprende más`,"Light style":`Estilo ligero`,Limit:`Límite`,"Local time":`Hora local`,"Locate file":`Localizar el archivo`,"Log outputs":`Salidas de registro`,"Log text":`Texto de registro`,"Log: %s":`Log: %s`,"Make a HTTP get request":`Realizar una solicitud de obtención HTTP`,"Make a pause between actions":`Hacer una pausa entre acciones`,March:`marzo`,"March ":`marzo`,May:`Mayo`,Menu:`Menú`,Message:`Mensaje`,Mo:`Mes`,Model:`Modelo`,Monday:`lunes`,Month:`Mes`,More:`Más`,Name:`Nombre`,"No active host found":`No se encontró un host activo`,"Nothing found":`Nada Encontrado`,November:`noviembre`,OK:`OK`,October:`octubre`,Ok:`Okay`,"On condition change":`En condición de cambio`,"On script save or adapter start":`Al guardar el script o al iniciar el adaptador`,"On weekdays":`De lunes a viernes`,"Operate two states":`Operar dos estados`,"Operations with two states":`Operaciones con dos estados`,"Paste your blocks here":`Pega tus bloques aquí`,Pause:`Pausa`,"Pause execution":`Pausar ejecución`,"Pause script":`Pausar guion`,"Phone:":`Teléfono:`,"Please select object ID...":`Por favor, seleccione la ID del objeto ...`,"Prettify the script":`Embellecer el guión`,"Print some text in log":`Imprime texto en el registro`,"Priority:":`Prioridad:`,Pushover:`Persona fácil de convencer`,Pushsafer:`Pushsafer`,"Read only ID selected: %s":`ID de solo lectura seleccionado: %s`,Reload:`Recargar`,Rename:`Rebautizar`,"Reorder scripts in folders":`Reordenar guiones en carpetas`,Repeat:`Repetir`,Restart:`Reiniciar`,Result:`Resultado`,"Resume execution":`Reanudar ejecución`,"Root folder":`Carpeta raíz`,"Rules description":`Crea reglas con bloques IF, THEN, ELSE`,"Run script":`Ejecutar guión`,Sa:`Sa`,Saturday:`sábado`,Save:`Salvar`,"Save all":`Salvar a todos`,"Say It":`Say It`,"Say some text via sayit adapter":`Di un mensaje de texto a través del adaptador sayit`,Schedule:`Calendario`,Script:`Guión`,"Script %s was modified on disk":`El script %s fue modificado en el disco`,"Script was modified externally":`El script fue modificado externamente`,"Script is not running":`El script no se está ejecutando`,"Search in scripts":`Buscar en guiones`,"Search...":`Buscar...`,"Select all":`Seleccionar todo`,"Send email":`Enviar correo electrónico`,"Sends an email":`Envía un correo electrónico`,"Sends message via Pushsafer":`Envía mensaje a través de Pushsafer`,"Sends message via pushover":`Envía un mensaje a través de un pushover`,"Sends message via telegram":`Envía mensaje por telegrama`,"Sends message via whatsapp-cmb":`Envía mensaje vía whatsapp-cmb`,September:`septiembre`,"Server time":`Tiempo del servidor`,"Set state action":`Establecer acción estatal`,"Set with delay":`Establecer con retraso`,"Shell command":`Comando de Shell`,"Show astronomical events":`Mostrar eventos astronómicos`,"Show javascript code":`Mostrar código Javascript`,"Show logs":`Mostrar registros`,"Show only paused scripts":`Mostrar solo secuencias de comandos pausadas`,"Show only running scripts":`Mostrar solo scripts en ejecución`,"Show only scripts with problems":`Mostrar solo guiones con problemas`,Simulate:`Simular`,"Some files will be rejected":`Algunos archivos serán rechazados`,"Sound:":`Sonido:`,Stack:`Stack`,Start:`Comienzo`,"Start script":`Iniciar guion`,State:`Expresar`,"State condition":`Condición del estado`,"Step into function":`Entra en función`,"Step out from function":`Sal de la función`,"Stop on exception":`Deténgase en excepción`,Su:`Su`,"Subject:":`Sujeto:`,Sunday:`domingo`,"TS description":`Crear reglas escribiendo el mecanografiado`,Telegram:`Telegrama`,"Text:":`Texto:`,Th:`4`,'The script "%s" has been modified by another user or in another window. Do you want to reload the script or keep your local changes?':`El script "%s" ha sido modificado por otro usuario o en otra ventana. ¿Desea recargar el script o mantener sus cambios locales?`,"The script will be stopped and must be activated manually after debugging. Continue?":`El script se detendrá y deberá activarse manualmente después de la depuración. ¿Continuar?`,"This is advances option. You can write your own code here and it will be executed on trigger":`Esta es la opción de avances. Puede escribir su propio código aquí y se ejecutará en el disparador`,Thursday:`jueves`,Time:`Tiempo`,"Time condition":`Condición de tiempo`,"Title:":`Título:`,"To:":`A:`,"Trigger with value":`Activar con valor`,Triggered:`Motivado`,Triggers:`Disparadores`,"Triggers the on script saving or the javascript instance restart":`Activa el guardado de la secuencia de comandos o el reinicio de la instancia de JavaScript`,"Triggers the rule on update or change of some state":`Activa la regla de actualización o cambio de algún estado`,"Triggers the rule periodically or on some specific time":`Activa la regla periódicamente o en un momento específico`,Tu:`Tu`,Tuesday:`martes`,URL:`URL`,"Unknown error":`Error desconocido`,"Unknown error!":`¡Error desconocido!`,"User function":`Función de usuario`,"User:":`Usuario:`,Value:`Valor`,"Vibration:":`Vibración:`,Volume:`Volumen`,We:`3`,Wednesday:`miércoles`,"Whatsapp-cmb":`Whatsapp-cmb`,Write:`Escribir`,"Write your own code":`Escribe tu propio código`,Yes:`sí`,"Yet exists!":`¡Sin embargo existe!`,"You can use %s in the URL to use current trigger value or %id to use the triggered object ID":`Puede usar %s en la URL para usar el valor de activación actual, %id para usar el ID de objeto activado, %name para mostrar el nombre de ID de objeto activado o %old para usar el valor de activación antiguo`,"You can use %s in the command to use current trigger value or %id to use the triggered object ID":`Puede usar %s en el comando para usar el valor de activación actual, %id para usar el ID de objeto activado, %name para mostrar el nombre de ID de objeto activado o %old para usar el valor de activación anterior`,"You can use %s in the text to display current trigger value or %id to display the triggered object ID":`Puede usar %s en el texto para mostrar el valor de activación actual, %id para usar el ID de objeto activado, %name para mostrar el nombre de ID de objeto activado o %old para usar el valor de activación antiguo`,"You can use %s in the value to use the current trigger value or %id to display the triggered object ID":`Puede usar %s en el valor para usar el valor de activación actual, %id para usar el ID de objeto activado, %name para mostrar el nombre de ID de objeto activado o %old para usar el valor de activación antiguo`,"Please select a valid model":`Por favor, seleccione un modelo válido`,"[equal]":`[igual]`,"[greater or equal]":`[mayor o igual]`,"[greater]":`[mayor que]`,"[hysteresis]":`[histéresis]`,"[includes]":`[incluye]`,"[less or equal]":`[menor o igual]`,"[less]":`[menos]`,"[not equal]":`[no es igual]`,acknowledgment:`Reconocimiento`,all:`todos`,and:`y`,"as JSON":`como JSON`,"as plain text":`como texto plano`,astro:`astro`,at:`a`,"clear running":`carrera clara`,control:`control`,copy:`Copiar`,cron:`CRON`,dawn:`Amanecer`,debug_help:`Este es un modo especial en el que los estados y los objetos no cambiarán. Pero solo se mostrará información sobre cada cambio planificado en el protocolo.`,debug_label:`Depurar`,default:`defecto`,dusk:`Oscuridad`,easy:`fácil`,else:`demás`,"equal to":`igual a`,every:`cada`,"every hour at 0 minutes":`cada hora a los 0 minutos`,false:`falso`,"file reading has failed: %s":`la lectura del archivo ha fallado: %s`,"file reading was aborted":`la lectura del archivo fue abortada`,filter_func:`Función`,filter_id:`CARNÉ DE IDENTIDAD`,filter_name:`Nombre`,filter_role:`Papel`,filter_room:`Habitación`,"for edit or create script":`para editar o crear un nuevo script`,"for professionals":`para profesionales`,"for programmers":`para programadores`,goldenHour:`hora dorada`,goldenHourEnd:`Fin de la hora dorada`,"greater or equal":`mayor o igual`,"greater or equal to":`mayor o igual a`,"greater than":`mas grande que`,help_just_check:`El código se ejecutará solo cada vez que la condición sea verdadera. P.ej. si se activa en el valor del sensor de temperatura y la condición es "si la temperatura es superior a 20 ° C", las acciones "entonces" se ejecutarán cada vez que el sensor envíe la temperatura y supere los 20 ° C. Por 21 ° C, por 22 ° C y así sucesivamente.`,help_on_change:`El código se ejecutará solo si cambia el resultado de la condición. P.ej. si se activa en el valor del sensor de temperatura y la condición es "si la temperatura es superior a 20 ° C", las acciones "entonces" se ejecutarán una vez cuando la temperatura sea superior a 20. La próxima vez, las acciones "entonces" se ejecutarán cuando la temperatura falla por debajo de 20 y luego sube por encima de 20 nuevamente.`,"high priority":`alta prioridad`,"high-priority":`alta prioridad`,"highest priority":`más alta prioridad`,hours:`horas`,includes:`incluye`,interval:`intervalo`,"just check":`Sólo revisa`,"less or equal":`menor o igual`,"less or equal to":`menor o igual a`,"less than":`menos que`,"lower priority":`prioridad más baja`,"lowest priority":`prioridad más baja`,magic:`magia`,milliseconds:`milisegundos`,minutes:`minutos`,ms:`ms`,nadir:`nadir`,nauticalDawn:`Amanecer náutico`,nauticalDusk:`Atardecer náutico`,nextSunrise:`próximo amanecer`,nextSunset:`Próxima puesta de sol`,night:`Noche`,nightEnd:`Fin de la noche`,"no blocks found":`No se encontraron bloques`,"no group":`NO GRUPO`,normal:`normal`,"normal priority":`prioridad normal`,"not running":`no está en ejecución`,"not equal to":`no igual a`,"not properly connected":`Este bloque no está conectado correctamente a otros bloques.`,offset:`compensar`,"on change":`en el cambio`,"on condition change":`con cambio de condición`,"on update":`en actualización`,one:`uno`,or:`o`,quiet:`tranquilo`,"reset search":`restablecer la búsqueda`,search:`buscar`,seconds:`segundos`,solarNoon:`Mediodía solar`,"store in":`almacenar en`,sunrise:`amanecer`,sunriseEnd:`Final del amanecer`,sunset:`puesta de sol`,sunsetStart:`Inicio al atardecer`,then:`entonces`,"toggle value":`alternar valor`,tooltip_ack:`Reconocer`,tooltip_from:`De`,tooltip_lc:`Último cambio`,tooltip_quality:`Calidad`,tooltip_ts:`Marca de tiempo`,tooltip_user:`Usuario`,tooltip_value:`Valor`,true:`cierto`,two:`dos`,undefined:`indefinido`,update:`actualizar`,"use seconds":`usar segundos`,"use trigger value":`usar valor de activación`,verbose_help:`Agrega salida de depuración al registro para muchos comandos del sistema`,verbose_label:`Salidas de registro detalladas`,when:`cuando`,with:`con`,"with date":`con fecha`,"with offset":`con desplazamiento`,wizard:`Wizard`,"Loading models...":`Cargando modelos...`,"Could not connect to API at %s":`No se pudo conectar a la API en %s`,"Invalid API key":`Clave API no válida`,"Access denied by API":`Acceso denegado por la API`,"API error: %s":`Error de API: %s`,'Model "%s" not found':`Modelo "%s" no encontrado`,"Request failed: %s":`Solicitud fallida: %s`,Retry:`Reintentar`,"No running javascript instance found":`No se encontró ninguna instancia de JavaScript en ejecución`,"OID display mode":`Modo de visualización OID`,"Ask questions about your script, request changes, or generate new code.":`Haz preguntas sobre tu script, solicita cambios o genera nuevo código.`,"to send":`para enviar`,"Thinking...":`Pensando...`,"AI suggested changes":`Cambios sugeridos por IA`,Accept:`Aceptar`,Reject:`Rechazar`,"No API keys configured":`No hay claves API configuradas`,"for new line":`para nueva línea`,"AI chat mode":`Modo de chat IA`,"Plain conversation. Use for questions, explanations, syntax help. Does not read or modify your scripts.":`Conversación simple. Úsalo para preguntas, explicaciones y ayuda de sintaxis. No lee ni modifica tus scripts.`,'For larger models with tool support. The AI can read, create, and edit scripts, look up datapoints, and browse the object tree — useful for "create a script that...", "which scripts use this state?" or "analyze my light script".':`Para modelos más grandes con soporte de herramientas. La IA puede leer, crear y editar scripts, consultar datapoints y navegar por el árbol de objetos — útil para «crea un script que...», «¿qué scripts usan este state?» o «analiza mi script de luz».`,'For smaller models without tool support. Two-step script generator (plan then code) — useful for "create a script that..." or "write a Blockly rule for...". Output goes into the editor for smart-apply.':`Para modelos más pequeños sin soporte de herramientas. Generador de scripts en dos pasos (primero plan, luego código) — útil para "crea un script que..." o "escribe una regla Blockly para...". El resultado va al editor para smart-apply.`,"Plain conversation. Best for: general questions, syntax help, concept explanations.":`Conversación simple. Ideal para: preguntas generales, ayuda de sintaxis, explicaciones de conceptos.`,"For larger models with tool support. Best for: creating, editing, or analyzing scripts; finding datapoint usages; inspecting the object tree.":`Para modelos más grandes con soporte de herramientas. Ideal para: crear, editar o analizar scripts; encontrar usos de datapoints; inspeccionar el árbol de objetos.`,"For smaller models without tool support. Best for: creating new JavaScript/TypeScript or Blockly scripts from a description.":`Para modelos más pequeños sin soporte de herramientas. Ideal para: crear nuevos scripts JavaScript/TypeScript o Blockly a partir de una descripción.`,"Mention scripts as context for the AI. Use @all for all scripts or @scriptName for a specific one.":`Mencionar scripts como contexto para la IA. Usa @todos para todos los scripts o @nombreScript para uno específico.`,Context:`Contexto`,"current script":`script actual`,"all scripts":`todos los scripts`,devices:`dispositivos`,"Searching datapoints":`Buscando puntos de datos`,"Reading value":`Leyendo valor`,"Loading object info":`Cargando información del objeto`,"Searching scripts":`Buscando scripts`,"Reading script":`Leyendo script`,"Loading script list":`Cargando lista de scripts`,"All scripts":`Todos los scripts`,"Smart home devices":`Dispositivos del hogar inteligente`,"AI Chat":`Chat IA`,"AI inline completions":`Completado en línea con IA`,"New chat":`Nuevo chat`,"Ask about your script...":`Pregunta sobre tu script...`,"Insert blocks":`Insertar bloques`,"Apply blocks":`Aplicar bloques`,Undo:`Deshacer`,Redo:`Rehacer`,"Insert into editor":`Insertar en el editor`,"Show as diff":`Mostrar como diff`,"Selected code as context":`Código seleccionado como contexto`,"Generating plan...":`Generando plan...`,"Generating code...":`Generando código...`,Plan:`Plan`,"mention @all":`@todos`,"mention @devices":`@dispositivos`,Send:`Enviar`,Copy:`Copiar`,"AI inline chat":`Chat IA integrado`,'e.g. "Refactor this to use async/await"':`p. ej. "Refactor this to use async/await"`,"Open in chat":`Abrir en el chat`,"Selection: %s line(s)":`Selección: %s línea(s)`,"No selection — the question will use context from the whole script.":`Sin selección — la pregunta usará el contexto de todo el script.`,"Please enter a question.":`Introduce una pregunta.`,"Thinking…":`Pensando…`,"Code proposal — press Apply to replace your selection.":`Propuesta de código — pulsa Aplicar para reemplazar la selección.`,"Plain text answer.":`Respuesta de texto.`,"Show more details":`Mostrar más detalles`,"AI: Inline chat…":`IA: Chat integrado…`,"AI: Explain":`IA: Explicar`,"AI: Refactor":`IA: Refactorizar`,"AI: Add comments":`IA: Añadir comentarios`,"AI: Fix problem":`IA: Corregir problema`,"AI: Suggest tests":`IA: Sugerir pruebas`,"Ask the AI about the selected code:":`Pregunta a la IA sobre el código seleccionado:`,Explain:`Explicar`,Refactor:`Refactorizar`,Tests:`Pruebas`,"Explain %s %s":`Explicar %s %s`,"Refactor %s %s":`Refactorizar %s %s`,"Suggest tests for %s %s":`Sugerir pruebas para %s %s`,"Apply changes":`Aplicar cambios`,"Discard changes":`Descartar cambios`,'Ask anything, or request a change (e.g. "what does this do?")':`Pregunta lo que quieras o pide un cambio (p. ej. "¿qué hace esto?")`},vp={"%s not found":`%s non trouvé`,"()":`()`,"(at %s)":`(à %s)`,"(optional)":`(optionnel)`,"-":`-`,".":`.`,Ack:`Reconnu`,Actions:`Actions`,"Actual time of day":`Heure réelle de la journée`,Add:`Ajouter`,"Add new script":`Ajouter un nouveau script`,All:`Tout`,"All files will be accepted":`Tous les fichiers seront acceptés`,Any:`Tout`,"Any month":`N'importe quel mois`,Apply:`Postuler`,April:`avril`,"Are you sure?":`Êtes-vous sûr?`,Ask:`Demander`,Astronomical:`Astronomique`,"Astronomical events today":`Événements astronomiques aujourd'hui`,August:`août`,"Blockly description":`Création de règles par blocs graphiques`,"Body:":`Corps:`,Cancel:`Annuler`,"Cannot delete non empty item!":`Impossible de supprimer un élément non vide!`,"Change layout":`Changer la disposition`,'Change theme (actual "%s")':`Changer de thème (maintenant - "%s")`,"Check blocks":`Vérifier les blocs`,"Check is not active, because javascript adapter is disabled":`La vérification n'est pas active, car l'adaptateur Javascript est désactivé`,"Clear search input":`Effacer la recherche`,"Click on this icon":`Cliquez sur cette icône`,Close:`proche`,"Close all but current":`Ferme tout sauf courant`,"Collapse all":`Réduire tout`,"Compares current time with astronomical event":`Compare l'heure actuelle avec un événement astronomique`,"Compares current time with the user specific time":`Compare l'heure actuelle avec l'heure spécifique de l'utilisateur`,"Compares the state value with user defined value":`Compare la valeur d'état avec la valeur définie par l'utilisateur`,Condition:`État`,Conditions:`Conditions`,"Configuration not saved.":`Configuration non enregistrée.`,Console:`Console`,"Control or update some state":`Contrôler ou mettre à jour un état`,"Control or update some state with delay":`Contrôler ou mettre à jour un état avec un délai`,"Convert blockly to javascript for ever.":`Convertissez instantanément en Javascript.`,Copied:`Copié`,"Copy script":`Copier le script`,"Copy to clipboard":`Copier dans le presse-papier`,"Create new":`Créer un nouveau`,"Create new folder":`Créer un nouveau dossier`,"Create new script":`Créer un nouveau script`,"Create or edit CRON or time wizard":`Créer ou éditer CRON ou un assistant de temps`,"Dark Theme":`Thème sombre`,"Dark style":`Style sombre`,Date:`Date`,"Debug instance":`Instance de débogage`,"Debug options":`Options de débogage`,December:`décembre`,Default:`Défaut`,"Define cron...":`Définir le cron ...`,"Define schedule...":`Définir le calendrier ...`,Delay:`Retard`,Delete:`Effacer`,"Delete %s":`Supprimer %s ...`,"Delete folder":`Supprimer le dossier`,"Delete script":`Supprimer le script`,Description:`Description`,"Deselect all":`Tout déselectionner`,"Discard changes for %s":`Ignorer les modifications pour %s`,Done:`Terminé`,"Double click to write value":`Double clic pour écrire la valeur`,"Download as file":`Télécharger le fichier`,"Drop some files here or click...":`Déposer des fichiers ici ou cliquez sur ...`,"Duplicate name":`Nom en double`,"Edit script or just double click":`Modifiez le script ou double-cliquez simplement sur`,"Empty name is not allowed":`Le nom vide n'est pas autorisé`,"End search mode":`Fin du mode de recherche`,Error:`Erreur`,"Error formatting code":`Erreur lors du formatage du code`,"Error was found":`Une erreur a été trouvée`,"Every day":`Tous les jours`,Exec:`Exec shell`,"Executes some shell command":`Exécute une commande shell`,"Existing scripts will be overwritten.":`Les scripts existants seront écrasés.`,"Expand all":`Développer tout`,"Expert mode":`Mode expert`,Explanation:`Explication`,Export:`Exportation`,"Export all scripts":`Exporter tous les scripts`,"Export blocks":`Blocs d'exportation`,"Export selected blocks":`Exporter les blocs sélectionnés`,Februar:`Février`,February:`février`,Filter:`Filtre`,Folder:`Dossier`,Fr:`Fr`,Friday:`Vendredi`,Function:`Fonction`,"Function editor":`Éditeur de fonction`,"Function: executed":`Fonction\xA0: exécutée`,"Go to next line":`Aller à la ligne suivante`,"HTTP Call":`Appel HTTP`,"Hide logs":`Masquer les journaux`,ID:`ID`,ID1:`ID1`,ID2:`ID2`,Import:`Importation`,"Import blocks":`Blocs d'importation`,"Import error":`Erreur d'importation`,"Import scripts":`Importer des scripts`,"Insert object ID":`Insérer un identifiant d'objet`,Instance:`Exemple`,"Instance is disabled":`L'instance est désactivée`,"Instance:":`Exemple:`,Instances:`Instances`,Instructions:`Instructions`,"Invalid CRON":`CRON invalide`,"It will not be possible to revert this operation.":`Il ne sera pas possible de revenir sur cette opération.`,"JS description":`Créer des règles en écrivant du Javascript`,Januar:`Janvier`,January:`janvier`,July:`juillet`,June:`juin`,"Just check":`Vérifiez simplement`,"Keep my changes":`Garder mes modifications`,"Language:":`Langue:`,"Learn More":`Apprendre encore plus`,"Light style":`Style de lumière`,Limit:`Limite`,"Local time":`Heure locale`,"Locate file":`Localiser le fichier`,"Log outputs":`Journal des sorties`,"Log text":`Texte du journal`,"Log: %s":`Log\xA0: %s`,"Make a HTTP get request":`Faire une requête HTTP Get`,"Make a pause between actions":`Faites une pause entre les actions`,March:`Mars`,"March ":`mars`,May:`Mai`,Menu:`M e n u`,Message:`Message`,Mo:`Mo`,Model:`Modèle`,Monday:`Lundi`,Month:`Mois`,More:`Plus`,Name:`Nom`,"No active host found":`Aucun hôte actif trouvé`,"Nothing found":`Rien n'a été trouvé`,November:`novembre`,OK:`OK`,October:`octobre`,Ok:`D'accord`,"On condition change":`En cas de changement de condition`,"On script save or adapter start":`Lors de l'enregistrement du script ou du démarrage de l'adaptateur`,"On weekdays":`En semaine`,"Operate two states":`Opérer deux états`,"Operations with two states":`Opérations à deux états`,"Paste your blocks here":`Collez vos blocs ici`,Pause:`Pause`,"Pause execution":`Suspendre l'exécution`,"Pause script":`Script de pause`,"Phone:":`Téléphone:`,"Please select object ID...":`Veuillez sélectionner l'ID d'objet ...`,"Prettify the script":`Embellir le scénario`,"Print some text in log":`Imprimer du texte dans le journal`,"Priority:":`Priorité:`,Pushover:`Pushover`,Pushsafer:`Pushsafer`,"Read only ID selected: %s":`ID en lecture seule sélectionné: %s`,Reload:`Recharger`,Rename:`Renommer`,"Reorder scripts in folders":`Réorganiser les scripts dans des dossiers`,Repeat:`Répéter`,Restart:`Redémarrer`,Result:`Résultat`,"Resume execution":`Reprendre l'exécution`,"Root folder":`Dossier racine`,"Rules description":`Créer des règles avec des blocs IF, THEN, ELSE`,"Run script":`Script de lancement`,Sa:`Sa`,Saturday:`samedi`,Save:`sauver`,"Save all":`Sauver tous`,"Say It":`Say It`,"Say some text via sayit adapter":`Dites du texte via l'adaptateur sayit`,Schedule:`Horaire`,Script:`Scénario`,"Script %s was modified on disk":`Le script %s a été modifié sur le disque`,"Script was modified externally":`Le script a été modifié en externe`,"Script is not running":`Le script n'est pas en cours d'exécution`,"Search in scripts":`Rechercher dans les scripts`,"Search...":`Chercher...`,"Select all":`Tout sélectionner`,"Send email":`Envoyer un e-mail`,"Sends an email":`Envoie un e-mail`,"Sends message via Pushsafer":`Envoie un message via Pushsafer`,"Sends message via pushover":`Envoie un message via pushover`,"Sends message via telegram":`Envoie un message par télégramme`,"Sends message via whatsapp-cmb":`Envoie un message via whatsapp-cmb`,September:`septembre`,"Server time":`Heure du serveur`,"Set state action":`Définir l'action de l'état`,"Set with delay":`Set avec retard`,"Shell command":`Commande Shell`,"Show astronomical events":`Afficher les événements astronomiques`,"Show javascript code":`Afficher le code Javascript`,"Show logs":`Afficher les journaux`,"Show only paused scripts":`Afficher uniquement les scripts en pause`,"Show only running scripts":`Afficher uniquement les scripts en cours d'exécution`,"Show only scripts with problems":`Afficher uniquement les scripts avec des problèmes`,Simulate:`Simuler`,"Some files will be rejected":`Certains fichiers seront rejetés`,"Sound:":`Sonner:`,Stack:`Stack`,Start:`Début`,"Start script":`Lancer le script`,State:`État`,"State condition":`État condition`,"Step into function":`Entrez dans la fonction`,"Step out from function":`Sortez de la fonction`,"Stop on exception":`Arrêt sur exception`,Su:`Su`,"Subject:":`Sujet:`,Sunday:`dimanche`,"TS description":`Créer des règles en écrivant des caractères dactylographiés`,Telegram:`Télégramme`,"Text:":`Texte:`,Th:`4`,'The script "%s" has been modified by another user or in another window. Do you want to reload the script or keep your local changes?':`Le script "%s" a été modifié par un autre utilisateur ou dans une autre fenêtre. Voulez-vous recharger le script ou garder vos modifications locales ?`,"The script will be stopped and must be activated manually after debugging. Continue?":`Le script sera arrêté et doit être activé manuellement après le débogage. Continuez?`,"This is advances option. You can write your own code here and it will be executed on trigger":`C'est une option avancée. Vous pouvez écrire votre propre code ici et il sera exécuté au déclenchement`,Thursday:`Jeudi`,Time:`Temps`,"Time condition":`Condition de temps`,"Title:":`Titre:`,"To:":`À:`,"Trigger with value":`Déclencheur avec valeur`,Triggered:`Déclenché`,Triggers:`Déclencheurs`,"Triggers the on script saving or the javascript instance restart":`Déclenche l'enregistrement du script ou le redémarrage de l'instance javascript`,"Triggers the rule on update or change of some state":`Déclenche la règle sur la mise à jour ou le changement d'un état`,"Triggers the rule periodically or on some specific time":`Déclenche la règle périodiquement ou à une heure précise`,Tu:`Tu`,Tuesday:`Mardi`,URL:`URL`,"Unknown error":`Erreur inconnue`,"Unknown error!":`Erreur inconnue!`,"User function":`Fonction utilisateur`,"User:":`Utilisateur:`,Value:`Valeur`,"Vibration:":`Vibration:`,Volume:`Le volume`,We:`3`,Wednesday:`Mercredi`,"Whatsapp-cmb":`Whatsapp-cmb`,Write:`Écrivez`,"Write your own code":`Écrivez votre propre code`,Yes:`Oui`,"Yet exists!":`Pourtant existe!`,"You can use %s in the URL to use current trigger value or %id to use the triggered object ID":`Vous pouvez utiliser %s dans l'URL pour utiliser la valeur de déclenchement actuelle, %id pour utiliser l'ID de l'objet déclenché, %name pour afficher le nom de l'ID de l'objet déclenché ou %old pour utiliser l'ancienne valeur de déclenchement`,"You can use %s in the command to use current trigger value or %id to use the triggered object ID":`Vous pouvez utiliser %s dans la commande pour utiliser la valeur de déclenchement actuelle, %id pour utiliser l'ID de l'objet déclenché, %name pour afficher le nom de l'ID de l'objet déclenché ou %old pour utiliser l'ancienne valeur de déclenchement`,"You can use %s in the text to display current trigger value or %id to display the triggered object ID":`Vous pouvez utiliser %s dans le texte pour afficher la valeur de déclenchement actuelle, %id pour utiliser l'ID de l'objet déclenché, %name pour afficher le nom de l'ID de l'objet déclenché ou %old pour utiliser l'ancienne valeur de déclenchement`,"You can use %s in the value to use the current trigger value or %id to display the triggered object ID":`Vous pouvez utiliser %s dans la valeur pour utiliser la valeur de déclenchement actuelle, %id pour utiliser l'ID de l'objet déclenché, %name pour afficher le nom de l'ID de l'objet déclenché ou %old pour utiliser l'ancienne valeur de déclenchement`,"Please select a valid model":`Veuillez sélectionner un modèle valide`,"[equal]":`[égal]`,"[greater or equal]":`[supérieur ou égal]`,"[greater]":`[plus grand]`,"[hysteresis]":`[hystérèse]`,"[includes]":`[comprend]`,"[less or equal]":`[inférieur ou égal]`,"[less]":`[moins]`,"[not equal]":`[inégal]`,acknowledgment:`reconnaissance`,all:`tout`,and:`et`,"as JSON":`en JSON`,"as plain text":`en texte brut`,astro:`astro`,at:`à`,"clear running":`course claire`,control:`contrôler`,copy:`copie`,cron:`CRON`,dawn:`Aube`,debug_help:`Il s'agit d'un mode spécial dans lequel les états et les objets ne changeront pas. Mais seules les informations sur chaque changement prévu seront affichées dans le protocole.`,debug_label:`Déboguer`,default:`défaut`,dusk:`Crépuscule`,easy:`facile`,else:`autre`,"equal to":`égal à`,every:`chaque`,"every hour at 0 minutes":`toutes les heures à 0 minute`,false:`faux`,"file reading has failed: %s":`La lecture du fichier a échoué: %s`,"file reading was aborted":`la lecture du fichier a été abandonnée`,filter_func:`Une fonction`,filter_id:`ID`,filter_name:`Nom`,filter_role:`Rôle`,filter_room:`Pièce`,"for edit or create script":`pour éditer ou créer un nouveau script`,"for professionals":`pour les professionnels`,"for programmers":`pour les programmeurs`,goldenHour:`Heure d'or`,goldenHourEnd:`Fin de l'heure d'or`,"greater or equal":`supérieur ou égal`,"greater or equal to":`supérieur ou égal à`,"greater than":`plus grand que`,help_just_check:`Le code ne sera exécuté que chaque fois que la condition est vraie. Par exemple. si déclenchement sur la valeur du capteur de température et que la condition est «si la température est supérieure à 20 ° C», les actions «alors» seront exécutées à chaque fois que le capteur envoie la température et qu'elle est supérieure à 20 ° C. À 21 ° C, à 22 ° C et ainsi de suite.`,help_on_change:`Le code ne sera exécuté que si le résultat de la condition change. Par exemple. si le déclenchement sur la valeur du capteur de température et que la condition est «si la température est supérieure à 20 ° C», les actions «alors» seront exécutées une fois lorsque la température est supérieure à 20. La prochaine fois, les actions «alors» seront exécutées lorsque la température échoue sous 20 puis remonte au-dessus de 20.`,"high priority":`haute priorité`,"high-priority":`haute priorité`,"highest priority":`priorité la plus élevée`,hours:`les heures`,includes:`comprend`,interval:`intervalle`,"just check":`Vérifiez simplement`,"less or equal":`inférieur ou égal`,"less or equal to":`inférieur ou égal à`,"less than":`moins que`,"lower priority":`priorité inférieure`,"lowest priority":`priorité la plus basse`,magic:`la magie`,milliseconds:`millisecondes`,minutes:`minutes`,ms:`ms`,nadir:`nadir`,nauticalDawn:`Aube nautique`,nauticalDusk:`Crépuscule nautique`,nextSunrise:`Prochain lever de soleil`,nextSunset:`Prochain coucher de soleil`,night:`Nuit`,nightEnd:`Fin de nuit`,"no blocks found":`Aucun bloc trouvé`,"no group":`PAS DE GROUPE`,normal:`Ordinaire`,"normal priority":`priorité normale`,"not running":`pas en cours d'exécution`,"not equal to":`pas égal à`,"not properly connected":`Ce bloc n'est pas correctement connecté à d'autres blocs.`,offset:`décalage`,"on change":`sur le changement`,"on condition change":`sur changement de condition`,"on update":`sur mise à jour`,one:`une`,or:`ou`,quiet:`calmer`,"reset search":`Réinitialiser la recherche`,search:`chercher`,seconds:`secondes`,solarNoon:`Midi solaire`,"store in":`stocker dans`,sunrise:`lever du soleil`,sunriseEnd:`Fin du lever du soleil`,sunset:`le coucher du soleil`,sunsetStart:`Début du coucher du soleil`,then:`alors`,"toggle value":`valeur de bascule`,tooltip_ack:`Reconnaître`,tooltip_from:`De`,tooltip_lc:`Dernière modification`,tooltip_quality:`Qualité`,tooltip_ts:`Horodatage`,tooltip_user:`Utilisateur`,tooltip_value:`Valeur`,true:`vrai`,two:`deux`,undefined:`indéfini`,update:`mettre à jour`,"use seconds":`utiliser les secondes`,"use trigger value":`use trigger value`,verbose_help:`Ajoute une sortie de débogage au journal pour de nombreuses commandes système`,verbose_label:`Sorties de journal détaillées`,when:`lorsque`,with:`avec`,"with date":`avec date`,"with offset":`avec offset`,wizard:`Wizard`,"Loading models...":`Chargement des modèles...`,"Could not connect to API at %s":`Impossible de se connecter à l'API sur %s`,"Invalid API key":`Clé API invalide`,"Access denied by API":`Accès refusé par l'API`,"API error: %s":`Erreur API : %s`,'Model "%s" not found':`Modèle "%s" introuvable`,"Request failed: %s":`Requête échouée : %s`,Retry:`Réessayer`,"No running javascript instance found":`Aucune instance JavaScript en cours d'exécution trouvée`,"OID display mode":`Mode d'affichage OID`,"Ask questions about your script, request changes, or generate new code.":`Posez des questions sur votre script, demandez des modifications ou générez du nouveau code.`,"to send":`pour envoyer`,"Thinking...":`Réflexion...`,"AI suggested changes":`Modifications suggérées par l'IA`,Accept:`Accepter`,Reject:`Rejeter`,"No API keys configured":`Aucune clé API configurée`,"for new line":`pour nouvelle ligne`,"AI chat mode":`Mode de chat IA`,"Plain conversation. Use for questions, explanations, syntax help. Does not read or modify your scripts.":`Conversation simple. À utiliser pour les questions, explications et aide de syntaxe. Ne lit ni ne modifie vos scripts.`,'For larger models with tool support. The AI can read, create, and edit scripts, look up datapoints, and browse the object tree — useful for "create a script that...", "which scripts use this state?" or "analyze my light script".':`Pour les modèles plus grands avec prise en charge des outils. L'IA peut lire, créer et modifier des scripts, rechercher des datapoints et parcourir l'arbre d'objets — utile pour « crée un script qui... », « quels scripts utilisent cet état ? » ou « analyse mon script d'éclairage ».`,'For smaller models without tool support. Two-step script generator (plan then code) — useful for "create a script that..." or "write a Blockly rule for...". Output goes into the editor for smart-apply.':`Pour les modèles plus petits sans prise en charge des outils. Générateur de scripts en deux étapes (plan puis code) — utile pour « crée un script qui... » ou « écris une règle Blockly pour... ». Le résultat arrive dans l'éditeur pour un smart-apply.`,"Plain conversation. Best for: general questions, syntax help, concept explanations.":`Conversation simple. Idéal pour : questions générales, aide de syntaxe, explications de concepts.`,"For larger models with tool support. Best for: creating, editing, or analyzing scripts; finding datapoint usages; inspecting the object tree.":`Pour les modèles plus grands avec prise en charge des outils. Idéal pour : créer, modifier ou analyser des scripts ; trouver les utilisations de datapoints ; examiner l'arbre d'objets.`,"For smaller models without tool support. Best for: creating new JavaScript/TypeScript or Blockly scripts from a description.":`Pour les modèles plus petits sans prise en charge des outils. Idéal pour : créer de nouveaux scripts JavaScript/TypeScript ou Blockly à partir d'une description.`,"Mention scripts as context for the AI. Use @all for all scripts or @scriptName for a specific one.":`Mentionner des scripts comme contexte pour l'IA. Utilisez @tous pour tous les scripts ou @nomDuScript pour un script spécifique.`,Context:`Contexte`,"current script":`script actuel`,"all scripts":`tous les scripts`,devices:`appareils`,"Searching datapoints":`Recherche de points de données`,"Reading value":`Lecture de la valeur`,"Loading object info":`Chargement des informations de l'objet`,"Searching scripts":`Recherche de scripts`,"Reading script":`Lecture du script`,"Loading script list":`Chargement de la liste des scripts`,"All scripts":`Tous les scripts`,"Smart home devices":`Appareils domotiques`,"AI Chat":`Chat IA`,"AI inline completions":`Complétions en ligne IA`,"New chat":`Nouveau chat`,"Ask about your script...":`Posez une question sur votre script...`,"Insert blocks":`Insérer des blocs`,"Apply blocks":`Appliquer les blocs`,Undo:`Annuler`,Redo:`Rétablir`,"Insert into editor":`Insérer dans l'éditeur`,"Show as diff":`Afficher comme diff`,"Selected code as context":`Code sélectionné comme contexte`,"Generating plan...":`Génération du plan...`,"Generating code...":`Génération du code...`,Plan:`Plan`,"mention @all":`@tous`,"mention @devices":`@appareils`,Send:`Envoyer`,Copy:`Copier`,"AI inline chat":`Chat IA intégré`,'e.g. "Refactor this to use async/await"':`p. ex. "Refactor this to use async/await"`,"Open in chat":`Ouvrir dans le chat`,"Selection: %s line(s)":`Sélection : %s ligne(s)`,"No selection — the question will use context from the whole script.":`Aucune sélection — la question utilisera le contexte du script entier.`,"Please enter a question.":`Veuillez saisir une question.`,"Thinking…":`Réflexion…`,"Code proposal — press Apply to replace your selection.":`Proposition de code — appuyez sur Appliquer pour remplacer la sélection.`,"Plain text answer.":`Réponse textuelle.`,"Show more details":`Afficher plus de détails`,"AI: Inline chat…":`IA : Chat intégré…`,"AI: Explain":`IA : Expliquer`,"AI: Refactor":`IA : Refactoriser`,"AI: Add comments":`IA : Ajouter des commentaires`,"AI: Fix problem":`IA : Corriger le problème`,"AI: Suggest tests":`IA : Suggérer des tests`,"Ask the AI about the selected code:":`Interroger l'IA sur le code sélectionné :`,Explain:`Expliquer`,Refactor:`Refactoriser`,Tests:`Tests`,"Explain %s %s":`Expliquer %s %s`,"Refactor %s %s":`Refactoriser %s %s`,"Suggest tests for %s %s":`Suggérer des tests pour %s %s`,"Apply changes":`Appliquer les modifications`,"Discard changes":`Annuler les modifications`,'Ask anything, or request a change (e.g. "what does this do?")':`Posez une question ou demandez une modification (p. ex. « que fait ceci ? »)`},yp={"%s not found":`%s non trovato`,"()":`()`,"(at %s)":`(a %s)`,"(optional)":`(opzionale)`,"-":`-`,".":`.`,Ack:`Riconosciuto`,Actions:`Azioni`,"Actual time of day":`Ora effettiva della giornata`,Add:`Inserisci`,"Add new script":`Aggiungi nuovo script`,All:`Tutti`,"All files will be accepted":`Tutti i file saranno accettati`,Any:`Qualunque`,"Any month":`Ogni mese`,Apply:`Applica`,April:`aprile`,"Are you sure?":`Sei sicuro?`,Ask:`Chiedere`,Astronomical:`Astronomico`,"Astronomical events today":`Eventi astronomici oggi`,August:`agosto`,"Blockly description":`Creazione di regole tramite blocchi grafici`,"Body:":`Corpo:`,Cancel:`Annulla`,"Cannot delete non empty item!":`Impossibile eliminare l'elemento non vuoto!`,"Change layout":`Cambia layout`,'Change theme (actual "%s")':`Cambia tema (ora - "%s")`,"Check blocks":`Controlla i blocchi`,"Check is not active, because javascript adapter is disabled":`Il controllo non è attivo perché l'adattatore Javascript è disabilitato`,"Clear search input":`Cancella input di ricerca`,"Click on this icon":`Clicca su questa icona`,Close:`Vicino`,"Close all but current":`Chiudi tutto tranne corrente`,"Collapse all":`Comprimi tutto`,"Compares current time with astronomical event":`Confronta l'ora corrente con l'evento astronomico`,"Compares current time with the user specific time":`Confronta l'ora corrente con l'ora specifica dell'utente`,"Compares the state value with user defined value":`Confronta il valore dello stato con il valore definito dall'utente`,Condition:`Condizione`,Conditions:`Condizioni`,"Configuration not saved.":`Configurazione non salvata.`,Console:`Console`,"Control or update some state":`Controlla o aggiorna uno stato`,"Control or update some state with delay":`Controlla o aggiorna uno stato con ritardo`,"Convert blockly to javascript for ever.":`Converti istantaneamente a blocchi in Javascript.`,Copied:`Copiato`,"Copy script":`Copia script`,"Copy to clipboard":`Copia negli appunti`,"Create new":`Creare nuovo`,"Create new folder":`Crea una nuova cartella`,"Create new script":`Crea nuovo script`,"Create or edit CRON or time wizard":`Crea o modifica la procedura guidata CRON o time`,"Dark Theme":`Tema scuro`,"Dark style":`Stile scuro`,Date:`Data`,"Debug instance":`Istanza di debug`,"Debug options":`Opzioni di debug`,December:`dicembre`,Default:`Predefinito`,"Define cron...":`Definisci cron ...`,"Define schedule...":`Definisci programma ...`,Delay:`Ritardo`,Delete:`Elimina`,"Delete %s":`Elimina %s ...`,"Delete folder":`Elimina cartella`,"Delete script":`Elimina script`,Description:`Descrizione`,"Deselect all":`Deselezionare tutto`,"Discard changes for %s":`Annulla modifiche per %s`,Done:`Fatto`,"Double click to write value":`Doppio clic per scrivere il valore`,"Download as file":`Scarica come file`,"Drop some files here or click...":`Trascina alcuni file qui o fai clic su ...`,"Duplicate name":`Nome duplicato`,"Edit script or just double click":`Modifica lo script o fai doppio clic`,"Empty name is not allowed":`Il nome vuoto non è consentito`,"End search mode":`Termina la modalità di ricerca`,Error:`Errore`,"Error formatting code":`Errore di formattazione del codice`,"Error was found":`Errore trovato`,"Every day":`Ogni giorno`,Exec:`Execshell`,"Executes some shell command":`Esegue alcuni comandi della shell`,"Existing scripts will be overwritten.":`Gli script esistenti verranno sovrascritti.`,"Expand all":`Espandi tutto`,"Expert mode":`Modalità esperto`,Explanation:`Spiegazione`,Export:`Esportare`,"Export all scripts":`Esporta tutti gli script`,"Export blocks":`Esporta blocchi`,"Export selected blocks":`Esporta i blocchi selezionati`,Februar:`Februar`,February:`febbraio`,Filter:`Filtro`,Folder:`Cartella`,Fr:`P`,Friday:`Venerdì`,Function:`Funzione`,"Function editor":`Editor di funzioni`,"Function: executed":`Funzione: eseguita`,"Go to next line":`Vai alla riga successiva`,"HTTP Call":`Chiamata HTTP`,"Hide logs":`Nascondi i registri`,ID:`ID`,ID1:`ID1`,ID2:`ID2`,Import:`Importare`,"Import blocks":`Importa blocchi`,"Import error":`Errore di importazione`,"Import scripts":`Importa script`,"Insert object ID":`Inserisci l'ID oggetto`,Instance:`Esempio`,"Instance is disabled":`L'istanza è disabilitata`,"Instance:":`Esempio:`,Instances:`istanze`,Instructions:`Istruzioni`,"Invalid CRON":`CRON non valido`,"It will not be possible to revert this operation.":`Non sarà possibile ripristinare questa operazione.`,"JS description":`Creare regole scrivendo Javascript`,Januar:`Januar`,January:`gennaio`,July:`luglio`,June:`giugno`,"Just check":`Controlla solamente`,"Keep my changes":`Mantieni le mie modifiche`,"Language:":`Linguaggio:`,"Learn More":`Per saperne di più`,"Light style":`Stile leggero`,Limit:`Limite`,"Local time":`Ora locale`,"Locate file":`Localizza file`,"Log outputs":`Registra le uscite`,"Log text":`Testo del registro`,"Log: %s":`Log: %s`,"Make a HTTP get request":`Effettua una richiesta get HTTP`,"Make a pause between actions":`Fai una pausa tra le azioni`,March:`marzo`,"March ":`marzo`,May:`Maggio`,Menu:`Menu`,Message:`Messaggio`,Mo:`Mo`,Model:`Modello`,Monday:`Lunedi`,Month:`Mese`,More:`Di più`,Name:`Nome`,"No active host found":`Nessun host attivo trovato`,"Nothing found":`Non abbiamo trovato nulla`,November:`novembre`,OK:`OK`,October:`ottobre`,Ok:`Ok`,"On condition change":`A condizione che cambino`,"On script save or adapter start":`Al salvataggio dello script o all'avvio dell'adattatore`,"On weekdays":`Nei giorni della settimana`,"Operate two states":`Gestisci due stati`,"Operations with two states":`Operazioni con due stati`,"Paste your blocks here":`Incolla qui i tuoi blocchi`,Pause:`Pausa`,"Pause execution":`Metti in pausa l'esecuzione`,"Pause script":`Metti in pausa lo script`,"Phone:":`Telefono:`,"Please select object ID...":`Seleziona l'ID oggetto ...`,"Prettify the script":`Abbellire la sceneggiatura`,"Print some text in log":`Stampa del testo nel registro`,"Priority:":`Priorità:`,Pushover:`Pushover`,Pushsafer:`Pushsafer`,"Read only ID selected: %s":`ID di sola lettura selezionato: %s`,Reload:`Ricaricare`,Rename:`Rinominare`,"Reorder scripts in folders":`Riordina gli script nelle cartelle`,Repeat:`Ripetere`,Restart:`Ricomincia`,Result:`Risultato`,"Resume execution":`Riprendi esecuzione`,"Root folder":`Cartella root`,"Rules description":`Crea regole con i blocchi IF, THEN, ELSE`,"Run script":`Esegui script`,Sa:`Sa`,Saturday:`Sabato`,Save:`Salva`,"Save all":`Salva tutto`,"Say It":`Say It`,"Say some text via sayit adapter":`Pronuncia del testo tramite l'adattatore sayit`,Schedule:`Programma`,Script:`copione`,"Script %s was modified on disk":`Lo script %s è stato modificato sul disco`,"Script was modified externally":`Lo script è stato modificato esternamente`,"Script is not running":`Lo script non è in esecuzione`,"Search in scripts":`Cerca negli script`,"Search...":`Ricerca...`,"Select all":`Seleziona tutto`,"Send email":`Invia una email`,"Sends an email":`Invia un'e-mail`,"Sends message via Pushsafer":`Invia messaggio tramite Pushsafer`,"Sends message via pushover":`Invia messaggio tramite pushover`,"Sends message via telegram":`Invia messaggio tramite telegramma`,"Sends message via whatsapp-cmb":`Invia messaggio tramite whatsapp-cmb`,September:`settembre`,"Server time":`Ora del server`,"Set state action":`Imposta l'azione dello stato`,"Set with delay":`Impostato con ritardo`,"Shell command":`Comando Shell`,"Show astronomical events":`Mostra eventi astronomici`,"Show javascript code":`Mostra codice Javascript`,"Show logs":`Mostra i log`,"Show only paused scripts":`Mostra solo script in pausa`,"Show only running scripts":`Mostra solo gli script in esecuzione`,"Show only scripts with problems":`Mostra solo script con problemi`,Simulate:`Simulare`,"Some files will be rejected":`Alcuni file verranno rifiutati`,"Sound:":`Suono:`,Stack:`Stack`,Start:`Cominciare`,"Start script":`Avvia script`,State:`Stato`,"State condition":`Condizione dello stato`,"Step into function":`Entra in funzione`,"Step out from function":`Esci dalla funzione`,"Stop on exception":`Ferma in caso di eccezione`,Su:`Su`,"Subject:":`Soggetto:`,Sunday:`Domenica`,"TS description":`Creare regole scrivendo dattiloscritto`,Telegram:`Telegramma`,"Text:":`Testo:`,Th:`4`,'The script "%s" has been modified by another user or in another window. Do you want to reload the script or keep your local changes?':`Lo script "%s" è stato modificato da un altro utente o in un'altra finestra. Vuoi ricaricare lo script o mantenere le tue modifiche locali?`,"The script will be stopped and must be activated manually after debugging. Continue?":`Lo script verrà interrotto e dovrà essere attivato manualmente dopo il debug. Continua?`,"This is advances option. You can write your own code here and it will be executed on trigger":`Questa è un'opzione anticipata. Puoi scrivere il tuo codice qui e verrà eseguito al trigger`,Thursday:`giovedi`,Time:`Tempo`,"Time condition":`Condizione temporale`,"Title:":`Titolo:`,"To:":`Per:`,"Trigger with value":`Trigger con valore`,Triggered:`Innescato`,Triggers:`Trigger`,"Triggers the on script saving or the javascript instance restart":`Attiva il salvataggio dello script o il riavvio dell'istanza javascript`,"Triggers the rule on update or change of some state":`Attiva la regola in caso di aggiornamento o modifica di uno stato`,"Triggers the rule periodically or on some specific time":`Attiva la regola periodicamente o in un momento specifico`,Tu:`Tu`,Tuesday:`martedì`,URL:`URL`,"Unknown error":`Errore sconosciuto`,"Unknown error!":`Errore sconosciuto!`,"User function":`Funzione utente`,"User:":`Utente:`,Value:`Valore`,"Vibration:":`Vibrazione:`,Volume:`Volume`,We:`3`,Wednesday:`mercoledì`,"Whatsapp-cmb":`Whatsapp-cmb`,Write:`Scrivi`,"Write your own code":`Scrivi il tuo codice`,Yes:`sì`,"Yet exists!":`Esiste ancora!`,"You can use %s in the URL to use current trigger value or %id to use the triggered object ID":`È possibile utilizzare %s nell'URL per utilizzare il valore di trigger corrente, %id per utilizzare l'ID dell'oggetto attivato, %name per mostrare il nome dell'ID dell'oggetto attivato o %old per utilizzare il vecchio valore di trigger`,"You can use %s in the command to use current trigger value or %id to use the triggered object ID":`È possibile utilizzare %s nel comando per utilizzare il valore di trigger corrente, %id per utilizzare l'ID dell'oggetto attivato, %name per mostrare il nome dell'ID dell'oggetto attivato o %old per utilizzare il vecchio valore di trigger`,"You can use %s in the text to display current trigger value or %id to display the triggered object ID":`È possibile utilizzare %s nel testo per visualizzare il valore di trigger corrente, %id per utilizzare l'ID dell'oggetto attivato, %name per mostrare il nome dell'ID dell'oggetto attivato o %old per utilizzare il vecchio valore di trigger`,"You can use %s in the value to use the current trigger value or %id to display the triggered object ID":`È possibile utilizzare %s nel valore per utilizzare il valore di trigger corrente, %id per utilizzare l'ID dell'oggetto attivato, %name per mostrare il nome dell'ID dell'oggetto attivato o %old per utilizzare il vecchio valore di trigger`,"Please select a valid model":`Seleziona un modello valido`,"[equal]":`[pari]`,"[greater or equal]":`[maggiore o uguale]`,"[greater]":`[maggiore]`,"[hysteresis]":`[isteresi]`,"[includes]":`[include]`,"[less or equal]":`[minore o uguale]`,"[less]":`[Di meno]`,"[not equal]":`[non uguale]`,acknowledgment:`riconoscimento`,all:`tutti`,and:`e`,"as JSON":`come JSON`,"as plain text":`come testo`,astro:`astro`,at:`a`,"clear running":`chiara esecuzione`,control:`controllo`,copy:`copia`,cron:`CRON`,dawn:`alba`,debug_help:`Questa è una modalità speciale in cui gli stati e gli oggetti non cambieranno. Ma nel protocollo verranno visualizzate solo le informazioni su ogni modifica pianificata.`,debug_label:`Debug`,default:`predefinito`,dusk:`crepuscolo`,easy:`facile`,else:`altro`,"equal to":`uguale a`,every:`ogni`,"every hour at 0 minutes":`ogni ora a 0 minuti`,false:`falso`,"file reading has failed: %s":`lettura file non riuscita: %s`,"file reading was aborted":`la lettura del file è stata interrotta`,filter_func:`Funzione`,filter_id:`ID`,filter_name:`Nome`,filter_role:`Ruolo`,filter_room:`Camera`,"for edit or create script":`per modificare o creare un nuovo script`,"for professionals":`per i professionisti`,"for programmers":`per i programmatori`,goldenHour:`Ora d'oro`,goldenHourEnd:`Fine dell'ora d'oro`,"greater or equal":`maggiore o uguale`,"greater or equal to":`maggiore o uguale a`,"greater than":`più grande di`,help_just_check:`Il codice verrà eseguito solo ogni volta che la condizione è vera. Per esempio. se si attiva il valore del sensore di temperatura e la condizione è "se la temperatura è maggiore di 20 ° C", le azioni "allora" verranno eseguite ogni volta che il sensore invia la temperatura e questa è superiore a 20 ° C. Di 21 ° C, di 22 ° C e così via.`,help_on_change:`Il codice verrà eseguito solo se il risultato della condizione cambia. Per esempio. se si attiva il valore del sensore di temperatura e la condizione è "se la temperatura è maggiore di 20 ° C", le azioni "allora" verranno eseguite una volta quando la temperatura è superiore a 20. La prossima volta le azioni "allora" verranno eseguite quando la temperatura fallisce sotto 20 e poi sale di nuovo oltre 20.`,"high priority":`priorità alta`,"high-priority":`priorità alta`,"highest priority":`massima priorità`,hours:`ore`,includes:`include`,interval:`intervallo`,"just check":`controlla solamente`,"less or equal":`inferiore o uguale`,"less or equal to":`minore o uguale a`,"less than":`meno di`,"lower priority":`priorità inferiore`,"lowest priority":`priorità più bassa`,magic:`Magia`,milliseconds:`millisecondi`,minutes:`minuti`,ms:`ms`,nadir:`nadir`,nauticalDawn:`Alba nautica`,nauticalDusk:`Crepuscolo nautico`,nextSunrise:`Prossima alba`,nextSunset:`Prossimo tramonto`,night:`Notte`,nightEnd:`Fine della notte`,"no blocks found":`Nessun blocco trovato`,"no group":`NESSUN GRUPPO`,normal:`normale`,"normal priority":`priorità normale`,"not running":`non in esecuzione`,"not equal to":`non uguale a`,"not properly connected":`Questo blocco non è correttamente collegato ad altri blocchi.`,offset:`compensare`,"on change":`sul cambiamento`,"on condition change":`a cambio di condizione`,"on update":`in aggiornamento`,one:`uno`,or:`o`,quiet:`silenzioso`,"reset search":`resetta la ricerca`,search:`ricerca`,seconds:`secondi`,solarNoon:`Mezzogiorno solare`,"store in":`conservare in`,sunrise:`Alba`,sunriseEnd:`Fine dell'alba`,sunset:`tramonto`,sunsetStart:`Inizio del tramonto`,then:`poi`,"toggle value":`alterna valore`,tooltip_ack:`Riconoscere`,tooltip_from:`A partire dal`,tooltip_lc:`Ultima modifica`,tooltip_quality:`Qualità`,tooltip_ts:`timestamp`,tooltip_user:`Utente`,tooltip_value:`Valore`,true:`vero`,two:`Due`,undefined:`non definito`,update:`aggiornare`,"use seconds":`usa i secondi`,"use trigger value":`usa il trigger`,verbose_help:`Aggiunge l'output di debug al registro per molti comandi di sistema`,verbose_label:`Output di log dettagliati`,when:`quando`,with:`con`,"with date":`con data`,"with offset":`con offset`,wizard:`procedura guidata`,"Loading models...":`Caricamento modelli...`,"Could not connect to API at %s":`Impossibile connettersi all'API su %s`,"Invalid API key":`Chiave API non valida`,"Access denied by API":`Accesso negato dall'API`,"API error: %s":`Errore API: %s`,'Model "%s" not found':`Modello "%s" non trovato`,"Request failed: %s":`Richiesta fallita: %s`,Retry:`Riprova`,"No running javascript instance found":`Nessuna istanza JavaScript in esecuzione trovata`,"OID display mode":`Modalità di visualizzazione OID`,"Ask questions about your script, request changes, or generate new code.":`Fai domande sul tuo script, richiedi modifiche o genera nuovo codice.`,"to send":`per inviare`,"Thinking...":`Pensando...`,"AI suggested changes":`Modifiche suggerite dall'IA`,Accept:`Accetta`,Reject:`Rifiuta`,"No API keys configured":`Nessuna chiave API configurata`,"for new line":`per nuova riga`,"AI chat mode":`Modalità chat IA`,"Plain conversation. Use for questions, explanations, syntax help. Does not read or modify your scripts.":`Conversazione semplice. Usala per domande, spiegazioni e aiuto sulla sintassi. Non legge né modifica i tuoi script.`,'For larger models with tool support. The AI can read, create, and edit scripts, look up datapoints, and browse the object tree — useful for "create a script that...", "which scripts use this state?" or "analyze my light script".':`Per modelli più grandi con supporto degli strumenti. L'IA può leggere, creare e modificare script, cercare datapoint e sfogliare l'albero degli oggetti — utile per "crea uno script che...", "quali script usano questo state?" o "analizza il mio script delle luci".`,'For smaller models without tool support. Two-step script generator (plan then code) — useful for "create a script that..." or "write a Blockly rule for...". Output goes into the editor for smart-apply.':`Per modelli più piccoli senza supporto degli strumenti. Generatore di script in due passi (prima piano, poi codice) — utile per "crea uno script che..." o "scrivi una regola Blockly per...". L'output va nell'editor per smart-apply.`,"Plain conversation. Best for: general questions, syntax help, concept explanations.":`Conversazione semplice. Ideale per: domande generali, aiuto sulla sintassi, spiegazioni di concetti.`,"For larger models with tool support. Best for: creating, editing, or analyzing scripts; finding datapoint usages; inspecting the object tree.":`Per modelli più grandi con supporto degli strumenti. Ideale per: creare, modificare o analizzare script; trovare usi di datapoint; ispezionare l'albero degli oggetti.`,"For smaller models without tool support. Best for: creating new JavaScript/TypeScript or Blockly scripts from a description.":`Per modelli più piccoli senza supporto degli strumenti. Ideale per: creare nuovi script JavaScript/TypeScript o Blockly da una descrizione.`,"Mention scripts as context for the AI. Use @all for all scripts or @scriptName for a specific one.":`Menziona script come contesto per l'IA. Usa @tutti per tutti gli script o @nomeScript per uno specifico.`,Context:`Contesto`,"current script":`script corrente`,"all scripts":`tutti gli script`,devices:`dispositivi`,"Searching datapoints":`Ricerca punti dati`,"Reading value":`Lettura valore`,"Loading object info":`Caricamento info oggetto`,"Searching scripts":`Ricerca script`,"Reading script":`Lettura script`,"Loading script list":`Caricamento lista script`,"All scripts":`Tutti gli script`,"Smart home devices":`Dispositivi smart home`,"AI Chat":`Chat IA`,"AI inline completions":`Completamento in linea IA`,"New chat":`Nuova chat`,"Ask about your script...":`Chiedi informazioni sul tuo script...`,"Insert blocks":`Inserisci blocchi`,"Apply blocks":`Applica blocchi`,Undo:`Annulla`,Redo:`Ripristina`,"Insert into editor":`Inserisci nell'editor`,"Show as diff":`Mostra come diff`,"Selected code as context":`Codice selezionato come contesto`,"Generating plan...":`Generazione piano...`,"Generating code...":`Generazione codice...`,Plan:`Piano`,"mention @all":`@tutti`,"mention @devices":`@dispositivi`,Send:`Invia`,Copy:`Copia`,"AI inline chat":`Chat IA integrata`,'e.g. "Refactor this to use async/await"':`es. "Refactor this to use async/await"`,"Open in chat":`Apri in chat`,"Selection: %s line(s)":`Selezione: %s riga/e`,"No selection — the question will use context from the whole script.":`Nessuna selezione — la domanda userà il contesto dell'intero script.`,"Please enter a question.":`Inserisci una domanda.`,"Thinking…":`Sto pensando…`,"Code proposal — press Apply to replace your selection.":`Proposta di codice — premi Applica per sostituire la selezione.`,"Plain text answer.":`Risposta testuale.`,"Show more details":`Mostra più dettagli`,"AI: Inline chat…":`IA: Chat integrata…`,"AI: Explain":`IA: Spiega`,"AI: Refactor":`IA: Rifattorizza`,"AI: Add comments":`IA: Aggiungi commenti`,"AI: Fix problem":`IA: Correggi problema`,"AI: Suggest tests":`IA: Suggerisci test`,"Ask the AI about the selected code:":`Chiedi all'IA riguardo al codice selezionato:`,Explain:`Spiega`,Refactor:`Rifattorizza`,Tests:`Test`,"Explain %s %s":`Spiega %s %s`,"Refactor %s %s":`Rifattorizza %s %s`,"Suggest tests for %s %s":`Suggerisci test per %s %s`,"Apply changes":`Applica modifiche`,"Discard changes":`Annulla modifiche`,'Ask anything, or request a change (e.g. "what does this do?")':`Chiedi qualsiasi cosa o richiedi una modifica (es. "cosa fa questo?")`},bp={"%s not found":`%s niet gevonden`,"()":`()`,"(at %s)":`(op %s)`,"(optional)":`(optioneel)`,"-":`-`,".":`.`,Ack:`Erkend`,Actions:`Acties`,"Actual time of day":`Werkelijke tijd van de dag`,Add:`Toevoegen`,"Add new script":`Nieuw script toevoegen`,All:`Alle`,"All files will be accepted":`Alle bestanden worden geaccepteerd`,Any:`Ieder`,"Any month":`Elke maand`,Apply:`Solliciteer`,April:`april`,"Are you sure?":`Weet je zeker dat?`,Ask:`Vragen`,Astronomical:`Astronomisch`,"Astronomical events today":`Astronomische gebeurtenissen vandaag`,August:`augustus`,"Blockly description":`Regels maken door grafische blokken`,"Body:":`Lichaam:`,Cancel:`annuleren`,"Cannot delete non empty item!":`Kan niet leeg item niet verwijderen!`,"Change layout":`Opmaak veranderen`,'Change theme (actual "%s")':`Thema wijzigen (nu - "%s")`,"Check blocks":`Controleer blokken`,"Check is not active, because javascript adapter is disabled":`Controle is niet actief, omdat Javascript-adapter is uitgeschakeld`,"Clear search input":`Zoekopdracht wissen`,"Click on this icon":`Klik op dit pictogram`,Close:`Dichtbij`,"Close all but current":`Alles sluiten behalve huidig`,"Collapse all":`Alles inklappen`,"Compares current time with astronomical event":`Vergelijkt huidige tijd met astronomische gebeurtenis`,"Compares current time with the user specific time":`Vergelijkt de huidige tijd met de gebruikerspecifieke tijd`,"Compares the state value with user defined value":`Vergelijkt de statuswaarde met de door de gebruiker gedefinieerde waarde`,Condition:`Staat`,Conditions:`Voorwaarden`,"Configuration not saved.":`Configuratie niet opgeslagen.`,Console:`Troosten`,"Control or update some state":`Beheer of update een bepaalde staat`,"Control or update some state with delay":`Beheer of update een bepaalde staat met vertraging`,"Convert blockly to javascript for ever.":`Converteer direct blockly naar Javascript.`,Copied:`Gekopieerd`,"Copy script":`Kopieer script`,"Copy to clipboard":`Kopieer naar klembord`,"Create new":`Maak nieuw`,"Create new folder":`Maak een nieuwe map`,"Create new script":`Maak een nieuw script`,"Create or edit CRON or time wizard":`Creëer of bewerk CRON of tijdwizard`,"Dark Theme":`Donker thema`,"Dark style":`Donkere stijl`,Date:`Datum`,"Debug instance":`Debug-instantie`,"Debug options":`Foutopsporingsopties`,December:`december`,Default:`Standaard`,"Define cron...":`Definieer cron ...`,"Define schedule...":`Definieer schema ...`,Delay:`Vertraging`,Delete:`Verwijder`,"Delete %s":`%s verwijderen ...`,"Delete folder":`Verwijder map`,"Delete script":`Script verwijderen`,Description:`Beschrijving`,"Deselect all":`Deselecteer alles`,"Discard changes for %s":`Wijzigingen voor %s annuleren`,Done:`Gedaan`,"Double click to write value":`Dubbelklikken om waarde te schrijven`,"Download as file":`Download`,"Drop some files here or click...":`Zet hier enkele bestanden neer of klik op ...`,"Duplicate name":`Dubbele naam`,"Edit script or just double click":`Bewerk het script of dubbelklik erop`,"Empty name is not allowed":`Lege naam is niet toegestaan`,"End search mode":`Zoekmodus beëindigen`,Error:`Fout`,"Error formatting code":`Fout bij het opmaken van de code`,"Error was found":`Er is een fout gevonden`,"Every day":`Elke dag`,Exec:`Exec shell`,"Executes some shell command":`Voert een shell-commando uit`,"Existing scripts will be overwritten.":`Bestaande scripts worden overschreven.`,"Expand all":`Alles uitvouwen`,"Expert mode":`Expert modus`,Explanation:`Uitleg`,Export:`Exporteren`,"Export all scripts":`Exporteer alle scripts`,"Export blocks":`Blokken exporteren`,"Export selected blocks":`Exporteer geselecteerde blokken`,Februar:`Februari`,February:`februari`,Filter:`Filter`,Folder:`Map`,Fr:`Vr`,Friday:`vrijdag`,Function:`Functie`,"Function editor":`Functie-editor`,"Function: executed":`Functie: uitgevoerd`,"Go to next line":`Ga naar de volgende regel`,"HTTP Call":`HTTP-oproep`,"Hide logs":`Verberg logboeken`,ID:`ID kaart`,ID1:`ID1`,ID2:`ID2`,Import:`Importeren`,"Import blocks":`Blokken importeren`,"Import error":`Importfout`,"Import scripts":`Scripts importeren`,"Insert object ID":`Object-ID invoegen`,Instance:`Voorbeeld`,"Instance is disabled":`Exemplaar is uitgeschakeld`,"Instance:":`Voorbeeld:`,Instances:`Instanties`,Instructions:`Instructies`,"Invalid CRON":`Ongeldige CRON`,"It will not be possible to revert this operation.":`Het is niet mogelijk om deze bewerking terug te zetten.`,"JS description":`Regels maken door Javascript te schrijven`,Januar:`Januar`,January:`januari`,July:`juli`,June:`juni`,"Just check":`Kijk maar`,"Keep my changes":`Mijn wijzigingen behouden`,"Language:":`Taal:`,"Learn More":`Leer meer`,"Light style":`Lichte stijl`,Limit:`Begrenzing`,"Local time":`Lokale tijd`,"Locate file":`Vind het bestand`,"Log outputs":`Log uitgangen`,"Log text":`Log tekst`,"Log: %s":`Logboek: %s`,"Make a HTTP get request":`Maak een HTTP-ophaalverzoek`,"Make a pause between actions":`Pauzeer tussen acties`,March:`maart`,"March ":`maart`,May:`mei`,Menu:`Menu`,Message:`Bericht`,Mo:`Ma`,Model:`Model`,Monday:`maandag`,Month:`Maand`,More:`Meer`,Name:`Naam`,"No active host found":`Geen actieve host gevonden`,"Nothing found":`Niets gevonden`,November:`november`,OK:`OK`,October:`oktober`,Ok:`OK`,"On condition change":`Op voorwaarde verandering`,"On script save or adapter start":`Bij het opslaan van het script of het starten van de adapter`,"On weekdays":`Op weekdagen`,"Operate two states":`Bedien twee toestanden:`,"Operations with two states":`Bewerkingen met twee toestanden`,"Paste your blocks here":`Plak hier je blokken`,Pause:`Pauze`,"Pause execution":`Uitvoering pauzeren`,"Pause script":`Pauzeer script`,"Phone:":`Telefoon:`,"Please select object ID...":`Selecteer object-ID ...`,"Prettify the script":`Maak het script mooier`,"Print some text in log":`Druk wat tekst af in het logboek`,"Priority:":`Prioriteit:`,Pushover:`Pushover`,Pushsafer:`Duwijzer`,"Read only ID selected: %s":`Alleen-lezen ID geselecteerd: %s`,Reload:`Herladen`,Rename:`andere naam geven`,"Reorder scripts in folders":`Sorteer scripts in mappen opnieuw`,Repeat:`Herhaling`,Restart:`Herstarten`,Result:`Resultaat`,"Resume execution":`Uitvoering hervatten`,"Root folder":`Hoofdmap`,"Rules description":`Maak regels met IF, THEN, ELSE blokken`,"Run script":`Voer script uit`,Sa:`Za`,Saturday:`zaterdag`,Save:`Opslaan`,"Save all":`Sla alles op`,"Say It":`Say It`,"Say some text via sayit adapter":`Zeg wat tekst via de sayit-adapter`,Schedule:`Schema`,Script:`Script`,"Script %s was modified on disk":`Script %s is gewijzigd op schijf`,"Script was modified externally":`Script is extern gewijzigd`,"Script is not running":`Script is niet actief`,"Search in scripts":`Zoeken in scripts`,"Search...":`Zoeken...`,"Select all":`Selecteer alles`,"Send email":`E-mail verzenden`,"Sends an email":`Stuurt een e-mail`,"Sends message via Pushsafer":`Stuurt bericht via Pushsafer`,"Sends message via pushover":`Stuurt bericht via pushover`,"Sends message via telegram":`Verzendt bericht via telegram`,"Sends message via whatsapp-cmb":`Stuurt bericht via whatsapp-cmb`,September:`september`,"Server time":`Servertijd`,"Set state action":`Stel statusactie in`,"Set with delay":`Met vertraging ingesteld`,"Shell command":`Shell-opdracht`,"Show astronomical events":`Laat astronomische gebeurtenissen zien`,"Show javascript code":`Javascript-code weergeven`,"Show logs":`Toon logboeken`,"Show only paused scripts":`Toon alleen onderbroken scripts`,"Show only running scripts":`Toon alleen actieve scripts`,"Show only scripts with problems":`Toon alleen scripts met problemen`,Simulate:`Simuleren`,"Some files will be rejected":`Sommige bestanden worden geweigerd`,"Sound:":`Geluid:`,Stack:`Stack`,Start:`Begin`,"Start script":`Start het script`,State:`Staat`,"State condition":`Staat staat`,"Step into function":`Stap in functie`,"Step out from function":`Stap uit de functie`,"Stop on exception":`Stop bij uitzondering`,Su:`Zo`,"Subject:":`Onderwerpen:`,Sunday:`zondag`,"TS description":`Regels maken door Typescript te schrijven`,Telegram:`Telegram`,"Text:":`Tekst:`,Th:`4`,'The script "%s" has been modified by another user or in another window. Do you want to reload the script or keep your local changes?':`Het script "%s" is gewijzigd door een andere gebruiker of in een ander venster. Wilt u het script herladen of uw lokale wijzigingen behouden?`,"The script will be stopped and must be activated manually after debugging. Continue?":`Het script wordt gestopt en moet na het debuggen handmatig worden geactiveerd. Doorgaan met?`,"This is advances option. You can write your own code here and it will be executed on trigger":`Dit is een voorschotoptie. U kunt hier uw eigen code schrijven en deze wordt bij een trigger uitgevoerd`,Thursday:`donderdag`,Time:`Tijd`,"Time condition":`Tijdsvoorwaarde`,"Title:":`Titel:`,"To:":`Naar:`,"Trigger with value":`Trigger met waarde`,Triggered:`Veroorzaakt`,Triggers:`Triggers`,"Triggers the on script saving or the javascript instance restart":`Activeert het opslaan van het script of het opnieuw opstarten van de JavaScript-instantie`,"Triggers the rule on update or change of some state":`Activeert de regel voor het bijwerken of wijzigen van een bepaalde staat`,"Triggers the rule periodically or on some specific time":`Activeert de regel periodiek of op een specifieke tijd`,Tu:`Di`,Tuesday:`dinsdag`,URL:`URL`,"Unknown error":`Onbekende fout`,"Unknown error!":`Onbekende fout!`,"User function":`Gebruikersfunctie`,"User:":`Gebruiker:`,Value:`Waarde`,"Vibration:":`Trilling:`,Volume:`Volume`,We:`3`,Wednesday:`woensdag`,"Whatsapp-cmb":`Whatsapp-cmb`,Write:`Schrijven`,"Write your own code":`Schrijf je eigen code`,Yes:`Ja`,"Yet exists!":`Toch bestaat!`,"You can use %s in the URL to use current trigger value or %id to use the triggered object ID":`U kunt %s in de URL gebruiken om de huidige triggerwaarde te gebruiken, %id om de geactiveerde object-ID te gebruiken, %name om de geactiveerde object-ID-naam te tonen of %old om de oude triggerwaarde te gebruiken`,"You can use %s in the command to use current trigger value or %id to use the triggered object ID":`U kunt %s in de opdracht gebruiken om de huidige triggerwaarde te gebruiken, %id om de getriggerde object-ID te gebruiken, %name om de getriggerde object-ID-naam te tonen of %old om de oude triggerwaarde te gebruiken`,"You can use %s in the text to display current trigger value or %id to display the triggered object ID":`U kunt %s in de tekst gebruiken om de huidige triggerwaarde weer te geven, %id om de geactiveerde object-ID te gebruiken, %name om de geactiveerde object-ID-naam weer te geven of %old om de oude triggerwaarde te gebruiken`,"You can use %s in the value to use the current trigger value or %id to display the triggered object ID":`U kunt %s in de waarde gebruiken om de huidige triggerwaarde te gebruiken, %id om de geactiveerde object-ID te gebruiken, %name om de geactiveerde object-ID-naam te tonen of %old om de oude triggerwaarde te gebruiken`,"Please select a valid model":`Selecteer een geldig model`,"[equal]":`[Gelijk]`,"[greater or equal]":`[groter of gelijk]`,"[greater]":`[groter]`,"[hysteresis]":`[hysterese]`,"[includes]":`[inclusief]`,"[less or equal]":`[minder of gelijk]`,"[less]":`[minder]`,"[not equal]":`[niet gelijk]`,acknowledgment:`erkenning`,all:`alle`,and:`en`,"as JSON":`als JSON`,"as plain text":`als platte tekst`,astro:`astro`,at:`Bij`,"clear running":`duidelijk rennen`,control:`controle`,copy:`kopiëren`,cron:`cron`,dawn:`dageraad`,debug_help:`Dit is een speciale modus waarin toestanden en objecten niet veranderen. Maar alleen informatie over elke geplande wijziging wordt in het protocol weergegeven.`,debug_label:`Debuggen`,default:`standaard`,dusk:`schemer`,easy:`eenvoudig`,else:`anders`,"equal to":`gelijk aan`,every:`elke`,"every hour at 0 minutes":`elk uur op 0 minuten`,false:`false`,"file reading has failed: %s":`bestands lezen is mislukt: %s`,"file reading was aborted":`bestands lezen is afgebroken`,filter_func:`Functie`,filter_id:`ID kaart`,filter_name:`Naam`,filter_role:`Rol`,filter_room:`Kamer`,"for edit or create script":`voor bewerken of een nieuw script maken`,"for professionals":`voor professionals`,"for programmers":`voor programmeurs`,goldenHour:`gouden uur`,goldenHourEnd:`Einde van gouden uur`,"greater or equal":`groter of gelijk`,"greater or equal to":`groter of gelijk aan`,"greater than":`groter dan`,help_just_check:`De code wordt alleen uitgevoerd als de voorwaarde waar is. Bijv. als het triggeren op de temperatuursensorwaarde en de conditie is "als de temperatuur hoger is dan 20 ° C", zullen de "dan" acties worden uitgevoerd elke keer dat de sensor de temperatuur verzendt en deze hoger is dan 20 ° C. Bij 21 ° C, bij 22 ° C enzovoort.`,help_on_change:`De code wordt alleen uitgevoerd als het conditieresultaat verandert. Bijv. als de temperatuursensor wordt geactiveerd en de conditie is "als de temperatuur hoger is dan 20 ° C", worden de "dan" -acties eenmaal uitgevoerd wanneer de temperatuur hoger is dan 20. De volgende keer worden de "dan" -acties uitgevoerd wanneer de temperatuur faalt onder de 20 en stijgt dan weer boven de 20.`,"high priority":`hoge prioriteit`,"high-priority":`hoge prioriteit`,"highest priority":`hoogste prioriteit`,hours:`uren`,includes:`omvat`,interval:`interval`,"just check":`kijk maar`,"less or equal":`minder of gelijk`,"less or equal to":`minder of gelijk aan`,"less than":`minder dan`,"lower priority":`lagere prioriteit`,"lowest priority":`laagste prioriteit`,magic:`magie`,milliseconds:`milliseconden`,minutes:`minuten`,ms:`ms`,nadir:`nadir`,nauticalDawn:`Nautische dageraad`,nauticalDusk:`Nautische schemering`,nextSunrise:`Volgende zonsopgang`,nextSunset:`Volgende zonsondergang`,night:`nacht`,nightEnd:`Einde van de nacht`,"no blocks found":`Geen blokken gevonden`,"no group":`GEEN GROEP`,normal:`normaal`,"normal priority":`normale prioriteit`,"not running":`niet actief`,"not equal to":`niet gelijk aan`,"not properly connected":`Dit blok is niet correct verbonden met andere blokken.`,offset:`compensatie`,"on change":`bij verandering`,"on condition change":`op voorwaarde verandering`,"on update":`bij update`,one:`een`,or:`of`,quiet:`stil`,"reset search":`reset zoeken`,search:`zoeken`,seconds:`seconden`,solarNoon:`Zonne-middag`,"store in":`opslaan in`,sunrise:`zonsopkomst`,sunriseEnd:`Einde zonsopgang`,sunset:`zonsondergang`,sunsetStart:`Begin van de zonsondergang`,then:`vervolgens`,"toggle value":`schakelwaarde`,tooltip_ack:`Erkennen`,tooltip_from:`Van`,tooltip_lc:`Laatst gewijzigd`,tooltip_quality:`Kwaliteit`,tooltip_ts:`tijdstempel`,tooltip_user:`Gebruiker`,tooltip_value:`Waarde`,true:`waar`,two:`twee`,undefined:`ongedefinieerd`,update:`bijwerken`,"use seconds":`gebruik seconden`,"use trigger value":`triggerwaarde gebruiken`,verbose_help:`Voegt foutopsporingsuitvoer toe aan het logboek voor veel systeemopdrachten`,verbose_label:`Uitgebreide log-uitgangen`,when:`wanneer`,with:`met`,"with date":`met datum`,"with offset":`met offset`,wizard:`tovenaar`,"Loading models...":`Modellen laden...`,"Could not connect to API at %s":`Kan geen verbinding maken met API op %s`,"Invalid API key":`Ongeldige API-sleutel`,"Access denied by API":`Toegang geweigerd door API`,"API error: %s":`API-fout: %s`,'Model "%s" not found':`Model "%s" niet gevonden`,"Request failed: %s":`Verzoek mislukt: %s`,Retry:`Opnieuw proberen`,"No running javascript instance found":`Geen draaiende JavaScript-instantie gevonden`,"OID display mode":`OID-weergavemodus`,"Ask questions about your script, request changes, or generate new code.":`Stel vragen over je script, vraag wijzigingen aan of genereer nieuwe code.`,"to send":`om te verzenden`,"Thinking...":`Nadenken...`,"AI suggested changes":`Door AI voorgestelde wijzigingen`,Accept:`Accepteren`,Reject:`Afwijzen`,"No API keys configured":`Geen API-sleutels geconfigureerd`,"for new line":`voor nieuwe regel`,"AI chat mode":`AI-chatmodus`,"Plain conversation. Use for questions, explanations, syntax help. Does not read or modify your scripts.":`Gewoon gesprek. Gebruik voor vragen, uitleg en syntaxishulp. Leest of wijzigt je scripts niet.`,'For larger models with tool support. The AI can read, create, and edit scripts, look up datapoints, and browse the object tree — useful for "create a script that...", "which scripts use this state?" or "analyze my light script".':`Voor grotere modellen met tool-ondersteuning. De AI kan scripts lezen, aanmaken en bewerken, datapunten opzoeken en door de objectboom bladeren — handig voor "maak een script dat...", "welke scripts gebruiken deze state?" of "analyseer mijn licht-script".`,'For smaller models without tool support. Two-step script generator (plan then code) — useful for "create a script that..." or "write a Blockly rule for...". Output goes into the editor for smart-apply.':`Voor kleinere modellen zonder tool-ondersteuning. Scriptgenerator in twee stappen (eerst plan, dan code) — handig voor "maak een script dat..." of "schrijf een Blockly-regel voor...". Het resultaat komt in de editor voor smart-apply.`,"Plain conversation. Best for: general questions, syntax help, concept explanations.":`Gewoon gesprek. Het beste voor: algemene vragen, syntaxishulp, concept-uitleg.`,"For larger models with tool support. Best for: creating, editing, or analyzing scripts; finding datapoint usages; inspecting the object tree.":`Voor grotere modellen met tool-ondersteuning. Het beste voor: scripts maken, bewerken of analyseren; datapuntgebruik vinden; objectboom inspecteren.`,"For smaller models without tool support. Best for: creating new JavaScript/TypeScript or Blockly scripts from a description.":`Voor kleinere modellen zonder tool-ondersteuning. Het beste voor: nieuwe JavaScript/TypeScript- of Blockly-scripts maken op basis van een beschrijving.`,"Mention scripts as context for the AI. Use @all for all scripts or @scriptName for a specific one.":`Vermeld scripts als context voor de AI. Gebruik @alle voor alle scripts of @scriptnaam voor een specifiek script.`,Context:`Context`,"current script":`huidig script`,"all scripts":`alle scripts`,devices:`apparaten`,"Searching datapoints":`Datapunten zoeken`,"Reading value":`Waarde lezen`,"Loading object info":`Objectinfo laden`,"Searching scripts":`Scripts zoeken`,"Reading script":`Script lezen`,"Loading script list":`Scriptlijst laden`,"All scripts":`Alle scripts`,"Smart home devices":`Slimme apparaten`,"AI Chat":`AI Chat`,"AI inline completions":`AI inline-aanvullingen`,"New chat":`Nieuwe chat`,"Ask about your script...":`Stel een vraag over je script...`,"Insert blocks":`Blokken invoegen`,"Apply blocks":`Blokken toepassen`,Undo:`Ongedaan maken`,Redo:`Opnieuw`,"Insert into editor":`In editor invoegen`,"Show as diff":`Als diff tonen`,"Selected code as context":`Geselecteerde code als context`,"Generating plan...":`Plan genereren...`,"Generating code...":`Code genereren...`,Plan:`Plan`,"mention @all":`@alle`,"mention @devices":`@apparaten`,Send:`Verzenden`,Copy:`Kopiëren`,"AI inline chat":`AI inline chat`,'e.g. "Refactor this to use async/await"':`bv. "Refactor this to use async/await"`,"Open in chat":`Open in chat`,"Selection: %s line(s)":`Selectie: %s regel(s)`,"No selection — the question will use context from the whole script.":`Geen selectie — de vraag gebruikt de context van het hele script.`,"Please enter a question.":`Voer een vraag in.`,"Thinking…":`Denken…`,"Code proposal — press Apply to replace your selection.":`Codevoorstel — druk op Toepassen om de selectie te vervangen.`,"Plain text answer.":`Tekstantwoord.`,"Show more details":`Meer details tonen`,"AI: Inline chat…":`AI: Inline chat…`,"AI: Explain":`AI: Uitleggen`,"AI: Refactor":`AI: Refactoren`,"AI: Add comments":`AI: Commentaar toevoegen`,"AI: Fix problem":`AI: Probleem oplossen`,"AI: Suggest tests":`AI: Tests voorstellen`,"Ask the AI about the selected code:":`Vraag de AI over de geselecteerde code:`,Explain:`Uitleggen`,Refactor:`Refactoren`,Tests:`Tests`,"Explain %s %s":`%s %s uitleggen`,"Refactor %s %s":`%s %s refactoren`,"Suggest tests for %s %s":`Tests voorstellen voor %s %s`,"Apply changes":`Wijzigingen toepassen`,"Discard changes":`Wijzigingen negeren`,'Ask anything, or request a change (e.g. "what does this do?")':`Stel een vraag of vraag een wijziging (bv. "wat doet dit?")`},xp={"%s not found":`%s nie znaleziono`,"()":`()`,"(at %s)":`(w %s)`,"(optional)":`(opcjonalny)`,"-":`-`,".":`.`,Ack:`Potwierdzony`,Actions:`Działania`,"Actual time of day":`Aktualna pora dnia`,Add:`Dodaj`,"Add new script":`Dodaj nowy skrypt`,All:`Wszystko`,"All files will be accepted":`Wszystkie pliki zostaną zaakceptowane`,Any:`Każdy`,"Any month":`Dowolny miesiąc`,Apply:`Zastosuj`,April:`Kwiecień`,"Are you sure?":`Jesteś pewny?`,Ask:`Zapytać`,Astronomical:`Astronomiczny`,"Astronomical events today":`Wydarzenia astronomiczne dzisiaj`,August:`Sierpień`,"Blockly description":`Tworzenie reguł za pomocą bloków graficznych`,"Body:":`Treść:`,Cancel:`Odwołaj`,"Cannot delete non empty item!":`Nie można usunąć niepustego elementu!`,"Change layout":`Zmiana układu`,'Change theme (actual "%s")':`Zmień motyw (obecnie - „%s”)`,"Check blocks":`Sprawdź bloki`,"Check is not active, because javascript adapter is disabled":`Sprawdzanie nie jest aktywne, ponieważ adapter Javascript jest wyłączony`,"Clear search input":`Wyczyść dane wyszukiwania`,"Click on this icon":`Kliknij tę ikonę`,Close:`Zamknij`,"Close all but current":`Zamknij wszystkie oprócz bieżących`,"Collapse all":`Zwinąć wszystkie`,"Compares current time with astronomical event":`Porównuje aktualny czas z wydarzeniem astronomicznym`,"Compares current time with the user specific time":`Porównuje aktualny czas z czasem określonym przez użytkownika`,"Compares the state value with user defined value":`Porównuje wartość stanu z wartością zdefiniowaną przez użytkownika`,Condition:`Stan`,Conditions:`Warunki`,"Configuration not saved.":`Konfiguracja nie została zapisana.`,Console:`Konsola`,"Control or update some state":`Kontroluj lub aktualizuj stan`,"Control or update some state with delay":`Kontroluj lub aktualizuj jakiś stan z opóźnieniem`,"Convert blockly to javascript for ever.":`Bezpowrotna konwersja Blockly na Javascript.`,Copied:`Skopiowano`,"Copy script":`Skopiuj skrypt`,"Copy to clipboard":`Skopiuj do schowka`,"Create new":`Utwórz nowy`,"Create new folder":`Utwórz nowy folder`,"Create new script":`Utwórz nowy skrypt`,"Create or edit CRON or time wizard":`Utwórz lub edytuj CRON lub kreator czasu`,"Dark Theme":`Ciemny schemat`,"Dark style":`Ciemny styl`,Date:`Data`,"Debug instance":`Debuguj instancję`,"Debug options":`Opcje debugowania`,December:`Grudzień`,Default:`Domyślna`,"Define cron...":`Zdefiniuj CRON ...`,"Define schedule...":`Zdefiniuj harmonogram ...`,Delay:`Opóźnienie`,Delete:`Usuń`,"Delete %s":`Usuń %s ...`,"Delete folder":`Usuń folder`,"Delete script":`Usuń skrypt`,Description:`Opis`,"Deselect all":`Odznacz wszystkie`,"Discard changes for %s":`Odrzuć zmiany dla %s`,Done:`Gotowe`,"Double click to write value":`Kliknij dwukrotnie, aby zapisać wartość`,"Download as file":`Download jako plik plik`,"Drop some files here or click...":`Upuść niektóre pliki tutaj lub kliknij ...`,"Duplicate name":`Duplikat nazwy`,"Edit script or just double click":`Edytuj skrypt lub po prostu kliknij dwukrotnie`,"Empty name is not allowed":`Pusta nazwa jest niedozwolona`,"End search mode":`Zakończ tryb wyszukiwania`,Error:`Błąd`,"Error formatting code":`Błąd formatowania kodu`,"Error was found":`Błąd został znaleziony`,"Every day":`Codziennie`,Exec:`Uruchom shell`,"Executes some shell command":`Wykonuje polecenie powłoki`,"Existing scripts will be overwritten.":`Istniejące skrypty zostaną zastąpione.`,"Expand all":`Rozwiń wszystkie`,"Expert mode":`Tryb ekspercki`,Explanation:`Wyjaśnienie`,Export:`Eksport`,"Export all scripts":`Wyeksportuj wszystkie skrypty`,"Export blocks":`Eksportuj bloki`,"Export selected blocks":`Eksportuj wybrane bloki`,Februar:`Luty`,February:`Luty`,Filter:`Filtr`,Folder:`Folder`,Fr:`Pt`,Friday:`Piątek`,Function:`Funkcja`,"Function editor":`Edytor funkcji`,"Function: executed":`Funkcja: wykonywana`,"Go to next line":`Przejdź do następnej linii`,"HTTP Call":`Połączenie HTTP`,"Hide logs":`Ukryj dzienniki`,ID:`ID`,ID1:`ID1`,ID2:`ID2`,Import:`Import`,"Import blocks":`Importuj bloki`,"Import error":`Błąd importowania`,"Import scripts":`Importuj skrypty`,"Insert object ID":`Wstaw identyfikator obiektu`,Instance:`Instancja`,"Instance is disabled":`Instancja jest wyłączona`,"Instance:":`Instancja:`,Instances:`Instancje`,Instructions:`Instrukcje`,"Invalid CRON":`Nieprawidłowy CRON`,"It will not be possible to revert this operation.":`Cofnięcie tej operacji nie będzie możliwe.`,"JS description":`Tworzenie reguł w Javascript`,Januar:`Styczeń`,January:`Styczeń`,July:`Lipiec`,June:`Czerwiec`,"Just check":`Po prostu sprawdź`,"Keep my changes":`Zachowaj moje zmiany`,"Language:":`Język:`,"Learn More":`Ucz się więcej`,"Light style":`Lekki styl`,Limit:`Limit`,"Local time":`Czas lokalny`,"Locate file":`Znajdź plik`,"Log outputs":`Log dziennika`,"Log text":`Tekst dziennika`,"Log: %s":`Dziennik: %s`,"Make a HTTP get request":`Złóż żądanie HTTP get`,"Make a pause between actions":`Zrób przerwę między czynnościami`,March:`Marzec`,"March ":`Marzec `,May:`Maj`,Menu:`Menu`,Message:`Wiadomość`,Mo:`Po`,Model:`Model`,Monday:`Poniedziałek`,Month:`Miesiąc`,More:`Więcej`,Name:`Nazwa`,"No active host found":`Nie znaleziono aktywnego hosta`,"Nothing found":`Nic nie znaleziono`,November:`Listopad`,OK:`OK`,October:`Październik`,Ok:`Ok`,"On condition change":`W przypadku zmiany warunków`,"On script save or adapter start":`Podczas zapisywania skryptu lub uruchamiania adaptera`,"On weekdays":`W dni powszednie`,"Operate two states":`Obsługuj dwa stany`,"Operations with two states":`Operacje z dwoma stanami`,"Paste your blocks here":`Wklej tutaj swoje bloki`,Pause:`Pauza`,"Pause execution":`Wstrzymaj wykonanie`,"Pause script":`Wstrzymaj skrypt`,"Phone:":`Telefon:`,"Please select object ID...":`Wybierz identyfikator obiektu ...`,"Prettify the script":`Upiększ skrypt`,"Print some text in log":`Wydrukuj tekst w dzienniku`,"Priority:":`Priorytet:`,Pushover:`Pushover`,Pushsafer:`Pushsafer`,"Read only ID selected: %s":`Wybrano identyfikator tylko do odczytu: %s`,Reload:`Przeładuj`,Rename:`Przemianuj`,"Reorder scripts in folders":`Zmień kolejność skryptów w folderach`,Repeat:`Powtórz`,Restart:`Uruchom ponownie`,Result:`Wynik`,"Resume execution":`Wznów wykonanie`,"Root folder":`Folder główny`,"Rules description":`Twórz reguły z blokami IF, THEN, ELSE`,"Run script":`Uruchom skrypt`,Sa:`So`,Saturday:`Sobota`,Save:`Zapisz`,"Save all":`Zapisz wszystko`,"Say It":`Wypowiedz`,"Say some text via sayit adapter":`Powiedz tekst przez adapter sayit`,Schedule:`Harmonogram`,Script:`Skrypt`,"Script %s was modified on disk":`Skrypt %s został zmodyfikowany na dysku`,"Script was modified externally":`Skrypt został zmodyfikowany zewnętrznie`,"Script is not running":`Skrypt nie działa`,"Search in scripts":`Szukaj w skryptach`,"Search...":`Szukaj...`,"Select all":`Zaznacz wszystko`,"Send email":`Wysłać email`,"Sends an email":`Wysyła e-mail`,"Sends message via Pushsafer":`Wysyła wiadomość przez Pushsafer`,"Sends message via pushover":`Wysyła wiadomość przez pushover`,"Sends message via telegram":`Wysyła wiadomość telegramem`,"Sends message via whatsapp-cmb":`Wysyła wiadomość przez WhatsApp-cmb`,September:`Wrzesień`,"Server time":`Czas serwera`,"Set state action":`Ustaw stan działania`,"Set with delay":`Ustaw z opóźnieniem`,"Shell command":`Polecenie powłoki`,"Show astronomical events":`Pokaż wydarzenia astronomiczne`,"Show javascript code":`Pokaż kod JavaScript`,"Show logs":`Pokaż dzienniki`,"Show only paused scripts":`Pokaż tylko wstrzymane skrypty`,"Show only running scripts":`Pokaż tylko działające skrypty`,"Show only scripts with problems":`Pokaż tylko skrypty z problemami`,Simulate:`Symulacja`,"Some files will be rejected":`Niektóre pliki zostaną odrzucone`,"Sound:":`Dźwięk:`,Stack:`Stos`,Start:`Początek`,"Start script":`Uruchom skrypt`,State:`Stan`,"State condition":`Warunek stanu`,"Step into function":`Wejdź do funkcji`,"Step out from function":`Wyjdź z funkcji`,"Stop on exception":`Zatrzymaj się na wyjątku`,Su:`Nd`,"Subject:":`Temat:`,Sunday:`Niedziela`,"TS description":`Tworzenie reguł w Typescript`,Telegram:`Telegram`,"Text:":`Tekst:`,Th:`Cz`,'The script "%s" has been modified by another user or in another window. Do you want to reload the script or keep your local changes?':`Skrypt "%s" został zmodyfikowany przez innego użytkownika lub w innym oknie. Czy chcesz przeładować skrypt, czy zachować lokalne zmiany?`,"The script will be stopped and must be activated manually after debugging. Continue?":`Skrypt zostanie zatrzymany i należy go aktywować ręcznie po debugowaniu. Kontyntynuj?`,"This is advances option. You can write your own code here and it will be executed on trigger":`To jest opcja zaawansowana. Możesz tutaj napisać własny kod, który zostanie wykonany po wyzwoleniu`,Thursday:`Czwartek`,Time:`Czas`,"Time condition":`Warunek czasowy`,"Title:":`Tytuł:`,"To:":`Do:`,"Trigger with value":`Wyzwalacz z wartością`,Triggered:`Wyzwolony`,Triggers:`Wyzwalacze`,"Triggers the on script saving or the javascript instance restart":`Uruchamia zapisywanie skryptu lub restart instancji javascript`,"Triggers the rule on update or change of some state":`Uruchamia regułę przy aktualizacji lub zmianie jakiegoś stanu`,"Triggers the rule periodically or on some specific time":`Uruchamia regułę okresowo lub w określonym czasie`,Tu:`Wt`,Tuesday:`Wtorek`,URL:`URL`,"Unknown error":`Nieznany błąd`,"Unknown error!":`Nieznany błąd!`,"User function":`Funkcja użytkownika`,"User:":`Użytkownik:`,Value:`Wartość`,"Vibration:":`Wibracja:`,Volume:`Wolumen`,We:`Śr`,Wednesday:`Środa`,"Whatsapp-cmb":`Whatsapp-cmb`,Write:`Pisać`,"Write your own code":`Napisz swój własny kod`,Yes:`Tak`,"Yet exists!":`A jednak istnieje!`,"You can use %s in the URL to use current trigger value or %id to use the triggered object ID":`Możesz użyć %s w adresie URL, aby użyć bieżącej wartości wyzwalacza, %id, aby użyć wyzwalanego identyfikatora obiektu, %name, aby wyświetlić nazwę identyfikatora wyzwalanego obiektu, lub %old, aby użyć starej wartości wyzwalacza`,"You can use %s in the command to use current trigger value or %id to use the triggered object ID":`Możesz użyć %s w poleceniu, aby użyć bieżącej wartości wyzwalającej, %id, aby użyć identyfikatora wyzwalanego obiektu, %name, aby wyświetlić nazwę identyfikatora wyzwalanego obiektu, lub %old, aby użyć starej wartości wyzwalającej`,"You can use %s in the text to display current trigger value or %id to display the triggered object ID":`Możesz użyć %s w tekście, aby wyświetlić aktualną wartość wyzwalającą, %id, aby użyć identyfikatora wyzwolonego obiektu, %name, aby wyświetlić nazwę identyfikatora wyzwolonego obiektu lub %old, aby użyć starej wartości wyzwalającej`,"You can use %s in the value to use the current trigger value or %id to display the triggered object ID":`Możesz użyć %s w wartości, aby użyć bieżącej wartości wyzwalacza, %id, aby użyć identyfikatora wyzwalanego obiektu, %name, aby wyświetlić nazwę identyfikatora wyzwalanego obiektu, lub %old, aby użyć starej wartości wyzwalacza`,"Please select a valid model":`Wybierz prawidłowy model`,"[equal]":`[równy]`,"[greater or equal]":`[większe lub równe]`,"[greater]":`[większe]`,"[hysteresis]":`[histereza]`,"[includes]":`[obejmuje]`,"[less or equal]":`[mniejsze lub równe]`,"[less]":`[mniejsze]`,"[not equal]":`[nie równe]`,acknowledgment:`potwierdzenie`,all:`wszystko`,and:`i`,"as JSON":`jako JSON`,"as plain text":`jako zwykły tekst`,astro:`Astro`,at:`w`,"clear running":`czyste uruchomienie`,control:`kontrola`,copy:`Kopiuj`,cron:`CRON`,dawn:`Świt`,debug_help:`Jest to specjalny tryb, w którym stany i obiekty się nie zmieniają. Jednak w protokole będą wyświetlane tylko informacje o każdej planowanej zmianie.`,debug_label:`Odpluskwić`,default:`domyślna`,dusk:`Zmierzch`,easy:`łatwy`,else:`inaczej`,"equal to":`równy`,every:`każdy`,"every hour at 0 minutes":`co godzinę po 0 minutach`,false:`fałsz`,"file reading has failed: %s":`odczyt pliku nie powiódł się: %s`,"file reading was aborted":`odczyt pliku został przerwany`,filter_func:`Funkcja`,filter_id:`ID`,filter_name:`Nazwa`,filter_role:`Rola`,filter_room:`Pokój`,"for edit or create script":`do edycji lub utwórz nowy skrypt`,"for professionals":`dla profesjonalistów`,"for programmers":`dla programistów`,goldenHour:`Złota godzina`,goldenHourEnd:`Koniec złotej godziny`,"greater or equal":`większe lub równe`,"greater or equal to":`więcej lub równo`,"greater than":`więcej niż`,help_just_check:`Kod zostanie wykonany tylko za każdym razem, gdy warunek będzie spełniony. Na przykład. jeśli wyzwalanie na wartość czujnika temperatury i warunek to „jeśli temperatura jest wyższa niż 20 ° C”, to działania „następnie” będą wykonywane za każdym razem, gdy czujnik wyśle temperaturę i jest powyżej 20 ° C. O 21 ° C, o 22 ° C i tak dalej.`,help_on_change:`Kod zostanie wykonany tylko wtedy, gdy wynik warunku ulegnie zmianie. Na przykład. jeśli wyzwalanie na wartość czujnika temperatury i warunek „jeśli temperatura jest wyższa niż 20 ° C”, to akcje „następnie” zostaną wykonane raz, gdy temperatura przekroczy 20. Następnym razem działania „następnie” zostaną wykonane, gdy temperatura nie udaje się poniżej 20, a następnie ponownie wzrasta powyżej 20.`,"high priority":`wysoki priorytet`,"high-priority":`wysoki priorytet`,"highest priority":`najwyższy priorytet`,hours:`godziny`,includes:`zawiera`,interval:`interwał`,"just check":`po prostu sprawdź`,"less or equal":`mniejsze lub równe`,"less or equal to":`mniej lub równo`,"less than":`mniej niż`,"lower priority":`niższy priorytet`,"lowest priority":`najniższy priorytet`,magic:`magia`,milliseconds:`milisekund`,minutes:`minuty`,ms:`ms`,nadir:`Północ słoneczna`,nauticalDawn:`Żeglarski świt`,nauticalDusk:`Żeglarski zmierzch`,nextSunrise:`Następny wschód słońca`,nextSunset:`Następny zachód słońca`,night:`Noc`,nightEnd:`Koniec nocy`,"no blocks found":`Nie znaleziono bloków`,"no group":`BRAK GRUPY`,normal:`normalny`,"normal priority":`normalny priorytet`,"not running":`nie uruchomiony`,"not equal to":`nie równa się`,"not properly connected":`Ten blok nie jest poprawnie podłączony do innych bloków.`,offset:`przesunięcie`,"on change":`na zmianę`,"on condition change":`pod warunkiem zmiany warunków`,"on update":`po aktualizacji`,one:`jeden`,or:`lub`,quiet:`cisza`,"reset search":`zresetuj wyszukiwanie`,search:`Szukaj`,seconds:`sekundy`,solarNoon:`Południe słoneczne`,"store in":`przechowaj w`,sunrise:`Wschód słońca`,sunriseEnd:`Koniec wschodu słońca`,sunset:`Zachód słońca`,sunsetStart:`Początek zachodu słońca`,then:`następnie`,"toggle value":`wartość przełączania`,tooltip_ack:`Akceptuj`,tooltip_from:`Od`,tooltip_lc:`Ostatnia zmiana`,tooltip_quality:`Jakość`,tooltip_ts:`Znacznik czasu`,tooltip_user:`Użytkownik`,tooltip_value:`Wartość`,true:`prawda`,two:`dwa`,undefined:`nieokreślony`,update:`aktualizacja`,"use seconds":`użyj sekund`,"use trigger value":`użyj wartości wyzwalającej`,verbose_help:`Dodaje wyniki debugowania do dziennika dla wielu poleceń systemowych`,verbose_label:`Pełne dane wyjściowe dziennika`,when:`gdy`,with:`z`,"with date":`z datą`,"with offset":`z przesunięciem`,wizard:`Wizard`,"Loading models...":`Ładowanie modeli...`,"Could not connect to API at %s":`Nie można połączyć się z API pod adresem %s`,"Invalid API key":`Nieprawidłowy klucz API`,"Access denied by API":`Odmowa dostępu przez API`,"API error: %s":`Błąd API: %s`,'Model "%s" not found':`Model "%s" nie znaleziony`,"Request failed: %s":`Żądanie nie powiodło się: %s`,Retry:`Ponów próbę`,"No running javascript instance found":`Nie znaleziono uruchomionej instancji JavaScript`,"OID display mode":`Tryb wyświetlania OID`,"Ask questions about your script, request changes, or generate new code.":`Zadawaj pytania o swój skrypt, proś o zmiany lub generuj nowy kod.`,"to send":`aby wysłać`,"Thinking...":`Myślenie...`,"AI suggested changes":`Zmiany sugerowane przez AI`,Accept:`Akceptuj`,Reject:`Odrzuć`,"No API keys configured":`Brak skonfigurowanych kluczy API`,"for new line":`dla nowej linii`,"AI chat mode":`Tryb czatu AI`,"Plain conversation. Use for questions, explanations, syntax help. Does not read or modify your scripts.":`Zwykła rozmowa. Użyj do pytań, wyjaśnień i pomocy ze składnią. Nie czyta ani nie modyfikuje skryptów.`,'For larger models with tool support. The AI can read, create, and edit scripts, look up datapoints, and browse the object tree — useful for "create a script that...", "which scripts use this state?" or "analyze my light script".':`Dla większych modeli z obsługą narzędzi. AI może czytać, tworzyć i edytować skrypty, wyszukiwać datapointy i przeglądać drzewo obiektów — przydatne do "stwórz skrypt, który...", "które skrypty używają tego state?" lub "przeanalizuj mój skrypt świateł".`,'For smaller models without tool support. Two-step script generator (plan then code) — useful for "create a script that..." or "write a Blockly rule for...". Output goes into the editor for smart-apply.':`Dla mniejszych modeli bez obsługi narzędzi. Dwuetapowy generator skryptów (najpierw plan, potem kod) — przydatne do "stwórz skrypt, który..." lub "napisz regułę Blockly dla...". Wynik trafia do edytora do smart-apply.`,"Plain conversation. Best for: general questions, syntax help, concept explanations.":`Zwykła rozmowa. Najlepsze do: ogólnych pytań, pomocy ze składnią, wyjaśniania pojęć.`,"For larger models with tool support. Best for: creating, editing, or analyzing scripts; finding datapoint usages; inspecting the object tree.":`Dla większych modeli z obsługą narzędzi. Najlepsze do: tworzenia, edycji lub analizy skryptów; znajdowania użycia datapointów; przeglądania drzewa obiektów.`,"For smaller models without tool support. Best for: creating new JavaScript/TypeScript or Blockly scripts from a description.":`Dla mniejszych modeli bez obsługi narzędzi. Najlepsze do: tworzenia nowych skryptów JavaScript/TypeScript lub Blockly na podstawie opisu.`,"Mention scripts as context for the AI. Use @all for all scripts or @scriptName for a specific one.":`Wspomnij skrypty jako kontekst dla AI. Użyj @wszystkie dla wszystkich skryptów lub @nazwaSkryptu dla konkretnego.`,Context:`Kontekst`,"current script":`bieżący skrypt`,"all scripts":`wszystkie skrypty`,devices:`urządzenia`,"Searching datapoints":`Wyszukiwanie punktów danych`,"Reading value":`Odczyt wartości`,"Loading object info":`Ładowanie informacji o obiekcie`,"Searching scripts":`Wyszukiwanie skryptów`,"Reading script":`Odczyt skryptu`,"Loading script list":`Ładowanie listy skryptów`,"All scripts":`Wszystkie skrypty`,"Smart home devices":`Urządzenia inteligentnego domu`,"AI Chat":`Czat AI`,"AI inline completions":`Uzupełnianie w linii AI`,"New chat":`Nowy czat`,"Ask about your script...":`Zapytaj o swój skrypt...`,"Insert blocks":`Wstaw bloki`,"Apply blocks":`Zastosuj bloki`,Undo:`Cofnij`,Redo:`Ponów`,"Insert into editor":`Wstaw do edytora`,"Show as diff":`Pokaż jako diff`,"Selected code as context":`Zaznaczony kod jako kontekst`,"Generating plan...":`Generowanie planu...`,"Generating code...":`Generowanie kodu...`,Plan:`Plan`,"mention @all":`@wszystkie`,"mention @devices":`@urządzenia`,Send:`Wyślij`,Copy:`Kopiuj`,"AI inline chat":`Wbudowany czat AI`,'e.g. "Refactor this to use async/await"':`np. "Refactor this to use async/await"`,"Open in chat":`Otwórz w czacie`,"Selection: %s line(s)":`Zaznaczenie: %s wiersz(y)`,"No selection — the question will use context from the whole script.":`Brak zaznaczenia — pytanie użyje kontekstu całego skryptu.`,"Please enter a question.":`Wpisz pytanie.`,"Thinking…":`Myślę…`,"Code proposal — press Apply to replace your selection.":`Propozycja kodu — naciśnij Zastosuj, aby zastąpić zaznaczenie.`,"Plain text answer.":`Odpowiedź tekstowa.`,"Show more details":`Pokaż więcej szczegółów`,"AI: Inline chat…":`AI: Wbudowany czat…`,"AI: Explain":`AI: Wyjaśnij`,"AI: Refactor":`AI: Refaktoryzuj`,"AI: Add comments":`AI: Dodaj komentarze`,"AI: Fix problem":`AI: Napraw problem`,"AI: Suggest tests":`AI: Zaproponuj testy`,"Ask the AI about the selected code:":`Zapytaj AI o zaznaczony kod:`,Explain:`Wyjaśnij`,Refactor:`Refaktoryzuj`,Tests:`Testy`,"Explain %s %s":`Wyjaśnij %s %s`,"Refactor %s %s":`Refaktoryzuj %s %s`,"Suggest tests for %s %s":`Zaproponuj testy dla %s %s`,"Apply changes":`Zastosuj zmiany`,"Discard changes":`Odrzuć zmiany`,'Ask anything, or request a change (e.g. "what does this do?")':`Zapytaj o cokolwiek lub poproś o zmianę (np. "co to robi?")`},Sp={"%s not found":`%s não encontrado`,"()":`()`,"(at %s)":`(em %s)`,"(optional)":`(opcional)`,"-":`-`,".":`.`,Ack:`Reconhecido`,Actions:`Ações`,"Actual time of day":`Hora real do dia`,Add:`Adicionar`,"Add new script":`Adicionar novo script`,All:`Todos`,"All files will be accepted":`Todos os arquivos serão aceitos`,Any:`Nenhum`,"Any month":`Qualquer mês`,Apply:`Aplique`,April:`abril`,"Are you sure?":`Você tem certeza?`,Ask:`Perguntar`,Astronomical:`Astronômico`,"Astronomical events today":`Eventos astronômicos hoje`,August:`agosto`,"Blockly description":`Criando regras por blocos gráficos`,"Body:":`Corpo:`,Cancel:`Cancelar`,"Cannot delete non empty item!":`Não pode ser deletar, porque não está vazio!`,"Change layout":`Alterar layout`,'Change theme (actual "%s")':`Alterar tema (agora - "%s")`,"Check blocks":`Verificar blocos`,"Check is not active, because javascript adapter is disabled":`A verificação de sintaxe não está ativa porque o adaptador javascript não está rodando.`,"Clear search input":`Limpar entrada de pesquisa`,"Click on this icon":`Clique neste ícone`,Close:`Fechar`,"Close all but current":`Fechar tudo, menos atual`,"Collapse all":`Recolher todos`,"Compares current time with astronomical event":`Compara o tempo atual com o evento astronômico`,"Compares current time with the user specific time":`Compara a hora atual com a hora específica do usuário`,"Compares the state value with user defined value":`Compara o valor do estado com o valor definido pelo usuário`,Condition:`Doença`,Conditions:`Condições`,"Configuration not saved.":`Configuração não esta salva.`,Console:`Console`,"Control or update some state":`Controlar ou atualizar algum estado`,"Control or update some state with delay":`Controlar ou atualizar algum estado com atraso`,"Convert blockly to javascript for ever.":`Converter Blockly em Javascript permanentemente.`,Copied:`Copiado`,"Copy script":`Copiar script`,"Copy to clipboard":`Copiar para área de transferência`,"Create new":`Crie um novo`,"Create new folder":`Criar nova pasta`,"Create new script":`Criar novo script`,"Create or edit CRON or time wizard":`Criar ou editar o assistente cron ou o assistente de horário`,"Dark Theme":`Layout escuro`,"Dark style":`Estilo escuro`,Date:`Encontro`,"Debug instance":`Instância de depuração`,"Debug options":`Opções de depuração`,December:`dezembro`,Default:`Predefinição`,"Define cron...":`Definir cron...`,"Define schedule...":`Definir agendamento ...`,Delay:`Atraso`,Delete:`Deletar`,"Delete %s":`Deletar %s...`,"Delete folder":`Deletar pasta`,"Delete script":`Deletar script`,Description:`Descrição`,"Deselect all":`Desmarcar todos`,"Discard changes for %s":`Descartar alterações para %s`,Done:`Pronto`,"Double click to write value":`Clique duas vezes para escrever o valor`,"Download as file":`Baixar como arquivo`,"Drop some files here or click...":`Solte alguns arquivos aqui ou clique em...`,"Duplicate name":`Nome duplicado`,"Edit script or just double click":`Edite o script ou clique duas vezes`,"Empty name is not allowed":`Nome vazio não é permitido`,"End search mode":`Finalizar modo de pesquisa`,Error:`Erro`,"Error formatting code":`Erro de formatação de código`,"Error was found":`Erro foi encontrado`,"Every day":`Todos os dias`,Exec:`Exec shell`,"Executes some shell command":`Executa algum comando shell`,"Existing scripts will be overwritten.":`Os scripts existentes serão substituídos.`,"Expand all":`Expandir todos`,"Expert mode":`Modo de especialista`,Explanation:`Explicação`,Export:`Exportação`,"Export all scripts":`Exportar todos os scripts`,"Export blocks":`Exportar blocos`,"Export selected blocks":`Exportar blocos selecionados`,Februar:`Februar`,February:`fevereiro`,Filter:`Filtro`,Folder:`Pasta`,Fr:`Fr`,Friday:`Sexta-feira`,Function:`Função`,"Function editor":`Editor de funções`,"Function: executed":`Função: executado`,"Go to next line":`Vá para a próxima linha`,"HTTP Call":`Chamada HTTP`,"Hide logs":`Ocultar logs`,ID:`ID`,ID1:`ID1`,ID2:`ID2`,Import:`Importar`,"Import blocks":`Importar blocos`,"Import error":`Erro de importação`,"Import scripts":`Importar script`,"Insert object ID":`Inserir ID do objeto`,Instance:`Instância`,"Instance is disabled":`Instância está desativada`,"Instance:":`Instância:`,Instances:`Instâncias`,Instructions:`Instruções`,"Invalid CRON":`CRON inválido`,"It will not be possible to revert this operation.":`Não será possível reverter esta operação.`,"JS description":`Criando regras escrevendo Javascript`,Januar:`Januar`,January:`janeiro`,July:`julho`,June:`junho`,"Just check":`Apenas verifique`,"Keep my changes":`Manter minhas alterações`,"Language:":`Língua:`,"Learn More":`Aprender mais`,"Light style":`Estilo claro`,Limit:`Limite`,"Local time":`Hora local`,"Locate file":`Localize o arquivo`,"Log outputs":`Saídas de log`,"Log text":`Texto de registro`,"Log: %s":`Log: %s`,"Make a HTTP get request":`Faça uma solicitação HTTP get`,"Make a pause between actions":`Faça uma pausa entre as ações`,March:`março`,"March ":`Março`,May:`maio`,Menu:`Menu`,Message:`mensagem`,Mo:`Mo`,Model:`Modelo`,Monday:`Segunda-feira`,Month:`Mês`,More:`Mais`,Name:`Nome`,"No active host found":`Nenhum host ativo encontrado`,"Nothing found":`Nada encontrado`,November:`novembro`,OK:`OK`,October:`outubro`,Ok:`Ok`,"On condition change":`Na mudança de condição`,"On script save or adapter start":`Ao salvar o script ou iniciar o adaptador`,"On weekdays":`Nos dias úteis`,"Operate two states":`Operar dois estados`,"Operations with two states":`Operações com dois estados`,"Paste your blocks here":`Cole seus blocos aqui`,Pause:`Pausa`,"Pause execution":`Pausar a execução`,"Pause script":`Pausar script`,"Phone:":`Telefone:`,"Please select object ID...":`Selecione o ID do objeto...`,"Prettify the script":`Embeleze o roteiro`,"Print some text in log":`Imprimir algum texto no log`,"Priority:":`Prioridade:`,Pushover:`Pushover`,Pushsafer:`Pushsafer`,"Read only ID selected: %s":`ID somente leitura selecionada: %s`,Reload:`Recarregar`,Rename:`Renomear`,"Reorder scripts in folders":`Reordenar scripts em pastas`,Repeat:`Repetir`,Restart:`Reiniciar`,Result:`Resultado`,"Resume execution":`Retomar execução`,"Root folder":`Pasta principal`,"Rules description":`Crie regras com blocos IF, THEN, ELSE`,"Run script":`Executar script`,Sa:`Sá`,Saturday:`Sábado`,Save:`Salve`,"Save all":`Salvar tudo`,"Say It":`Say It`,"Say some text via sayit adapter":`Diga algum texto através do adaptador sayit`,Schedule:`Cronograma`,Script:`Script`,"Script %s was modified on disk":`O script "%s" foi modificado no disco rígido`,"Script was modified externally":`O script foi modificado externamente`,"Script is not running":`Script não está sendo executado`,"Search in scripts":`Pesquisa em scripts`,"Search...":`Procurar...`,"Select all":`Selecionar tudo`,"Send email":`Enviar email`,"Sends an email":`Envia um email`,"Sends message via Pushsafer":`Envia mensagem via Pushsafer`,"Sends message via pushover":`Envia mensagem via pushover`,"Sends message via telegram":`Envia mensagem via telegrama`,"Sends message via whatsapp-cmb":`Envia mensagem via whatsapp-cmb`,September:`setembro`,"Server time":`Tempo de servidor`,"Set state action":`Definir ação de estado`,"Set with delay":`Definido com atraso`,"Shell command":`Comando shell`,"Show astronomical events":`Mostrar eventos astronômicos`,"Show javascript code":`Mostrar código Javascript`,"Show logs":`Mostrar logs`,"Show only paused scripts":`Mostrar apenas scripts pausados`,"Show only running scripts":`Mostrar apenas scripts em execução`,"Show only scripts with problems":`Mostrar apenas scripts com problemas`,Simulate:`Simular`,"Some files will be rejected":`Alguns arquivos serão rejeitados`,"Sound:":`Som:`,Stack:`Pilha`,Start:`Começar`,"Start script":`Iniciar script`,State:`Estado`,"State condition":`Condição de estado`,"Step into function":`Entre na função`,"Step out from function":`Saia da função`,"Stop on exception":`Pare na exceção`,Su:`Su`,"Subject:":`Sujeito:`,Sunday:`Domingo`,"TS description":`Criando regras escrevendo Typecript`,Telegram:`Telegrama`,"Text:":`Texto:`,Th:`4`,'The script "%s" has been modified by another user or in another window. Do you want to reload the script or keep your local changes?':`O script "%s" foi modificado por outro usuário ou em outra janela. Deseja recarregar o script ou manter suas alterações locais?`,"The script will be stopped and must be activated manually after debugging. Continue?":`O script será interrompido e deve ser ativado manualmente após a depuração. Continuar?`,"This is advances option. You can write your own code here and it will be executed on trigger":`Esta é a opção de avanços. Você pode escrever seu próprio código aqui e ele será executado no gatilho`,Thursday:`Quinta-feira`,Time:`Tempo`,"Time condition":`Condição de tempo`,"Title:":`Título:`,"To:":`Para:`,"Trigger with value":`Trigger com valor`,Triggered:`Provocado`,Triggers:`Gatilhos`,"Triggers the on script saving or the javascript instance restart":`Aciona o salvamento do script ou a reinicialização da instância javascript`,"Triggers the rule on update or change of some state":`Aciona a regra na atualização ou mudança de algum estado`,"Triggers the rule periodically or on some specific time":`Aciona a regra periodicamente ou em algum momento específico`,Tu:`Tu`,Tuesday:`terça`,URL:`URL`,"Unknown error":`Erro desconhecido`,"Unknown error!":`Erro desconhecido!`,"User function":`Função do usuário`,"User:":`Do utilizador:`,Value:`Valor`,"Vibration:":`Vibração:`,Volume:`Volume`,We:`3`,Wednesday:`quarta`,"Whatsapp-cmb":`Whatsapp-cmb`,Write:`Escrever`,"Write your own code":`Escreva seu próprio código`,Yes:`sim`,"Yet exists!":`Ainda existe!`,"You can use %s in the URL to use current trigger value or %id to use the triggered object ID":`Você pode usar %s na URL para usar o valor do gatilho atual, %id para usar o ID do objeto acionado, %name para mostrar o nome do ID do objeto acionado ou %old para usar o valor do gatilho antigo`,"You can use %s in the command to use current trigger value or %id to use the triggered object ID":`Você pode usar %s no comando para usar o valor do acionador atual, %id para usar o ID do objeto acionado, %name para mostrar o nome do ID do objeto acionado ou %old para usar o valor do acionador antigo`,"You can use %s in the text to display current trigger value or %id to display the triggered object ID":`Você pode usar %s no texto para exibir o valor do acionador atual, %id para usar o ID do objeto acionado, %name para mostrar o nome do ID do objeto acionado ou %old para usar o valor do acionador antigo`,"You can use %s in the value to use the current trigger value or %id to display the triggered object ID":`Você pode usar %s no valor para usar o valor do acionador atual, %id para usar o ID do objeto acionado, %name para mostrar o nome do ID do objeto acionado ou %old para usar o valor do acionador antigo`,"Please select a valid model":`Selecione um modelo válido`,"[equal]":`[igual]`,"[greater or equal]":`[maior ou igual]`,"[greater]":`[maior]`,"[hysteresis]":`[histerese]`,"[includes]":`[inclui]`,"[less or equal]":`[menor ou igual]`,"[less]":`[menos]`,"[not equal]":`[não igual]`,acknowledgment:`reconhecimento`,all:`todos`,and:`e`,"as JSON":`como JSON`,"as plain text":`como texto simples`,astro:`astro`,at:`no`,"clear running":`corrida limpa`,control:`ao controle`,copy:`copiar`,cron:`CRON`,dawn:`alvorecer`,debug_help:`Este é um modo especial no qual estados e objetos não serão alterados. Mas apenas as informações sobre cada mudança planejada serão exibidas no protocolo.`,debug_label:`Depurar`,default:`predefinição`,dusk:`Crepúsculo`,easy:`fácil`,else:`outro`,"equal to":`igual a`,every:`cada`,"every hour at 0 minutes":`a cada hora em 0 minutos`,false:`falso`,"file reading has failed: %s":`a leitura do arquivo falhou: %s`,"file reading was aborted":`a leitura do arquivo foi abortada`,filter_func:`Função`,filter_id:`ID`,filter_name:`Nome`,filter_role:`Tipo`,filter_room:`Quarto`,"for edit or create script":`para editar ou criar um novo script`,"for professionals":`para profissionais`,"for programmers":`para programadores`,goldenHour:`Hora dourada`,goldenHourEnd:`Fim da hora de ouro`,"greater or equal":`maior ou igual`,"greater or equal to":`maior ou igual a`,"greater than":`Maior que`,help_just_check:`O código será executado apenas sempre que a condição for verdadeira. Por exemplo. se disparar no valor do sensor de temperatura e a condição for "se a temperatura for maior que 20 ° C", as ações "então" serão executadas toda vez que o sensor enviar a temperatura e ela estiver acima de 20 ° C. Por 21 ° C, por 22 ° C e assim por diante.`,help_on_change:`O código será executado apenas se o resultado da condição mudar. Por exemplo. se disparar no valor do sensor de temperatura e a condição for "se a temperatura for maior que 20 ° C", as ações "então" serão executadas uma vez quando a temperatura estiver acima de 20. Na próxima vez, as ações "então" serão executadas quando a temperatura falha abaixo de 20 e sobe acima de 20 novamente.`,"high priority":`prioridade máxima`,"high-priority":`prioridade máxima`,"highest priority":`Prioridade máxima`,hours:`horas`,includes:`inclui`,interval:`intervalo`,"just check":`Apenas verifique`,"less or equal":`menor ou igual`,"less or equal to":`menor ou igual a`,"less than":`Menor que`,"lower priority":`prioridade mais baixa`,"lowest priority":`prioridade mais baixa`,magic:`Magia`,milliseconds:`milissegundos`,minutes:`minutos`,ms:`ms`,nadir:`nadir`,nauticalDawn:`Madrugada náutica`,nauticalDusk:`Crepúsculo náutico`,nextSunrise:`próximo nascer do sol`,nextSunset:`Próximo pôr do sol`,night:`Noite`,nightEnd:`Fim de noite`,"no blocks found":`Nenhum bloco encontrado`,"no group":`SEM GRUPO`,normal:`normal`,"normal priority":`prioridade normal`,"not running":`não está em execução`,"not equal to":`não é igual a`,"not properly connected":`Este bloco não está conectado corretamente com outros blocos.`,offset:`Deslocamento`,"on change":`em mudança`,"on condition change":`na mudança de condição`,"on update":`em atualização`,one:`1`,or:`ou`,quiet:`quieto`,"reset search":`redefinir pesquisa`,search:`procurar`,seconds:`segundos`,solarNoon:`Meio-dia solar`,"store in":`armazenar em`,sunrise:`nascer do sol`,sunriseEnd:`Fim do nascer do sol`,sunset:`pôr do sol`,sunsetStart:`Começo do pôr do sol`,then:`então`,"toggle value":`valor de alternância`,tooltip_ack:`reconhecer`,tooltip_from:`de`,tooltip_lc:`Última alteração`,tooltip_quality:`Qualidade`,tooltip_ts:`timestamp`,tooltip_user:`usuário`,tooltip_value:`valor`,true:`verdade`,two:`dois`,undefined:`Indefinido`,update:`atualizar`,"use seconds":`use segundos`,"use trigger value":`use o gatilho`,verbose_help:`Adiciona saída de depuração ao log para muitos comandos do sistema`,verbose_label:`Saídas de log detalhadas`,when:`quando`,with:`com`,"with date":`com data`,"with offset":`com deslocamento`,wizard:`Wizard`,"Loading models...":`Carregando modelos...`,"Could not connect to API at %s":`Não foi possível conectar à API em %s`,"Invalid API key":`Chave API inválida`,"Access denied by API":`Acesso negado pela API`,"API error: %s":`Erro de API: %s`,'Model "%s" not found':`Modelo "%s" não encontrado`,"Request failed: %s":`Solicitação falhou: %s`,Retry:`Tentar novamente`,"No running javascript instance found":`Nenhuma instância JavaScript em execução encontrada`,"OID display mode":`Modo de exibição OID`,"Ask questions about your script, request changes, or generate new code.":`Faça perguntas sobre seu script, solicite alterações ou gere novo código.`,"to send":`para enviar`,"Thinking...":`Pensando...`,"AI suggested changes":`Alterações sugeridas pela IA`,Accept:`Aceitar`,Reject:`Rejeitar`,"No API keys configured":`Nenhuma chave API configurada`,"for new line":`para nova linha`,"AI chat mode":`Modo de chat IA`,"Plain conversation. Use for questions, explanations, syntax help. Does not read or modify your scripts.":`Conversa simples. Use para perguntas, explicações e ajuda com sintaxe. Não lê nem modifica seus scripts.`,'For larger models with tool support. The AI can read, create, and edit scripts, look up datapoints, and browse the object tree — useful for "create a script that...", "which scripts use this state?" or "analyze my light script".':`Para modelos maiores com suporte a ferramentas. A IA pode ler, criar e editar scripts, consultar datapoints e navegar pela árvore de objetos — útil para "crie um script que...", "quais scripts usam este state?" ou "analise meu script de luz".`,'For smaller models without tool support. Two-step script generator (plan then code) — useful for "create a script that..." or "write a Blockly rule for...". Output goes into the editor for smart-apply.':`Para modelos menores sem suporte a ferramentas. Gerador de scripts em duas etapas (plano e depois código) — útil para "crie um script que..." ou "escreva uma regra Blockly para...". O resultado vai para o editor para smart-apply.`,"Plain conversation. Best for: general questions, syntax help, concept explanations.":`Conversa simples. Ideal para: perguntas gerais, ajuda com sintaxe, explicações de conceitos.`,"For larger models with tool support. Best for: creating, editing, or analyzing scripts; finding datapoint usages; inspecting the object tree.":`Para modelos maiores com suporte a ferramentas. Ideal para: criar, editar ou analisar scripts; encontrar usos de datapoints; inspecionar a árvore de objetos.`,"For smaller models without tool support. Best for: creating new JavaScript/TypeScript or Blockly scripts from a description.":`Para modelos menores sem suporte a ferramentas. Ideal para: criar novos scripts JavaScript/TypeScript ou Blockly a partir de uma descrição.`,"Mention scripts as context for the AI. Use @all for all scripts or @scriptName for a specific one.":`Mencionar scripts como contexto para a IA. Use @todos para todos os scripts ou @nomeDoScript para um específico.`,Context:`Contexto`,"current script":`script atual`,"all scripts":`todos os scripts`,devices:`dispositivos`,"Searching datapoints":`Pesquisando pontos de dados`,"Reading value":`Lendo valor`,"Loading object info":`Carregando informações do objeto`,"Searching scripts":`Pesquisando scripts`,"Reading script":`Lendo script`,"Loading script list":`Carregando lista de scripts`,"All scripts":`Todos os scripts`,"Smart home devices":`Dispositivos de casa inteligente`,"AI Chat":`Chat IA`,"AI inline completions":`Completações em linha IA`,"New chat":`Novo chat`,"Ask about your script...":`Pergunte sobre seu script...`,"Insert blocks":`Inserir blocos`,"Apply blocks":`Aplicar blocos`,Undo:`Desfazer`,Redo:`Refazer`,"Insert into editor":`Inserir no editor`,"Show as diff":`Mostrar como diff`,"Selected code as context":`Código selecionado como contexto`,"Generating plan...":`Gerando plano...`,"Generating code...":`Gerando código...`,Plan:`Plano`,"mention @all":`@todos`,"mention @devices":`@dispositivos`,Send:`Enviar`,Copy:`Copiar`,"AI inline chat":`Chat IA embutido`,'e.g. "Refactor this to use async/await"':`ex. "Refactor this to use async/await"`,"Open in chat":`Abrir no chat`,"Selection: %s line(s)":`Seleção: %s linha(s)`,"No selection — the question will use context from the whole script.":`Sem seleção — a pergunta usará o contexto de todo o script.`,"Please enter a question.":`Digite uma pergunta.`,"Thinking…":`Pensando…`,"Code proposal — press Apply to replace your selection.":`Proposta de código — pressione Aplicar para substituir sua seleção.`,"Plain text answer.":`Resposta em texto.`,"Show more details":`Mostrar mais detalhes`,"AI: Inline chat…":`IA: Chat embutido…`,"AI: Explain":`IA: Explicar`,"AI: Refactor":`IA: Refatorar`,"AI: Add comments":`IA: Adicionar comentários`,"AI: Fix problem":`IA: Corrigir problema`,"AI: Suggest tests":`IA: Sugerir testes`,"Ask the AI about the selected code:":`Pergunte à IA sobre o código selecionado:`,Explain:`Explicar`,Refactor:`Refatorar`,Tests:`Testes`,"Explain %s %s":`Explicar %s %s`,"Refactor %s %s":`Refatorar %s %s`,"Suggest tests for %s %s":`Sugerir testes para %s %s`,"Apply changes":`Aplicar alterações`,"Discard changes":`Descartar alterações`,'Ask anything, or request a change (e.g. "what does this do?")':`Pergunte algo ou peça uma alteração (ex. "o que isso faz?")`},Cp={"%s not found":`%s не найден`,"()":`()`,"(at %s)":`(в %s)`,"(optional)":`(необязательный)`,"-":`-`,".":`.`,Ack:`Подтверждение`,Actions:`Действия`,"Actual time of day":`Фактическое время суток`,Add:`Добавить`,"Add new script":`Добавить новый скрипт`,All:`Все`,"All files will be accepted":`Все файлы будут приняты`,Any:`Любая`,"Any month":`В любой месяц`,Apply:`Применить`,April:`Апрель`,"Are you sure?":`Вы уверены?`,Ask:`Спросить`,Astronomical:`Aстрономический`,"Astronomical events today":`Астрономические события сегодня`,August:`Август`,"Blockly description":`Создание правил графическими блоками`,"Body:":`Тело:`,Cancel:`Отмена`,"Cannot delete non empty item!":`Не удается удалить непустой элемент!`,"Change layout":`Изменить макет`,'Change theme (actual "%s")':`Сменить тему (сейчас - "%s")`,"Check blocks":`Проверить блоки`,"Check is not active, because javascript adapter is disabled":`Проверка неактивна, потому что адаптер Javascript отключен`,"Clear search input":`Очистить ввод`,"Click on this icon":`Нажмите на этот значок`,Close:`Закрыть`,"Close all but current":`Закрыть все кроме текущего`,"Collapse all":`Свернуть все`,"Compares current time with astronomical event":`Сравнивает текущее время с астрономическим событием`,"Compares current time with the user specific time":`Сравнивает текущее время с конкретным временем пользователя`,"Compares the state value with user defined value":`Сравнивает значение состояния с пользовательским значением`,Condition:`Условие`,Conditions:`Условия`,"Configuration not saved.":`Конфигурация не сохранена.`,Console:`Приставка`,"Control or update some state":`Контролировать или обновлять какое-то состояние`,"Control or update some state with delay":`Контролировать или обновлять какое-либо состояние с задержкой`,"Convert blockly to javascript for ever.":`Преобразовать blockly в Javascript навсегда.`,Copied:`Скопировано`,"Copy script":`Скопировать скрипт`,"Copy to clipboard":`Скопировать в буфер обмена`,"Create new":`Создать новый`,"Create new folder":`Создать новую папку`,"Create new script":`Создать новый скрипт`,"Create or edit CRON or time wizard":`Создание или редактирование CRON или мастера времени`,"Dark Theme":`Тёмная тема`,"Dark style":`Темный стиль`,Date:`Дата`,"Debug instance":`Экземпляр отладки`,"Debug options":`Варианты отладки`,December:`Декабрь`,Default:`Дефолт`,"Define cron...":`Задать правило ...`,"Define schedule...":`Задать расписание...`,Delay:`Задержка`,Delete:`Удалить`,"Delete %s":`Удалить %s...`,"Delete folder":`Удалить папку`,"Delete script":`Удалить скрипт`,Description:`Описание`,"Deselect all":`Снять выбор со всех`,"Discard changes for %s":`Отменить изменения для %s`,Done:`Готово`,"Double click to write value":`Двойной щелчок для записи значения`,"Download as file":`Скачать как файл`,"Drop some files here or click...":`Перетыщите сюда файлы или нажмите ...`,"Duplicate name":`Повторяющееся имя`,"Edit script or just double click":`Редактировать скрипт или просто дважды щелкнуть`,"Empty name is not allowed":`Пустое имя не допускается`,"End search mode":`Закончить поиск`,Error:`Ошибка`,"Error formatting code":`Ошибка форматирования кода`,"Error was found":`Ошибка была найдена`,"Every day":`Каждый день`,Exec:`Исполнить shell`,"Executes some shell command":`Выполняет некоторую команду оболочки`,"Existing scripts will be overwritten.":`Существующие скрипты будут перезаписаны.`,"Expand all":`Открыть все`,"Expert mode":`Экспертный режим`,Explanation:`Объяснение`,Export:`Экспорт`,"Export all scripts":`Экспорт всех скриптов`,"Export blocks":`Экспортировать блоки`,"Export selected blocks":`Экспортировать выбранные блоки`,Februar:`Февраль`,February:`Февраль`,Filter:`Фильтр`,Folder:`Папка`,Fr:`Пт`,Friday:`пятница`,Function:`Функция`,"Function editor":`Редактор функции`,"Function: executed":`Функция: выполнено`,"Go to next line":`Перейти к следующей строке`,"HTTP Call":`HTTP-вызов`,"Hide logs":`Скрыть журналы`,ID:`ID`,ID1:`ID1`,ID2:`ID2`,Import:`Импорт`,"Import blocks":`Импортировать блоки`,"Import error":`Ошибка импорта`,"Import scripts":`Импорт скриптов`,"Insert object ID":`Вставить ID объекта`,Instance:`Экземпляр`,"Instance is disabled":`Экземпляр отключен`,"Instance:":`Пример:`,Instances:`Экземпляры`,Instructions:`Инструкции`,"Invalid CRON":`Неправильный CRON`,"It will not be possible to revert this operation.":`Невозможно вернуть эту операцию.`,"JS description":`Создание правил путём написания Javascript`,Januar:`Январь`,January:`Январь`,July:`Июль`,June:`Июнь`,"Just check":`Просто проверить`,"Keep my changes":`Сохранить мои изменения`,"Language:":`Язык:`,"Learn More":`Узнать больше`,"Light style":`Светлый стиль`,Limit:`Предел`,"Local time":`Местное время`,"Locate file":`Показать файл в дереве`,"Log outputs":`Журнал`,"Log text":`Текст журнала`,"Log: %s":`Журнал: %s`,"Make a HTTP get request":`Сделайте HTTP-запрос на получение`,"Make a pause between actions":`Сделайте паузу между действиями`,March:`Март`,"March ":`Март `,May:`Май`,Menu:`Меню`,Message:`Сообщение`,Mo:`Пн`,Model:`Модель`,Monday:`понедельник`,Month:`Месяц`,More:`Более`,Name:`Имя`,"No active host found":`Активный host не найден`,"Nothing found":`Ничего не найдено`,November:`Ноябрь`,OK:`Ок`,October:`Октябрь`,Ok:`Ok`,"On condition change":`При изменении реузльтата условий`,"On script save or adapter start":`При сохранении скрипта или запуске адаптера`,"On weekdays":`По дням недели`,"Operate two states":`Операции над двумя состояниями`,"Operations with two states":`Операции с двумя состояниями`,"Paste your blocks here":`Вставьте свои блоки сюда`,Pause:`Пауза`,"Pause execution":`Приостановить выполнение`,"Pause script":`Остановить скрипт`,"Phone:":`Телефон:`,"Please select object ID...":`Пожалуйста, выберите ID объекта ...`,"Prettify the script":`Украсьте сценарий`,"Print some text in log":`Напечатать текст в журнале`,"Priority:":`Приоритет:`,Pushover:`Pushover`,Pushsafer:`Pushsafer`,"Read only ID selected: %s":`Выбран идентификатор только для чтения: %s`,Reload:`Перезагрузить`,Rename:`Переименовать`,"Reorder scripts in folders":`Сортировать скрипты в папках`,Repeat:`Повторение`,Restart:`Перезапустить`,Result:`Результат`,"Resume execution":`Возобновить выполнение`,"Root folder":`Корневая папка`,"Rules description":`Создавайте правила с блоками ЕСЛИ, ТО, ИНАЧЕ`,"Run script":`Запустить скрипт`,Sa:`Сб`,Saturday:`суббота`,Save:`Сохранить`,"Save all":`Сохранить все`,"Say It":`Say It`,"Say some text via sayit adapter":`Произнесите текст через адаптер Sayit`,Schedule:`Расписание`,Script:`скрипт`,"Script %s was modified on disk":`Скрипт "%s" был изменен на диске`,"Script was modified externally":`Скрипт был изменён извне`,"Script is not running":`Сценарий не запущен`,"Search in scripts":`Поиск в скриптах`,"Search...":`Поиск...`,"Select all":`Выбрать все`,"Send email":`Отправить email`,"Sends an email":`Отправляет электронное письмо`,"Sends message via Pushsafer":`Отправляет сообщение через Pushsafer`,"Sends message via pushover":`Отправляет сообщение через пустышку`,"Sends message via telegram":`Отправляет сообщение в телеграмме`,"Sends message via whatsapp-cmb":`Отправляет сообщение через whatsapp-cmb`,September:`Сентябрь`,"Server time":`Время сервера`,"Set state action":`Установить состояние`,"Set with delay":`Установить с задержкой`,"Shell command":`Команда оболочки`,"Show astronomical events":`Показать астрономические события`,"Show javascript code":`Показать код Javascript`,"Show logs":`Показать журналы`,"Show only paused scripts":`Показывать только приостановленные сценарии`,"Show only running scripts":`Показывать только запущенные скрипты`,"Show only scripts with problems":`Показывать только скрипты с проблемами`,Simulate:`Симулировать`,"Some files will be rejected":`Некоторые файлы будут отклонены`,"Sound:":`Звук:`,Stack:`Stack`,Start:`Начинать`,"Start script":`Старт скрипта`,State:`Состояние`,"State condition":`Сравнение состояния`,"Step into function":`Шаг в функционирование`,"Step out from function":`Выйти из функции`,"Stop on exception":`Остановить при исключении`,Su:`Вс`,"Subject:":`Предмет:`,Sunday:`Воскресенье`,"TS description":`Создание правил путём написания Typescript`,Telegram:`Telegram`,"Text:":`Текст:`,Th:`Чт`,'The script "%s" has been modified by another user or in another window. Do you want to reload the script or keep your local changes?':`Скрипт "%s" был изменён другим пользователем или в другом окне. Вы хотите перезагрузить скрипт или сохранить свои локальные изменения?`,"The script will be stopped and must be activated manually after debugging. Continue?":`Cкрипт будет остановлен и должен быть активирован вручную после отладки. Продолжать?`,"This is advances option. You can write your own code here and it will be executed on trigger":`Это расширеный вариант. Вы можете написать здесь свой код и он будет выполняться по триггеру`,Thursday:`Четверг`,Time:`Время`,"Time condition":`Условие времени`,"Title:":`Заголовок:`,"To:":`К:`,"Trigger with value":`Триггер со значением`,Triggered:`Срабатывает`,Triggers:`Триггеры`,"Triggers the on script saving or the javascript instance restart":`Запускает при сохранении скрипта или перезапуске экземпляра javascript`,"Triggers the rule on update or change of some state":`Запускает правило при обновлении или изменении какого-либо состояния`,"Triggers the rule periodically or on some specific time":`Срабатывает правило периодически или в определенное время`,Tu:`Вт`,Tuesday:`вторник`,URL:`URL`,"Unknown error":`Неизвестная ошибка`,"Unknown error!":`Неизвестная ошибка!`,"User function":`Функция пользователя`,"User:":`Пользователь:`,Value:`Значение`,"Vibration:":`Вибрация:`,Volume:`Громкость`,We:`Ср`,Wednesday:`среда`,"Whatsapp-cmb":`Whatsapp-cmb`,Write:`Напишите`,"Write your own code":`Напишите свой код`,Yes:`Да`,"Yet exists!":`Имя уже существует!`,"You can use %s in the URL to use current trigger value or %id to use the triggered object ID":`Вы можете использовать %s в URL-адресе, чтобы использовать текущее значение триггера, %id, чтобы использовать идентификатор инициированного объекта, %name, чтобы показать имя идентификатора инициированного объекта, или %old, чтобы использовать старое значение триггера.`,"You can use %s in the command to use current trigger value or %id to use the triggered object ID":`Вы можете использовать %s в команде, чтобы использовать текущее значение триггера, %id, чтобы использовать идентификатор сработавшего объекта, %name, чтобы показать имя сработавшего идентификатора объекта, или %old, чтобы использовать старое значение триггера.`,"You can use %s in the text to display current trigger value or %id to display the triggered object ID":`Вы можете использовать %s в тексте для отображения текущего значения триггера, %id для использования идентификатора сработавшего объекта, %name для отображения имени сработавшего идентификатора объекта или %old для использования старого значения триггера.`,"You can use %s in the value to use the current trigger value or %id to display the triggered object ID":`Вы можете использовать %s в значении, чтобы использовать текущее значение триггера, %id, чтобы использовать идентификатор инициированного объекта, %name, чтобы показать имя идентификатора инициированного объекта, или %old, чтобы использовать старое значение триггера.`,"Please select a valid model":`Пожалуйста, выберите допустимую модель`,"[equal]":`[равно]`,"[greater or equal]":`[больше или равно]`,"[greater]":`[больше]`,"[hysteresis]":`[гистерезис]`,"[includes]":`[содержит]`,"[less or equal]":`[меньше или равно]`,"[less]":`[меньше]`,"[not equal]":`[не равно]`,acknowledgment:`подтверждение`,all:`все`,and:`и`,"as JSON":`как JSON`,"as plain text":`как текст`,astro:`Астро`,at:`в`,"clear running":`остановить уже бегущие`,control:`контроль`,copy:`копия`,cron:`CRON`,dawn:`Рассвет`,debug_help:`Это особый режим, в котором состояния и объекты не будут меняться. Но в протоколе будет отображаться только информация о каждом планируемом изменении.`,debug_label:`Отлаживать`,default:`дефолт`,dusk:`Сумерки`,easy:`легкий`,else:`иначе`,"equal to":`равно`,every:`каждые(ый)`,"every hour at 0 minutes":`каждый час через 0 минут`,false:`false`,"file reading has failed: %s":`Ошибка чтения файла: %s`,"file reading was aborted":`Чтение файла было прервано`,filter_func:`Функция`,filter_id:`ID`,filter_name:`Название`,filter_role:`Роль`,filter_room:`Комната`,"for edit or create script":`для редактирования или создайте новый скрипт`,"for professionals":`для профессионалов`,"for programmers":`для программистов`,goldenHour:`Золотой час`,goldenHourEnd:`Конец золотого часа`,"greater or equal":`больше или равно`,"greater or equal to":`больше или равно`,"greater than":`больше чем`,help_just_check:`Код будет выполняться только каждый раз, когда условие истинно. Например. при срабатывании по значению датчика температуры и условию «если температура выше 20°C», действия «затем» будут выполняться каждый раз, когда датчик отправляет значение температуры, и оно превышает 20°C. На 21°С, на 22°С и так далее.`,help_on_change:`Код будет выполнен только в случае изменения результата условия. Например, при срабатывании по значению датчика температуры и условию «если температура больше 20°C», действия «затем» будут выполнены один раз, когда температура превысит 20°C. В следующий раз действия «затем» будут выполнены, когда температура опустится ниже 20°C, а затем снова поднимается выше 20°C.`,"high priority":`высокий приоритет`,"high-priority":`высокий-приоритет`,"highest priority":`высший приоритет`,hours:`час(ов)`,includes:`содержит`,interval:`интервал`,"just check":`просто проверить`,"less or equal":`меньше или равно`,"less or equal to":`меньше или равно`,"less than":`меньше, чем`,"lower priority":`более низкий приоритет`,"lowest priority":`самый низкий приоритет`,magic:`магия`,milliseconds:`миллисекунды`,minutes:`минут(у)`,ms:`мс`,nadir:`Надир`,nauticalDawn:`Морской рассвет`,nauticalDusk:`Морские сумерки`,nextSunrise:`Следующий восход`,nextSunset:`Следующий закат`,night:`Ночь`,nightEnd:`Конец ночи`,"no blocks found":`Блоков нет`,"no group":`Нет группы`,normal:`нормальный`,"normal priority":`нормальный приоритет`,"not running":`не запущен`,"not equal to":`не равно`,"not properly connected":`Этот блок неправильно соединён или не соединён с другими блоками.`,offset:`сдвиг`,"on change":`по изменению`,"on condition change":`при изменении результата условия`,"on update":`при обновлении`,one:`один`,or:`или`,quiet:`тихий`,"reset search":`Cбросить поиск`,search:`поиск`,seconds:`секунд`,solarNoon:`Солнечный полдень`,"store in":`сохранить в`,sunrise:`Восход солнца`,sunriseEnd:`Конец восхода`,sunset:`Закат солнца`,sunsetStart:`Начало заката`,then:`тогда`,"toggle value":`инвертировать текщее значение`,tooltip_ack:`Подтверждено`,tooltip_from:`От`,tooltip_lc:`Последнее изменение`,tooltip_quality:`Качественный`,tooltip_ts:`Время`,tooltip_user:`Пользователь`,tooltip_value:`Значение`,true:`true`,two:`два`,undefined:`неопределенный`,update:`обновить`,"use seconds":`использовать секунды`,"use trigger value":`использовать значение триггера`,verbose_help:`Добавляет вывод отладки в журнал для многих системных команд.`,verbose_label:`Подробный протокол`,when:`если`,with:`с`,"with date":`с датой`,"with offset":`со сдвигом`,wizard:`Мастер`,"Loading models...":`Загрузка моделей...`,"Could not connect to API at %s":`Не удалось подключиться к API по адресу %s`,"Invalid API key":`Недействительный ключ API`,"Access denied by API":`Доступ запрещён API`,"API error: %s":`Ошибка API: %s`,'Model "%s" not found':`Модель "%s" не найдена`,"Request failed: %s":`Запрос не удался: %s`,Retry:`Повторить`,"No running javascript instance found":`Не найден работающий экземпляр JavaScript`,"OID display mode":`Режим отображения OID`,"Ask questions about your script, request changes, or generate new code.":`Задавайте вопросы о вашем скрипте, запрашивайте изменения или генерируйте новый код.`,"to send":`для отправки`,"Thinking...":`Думаю...`,"AI suggested changes":`Изменения, предложенные ИИ`,Accept:`Принять`,Reject:`Отклонить`,"No API keys configured":`API-ключи не настроены`,"for new line":`для новой строки`,"AI chat mode":`Режим чата ИИ`,"Plain conversation. Use for questions, explanations, syntax help. Does not read or modify your scripts.":`Обычный разговор. Используйте для вопросов, объяснений и помощи с синтаксисом. Не читает и не изменяет скрипты.`,'For larger models with tool support. The AI can read, create, and edit scripts, look up datapoints, and browse the object tree — useful for "create a script that...", "which scripts use this state?" or "analyze my light script".':`Для больших моделей с поддержкой инструментов. ИИ может читать, создавать и редактировать скрипты, искать датапоинты и просматривать дерево объектов — подходит для «создай скрипт, который …», «какие скрипты используют этот state?» или «проанализируй мой скрипт освещения».`,'For smaller models without tool support. Two-step script generator (plan then code) — useful for "create a script that..." or "write a Blockly rule for...". Output goes into the editor for smart-apply.':`Для небольших моделей без поддержки инструментов. Двухэтапный генератор скриптов (сначала план, затем код) — подходит для «создай скрипт, который …» или «напиши правило Blockly для …». Результат попадает в редактор для smart-apply.`,"Plain conversation. Best for: general questions, syntax help, concept explanations.":`Обычный разговор. Лучше всего для: общих вопросов, помощи с синтаксисом, объяснения концепций.`,"For larger models with tool support. Best for: creating, editing, or analyzing scripts; finding datapoint usages; inspecting the object tree.":`Для больших моделей с поддержкой инструментов. Лучше всего для: создания, редактирования или анализа скриптов; поиска использования датапоинтов; изучения дерева объектов.`,"For smaller models without tool support. Best for: creating new JavaScript/TypeScript or Blockly scripts from a description.":`Для небольших моделей без поддержки инструментов. Лучше всего для: создания новых JavaScript/TypeScript или Blockly скриптов по описанию.`,"Mention scripts as context for the AI. Use @all for all scripts or @scriptName for a specific one.":`Упомяните скрипты как контекст для ИИ. Используйте @все для всех скриптов или @имяСкрипта для конкретного.`,Context:`Контекст`,"current script":`текущий скрипт`,"all scripts":`все скрипты`,devices:`устройства`,"Searching datapoints":`Поиск точек данных`,"Reading value":`Чтение значения`,"Loading object info":`Загрузка информации об объекте`,"Searching scripts":`Поиск скриптов`,"Reading script":`Чтение скрипта`,"Loading script list":`Загрузка списка скриптов`,"All scripts":`Все скрипты`,"Smart home devices":`Устройства умного дома`,"AI Chat":`ИИ Чат`,"AI inline completions":`ИИ автодополнение`,"New chat":`Новый чат`,"Ask about your script...":`Спросите о вашем скрипте...`,"Insert blocks":`Вставить блоки`,"Apply blocks":`Применить блоки`,Undo:`Отменить`,Redo:`Повторить`,"Insert into editor":`Вставить в редактор`,"Show as diff":`Показать как diff`,"Selected code as context":`Выбранный код как контекст`,"Generating plan...":`Создание плана...`,"Generating code...":`Генерация кода...`,Plan:`План`,"mention @all":`@все`,"mention @devices":`@устройства`,Send:`Отправить`,Copy:`Копировать`,"AI inline chat":`Встроенный ИИ-чат`,'e.g. "Refactor this to use async/await"':`напр. "Refactor this to use async/await"`,"Open in chat":`Открыть в чате`,"Selection: %s line(s)":`Выделение: %s стр.`,"No selection — the question will use context from the whole script.":`Нет выделения — вопрос относится ко всему скрипту.`,"Please enter a question.":`Введите вопрос.`,"Thinking…":`Думаю…`,"Code proposal — press Apply to replace your selection.":`Предложение кода — нажмите Применить, чтобы заменить выделение.`,"Plain text answer.":`Текстовый ответ.`,"Show more details":`Показать подробнее`,"AI: Inline chat…":`ИИ: Встроенный чат…`,"AI: Explain":`ИИ: Объяснить`,"AI: Refactor":`ИИ: Рефакторинг`,"AI: Add comments":`ИИ: Добавить комментарии`,"AI: Fix problem":`ИИ: Исправить проблему`,"AI: Suggest tests":`ИИ: Предложить тесты`,"Ask the AI about the selected code:":`Спросите ИИ о выделенном коде:`,Explain:`Объяснить`,Refactor:`Рефакторинг`,Tests:`Тесты`,"Explain %s %s":`Объяснить %s %s`,"Refactor %s %s":`Рефакторинг %s %s`,"Suggest tests for %s %s":`Предложить тесты для %s %s`,"Apply changes":`Применить изменения`,"Discard changes":`Отменить изменения`,'Ask anything, or request a change (e.g. "what does this do?")':`Задайте любой вопрос или попросите изменение (напр. "что делает эта команда?")`},wp={"%s not found":`%s не знайдено`,"()":`()`,"(at %s)":`(у %s)`,"(optional)":`(необов'язково)`,"-":`-`,".":`.`,Ack:`Визнано`,Actions:`Дії`,"Actual time of day":`Фактичний час доби`,Add:`додати`,"Add new script":`Додати новий сценарій`,All:`все`,"All files will be accepted":`Усі файли будуть прийняті`,Any:`Будь-який`,"Any month":`Будь-який місяць`,Apply:`Застосувати`,April:`квітень`,"Are you sure?":`Ти впевнений?`,Ask:`Запитуйте`,Astronomical:`Астрономічний`,"Astronomical events today":`Астрономічні події сьогодні`,August:`серпень`,"Blockly description":`Створення правил за графічними блоками`,"Body:":`Тіло:`,Cancel:`Скасувати`,"Cannot delete non empty item!":`Неможливо видалити непорожній елемент!`,"Change layout":`Змінити макет`,'Change theme (actual "%s")':`Змінити тему (тепер - "%s")`,"Check blocks":`Перевірте блоки`,"Check is not active, because javascript adapter is disabled":`Перевірка не активна, оскільки адаптер Javascript вимкнено`,"Clear search input":`Очистити пошуковий запит`,"Click on this icon":`Натисніть на цей значок`,Close:`Закрити`,"Close all but current":`Закрити всі, крім поточних`,"Collapse all":`Закрити всі`,"Compares current time with astronomical event":`Порівнює поточний час з астрономічною подією`,"Compares current time with the user specific time":`Порівнює поточний час із конкретним часом користувача`,"Compares the state value with user defined value":`Порівнює значення стану з визначеним користувачем значенням`,Condition:`Хвороба`,Conditions:`Умови`,"Configuration not saved.":`Конфігурація не збережена.`,Console:`Консоль`,"Control or update some state":`Контролюйте або оновлюйте певний стан`,"Control or update some state with delay":`Контролюйте або оновлюйте деякий стан із затримкою`,"Convert blockly to javascript for ever.":`Назавжди конвертуйте Blockly у Javascript.`,Copied:`Скопійовано`,"Copy script":`Копіювати сценарій`,"Copy to clipboard":`Копіювати в буфер обміну`,"Create new":`Створити новий`,"Create new folder":`Створити нову папку`,"Create new script":`Створіть новий сценарій`,"Create or edit CRON or time wizard":`Створення або редагування CRON або майстра часу`,"Dark Theme":`Темна тема`,"Dark style":`Темний стиль`,Date:`Дата`,"Debug instance":`Екземпляр налагодження`,"Debug options":`Параметри налагодження`,December:`Грудень`,Default:`За замовчуванням`,"Define cron...":`Визначити cron...`,"Define schedule...":`Визначити розклад...`,Delay:`Затримка`,Delete:`Видалити`,"Delete %s":`Видалити %s...`,"Delete folder":`Видалити папку`,"Delete script":`Видалити сценарій`,Description:`опис`,"Deselect all":`Зняти вибір із усіх`,"Discard changes for %s":`Скасувати зміни для %s`,Done:`Готово`,"Double click to write value":`Двічі клацніть, щоб записати значення`,"Download as file":`Завантажити файл`,"Drop some files here or click...":`Перетягніть кілька файлів сюди або натисніть...`,"Duplicate name":`Повторюване ім'я`,"Edit script or just double click":`Відредагуйте сценарій або просто двічі клацніть`,"Empty name is not allowed":`Порожнє ім'я не допускається`,"End search mode":`Завершити режим пошуку`,Error:`Помилка`,"Error formatting code":`Помилка форматування коду`,"Error was found":`Виявлено помилку`,"Every day":`Кожен день`,Exec:`Виконавча оболонка`,"Executes some shell command":`Виконує певну команду оболонки`,"Existing scripts will be overwritten.":`Існуючі сценарії буде перезаписано.`,"Expand all":`Розгорнути все`,"Expert mode":`Експертний режим`,Explanation:`Пояснення`,Export:`Експорт`,"Export all scripts":`Експортувати всі сценарії`,"Export blocks":`Експорт блоків`,"Export selected blocks":`Експортувати вибрані блоки`,Februar:`Лютий`,February:`Лютий`,Filter:`фільтр`,Folder:`Папка`,Fr:`О`,Friday:`П'ятниця`,Function:`функція`,"Function editor":`Редактор функцій`,"Function: executed":`Функція: виконано`,"Go to next line":`Перейти до наступного рядка`,"HTTP Call":`Виклик HTTP`,"Hide logs":`Приховати журнали`,ID:`ID`,ID1:`ID1`,ID2:`ID2`,Import:`Імпорт`,"Import blocks":`Імпорт блоків`,"Import error":`Помилка імпорту`,"Import scripts":`Імпорт скриптів`,"Insert object ID":`Вставте ID об'єкта`,Instance:`Екземпляр`,"Instance is disabled":`Примірник вимкнено`,"Instance:":`екземпляр:`,Instances:`Примірники`,Instructions:`Інструкції`,"Invalid CRON":`Недійсний CRON`,"It will not be possible to revert this operation.":`Скасувати цю операцію буде неможливо.`,"JS description":`Створення правил шляхом написання Javascript`,Januar:`січень`,January:`січня`,July:`липень`,June:`червень`,"Just check":`Просто перевірте`,"Keep my changes":`Зберегти мої зміни`,"Language:":`Мову:`,"Learn More":`Вивчайте більше`,"Light style":`Легкий стиль`,Limit:`Ліміт`,"Local time":`Місцевий час`,"Locate file":`Знайти файл`,"Log outputs":`Виходи журналу`,"Log text":`Текст журналу`,"Log: %s":`Журнал: %s`,"Make a HTTP get request":`Зробіть HTTP-запит на отримання`,"Make a pause between actions":`Між діями робіть паузу`,March:`березень`,"March ":`березень`,May:`Може`,Menu:`Меню`,Message:`повідомлення`,Mo:`пн`,Model:`Модель`,Monday:`понеділок`,Month:`місяць`,More:`Більше`,Name:`Ім'я`,"No active host found":`Активний хост не знайдено`,"Nothing found":`Нічого не знайдено`,November:`Листопад`,OK:`в порядку`,October:`жовтень`,Ok:`В порядку`,"On condition change":`За умови зміни результату`,"On script save or adapter start":`Під час збереження сценарію або запуску адаптера`,"On weekdays":`В будні дні`,"Operate two states":`Керуйте двома станами`,"Operations with two states":`Операції з двома станами`,"Paste your blocks here":`Вставте сюди свої блоки`,Pause:`Пауза`,"Pause execution":`Призупинити виконання`,"Pause script":`Призупинити сценарій`,"Phone:":`телефон:`,"Please select object ID...":`Виберіть ідентифікатор об'єкта...`,"Prettify the script":`Прикрасьте сценарій`,"Print some text in log":`Надрукувати текст у журналі`,"Priority:":`Пріоритет:`,Pushover:`Pushover`,Pushsafer:`Pushsafer`,"Read only ID selected: %s":`Вибрано ідентифікатор лише для читання: %s`,Reload:`Перезавантажити`,Rename:`Перейменувати`,"Reorder scripts in folders":`Зміна порядку сценаріїв у папках`,Repeat:`Повторіть`,Restart:`Перезапустіть`,Result:`Результат`,"Resume execution":`Відновити виконання`,"Root folder":`Коренева папка`,"Rules description":`Створюйте правила з блоками IF, THEN, ELSE`,"Run script":`Запустіть сценарій`,Sa:`Sa`,Saturday:`Субота`,Save:`зберегти`,"Save all":`Зберегти все`,"Say It":`Скажи це`,"Say some text via sayit adapter":`Скажіть текст через адаптер sayit`,Schedule:`розклад`,Script:`Сценарій`,"Script %s was modified on disk":`Сценарій %s змінено на диску`,"Script was modified externally":`Скрипт було змінено ззовні`,"Script is not running":`Сценарій не працює`,"Search in scripts":`Пошук у скриптах`,"Search...":`пошук...`,"Select all":`Вибрати все`,"Send email":`Відправити лист`,"Sends an email":`Надсилає електронний лист`,"Sends message via Pushsafer":`Надсилає повідомлення через Pushsafer`,"Sends message via pushover":`Надсилає повідомлення через pushover`,"Sends message via telegram":`Надсилає повідомлення через телеграм`,"Sends message via whatsapp-cmb":`Надсилає повідомлення через whatsapp-cmb`,September:`Вересень`,"Server time":`Час сервера`,"Set state action":`Встановити дію стану`,"Set with delay":`Встановити із затримкою`,"Shell command":`Команда оболонки`,"Show astronomical events":`Показати астрономічні події`,"Show javascript code":`Показати код Javascript`,"Show logs":`Показати журнали`,"Show only paused scripts":`Показувати лише призупинені сценарії`,"Show only running scripts":`Показувати лише запущені сценарії`,"Show only scripts with problems":`Показувати лише сценарії з проблемами`,Simulate:`Симулювати`,"Some files will be rejected":`Деякі файли буде відхилено`,"Sound:":`звук:`,Stack:`Стек`,Start:`старт`,"Start script":`Запустити сценарій`,State:`Держава`,"State condition":`Стан стану`,"Step into function":`Крок у функції`,"Step out from function":`Вийти з функції`,"Stop on exception":`Зупинка на винятках`,Su:`Нд`,"Subject:":`Тема:`,Sunday:`неділя`,"TS description":`Створення правил шляхом написання Typescript`,Telegram:`Телеграма`,"Text:":`Текст:`,Th:`чт`,'The script "%s" has been modified by another user or in another window. Do you want to reload the script or keep your local changes?':`Скрипт "%s" було змінено іншим користувачем або в іншому вікні. Бажаєте перезавантажити скрипт чи зберегти свої локальні зміни?`,"The script will be stopped and must be activated manually after debugging. Continue?":`Сценарій буде зупинено, і його необхідно активувати вручну після налагодження. Продовжити?`,"This is advances option. You can write your own code here and it will be executed on trigger":`Це авансовий варіант. Ви можете написати тут свій власний код, і він буде виконано на тригері`,Thursday:`четвер`,Time:`час`,"Time condition":`Умова часу`,"Title:":`Назва:`,"To:":`до:`,"Trigger with value":`Тригер зі значенням`,Triggered:`Спрацьовує`,Triggers:`Тригери`,"Triggers the on script saving or the javascript instance restart":`Ініціює збереження сценарію або перезапуск екземпляра JavaScript`,"Triggers the rule on update or change of some state":`Запускає правило при оновленні або зміні якогось стану`,"Triggers the rule periodically or on some specific time":`Спрацьовує правило періодично або в певний час`,Tu:`вт`,Tuesday:`вівторок`,URL:`URL`,"Unknown error":`Невідома помилка`,"Unknown error!":`Невідома помилка!`,"User function":`Функція користувача`,"User:":`Користувач:`,Value:`Значення`,"Vibration:":`Вібрація:`,Volume:`Обсяг`,We:`ми`,Wednesday:`Середа`,"Whatsapp-cmb":`Whatsapp-cmb`,Write:`Напишіть`,"Write your own code":`Напишіть власний код`,Yes:`Так`,"Yet exists!":`Все ж існує!`,"You can use %s in the URL to use current trigger value or %id to use the triggered object ID":`Ви можете використовувати %s в URL-адресі, щоб використовувати поточне значення тригера, %id, щоб використовувати ідентифікатор активованого об’єкта, %name, щоб показати назву ідентифікатора активованого об’єкта, або %old, щоб використовувати старе значення тригера`,"You can use %s in the command to use current trigger value or %id to use the triggered object ID":`Ви можете використовувати %s у команді, щоб використовувати поточне значення тригера, %id, щоб використовувати ідентифікатор активованого об’єкта, %name, щоб показати назву ідентифікатора активованого об’єкта, або %old, щоб використовувати старе значення тригера`,"You can use %s in the text to display current trigger value or %id to display the triggered object ID":`Ви можете використовувати %s у тексті для відображення поточного значення тригера, %id для використання ідентифікатора активованого об’єкта, %name для відображення імені ідентифікатора активованого об’єкта або %old для використання старого значення тригера`,"You can use %s in the value to use the current trigger value or %id to display the triggered object ID":`Ви можете використовувати %s у значенні, щоб використовувати поточне значення тригера, %id, щоб використовувати ідентифікатор активованого об’єкта, %name, щоб показати назву ідентифікатора активованого об’єкта, або %old, щоб використовувати старе значення тригера`,"Please select a valid model":`Будь ласка, виберіть дійсну модель`,"[equal]":`[рівний]`,"[greater or equal]":`[більше або дорівнює]`,"[greater]":`[більший]`,"[hysteresis]":`[гістерезис]`,"[includes]":`[включає]`,"[less or equal]":`[менше або рівно]`,"[less]":`[менше]`,"[not equal]":`[не дорівнює]`,acknowledgment:`підтвердження`,all:`все`,and:`і`,"as JSON":`як JSON`,"as plain text":`як текст`,astro:`Астро`,at:`в`,"clear running":`чіткий біг`,control:`КОНТРОЛЬ`,copy:`копія`,cron:`CRON`,dawn:`Світанок`,debug_help:`Це особливий режим, в якому стану та об'єкти не змінюватимуться. Але в протоколі відображатиметься лише інформація про кожну заплановану зміну.`,debug_label:`Відлагоджувати`,default:`за замовчуванням`,dusk:`Сутінки`,easy:`легко`,else:`інше`,"equal to":`дорівнює`,every:`кожен`,"every hour at 0 minutes":`щогодини о 0 хвилин`,false:`помилковий`,"file reading has failed: %s":`не вдалося прочитати файл: %s`,"file reading was aborted":`читання файлу було перервано`,filter_func:`функція`,filter_id:`ID`,filter_name:`Ім'я`,filter_role:`Роль`,filter_room:`Кімната`,"for edit or create script":`для редагування або створення нового сценарію`,"for professionals":`для професіоналів`,"for programmers":`для програмістів`,goldenHour:`Золота година`,goldenHourEnd:`Кінець золотої години`,"greater or equal":`більший або рівний`,"greater or equal to":`більше або дорівнює`,"greater than":`більше, ніж, величніше ніж, крутіший за`,help_just_check:`Код буде виконуватися лише щоразу, коли умова виконується. наприклад якщо спрацьовує значення датчика температури та умова «якщо температура перевищує 20°C», дії «тоді» виконуватимуться щоразу, коли датчик надсилає температуру, і вона перевищує 20°C. На 21°C, на 22°C і так далі.`,help_on_change:`Код буде виконано лише у разі зміни результату умови. наприклад якщо спрацьовує значення датчика температури та умова «якщо температура перевищує 20°C», дії «тоді» будуть виконані один раз, коли температура буде вище 20. Наступного разу дії «тоді» буде виконано, коли температура падає нижче 20, а потім знову піднімається вище 20.`,"high priority":`високий пріоритет`,"high-priority":`високий пріоритет`,"highest priority":`найвищий пріоритет`,hours:`години`,includes:`включає в себе`,interval:`інтервал`,"just check":`просто перевірте`,"less or equal":`менше або дорівнює`,"less or equal to":`менше або дорівнює`,"less than":`менше ніж`,"lower priority":`нижчий пріоритет`,"lowest priority":`найнижчий пріоритет`,magic:`магія`,milliseconds:`мілісекунд`,minutes:`хвилин`,ms:`РС`,nadir:`Надір`,nauticalDawn:`Морський світанок`,nauticalDusk:`Морські сутінки`,nextSunrise:`Наступний схід сонця`,nextSunset:`Наступний захід сонця`,night:`ніч`,nightEnd:`Кінець ночі`,"no blocks found":`Блоків не знайдено`,"no group":`НЕМАЄ ГРУПИ`,normal:`нормально`,"normal priority":`нормальний пріоритет`,"not running":`не запущено`,"not equal to":`не дорівнює`,"not properly connected":`Цей блок неправильно з’єднаний з іншими блоками.`,offset:`зсув`,"on change":`на зміну`,"on condition change":`про зміну умов`,"on update":`на оновлення`,one:`один`,or:`або`,quiet:`тихо`,"reset search":`скинути пошук`,search:`пошук`,seconds:`секунд`,solarNoon:`Сонячний полудень`,"store in":`зберігати в`,sunrise:`схід сонця`,sunriseEnd:`Кінець сходу сонця`,sunset:`Захід сонця`,sunsetStart:`Початок заходу сонця`,then:`потім`,"toggle value":`значення перемикання`,tooltip_ack:`Визнати`,tooltip_from:`Від`,tooltip_lc:`Востаннє змінено`,tooltip_quality:`якість`,tooltip_ts:`Мітка часу`,tooltip_user:`Користувач`,tooltip_value:`Значення`,true:`правда`,two:`два`,undefined:`невизначений`,update:`оновлення`,"use seconds":`використовуйте секунди`,"use trigger value":`використовувати значення тригера`,verbose_help:`Додає вихідні дані налагодження до журналу для багатьох системних команд`,verbose_label:`Докладні результати журналу`,when:`коли`,with:`з`,"with date":`з датою`,"with offset":`зі зміщенням`,wizard:`майстер`,"Loading models...":`Завантаження моделей...`,"Could not connect to API at %s":`Не вдалося підключитися до API за адресою %s`,"Invalid API key":`Недійсний ключ API`,"Access denied by API":`Доступ заборонено API`,"API error: %s":`Помилка API: %s`,'Model "%s" not found':`Модель "%s" не знайдено`,"Request failed: %s":`Запит не вдався: %s`,Retry:`Повторити`,"No running javascript instance found":`Не знайдено запущеного екземпляра JavaScript`,"OID display mode":`Режим відображення OID`,"Ask questions about your script, request changes, or generate new code.":`Задавайте питання про ваш скрипт, запитуйте зміни або генеруйте новий код.`,"to send":`для надсилання`,"Thinking...":`Думаю...`,"AI suggested changes":`Зміни, запропоновані ШІ`,Accept:`Прийняти`,Reject:`Відхилити`,"No API keys configured":`API-ключі не налаштовані`,"for new line":`для нового рядка`,"AI chat mode":`Режим чату ШІ`,"Plain conversation. Use for questions, explanations, syntax help. Does not read or modify your scripts.":`Звичайна розмова. Використовуйте для питань, пояснень і допомоги із синтаксисом. Не читає і не змінює скрипти.`,'For larger models with tool support. The AI can read, create, and edit scripts, look up datapoints, and browse the object tree — useful for "create a script that...", "which scripts use this state?" or "analyze my light script".':`Для більших моделей з підтримкою інструментів. ШІ може читати, створювати і редагувати скрипти, шукати датапоінти і переглядати дерево об'єктів — підходить для «створи скрипт, який …», «які скрипти використовують цей state?» або «проаналізуй мій скрипт освітлення».`,'For smaller models without tool support. Two-step script generator (plan then code) — useful for "create a script that..." or "write a Blockly rule for...". Output goes into the editor for smart-apply.':`Для менших моделей без підтримки інструментів. Двоетапний генератор скриптів (спочатку план, потім код) — підходить для «створи скрипт, який …» або «напиши правило Blockly для …». Результат потрапляє до редактора для smart-apply.`,"Plain conversation. Best for: general questions, syntax help, concept explanations.":`Звичайна розмова. Найкраще для: загальних питань, допомоги із синтаксисом, пояснення понять.`,"For larger models with tool support. Best for: creating, editing, or analyzing scripts; finding datapoint usages; inspecting the object tree.":`Для більших моделей з підтримкою інструментів. Найкраще для: створення, редагування або аналізу скриптів; пошуку використання датапоінтів; перегляду дерева об'єктів.`,"For smaller models without tool support. Best for: creating new JavaScript/TypeScript or Blockly scripts from a description.":`Для менших моделей без підтримки інструментів. Найкраще для: створення нових JavaScript/TypeScript або Blockly скриптів з опису.`,"Mention scripts as context for the AI. Use @all for all scripts or @scriptName for a specific one.":`Згадайте скрипти як контекст для ШІ. Використовуйте @всі для всіх скриптів або @назваСкрипта для конкретного.`,Context:`Контекст`,"current script":`поточний скрипт`,"all scripts":`усі скрипти`,devices:`пристрої`,"Searching datapoints":`Пошук точок даних`,"Reading value":`Читання значення`,"Loading object info":`Завантаження інформації про об'єкт`,"Searching scripts":`Пошук скриптів`,"Reading script":`Читання скрипта`,"Loading script list":`Завантаження списку скриптів`,"All scripts":`Усі скрипти`,"Smart home devices":`Пристрої розумного дому`,"AI Chat":`ШІ Чат`,"AI inline completions":`ШІ автодоповнення`,"New chat":`Новий чат`,"Ask about your script...":`Запитайте про ваш скрипт...`,"Insert blocks":`Вставити блоки`,"Apply blocks":`Застосувати блоки`,Undo:`Скасувати`,Redo:`Повторити`,"Insert into editor":`Вставити в редактор`,"Show as diff":`Показати як diff`,"Selected code as context":`Вибраний код як контекст`,"Generating plan...":`Створення плану...`,"Generating code...":`Генерація коду...`,Plan:`План`,"mention @all":`@усі`,"mention @devices":`@пристрої`,Send:`Надіслати`,Copy:`Копіювати`,"AI inline chat":`Вбудований ШІ-чат`,'e.g. "Refactor this to use async/await"':`напр. "Refactor this to use async/await"`,"Open in chat":`Відкрити в чаті`,"Selection: %s line(s)":`Виділення: %s рядок(ів)`,"No selection — the question will use context from the whole script.":`Без виділення — питання використає контекст усього скрипта.`,"Please enter a question.":`Введіть запитання.`,"Thinking…":`Думаю…`,"Code proposal — press Apply to replace your selection.":`Пропозиція коду — натисніть Застосувати, щоб замінити виділення.`,"Plain text answer.":`Текстова відповідь.`,"Show more details":`Показати більше подробиць`,"AI: Inline chat…":`ШІ: Вбудований чат…`,"AI: Explain":`ШІ: Пояснити`,"AI: Refactor":`ШІ: Рефакторинг`,"AI: Add comments":`ШІ: Додати коментарі`,"AI: Fix problem":`ШІ: Виправити проблему`,"AI: Suggest tests":`ШІ: Запропонувати тести`,"Ask the AI about the selected code:":`Запитайте ШІ про виділений код:`,Explain:`Пояснити`,Refactor:`Рефакторинг`,Tests:`Тести`,"Explain %s %s":`Пояснити %s %s`,"Refactor %s %s":`Рефакторинг %s %s`,"Suggest tests for %s %s":`Запропонувати тести для %s %s`,"Apply changes":`Застосувати зміни`,"Discard changes":`Скасувати зміни`,'Ask anything, or request a change (e.g. "what does this do?")':`Запитайте будь-що або попросіть зміни (напр. "що це робить?")`},Tp={"%s not found":`%s 未找到`,"()":`()`,"(at %s)":`(在 %s)`,"(optional)":`(选修的)`,"-":`-`,".":`.`,Ack:`确认`,Actions:`动作`,"Actual time of day":`一天中的实际时间`,Add:`添加`,"Add new script":`添加新脚本`,All:`所有`,"All files will be accepted":`所有文件都将被接受`,Any:`任何`,"Any month":`任何月份`,Apply:`申请`,April:`四月`,"Are you sure?":`你确定吗?`,Ask:`问`,Astronomical:`天文`,"Astronomical events today":`今天的天文事件`,August:`八月`,"Blockly description":`按图形块创建规则`,"Body:":`身体:`,Cancel:`取消`,"Cannot delete non empty item!":`无法删除非空项目!`,"Change layout":`变更版面`,'Change theme (actual "%s")':`更改主题(现在为“%s”)`,"Check blocks":`检查块`,"Check is not active, because javascript adapter is disabled":`检查未激活,因为禁用了Javascript适配器`,"Clear search input":`清除搜索输入`,"Click on this icon":`单击此图标`,Close:`关闭`,"Close all but current":`关闭所有(当前除外)`,"Collapse all":`全部收缩`,"Compares current time with astronomical event":`将当前时间与天文事件进行比较`,"Compares current time with the user specific time":`将当前时间与用户特定时间进行比较`,"Compares the state value with user defined value":`比较状态值和用户定义的值`,Condition:`健康)状况`,Conditions:`情况`,"Configuration not saved.":`配置未保存。`,Console:`安慰`,"Control or update some state":`控制或更新某些状态`,"Control or update some state with delay":`延迟控制或更新某些状态`,"Convert blockly to javascript for ever.":`立即将blockly转换为Javascript。`,Copied:`复制的`,"Copy script":`复制脚本`,"Copy to clipboard":`复制到剪贴板`,"Create new":`创建新的`,"Create new folder":`创建新文件夹`,"Create new script":`创建新脚本`,"Create or edit CRON or time wizard":`创建或编辑周期任务或时间向导`,"Dark Theme":`深色调主题`,"Dark style":`深色调风格`,Date:`日期`,"Debug instance":`调试实例`,"Debug options":`调试选项`,December:`十二月`,Default:`默认`,"Define cron...":`定义周期任务...`,"Define schedule...":`定义调度器......`,Delay:`延迟`,Delete:`删除`,"Delete %s":`删除%s...`,"Delete folder":`删除文件夹`,"Delete script":`删除脚本`,Description:`描述`,"Deselect all":`取消全选`,"Discard changes for %s":`放弃%s的更改`,Done:`完成`,"Double click to write value":`Double click to write value`,"Download as file":`档案`,"Drop some files here or click...":`将文件拖拽到这里或单击......`,"Duplicate name":`重名`,"Edit script or just double click":`双击编辑脚本`,"Empty name is not allowed":`不允许使用空名称`,"End search mode":`结束搜索模式`,Error:`错误`,"Error formatting code":`代码格式错误`,"Error was found":`发现错误`,"Every day":`每天`,Exec:`执行力`,"Executes some shell command":`执行一些shell命令`,"Existing scripts will be overwritten.":`现有脚本将被覆盖。`,"Expand all":`展开全部`,"Expert mode":`专家模式`,Explanation:`解释`,Export:`导出`,"Export all scripts":`导出所有脚本`,"Export blocks":`导出块`,"Export selected blocks":`导出选定的块`,Februar:`二月`,February:`二月`,Filter:`筛选`,Folder:`文件夹`,Fr:`r`,Friday:`星期五`,Function:`功能`,"Function editor":`功能编辑器`,"Function: executed":`功能:执行`,"Go to next line":`转到下一行`,"HTTP Call":`HTTP呼叫`,"Hide logs":`隐藏日志`,ID:`ID`,ID1:`ID1`,ID2:`ID2`,Import:`导入`,"Import blocks":`导入块`,"Import error":`导入错误`,"Import scripts":`导入脚本`,"Insert object ID":`插入对象ID`,Instance:`实例`,"Instance is disabled":`实例已禁用`,"Instance:":`实例:`,Instances:`实例`,Instructions:`指示`,"Invalid CRON":`无效的周期任务`,"It will not be possible to revert this operation.":`无法恢复此操作。`,"JS description":`通过编写Javascript来创建规则`,Januar:`亚努尔`,January:`一月`,July:`七月`,June:`六月`,"Just check":`只是检查`,"Keep my changes":`保留我的更改`,"Language:":`语言:`,"Learn More":`了解更多`,"Light style":`浅色调风格`,Limit:`限制`,"Local time":`当地时间`,"Locate file":`定位文件`,"Log outputs":`记录输出`,"Log text":`记录文字`,"Log: %s":`日志:%s`,"Make a HTTP get request":`发出HTTP获取请求`,"Make a pause between actions":`在动作之间暂停`,March:`三月`,"March ":`行进`,May:`五月`,Menu:`菜单`,Message:`信息`,Mo:`莫`,Model:`模型`,Monday:`星期一`,Month:`月`,More:`更多的`,Name:`名称`,"No active host found":`找不到活动主机`,"Nothing found":`没有发现`,November:`十一月`,OK:`好的`,October:`十月`,Ok:`确定`,"On condition change":`条件变化时`,"On script save or adapter start":`在脚本保存或适配器启动时`,"On weekdays":`在工作日`,"Operate two states":`操作两种状态`,"Operations with two states":`具有两种状态的操作`,"Paste your blocks here":`在此处粘贴您的区块`,Pause:`暂停`,"Pause execution":`暂停执行`,"Pause script":`暂停脚本`,"Phone:":`电话:`,"Please select object ID...":`请选择对象ID...`,"Prettify the script":`美化脚本`,"Print some text in log":`在日志中打印一些文本`,"Priority:":`优先:`,Pushover:`俯卧撑`,Pushsafer:`推安全`,"Read only ID selected: %s":`选择的只读ID:%s`,Reload:`重新加载`,Rename:`重命名`,"Reorder scripts in folders":`重新排序文件夹中的脚本`,Repeat:`重复`,Restart:`重启`,Result:`结果`,"Resume execution":`恢复执行`,"Root folder":`根文件夹`,"Rules description":`使用IF,THEN,ELSE块创建规则`,"Run script":`运行脚本`,Sa:`萨`,Saturday:`星期六`,Save:`保存`,"Save all":`保存全部`,"Say It":`Say It`,"Say some text via sayit adapter":`通过sayit适配器说一些文字`,Schedule:`日程`,Script:`脚本`,"Script %s was modified on disk":`脚本%s已在磁盘上修改`,"Script was modified externally":`脚本已被外部修改`,"Script is not running":`脚本没有运行`,"Search in scripts":`在脚本中搜索`,"Search...":`搜索...`,"Select all":`全选`,"Send email":`发送电子邮件`,"Sends an email":`发送邮件`,"Sends message via Pushsafer":`通过Pushsafer发送消息`,"Sends message via pushover":`通过推播发送消息`,"Sends message via telegram":`通过电报发送消息`,"Sends message via whatsapp-cmb":`通过whatsapp-cmb发送消息`,September:`九月`,"Server time":`服务器时间`,"Set state action":`设定状态动作`,"Set with delay":`延迟设置`,"Shell command":`Shell命令`,"Show astronomical events":`显示天文事件`,"Show javascript code":`显示Javascript代码`,"Show logs":`显示记录`,"Show only paused scripts":`仅显示暂停的脚本`,"Show only running scripts":`仅显示正在运行的脚本`,"Show only scripts with problems":`仅显示有问题的脚本`,Simulate:`模拟`,"Some files will be rejected":`有些文件将被拒绝`,"Sound:":`声音:`,Stack:`堆`,Start:`开始`,"Start script":`启动脚本`,State:`状态`,"State condition":`状态条件`,"Step into function":`进入功能`,"Step out from function":`退出函数`,"Stop on exception":`异常停止`,Su:`苏`,"Subject:":`学科:`,Sunday:`星期日`,"TS description":`通过编写Typescript来创建规则`,Telegram:`电报`,"Text:":`文本:`,Th:`4`,'The script "%s" has been modified by another user or in another window. Do you want to reload the script or keep your local changes?':`脚本 "%s" 已被其他用户或在其他窗口中修改。您想重新加载脚本还是保留您的本地更改?`,"The script will be stopped and must be activated manually after debugging. Continue?":`该脚本将停止,并且必须在调试后手动激活。继续?`,"This is advances option. You can write your own code here and it will be executed on trigger":`这是高级选项。您可以在此处编写自己的代码,它将在触发器上执行`,Thursday:`星期四`,Time:`时间`,"Time condition":`时间条件`,"Title:":`标题:`,"To:":`到:`,"Trigger with value":`用值触发`,Triggered:`触发`,Triggers:`扳机`,"Triggers the on script saving or the javascript instance restart":`触发脚本保存或javascript实例重启`,"Triggers the rule on update or change of some state":`在某些状态的更新或更改时触发规则`,"Triggers the rule periodically or on some specific time":`定期或在特定时间触发规则`,Tu:`涂`,Tuesday:`星期二`,URL:`网址`,"Unknown error":`未知错误`,"Unknown error!":`未知错误!`,"User function":`用户功能`,"User:":`用户:`,Value:`价值`,"Vibration:":`振动:`,Volume:`体积`,We:`3`,Wednesday:`星期三`,"Whatsapp-cmb":`Whatsapp的cmb`,Write:`写`,"Write your own code":`编写自己的代码`,Yes:`是的`,"Yet exists!":`不存在!`,"You can use %s in the URL to use current trigger value or %id to use the triggered object ID":`您可以在 URL 中使用 %s 以使用当前触发值,%id 以使用触发对象 ID,%name 以显示触发对象 ID 名称或 %old 以使用旧触发值`,"You can use %s in the command to use current trigger value or %id to use the triggered object ID":`您可以在命令中使用 %s 以使用当前触发值,%id 使用触发对象 ID,%name 显示触发对象 ID 名称或 %old 使用旧触发值`,"You can use %s in the text to display current trigger value or %id to display the triggered object ID":`您可以在文本中使用 %s 显示当前触发值,%id 使用触发对象 ID,%name 显示触发对象 ID 名称或 %old 使用旧触发值`,"You can use %s in the value to use the current trigger value or %id to display the triggered object ID":`您可以在值中使用 %s 以使用当前触发器值,%id 使用触发对象 ID,%name 显示触发对象 ID 名称或 %old 使用旧触发器值`,"Please select a valid model":`请选择有效的模型`,"[equal]":`[平等的]`,"[greater or equal]":`[大于等于]`,"[greater]":`[更大]`,"[hysteresis]":`[磁滞]`,"[includes]":`[包括]`,"[less or equal]":`[小于或等于]`,"[less]":`[较少的]`,"[not equal]":`[不相等]`,acknowledgment:`致谢`,all:`全部`,and:`和`,"as JSON":`为 JSON`,"as plain text":`为纯文本`,astro:`天文`,at:`在`,"clear running":`畅通无阻`,control:`控制`,copy:`复制`,cron:`克朗`,dawn:`黎明`,debug_help:`这是一种特殊模式,其中状态和对象不会改变。但只有有关每个计划更改的信息才会显示在协议中。`,debug_label:`调试`,default:`默认`,dusk:`黄昏`,easy:`简单的`,else:`别的`,"equal to":`等于`,every:`每一个`,"every hour at 0 minutes":`每小时0分钟`,false:`错误的`,"file reading has failed: %s":`文件读取失败:%s`,"file reading was aborted":`文件读取中止`,filter_func:`功能`,filter_id:`ID`,filter_name:`名字`,filter_role:`角色`,filter_room:`房间`,"for edit or create script":`用于编辑或创建脚本`,"for professionals":`对于专业人士`,"for programmers":`对于程序员`,goldenHour:`黄金时段`,goldenHourEnd:`黄金时段结束`,"greater or equal":`大于或等于`,"greater or equal to":`大于或等于`,"greater than":`比...更棒`,help_just_check:`仅在条件为真时才执行代码。例如。如果触发温度传感器值并且条件为“如果温度大于20°C”,则每次传感器发送温度且温度超过20°C时,将执行“然后”动作。 21°C,22°C等。`,help_on_change:`仅当条件结果更改时,代码才会执行。例如。如果触发温度传感器值且条件为“如果温度大于20°C”,则温度超过20时将执行一次“则”动作,下一次,当温度超过20时将执行“则”动作低于20失败,然后再次超过20。`,"high priority":`高优先级`,"high-priority":`高优先级`,"highest priority":`最高优先级`,hours:`小时`,includes:`包括`,interval:`间隔`,"just check":`只是检查`,"less or equal":`小于或等于`,"less or equal to":`小于或等于`,"less than":`少于`,"lower priority":`低优先级`,"lowest priority":`最低优先级`,magic:`魔法`,milliseconds:`毫秒`,minutes:`分钟`,ms:`毫秒`,nadir:`最低点`,nauticalDawn:`航海黎明`,nauticalDusk:`航海黄昏`,nextSunrise:`下一个日出`,nextSunset:`下一个日落`,night:`夜晚`,nightEnd:`夜晚结束`,"no blocks found":`找不到块`,"no group":`没有组`,normal:`普通的`,"normal priority":`正常优先`,"not running":`未运行`,"not equal to":`不等于`,"not properly connected":`此块未正确连接到其他块。`,offset:`抵消`,"on change":`在变化`,"on condition change":`在条件变化时`,"on update":`更新时`,one:`一`,or:`或`,quiet:`安静的`,"reset search":`重置搜索`,search:`搜索`,seconds:`秒`,solarNoon:`星期日正午`,"store in":`存放在`,sunrise:`日出`,sunriseEnd:`日出结束`,sunset:`日落`,sunsetStart:`日落开始`,then:`然后`,"toggle value":`切换值`,tooltip_ack:`确认`,tooltip_from:`从`,tooltip_lc:`上一次改变`,tooltip_quality:`质量`,tooltip_ts:`时间戳`,tooltip_user:`用户`,tooltip_value:`值`,true:`真的`,two:`二`,undefined:`不明确的`,update:`更新`,"use seconds":`精确到秒`,"use trigger value":`使用触发值`,verbose_help:`将调试输出添加到许多系统命令的日志中`,verbose_label:`详细日志输出`,when:`什么时候`,with:`和`,"with date":`有日期`,"with offset":`带偏移`,wizard:`巫师`,"Loading models...":`加载模型...`,"Could not connect to API at %s":`无法连接到 %s 的 API`,"Invalid API key":`无效的 API 密钥`,"Access denied by API":`API 拒绝访问`,"API error: %s":`API 错误:%s`,'Model "%s" not found':`未找到模型 "%s"`,"Request failed: %s":`请求失败:%s`,Retry:`重试`,"No running javascript instance found":`未找到正在运行的 JavaScript 实例`,"OID display mode":`OID显示模式`,"Ask questions about your script, request changes, or generate new code.":`询问有关脚本的问题、请求更改或生成新代码。`,"to send":`发送`,"Thinking...":`思考中...`,"AI suggested changes":`AI 建议的更改`,Accept:`接受`,Reject:`拒绝`,"No API keys configured":`未配置 API 密钥`,"for new line":`换行`,"AI chat mode":`AI 聊天模式`,"Plain conversation. Use for questions, explanations, syntax help. Does not read or modify your scripts.":`纯对话。用于提问、解释和语法帮助。不会读取或修改你的脚本。`,'For larger models with tool support. The AI can read, create, and edit scripts, look up datapoints, and browse the object tree — useful for "create a script that...", "which scripts use this state?" or "analyze my light script".':`适用于支持工具调用的较大模型。AI 可以读取、创建和编辑脚本,查询数据点并浏览对象树——适用于"创建一个脚本,执行..."、"哪些脚本使用了此状态?"或"分析我的灯光脚本"等场景。`,'For smaller models without tool support. Two-step script generator (plan then code) — useful for "create a script that..." or "write a Blockly rule for...". Output goes into the editor for smart-apply.':`适用于不支持工具调用的较小模型。两步脚本生成器(先计划再生成代码)——适用于"创建一个脚本,执行..."或"为...编写 Blockly 规则"。输出进入编辑器以供 smart-apply 使用。`,"Plain conversation. Best for: general questions, syntax help, concept explanations.":`纯对话。最适合:一般问题、语法帮助、概念解释。`,"For larger models with tool support. Best for: creating, editing, or analyzing scripts; finding datapoint usages; inspecting the object tree.":`适用于支持工具调用的较大模型。最适合:创建、编辑或分析脚本;查找数据点用法;检查对象树。`,"For smaller models without tool support. Best for: creating new JavaScript/TypeScript or Blockly scripts from a description.":`适用于不支持工具调用的较小模型。最适合:根据描述创建新的 JavaScript/TypeScript 或 Blockly 脚本。`,"Mention scripts as context for the AI. Use @all for all scripts or @scriptName for a specific one.":`将脚本作为AI的上下文。使用 @全部 引用所有脚本,或 @脚本名称 引用特定脚本。`,Context:`上下文`,"current script":`当前脚本`,"all scripts":`所有脚本`,devices:`设备`,"Searching datapoints":`搜索数据点`,"Reading value":`读取值`,"Loading object info":`加载对象信息`,"Searching scripts":`搜索脚本`,"Reading script":`读取脚本`,"Loading script list":`加载脚本列表`,"All scripts":`所有脚本`,"Smart home devices":`智能家居设备`,"AI Chat":`AI 聊天`,"AI inline completions":`AI 内联补全`,"New chat":`新聊天`,"Ask about your script...":`询问有关脚本的问题...`,"Insert blocks":`插入积木块`,"Apply blocks":`应用模块`,Undo:`撤销`,Redo:`重做`,"Insert into editor":`插入编辑器`,"Show as diff":`显示差异`,"Selected code as context":`选中的代码作为上下文`,"Generating plan...":`生成计划...`,"Generating code...":`生成代码...`,Plan:`计划`,"mention @all":`@全部`,"mention @devices":`@设备`,Send:`发送`,Copy:`复制`,"AI inline chat":`AI 内联聊天`,'e.g. "Refactor this to use async/await"':`例如 "Refactor this to use async/await"`,"Open in chat":`在聊天中打开`,"Selection: %s line(s)":`选中:%s 行`,"No selection — the question will use context from the whole script.":`未选择 — 问题将使用整个脚本的上下文。`,"Please enter a question.":`请输入问题。`,"Thinking…":`思考中…`,"Code proposal — press Apply to replace your selection.":`代码建议 — 按应用替换所选内容。`,"Plain text answer.":`纯文本答案。`,"Show more details":`显示更多详情`,"AI: Inline chat…":`AI:内联聊天…`,"AI: Explain":`AI:解释`,"AI: Refactor":`AI:重构`,"AI: Add comments":`AI:添加注释`,"AI: Fix problem":`AI:修复问题`,"AI: Suggest tests":`AI:建议测试`,"Ask the AI about the selected code:":`向 AI 询问所选代码:`,Explain:`解释`,Refactor:`重构`,Tests:`测试`,"Explain %s %s":`解释 %s %s`,"Refactor %s %s":`重构 %s %s`,"Suggest tests for %s %s":`为 %s %s 建议测试`,"Apply changes":`应用更改`,"Discard changes":`放弃更改`,'Ask anything, or request a change (e.g. "what does this do?")':`提问或请求修改(例如"这段代码做什么?")`},Ep=t(r(((t,n)=>{(function(e){typeof t==`object`&&n!==void 0?n.exports=e():typeof define==`function`&&define.amd?define([],e):(typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this).JSZip=e()})(function(){return function t(n,r,i){function a(s,c){if(!r[s]){if(!n[s]){var l=typeof e==`function`&&e;if(!c&&l)return l(s,!0);if(o)return o(s,!0);var u=Error(`Cannot find module '`+s+`'`);throw u.code=`MODULE_NOT_FOUND`,u}var d=r[s]={exports:{}};n[s][0].call(d.exports,function(e){var t=n[s][1][e];return a(t||e)},d,d.exports,t,n,r,i)}return r[s].exports}for(var o=typeof e==`function`&&e,s=0;s<i.length;s++)a(i[s]);return a}({1:[function(e,t,n){var r=e(`./utils`),i=e(`./support`),a=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`;n.encode=function(e){for(var t,n,i,o,s,c,l,u=[],d=0,f=e.length,p=f,m=r.getTypeOf(e)!==`string`;d<e.length;)p=f-d,i=m?(t=e[d++],n=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),n=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),o=t>>2,s=(3&t)<<4|n>>4,c=1<p?(15&n)<<2|i>>6:64,l=2<p?63&i:64,u.push(a.charAt(o)+a.charAt(s)+a.charAt(c)+a.charAt(l));return u.join(``)},n.decode=function(e){var t,n,r,o,s,c,l=0,u=0,d=`data:`;if(e.substr(0,d.length)===d)throw Error(`Invalid base64 input, it looks like a data url.`);var f,p=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,``)).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&p--,e.charAt(e.length-2)===a.charAt(64)&&p--,p%1!=0)throw Error(`Invalid base64 input, bad content length.`);for(f=i.uint8array?new Uint8Array(0|p):Array(0|p);l<e.length;)t=a.indexOf(e.charAt(l++))<<2|(o=a.indexOf(e.charAt(l++)))>>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(l++)))>>2,r=(3&s)<<6|(c=a.indexOf(e.charAt(l++))),f[u++]=t,s!==64&&(f[u++]=n),c!==64&&(f[u++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){var r=e(`./external`),i=e(`./stream/DataWorker`),a=e(`./stream/Crc32Probe`),o=e(`./stream/DataLengthProbe`);function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o(`data_length`)),t=this;return e.on(`end`,function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw Error(`Bug : uncompressed data size mismatch`)}),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo(`compressedSize`,this.compressedSize).withStreamInfo(`uncompressedSize`,this.uncompressedSize).withStreamInfo(`crc32`,this.crc32).withStreamInfo(`compression`,this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o(`uncompressedSize`)).pipe(t.compressWorker(n)).pipe(new o(`compressedSize`)).withStreamInfo(`compression`,t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){var r=e(`./stream/GenericWorker`);n.STORE={magic:`\0\0`,compressWorker:function(){return new r(`STORE compression`)},uncompressWorker:function(){return new r(`STORE decompression`)}},n.DEFLATE=e(`./flate`)},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var r=e(`./utils`),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return e!==void 0&&e.length?r.getTypeOf(e)===`string`?function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){var r=null;r=typeof Promise<`u`?Promise:e(`lie`),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){var r=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Uint32Array<`u`,i=e(`pako`),a=e(`./utils`),o=e(`./stream/GenericWorker`),s=r?`uint8array`:`array`;function c(e,t){o.call(this,`FlateWorker/`+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic=`\b\0`,a.inherits(c,o),c.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},c.prototype.flush=function(){o.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c(`Deflate`,e)},n.uncompressWorker=function(){return new c(`Inflate`,{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function r(e,t){var n,r=``;for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,o,u){var d,f,p=e.file,m=e.compression,h=u!==s.utf8encode,g=a.transformTo(`string`,u(p.name)),_=a.transformTo(`string`,s.utf8encode(p.name)),v=p.comment,y=a.transformTo(`string`,u(v)),b=a.transformTo(`string`,s.utf8encode(v)),x=_.length!==p.name.length,S=b.length!==v.length,C=``,w=``,T=``,E=p.dir,D=p.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(O.crc32=e.crc32,O.compressedSize=e.compressedSize,O.uncompressedSize=e.uncompressedSize);var k=0;t&&(k|=8),h||!x&&!S||(k|=2048);var A=0,j=0;E&&(A|=16),o===`UNIX`?(j=798,A|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(p.unixPermissions,E)):(j=20,A|=function(e){return 63&(e||0)}(p.dosPermissions)),d=D.getUTCHours(),d<<=6,d|=D.getUTCMinutes(),d<<=5,d|=D.getUTCSeconds()/2,f=D.getUTCFullYear()-1980,f<<=4,f|=D.getUTCMonth()+1,f<<=5,f|=D.getUTCDate(),x&&(w=r(1,1)+r(c(g),4)+_,C+=`up`+r(w.length,2)+w),S&&(T=r(1,1)+r(c(y),4)+b,C+=`uc`+r(T.length,2)+T);var M=``;return M+=`
|
|
190
|
+
\0`,M+=r(k,2),M+=m.magic,M+=r(d,2),M+=r(f,2),M+=r(O.crc32,4),M+=r(O.compressedSize,4),M+=r(O.uncompressedSize,4),M+=r(g.length,2),M+=r(C.length,2),{fileRecord:l.LOCAL_FILE_HEADER+M+g+C,dirRecord:l.CENTRAL_FILE_HEADER+r(j,2)+M+r(y.length,2)+`\0\0\0\0`+r(A,4)+r(i,4)+g+C+y}}var a=e(`../utils`),o=e(`../stream/GenericWorker`),s=e(`../utf8`),c=e(`../crc32`),l=e(`../signature`);function u(e,t,n,r){o.call(this,`ZipFileWorker`),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return l.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,i=function(e,t,n,i,o){var s=a.transformTo(`string`,o(i));return l.CENTRAL_DIRECTORY_END+`\0\0\0\0`+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on(`data`,function(e){t.processChunk(e)}),e.on(`end`,function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on(`error`,function(e){t.error(e)}),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch{}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){var r=e(`../compressions`),i=e(`./ZipFileWorker`);n.generateWorker=function(e,t,n){var a=new i(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach(function(e,n){o++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw Error(n+` is not a valid compression method !`);return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,l=n.date;n._compressWorker(i,s).withStreamInfo(`file`,{name:e,dir:c,date:l,comment:n.comment||``,unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)}),a.entriesCount=o}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw Error(`The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.`);this.files=Object.create(null),this.comment=null,this.root=``,this.clone=function(){var e=new r;for(var t in this)typeof this[t]!=`function`&&(e[t]=this[t]);return e}}(r.prototype=e(`./object`)).loadAsync=e(`./load`),r.support=e(`./support`),r.defaults=e(`./defaults`),r.version=`3.10.1`,r.loadAsync=function(e,t){return new r().loadAsync(e,t)},r.external=e(`./external`),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){var r=e(`./utils`),i=e(`./external`),a=e(`./utf8`),o=e(`./zipEntries`),s=e(`./stream/Crc32Probe`),c=e(`./nodejsUtils`);function l(e){return new i.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on(`error`,function(e){n(e)}).on(`end`,function(){r.streamInfo.crc32===e.decompressed.crc32?t():n(Error(`Corrupted zip : CRC32 mismatch`))}).resume()})}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(Error(`JSZip can't accept a stream when loading a zip file.`)):r.prepareContent(`the loaded zip file`,e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new o(t);return n.load(e),n}).then(function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var a=0;a<r.length;a++)n.push(l(r[a]));return i.Promise.all(n)}).then(function(e){for(var i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],c=s.fileNameStr,l=r.resolve(s.fileNameStr);n.file(l,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(l).unsafeOriginalName=c)}return i.zipComment.length&&(n.comment=i.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){var r=e(`../utils`),i=e(`../stream/GenericWorker`);function a(e,t){i.call(this,`Nodejs stream input adapter for `+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on(`data`,function(e){t.push({data:e,meta:{percent:0}})}).on(`error`,function(e){t.isPaused?this.generatedError=e:t.error(e)}).on(`end`,function(){t.isPaused?t._upstreamEnded=!0:t.end()})},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){var r=e(`readable-stream`).Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on(`data`,function(e,t){i.push(e)||i._helper.pause(),n&&n(t)}).on(`error`,function(e){i.emit(`error`,e)}).on(`end`,function(){i.push(null)})}e(`../utils`).inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){t.exports={isNode:typeof Buffer<`u`,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e==`number`)throw Error(`The "data" argument must not be a number`);return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on==`function`&&typeof e.pause==`function`&&typeof e.resume==`function`}}},{}],15:[function(e,t,n){function r(e,t,n){var r,i=a.getTypeOf(t),s=a.extend(n||{},c);s.date=s.date||new Date,s.compression!==null&&(s.compression=s.compression.toUpperCase()),typeof s.unixPermissions==`string`&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=h(e)),s.createFolders&&(r=m(e))&&g.call(this,r,!0);var d=i===`string`&&!1===s.binary&&!1===s.base64;n&&n.binary!==void 0||(s.binary=!d),(t instanceof l&&t.uncompressedSize===0||s.dir||!t||t.length===0)&&(s.base64=!1,s.binary=!0,t=``,s.compression=`STORE`,i=`string`);var _=null;_=t instanceof l||t instanceof o?t:f.isNode&&f.isStream(t)?new p(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var v=new u(e,_,s);this.files[e]=v}var i=e(`./utf8`),a=e(`./utils`),o=e(`./stream/GenericWorker`),s=e(`./stream/StreamHelper`),c=e(`./defaults`),l=e(`./compressedObject`),u=e(`./zipObject`),d=e(`./generate`),f=e(`./nodejsUtils`),p=e(`./nodejs/NodejsStreamInputAdapter`),m=function(e){e.slice(-1)===`/`&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf(`/`);return 0<t?e.substring(0,t):``},h=function(e){return e.slice(-1)!==`/`&&(e+=`/`),e},g=function(e,t){return t=t===void 0?c.createFolders:t,e=h(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function _(e){return Object.prototype.toString.call(e)===`[object RegExp]`}t.exports={load:function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(r)}),t},file:function(e,t,n){if(arguments.length!==1)return e=this.root+e,r.call(this,e,t,n),this;if(_(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(_(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=g.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||=(e.slice(-1)!==`/`&&(e+=`/`),this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:`STORE`,compressionOptions:null,type:``,platform:`DOS`,comment:null,mimeType:`application/zip`,encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),n.type===`binarystring`&&(n.type=`string`),!n.type)throw Error(`No output type specified.`);a.checkSupport(n.type),n.platform!==`darwin`&&n.platform!==`freebsd`&&n.platform!==`linux`&&n.platform!==`sunos`||(n.platform=`UNIX`),n.platform===`win32`&&(n.platform=`DOS`);var r=n.comment||this.comment||``;t=d.generateWorker(this,n,r)}catch(e){(t=new o(`error`)).error(e)}return new s(t,n.type||`string`,n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e||={}).type||(e.type=`nodebuffer`),this.generateInternalStream(e).toNodejsStream(t)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e(`stream`)},{stream:void 0}],17:[function(e,t,n){var r=e(`./DataReader`);function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e(`../utils`).inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&r===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){var r=e(`../utils`);function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw Error(`End of data reached (data length = `+this.length+`, asked index = `+e+`). Corrupted zip ?`)},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo(`string`,this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){var r=e(`./Uint8ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var r=e(`./DataReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var r=e(`./ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array;var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var r=e(`../utils`),i=e(`../support`),a=e(`./ArrayReader`),o=e(`./StringReader`),s=e(`./NodeBufferReader`),c=e(`./Uint8ArrayReader`);t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),t!==`string`||i.uint8array?t===`nodebuffer`?new s(e):i.uint8array?new c(r.transformTo(`uint8array`,e)):new a(r.transformTo(`array`,e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER=`PK`,n.CENTRAL_FILE_HEADER=`PK`,n.CENTRAL_DIRECTORY_END=`PK`,n.ZIP64_CENTRAL_DIRECTORY_LOCATOR=`PK\x07`,n.ZIP64_CENTRAL_DIRECTORY_END=`PK`,n.DATA_DESCRIPTOR=`PK\x07\b`},{}],24:[function(e,t,n){var r=e(`./GenericWorker`),i=e(`../utils`);function a(e){r.call(this,`ConvertWorker to `+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var r=e(`./GenericWorker`),i=e(`../crc32`);function a(){r.call(this,`Crc32Probe`),this.withStreamInfo(`crc32`,0)}e(`../utils`).inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataLengthProbe for `+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataWorker`);var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=``,this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case`string`:e=this.data.substring(this.index,t);break;case`uint8array`:e=this.data.subarray(this.index,t);break;case`array`:case`nodebuffer`:e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function r(e){this.name=e||`default`,this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit(`data`,e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(`end`),this.cleanUp(),this.isFinished=!0}catch(e){this.emit(`error`,e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit(`error`,e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw Error(`The stream '`+this+`' has already been used.`);this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on(`data`,function(e){t.processChunk(e)}),e.on(`end`,function(){t.end()}),e.on(`error`,function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw Error(`The stream '`+this+`' has already been used.`);this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e=`Worker `+this.name;return this.previous?this.previous+` -> `+e:e}},t.exports=r},{}],29:[function(e,t,n){var r=e(`../utils`),i=e(`./ConvertWorker`),a=e(`./GenericWorker`),o=e(`../base64`),s=e(`../support`),c=e(`../external`),l=null;if(s.nodestream)try{l=e(`../nodejs/NodejsStreamOutputAdapter`)}catch{}function u(e,t){return new c.Promise(function(n,i){var a=[],s=e._internalType,c=e._outputType,l=e._mimeType;e.on(`data`,function(e,n){a.push(e),t&&t(n)}).on(`error`,function(e){a=[],i(e)}).on(`end`,function(){try{n(function(e,t,n){switch(e){case`blob`:return r.newBlob(r.transformTo(`arraybuffer`,t),n);case`base64`:return o.encode(t);default:return r.transformTo(e,t)}}(c,function(e,t){var n,r=0,i=null,a=0;for(n=0;n<t.length;n++)a+=t[n].length;switch(e){case`string`:return t.join(``);case`array`:return Array.prototype.concat.apply([],t);case`uint8array`:for(i=new Uint8Array(a),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case`nodebuffer`:return Buffer.concat(t);default:throw Error(`concat : unsupported type '`+e+`'`)}}(s,a),l))}catch(e){i(e)}a=[]}).resume()})}function d(e,t,n){var o=t;switch(t){case`blob`:case`arraybuffer`:o=`uint8array`;break;case`base64`:o=`string`}try{this._internalType=o,this._outputType=t,this._mimeType=n,r.checkSupport(o),this._worker=e.pipe(new i(o)),e.lock()}catch(e){this._worker=new a(`error`),this._worker.error(e)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var n=this;return e===`data`?this._worker.on(e,function(e){t.call(n,e.data,e.meta)}):this._worker.on(e,function(){r.delay(t,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport(`nodestream`),this._outputType!==`nodebuffer`)throw Error(this._outputType+` is not supported by this method`);return new l(this,{objectMode:this._outputType!==`nodebuffer`},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`,n.nodebuffer=typeof Buffer<`u`,n.uint8array=typeof Uint8Array<`u`,typeof ArrayBuffer>`u`)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=new Blob([r],{type:`application/zip`}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=i.getBlob(`application/zip`).size===0}catch{n.blob=!1}}}try{n.nodestream=!!e(`readable-stream`).Readable}catch{n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var r=e(`./utils`),i=e(`./support`),a=e(`./nodejsUtils`),o=e(`./stream/GenericWorker`),s=Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;s[254]=s[254]=1;function l(){o.call(this,`utf-8 decode`),this.leftOver=null}function u(){o.call(this,`utf-8 encode`)}n.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,`utf-8`):function(e){var t,n,r,a,o,s=e.length,c=0;for(a=0;a<s;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(r=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(c):Array(c),a=o=0;o<c;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(r=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo(`nodebuffer`,e).toString(`utf-8`):function(e){var t,n,i,a,o=e.length,c=Array(2*o);for(t=n=0;t<o;)if((i=e[t++])<128)c[n++]=i;else if(4<(a=s[i]))c[n++]=65533,t+=a-1;else{for(i&=a===2?31:a===3?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?`uint8array`:`array`,e))},r.inherits(l,o),l.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?`uint8array`:`array`,e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+s[e[n]]>t?n:t}(t),c=t;o!==t.length&&(i.uint8array?(c=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(c=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=l,r.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var r=e(`./support`),i=e(`./base64`),a=e(`./nodejsUtils`),o=e(`./external`);function s(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e(`setimmediate`),n.newBlob=function(e,t){n.checkSupport(`blob`);try{return new Blob([e],{type:t})}catch{try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch{throw Error(`Bug : can't construct the Blob.`)}}};var l={stringifyByChunk:function(e,t,n){var r=[],i=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;i<a;)t===`array`||t===`nodebuffer`?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,a)))),i+=n;return r.join(``)},stringifyByChar:function(e){for(var t=``,n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}}()}};function u(e){var t=65536,r=n.getTypeOf(e),i=!0;if(r===`uint8array`?i=l.applyCanBeUsed.uint8array:r===`nodebuffer`&&(i=l.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return l.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return l.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=u;var f={};f.string={string:s,array:function(e){return c(e,Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,a.allocBuffer(e.length))}},f.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},f.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:u,array:function(e){return d(e,Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},f.nodebuffer={string:u,array:function(e){return d(e,Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){return t||=``,e?(n.checkSupport(e),f[n.getTypeOf(t)][e](t)):t},n.resolve=function(e){for(var t=e.split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];i===`.`||i===``&&r!==0&&r!==t.length-1||(i===`..`?n.pop():n.push(i))}return n.join(`/`)},n.getTypeOf=function(e){return typeof e==`string`?`string`:Object.prototype.toString.call(e)===`[object Array]`?`array`:r.nodebuffer&&a.isBuffer(e)?`nodebuffer`:r.uint8array&&e instanceof Uint8Array?`uint8array`:r.arraybuffer&&e instanceof ArrayBuffer?`arraybuffer`:void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw Error(e+` is not supported by this platform`)},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r=``;for(n=0;n<(e||``).length;n++)r+=`\\x`+((t=e.charCodeAt(n))<16?`0`:``)+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&n[t]===void 0&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,a,s,l){return o.Promise.resolve(t).then(function(e){return r.blob&&(e instanceof Blob||[`[object File]`,`[object Blob]`].indexOf(Object.prototype.toString.call(e))!==-1)&&typeof FileReader<`u`?new o.Promise(function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)}):e}).then(function(t){var u=n.getTypeOf(t);return u?(u===`arraybuffer`?t=n.transformTo(`uint8array`,t):u===`string`&&(l?t=i.decode(t):a&&!0!==s&&(t=function(e){return c(e,r.uint8array?new Uint8Array(e.length):Array(e.length))}(t))),t):o.Promise.reject(Error(`Can't read the data of '`+e+`'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?`))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){var r=e(`./reader/readerFor`),i=e(`./utils`),a=e(`./signature`),o=e(`./zipEntry`),s=e(`./support`);function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw Error(`Corrupted zip or bug: unexpected signature (`+i.pretty(t)+`, expected `+i.pretty(e)+`)`)}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?`uint8array`:`array`,n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error(`Multi-volumes zip are not supported`)},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw Error(`Corrupted zip or bug: expected `+this.centralDirRecords+` records in central dir, got `+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?Error(`Corrupted zip: can't find end of central directory`):Error(`Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html`);this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error(`Corrupted zip: can't find the ZIP64 end of central directory locator`);if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error(`Corrupted zip: can't find the ZIP64 end of central directory`);this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw Error(`Corrupted zip: missing `+Math.abs(r)+` bytes.`)},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){var r=e(`./reader/readerFor`),i=e(`./utils`),a=e(`./compressedObject`),o=e(`./crc32`),s=e(`./utf8`),c=e(`./compressions`),l=e(`./support`);function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),this.compressedSize===-1||this.uncompressedSize===-1)throw Error(`Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)`);if((t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod))===null)throw Error(`Corrupted zip : compression `+i.pretty(this.compressionMethod)+` unknown (inner file : `+i.transformTo(`string`,this.fileName)+`)`);this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw Error(`Encrypted zip are not supported`);e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),e==0&&(this.dosPermissions=63&this.externalFileAttributes),e==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!==`/`||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||={};e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=l.uint8array?`uint8array`:`array`;if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(r!==null)this.fileCommentStr=r;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return t.readInt(1)===1&&o(this.fileName)===t.readInt(4)?s.utf8decode(t.readData(e.length-5)):null}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return t.readInt(1)===1&&o(this.fileComment)===t.readInt(4)?s.utf8decode(t.readData(e.length-5)):null}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e(`./stream/StreamHelper`),a=e(`./stream/DataWorker`),o=e(`./utf8`),s=e(`./compressedObject`),c=e(`./stream/GenericWorker`);r.prototype={internalStream:function(e){var t=null,n=`string`;try{if(!e)throw Error(`No output type specified.`);var r=(n=e.toLowerCase())===`string`||n===`text`;n!==`binarystring`&&n!==`text`||(n=`string`),t=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&r&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new c(`error`)).error(e)}return new i(t,n,``)},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||`nodebuffer`).toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var l=[`asText`,`asBinary`,`asNodeBuffer`,`asUint8Array`,`asArrayBuffer`],u=function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},d=0;d<l.length;d++)r.prototype[l[d]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(u),s=e.document.createTextNode(``);o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(e.setImmediate||e.MessageChannel===void 0)n=`document`in e&&`onreadystatechange`in e.document.createElement(`script`)?function(){var t=e.document.createElement(`script`);t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}t.exports=function(e){l.push(e)!==1||r||n()}}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],37:[function(e,t,n){var r=e(`immediate`);function i(){}var a={},o=[`REJECTED`],s=[`FULFILLED`],c=[`PENDING`];function l(e){if(typeof e!=`function`)throw TypeError(`resolver must be a function`);this.state=c,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function u(e,t,n){this.promise=e,typeof t==`function`&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof n==`function`&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r(function(){var r;try{r=t(n)}catch(t){return a.reject(e,t)}r===e?a.reject(e,TypeError(`Cannot resolve promise with itself`)):a.resolve(e,r)})}function f(e){var t=e&&e.then;if(e&&(typeof e==`object`||typeof e==`function`)&&typeof t==`function`)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function i(t){n||(n=!0,a.resolve(e,t))}var o=m(function(){t(i,r)});o.status===`error`&&r(o.value)}function m(e,t){var n={};try{n.value=e(t),n.status=`success`}catch(e){n.status=`error`,n.value=e}return n}(t.exports=l).prototype.finally=function(e){if(typeof e!=`function`)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if(typeof e!=`function`&&this.state===s||typeof t!=`function`&&this.state===o)return this;var n=new this.constructor(i);return this.state===c?this.queue.push(new u(n,e,t)):d(n,this.state===s?e:t,this.outcome),n},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=m(f,t);if(n.status===`error`)return a.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return a.reject(t,e)},l.all=function(e){var t=this;if(Object.prototype.toString.call(e)!==`[object Array]`)return this.reject(TypeError(`must be an array`));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=Array(n),s=0,c=-1,l=new this(i);++c<n;)u(e[c],c);return l;function u(e,i){t.resolve(e).then(function(e){o[i]=e,++s!==n||r||(r=!0,a.resolve(l,o))},function(e){r||(r=!0,a.reject(l,e))})}},l.race=function(e){var t=this;if(Object.prototype.toString.call(e)!==`[object Array]`)return this.reject(TypeError(`must be an array`));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=-1,s=new this(i);++o<n;)c=e[o],t.resolve(c).then(function(e){r||(r=!0,a.resolve(s,e))},function(e){r||(r=!0,a.reject(s,e))});var c;return s}},{immediate:36}],38:[function(e,t,n){var r={};(0,e(`./lib/utils/common`).assign)(r,e(`./lib/deflate`),e(`./lib/inflate`),e(`./lib/zlib/constants`)),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){var r=e(`./zlib/deflate`),i=e(`./utils/common`),a=e(`./utils/strings`),o=e(`./zlib/messages`),s=e(`./zlib/zstream`),c=Object.prototype.toString,l=0,u=-1,d=0,f=8;function p(e){if(!(this instanceof p))return new p(e);this.options=i.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:``},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==l)throw Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var m;if(m=typeof t.dictionary==`string`?a.string2buf(t.dictionary):c.call(t.dictionary)===`[object ArrayBuffer]`?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,m))!==l)throw Error(o[n]);this._dict_set=!0}}function m(e,t){var n=new p(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}p.prototype.push=function(e,t){var n,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,s.input=typeof e==`string`?a.string2buf(e):c.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):e,s.next_in=0,s.avail_in=s.input.length;do{if(s.avail_out===0&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),(n=r.deflate(s,o))!==1&&n!==l)return this.onEnd(n),!(this.ended=!0);s.avail_out!==0&&(s.avail_in!==0||o!==4&&o!==2)||(this.options.to===`string`?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||s.avail_out===0)&&n!==1);return o===4?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l):o!==2||(this.onEnd(l),!(s.avail_out=0))},p.prototype.onData=function(e){this.chunks.push(e)},p.prototype.onEnd=function(e){e===l&&(this.result=this.options.to===`string`?this.chunks.join(``):i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=p,n.deflate=m,n.deflateRaw=function(e,t){return(t||={}).raw=!0,m(e,t)},n.gzip=function(e,t){return(t||={}).gzip=!0,m(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){var r=e(`./zlib/inflate`),i=e(`./utils/common`),a=e(`./utils/strings`),o=e(`./zlib/constants`),s=e(`./zlib/messages`),c=e(`./zlib/zstream`),l=e(`./zlib/gzheader`),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:``},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw Error(s[n]);this.header=new l,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,c,l,d,f,p=this.strm,m=this.options.chunkSize,h=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,p.input=typeof e==`string`?a.binstring2buf(e):u.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):e,p.next_in=0,p.avail_in=p.input.length;do{if(p.avail_out===0&&(p.output=new i.Buf8(m),p.next_out=0,p.avail_out=m),(n=r.inflate(p,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&h&&(f=typeof h==`string`?a.string2buf(h):u.call(h)===`[object ArrayBuffer]`?new Uint8Array(h):h,n=r.inflateSetDictionary(this.strm,f)),n===o.Z_BUF_ERROR&&!0===g&&(n=o.Z_OK,g=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(p.avail_out!==0&&n!==o.Z_STREAM_END&&(p.avail_in!==0||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||(this.options.to===`string`?(c=a.utf8border(p.output,p.next_out),l=p.next_out-c,d=a.buf2string(p.output,c),p.next_out=l,p.avail_out=m-l,l&&i.arraySet(p.output,p.output,c,l,0),this.onData(d)):this.onData(i.shrinkBuf(p.output,p.next_out)))),p.avail_in===0&&p.avail_out===0&&(g=!0)}while((0<p.avail_in||p.avail_out===0)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(p.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&(this.result=this.options.to===`string`?this.chunks.join(``):i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(e,t){return(t||={}).raw=!0,f(e,t)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){var r=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Int32Array<`u`;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if(typeof n!=`object`)throw TypeError(n+`must be non-object`);for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],42:[function(e,t,n){var r=e(`./common`),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n=``,o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(i=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),a=o=0;o<c;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(i=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,l=Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)l[r++]=i;else if(4<(a=o[i]))l[r++]=65533,n+=a-1;else{for(i&=a===2?31:a===3?15:7;1<a&&n<s;)i=i<<6|63&e[n++],a--;1<a?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},n.utf8border=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;n!==0;){for(n-=o=2e3<n?2e3:n;a=a+(i=i+t[r++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}},{}],44:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){var r,i=e(`../utils/common`),a=e(`./trees`),o=e(`./adler32`),s=e(`./crc32`),c=e(`./messages`),l=0,u=4,d=0,f=-2,p=-1,m=4,h=2,g=8,_=9,v=286,y=30,b=19,x=2*v+1,S=15,C=3,w=258,T=w+C+1,E=42,D=113,O=1,k=2,A=3,j=4;function M(e,t){return e.msg=c[t],t}function ee(e){return(e<<1)-(4<e?9:0)}function N(e){for(var t=e.length;0<=--t;)e[t]=0}function P(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))}function F(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,P(e.strm)}function I(e,t){e.pending_buf[e.pending++]=t}function L(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function R(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-T?e.strstart-(e.w_size-T):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+w,p=l[a+o-1],m=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do if(l[(n=t)+o]===m&&l[n+o-1]===p&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do;while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<f);if(r=w-(f-a),a=f-w,o<r){if(e.match_start=t,s<=(o=r))break;p=l[a+o-1],m=l[a+o]}}while((t=d[t&u])>c&&--i!=0);return o<=e.lookahead?o:e.lookahead}function z(e){var t,n,r,a,c,l,u,d,f,p,m=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-T)){for(i.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=n=e.hash_size;r=e.head[--t],e.head[t]=m<=r?r-m:0,--n;);for(t=n=m;r=e.prev[--t],e.prev[t]=m<=r?r-m:0,--n;);a+=m}if(e.strm.avail_in===0)break;if(l=e.strm,u=e.window,d=e.strstart+e.lookahead,f=a,p=void 0,p=l.avail_in,f<p&&(p=f),n=p===0?0:(l.avail_in-=p,i.arraySet(u,l.input,l.next_in,p,d),l.state.wrap===1?l.adler=o(l.adler,u,p,d):l.state.wrap===2&&(l.adler=s(l.adler,u,p,d)),l.next_in+=p,l.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=C)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+C-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<C)););}while(e.lookahead<T&&e.strm.avail_in!==0)}function te(e,t){for(var n,r;;){if(e.lookahead<T){if(z(e),e.lookahead<T&&t===l)return O;if(e.lookahead===0)break}if(n=0,e.lookahead>=C&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-T&&(e.match_length=R(e,n)),e.match_length>=C)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-C),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=C){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,--e.match_length!=0;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(F(e,!1),e.strm.avail_out===0))return O}return e.insert=e.strstart<C-1?e.strstart:C-1,t===u?(F(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(F(e,!1),e.strm.avail_out===0)?O:k}function ne(e,t){for(var n,r,i;;){if(e.lookahead<T){if(z(e),e.lookahead<T&&t===l)return O;if(e.lookahead===0)break}if(n=0,e.lookahead>=C&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=C-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-T&&(e.match_length=R(e,n),e.match_length<=5&&(e.strategy===1||e.match_length===C&&4096<e.strstart-e.match_start)&&(e.match_length=C-1)),e.prev_length>=C&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-C,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-C),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),--e.prev_length!=0;);if(e.match_available=0,e.match_length=C-1,e.strstart++,r&&(F(e,!1),e.strm.avail_out===0))return O}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&F(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return O}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(r=a._tr_tally(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<C-1?e.strstart:C-1,t===u?(F(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(F(e,!1),e.strm.avail_out===0)?O:k}function re(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function ie(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*x),this.dyn_dtree=new i.Buf16(2*(2*y+1)),this.bl_tree=new i.Buf16(2*(2*b+1)),N(this.dyn_ltree),N(this.dyn_dtree),N(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(S+1),this.heap=new i.Buf16(2*v+1),N(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*v+1),N(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function B(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=h,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?E:D,e.adler=t.wrap===2?0:1,t.last_flush=l,a._tr_init(t),d):M(e,f)}function ae(e){var t=B(e);return t===d&&function(e){e.window_size=2*e.w_size,N(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=C-1,e.match_available=0,e.ins_h=0}(e.state),t}function oe(e,t,n,r,a,o){if(!e)return f;var s=1;if(t===p&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||_<a||n!==g||r<8||15<r||t<0||9<t||o<0||m<o)return M(e,f);r===8&&(r=9);var c=new ie;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+C-1)/C),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=o,c.method=n,ae(e)}r=[new re(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(z(e),e.lookahead===0&&t===l)return O;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,F(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-T&&(F(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(F(e,!0),e.strm.avail_out===0?A:j):(e.strstart>e.block_start&&(F(e,!1),e.strm.avail_out),O)}),new re(4,4,8,4,te),new re(4,5,16,8,te),new re(4,6,32,32,te),new re(4,4,16,16,ne),new re(8,16,32,32,ne),new re(8,16,128,128,ne),new re(8,32,128,256,ne),new re(32,128,258,1024,ne),new re(32,258,258,4096,ne)],n.deflateInit=function(e,t){return oe(e,t,g,15,8,0)},n.deflateInit2=oe,n.deflateReset=ae,n.deflateResetKeep=B,n.deflateSetHeader=function(e,t){return e&&e.state&&e.state.wrap===2?(e.state.gzhead=t,d):f},n.deflate=function(e,t){var n,i,o,c;if(!e||!e.state||5<t||t<0)return e?M(e,f):f;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===666&&t!==u)return M(e,e.avail_out===0?-5:f);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===E)if(i.wrap===2)e.adler=0,I(i,31),I(i,139),I(i,8),i.gzhead?(I(i,+!!i.gzhead.text+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),I(i,255&i.gzhead.time),I(i,i.gzhead.time>>8&255),I(i,i.gzhead.time>>16&255),I(i,i.gzhead.time>>24&255),I(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),I(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(I(i,255&i.gzhead.extra.length),I(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(I(i,0),I(i,0),I(i,0),I(i,0),I(i,0),I(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),I(i,3),i.status=D);else{var p=g+(i.w_bits-8<<4)<<8;p|=(2<=i.strategy||i.level<2?0:i.level<6?1:i.level===6?2:3)<<6,i.strstart!==0&&(p|=32),p+=31-p%31,i.status=D,L(i,p),i.strstart!==0&&(L(i,e.adler>>>16),L(i,65535&e.adler)),e.adler=1}if(i.status===69)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),P(e),o=i.pending,i.pending!==i.pending_buf_size));)I(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(i.status===73)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),P(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,I(i,c)}while(c!==0);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.gzindex=0,i.status=91)}else i.status=91;if(i.status===91)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),P(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,I(i,c)}while(c!==0);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.status=103)}else i.status=103;if(i.status===103&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&P(e),i.pending+2<=i.pending_buf_size&&(I(i,255&e.adler),I(i,e.adler>>8&255),e.adler=0,i.status=D)):i.status=D),i.pending!==0){if(P(e),e.avail_out===0)return i.last_flush=-1,d}else if(e.avail_in===0&&ee(t)<=ee(n)&&t!==u)return M(e,-5);if(i.status===666&&e.avail_in!==0)return M(e,-5);if(e.avail_in!==0||i.lookahead!==0||t!==l&&i.status!==666){var m=i.strategy===2?function(e,t){for(var n;;){if(e.lookahead===0&&(z(e),e.lookahead===0)){if(t===l)return O;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(F(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(F(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(F(e,!1),e.strm.avail_out===0)?O:k}(i,t):i.strategy===3?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=w){if(z(e),e.lookahead<=w&&t===l)return O;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=C&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+w;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=w-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=C?(n=a._tr_tally(e,1,e.match_length-C),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(F(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(F(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(F(e,!1),e.strm.avail_out===0)?O:k}(i,t):r[i.level].func(i,t);if(m!==A&&m!==j||(i.status=666),m===O||m===A)return e.avail_out===0&&(i.last_flush=-1),d;if(m===k&&(t===1?a._tr_align(i):t!==5&&(a._tr_stored_block(i,0,0,!1),t===3&&(N(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),P(e),e.avail_out===0))return i.last_flush=-1,d}return t===u?i.wrap<=0?1:(i.wrap===2?(I(i,255&e.adler),I(i,e.adler>>8&255),I(i,e.adler>>16&255),I(i,e.adler>>24&255),I(i,255&e.total_in),I(i,e.total_in>>8&255),I(i,e.total_in>>16&255),I(i,e.total_in>>24&255)):(L(i,e.adler>>>16),L(i,65535&e.adler)),P(e),0<i.wrap&&(i.wrap=-i.wrap),i.pending===0?1:d):d},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==E&&t!==69&&t!==73&&t!==91&&t!==103&&t!==D&&t!==666?M(e,f):(e.state=null,t===D?M(e,-3):d):f},n.deflateSetDictionary=function(e,t){var n,r,a,s,c,l,u,p,m=t.length;if(!e||!e.state||(s=(n=e.state).wrap)===2||s===1&&n.status!==E||n.lookahead)return f;for(s===1&&(e.adler=o(e.adler,t,m,0)),n.wrap=0,m>=n.w_size&&(s===0&&(N(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,t,m-n.w_size,n.w_size,0),t=p,m=n.w_size),c=e.avail_in,l=e.next_in,u=e.input,e.avail_in=m,e.next_in=0,e.input=t,z(n);n.lookahead>=C;){for(r=n.strstart,a=n.lookahead-(C-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+C-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--a;);n.strstart=r,n.lookahead=C-1,z(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=C-1,n.match_available=0,e.next_in=l,e.input=u,e.avail_in=c,n.wrap=s,d},n.deflateInfo=`pako deflate (from Nodeca project)`},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=``,this.comment=``,this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){t.exports=function(e,t){var n=e.state,r=e.next_in,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=e.input,E;i=r+(e.avail_in-5),a=e.next_out,E=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,d=n.wnext,f=n.window,p=n.hold,m=n.bits,h=n.lencode,g=n.distcode,_=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;e:do{m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=h[p&_];t:for(;;){if(p>>>=b=y>>>24,m-=b,(b=y>>>16&255)==0)E[a++]=65535&y;else{if(!(16&b)){if(!(64&b)){y=h[(65535&y)+(p&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg=`invalid literal/length code`,n.mode=30;break e}x=65535&y,(b&=15)&&(m<b&&(p+=T[r++]<<m,m+=8),x+=p&(1<<b)-1,p>>>=b,m-=b),m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=g[p&v];r:for(;;){if(p>>>=b=y>>>24,m-=b,!(16&(b=y>>>16&255))){if(!(64&b)){y=g[(65535&y)+(p&(1<<b)-1)];continue r}e.msg=`invalid distance code`,n.mode=30;break e}if(S=65535&y,m<(b&=15)&&(p+=T[r++]<<m,(m+=8)<b&&(p+=T[r++]<<m,m+=8)),c<(S+=p&(1<<b)-1)){e.msg=`invalid distance too far back`,n.mode=30;break e}if(p>>>=b,m-=b,(b=a-o)<S){if(u<(b=S-b)&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break e}if(w=f,(C=0)===d){if(C+=l-b,b<x){for(x-=b;E[a++]=f[C++],--b;);C=a-S,w=E}}else if(d<b){if(C+=l+d-b,(b-=d)<x){for(x-=b;E[a++]=f[C++],--b;);if(C=0,d<x){for(x-=b=d;E[a++]=f[C++],--b;);C=a-S,w=E}}}else if(C+=d-b,b<x){for(x-=b;E[a++]=f[C++],--b;);C=a-S,w=E}for(;2<x;)E[a++]=w[C++],E[a++]=w[C++],E[a++]=w[C++],x-=3;x&&(E[a++]=w[C++],1<x&&(E[a++]=w[C++]))}else{for(C=a-S;E[a++]=E[C++],E[a++]=E[C++],E[a++]=E[C++],2<(x-=3););x&&(E[a++]=E[C++],1<x&&(E[a++]=E[C++]))}break}}break}}while(r<i&&a<s);r-=x=m>>3,p&=(1<<(m-=x<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=p,n.bits=m}},{}],49:[function(e,t,n){var r=e(`../utils/common`),i=e(`./adler32`),a=e(`./crc32`),o=e(`./inffast`),s=e(`./inftrees`),c=1,l=2,u=0,d=-2,f=1,p=852,m=592;function h(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function _(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(p),t.distcode=t.distdyn=new r.Buf32(m),t.sane=1,t.back=-1,u):d}function v(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,_(e)):d}function y(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,v(e))):d}function b(e,t){var n,r;return e?(r=new g,(e.state=r).window=null,(n=y(e,t))!==u&&(e.state=null),n):d}var x,S,C=!0;function w(e){if(C){var t;for(x=new r.Buf32(512),S=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,x,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(l,e.lens,0,32,S,0,e.work,{bits:5}),C=!1}e.lencode=x,e.lenbits=9,e.distcode=S,e.distbits=5}function T(e,t,n,i){var a,o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=v,n.inflateReset2=y,n.inflateResetKeep=_,n.inflateInit=function(e){return b(e,15)},n.inflateInit2=b,n.inflate=function(e,t){var n,p,m,g,_,v,y,b,x,S,C,E,D,O,k,A,j,M,ee,N,P,F,I,L,R=0,z=new r.Buf8(4),te=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return d;(n=e.state).mode===12&&(n.mode=13),_=e.next_out,m=e.output,y=e.avail_out,g=e.next_in,p=e.input,v=e.avail_in,b=n.hold,x=n.bits,S=v,C=y,F=u;e:for(;;)switch(n.mode){case f:if(n.wrap===0){n.mode=13;break}for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(2&n.wrap&&b===35615){z[n.check=0]=255&b,z[1]=b>>>8&255,n.check=a(n.check,z,2,0),x=b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg=`incorrect header check`,n.mode=30;break}if((15&b)!=8){e.msg=`unknown compression method`,n.mode=30;break}if(x-=4,P=8+(15&(b>>>=4)),n.wbits===0)n.wbits=P;else if(P>n.wbits){e.msg=`invalid window size`,n.mode=30;break}n.dmax=1<<P,e.adler=n.check=1,n.mode=512&b?10:12,x=b=0;break;case 2:for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(n.flags=b,(255&n.flags)!=8){e.msg=`unknown compression method`,n.mode=30;break}if(57344&n.flags){e.msg=`unknown header flags set`,n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(z[0]=255&b,z[1]=b>>>8&255,n.check=a(n.check,z,2,0)),x=b=0,n.mode=3;case 3:for(;x<32;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.head&&(n.head.time=b),512&n.flags&&(z[0]=255&b,z[1]=b>>>8&255,z[2]=b>>>16&255,z[3]=b>>>24&255,n.check=a(n.check,z,4,0)),x=b=0,n.mode=4;case 4:for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(z[0]=255&b,z[1]=b>>>8&255,n.check=a(n.check,z,2,0)),x=b=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(z[0]=255&b,z[1]=b>>>8&255,n.check=a(n.check,z,2,0)),x=b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(v<(E=n.length)&&(E=v),E&&(n.head&&(P=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),r.arraySet(n.head.extra,p,g,E,P)),512&n.flags&&(n.check=a(n.check,p,E,g)),v-=E,g+=E,n.length-=E),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(v===0)break e;for(E=0;P=p[g+E++],n.head&&P&&n.length<65536&&(n.head.name+=String.fromCharCode(P)),P&&E<v;);if(512&n.flags&&(n.check=a(n.check,p,E,g)),v-=E,g+=E,P)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(v===0)break e;for(E=0;P=p[g+E++],n.head&&P&&n.length<65536&&(n.head.comment+=String.fromCharCode(P)),P&&E<v;);if(512&n.flags&&(n.check=a(n.check,p,E,g)),v-=E,g+=E,P)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(b!==(65535&n.check)){e.msg=`header crc mismatch`,n.mode=30;break}x=b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}e.adler=n.check=h(b),x=b=0,n.mode=11;case 11:if(n.havedict===0)return e.next_out=_,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=b,n.bits=x,2;e.adler=n.check=1,n.mode=12;case 12:if(t===5||t===6)break e;case 13:if(n.last){b>>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}switch(n.last=1&b,--x,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(w(n),n.mode=20,t!==6)break;b>>>=2,x-=2;break e;case 2:n.mode=17;break;case 3:e.msg=`invalid block type`,n.mode=30}b>>>=2,x-=2;break;case 14:for(b>>>=7&x,x-=7&x;x<32;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if((65535&b)!=(b>>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=30;break}if(n.length=65535&b,x=b=0,n.mode=15,t===6)break e;case 15:n.mode=16;case 16:if(E=n.length){if(v<E&&(E=v),y<E&&(E=y),E===0)break e;r.arraySet(m,p,g,E,_),v-=E,g+=E,y-=E,_+=E,n.length-=E;break}n.mode=12;break;case 17:for(;x<14;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(n.nlen=257+(31&b),b>>>=5,x-=5,n.ndist=1+(31&b),b>>>=5,x-=5,n.ncode=4+(15&b),b>>>=4,x-=4,286<n.nlen||30<n.ndist){e.msg=`too many length or distance symbols`,n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;x<3;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.lens[te[n.have++]]=7&b,b>>>=3,x-=3}for(;n.have<19;)n.lens[te[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,I={bits:n.lenbits},F=s(0,n.lens,0,19,n.lencode,0,n.work,I),n.lenbits=I.bits,F){e.msg=`invalid code lengths set`,n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;A=(R=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,j=65535&R,!((k=R>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(j<16)b>>>=k,x-=k,n.lens[n.have++]=j;else{if(j===16){for(L=k+2;x<L;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(b>>>=k,x-=k,n.have===0){e.msg=`invalid bit length repeat`,n.mode=30;break}P=n.lens[n.have-1],E=3+(3&b),b>>>=2,x-=2}else if(j===17){for(L=k+3;x<L;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}x-=k,P=0,E=3+(7&(b>>>=k)),b>>>=3,x-=3}else{for(L=k+7;x<L;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}x-=k,P=0,E=11+(127&(b>>>=k)),b>>>=7,x-=7}if(n.have+E>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=30;break}for(;E--;)n.lens[n.have++]=P}}if(n.mode===30)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=30;break}if(n.lenbits=9,I={bits:n.lenbits},F=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,I),n.lenbits=I.bits,F){e.msg=`invalid literal/lengths set`,n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,I={bits:n.distbits},F=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,I),n.distbits=I.bits,F){e.msg=`invalid distances set`,n.mode=30;break}if(n.mode=20,t===6)break e;case 20:n.mode=21;case 21:if(6<=v&&258<=y){e.next_out=_,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=b,n.bits=x,o(e,C),_=e.next_out,m=e.output,y=e.avail_out,g=e.next_in,p=e.input,v=e.avail_in,b=n.hold,x=n.bits,n.mode===12&&(n.back=-1);break}for(n.back=0;A=(R=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,j=65535&R,!((k=R>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(A&&!(240&A)){for(M=k,ee=A,N=j;A=(R=n.lencode[N+((b&(1<<M+ee)-1)>>M)])>>>16&255,j=65535&R,!(M+(k=R>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}b>>>=M,x-=M,n.back+=M}if(b>>>=k,x-=k,n.back+=k,n.length=j,A===0){n.mode=26;break}if(32&A){n.back=-1,n.mode=12;break}if(64&A){e.msg=`invalid literal/length code`,n.mode=30;break}n.extra=15&A,n.mode=22;case 22:if(n.extra){for(L=n.extra;x<L;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;A=(R=n.distcode[b&(1<<n.distbits)-1])>>>16&255,j=65535&R,!((k=R>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(!(240&A)){for(M=k,ee=A,N=j;A=(R=n.distcode[N+((b&(1<<M+ee)-1)>>M)])>>>16&255,j=65535&R,!(M+(k=R>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}b>>>=M,x-=M,n.back+=M}if(b>>>=k,x-=k,n.back+=k,64&A){e.msg=`invalid distance code`,n.mode=30;break}n.offset=j,n.extra=15&A,n.mode=24;case 24:if(n.extra){for(L=n.extra;x<L;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=30;break}n.mode=25;case 25:if(y===0)break e;if(E=C-y,n.offset>E){if((E=n.offset-E)>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break}D=E>n.wnext?(E-=n.wnext,n.wsize-E):n.wnext-E,E>n.length&&(E=n.length),O=n.window}else O=m,D=_-n.offset,E=n.length;for(y<E&&(E=y),y-=E,n.length-=E;m[_++]=O[D++],--E;);n.length===0&&(n.mode=21);break;case 26:if(y===0)break e;m[_++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;x<32;){if(v===0)break e;v--,b|=p[g++]<<x,x+=8}if(C-=y,e.total_out+=C,n.total+=C,C&&(e.adler=n.check=n.flags?a(n.check,m,C,_-C):i(n.check,m,C,_-C)),C=y,(n.flags?b:h(b))!==n.check){e.msg=`incorrect data check`,n.mode=30;break}x=b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;x<32;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(b!==(4294967295&n.total)){e.msg=`incorrect length check`,n.mode=30;break}x=b=0}n.mode=29;case 29:F=1;break e;case 30:F=-3;break e;case 31:return-4;case 32:default:return d}return e.next_out=_,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=b,n.bits=x,(n.wsize||C!==e.avail_out&&n.mode<30&&(n.mode<27||t!==4))&&T(e,e.output,e.next_out,C-e.avail_out)?(n.mode=31,-4):(S-=e.avail_in,C-=e.avail_out,e.total_in+=S,e.total_out+=C,n.total+=C,n.wrap&&C&&(e.adler=n.check=n.flags?a(n.check,m,C,e.next_out-C):i(n.check,m,C,e.next_out-C)),e.data_type=n.bits+(n.last?64:0)+(n.mode===12?128:0)+(n.mode===20||n.mode===15?256:0),(S==0&&C===0||t===4)&&F===u&&(F=-5),F)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&=null,e.state=null,u},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?((n.head=t).done=!1,u):d},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?(n=e.state).wrap!==0&&n.mode!==11?d:n.mode===11&&i(1,t,r,0)!==n.check?-3:T(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,u):d},n.inflateInfo=`pako inflate (from Nodeca project)`},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){var r=e(`../utils/common`),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,c,l,u,d,f){var p,m,h,g,_,v,y,b,x,S=f.bits,C=0,w=0,T=0,E=0,D=0,O=0,k=0,A=0,j=0,M=0,ee=null,N=0,P=new r.Buf16(16),F=new r.Buf16(16),I=null,L=0;for(C=0;C<=15;C++)P[C]=0;for(w=0;w<c;w++)P[t[n+w]]++;for(D=S,E=15;1<=E&&P[E]===0;E--);if(E<D&&(D=E),E===0)return l[u++]=20971520,l[u++]=20971520,f.bits=1,0;for(T=1;T<E&&P[T]===0;T++);for(D<T&&(D=T),C=A=1;C<=15;C++)if(A<<=1,(A-=P[C])<0)return-1;if(0<A&&(e===0||E!==1))return-1;for(F[1]=0,C=1;C<15;C++)F[C+1]=F[C]+P[C];for(w=0;w<c;w++)t[n+w]!==0&&(d[F[t[n+w]]++]=w);if(v=e===0?(ee=I=d,19):e===1?(ee=i,N-=257,I=a,L-=257,256):(ee=o,I=s,-1),C=T,_=u,k=w=M=0,h=-1,g=(j=1<<(O=D))-1,e===1&&852<j||e===2&&592<j)return 1;for(;;){for(y=C-k,x=d[w]<v?(b=0,d[w]):d[w]>v?(b=I[L+d[w]],ee[N+d[w]]):(b=96,0),p=1<<C-k,T=m=1<<O;l[_+(M>>k)+(m-=p)]=y<<24|b<<16|x|0,m!==0;);for(p=1<<C-1;M&p;)p>>=1;if(p===0?M=0:(M&=p-1,M+=p),w++,--P[C]==0){if(C===E)break;C=t[n+d[w]]}if(D<C&&(M&g)!==h){for(k===0&&(k=D),_+=T,A=1<<(O=C-k);O+k<E&&!((A-=P[O+k])<=0);)O++,A<<=1;if(j+=1<<O,e===1&&852<j||e===2&&592<j)return 1;l[h=M&g]=D<<24|O<<16|_-u|0}}return M!==0&&(l[_+M]=C-k<<24|4194304),f.bits=D,0}},{"../utils/common":41}],51:[function(e,t,n){t.exports={2:`need dictionary`,1:`stream end`,0:``,"-1":`file error`,"-2":`stream error`,"-3":`data error`,"-4":`insufficient memory`,"-5":`buffer error`,"-6":`incompatible version`}},{}],52:[function(e,t,n){var r=e(`../utils/common`),i=0,a=1;function o(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,c=29,l=256,u=l+1+c,d=30,f=19,p=2*u+1,m=15,h=16,g=7,_=256,v=16,y=17,b=18,x=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],S=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],w=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=Array(2*(u+2));o(T);var E=Array(2*d);o(E);var D=Array(512);o(D);var O=Array(256);o(O);var k=Array(c);o(k);var A,j,M,ee=Array(d);function N(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function P(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function F(e){return e<256?D[e]:D[256+(e>>>7)]}function I(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function L(e,t,n){e.bi_valid>h-n?(e.bi_buf|=t<<e.bi_valid&65535,I(e,e.bi_buf),e.bi_buf=t>>h-e.bi_valid,e.bi_valid+=n-h):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function R(e,t,n){L(e,n[2*t],n[2*t+1])}function z(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function te(e,t,n){var r,i,a=Array(m+1),o=0;for(r=1;r<=m;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];s!==0&&(e[2*i]=z(a[s]++,s))}}function ne(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<f;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*_]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function re(e){8<e.bi_valid?I(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function ie(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function B(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&ie(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!ie(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function ae(e,t,n){var r,i,a,o,s=0;if(e.last_lit!==0)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,r===0?R(e,i,t):(R(e,(a=O[i])+l+1,t),(o=x[a])!==0&&L(e,i-=k[a],o),R(e,a=F(--r),n),(o=S[a])!==0&&L(e,r-=ee[a],o)),s<e.last_lit;);R(e,_,t)}function oe(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=p,n=0;n<c;n++)a[2*n]===0?a[2*n+1]=0:(e.heap[++e.heap_len]=l=n,e.depth[n]=0);for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;1<=n;n--)B(e,a,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],B(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,B(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,c=t.dyn_tree,l=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,g=t.stat_desc.max_length,_=0;for(a=0;a<=m;a++)e.bl_count[a]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<p;n++)g<(a=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(a=g,_++),c[2*r+1]=a,l<r||(e.bl_count[a]++,o=0,h<=r&&(o=f[r-h]),s=c[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(u[2*r+1]+o)));if(_!==0){do{for(a=g-1;e.bl_count[a]===0;)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[g]--,_-=2}while(0<_);for(a=g;a!==0;a--)for(r=e.bl_count[a];r!==0;)l<(i=e.heap[--n])||(c[2*i+1]!==a&&(e.opt_len+=(a-c[2*i+1])*c[2*i],c[2*i+1]=a),r--)}}(e,t),te(a,l,e.bl_count)}function se(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<c&&i===o||(s<l?e.bl_tree[2*i]+=s:i===0?s<=10?e.bl_tree[2*y]++:e.bl_tree[2*b]++:(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*v]++),a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4))}function ce(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<c&&i===o)){if(s<l)for(;R(e,i,e.bl_tree),--s!=0;);else i===0?s<=10?(R(e,y,e.bl_tree),L(e,s-3,3)):(R(e,b,e.bl_tree),L(e,s-11,7)):(i!==a&&(R(e,i,e.bl_tree),s--),R(e,v,e.bl_tree),L(e,s-3,2));a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4)}}o(ee);var le=!1;function V(e,t,n,i){L(e,(s<<1)+ +!!i,3),function(e,t,n,i){re(e),i&&(I(e,n),I(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){le||=(function(){var e,t,n,r,i,a=Array(m+1);for(r=n=0;r<c-1;r++)for(k[r]=n,e=0;e<1<<x[r];e++)O[n++]=r;for(O[n-1]=r,r=i=0;r<16;r++)for(ee[r]=i,e=0;e<1<<S[r];e++)D[i++]=r;for(i>>=7;r<d;r++)for(ee[r]=i<<7,e=0;e<1<<S[r]-7;e++)D[256+i++]=r;for(t=0;t<=m;t++)a[t]=0;for(e=0;e<=143;)T[2*e+1]=8,e++,a[8]++;for(;e<=255;)T[2*e+1]=9,e++,a[9]++;for(;e<=279;)T[2*e+1]=7,e++,a[7]++;for(;e<=287;)T[2*e+1]=8,e++,a[8]++;for(te(T,u+1,a),e=0;e<d;e++)E[2*e+1]=5,E[2*e]=z(e,5);A=new N(T,x,l+1,u,m),j=new N(E,S,0,d,m),M=new N([],C,0,f,g)}(),!0),e.l_desc=new P(e.dyn_ltree,A),e.d_desc=new P(e.dyn_dtree,j),e.bl_desc=new P(e.bl_tree,M),e.bi_buf=0,e.bi_valid=0,ne(e)},n._tr_stored_block=V,n._tr_flush_block=function(e,t,n,r){var o,s,c=0;0<e.level?(e.strm.data_type===2&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&e.dyn_ltree[2*t]!==0)return i;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return a;for(t=32;t<l;t++)if(e.dyn_ltree[2*t]!==0)return a;return i}(e)),oe(e,e.l_desc),oe(e,e.d_desc),c=function(e){var t;for(se(e,e.dyn_ltree,e.l_desc.max_code),se(e,e.dyn_dtree,e.d_desc.max_code),oe(e,e.bl_desc),t=f-1;3<=t&&e.bl_tree[2*w[t]+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&t!==-1?V(e,t,n,r):e.strategy===4||s===o?(L(e,2+ +!!r,3),ae(e,T,E)):(L(e,4+ +!!r,3),function(e,t,n,r){var i;for(L(e,t-257,5),L(e,n-1,5),L(e,r-4,4),i=0;i<r;i++)L(e,e.bl_tree[2*w[i]+1],3);ce(e,e.dyn_ltree,t-1),ce(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),ae(e,e.dyn_ltree,e.dyn_dtree)),ne(e),r&&re(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,t===0?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(O[n]+l+1)]++,e.dyn_dtree[2*F(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){L(e,2,3),R(e,_,T),function(e){e.bi_valid===16?(I(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){(function(e,t){if(!e.setImmediate){var n,r,i,a,o=1,s={},c=!1,l=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,n={}.toString.call(e.process)===`[object process]`?function(e){process.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage(``,`*`),e.onmessage=n,t}}()?(a=`setImmediate$`+Math.random()+`$`,e.addEventListener?e.addEventListener(`message`,p,!1):e.attachEvent(`onmessage`,p),function(t){e.postMessage(a+t,`*`)}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){i.port2.postMessage(e)}):l&&`onreadystatechange`in l.createElement(`script`)?(r=l.documentElement,function(e){var t=l.createElement(`script`);t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(f,0,e)},u.setImmediate=function(e){typeof e!=`function`&&(e=Function(``+e));for(var t=Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];return s[o]={callback:e,args:t},n(o),o++},u.clearImmediate=d}function d(e){delete s[e]}function f(e){if(c)setTimeout(f,0,e);else{var n=s[e];if(n){c=!0;try{(function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}})(n)}finally{d(e),c=!1}}}}function p(t){t.source===e&&typeof t.data==`string`&&t.data.indexOf(a)===0&&f(+t.data.slice(a.length))}})(typeof self>`u`?e===void 0?this:e:self)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}]},{},[10])(10)})}))(),1);K();function Dp(e){let[t,n]=H.useState(``),[r,i]=H.useState(``);return ke(()=>{e.socket.decrypt(e.systemConfig.native.javascriptPassword).then(e=>i(e))},[e.systemConfig,e.socket]),V(ye,{open:!0,onClose:()=>e.onEntered(null),fullWidth:!0,maxWidth:`sm`,children:[C(o,{children:U.t(`Please enter a password for expert mode`)}),C(xe,{children:C(F,{autoFocus:!0,margin:`dense`,variant:`standard`,label:U.t(`Password`),type:`password`,fullWidth:!0,value:t,onKeyDown:n=>{n.key===`Enter`&&t&&(n.preventDefault(),n.stopPropagation(),r===t?e.onEntered(t):e.onEntered(``))},onChange:e=>n(e.target.value)})}),V(_e,{children:[C(q,{variant:`contained`,disabled:!t,onClick:()=>{r===t?e.onEntered(t):e.onEntered(``)},startIcon:C(De,{}),children:U.t(`Ok`)}),C(q,{color:`grey`,variant:`contained`,onClick:()=>e.onEntered(null),startIcon:C(kt,{}),children:U.t(`Cancel`)})]})]})}K();var Op={root:{flexGrow:1,display:`flex`,width:`100%`,height:`100%`},menuDiv:{overflow:`hidden`},splitterDivs:e=>({"&>div":{overflow:`hidden`,width:`100%`,height:`100%`},"& .layout-splitter":{background:e.palette.mode===`dark`?`#595858`:`#ccc;`}}),mainDiv:{width:`100%`,height:`100%`,overflow:`hidden`},content:e=>({width:`100%`,height:`100%`,backgroundColor:e.palette.background&&e.palette.background.default,position:`relative`}),splitterDivWithMenu:{width:`calc(100% - 300px)`,height:`100%`},menuDivWithoutMenu:{"&>div:first-child":{display:`none`},"&>.layout-splitter":{display:`none`}},progress:{margin:100},menuOpenCloseButton:e=>({position:`absolute`,left:0,borderRadius:`0 5px 5px 0`,top:6,pt:1,cursor:`pointer`,zIndex:1,height:25,width:20,background:e.palette.secondary.main,color:e.palette.primary.main,pl:`3px`,"&:hover":{color:`white`}}),showLogButton:e=>({position:`absolute`,right:3,borderRadius:`5px 5px 0 0`,bottom:0,pt:`3px`,cursor:`pointer`,zIndex:10,height:20,width:25,background:e.palette.secondary.main,color:e.palette.primary.main,pl:1,"&:hover":{color:`white`}})},kp=class extends Ae{constructor(e){super(e,{Connection:Oe,translations:{en:hp,de:gp,es:_p,fr:vp,it:yp,nl:bp,pl:xp,pt:Sp,ru:Cp,uk:wp,"zh-cn":Tp},bottomButtons:!1,socket:{autoSubscribeLog:!0},sentryDSN:window.sentryDSN}),W(this,`hosts`,[]),W(this,`importFile`,null),W(this,`importFileName`,null),W(this,`scripts`,{}),W(this,`confirmCallback`,null),W(this,`changedScripts`,{}),W(this,`javascriptPassword`,``),W(this,`onScriptsChanged`,(e,t)=>{if(!e)return;let n=!1,r={};e.startsWith(`script.js.`)&&(t?JSON.stringify(this.scripts[e])!==JSON.stringify(t)&&(this.scripts[e]=t,n=!0,r.scriptsHash=this.state.scriptsHash+1):this.scripts[e]&&(delete this.scripts[e],n=!0,r.scriptsHash=this.state.scriptsHash+1)),n&&this.setState(r)}),W(this,`onInstanceChanged`,(e,t)=>{if(!e)return;let n=!1,r={};if(e.startsWith(`system.adapter.`)){var i;if(e.startsWith(`system.adapter.${this.adapterName}.`)){let i=parseInt(e.split(`.`).pop()||`0`,10)||0;if((t==null?void 0:t.type)===`instance`){var a;this.state.instances.includes(i)||(r.instances=[...this.state.instances],r.instances.push(i),r.instances.sort(),n=!0,this.socket.subscribeState(`${t._id}.alive`,this.onInstanceAliveChange)),(a=t.common)!=null&&a.host&&this.state.instanceHosts[i]!==t.common.host&&(r.instanceHosts={...this.state.instanceHosts,[i]:t.common.host},n=!0)}else if(!t&&this.state.instances.includes(i)){this.socket.unsubscribeState(`${e}.alive`,this.onInstanceAliveChange),r.instances=[...this.state.instances];let t=r.instances.indexOf(i);r.instances.splice(t,1),r.instanceHosts={...this.state.instanceHosts},delete r.instanceHosts[i],n=!0}}t!=null&&(i=t.common)!=null&&i.blockly&&(this.confirmCallback=e=>e&&window.location.reload(),r.confirm=U.t(`Some blocks were updated. Reload admin?`),n=!0)}n&&this.setState(r)}),W(this,`onHostChanged`,(e,t)=>{if(e&&e.startsWith(`system.host.`)){if((t==null?void 0:t.type)===`host`)this.hosts.includes(e)||(this.hosts.push(e),this.hosts.sort());else if(!t&&this.hosts.includes(e)){let t=this.hosts.indexOf(e);this.hosts.splice(t,1)}}}),W(this,`onInstanceAliveChange`,(e,t)=>{if(e&&(e=e?e.substring(0,e.length-6):``,this.state.runningInstances[e]!==(t?t.val:!1))){let n=JSON.parse(JSON.stringify(this.state.runningInstances));n[e]=t?!!t.val:!1,this.setState({runningInstances:n})}});let t=window.localStorage.getItem(`JS.logSizes`),n=[80,20];if(t)try{n=JSON.parse(t)}catch{}let r=window.localStorage.getItem(`JS.splitSizes`),i=[20,80];if(r)try{i=JSON.parse(r)}catch{}this.state={...this.state,splitSizes:i,logSizes:n},window.alert=e=>{console.error(e),this.showJsError(e.toString())}}onConnectionReady(){window.systemLang=this.socket.systemLang,this.setState({ready:!1,scriptsHash:0,instances:[],instanceHosts:{},updating:!1,resizing:!1,selected:null,logMessage:{},editing:[],menuOpened:window.localStorage.getItem(`App.menuOpened`)!==`false`,menuSelectId:``,expertMode:window.localStorage.getItem(`App.expertMode`)===`true`,logHorzLayout:window.localStorage.getItem(`App.logHorzLayout`)===`true`,runningInstances:{},confirm:``,importFile:!1,message:``,searchText:``,hideLog:window.localStorage.getItem(`App.hideLog`)===`true`,debugMode:!1,debugInstance:null,splitSizes:[20,80],password:``},async()=>{var e;let t={},n=await this.subscribeOnInstances();t.instances=n.instances,t.runningInstances=n.runningInstances,t.instanceHosts=n.instanceHosts,this.javascriptPassword=((e=this.socket.systemConfig)==null?void 0:e.native.javascriptPassword)||``,await this.readAdaptersWithBlockly();let r=await this.socket.getHosts();this.hosts=r.map(e=>e._id);let i=await this.readAllScripts();window.localStorage.getItem(`App.expertMode`)!==`true`&&window.localStorage.getItem(`App.expertMode`)!==`false`&&!this.javascriptPassword?Object.keys(i).find(e=>e.startsWith(`script.js.global.`)&&i[e].type===`script`)&&(t.expertMode=!0):this.javascriptPassword&&(t.expertMode=!1),this.scripts=i;let a=this.state.scriptsHash;this.compareScripts(i)&&a++,t.scriptsHash=a,t.ready=!0,this.setState(t),await this.socket.subscribeObject(`script.*`,this.onScriptsChanged),await this.socket.subscribeObject(`system.adapter.*`,this.onInstanceChanged),await this.socket.subscribeObject(`system.host.*`,this.onHostChanged)})}async subscribeOnInstances(){let e=await this.socket.getAdapterInstances(this.adapterName),t=e.map(e=>parseInt(e._id.split(`.`).pop()||`0`)).sort(),n={};t.forEach(e=>n[`system.adapter.${this.adapterName}.${e}`]=!1);let r={};e.forEach(e=>{var t;let n=parseInt(e._id.split(`.`).pop()||`0`,10)||0;e!=null&&(t=e.common)!=null&&t.host&&(r[n]=e.common.host)});for(let e=0;e<t.length;e++){let r=`system.adapter.${this.adapterName}.${t[e]}`,i=`${r}.alive`,a=await this.socket.getState(i);n[r]=a?!!a.val:!1,await this.socket.subscribeState(i,this.onInstanceAliveChange)}return{instances:t,runningInstances:n,instanceHosts:r}}async readAllScripts(){let e=await this.socket.getObjectViewSystem(`channel`,`script.js.`,`script.js.香`),t=await this.socket.getObjectViewSystem(`script`,`script.js.`,`script.js.香`);return Object.keys(t).forEach(n=>e[n]=t[n]),e}async readAdaptersWithBlockly(){let e=await this.socket.getObjectViewSystem(`adapter`,`system.adapter.`,`system.adapter.香`);return new Promise(t=>Jt.loadCustomBlockly(e,()=>t()))}compareScripts(e){let t=Object.keys(this.scripts),n=Object.keys(e);if(t.length!==n.length||JSON.stringify(t)!==JSON.stringify(n))return this.scripts=e,!0;for(let n=0;n<t.length;n++){let r=this.scripts[t[n]].common,i=e[t[n]].common,a=this.scripts[t[n]].native,o=e[t[n]].native;if(r.name!==i.name||r.source!==i.source||r.engine!==i.engine||r.engineType!==i.engineType||r.enabled!==i.enabled||!!(a!=null&&a.protected)!=!!(o!=null&&o.protected))return this.scripts=e,!0}return!1}async onRename(e,t,n,r){t.trim().endsWith(`.`)&&(t=t.replace(/\.\s*$/,`_`)),console.log(`Rename ${e} => ${t}`),this.setState({updating:!0});try{var i;if(((i=this.scripts[e])==null?void 0:i.type)===`script`){let i=JSON.parse(JSON.stringify(this.scripts[e].common));i.name=n||i.name,r!==void 0&&(i.engine=`system.adapter.javascript.${r}`);let a=t.split(`.`);a.pop();let o=a.join(`.`);this.scripts[o]&&this.scripts[o].type===`script`&&(a.pop(),t=`${a.join(`.`)}.${t.split(`.`).pop()}`),await this.updateScript(e,t,i)}else await this.renameGroup(e,t,n)}catch(e){e.toString().includes(`canceled`)||this.showJsError(e)}this.setState({updating:!1})}async renameGroup(e,t,n,r){if(!r){r=[],r=Object.keys(this.scripts).filter(t=>t.startsWith(`${e}.`));let i=await this.socket.getObject(e);i||={common:{},type:`channel`},i.common.name=n||i.common.name||e.split(`.`).pop()||``,i._id=t;try{await this.socket.delObject(e)}catch{}try{await this.socket.setObject(t,i),await this.renameGroup(e,t,n,r)}catch(i){console.log(i);let a={_id:t,type:`channel`,common:{name:n||e.split(`.`).pop()||``,expert:!0},native:{}};await this.socket.setObject(t,a),await this.renameGroup(e,t,n,r)}}else if(r.length){let i=r.pop();if(i){let a=await this.socket.getObject(i);if(a){try{await this.socket.delObject(i)}catch{}i=t+i.substring(e.length),a._id=i,a.common=a.common||{},a.common.expert=!0,await this.socket.setObject(i,a),await this.renameGroup(e,t,n,r)}}}}async onUpdateScript(e,t){var n;if(((n=this.scripts[e])==null?void 0:n.type)===`script`)try{await this.updateScript(e,e,t)}catch(e){e.toString().includes(`canceled`)||this.showJsError(e)}}onSelect(e){this.scripts[e]&&this.scripts[e].common&&this.scripts[e].type===`script`&&this.setState({selected:e,menuSelectId:e},()=>setTimeout(()=>this.setState({menuSelectId:``}),300))}renderPasswordDialog(){return this.state.showPasswordDialog?C(Dp,{socket:this.socket,systemConfig:this.socket.systemConfig,onEntered:e=>{e===null?this.setState({showPasswordDialog:!1,expertMode:!1,password:``}):e?this.setState({expertMode:!0,showPasswordDialog:!1,password:e}):this.setState({showPasswordDialog:!1,expertMode:!1,message:U.t(`Wrong password`),password:``})}},`passwordDialog`):null}onExpertModeChange(e){if(this.state.expertMode!==e)if(e&&this.javascriptPassword)this.setState({showPasswordDialog:!0});else{var t;let n=this.state.selected;n&&!e&&(t=this.scripts[n].native)!=null&&t.protected&&(n=this.state.editing.find(e=>{var t;return this.scripts[e]&&!((t=this.scripts[e].native)!=null&&t.protected)})||null),window.localStorage.setItem(`App.expertMode`,e?`true`:`false`),this.setState({expertMode:e,password:``,selected:n})}}showJsError(e){this.setState({errorText:e?e.toString():``})}showMessage(e){this.setState({message:e?e.toString():``})}onDelete(e){this.socket.delObject(e).catch(e=>this.showJsError(e))}onEdit(e){this.state.selected!==e&&this.setState({selected:e})}onAddNew(e,t,n,r,i,a){let o=RegExp(`^${e}\\.`);if(Object.keys(this.scripts).find(t=>e===t||o.test(e)))return this.showJsError(U.t(`Yet exists!`));n?this.socket.setObject(e,{_id:e,type:`channel`,common:{name:t,expert:!0},native:{}}).then(()=>setTimeout(()=>this.setState({menuSelectId:e},()=>setTimeout(()=>this.setState({menuSelectId:``}),300)),1e3)).catch(e=>this.showJsError(e)):(i===`Blockly`&&!a&&(a=`\n//${btoa(`%3Cxml%20xmlns%3D%22https%3A%2F%2Fdevelopers.google.com%2Fblockly%2Fxml%22%3E%3C%2Fxml%3E`)}`),this.socket.setObject(e,{_id:e,type:`script`,common:{name:t,expert:!0,engineType:i||`Javascript/js`,enabled:!1,engine:`system.adapter.javascript.${r||0}`,source:a||``,debug:!1,verbose:!1},native:{}}).then(()=>setTimeout(()=>this.onSelect(e),1e3)).catch(e=>this.showJsError(e)))}async updateScript(e,t,n){let r=await this.socket.getObject(e),i={common:{}};if(n.engine!==void 0&&(i.common.engine=n.engine),n.enabled!==void 0&&(i.common.enabled=n.enabled),n.source!==void 0&&(i.common.source=n.source),n.debug!==void 0&&(i.common.debug=n.debug),n.verbose!==void 0&&(i.common.verbose=n.verbose),i.from=`system.adapter.admin.0`,e===t&&r!=null&&r.common&&n.name===r.common.name){(!n.engineType||n.engineType!==r.common.engineType)&&n.engineType!==void 0&&(i.common.engineType=n.engineType||`Javascript/js`),i.type=`script`,await this.socket.extendObject(e,i);return}if(r!=null&&r.common){r.common.engineType=n.engineType||r.common.engineType||`Javascript/js`,await this.socket.delObject(e),i.common.engine!==void 0&&(r.common.engine=i.common.engine),i.common.enabled!==void 0&&(r.common.enabled=i.common.enabled),i.common.source!==void 0&&(r.common.source=i.common.source),i.common.name!==void 0&&(r.common.name=i.common.name),i.common.debug!==void 0&&(r.common.debug=i.common.debug),i.common.verbose!==void 0&&(r.common.verbose=i.common.verbose),r._rev!==void 0&&delete r._rev,r.common.name=n.name,r.common.expert=!0,r.type=`script`,r._id=t,await this.socket.setObject(t,r);return}r=i,r.common.name=n.name,r.common.expert=!0,r.type=`script`,r._id=t,await this.socket.setObject(t,r)}onEnableDisable(e,t){var n;if(((n=this.scripts[e])==null?void 0:n.type)===`script`){let n=this.scripts[e].common;n.enabled=t,n.expert=!0,this.updateScript(e,e,n).catch(e=>e!==`canceled`&&this.showJsError(e))}}async getLiveHost(){for(let e=0;e<this.hosts.length;e++){let t=this.hosts[e],n=await this.socket.getState(`${t}.alive`);if(n&&n!=null&&n.val)return t}}async onExport(e){let t=new Date,n=t.getFullYear().toString(),r=t.getMonth()+1;if(r<10&&(r=`0${r}`),n+=`-${r}`,r=t.getDate(),r<10&&(r=`0${r}`),n+=`-${r}-`,e){let e=await this.getLiveHost();if(!e){this.showJsError(U.t(`No active host found`));return}this.socket.getRawSocket().emit(`sendToHost`,e,`readObjectsAsZip`,{adapter:`javascript`,id:`script.js`,link:`${n}scripts.zip`,fileStorageNamespace:`admin.${this.instance}`},e=>{if(typeof e==`string`){let t=document.createElement(`a`);t.href=`../../files/${e}`,document.body.appendChild(t),t.click(),t.remove()}else if(e.error&&this.showJsError(e.error),e.data){let t=document.createElement(`a`);t.href=`data: application/zip;base64,${e.data}`,t.download=`${n}scripts.zip`,document.body.appendChild(t),t.click(),t.remove()}})}else{let e=new Ep.default;for(let[t,n]of Object.entries(this.scripts))if(n.type===`script`){let r=n,i=r.common.engineType===`TypeScript/ts`?`ts`:r.common.engineType===`Blockly`?`blockly`:r.common.engineType===`Rules`?`rules`:`js`,a=`/******* (ext=${i}/engine=${r.common.engine}/debug=${r.common.debug}/verbose=${r.common.verbose}/enabled=${r.common.enabled}) *******/\n`;a+=r.common.source||``;let o=`${t.substring(10).replace(/\./g,`/`)}.${i}`;e.file(o,a)}e.generateAsync({type:`blob`}).then(e=>{let t=document.createElement(`a`);t.href=URL.createObjectURL(e),t.download=`${n}scripts_plain.zip`,document.body.appendChild(t),t.click(),t.remove(),URL.revokeObjectURL(t.href)})}}onImport(e,t){this.importFile=e||null,this.importFileName=t||null,e?(this.confirmCallback=this.onImportConfirmed.bind(this),this.setState({importFile:!1,confirm:U.t(`Existing scripts will be overwritten.`)})):this.setState({importFile:!1})}async onImportConfirmed(e){let t=this.importFile,n=this.importFileName;if(this.importFile=null,this.importFileName=null,e&&t)if(n&&/_(plain|text)\.zip$/i.test(n)){t=t.split(`,`)[1];try{let e=await Ep.default.loadAsync(t,{base64:!0}),n=[];e.forEach((e,t)=>{t.dir||n.push(t.async(`string`).then(async t=>{let n=t.split(`
|
|
191
|
+
`),r=n[0]||``,i=n.slice(1).join(`
|
|
192
|
+
`),a=r.match(/\/\*{7}\s*\(ext=(\w+)\/engine=([^/]+)\/debug=(\w+)\/verbose=(\w+)\/enabled=(\w+)\)\s*\*{7}\//),o=`Javascript/js`,s=`system.adapter.javascript.0`,c=!1,l=!1,u=!1;if(a){let e=a[1];s=a[2],c=a[3]===`true`,l=a[4]===`true`,u=a[5]===`true`,e===`ts`?o=`TypeScript/ts`:e===`blockly`?o=`Blockly`:e===`rules`&&(o=`Rules`)}let d=e.replace(/\.\w+$/,``).replace(/\//g,`.`),f=`script.js.${d}`,p=d.split(`.`).pop()||d,m=f.split(`.`);for(let e=3;e<m.length;e++){let t=m.slice(0,e).join(`.`);if(!this.scripts[t])try{await this.socket.setObject(t,{_id:t,type:`channel`,common:{name:m[e-1],expert:!0},native:{}})}catch{}}await this.socket.setObject(f,{_id:f,type:`script`,common:{name:p,expert:!0,engineType:o,engine:s,enabled:u,source:i,debug:c,verbose:l},native:{}})}))}),await Promise.all(n),this.showMessage(U.t(`Done`))}catch(e){this.showJsError(e)}}else{t=t.split(`,`)[1];let e=await this.getLiveHost();if(!e){this.showJsError(U.t(`No active host found`));return}this.socket.getRawSocket().emit(`sendToHost`,e,`writeObjectsAsZip`,{data:t,adapter:`javascript`,id:`script.js`},e=>{e===`permissionError`?this.showJsError(U.t(e)):!e||e.error?this.showJsError(e?U.t(e.error||``):U.t(`Unknown error`)):this.showMessage(U.t(`Done`))})}}toggleLogLayout(){window.localStorage.setItem(`App.logHorzLayout`,this.state.logHorzLayout?`false`:`true`),this.setState({logHorzLayout:!this.state.logHorzLayout})}renderEditor(){var e;let t=Object.keys(this.scripts).reduce((e,t)=>e+ +(this.scripts[t].common.engineType===`Rules`),0);return C(fp,{scriptsHash:this.state.scriptsHash,debugMode:this.state.debugMode,onDebugModeChange:e=>{e?this.setState({debugMode:!0}):this.setState({debugMode:!1,debugInstance:null})},visible:!this.state.resizing,socket:this.socket,adapterName:this.adapterName,onLocate:e=>this.setState({menuSelectId:e}),password:this.state.password,runningInstances:this.state.runningInstances,menuOpened:this.state.menuOpened,searchText:this.state.searchText,themeType:this.state.themeType,themeName:this.state.themeName,theme:this.state.theme,expertMode:this.state.expertMode,onChange:(e,t)=>this.onUpdateScript(e,t),isAnyRulesExists:t,debugInstance:this.state.debugInstance,onSelectedChange:(e,t)=>{let n={},r=!1;e!==this.state.selected&&(r=!0,n.selected=e),JSON.stringify(t)!==JSON.stringify(this.state.editing)&&(r=!0,n.editing=[...t]),r&&this.setState(n)},onRestart:e=>this.socket.extendObject(e,{common:{enabled:!0}}),selected:this.state.selected&&((e=this.scripts[this.state.selected])==null?void 0:e.type)===`script`?this.state.selected:``,objects:this.scripts,resizing:this.state.resizing,onChangedChanged:e=>this.changedScripts=e},`editor`)}showLogButton(){return C(A,{title:U.t(`Show logs`),sx:Op.showLogButton,onClick:()=>{window.localStorage.setItem(`App.hideLog`,`false`),this.setState({hideLog:!1,resizing:!0}),setTimeout(()=>this.setState({resizing:!1}),300)},children:C(be,{})},`showLog`)}renderErrorDialog(){return this.state.errorText?C(Gt,{onClose:()=>this.setState({errorText:``}),text:this.state.errorText},`dialogError`):null}renderMain(){let e;return e=this.state.debugMode||this.state.hideLog?V(fe,{children:[!this.state.debugMode&&this.state.hideLog?this.showLogButton():void 0,this.renderEditor()]}):V(Pt,{direction:this.state.logHorzLayout?Nt.Horizontal:Nt.Vertical,initialSizes:this.state.logSizes,minWidths:[500,100],minHeights:[150,50],onResizeStarted:()=>this.setState({resizing:!0}),onResizeFinished:(e,t)=>{this.setState({logSizes:t,resizing:!1}),window.localStorage.setItem(`JS.logSizes`,JSON.stringify(t))},gutterClassName:this.state.themeType===`dark`?`Dark visGutter`:`Light visGutter`,children:[this.renderEditor(),C(Da,{verticalLayout:!this.state.logHorzLayout,onLayoutChange:()=>this.toggleLogLayout(),editing:this.state.editing,socket:this.socket,selected:this.state.selected,onHideLog:()=>{window.localStorage.setItem(`App.hideLog`,`true`),this.setState({hideLog:!0,resizing:!0}),setTimeout(()=>this.setState({resizing:!1}),300)}},`log`)]}),V(A,{sx:Op.content,className:`iobVerticalSplitter`,children:[C(A,{sx:Op.menuOpenCloseButton,onClick:()=>{window.localStorage.setItem(`App.menuOpened`,this.state.menuOpened?`false`:`true`),this.setState({menuOpened:!this.state.menuOpened,resizing:!0}),setTimeout(()=>this.setState({resizing:!1}),300)},children:this.state.menuOpened?C(ae,{}):C(S,{})},`closeMenu`),this.state.message?C(ot,{onClose:()=>this.setState({message:``}),text:this.state.message},`dialogMessage`):null,this.renderErrorDialog(),this.state.importFile?C(mp,{onClose:(e,t)=>this.onImport(e,t)},`dialogImportFile`):null,this.state.confirm?C(rt,{onClose:e=>{this.state.confirm&&this.setState({confirm:``}),this.confirmCallback&&this.confirmCallback(e),this.confirmCallback=null},text:this.state.confirm},`dialogConfirm`):null,this.renderPasswordDialog(),e]},`main`)}render(){if(!this.state.ready)return C(k,{injectFirst:!0,children:C(te,{theme:this.state.theme,children:C(lt,{themeType:this.state.themeType})})});let e;return e=this.state.menuOpened?V(Pt,{direction:Nt.Horizontal,initialSizes:this.state.splitSizes,minWidths:[270,400],onResizeFinished:(e,t)=>{this.setState({splitSizes:t}),window.localStorage.setItem(`JS.splitSizes`,JSON.stringify(t))},gutterClassName:this.state.themeType===`dark`?`Dark visGutter`:`Light visGutter`,children:[C(`div`,{style:Op.mainDiv,children:C(ya,{password:this.state.password,debugMode:this.state.debugMode,onDebugInstance:e=>this.setState({debugInstance:e,debugMode:!!e}),scripts:this.scripts,scriptsHash:this.state.scriptsHash,instances:this.state.instances,instanceHosts:this.state.instanceHosts,onRename:this.onRename.bind(this),socket:this.socket,selectId:this.state.menuSelectId,onEdit:this.onEdit.bind(this),expertMode:this.state.expertMode,themeName:this.state.themeName,onThemeChange:e=>{Re.setThemeName(e);let t=Re.getThemeType(e);this.setState({themeName:e,themeType:t},()=>this.toggleTheme(e))},runningInstances:this.state.runningInstances,onExpertModeChange:e=>this.onExpertModeChange(e),onDelete:this.onDelete.bind(this),onAddNew:this.onAddNew.bind(this),onEnableDisable:this.onEnableDisable.bind(this),onExport:this.onExport.bind(this),width:500,onImport:()=>this.setState({importFile:!0}),onSearch:e=>this.setState({searchText:e}),version:this.props.version,changedScripts:this.changedScripts},`sidemenu`)},`menu`),this.renderMain()]}):this.renderMain(),C(k,{injectFirst:!0,children:V(te,{theme:this.state.theme,children:[C(He,{theme:this.state.theme}),C(`div`,{style:Op.root,children:C(Ht,{socket:this.socket,children:e})})]})})}};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 Ap(){`serviceWorker`in navigator&&navigator.serviceWorker.ready.then(e=>{e.unregister()})}var jp={name:`js`,version:`10.0.0`,private:!0,type:`module`,dependencies:{"@blockly/field-colour":`^5.0.19`,"@blockly/field-multilineinput":`^5.0.17`,"@devbookhq/splitter":`^1.4.2`,"@emotion/react":`^11.14.0`,"@emotion/styled":`^11.14.1`,"@iobroker/gui-components":`^10.0.12`,"@iobroker/javascript-rules-dev":`^1.0.2`,"@iobroker/type-detector":`^5.0.15`,"@iobroker/types":`^7.2.2`,"@module-federation/runtime":`^2.8.1`,"@module-federation/vite":`^1.20.1`,"@mui/icons-material":`^9.2.0`,"@mui/material":`^9.2.0`,"@mui/x-date-pickers":`^9.10.1`,"@sentry/browser":`^10.69.0`,"@types/lodash":`^4.17.25`,"@types/react":`^19.2.18`,"@types/react-dom":`^19.2.4`,"@types/reactour":`^1.18.5`,"@vitejs/plugin-react":`^6.0.5`,blockly:`^11.2.2`,jszip:`^3.10.1`,moment:`^2.30.1`,"monaco-editor":`~0.56.0`,openai:`^7.3.0`,react:`^19.2.8`,"react-bem-helper":`^1.4.1`,"react-dnd":`^16.0.1`,"react-dnd-html5-backend":`^16.0.1`,"react-dnd-touch-backend":`^16.0.1`,"react-dom":`^19.2.8`,"react-dropzone":`^20.0.0`,"react-fullscreen":`^0.1.0`,"react-i18next":`^17.0.11`,"react-icons":`^5.7.0`,"react-json-view":`^1.21.3`,"react-monaco-editor":`^0.59.0`,"react-splitter-layout":`^4.0.0`,"react-text-mask":`^5.5.0`,"react-treeview-mui":`^0.1.2`,reactour:`^1.19.4`,sass:`^1.102.0`,"styled-components":`^6.4.4`,suncalc2:`^1.8.1`,typescript:`~6.0.3`,vite:`^8.2.0`,"vite-plugin-commonjs":`^0.10.4`},scripts:{start:`vite`,lint:`eslint -c eslint.config.mjs`,build:`tsc && vite build`,preview:`vite preview --port 3000`,tsc:`tsc -p tsconfig.json`,test:`vitest run`,"test:watch":`vitest`,npm:`npm i -f`},eslintConfig:{extends:`react-app`},browserslist:[`>0.2%`,`not dead`,`not ie <= 11`,`not op_mini all`],devDependencies:{jsdom:`^30.0.1`,vitest:`^4.1.10`}},Mp;(function(e){e.mouse=`mouse`,e.touch=`touch`,e.keyboard=`keyboard`})(Mp||={});var Np=class{get delay(){return this.args.delay??0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){return this.args.ignoreContextMenu??!1}get enableHoverOutsideTarget(){return this.args.enableHoverOutsideTarget??!1}get enableKeyboardEvents(){return this.args.enableKeyboardEvents??!1}get enableMouseEvents(){return this.args.enableMouseEvents??!1}get enableTouchEvents(){return this.args.enableTouchEvents??!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,t;return((e=this.args)==null?void 0:e.delayTouchStart)??((t=this.args)==null?void 0:t.delay)??0}get delayMouseStart(){var e,t;return((e=this.args)==null?void 0:e.delayMouseStart)??((t=this.args)==null?void 0:t.delay)??0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<`u`)return window}get document(){var e;if((e=this.context)!=null&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)==null?void 0:e.rootElement)||this.document}constructor(e,t){this.args=e,this.context=t}};function Pp(e,t,n,r){return Math.sqrt(Math.abs(n-e)**2+Math.abs(r-t)**2)}function Fp(e,t,n,r,i){if(!i)return!1;let a=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let e=0;e<i.length;++e){let t=i[e];if(t&&(t.start==null||a>=t.start)&&(t.end==null||a<=t.end))return!0}return!1}var Ip={Left:1,Right:2,Center:4},Lp={Left:0,Center:1,Right:2};function Rp(e){return e.button===void 0||e.button===Lp.Left}function zp(e){return e.buttons===void 0||(e.buttons&Ip.Left)===0}function Bp(e){return!!e.targetTouches}var Vp=1;function Hp(e){let t=e.nodeType===Vp?e:e.parentElement;if(!t)return;let{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function Up(e,t){if(e.targetTouches.length===1)return Wp(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return Wp(e.touches[0])}function Wp(e,t){return Bp(e)?Up(e,t):{x:e.clientX,y:e.clientY}}var Gp=(()=>{let e=!1;try{addEventListener(`test`,()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),Kp={[Mp.mouse]:{start:`mousedown`,move:`mousemove`,end:`mouseup`,contextmenu:`contextmenu`},[Mp.touch]:{start:`touchstart`,move:`touchmove`,end:`touchend`},[Mp.keyboard]:{keydown:`keydown`}},qp=class e{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)==null?void 0:e.length)||0}}get document(){return this.options.document}setup(){let t=this.options.rootElement;t&&(J(!e.isSetUp,`Cannot have two Touch backends at the same time.`),e.isSetUp=!0,this.addEventListener(t,`start`,this.getTopMoveStartHandler()),this.addEventListener(t,`start`,this.handleTopMoveStartCapture,!0),this.addEventListener(t,`move`,this.handleTopMove),this.addEventListener(t,`move`,this.handleTopMoveCapture,!0),this.addEventListener(t,`end`,this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,`contextmenu`,this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,`keydown`,this.handleCancelOnEscape,!0))}teardown(){let t=this.options.rootElement;t&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,`start`,this.handleTopMoveStartCapture,!0),this.removeEventListener(t,`start`,this.handleTopMoveStart),this.removeEventListener(t,`move`,this.handleTopMoveCapture,!0),this.removeEventListener(t,`move`,this.handleTopMove),this.removeEventListener(t,`end`,this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,`contextmenu`,this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,`keydown`,this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,t,n,r=!1){let i=Gp?{capture:r,passive:!1}:r;this.listenerTypes.forEach(function(r){let a=Kp[r][t];a&&e.addEventListener(a,n,i)})}removeEventListener(e,t,n,r=!1){let i=Gp?{capture:r,passive:!1}:r;this.listenerTypes.forEach(function(r){let a=Kp[r][t];a&&e.removeEventListener(a,n,i)})}connectDragSource(e,t){let n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,`start`,n),()=>{this.sourceNodes.delete(e),this.removeEventListener(t,`start`,n)}}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,t){let n=this.options.rootElement;if(!this.document||!n)return()=>{};let r=r=>{if(!this.document||!n||!this.monitor.isDragging())return;let i;switch(r.type){case Kp.mouse.move:i={x:r.clientX,y:r.clientY};break;case Kp.touch.move:var a,o;i={x:((a=r.touches[0])==null?void 0:a.clientX)||0,y:((o=r.touches[0])==null?void 0:o.clientY)||0}}let s=i==null?void 0:this.document.elementFromPoint(i.x,i.y),c=s&&t.contains(s);if(s===t||c)return this.handleMove(r,e)};return this.addEventListener(this.document.body,`move`,r),this.targetNodes.set(e,t),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,`move`,r))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display=`none`,this.draggedSourceNode.removeAttribute(`data-reactid`),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,t,n){this.getSourceClientOffset=e=>{let t=this.sourceNodes.get(e);return t&&Hp(t)},this.handleTopMoveStartCapture=e=>{Rp(e)&&(this.moveStartSourceIds=[])},this.handleMoveStart=e=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=e=>{if(!Rp(e))return;let t=Wp(e);t&&(Bp(e)&&(this.lastTargetTouchFallback=e.targetTouches[0]),this._mouseClientOffset=t),this.waitingForDelay=!1},this.handleTopMoveStartDelay=e=>{if(!Rp(e))return;let t=e.type===Kp.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,e),t),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(e,t)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(t)},this.handleTopMove=e=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;let{moveStartSourceIds:t,dragOverTargetIds:n}=this,r=this.options.enableHoverOutsideTarget,i=Wp(e,this.lastTargetTouchFallback);if(!i)return;if(this._isScrolling||!this.monitor.isDragging()&&Fp(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,i.x,i.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty(`x`)&&t&&Pp(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,i.x,i.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(t,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;let a=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(a),this.actions.publishDragSource(),e.cancelable&&e.preventDefault();let o=(n||[]).map(e=>this.targetNodes.get(e)).filter(e=>!!e),s=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(i.x,i.y,o):this.document.elementsFromPoint(i.x,i.y),c=[];for(let e in s){if(!s.hasOwnProperty(e))continue;let t=s[e];for(t!=null&&c.push(t);t;)t=t.parentElement,t&&c.indexOf(t)===-1&&c.push(t)}let l=c.filter(e=>o.indexOf(e)>-1).map(e=>this._getDropTargetId(e)).filter(e=>!!e).filter((e,t,n)=>n.indexOf(e)===t);if(r)for(let e in this.targetNodes){let t=this.targetNodes.get(e);if(a&&t&&t.contains(a)&&l.indexOf(e)===-1){l.unshift(e);break}}l.reverse(),this.actions.hover(l,{clientOffset:i})},this._getDropTargetId=e=>{let t=this.targetNodes.keys(),n=t.next();for(;n.done===!1;){let r=n.value;if(e===this.targetNodes.get(r))return r;n=t.next()}},this.handleTopMoveEndCapture=e=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,zp(e)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}e.cancelable&&e.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=e=>{e.key===`Escape`&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new Np(n,t),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(Mp.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(Mp.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(Mp.keyboard)}},Jp=function(e,t={},n={}){return new qp(e,t,n)};K(),window.GenericBlock=It,window.adapterName=`javascript`,window.sentryDSN=`https://504499a725eb4898930d3b9e9da95740@sentry.iobroker.net/56`,console.log(`iobroker.${window.adapterName}@${jp.version}`);var Yp=window.innerWidth<600,Xp=document.getElementById(`root`);Xp&&Mt(Xp).render(C(ii,{backend:Yp?Jp:Fi,children:C(kp,{version:jp.version})})),Ap();var Zp=window.loadDynamicScript;Zp&&Zp(window.location.port===`3000`?`${window.location.protocol}//${window.location.hostname}:8081/lib/js/socket.io.js`:`./../../lib/js/socket.io.js`,()=>Zp(`vs/loader.js`,()=>Zp(`vs/configure.js`,()=>typeof window.socketLoadedHandler==`function`&&window.socketLoadedHandler())));
|