diff --git a/lib/SvelteUi/app/dist/index.css b/lib/SvelteUi/app/dist/index.css index 8e57af98..3f33fb91 100644 --- a/lib/SvelteUi/app/dist/index.css +++ b/lib/SvelteUi/app/dist/index.css @@ -1 +1 @@ -/*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.inset-0{inset:0}.z-50{z-index:50}.col-span-2{grid-column:span 2/span 2}.float-right{float:right}.clear-both{clear:both}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-3{margin:.75rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.my-auto{margin-bottom:auto;margin-top:auto}.mb-1{margin-bottom:.25rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-6{height:1.5rem}.h-64{height:16rem}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/4{width:25%}.w-2\/3{width:66.666667%}.w-40{width:10rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-96{width:24rem}.w-full{width:100%}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:.5}.p-2{padding:.5rem}.p-3{padding:.75rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.pb-4{padding-bottom:1rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-5{padding-left:1.25rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.text-center{text-align:center}.text-right{text-align:right}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.capitalize{text-transform:capitalize}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hdr{--tw-bg-opacity:1;background-color:rgb(124 58 237/var(--tw-bg-opacity));border-radius:.375rem;margin-left:.5rem;margin-right:.5rem;padding:.25rem}:is(.dark .hdr){--tw-bg-opacity:1;background-color:rgb(76 29 149/var(--tw-bg-opacity))}.logo{height:2rem;width:2rem}.cnt{--tw-bg-opacity:1;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.25rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);margin:.5rem;padding:.5rem}:is(.dark .cnt){--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow-color:#111827;--tw-shadow:var(--tw-shadow-colored);--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));background-color:rgb(31 41 55/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.cnt{min-height:268px}.gwf{height:16rem}@media (min-width:640px){.gwf{grid-column:span 2/span 2}}@media (min-width:768px){.gwf{grid-column:span 3/span 3}}@media (min-width:1024px){.gwf{grid-column:span 4/span 4}}@media (min-width:1280px){.gwf{grid-column:span 5/span 5}}@media (min-width:1536px){.gwf{grid-column:span 6/span 6}}.in-pre{--tw-border-opacity:1;--tw-bg-opacity:1;align-items:center;background-color:rgb(243 244 246/var(--tw-bg-opacity));border-bottom-left-radius:.375rem;border-color:rgb(209 213 219/var(--tw-border-opacity));border-top-left-radius:.375rem;border-width:1px 0 1px 1px;display:flex;font-size:.875rem;line-height:1.25rem;padding-left:.75rem;padding-right:.75rem;white-space:nowrap}:is(.dark .in-pre){--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity));border-color:rgb(31 41 55/var(--tw-border-opacity))}.in-post{--tw-border-opacity:1;--tw-bg-opacity:1;align-items:center;background-color:rgb(243 244 246/var(--tw-bg-opacity));border-bottom-right-radius:.375rem;border-color:rgb(209 213 219/var(--tw-border-opacity));border-top-right-radius:.375rem;border-width:1px 1px 1px 0;display:flex;font-size:.875rem;line-height:1.25rem;padding-left:.75rem;padding-right:.75rem;white-space:nowrap}:is(.dark .in-post){--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity));border-color:rgb(31 41 55/var(--tw-border-opacity))}.in-txt{--tw-border-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);border-color:rgb(209 213 219/var(--tw-border-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:2.5rem}.in-txt:disabled{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));cursor:not-allowed}:is(.dark .in-txt){--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);--tw-drop-shadow:drop-shadow(0 10px 8px rgba(0,0,0,.04)) drop-shadow(0 4px 3px rgba(0,0,0,.1));background-color:rgb(55 65 81/var(--tw-bg-opacity));border-color:rgb(31 41 55/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(255 255 255/var(--tw-text-opacity));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:is(.dark .in-txt:focus){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(.dark .in-txt:disabled){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.in-f{--tw-border-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);border-bottom-left-radius:.375rem;border-color:rgb(209 213 219/var(--tw-border-opacity));border-top-left-radius:.375rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:2.5rem}.in-f:disabled{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity));cursor:not-allowed}:is(.dark .in-f){--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);--tw-drop-shadow:drop-shadow(0 10px 8px rgba(0,0,0,.04)) drop-shadow(0 4px 3px rgba(0,0,0,.1));background-color:rgb(55 65 81/var(--tw-bg-opacity));border-color:rgb(31 41 55/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(255 255 255/var(--tw-text-opacity));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:is(.dark .in-f:focus){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(.dark .in-f:disabled){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.in-f:default{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.in-f:disabled{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}:is(.dark .in-f)::-moz-placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}:is(.dark .in-f)::placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}:is(.dark .in-f:default){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.in-m{--tw-border-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);border-color:rgb(209 213 219/var(--tw-border-opacity));border-left-width:0;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:2.5rem}.in-m:disabled{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));cursor:not-allowed}:is(.dark .in-m){--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);--tw-drop-shadow:drop-shadow(0 10px 8px rgba(0,0,0,.04)) drop-shadow(0 4px 3px rgba(0,0,0,.1));background-color:rgb(55 65 81/var(--tw-bg-opacity));border-color:rgb(31 41 55/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(255 255 255/var(--tw-text-opacity));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:is(.dark .in-m:focus){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(.dark .in-m:disabled){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.in-l{--tw-border-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);border-bottom-right-radius:.375rem;border-color:rgb(209 213 219/var(--tw-border-opacity));border-left-width:0;border-top-right-radius:.375rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:2.5rem}.in-l:disabled{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));cursor:not-allowed}:is(.dark .in-l){--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);--tw-drop-shadow:drop-shadow(0 10px 8px rgba(0,0,0,.04)) drop-shadow(0 4px 3px rgba(0,0,0,.1));background-color:rgb(55 65 81/var(--tw-bg-opacity));border-color:rgb(31 41 55/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(255 255 255/var(--tw-text-opacity));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:is(.dark .in-l:focus){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(.dark .in-l:disabled){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}:is(.dark .in-l)::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(255 255 255/var(--tw-placeholder-opacity))}:is(.dark .in-l)::placeholder{--tw-placeholder-opacity:1;color:rgb(255 255 255/var(--tw-placeholder-opacity))}.in-s{--tw-border-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);border-color:rgb(209 213 219/var(--tw-border-opacity));border-radius:.375rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:2.5rem;width:100%}.in-s:disabled{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));cursor:not-allowed}:is(.dark .in-s){--tw-border-opacity:1;--tw-bg-opacity:1;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);--tw-drop-shadow:drop-shadow(0 10px 8px rgba(0,0,0,.04)) drop-shadow(0 4px 3px rgba(0,0,0,.1));background-color:rgb(55 65 81/var(--tw-bg-opacity));border-color:rgb(31 41 55/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:is(.dark .in-s:focus){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(.dark .in-s:disabled){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.in-s::-moz-placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.in-s::placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}:is(.dark .in-s){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.tr{text-align:right}.bd-green{background-color:rgb(22 163 74/var(--tw-bg-opacity));color:rgb(220 252 231/var(--tw-text-opacity))}.bd-green,.bd-yellow{--tw-bg-opacity:1;--tw-text-opacity:1;border-radius:.25rem;font-size:.75rem;font-weight:600;line-height:1rem;margin-bottom:auto;margin-right:.5rem;margin-top:auto;padding:.125rem .625rem}.bd-yellow{background-color:rgb(202 138 4/var(--tw-bg-opacity));color:rgb(254 249 195/var(--tw-text-opacity))}.bd-red{background-color:rgb(220 38 38/var(--tw-bg-opacity));color:rgb(254 226 226/var(--tw-text-opacity))}.bd-blue,.bd-red{--tw-bg-opacity:1;--tw-text-opacity:1;border-radius:.25rem;font-size:.75rem;font-weight:600;line-height:1rem;margin-bottom:auto;margin-right:.5rem;margin-top:auto;padding:.125rem .625rem}.bd-blue{background-color:rgb(37 99 235/var(--tw-bg-opacity));color:rgb(219 234 254/var(--tw-text-opacity))}.bd-gray{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity));border-radius:.25rem;color:rgb(243 244 246/var(--tw-text-opacity));font-size:.75rem;font-weight:600;line-height:1rem;margin-bottom:auto;margin-right:.5rem;margin-top:auto;padding:.125rem .625rem}.bd-on{background-color:rgb(22 163 74/var(--tw-bg-opacity));color:rgb(220 252 231/var(--tw-text-opacity))}.bd-off,.bd-on{--tw-bg-opacity:1;--tw-text-opacity:1;border-radius:.25rem;font-size:.75rem;font-weight:600;line-height:1rem;margin-bottom:auto;margin-right:.25rem;margin-top:auto;padding:.125rem .25rem}.bd-off{background-color:rgb(75 85 99/var(--tw-bg-opacity));color:rgb(243 244 246/var(--tw-text-opacity))}.btn-pri{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity));border-radius:.25rem;color:rgb(255 255 255/var(--tw-text-opacity));margin-right:.75rem;padding:.5rem 1rem}.btn-red{background-color:rgb(220 38 38/var(--tw-bg-opacity))}.btn-red,.btn-yellow{--tw-bg-opacity:1;--tw-text-opacity:1;border-radius:.25rem;color:rgb(255 255 255/var(--tw-text-opacity));margin-left:.5rem;padding:.5rem 1rem}.btn-yellow{background-color:rgb(202 138 4/var(--tw-bg-opacity))}.btn-pri-sm{background-color:rgb(37 99 235/var(--tw-bg-opacity))}.btn-pri-sm,.btn-yellow-sm{--tw-bg-opacity:1;--tw-text-opacity:1;border-radius:.25rem;color:rgb(255 255 255/var(--tw-text-opacity));font-size:.75rem;line-height:1rem;margin-right:.75rem;padding:.25rem .5rem}.btn-yellow-sm{background-color:rgb(202 138 4/var(--tw-bg-opacity))}.pl-root{position:relative}.pl-ov{left:25%;position:absolute;text-align:center;top:27%;width:50%}.pl-val{font-size:1.7rem}.pl-unt{color:gray;font-size:1rem}:is(.dark .pl-unt){--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.pl-sub{font-size:1rem;padding-top:10px}.pl-snt{color:gray;font-size:.7rem}:is(.dark .pl-snt){--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.pl-lab{font-size:1rem}.chart{height:100%;margin:0 auto;width:100%}svg{position:relative;width:100%}.tick{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));font-family:Helvetica,Arial;font-size:.85em;font-weight:200}:is(.dark .tick){fill:#fff}.tick line{stroke:#e2e2e2;stroke-dasharray:2}.tick text{fill:#666;text-anchor:start}:is(.dark .tick text){fill:#fff}.tick.tick-0 line{stroke-dasharray:0}.tick.tick-green line{stroke:#23ac05!important}.tick.tick-green text{fill:#23ac05!important}.tick.tick-orange line{stroke:#b19601!important}.tick.tick-orange text{fill:#b19601!important}.x-axis .tick text{text-anchor:middle}.bars rect{stroke:#000;stroke-opacity:.25;opacity:.9}.bars text{display:block;font-family:Helvetica,Arial;font-size:.85em;text-align:center}.hover\:text-blue-800:hover{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity))}:is(.dark .dark\:bg-gray-600){--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}:is(.dark .dark\:bg-opacity-80){--tw-bg-opacity:.8}:is(.dark .dark\:text-white){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}@media (min-width:640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1024px){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1280px){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width:1536px){.\32xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}} +/*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.inset-0{top:0;right:0;bottom:0;left:0}.z-50{z-index:50}.col-span-2{grid-column:span 2/span 2}.float-right{float:right}.clear-both{clear:both}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-3{margin:.75rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.my-auto{margin-bottom:auto;margin-top:auto}.mb-1{margin-bottom:.25rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-6{height:1.5rem}.h-64{height:16rem}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/4{width:25%}.w-2\/3{width:66.666667%}.w-40{width:10rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-96{width:24rem}.w-full{width:100%}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:.5}.p-2{padding:.5rem}.p-3{padding:.75rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.pb-4{padding-bottom:1rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-5{padding-left:1.25rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.text-center{text-align:center}.text-right{text-align:right}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.capitalize{text-transform:capitalize}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hdr{--tw-bg-opacity:1;background-color:rgb(124 58 237/var(--tw-bg-opacity));border-radius:.375rem;margin-left:.5rem;margin-right:.5rem;padding:.25rem}:is(.dark .hdr){--tw-bg-opacity:1;background-color:rgb(76 29 149/var(--tw-bg-opacity))}.logo{height:2rem;width:2rem}.cnt{--tw-bg-opacity:1;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.25rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);margin:.5rem;padding:.5rem}:is(.dark .cnt){--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow-color:#111827;--tw-shadow:var(--tw-shadow-colored);--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));background-color:rgb(31 41 55/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.cnt{min-height:268px}.gwf{height:16rem}@media (min-width:640px){.gwf{grid-column:span 2/span 2}}@media (min-width:768px){.gwf{grid-column:span 3/span 3}}@media (min-width:1024px){.gwf{grid-column:span 4/span 4}}@media (min-width:1280px){.gwf{grid-column:span 5/span 5}}@media (min-width:1536px){.gwf{grid-column:span 6/span 6}}.in-pre{--tw-border-opacity:1;--tw-bg-opacity:1;align-items:center;background-color:rgb(243 244 246/var(--tw-bg-opacity));border-bottom-left-radius:.375rem;border-color:rgb(209 213 219/var(--tw-border-opacity));border-top-left-radius:.375rem;border-width:1px 0 1px 1px;display:flex;font-size:.875rem;line-height:1.25rem;padding-left:.75rem;padding-right:.75rem;white-space:nowrap}:is(.dark .in-pre){--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity));border-color:rgb(31 41 55/var(--tw-border-opacity))}.in-post{--tw-border-opacity:1;--tw-bg-opacity:1;align-items:center;background-color:rgb(243 244 246/var(--tw-bg-opacity));border-bottom-right-radius:.375rem;border-color:rgb(209 213 219/var(--tw-border-opacity));border-top-right-radius:.375rem;border-width:1px 1px 1px 0;display:flex;font-size:.875rem;line-height:1.25rem;padding-left:.75rem;padding-right:.75rem;white-space:nowrap}:is(.dark .in-post){--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity));border-color:rgb(31 41 55/var(--tw-border-opacity))}.in-txt{--tw-border-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);border-color:rgb(209 213 219/var(--tw-border-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:2.5rem}.in-txt:disabled{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));cursor:not-allowed}:is(.dark .in-txt){--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);--tw-drop-shadow:drop-shadow(0 10px 8px rgba(0,0,0,.04)) drop-shadow(0 4px 3px rgba(0,0,0,.1));background-color:rgb(55 65 81/var(--tw-bg-opacity));border-color:rgb(31 41 55/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(255 255 255/var(--tw-text-opacity));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:is(.dark .in-txt:focus){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(.dark .in-txt:disabled){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.in-f{--tw-border-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);border-bottom-left-radius:.375rem;border-color:rgb(209 213 219/var(--tw-border-opacity));border-top-left-radius:.375rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:2.5rem}.in-f:disabled{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity));cursor:not-allowed}:is(.dark .in-f){--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);--tw-drop-shadow:drop-shadow(0 10px 8px rgba(0,0,0,.04)) drop-shadow(0 4px 3px rgba(0,0,0,.1));background-color:rgb(55 65 81/var(--tw-bg-opacity));border-color:rgb(31 41 55/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(255 255 255/var(--tw-text-opacity));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:is(.dark .in-f:focus){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(.dark .in-f:disabled){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.in-f:default{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.in-f:disabled{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}:is(.dark .in-f)::-moz-placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}:is(.dark .in-f)::placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}:is(.dark .in-f:default){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.in-m{--tw-border-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);border-color:rgb(209 213 219/var(--tw-border-opacity));border-left-width:0;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:2.5rem}.in-m:disabled{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));cursor:not-allowed}:is(.dark .in-m){--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);--tw-drop-shadow:drop-shadow(0 10px 8px rgba(0,0,0,.04)) drop-shadow(0 4px 3px rgba(0,0,0,.1));background-color:rgb(55 65 81/var(--tw-bg-opacity));border-color:rgb(31 41 55/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(255 255 255/var(--tw-text-opacity));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:is(.dark .in-m:focus){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(.dark .in-m:disabled){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.in-l{--tw-border-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);border-bottom-right-radius:.375rem;border-color:rgb(209 213 219/var(--tw-border-opacity));border-left-width:0;border-top-right-radius:.375rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:2.5rem}.in-l:disabled{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));cursor:not-allowed}:is(.dark .in-l){--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);--tw-drop-shadow:drop-shadow(0 10px 8px rgba(0,0,0,.04)) drop-shadow(0 4px 3px rgba(0,0,0,.1));background-color:rgb(55 65 81/var(--tw-bg-opacity));border-color:rgb(31 41 55/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(255 255 255/var(--tw-text-opacity));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:is(.dark .in-l:focus){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(.dark .in-l:disabled){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}:is(.dark .in-l)::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(255 255 255/var(--tw-placeholder-opacity))}:is(.dark .in-l)::placeholder{--tw-placeholder-opacity:1;color:rgb(255 255 255/var(--tw-placeholder-opacity))}.in-s{--tw-border-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);border-color:rgb(209 213 219/var(--tw-border-opacity));border-radius:.375rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:2.5rem;width:100%}.in-s:disabled{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));cursor:not-allowed}:is(.dark .in-s){--tw-border-opacity:1;--tw-bg-opacity:1;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);--tw-drop-shadow:drop-shadow(0 10px 8px rgba(0,0,0,.04)) drop-shadow(0 4px 3px rgba(0,0,0,.1));background-color:rgb(55 65 81/var(--tw-bg-opacity));border-color:rgb(31 41 55/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:is(.dark .in-s:focus){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(.dark .in-s:disabled){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.in-s::-moz-placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.in-s::placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}:is(.dark .in-s){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.tr{text-align:right}.bd-green{background-color:rgb(22 163 74/var(--tw-bg-opacity));color:rgb(220 252 231/var(--tw-text-opacity))}.bd-green,.bd-yellow{--tw-bg-opacity:1;--tw-text-opacity:1;border-radius:.25rem;font-size:.75rem;font-weight:600;line-height:1rem;margin-bottom:auto;margin-right:.5rem;margin-top:auto;padding:.125rem .625rem}.bd-yellow{background-color:rgb(202 138 4/var(--tw-bg-opacity));color:rgb(254 249 195/var(--tw-text-opacity))}.bd-red{background-color:rgb(220 38 38/var(--tw-bg-opacity));color:rgb(254 226 226/var(--tw-text-opacity))}.bd-blue,.bd-red{--tw-bg-opacity:1;--tw-text-opacity:1;border-radius:.25rem;font-size:.75rem;font-weight:600;line-height:1rem;margin-bottom:auto;margin-right:.5rem;margin-top:auto;padding:.125rem .625rem}.bd-blue{background-color:rgb(37 99 235/var(--tw-bg-opacity));color:rgb(219 234 254/var(--tw-text-opacity))}.bd-gray{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity));border-radius:.25rem;color:rgb(243 244 246/var(--tw-text-opacity));font-size:.75rem;font-weight:600;line-height:1rem;margin-bottom:auto;margin-right:.5rem;margin-top:auto;padding:.125rem .625rem}.bd-on{background-color:rgb(22 163 74/var(--tw-bg-opacity));color:rgb(220 252 231/var(--tw-text-opacity))}.bd-off,.bd-on{--tw-bg-opacity:1;--tw-text-opacity:1;border-radius:.25rem;font-size:.75rem;font-weight:600;line-height:1rem;margin-bottom:auto;margin-right:.25rem;margin-top:auto;padding:.125rem .25rem}.bd-off{background-color:rgb(75 85 99/var(--tw-bg-opacity));color:rgb(243 244 246/var(--tw-text-opacity))}.btn-pri{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity));border-radius:.25rem;color:rgb(255 255 255/var(--tw-text-opacity));margin-right:.75rem;padding:.5rem 1rem}.btn-red{background-color:rgb(220 38 38/var(--tw-bg-opacity))}.btn-red,.btn-yellow{--tw-bg-opacity:1;--tw-text-opacity:1;border-radius:.25rem;color:rgb(255 255 255/var(--tw-text-opacity));margin-left:.5rem;padding:.5rem 1rem}.btn-yellow{background-color:rgb(202 138 4/var(--tw-bg-opacity))}.btn-pri-sm{background-color:rgb(37 99 235/var(--tw-bg-opacity))}.btn-pri-sm,.btn-yellow-sm{--tw-bg-opacity:1;--tw-text-opacity:1;border-radius:.25rem;color:rgb(255 255 255/var(--tw-text-opacity));font-size:.75rem;line-height:1rem;margin-right:.75rem;padding:.25rem .5rem}.btn-yellow-sm{background-color:rgb(202 138 4/var(--tw-bg-opacity))}.pl-root{position:relative}.pl-ov{left:25%;position:absolute;text-align:center;top:27%;width:50%}.pl-val{font-size:1.7rem}.pl-unt{color:gray;font-size:1rem}:is(.dark .pl-unt){--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.pl-sub{font-size:1rem;padding-top:10px}.pl-snt{color:gray;font-size:.7rem}:is(.dark .pl-snt){--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.pl-lab{font-size:1rem}.chart{height:100%;margin:0 auto;width:100%}svg{position:relative;width:100%}.tick{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));font-family:Helvetica,Arial;font-size:.85em;font-weight:200}:is(.dark .tick){fill:#fff}.tick line{stroke:#e2e2e2;stroke-dasharray:2}.tick text{fill:#666;text-anchor:start}:is(.dark .tick text){fill:#fff}.tick.tick-0 line{stroke-dasharray:0}.tick.tick-green line{stroke:#23ac05!important}.tick.tick-green text{fill:#23ac05!important}.tick.tick-orange line{stroke:#b19601!important}.tick.tick-orange text{fill:#b19601!important}.x-axis .tick text{text-anchor:middle}.bars rect{stroke:#000;stroke-opacity:.25;opacity:.9}.bars text{display:block;font-family:Helvetica,Arial;font-size:.85em;text-align:center}.hover\:text-blue-800:hover{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity))}:is(.dark .dark\:bg-gray-600){--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}:is(.dark .dark\:bg-opacity-80){--tw-bg-opacity:.8}:is(.dark .dark\:text-white){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}@media (min-width:640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1024px){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1280px){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width:1536px){.\32xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}} diff --git a/lib/SvelteUi/app/dist/index.js b/lib/SvelteUi/app/dist/index.js index 8b6e8214..26e46726 100644 --- a/lib/SvelteUi/app/dist/index.js +++ b/lib/SvelteUi/app/dist/index.js @@ -1,7 +1,7 @@ -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function l(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerpolicy&&(s.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?s.credentials="include":i.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=l(i);fetch(i.href,s)}})();function Ze(){}function yl(t,e){for(const l in e)t[l]=e[l];return t}function Wf(t){return t()}function bs(){return Object.create(null)}function Ht(t){t.forEach(Wf)}function zi(t){return typeof t=="function"}function Dt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let ti;function fi(t,e){return ti||(ti=document.createElement("a")),ti.href=e,t===ti.href}function ju(t){return Object.keys(t).length===0}function Wi(t,...e){if(t==null)return Ze;const l=t.subscribe(...e);return l.unsubscribe?()=>l.unsubscribe():l}function cn(t){let e;return Wi(t,l=>e=l)(),e}function Hl(t,e,l){t.$$.on_destroy.push(Wi(e,l))}function Gi(t,e,l,n){if(t){const i=Gf(t,e,l,n);return t[0](i)}}function Gf(t,e,l,n){return t[1]&&n?yl(l.ctx.slice(),t[1](n(e))):l.ctx}function Vi(t,e,l,n){if(t[2]&&n){const i=t[2](n(l));if(e.dirty===void 0)return i;if(typeof i=="object"){const s=[],a=Math.max(e.dirty.length,i.length);for(let r=0;r32){const e=[],l=t.ctx.length/32;for(let n=0;nt.removeEventListener(e,l,n)}function ln(t){return function(e){return e.preventDefault(),t.call(this,e)}}function c(t,e,l){l==null?t.removeAttribute(e):t.getAttribute(e)!==l&&t.setAttribute(e,l)}const Hu=["width","height"];function mn(t,e){const l=Object.getOwnPropertyDescriptors(t.__proto__);for(const n in e)e[n]==null?t.removeAttribute(n):n==="style"?t.style.cssText=e[n]:n==="__value"?t.value=t[n]=e[n]:l[n]&&l[n].set&&Hu.indexOf(n)===-1?t[n]=e[n]:c(t,n,e[n])}function $e(t){return t===""?null:+t}function zu(t){return Array.from(t.childNodes)}function q(t,e){e=""+e,t.data!==e&&(t.data=e)}function Wu(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Gu(t,e,l){~yu.indexOf(l)?Wu(t,e):q(t,e)}function Me(t,e){t.value=e==null?"":e}function Vn(t,e,l,n){l==null?t.style.removeProperty(e):t.style.setProperty(e,l,n?"important":"")}function ot(t,e,l){for(let n=0;n{a.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=me(n.contentWindow,"resize",e),e()}),o(t,n),()=>{(i||s&&n.contentWindow)&&s(),P(n)}}function Ku(t,e,{bubbles:l=!1,cancelable:n=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,l,n,e),i}function gs(t,e){return new t(e)}let Qn;function Kn(t){Qn=t}function Jn(){if(!Qn)throw new Error("Function called outside component initialization");return Qn}function Vf(t){Jn().$$.on_mount.push(t)}function Yu(t){Jn().$$.on_destroy.push(t)}function Qu(){const t=Jn();return(e,l,{cancelable:n=!1}={})=>{const i=t.$$.callbacks[e];if(i){const s=Ku(e,l,{cancelable:n});return i.slice().forEach(a=>{a.call(t,s)}),!s.defaultPrevented}return!0}}function Yn(t,e){return Jn().$$.context.set(t,e),e}function Xl(t){return Jn().$$.context.get(t)}const an=[],ci=[];let un=[];const ks=[],Kf=Promise.resolve();let Mi=!1;function Yf(){Mi||(Mi=!0,Kf.then(Qf))}function Xu(){return Yf(),Kf}function Wt(t){un.push(t)}const vi=new Set;let sn=0;function Qf(){if(sn!==0)return;const t=Qn;do{try{for(;snt.indexOf(n)===-1?e.push(n):l.push(n)),l.forEach(n=>n()),un=e}const oi=new Set;let $l;function bt(){$l={r:0,c:[],p:$l}}function gt(){$l.r||Ht($l.c),$l=$l.p}function J(t,e){t&&t.i&&(oi.delete(t),t.i(e))}function ie(t,e,l,n){if(t&&t.o){if(oi.has(t))return;oi.add(t),$l.c.push(()=>{oi.delete(t),n&&(l&&t.d(1),n())}),t.o(e)}else n&&n()}function Xf(t,e){const l={},n={},i={$$scope:1};let s=t.length;for(;s--;){const a=t[s],r=e[s];if(r){for(const f in a)f in r||(n[f]=1);for(const f in r)i[f]||(l[f]=r[f],i[f]=1);t[s]=r}else for(const f in a)i[f]=1}for(const a in n)a in l||(l[a]=void 0);return l}function ws(t){return typeof t=="object"&&t!==null?t:{}}function Oe(t){t&&t.c()}function Le(t,e,l,n){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,l),n||Wt(()=>{const a=t.$$.on_mount.map(Wf).filter(zi);t.$$.on_destroy?t.$$.on_destroy.push(...a):Ht(a),t.$$.on_mount=[]}),s.forEach(Wt)}function Ie(t,e){const l=t.$$;l.fragment!==null&&(Ju(l.after_update),Ht(l.on_destroy),l.fragment&&l.fragment.d(e),l.on_destroy=l.fragment=null,l.ctx=[])}function $u(t,e){t.$$.dirty[0]===-1&&(an.push(t),Yf(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const b=v.length?v[0]:d;return u.ctx&&i(u.ctx[_],u.ctx[_]=b)&&(!u.skip_bound&&u.bound[_]&&u.bound[_](b),m&&$u(t,_)),d}):[],u.update(),m=!0,Ht(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const _=zu(e.target);u.fragment&&u.fragment.l(_),_.forEach(P)}else u.fragment&&u.fragment.c();e.intro&&J(t.$$.fragment),Le(t,e.target,e.anchor,e.customElement),Qf()}Kn(f)}class It{$destroy(){Ie(this,1),this.$destroy=Ze}$on(e,l){if(!zi(l))return Ze;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(l),()=>{const i=n.indexOf(l);i!==-1&&n.splice(i,1)}}$set(e){this.$$set&&!ju(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Cs=t=>typeof t>"u",Zf=t=>typeof t=="function",Jf=t=>typeof t=="number";function xu(t){return!t.defaultPrevented&&t.button===0&&!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function $f(){let t=0;return()=>t++}function er(){return Math.random().toString(36).substring(2)}const Zl=typeof window>"u";function xf(t,e,l){return t.addEventListener(e,l),()=>t.removeEventListener(e,l)}const eu=(t,e)=>t?{}:{style:e},Ni=t=>({"aria-hidden":"true",...eu(t,"display:none;")}),on=[];function tu(t,e){return{subscribe:nl(t,e).subscribe}}function nl(t,e=Ze){let l;const n=new Set;function i(r){if(Dt(t,r)&&(t=r,l)){const f=!on.length;for(const u of n)u[1](),on.push(u,t);if(f){for(let u=0;u{n.delete(u),n.size===0&&l&&(l(),l=null)}}return{set:i,update:s,subscribe:a}}function tr(t,e,l){const n=!Array.isArray(t),i=n?[t]:t,s=e.length<2;return tu(l,a=>{let r=!1;const f=[];let u=0,m=Ze;const _=()=>{if(u)return;m();const v=e(n?f[0]:f,a);s?a(v):m=zi(v)?v:Ze},d=i.map((v,b)=>Wi(v,h=>{f[b]=h,u&=~(1<{u|=1<`@@svnav-ctx__${t}`,Ti=$n("LOCATION"),_n=$n("ROUTER"),lu=$n("ROUTE"),lr=$n("ROUTE_PARAMS"),nr=$n("FOCUS_ELEM"),nu=/^:(.+)/,zn=(t,e,l)=>t.substr(e,l),Pi=(t,e)=>zn(t,0,e.length)===e,ir=t=>t==="",sr=t=>nu.test(t),iu=t=>t[0]==="*",or=t=>t.replace(/\*.*$/,""),su=t=>t.replace(/(^\/+|\/+$)/g,"");function zl(t,e=!1){const l=su(t).split("/");return e?l.filter(Boolean):l}const hi=(t,e)=>t+(e?`?${e}`:""),Xi=t=>`/${su(t)}`;function xn(...t){const e=n=>zl(n,!0).join("/"),l=t.map(e).join("/");return Xi(l)}const Zi=1,di=2,tn=3,ar=4,ou=5,fr=6,au=7,ur=8,rr=9,fu=10,uu=11,cr={[Zi]:"Link",[di]:"Route",[tn]:"Router",[ar]:"useFocus",[ou]:"useLocation",[fr]:"useMatch",[au]:"useNavigate",[ur]:"useParams",[rr]:"useResolvable",[fu]:"useResolve",[uu]:"navigate"},Ji=t=>cr[t];function mr(t,e){let l;return t===di?l=e.path?`path="${e.path}"`:"default":t===Zi?l=`to="${e.to}"`:t===tn&&(l=`basepath="${e.basepath||""}"`),`<${Ji(t)} ${l||""} />`}function _r(t,e,l,n){const i=l&&mr(n||t,l),s=i?` +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function l(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=l(i);fetch(i.href,s)}})();function Ke(){}function Sl(t,e){for(const l in e)t[l]=e[l];return t}function kf(t){return t()}function Xi(){return Object.create(null)}function Pt(t){t.forEach(kf)}function ki(t){return typeof t=="function"}function kt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Ln;function yn(t,e){return Ln||(Ln=document.createElement("a")),Ln.href=e,t===Ln.href}function vu(t){return Object.keys(t).length===0}function wi(t,...e){if(t==null)return Ke;const l=t.subscribe(...e);return l.unsubscribe?()=>l.unsubscribe():l}function Yl(t){let e;return wi(t,l=>e=l)(),e}function Ml(t,e,l){t.$$.on_destroy.push(wi(e,l))}function Ci(t,e,l,n){if(t){const i=wf(t,e,l,n);return t[0](i)}}function wf(t,e,l,n){return t[1]&&n?Sl(l.ctx.slice(),t[1](n(e))):l.ctx}function Si(t,e,l,n){if(t[2]&&n){const i=t[2](n(l));if(e.dirty===void 0)return i;if(typeof i=="object"){const s=[],a=Math.max(e.dirty.length,i.length);for(let r=0;r32){const e=[],l=t.ctx.length/32;for(let n=0;nt.removeEventListener(e,l,n)}function jl(t){return function(e){return e.preventDefault(),t.call(this,e)}}function u(t,e,l){l==null?t.removeAttribute(e):t.getAttribute(e)!==l&&t.setAttribute(e,l)}const bu=["width","height"];function Ql(t,e){const l=Object.getOwnPropertyDescriptors(t.__proto__);for(const n in e)e[n]==null?t.removeAttribute(n):n==="style"?t.style.cssText=e[n]:n==="__value"?t.value=t[n]=e[n]:l[n]&&l[n].set&&bu.indexOf(n)===-1?t[n]=e[n]:u(t,n,e[n])}function Qe(t){return t===""?null:+t}function gu(t){return Array.from(t.childNodes)}function O(t,e){e=""+e,t.data!==e&&(t.data=e)}function ku(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function wu(t,e,l){~hu.indexOf(l)?ku(t,e):O(t,e)}function ke(t,e){t.value=e??""}function Sn(t,e,l,n){l==null?t.style.removeProperty(e):t.style.setProperty(e,l,n?"important":"")}function et(t,e,l){for(let n=0;n{a.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=re(n.contentWindow,"resize",e),e()}),o(t,n),()=>{(i||s&&n.contentWindow)&&s(),T(n)}}function Su(t,e,{bubbles:l=!1,cancelable:n=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,l,n,e),i}function Zi(t,e){return new t(e)}let Tn;function Mn(t){Tn=t}function Dn(){if(!Tn)throw new Error("Function called outside component initialization");return Tn}function Cf(t){Dn().$$.on_mount.push(t)}function Mu(t){Dn().$$.on_destroy.push(t)}function Nu(){const t=Dn();return(e,l,{cancelable:n=!1}={})=>{const i=t.$$.callbacks[e];if(i){const s=Su(e,l,{cancelable:n});return i.slice().forEach(a=>{a.call(t,s)}),!s.defaultPrevented}return!0}}function Nn(t,e){return Dn().$$.context.set(t,e),e}function Ol(t){return Dn().$$.context.get(t)}const Wl=[],Wn=[];let Vl=[];const Ji=[],Sf=Promise.resolve();let li=!1;function Mf(){li||(li=!0,Sf.then(Nf))}function Tu(){return Mf(),Sf}function qt(t){Vl.push(t)}const Qn=new Set;let Hl=0;function Nf(){if(Hl!==0)return;const t=Tn;do{try{for(;Hlt.indexOf(n)===-1?e.push(n):l.push(n)),l.forEach(n=>n()),Vl=e}const Un=new Set;let Rl;function pt(){Rl={r:0,c:[],p:Rl}}function dt(){Rl.r||Pt(Rl.c),Rl=Rl.p}function X(t,e){t&&t.i&&(Un.delete(t),t.i(e))}function le(t,e,l,n){if(t&&t.o){if(Un.has(t))return;Un.add(t),Rl.c.push(()=>{Un.delete(t),n&&(l&&t.d(1),n())}),t.o(e)}else n&&n()}function Tf(t,e){const l={},n={},i={$$scope:1};let s=t.length;for(;s--;){const a=t[s],r=e[s];if(r){for(const f in a)f in r||(n[f]=1);for(const f in r)i[f]||(l[f]=r[f],i[f]=1);t[s]=r}else for(const f in a)i[f]=1}for(const a in n)a in l||(l[a]=void 0);return l}function $i(t){return typeof t=="object"&&t!==null?t:{}}function Te(t){t&&t.c()}function Me(t,e,l,n){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,l),n||qt(()=>{const a=t.$$.on_mount.map(kf).filter(ki);t.$$.on_destroy?t.$$.on_destroy.push(...a):Pt(a),t.$$.on_mount=[]}),s.forEach(qt)}function Ne(t,e){const l=t.$$;l.fragment!==null&&(Eu(l.after_update),Pt(l.on_destroy),l.fragment&&l.fragment.d(e),l.on_destroy=l.fragment=null,l.ctx=[])}function Du(t,e){t.$$.dirty[0]===-1&&(Wl.push(t),Mf(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const g=v.length?v[0]:d;return c.ctx&&i(c.ctx[_],c.ctx[_]=g)&&(!c.skip_bound&&c.bound[_]&&c.bound[_](g),m&&Du(t,_)),d}):[],c.update(),m=!0,Pt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const _=gu(e.target);c.fragment&&c.fragment.l(_),_.forEach(T)}else c.fragment&&c.fragment.c();e.intro&&X(t.$$.fragment),Me(t,e.target,e.anchor,e.customElement),Nf()}Mn(f)}class Ct{$destroy(){Ne(this,1),this.$destroy=Ke}$on(e,l){if(!ki(l))return Ke;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(l),()=>{const i=n.indexOf(l);i!==-1&&n.splice(i,1)}}$set(e){this.$$set&&!vu(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const xi=t=>typeof t>"u",Pf=t=>typeof t=="function",Ef=t=>typeof t=="number";function qu(t){return!t.defaultPrevented&&t.button===0&&!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Df(){let t=0;return()=>t++}function Au(){return Math.random().toString(36).substring(2)}const Ll=typeof window>"u";function qf(t,e,l){return t.addEventListener(e,l),()=>t.removeEventListener(e,l)}const Af=(t,e)=>t?{}:{style:e},ni=t=>({"aria-hidden":"true",...Af(t,"display:none;")}),zl=[];function Of(t,e){return{subscribe:tl(t,e).subscribe}}function tl(t,e=Ke){let l;const n=new Set;function i(r){if(kt(t,r)&&(t=r,l)){const f=!zl.length;for(const c of n)c[1](),zl.push(c,t);if(f){for(let c=0;c{n.delete(c),n.size===0&&l&&(l(),l=null)}}return{set:i,update:s,subscribe:a}}function Ou(t,e,l){const n=!Array.isArray(t),i=n?[t]:t,s=e.length<2;return Of(l,a=>{let r=!1;const f=[];let c=0,m=Ke;const _=()=>{if(c)return;m();const v=e(n?f[0]:f,a);s?a(v):m=ki(v)?v:Ke},d=i.map((v,g)=>wi(v,b=>{f[g]=b,c&=~(1<{c|=1<`@@svnav-ctx__${t}`,ii=qn("LOCATION"),Xl=qn("ROUTER"),Lf=qn("ROUTE"),Lu=qn("ROUTE_PARAMS"),Iu=qn("FOCUS_ELEM"),If=/^:(.+)/,kn=(t,e,l)=>t.substr(e,l),si=(t,e)=>kn(t,0,e.length)===e,Ru=t=>t==="",Fu=t=>If.test(t),Rf=t=>t[0]==="*",Bu=t=>t.replace(/\*.*$/,""),Ff=t=>t.replace(/(^\/+|\/+$)/g,"");function Nl(t,e=!1){const l=Ff(t).split("/");return e?l.filter(Boolean):l}const Xn=(t,e)=>t+(e?`?${e}`:""),Pi=t=>`/${Ff(t)}`;function An(...t){const e=n=>Nl(n,!0).join("/"),l=t.map(e).join("/");return Pi(l)}const Ei=1,Yn=2,Ul=3,Uu=4,Bf=5,ju=6,Uf=7,yu=8,Hu=9,jf=10,yf=11,zu={[Ei]:"Link",[Yn]:"Route",[Ul]:"Router",[Uu]:"useFocus",[Bf]:"useLocation",[ju]:"useMatch",[Uf]:"useNavigate",[yu]:"useParams",[Hu]:"useResolvable",[jf]:"useResolve",[yf]:"navigate"},Di=t=>zu[t];function Wu(t,e){let l;return t===Yn?l=e.path?`path="${e.path}"`:"default":t===Ei?l=`to="${e.to}"`:t===Ul&&(l=`basepath="${e.basepath||""}"`),`<${Di(t)} ${l||""} />`}function Gu(t,e,l,n){const i=l&&Wu(n||t,l),s=i?` -Occurred in: ${i}`:"",a=Ji(t),r=Zf(e)?e(a):e;return`<${a}> ${r}${s}`}const ru=t=>(...e)=>t(_r(...e)),cu=ru(t=>{throw new Error(t)}),mi=ru(console.warn),Ss=4,pr=3,dr=2,vr=1,hr=1;function br(t,e){const l=t.default?0:zl(t.fullPath).reduce((n,i)=>{let s=n;return s+=Ss,ir(i)?s+=hr:sr(i)?s+=dr:iu(i)?s-=Ss+vr:s+=pr,s},0);return{route:t,score:l,index:e}}function gr(t){return t.map(br).sort((e,l)=>e.scorel.score?-1:e.index-l.index)}function mu(t,e){let l,n;const[i]=e.split("?"),s=zl(i),a=s[0]==="",r=gr(t);for(let f=0,u=r.length;f({...m,params:d,uri:k});if(m.default){n=v(e);continue}const b=zl(m.fullPath),h=Math.max(s.length,b.length);let M=0;for(;M{u===".."?f.pop():u!=="."&&f.push(u)}),hi(`/${f.join("/")}`,n)}function Ms(t,e){const{pathname:l,hash:n="",search:i="",state:s}=t,a=zl(e,!0),r=zl(l,!0);for(;a.length;)a[0]!==r[0]&&cu(tn,`Invalid state: All locations must begin with the basepath "${e}", found "${l}"`),a.shift(),r.shift();return{pathname:xn(...r),hash:n,search:i,state:s}}const Ns=t=>t.length===1?"":t,$i=t=>{const e=t.indexOf("?"),l=t.indexOf("#"),n=e!==-1,i=l!==-1,s=i?Ns(zn(t,l)):"",a=i?zn(t,0,l):t,r=n?Ns(zn(a,e)):"";return{pathname:(n?zn(a,0,e):a)||"/",search:r,hash:s}},wr=t=>{const{pathname:e,search:l,hash:n}=t;return e+l+n};function Cr(t,e,l){return xn(l,kr(t,e))}function Sr(t,e){const l=Xi(or(t)),n=zl(l,!0),i=zl(e,!0).slice(0,n.length),s=_u({fullPath:l},xn(...i));return s&&s.uri}const bi="POP",Mr="PUSH",Nr="REPLACE";function gi(t){return{...t.location,pathname:encodeURI(decodeURI(t.location.pathname)),state:t.history.state,_key:t.history.state&&t.history.state._key||"initial"}}function Tr(t){let e=[],l=gi(t),n=bi;const i=(s=e)=>s.forEach(a=>a({location:l,action:n}));return{get location(){return l},listen(s){e.push(s);const a=()=>{l=gi(t),n=bi,i([s])};i([s]);const r=xf(t,"popstate",a);return()=>{r(),e=e.filter(f=>f!==s)}},navigate(s,a){const{state:r={},replace:f=!1}=a||{};if(n=f?Nr:Mr,Jf(s))a&&mi(uu,"Navigation options (state or replace) are not supported, when passing a number as the first argument to navigate. They are ignored."),n=bi,t.history.go(s);else{const u={...r,_key:er()};try{t.history[f?"replaceState":"pushState"](u,"",s)}catch{t.location[f?"replace":"assign"](s)}}l=gi(t),i()}}}function ki(t,e){return{...$i(e),state:t}}function Pr(t="/"){let e=0,l=[ki(null,t)];return{get entries(){return l},get location(){return l[e]},addEventListener(){},removeEventListener(){},history:{get state(){return l[e].state},pushState(n,i,s){e++,l=l.slice(0,e),l.push(ki(n,s))},replaceState(n,i,s){l[e]=ki(n,s)},go(n){const i=e+n;i<0||i>l.length-1||(e=i)}}}}const Er=!!(!Zl&&window.document&&window.document.createElement),Dr=!Zl&&window.location.origin==="null",pu=Tr(Er&&!Dr?window:Pr()),{navigate:Ql}=pu;let Wl=null,du=!0;function qr(t,e){const l=document.querySelectorAll("[data-svnav-router]");for(let n=0;nWl.level||t.level===Wl.level&&qr(t.routerId,Wl.routerId))&&(Wl=t)}function Lr(){Wl=null}function Ir(){du=!1}function Ts(t){if(!t)return!1;const e="tabindex";try{if(!t.hasAttribute(e)){t.setAttribute(e,"-1");let l;l=xf(t,"blur",()=>{t.removeAttribute(e),l()})}return t.focus(),document.activeElement===t}catch{return!1}}function Or(t,e){return Number(t.dataset.svnavRouteEnd)===e}function Rr(t){return/^H[1-6]$/i.test(t.tagName)}function Ps(t,e=document){return e.querySelector(t)}function Fr(t){let l=Ps(`[data-svnav-route-start="${t}"]`).nextElementSibling;for(;!Or(l,t);){if(Rr(l))return l;const n=Ps("h1,h2,h3,h4,h5,h6",l);if(n)return n;l=l.nextElementSibling}return null}function Br(t){Promise.resolve(cn(t.focusElement)).then(e=>{const l=e||Fr(t.id);l||mi(tn,`Could not find an element to focus. You should always render a header for accessibility reasons, or set a custom focus element via the "useFocus" hook. If you don't want this Route or Router to manage focus, pass "primary={false}" to it.`,t,di),!Ts(l)&&Ts(document.documentElement)})}const Ur=(t,e,l)=>(n,i)=>Xu().then(()=>{if(!Wl||du){Ir();return}if(n&&Br(Wl.route),t.announcements&&i){const{path:s,fullPath:a,meta:r,params:f,uri:u}=Wl.route,m=t.createAnnouncement({path:s,fullPath:a,meta:r,params:f,uri:u},cn(l));Promise.resolve(m).then(_=>{e.set(_)})}Lr()}),jr="position:fixed;top:-1px;left:0;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;";function yr(t){let e,l,n=[{role:"status"},{"aria-atomic":"true"},{"aria-live":"polite"},{"data-svnav-announcer":""},eu(t[6],jr)],i={};for(let s=0;s`Navigated to ${X.uri}`,announcements:!0,...b},k=m,T=Xi(m),I=Xl(Ti),O=Xl(_n),C=!I,B=zr(),L=v&&!(O&&!O.manageFocus),z=nl("");Hl(t,z,X=>l(0,r=X));const y=O?O.disableInlineStyles:h,V=nl([]);Hl(t,V,X=>l(20,a=X));const R=nl(null);Hl(t,R,X=>l(18,i=X));let F=!1;const Y=C?0:O.level+1,W=C?nl((()=>Ms(Zl?$i(_):d.location,T))()):I;Hl(t,W,X=>l(17,n=X));const K=nl(n);Hl(t,K,X=>l(19,s=X));const U=Ur(M,z,W),H=X=>$=>$.filter(ae=>ae.id!==X);function Z(X){if(Zl){if(F)return;const $=_u(X,n.pathname);if($)return F=!0,$}else V.update($=>{const ae=H(X.id)($);return ae.push(X),ae})}function ne(X){V.update(H(X))}return!C&&m!==Es&&mi(tn,'Only top-level Routers can have a "basepath" prop. It is ignored.',{basepath:m}),C&&(Vf(()=>d.listen($=>{const ae=Ms($.location,T);K.set(n),W.set(ae)})),Yn(Ti,W)),Yn(_n,{activeRoute:R,registerRoute:Z,unregisterRoute:ne,manageFocus:L,level:Y,id:B,history:C?d:O.history,basepath:C?T:O.basepath,disableInlineStyles:y}),t.$$set=X=>{"basepath"in X&&l(11,m=X.basepath),"url"in X&&l(12,_=X.url),"history"in X&&l(13,d=X.history),"primary"in X&&l(14,v=X.primary),"a11y"in X&&l(15,b=X.a11y),"disableInlineStyles"in X&&l(16,h=X.disableInlineStyles),"$$scope"in X&&l(21,u=X.$$scope)},t.$$.update=()=>{if(t.$$.dirty[0]&2048&&m!==k&&mi(tn,'You cannot change the "basepath" prop. It is ignored.'),t.$$.dirty[0]&1179648){const X=mu(a,n.pathname);R.set(X)}if(t.$$.dirty[0]&655360&&C){const X=!!n.hash,$=!X&&L,ae=!X||n.pathname!==s.pathname;U($,ae)}t.$$.dirty[0]&262144&&L&&i&&i.primary&&Ar({level:Y,routerId:B,route:i})},[r,M,C,B,L,z,y,V,R,W,K,m,_,d,v,b,h,n,i,s,a,u,f]}class Gr extends It{constructor(e){super(),Lt(this,e,Wr,Hr,Dt,{basepath:11,url:12,history:13,primary:14,a11y:15,disableInlineStyles:16},null,[-1,-1])}}const vu=Gr;function ei(t,e,l=_n,n=tn){Xl(l)||cu(t,s=>`You cannot use ${s} outside of a ${Ji(n)}.`,e)}const Vr=t=>{const{subscribe:e}=Xl(t);return{subscribe:e}};function hu(){return ei(ou),Vr(Ti)}function bu(){const{history:t}=Xl(_n);return t}function gu(){const t=Xl(lu);return t?tr(t,e=>e.base):nl("/")}function ku(){ei(fu);const t=gu(),{basepath:e}=Xl(_n);return n=>Cr(n,cn(t),e)}function Kr(){ei(au);const t=ku(),{navigate:e}=bu();return(n,i)=>{const s=Jf(n)?n:t(n);return e(s,i)}}const Yr=t=>({params:t&16,location:t&8}),Ds=t=>({params:Zl?cn(t[10]):t[4],location:t[3],navigate:t[11]});function qs(t){let e,l;return e=new vu({props:{primary:t[1],$$slots:{default:[Zr]},$$scope:{ctx:t}}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,i){const s={};i&2&&(s.primary=n[1]),i&528409&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function Qr(t){let e;const l=t[18].default,n=Gi(l,t,t[19],Ds);return{c(){n&&n.c()},m(i,s){n&&n.m(i,s),e=!0},p(i,s){n&&n.p&&(!e||s&524312)&&Ki(n,l,i,i[19],e?Vi(l,i[19],s,Yr):Yi(i[19]),Ds)},i(i){e||(J(n,i),e=!0)},o(i){ie(n,i),e=!1},d(i){n&&n.d(i)}}}function Xr(t){let e,l,n;const i=[{location:t[3]},{navigate:t[11]},Zl?cn(t[10]):t[4],t[12]];var s=t[0];function a(r){let f={};for(let u=0;u{Ie(m,1)}),gt()}s?(e=gs(s,a()),Oe(e.$$.fragment),J(e.$$.fragment,1),Le(e,l.parentNode,l)):e=null}else s&&e.$set(u)},i(r){n||(e&&J(e.$$.fragment,r),n=!0)},o(r){e&&ie(e.$$.fragment,r),n=!1},d(r){r&&P(l),e&&Ie(e,r)}}}function Zr(t){let e,l,n,i;const s=[Xr,Qr],a=[];function r(f,u){return f[0]!==null?0:1}return e=r(t),l=a[e]=s[e](t),{c(){l.c(),n=$t()},m(f,u){a[e].m(f,u),E(f,n,u),i=!0},p(f,u){let m=e;e=r(f),e===m?a[e].p(f,u):(bt(),ie(a[m],1,1,()=>{a[m]=null}),gt(),l=a[e],l?l.p(f,u):(l=a[e]=s[e](f),l.c()),J(l,1),l.m(n.parentNode,n))},i(f){i||(J(l),i=!0)},o(f){ie(l),i=!1},d(f){a[e].d(f),f&&P(n)}}}function Jr(t){let e,l,n,i,s,a=[Ni(t[7]),{"data-svnav-route-start":t[5]}],r={};for(let _=0;_{f=null}),gt())},i(_){s||(J(f),s=!0)},o(_){ie(f),s=!1},d(_){_&&P(e),_&&P(l),f&&f.d(_),_&&P(n),_&&P(i)}}}const $r=$f();function xr(t,e,l){let n;const i=["path","component","meta","primary"];let s=ri(e,i),a,r,f,u,{$$slots:m={},$$scope:_}=e,{path:d=""}=e,{component:v=null}=e,{meta:b={}}=e,{primary:h=!0}=e;ei(di,e);const M=$r(),{registerRoute:k,unregisterRoute:T,activeRoute:I,disableInlineStyles:O}=Xl(_n);Hl(t,I,F=>l(16,a=F));const C=gu();Hl(t,C,F=>l(17,f=F));const B=hu();Hl(t,B,F=>l(3,r=F));const L=nl(null);let z;const y=nl(),V=nl({});Hl(t,V,F=>l(4,u=F)),Yn(lu,y),Yn(lr,V),Yn(nr,L);const R=Kr();return Zl||Yu(()=>T(M)),t.$$set=F=>{l(24,e=yl(yl({},e),ui(F))),l(12,s=ri(e,i)),"path"in F&&l(13,d=F.path),"component"in F&&l(0,v=F.component),"meta"in F&&l(14,b=F.meta),"primary"in F&&l(1,h=F.primary),"$$scope"in F&&l(19,_=F.$$scope)},t.$$.update=()=>{if(t.$$.dirty&155658){const F=d==="",Y=xn(f,d),j={id:M,path:d,meta:b,default:F,fullPath:F?"":Y,base:F?f:Sr(Y,r.pathname),primary:h,focusElement:L};y.set(j),l(15,z=k(j))}if(t.$$.dirty&98304&&l(2,n=!!(z||a&&a.id===M)),t.$$.dirty&98308&&n){const{params:F}=z||a;V.set(F)}},e=ui(e),[v,h,n,r,u,M,I,O,C,B,V,R,s,d,b,z,a,f,m,_]}class e1 extends It{constructor(e){super(),Lt(this,e,xr,Jr,Dt,{path:13,component:0,meta:14,primary:1})}}const Ll=e1;function t1(t){let e,l,n,i;const s=t[13].default,a=Gi(s,t,t[12],null);let r=[{href:t[0]},t[2],t[1]],f={};for(let u=0;ul(11,_=L));const I=Qu(),O=ku(),{navigate:C}=bu();function B(L){I("click",L),xu(L)&&(L.preventDefault(),C(n,{state:M,replace:a||h}))}return t.$$set=L=>{l(19,e=yl(yl({},e),ui(L))),l(18,m=ri(e,u)),"to"in L&&l(5,b=L.to),"replace"in L&&l(6,h=L.replace),"state"in L&&l(7,M=L.state),"getProps"in L&&l(8,k=L.getProps),"$$scope"in L&&l(12,v=L.$$scope)},t.$$.update=()=>{t.$$.dirty&2080&&l(0,n=O(b,_)),t.$$.dirty&2049&&l(10,i=Pi(_.pathname,n)),t.$$.dirty&2049&&l(9,s=n===_.pathname),t.$$.dirty&2049&&(a=$i(n)===wr(_)),t.$$.dirty&512&&l(2,r=s?{"aria-current":"page"}:{}),l(1,f=(()=>{if(Zf(k)){const L=k({location:_,href:n,isPartiallyCurrent:i,isCurrent:s});return{...m,...L}}return m})())},e=ui(e),[n,f,r,T,B,b,h,M,k,s,i,_,v,d]}class n1 extends It{constructor(e){super(),Lt(this,e,l1,t1,Dt,{to:5,replace:6,state:7,getProps:8})}}const Al=n1;function Yl(t){return t===1?"green":t===2?"yellow":t===3?"red":"gray"}function i1(t,e){return t>218&&t<242?"#23ac05":t>212&&t<248?"#b1d900":t>208&&t<252?"#a3b200":"#b20000"}function xi(t,e){let l;return t>90?l="#b20000":t>85?l="#b19601":t>80?l="#a3b200":t>75?l="#569f12":l="#23ac05",l}function Xn(t){return t>75?"#23ac05":t>50?"#77d900":t>25?"#94d900":"#569f12"}function _i(t){switch(t){case 1:return"Aidon";case 2:return"Kaifa";case 3:return"Kamstrup";case 8:return"Iskra";case 9:return"Landis+Gyr";case 10:return"Sagemcom";default:return"Unknown"}}function Tt(t){for(t=t.toString();t.length<2;)t="0"+t;return t}function lt(t,e){switch(e){case 5:switch(t){case"esp8266":return"Pow-K (GPIO12)";case"esp32s2":return"Pow-K+"}case 7:switch(t){case"esp8266":return"Pow-U (GPIO12)";case"esp32s2":return"Pow-U+"}case 6:return"Pow-P1";case 51:return"Wemos S2 mini";case 50:return"Generic ESP32-S2";case 201:return"Wemos LOLIN D32";case 202:return"Adafruit HUZZAH32";case 203:return"DevKitC";case 241:return"LilyGO T-ETH-POE";case 242:return"M5 PoESP32";case 243:return"WT32-ETH01";case 200:return"Generic ESP32";case 2:return"HAN Reader 2.0 by Max Spencer";case 0:return"Custom hardware by Roar Fredriksen";case 1:return"Kamstrup module by Egil Opsahl";case 8:return"\xB5HAN mosquito by dbeinder";case 3:return"Pow-K (UART0)";case 4:return"Pow-U (UART0)";case 101:return"Wemos D1 mini";case 100:return"Generic ESP8266";case 70:return"Generic ESP32-C3";case 71:return"ESP32-C3-DevKitM-1";case 80:return"Generic ESP32-S3"}return"Unknown"}function rn(t){switch(t){case 2:case 4:case 7:return!0}return!1}function Zt(t,e){return t==1||t==2&&e}function ql(t){return"https://github.com/UtilitechAS/amsreader-firmware/wiki/"+t}function Xt(t,e){return t==null||isNaN(t)?"-":(isNaN(e)&&(e=t<1?2:t<10?1:0),t.toFixed(e))}function Kl(t,e){return t.setTime(t.getTime()+e*36e5),t}function s1(t){return t=="EOE"?"ENTSO-E":t=="HKS"?"hvakosterstrommen.no":t=="EDS"?"Energi Data Service":t=="MIX"?"Mixed sources":"Unknown ("+t+")"}function o1(t){return t=="EOE"?"https://transparency.entsoe.eu/":t=="HKS"?"https://www.hvakosterstrommen.no/":t=="EDS"?"https://www.energidataservice.dk/":"#"}let ni=0;function Zn(t,e){var l="";ni++;var n=function(){setTimeout(Zn,1e3,t,e)};if(t.net.ip&&ni%3==0){if(!t.net.ip){n();return}l="http://"+t.net.ip}else t.hostname&&ni%3==1?l="http://"+t.hostname:t.hostname&&ni%3==2?l="http://"+t.hostname+".local":l="";console&&console.log("Trying url "+l),e&&e(l);var i=new XMLHttpRequest;i.timeout=5e3,i.addEventListener("abort",n),i.addEventListener("error",n),i.addEventListener("timeout",n),i.addEventListener("load",function(s){window.location.href=l||"/"}),i.open("GET",l+"/is-alive",!0),i.send()}function tl(t){return t.charAt(0).toUpperCase()+t.slice(1)}function As(t){return t.startsWith("esp32")?"esp32":t}function gl(t,e){let l=[t,e];return typeof t>"u"?(l[0]="-",l[1]=e):t>=1e9?(l[0]=(t/1e6).toFixed(t>1e10?0:1),l[1]="M"+e):t>1e4?(l[0]=(t/1e3).toFixed(t>1e6?0:t>1e5?1:2),l[1]="k"+e):(l[0]=t.toFixed(0),l[1]=e),l}let ai={},Ei=[];async function a1(t,e={}){const{timeout:l=8e3}=e,n=new AbortController,i=setTimeout(()=>n.abort(),l),s=await fetch(t,{...e,signal:n.signal});return clearTimeout(i),s}let wi;async function wu(){if(Ei.length){let t=Ei.shift();delete ai[t.resource];try{let e=await a1(t.resource,t.options);for(let l in t.callbacks)t.callbacks[l](e.clone())}catch(e){console.error("Error calling "+t.resource,e);for(let l in t.callbacks)t.callbacks[l]()}}wi&&clearTimeout(wi),wi=setTimeout(wu,100)}wu();async function Il(t,e={}){let l;return ai[t]?l=ai[t]:(l={resource:t,options:e,callbacks:[]},ai[t]=l,Ei.push(l)),new Promise(i=>l.callbacks.push(i))}let jl={version:"",chip:"",mac:null,apmac:null,vndcfg:null,usrcfg:null,fwconsent:null,booting:!1,upgrading:!1,ui:{},security:0,boot_reason:0,upgrade:{x:-1,e:0,f:null,t:null},trying:null,if:{eth:!1}};async function es(){jl=await(await Il("sysinfo.json?t="+Math.floor(Date.now()/1e3))).json(),kl.set(jl)}const kl=nl(jl,t=>(es(),function(){}));function f1(t){kl.update(e=>(e.trying=t,e))}let ii=0,Ls=-127,Is=null,u1={};const r1=tu(u1,t=>{let e,l;async function n(){Il("data.json").then(i=>i.json()).then(i=>{t(i),Ls!=i.t&&(Ls=i.t,setTimeout(c1,2e3)),Is==null&&i.pe&&i.p!=null&&(Is=i.p,Su()),jl.upgrading?window.location.reload():(!jl||!jl.chip||jl.booting||ii>1&&!rn(jl.board))&&(es(),Gl&&clearTimeout(Gl),Gl=setTimeout(Ai,2e3),Vl&&clearTimeout(Vl),Vl=setTimeout(Ii,3e3)),Gl||(Gl=Ai()),Vl||(Vl=Ii());let s=5e3;if(rn(jl.board)&&i.v>2.5){let a=3.3-Math.min(3.3,i.v);a>0&&(s=Math.max(a,.1)*10*5e3)}s>5e3&&console.log("Next in "+s+"ms"),e&&clearTimeout(e),e=setTimeout(n,s),ii=0}).catch(i=>{ii++,ii>3?(t({em:3,hm:0,wm:0,mm:0}),e=setTimeout(n,15e3),l||(l=setTimeout(Zn,5e3,jl,f1))):e=setTimeout(n,rn(jl.board)?1e4:5e3)})}return n(),function(){clearTimeout(e)}});let Di={},Wn;const ts=nl(Di);async function Cu(){let t=!1;if(ts.update(e=>{for(var l=0;l<36;l++){if(e[Tt(l)]==null){t=l<12;break}e[Tt(l)]=e[Tt(l+1)]}return e}),t)Su();else{let e=new Date;Wn=setTimeout(Cu,(60-e.getMinutes())*6e4)}}async function Su(){Wn&&(clearTimeout(Wn),Wn=0),Di=await(await Il("energyprice.json")).json(),ts.set(Di);let e=new Date;Wn=setTimeout(Cu,(60-e.getMinutes())*6e4)}let qi={},Gl;async function Ai(){Gl&&(clearTimeout(Gl),Gl=0),qi=await(await Il("dayplot.json")).json(),Mu.set(qi);let e=new Date;Gl=setTimeout(Ai,(60-e.getMinutes())*6e4+20)}const Mu=nl(qi,t=>function(){});let Li={},Vl;async function Ii(){Vl&&(clearTimeout(Vl),Vl=0),Li=await(await Il("monthplot.json")).json(),Nu.set(Li);let e=new Date;Vl=setTimeout(Ii,(24-e.getHours())*36e5+40)}const Nu=nl(Li,t=>function(){});let Oi={};async function c1(){Oi=await(await Il("temperature.json")).json(),Tu.set(Oi)}const Tu=nl(Oi,t=>function(){});let Ri={},si;async function Pu(){si&&(clearTimeout(si),si=0),Ri=await(await Il("tariff.json")).json(),Eu.set(Ri);let e=new Date;si=setTimeout(Pu,(60-e.getMinutes())*6e4+30)}const Eu=nl(Ri,t=>function(){});let Fi=[];const ls=nl(Fi);async function m1(){Fi=await(await Il("https://api.github.com/repos/UtilitechAS/amsreader-firmware/releases")).json(),ls.set(Fi)}let Bi=!1;const Ol=nl(Bi);async function Du(t){Bi=await(await Il("translations.json"+(t?"?lang="+t:""))).json(),Ol.set(Bi)}Du();function pi(t){return"WARNING: "+t+" must be connected to an external power supply during firmware upgrade. Failure to do so may cause power-down during upload resulting in non-functioning unit."}async function qu(t){await(await fetch("upgrade?expected_version="+t,{method:"POST"})).json()}function Au(t,e){if(!(!e||e.message))if(/^v\d{1,2}\.\d{1,2}\.\d{1,2}$/.test(t)){let l=t.substring(1).split("."),n=parseInt(l[0]),i=parseInt(l[1]),s=parseInt(l[2]),a=[...e];a.reverse();let r,f,u;for(let m=0;ms&&(r=_):h==i+1&&(f=_);else if(b==n+1)if(u){let k=u.tag_name.substring(1).split(".");parseInt(k[0]);let T=parseInt(k[1]);parseInt(k[2]),h==T&&(u=_)}else u=_}return f||u||r||!1}else return e[0]}function Os(t){var f,u;let e=((u=(f=t[1].header)==null?void 0:f.uptime)!=null?u:"Up")+"",l,n,i;function s(m,_){return m[2]>1?g1:m[2]>0?b1:m[3]>1?h1:m[3]>0?v1:m[4]>1?d1:m[4]>0?p1:_1}let a=s(t),r=a(t);return{c(){l=S(e),n=g(),r.c(),i=$t()},m(m,_){E(m,l,_),E(m,n,_),r.m(m,_),E(m,i,_)},p(m,_){var d,v;_&2&&e!==(e=((v=(d=m[1].header)==null?void 0:d.uptime)!=null?v:"Up")+"")&&q(l,e),a===(a=s(m))&&r?r.p(m,_):(r.d(1),r=a(m),r&&(r.c(),r.m(i.parentNode,i)))},d(m){m&&P(l),m&&P(n),r.d(m),m&&P(i)}}}function _1(t){var s,a;let e,l,n=((a=(s=t[1].common)==null?void 0:s.seconds)!=null?a:"s")+"",i;return{c(){e=S(t[0]),l=g(),i=S(n)},m(r,f){E(r,e,f),E(r,l,f),E(r,i,f)},p(r,f){var u,m;f&1&&q(e,r[0]),f&2&&n!==(n=((m=(u=r[1].common)==null?void 0:u.seconds)!=null?m:"s")+"")&&q(i,n)},d(r){r&&P(e),r&&P(l),r&&P(i)}}}function p1(t){var s,a;let e,l,n=((a=(s=t[1].common)==null?void 0:s.minute)!=null?a:"m")+"",i;return{c(){e=S(t[4]),l=g(),i=S(n)},m(r,f){E(r,e,f),E(r,l,f),E(r,i,f)},p(r,f){var u,m;f&16&&q(e,r[4]),f&2&&n!==(n=((m=(u=r[1].common)==null?void 0:u.minute)!=null?m:"m")+"")&&q(i,n)},d(r){r&&P(e),r&&P(l),r&&P(i)}}}function d1(t){var s,a;let e,l,n=((a=(s=t[1].common)==null?void 0:s.minutes)!=null?a:"m")+"",i;return{c(){e=S(t[4]),l=g(),i=S(n)},m(r,f){E(r,e,f),E(r,l,f),E(r,i,f)},p(r,f){var u,m;f&16&&q(e,r[4]),f&2&&n!==(n=((m=(u=r[1].common)==null?void 0:u.minutes)!=null?m:"m")+"")&&q(i,n)},d(r){r&&P(e),r&&P(l),r&&P(i)}}}function v1(t){var s,a;let e,l,n=((a=(s=t[1].common)==null?void 0:s.hour)!=null?a:"h")+"",i;return{c(){e=S(t[3]),l=g(),i=S(n)},m(r,f){E(r,e,f),E(r,l,f),E(r,i,f)},p(r,f){var u,m;f&8&&q(e,r[3]),f&2&&n!==(n=((m=(u=r[1].common)==null?void 0:u.hour)!=null?m:"h")+"")&&q(i,n)},d(r){r&&P(e),r&&P(l),r&&P(i)}}}function h1(t){var s,a;let e,l,n=((a=(s=t[1].common)==null?void 0:s.hours)!=null?a:"h")+"",i;return{c(){e=S(t[3]),l=g(),i=S(n)},m(r,f){E(r,e,f),E(r,l,f),E(r,i,f)},p(r,f){var u,m;f&8&&q(e,r[3]),f&2&&n!==(n=((m=(u=r[1].common)==null?void 0:u.hours)!=null?m:"h")+"")&&q(i,n)},d(r){r&&P(e),r&&P(l),r&&P(i)}}}function b1(t){var s,a;let e,l,n=((a=(s=t[1].common)==null?void 0:s.day)!=null?a:"d")+"",i;return{c(){e=S(t[2]),l=g(),i=S(n)},m(r,f){E(r,e,f),E(r,l,f),E(r,i,f)},p(r,f){var u,m;f&4&&q(e,r[2]),f&2&&n!==(n=((m=(u=r[1].common)==null?void 0:u.day)!=null?m:"d")+"")&&q(i,n)},d(r){r&&P(e),r&&P(l),r&&P(i)}}}function g1(t){var s,a;let e,l,n=((a=(s=t[1].common)==null?void 0:s.days)!=null?a:"d")+"",i;return{c(){e=S(t[2]),l=g(),i=S(n)},m(r,f){E(r,e,f),E(r,l,f),E(r,i,f)},p(r,f){var u,m;f&4&&q(e,r[2]),f&2&&n!==(n=((m=(u=r[1].common)==null?void 0:u.days)!=null?m:"d")+"")&&q(i,n)},d(r){r&&P(e),r&&P(l),r&&P(i)}}}function k1(t){let e,l=t[0]&&Os(t);return{c(){l&&l.c(),e=$t()},m(n,i){l&&l.m(n,i),E(n,e,i)},p(n,[i]){n[0]?l?l.p(n,i):(l=Os(n),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},i:Ze,o:Ze,d(n){l&&l.d(n),n&&P(e)}}}function w1(t,e,l){let{epoch:n}=e,i={};Ol.subscribe(f=>{l(1,i=f)});let s=0,a=0,r=0;return t.$$set=f=>{"epoch"in f&&l(0,n=f.epoch)},t.$$.update=()=>{t.$$.dirty&1&&(l(2,s=Math.floor(n/86400)),l(3,a=Math.floor(n/3600)),l(4,r=Math.floor(n/60)))},[n,i,s,a,r]}class C1 extends It{constructor(e){super(),Lt(this,e,w1,k1,Dt,{epoch:0})}}function S1(t){let e,l,n;return{c(){e=p("span"),l=S(t[2]),c(e,"title",t[1]),c(e,"class",n="bd-"+t[0])},m(i,s){E(i,e,s),o(e,l)},p(i,[s]){s&4&&q(l,i[2]),s&2&&c(e,"title",i[1]),s&1&&n!==(n="bd-"+i[0])&&c(e,"class",n)},i:Ze,o:Ze,d(i){i&&P(e)}}}function M1(t,e,l){let{color:n}=e,{title:i}=e,{text:s}=e;return t.$$set=a=>{"color"in a&&l(0,n=a.color),"title"in a&&l(1,i=a.title),"text"in a&&l(2,s=a.text)},[n,i,s]}class xl extends It{constructor(e){super(),Lt(this,e,M1,S1,Dt,{color:0,title:1,text:2})}}function N1(t){let e,l=`${Tt(t[0].getDate())}.${Tt(t[0].getMonth()+1)}.${t[0].getFullYear()} ${Tt(t[0].getHours())}:${Tt(t[0].getMinutes())}`,n;return{c(){e=p("span"),n=S(l),c(e,"class",t[1])},m(i,s){E(i,e,s),o(e,n)},p(i,s){s&1&&l!==(l=`${Tt(i[0].getDate())}.${Tt(i[0].getMonth()+1)}.${i[0].getFullYear()} ${Tt(i[0].getHours())}:${Tt(i[0].getMinutes())}`)&&q(n,l),s&2&&c(e,"class",i[1])},d(i){i&&P(e)}}}function T1(t){var n;let e=`${Tt(t[0].getDate())}. ${t[2].months?(n=t[2].months)==null?void 0:n[t[0].getMonth()]:Tt(t[0].getMonth()+1)} ${Tt(t[0].getHours())}:${Tt(t[0].getMinutes())}`,l;return{c(){l=S(e)},m(i,s){E(i,l,s)},p(i,s){var a;s&5&&e!==(e=`${Tt(i[0].getDate())}. ${i[2].months?(a=i[2].months)==null?void 0:a[i[0].getMonth()]:Tt(i[0].getMonth()+1)} ${Tt(i[0].getHours())}:${Tt(i[0].getMinutes())}`)&&q(l,e)},d(i){i&&P(l)}}}function P1(t){let e;function l(s,a){return s[3]?T1:N1}let n=l(t),i=n(t);return{c(){i.c(),e=$t()},m(s,a){i.m(s,a),E(s,e,a)},p(s,[a]){n===(n=l(s))&&i?i.p(s,a):(i.d(1),i=n(s),i&&(i.c(),i.m(e.parentNode,e)))},i:Ze,o:Ze,d(s){i.d(s),s&&P(e)}}}function E1(t,e,l){let n={};Ol.subscribe(f=>{l(2,n=f)});let{timestamp:i}=e,{fullTimeColor:s}=e,{offset:a}=e,r;return t.$$set=f=>{"timestamp"in f&&l(0,i=f.timestamp),"fullTimeColor"in f&&l(1,s=f.fullTimeColor),"offset"in f&&l(4,a=f.offset)},t.$$.update=()=>{t.$$.dirty&17&&(l(3,r=Math.abs(new Date().getTime()-i.getTime())<3e5),isNaN(a)||Kl(i,a-(24+i.getHours()-i.getUTCHours())%24))},[i,s,n,r,a]}class Lu extends It{constructor(e){super(),Lt(this,e,E1,P1,Dt,{timestamp:0,fullTimeColor:1,offset:4})}}function D1(t){let e,l,n;return{c(){e=jt("svg"),l=jt("path"),n=jt("path"),c(l,"stroke-linecap","round"),c(l,"stroke-linejoin","round"),c(l,"d","M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 011.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.56.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.893.149c-.425.07-.765.383-.93.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 01-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.397.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 01-.12-1.45l.527-.737c.25-.35.273-.806.108-1.204-.165-.397-.505-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.107-1.204l-.527-.738a1.125 1.125 0 01.12-1.45l.773-.773a1.125 1.125 0 011.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894z"),c(n,"stroke-linecap","round"),c(n,"stroke-linejoin","round"),c(n,"d","M15 12a3 3 0 11-6 0 3 3 0 016 0z"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"fill","none"),c(e,"viewBox","0 0 24 24"),c(e,"stroke-width","1.5"),c(e,"stroke","currentColor"),c(e,"class","w-6 h-6")},m(i,s){E(i,e,s),o(e,l),o(e,n)},p:Ze,i:Ze,o:Ze,d(i){i&&P(e)}}}class q1 extends It{constructor(e){super(),Lt(this,e,null,D1,Dt,{})}}function A1(t){let e,l;return{c(){e=jt("svg"),l=jt("path"),c(l,"stroke-linecap","round"),c(l,"stroke-linejoin","round"),c(l,"d","M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"fill","none"),c(e,"viewBox","0 0 24 24"),c(e,"stroke-width","1.5"),c(e,"stroke","currentColor"),c(e,"class","w-6 h-6")},m(n,i){E(n,e,i),o(e,l)},p:Ze,i:Ze,o:Ze,d(n){n&&P(e)}}}class L1 extends It{constructor(e){super(),Lt(this,e,null,A1,Dt,{})}}function I1(t){let e,l;return{c(){e=jt("svg"),l=jt("path"),c(l,"stroke-linecap","round"),c(l,"stroke-linejoin","round"),c(l,"d","M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"fill","none"),c(e,"viewBox","0 0 24 24"),c(e,"stroke-width","1.5"),c(e,"stroke","currentColor"),c(e,"class","w-6 h-6")},m(n,i){E(n,e,i),o(e,l)},p:Ze,i:Ze,o:Ze,d(n){n&&P(e)}}}class O1 extends It{constructor(e){super(),Lt(this,e,null,I1,Dt,{})}}function R1(t){let e,l,n=t[2].version+"",i;return{c(){e=S("AMS reader "),l=p("span"),i=S(n)},m(s,a){E(s,e,a),E(s,l,a),o(l,i)},p(s,a){a&4&&n!==(n=s[2].version+"")&&q(i,n)},d(s){s&&P(e),s&&P(l)}}}function Rs(t){let e,l=(t[1].t>-50?t[1].t.toFixed(1):"-")+"",n,i;return{c(){e=p("div"),n=S(l),i=S("\xB0C"),c(e,"class","flex-none my-auto")},m(s,a){E(s,e,a),o(e,n),o(e,i)},p(s,a){a&2&&l!==(l=(s[1].t>-50?s[1].t.toFixed(1):"-")+"")&&q(n,l)},d(s){s&&P(e)}}}function Fs(t){var i,s,a,r,f;let e,l=((s=(i=t[4].header)==null?void 0:i.han)!=null?s:"HAN")+": "+((f=(r=(a=t[4].errors)==null?void 0:a.han)==null?void 0:r[t[1].he])!=null?f:t[1].he),n;return{c(){e=p("div"),n=S(l),c(e,"class","bd-red")},m(u,m){E(u,e,m),o(e,n)},p(u,m){var _,d,v,b,h;m&18&&l!==(l=((d=(_=u[4].header)==null?void 0:_.han)!=null?d:"HAN")+": "+((h=(b=(v=u[4].errors)==null?void 0:v.han)==null?void 0:b[u[1].he])!=null?h:u[1].he))&&q(n,l)},d(u){u&&P(e)}}}function Bs(t){var i,s,a,r,f;let e,l=((s=(i=t[4].header)==null?void 0:i.mqtt)!=null?s:"MQTT")+": "+((f=(r=(a=t[4].errors)==null?void 0:a.mqtt)==null?void 0:r[t[1].me])!=null?f:t[1].me),n;return{c(){e=p("div"),n=S(l),c(e,"class","bd-red")},m(u,m){E(u,e,m),o(e,n)},p(u,m){var _,d,v,b,h;m&18&&l!==(l=((d=(_=u[4].header)==null?void 0:_.mqtt)!=null?d:"MQTT")+": "+((h=(b=(v=u[4].errors)==null?void 0:v.mqtt)==null?void 0:b[u[1].me])!=null?h:u[1].me))&&q(n,l)},d(u){u&&P(e)}}}function Us(t){var i,s,a,r,f;let e,l=((s=(i=t[4].header)==null?void 0:i.price)!=null?s:"PS")+": "+((f=(r=(a=t[4].errors)==null?void 0:a.price)==null?void 0:r[t[1].ee])!=null?f:t[1].ee),n;return{c(){e=p("div"),n=S(l),c(e,"class","bd-red")},m(u,m){E(u,e,m),o(e,n)},p(u,m){var _,d,v,b,h;m&18&&l!==(l=((d=(_=u[4].header)==null?void 0:_.price)!=null?d:"PS")+": "+((h=(b=(v=u[4].errors)==null?void 0:v.price)==null?void 0:b[u[1].ee])!=null?h:u[1].ee))&&q(n,l)},d(u){u&&P(e)}}}function js(t){let e,l,n,i,s,a,r,f;return l=new Al({props:{to:"/configuration",$$slots:{default:[F1]},$$scope:{ctx:t}}}),a=new Al({props:{to:"/status",$$slots:{default:[B1]},$$scope:{ctx:t}}}),{c(){var u,m,_,d;e=p("div"),Oe(l.$$.fragment),i=g(),s=p("div"),Oe(a.$$.fragment),c(e,"class","flex-none px-1 mt-1"),c(e,"title",n=(m=(u=t[4].header)==null?void 0:u.config)!=null?m:""),c(s,"class","flex-none px-1 mt-1"),c(s,"title",r=(d=(_=t[4].header)==null?void 0:_.status)!=null?d:"")},m(u,m){E(u,e,m),Le(l,e,null),E(u,i,m),E(u,s,m),Le(a,s,null),f=!0},p(u,m){var v,b,h,M;const _={};m&64&&(_.$$scope={dirty:m,ctx:u}),l.$set(_),(!f||m&16&&n!==(n=(b=(v=u[4].header)==null?void 0:v.config)!=null?b:""))&&c(e,"title",n);const d={};m&64&&(d.$$scope={dirty:m,ctx:u}),a.$set(d),(!f||m&16&&r!==(r=(M=(h=u[4].header)==null?void 0:h.status)!=null?M:""))&&c(s,"title",r)},i(u){f||(J(l.$$.fragment,u),J(a.$$.fragment,u),f=!0)},o(u){ie(l.$$.fragment,u),ie(a.$$.fragment,u),f=!1},d(u){u&&P(e),Ie(l),u&&P(i),u&&P(s),Ie(a)}}}function F1(t){let e,l;return e=new q1({}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function B1(t){let e,l;return e=new L1({}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function ys(t){let e,l;function n(a,r){return a[2].security==0||a[1].a?j1:U1}let i=n(t),s=i(t);return{c(){var a,r;e=p("div"),s.c(),c(e,"class","flex-none mr-3 text-yellow-500"),c(e,"title",l=((r=(a=t[4].header)==null?void 0:a.new_version)!=null?r:"New version")+": "+t[3].tag_name)},m(a,r){E(a,e,r),s.m(e,null)},p(a,r){var f,u;i===(i=n(a))&&s?s.p(a,r):(s.d(1),s=i(a),s&&(s.c(),s.m(e,null))),r&24&&l!==(l=((u=(f=a[4].header)==null?void 0:f.new_version)!=null?u:"New version")+": "+a[3].tag_name)&&c(e,"title",l)},d(a){a&&P(e),s.d()}}}function U1(t){var r,f;let e,l=((f=(r=t[4].header)==null?void 0:r.new_version)!=null?f:"New version")+"",n,i,s=t[3].tag_name+"",a;return{c(){e=p("span"),n=S(l),i=S(": "),a=S(s)},m(u,m){E(u,e,m),o(e,n),o(e,i),o(e,a)},p(u,m){var _,d;m&16&&l!==(l=((d=(_=u[4].header)==null?void 0:_.new_version)!=null?d:"New version")+"")&&q(n,l),m&8&&s!==(s=u[3].tag_name+"")&&q(a,s)},d(u){u&&P(e)}}}function j1(t){var m,_;let e,l,n=((_=(m=t[4].header)==null?void 0:m.new_version)!=null?_:"New version")+"",i,s,a=t[3].tag_name+"",r,f,u;return{c(){e=p("button"),l=p("span"),i=S(n),s=S(": "),r=S(a),c(l,"class","mt-1"),c(e,"class","flex")},m(d,v){E(d,e,v),o(e,l),o(l,i),o(l,s),o(l,r),f||(u=me(e,"click",t[5]),f=!0)},p(d,v){var b,h;v&16&&n!==(n=((h=(b=d[4].header)==null?void 0:b.new_version)!=null?h:"New version")+"")&&q(i,n),v&8&&a!==(a=d[3].tag_name+"")&&q(r,a)},d(d){d&&P(e),f=!1,u()}}}function y1(t){var te,ee,oe,ce,Pe,Ce,de,Ne,Te,ve,be,He,ye,Ve,xe,Je,it,We,_t,Ee;let e,l,n,i,s,a,r,f,u,m,_,d=((ee=(te=t[4].header)==null?void 0:te.mem)!=null?ee:"Free")+"",v,b,h=(t[1].m?(t[1].m/1e3).toFixed(1):"-")+"",M,k,T,I,O,C,B,L,z,y,V,R,F,Y,j,W,K,U,H,Z,ne,X,$,ae,le,se,fe,re,Q,x,ge;i=new Al({props:{to:"/",$$slots:{default:[R1]},$$scope:{ctx:t}}}),f=new C1({props:{epoch:t[1].u}});let pe=t[1].t>-50&&Rs(t);O=new xl({props:{title:(ce=(oe=t[4].header)==null?void 0:oe.esp)!=null?ce:"ESP",text:t[2].booting?(Ce=(Pe=t[4].header)==null?void 0:Pe.booting)!=null?Ce:"Booting":t[1].v>2?t[1].v.toFixed(2)+"V":(Ne=(de=t[4].header)==null?void 0:de.esp)!=null?Ne:"ESP",color:Yl(t[2].booting?2:t[1].em)}}),B=new xl({props:{title:(ve=(Te=t[4].header)==null?void 0:Te.han)!=null?ve:"HAN",text:(He=(be=t[4].header)==null?void 0:be.han)!=null?He:"HAN",color:Yl(t[2].booting?9:t[1].hm)}}),z=new xl({props:{title:(Ve=(ye=t[4].header)==null?void 0:ye.wifi)!=null?Ve:"WiFi",text:t[1].r?t[1].r.toFixed(0)+"dBm":(Je=(xe=t[4].header)==null?void 0:xe.wifi)!=null?Je:"WiFi",color:Yl(t[2].booting?9:t[1].wm)}}),V=new xl({props:{title:(We=(it=t[4].header)==null?void 0:it.mqtt)!=null?We:"MQTT",text:(Ee=(_t=t[4].header)==null?void 0:_t.mqtt)!=null?Ee:"MQTT",color:Yl(t[2].booting?9:t[1].mm)}});let N=(t[1].he<0||t[1].he>0)&&Fs(t),w=t[1].me<0&&Bs(t),D=(t[1].ee>0||t[1].ee<0)&&Us(t);$=new Lu({props:{timestamp:t[1].c?new Date(t[1].c*1e3):new Date(0),offset:t[2].clock_offset,fullTimeColor:"text-red-500"}});let A=t[2].vndcfg&&t[2].usrcfg&&js(t);re=new O1({});let G=t[2].fwconsent===1&&t[3]&&ys(t);return{c(){var _e,Ue;e=p("nav"),l=p("div"),n=p("div"),Oe(i.$$.fragment),s=g(),a=p("div"),r=p("div"),Oe(f.$$.fragment),u=g(),pe&&pe.c(),m=g(),_=p("div"),v=S(d),b=S(": "),M=S(h),k=S("kb"),T=g(),I=p("div"),Oe(O.$$.fragment),C=g(),Oe(B.$$.fragment),L=g(),Oe(z.$$.fragment),y=g(),Oe(V.$$.fragment),R=g(),N&&N.c(),F=g(),w&&w.c(),Y=g(),D&&D.c(),j=g(),W=p("div"),K=p("div"),U=p("a"),H=p("img"),ne=g(),X=p("div"),Oe($.$$.fragment),ae=g(),A&&A.c(),le=g(),se=p("div"),fe=p("a"),Oe(re.$$.fragment),x=g(),G&&G.c(),c(n,"class","flex text-lg text-gray-100 p-2"),c(r,"class","flex-none my-auto"),c(_,"class","flex-none my-auto"),c(a,"class","flex-none my-auto p-2 flex space-x-4"),c(I,"class","flex-auto flex-wrap my-auto justify-center p-2"),c(H,"class","logo"),fi(H.src,Z=(t[0]+"/logo.svg").replace("//","/"))||c(H,"src",Z),c(H,"alt","GitHub repo"),c(U,"class","float-right"),c(U,"href","https://github.com/UtilitechAS/amsreader-firmware"),c(U,"target","_blank"),c(U,"rel","noreferrer"),c(U,"aria-label","GitHub"),c(K,"class","flex-none"),c(X,"class","flex-none my-auto px-2"),c(fe,"href",ql("")),c(fe,"target","_blank"),c(fe,"rel","noreferrer"),c(se,"class","flex-none px-1 mt-1"),c(se,"title",Q=(Ue=(_e=t[4].header)==null?void 0:_e.doc)!=null?Ue:""),c(W,"class","flex-auto p-2 flex flex-row-reverse flex-wrap"),c(l,"class","flex flex-wrap space-x-4 text-sm text-gray-300"),c(e,"class","hdr")},m(_e,Ue){E(_e,e,Ue),o(e,l),o(l,n),Le(i,n,null),o(l,s),o(l,a),o(a,r),Le(f,r,null),o(a,u),pe&&pe.m(a,null),o(a,m),o(a,_),o(_,v),o(_,b),o(_,M),o(_,k),o(l,T),o(l,I),Le(O,I,null),o(I,C),Le(B,I,null),o(I,L),Le(z,I,null),o(I,y),Le(V,I,null),o(l,R),N&&N.m(l,null),o(l,F),w&&w.m(l,null),o(l,Y),D&&D.m(l,null),o(l,j),o(l,W),o(W,K),o(K,U),o(U,H),o(W,ne),o(W,X),Le($,X,null),o(W,ae),A&&A.m(W,null),o(W,le),o(W,se),o(se,fe),Le(re,fe,null),o(W,x),G&&G.m(W,null),ge=!0},p(_e,[Ue]){var Xe,Qe,ut,we,Ae,ke,ue,De,rt,st,at,pt,ht,Rt,Pt,ct,Ft,zt,Bt,Ut,qt,yt;const kt={};Ue&68&&(kt.$$scope={dirty:Ue,ctx:_e}),i.$set(kt);const wt={};Ue&2&&(wt.epoch=_e[1].u),f.$set(wt),_e[1].t>-50?pe?pe.p(_e,Ue):(pe=Rs(_e),pe.c(),pe.m(a,m)):pe&&(pe.d(1),pe=null),(!ge||Ue&16)&&d!==(d=((Qe=(Xe=_e[4].header)==null?void 0:Xe.mem)!=null?Qe:"Free")+"")&&q(v,d),(!ge||Ue&2)&&h!==(h=(_e[1].m?(_e[1].m/1e3).toFixed(1):"-")+"")&&q(M,h);const nt={};Ue&16&&(nt.title=(we=(ut=_e[4].header)==null?void 0:ut.esp)!=null?we:"ESP"),Ue&22&&(nt.text=_e[2].booting?(ke=(Ae=_e[4].header)==null?void 0:Ae.booting)!=null?ke:"Booting":_e[1].v>2?_e[1].v.toFixed(2)+"V":(De=(ue=_e[4].header)==null?void 0:ue.esp)!=null?De:"ESP"),Ue&6&&(nt.color=Yl(_e[2].booting?2:_e[1].em)),O.$set(nt);const vt={};Ue&16&&(vt.title=(st=(rt=_e[4].header)==null?void 0:rt.han)!=null?st:"HAN"),Ue&16&&(vt.text=(pt=(at=_e[4].header)==null?void 0:at.han)!=null?pt:"HAN"),Ue&6&&(vt.color=Yl(_e[2].booting?9:_e[1].hm)),B.$set(vt);const ze={};Ue&16&&(ze.title=(Rt=(ht=_e[4].header)==null?void 0:ht.wifi)!=null?Rt:"WiFi"),Ue&18&&(ze.text=_e[1].r?_e[1].r.toFixed(0)+"dBm":(ct=(Pt=_e[4].header)==null?void 0:Pt.wifi)!=null?ct:"WiFi"),Ue&6&&(ze.color=Yl(_e[2].booting?9:_e[1].wm)),z.$set(ze);const Ke={};Ue&16&&(Ke.title=(zt=(Ft=_e[4].header)==null?void 0:Ft.mqtt)!=null?zt:"MQTT"),Ue&16&&(Ke.text=(Ut=(Bt=_e[4].header)==null?void 0:Bt.mqtt)!=null?Ut:"MQTT"),Ue&6&&(Ke.color=Yl(_e[2].booting?9:_e[1].mm)),V.$set(Ke),_e[1].he<0||_e[1].he>0?N?N.p(_e,Ue):(N=Fs(_e),N.c(),N.m(l,F)):N&&(N.d(1),N=null),_e[1].me<0?w?w.p(_e,Ue):(w=Bs(_e),w.c(),w.m(l,Y)):w&&(w.d(1),w=null),_e[1].ee>0||_e[1].ee<0?D?D.p(_e,Ue):(D=Us(_e),D.c(),D.m(l,j)):D&&(D.d(1),D=null),(!ge||Ue&1&&!fi(H.src,Z=(_e[0]+"/logo.svg").replace("//","/")))&&c(H,"src",Z);const Ye={};Ue&2&&(Ye.timestamp=_e[1].c?new Date(_e[1].c*1e3):new Date(0)),Ue&4&&(Ye.offset=_e[2].clock_offset),$.$set(Ye),_e[2].vndcfg&&_e[2].usrcfg?A?(A.p(_e,Ue),Ue&4&&J(A,1)):(A=js(_e),A.c(),J(A,1),A.m(W,le)):A&&(bt(),ie(A,1,1,()=>{A=null}),gt()),(!ge||Ue&16&&Q!==(Q=(yt=(qt=_e[4].header)==null?void 0:qt.doc)!=null?yt:""))&&c(se,"title",Q),_e[2].fwconsent===1&&_e[3]?G?G.p(_e,Ue):(G=ys(_e),G.c(),G.m(W,null)):G&&(G.d(1),G=null)},i(_e){ge||(J(i.$$.fragment,_e),J(f.$$.fragment,_e),J(O.$$.fragment,_e),J(B.$$.fragment,_e),J(z.$$.fragment,_e),J(V.$$.fragment,_e),J($.$$.fragment,_e),J(A),J(re.$$.fragment,_e),ge=!0)},o(_e){ie(i.$$.fragment,_e),ie(f.$$.fragment,_e),ie(O.$$.fragment,_e),ie(B.$$.fragment,_e),ie(z.$$.fragment,_e),ie(V.$$.fragment,_e),ie($.$$.fragment,_e),ie(A),ie(re.$$.fragment,_e),ge=!1},d(_e){_e&&P(e),Ie(i),Ie(f),pe&&pe.d(),Ie(O),Ie(B),Ie(z),Ie(V),N&&N.d(),w&&w.d(),D&&D.d(),Ie($),A&&A.d(),Ie(re),G&&G.d()}}}function H1(t,e,l){let{basepath:n="/"}=e,{data:i={}}=e,s={},a={};function r(){var u,m;confirm(((m=(u=f.header)==null?void 0:u.upgrade)!=null?m:"Upgrade to {0}?").replace("{0}",a.tag_name))&&(!rn(s.board)||confirm(pi(lt(s.chip,s.board))))&&(kl.update(_=>(_.upgrading=!0,_)),qu(a.tag_name))}kl.subscribe(u=>{l(2,s=u),u.fwconsent===1&&m1()}),ls.subscribe(u=>{l(3,a=Au(s.version,u))});let f={};return Ol.subscribe(u=>{l(4,f=u)}),t.$$set=u=>{"basepath"in u&&l(0,n=u.basepath),"data"in u&&l(1,i=u.data)},[n,i,s,a,f,r]}class z1 extends It{constructor(e){super(),Lt(this,e,H1,y1,Dt,{basepath:0,data:1})}}function W1(t){let e,l,n,i;return{c(){e=jt("svg"),l=jt("path"),n=jt("path"),c(l,"d",Ci(150,150,115,210,510)),c(l,"stroke","rgba(128, 128, 128, 0.15)"),c(l,"fill","none"),c(l,"stroke-width","55"),c(n,"d",i=Ci(150,150,115,210,210+300*t[0]/100)),c(n,"stroke",t[1]),c(n,"fill","none"),c(n,"stroke-width","55"),c(e,"viewBox","0 0 300 300"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"height","100%")},m(s,a){E(s,e,a),o(e,l),o(e,n)},p(s,[a]){a&1&&i!==(i=Ci(150,150,115,210,210+300*s[0]/100))&&c(n,"d",i),a&2&&c(n,"stroke",s[1])},i:Ze,o:Ze,d(s){s&&P(e)}}}function Hs(t,e,l,n){var i=(n-90)*Math.PI/180;return{x:t+l*Math.cos(i),y:e+l*Math.sin(i)}}function Ci(t,e,l,n,i){var s=Hs(t,e,l,i),a=Hs(t,e,l,n),r=i-n<=180?"0":"1",f=["M",s.x,s.y,"A",l,l,0,r,0,a.x,a.y].join(" ");return f}function G1(t,e,l){let{pct:n=0}=e,{color:i="red"}=e;return t.$$set=s=>{"pct"in s&&l(0,n=s.pct),"color"in s&&l(1,i=s.color)},[n,i]}class V1 extends It{constructor(e){super(),Lt(this,e,G1,W1,Dt,{pct:0,color:1})}}function zs(t){let e,l,n,i,s,a,r,f;return{c(){e=p("br"),l=g(),n=p("span"),i=S(t[1]),s=g(),a=p("span"),r=S(t[2]),f=S("/kWh"),c(n,"class","pl-sub"),c(a,"class","pl-snt")},m(u,m){E(u,e,m),E(u,l,m),E(u,n,m),o(n,i),E(u,s,m),E(u,a,m),o(a,r),o(a,f)},p(u,m){m&2&&q(i,u[1]),m&4&&q(r,u[2])},d(u){u&&P(e),u&&P(l),u&&P(n),u&&P(s),u&&P(a)}}}function K1(t){let e,l,n,i,s,a,r,f,u,m,_=t[4][0]+"",d,v,b,h=t[4][1]+"",M,k,T;l=new V1({props:{pct:t[5],color:t[3](t[5],document.documentElement.classList.contains("dark"))}});let I=t[1]&&zs(t);return{c(){e=p("div"),Oe(l.$$.fragment),n=g(),i=p("span"),s=p("span"),a=S(t[0]),r=g(),f=p("br"),u=g(),m=p("span"),d=S(_),v=g(),b=p("span"),M=S(h),k=g(),I&&I.c(),c(s,"class","pl-lab"),c(m,"class","pl-val"),c(b,"class","pl-unt"),c(i,"class","pl-ov"),c(e,"class","pl-root")},m(O,C){E(O,e,C),Le(l,e,null),o(e,n),o(e,i),o(i,s),o(s,a),o(i,r),o(i,f),o(i,u),o(i,m),o(m,d),o(i,v),o(i,b),o(b,M),o(i,k),I&&I.m(i,null),T=!0},p(O,[C]){const B={};C&32&&(B.pct=O[5]),C&40&&(B.color=O[3](O[5],document.documentElement.classList.contains("dark"))),l.$set(B),(!T||C&1)&&q(a,O[0]),(!T||C&16)&&_!==(_=O[4][0]+"")&&q(d,_),(!T||C&16)&&h!==(h=O[4][1]+"")&&q(M,h),O[1]?I?I.p(O,C):(I=zs(O),I.c(),I.m(i,null)):I&&(I.d(1),I=null)},i(O){T||(J(l.$$.fragment,O),T=!0)},o(O){ie(l.$$.fragment,O),T=!1},d(O){O&&P(e),Ie(l),I&&I.d()}}}function Y1(t,e,l){let{val:n}=e,{max:i}=e,{unit:s}=e,{label:a}=e,{sub:r=""}=e,{subunit:f=""}=e,{colorFn:u}=e,m,_=0;return t.$$set=d=>{"val"in d&&l(6,n=d.val),"max"in d&&l(7,i=d.max),"unit"in d&&l(8,s=d.unit),"label"in d&&l(0,a=d.label),"sub"in d&&l(1,r=d.sub),"subunit"in d&&l(2,f=d.subunit),"colorFn"in d&&l(3,u=d.colorFn)},t.$$.update=()=>{t.$$.dirty&448&&(l(4,m=gl(n,s)),l(5,_=Math.min(n,i)/i*100))},[a,r,f,u,m,_,n,i,s]}class Iu extends It{constructor(e){super(),Lt(this,e,Y1,K1,Dt,{val:6,max:7,unit:8,label:0,sub:1,subunit:2,colorFn:3})}}function Ws(t,e,l){const n=t.slice();return n[11]=e[l],n[13]=l,n}function Gs(t,e,l){const n=t.slice();return n[11]=e[l],n[13]=l,n}function Vs(t,e,l){const n=t.slice();return n[15]=e[l],n}function Ks(t){let e,l,n,i,s,a,r,f=(t[0].title||t[0].link)&&Ys(t),u=t[0].y.ticks,m=[];for(let h=0;h{f=null}),gt()),M&129){u=h[0].y.ticks;let k;for(k=0;k{s=null}),gt())},i(a){n||(J(s),n=!0)},o(a){ie(s),n=!1},d(a){a&&P(e),i&&i.d(),s&&s.d()}}}function Qs(t){let e,l=t[0].title+"",n,i;return{c(){e=p("div"),n=S(l),c(e,"class","text-sm font-bold"),Wt(()=>t[9].call(e))},m(s,a){E(s,e,a),o(e,n),i=Qi(e,t[9].bind(e))},p(s,a){a&1&&l!==(l=s[0].title+"")&&q(n,l)},d(s){s&&P(e),i()}}}function Xs(t){let e,l,n,i;const s=[X1,Q1],a=[];function r(f,u){return f[0].link.route?0:1}return l=r(t),n=a[l]=s[l](t),{c(){e=p("div"),n.c(),c(e,"class","text-xs text-right")},m(f,u){E(f,e,u),a[l].m(e,null),i=!0},p(f,u){let m=l;l=r(f),l===m?a[l].p(f,u):(bt(),ie(a[m],1,1,()=>{a[m]=null}),gt(),n=a[l],n?n.p(f,u):(n=a[l]=s[l](f),n.c()),J(n,1),n.m(e,null))},i(f){i||(J(n),i=!0)},o(f){ie(n),i=!1},d(f){f&&P(e),a[l].d()}}}function Q1(t){let e,l=t[0].link.text+"",n,i,s;return{c(){e=p("a"),n=S(l),c(e,"href",i=t[0].link.url),c(e,"target",s=t[0].link.target)},m(a,r){E(a,e,r),o(e,n)},p(a,r){r&1&&l!==(l=a[0].link.text+"")&&q(n,l),r&1&&i!==(i=a[0].link.url)&&c(e,"href",i),r&1&&s!==(s=a[0].link.target)&&c(e,"target",s)},i:Ze,o:Ze,d(a){a&&P(e)}}}function X1(t){let e,l;return e=new Al({props:{to:t[0].link.url,$$slots:{default:[Z1]},$$scope:{ctx:t}}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,i){const s={};i&1&&(s.to=n[0].link.url),i&262145&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function Z1(t){let e=t[0].link.text+"",l;return{c(){l=S(e)},m(n,i){E(n,l,i)},p(n,i){i&1&&e!==(e=n[0].link.text+"")&&q(l,e)},d(n){n&&P(l)}}}function Zs(t){let e,l,n,i=t[15].label+"",s,a,r,f;return{c(){e=jt("g"),l=jt("line"),n=jt("text"),s=S(i),c(l,"x2","100%"),c(n,"y","-4"),c(n,"x",a=t[15].align=="right"?"85%":""),c(e,"class",r="tick tick-"+t[15].value+" tick-"+t[15].color),c(e,"transform",f="translate(0, "+t[7](t[15].value)+")")},m(u,m){E(u,e,m),o(e,l),o(e,n),o(n,s)},p(u,m){m&1&&i!==(i=u[15].label+"")&&q(s,i),m&1&&a!==(a=u[15].align=="right"?"85%":"")&&c(n,"x",a),m&1&&r!==(r="tick tick-"+u[15].value+" tick-"+u[15].color)&&c(e,"class",r),m&129&&f!==(f="translate(0, "+u[7](u[15].value)+")")&&c(e,"transform",f)},d(u){u&&P(e)}}}function Js(t){let e=!isNaN(t[7](t[15].value)),l,n=e&&Zs(t);return{c(){n&&n.c(),l=$t()},m(i,s){n&&n.m(i,s),E(i,l,s)},p(i,s){s&129&&(e=!isNaN(i[7](i[15].value))),e?n?n.p(i,s):(n=Zs(i),n.c(),n.m(l.parentNode,l)):n&&(n.d(1),n=null)},d(i){n&&n.d(i),i&&P(l)}}}function $s(t){let e,l,n=(t[3]>20||t[13]%2==0)&&xs(t);return{c(){e=jt("g"),n&&n.c(),c(e,"class","tick"),c(e,"transform",l="translate("+t[6](t[13])+","+t[4]+")")},m(i,s){E(i,e,s),n&&n.m(e,null)},p(i,s){i[3]>20||i[13]%2==0?n?n.p(i,s):(n=xs(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null),s&80&&l!==(l="translate("+i[6](i[13])+","+i[4]+")")&&c(e,"transform",l)},d(i){i&&P(e),n&&n.d()}}}function xs(t){let e,l=t[11].label+"",n,i;return{c(){e=jt("text"),n=S(l),c(e,"x",i=t[3]/2),c(e,"y","-4")},m(s,a){E(s,e,a),o(e,n)},p(s,a){a&1&&l!==(l=s[11].label+"")&&q(n,l),a&8&&i!==(i=s[3]/2)&&c(e,"x",i)},d(s){s&&P(e)}}}function eo(t){let e=!isNaN(t[6](t[13])),l,n=e&&$s(t);return{c(){n&&n.c(),l=$t()},m(i,s){n&&n.m(i,s),E(i,l,s)},p(i,s){s&64&&(e=!isNaN(i[6](i[13]))),e?n?n.p(i,s):(n=$s(i),n.c(),n.m(l.parentNode,l)):n&&(n.d(1),n=null)},d(i){n&&n.d(i),i&&P(l)}}}function to(t){let e,l,n=t[11].value!==void 0&&lo(t),i=t[11].value2>1e-4&&so(t);return{c(){e=jt("g"),n&&n.c(),l=jt("g"),i&&i.c()},m(s,a){E(s,e,a),n&&n.m(e,null),E(s,l,a),i&&i.m(l,null)},p(s,a){s[11].value!==void 0?n?n.p(s,a):(n=lo(s),n.c(),n.m(e,null)):n&&(n.d(1),n=null),s[11].value2>1e-4?i?i.p(s,a):(i=so(s),i.c(),i.m(l,null)):i&&(i.d(1),i=null)},d(s){s&&P(e),n&&n.d(),s&&P(l),i&&i.d()}}}function lo(t){let e,l,n,i,s,a,r,f=t[3]>15&&no(t);return{c(){e=jt("rect"),f&&f.c(),r=$t(),c(e,"x",l=t[6](t[13])+2),c(e,"y",n=t[7](t[11].value)),c(e,"width",i=t[3]-4),c(e,"height",s=t[7](t[0].y.min)-t[7](Math.min(t[0].y.min,0)+t[11].value)),c(e,"fill",a=t[11].color)},m(u,m){E(u,e,m),f&&f.m(u,m),E(u,r,m)},p(u,m){m&64&&l!==(l=u[6](u[13])+2)&&c(e,"x",l),m&129&&n!==(n=u[7](u[11].value))&&c(e,"y",n),m&8&&i!==(i=u[3]-4)&&c(e,"width",i),m&129&&s!==(s=u[7](u[0].y.min)-u[7](Math.min(u[0].y.min,0)+u[11].value))&&c(e,"height",s),m&1&&a!==(a=u[11].color)&&c(e,"fill",a),u[3]>15?f?f.p(u,m):(f=no(u),f.c(),f.m(r.parentNode,r)):f&&(f.d(1),f=null)},d(u){u&&P(e),f&&f.d(u),u&&P(r)}}}function no(t){let e,l=t[11].label+"",n,i,s,a,r,f,u=t[11].title&&io(t);return{c(){e=jt("text"),n=S(l),u&&u.c(),f=$t(),c(e,"width",i=t[3]-4),c(e,"dominant-baseline","middle"),c(e,"text-anchor",s=t[3]t[7](0)-t[8]&&!t[0].dark?t[11].color:"white"),c(e,"transform",r="translate("+(t[6](t[13])+t[3]/2)+" "+(t[7](t[11].value)>t[7](0)-t[8]?t[7](t[11].value)-t[8]:t[7](t[11].value)+10)+") rotate("+(t[11].labelAngle?t[11].labelAngle:t[3]m[7](0)-m[8]&&!m[0].dark?m[11].color:"white")&&c(e,"fill",a),_&457&&r!==(r="translate("+(m[6](m[13])+m[3]/2)+" "+(m[7](m[11].value)>m[7](0)-m[8]?m[7](m[11].value)-m[8]:m[7](m[11].value)+10)+") rotate("+(m[11].labelAngle?m[11].labelAngle:m[3]15&&oo(t);return{c(){e=jt("rect"),f&&f.c(),r=$t(),c(e,"x",l=t[6](t[13])+2),c(e,"y",n=t[7](0)),c(e,"width",i=t[3]-4),c(e,"height",s=t[7](t[0].y.min)-t[7](t[0].y.min+t[11].value2)),c(e,"fill",a=t[11].color2?t[11].color2:t[11].color)},m(u,m){E(u,e,m),f&&f.m(u,m),E(u,r,m)},p(u,m){m&64&&l!==(l=u[6](u[13])+2)&&c(e,"x",l),m&128&&n!==(n=u[7](0))&&c(e,"y",n),m&8&&i!==(i=u[3]-4)&&c(e,"width",i),m&129&&s!==(s=u[7](u[0].y.min)-u[7](u[0].y.min+u[11].value2))&&c(e,"height",s),m&1&&a!==(a=u[11].color2?u[11].color2:u[11].color)&&c(e,"fill",a),u[3]>15?f?f.p(u,m):(f=oo(u),f.c(),f.m(r.parentNode,r)):f&&(f.d(1),f=null)},d(u){u&&P(e),f&&f.d(u),u&&P(r)}}}function oo(t){let e,l=t[11].label2+"",n,i,s,a,r,f=t[11].title2&&ao(t);return{c(){e=jt("text"),n=S(l),f&&f.c(),r=$t(),c(e,"width",i=t[3]-4),c(e,"dominant-baseline","middle"),c(e,"text-anchor","middle"),c(e,"fill",s=t[7](-t[11].value2)t[10].call(e))},m(s,a){E(s,e,a),i&&i.m(e,null),l=Qi(e,t[10].bind(e)),n=!0},p(s,[a]){s[0].x.ticks&&s[0].points&&s[4]?i?(i.p(s,a),a&17&&J(i,1)):(i=Ks(s),i.c(),J(i,1),i.m(e,null)):i&&(bt(),ie(i,1,1,()=>{i=null}),gt())},i(s){n||(J(i),n=!0)},o(s){ie(i),n=!1},d(s){s&&P(e),i&&i.d(),l()}}}let en=30;function $1(t,e,l){let{config:n}=e,i,s,a,r,f,u,m,_=0;function d(){_=this.clientHeight,l(5,_)}function v(){i=this.clientWidth,s=this.clientHeight,l(1,i),l(2,s)}return t.$$set=b=>{"config"in b&&l(0,n=b.config)},t.$$.update=()=>{if(t.$$.dirty&63){l(4,u=s-_);let b=i-(n.padding.left+n.padding.right);l(3,a=b/n.points.length),l(8,m=an.y.max?k=n.padding.bottom:Mu||k<0?0:k})}},[n,i,s,a,u,_,r,f,m,d,v]}class nn extends It{constructor(e){super(),Lt(this,e,$1,J1,Dt,{config:0})}}function x1(t){let e,l;return e=new nn({props:{config:t[0]}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,[i]){const s={};i&1&&(s.config=n[0]),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function e0(t,e,l){let{title:n}=e,{u1:i}=e,{u2:s}=e,{u3:a}=e,{ds:r}=e,f={};function u(m){return{label:Xt(m)+"V",title:m.toFixed(1)+" V",value:isNaN(m)?0:m,color:i1(m||0,document.documentElement.classList.contains("dark"))}}return t.$$set=m=>{"title"in m&&l(1,n=m.title),"u1"in m&&l(2,i=m.u1),"u2"in m&&l(3,s=m.u2),"u3"in m&&l(4,a=m.u3),"ds"in m&&l(5,r=m.ds)},t.$$.update=()=>{if(t.$$.dirty&62){let m=[],_=[];i>0&&(m.push({label:r===1?"L1-L2":"L1"}),_.push(u(i))),s>0&&(m.push({label:r===1?"L1-L3":"L2"}),_.push(u(s))),a>0&&(m.push({label:r===1?"L2-L3":"L3"}),_.push(u(a))),l(0,f={title:n,padding:{top:20,right:15,bottom:20,left:35},y:{min:200,max:260,ticks:[{value:207,label:"-10%"},{value:230,label:"230v"},{value:253,label:"+10%"}]},x:{ticks:m},points:_})}},[f,n,i,s,a,r]}class t0 extends It{constructor(e){super(),Lt(this,e,e0,x1,Dt,{title:1,u1:2,u2:3,u3:4,ds:5})}}function l0(t){var A,G,te,ee,oe,ce,Pe,Ce,de,Ne;let e,l,n=((G=(A=t[0].reactive)==null?void 0:A.title)!=null?G:"Reactive")+"",i,s,a,r,f=((ee=(te=t[0].reactive)==null?void 0:te.instant_in)!=null?ee:"Instant in")+"",u,m,_,d=t[1][0]+"",v,b,h=t[1][1]+"",M,k,T,I=((ce=(oe=t[0].reactive)==null?void 0:oe.instant_out)!=null?ce:"Instant out")+"",O,C,B,L=t[2][0]+"",z,y,V=t[2][1]+"",R,F,Y,j,W=((Ce=(Pe=t[0].reactive)==null?void 0:Pe.total_in)!=null?Ce:"Total in")+"",K,U,H,Z=t[3][0]+"",ne,X,$=t[3][1]+"",ae,le,se,fe=((Ne=(de=t[0].reactive)==null?void 0:de.total_out)!=null?Ne:"Total out")+"",re,Q,x,ge=t[4][0]+"",pe,N,w=t[4][1]+"",D;return{c(){e=p("div"),l=p("strong"),i=S(n),s=g(),a=p("div"),r=p("div"),u=S(f),m=g(),_=p("div"),v=S(d),b=g(),M=S(h),k=g(),T=p("div"),O=S(I),C=g(),B=p("div"),z=S(L),y=g(),R=S(V),F=g(),Y=p("div"),j=p("div"),K=S(W),U=g(),H=p("div"),ne=S(Z),X=g(),ae=S($),le=g(),se=p("div"),re=S(fe),Q=g(),x=p("div"),pe=S(ge),N=g(),D=S(w),c(_,"class","text-right"),c(B,"class","text-right"),c(a,"class","grid grid-cols-2 mt-4"),c(H,"class","text-right"),c(x,"class","text-right"),c(Y,"class","grid grid-cols-2 mt-4"),c(e,"class","mx-2 text-sm")},m(Te,ve){E(Te,e,ve),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(r,u),o(a,m),o(a,_),o(_,v),o(_,b),o(_,M),o(a,k),o(a,T),o(T,O),o(a,C),o(a,B),o(B,z),o(B,y),o(B,R),o(e,F),o(e,Y),o(Y,j),o(j,K),o(Y,U),o(Y,H),o(H,ne),o(H,X),o(H,ae),o(Y,le),o(Y,se),o(se,re),o(Y,Q),o(Y,x),o(x,pe),o(x,N),o(x,D)},p(Te,[ve]){var be,He,ye,Ve,xe,Je,it,We,_t,Ee;ve&1&&n!==(n=((He=(be=Te[0].reactive)==null?void 0:be.title)!=null?He:"Reactive")+"")&&q(i,n),ve&1&&f!==(f=((Ve=(ye=Te[0].reactive)==null?void 0:ye.instant_in)!=null?Ve:"Instant in")+"")&&q(u,f),ve&2&&d!==(d=Te[1][0]+"")&&q(v,d),ve&2&&h!==(h=Te[1][1]+"")&&q(M,h),ve&1&&I!==(I=((Je=(xe=Te[0].reactive)==null?void 0:xe.instant_out)!=null?Je:"Instant out")+"")&&q(O,I),ve&4&&L!==(L=Te[2][0]+"")&&q(z,L),ve&4&&V!==(V=Te[2][1]+"")&&q(R,V),ve&1&&W!==(W=((We=(it=Te[0].reactive)==null?void 0:it.total_in)!=null?We:"Total in")+"")&&q(K,W),ve&8&&Z!==(Z=Te[3][0]+"")&&q(ne,Z),ve&8&&$!==($=Te[3][1]+"")&&q(ae,$),ve&1&&fe!==(fe=((Ee=(_t=Te[0].reactive)==null?void 0:_t.total_out)!=null?Ee:"Total out")+"")&&q(re,fe),ve&16&&ge!==(ge=Te[4][0]+"")&&q(pe,ge),ve&16&&w!==(w=Te[4][1]+"")&&q(D,w)},i:Ze,o:Ze,d(Te){Te&&P(e)}}}function n0(t,e,l){let{importInstant:n}=e,{exportInstant:i}=e,{importTotal:s}=e,{exportTotal:a}=e,{translations:r={}}=e,f,u,m,_;return t.$$set=d=>{"importInstant"in d&&l(5,n=d.importInstant),"exportInstant"in d&&l(6,i=d.exportInstant),"importTotal"in d&&l(7,s=d.importTotal),"exportTotal"in d&&l(8,a=d.exportTotal),"translations"in d&&l(0,r=d.translations)},t.$$.update=()=>{t.$$.dirty&480&&(l(1,f=gl(n,"VAr")),l(2,u=gl(i,"VAr")),l(3,m=gl(s*1e3,"VArh")),l(4,_=gl(a*1e3,"VArh")))},[r,f,u,m,_,n,i,s,a]}class i0 extends It{constructor(e){super(),Lt(this,e,n0,l0,Dt,{importInstant:5,exportInstant:6,importTotal:7,exportTotal:8,translations:0})}}function uo(t){let e;function l(s,a){return s[3]?o0:s0}let n=l(t),i=n(t);return{c(){i.c(),e=$t()},m(s,a){i.m(s,a),E(s,e,a)},p(s,a){n===(n=l(s))&&i?i.p(s,a):(i.d(1),i=n(s),i&&(i.c(),i.m(e.parentNode,e)))},d(s){i.d(s),s&&P(e)}}}function s0(t){var G,te,ee,oe,ce,Pe,Ce,de,Ne,Te;let e,l=((te=(G=t[4].realtime)==null?void 0:G.consumption)!=null?te:"Consumption")+"",n,i,s,a,r=tl((oe=(ee=t[4].common)==null?void 0:ee.hour)!=null?oe:"Hour")+"",f,u,m,_=t[6][0]+"",d,v,b=t[6][1]+"",h,M,k,T=tl((Pe=(ce=t[4].common)==null?void 0:ce.day)!=null?Pe:"Day")+"",I,O,C,B=t[7][0]+"",L,z,y=t[7][1]+"",V,R,F,Y=tl((de=(Ce=t[4].common)==null?void 0:Ce.month)!=null?de:"Month")+"",j,W,K,U=t[8][0]+"",H,Z,ne=t[8][1]+"",X,$,ae,le=((Te=(Ne=t[4].realtime)==null?void 0:Ne.last_month)!=null?Te:"Last month")+"",se,fe,re,Q=t[9][0]+"",x,ge,pe=t[9][1]+"",N,w,D,A=t[5]&&ro(t);return{c(){e=p("strong"),n=S(l),i=g(),s=p("div"),a=p("div"),f=S(r),u=g(),m=p("div"),d=S(_),v=g(),h=S(b),M=g(),k=p("div"),I=S(T),O=g(),C=p("div"),L=S(B),z=g(),V=S(y),R=g(),F=p("div"),j=S(Y),W=g(),K=p("div"),H=S(U),Z=g(),X=S(ne),$=g(),ae=p("div"),se=S(le),fe=g(),re=p("div"),x=S(Q),ge=g(),N=S(pe),w=g(),A&&A.c(),D=$t(),c(m,"class","text-right"),c(C,"class","text-right"),c(K,"class","text-right"),c(re,"class","text-right"),c(s,"class","grid grid-cols-2 mb-3")},m(ve,be){E(ve,e,be),o(e,n),E(ve,i,be),E(ve,s,be),o(s,a),o(a,f),o(s,u),o(s,m),o(m,d),o(m,v),o(m,h),o(s,M),o(s,k),o(k,I),o(s,O),o(s,C),o(C,L),o(C,z),o(C,V),o(s,R),o(s,F),o(F,j),o(s,W),o(s,K),o(K,H),o(K,Z),o(K,X),o(s,$),o(s,ae),o(ae,se),o(s,fe),o(s,re),o(re,x),o(re,ge),o(re,N),E(ve,w,be),A&&A.m(ve,be),E(ve,D,be)},p(ve,be){var He,ye,Ve,xe,Je,it,We,_t,Ee,_e;be&16&&l!==(l=((ye=(He=ve[4].realtime)==null?void 0:He.consumption)!=null?ye:"Consumption")+"")&&q(n,l),be&16&&r!==(r=tl((xe=(Ve=ve[4].common)==null?void 0:Ve.hour)!=null?xe:"Hour")+"")&&q(f,r),be&64&&_!==(_=ve[6][0]+"")&&q(d,_),be&64&&b!==(b=ve[6][1]+"")&&q(h,b),be&16&&T!==(T=tl((it=(Je=ve[4].common)==null?void 0:Je.day)!=null?it:"Day")+"")&&q(I,T),be&128&&B!==(B=ve[7][0]+"")&&q(L,B),be&128&&y!==(y=ve[7][1]+"")&&q(V,y),be&16&&Y!==(Y=tl((_t=(We=ve[4].common)==null?void 0:We.month)!=null?_t:"Month")+"")&&q(j,Y),be&256&&U!==(U=ve[8][0]+"")&&q(H,U),be&256&&ne!==(ne=ve[8][1]+"")&&q(X,ne),be&16&&le!==(le=((_e=(Ee=ve[4].realtime)==null?void 0:Ee.last_month)!=null?_e:"Last month")+"")&&q(se,le),be&512&&Q!==(Q=ve[9][0]+"")&&q(x,Q),be&512&&pe!==(pe=ve[9][1]+"")&&q(N,pe),ve[5]?A?A.p(ve,be):(A=ro(ve),A.c(),A.m(D.parentNode,D)):A&&(A.d(1),A=null)},d(ve){ve&&P(e),ve&&P(i),ve&&P(s),ve&&P(w),A&&A.d(ve),ve&&P(D)}}}function o0(t){var qe,Ge,Qt,el,xt,Se,Re,Fe,il,sl,ol,al,fl,ul,rl,cl,ml,_l,pl,dl;let e,l=((Ge=(qe=t[4].common)==null?void 0:qe.import)!=null?Ge:"Import")+"",n,i,s,a,r=tl((el=(Qt=t[4].common)==null?void 0:Qt.hour)!=null?el:"Hour")+"",f,u,m,_=t[6][0]+"",d,v,b=t[6][1]+"",h,M,k,T,I=tl((Se=(xt=t[4].common)==null?void 0:xt.day)!=null?Se:"Day")+"",O,C,B,L=t[7][0]+"",z,y,V=t[7][1]+"",R,F,Y,j,W=tl((Fe=(Re=t[4].common)==null?void 0:Re.month)!=null?Fe:"Month")+"",K,U,H,Z=t[8][0]+"",ne,X,$=t[8][1]+"",ae,le,se,fe,re=((sl=(il=t[4].realtime)==null?void 0:il.last_mo)!=null?sl:"Last mo.")+"",Q,x,ge,pe=t[9][0]+"",N,w,D=t[9][1]+"",A,G,te,ee,oe,ce=((al=(ol=t[4].common)==null?void 0:ol.export)!=null?al:"Export")+"",Pe,Ce,de,Ne,Te=tl((ul=(fl=t[4].common)==null?void 0:fl.hour)!=null?ul:"Hour")+"",ve,be,He,ye=t[10][0]+"",Ve,xe,Je=t[10][1]+"",it,We,_t,Ee,_e=tl((cl=(rl=t[4].common)==null?void 0:rl.day)!=null?cl:"Day")+"",Ue,kt,wt,nt=t[11][0]+"",vt,ze,Ke=t[11][1]+"",Ye,Xe,Qe,ut,we=tl((_l=(ml=t[4].common)==null?void 0:ml.month)!=null?_l:"Month")+"",Ae,ke,ue,De=t[12][0]+"",rt,st,at=t[12][1]+"",pt,ht,Rt,Pt,ct=((dl=(pl=t[4].realtime)==null?void 0:pl.last_mo)!=null?dl:"Last mo.")+"",Ft,zt,Bt,Ut=t[13][0]+"",qt,yt,Gt=t[13][1]+"",Vt,Yt,Ct,Mt=t[5]&&co(t),ft=t[5]&&mo(t),Nt=t[5]&&_o(t),Et=t[5]&&po(t),dt=t[5]&&vo(t),At=t[5]&&ho(t),St=t[5]&&bo(t),mt=t[5]&&go(t);return{c(){e=p("strong"),n=S(l),i=g(),s=p("div"),a=p("div"),f=S(r),u=g(),m=p("div"),d=S(_),v=g(),h=S(b),M=g(),Mt&&Mt.c(),k=g(),T=p("div"),O=S(I),C=g(),B=p("div"),z=S(L),y=g(),R=S(V),F=g(),ft&&ft.c(),Y=g(),j=p("div"),K=S(W),U=g(),H=p("div"),ne=S(Z),X=g(),ae=S($),le=g(),Nt&&Nt.c(),se=g(),fe=p("div"),Q=S(re),x=g(),ge=p("div"),N=S(pe),w=g(),A=S(D),G=g(),Et&&Et.c(),ee=g(),oe=p("strong"),Pe=S(ce),Ce=g(),de=p("div"),Ne=p("div"),ve=S(Te),be=g(),He=p("div"),Ve=S(ye),xe=g(),it=S(Je),We=g(),dt&&dt.c(),_t=g(),Ee=p("div"),Ue=S(_e),kt=g(),wt=p("div"),vt=S(nt),ze=g(),Ye=S(Ke),Xe=g(),At&&At.c(),Qe=g(),ut=p("div"),Ae=S(we),ke=g(),ue=p("div"),rt=S(De),st=g(),pt=S(at),ht=g(),St&&St.c(),Rt=g(),Pt=p("div"),Ft=S(ct),zt=g(),Bt=p("div"),qt=S(Ut),yt=g(),Vt=S(Gt),Yt=g(),mt&&mt.c(),c(m,"class","text-right"),c(B,"class","text-right"),c(H,"class","text-right"),c(ge,"class","text-right"),c(s,"class",te="grid grid-cols-"+t[14]+" mb-3"),c(He,"class","text-right"),c(wt,"class","text-right"),c(ue,"class","text-right"),c(Bt,"class","text-right"),c(de,"class",Ct="grid grid-cols-"+t[14])},m(Be,et){E(Be,e,et),o(e,n),E(Be,i,et),E(Be,s,et),o(s,a),o(a,f),o(s,u),o(s,m),o(m,d),o(m,v),o(m,h),o(s,M),Mt&&Mt.m(s,null),o(s,k),o(s,T),o(T,O),o(s,C),o(s,B),o(B,z),o(B,y),o(B,R),o(s,F),ft&&ft.m(s,null),o(s,Y),o(s,j),o(j,K),o(s,U),o(s,H),o(H,ne),o(H,X),o(H,ae),o(s,le),Nt&&Nt.m(s,null),o(s,se),o(s,fe),o(fe,Q),o(s,x),o(s,ge),o(ge,N),o(ge,w),o(ge,A),o(s,G),Et&&Et.m(s,null),E(Be,ee,et),E(Be,oe,et),o(oe,Pe),E(Be,Ce,et),E(Be,de,et),o(de,Ne),o(Ne,ve),o(de,be),o(de,He),o(He,Ve),o(He,xe),o(He,it),o(de,We),dt&&dt.m(de,null),o(de,_t),o(de,Ee),o(Ee,Ue),o(de,kt),o(de,wt),o(wt,vt),o(wt,ze),o(wt,Ye),o(de,Xe),At&&At.m(de,null),o(de,Qe),o(de,ut),o(ut,Ae),o(de,ke),o(de,ue),o(ue,rt),o(ue,st),o(ue,pt),o(de,ht),St&&St.m(de,null),o(de,Rt),o(de,Pt),o(Pt,Ft),o(de,zt),o(de,Bt),o(Bt,qt),o(Bt,yt),o(Bt,Vt),o(de,Yt),mt&&mt.m(de,null)},p(Be,et){var je,he,Kt,wl,Cl,Sl,Ml,Nl,Tl,Pl,El,Dl,Rl,Fl,Bl,Ul,tt,Ot,vl,bl;et&16&&l!==(l=((he=(je=Be[4].common)==null?void 0:je.import)!=null?he:"Import")+"")&&q(n,l),et&16&&r!==(r=tl((wl=(Kt=Be[4].common)==null?void 0:Kt.hour)!=null?wl:"Hour")+"")&&q(f,r),et&64&&_!==(_=Be[6][0]+"")&&q(d,_),et&64&&b!==(b=Be[6][1]+"")&&q(h,b),Be[5]?Mt?Mt.p(Be,et):(Mt=co(Be),Mt.c(),Mt.m(s,k)):Mt&&(Mt.d(1),Mt=null),et&16&&I!==(I=tl((Sl=(Cl=Be[4].common)==null?void 0:Cl.day)!=null?Sl:"Day")+"")&&q(O,I),et&128&&L!==(L=Be[7][0]+"")&&q(z,L),et&128&&V!==(V=Be[7][1]+"")&&q(R,V),Be[5]?ft?ft.p(Be,et):(ft=mo(Be),ft.c(),ft.m(s,Y)):ft&&(ft.d(1),ft=null),et&16&&W!==(W=tl((Nl=(Ml=Be[4].common)==null?void 0:Ml.month)!=null?Nl:"Month")+"")&&q(K,W),et&256&&Z!==(Z=Be[8][0]+"")&&q(ne,Z),et&256&&$!==($=Be[8][1]+"")&&q(ae,$),Be[5]?Nt?Nt.p(Be,et):(Nt=_o(Be),Nt.c(),Nt.m(s,se)):Nt&&(Nt.d(1),Nt=null),et&16&&re!==(re=((Pl=(Tl=Be[4].realtime)==null?void 0:Tl.last_mo)!=null?Pl:"Last mo.")+"")&&q(Q,re),et&512&&pe!==(pe=Be[9][0]+"")&&q(N,pe),et&512&&D!==(D=Be[9][1]+"")&&q(A,D),Be[5]?Et?Et.p(Be,et):(Et=po(Be),Et.c(),Et.m(s,null)):Et&&(Et.d(1),Et=null),et&16384&&te!==(te="grid grid-cols-"+Be[14]+" mb-3")&&c(s,"class",te),et&16&&ce!==(ce=((Dl=(El=Be[4].common)==null?void 0:El.export)!=null?Dl:"Export")+"")&&q(Pe,ce),et&16&&Te!==(Te=tl((Fl=(Rl=Be[4].common)==null?void 0:Rl.hour)!=null?Fl:"Hour")+"")&&q(ve,Te),et&1024&&ye!==(ye=Be[10][0]+"")&&q(Ve,ye),et&1024&&Je!==(Je=Be[10][1]+"")&&q(it,Je),Be[5]?dt?dt.p(Be,et):(dt=vo(Be),dt.c(),dt.m(de,_t)):dt&&(dt.d(1),dt=null),et&16&&_e!==(_e=tl((Ul=(Bl=Be[4].common)==null?void 0:Bl.day)!=null?Ul:"Day")+"")&&q(Ue,_e),et&2048&&nt!==(nt=Be[11][0]+"")&&q(vt,nt),et&2048&&Ke!==(Ke=Be[11][1]+"")&&q(Ye,Ke),Be[5]?At?At.p(Be,et):(At=ho(Be),At.c(),At.m(de,Qe)):At&&(At.d(1),At=null),et&16&&we!==(we=tl((Ot=(tt=Be[4].common)==null?void 0:tt.month)!=null?Ot:"Month")+"")&&q(Ae,we),et&4096&&De!==(De=Be[12][0]+"")&&q(rt,De),et&4096&&at!==(at=Be[12][1]+"")&&q(pt,at),Be[5]?St?St.p(Be,et):(St=bo(Be),St.c(),St.m(de,Rt)):St&&(St.d(1),St=null),et&16&&ct!==(ct=((bl=(vl=Be[4].realtime)==null?void 0:vl.last_mo)!=null?bl:"Last mo.")+"")&&q(Ft,ct),et&8192&&Ut!==(Ut=Be[13][0]+"")&&q(qt,Ut),et&8192&&Gt!==(Gt=Be[13][1]+"")&&q(Vt,Gt),Be[5]?mt?mt.p(Be,et):(mt=go(Be),mt.c(),mt.m(de,null)):mt&&(mt.d(1),mt=null),et&16384&&Ct!==(Ct="grid grid-cols-"+Be[14])&&c(de,"class",Ct)},d(Be){Be&&P(e),Be&&P(i),Be&&P(s),Mt&&Mt.d(),ft&&ft.d(),Nt&&Nt.d(),Et&&Et.d(),Be&&P(ee),Be&&P(oe),Be&&P(Ce),Be&&P(de),dt&&dt.d(),At&&At.d(),St&&St.d(),mt&&mt.d()}}}function ro(t){var x,ge,pe,N,w,D,A,G,te,ee;let e,l=((ge=(x=t[4].realtime)==null?void 0:x.cost)!=null?ge:"Cost")+"",n,i,s,a,r=tl((N=(pe=t[4].common)==null?void 0:pe.hour)!=null?N:"Hour")+"",f,u,m,_=Xt(t[1].h.c,2)+"",d,v,b,h,M,k=tl((D=(w=t[4].common)==null?void 0:w.day)!=null?D:"Day")+"",T,I,O,C=Xt(t[1].d.c,1)+"",B,L,z,y,V,R=tl((G=(A=t[4].common)==null?void 0:A.month)!=null?G:"Month")+"",F,Y,j,W=Xt(t[1].m.c)+"",K,U,H,Z,ne,X=((ee=(te=t[4].realtime)==null?void 0:te.last_month)!=null?ee:"Last month")+"",$,ae,le,se=Xt(t[0].last_month.c)+"",fe,re,Q;return{c(){e=p("strong"),n=S(l),i=g(),s=p("div"),a=p("div"),f=S(r),u=g(),m=p("div"),d=S(_),v=g(),b=S(t[2]),h=g(),M=p("div"),T=S(k),I=g(),O=p("div"),B=S(C),L=g(),z=S(t[2]),y=g(),V=p("div"),F=S(R),Y=g(),j=p("div"),K=S(W),U=g(),H=S(t[2]),Z=g(),ne=p("div"),$=S(X),ae=g(),le=p("div"),fe=S(se),re=g(),Q=S(t[2]),c(m,"class","text-right"),c(O,"class","text-right"),c(j,"class","text-right"),c(le,"class","text-right"),c(s,"class","grid grid-cols-2")},m(oe,ce){E(oe,e,ce),o(e,n),E(oe,i,ce),E(oe,s,ce),o(s,a),o(a,f),o(s,u),o(s,m),o(m,d),o(m,v),o(m,b),o(s,h),o(s,M),o(M,T),o(s,I),o(s,O),o(O,B),o(O,L),o(O,z),o(s,y),o(s,V),o(V,F),o(s,Y),o(s,j),o(j,K),o(j,U),o(j,H),o(s,Z),o(s,ne),o(ne,$),o(s,ae),o(s,le),o(le,fe),o(le,re),o(le,Q)},p(oe,ce){var Pe,Ce,de,Ne,Te,ve,be,He,ye,Ve;ce&16&&l!==(l=((Ce=(Pe=oe[4].realtime)==null?void 0:Pe.cost)!=null?Ce:"Cost")+"")&&q(n,l),ce&16&&r!==(r=tl((Ne=(de=oe[4].common)==null?void 0:de.hour)!=null?Ne:"Hour")+"")&&q(f,r),ce&2&&_!==(_=Xt(oe[1].h.c,2)+"")&&q(d,_),ce&4&&q(b,oe[2]),ce&16&&k!==(k=tl((ve=(Te=oe[4].common)==null?void 0:Te.day)!=null?ve:"Day")+"")&&q(T,k),ce&2&&C!==(C=Xt(oe[1].d.c,1)+"")&&q(B,C),ce&4&&q(z,oe[2]),ce&16&&R!==(R=tl((He=(be=oe[4].common)==null?void 0:be.month)!=null?He:"Month")+"")&&q(F,R),ce&2&&W!==(W=Xt(oe[1].m.c)+"")&&q(K,W),ce&4&&q(H,oe[2]),ce&16&&X!==(X=((Ve=(ye=oe[4].realtime)==null?void 0:ye.last_month)!=null?Ve:"Last month")+"")&&q($,X),ce&1&&se!==(se=Xt(oe[0].last_month.c)+"")&&q(fe,se),ce&4&&q(Q,oe[2])},d(oe){oe&&P(e),oe&&P(i),oe&&P(s)}}}function co(t){let e,l=Xt(t[1].h.c,2)+"",n,i,s;return{c(){e=p("div"),n=S(l),i=g(),s=S(t[2]),c(e,"class","text-right")},m(a,r){E(a,e,r),o(e,n),o(e,i),o(e,s)},p(a,r){r&2&&l!==(l=Xt(a[1].h.c,2)+"")&&q(n,l),r&4&&q(s,a[2])},d(a){a&&P(e)}}}function mo(t){let e,l=Xt(t[1].d.c,1)+"",n,i,s;return{c(){e=p("div"),n=S(l),i=g(),s=S(t[2]),c(e,"class","text-right")},m(a,r){E(a,e,r),o(e,n),o(e,i),o(e,s)},p(a,r){r&2&&l!==(l=Xt(a[1].d.c,1)+"")&&q(n,l),r&4&&q(s,a[2])},d(a){a&&P(e)}}}function _o(t){let e,l=Xt(t[1].m.c)+"",n,i,s;return{c(){e=p("div"),n=S(l),i=g(),s=S(t[2]),c(e,"class","text-right")},m(a,r){E(a,e,r),o(e,n),o(e,i),o(e,s)},p(a,r){r&2&&l!==(l=Xt(a[1].m.c)+"")&&q(n,l),r&4&&q(s,a[2])},d(a){a&&P(e)}}}function po(t){let e,l=Xt(t[0].last_month.c)+"",n,i,s;return{c(){e=p("div"),n=S(l),i=g(),s=S(t[2]),c(e,"class","text-right")},m(a,r){E(a,e,r),o(e,n),o(e,i),o(e,s)},p(a,r){r&1&&l!==(l=Xt(a[0].last_month.c)+"")&&q(n,l),r&4&&q(s,a[2])},d(a){a&&P(e)}}}function vo(t){let e,l=Xt(t[1].h.i,2)+"",n,i,s;return{c(){e=p("div"),n=S(l),i=g(),s=S(t[2]),c(e,"class","text-right")},m(a,r){E(a,e,r),o(e,n),o(e,i),o(e,s)},p(a,r){r&2&&l!==(l=Xt(a[1].h.i,2)+"")&&q(n,l),r&4&&q(s,a[2])},d(a){a&&P(e)}}}function ho(t){let e,l=Xt(t[1].d.i,1)+"",n,i,s;return{c(){e=p("div"),n=S(l),i=g(),s=S(t[2]),c(e,"class","text-right")},m(a,r){E(a,e,r),o(e,n),o(e,i),o(e,s)},p(a,r){r&2&&l!==(l=Xt(a[1].d.i,1)+"")&&q(n,l),r&4&&q(s,a[2])},d(a){a&&P(e)}}}function bo(t){let e,l=Xt(t[1].m.i)+"",n,i,s;return{c(){e=p("div"),n=S(l),i=g(),s=S(t[2]),c(e,"class","text-right")},m(a,r){E(a,e,r),o(e,n),o(e,i),o(e,s)},p(a,r){r&2&&l!==(l=Xt(a[1].m.i)+"")&&q(n,l),r&4&&q(s,a[2])},d(a){a&&P(e)}}}function go(t){let e,l=Xt(t[0].last_month.i)+"",n,i,s;return{c(){e=p("div"),n=S(l),i=g(),s=S(t[2]),c(e,"class","text-right")},m(a,r){E(a,e,r),o(e,n),o(e,i),o(e,s)},p(a,r){r&1&&l!==(l=Xt(a[0].last_month.i)+"")&&q(n,l),r&4&&q(s,a[2])},d(a){a&&P(e)}}}function a0(t){var m,_;let e,l,n=((_=(m=t[4].realtime)==null?void 0:m.title)!=null?_:"Real time calculations")+"",i,s,a,r,f,u=t[1]&&uo(t);return{c(){e=p("div"),l=p("strong"),i=S(n),s=g(),a=p("br"),r=p("br"),f=g(),u&&u.c(),c(e,"class","mx-2 text-sm")},m(d,v){E(d,e,v),o(e,l),o(l,i),o(e,s),o(e,a),o(e,r),o(e,f),u&&u.m(e,null)},p(d,[v]){var b,h;v&16&&n!==(n=((h=(b=d[4].realtime)==null?void 0:b.title)!=null?h:"Real time calculations")+"")&&q(i,n),d[1]?u?u.p(d,v):(u=uo(d),u.c(),u.m(e,null)):u&&(u.d(1),u=null)},i:Ze,o:Ze,d(d){d&&P(e),u&&u.d()}}}function f0(t,e,l){let{sysinfo:n}=e,{data:i}=e,{currency:s}=e,{hasExport:a}=e,{translations:r={}}=e,f,u,m,_,d,v,b,h,M=!1,k=3;return t.$$set=T=>{"sysinfo"in T&&l(0,n=T.sysinfo),"data"in T&&l(1,i=T.data),"currency"in T&&l(2,s=T.currency),"hasExport"in T&&l(3,a=T.hasExport),"translations"in T&&l(4,r=T.translations)},t.$$.update=()=>{var T,I,O,C,B,L,z,y;t.$$.dirty&35&&(l(5,M=i&&i.h&&(Math.abs(i.h.c)>.01||Math.abs(i.d.c)>.01||Math.abs(i.m.c)>.01||Math.abs(i.h.i)>.01||Math.abs(i.d.i)>.01||Math.abs(i.m.i)>.01)),l(14,k=M?3:2),l(6,f=gl(((T=i==null?void 0:i.h)==null?void 0:T.u)*1e3,"Wh")),l(7,u=gl(((I=i==null?void 0:i.d)==null?void 0:I.u)*1e3,"Wh")),l(8,m=gl(((O=i==null?void 0:i.m)==null?void 0:O.u)*1e3,"Wh")),l(9,_=gl(((C=n==null?void 0:n.last_month)==null?void 0:C.u)*1e3,"Wh")),l(10,d=gl(((B=i==null?void 0:i.h)==null?void 0:B.p)*1e3,"Wh")),l(11,v=gl(((L=i==null?void 0:i.d)==null?void 0:L.p)*1e3,"Wh")),l(12,b=gl(((z=i==null?void 0:i.m)==null?void 0:z.p)*1e3,"Wh")),l(13,h=gl(((y=n==null?void 0:n.last_month)==null?void 0:y.p)*1e3,"Wh")))},[n,i,s,a,r,M,f,u,m,_,d,v,b,h,k]}class u0 extends It{constructor(e){super(),Lt(this,e,f0,a0,Dt,{sysinfo:0,data:1,currency:2,hasExport:3,translations:4})}}function r0(t){let e,l;return e=new nn({props:{config:t[0]}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,[i]){const s={};i&1&&(s.config=n[0]),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function c0(t,e,l){let{title:n}=e,{json:i}=e,{sysinfo:s}=e,a={},r,f,u=document.documentElement.classList.contains("dark");return t.$$set=m=>{"title"in m&&l(1,n=m.title),"json"in m&&l(2,i=m.json),"sysinfo"in m&&l(3,s=m.sysinfo)},t.$$.update=()=>{if(t.$$.dirty&62){let m=i.currency,_=new Date().getUTCHours(),d=0,v=0,b=0,h=[],M=[],k=[];l(5,f=l(4,r=0));let T=new Date;for(Kl(T,s.clock_offset-(24+T.getHours()-T.getUTCHours())%24),d=_;d<24&&(v=i[Tt(b++)],v!=null);d++)M.push({label:Tt(T.getHours())}),k.push(v*100),l(5,f=Math.min(f,v*100)),l(4,r=Math.max(r,v*100)),Kl(T,1);for(d=0;d<24&&(v=i[Tt(b++)],v!=null);d++)M.push({label:Tt(T.getHours())}),k.push(v*100),l(5,f=Math.min(f,v*100)),l(4,r=Math.max(r,v*100)),Kl(T,1);if(f>-100&&r<100){switch(m){case"NOK":case"DKK":m="\xF8re";break;case"SEK":m="\xF6re";break;case"EUR":m="cent";break;case"CHF":m="rp.";break;default:m=m+"/100"}for(l(5,f*=100),l(4,r*=100),d=0;d=0?L.toFixed(z):"",title:L>=0?L.toFixed(2)+" "+m:"",value:v>=0?Math.abs(v):0,label2:L<0?L.toFixed(z):"",title2:L<0?L.toFixed(2)+" "+m:"",value2:v<0?Math.abs(v):0,color:u?"#5c2da5":"#7c3aed"})}let O=Math.max(r,Math.abs(f));if(f<0){l(5,f=Math.min(O/4*-1,f));let L=Math.ceil(Math.abs(f)/O*4),z=f/L;for(d=1;d{"title"in m&&l(1,n=m.title),"json"in m&&l(2,i=m.json),"sysinfo"in m&&l(3,s=m.sysinfo)},t.$$.update=()=>{if(t.$$.dirty&62){let m=0,_=[],d=[],v=[];l(5,f=l(4,r=0));let b=new Date,h=new Date;h.setDate(0),h.setHours(12);let M=(h.getHours()-h.getUTCHours())%24-s.clock_offset,k=b.getUTCHours();for(Kl(b,-M-24),m=k;m<24;m++){let C=i["i"+Tt(m)],B=i["e"+Tt(m)];C===void 0&&(C=0),B===void 0&&(B=0),d.push({label:Tt(b.getHours())}),v.push({label:C.toFixed(1),title:C.toFixed(2)+" kWh",value:C*10,label2:B.toFixed(1),title2:B.toFixed(2)+" kWh",value2:B*10,color:u?"#5c2da5":"#7c3aed",color2:u?"#27728e":"#37829e"}),l(5,f=Math.max(f,B*10)),l(4,r=Math.max(r,C*10)),Kl(b,1)}for(m=0;m{"title"in m&&l(1,n=m.title),"json"in m&&l(2,i=m.json),"sysinfo"in m&&l(3,s=m.sysinfo)},t.$$.update=()=>{if(t.$$.dirty&62){let m=0,_=[],d=[],v=[];l(5,f=l(4,r=0));let b=new Date,h=new Date;h.setDate(0),h.setHours(12);let M=(h.getHours()-h.getUTCHours())%24-s.clock_offset;for(Kl(b,-M),Kl(h,-M),m=b.getDate();m<=h.getDate();m++){let O=i["i"+Tt(m)],C=i["e"+Tt(m)];O===void 0&&(O=0),C===void 0&&(C=0),d.push({label:Tt(m)}),v.push({label:O.toFixed(O<10?1:0),title:O.toFixed(2)+" kWh",value:O,label2:C.toFixed(C<10?1:0),title2:C.toFixed(2)+" kWh",value2:C,color:u?"#5c2da5":"#7c3aed",color2:u?"#27728e":"#37829e"}),l(5,f=Math.max(f,C)),l(4,r=Math.max(r,O))}for(m=1;m{"title"in u&&l(1,n=u.title),"json"in u&&l(2,i=u.json)},t.$$.update=()=>{if(t.$$.dirty&30){let u=0,m=0,_=[],d=[],v=[];i.s&&i.s.forEach((M,k)=>{var T=M.n?M.n:M.a;m=M.v,m==-127&&(m=0),d.push({label:T.slice(-4)}),v.push({label:m.toFixed(1),value:m,color:s?"#5c2da5":"#7c3aed"}),l(4,f=Math.min(f,m)),l(3,r=Math.max(r,m))}),l(3,r=Math.ceil(r)),l(4,f=Math.floor(f));let b=r;f<0&&(b+=Math.abs(f));let h=b/4;for(u=0;u<5;u++)m=f+h*u,_.push({value:m,label:m.toFixed(1)});l(0,a={title:n+" (\xB0C)",dark:document.documentElement.classList.contains("dark"),height:226,width:1520,padding:{top:20,right:15,bottom:20,left:35},y:{min:f,max:r,ticks:_},x:{ticks:d},points:v})}},[a,n,i,r,f]}class w0 extends It{constructor(e){super(),Lt(this,e,k0,g0,Dt,{title:1,json:2})}}function C0(t){let e,l;return e=new nn({props:{config:t[0]}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,[i]){const s={};i&1&&(s.config=n[0]),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}let S0=0;function M0(t,e,l){let{title:n}=e,{translations:i={}}=e,s=document.documentElement.classList.contains("dark"),a={},r=0,{tariffData:f}=e;return t.$$set=u=>{"title"in u&&l(1,n=u.title),"translations"in u&&l(2,i=u.translations),"tariffData"in u&&l(3,f=u.tariffData)},t.$$.update=()=>{var u;if(t.$$.dirty&30){let m=0,_=[],d=[],v=[];if(_.push({value:0,label:0}),f&&f.p)for(m=0;m0?Tt(b.d)+"."+(i.months?(u=i.months)==null?void 0:u[new Date().getMonth()]:Tt(new Date().getMonth()+1)):"-"}),l(4,r=Math.max(r,b.v))}if(f&&f.t){for(m=0;m=r)break;_.push({value:b,label:b})}_.push({label:f.m.toFixed(1),align:"right",color:"green",value:f.m})}f&&f.c&&(_.push({label:f.c.toFixed(0),color:"orange",value:f.c}),l(4,r=Math.max(r,f.c))),l(4,r=Math.ceil(r)),l(0,a={title:n,dark:document.documentElement.classList.contains("dark"),padding:{top:20,right:35,bottom:20,left:35},y:{min:S0,max:r,ticks:_},x:{ticks:d},points:v})}},[a,n,i,f,r]}class N0 extends It{constructor(e){super(),Lt(this,e,M0,C0,Dt,{title:1,translations:2,tariffData:3})}}let Jl=0,T0={data:[]};async function ns(){let e=await(await Il(Jl<0?"realtime.json":"realtime.json?offset="+Jl)).json();is.update(l=>{for(let n=0;n=0&&(Jl+=e.size,Jlfn||Ui-fn>300?(ns(),Si=0):is.update(t=>{if(t.lastUpdate)for(;fn>t.lastUpdate;)t.data.unshift(Ou),t.data=t.data.slice(0,t.size),t.lastUpdate+=10,Si++;else t.lastUpdate=fn;return t})}function D0(t){if(Ou=t.i-t.e,fn=t.u,!ko){ns(),ko=!0,Ui=fn;return}!P0()||E0()}function wo(t,e,l){const n=t.slice();return n[18]=e[l],n[20]=l,n}function Co(t,e,l){const n=t.slice();return n[21]=e[l],n}function q0(t){let e,l,n;return{c(){e=p("strong"),l=S(t[0]),n=S(" not available"),c(e,"class","text-sm")},m(i,s){E(i,e,s),o(e,l),o(e,n)},p(i,s){s&1&&q(l,i[0])},d(i){i&&P(e)}}}function A0(t){let e,l,n,i,s,a,r,f=t[8]&&So(t);return{c(){e=p("strong"),l=S(t[0]),n=S(" ("),i=S(t[12]),s=S(")"),a=g(),f&&f.c(),r=$t(),c(e,"class","text-sm")},m(u,m){E(u,e,m),o(e,l),o(e,n),o(e,i),o(e,s),E(u,a,m),f&&f.m(u,m),E(u,r,m)},p(u,m){m&1&&q(l,u[0]),m&4096&&q(i,u[12]),u[8]?f?f.p(u,m):(f=So(u),f.c(),f.m(r.parentNode,r)):f&&(f.d(1),f=null)},d(u){u&&P(e),u&&P(a),f&&f.d(u),u&&P(r)}}}function So(t){let e,l,n,i,s,a=t[8],r=[];for(let m=0;mt[17].call(e))},m(a,r){E(a,e,r),s.m(e,null),l=Qi(e,t[17].bind(e))},p(a,[r]){i===(i=n(a))&&s?s.p(a,r):(s.d(1),s=i(a),s&&(s.c(),s.m(e,null)))},i:Ze,o:Ze,d(a){a&&P(e),s.d(),l()}}}function I0(t,e,l){let{title:n}=e,i=document.documentElement.classList.contains("dark"),s=null;is.subscribe(C=>{l(16,s=C)});let a=!1,r,f,u,m,_,d,v,b=function(C,B,L){return Math.ceil(_-(C-B)/(L-B)*_)-25},h=function(C){return 30+Math.ceil(C/s.size*(d-35))},M,k,T,I;function O(){u=this.clientWidth,m=this.clientHeight,l(3,u),l(4,m)}return t.$$set=C=>{"title"in C&&l(0,n=C.title)},t.$$.update=()=>{if(t.$$.dirty&67582)if(l(5,_=parseInt(m)-50),l(6,d=u-35),l(10,T=d/s.size),l(2,f=0),l(1,r=0),s.data&&_>10&&d>100&&T>.1){l(11,a=!0);for(let L in s.data){let z=s.data[L];isNaN(z)&&(z=0),l(1,r=Math.max(Math.ceil(z/1e3)*1e3,r)),l(2,f=Math.min(Math.floor(z/1e3)*1e3,f))}let C=r-f;l(12,I=r>2500?"kW":"W"),l(8,M=[]);for(let L=f;L2500?(L/1e3).toFixed(1):L}),!(M.length>6));L+=C/5);l(9,k=[]);for(let L=0;L12));L+=Math.round(s.size/Math.round(d/120)));let B=s.size;l(7,v=h(s.size)+","+b(0,f,r)+" "+h(1)+","+b(0,f,r));for(let L in s.data){if(B<0)break;let z=s.data[L];isNaN(z)&&(z=0),l(7,v=h(B--)+","+b(z,f,r)+" "+v)}}else l(11,a=!1)},[n,r,f,u,m,_,d,v,M,k,T,a,I,i,b,h,s,O]}class O0 extends It{constructor(e){super(),Lt(this,e,I0,L0,Dt,{title:0})}}function R0(t){let e,l;return e=new nn({props:{config:t[0]}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,[i]){const s={};i&1&&(s.config=n[0]),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function F0(t,e,l){let{title:n}=e,{unit:i=""}=e,{l1:s=!1}=e,{l2:a=!1}=e,{l2x:r=!1}=e,{l3:f=!1}=e,{l1i:u=0}=e,{l2i:m=0}=e,{l3i:_=0}=e,{l1e:d=0}=e,{l2e:v=0}=e,{l3e:b=0}=e,{maxImport:h=0}=e,{maxExport:M=0}=e,{importColorFn:k}=e,{exportColorFn:T}=e,I={};function O(C,B){return{label:Xt(C>900?C/1e3:C)+(C>900?"k":"")+i,title:C.toFixed(2)+" "+i,value:isNaN(C)?0:C,color:k(C?C/h*100:0,document.documentElement.classList.contains("dark")),label2:Xt(B>900?B/1e3:B)+(B>900?"k":"")+i,title2:B.toFixed(2)+" "+i,value2:isNaN(B)?0:B,color2:T(B?B/M*100:0)}}return t.$$set=C=>{"title"in C&&l(1,n=C.title),"unit"in C&&l(2,i=C.unit),"l1"in C&&l(3,s=C.l1),"l2"in C&&l(4,a=C.l2),"l2x"in C&&l(5,r=C.l2x),"l3"in C&&l(6,f=C.l3),"l1i"in C&&l(7,u=C.l1i),"l2i"in C&&l(8,m=C.l2i),"l3i"in C&&l(9,_=C.l3i),"l1e"in C&&l(10,d=C.l1e),"l2e"in C&&l(11,v=C.l2e),"l3e"in C&&l(12,b=C.l3e),"maxImport"in C&&l(13,h=C.maxImport),"maxExport"in C&&l(14,M=C.maxExport),"importColorFn"in C&&l(15,k=C.importColorFn),"exportColorFn"in C&&l(16,T=C.exportColorFn)},t.$$.update=()=>{if(t.$$.dirty&32762){let C=[],B=[];s&&(C.push({label:"L1"}),B.push(O(u,d))),a&&(r?(C.push({label:"L2"}),B.push({label:"Not available",labelAngle:-90,title:"L2 current is not reported by your meter",value:0,color:"#7c3aedcc"})):(C.push({label:"L2"}),B.push(O(m,v)))),f&&(C.push({label:"L3"}),B.push(O(_,b)));let L=[];if(M){let z=M>h?4:M*4/h;L.push({value:-M,label:"-100%"}),z>=4&&L.push({value:-M/4*3,label:"-75%"}),z>=2&&L.push({value:-M/2,label:"-50%"}),z>=4&&L.push({value:-M/4,label:"-25%"})}if(L.push({value:0,label:"0%"}),h){let z=h>M?4:h*4/M;L.push({value:h/4,label:"25%"}),z>=4&&L.push({value:h/2,label:"50%"}),z>=2&&L.push({value:h/4*3,label:"75%"}),z>=4&&L.push({value:h,label:"100%"})}l(0,I={title:n,dark:document.documentElement.classList.contains("dark"),padding:{top:20,right:15,bottom:20,left:35},y:{min:-M,max:h,ticks:L},x:{ticks:C},points:B})}},[I,n,i,s,a,r,f,u,m,_,d,v,b,h,M,k,T]}class ss extends It{constructor(e){super(),Lt(this,e,F0,R0,Dt,{title:1,unit:2,l1:3,l2:4,l2x:5,l3:6,l1i:7,l2i:8,l3i:9,l1e:10,l2e:11,l3e:12,maxImport:13,maxExport:14,importColorFn:15,exportColorFn:16})}}function Eo(t){var k,T;let e,l,n,i,s,a,r=(t[0].mt?_i(t[0].mt):"-")+"",f,u,m,_=t[11][0]+"",d,v,b=t[11][1]+"",h,M;return i=new Iu({props:{val:t[0].i?t[0].i:0,max:t[0].im?t[0].im:15e3,unit:"W",label:(T=(k=t[6].common)==null?void 0:k.import)!=null?T:"Import",sub:Xt(t[0].p,2),subunit:t[0].pc,colorFn:xi}}),{c(){e=p("div"),l=p("div"),n=p("div"),Oe(i.$$.fragment),s=g(),a=p("div"),f=S(r),u=g(),m=p("div"),d=S(_),v=g(),h=S(b),c(n,"class","col-span-2"),c(m,"class","text-right"),c(l,"class","grid grid-cols-2"),c(e,"class","cnt")},m(I,O){E(I,e,O),o(e,l),o(l,n),Le(i,n,null),o(l,s),o(l,a),o(a,f),o(l,u),o(l,m),o(m,d),o(m,v),o(m,h),M=!0},p(I,O){var B,L;const C={};O&1&&(C.val=I[0].i?I[0].i:0),O&1&&(C.max=I[0].im?I[0].im:15e3),O&64&&(C.label=(L=(B=I[6].common)==null?void 0:B.import)!=null?L:"Import"),O&1&&(C.sub=Xt(I[0].p,2)),O&1&&(C.subunit=I[0].pc),i.$set(C),(!M||O&1)&&r!==(r=(I[0].mt?_i(I[0].mt):"-")+"")&&q(f,r),(!M||O&2048)&&_!==(_=I[11][0]+"")&&q(d,_),(!M||O&2048)&&b!==(b=I[11][1]+"")&&q(h,b)},i(I){M||(J(i.$$.fragment,I),M=!0)},o(I){ie(i.$$.fragment,I),M=!1},d(I){I&&P(e),Ie(i)}}}function Do(t){var h,M;let e,l,n,i,s,a,r,f,u=t[12][0]+"",m,_,d=t[12][1]+"",v,b;return i=new Iu({props:{val:t[0].e?t[0].e:0,max:t[0].om?t[0].om*1e3:1e4,unit:"W",label:(M=(h=t[6].common)==null?void 0:h.export)!=null?M:"Export",sub:Xt(t[0].px,2),subunit:t[0].pc,colorFn:Xn}}),{c(){e=p("div"),l=p("div"),n=p("div"),Oe(i.$$.fragment),s=g(),a=p("div"),r=g(),f=p("div"),m=S(u),_=g(),v=S(d),c(n,"class","col-span-2"),c(f,"class","text-right"),c(l,"class","grid grid-cols-2"),c(e,"class","cnt")},m(k,T){E(k,e,T),o(e,l),o(l,n),Le(i,n,null),o(l,s),o(l,a),o(l,r),o(l,f),o(f,m),o(f,_),o(f,v),b=!0},p(k,T){var O,C;const I={};T&1&&(I.val=k[0].e?k[0].e:0),T&1&&(I.max=k[0].om?k[0].om*1e3:1e4),T&64&&(I.label=(C=(O=k[6].common)==null?void 0:O.export)!=null?C:"Export"),T&1&&(I.sub=Xt(k[0].px,2)),T&1&&(I.subunit=k[0].pc),i.$set(I),(!b||T&4096)&&u!==(u=k[12][0]+"")&&q(m,u),(!b||T&4096)&&d!==(d=k[12][1]+"")&&q(v,d)},i(k){b||(J(i.$$.fragment,k),b=!0)},o(k){ie(i.$$.fragment,k),b=!1},d(k){k&&P(e),Ie(i)}}}function qo(t){let e,l,n=t[0].l1&&Ao(t);return{c(){e=p("div"),n&&n.c(),c(e,"class","cnt")},m(i,s){E(i,e,s),n&&n.m(e,null),l=!0},p(i,s){i[0].l1?n?(n.p(i,s),s&1&&J(n,1)):(n=Ao(i),n.c(),J(n,1),n.m(e,null)):n&&(bt(),ie(n,1,1,()=>{n=null}),gt())},i(i){l||(J(n),l=!0)},o(i){ie(n),l=!1},d(i){i&&P(e),n&&n.d()}}}function Ao(t){var n,i;let e,l;return e=new t0({props:{title:(i=(n=t[6].common)==null?void 0:n.voltage)!=null?i:"Volt",u1:t[0].l1.u,u2:t[0].l2.u,u3:t[0].l3.u,ds:t[0].ds}}),{c(){Oe(e.$$.fragment)},m(s,a){Le(e,s,a),l=!0},p(s,a){var f,u;const r={};a&64&&(r.title=(u=(f=s[6].common)==null?void 0:f.voltage)!=null?u:"Volt"),a&1&&(r.u1=s[0].l1.u),a&1&&(r.u2=s[0].l2.u),a&1&&(r.u3=s[0].l3.u),a&1&&(r.ds=s[0].ds),e.$set(r)},i(s){l||(J(e.$$.fragment,s),l=!0)},o(s){ie(e.$$.fragment,s),l=!1},d(s){Ie(e,s)}}}function Lo(t){let e,l,n=t[0].l1&&Io(t);return{c(){e=p("div"),n&&n.c(),c(e,"class","cnt")},m(i,s){E(i,e,s),n&&n.m(e,null),l=!0},p(i,s){i[0].l1?n?(n.p(i,s),s&1&&J(n,1)):(n=Io(i),n.c(),J(n,1),n.m(e,null)):n&&(bt(),ie(n,1,1,()=>{n=null}),gt())},i(i){l||(J(n),l=!0)},o(i){ie(n),l=!1},d(i){i&&P(e),n&&n.d()}}}function Io(t){var n,i;let e,l;return e=new ss({props:{title:(i=(n=t[6].common)==null?void 0:n.amperage)!=null?i:"Amp",unit:"A",importColorFn:xi,exportColorFn:Xn,maxImport:t[0].mf,maxExport:t[0].om?t[13]?t[0].om/.4/Math.sqrt(3):t[0].om/.23:0,l1:t[8],l2:t[9],l3:t[10],l2x:t[0].l2.e,l1i:Math.max(t[0].l1.i,0),l2i:Math.max(t[0].l2.i,0),l3i:Math.max(t[0].l3.i,0),l1e:Math.max(t[0].l1.i*-1,0),l2e:Math.max(t[0].l2.i*-1,0),l3e:Math.max(t[0].l3.i*-1,0)}}),{c(){Oe(e.$$.fragment)},m(s,a){Le(e,s,a),l=!0},p(s,a){var f,u;const r={};a&64&&(r.title=(u=(f=s[6].common)==null?void 0:f.amperage)!=null?u:"Amp"),a&1&&(r.maxImport=s[0].mf),a&8193&&(r.maxExport=s[0].om?s[13]?s[0].om/.4/Math.sqrt(3):s[0].om/.23:0),a&256&&(r.l1=s[8]),a&512&&(r.l2=s[9]),a&1024&&(r.l3=s[10]),a&1&&(r.l2x=s[0].l2.e),a&1&&(r.l1i=Math.max(s[0].l1.i,0)),a&1&&(r.l2i=Math.max(s[0].l2.i,0)),a&1&&(r.l3i=Math.max(s[0].l3.i,0)),a&1&&(r.l1e=Math.max(s[0].l1.i*-1,0)),a&1&&(r.l2e=Math.max(s[0].l2.i*-1,0)),a&1&&(r.l3e=Math.max(s[0].l3.i*-1,0)),e.$set(r)},i(s){l||(J(e.$$.fragment,s),l=!0)},o(s){ie(e.$$.fragment,s),l=!1},d(s){Ie(e,s)}}}function Oo(t){let e,l,n=t[0].l1&&Ro(t);return{c(){e=p("div"),n&&n.c(),c(e,"class","cnt")},m(i,s){E(i,e,s),n&&n.m(e,null),l=!0},p(i,s){i[0].l1?n?(n.p(i,s),s&1&&J(n,1)):(n=Ro(i),n.c(),J(n,1),n.m(e,null)):n&&(bt(),ie(n,1,1,()=>{n=null}),gt())},i(i){l||(J(n),l=!0)},o(i){ie(n),l=!1},d(i){i&&P(e),n&&n.d()}}}function Ro(t){var n,i;let e,l;return e=new ss({props:{title:(i=(n=t[6].dashboard)==null?void 0:n.phase)!=null?i:"Phase",unit:"W",importColorFn:xi,exportColorFn:Xn,maxImport:(t[0].mf?t[0].mf:32)*230,maxExport:t[0].om?t[13]?t[0].om*1e3/Math.sqrt(3):t[0].om*1e3:0,l1:t[8],l2:t[9],l3:t[10],l1i:t[0].l1.p,l2i:t[0].l2.p,l3i:t[0].l3.p,l1e:t[0].l1.q,l2e:t[0].l2.q,l3e:t[0].l3.q}}),{c(){Oe(e.$$.fragment)},m(s,a){Le(e,s,a),l=!0},p(s,a){var f,u;const r={};a&64&&(r.title=(u=(f=s[6].dashboard)==null?void 0:f.phase)!=null?u:"Phase"),a&1&&(r.maxImport=(s[0].mf?s[0].mf:32)*230),a&8193&&(r.maxExport=s[0].om?s[13]?s[0].om*1e3/Math.sqrt(3):s[0].om*1e3:0),a&256&&(r.l1=s[8]),a&512&&(r.l2=s[9]),a&1024&&(r.l3=s[10]),a&1&&(r.l1i=s[0].l1.p),a&1&&(r.l2i=s[0].l2.p),a&1&&(r.l3i=s[0].l3.p),a&1&&(r.l1e=s[0].l1.q),a&1&&(r.l2e=s[0].l2.q),a&1&&(r.l3e=s[0].l3.q),e.$set(r)},i(s){l||(J(e.$$.fragment,s),l=!0)},o(s){ie(e.$$.fragment,s),l=!1},d(s){Ie(e,s)}}}function Fo(t){let e,l,n=t[0].l1&&Bo(t);return{c(){e=p("div"),n&&n.c(),c(e,"class","cnt")},m(i,s){E(i,e,s),n&&n.m(e,null),l=!0},p(i,s){i[0].l1?n?(n.p(i,s),s&1&&J(n,1)):(n=Bo(i),n.c(),J(n,1),n.m(e,null)):n&&(bt(),ie(n,1,1,()=>{n=null}),gt())},i(i){l||(J(n),l=!0)},o(i){ie(n),l=!1},d(i){i&&P(e),n&&n.d()}}}function Bo(t){var n,i;let e,l;return e=new ss({props:{title:(i=(n=t[6].dashboard)==null?void 0:n.pf)!=null?i:"Pf",importColorFn:Xn,exportColorFn:Xn,maxImport:1,l1:t[8],l2:t[9],l3:t[10],l1i:t[0].l1.f,l2i:t[0].l2.f,l3i:t[0].l3.f}}),{c(){Oe(e.$$.fragment)},m(s,a){Le(e,s,a),l=!0},p(s,a){var f,u;const r={};a&64&&(r.title=(u=(f=s[6].dashboard)==null?void 0:f.pf)!=null?u:"Pf"),a&256&&(r.l1=s[8]),a&512&&(r.l2=s[9]),a&1024&&(r.l3=s[10]),a&1&&(r.l1i=s[0].l1.f),a&1&&(r.l2i=s[0].l2.f),a&1&&(r.l3i=s[0].l3.f),e.$set(r)},i(s){l||(J(e.$$.fragment,s),l=!0)},o(s){ie(e.$$.fragment,s),l=!1},d(s){Ie(e,s)}}}function Uo(t){let e,l,n;return l=new i0({props:{importInstant:t[0].ri,exportInstant:t[0].re,importTotal:t[0].ric,exportTotal:t[0].rec,translations:t[6]}}),{c(){e=p("div"),Oe(l.$$.fragment),c(e,"class","cnt")},m(i,s){E(i,e,s),Le(l,e,null),n=!0},p(i,s){const a={};s&1&&(a.importInstant=i[0].ri),s&1&&(a.exportInstant=i[0].re),s&1&&(a.importTotal=i[0].ric),s&1&&(a.exportTotal=i[0].rec),s&64&&(a.translations=i[6]),l.$set(a)},i(i){n||(J(l.$$.fragment,i),n=!0)},o(i){ie(l.$$.fragment,i),n=!1},d(i){i&&P(e),Ie(l)}}}function jo(t){let e,l,n;return l=new u0({props:{sysinfo:t[1],data:t[0].ea,currency:t[0].pc,hasExport:t[0].om>0||t[0].e>0,translations:t[6]}}),{c(){e=p("div"),Oe(l.$$.fragment),c(e,"class","cnt")},m(i,s){E(i,e,s),Le(l,e,null),n=!0},p(i,s){const a={};s&2&&(a.sysinfo=i[1]),s&1&&(a.data=i[0].ea),s&1&&(a.currency=i[0].pc),s&1&&(a.hasExport=i[0].om>0||i[0].e>0),s&64&&(a.translations=i[6]),l.$set(a)},i(i){n||(J(l.$$.fragment,i),n=!0)},o(i){ie(l.$$.fragment,i),n=!1},d(i){i&&P(e),Ie(l)}}}function yo(t){var i,s;let e,l,n;return l=new N0({props:{title:(s=(i=t[6].dashboard)==null?void 0:i.tariffpeak)!=null?s:"Tariff peaks",tariffData:t[7],translations:t[6]}}),{c(){e=p("div"),Oe(l.$$.fragment),c(e,"class","cnt h-64")},m(a,r){E(a,e,r),Le(l,e,null),n=!0},p(a,r){var u,m;const f={};r&64&&(f.title=(m=(u=a[6].dashboard)==null?void 0:u.tariffpeak)!=null?m:"Tariff peaks"),r&128&&(f.tariffData=a[7]),r&64&&(f.translations=a[6]),l.$set(f)},i(a){n||(J(l.$$.fragment,a),n=!0)},o(a){ie(l.$$.fragment,a),n=!1},d(a){a&&P(e),Ie(l)}}}function Ho(t){var i,s;let e,l,n;return l=new O0({props:{title:(s=(i=t[6].dashboard)==null?void 0:i.realtime)!=null?s:"Real time"}}),{c(){e=p("div"),Oe(l.$$.fragment),c(e,"class","cnt gwf")},m(a,r){E(a,e,r),Le(l,e,null),n=!0},p(a,r){var u,m;const f={};r&64&&(f.title=(m=(u=a[6].dashboard)==null?void 0:u.realtime)!=null?m:"Real time"),l.$set(f)},i(a){n||(J(l.$$.fragment,a),n=!0)},o(a){ie(l.$$.fragment,a),n=!1},d(a){a&&P(e),Ie(l)}}}function zo(t){var i,s;let e,l,n;return l=new m0({props:{title:(s=(i=t[6].dashboard)==null?void 0:i.price)!=null?s:"Price",json:t[2],sysinfo:t[1]}}),{c(){e=p("div"),Oe(l.$$.fragment),c(e,"class","cnt gwf")},m(a,r){E(a,e,r),Le(l,e,null),n=!0},p(a,r){var u,m;const f={};r&64&&(f.title=(m=(u=a[6].dashboard)==null?void 0:u.price)!=null?m:"Price"),r&4&&(f.json=a[2]),r&2&&(f.sysinfo=a[1]),l.$set(f)},i(a){n||(J(l.$$.fragment,a),n=!0)},o(a){ie(l.$$.fragment,a),n=!1},d(a){a&&P(e),Ie(l)}}}function Wo(t){var i,s;let e,l,n;return l=new d0({props:{title:(s=(i=t[6].dashboard)==null?void 0:i.day)!=null?s:"24 hours",json:t[3],sysinfo:t[1]}}),{c(){e=p("div"),Oe(l.$$.fragment),c(e,"class","cnt gwf")},m(a,r){E(a,e,r),Le(l,e,null),n=!0},p(a,r){var u,m;const f={};r&64&&(f.title=(m=(u=a[6].dashboard)==null?void 0:u.day)!=null?m:"24 hours"),r&8&&(f.json=a[3]),r&2&&(f.sysinfo=a[1]),l.$set(f)},i(a){n||(J(l.$$.fragment,a),n=!0)},o(a){ie(l.$$.fragment,a),n=!1},d(a){a&&P(e),Ie(l)}}}function Go(t){var i,s;let e,l,n;return l=new b0({props:{title:(s=(i=t[6].dashboard)==null?void 0:i.month)!=null?s:"{0} days",json:t[4],sysinfo:t[1]}}),{c(){e=p("div"),Oe(l.$$.fragment),c(e,"class","cnt gwf")},m(a,r){E(a,e,r),Le(l,e,null),n=!0},p(a,r){var u,m;const f={};r&64&&(f.title=(m=(u=a[6].dashboard)==null?void 0:u.month)!=null?m:"{0} days"),r&16&&(f.json=a[4]),r&2&&(f.sysinfo=a[1]),l.$set(f)},i(a){n||(J(l.$$.fragment,a),n=!0)},o(a){ie(l.$$.fragment,a),n=!1},d(a){a&&P(e),Ie(l)}}}function Vo(t){var i,s;let e,l,n;return l=new w0({props:{title:(s=(i=t[6].dashboard)==null?void 0:i.temperature)!=null?s:"Temperature",json:t[5]}}),{c(){e=p("div"),Oe(l.$$.fragment),c(e,"class","cnt gwf")},m(a,r){E(a,e,r),Le(l,e,null),n=!0},p(a,r){var u,m;const f={};r&64&&(f.title=(m=(u=a[6].dashboard)==null?void 0:u.temperature)!=null?m:"Temperature"),r&32&&(f.json=a[5]),l.$set(f)},i(a){n||(J(l.$$.fragment,a),n=!0)},o(a){ie(l.$$.fragment,a),n=!1},d(a){a&&P(e),Ie(l)}}}function B0(t){let e,l=Zt(t[1].ui.i,t[0].i),n,i=Zt(t[1].ui.e,t[0].om||t[0].e>0),s,a=Zt(t[1].ui.v,t[0].l1&&(t[0].l1.u>100||t[0].l2.u>100||t[0].l3.u>100)),r,f=Zt(t[1].ui.a,t[0].l1&&(t[0].l1.i>.01||t[0].l2.i>.01||t[0].l3.i>.01)),u,m=Zt(t[1].ui.h,t[0].l1&&(t[0].l1.p>.01||t[0].l2.p>.01||t[0].l3.p>.01||t[0].l1.q>.01||t[0].l2.q>.01||t[0].l3.q>.01)),_,d=Zt(t[1].ui.f,t[0].l1&&(t[0].l1.f>.01||t[0].l2.f>.01||t[0].l3.f>.01)),v,b=Zt(t[1].ui.r,t[0].ri>0||t[0].re>0||t[0].ric>0||t[0].rec>0),h,M=Zt(t[1].ui.c,t[0].ea),k,T=Zt(t[1].ui.t,t[0].pr&&(t[0].pr.startsWith("NO")||t[0].pr.startsWith("10YNO")||t[0].pr.startsWith("10Y1001A1001A4"))),I,O=Zt(t[1].ui.l,t[0].hm==1),C,B=Zt(t[1].ui.p,t[0].pe&&!Number.isNaN(t[0].p)),L,z=Zt(t[1].ui.d,t[3]),y,V=Zt(t[1].ui.m,t[4]),R,F=Zt(t[1].ui.s,t[0].t&&t[0].t!=-127&&t[5].c>1),Y,j=l&&Eo(t),W=i&&Do(t),K=a&&qo(t),U=f&&Lo(t),H=m&&Oo(t),Z=d&&Fo(t),ne=b&&Uo(t),X=M&&jo(t),$=T&&yo(t),ae=O&&Ho(t),le=B&&zo(t),se=z&&Wo(t),fe=V&&Go(t),re=F&&Vo(t);return{c(){e=p("div"),j&&j.c(),n=g(),W&&W.c(),s=g(),K&&K.c(),r=g(),U&&U.c(),u=g(),H&&H.c(),_=g(),Z&&Z.c(),v=g(),ne&&ne.c(),h=g(),X&&X.c(),k=g(),$&&$.c(),I=g(),ae&&ae.c(),C=g(),le&&le.c(),L=g(),se&&se.c(),y=g(),fe&&fe.c(),R=g(),re&&re.c(),c(e,"class","grid 2xl:grid-cols-6 xl:grid-cols-5 lg:grid-cols-4 md:grid-cols-3 sm:grid-cols-2")},m(Q,x){E(Q,e,x),j&&j.m(e,null),o(e,n),W&&W.m(e,null),o(e,s),K&&K.m(e,null),o(e,r),U&&U.m(e,null),o(e,u),H&&H.m(e,null),o(e,_),Z&&Z.m(e,null),o(e,v),ne&&ne.m(e,null),o(e,h),X&&X.m(e,null),o(e,k),$&&$.m(e,null),o(e,I),ae&&ae.m(e,null),o(e,C),le&&le.m(e,null),o(e,L),se&&se.m(e,null),o(e,y),fe&&fe.m(e,null),o(e,R),re&&re.m(e,null),Y=!0},p(Q,[x]){x&3&&(l=Zt(Q[1].ui.i,Q[0].i)),l?j?(j.p(Q,x),x&3&&J(j,1)):(j=Eo(Q),j.c(),J(j,1),j.m(e,n)):j&&(bt(),ie(j,1,1,()=>{j=null}),gt()),x&3&&(i=Zt(Q[1].ui.e,Q[0].om||Q[0].e>0)),i?W?(W.p(Q,x),x&3&&J(W,1)):(W=Do(Q),W.c(),J(W,1),W.m(e,s)):W&&(bt(),ie(W,1,1,()=>{W=null}),gt()),x&3&&(a=Zt(Q[1].ui.v,Q[0].l1&&(Q[0].l1.u>100||Q[0].l2.u>100||Q[0].l3.u>100))),a?K?(K.p(Q,x),x&3&&J(K,1)):(K=qo(Q),K.c(),J(K,1),K.m(e,r)):K&&(bt(),ie(K,1,1,()=>{K=null}),gt()),x&3&&(f=Zt(Q[1].ui.a,Q[0].l1&&(Q[0].l1.i>.01||Q[0].l2.i>.01||Q[0].l3.i>.01))),f?U?(U.p(Q,x),x&3&&J(U,1)):(U=Lo(Q),U.c(),J(U,1),U.m(e,u)):U&&(bt(),ie(U,1,1,()=>{U=null}),gt()),x&3&&(m=Zt(Q[1].ui.h,Q[0].l1&&(Q[0].l1.p>.01||Q[0].l2.p>.01||Q[0].l3.p>.01||Q[0].l1.q>.01||Q[0].l2.q>.01||Q[0].l3.q>.01))),m?H?(H.p(Q,x),x&3&&J(H,1)):(H=Oo(Q),H.c(),J(H,1),H.m(e,_)):H&&(bt(),ie(H,1,1,()=>{H=null}),gt()),x&3&&(d=Zt(Q[1].ui.f,Q[0].l1&&(Q[0].l1.f>.01||Q[0].l2.f>.01||Q[0].l3.f>.01))),d?Z?(Z.p(Q,x),x&3&&J(Z,1)):(Z=Fo(Q),Z.c(),J(Z,1),Z.m(e,v)):Z&&(bt(),ie(Z,1,1,()=>{Z=null}),gt()),x&3&&(b=Zt(Q[1].ui.r,Q[0].ri>0||Q[0].re>0||Q[0].ric>0||Q[0].rec>0)),b?ne?(ne.p(Q,x),x&3&&J(ne,1)):(ne=Uo(Q),ne.c(),J(ne,1),ne.m(e,h)):ne&&(bt(),ie(ne,1,1,()=>{ne=null}),gt()),x&3&&(M=Zt(Q[1].ui.c,Q[0].ea)),M?X?(X.p(Q,x),x&3&&J(X,1)):(X=jo(Q),X.c(),J(X,1),X.m(e,k)):X&&(bt(),ie(X,1,1,()=>{X=null}),gt()),x&3&&(T=Zt(Q[1].ui.t,Q[0].pr&&(Q[0].pr.startsWith("NO")||Q[0].pr.startsWith("10YNO")||Q[0].pr.startsWith("10Y1001A1001A4")))),T?$?($.p(Q,x),x&3&&J($,1)):($=yo(Q),$.c(),J($,1),$.m(e,I)):$&&(bt(),ie($,1,1,()=>{$=null}),gt()),x&3&&(O=Zt(Q[1].ui.l,Q[0].hm==1)),O?ae?(ae.p(Q,x),x&3&&J(ae,1)):(ae=Ho(Q),ae.c(),J(ae,1),ae.m(e,C)):ae&&(bt(),ie(ae,1,1,()=>{ae=null}),gt()),x&3&&(B=Zt(Q[1].ui.p,Q[0].pe&&!Number.isNaN(Q[0].p))),B?le?(le.p(Q,x),x&3&&J(le,1)):(le=zo(Q),le.c(),J(le,1),le.m(e,L)):le&&(bt(),ie(le,1,1,()=>{le=null}),gt()),x&10&&(z=Zt(Q[1].ui.d,Q[3])),z?se?(se.p(Q,x),x&10&&J(se,1)):(se=Wo(Q),se.c(),J(se,1),se.m(e,y)):se&&(bt(),ie(se,1,1,()=>{se=null}),gt()),x&18&&(V=Zt(Q[1].ui.m,Q[4])),V?fe?(fe.p(Q,x),x&18&&J(fe,1)):(fe=Go(Q),fe.c(),J(fe,1),fe.m(e,R)):fe&&(bt(),ie(fe,1,1,()=>{fe=null}),gt()),x&35&&(F=Zt(Q[1].ui.s,Q[0].t&&Q[0].t!=-127&&Q[5].c>1)),F?re?(re.p(Q,x),x&35&&J(re,1)):(re=Vo(Q),re.c(),J(re,1),re.m(e,null)):re&&(bt(),ie(re,1,1,()=>{re=null}),gt())},i(Q){Y||(J(j),J(W),J(K),J(U),J(H),J(Z),J(ne),J(X),J($),J(ae),J(le),J(se),J(fe),J(re),Y=!0)},o(Q){ie(j),ie(W),ie(K),ie(U),ie(H),ie(Z),ie(ne),ie(X),ie($),ie(ae),ie(le),ie(se),ie(fe),ie(re),Y=!1},d(Q){Q&&P(e),j&&j.d(),W&&W.d(),K&&K.d(),U&&U.d(),H&&H.d(),Z&&Z.d(),ne&&ne.d(),X&&X.d(),$&&$.d(),ae&&ae.d(),le&&le.d(),se&&se.d(),fe&&fe.d(),re&&re.d()}}}function U0(t,e,l){let{data:n={}}=e,{sysinfo:i={}}=e,{prices:s={}}=e,{dayPlot:a={}}=e,{monthPlot:r={}}=e,{temperatures:f={}}=e,{translations:u={}}=e,{tariffData:m={}}=e,_,d,v,b,h,M;return t.$$set=k=>{"data"in k&&l(0,n=k.data),"sysinfo"in k&&l(1,i=k.sysinfo),"prices"in k&&l(2,s=k.prices),"dayPlot"in k&&l(3,a=k.dayPlot),"monthPlot"in k&&l(4,r=k.monthPlot),"temperatures"in k&&l(5,f=k.temperatures),"translations"in k&&l(6,u=k.translations),"tariffData"in k&&l(7,m=k.tariffData)},t.$$.update=()=>{var k,T,I,O,C,B,L,z,y,V,R,F,Y,j,W;t.$$.dirty&1793&&(l(11,_=gl((n==null?void 0:n.ic)*1e3,"Wh")),l(12,d=gl((n==null?void 0:n.ec)*1e3,"Wh")),((k=n==null?void 0:n.l1)==null?void 0:k.u)==0&&((T=n==null?void 0:n.l2)==null?void 0:T.u)==0&&((I=n==null?void 0:n.l3)==null?void 0:I.u)==0?l(8,b=l(9,h=l(10,M=l(13,v=!0)))):(l(8,b=((O=n==null?void 0:n.l1)==null?void 0:O.u)>0||((C=n==null?void 0:n.l1)==null?void 0:C.i)>0||((B=n==null?void 0:n.l1)==null?void 0:B.p)>0||((L=n==null?void 0:n.l1)==null?void 0:L.q)>0),l(9,h=((z=n==null?void 0:n.l2)==null?void 0:z.u)>0||((y=n==null?void 0:n.l2)==null?void 0:y.i)>0||((V=n==null?void 0:n.l2)==null?void 0:V.p)>0||((R=n==null?void 0:n.l2)==null?void 0:R.q)>0),l(10,M=((F=n==null?void 0:n.l3)==null?void 0:F.u)>0||((Y=n==null?void 0:n.l3)==null?void 0:Y.i)>0||((j=n==null?void 0:n.l3)==null?void 0:j.p)>0||((W=n==null?void 0:n.l3)==null?void 0:W.q)>0),l(13,v=b&&h&&M)))},[n,i,s,a,r,f,u,m,b,h,M,_,d,v]}class j0 extends It{constructor(e){super(),Lt(this,e,U0,B0,Dt,{data:0,sysinfo:1,prices:2,dayPlot:3,monthPlot:4,temperatures:5,translations:6,tariffData:7})}}let ji={};const Gn=nl(ji);async function y0(){ji=await(await fetch("configuration.json")).json(),Gn.set(ji)}let yi={};const Ru=nl(yi);async function H0(){yi=await(await fetch("priceconfig.json")).json(),Ru.set(yi)}function Ko(t,e,l){const n=t.slice();return n[2]=e[l],n[4]=l,n}function Yo(t){let e,l,n;return{c(){e=p("option"),e.textContent="UART0",l=g(),n=p("option"),n.textContent="UART2",e.__value=3,e.value=e.__value,n.__value=113,n.value=n.__value},m(i,s){E(i,e,s),E(i,l,s),E(i,n,s)},d(i){i&&P(e),i&&P(l),i&&P(n)}}}function Qo(t){let e,l,n;return{c(){e=p("option"),l=S("GPIO"),n=S(t[4]),e.__value=t[4],e.value=e.__value},m(i,s){E(i,e,s),o(e,l),o(e,n)},d(i){i&&P(e)}}}function Xo(t){let e,l=t[4]>1&&!(t[0]=="esp8266"&&(t[4]==3||t[4]==113))&&Qo(t);return{c(){l&&l.c(),e=$t()},m(n,i){l&&l.m(n,i),E(n,e,i)},p(n,i){n[4]>1&&!(n[0]=="esp8266"&&(n[4]==3||n[4]==113))?l||(l=Qo(n),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},d(n){l&&l.d(n),n&&P(e)}}}function z0(t){let e,l,n,i,s=t[0]=="esp8266"&&Yo(),a={length:t[1]+1},r=[];for(let f=0;f{"chip"in s&&l(0,n=s.chip)},t.$$.update=()=>{if(t.$$.dirty&1)switch(n){case"esp8266":l(1,i=16);break;case"esp32s2":l(1,i=44);break;case"esp32s3":l(1,i=46);break;case"esp32c3":l(1,i=19);break}},[n,i]}class Hi extends It{constructor(e){super(),Lt(this,e,W0,z0,Dt,{chip:0})}}function Zo(t){let e,l,n=t[1]&&Jo(t);return{c(){e=p("div"),l=p("div"),n&&n.c(),c(l,"class","fixed inset-0 bg-gray-500 dark:bg-gray-900 bg-opacity-50 dark:bg-opacity-80 flex items-center justify-center"),c(e,"class","z-50"),c(e,"aria-modal","true")},m(i,s){E(i,e,s),o(e,l),n&&n.m(l,null)},p(i,s){i[1]?n?n.p(i,s):(n=Jo(i),n.c(),n.m(l,null)):n&&(n.d(1),n=null)},d(i){i&&P(e),n&&n.d()}}}function Jo(t){let e,l;return{c(){e=p("div"),l=S(t[1]),c(e,"class","bg-white dark:bg-gray-600 m-2 p-3 rounded-md shadow-lg pb-4 text-gray-700 dark:text-white w-96")},m(n,i){E(n,e,i),o(e,l)},p(n,i){i&2&&q(l,n[1])},d(n){n&&P(e)}}}function G0(t){let e,l=t[0]&&Zo(t);return{c(){l&&l.c(),e=$t()},m(n,i){l&&l.m(n,i),E(n,e,i)},p(n,[i]){n[0]?l?l.p(n,i):(l=Zo(n),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},i:Ze,o:Ze,d(n){l&&l.d(n),n&&P(e)}}}function V0(t,e,l){let{active:n}=e,{message:i}=e;return t.$$set=s=>{"active"in s&&l(0,n=s.active),"message"in s&&l(1,i=s.message)},[n,i]}class hl extends It{constructor(e){super(),Lt(this,e,V0,G0,Dt,{active:0,message:1})}}function $o(t,e,l){const n=t.slice();return n[1]=e[l],n}function xo(t){let e,l,n=t[1]+"",i;return{c(){e=p("option"),l=S("Europe/"),i=S(n),e.__value="Europe/"+t[1],e.value=e.__value},m(s,a){E(s,e,a),o(e,l),o(e,i)},p:Ze,d(s){s&&P(e)}}}function K0(t){let e,l,n,i=t[0],s=[];for(let a=0;a>1&1,A=0;A0;w--)A[w]=A[w]?A[w-1]^C.EXPONENT[z._modN(C.LOG[A[w]]+N)]:A[w-1];A[0]=C.EXPONENT[z._modN(C.LOG[A[0]]+N)]}for(N=0;N<=D;N++)A[N]=C.LOG[A[N]]},_checkBadness:function(){var N,w,D,A,G,te=0,ee=this._badness,oe=this.buffer,ce=this.width;for(G=0;Gce*ce;)de-=ce*ce,Ce++;for(te+=Ce*z.N4,A=0;A=ee-2&&(N=ee-2,G>9&&N--);var oe=N;if(G>9){for(te[oe+2]=0,te[oe+3]=0;oe--;)w=te[oe],te[oe+3]|=255&w<<4,te[oe+2]=w>>4;te[2]|=255&N<<4,te[1]=N>>4,te[0]=64|N>>12}else{for(te[oe+1]=0,te[oe+2]=0;oe--;)w=te[oe],te[oe+2]|=255&w<<4,te[oe+1]=w>>4;te[1]|=255&N<<4,te[0]=64|N>>4}for(oe=N+3-(G<10);oe=5&&(D+=z.N1+A[w]-5);for(w=3;wN||A[w-3]*3>=A[w]*4||A[w+3]*3>=A[w]*4)&&(D+=z.N3);return D},_finish:function(){this._stringBuffer=this.buffer.slice();var N,w,D=0,A=3e4;for(w=0;w<8&&(this._applyMask(w),N=this._checkBadness(),N>=1)A&1&&(G[te-1-w+te*8]=1,w<6?G[8+te*w]=1:G[8+te*(w+1)]=1);for(w=0;w<7;w++,A>>=1)A&1&&(G[8+te*(te-7+w)]=1,w?G[6-w+te*8]=1:G[7+te*8]=1)},_interleaveBlocks:function(){var N,w,D=this._dataBlock,A=this._ecc,G=this._eccBlock,te=0,ee=this._calculateMaxLength(),oe=this._neccBlock1,ce=this._neccBlock2,Pe=this._stringBuffer;for(N=0;N1)for(N=k.BLOCK[A],D=G-7;;){for(w=G-7;w>N-3&&(this._addAlignment(w,D),!(w6)for(N=L.BLOCK[te-7],w=17,D=0;D<6;D++)for(A=0;A<3;A++,w--)1&(w>11?te>>w-12:N>>w)?(G[5-D+ee*(2-A+ee-11)]=1,G[2-A+ee-11+ee*(5-D)]=1):(this._setMask(5-D,2-A+ee-11),this._setMask(2-A+ee-11,5-D))},_isMasked:function(N,w){var D=z._getMaskBit(N,w);return this._mask[D]===1},_pack:function(){var N,w,D,A=1,G=1,te=this.width,ee=te-1,oe=te-1,ce=(this._dataBlock+this._eccBlock)*(this._neccBlock1+this._neccBlock2)+this._neccBlock2;for(w=0;ww&&(D=N,N=w,w=D),D=w,D+=w*w,D>>=1,D+=N,D},_modN:function(N){for(;N>=255;)N-=255,N=(N>>8)+(N&255);return N},N1:3,N2:3,N3:40,N4:10}),y=z,V=v.extend({draw:function(){this.element.src=this.qrious.toDataURL()},reset:function(){this.element.src=""},resize:function(){var N=this.element;N.width=N.height=this.qrious.size}}),R=V,F=_.extend(function(N,w,D,A){this.name=N,this.modifiable=Boolean(w),this.defaultValue=D,this._valueTransformer=A},{transform:function(N){var w=this._valueTransformer;return typeof w=="function"?w(N,this):N}}),Y=F,j=_.extend(null,{abs:function(N){return N!=null?Math.abs(N):null},hasOwn:function(N,w){return Object.prototype.hasOwnProperty.call(N,w)},noop:function(){},toUpperCase:function(N){return N!=null?N.toUpperCase():null}}),W=j,K=_.extend(function(N){this.options={},N.forEach(function(w){this.options[w.name]=w},this)},{exists:function(N){return this.options[N]!=null},get:function(N,w){return K._get(this.options[N],w)},getAll:function(N){var w,D=this.options,A={};for(w in D)W.hasOwn(D,w)&&(A[w]=K._get(D[w],N));return A},init:function(N,w,D){typeof D!="function"&&(D=W.noop);var A,G;for(A in this.options)W.hasOwn(this.options,A)&&(G=this.options[A],K._set(G,G.defaultValue,w),K._createAccessor(G,w,D));this._setAll(N,w,!0)},set:function(N,w,D){return this._set(N,w,D)},setAll:function(N,w){return this._setAll(N,w)},_set:function(N,w,D,A){var G=this.options[N];if(!G)throw new Error("Invalid option: "+N);if(!G.modifiable&&!A)throw new Error("Option cannot be modified: "+N);return K._set(G,w,D)},_setAll:function(N,w,D){if(!N)return!1;var A,G=!1;for(A in N)W.hasOwn(N,A)&&this._set(A,N[A],w,D)&&(G=!0);return G}},{_createAccessor:function(N,w,D){var A={get:function(){return K._get(N,w)}};N.modifiable&&(A.set=function(G){K._set(N,G,w)&&D(G,N)}),Object.defineProperty(w,N.name,A)},_get:function(N,w){return w["_"+N.name]},_set:function(N,w,D){var A="_"+N.name,G=D[A],te=N.transform(w!=null?w:N.defaultValue);return D[A]=te,te!==G}}),U=K,H=_.extend(function(){this._services={}},{getService:function(N){var w=this._services[N];if(!w)throw new Error("Service is not being managed with name: "+N);return w},setService:function(N,w){if(this._services[N])throw new Error("Service is already managed with name: "+N);w&&(this._services[N]=w)}}),Z=H,ne=new U([new Y("background",!0,"white"),new Y("backgroundAlpha",!0,1,W.abs),new Y("element"),new Y("foreground",!0,"black"),new Y("foregroundAlpha",!0,1,W.abs),new Y("level",!0,"L",W.toUpperCase),new Y("mime",!0,"image/png"),new Y("padding",!0,null,W.abs),new Y("size",!0,100,W.abs),new Y("value",!0,"")]),X=new Z,$=_.extend(function(N){ne.init(N,this,this.update.bind(this));var w=ne.get("element",this),D=X.getService("element"),A=w&&D.isCanvas(w)?w:D.createCanvas(),G=w&&D.isImage(w)?w:D.createImage();this._canvasRenderer=new h(this,A,!0),this._imageRenderer=new R(this,G,G===w),this.update()},{get:function(){return ne.getAll(this)},set:function(N){ne.setAll(N,this)&&this.update()},toDataURL:function(N){return this.canvas.toDataURL(N||this.mime)},update:function(){var N=new y({level:this.level,value:this.value});this._canvasRenderer.render(N),this._imageRenderer.render(N)}},{use:function(N){X.setService(N.getName(),N)}});Object.defineProperties($.prototype,{canvas:{get:function(){return this._canvasRenderer.getElement()}},image:{get:function(){return this._imageRenderer.getElement()}}});var ae=$,le=ae,se=_.extend({getName:function(){}}),fe=se,re=fe.extend({createCanvas:function(){},createImage:function(){},getName:function(){return"element"},isCanvas:function(N){},isImage:function(N){}}),Q=re,x=Q.extend({createCanvas:function(){return document.createElement("canvas")},createImage:function(){return document.createElement("img")},isCanvas:function(N){return N instanceof HTMLCanvasElement},isImage:function(N){return N instanceof HTMLImageElement}}),ge=x;le.use(new ge);var pe=le;return pe})})(Bu);const J0=Bu.exports;function $0(t){let e,l;return{c(){e=p("img"),fi(e.src,l=t[2])||c(e,"src",l),c(e,"alt",t[0]),c(e,"class",t[1])},m(n,i){E(n,e,i)},p(n,[i]){i&4&&!fi(e.src,l=n[2])&&c(e,"src",l),i&1&&c(e,"alt",n[0]),i&2&&c(e,"class",n[1])},i:Ze,o:Ze,d(n){n&&P(e)}}}function x0(t,e,l){const n=new J0;let{errorCorrection:i="L"}=e,{background:s="#fff"}=e,{color:a="#000"}=e,{size:r="200"}=e,{value:f=""}=e,{padding:u=0}=e,{className:m="qrcode"}=e,_="";function d(){n.set({background:s,foreground:a,level:i,padding:u,size:r,value:f}),l(2,_=n.toDataURL("image/jpeg"))}return Vf(()=>{d()}),t.$$set=v=>{"errorCorrection"in v&&l(3,i=v.errorCorrection),"background"in v&&l(4,s=v.background),"color"in v&&l(5,a=v.color),"size"in v&&l(6,r=v.size),"value"in v&&l(0,f=v.value),"padding"in v&&l(7,u=v.padding),"className"in v&&l(1,m=v.className)},t.$$.update=()=>{t.$$.dirty&1&&f&&d()},[f,m,_,i,s,a,r,u]}class ec extends It{constructor(e){super(),Lt(this,e,x0,$0,Dt,{errorCorrection:3,background:4,color:5,size:6,value:0,padding:7,className:1})}}function ea(t,e,l){const n=t.slice();return n[113]=e[l],n}function ta(t,e,l){const n=t.slice();return n[116]=e[l],n[117]=e,n[118]=l,n}function la(t,e,l){const n=t.slice();return n[119]=e[l],n[120]=e,n[121]=l,n}function tc(t,e,l){const n=t.slice();return n[122]=e[l],n}function lc(t,e,l){const n=t.slice();return n[125]=e[l],n}function na(t){var Ge,Qt,el,xt,Se,Re,Fe,il,sl,ol,al,fl,ul,rl,cl,ml,_l,pl,dl,Be,et,je,he,Kt,wl,Cl,Sl,Ml,Nl,Tl,Pl,El,Dl,Rl,Fl,Bl,Ul;let e,l,n=((el=(Qt=(Ge=t[2].conf)==null?void 0:Ge.general)==null?void 0:Qt.title)!=null?el:"General")+"",i,s,a,r,f,u,m,_,d,v,b=((Re=(Se=(xt=t[2].conf)==null?void 0:xt.general)==null?void 0:Se.hostname)!=null?Re:"Hostname")+"",h,M,k,T,I,O,C=((sl=(il=(Fe=t[2].conf)==null?void 0:Fe.general)==null?void 0:il.timezone)!=null?sl:"Time zone")+"",B,L,z,y,V,R,F,Y,j,W,K,U=((fl=(al=(ol=t[2].conf)==null?void 0:ol.price)==null?void 0:al.region)!=null?fl:"Price region")+"",H,Z,ne,X,$,ae,le,se,fe,re,Q,x,ge,pe,N,w,D,A,G,te,ee,oe,ce,Pe,Ce,de,Ne,Te,ve,be,He,ye,Ve,xe,Je=((cl=(rl=(ul=t[2].conf)==null?void 0:ul.price)==null?void 0:rl.currency)!=null?cl:"Currency")+"",it,We,_t,Ee,_e,Ue,kt,wt,nt,vt,ze,Ke,Ye=((pl=(_l=(ml=t[2].conf)==null?void 0:ml.price)==null?void 0:_l.enabled)!=null?pl:"Enabled")+"",Xe,Qe,ut,we,Ae=((je=(et=(Be=(dl=t[2].conf)==null?void 0:dl.general)==null?void 0:Be.security)==null?void 0:et.title)!=null?je:"Security")+"",ke,ue,De,rt,st,at=((Cl=(wl=(Kt=(he=t[2].conf)==null?void 0:he.general)==null?void 0:Kt.security)==null?void 0:wl.none)!=null?Cl:"None")+"",pt,ht,Rt=((Tl=(Nl=(Ml=(Sl=t[2].conf)==null?void 0:Sl.general)==null?void 0:Ml.security)==null?void 0:Nl.conf)!=null?Tl:"Conf")+"",Pt,ct,Ft=((Rl=(Dl=(El=(Pl=t[2].conf)==null?void 0:Pl.general)==null?void 0:El.security)==null?void 0:Dl.all)!=null?Rl:"All")+"",zt,Bt,Ut,qt,yt=((Ul=(Bl=(Fl=t[2].conf)==null?void 0:Fl.general)==null?void 0:Bl.context)!=null?Ul:"Context")+"",Gt,Vt,Yt,Ct,Mt,ft,Nt,Et;V=new Q0({});let dt=!t[6].p.t&&ia(),At=["NOK","SEK","DKK","EUR","CHF"],St=[];for(let tt=0;tt<5;tt+=1)St[tt]=nc(lc(t,At,tt));kt=new Al({props:{to:"/priceconfig",class:"text-blue-600 hover:text-blue-800",$$slots:{default:[ic]},$$scope:{ctx:t}}});let mt=t[6].p.e&&t[0].chip!="esp8266"&&sa(t),qe=t[6].g.s>0&&oa(t);return{c(){var tt,Ot,vl;e=p("div"),l=p("strong"),i=S(n),s=g(),a=p("a"),r=S("\u24D8"),f=g(),u=p("input"),m=g(),_=p("div"),d=p("div"),v=p("div"),h=S(b),M=p("br"),k=g(),T=p("input"),I=g(),O=p("div"),B=S(C),L=p("br"),z=g(),y=p("select"),Oe(V.$$.fragment),R=g(),F=p("input"),Y=g(),j=p("div"),W=p("div"),K=p("div"),H=S(U),Z=p("br"),ne=g(),X=p("select"),$=p("optgroup"),dt&&dt.c(),ae=p("option"),ae.textContent="NO1",le=p("option"),le.textContent="NO2",se=p("option"),se.textContent="NO3",fe=p("option"),fe.textContent="NO4",re=p("option"),re.textContent="NO5",Q=p("optgroup"),x=p("option"),x.textContent="SE1",ge=p("option"),ge.textContent="SE2",pe=p("option"),pe.textContent="SE3",N=p("option"),N.textContent="SE4",w=p("optgroup"),D=p("option"),D.textContent="DK1",A=p("option"),A.textContent="DK2",G=p("option"),G.textContent="Austria",te=p("option"),te.textContent="Belgium",ee=p("option"),ee.textContent="Czech Republic",oe=p("option"),oe.textContent="Estonia",ce=p("option"),ce.textContent="Finland",Pe=p("option"),Pe.textContent="France",Ce=p("option"),Ce.textContent="Germany",de=p("option"),de.textContent="Great Britain",Ne=p("option"),Ne.textContent="Latvia",Te=p("option"),Te.textContent="Lithuania",ve=p("option"),ve.textContent="Netherland",be=p("option"),be.textContent="Poland",He=p("option"),He.textContent="Slovenia",ye=p("option"),ye.textContent="Switzerland",Ve=g(),xe=p("div"),it=S(Je),We=p("br"),_t=g(),Ee=p("select");for(let bl=0;bl<5;bl+=1)St[bl].c();_e=g(),Ue=p("div"),Oe(kt.$$.fragment),wt=g(),nt=p("div"),vt=p("label"),ze=p("input"),Ke=g(),Xe=S(Ye),Qe=g(),mt&&mt.c(),ut=g(),we=p("div"),ke=S(Ae),ue=p("br"),De=g(),rt=p("select"),st=p("option"),pt=S(at),ht=p("option"),Pt=S(Rt),ct=p("option"),zt=S(Ft),Bt=g(),qe&&qe.c(),Ut=g(),qt=p("div"),Gt=S(yt),Vt=p("br"),Yt=g(),Ct=p("input"),c(l,"class","text-sm"),c(a,"href",ql("General-configuration")),c(a,"target","_blank"),c(a,"class","float-right"),c(u,"type","hidden"),c(u,"name","g"),u.value="true",c(T,"name","gh"),c(T,"type","text"),c(T,"class","in-f w-full"),c(T,"pattern","[A-Za-z0-9-]+"),c(y,"name","gt"),c(y,"class","in-l w-full"),t[6].g.t===void 0&&Wt(()=>t[23].call(y)),c(d,"class","flex"),c(_,"class","my-1"),c(F,"type","hidden"),c(F,"name","p"),F.value="true",ae.__value="10YNO-1--------2",ae.value=ae.__value,le.__value="10YNO-2--------T",le.value=le.__value,se.__value="10YNO-3--------J",se.value=se.__value,fe.__value="10YNO-4--------9",fe.value=fe.__value,re.__value="10Y1001A1001A48H",re.value=re.__value,c($,"label","Norway"),x.__value="10Y1001A1001A44P",x.value=x.__value,ge.__value="10Y1001A1001A45N",ge.value=ge.__value,pe.__value="10Y1001A1001A46L",pe.value=pe.__value,N.__value="10Y1001A1001A47J",N.value=N.__value,c(Q,"label","Sweden"),D.__value="10YDK-1--------W",D.value=D.__value,A.__value="10YDK-2--------M",A.value=A.__value,c(w,"label","Denmark"),G.__value="10YAT-APG------L",G.value=G.__value,te.__value="10YBE----------2",te.value=te.__value,ee.__value="10YCZ-CEPS-----N",ee.value=ee.__value,oe.__value="10Y1001A1001A39I",oe.value=oe.__value,ce.__value="10YFI-1--------U",ce.value=ce.__value,Pe.__value="10YFR-RTE------C",Pe.value=Pe.__value,Ce.__value="10Y1001A1001A83F",Ce.value=Ce.__value,de.__value="10YGB----------A",de.value=de.__value,Ne.__value="10YLV-1001A00074",Ne.value=Ne.__value,Te.__value="10YLT-1001A0008Q",Te.value=Te.__value,ve.__value="10YNL----------L",ve.value=ve.__value,be.__value="10YPL-AREA-----S",be.value=be.__value,He.__value="10YSI-ELES-----O",He.value=He.__value,ye.__value="10YCH-SWISSGRIDZ",ye.value=ye.__value,c(X,"name","pr"),c(X,"class","in-f w-full"),t[6].p.r===void 0&&Wt(()=>t[24].call(X)),c(K,"class","w-full"),c(Ee,"name","pc"),c(Ee,"class","in-l"),t[6].p.c===void 0&&Wt(()=>t[25].call(Ee)),c(W,"class","flex"),c(j,"class","my-1"),c(Ue,"class","my-1"),c(ze,"type","checkbox"),c(ze,"name","pe"),ze.__value="true",ze.value=ze.__value,c(ze,"class","rounded mb-1"),c(nt,"class","my-1"),st.__value=0,st.value=st.__value,ht.__value=1,ht.value=ht.__value,ct.__value=2,ct.value=ct.__value,c(rt,"name","gs"),c(rt,"class","in-s"),t[6].g.s===void 0&&Wt(()=>t[28].call(rt)),c(we,"class","my-1"),c(Ct,"name","gc"),c(Ct,"type","text"),c(Ct,"pattern","[A-Za-z0-9]+"),c(Ct,"placeholder",Mt=(vl=(Ot=(tt=t[2].conf)==null?void 0:tt.general)==null?void 0:Ot.context_placeholder)!=null?vl:"/"),c(Ct,"class","in-s"),c(Ct,"maxlength","36"),c(qt,"class","my-1"),c(e,"class","cnt")},m(tt,Ot){E(tt,e,Ot),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,u),o(e,m),o(e,_),o(_,d),o(d,v),o(v,h),o(v,M),o(v,k),o(v,T),Me(T,t[6].g.h),o(d,I),o(d,O),o(O,B),o(O,L),o(O,z),o(O,y),Le(V,y,null),ot(y,t[6].g.t,!0),o(e,R),o(e,F),o(e,Y),o(e,j),o(j,W),o(W,K),o(K,H),o(K,Z),o(K,ne),o(K,X),o(X,$),dt&&dt.m($,null),o($,ae),o($,le),o($,se),o($,fe),o($,re),o(X,Q),o(Q,x),o(Q,ge),o(Q,pe),o(Q,N),o(X,w),o(w,D),o(w,A),o(X,G),o(X,te),o(X,ee),o(X,oe),o(X,ce),o(X,Pe),o(X,Ce),o(X,de),o(X,Ne),o(X,Te),o(X,ve),o(X,be),o(X,He),o(X,ye),ot(X,t[6].p.r,!0),o(W,Ve),o(W,xe),o(xe,it),o(xe,We),o(xe,_t),o(xe,Ee);for(let vl=0;vl<5;vl+=1)St[vl]&&St[vl].m(Ee,null);ot(Ee,t[6].p.c,!0),o(e,_e),o(e,Ue),Le(kt,Ue,null),o(e,wt),o(e,nt),o(nt,vt),o(vt,ze),ze.checked=t[6].p.e,o(vt,Ke),o(vt,Xe),o(nt,Qe),mt&&mt.m(nt,null),o(e,ut),o(e,we),o(we,ke),o(we,ue),o(we,De),o(we,rt),o(rt,st),o(st,pt),o(rt,ht),o(ht,Pt),o(rt,ct),o(ct,zt),ot(rt,t[6].g.s,!0),o(e,Bt),qe&&qe.m(e,null),o(e,Ut),o(e,qt),o(qt,Gt),o(qt,Vt),o(qt,Yt),o(qt,Ct),Me(Ct,t[6].g.c),ft=!0,Nt||(Et=[me(T,"input",t[22]),me(y,"change",t[23]),me(X,"change",t[24]),me(Ee,"change",t[25]),me(ze,"change",t[26]),me(rt,"change",t[28]),me(Ct,"input",t[31])],Nt=!0)},p(tt,Ot){var bl,pn,dn,vn,hn,bn,gn,kn,wn,Cn,Sn,Mn,Nn,Tn,Pn,En,Dn,qn,An,Ln,In,On,Rn,Fn,Bn,Un,jn,yn,Hn,as,fs,us,rs,cs,ms,_s,ps,ds,vs,hs;(!ft||Ot[0]&4)&&n!==(n=((dn=(pn=(bl=tt[2].conf)==null?void 0:bl.general)==null?void 0:pn.title)!=null?dn:"General")+"")&&q(i,n),(!ft||Ot[0]&4)&&b!==(b=((bn=(hn=(vn=tt[2].conf)==null?void 0:vn.general)==null?void 0:hn.hostname)!=null?bn:"Hostname")+"")&&q(h,b),Ot[0]&64&&T.value!==tt[6].g.h&&Me(T,tt[6].g.h),(!ft||Ot[0]&4)&&C!==(C=((wn=(kn=(gn=tt[2].conf)==null?void 0:gn.general)==null?void 0:kn.timezone)!=null?wn:"Time zone")+"")&&q(B,C),Ot[0]&64&&ot(y,tt[6].g.t),(!ft||Ot[0]&4)&&U!==(U=((Mn=(Sn=(Cn=tt[2].conf)==null?void 0:Cn.price)==null?void 0:Sn.region)!=null?Mn:"Price region")+"")&&q(H,U),tt[6].p.t?dt&&(dt.d(1),dt=null):dt||(dt=ia(),dt.c(),dt.m($,ae)),Ot[0]&64&&ot(X,tt[6].p.r),(!ft||Ot[0]&4)&&Je!==(Je=((Pn=(Tn=(Nn=tt[2].conf)==null?void 0:Nn.price)==null?void 0:Tn.currency)!=null?Pn:"Currency")+"")&&q(it,Je),Ot[0]&64&&ot(Ee,tt[6].p.c);const vl={};Ot[0]&4|Ot[4]&16&&(vl.$$scope={dirty:Ot,ctx:tt}),kt.$set(vl),Ot[0]&64&&(ze.checked=tt[6].p.e),(!ft||Ot[0]&4)&&Ye!==(Ye=((qn=(Dn=(En=tt[2].conf)==null?void 0:En.price)==null?void 0:Dn.enabled)!=null?qn:"Enabled")+"")&&q(Xe,Ye),tt[6].p.e&&tt[0].chip!="esp8266"?mt?mt.p(tt,Ot):(mt=sa(tt),mt.c(),mt.m(nt,null)):mt&&(mt.d(1),mt=null),(!ft||Ot[0]&4)&&Ae!==(Ae=((On=(In=(Ln=(An=tt[2].conf)==null?void 0:An.general)==null?void 0:Ln.security)==null?void 0:In.title)!=null?On:"Security")+"")&&q(ke,Ae),(!ft||Ot[0]&4)&&at!==(at=((Un=(Bn=(Fn=(Rn=tt[2].conf)==null?void 0:Rn.general)==null?void 0:Fn.security)==null?void 0:Bn.none)!=null?Un:"None")+"")&&q(pt,at),(!ft||Ot[0]&4)&&Rt!==(Rt=((as=(Hn=(yn=(jn=tt[2].conf)==null?void 0:jn.general)==null?void 0:yn.security)==null?void 0:Hn.conf)!=null?as:"Conf")+"")&&q(Pt,Rt),(!ft||Ot[0]&4)&&Ft!==(Ft=((cs=(rs=(us=(fs=tt[2].conf)==null?void 0:fs.general)==null?void 0:us.security)==null?void 0:rs.all)!=null?cs:"All")+"")&&q(zt,Ft),Ot[0]&64&&ot(rt,tt[6].g.s),tt[6].g.s>0?qe?qe.p(tt,Ot):(qe=oa(tt),qe.c(),qe.m(e,Ut)):qe&&(qe.d(1),qe=null),(!ft||Ot[0]&4)&&yt!==(yt=((ps=(_s=(ms=tt[2].conf)==null?void 0:ms.general)==null?void 0:_s.context)!=null?ps:"Context")+"")&&q(Gt,yt),(!ft||Ot[0]&4&&Mt!==(Mt=(hs=(vs=(ds=tt[2].conf)==null?void 0:ds.general)==null?void 0:vs.context_placeholder)!=null?hs:"/"))&&c(Ct,"placeholder",Mt),Ot[0]&64&&Ct.value!==tt[6].g.c&&Me(Ct,tt[6].g.c)},i(tt){ft||(J(V.$$.fragment,tt),J(kt.$$.fragment,tt),ft=!0)},o(tt){ie(V.$$.fragment,tt),ie(kt.$$.fragment,tt),ft=!1},d(tt){tt&&P(e),Ie(V),dt&&dt.d(),ll(St,tt),Ie(kt),mt&&mt.d(),qe&&qe.d(),Nt=!1,Ht(Et)}}}function ia(t){let e,l,n,i,s;return{c(){e=p("option"),e.textContent="NO1 with support",l=p("option"),l.textContent="NO2 with support",n=p("option"),n.textContent="NO3 with support",i=p("option"),i.textContent="NO4 with support",s=p("option"),s.textContent="NO5 with support",e.__value="NO1S",e.value=e.__value,l.__value="NO2S",l.value=l.__value,n.__value="NO3S",n.value=n.__value,i.__value="NO4S",i.value=i.__value,s.__value="NO5S",s.value=s.__value},m(a,r){E(a,e,r),E(a,l,r),E(a,n,r),E(a,i,r),E(a,s,r)},d(a){a&&P(e),a&&P(l),a&&P(n),a&&P(i),a&&P(s)}}}function nc(t){let e,l;return{c(){e=p("option"),l=S(t[125]),e.__value=t[125],e.value=e.__value},m(n,i){E(n,e,i),o(e,l)},p:Ze,d(n){n&&P(e)}}}function ic(t){var n,i,s;let e=((s=(i=(n=t[2].conf)==null?void 0:n.price)==null?void 0:i.conf)!=null?s:"Configure")+"",l;return{c(){l=S(e)},m(a,r){E(a,l,r)},p(a,r){var f,u,m;r[0]&4&&e!==(e=((m=(u=(f=a[2].conf)==null?void 0:f.price)==null?void 0:u.conf)!=null?m:"Configure")+"")&&q(l,e)},d(a){a&&P(l)}}}function sa(t){let e,l,n,i,s;return{c(){var a,r,f;e=p("br"),l=p("input"),c(l,"name","pt"),c(l,"type","text"),c(l,"class","in-s"),c(l,"placeholder",n=(f=(r=(a=t[2].conf)==null?void 0:a.price)==null?void 0:r.api_key_placeholder)!=null?f:"")},m(a,r){E(a,e,r),E(a,l,r),Me(l,t[6].p.t),i||(s=me(l,"input",t[27]),i=!0)},p(a,r){var f,u,m;r[0]&4&&n!==(n=(m=(u=(f=a[2].conf)==null?void 0:f.price)==null?void 0:u.api_key_placeholder)!=null?m:"")&&c(l,"placeholder",n),r[0]&64&&l.value!==a[6].p.t&&Me(l,a[6].p.t)},d(a){a&&P(e),a&&P(l),i=!1,s()}}}function oa(t){var M,k,T,I,O,C,B,L;let e,l=((I=(T=(k=(M=t[2].conf)==null?void 0:M.general)==null?void 0:k.security)==null?void 0:T.username)!=null?I:"Username")+"",n,i,s,a,r,f,u=((L=(B=(C=(O=t[2].conf)==null?void 0:O.general)==null?void 0:C.security)==null?void 0:B.password)!=null?L:"Password")+"",m,_,d,v,b,h;return{c(){e=p("div"),n=S(l),i=p("br"),s=g(),a=p("input"),r=g(),f=p("div"),m=S(u),_=p("br"),d=g(),v=p("input"),c(a,"name","gu"),c(a,"type","text"),c(a,"class","in-s"),c(a,"maxlength","36"),c(e,"class","my-1"),c(v,"name","gp"),c(v,"type","password"),c(v,"class","in-s"),c(v,"maxlength","36"),c(f,"class","my-1")},m(z,y){E(z,e,y),o(e,n),o(e,i),o(e,s),o(e,a),Me(a,t[6].g.u),E(z,r,y),E(z,f,y),o(f,m),o(f,_),o(f,d),o(f,v),Me(v,t[6].g.p),b||(h=[me(a,"input",t[29]),me(v,"input",t[30])],b=!0)},p(z,y){var V,R,F,Y,j,W,K,U;y[0]&4&&l!==(l=((Y=(F=(R=(V=z[2].conf)==null?void 0:V.general)==null?void 0:R.security)==null?void 0:F.username)!=null?Y:"Username")+"")&&q(n,l),y[0]&64&&a.value!==z[6].g.u&&Me(a,z[6].g.u),y[0]&4&&u!==(u=((U=(K=(W=(j=z[2].conf)==null?void 0:j.general)==null?void 0:W.security)==null?void 0:K.password)!=null?U:"Password")+"")&&q(m,u),y[0]&64&&v.value!==z[6].g.p&&Me(v,z[6].g.p)},d(z){z&&P(e),z&&P(r),z&&P(f),b=!1,Ht(h)}}}function aa(t){var ut,we,Ae,ke,ue,De,rt,st,at,pt,ht,Rt,Pt,ct,Ft,zt,Bt,Ut,qt,yt,Gt,Vt,Yt,Ct,Mt,ft,Nt,Et,dt,At,St,mt;let e,l,n=((Ae=(we=(ut=t[2].conf)==null?void 0:ut.meter)==null?void 0:we.title)!=null?Ae:"Meter")+"",i,s,a,r,f,u,m,_,d,v,b=((rt=(De=(ue=(ke=t[2].conf)==null?void 0:ke.meter)==null?void 0:ue.comm)==null?void 0:De.title)!=null?rt:"Communication")+"",h,M,k,T,I,O=((ht=(pt=(at=(st=t[2].conf)==null?void 0:st.meter)==null?void 0:at.comm)==null?void 0:pt.passive)!=null?ht:"Passive")+"",C,B,L=((Ft=(ct=(Pt=(Rt=t[2].conf)==null?void 0:Rt.meter)==null?void 0:Pt.comm)==null?void 0:ct.pulse)!=null?Ft:"Pulse")+"",z,y=(Bt=(zt=t[0])==null?void 0:zt.features)==null?void 0:Bt.includes("kmp"),V,R,F,Y=((qt=(Ut=t[2].common)==null?void 0:Ut.voltage)!=null?qt:"Voltage")+"",j,W,K,U,H,Z,ne,X,$,ae=((Vt=(Gt=(yt=t[2].conf)==null?void 0:yt.meter)==null?void 0:Gt.fuse)!=null?Vt:"Main fuse")+"",le,se,fe,re,Q,x,ge,pe,N,w=((Mt=(Ct=(Yt=t[2].conf)==null?void 0:Yt.meter)==null?void 0:Ct.prod)!=null?Mt:"Production")+"",D,A,G,te,ee,oe,ce,Pe,Ce,de,Ne,Te,ve,be,He=((Et=(Nt=(ft=t[2].conf)==null?void 0:ft.meter)==null?void 0:Nt.encrypted)!=null?Et:"Encrypted")+"",ye,Ve,xe,Je,it,We,_t,Ee=((mt=(St=(At=(dt=t[2].conf)==null?void 0:dt.meter)==null?void 0:At.multipliers)==null?void 0:St.title)!=null?mt:"Multipliers")+"",_e,Ue,kt,wt,nt=y&&fa();function vt(qe,Ge){return qe[6].m.a===2?oc:sc}let ze=vt(t),Ke=ze(t),Ye=t[6].m.e.e&&ua(t),Xe=t[6].m.e.e&&ra(t),Qe=t[6].m.m.e&&ca(t);return{c(){e=p("div"),l=p("strong"),i=S(n),s=g(),a=p("a"),r=S("\u24D8"),f=g(),u=p("input"),m=g(),_=p("input"),d=g(),v=p("div"),h=S(b),M=p("br"),k=g(),T=p("select"),I=p("option"),C=S(O),B=p("option"),z=S(L),nt&&nt.c(),V=g(),Ke.c(),R=g(),F=p("div"),j=S(Y),W=p("br"),K=g(),U=p("select"),H=p("option"),H.textContent="400V (TN)",Z=p("option"),Z.textContent="230V (IT/TT)",ne=g(),X=p("div"),$=p("div"),le=S(ae),se=p("br"),fe=g(),re=p("label"),Q=p("input"),x=g(),ge=p("span"),ge.textContent="A",pe=g(),N=p("div"),D=S(w),A=p("br"),G=g(),te=p("label"),ee=p("input"),oe=g(),ce=p("span"),ce.textContent="kWp",Pe=g(),Ce=p("div"),de=g(),Ne=p("div"),Te=p("label"),ve=p("input"),be=g(),ye=S(He),Ve=g(),Ye&&Ye.c(),xe=g(),Xe&&Xe.c(),Je=g(),it=p("label"),We=p("input"),_t=g(),_e=S(Ee),Ue=g(),Qe&&Qe.c(),c(l,"class","text-sm"),c(a,"href",ql("Meter-configuration")),c(a,"target","_blank"),c(a,"class","float-right"),c(u,"type","hidden"),c(u,"name","m"),u.value="true",c(_,"type","hidden"),c(_,"name","mo"),_.value="1",I.__value=0,I.value=I.__value,B.__value=2,B.value=B.__value,c(T,"name","ma"),c(T,"class","in-s"),t[6].m.a===void 0&&Wt(()=>t[32].call(T)),c(v,"class","my-1"),H.__value=2,H.value=H.__value,Z.__value=1,Z.value=Z.__value,c(U,"name","md"),c(U,"class","in-s"),t[6].m.d===void 0&&Wt(()=>t[38].call(U)),c(F,"class","my-1"),c(Q,"name","mf"),c(Q,"type","number"),c(Q,"min","5"),c(Q,"max","65535"),c(Q,"class","in-f tr w-full"),c(ge,"class","in-post"),c(re,"class","flex"),c($,"class","mx-1"),c(ee,"name","mr"),c(ee,"type","number"),c(ee,"min","0"),c(ee,"max","65535"),c(ee,"class","in-f tr w-full"),c(ce,"class","in-post"),c(te,"class","flex"),c(N,"class","mx-1"),c(X,"class","my-1 flex"),c(Ce,"class","my-1"),c(ve,"type","checkbox"),c(ve,"name","me"),ve.__value="true",ve.value=ve.__value,c(ve,"class","rounded mb-1"),c(Ne,"class","my-1"),c(We,"type","checkbox"),c(We,"name","mm"),We.__value="true",We.value=We.__value,c(We,"class","rounded mb-1"),c(e,"class","cnt")},m(qe,Ge){E(qe,e,Ge),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,u),o(e,m),o(e,_),o(e,d),o(e,v),o(v,h),o(v,M),o(v,k),o(v,T),o(T,I),o(I,C),o(T,B),o(B,z),nt&&nt.m(T,null),ot(T,t[6].m.a,!0),o(e,V),Ke.m(e,null),o(e,R),o(e,F),o(F,j),o(F,W),o(F,K),o(F,U),o(U,H),o(U,Z),ot(U,t[6].m.d,!0),o(e,ne),o(e,X),o(X,$),o($,le),o($,se),o($,fe),o($,re),o(re,Q),Me(Q,t[6].m.f),o(re,x),o(re,ge),o(X,pe),o(X,N),o(N,D),o(N,A),o(N,G),o(N,te),o(te,ee),Me(ee,t[6].m.r),o(te,oe),o(te,ce),o(e,Pe),o(e,Ce),o(e,de),o(e,Ne),o(Ne,Te),o(Te,ve),ve.checked=t[6].m.e.e,o(Te,be),o(Te,ye),o(Ne,Ve),Ye&&Ye.m(Ne,null),o(e,xe),Xe&&Xe.m(e,null),o(e,Je),o(e,it),o(it,We),We.checked=t[6].m.m.e,o(it,_t),o(it,_e),o(e,Ue),Qe&&Qe.m(e,null),kt||(wt=[me(T,"change",t[32]),me(U,"change",t[38]),me(Q,"input",t[39]),me(ee,"input",t[40]),me(ve,"change",t[41]),me(We,"change",t[44])],kt=!0)},p(qe,Ge){var Qt,el,xt,Se,Re,Fe,il,sl,ol,al,fl,ul,rl,cl,ml,_l,pl,dl,Be,et,je,he,Kt,wl,Cl,Sl,Ml,Nl,Tl,Pl,El,Dl;Ge[0]&4&&n!==(n=((xt=(el=(Qt=qe[2].conf)==null?void 0:Qt.meter)==null?void 0:el.title)!=null?xt:"Meter")+"")&&q(i,n),Ge[0]&4&&b!==(b=((il=(Fe=(Re=(Se=qe[2].conf)==null?void 0:Se.meter)==null?void 0:Re.comm)==null?void 0:Fe.title)!=null?il:"Communication")+"")&&q(h,b),Ge[0]&4&&O!==(O=((fl=(al=(ol=(sl=qe[2].conf)==null?void 0:sl.meter)==null?void 0:ol.comm)==null?void 0:al.passive)!=null?fl:"Passive")+"")&&q(C,O),Ge[0]&4&&L!==(L=((ml=(cl=(rl=(ul=qe[2].conf)==null?void 0:ul.meter)==null?void 0:rl.comm)==null?void 0:cl.pulse)!=null?ml:"Pulse")+"")&&q(z,L),Ge[0]&1&&(y=(pl=(_l=qe[0])==null?void 0:_l.features)==null?void 0:pl.includes("kmp")),y?nt||(nt=fa(),nt.c(),nt.m(T,null)):nt&&(nt.d(1),nt=null),Ge[0]&64&&ot(T,qe[6].m.a),ze===(ze=vt(qe))&&Ke?Ke.p(qe,Ge):(Ke.d(1),Ke=ze(qe),Ke&&(Ke.c(),Ke.m(e,R))),Ge[0]&4&&Y!==(Y=((Be=(dl=qe[2].common)==null?void 0:dl.voltage)!=null?Be:"Voltage")+"")&&q(j,Y),Ge[0]&64&&ot(U,qe[6].m.d),Ge[0]&4&&ae!==(ae=((he=(je=(et=qe[2].conf)==null?void 0:et.meter)==null?void 0:je.fuse)!=null?he:"Main fuse")+"")&&q(le,ae),Ge[0]&64&&$e(Q.value)!==qe[6].m.f&&Me(Q,qe[6].m.f),Ge[0]&4&&w!==(w=((Cl=(wl=(Kt=qe[2].conf)==null?void 0:Kt.meter)==null?void 0:wl.prod)!=null?Cl:"Production")+"")&&q(D,w),Ge[0]&64&&$e(ee.value)!==qe[6].m.r&&Me(ee,qe[6].m.r),Ge[0]&64&&(ve.checked=qe[6].m.e.e),Ge[0]&4&&He!==(He=((Nl=(Ml=(Sl=qe[2].conf)==null?void 0:Sl.meter)==null?void 0:Ml.encrypted)!=null?Nl:"Encrypted")+"")&&q(ye,He),qe[6].m.e.e?Ye?Ye.p(qe,Ge):(Ye=ua(qe),Ye.c(),Ye.m(Ne,null)):Ye&&(Ye.d(1),Ye=null),qe[6].m.e.e?Xe?Xe.p(qe,Ge):(Xe=ra(qe),Xe.c(),Xe.m(e,Je)):Xe&&(Xe.d(1),Xe=null),Ge[0]&64&&(We.checked=qe[6].m.m.e),Ge[0]&4&&Ee!==(Ee=((Dl=(El=(Pl=(Tl=qe[2].conf)==null?void 0:Tl.meter)==null?void 0:Pl.multipliers)==null?void 0:El.title)!=null?Dl:"Multipliers")+"")&&q(_e,Ee),qe[6].m.m.e?Qe?Qe.p(qe,Ge):(Qe=ca(qe),Qe.c(),Qe.m(e,null)):Qe&&(Qe.d(1),Qe=null)},d(qe){qe&&P(e),nt&&nt.d(),Ke.d(),Ye&&Ye.d(),Xe&&Xe.d(),Qe&&Qe.d(),kt=!1,Ht(wt)}}}function fa(t){let e;return{c(){e=p("option"),e.textContent="KMP",e.__value=9,e.value=e.__value},m(l,n){E(l,e,n)},d(l){l&&P(e)}}}function sc(t){var ae,le,se,fe,re,Q,x,ge,pe;let e,l,n=((se=(le=(ae=t[2].conf)==null?void 0:ae.meter)==null?void 0:le.buffer)!=null?se:"Buffer size")+"",i,s,a,r=((Q=(re=(fe=t[2].conf)==null?void 0:fe.meter)==null?void 0:re.serial)!=null?Q:"Serial conf.")+"",f,u,m,_,d,v=((pe=(ge=(x=t[2].conf)==null?void 0:x.meter)==null?void 0:ge.inverted)!=null?pe:"inverted")+"",b,h,M,k,T,I,O,C,B,L,z,y,V,R,F,Y,j,W,K,U,H,Z,ne,X=[3,12,24,48,96,192,384,576,1152],$=[];for(let N=0;N<9;N+=1)$[N]=ac(tc(t,X,N));return{c(){e=p("div"),l=p("span"),i=S(n),s=g(),a=p("span"),f=S(r),u=g(),m=p("label"),_=p("input"),d=g(),b=S(v),h=g(),M=p("div"),k=p("select"),T=p("option"),I=S("Autodetect");for(let N=0;N<9;N+=1)$[N].c();C=g(),B=p("select"),L=p("option"),z=S("-"),V=p("option"),V.textContent="7N1",R=p("option"),R.textContent="8N1",F=p("option"),F.textContent="8N2",Y=p("option"),Y.textContent="7E1",j=p("option"),j.textContent="8E1",K=g(),U=p("input"),c(l,"class","float-right"),c(_,"name","mi"),_.__value="true",_.value=_.__value,c(_,"type","checkbox"),c(_,"class","rounded mb-1"),c(m,"class","mt-2 ml-3 whitespace-nowrap"),T.__value=0,T.value=T.__value,T.disabled=O=t[6].m.b!=0,c(k,"name","mb"),c(k,"class","in-f tr w-1/2"),t[6].m.b===void 0&&Wt(()=>t[35].call(k)),L.__value=0,L.value=L.__value,L.disabled=y=t[6].m.b!=0,V.__value=2,V.value=V.__value,R.__value=3,R.value=R.__value,F.__value=7,F.value=F.__value,Y.__value=10,Y.value=Y.__value,j.__value=11,j.value=j.__value,c(B,"name","mp"),c(B,"class","in-m"),B.disabled=W=t[6].m.b==0,t[6].m.p===void 0&&Wt(()=>t[36].call(B)),c(U,"name","ms"),c(U,"type","number"),c(U,"min",64),c(U,"max",H=t[0].chip=="esp8266"?t[6].i.h.p==3||t[6].i.h.p==113?512:256:4096),c(U,"step",64),c(U,"class","in-l tr w-1/2"),c(M,"class","flex w-full"),c(e,"class","my-1")},m(N,w){E(N,e,w),o(e,l),o(l,i),o(e,s),o(e,a),o(a,f),o(e,u),o(e,m),o(m,_),_.checked=t[6].m.i,o(m,d),o(m,b),o(e,h),o(e,M),o(M,k),o(k,T),o(T,I);for(let D=0;D<9;D+=1)$[D]&&$[D].m(k,null);ot(k,t[6].m.b,!0),o(M,C),o(M,B),o(B,L),o(L,z),o(B,V),o(B,R),o(B,F),o(B,Y),o(B,j),ot(B,t[6].m.p,!0),o(M,K),o(M,U),Me(U,t[6].m.s),Z||(ne=[me(_,"change",t[34]),me(k,"change",t[35]),me(B,"change",t[36]),me(U,"input",t[37])],Z=!0)},p(N,w){var D,A,G,te,ee,oe,ce,Pe,Ce;w[0]&4&&n!==(n=((G=(A=(D=N[2].conf)==null?void 0:D.meter)==null?void 0:A.buffer)!=null?G:"Buffer size")+"")&&q(i,n),w[0]&4&&r!==(r=((oe=(ee=(te=N[2].conf)==null?void 0:te.meter)==null?void 0:ee.serial)!=null?oe:"Serial conf.")+"")&&q(f,r),w[0]&64&&(_.checked=N[6].m.i),w[0]&4&&v!==(v=((Ce=(Pe=(ce=N[2].conf)==null?void 0:ce.meter)==null?void 0:Pe.inverted)!=null?Ce:"inverted")+"")&&q(b,v),w[0]&64&&O!==(O=N[6].m.b!=0)&&(T.disabled=O),w[0]&64&&ot(k,N[6].m.b),w[0]&64&&y!==(y=N[6].m.b!=0)&&(L.disabled=y),w[0]&64&&W!==(W=N[6].m.b==0)&&(B.disabled=W),w[0]&64&&ot(B,N[6].m.p),w[0]&65&&H!==(H=N[0].chip=="esp8266"?N[6].i.h.p==3||N[6].i.h.p==113?512:256:4096)&&c(U,"max",H),w[0]&64&&$e(U.value)!==N[6].m.s&&Me(U,N[6].m.s)},d(N){N&&P(e),ll($,N),Z=!1,Ht(ne)}}}function oc(t){var u,m,_;let e,l,n=((_=(m=(u=t[2].conf)==null?void 0:u.meter)==null?void 0:m.pulses)!=null?_:"Pulses per kWh")+"",i,s,a,r,f;return{c(){e=p("div"),l=p("span"),i=S(n),s=g(),a=p("input"),c(a,"name","mb"),c(a,"class","in-s tr"),c(a,"type","number"),c(a,"min",1),c(a,"max",3600),c(e,"class","my-1")},m(d,v){E(d,e,v),o(e,l),o(l,i),o(e,s),o(e,a),Me(a,t[6].m.b),r||(f=me(a,"input",t[33]),r=!0)},p(d,v){var b,h,M;v[0]&4&&n!==(n=((M=(h=(b=d[2].conf)==null?void 0:b.meter)==null?void 0:h.pulses)!=null?M:"Pulses per kWh")+"")&&q(i,n),v[0]&64&&$e(a.value)!==d[6].m.b&&Me(a,d[6].m.b)},d(d){d&&P(e),r=!1,f()}}}function ac(t){let e,l=t[122]*100+"",n;return{c(){e=p("option"),n=S(l),e.__value=t[122]*100,e.value=e.__value},m(i,s){E(i,e,s),o(e,n)},p:Ze,d(i){i&&P(e)}}}function ua(t){let e,l,n,i;return{c(){e=p("br"),l=p("input"),c(l,"name","mek"),c(l,"type","text"),c(l,"class","in-s")},m(s,a){E(s,e,a),E(s,l,a),Me(l,t[6].m.e.k),n||(i=me(l,"input",t[42]),n=!0)},p(s,a){a[0]&64&&l.value!==s[6].m.e.k&&Me(l,s[6].m.e.k)},d(s){s&&P(e),s&&P(l),n=!1,i()}}}function ra(t){var u,m,_;let e,l=((_=(m=(u=t[2].conf)==null?void 0:u.meter)==null?void 0:m.authkey)!=null?_:"Authentication key")+"",n,i,s,a,r,f;return{c(){e=p("div"),n=S(l),i=p("br"),s=g(),a=p("input"),c(a,"name","mea"),c(a,"type","text"),c(a,"class","in-s"),c(e,"class","my-1")},m(d,v){E(d,e,v),o(e,n),o(e,i),o(e,s),o(e,a),Me(a,t[6].m.e.a),r||(f=me(a,"input",t[43]),r=!0)},p(d,v){var b,h,M;v[0]&4&&l!==(l=((M=(h=(b=d[2].conf)==null?void 0:b.meter)==null?void 0:h.authkey)!=null?M:"Authentication key")+"")&&q(n,l),v[0]&64&&a.value!==d[6].m.e.a&&Me(a,d[6].m.e.a)},d(d){d&&P(e),r=!1,f()}}}function ca(t){var W,K,U,H,Z,ne,X,$,ae,le,se,fe,re,Q,x,ge;let e,l,n=((H=(U=(K=(W=t[2].conf)==null?void 0:W.meter)==null?void 0:K.multipliers)==null?void 0:U.watt)!=null?H:"Watt")+"",i,s,a,r,f,u,m=(($=(X=(ne=(Z=t[2].conf)==null?void 0:Z.meter)==null?void 0:ne.multipliers)==null?void 0:X.volt)!=null?$:"Volt")+"",_,d,v,b,h,M,k=((fe=(se=(le=(ae=t[2].conf)==null?void 0:ae.meter)==null?void 0:le.multipliers)==null?void 0:se.amp)!=null?fe:"Amp")+"",T,I,O,C,B,L,z=((ge=(x=(Q=(re=t[2].conf)==null?void 0:re.meter)==null?void 0:Q.multipliers)==null?void 0:x.kwh)!=null?ge:"kWh")+"",y,V,R,F,Y,j;return{c(){e=p("div"),l=p("div"),i=S(n),s=p("br"),a=g(),r=p("input"),f=g(),u=p("div"),_=S(m),d=p("br"),v=g(),b=p("input"),h=g(),M=p("div"),T=S(k),I=p("br"),O=g(),C=p("input"),B=g(),L=p("div"),y=S(z),V=p("br"),R=g(),F=p("input"),c(r,"name","mmw"),c(r,"type","number"),c(r,"min","0.00"),c(r,"max","1000"),c(r,"step","0.001"),c(r,"class","in-f tr w-full"),c(l,"class","w-1/4"),c(b,"name","mmv"),c(b,"type","number"),c(b,"min","0.00"),c(b,"max","1000"),c(b,"step","0.001"),c(b,"class","in-m tr w-full"),c(u,"class","w-1/4"),c(C,"name","mma"),c(C,"type","number"),c(C,"min","0.00"),c(C,"max","1000"),c(C,"step","0.001"),c(C,"class","in-m tr w-full"),c(M,"class","w-1/4"),c(F,"name","mmc"),c(F,"type","number"),c(F,"min","0.00"),c(F,"max","1000"),c(F,"step","0.001"),c(F,"class","in-l tr w-full"),c(L,"class","w-1/4"),c(e,"class","flex my-1")},m(pe,N){E(pe,e,N),o(e,l),o(l,i),o(l,s),o(l,a),o(l,r),Me(r,t[6].m.m.w),o(e,f),o(e,u),o(u,_),o(u,d),o(u,v),o(u,b),Me(b,t[6].m.m.v),o(e,h),o(e,M),o(M,T),o(M,I),o(M,O),o(M,C),Me(C,t[6].m.m.a),o(e,B),o(e,L),o(L,y),o(L,V),o(L,R),o(L,F),Me(F,t[6].m.m.c),Y||(j=[me(r,"input",t[45]),me(b,"input",t[46]),me(C,"input",t[47]),me(F,"input",t[48])],Y=!0)},p(pe,N){var w,D,A,G,te,ee,oe,ce,Pe,Ce,de,Ne,Te,ve,be,He;N[0]&4&&n!==(n=((G=(A=(D=(w=pe[2].conf)==null?void 0:w.meter)==null?void 0:D.multipliers)==null?void 0:A.watt)!=null?G:"Watt")+"")&&q(i,n),N[0]&64&&$e(r.value)!==pe[6].m.m.w&&Me(r,pe[6].m.m.w),N[0]&4&&m!==(m=((ce=(oe=(ee=(te=pe[2].conf)==null?void 0:te.meter)==null?void 0:ee.multipliers)==null?void 0:oe.volt)!=null?ce:"Volt")+"")&&q(_,m),N[0]&64&&$e(b.value)!==pe[6].m.m.v&&Me(b,pe[6].m.m.v),N[0]&4&&k!==(k=((Ne=(de=(Ce=(Pe=pe[2].conf)==null?void 0:Pe.meter)==null?void 0:Ce.multipliers)==null?void 0:de.amp)!=null?Ne:"Amp")+"")&&q(T,k),N[0]&64&&$e(C.value)!==pe[6].m.m.a&&Me(C,pe[6].m.m.a),N[0]&4&&z!==(z=((He=(be=(ve=(Te=pe[2].conf)==null?void 0:Te.meter)==null?void 0:ve.multipliers)==null?void 0:be.kwh)!=null?He:"kWh")+"")&&q(y,z),N[0]&64&&$e(F.value)!==pe[6].m.m.c&&Me(F,pe[6].m.m.c)},d(pe){pe&&P(e),Y=!1,Ht(j)}}}function ma(t){var z,y,V,R,F,Y,j,W,K;let e,l,n=((V=(y=(z=t[2].conf)==null?void 0:z.connection)==null?void 0:y.title)!=null?V:"Connection")+"",i,s,a,r,f,u,m,_,d,v,b=((Y=(F=(R=t[2].conf)==null?void 0:R.connection)==null?void 0:F.wifi)!=null?Y:"WiFi")+"",h,M,k=((K=(W=(j=t[2].conf)==null?void 0:j.connection)==null?void 0:W.ap)!=null?K:"AP")+"",T,I,O,C,B=t[0].if&&t[0].if.eth&&_a(t),L=(t[6].n.c==1||t[6].n.c==2)&&pa(t);return{c(){e=p("div"),l=p("strong"),i=S(n),s=g(),a=p("a"),r=S("\u24D8"),f=g(),u=p("input"),m=g(),_=p("div"),d=p("select"),v=p("option"),h=S(b),M=p("option"),T=S(k),B&&B.c(),I=g(),L&&L.c(),c(l,"class","text-sm"),c(a,"href",ql("Network-connection")),c(a,"target","_blank"),c(a,"class","float-right"),c(u,"type","hidden"),c(u,"name","w"),u.value="true",v.__value=1,v.value=v.__value,M.__value=2,M.value=M.__value,c(d,"name","nc"),c(d,"class","in-s"),t[6].n.c===void 0&&Wt(()=>t[49].call(d)),c(_,"class","my-1"),c(e,"class","cnt")},m(U,H){E(U,e,H),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,u),o(e,m),o(e,_),o(_,d),o(d,v),o(v,h),o(d,M),o(M,T),B&&B.m(d,null),ot(d,t[6].n.c,!0),o(e,I),L&&L.m(e,null),O||(C=me(d,"change",t[49]),O=!0)},p(U,H){var Z,ne,X,$,ae,le,se,fe,re;H[0]&4&&n!==(n=((X=(ne=(Z=U[2].conf)==null?void 0:Z.connection)==null?void 0:ne.title)!=null?X:"Connection")+"")&&q(i,n),H[0]&4&&b!==(b=((le=(ae=($=U[2].conf)==null?void 0:$.connection)==null?void 0:ae.wifi)!=null?le:"WiFi")+"")&&q(h,b),H[0]&4&&k!==(k=((re=(fe=(se=U[2].conf)==null?void 0:se.connection)==null?void 0:fe.ap)!=null?re:"AP")+"")&&q(T,k),U[0].if&&U[0].if.eth?B?B.p(U,H):(B=_a(U),B.c(),B.m(d,null)):B&&(B.d(1),B=null),H[0]&64&&ot(d,U[6].n.c),U[6].n.c==1||U[6].n.c==2?L?L.p(U,H):(L=pa(U),L.c(),L.m(e,null)):L&&(L.d(1),L=null)},d(U){U&&P(e),B&&B.d(),L&&L.d(),O=!1,C()}}}function _a(t){var i,s,a;let e,l=((a=(s=(i=t[2].conf)==null?void 0:i.connection)==null?void 0:s.eth)!=null?a:"Ethernet")+"",n;return{c(){e=p("option"),n=S(l),e.__value=3,e.value=e.__value},m(r,f){E(r,e,f),o(e,n)},p(r,f){var u,m,_;f[0]&4&&l!==(l=((_=(m=(u=r[2].conf)==null?void 0:u.connection)==null?void 0:m.eth)!=null?_:"Ethernet")+"")&&q(n,l)},d(r){r&&P(e)}}}function pa(t){var te,ee,oe,ce,Pe,Ce,de,Ne,Te,ve,be,He,ye,Ve,xe,Je,it,We,_t,Ee,_e,Ue,kt,wt,nt,vt,ze,Ke,Ye,Xe,Qe,ut;let e,l=((oe=(ee=(te=t[2].conf)==null?void 0:te.connection)==null?void 0:ee.ssid)!=null?oe:"SSID")+"",n,i,s,a,r,f,u=((Ce=(Pe=(ce=t[2].conf)==null?void 0:ce.connection)==null?void 0:Pe.psk)!=null?Ce:"Password")+"",m,_,d,v,b,h,M,k=((ve=(Te=(Ne=(de=t[2].conf)==null?void 0:de.connection)==null?void 0:Ne.ps)==null?void 0:Te.title)!=null?ve:"Power saving")+"",T,I,O,C,B,L=((Ve=(ye=(He=(be=t[2].conf)==null?void 0:be.connection)==null?void 0:He.ps)==null?void 0:ye.default)!=null?Ve:"Default")+"",z,y,V=((We=(it=(Je=(xe=t[2].conf)==null?void 0:xe.connection)==null?void 0:Je.ps)==null?void 0:it.off)!=null?We:"Off")+"",R,F,Y=((Ue=(_e=(Ee=(_t=t[2].conf)==null?void 0:_t.connection)==null?void 0:Ee.ps)==null?void 0:_e.min)!=null?Ue:"Min")+"",j,W,K=((vt=(nt=(wt=(kt=t[2].conf)==null?void 0:kt.connection)==null?void 0:wt.ps)==null?void 0:nt.max)!=null?vt:"Max")+"",U,H,Z,ne=((Ye=(Ke=(ze=t[2].conf)==null?void 0:ze.connection)==null?void 0:Ke.pwr)!=null?Ye:"Power")+"",X,$,ae,le,se,fe,re,Q,x,ge,pe,N,w=((ut=(Qe=(Xe=t[2].conf)==null?void 0:Xe.connection)==null?void 0:Qe.tick_11b)!=null?ut:"802.11b")+"",D,A,G;return{c(){e=p("div"),n=S(l),i=p("br"),s=g(),a=p("input"),r=g(),f=p("div"),m=S(u),_=p("br"),d=g(),v=p("input"),b=g(),h=p("div"),M=p("div"),T=S(k),I=p("br"),O=g(),C=p("select"),B=p("option"),z=S(L),y=p("option"),R=S(V),F=p("option"),j=S(Y),W=p("option"),U=S(K),H=g(),Z=p("div"),X=S(ne),$=p("br"),ae=g(),le=p("div"),se=p("input"),fe=g(),re=p("span"),re.textContent="dBm",Q=g(),x=p("div"),ge=p("label"),pe=p("input"),N=g(),D=S(w),c(a,"name","ws"),c(a,"type","text"),c(a,"class","in-s"),c(e,"class","my-1"),c(v,"name","wp"),c(v,"type","password"),c(v,"class","in-s"),c(f,"class","my-1"),B.__value=255,B.value=B.__value,y.__value=0,y.value=y.__value,F.__value=1,F.value=F.__value,W.__value=2,W.value=W.__value,c(C,"name","wz"),c(C,"class","in-s"),t[6].w.z===void 0&&Wt(()=>t[52].call(C)),c(M,"class","w-1/2"),c(se,"name","ww"),c(se,"type","number"),c(se,"min","0"),c(se,"max","20.5"),c(se,"step","0.5"),c(se,"class","in-f tr w-full"),c(re,"class","in-post"),c(le,"class","flex"),c(Z,"class","ml-2 w-1/2"),c(h,"class","my-1 flex"),c(pe,"type","checkbox"),c(pe,"name","wb"),pe.__value="true",pe.value=pe.__value,c(pe,"class","rounded mb-1"),c(x,"class","my-3")},m(we,Ae){E(we,e,Ae),o(e,n),o(e,i),o(e,s),o(e,a),Me(a,t[6].w.s),E(we,r,Ae),E(we,f,Ae),o(f,m),o(f,_),o(f,d),o(f,v),Me(v,t[6].w.p),E(we,b,Ae),E(we,h,Ae),o(h,M),o(M,T),o(M,I),o(M,O),o(M,C),o(C,B),o(B,z),o(C,y),o(y,R),o(C,F),o(F,j),o(C,W),o(W,U),ot(C,t[6].w.z,!0),o(h,H),o(h,Z),o(Z,X),o(Z,$),o(Z,ae),o(Z,le),o(le,se),Me(se,t[6].w.w),o(le,fe),o(le,re),E(we,Q,Ae),E(we,x,Ae),o(x,ge),o(ge,pe),pe.checked=t[6].w.b,o(ge,N),o(ge,D),A||(G=[me(a,"input",t[50]),me(v,"input",t[51]),me(C,"change",t[52]),me(se,"input",t[53]),me(pe,"change",t[54])],A=!0)},p(we,Ae){var ke,ue,De,rt,st,at,pt,ht,Rt,Pt,ct,Ft,zt,Bt,Ut,qt,yt,Gt,Vt,Yt,Ct,Mt,ft,Nt,Et,dt,At,St,mt,qe,Ge,Qt;Ae[0]&4&&l!==(l=((De=(ue=(ke=we[2].conf)==null?void 0:ke.connection)==null?void 0:ue.ssid)!=null?De:"SSID")+"")&&q(n,l),Ae[0]&64&&a.value!==we[6].w.s&&Me(a,we[6].w.s),Ae[0]&4&&u!==(u=((at=(st=(rt=we[2].conf)==null?void 0:rt.connection)==null?void 0:st.psk)!=null?at:"Password")+"")&&q(m,u),Ae[0]&64&&v.value!==we[6].w.p&&Me(v,we[6].w.p),Ae[0]&4&&k!==(k=((Pt=(Rt=(ht=(pt=we[2].conf)==null?void 0:pt.connection)==null?void 0:ht.ps)==null?void 0:Rt.title)!=null?Pt:"Power saving")+"")&&q(T,k),Ae[0]&4&&L!==(L=((Bt=(zt=(Ft=(ct=we[2].conf)==null?void 0:ct.connection)==null?void 0:Ft.ps)==null?void 0:zt.default)!=null?Bt:"Default")+"")&&q(z,L),Ae[0]&4&&V!==(V=((Gt=(yt=(qt=(Ut=we[2].conf)==null?void 0:Ut.connection)==null?void 0:qt.ps)==null?void 0:yt.off)!=null?Gt:"Off")+"")&&q(R,V),Ae[0]&4&&Y!==(Y=((Mt=(Ct=(Yt=(Vt=we[2].conf)==null?void 0:Vt.connection)==null?void 0:Yt.ps)==null?void 0:Ct.min)!=null?Mt:"Min")+"")&&q(j,Y),Ae[0]&4&&K!==(K=((dt=(Et=(Nt=(ft=we[2].conf)==null?void 0:ft.connection)==null?void 0:Nt.ps)==null?void 0:Et.max)!=null?dt:"Max")+"")&&q(U,K),Ae[0]&64&&ot(C,we[6].w.z),Ae[0]&4&&ne!==(ne=((mt=(St=(At=we[2].conf)==null?void 0:At.connection)==null?void 0:St.pwr)!=null?mt:"Power")+"")&&q(X,ne),Ae[0]&64&&$e(se.value)!==we[6].w.w&&Me(se,we[6].w.w),Ae[0]&64&&(pe.checked=we[6].w.b),Ae[0]&4&&w!==(w=((Qt=(Ge=(qe=we[2].conf)==null?void 0:qe.connection)==null?void 0:Ge.tick_11b)!=null?Qt:"802.11b")+"")&&q(D,w)},d(we){we&&P(e),we&&P(r),we&&P(f),we&&P(b),we&&P(h),we&&P(Q),we&&P(x),A=!1,Ht(G)}}}function da(t){var He,ye,Ve,xe,Je,it,We,_t,Ee,_e,Ue,kt,wt,nt,vt,ze,Ke,Ye,Xe,Qe,ut;let e,l,n=((Ve=(ye=(He=t[2].conf)==null?void 0:He.network)==null?void 0:ye.title)!=null?Ve:"Network")+"",i,s,a,r,f,u,m=((it=(Je=(xe=t[2].conf)==null?void 0:xe.network)==null?void 0:Je.ip)!=null?it:"IP")+"",_,d,v,b,h,M,k=((Ee=(_t=(We=t[2].conf)==null?void 0:We.network)==null?void 0:_t.dhcp)!=null?Ee:"DHCP")+"",T,I,O=((kt=(Ue=(_e=t[2].conf)==null?void 0:_e.network)==null?void 0:Ue.static)!=null?kt:"Static")+"",C,B,L,z,y,V,R,F,Y,j,W,K,U,H,Z,ne,X,$,ae,le,se,fe=((vt=(nt=(wt=t[2].conf)==null?void 0:wt.network)==null?void 0:nt.tick_mdns)!=null?vt:"mDNS")+"",re,Q,x,ge,pe,N=((Ye=(Ke=(ze=t[2].conf)==null?void 0:ze.network)==null?void 0:Ke.ntp)!=null?Ye:"NTP")+"",w,D,A,G,te,ee=((ut=(Qe=(Xe=t[2].conf)==null?void 0:Xe.network)==null?void 0:Qe.tick_ntp_dhcp)!=null?ut:"from DHCP")+"",oe,ce,Pe,Ce,de,Ne,Te,ve;F=new Fu({});let be=t[6].n.m=="static"&&va(t);return{c(){e=p("div"),l=p("strong"),i=S(n),s=g(),a=p("a"),r=S("\u24D8"),f=g(),u=p("div"),_=S(m),d=p("br"),v=g(),b=p("div"),h=p("select"),M=p("option"),T=S(k),I=p("option"),C=S(O),B=g(),L=p("input"),V=g(),R=p("select"),Oe(F.$$.fragment),W=g(),be&&be.c(),K=g(),U=p("div"),H=p("label"),Z=p("input"),ne=S(" IPv6"),X=g(),$=p("div"),ae=p("label"),le=p("input"),se=g(),re=S(fe),Q=g(),x=p("input"),ge=g(),pe=p("div"),w=S(N),D=g(),A=p("label"),G=p("input"),te=g(),oe=S(ee),ce=p("br"),Pe=g(),Ce=p("div"),de=p("input"),c(l,"class","text-sm"),c(a,"href",ql("Network-configuration")),c(a,"target","_blank"),c(a,"class","float-right"),M.__value="dhcp",M.value=M.__value,I.__value="static",I.value=I.__value,c(h,"name","nm"),c(h,"class","in-f"),t[6].n.m===void 0&&Wt(()=>t[55].call(h)),c(L,"name","ni"),c(L,"type","text"),c(L,"class","in-m w-full"),L.disabled=z=t[6].n.m=="dhcp",L.required=y=t[6].n.m=="static",c(R,"name","ns"),c(R,"class","in-l"),R.disabled=Y=t[6].n.m=="dhcp",R.required=j=t[6].n.m=="static",t[6].n.s===void 0&&Wt(()=>t[57].call(R)),c(b,"class","flex"),c(u,"class","my-1"),c(Z,"name","nx"),Z.__value="true",Z.value=Z.__value,c(Z,"type","checkbox"),c(Z,"class","rounded mb-1"),c(U,"class","my-1"),c(le,"name","nd"),le.__value="true",le.value=le.__value,c(le,"type","checkbox"),c(le,"class","rounded mb-1"),c($,"class","my-1"),c(x,"type","hidden"),c(x,"name","ntp"),x.value="true",c(G,"name","ntpd"),G.__value="true",G.value=G.__value,c(G,"type","checkbox"),c(G,"class","rounded mb-1"),c(A,"class","ml-4"),c(de,"name","ntph"),c(de,"type","text"),c(de,"class","in-s"),c(Ce,"class","flex"),c(pe,"class","my-1"),c(e,"class","cnt")},m(we,Ae){E(we,e,Ae),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,u),o(u,_),o(u,d),o(u,v),o(u,b),o(b,h),o(h,M),o(M,T),o(h,I),o(I,C),ot(h,t[6].n.m,!0),o(b,B),o(b,L),Me(L,t[6].n.i),o(b,V),o(b,R),Le(F,R,null),ot(R,t[6].n.s,!0),o(e,W),be&&be.m(e,null),o(e,K),o(e,U),o(U,H),o(H,Z),Z.checked=t[6].n.x,o(H,ne),o(e,X),o(e,$),o($,ae),o(ae,le),le.checked=t[6].n.d,o(ae,se),o(ae,re),o(e,Q),o(e,x),o(e,ge),o(e,pe),o(pe,w),o(pe,D),o(pe,A),o(A,G),G.checked=t[6].n.h,o(A,te),o(A,oe),o(pe,ce),o(pe,Pe),o(pe,Ce),o(Ce,de),Me(de,t[6].n.n1),Ne=!0,Te||(ve=[me(h,"change",t[55]),me(L,"input",t[56]),me(R,"change",t[57]),me(Z,"change",t[61]),me(le,"change",t[62]),me(G,"change",t[63]),me(de,"input",t[64])],Te=!0)},p(we,Ae){var ke,ue,De,rt,st,at,pt,ht,Rt,Pt,ct,Ft,zt,Bt,Ut,qt,yt,Gt,Vt,Yt,Ct;(!Ne||Ae[0]&4)&&n!==(n=((De=(ue=(ke=we[2].conf)==null?void 0:ke.network)==null?void 0:ue.title)!=null?De:"Network")+"")&&q(i,n),(!Ne||Ae[0]&4)&&m!==(m=((at=(st=(rt=we[2].conf)==null?void 0:rt.network)==null?void 0:st.ip)!=null?at:"IP")+"")&&q(_,m),(!Ne||Ae[0]&4)&&k!==(k=((Rt=(ht=(pt=we[2].conf)==null?void 0:pt.network)==null?void 0:ht.dhcp)!=null?Rt:"DHCP")+"")&&q(T,k),(!Ne||Ae[0]&4)&&O!==(O=((Ft=(ct=(Pt=we[2].conf)==null?void 0:Pt.network)==null?void 0:ct.static)!=null?Ft:"Static")+"")&&q(C,O),Ae[0]&64&&ot(h,we[6].n.m),(!Ne||Ae[0]&64&&z!==(z=we[6].n.m=="dhcp"))&&(L.disabled=z),(!Ne||Ae[0]&64&&y!==(y=we[6].n.m=="static"))&&(L.required=y),Ae[0]&64&&L.value!==we[6].n.i&&Me(L,we[6].n.i),(!Ne||Ae[0]&64&&Y!==(Y=we[6].n.m=="dhcp"))&&(R.disabled=Y),(!Ne||Ae[0]&64&&j!==(j=we[6].n.m=="static"))&&(R.required=j),Ae[0]&64&&ot(R,we[6].n.s),we[6].n.m=="static"?be?be.p(we,Ae):(be=va(we),be.c(),be.m(e,K)):be&&(be.d(1),be=null),Ae[0]&64&&(Z.checked=we[6].n.x),Ae[0]&64&&(le.checked=we[6].n.d),(!Ne||Ae[0]&4)&&fe!==(fe=((Ut=(Bt=(zt=we[2].conf)==null?void 0:zt.network)==null?void 0:Bt.tick_mdns)!=null?Ut:"mDNS")+"")&&q(re,fe),(!Ne||Ae[0]&4)&&N!==(N=((Gt=(yt=(qt=we[2].conf)==null?void 0:qt.network)==null?void 0:yt.ntp)!=null?Gt:"NTP")+"")&&q(w,N),Ae[0]&64&&(G.checked=we[6].n.h),(!Ne||Ae[0]&4)&&ee!==(ee=((Ct=(Yt=(Vt=we[2].conf)==null?void 0:Vt.network)==null?void 0:Yt.tick_ntp_dhcp)!=null?Ct:"from DHCP")+"")&&q(oe,ee),Ae[0]&64&&de.value!==we[6].n.n1&&Me(de,we[6].n.n1)},i(we){Ne||(J(F.$$.fragment,we),Ne=!0)},o(we){ie(F.$$.fragment,we),Ne=!1},d(we){we&&P(e),Ie(F),be&&be.d(),Te=!1,Ht(ve)}}}function va(t){var I,O,C,B,L,z;let e,l=((C=(O=(I=t[2].conf)==null?void 0:I.network)==null?void 0:O.gw)!=null?C:"Gateway")+"",n,i,s,a,r,f,u=((z=(L=(B=t[2].conf)==null?void 0:B.network)==null?void 0:L.dns)!=null?z:"DNS")+"",m,_,d,v,b,h,M,k,T;return{c(){e=p("div"),n=S(l),i=p("br"),s=g(),a=p("input"),r=g(),f=p("div"),m=S(u),_=p("br"),d=g(),v=p("div"),b=p("input"),h=g(),M=p("input"),c(a,"name","ng"),c(a,"type","text"),c(a,"class","in-s"),c(e,"class","my-1"),c(b,"name","nd1"),c(b,"type","text"),c(b,"class","in-f w-full"),c(M,"name","nd2"),c(M,"type","text"),c(M,"class","in-l w-full"),c(v,"class","flex"),c(f,"class","my-1")},m(y,V){E(y,e,V),o(e,n),o(e,i),o(e,s),o(e,a),Me(a,t[6].n.g),E(y,r,V),E(y,f,V),o(f,m),o(f,_),o(f,d),o(f,v),o(v,b),Me(b,t[6].n.d1),o(v,h),o(v,M),Me(M,t[6].n.d2),k||(T=[me(a,"input",t[58]),me(b,"input",t[59]),me(M,"input",t[60])],k=!0)},p(y,V){var R,F,Y,j,W,K;V[0]&4&&l!==(l=((Y=(F=(R=y[2].conf)==null?void 0:R.network)==null?void 0:F.gw)!=null?Y:"Gateway")+"")&&q(n,l),V[0]&64&&a.value!==y[6].n.g&&Me(a,y[6].n.g),V[0]&4&&u!==(u=((K=(W=(j=y[2].conf)==null?void 0:j.network)==null?void 0:W.dns)!=null?K:"DNS")+"")&&q(m,u),V[0]&64&&b.value!==y[6].n.d1&&Me(b,y[6].n.d1),V[0]&64&&M.value!==y[6].n.d2&&Me(M,y[6].n.d2)},d(y){y&&P(e),y&&P(r),y&&P(f),k=!1,Ht(T)}}}function ha(t){var rt,st,at,pt,ht,Rt,Pt,ct,Ft,zt,Bt,Ut,qt,yt,Gt,Vt,Yt,Ct,Mt,ft,Nt,Et,dt,At,St,mt,qe,Ge,Qt,el,xt,Se;let e,l,n=((at=(st=(rt=t[2].conf)==null?void 0:rt.mqtt)==null?void 0:st.title)!=null?at:"MQTT")+"",i,s,a,r,f,u,m,_,d=((Rt=(ht=(pt=t[2].conf)==null?void 0:pt.mqtt)==null?void 0:ht.server)!=null?Rt:"Server")+"",v,b,h,M,k,T,I,O,C,B,L,z,y=((Ft=(ct=(Pt=t[2].conf)==null?void 0:Pt.mqtt)==null?void 0:ct.user)!=null?Ft:"Username")+"",V,R,F,Y,j,W,K=((Ut=(Bt=(zt=t[2].conf)==null?void 0:zt.mqtt)==null?void 0:Bt.pass)!=null?Ut:"Password")+"",U,H,Z,ne,X,$,ae,le=((Gt=(yt=(qt=t[2].conf)==null?void 0:qt.mqtt)==null?void 0:yt.id)!=null?Gt:"Client ID")+"",se,fe,re,Q,x,ge,pe=((Ct=(Yt=(Vt=t[2].conf)==null?void 0:Vt.mqtt)==null?void 0:Yt.payload)!=null?Ct:"Payload")+"",N,w,D,A,G,te,ee,oe=((Et=(Nt=(ft=(Mt=t[2].conf)==null?void 0:Mt.mqtt)==null?void 0:ft.domoticz)==null?void 0:Nt.title)!=null?Et:"Domoticz")+"",ce,Pe,Ce=((mt=(St=(At=(dt=t[2].conf)==null?void 0:dt.mqtt)==null?void 0:At.ha)==null?void 0:St.title)!=null?mt:"Home-Assistant")+"",de,Ne,Te,ve,be,He,ye,Ve=((Qt=(Ge=(qe=t[2].conf)==null?void 0:qe.mqtt)==null?void 0:Ge.publish)!=null?Qt:"Publish topic")+"",xe,Je,it,We,_t,Ee,_e=((Se=(xt=(el=t[2].conf)==null?void 0:el.mqtt)==null?void 0:xt.update)!=null?Se:"Update method")+"",Ue,kt,wt,nt,vt,ze,Ke,Ye,Xe,Qe,ut,we,Ae,ke,ue=t[0].chip!="esp8266"&&ba(t),De=t[6].q.s.e&&ga(t);return{c(){var Re,Fe;e=p("div"),l=p("strong"),i=S(n),s=g(),a=p("a"),r=S("\u24D8"),f=g(),u=p("input"),m=g(),_=p("div"),v=S(d),b=g(),ue&&ue.c(),h=g(),M=p("br"),k=g(),T=p("div"),I=p("input"),O=g(),C=p("input"),B=g(),De&&De.c(),L=g(),z=p("div"),V=S(y),R=p("br"),F=g(),Y=p("input"),j=g(),W=p("div"),U=S(K),H=p("br"),Z=g(),ne=p("input"),X=g(),$=p("div"),ae=p("div"),se=S(le),fe=p("br"),re=g(),Q=p("input"),x=g(),ge=p("div"),N=S(pe),w=p("br"),D=g(),A=p("select"),G=p("option"),G.textContent="Raw (minimal)",te=p("option"),te.textContent="Raw (full)",ee=p("option"),ce=S(oe),Pe=p("option"),de=S(Ce),Ne=p("option"),Ne.textContent="JSON (classic)",Te=p("option"),Te.textContent="JSON (multi topic)",ve=p("option"),ve.textContent="JSON (flat)",be=p("option"),be.textContent="HEX dump",He=g(),ye=p("div"),xe=S(Ve),Je=p("br"),it=g(),We=p("input"),_t=g(),Ee=p("div"),Ue=S(_e),kt=g(),wt=p("span"),wt.textContent="Interval",nt=g(),vt=p("div"),ze=p("select"),Ke=p("option"),Ke.textContent="Real time",Ye=p("option"),Ye.textContent="Interval",Xe=g(),Qe=p("input"),c(l,"class","text-sm"),c(a,"href",ql("MQTT-configuration")),c(a,"target","_blank"),c(a,"class","float-right"),c(u,"type","hidden"),c(u,"name","q"),u.value="true",c(I,"name","qh"),c(I,"type","text"),c(I,"class","in-f w-2/3"),c(C,"name","qp"),c(C,"type","number"),c(C,"min","1024"),c(C,"max","65535"),c(C,"class","in-l tr w-1/3"),c(T,"class","flex"),c(_,"class","my-1"),c(Y,"name","qu"),c(Y,"type","text"),c(Y,"class","in-s"),c(z,"class","my-1"),c(ne,"name","qa"),c(ne,"type","password"),c(ne,"class","in-s"),c(W,"class","my-1"),c(Q,"name","qc"),c(Q,"type","text"),c(Q,"class","in-f w-full"),G.__value=1,G.value=G.__value,te.__value=2,te.value=te.__value,ee.__value=3,ee.value=ee.__value,Pe.__value=4,Pe.value=Pe.__value,Ne.__value=0,Ne.value=Ne.__value,Te.__value=5,Te.value=Te.__value,ve.__value=6,ve.value=ve.__value,be.__value=255,be.value=be.__value,c(A,"name","qm"),c(A,"class","in-l"),t[6].q.m===void 0&&Wt(()=>t[71].call(A)),c($,"class","my-1 flex"),c(We,"name","qb"),c(We,"type","text"),c(We,"class","in-s"),c(ye,"class","my-1"),c(wt,"class","float-right"),Ke.__value=0,Ke.value=Ke.__value,Ye.__value=1,Ye.value=Ye.__value,c(ze,"name","qt"),c(ze,"class","in-f w-1/2"),t[6].q.t===void 0&&Wt(()=>t[73].call(ze)),c(Qe,"name","qd"),c(Qe,"type","number"),c(Qe,"min","1"),c(Qe,"max","3600"),c(Qe,"class","in-l tr w-1/2"),Qe.disabled=ut=((Fe=(Re=t[6])==null?void 0:Re.q)==null?void 0:Fe.t)!=1,c(vt,"class","flex"),c(Ee,"class","my-1"),c(e,"class","cnt")},m(Re,Fe){E(Re,e,Fe),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,u),o(e,m),o(e,_),o(_,v),o(_,b),ue&&ue.m(_,null),o(_,h),o(_,M),o(_,k),o(_,T),o(T,I),Me(I,t[6].q.h),o(T,O),o(T,C),Me(C,t[6].q.p),o(e,B),De&&De.m(e,null),o(e,L),o(e,z),o(z,V),o(z,R),o(z,F),o(z,Y),Me(Y,t[6].q.u),o(e,j),o(e,W),o(W,U),o(W,H),o(W,Z),o(W,ne),Me(ne,t[6].q.a),o(e,X),o(e,$),o($,ae),o(ae,se),o(ae,fe),o(ae,re),o(ae,Q),Me(Q,t[6].q.c),o($,x),o($,ge),o(ge,N),o(ge,w),o(ge,D),o(ge,A),o(A,G),o(A,te),o(A,ee),o(ee,ce),o(A,Pe),o(Pe,de),o(A,Ne),o(A,Te),o(A,ve),o(A,be),ot(A,t[6].q.m,!0),o(e,He),o(e,ye),o(ye,xe),o(ye,Je),o(ye,it),o(ye,We),Me(We,t[6].q.b),o(e,_t),o(e,Ee),o(Ee,Ue),o(Ee,kt),o(Ee,wt),o(Ee,nt),o(Ee,vt),o(vt,ze),o(ze,Ke),o(ze,Ye),ot(ze,t[6].q.t,!0),o(vt,Xe),o(vt,Qe),Me(Qe,t[6].q.d),we=!0,Ae||(ke=[me(I,"input",t[66]),me(C,"input",t[67]),me(Y,"input",t[68]),me(ne,"input",t[69]),me(Q,"input",t[70]),me(A,"change",t[71]),me(We,"input",t[72]),me(ze,"change",t[73]),me(Qe,"input",t[74])],Ae=!0)},p(Re,Fe){var il,sl,ol,al,fl,ul,rl,cl,ml,_l,pl,dl,Be,et,je,he,Kt,wl,Cl,Sl,Ml,Nl,Tl,Pl,El,Dl,Rl,Fl,Bl,Ul,tt,Ot,vl,bl;(!we||Fe[0]&4)&&n!==(n=((ol=(sl=(il=Re[2].conf)==null?void 0:il.mqtt)==null?void 0:sl.title)!=null?ol:"MQTT")+"")&&q(i,n),(!we||Fe[0]&4)&&d!==(d=((ul=(fl=(al=Re[2].conf)==null?void 0:al.mqtt)==null?void 0:fl.server)!=null?ul:"Server")+"")&&q(v,d),Re[0].chip!="esp8266"?ue?ue.p(Re,Fe):(ue=ba(Re),ue.c(),ue.m(_,h)):ue&&(ue.d(1),ue=null),Fe[0]&64&&I.value!==Re[6].q.h&&Me(I,Re[6].q.h),Fe[0]&64&&$e(C.value)!==Re[6].q.p&&Me(C,Re[6].q.p),Re[6].q.s.e?De?(De.p(Re,Fe),Fe[0]&64&&J(De,1)):(De=ga(Re),De.c(),J(De,1),De.m(e,L)):De&&(bt(),ie(De,1,1,()=>{De=null}),gt()),(!we||Fe[0]&4)&&y!==(y=((ml=(cl=(rl=Re[2].conf)==null?void 0:rl.mqtt)==null?void 0:cl.user)!=null?ml:"Username")+"")&&q(V,y),Fe[0]&64&&Y.value!==Re[6].q.u&&Me(Y,Re[6].q.u),(!we||Fe[0]&4)&&K!==(K=((dl=(pl=(_l=Re[2].conf)==null?void 0:_l.mqtt)==null?void 0:pl.pass)!=null?dl:"Password")+"")&&q(U,K),Fe[0]&64&&ne.value!==Re[6].q.a&&Me(ne,Re[6].q.a),(!we||Fe[0]&4)&&le!==(le=((je=(et=(Be=Re[2].conf)==null?void 0:Be.mqtt)==null?void 0:et.id)!=null?je:"Client ID")+"")&&q(se,le),Fe[0]&64&&Q.value!==Re[6].q.c&&Me(Q,Re[6].q.c),(!we||Fe[0]&4)&&pe!==(pe=((wl=(Kt=(he=Re[2].conf)==null?void 0:he.mqtt)==null?void 0:Kt.payload)!=null?wl:"Payload")+"")&&q(N,pe),(!we||Fe[0]&4)&&oe!==(oe=((Nl=(Ml=(Sl=(Cl=Re[2].conf)==null?void 0:Cl.mqtt)==null?void 0:Sl.domoticz)==null?void 0:Ml.title)!=null?Nl:"Domoticz")+"")&&q(ce,oe),(!we||Fe[0]&4)&&Ce!==(Ce=((Dl=(El=(Pl=(Tl=Re[2].conf)==null?void 0:Tl.mqtt)==null?void 0:Pl.ha)==null?void 0:El.title)!=null?Dl:"Home-Assistant")+"")&&q(de,Ce),Fe[0]&64&&ot(A,Re[6].q.m),(!we||Fe[0]&4)&&Ve!==(Ve=((Bl=(Fl=(Rl=Re[2].conf)==null?void 0:Rl.mqtt)==null?void 0:Fl.publish)!=null?Bl:"Publish topic")+"")&&q(xe,Ve),Fe[0]&64&&We.value!==Re[6].q.b&&Me(We,Re[6].q.b),(!we||Fe[0]&4)&&_e!==(_e=((Ot=(tt=(Ul=Re[2].conf)==null?void 0:Ul.mqtt)==null?void 0:tt.update)!=null?Ot:"Update method")+"")&&q(Ue,_e),Fe[0]&64&&ot(ze,Re[6].q.t),(!we||Fe[0]&64&&ut!==(ut=((bl=(vl=Re[6])==null?void 0:vl.q)==null?void 0:bl.t)!=1))&&(Qe.disabled=ut),Fe[0]&64&&$e(Qe.value)!==Re[6].q.d&&Me(Qe,Re[6].q.d)},i(Re){we||(J(De),we=!0)},o(Re){ie(De),we=!1},d(Re){Re&&P(e),ue&&ue.d(),De&&De.d(),Ae=!1,Ht(ke)}}}function ba(t){let e,l,n,i,s;return{c(){e=p("label"),l=p("input"),n=S(" SSL"),c(l,"type","checkbox"),c(l,"name","qs"),l.__value="true",l.value=l.__value,c(l,"class","rounded mb-1"),c(e,"class","float-right mr-3")},m(a,r){E(a,e,r),o(e,l),l.checked=t[6].q.s.e,o(e,n),i||(s=[me(l,"change",t[65]),me(l,"change",t[18])],i=!0)},p(a,r){r[0]&64&&(l.checked=a[6].q.s.e)},d(a){a&&P(e),i=!1,Ht(s)}}}function ga(t){let e,l,n,i,s,a,r,f,u,m,_,d,v;const b=[uc,fc],h=[];function M(L,z){return L[6].q.s.c?0:1}n=M(t),i=h[n]=b[n](t);const k=[_c,mc],T=[];function I(L,z){return L[6].q.s.r?0:1}r=I(t),f=T[r]=k[r](t);const O=[hc,vc],C=[];function B(L,z){return L[6].q.s.k?0:1}return _=B(t),d=C[_]=O[_](t),{c(){e=p("div"),l=p("span"),i.c(),s=g(),a=p("span"),f.c(),u=g(),m=p("span"),d.c(),c(l,"class","flex pr-2"),c(a,"class","flex pr-2"),c(m,"class","flex pr-2"),c(e,"class","my-1 flex")},m(L,z){E(L,e,z),o(e,l),h[n].m(l,null),o(e,s),o(e,a),T[r].m(a,null),o(e,u),o(e,m),C[_].m(m,null),v=!0},p(L,z){let y=n;n=M(L),n===y?h[n].p(L,z):(bt(),ie(h[y],1,1,()=>{h[y]=null}),gt(),i=h[n],i?i.p(L,z):(i=h[n]=b[n](L),i.c()),J(i,1),i.m(l,null));let V=r;r=I(L),r===V?T[r].p(L,z):(bt(),ie(T[V],1,1,()=>{T[V]=null}),gt(),f=T[r],f?f.p(L,z):(f=T[r]=k[r](L),f.c()),J(f,1),f.m(a,null));let R=_;_=B(L),_===R?C[_].p(L,z):(bt(),ie(C[R],1,1,()=>{C[R]=null}),gt(),d=C[_],d?d.p(L,z):(d=C[_]=O[_](L),d.c()),J(d,1),d.m(m,null))},i(L){v||(J(i),J(f),J(d),v=!0)},o(L){ie(i),ie(f),ie(d),v=!1},d(L){L&&P(e),h[n].d(),T[r].d(),C[_].d()}}}function fc(t){let e,l;return e=new Al({props:{to:"/mqtt-ca",$$slots:{default:[rc]},$$scope:{ctx:t}}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,i){const s={};i[0]&4|i[4]&16&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function uc(t){let e,l,n,i,s,a,r;return l=new Al({props:{to:"/mqtt-ca",$$slots:{default:[cc]},$$scope:{ctx:t}}}),{c(){e=p("span"),Oe(l.$$.fragment),n=g(),i=p("span"),i.textContent="\u{1F5D1}",c(e,"class","bd-on"),c(i,"class","bd-off")},m(f,u){E(f,e,u),Le(l,e,null),E(f,n,u),E(f,i,u),s=!0,a||(r=[me(i,"click",t[15]),me(i,"keypress",t[15])],a=!0)},p(f,u){const m={};u[0]&4|u[4]&16&&(m.$$scope={dirty:u,ctx:f}),l.$set(m)},i(f){s||(J(l.$$.fragment,f),s=!0)},o(f){ie(l.$$.fragment,f),s=!1},d(f){f&&P(e),Ie(l),f&&P(n),f&&P(i),a=!1,Ht(r)}}}function rc(t){var n,i,s,a,r,f;let e,l;return e=new xl({props:{color:"blue",text:(s=(i=(n=t[2].conf)==null?void 0:n.mqtt)==null?void 0:i.btn_ca_upload)!=null?s:"Upload CA",title:(f=(r=(a=t[2].conf)==null?void 0:a.mqtt)==null?void 0:r.title_ca)!=null?f:""}}),{c(){Oe(e.$$.fragment)},m(u,m){Le(e,u,m),l=!0},p(u,m){var d,v,b,h,M,k;const _={};m[0]&4&&(_.text=(b=(v=(d=u[2].conf)==null?void 0:d.mqtt)==null?void 0:v.btn_ca_upload)!=null?b:"Upload CA"),m[0]&4&&(_.title=(k=(M=(h=u[2].conf)==null?void 0:h.mqtt)==null?void 0:M.title_ca)!=null?k:""),e.$set(_)},i(u){l||(J(e.$$.fragment,u),l=!0)},o(u){ie(e.$$.fragment,u),l=!1},d(u){Ie(e,u)}}}function cc(t){var n,i,s;let e=((s=(i=(n=t[2].conf)==null?void 0:n.mqtt)==null?void 0:i.ca_ok)!=null?s:"CA OK")+"",l;return{c(){l=S(e)},m(a,r){E(a,l,r)},p(a,r){var f,u,m;r[0]&4&&e!==(e=((m=(u=(f=a[2].conf)==null?void 0:f.mqtt)==null?void 0:u.ca_ok)!=null?m:"CA OK")+"")&&q(l,e)},d(a){a&&P(l)}}}function mc(t){let e,l;return e=new Al({props:{to:"/mqtt-cert",$$slots:{default:[pc]},$$scope:{ctx:t}}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,i){const s={};i[0]&4|i[4]&16&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function _c(t){let e,l,n,i,s,a,r;return l=new Al({props:{to:"/mqtt-cert",$$slots:{default:[dc]},$$scope:{ctx:t}}}),{c(){e=p("span"),Oe(l.$$.fragment),n=g(),i=p("span"),i.textContent="\u{1F5D1}",c(e,"class","bd-on"),c(i,"class","bd-off")},m(f,u){E(f,e,u),Le(l,e,null),E(f,n,u),E(f,i,u),s=!0,a||(r=[me(i,"click",t[16]),me(i,"keypress",t[16])],a=!0)},p(f,u){const m={};u[0]&4|u[4]&16&&(m.$$scope={dirty:u,ctx:f}),l.$set(m)},i(f){s||(J(l.$$.fragment,f),s=!0)},o(f){ie(l.$$.fragment,f),s=!1},d(f){f&&P(e),Ie(l),f&&P(n),f&&P(i),a=!1,Ht(r)}}}function pc(t){var n,i,s,a,r,f;let e,l;return e=new xl({props:{color:"blue",text:(s=(i=(n=t[2].conf)==null?void 0:n.mqtt)==null?void 0:i.btn_crt_upload)!=null?s:"Upload cert",title:(f=(r=(a=t[2].conf)==null?void 0:a.mqtt)==null?void 0:r.title_crt)!=null?f:""}}),{c(){Oe(e.$$.fragment)},m(u,m){Le(e,u,m),l=!0},p(u,m){var d,v,b,h,M,k;const _={};m[0]&4&&(_.text=(b=(v=(d=u[2].conf)==null?void 0:d.mqtt)==null?void 0:v.btn_crt_upload)!=null?b:"Upload cert"),m[0]&4&&(_.title=(k=(M=(h=u[2].conf)==null?void 0:h.mqtt)==null?void 0:M.title_crt)!=null?k:""),e.$set(_)},i(u){l||(J(e.$$.fragment,u),l=!0)},o(u){ie(e.$$.fragment,u),l=!1},d(u){Ie(e,u)}}}function dc(t){var n,i,s;let e=((s=(i=(n=t[2].conf)==null?void 0:n.mqtt)==null?void 0:i.crt_ok)!=null?s:"Cert OK")+"",l;return{c(){l=S(e)},m(a,r){E(a,l,r)},p(a,r){var f,u,m;r[0]&4&&e!==(e=((m=(u=(f=a[2].conf)==null?void 0:f.mqtt)==null?void 0:u.crt_ok)!=null?m:"Cert OK")+"")&&q(l,e)},d(a){a&&P(l)}}}function vc(t){let e,l;return e=new Al({props:{to:"/mqtt-key",$$slots:{default:[bc]},$$scope:{ctx:t}}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,i){const s={};i[0]&4|i[4]&16&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function hc(t){let e,l,n,i,s,a,r;return l=new Al({props:{to:"/mqtt-key",$$slots:{default:[gc]},$$scope:{ctx:t}}}),{c(){e=p("span"),Oe(l.$$.fragment),n=g(),i=p("span"),i.textContent="\u{1F5D1}",c(e,"class","bd-on"),c(i,"class","bd-off")},m(f,u){E(f,e,u),Le(l,e,null),E(f,n,u),E(f,i,u),s=!0,a||(r=[me(i,"click",t[17]),me(i,"keypress",t[17])],a=!0)},p(f,u){const m={};u[0]&4|u[4]&16&&(m.$$scope={dirty:u,ctx:f}),l.$set(m)},i(f){s||(J(l.$$.fragment,f),s=!0)},o(f){ie(l.$$.fragment,f),s=!1},d(f){f&&P(e),Ie(l),f&&P(n),f&&P(i),a=!1,Ht(r)}}}function bc(t){var n,i,s,a,r,f;let e,l;return e=new xl({props:{color:"blue",text:(s=(i=(n=t[2].conf)==null?void 0:n.mqtt)==null?void 0:i.btn_key_upload)!=null?s:"Upload key",title:(f=(r=(a=t[2].conf)==null?void 0:a.mqtt)==null?void 0:r.title_key)!=null?f:""}}),{c(){Oe(e.$$.fragment)},m(u,m){Le(e,u,m),l=!0},p(u,m){var d,v,b,h,M,k;const _={};m[0]&4&&(_.text=(b=(v=(d=u[2].conf)==null?void 0:d.mqtt)==null?void 0:v.btn_key_upload)!=null?b:"Upload key"),m[0]&4&&(_.title=(k=(M=(h=u[2].conf)==null?void 0:h.mqtt)==null?void 0:M.title_key)!=null?k:""),e.$set(_)},i(u){l||(J(e.$$.fragment,u),l=!0)},o(u){ie(e.$$.fragment,u),l=!1},d(u){Ie(e,u)}}}function gc(t){var n,i,s;let e=((s=(i=(n=t[2].conf)==null?void 0:n.mqtt)==null?void 0:i.key_ok)!=null?s:"Key OK")+"",l;return{c(){l=S(e)},m(a,r){E(a,l,r)},p(a,r){var f,u,m;r[0]&4&&e!==(e=((m=(u=(f=a[2].conf)==null?void 0:f.mqtt)==null?void 0:u.key_ok)!=null?m:"Key OK")+"")&&q(l,e)},d(a){a&&P(l)}}}function ka(t){var $,ae,le,se,fe,re,Q,x,ge,pe,N,w,D,A,G,te;let e,l,n=((se=(le=(ae=($=t[2].conf)==null?void 0:$.mqtt)==null?void 0:ae.domoticz)==null?void 0:le.title)!=null?se:"Domoticz")+"",i,s,a,r,f,u,m,_,d,v=((x=(Q=(re=(fe=t[2].conf)==null?void 0:fe.mqtt)==null?void 0:re.domoticz)==null?void 0:Q.eidx)!=null?x:"Electricity IDX")+"",b,h,M,k,T,I,O=((w=(N=(pe=(ge=t[2].conf)==null?void 0:ge.mqtt)==null?void 0:pe.domoticz)==null?void 0:N.cidx)!=null?w:"Current IDX")+"",C,B,L,z,y,V,R=((te=(G=(A=(D=t[2].conf)==null?void 0:D.mqtt)==null?void 0:A.domoticz)==null?void 0:G.vidx)!=null?te:"Voltage IDX")+"",F,Y,j,W,K,U,H,Z,ne,X;return{c(){e=p("div"),l=p("strong"),i=S(n),s=g(),a=p("a"),r=S("\u24D8"),f=g(),u=p("input"),m=g(),_=p("div"),d=p("div"),b=S(v),h=p("br"),M=g(),k=p("input"),T=g(),I=p("div"),C=S(O),B=p("br"),L=g(),z=p("input"),y=g(),V=p("div"),F=S(R),Y=S(`: L1, L2 & L3 - `),j=p("div"),W=p("input"),K=g(),U=p("input"),H=g(),Z=p("input"),c(l,"class","text-sm"),c(a,"href",ql("MQTT-configuration#domoticz")),c(a,"target","_blank"),c(a,"class","float-right"),c(u,"type","hidden"),c(u,"name","o"),u.value="true",c(k,"name","oe"),c(k,"type","text"),c(k,"class","in-f tr w-full"),c(d,"class","w-1/2"),c(z,"name","oc"),c(z,"type","text"),c(z,"class","in-l tr w-full"),c(I,"class","w-1/2"),c(_,"class","my-1 flex"),c(W,"name","ou1"),c(W,"type","text"),c(W,"class","in-f tr w-1/3"),c(U,"name","ou2"),c(U,"type","text"),c(U,"class","in-m tr w-1/3"),c(Z,"name","ou3"),c(Z,"type","text"),c(Z,"class","in-l tr w-1/3"),c(j,"class","flex"),c(V,"class","my-1"),c(e,"class","cnt")},m(ee,oe){E(ee,e,oe),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,u),o(e,m),o(e,_),o(_,d),o(d,b),o(d,h),o(d,M),o(d,k),Me(k,t[6].o.e),o(_,T),o(_,I),o(I,C),o(I,B),o(I,L),o(I,z),Me(z,t[6].o.c),o(e,y),o(e,V),o(V,F),o(V,Y),o(V,j),o(j,W),Me(W,t[6].o.u1),o(j,K),o(j,U),Me(U,t[6].o.u2),o(j,H),o(j,Z),Me(Z,t[6].o.u3),ne||(X=[me(k,"input",t[75]),me(z,"input",t[76]),me(W,"input",t[77]),me(U,"input",t[78]),me(Z,"input",t[79])],ne=!0)},p(ee,oe){var ce,Pe,Ce,de,Ne,Te,ve,be,He,ye,Ve,xe,Je,it,We,_t;oe[0]&4&&n!==(n=((de=(Ce=(Pe=(ce=ee[2].conf)==null?void 0:ce.mqtt)==null?void 0:Pe.domoticz)==null?void 0:Ce.title)!=null?de:"Domoticz")+"")&&q(i,n),oe[0]&4&&v!==(v=((be=(ve=(Te=(Ne=ee[2].conf)==null?void 0:Ne.mqtt)==null?void 0:Te.domoticz)==null?void 0:ve.eidx)!=null?be:"Electricity IDX")+"")&&q(b,v),oe[0]&64&&k.value!==ee[6].o.e&&Me(k,ee[6].o.e),oe[0]&4&&O!==(O=((xe=(Ve=(ye=(He=ee[2].conf)==null?void 0:He.mqtt)==null?void 0:ye.domoticz)==null?void 0:Ve.cidx)!=null?xe:"Current IDX")+"")&&q(C,O),oe[0]&64&&z.value!==ee[6].o.c&&Me(z,ee[6].o.c),oe[0]&4&&R!==(R=((_t=(We=(it=(Je=ee[2].conf)==null?void 0:Je.mqtt)==null?void 0:it.domoticz)==null?void 0:We.vidx)!=null?_t:"Voltage IDX")+"")&&q(F,R),oe[0]&64&&W.value!==ee[6].o.u1&&Me(W,ee[6].o.u1),oe[0]&64&&U.value!==ee[6].o.u2&&Me(U,ee[6].o.u2),oe[0]&64&&Z.value!==ee[6].o.u3&&Me(Z,ee[6].o.u3)},d(ee){ee&&P(e),ne=!1,Ht(X)}}}function wa(t){var H,Z,ne,X,$,ae,le,se,fe,re,Q,x,ge,pe,N,w;let e,l,n=((X=(ne=(Z=(H=t[2].conf)==null?void 0:H.mqtt)==null?void 0:Z.ha)==null?void 0:ne.title)!=null?X:"Home-Assistant")+"",i,s,a,r,f,u,m,_,d=((se=(le=(ae=($=t[2].conf)==null?void 0:$.mqtt)==null?void 0:ae.ha)==null?void 0:le.discovery)!=null?se:"Discovery topic prefix")+"",v,b,h,M,k,T,I=((x=(Q=(re=(fe=t[2].conf)==null?void 0:fe.mqtt)==null?void 0:re.ha)==null?void 0:Q.hostname)!=null?x:"Hostname for URL")+"",O,C,B,L,z,y,V,R=((w=(N=(pe=(ge=t[2].conf)==null?void 0:ge.mqtt)==null?void 0:pe.ha)==null?void 0:N.tag)!=null?w:"Name tag")+"",F,Y,j,W,K,U;return{c(){e=p("div"),l=p("strong"),i=S(n),s=g(),a=p("a"),r=S("\u24D8"),f=g(),u=p("input"),m=g(),_=p("div"),v=S(d),b=p("br"),h=g(),M=p("input"),k=g(),T=p("div"),O=S(I),C=p("br"),B=g(),L=p("input"),y=g(),V=p("div"),F=S(R),Y=p("br"),j=g(),W=p("input"),c(l,"class","text-sm"),c(a,"href",ql("MQTT-configuration#home-assistant")),c(a,"target","_blank"),c(a,"class","float-right"),c(u,"type","hidden"),c(u,"name","h"),u.value="true",c(M,"name","ht"),c(M,"type","text"),c(M,"class","in-s"),c(M,"placeholder","homeassistant"),c(_,"class","my-1"),c(L,"name","hh"),c(L,"type","text"),c(L,"class","in-s"),c(L,"placeholder",z=t[6].g.h+".local"),c(T,"class","my-1"),c(W,"name","hn"),c(W,"type","text"),c(W,"class","in-s"),c(V,"class","my-1"),c(e,"class","cnt")},m(D,A){E(D,e,A),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,u),o(e,m),o(e,_),o(_,v),o(_,b),o(_,h),o(_,M),Me(M,t[6].h.t),o(e,k),o(e,T),o(T,O),o(T,C),o(T,B),o(T,L),Me(L,t[6].h.h),o(e,y),o(e,V),o(V,F),o(V,Y),o(V,j),o(V,W),Me(W,t[6].h.n),K||(U=[me(M,"input",t[80]),me(L,"input",t[81]),me(W,"input",t[82])],K=!0)},p(D,A){var G,te,ee,oe,ce,Pe,Ce,de,Ne,Te,ve,be,He,ye,Ve,xe;A[0]&4&&n!==(n=((oe=(ee=(te=(G=D[2].conf)==null?void 0:G.mqtt)==null?void 0:te.ha)==null?void 0:ee.title)!=null?oe:"Home-Assistant")+"")&&q(i,n),A[0]&4&&d!==(d=((de=(Ce=(Pe=(ce=D[2].conf)==null?void 0:ce.mqtt)==null?void 0:Pe.ha)==null?void 0:Ce.discovery)!=null?de:"Discovery topic prefix")+"")&&q(v,d),A[0]&64&&M.value!==D[6].h.t&&Me(M,D[6].h.t),A[0]&4&&I!==(I=((be=(ve=(Te=(Ne=D[2].conf)==null?void 0:Ne.mqtt)==null?void 0:Te.ha)==null?void 0:ve.hostname)!=null?be:"Hostname for URL")+"")&&q(O,I),A[0]&64&&z!==(z=D[6].g.h+".local")&&c(L,"placeholder",z),A[0]&64&&L.value!==D[6].h.h&&Me(L,D[6].h.h),A[0]&4&&R!==(R=((xe=(Ve=(ye=(He=D[2].conf)==null?void 0:He.mqtt)==null?void 0:ye.ha)==null?void 0:Ve.tag)!=null?xe:"Name tag")+"")&&q(F,R),A[0]&64&&W.value!==D[6].h.n&&Me(W,D[6].h.n)},d(D){D&&P(e),K=!1,Ht(U)}}}function Ca(t){var W,K,U,H,Z,ne,X,$,ae,le,se;let e,l,n=((U=(K=(W=t[2].conf)==null?void 0:W.cloud)==null?void 0:K.title)!=null?U:"Cloud connections")+"",i,s,a,r,f,u,m,_,d,v,b,h=((ne=(Z=(H=t[2].conf)==null?void 0:H.cloud)==null?void 0:Z.ams)!=null?ne:"AMS reader cloud")+"",M,k,T,I,O,C,B,L=((ae=($=(X=t[2].conf)==null?void 0:X.cloud)==null?void 0:$.es)!=null?ae:"Energy Speedometer")+"",z,y,V,R,F,Y=t[5]&&Sa(t),j=((se=(le=t[6])==null?void 0:le.c)==null?void 0:se.es)&&Ma(t);return{c(){e=p("div"),l=p("strong"),i=S(n),s=g(),a=p("a"),r=S("\u24D8"),f=g(),u=p("input"),m=g(),_=p("div"),d=p("label"),v=p("input"),b=g(),M=S(h),k=g(),Y&&Y.c(),T=g(),I=p("div"),O=p("label"),C=p("input"),B=g(),z=S(L),y=g(),j&&j.c(),c(l,"class","text-sm"),c(a,"href",ql("Cloud")),c(a,"target","_blank"),c(a,"class","float-right"),c(u,"type","hidden"),c(u,"name","c"),u.value="true",c(v,"type","checkbox"),c(v,"name","ce"),v.__value="true",v.value=v.__value,c(v,"class","rounded mb-1"),c(_,"class","my-1"),c(C,"type","checkbox"),c(C,"class","rounded mb-1"),c(C,"name","ces"),C.__value="true",C.value=C.__value,c(I,"class","my-1"),c(e,"class","cnt")},m(fe,re){E(fe,e,re),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,u),o(e,m),o(e,_),o(_,d),o(d,v),v.checked=t[6].c.e,o(d,b),o(d,M),o(_,k),Y&&Y.m(_,null),o(e,T),o(e,I),o(I,O),o(O,C),C.checked=t[6].c.es,o(O,B),o(O,z),o(I,y),j&&j.m(I,null),V=!0,R||(F=[me(v,"change",t[83]),me(C,"change",t[84])],R=!0)},p(fe,re){var Q,x,ge,pe,N,w,D,A,G,te,ee;(!V||re[0]&4)&&n!==(n=((ge=(x=(Q=fe[2].conf)==null?void 0:Q.cloud)==null?void 0:x.title)!=null?ge:"Cloud connections")+"")&&q(i,n),re[0]&64&&(v.checked=fe[6].c.e),(!V||re[0]&4)&&h!==(h=((w=(N=(pe=fe[2].conf)==null?void 0:pe.cloud)==null?void 0:N.ams)!=null?w:"AMS reader cloud")+"")&&q(M,h),fe[5]?Y?Y.p(fe,re):(Y=Sa(fe),Y.c(),Y.m(_,null)):Y&&(Y.d(1),Y=null),re[0]&64&&(C.checked=fe[6].c.es),(!V||re[0]&4)&&L!==(L=((G=(A=(D=fe[2].conf)==null?void 0:D.cloud)==null?void 0:A.es)!=null?G:"Energy Speedometer")+"")&&q(z,L),(ee=(te=fe[6])==null?void 0:te.c)!=null&&ee.es?j?(j.p(fe,re),re[0]&64&&J(j,1)):(j=Ma(fe),j.c(),J(j,1),j.m(I,null)):j&&(bt(),ie(j,1,1,()=>{j=null}),gt())},i(fe){V||(J(j),V=!0)},o(fe){ie(j),V=!1},d(fe){fe&&P(e),Y&&Y.d(),j&&j.d(),R=!1,Ht(F)}}}function Sa(t){let e,l,n;return{c(){e=p("button"),e.textContent="Connect to my cloud account",c(e,"type","button"),c(e,"class","text-blue-500 ml-6")},m(i,s){E(i,e,s),l||(n=me(e,"click",t[20]),l=!0)},p:Ze,d(i){i&&P(e),l=!1,n()}}}function Ma(t){let e,l,n=t[0].mac+"",i,s,a,r,f=(t[0].meter.id?t[0].meter.id:"missing, required")+"",u,m,_,d,v=t[0].mac&&t[0].meter.id&&Na(t);return{c(){e=p("div"),l=S("MAC: "),i=S(n),s=g(),a=p("div"),r=S("Meter ID: "),u=S(f),m=g(),v&&v.c(),_=$t(),c(e,"class","pl-5"),c(a,"class","pl-5")},m(b,h){E(b,e,h),o(e,l),o(e,i),E(b,s,h),E(b,a,h),o(a,r),o(a,u),E(b,m,h),v&&v.m(b,h),E(b,_,h),d=!0},p(b,h){(!d||h[0]&1)&&n!==(n=b[0].mac+"")&&q(i,n),(!d||h[0]&1)&&f!==(f=(b[0].meter.id?b[0].meter.id:"missing, required")+"")&&q(u,f),b[0].mac&&b[0].meter.id?v?(v.p(b,h),h[0]&1&&J(v,1)):(v=Na(b),v.c(),J(v,1),v.m(_.parentNode,_)):v&&(bt(),ie(v,1,1,()=>{v=null}),gt())},i(b){d||(J(v),d=!0)},o(b){ie(v),d=!1},d(b){b&&P(e),b&&P(s),b&&P(a),b&&P(m),v&&v.d(b),b&&P(_)}}}function Na(t){let e,l,n;return l=new ec({props:{value:'{"mac":"'+t[0].mac+'","meter":"'+t[0].meter.id+'"}'}}),{c(){e=p("div"),Oe(l.$$.fragment),c(e,"class","pl-2")},m(i,s){E(i,e,s),Le(l,e,null),n=!0},p(i,s){const a={};s[0]&1&&(a.value='{"mac":"'+i[0].mac+'","meter":"'+i[0].meter.id+'"}'),l.$set(a)},i(i){n||(J(l.$$.fragment,i),n=!0)},o(i){ie(l.$$.fragment,i),n=!1},d(i){i&&P(e),Ie(l)}}}function Ta(t){var R,F,Y,j,W,K,U,H;let e,l,n=((Y=(F=(R=t[2].conf)==null?void 0:R.thresholds)==null?void 0:F.title)!=null?Y:"Thresholds")+"",i,s,a,r,f,u,m,_,d,v,b,h=((K=(W=(j=t[2].conf)==null?void 0:j.thresholds)==null?void 0:W.avg)!=null?K:"Average of")+"",M,k,T,I,O,C=((H=(U=t[2].common)==null?void 0:U.hours)!=null?H:"hours")+"",B,L,z,y={length:9},V=[];for(let Z=0;Zt[88].call(k)),c(v,"class","w-1/2"),c(_,"class","flex flex-wrap"),c(e,"class","cnt")},m(j,W){E(j,e,W),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,u),o(e,m),o(e,_);for(let K=0;K20&&La(t),v=((O=(I=(T=t[6])==null?void 0:T.i)==null?void 0:I.d)==null?void 0:O.d)>0&&Ra(t),b=t[0].chip=="esp8266"&&Fa(t);return{c(){e=p("div"),l=p("strong"),i=S(n),s=g(),a=p("a"),r=S("\u24D8"),f=g(),d&&d.c(),u=g(),v&&v.c(),m=g(),b&&b.c(),c(l,"class","text-sm"),c(a,"href",ql("GPIO-configuration")),c(a,"target","_blank"),c(a,"class","float-right"),c(e,"class","cnt")},m(C,B){E(C,e,B),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),d&&d.m(e,null),o(e,u),v&&v.m(e,null),o(e,m),b&&b.m(e,null),_=!0},p(C,B){var L,z,y,V,R,F;(!_||B[0]&4)&&n!==(n=((y=(z=(L=C[2].conf)==null?void 0:L.hw)==null?void 0:z.title)!=null?y:"Hardware")+"")&&q(i,n),C[0].board>20?d?(d.p(C,B),B[0]&1&&J(d,1)):(d=La(C),d.c(),J(d,1),d.m(e,u)):d&&(bt(),ie(d,1,1,()=>{d=null}),gt()),((F=(R=(V=C[6])==null?void 0:V.i)==null?void 0:R.d)==null?void 0:F.d)>0?v?v.p(C,B):(v=Ra(C),v.c(),v.m(e,m)):v&&(v.d(1),v=null),C[0].chip=="esp8266"?b?b.p(C,B):(b=Fa(C),b.c(),b.m(e,null)):b&&(b.d(1),b=null)},i(C){_||(J(d),_=!0)},o(C){ie(d),_=!1},d(C){C&&P(e),d&&d.d(),v&&v.d(),b&&b.d()}}}function La(t){var ht,Rt,Pt,ct,Ft,zt,Bt,Ut,qt,yt,Gt,Vt,Yt,Ct,Mt,ft,Nt,Et,dt,At,St,mt,qe,Ge,Qt,el,xt,Se,Re,Fe,il,sl,ol,al,fl,ul,rl,cl,ml,_l,pl,dl,Be,et;let e,l,n,i,s=((ct=(Pt=(Rt=(ht=t[2].conf)==null?void 0:ht.hw)==null?void 0:Rt.han)==null?void 0:Pt.rx)!=null?ct:"HAN RX")+"",a,r,f,u,m,_,d,v=((Ut=(Bt=(zt=(Ft=t[2].conf)==null?void 0:Ft.hw)==null?void 0:zt.han)==null?void 0:Bt.tx)!=null?Ut:"HAN TX")+"",b,h,M,k,T,I,O,C,B,L,z=((Vt=(Gt=(yt=(qt=t[2].conf)==null?void 0:qt.hw)==null?void 0:yt.han)==null?void 0:Gt.pullup)!=null?Vt:"pullup")+"",y,V,R,F,Y=((Mt=(Ct=(Yt=t[2].conf)==null?void 0:Yt.hw)==null?void 0:Ct.ap_btn)!=null?Mt:"AP button")+"",j,W,K,U,H,Z,ne=((dt=(Et=(Nt=(ft=t[2].conf)==null?void 0:ft.hw)==null?void 0:Nt.led)==null?void 0:Et.title)!=null?dt:"LED")+"",X,$,ae,le,se,fe,re,Q,x,ge,pe=((qe=(mt=(St=(At=t[2].conf)==null?void 0:At.hw)==null?void 0:St.led)==null?void 0:mt.inverted)!=null?qe:"inverted")+"",N,w,D,A=((xt=(el=(Qt=(Ge=t[2].conf)==null?void 0:Ge.hw)==null?void 0:Qt.led)==null?void 0:el.rgb)!=null?xt:"RGB")+"",G,te,ee,oe,ce=((il=(Fe=(Re=(Se=t[2].conf)==null?void 0:Se.hw)==null?void 0:Re.led)==null?void 0:Fe.inverted)!=null?il:"inverted")+"",Pe,Ce,de,Ne,Te,ve,be,He,ye,Ve,xe,Je,it=((fl=(al=(ol=(sl=t[2].conf)==null?void 0:sl.hw)==null?void 0:ol.led)==null?void 0:al.disable)!=null?fl:"LED dis. GPIO")+"",We,_t,Ee,_e,Ue,kt=((cl=(rl=(ul=t[2].conf)==null?void 0:ul.hw)==null?void 0:rl.temp)!=null?cl:"Temperature")+"",wt,nt,vt,ze,Ke,Ye,Xe=((pl=(_l=(ml=t[2].conf)==null?void 0:ml.hw)==null?void 0:_l.temp_analog)!=null?pl:"Analog temp")+"",Qe,ut,we,Ae,ke,ue,De,rt,st;m=new Hi({props:{chip:t[0].chip}}),T=new Hi({props:{chip:t[0].chip}});let at=t[0].chip!="esp8266"&&Ia(t),pt=((et=(Be=(dl=t[6])==null?void 0:dl.i)==null?void 0:Be.v)==null?void 0:et.p)>0&&Oa(t);return{c(){e=p("input"),l=g(),n=p("div"),i=p("div"),a=S(s),r=p("br"),f=g(),u=p("select"),Oe(m.$$.fragment),_=g(),d=p("div"),b=S(v),h=p("br"),M=g(),k=p("select"),Oe(T.$$.fragment),I=g(),O=p("div"),C=p("label"),B=p("input"),L=g(),y=S(z),V=g(),R=p("div"),F=p("div"),j=S(Y),W=p("br"),K=g(),U=p("input"),H=g(),Z=p("div"),X=S(ne),$=p("br"),ae=g(),le=p("div"),se=p("input"),fe=g(),re=p("div"),Q=p("label"),x=p("input"),ge=g(),N=S(pe),w=g(),D=p("div"),G=S(A),te=p("label"),ee=p("input"),oe=g(),Pe=S(ce),Ce=p("br"),de=g(),Ne=p("div"),Te=p("input"),ve=g(),be=p("input"),He=g(),ye=p("input"),Ve=g(),xe=p("div"),Je=p("div"),We=S(it),_t=g(),Ee=p("input"),_e=g(),Ue=p("div"),wt=S(kt),nt=p("br"),vt=g(),ze=p("input"),Ke=g(),Ye=p("div"),Qe=S(Xe),ut=p("br"),we=g(),Ae=p("input"),ke=g(),at&&at.c(),ue=g(),pt&&pt.c(),c(e,"type","hidden"),c(e,"name","i"),e.value="true",c(u,"name","ihp"),c(u,"class","in-f w-full"),t[6].i.h.p===void 0&&Wt(()=>t[89].call(u)),c(i,"class","w-1/3"),c(k,"name","iht"),c(k,"class","in-l w-full"),t[6].i.h.t===void 0&&Wt(()=>t[90].call(k)),c(d,"class","w-1/3"),c(B,"name","ihu"),B.__value="true",B.value=B.__value,c(B,"type","checkbox"),c(B,"class","rounded mb-1"),c(C,"class","ml-2"),c(O,"class","w-1/3"),c(n,"class","flex flex-wrap"),c(U,"name","ia"),c(U,"type","number"),c(U,"min","0"),c(U,"max",t[10]),c(U,"class","in-f tr w-full"),c(F,"class","w-1/3"),c(se,"name","ilp"),c(se,"type","number"),c(se,"min","0"),c(se,"max",t[10]),c(se,"class","in-l tr w-full"),c(le,"class","flex"),c(Z,"class","w-1/3"),c(x,"name","ili"),x.__value="true",x.value=x.__value,c(x,"type","checkbox"),c(x,"class","rounded mb-1"),c(Q,"class","ml-4"),c(re,"class","w-1/3"),c(ee,"name","iri"),ee.__value="true",ee.value=ee.__value,c(ee,"type","checkbox"),c(ee,"class","rounded mb-1"),c(te,"class","ml-4"),c(Te,"name","irr"),c(Te,"type","number"),c(Te,"min","0"),c(Te,"max",t[10]),c(Te,"class","in-f tr w-1/3"),c(be,"name","irg"),c(be,"type","number"),c(be,"min","0"),c(be,"max",t[10]),c(be,"class","in-m tr w-1/3"),c(ye,"name","irb"),c(ye,"type","number"),c(ye,"min","0"),c(ye,"max",t[10]),c(ye,"class","in-l tr w-1/3"),c(Ne,"class","flex"),c(D,"class","w-full"),c(Ee,"name","idd"),c(Ee,"type","number"),c(Ee,"min","0"),c(Ee,"max",t[10]),c(Ee,"class","in-s tr"),c(Je,"class","my-1 pr-1 w-1/3"),c(xe,"class","w-full"),c(ze,"name","itd"),c(ze,"type","number"),c(ze,"min","0"),c(ze,"max",t[10]),c(ze,"class","in-f tr w-full"),c(Ue,"class","my-1 w-1/3"),c(Ae,"name","ita"),c(Ae,"type","number"),c(Ae,"min","0"),c(Ae,"max",t[10]),c(Ae,"class","in-l tr w-full"),c(Ye,"class","my-1 pr-1 w-1/3"),c(R,"class","flex flex-wrap")},m(je,he){E(je,e,he),E(je,l,he),E(je,n,he),o(n,i),o(i,a),o(i,r),o(i,f),o(i,u),Le(m,u,null),ot(u,t[6].i.h.p,!0),o(n,_),o(n,d),o(d,b),o(d,h),o(d,M),o(d,k),Le(T,k,null),ot(k,t[6].i.h.t,!0),o(n,I),o(n,O),o(O,C),o(C,B),B.checked=t[6].i.h.u,o(C,L),o(C,y),E(je,V,he),E(je,R,he),o(R,F),o(F,j),o(F,W),o(F,K),o(F,U),Me(U,t[6].i.a),o(R,H),o(R,Z),o(Z,X),o(Z,$),o(Z,ae),o(Z,le),o(le,se),Me(se,t[6].i.l.p),o(R,fe),o(R,re),o(re,Q),o(Q,x),x.checked=t[6].i.l.i,o(Q,ge),o(Q,N),o(R,w),o(R,D),o(D,G),o(D,te),o(te,ee),ee.checked=t[6].i.r.i,o(te,oe),o(te,Pe),o(D,Ce),o(D,de),o(D,Ne),o(Ne,Te),Me(Te,t[6].i.r.r),o(Ne,ve),o(Ne,be),Me(be,t[6].i.r.g),o(Ne,He),o(Ne,ye),Me(ye,t[6].i.r.b),o(R,Ve),o(R,xe),o(xe,Je),o(Je,We),o(Je,_t),o(Je,Ee),Me(Ee,t[6].i.d.d),o(R,_e),o(R,Ue),o(Ue,wt),o(Ue,nt),o(Ue,vt),o(Ue,ze),Me(ze,t[6].i.t.d),o(R,Ke),o(R,Ye),o(Ye,Qe),o(Ye,ut),o(Ye,we),o(Ye,Ae),Me(Ae,t[6].i.t.a),o(R,ke),at&&at.m(R,null),o(R,ue),pt&&pt.m(R,null),De=!0,rt||(st=[me(u,"change",t[89]),me(k,"change",t[90]),me(B,"change",t[91]),me(U,"input",t[92]),me(se,"input",t[93]),me(x,"change",t[94]),me(ee,"change",t[95]),me(Te,"input",t[96]),me(be,"input",t[97]),me(ye,"input",t[98]),me(Ee,"input",t[99]),me(ze,"input",t[100]),me(Ae,"input",t[101])],rt=!0)},p(je,he){var Cl,Sl,Ml,Nl,Tl,Pl,El,Dl,Rl,Fl,Bl,Ul,tt,Ot,vl,bl,pn,dn,vn,hn,bn,gn,kn,wn,Cn,Sn,Mn,Nn,Tn,Pn,En,Dn,qn,An,Ln,In,On,Rn,Fn,Bn,Un,jn,yn,Hn;(!De||he[0]&4)&&s!==(s=((Nl=(Ml=(Sl=(Cl=je[2].conf)==null?void 0:Cl.hw)==null?void 0:Sl.han)==null?void 0:Ml.rx)!=null?Nl:"HAN RX")+"")&&q(a,s);const Kt={};he[0]&1&&(Kt.chip=je[0].chip),m.$set(Kt),he[0]&64&&ot(u,je[6].i.h.p),(!De||he[0]&4)&&v!==(v=((Dl=(El=(Pl=(Tl=je[2].conf)==null?void 0:Tl.hw)==null?void 0:Pl.han)==null?void 0:El.tx)!=null?Dl:"HAN TX")+"")&&q(b,v);const wl={};he[0]&1&&(wl.chip=je[0].chip),T.$set(wl),he[0]&64&&ot(k,je[6].i.h.t),he[0]&64&&(B.checked=je[6].i.h.u),(!De||he[0]&4)&&z!==(z=((Ul=(Bl=(Fl=(Rl=je[2].conf)==null?void 0:Rl.hw)==null?void 0:Fl.han)==null?void 0:Bl.pullup)!=null?Ul:"pullup")+"")&&q(y,z),(!De||he[0]&4)&&Y!==(Y=((vl=(Ot=(tt=je[2].conf)==null?void 0:tt.hw)==null?void 0:Ot.ap_btn)!=null?vl:"AP button")+"")&&q(j,Y),(!De||he[0]&1024)&&c(U,"max",je[10]),he[0]&64&&$e(U.value)!==je[6].i.a&&Me(U,je[6].i.a),(!De||he[0]&4)&&ne!==(ne=((vn=(dn=(pn=(bl=je[2].conf)==null?void 0:bl.hw)==null?void 0:pn.led)==null?void 0:dn.title)!=null?vn:"LED")+"")&&q(X,ne),(!De||he[0]&1024)&&c(se,"max",je[10]),he[0]&64&&$e(se.value)!==je[6].i.l.p&&Me(se,je[6].i.l.p),he[0]&64&&(x.checked=je[6].i.l.i),(!De||he[0]&4)&&pe!==(pe=((kn=(gn=(bn=(hn=je[2].conf)==null?void 0:hn.hw)==null?void 0:bn.led)==null?void 0:gn.inverted)!=null?kn:"inverted")+"")&&q(N,pe),(!De||he[0]&4)&&A!==(A=((Mn=(Sn=(Cn=(wn=je[2].conf)==null?void 0:wn.hw)==null?void 0:Cn.led)==null?void 0:Sn.rgb)!=null?Mn:"RGB")+"")&&q(G,A),he[0]&64&&(ee.checked=je[6].i.r.i),(!De||he[0]&4)&&ce!==(ce=((En=(Pn=(Tn=(Nn=je[2].conf)==null?void 0:Nn.hw)==null?void 0:Tn.led)==null?void 0:Pn.inverted)!=null?En:"inverted")+"")&&q(Pe,ce),(!De||he[0]&1024)&&c(Te,"max",je[10]),he[0]&64&&$e(Te.value)!==je[6].i.r.r&&Me(Te,je[6].i.r.r),(!De||he[0]&1024)&&c(be,"max",je[10]),he[0]&64&&$e(be.value)!==je[6].i.r.g&&Me(be,je[6].i.r.g),(!De||he[0]&1024)&&c(ye,"max",je[10]),he[0]&64&&$e(ye.value)!==je[6].i.r.b&&Me(ye,je[6].i.r.b),(!De||he[0]&4)&&it!==(it=((Ln=(An=(qn=(Dn=je[2].conf)==null?void 0:Dn.hw)==null?void 0:qn.led)==null?void 0:An.disable)!=null?Ln:"LED dis. GPIO")+"")&&q(We,it),(!De||he[0]&1024)&&c(Ee,"max",je[10]),he[0]&64&&$e(Ee.value)!==je[6].i.d.d&&Me(Ee,je[6].i.d.d),(!De||he[0]&4)&&kt!==(kt=((Rn=(On=(In=je[2].conf)==null?void 0:In.hw)==null?void 0:On.temp)!=null?Rn:"Temperature")+"")&&q(wt,kt),(!De||he[0]&1024)&&c(ze,"max",je[10]),he[0]&64&&$e(ze.value)!==je[6].i.t.d&&Me(ze,je[6].i.t.d),(!De||he[0]&4)&&Xe!==(Xe=((Un=(Bn=(Fn=je[2].conf)==null?void 0:Fn.hw)==null?void 0:Bn.temp_analog)!=null?Un:"Analog temp")+"")&&q(Qe,Xe),(!De||he[0]&1024)&&c(Ae,"max",je[10]),he[0]&64&&$e(Ae.value)!==je[6].i.t.a&&Me(Ae,je[6].i.t.a),je[0].chip!="esp8266"?at?at.p(je,he):(at=Ia(je),at.c(),at.m(R,ue)):at&&(at.d(1),at=null),((Hn=(yn=(jn=je[6])==null?void 0:jn.i)==null?void 0:yn.v)==null?void 0:Hn.p)>0?pt?pt.p(je,he):(pt=Oa(je),pt.c(),pt.m(R,null)):pt&&(pt.d(1),pt=null)},i(je){De||(J(m.$$.fragment,je),J(T.$$.fragment,je),De=!0)},o(je){ie(m.$$.fragment,je),ie(T.$$.fragment,je),De=!1},d(je){je&&P(e),je&&P(l),je&&P(n),Ie(m),Ie(T),je&&P(V),je&&P(R),at&&at.d(),pt&&pt.d(),rt=!1,Ht(st)}}}function Ia(t){var u,m,_,d;let e,l=((d=(_=(m=(u=t[2].conf)==null?void 0:u.hw)==null?void 0:m.vcc)==null?void 0:_.title)!=null?d:"Vcc")+"",n,i,s,a,r,f;return{c(){e=p("div"),n=S(l),i=p("br"),s=g(),a=p("input"),c(a,"name","ivp"),c(a,"type","number"),c(a,"min","0"),c(a,"max",t[10]),c(a,"class","in-s tr w-full"),c(e,"class","my-1 pl-1 w-1/3")},m(v,b){E(v,e,b),o(e,n),o(e,i),o(e,s),o(e,a),Me(a,t[6].i.v.p),r||(f=me(a,"input",t[102]),r=!0)},p(v,b){var h,M,k,T;b[0]&4&&l!==(l=((T=(k=(M=(h=v[2].conf)==null?void 0:h.hw)==null?void 0:M.vcc)==null?void 0:k.title)!=null?T:"Vcc")+"")&&q(n,l),b[0]&1024&&c(a,"max",v[10]),b[0]&64&&$e(a.value)!==v[6].i.v.p&&Me(a,v[6].i.v.p)},d(v){v&&P(e),r=!1,f()}}}function Oa(t){var b,h,M,k;let e,l=((k=(M=(h=(b=t[2].conf)==null?void 0:b.hw)==null?void 0:h.vcc)==null?void 0:M.divider)!=null?k:"Voltage divider")+"",n,i,s,a,r,f,u,m,_,d,v;return{c(){var T,I,O,C,B,L,z,y;e=p("div"),n=S(l),i=p("br"),s=g(),a=p("div"),r=p("input"),u=g(),m=p("input"),c(r,"name","ivdv"),c(r,"type","number"),c(r,"min","0"),c(r,"max","65535"),c(r,"class","in-f tr w-full"),c(r,"placeholder",f=(C=(O=(I=(T=t[2].conf)==null?void 0:T.hw)==null?void 0:I.vcc)==null?void 0:O.div_vcc)!=null?C:"VCC"),c(m,"name","ivdg"),c(m,"type","number"),c(m,"min","0"),c(m,"max","65535"),c(m,"class","in-l tr w-full"),c(m,"placeholder",_=(y=(z=(L=(B=t[2].conf)==null?void 0:B.hw)==null?void 0:L.vcc)==null?void 0:z.div_gnd)!=null?y:"GND"),c(a,"class","flex"),c(e,"class","my-1")},m(T,I){E(T,e,I),o(e,n),o(e,i),o(e,s),o(e,a),o(a,r),Me(r,t[6].i.v.d.v),o(a,u),o(a,m),Me(m,t[6].i.v.d.g),d||(v=[me(r,"input",t[103]),me(m,"input",t[104])],d=!0)},p(T,I){var O,C,B,L,z,y,V,R,F,Y,j,W;I[0]&4&&l!==(l=((L=(B=(C=(O=T[2].conf)==null?void 0:O.hw)==null?void 0:C.vcc)==null?void 0:B.divider)!=null?L:"Voltage divider")+"")&&q(n,l),I[0]&4&&f!==(f=(R=(V=(y=(z=T[2].conf)==null?void 0:z.hw)==null?void 0:y.vcc)==null?void 0:V.div_vcc)!=null?R:"VCC")&&c(r,"placeholder",f),I[0]&64&&$e(r.value)!==T[6].i.v.d.v&&Me(r,T[6].i.v.d.v),I[0]&4&&_!==(_=(W=(j=(Y=(F=T[2].conf)==null?void 0:F.hw)==null?void 0:Y.vcc)==null?void 0:j.div_gnd)!=null?W:"GND")&&c(m,"placeholder",_),I[0]&64&&$e(m.value)!==T[6].i.v.d.g&&Me(m,T[6].i.v.d.g)},d(T){T&&P(e),d=!1,Ht(v)}}}function Ra(t){var b,h,M,k,T,I,O,C,B,L,z,y,V,R,F;let e,l=((T=(k=(M=(h=(b=t[2].conf)==null?void 0:b.hw)==null?void 0:h.led)==null?void 0:M.behaviour)==null?void 0:k.title)!=null?T:"LED behaviour")+"",n,i,s,a,r=((L=(B=(C=(O=(I=t[2].conf)==null?void 0:I.hw)==null?void 0:O.led)==null?void 0:C.behaviour)==null?void 0:B.enabled)!=null?L:"Enabled")+"",f,u,m=((F=(R=(V=(y=(z=t[2].conf)==null?void 0:z.hw)==null?void 0:y.led)==null?void 0:V.behaviour)==null?void 0:R.disabled)!=null?F:"Disabled")+"",_,d,v;return{c(){e=p("div"),n=S(l),i=g(),s=p("select"),a=p("option"),f=S(r),u=p("option"),_=S(m),a.__value=0,a.value=a.__value,u.__value=1,u.value=u.__value,c(s,"name","idb"),c(s,"class","in-s"),t[6].i.d.b===void 0&&Wt(()=>t[105].call(s)),c(e,"class","my-1 w-full")},m(Y,j){E(Y,e,j),o(e,n),o(e,i),o(e,s),o(s,a),o(a,f),o(s,u),o(u,_),ot(s,t[6].i.d.b,!0),d||(v=me(s,"change",t[105]),d=!0)},p(Y,j){var W,K,U,H,Z,ne,X,$,ae,le,se,fe,re,Q,x;j[0]&4&&l!==(l=((Z=(H=(U=(K=(W=Y[2].conf)==null?void 0:W.hw)==null?void 0:K.led)==null?void 0:U.behaviour)==null?void 0:H.title)!=null?Z:"LED behaviour")+"")&&q(n,l),j[0]&4&&r!==(r=((le=(ae=($=(X=(ne=Y[2].conf)==null?void 0:ne.hw)==null?void 0:X.led)==null?void 0:$.behaviour)==null?void 0:ae.enabled)!=null?le:"Enabled")+"")&&q(f,r),j[0]&4&&m!==(m=((x=(Q=(re=(fe=(se=Y[2].conf)==null?void 0:se.hw)==null?void 0:fe.led)==null?void 0:re.behaviour)==null?void 0:Q.disabled)!=null?x:"Disabled")+"")&&q(_,m),j[0]&64&&ot(s,Y[6].i.d.b)},d(Y){Y&&P(e),d=!1,v()}}}function Fa(t){var C,B,L,z,y,V,R,F;let e,l,n,i,s=((z=(L=(B=(C=t[2].conf)==null?void 0:C.hw)==null?void 0:B.vcc)==null?void 0:L.offset)!=null?z:"Vcc offset")+"",a,r,f,u,m,_,d=((F=(R=(V=(y=t[2].conf)==null?void 0:y.hw)==null?void 0:V.vcc)==null?void 0:R.multiplier)!=null?F:"Multiplier")+"",v,b,h,M,k,T,I,O=(t[0].board==2||t[0].board==100)&&Ba(t);return{c(){e=p("input"),l=g(),n=p("div"),i=p("div"),a=S(s),r=p("br"),f=g(),u=p("input"),m=g(),_=p("div"),v=S(d),b=p("br"),h=g(),M=p("input"),k=g(),O&&O.c(),c(e,"type","hidden"),c(e,"name","iv"),e.value="true",c(u,"name","ivo"),c(u,"type","number"),c(u,"min","0.0"),c(u,"max","3.5"),c(u,"step","0.01"),c(u,"class","in-f tr w-full"),c(i,"class","w-1/3"),c(M,"name","ivm"),c(M,"type","number"),c(M,"min","0.1"),c(M,"max","10"),c(M,"step","0.01"),c(M,"class","in-l tr w-full"),c(_,"class","w-1/3 pr-1"),c(n,"class","my-1 flex flex-wrap")},m(Y,j){E(Y,e,j),E(Y,l,j),E(Y,n,j),o(n,i),o(i,a),o(i,r),o(i,f),o(i,u),Me(u,t[6].i.v.o),o(n,m),o(n,_),o(_,v),o(_,b),o(_,h),o(_,M),Me(M,t[6].i.v.m),o(n,k),O&&O.m(n,null),T||(I=[me(u,"input",t[106]),me(M,"input",t[107])],T=!0)},p(Y,j){var W,K,U,H,Z,ne,X,$;j[0]&4&&s!==(s=((H=(U=(K=(W=Y[2].conf)==null?void 0:W.hw)==null?void 0:K.vcc)==null?void 0:U.offset)!=null?H:"Vcc offset")+"")&&q(a,s),j[0]&64&&$e(u.value)!==Y[6].i.v.o&&Me(u,Y[6].i.v.o),j[0]&4&&d!==(d=(($=(X=(ne=(Z=Y[2].conf)==null?void 0:Z.hw)==null?void 0:ne.vcc)==null?void 0:X.multiplier)!=null?$:"Multiplier")+"")&&q(v,d),j[0]&64&&$e(M.value)!==Y[6].i.v.m&&Me(M,Y[6].i.v.m),Y[0].board==2||Y[0].board==100?O?O.p(Y,j):(O=Ba(Y),O.c(),O.m(n,null)):O&&(O.d(1),O=null)},d(Y){Y&&P(e),Y&&P(l),Y&&P(n),O&&O.d(),T=!1,Ht(I)}}}function Ba(t){var u,m,_,d;let e,l=((d=(_=(m=(u=t[2].conf)==null?void 0:u.hw)==null?void 0:m.vcc)==null?void 0:_.boot)!=null?d:"Boot limit")+"",n,i,s,a,r,f;return{c(){e=p("div"),n=S(l),i=p("br"),s=g(),a=p("input"),c(a,"name","ivb"),c(a,"type","number"),c(a,"min","2.5"),c(a,"max","3.5"),c(a,"step","0.1"),c(a,"class","in-s tr w-full"),c(e,"class","w-1/3 pl-1")},m(v,b){E(v,e,b),o(e,n),o(e,i),o(e,s),o(e,a),Me(a,t[6].i.v.b),r||(f=me(a,"input",t[108]),r=!0)},p(v,b){var h,M,k,T;b[0]&4&&l!==(l=((T=(k=(M=(h=v[2].conf)==null?void 0:h.hw)==null?void 0:M.vcc)==null?void 0:k.boot)!=null?T:"Boot limit")+"")&&q(n,l),b[0]&64&&$e(a.value)!==v[6].i.v.b&&Me(a,v[6].i.v.b)},d(v){v&&P(e),r=!1,f()}}}function Ua(t){var O,C,B,L,z,y,V,R;let e,l,n=((B=(C=(O=t[2].conf)==null?void 0:O.debug)==null?void 0:C.title)!=null?B:"Debugging")+"",i,s,a,r,f,u,m,_,d,v,b=((y=(z=(L=t[2].conf)==null?void 0:L.debug)==null?void 0:z.enable)!=null?y:"Enable debugging")+"",h,M,k,T,I=((R=(V=t[6])==null?void 0:V.d)==null?void 0:R.s)&&ja(t);return{c(){e=p("div"),l=p("strong"),i=S(n),s=g(),a=p("a"),a.textContent="\u24D8",r=g(),f=p("input"),u=g(),m=p("div"),_=p("label"),d=p("input"),v=g(),h=S(b),M=g(),I&&I.c(),c(l,"class","text-sm"),c(a,"href","https://amsleser.no/blog/post/24-telnet-debug"),c(a,"target","_blank"),c(a,"class","float-right"),c(f,"type","hidden"),c(f,"name","d"),f.value="true",c(d,"type","checkbox"),c(d,"name","ds"),d.__value="true",d.value=d.__value,c(d,"class","rounded mb-1"),c(m,"class","mt-3"),c(e,"class","cnt")},m(F,Y){E(F,e,Y),o(e,l),o(l,i),o(e,s),o(e,a),o(e,r),o(e,f),o(e,u),o(e,m),o(m,_),o(_,d),d.checked=t[6].d.s,o(_,v),o(_,h),o(e,M),I&&I.m(e,null),k||(T=me(d,"change",t[109]),k=!0)},p(F,Y){var j,W,K,U,H,Z,ne,X;Y[0]&4&&n!==(n=((K=(W=(j=F[2].conf)==null?void 0:j.debug)==null?void 0:W.title)!=null?K:"Debugging")+"")&&q(i,n),Y[0]&64&&(d.checked=F[6].d.s),Y[0]&4&&b!==(b=((Z=(H=(U=F[2].conf)==null?void 0:U.debug)==null?void 0:H.enable)!=null?Z:"Enable debugging")+"")&&q(h,b),(X=(ne=F[6])==null?void 0:ne.d)!=null&&X.s?I?I.p(F,Y):(I=ja(F),I.c(),I.m(e,null)):I&&(I.d(1),I=null)},d(F){F&&P(e),I&&I.d(),k=!1,T()}}}function ja(t){var B,L,z,y,V,R;let e,l=((z=(L=(B=t[2].conf)==null?void 0:B.debug)==null?void 0:L.danger)!=null?z:"Disable when done")+"",n,i,s,a,r,f,u=((R=(V=(y=t[2].conf)==null?void 0:y.debug)==null?void 0:V.telnet)!=null?R:"Enable telnet")+"",m,_,d,v,b,h,M,k,T,I,O,C=t[6].d.t&&ya(t);return{c(){e=p("div"),n=S(l),i=g(),s=p("div"),a=p("label"),r=p("input"),f=g(),m=S(u),_=g(),C&&C.c(),d=g(),v=p("div"),b=p("select"),h=p("option"),h.textContent="Verbose",M=p("option"),M.textContent="Debug",k=p("option"),k.textContent="Info",T=p("option"),T.textContent="Warning",c(e,"class","bd-red"),c(r,"type","checkbox"),c(r,"name","dt"),r.__value="true",r.value=r.__value,c(r,"class","rounded mb-1"),c(s,"class","my-1"),h.__value=1,h.value=h.__value,M.__value=2,M.value=M.__value,k.__value=3,k.value=k.__value,T.__value=4,T.value=T.__value,c(b,"name","dl"),c(b,"class","in-s"),t[6].d.l===void 0&&Wt(()=>t[111].call(b)),c(v,"class","my-1")},m(F,Y){E(F,e,Y),o(e,n),E(F,i,Y),E(F,s,Y),o(s,a),o(a,r),r.checked=t[6].d.t,o(a,f),o(a,m),E(F,_,Y),C&&C.m(F,Y),E(F,d,Y),E(F,v,Y),o(v,b),o(b,h),o(b,M),o(b,k),o(b,T),ot(b,t[6].d.l,!0),I||(O=[me(r,"change",t[110]),me(b,"change",t[111])],I=!0)},p(F,Y){var j,W,K,U,H,Z;Y[0]&4&&l!==(l=((K=(W=(j=F[2].conf)==null?void 0:j.debug)==null?void 0:W.danger)!=null?K:"Disable when done")+"")&&q(n,l),Y[0]&64&&(r.checked=F[6].d.t),Y[0]&4&&u!==(u=((Z=(H=(U=F[2].conf)==null?void 0:U.debug)==null?void 0:H.telnet)!=null?Z:"Enable telnet")+"")&&q(m,u),F[6].d.t?C?C.p(F,Y):(C=ya(F),C.c(),C.m(d.parentNode,d)):C&&(C.d(1),C=null),Y[0]&64&&ot(b,F[6].d.l)},d(F){F&&P(e),F&&P(i),F&&P(s),F&&P(_),C&&C.d(F),F&&P(d),F&&P(v),I=!1,Ht(O)}}}function ya(t){var i,s,a;let e,l=((a=(s=(i=t[2].conf)==null?void 0:i.debug)==null?void 0:s.telnet_danger)!=null?a:"Disable when done")+"",n;return{c(){e=p("div"),n=S(l),c(e,"class","bd-red")},m(r,f){E(r,e,f),o(e,n)},p(r,f){var u,m,_;f[0]&4&&l!==(l=((_=(m=(u=r[2].conf)==null?void 0:u.debug)==null?void 0:m.telnet_danger)!=null?_:"Disable when done")+"")&&q(n,l)},d(r){r&&P(e)}}}function Ha(t){var d,v,b,h;let e,l,n=((v=(d=t[2].conf)==null?void 0:d.btn_reset)!=null?v:"Factory reset")+"",i,s,a,r,f=((h=(b=t[2].btn)==null?void 0:b.reboot)!=null?h:"Reboot")+"",u,m,_;return{c(){e=p("div"),l=p("button"),i=S(n),s=g(),a=p("div"),r=p("button"),u=S(f),c(l,"type","button"),c(l,"class","btn-red"),c(r,"type","button"),c(r,"class","btn-yellow"),c(a,"class","text-center")},m(M,k){E(M,e,k),o(e,l),o(l,i),E(M,s,k),E(M,a,k),o(a,r),o(r,u),m||(_=[me(l,"click",t[12]),me(r,"click",t[14])],m=!0)},p(M,k){var T,I,O,C;k[0]&4&&n!==(n=((I=(T=M[2].conf)==null?void 0:T.btn_reset)!=null?I:"Factory reset")+"")&&q(i,n),k[0]&4&&f!==(f=((C=(O=M[2].btn)==null?void 0:O.reboot)!=null?C:"Reboot")+"")&&q(u,f)},d(M){M&&P(e),M&&P(s),M&&P(a),m=!1,Ht(_)}}}function za(t){var s,a;let e,l,n=((a=(s=t[2].btn)==null?void 0:s.save)!=null?a:"Save")+"",i;return{c(){e=p("div"),l=p("button"),i=S(n),c(l,"type","submit"),c(l,"class","btn-pri"),c(e,"class","text-right")},m(r,f){E(r,e,f),o(e,l),o(l,i)},p(r,f){var u,m;f[0]&4&&n!==(n=((m=(u=r[2].btn)==null?void 0:u.save)!=null?m:"Save")+"")&&q(i,n)},d(r){r&&P(e)}}}function kc(t){var Q,x,ge,pe,N,w,D,A,G,te,ee,oe,ce,Pe,Ce,de,Ne,Te,ve,be,He,ye,Ve,xe,Je,it,We,_t,Ee,_e,Ue,kt,wt,nt,vt,ze,Ke,Ye,Xe,Qe,ut,we,Ae;let e,l,n,i,s,a,r,f,u,m,_=((ge=(x=(Q=t[6])==null?void 0:Q.p)==null?void 0:x.r)==null?void 0:ge.startsWith("NO"))||((w=(N=(pe=t[6])==null?void 0:pe.p)==null?void 0:N.r)==null?void 0:w.startsWith("10YNO"))||((G=(A=(D=t[6])==null?void 0:D.p)==null?void 0:A.r)==null?void 0:G.startsWith("10Y1001A1001A4")),d,v,b,h=((te=t[6])==null?void 0:te.d)&&((oe=(ee=t[0])==null?void 0:ee.features)==null?void 0:oe.includes("rdebug")),M,k,T,I,O,C,B,L,z,y,V,R,F,Y,j=((ce=t[6])==null?void 0:ce.g)&&na(t),W=((Pe=t[6])==null?void 0:Pe.m)&&aa(t),K=((Ce=t[6])==null?void 0:Ce.w)&&ma(t),U=((de=t[6])==null?void 0:de.n)&&da(t),H=((Ne=t[6])==null?void 0:Ne.q)&&ha(t),Z=((ve=(Te=t[6])==null?void 0:Te.q)==null?void 0:ve.m)==3&&ka(t),ne=((He=(be=t[6])==null?void 0:be.q)==null?void 0:He.m)==4&&wa(t),X=((ye=t[6])==null?void 0:ye.c)&&Ca(t),$=_&&Ta(t),ae=((Ve=t[6])==null?void 0:Ve.u)&&Ea(t),le=((Je=(xe=t[6])==null?void 0:xe.i)==null?void 0:Je.h)&&(((it=t[0])==null?void 0:it.board)>20||((We=t[0])==null?void 0:We.chip)=="esp8266"||((_e=(Ee=(_t=t[6])==null?void 0:_t.i)==null?void 0:Ee.d)==null?void 0:_e.d)>0)&&Aa(t),se=h&&Ua(t),fe=((Ue=t[1])==null?void 0:Ue.a)&&Ha(t),re=t[6]&&za(t);return O=new hl({props:{active:t[3],message:(nt=(wt=(kt=t[2].conf)==null?void 0:kt.mask)==null?void 0:wt.loading)!=null?nt:"Loading"}}),B=new hl({props:{active:t[4],message:(Ke=(ze=(vt=t[2].conf)==null?void 0:vt.mask)==null?void 0:ze.saving)!=null?Ke:"Saving"}}),z=new hl({props:{active:t[8],message:(Qe=(Xe=(Ye=t[2].conf)==null?void 0:Ye.mask)==null?void 0:Xe.reset)!=null?Qe:"Factory reset"}}),V=new hl({props:{active:t[9],message:(Ae=(we=(ut=t[2].conf)==null?void 0:ut.mask)==null?void 0:we.reset_done)!=null?Ae:"Done"}}),{c(){e=p("form"),l=p("div"),j&&j.c(),n=g(),W&&W.c(),i=g(),K&&K.c(),s=g(),U&&U.c(),a=g(),H&&H.c(),r=g(),Z&&Z.c(),f=g(),ne&&ne.c(),u=g(),X&&X.c(),m=g(),$&&$.c(),d=g(),ae&&ae.c(),v=g(),le&&le.c(),b=g(),se&&se.c(),M=g(),k=p("div"),fe&&fe.c(),T=g(),re&&re.c(),I=g(),Oe(O.$$.fragment),C=g(),Oe(B.$$.fragment),L=g(),Oe(z.$$.fragment),y=g(),Oe(V.$$.fragment),c(l,"class","grid xl:grid-cols-4 lg:grid-cols-2 md:grid-cols-2"),c(k,"class","grid grid-cols-3 mt-3"),c(e,"autocomplete","off")},m(ke,ue){E(ke,e,ue),o(e,l),j&&j.m(l,null),o(l,n),W&&W.m(l,null),o(l,i),K&&K.m(l,null),o(l,s),U&&U.m(l,null),o(l,a),H&&H.m(l,null),o(l,r),Z&&Z.m(l,null),o(l,f),ne&&ne.m(l,null),o(l,u),X&&X.m(l,null),o(l,m),$&&$.m(l,null),o(l,d),ae&&ae.m(l,null),o(l,v),le&&le.m(l,null),o(l,b),se&&se.m(l,null),o(e,M),o(e,k),fe&&fe.m(k,null),o(k,T),re&&re.m(k,null),E(ke,I,ue),Le(O,ke,ue),E(ke,C,ue),Le(B,ke,ue),E(ke,L,ue),Le(z,ke,ue),E(ke,y,ue),Le(V,ke,ue),R=!0,F||(Y=me(e,"submit",ln(t[13])),F=!0)},p(ke,ue){var pt,ht,Rt,Pt,ct,Ft,zt,Bt,Ut,qt,yt,Gt,Vt,Yt,Ct,Mt,ft,Nt,Et,dt,At,St,mt,qe,Ge,Qt,el,xt,Se,Re,Fe,il,sl,ol,al,fl,ul,rl,cl,ml,_l,pl,dl;(pt=ke[6])!=null&&pt.g?j?(j.p(ke,ue),ue[0]&64&&J(j,1)):(j=na(ke),j.c(),J(j,1),j.m(l,n)):j&&(bt(),ie(j,1,1,()=>{j=null}),gt()),(ht=ke[6])!=null&&ht.m?W?W.p(ke,ue):(W=aa(ke),W.c(),W.m(l,i)):W&&(W.d(1),W=null),(Rt=ke[6])!=null&&Rt.w?K?K.p(ke,ue):(K=ma(ke),K.c(),K.m(l,s)):K&&(K.d(1),K=null),(Pt=ke[6])!=null&&Pt.n?U?(U.p(ke,ue),ue[0]&64&&J(U,1)):(U=da(ke),U.c(),J(U,1),U.m(l,a)):U&&(bt(),ie(U,1,1,()=>{U=null}),gt()),(ct=ke[6])!=null&&ct.q?H?(H.p(ke,ue),ue[0]&64&&J(H,1)):(H=ha(ke),H.c(),J(H,1),H.m(l,r)):H&&(bt(),ie(H,1,1,()=>{H=null}),gt()),((zt=(Ft=ke[6])==null?void 0:Ft.q)==null?void 0:zt.m)==3?Z?Z.p(ke,ue):(Z=ka(ke),Z.c(),Z.m(l,f)):Z&&(Z.d(1),Z=null),((Ut=(Bt=ke[6])==null?void 0:Bt.q)==null?void 0:Ut.m)==4?ne?ne.p(ke,ue):(ne=wa(ke),ne.c(),ne.m(l,u)):ne&&(ne.d(1),ne=null),(qt=ke[6])!=null&&qt.c?X?(X.p(ke,ue),ue[0]&64&&J(X,1)):(X=Ca(ke),X.c(),J(X,1),X.m(l,m)):X&&(bt(),ie(X,1,1,()=>{X=null}),gt()),ue[0]&64&&(_=((Vt=(Gt=(yt=ke[6])==null?void 0:yt.p)==null?void 0:Gt.r)==null?void 0:Vt.startsWith("NO"))||((Mt=(Ct=(Yt=ke[6])==null?void 0:Yt.p)==null?void 0:Ct.r)==null?void 0:Mt.startsWith("10YNO"))||((Et=(Nt=(ft=ke[6])==null?void 0:ft.p)==null?void 0:Nt.r)==null?void 0:Et.startsWith("10Y1001A1001A4"))),_?$?$.p(ke,ue):($=Ta(ke),$.c(),$.m(l,d)):$&&($.d(1),$=null),(dt=ke[6])!=null&&dt.u?ae?ae.p(ke,ue):(ae=Ea(ke),ae.c(),ae.m(l,v)):ae&&(ae.d(1),ae=null),((St=(At=ke[6])==null?void 0:At.i)==null?void 0:St.h)&&(((mt=ke[0])==null?void 0:mt.board)>20||((qe=ke[0])==null?void 0:qe.chip)=="esp8266"||((el=(Qt=(Ge=ke[6])==null?void 0:Ge.i)==null?void 0:Qt.d)==null?void 0:el.d)>0)?le?(le.p(ke,ue),ue[0]&65&&J(le,1)):(le=Aa(ke),le.c(),J(le,1),le.m(l,b)):le&&(bt(),ie(le,1,1,()=>{le=null}),gt()),ue[0]&65&&(h=((xt=ke[6])==null?void 0:xt.d)&&((Re=(Se=ke[0])==null?void 0:Se.features)==null?void 0:Re.includes("rdebug"))),h?se?se.p(ke,ue):(se=Ua(ke),se.c(),se.m(l,null)):se&&(se.d(1),se=null),(Fe=ke[1])!=null&&Fe.a?fe?fe.p(ke,ue):(fe=Ha(ke),fe.c(),fe.m(k,T)):fe&&(fe.d(1),fe=null),ke[6]?re?re.p(ke,ue):(re=za(ke),re.c(),re.m(k,null)):re&&(re.d(1),re=null);const De={};ue[0]&8&&(De.active=ke[3]),ue[0]&4&&(De.message=(ol=(sl=(il=ke[2].conf)==null?void 0:il.mask)==null?void 0:sl.loading)!=null?ol:"Loading"),O.$set(De);const rt={};ue[0]&16&&(rt.active=ke[4]),ue[0]&4&&(rt.message=(ul=(fl=(al=ke[2].conf)==null?void 0:al.mask)==null?void 0:fl.saving)!=null?ul:"Saving"),B.$set(rt);const st={};ue[0]&256&&(st.active=ke[8]),ue[0]&4&&(st.message=(ml=(cl=(rl=ke[2].conf)==null?void 0:rl.mask)==null?void 0:cl.reset)!=null?ml:"Factory reset"),z.$set(st);const at={};ue[0]&512&&(at.active=ke[9]),ue[0]&4&&(at.message=(dl=(pl=(_l=ke[2].conf)==null?void 0:_l.mask)==null?void 0:pl.reset_done)!=null?dl:"Done"),V.$set(at)},i(ke){R||(J(j),J(U),J(H),J(X),J(le),J(O.$$.fragment,ke),J(B.$$.fragment,ke),J(z.$$.fragment,ke),J(V.$$.fragment,ke),R=!0)},o(ke){ie(j),ie(U),ie(H),ie(X),ie(le),ie(O.$$.fragment,ke),ie(B.$$.fragment,ke),ie(z.$$.fragment,ke),ie(V.$$.fragment,ke),R=!1},d(ke){ke&&P(e),j&&j.d(),W&&W.d(),K&&K.d(),U&&U.d(),H&&H.d(),Z&&Z.d(),ne&&ne.d(),X&&X.d(),$&&$.d(),ae&&ae.d(),le&&le.d(),se&&se.d(),fe&&fe.d(),re&&re.d(),ke&&P(I),Ie(O,ke),ke&&P(C),Ie(B,ke),ke&&P(L),Ie(z,ke),ke&&P(y),Ie(V,ke),F=!1,Y()}}}async function wc(){await(await fetch("reboot",{method:"POST"})).json()}function Cc(t,e,l){let{basepath:n="/"}=e,{sysinfo:i={}}=e,{data:s}=e,a={};Ol.subscribe(qe=>{l(2,a=qe)});let r=[{name:"Import gauge",key:"i"},{name:"Export gauge",key:"e"},{name:"Voltage",key:"v"},{name:"Amperage",key:"a"},{name:"Per phase",key:"h"},{name:"Power factor",key:"f"},{name:"Reactive",key:"r"},{name:"Realtime",key:"c"},{name:"Peaks",key:"t"},{name:"Realtime plot",key:"l"},{name:"Price",key:"p"},{name:"Day plot",key:"d"},{name:"Month plot",key:"m"},{name:"Temperature plot",key:"s"},{name:"Dark mode",key:"k"}],f=!0,u=!1,m=!1,_,d=[];Gn.subscribe(qe=>{var Ge,Qt,el,xt;qe.version&&(l(5,m=(Ge=qe==null?void 0:qe.c)==null?void 0:Ge.e),l(6,_=qe),l(3,f=!1),l(7,d=[{code:"en",name:"English"}]),((Qt=_==null?void 0:_.u)==null?void 0:Qt.lang)&&_.u.lang!="en"&&d.push({code:_.u.lang,name:(xt=(el=a.language)==null?void 0:el.name)!=null?xt:"Unknown"}),d.push({code:"hub",name:"Load from server"}))}),y0();let v=!1,b=!1;async function h(){if(confirm("Factory reset?")){l(8,v=!0);const qe=new URLSearchParams;qe.append("perform","true");let Qt=await(await fetch("reset",{method:"POST",body:qe})).json();l(8,v=!1),l(9,b=Qt.success)}}async function M(qe){l(4,u=!0);const Ge=new FormData(qe.target),Qt=new URLSearchParams;for(let Se of Ge){const[Re,Fe]=Se;Qt.append(Re,Fe)}let xt=await(await fetch("save",{method:"POST",body:Qt})).json();kl.update(Se=>(Se.hostname=Ge.get("gh"),Se.usrcfg=xt.success,Se.booting=xt.reboot,Ge.get("nm")=="static"&&(Se.net.ip=Ge.get("ni"),Se.net.mask=Ge.get("nu"),Se.net.gw=Ge.get("ng"),Se.net.dns1=Ge.get("nd")),Se.ui=_.u,Se)),l(4,u=!1),Ql(n)}const k=function(){confirm("Reboot?")&&(kl.update(qe=>(qe.booting=!0,qe)),wc())};async function T(){confirm("Are you sure you want to delete CA?")&&(await(await fetch("mqtt-ca",{method:"POST"})).text(),Gn.update(Ge=>(Ge.q.s.c=!1,Ge)))}async function I(){confirm("Are you sure you want to delete cert?")&&(await(await fetch("mqtt-cert",{method:"POST"})).text(),Gn.update(Ge=>(Ge.q.s.r=!1,Ge)))}async function O(){confirm("Are you sure you want to delete key?")&&(await(await fetch("mqtt-key",{method:"POST"})).text(),Gn.update(Ge=>(Ge.q.s.k=!1,Ge)))}const C=function(){_.q.s.e?_.q.p==1883&&l(6,_.q.p=8883,_):_.q.p==8883&&l(6,_.q.p=1883,_)};async function B(){if(_.u.lang=="hub"){const qe=await Il("http://hub.amsleser.no/hub/language/list.json");l(7,d=await qe.json()),l(6,_.u.lang=a.language.code,_)}}let L=44;async function z(){const qe=await Il("cloudkey.json");if(qe.status==200){let Ge=await qe.json();window.open("https://www.amsleser.cloud/device/"+Ge.seed)}else alert("Not able to bind to cloud")}const y=window||global;y.bindToCloud=function(){console.log("BIND CALLED")};function V(){_.g.h=this.value,l(6,_)}function R(){_.g.t=Jt(this),l(6,_)}function F(){_.p.r=Jt(this),l(6,_)}function Y(){_.p.c=Jt(this),l(6,_)}function j(){_.p.e=this.checked,l(6,_)}function W(){_.p.t=this.value,l(6,_)}function K(){_.g.s=Jt(this),l(6,_)}function U(){_.g.u=this.value,l(6,_)}function H(){_.g.p=this.value,l(6,_)}function Z(){_.g.c=this.value,l(6,_)}function ne(){_.m.a=Jt(this),l(6,_)}function X(){_.m.b=$e(this.value),l(6,_)}function $(){_.m.i=this.checked,l(6,_)}function ae(){_.m.b=Jt(this),l(6,_)}function le(){_.m.p=Jt(this),l(6,_)}function se(){_.m.s=$e(this.value),l(6,_)}function fe(){_.m.d=Jt(this),l(6,_)}function re(){_.m.f=$e(this.value),l(6,_)}function Q(){_.m.r=$e(this.value),l(6,_)}function x(){_.m.e.e=this.checked,l(6,_)}function ge(){_.m.e.k=this.value,l(6,_)}function pe(){_.m.e.a=this.value,l(6,_)}function N(){_.m.m.e=this.checked,l(6,_)}function w(){_.m.m.w=$e(this.value),l(6,_)}function D(){_.m.m.v=$e(this.value),l(6,_)}function A(){_.m.m.a=$e(this.value),l(6,_)}function G(){_.m.m.c=$e(this.value),l(6,_)}function te(){_.n.c=Jt(this),l(6,_)}function ee(){_.w.s=this.value,l(6,_)}function oe(){_.w.p=this.value,l(6,_)}function ce(){_.w.z=Jt(this),l(6,_)}function Pe(){_.w.w=$e(this.value),l(6,_)}function Ce(){_.w.b=this.checked,l(6,_)}function de(){_.n.m=Jt(this),l(6,_)}function Ne(){_.n.i=this.value,l(6,_)}function Te(){_.n.s=Jt(this),l(6,_)}function ve(){_.n.g=this.value,l(6,_)}function be(){_.n.d1=this.value,l(6,_)}function He(){_.n.d2=this.value,l(6,_)}function ye(){_.n.x=this.checked,l(6,_)}function Ve(){_.n.d=this.checked,l(6,_)}function xe(){_.n.h=this.checked,l(6,_)}function Je(){_.n.n1=this.value,l(6,_)}function it(){_.q.s.e=this.checked,l(6,_)}function We(){_.q.h=this.value,l(6,_)}function _t(){_.q.p=$e(this.value),l(6,_)}function Ee(){_.q.u=this.value,l(6,_)}function _e(){_.q.a=this.value,l(6,_)}function Ue(){_.q.c=this.value,l(6,_)}function kt(){_.q.m=Jt(this),l(6,_)}function wt(){_.q.b=this.value,l(6,_)}function nt(){_.q.t=Jt(this),l(6,_)}function vt(){_.q.d=$e(this.value),l(6,_)}function ze(){_.o.e=this.value,l(6,_)}function Ke(){_.o.c=this.value,l(6,_)}function Ye(){_.o.u1=this.value,l(6,_)}function Xe(){_.o.u2=this.value,l(6,_)}function Qe(){_.o.u3=this.value,l(6,_)}function ut(){_.h.t=this.value,l(6,_)}function we(){_.h.h=this.value,l(6,_)}function Ae(){_.h.n=this.value,l(6,_)}function ke(){_.c.e=this.checked,l(6,_)}function ue(){_.c.es=this.checked,l(6,_)}function De(qe){_.t.t[qe]=$e(this.value),l(6,_)}function rt(){_.t.h=$e(this.value),l(6,_)}function st(qe){_.u[qe.key]=Jt(this),l(6,_)}function at(){_.u.lang=Jt(this),l(6,_)}function pt(){_.i.h.p=Jt(this),l(6,_)}function ht(){_.i.h.t=Jt(this),l(6,_)}function Rt(){_.i.h.u=this.checked,l(6,_)}function Pt(){_.i.a=$e(this.value),l(6,_)}function ct(){_.i.l.p=$e(this.value),l(6,_)}function Ft(){_.i.l.i=this.checked,l(6,_)}function zt(){_.i.r.i=this.checked,l(6,_)}function Bt(){_.i.r.r=$e(this.value),l(6,_)}function Ut(){_.i.r.g=$e(this.value),l(6,_)}function qt(){_.i.r.b=$e(this.value),l(6,_)}function yt(){_.i.d.d=$e(this.value),l(6,_)}function Gt(){_.i.t.d=$e(this.value),l(6,_)}function Vt(){_.i.t.a=$e(this.value),l(6,_)}function Yt(){_.i.v.p=$e(this.value),l(6,_)}function Ct(){_.i.v.d.v=$e(this.value),l(6,_)}function Mt(){_.i.v.d.g=$e(this.value),l(6,_)}function ft(){_.i.d.b=Jt(this),l(6,_)}function Nt(){_.i.v.o=$e(this.value),l(6,_)}function Et(){_.i.v.m=$e(this.value),l(6,_)}function dt(){_.i.v.b=$e(this.value),l(6,_)}function At(){_.d.s=this.checked,l(6,_)}function St(){_.d.t=this.checked,l(6,_)}function mt(){_.d.l=Jt(this),l(6,_)}return t.$$set=qe=>{"basepath"in qe&&l(21,n=qe.basepath),"sysinfo"in qe&&l(0,i=qe.sysinfo),"data"in qe&&l(1,s=qe.data)},t.$$.update=()=>{t.$$.dirty[0]&1&&l(10,L=i.chip=="esp8266"?16:i.chip=="esp32s2"?44:39)},[i,s,a,f,u,m,_,d,v,b,L,r,h,M,k,T,I,O,C,B,z,n,V,R,F,Y,j,W,K,U,H,Z,ne,X,$,ae,le,se,fe,re,Q,x,ge,pe,N,w,D,A,G,te,ee,oe,ce,Pe,Ce,de,Ne,Te,ve,be,He,ye,Ve,xe,Je,it,We,_t,Ee,_e,Ue,kt,wt,nt,vt,ze,Ke,Ye,Xe,Qe,ut,we,Ae,ke,ue,De,rt,st,at,pt,ht,Rt,Pt,ct,Ft,zt,Bt,Ut,qt,yt,Gt,Vt,Yt,Ct,Mt,ft,Nt,Et,dt,At,St,mt]}class Sc extends It{constructor(e){super(),Lt(this,e,Cc,kc,Dt,{basepath:21,sysinfo:0,data:1},null,[-1,-1,-1,-1,-1])}}function Wa(t,e,l){const n=t.slice();return n[22]=e[l],n}function Ga(t){let e,l=t[1].cpu+"",n,i;return{c(){e=S("("),n=S(l),i=S("MHz)")},m(s,a){E(s,e,a),E(s,n,a),E(s,i,a)},p(s,a){a&2&&l!==(l=s[1].cpu+"")&&q(n,l)},d(s){s&&P(e),s&&P(n),s&&P(i)}}}function Mc(t){let e=lt(t[1].chip,t[1].board)+"",l;return{c(){l=S(e)},m(n,i){E(n,l,i)},p(n,i){i&2&&e!==(e=lt(n[1].chip,n[1].board)+"")&&q(l,e)},d(n){n&&P(l)}}}function Va(t){var K,U,H,Z,ne,X,$,ae,le,se,fe,re;let e,l=((H=(U=(K=t[3].status)==null?void 0:K.device)==null?void 0:U.apmac)!=null?H:"AP MAC")+"",n,i,s=t[1].apmac+"",a,r,f,u=((X=(ne=(Z=t[3].status)==null?void 0:Z.device)==null?void 0:ne.last_boot)!=null?X:"Last boot")+"",m,_,d,v,b,h,M=((le=(ae=($=t[3].status)==null?void 0:$.device)==null?void 0:ae.reason)!=null?le:"Reason")+"",k,T,I=((re=(fe=(se=t[3][As(t[1].chip)])==null?void 0:se.reason)==null?void 0:fe[t[1].boot_reason])!=null?re:t[1].boot_reason)+"",O,C,B=t[1].boot_reason+"",L,z,y=t[1].ex_cause+"",V,R,F;const Y=[Tc,Nc],j=[];function W(Q,x){return Q[0].u>0?0:1}return d=W(t),v=j[d]=Y[d](t),{c(){e=p("div"),n=S(l),i=S(": "),a=S(s),r=g(),f=p("div"),m=S(u),_=S(`: - `),v.c(),b=g(),h=p("div"),k=S(M),T=S(": "),O=S(I),C=S(" ("),L=S(B),z=S("/"),V=S(y),R=S(")"),c(e,"class","my-2"),c(f,"class","my-2"),c(h,"class","my-2")},m(Q,x){E(Q,e,x),o(e,n),o(e,i),o(e,a),E(Q,r,x),E(Q,f,x),o(f,m),o(f,_),j[d].m(f,null),E(Q,b,x),E(Q,h,x),o(h,k),o(h,T),o(h,O),o(h,C),o(h,L),o(h,z),o(h,V),o(h,R),F=!0},p(Q,x){var pe,N,w,D,A,G,te,ee,oe,ce,Pe,Ce;(!F||x&8)&&l!==(l=((w=(N=(pe=Q[3].status)==null?void 0:pe.device)==null?void 0:N.apmac)!=null?w:"AP MAC")+"")&&q(n,l),(!F||x&2)&&s!==(s=Q[1].apmac+"")&&q(a,s),(!F||x&8)&&u!==(u=((G=(A=(D=Q[3].status)==null?void 0:D.device)==null?void 0:A.last_boot)!=null?G:"Last boot")+"")&&q(m,u);let ge=d;d=W(Q),d===ge?j[d].p(Q,x):(bt(),ie(j[ge],1,1,()=>{j[ge]=null}),gt(),v=j[d],v?v.p(Q,x):(v=j[d]=Y[d](Q),v.c()),J(v,1),v.m(f,null)),(!F||x&8)&&M!==(M=((oe=(ee=(te=Q[3].status)==null?void 0:te.device)==null?void 0:ee.reason)!=null?oe:"Reason")+"")&&q(k,M),(!F||x&10)&&I!==(I=((Ce=(Pe=(ce=Q[3][As(Q[1].chip)])==null?void 0:ce.reason)==null?void 0:Pe[Q[1].boot_reason])!=null?Ce:Q[1].boot_reason)+"")&&q(O,I),(!F||x&2)&&B!==(B=Q[1].boot_reason+"")&&q(L,B),(!F||x&2)&&y!==(y=Q[1].ex_cause+"")&&q(V,y)},i(Q){F||(J(v),F=!0)},o(Q){ie(v),F=!1},d(Q){Q&&P(e),Q&&P(r),Q&&P(f),j[d].d(),Q&&P(b),Q&&P(h)}}}function Nc(t){let e;return{c(){e=S("-")},m(l,n){E(l,e,n)},p:Ze,i:Ze,o:Ze,d(l){l&&P(e)}}}function Tc(t){let e,l;return e=new Lu({props:{timestamp:new Date(new Date().getTime()-t[0].u*1e3),fullTimeColor:""}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,i){const s={};i&1&&(s.timestamp=new Date(new Date().getTime()-n[0].u*1e3)),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function Ka(t){var m,_;let e,l,n,i,s=((_=(m=t[3].btn)==null?void 0:m.reboot)!=null?_:"Reboot")+"",a,r,f,u;return l=new Al({props:{to:"/consent",$$slots:{default:[Pc]},$$scope:{ctx:t}}}),{c(){e=p("div"),Oe(l.$$.fragment),n=g(),i=p("button"),a=S(s),c(i,"class","btn-yellow-sm float-right"),c(e,"class","my-2")},m(d,v){E(d,e,v),Le(l,e,null),o(e,n),o(e,i),o(i,a),r=!0,f||(u=me(i,"click",t[12]),f=!0)},p(d,v){var h,M;const b={};v&33554440&&(b.$$scope={dirty:v,ctx:d}),l.$set(b),(!r||v&8)&&s!==(s=((M=(h=d[3].btn)==null?void 0:h.reboot)!=null?M:"Reboot")+"")&&q(a,s)},i(d){r||(J(l.$$.fragment,d),r=!0)},o(d){ie(l.$$.fragment,d),r=!1},d(d){d&&P(e),Ie(l),f=!1,u()}}}function Pc(t){var i,s,a;let e,l=((a=(s=(i=t[3].status)==null?void 0:i.device)==null?void 0:s.btn_consents)!=null?a:"Consents")+"",n;return{c(){e=p("span"),n=S(l),c(e,"class","btn-pri-sm")},m(r,f){E(r,e,f),o(e,n)},p(r,f){var u,m,_;f&8&&l!==(l=((_=(m=(u=r[3].status)==null?void 0:u.device)==null?void 0:m.btn_consents)!=null?_:"Consents")+"")&&q(n,l)},d(r){r&&P(e)}}}function Ya(t){var V,R,F,Y,j,W,K,U,H,Z,ne,X;let e,l,n=((F=(R=(V=t[3].status)==null?void 0:V.meter)==null?void 0:R.title)!=null?F:"Meter")+"",i,s,a,r=((W=(j=(Y=t[3].status)==null?void 0:Y.meter)==null?void 0:j.manufacturer)!=null?W:"Manufacturer")+"",f,u,m=_i(t[1].meter.mfg)+"",_,d,v,b=((H=(U=(K=t[3].status)==null?void 0:K.meter)==null?void 0:U.model)!=null?H:"Model")+"",h,M,k=(t[1].meter.model?t[1].meter.model:"unknown")+"",T,I,O,C=((X=(ne=(Z=t[3].status)==null?void 0:Z.meter)==null?void 0:ne.id)!=null?X:"ID")+"",B,L,z=(t[1].meter.id?t[1].meter.id:"unknown")+"",y;return{c(){e=p("div"),l=p("strong"),i=S(n),s=g(),a=p("div"),f=S(r),u=S(": "),_=S(m),d=g(),v=p("div"),h=S(b),M=S(": "),T=S(k),I=g(),O=p("div"),B=S(C),L=S(": "),y=S(z),c(l,"class","text-sm"),c(a,"class","my-2"),c(v,"class","my-2"),c(O,"class","my-2"),c(e,"class","cnt")},m($,ae){E($,e,ae),o(e,l),o(l,i),o(e,s),o(e,a),o(a,f),o(a,u),o(a,_),o(e,d),o(e,v),o(v,h),o(v,M),o(v,T),o(e,I),o(e,O),o(O,B),o(O,L),o(O,y)},p($,ae){var le,se,fe,re,Q,x,ge,pe,N,w,D,A;ae&8&&n!==(n=((fe=(se=(le=$[3].status)==null?void 0:le.meter)==null?void 0:se.title)!=null?fe:"Meter")+"")&&q(i,n),ae&8&&r!==(r=((x=(Q=(re=$[3].status)==null?void 0:re.meter)==null?void 0:Q.manufacturer)!=null?x:"Manufacturer")+"")&&q(f,r),ae&2&&m!==(m=_i($[1].meter.mfg)+"")&&q(_,m),ae&8&&b!==(b=((N=(pe=(ge=$[3].status)==null?void 0:ge.meter)==null?void 0:pe.model)!=null?N:"Model")+"")&&q(h,b),ae&2&&k!==(k=($[1].meter.model?$[1].meter.model:"unknown")+"")&&q(T,k),ae&8&&C!==(C=((A=(D=(w=$[3].status)==null?void 0:w.meter)==null?void 0:D.id)!=null?A:"ID")+"")&&q(B,C),ae&2&&z!==(z=($[1].meter.id?$[1].meter.id:"unknown")+"")&&q(y,z)},d($){$&&P(e)}}}function Qa(t){var U,H,Z,ne,X,$,ae,le,se,fe,re,Q;let e,l,n=((Z=(H=(U=t[3].status)==null?void 0:U.network)==null?void 0:H.title)!=null?Z:"Network")+"",i,s,a,r=(($=(X=(ne=t[3].conf)==null?void 0:ne.network)==null?void 0:X.ip)!=null?$:"IP")+"",f,u,m=t[1].net.ip+"",_,d,v,b=((se=(le=(ae=t[3].conf)==null?void 0:ae.network)==null?void 0:le.mask)!=null?se:"Mask")+"",h,M,k=t[1].net.mask+"",T,I,O,C=((Q=(re=(fe=t[3].conf)==null?void 0:fe.network)==null?void 0:re.gw)!=null?Q:"Gateway")+"",B,L,z=t[1].net.gw+"",y,V,R,F,Y,j=t[1].net.dns1&&Xa(t),W=t[1].net.dns2&&Za(t),K=t[1].net.ipv6&&Ja(t);return{c(){e=p("div"),l=p("strong"),i=S(n),s=g(),a=p("div"),f=S(r),u=S(": "),_=S(m),d=g(),v=p("div"),h=S(b),M=S(": "),T=S(k),I=g(),O=p("div"),B=S(C),L=S(": "),y=S(z),V=g(),R=p("div"),j&&j.c(),F=g(),W&&W.c(),Y=g(),K&&K.c(),c(l,"class","text-sm"),c(a,"class","my-2"),c(v,"class","my-2"),c(O,"class","my-2"),c(R,"class","my-2"),c(e,"class","cnt")},m(x,ge){E(x,e,ge),o(e,l),o(l,i),o(e,s),o(e,a),o(a,f),o(a,u),o(a,_),o(e,d),o(e,v),o(v,h),o(v,M),o(v,T),o(e,I),o(e,O),o(O,B),o(O,L),o(O,y),o(e,V),o(e,R),j&&j.m(R,null),o(R,F),W&&W.m(R,null),o(e,Y),K&&K.m(e,null)},p(x,ge){var pe,N,w,D,A,G,te,ee,oe,ce,Pe,Ce;ge&8&&n!==(n=((w=(N=(pe=x[3].status)==null?void 0:pe.network)==null?void 0:N.title)!=null?w:"Network")+"")&&q(i,n),ge&8&&r!==(r=((G=(A=(D=x[3].conf)==null?void 0:D.network)==null?void 0:A.ip)!=null?G:"IP")+"")&&q(f,r),ge&2&&m!==(m=x[1].net.ip+"")&&q(_,m),ge&8&&b!==(b=((oe=(ee=(te=x[3].conf)==null?void 0:te.network)==null?void 0:ee.mask)!=null?oe:"Mask")+"")&&q(h,b),ge&2&&k!==(k=x[1].net.mask+"")&&q(T,k),ge&8&&C!==(C=((Ce=(Pe=(ce=x[3].conf)==null?void 0:ce.network)==null?void 0:Pe.gw)!=null?Ce:"Gateway")+"")&&q(B,C),ge&2&&z!==(z=x[1].net.gw+"")&&q(y,z),x[1].net.dns1?j?j.p(x,ge):(j=Xa(x),j.c(),j.m(R,F)):j&&(j.d(1),j=null),x[1].net.dns2?W?W.p(x,ge):(W=Za(x),W.c(),W.m(R,null)):W&&(W.d(1),W=null),x[1].net.ipv6?K?K.p(x,ge):(K=Ja(x),K.c(),K.m(e,null)):K&&(K.d(1),K=null)},d(x){x&&P(e),j&&j.d(),W&&W.d(),K&&K.d()}}}function Xa(t){var a,r,f;let e=((f=(r=(a=t[3].conf)==null?void 0:a.network)==null?void 0:r.dns)!=null?f:"DNS")+"",l,n,i=t[1].net.dns1+"",s;return{c(){l=S(e),n=S(": "),s=S(i)},m(u,m){E(u,l,m),E(u,n,m),E(u,s,m)},p(u,m){var _,d,v;m&8&&e!==(e=((v=(d=(_=u[3].conf)==null?void 0:_.network)==null?void 0:d.dns)!=null?v:"DNS")+"")&&q(l,e),m&2&&i!==(i=u[1].net.dns1+"")&&q(s,i)},d(u){u&&P(l),u&&P(n),u&&P(s)}}}function Za(t){var a,r,f;let e=((f=(r=(a=t[3].conf)==null?void 0:a.network)==null?void 0:r.dns)!=null?f:"DNS")+"",l,n,i=t[1].net.dns2+"",s;return{c(){l=S(e),n=S(": "),s=S(i)},m(u,m){E(u,l,m),E(u,n,m),E(u,s,m)},p(u,m){var _,d,v;m&8&&e!==(e=((v=(d=(_=u[3].conf)==null?void 0:_.network)==null?void 0:d.dns)!=null?v:"DNS")+"")&&q(l,e),m&2&&i!==(i=u[1].net.dns2+"")&&q(s,i)},d(u){u&&P(l),u&&P(n),u&&P(s)}}}function Ja(t){let e,l,n=t[1].net.ipv6+"",i,s,a,r,f=t[1].net.dns1v6&&$a(t),u=t[1].net.dns2v6&&xa(t);return{c(){e=p("div"),l=S("IPv6: "),i=S(n),s=g(),a=p("div"),f&&f.c(),r=g(),u&&u.c(),c(e,"class","my-2"),c(a,"class","my-2")},m(m,_){E(m,e,_),o(e,l),o(e,i),E(m,s,_),E(m,a,_),f&&f.m(a,null),o(a,r),u&&u.m(a,null)},p(m,_){_&2&&n!==(n=m[1].net.ipv6+"")&&q(i,n),m[1].net.dns1v6?f?f.p(m,_):(f=$a(m),f.c(),f.m(a,r)):f&&(f.d(1),f=null),m[1].net.dns2v6?u?u.p(m,_):(u=xa(m),u.c(),u.m(a,null)):u&&(u.d(1),u=null)},d(m){m&&P(e),m&&P(s),m&&P(a),f&&f.d(),u&&u.d()}}}function $a(t){let e,l=t[1].net.dns1v6+"",n;return{c(){e=S("DNSv6: "),n=S(l)},m(i,s){E(i,e,s),E(i,n,s)},p(i,s){s&2&&l!==(l=i[1].net.dns1v6+"")&&q(n,l)},d(i){i&&P(e),i&&P(n)}}}function xa(t){let e,l=t[1].net.dns2v6+"",n;return{c(){e=S("DNSv6: "),n=S(l)},m(i,s){E(i,e,s),E(i,n,s)},p(i,s){s&2&&l!==(l=i[1].net.dns2v6+"")&&q(n,l)},d(i){i&&P(e),i&&P(n)}}}function ef(t){var f,u,m,_,d,v;let e,l,n=((m=(u=(f=t[3].status)==null?void 0:f.firmware)==null?void 0:u.failed)!=null?m:"Upgrade from {0} to {1} failed").replace("{0}",t[1].upgrade.f).replace("{1}",t[1].upgrade.t)+"",i,s,a=((v=(d=(_=t[3].errors)==null?void 0:_.http)==null?void 0:d[t[1].upgrade.e])!=null?v:t[1].upgrade.e)+"",r;return{c(){e=p("div"),l=p("div"),i=S(n),s=g(),r=S(a),c(l,"class","bd-yellow"),c(e,"class","my-2")},m(b,h){E(b,e,h),o(e,l),o(l,i),o(l,s),o(l,r)},p(b,h){var M,k,T,I,O,C;h&10&&n!==(n=((T=(k=(M=b[3].status)==null?void 0:M.firmware)==null?void 0:k.failed)!=null?T:"Upgrade from {0} to {1} failed").replace("{0}",b[1].upgrade.f).replace("{1}",b[1].upgrade.t)+"")&&q(i,n),h&10&&a!==(a=((C=(O=(I=b[3].errors)==null?void 0:I.http)==null?void 0:O[b[1].upgrade.e])!=null?C:b[1].upgrade.e)+"")&&q(r,a)},d(b){b&&P(e)}}}function tf(t){var b,h,M;let e,l=((M=(h=(b=t[3].status)==null?void 0:b.firmware)==null?void 0:h.latest)!=null?M:"Latest")+"",n,i,s,a=t[4].tag_name+"",r,f,u,m,_,d=(t[1].security==0||t[0].a)&&t[1].fwconsent===1&&t[4]&&t[4].tag_name!=t[1].version&&lf(t),v=t[1].fwconsent===2&&nf(t);return{c(){e=p("div"),n=S(l),i=S(`: - `),s=p("a"),r=S(a),u=g(),d&&d.c(),m=g(),v&&v.c(),_=$t(),c(s,"href",f=t[4].html_url),c(s,"class","ml-2 text-blue-600 hover:text-blue-800"),c(s,"target","_blank"),c(s,"rel","noreferrer"),c(e,"class","my-2 flex")},m(k,T){E(k,e,T),o(e,n),o(e,i),o(e,s),o(s,r),o(e,u),d&&d.m(e,null),E(k,m,T),v&&v.m(k,T),E(k,_,T)},p(k,T){var I,O,C;T&8&&l!==(l=((C=(O=(I=k[3].status)==null?void 0:I.firmware)==null?void 0:O.latest)!=null?C:"Latest")+"")&&q(n,l),T&16&&a!==(a=k[4].tag_name+"")&&q(r,a),T&16&&f!==(f=k[4].html_url)&&c(s,"href",f),(k[1].security==0||k[0].a)&&k[1].fwconsent===1&&k[4]&&k[4].tag_name!=k[1].version?d?d.p(k,T):(d=lf(k),d.c(),d.m(e,null)):d&&(d.d(1),d=null),k[1].fwconsent===2?v?v.p(k,T):(v=nf(k),v.c(),v.m(_.parentNode,_)):v&&(v.d(1),v=null)},d(k){k&&P(e),d&&d.d(),k&&P(m),v&&v.d(k),k&&P(_)}}}function lf(t){let e,l,n,i,s;return{c(){var a,r,f;e=p("div"),l=p("button"),l.textContent="\u21D3",c(e,"class","flex-none ml-2 text-green-500"),c(e,"title",n=(f=(r=(a=t[3].status)==null?void 0:a.firmware)==null?void 0:r.install)!=null?f:"Install")},m(a,r){E(a,e,r),o(e,l),i||(s=me(l,"click",t[11]),i=!0)},p(a,r){var f,u,m;r&8&&n!==(n=(m=(u=(f=a[3].status)==null?void 0:f.firmware)==null?void 0:u.install)!=null?m:"Install")&&c(e,"title",n)},d(a){a&&P(e),i=!1,s()}}}function nf(t){var s,a,r;let e,l,n=((r=(a=(s=t[3].status)==null?void 0:s.firmware)==null?void 0:a.no_one_click)!=null?r:"One-click upgrade disabled")+"",i;return{c(){e=p("div"),l=p("div"),i=S(n),c(l,"class","bd-yellow"),c(e,"class","my-2")},m(f,u){E(f,e,u),o(e,l),o(l,i)},p(f,u){var m,_,d;u&8&&n!==(n=((d=(_=(m=f[3].status)==null?void 0:m.firmware)==null?void 0:_.no_one_click)!=null?d:"One-click upgrade disabled")+"")&&q(i,n)},d(f){f&&P(e)}}}function sf(t){let e,l=pi(lt(t[1].chip,t[1].board))+"",n;return{c(){e=p("div"),n=S(l),c(e,"class","bd-red")},m(i,s){E(i,e,s),o(e,n)},p(i,s){s&2&&l!==(l=pi(lt(i[1].chip,i[1].board))+"")&&q(n,l)},d(i){i&&P(e)}}}function of(t){let e,l,n,i,s,a;function r(m,_){return m[6].length==0?Dc:Ec}let f=r(t),u=f(t);return{c(){e=p("div"),l=p("form"),n=p("input"),i=g(),u.c(),Vn(n,"display","none"),c(n,"name","file"),c(n,"type","file"),c(n,"accept",".bin"),c(l,"action","/firmware"),c(l,"enctype","multipart/form-data"),c(l,"method","post"),c(l,"autocomplete","off"),c(e,"class","my-2 flex")},m(m,_){E(m,e,_),o(e,l),o(l,n),t[14](n),o(l,i),u.m(l,null),s||(a=[me(n,"change",t[15]),me(l,"submit",t[17])],s=!0)},p(m,_){f===(f=r(m))&&u?u.p(m,_):(u.d(1),u=f(m),u&&(u.c(),u.m(l,null)))},d(m){m&&P(e),t[14](null),u.d(),s=!1,Ht(a)}}}function Ec(t){var r,f;let e=t[6][0].name+"",l,n,i,s=((f=(r=t[3].btn)==null?void 0:r.upload)!=null?f:"Upload")+"",a;return{c(){l=S(e),n=g(),i=p("button"),a=S(s),c(i,"type","submit"),c(i,"class","btn-pri-sm float-right ml-2")},m(u,m){E(u,l,m),E(u,n,m),E(u,i,m),o(i,a)},p(u,m){var _,d;m&64&&e!==(e=u[6][0].name+"")&&q(l,e),m&8&&s!==(s=((d=(_=u[3].btn)==null?void 0:_.upload)!=null?d:"Upload")+"")&&q(a,s)},d(u){u&&P(l),u&&P(n),u&&P(i)}}}function Dc(t){var a,r,f;let e,l=((f=(r=(a=t[3].status)==null?void 0:a.firmware)==null?void 0:r.btn_select_file)!=null?f:"Select file")+"",n,i,s;return{c(){e=p("button"),n=S(l),c(e,"type","button"),c(e,"class","btn-pri-sm float-right")},m(u,m){E(u,e,m),o(e,n),i||(s=me(e,"click",t[16]),i=!0)},p(u,m){var _,d,v;m&8&&l!==(l=((v=(d=(_=u[3].status)==null?void 0:_.firmware)==null?void 0:d.btn_select_file)!=null?v:"Select file")+"")&&q(n,l)},d(u){u&&P(e),i=!1,s()}}}function af(t){var W,K,U,H,Z,ne,X,$,ae;let e,l,n=((U=(K=(W=t[3].status)==null?void 0:W.backup)==null?void 0:K.title)!=null?U:"Backup")+"",i,s,a,r,f,u,m,_,d=((ne=(Z=(H=t[3].status)==null?void 0:H.backup)==null?void 0:Z.secrets)!=null?ne:"Include secrets")+"",v,b,h,M=((ae=($=(X=t[3].status)==null?void 0:X.backup)==null?void 0:$.secrets_desc)!=null?ae:"")+"",k,T,I,O,C,B,L,z,y=t[10],V=[];for(let le=0;le{oe=null}),gt()),(Gt=ue[0])!=null&&Gt.a?ce?(ce.p(ue,De),De&1&&J(ce,1)):(ce=Ka(ue),ce.c(),J(ce,1),ce.m(l,null)):ce&&(bt(),ie(ce,1,1,()=>{ce=null}),gt()),ue[1].meter?Pe?Pe.p(ue,De):(Pe=Ya(ue),Pe.c(),Pe.m(e,j)):Pe&&(Pe.d(1),Pe=null),ue[1].net?Ce?Ce.p(ue,De):(Ce=Qa(ue),Ce.c(),Ce.m(e,W)):Ce&&(Ce.d(1),Ce=null),(!te||De&8)&&H!==(H=((Ct=(Yt=(Vt=ue[3].status)==null?void 0:Vt.firmware)==null?void 0:Yt.title)!=null?Ct:"Firmware")+"")&&q(Z,H),(!te||De&8)&&$!==($=((Nt=(ft=(Mt=ue[3].status)==null?void 0:Mt.firmware)==null?void 0:ft.installed)!=null?Nt:"Installed")+"")&&q(ae,$),(!te||De&2)&&se!==(se=ue[1].version+"")&&q(fe,se),ue[1].upgrade.t&&ue[1].upgrade.t!=ue[1].version?de?de.p(ue,De):(de=ef(ue),de.c(),de.m(K,Q)):de&&(de.d(1),de=null),ue[4]?Ne?Ne.p(ue,De):(Ne=tf(ue),Ne.c(),Ne.m(K,x)):Ne&&(Ne.d(1),Ne=null),De&3&&(ge=(ue[1].security==0||ue[0].a)&&rn(ue[1].board)),ge?Te?Te.p(ue,De):(Te=sf(ue),Te.c(),Te.m(K,pe)):Te&&(Te.d(1),Te=null),ue[1].security==0||ue[0].a?ve?ve.p(ue,De):(ve=of(ue),ve.c(),ve.m(K,null)):ve&&(ve.d(1),ve=null),ue[1].security==0||ue[0].a?be?be.p(ue,De):(be=af(ue),be.c(),be.m(e,null)):be&&(be.d(1),be=null);const st={};De&128&&(st.active=ue[7]),De&8&&(st.message=(At=(dt=(Et=ue[3].status)==null?void 0:Et.mask)==null?void 0:dt.firmware)!=null?At:"Uploading"),D.$set(st);const at={};De&512&&(at.active=ue[9]),De&8&&(at.message=(qe=(mt=(St=ue[3].status)==null?void 0:St.mask)==null?void 0:mt.config)!=null?qe:"Uploading"),G.$set(at)},i(ue){te||(J(I.$$.fragment,ue),J(oe),J(ce),J(D.$$.fragment,ue),J(G.$$.fragment,ue),te=!0)},o(ue){ie(I.$$.fragment,ue),ie(oe),ie(ce),ie(D.$$.fragment,ue),ie(G.$$.fragment,ue),te=!1},d(ue){ue&&P(e),ee&&ee.d(),Ie(I),oe&&oe.d(),ce&&ce.d(),Pe&&Pe.d(),Ce&&Ce.d(),de&&de.d(),Ne&&Ne.d(),Te&&Te.d(),ve&&ve.d(),be&&be.d(),ue&&P(w),Ie(D,ue),ue&&P(A),Ie(G,ue)}}}async function Ic(){await(await fetch("reboot",{method:"POST"})).json()}function Oc(t,e,l){let{data:n}=e,{sysinfo:i}=e,s=[{name:"WiFi",key:"iw"},{name:"MQTT",key:"im"},{name:"Web",key:"ie"},{name:"Meter",key:"it"},{name:"Thresholds",key:"ih"},{name:"GPIO",key:"ig"},{name:"NTP",key:"in"},{name:"Price",key:"is"}],a={};Ol.subscribe(y=>{l(3,a=y)});let r={};ls.subscribe(y=>{l(4,r=Au(i.version,y)),r||l(4,r=y[0])});function f(){var y,V;confirm(((V=(y=a.header)==null?void 0:y.upgrade)!=null?V:"Upgrade to {0}?").replace("{0}",r.tag_name))&&(i.board!=2&&i.board!=4&&i.board!=7||confirm(pi(lt(i.chip,i.board))))&&(kl.update(R=>(R.upgrading=!0,R)),qu(r.tag_name))}const u=function(){var y,V;confirm((V=(y=a.device)==null?void 0:y.reboot_confirm)!=null?V:"Reboot?")&&(kl.update(R=>(R.booting=!0,R)),Ic())};let m,_=[],d=!1,v,b=[],h=!1;es();let M={hostname:"",ip:""};function k(y){l(9,h=!0);const V=new FormData;V.append("file",b[0]),fetch("/configfile",{method:"POST",body:V}).then(R=>R.json()).then(R=>{kl.update(F=>(M&&M.hostname&&(F.hostname=M.hostname),F.booting=R.reboot,M&&M.ip&&(F.net.ip=M.ip),setTimeout(Zn,5e3,i),F))}).catch(R=>{console.error("Error:",R),setTimeout(Zn,5e3,i)})}function T(y){ci[y?"unshift":"push"](()=>{m=y,l(5,m)})}function I(){_=this.files,l(6,_)}const O=()=>{m.click()},C=()=>l(7,d=!0);function B(y){ci[y?"unshift":"push"](()=>{v=y,l(8,v)})}function L(){b=this.files,l(2,b)}const z=()=>{v.click()};return t.$$set=y=>{"data"in y&&l(0,n=y.data),"sysinfo"in y&&l(1,i=y.sysinfo)},t.$$.update=()=>{if(t.$$.dirty&4&&b.length==1){let y=b[0],V=new FileReader,R=F=>{let Y=F.target.result.split(` -`);for(let j in Y){let W=Y[j];W.startsWith("hostname ")?M.hostname=W.split(" ")[1]:W.startsWith("ip ")&&(M.ip=W.split(" ")[1])}};V.onload=R,V.readAsText(y)}},[n,i,b,a,r,m,_,d,v,h,s,f,u,k,T,I,O,C,B,L,z]}class Rc extends It{constructor(e){super(),Lt(this,e,Oc,Lc,Dt,{data:0,sysinfo:1})}}function rf(t){let e,l,n=lt(t[0],7)+"",i,s,a=lt(t[0],5)+"",r,f,u=lt(t[0],4)+"",m,_,d=lt(t[0],3)+"",v,b,h,M,k=lt(t[0],2)+"",T,I,O=lt(t[0],1)+"",C,B,L=lt(t[0],0)+"",z,y,V,R,F=lt(t[0],101)+"",Y,j,W=lt(t[0],100)+"",K;return{c(){e=p("optgroup"),l=p("option"),i=S(n),s=p("option"),r=S(a),f=p("option"),m=S(u),_=p("option"),v=S(d),b=g(),h=p("optgroup"),M=p("option"),T=S(k),I=p("option"),C=S(O),B=p("option"),z=S(L),y=g(),V=p("optgroup"),R=p("option"),Y=S(F),j=p("option"),K=S(W),l.__value=7,l.value=l.__value,s.__value=5,s.value=s.__value,f.__value=4,f.value=f.__value,_.__value=3,_.value=_.__value,c(e,"label","amsleser.no"),M.__value=2,M.value=M.__value,I.__value=1,I.value=I.__value,B.__value=0,B.value=B.__value,c(h,"label","Custom hardware"),R.__value=101,R.value=R.__value,j.__value=100,j.value=j.__value,c(V,"label","Generic hardware")},m(U,H){E(U,e,H),o(e,l),o(l,i),o(e,s),o(s,r),o(e,f),o(f,m),o(e,_),o(_,v),E(U,b,H),E(U,h,H),o(h,M),o(M,T),o(h,I),o(I,C),o(h,B),o(B,z),E(U,y,H),E(U,V,H),o(V,R),o(R,Y),o(V,j),o(j,K)},p(U,H){H&1&&n!==(n=lt(U[0],7)+"")&&q(i,n),H&1&&a!==(a=lt(U[0],5)+"")&&q(r,a),H&1&&u!==(u=lt(U[0],4)+"")&&q(m,u),H&1&&d!==(d=lt(U[0],3)+"")&&q(v,d),H&1&&k!==(k=lt(U[0],2)+"")&&q(T,k),H&1&&O!==(O=lt(U[0],1)+"")&&q(C,O),H&1&&L!==(L=lt(U[0],0)+"")&&q(z,L),H&1&&F!==(F=lt(U[0],101)+"")&&q(Y,F),H&1&&W!==(W=lt(U[0],100)+"")&&q(K,W)},d(U){U&&P(e),U&&P(b),U&&P(h),U&&P(y),U&&P(V)}}}function cf(t){let e,l,n=lt(t[0],201)+"",i,s,a=lt(t[0],202)+"",r,f,u=lt(t[0],203)+"",m,_,d=lt(t[0],241)+"",v,b,h=lt(t[0],242)+"",M,k,T=lt(t[0],243)+"",I,O,C=lt(t[0],200)+"",B;return{c(){e=p("optgroup"),l=p("option"),i=S(n),s=p("option"),r=S(a),f=p("option"),m=S(u),_=p("option"),v=S(d),b=p("option"),M=S(h),k=p("option"),I=S(T),O=p("option"),B=S(C),l.__value=201,l.value=l.__value,s.__value=202,s.value=s.__value,f.__value=203,f.value=f.__value,_.__value=241,_.value=_.__value,b.__value=242,b.value=b.__value,k.__value=243,k.value=k.__value,O.__value=200,O.value=O.__value,c(e,"label","Generic hardware")},m(L,z){E(L,e,z),o(e,l),o(l,i),o(e,s),o(s,r),o(e,f),o(f,m),o(e,_),o(_,v),o(e,b),o(b,M),o(e,k),o(k,I),o(e,O),o(O,B)},p(L,z){z&1&&n!==(n=lt(L[0],201)+"")&&q(i,n),z&1&&a!==(a=lt(L[0],202)+"")&&q(r,a),z&1&&u!==(u=lt(L[0],203)+"")&&q(m,u),z&1&&d!==(d=lt(L[0],241)+"")&&q(v,d),z&1&&h!==(h=lt(L[0],242)+"")&&q(M,h),z&1&&T!==(T=lt(L[0],243)+"")&&q(I,T),z&1&&C!==(C=lt(L[0],200)+"")&&q(B,C)},d(L){L&&P(e)}}}function mf(t){let e,l,n=lt(t[0],7)+"",i,s,a=lt(t[0],6)+"",r,f,u=lt(t[0],5)+"",m,_,d,v,b=lt(t[0],51)+"",h,M,k=lt(t[0],50)+"",T;return{c(){e=p("optgroup"),l=p("option"),i=S(n),s=p("option"),r=S(a),f=p("option"),m=S(u),_=g(),d=p("optgroup"),v=p("option"),h=S(b),M=p("option"),T=S(k),l.__value=7,l.value=l.__value,s.__value=6,s.value=s.__value,f.__value=5,f.value=f.__value,c(e,"label","amsleser.no"),v.__value=51,v.value=v.__value,M.__value=50,M.value=M.__value,c(d,"label","Generic hardware")},m(I,O){E(I,e,O),o(e,l),o(l,i),o(e,s),o(s,r),o(e,f),o(f,m),E(I,_,O),E(I,d,O),o(d,v),o(v,h),o(d,M),o(M,T)},p(I,O){O&1&&n!==(n=lt(I[0],7)+"")&&q(i,n),O&1&&a!==(a=lt(I[0],6)+"")&&q(r,a),O&1&&u!==(u=lt(I[0],5)+"")&&q(m,u),O&1&&b!==(b=lt(I[0],51)+"")&&q(h,b),O&1&&k!==(k=lt(I[0],50)+"")&&q(T,k)},d(I){I&&P(e),I&&P(_),I&&P(d)}}}function _f(t){let e,l,n=lt(t[0],8)+"",i,s,a,r,f=lt(t[0],71)+"",u,m,_=lt(t[0],70)+"",d;return{c(){e=p("optgroup"),l=p("option"),i=S(n),s=g(),a=p("optgroup"),r=p("option"),u=S(f),m=p("option"),d=S(_),l.__value=8,l.value=l.__value,c(e,"label","Custom hardware"),r.__value=71,r.value=r.__value,m.__value=70,m.value=m.__value,c(a,"label","Generic hardware")},m(v,b){E(v,e,b),o(e,l),o(l,i),E(v,s,b),E(v,a,b),o(a,r),o(r,u),o(a,m),o(m,d)},p(v,b){b&1&&n!==(n=lt(v[0],8)+"")&&q(i,n),b&1&&f!==(f=lt(v[0],71)+"")&&q(u,f),b&1&&_!==(_=lt(v[0],70)+"")&&q(d,_)},d(v){v&&P(e),v&&P(s),v&&P(a)}}}function pf(t){let e,l,n=lt(t[0],200)+"",i;return{c(){e=p("optgroup"),l=p("option"),i=S(n),l.__value=200,l.value=l.__value,c(e,"label","Generic hardware")},m(s,a){E(s,e,a),o(e,l),o(l,i)},p(s,a){a&1&&n!==(n=lt(s[0],200)+"")&&q(i,n)},d(s){s&&P(e)}}}function df(t){let e,l,n=lt(t[0],80)+"",i;return{c(){e=p("optgroup"),l=p("option"),i=S(n),l.__value=80,l.value=l.__value,c(e,"label","Generic hardware")},m(s,a){E(s,e,a),o(e,l),o(l,i)},p(s,a){a&1&&n!==(n=lt(s[0],80)+"")&&q(i,n)},d(s){s&&P(e)}}}function Fc(t){let e,l,n,i,s,a,r,f,u=t[0]=="esp8266"&&rf(t),m=t[0]=="esp32"&&cf(t),_=t[0]=="esp32s2"&&mf(t),d=t[0]=="esp32c3"&&_f(t),v=t[0]=="esp32solo"&&pf(t),b=t[0]=="esp32s3"&&df(t);return{c(){e=p("option"),l=g(),u&&u.c(),n=g(),m&&m.c(),i=g(),_&&_.c(),s=g(),d&&d.c(),a=g(),v&&v.c(),r=g(),b&&b.c(),f=$t(),e.__value=-1,e.value=e.__value},m(h,M){E(h,e,M),E(h,l,M),u&&u.m(h,M),E(h,n,M),m&&m.m(h,M),E(h,i,M),_&&_.m(h,M),E(h,s,M),d&&d.m(h,M),E(h,a,M),v&&v.m(h,M),E(h,r,M),b&&b.m(h,M),E(h,f,M)},p(h,[M]){h[0]=="esp8266"?u?u.p(h,M):(u=rf(h),u.c(),u.m(n.parentNode,n)):u&&(u.d(1),u=null),h[0]=="esp32"?m?m.p(h,M):(m=cf(h),m.c(),m.m(i.parentNode,i)):m&&(m.d(1),m=null),h[0]=="esp32s2"?_?_.p(h,M):(_=mf(h),_.c(),_.m(s.parentNode,s)):_&&(_.d(1),_=null),h[0]=="esp32c3"?d?d.p(h,M):(d=_f(h),d.c(),d.m(a.parentNode,a)):d&&(d.d(1),d=null),h[0]=="esp32solo"?v?v.p(h,M):(v=pf(h),v.c(),v.m(r.parentNode,r)):v&&(v.d(1),v=null),h[0]=="esp32s3"?b?b.p(h,M):(b=df(h),b.c(),b.m(f.parentNode,f)):b&&(b.d(1),b=null)},i:Ze,o:Ze,d(h){h&&P(e),h&&P(l),u&&u.d(h),h&&P(n),m&&m.d(h),h&&P(i),_&&_.d(h),h&&P(s),d&&d.d(h),h&&P(a),v&&v.d(h),h&&P(r),b&&b.d(h),h&&P(f)}}}function Bc(t,e,l){let{chip:n}=e;return t.$$set=i=>{"chip"in i&&l(0,n=i.chip)},[n]}class Uc extends It{constructor(e){super(),Lt(this,e,Bc,Fc,Dt,{chip:0})}}function vf(t){let e;return{c(){e=p("div"),e.textContent="WARNING: Changing this configuration will affect basic configuration of your device. Only make changes here if instructed by vendor",c(e,"class","bd-red")},m(l,n){E(l,e,n)},d(l){l&&P(e)}}}function hf(t){let e,l,n,i,s,a,r;return a=new Hi({props:{chip:t[0].chip}}),{c(){e=p("div"),l=S("HAN GPIO"),n=p("br"),i=g(),s=p("select"),Oe(a.$$.fragment),c(s,"name","vh"),c(s,"class","in-s"),c(e,"class","my-3")},m(f,u){E(f,e,u),o(e,l),o(e,n),o(e,i),o(e,s),Le(a,s,null),r=!0},p(f,u){const m={};u&1&&(m.chip=f[0].chip),a.$set(m)},i(f){r||(J(a.$$.fragment,f),r=!0)},o(f){ie(a.$$.fragment,f),r=!1},d(f){f&&P(e),Ie(a)}}}function jc(t){let e,l,n,i,s,a,r,f,u,m,_,d,v,b,h,M,k,T,I,O,C,B,L,z,y,V,R,F,Y,j=t[0].usrcfg&&vf();b=new Uc({props:{chip:t[0].chip}});let W=t[0].board&&t[0].board>20&&hf(t);return V=new hl({props:{active:t[1],message:"Saving"}}),{c(){e=p("div"),l=p("div"),n=p("form"),i=p("input"),s=g(),a=p("strong"),a.textContent="Initial configuration",r=g(),j&&j.c(),f=g(),u=p("div"),m=S("Board type"),_=p("br"),d=g(),v=p("select"),Oe(b.$$.fragment),h=g(),W&&W.c(),M=g(),k=p("div"),T=p("label"),I=p("input"),O=S(" Clear all other configuration"),C=g(),B=p("div"),B.innerHTML='',L=g(),z=p("span"),z.textContent="\xA0",y=g(),Oe(V.$$.fragment),c(i,"type","hidden"),c(i,"name","v"),i.value="true",c(a,"class","text-sm"),c(v,"name","vb"),c(v,"class","in-s"),t[0].board===void 0&&Wt(()=>t[5].call(v)),c(u,"class","my-3"),c(I,"type","checkbox"),c(I,"name","vr"),I.__value="true",I.value=I.__value,c(I,"class","rounded mb-1"),c(k,"class","my-3"),c(B,"class","my-3"),c(z,"class","clear-both"),c(n,"autocomplete","off"),c(l,"class","cnt"),c(e,"class","grid xl:grid-cols-4 lg:grid-cols-3 md:grid-cols-2")},m(K,U){E(K,e,U),o(e,l),o(l,n),o(n,i),o(n,s),o(n,a),o(n,r),j&&j.m(n,null),o(n,f),o(n,u),o(u,m),o(u,_),o(u,d),o(u,v),Le(b,v,null),ot(v,t[0].board,!0),o(n,h),W&&W.m(n,null),o(n,M),o(n,k),o(k,T),o(T,I),I.checked=t[2],o(T,O),o(n,C),o(n,B),o(n,L),o(n,z),E(K,y,U),Le(V,K,U),R=!0,F||(Y=[me(v,"change",t[5]),me(I,"change",t[6]),me(n,"submit",ln(t[3]))],F=!0)},p(K,[U]){K[0].usrcfg?j||(j=vf(),j.c(),j.m(n,f)):j&&(j.d(1),j=null);const H={};U&1&&(H.chip=K[0].chip),b.$set(H),U&1&&ot(v,K[0].board),K[0].board&&K[0].board>20?W?(W.p(K,U),U&1&&J(W,1)):(W=hf(K),W.c(),J(W,1),W.m(n,M)):W&&(bt(),ie(W,1,1,()=>{W=null}),gt()),U&4&&(I.checked=K[2]);const Z={};U&2&&(Z.active=K[1]),V.$set(Z)},i(K){R||(J(b.$$.fragment,K),J(W),J(V.$$.fragment,K),R=!0)},o(K){ie(b.$$.fragment,K),ie(W),ie(V.$$.fragment,K),R=!1},d(K){K&&P(e),j&&j.d(),Ie(b),W&&W.d(),K&&P(y),Ie(V,K),F=!1,Ht(Y)}}}function yc(t,e,l){let{basepath:n="/"}=e,{sysinfo:i={}}=e,s=!1;async function a(m){l(1,s=!0);const _=new FormData(m.target),d=new URLSearchParams;for(let h of _){const[M,k]=h;d.append(M,k)}let b=await(await fetch("save",{method:"POST",body:d})).json();l(1,s=!1),kl.update(h=>(h.vndcfg=b.success,h.booting=b.reboot,h.if.eth=h.boardType>240&&h.boardType<250,h)),Ql(n+(i.usrcfg?"/":"/setup"))}let r=!1;kl.subscribe(m=>{l(0,i=m),m.fwconsent===1&&l(2,r=!i.usrcfg)});function f(){i.board=Jt(this),l(0,i)}function u(){r=this.checked,l(2,r)}return t.$$set=m=>{"basepath"in m&&l(4,n=m.basepath),"sysinfo"in m&&l(0,i=m.sysinfo)},[i,s,r,a,n,f,u]}class Hc extends It{constructor(e){super(),Lt(this,e,yc,jc,Dt,{basepath:4,sysinfo:0})}}function bf(t){var i,s,a;let e,l=((a=(s=(i=t[1].conf)==null?void 0:i.connection)==null?void 0:s.eth)!=null?a:"Ethernet")+"",n;return{c(){e=p("option"),n=S(l),e.__value=3,e.value=e.__value},m(r,f){E(r,e,f),o(e,n)},p(r,f){var u,m,_;f&2&&l!==(l=((_=(m=(u=r[1].conf)==null?void 0:u.connection)==null?void 0:m.eth)!=null?_:"Ethernet")+"")&&q(n,l)},d(r){r&&P(e)}}}function gf(t){var M,k,T,I,O,C;let e,l=((T=(k=(M=t[1].conf)==null?void 0:M.connection)==null?void 0:k.ssid)!=null?T:"SSID")+"",n,i,s,a,r,f,u,m=((C=(O=(I=t[1].conf)==null?void 0:I.connection)==null?void 0:O.psk)!=null?C:"Password")+"",_,d,v,b,h;return{c(){e=p("div"),n=S(l),i=p("br"),s=g(),a=p("input"),f=g(),u=p("div"),_=S(m),d=p("br"),v=g(),b=p("input"),c(a,"name","ss"),c(a,"type","text"),c(a,"class","in-s"),a.required=r=t[3]==1||t[3]==2,c(e,"class","my-3"),c(b,"name","sp"),c(b,"type","password"),c(b,"class","in-s"),c(b,"autocomplete","off"),b.required=h=t[3]==2,c(u,"class","my-3")},m(B,L){E(B,e,L),o(e,n),o(e,i),o(e,s),o(e,a),E(B,f,L),E(B,u,L),o(u,_),o(u,d),o(u,v),o(u,b)},p(B,L){var z,y,V,R,F,Y;L&2&&l!==(l=((V=(y=(z=B[1].conf)==null?void 0:z.connection)==null?void 0:y.ssid)!=null?V:"SSID")+"")&&q(n,l),L&8&&r!==(r=B[3]==1||B[3]==2)&&(a.required=r),L&2&&m!==(m=((Y=(F=(R=B[1].conf)==null?void 0:R.connection)==null?void 0:F.psk)!=null?Y:"Password")+"")&&q(_,m),L&8&&h!==(h=B[3]==2)&&(b.required=h)},d(B){B&&P(e),B&&P(f),B&&P(u)}}}function kf(t){let e,l,n,i,s,a,r,f;return r=new Fu({}),{c(){e=p("br"),l=g(),n=p("div"),i=p("input"),s=g(),a=p("select"),Oe(r.$$.fragment),c(i,"name","si"),c(i,"type","text"),c(i,"class","in-f w-full"),i.required=t[2],c(a,"name","su"),c(a,"class","in-l"),a.required=t[2],c(n,"class","flex")},m(u,m){E(u,e,m),E(u,l,m),E(u,n,m),o(n,i),o(n,s),o(n,a),Le(r,a,null),f=!0},p(u,m){(!f||m&4)&&(i.required=u[2]),(!f||m&4)&&(a.required=u[2])},i(u){f||(J(r.$$.fragment,u),f=!0)},o(u){ie(r.$$.fragment,u),f=!1},d(u){u&&P(e),u&&P(l),u&&P(n),Ie(r)}}}function wf(t){var h,M,k,T,I,O;let e,l,n=((k=(M=(h=t[1].conf)==null?void 0:h.network)==null?void 0:M.gw)!=null?k:"Gateway")+"",i,s,a,r,f,u,m=((O=(I=(T=t[1].conf)==null?void 0:T.network)==null?void 0:I.dns)!=null?O:"DNS")+"",_,d,v,b;return{c(){e=p("div"),l=p("div"),i=S(n),s=p("br"),a=g(),r=p("input"),f=g(),u=p("div"),_=S(m),d=p("br"),v=g(),b=p("input"),c(r,"name","sg"),c(r,"type","text"),c(r,"class","in-f w-full"),c(b,"name","sd"),c(b,"type","text"),c(b,"class","in-l w-full"),c(e,"class","my-3 flex")},m(C,B){E(C,e,B),o(e,l),o(l,i),o(l,s),o(l,a),o(l,r),o(e,f),o(e,u),o(u,_),o(u,d),o(u,v),o(u,b)},p(C,B){var L,z,y,V,R,F;B&2&&n!==(n=((y=(z=(L=C[1].conf)==null?void 0:L.network)==null?void 0:z.gw)!=null?y:"Gateway")+"")&&q(i,n),B&2&&m!==(m=((F=(R=(V=C[1].conf)==null?void 0:V.network)==null?void 0:R.dns)!=null?F:"DNS")+"")&&q(_,m)},d(C){C&&P(e)}}}function zc(t){var G,te,ee,oe,ce,Pe,Ce,de,Ne,Te,ve,be,He,ye,Ve,xe,Je,it,We,_t;let e,l,n,i,s,a,r=((te=(G=t[1].setup)==null?void 0:G.title)!=null?te:"Setup")+"",f,u,m,_=((ce=(oe=(ee=t[1].conf)==null?void 0:ee.connection)==null?void 0:oe.title)!=null?ce:"Connection")+"",d,v,b,h,M,k=((de=(Ce=(Pe=t[1].conf)==null?void 0:Pe.connection)==null?void 0:Ce.wifi)!=null?de:"Connect to WiFi")+"",T,I,O=((ve=(Te=(Ne=t[1].conf)==null?void 0:Ne.connection)==null?void 0:Te.ap)!=null?ve:"Standalone access point")+"",C,B,L,z,y=((ye=(He=(be=t[1].conf)==null?void 0:be.general)==null?void 0:He.hostname)!=null?ye:"Hostname")+"",V,R,F,Y,j,W,K,U,H=((xe=(Ve=t[1].setup)==null?void 0:Ve.static)!=null?xe:"Static IP")+"",Z,ne,X,$,ae,le,se=((it=(Je=t[1].btn)==null?void 0:Je.save)!=null?it:"Save")+"",fe,re,Q,x,ge,pe,N=t[0].if&&t[0].if.eth&&bf(t),w=(t[3]==1||t[3]==2)&&gf(t),D=t[2]&&kf(t),A=t[2]&&wf(t);return Q=new hl({props:{active:t[4],message:(_t=(We=t[1].setup)==null?void 0:We.mask)!=null?_t:"Saving"}}),{c(){e=p("div"),l=p("div"),n=p("form"),i=p("input"),s=g(),a=p("strong"),f=S(r),u=g(),m=p("div"),d=S(_),v=p("br"),b=g(),h=p("select"),M=p("option"),T=S(k),I=p("option"),C=S(O),N&&N.c(),B=g(),w&&w.c(),L=g(),z=p("div"),V=S(y),R=g(),F=p("input"),Y=g(),j=p("div"),W=p("label"),K=p("input"),U=g(),Z=S(H),ne=g(),D&&D.c(),X=g(),A&&A.c(),$=g(),ae=p("div"),le=p("button"),fe=S(se),re=g(),Oe(Q.$$.fragment),c(i,"type","hidden"),c(i,"name","s"),i.value="true",c(a,"class","text-sm"),M.__value=1,M.value=M.__value,I.__value=2,I.value=I.__value,c(h,"name","sc"),c(h,"class","in-s"),t[3]===void 0&&Wt(()=>t[6].call(h)),c(m,"class","my-3"),c(F,"name","sh"),c(F,"type","text"),c(F,"class","in-s"),c(F,"maxlength","32"),c(F,"pattern","[a-z0-9_-]+"),c(F,"placeholder","Optional, ex.: ams-reader"),c(F,"autocomplete","off"),c(K,"type","checkbox"),c(K,"name","sm"),K.__value="static",K.value=K.__value,c(K,"class","rounded mb-1"),c(j,"class","my-3"),c(le,"type","submit"),c(le,"class","btn-pri"),c(ae,"class","my-3"),c(l,"class","cnt"),c(e,"class","grid xl:grid-cols-4 lg:grid-cols-3 md:grid-cols-2")},m(Ee,_e){E(Ee,e,_e),o(e,l),o(l,n),o(n,i),o(n,s),o(n,a),o(a,f),o(n,u),o(n,m),o(m,d),o(m,v),o(m,b),o(m,h),o(h,M),o(M,T),o(h,I),o(I,C),N&&N.m(h,null),ot(h,t[3],!0),o(n,B),w&&w.m(n,null),o(n,L),o(n,z),o(z,V),o(z,R),o(z,F),Me(F,t[0].hostname),o(n,Y),o(n,j),o(j,W),o(W,K),K.checked=t[2],o(W,U),o(W,Z),o(j,ne),D&&D.m(j,null),o(n,X),A&&A.m(n,null),o(n,$),o(n,ae),o(ae,le),o(le,fe),E(Ee,re,_e),Le(Q,Ee,_e),x=!0,ge||(pe=[me(h,"change",t[6]),me(F,"input",t[7]),me(K,"change",t[8]),me(n,"submit",ln(t[5]))],ge=!0)},p(Ee,[_e]){var kt,wt,nt,vt,ze,Ke,Ye,Xe,Qe,ut,we,Ae,ke,ue,De,rt,st,at,pt,ht;(!x||_e&2)&&r!==(r=((wt=(kt=Ee[1].setup)==null?void 0:kt.title)!=null?wt:"Setup")+"")&&q(f,r),(!x||_e&2)&&_!==(_=((ze=(vt=(nt=Ee[1].conf)==null?void 0:nt.connection)==null?void 0:vt.title)!=null?ze:"Connection")+"")&&q(d,_),(!x||_e&2)&&k!==(k=((Xe=(Ye=(Ke=Ee[1].conf)==null?void 0:Ke.connection)==null?void 0:Ye.wifi)!=null?Xe:"Connect to WiFi")+"")&&q(T,k),(!x||_e&2)&&O!==(O=((we=(ut=(Qe=Ee[1].conf)==null?void 0:Qe.connection)==null?void 0:ut.ap)!=null?we:"Standalone access point")+"")&&q(C,O),Ee[0].if&&Ee[0].if.eth?N?N.p(Ee,_e):(N=bf(Ee),N.c(),N.m(h,null)):N&&(N.d(1),N=null),_e&8&&ot(h,Ee[3]),Ee[3]==1||Ee[3]==2?w?w.p(Ee,_e):(w=gf(Ee),w.c(),w.m(n,L)):w&&(w.d(1),w=null),(!x||_e&2)&&y!==(y=((ue=(ke=(Ae=Ee[1].conf)==null?void 0:Ae.general)==null?void 0:ke.hostname)!=null?ue:"Hostname")+"")&&q(V,y),_e&1&&F.value!==Ee[0].hostname&&Me(F,Ee[0].hostname),_e&4&&(K.checked=Ee[2]),(!x||_e&2)&&H!==(H=((rt=(De=Ee[1].setup)==null?void 0:De.static)!=null?rt:"Static IP")+"")&&q(Z,H),Ee[2]?D?(D.p(Ee,_e),_e&4&&J(D,1)):(D=kf(Ee),D.c(),J(D,1),D.m(j,null)):D&&(bt(),ie(D,1,1,()=>{D=null}),gt()),Ee[2]?A?A.p(Ee,_e):(A=wf(Ee),A.c(),A.m(n,$)):A&&(A.d(1),A=null),(!x||_e&2)&&se!==(se=((at=(st=Ee[1].btn)==null?void 0:st.save)!=null?at:"Save")+"")&&q(fe,se);const Ue={};_e&16&&(Ue.active=Ee[4]),_e&2&&(Ue.message=(ht=(pt=Ee[1].setup)==null?void 0:pt.mask)!=null?ht:"Saving"),Q.$set(Ue)},i(Ee){x||(J(D),J(Q.$$.fragment,Ee),x=!0)},o(Ee){ie(D),ie(Q.$$.fragment,Ee),x=!1},d(Ee){Ee&&P(e),N&&N.d(),w&&w.d(),D&&D.d(),A&&A.d(),Ee&&P(re),Ie(Q,Ee),ge=!1,Ht(pe)}}}function Wc(t,e,l){let n={};Ol.subscribe(v=>{l(1,n=v)});let{sysinfo:i={}}=e,s=!1,a=1,r=!1;function f(v){kl.update(b=>(b.trying=v,b))}async function u(v){l(4,r=!0);const b=new FormData(v.target),h=new URLSearchParams;for(let T of b){const[I,O]=T;h.append(I,O)}let k=await(await fetch("save",{method:"POST",body:h})).json();l(4,r=!1),kl.update(T=>(T.hostname=b.get("sh"),T.usrcfg=k.success,T.booting=k.reboot,s&&(T.net.ip=b.get("si"),T.net.mask=b.get("su"),T.net.gw=b.get("sg"),T.net.dns1=b.get("sd")),k.reboot&&setTimeout(Zn,5e3,i,f),T))}function m(){a=Jt(this),l(3,a)}function _(){i.hostname=this.value,l(0,i)}function d(){s=this.checked,l(2,s)}return t.$$set=v=>{"sysinfo"in v&&l(0,i=v.sysinfo)},[i,n,s,a,r,u,m,_,d]}class Gc extends It{constructor(e){super(),Lt(this,e,Wc,zc,Dt,{sysinfo:0})}}function Vc(t){var V,R,F,Y,j,W,K,U;let e,l,n,i=((R=(V=t[2].upload)==null?void 0:V.title)!=null?R:"Upload")+"",s,a,r,f,u,m=((Y=(F=t[2].upload)==null?void 0:F.desc)!=null?Y:"")+"",_,d,v,b,h,M,k,T,I=((W=(j=t[2].btn)==null?void 0:j.upload)!=null?W:"Upload")+"",O,C,B,L,z,y;return B=new hl({props:{active:t[3],message:(U=(K=t[2].upload)==null?void 0:K.mask)!=null?U:"Uploading"}}),{c(){e=p("div"),l=p("div"),n=p("strong"),s=S(i),a=g(),r=S(t[1]),f=g(),u=p("p"),_=S(m),d=g(),v=p("form"),b=p("input"),h=g(),M=p("div"),k=p("button"),T=p("p"),O=S(I),C=g(),Oe(B.$$.fragment),c(u,"class","mb-4"),c(b,"name","file"),c(b,"type","file"),c(T,"class","mb-4"),c(k,"type","submit"),c(k,"class","btn-pri"),c(M,"class","w-full text-right mt-4"),c(v,"action",t[0]),c(v,"enctype","multipart/form-data"),c(v,"method","post"),c(v,"autocomplete","off"),c(l,"class","cnt"),c(e,"class","grid xl:grid-cols-4 lg:grid-cols-2 md:grid-cols-2")},m(H,Z){E(H,e,Z),o(e,l),o(l,n),o(n,s),o(n,a),o(n,r),o(l,f),o(l,u),o(u,_),o(l,d),o(l,v),o(v,b),o(v,h),o(v,M),o(M,k),o(k,T),o(T,O),E(H,C,Z),Le(B,H,Z),L=!0,z||(y=me(v,"submit",t[4]),z=!0)},p(H,[Z]){var X,$,ae,le,se,fe,re,Q;(!L||Z&4)&&i!==(i=(($=(X=H[2].upload)==null?void 0:X.title)!=null?$:"Upload")+"")&&q(s,i),(!L||Z&2)&&q(r,H[1]),(!L||Z&4)&&m!==(m=((le=(ae=H[2].upload)==null?void 0:ae.desc)!=null?le:"")+"")&&q(_,m),(!L||Z&4)&&I!==(I=((fe=(se=H[2].btn)==null?void 0:se.upload)!=null?fe:"Upload")+"")&&q(O,I),(!L||Z&1)&&c(v,"action",H[0]);const ne={};Z&8&&(ne.active=H[3]),Z&4&&(ne.message=(Q=(re=H[2].upload)==null?void 0:re.mask)!=null?Q:"Uploading"),B.$set(ne)},i(H){L||(J(B.$$.fragment,H),L=!0)},o(H){ie(B.$$.fragment,H),L=!1},d(H){H&&P(e),H&&P(C),Ie(B,H),z=!1,y()}}}function Kc(t,e,l){let{action:n}=e,{title:i}=e,s={};Ol.subscribe(f=>{l(2,s=f)});let a=!1;const r=()=>l(3,a=!0);return t.$$set=f=>{"action"in f&&l(0,n=f.action),"title"in f&&l(1,i=f.title)},[n,i,s,a,r]}class os extends It{constructor(e){super(),Lt(this,e,Kc,Vc,Dt,{action:0,title:1})}}function Yc(t){var Q,x,ge,pe,N,w,D,A,G,te,ee,oe,ce,Pe;let e,l,n,i,s=((x=(Q=t[1].consent)==null?void 0:Q.title)!=null?x:"Consents")+"",a,r,f,u,m,_=((pe=(ge=t[1].consent)==null?void 0:ge.one_click)!=null?pe:"One-click")+"",d,v,b,h,M=((w=(N=t[1].consent)==null?void 0:N.read_more)!=null?w:"Read more")+"",k,T,I,O,C,B,L,z=((A=(D=t[1].consent)==null?void 0:D.yes)!=null?A:"Yes")+"",y,V,R,F,Y,j,W=((te=(G=t[1].consent)==null?void 0:G.no)!=null?te:"No")+"",K,U,H,Z,ne,X=((oe=(ee=t[1].btn)==null?void 0:ee.save)!=null?oe:"Save")+"",$,ae,le,se,fe,re;return le=new hl({props:{active:t[2],message:(Pe=(ce=t[1].consent)==null?void 0:ce.mask_saving)!=null?Pe:"Saving"}}),{c(){e=p("div"),l=p("div"),n=p("form"),i=p("div"),a=S(s),r=g(),f=p("hr"),u=g(),m=p("div"),d=S(_),v=p("br"),b=g(),h=p("a"),k=S(M),T=p("br"),I=g(),O=p("label"),C=p("input"),L=g(),y=S(z),V=g(),R=p("label"),F=p("input"),j=g(),K=S(W),U=p("br"),H=g(),Z=p("div"),ne=p("button"),$=S(X),ae=g(),Oe(le.$$.fragment),c(h,"href",ql("Data-collection-on-one-click-firmware-upgrade")),c(h,"target","_blank"),c(h,"class","text-blue-600 hover:text-blue-800"),c(C,"type","radio"),c(C,"name","sf"),C.value=1,C.checked=B=t[0].fwconsent===1,c(C,"class","rounded m-2"),C.required=!0,c(F,"type","radio"),c(F,"name","sf"),F.value=2,F.checked=Y=t[0].fwconsent===2,c(F,"class","rounded m-2"),F.required=!0,c(m,"class","my-3"),c(ne,"type","submit"),c(ne,"class","btn-pri"),c(Z,"class","my-3"),c(n,"autocomplete","off"),c(l,"class","cnt"),c(e,"class","grid xl:grid-cols-3 lg:grid-cols-2")},m(Ce,de){E(Ce,e,de),o(e,l),o(l,n),o(n,i),o(i,a),o(n,r),o(n,f),o(n,u),o(n,m),o(m,d),o(m,v),o(m,b),o(m,h),o(h,k),o(m,T),o(m,I),o(m,O),o(O,C),o(O,L),o(O,y),o(m,V),o(m,R),o(R,F),o(R,j),o(R,K),o(m,U),o(n,H),o(n,Z),o(Z,ne),o(ne,$),E(Ce,ae,de),Le(le,Ce,de),se=!0,fe||(re=me(n,"submit",ln(t[3])),fe=!0)},p(Ce,[de]){var Te,ve,be,He,ye,Ve,xe,Je,it,We,_t,Ee,_e,Ue;(!se||de&2)&&s!==(s=((ve=(Te=Ce[1].consent)==null?void 0:Te.title)!=null?ve:"Consents")+"")&&q(a,s),(!se||de&2)&&_!==(_=((He=(be=Ce[1].consent)==null?void 0:be.one_click)!=null?He:"One-click")+"")&&q(d,_),(!se||de&2)&&M!==(M=((Ve=(ye=Ce[1].consent)==null?void 0:ye.read_more)!=null?Ve:"Read more")+"")&&q(k,M),(!se||de&1&&B!==(B=Ce[0].fwconsent===1))&&(C.checked=B),(!se||de&2)&&z!==(z=((Je=(xe=Ce[1].consent)==null?void 0:xe.yes)!=null?Je:"Yes")+"")&&q(y,z),(!se||de&1&&Y!==(Y=Ce[0].fwconsent===2))&&(F.checked=Y),(!se||de&2)&&W!==(W=((We=(it=Ce[1].consent)==null?void 0:it.no)!=null?We:"No")+"")&&q(K,W),(!se||de&2)&&X!==(X=((Ee=(_t=Ce[1].btn)==null?void 0:_t.save)!=null?Ee:"Save")+"")&&q($,X);const Ne={};de&4&&(Ne.active=Ce[2]),de&2&&(Ne.message=(Ue=(_e=Ce[1].consent)==null?void 0:_e.mask_saving)!=null?Ue:"Saving"),le.$set(Ne)},i(Ce){se||(J(le.$$.fragment,Ce),se=!0)},o(Ce){ie(le.$$.fragment,Ce),se=!1},d(Ce){Ce&&P(e),Ce&&P(ae),Ie(le,Ce),fe=!1,re()}}}function Qc(t,e,l){let{basepath:n="/"}=e,{sysinfo:i={}}=e,s={};Ol.subscribe(f=>{l(1,s=f)});let a=!1;async function r(f){l(2,a=!0);const u=new FormData(f.target),m=new URLSearchParams;for(let v of u){const[b,h]=v;m.append(b,h)}let d=await(await fetch("save",{method:"POST",body:m})).json();l(2,a=!1),kl.update(v=>(v.fwconsent=u.sf===!0?1:u.sf===!1?2:0,v.booting=d.reboot,v)),Ql(n)}return t.$$set=f=>{"basepath"in f&&l(4,n=f.basepath),"sysinfo"in f&&l(0,i=f.sysinfo)},[i,s,a,r,n]}class Xc extends It{constructor(e){super(),Lt(this,e,Qc,Yc,Dt,{basepath:4,sysinfo:0})}}function Cf(t,e,l){const n=t.slice();return n[30]=e[l],n[31]=e,n[32]=l,n}function Sf(t,e,l){const n=t.slice();return n[33]=e[l],n[35]=l,n}function Zc(t,e,l){const n=t.slice();return n[33]=e[l],n[35]=l,n}function Mf(t,e,l){const n=t.slice();return n[33]=e[l],n[35]=l,n}function Jc(t,e,l){const n=t.slice();return n[33]=e[l],n[35]=l,n}function Nf(t,e,l){const n=t.slice();return n[33]=e[l],n[35]=l,n}function Tf(t,e,l){const n=t.slice();return n[33]=e[l],n[35]=l,n}function Pf(t,e,l){const n=t.slice();return n[33]=e[l],n[35]=l,n}function Ef(t,e,l){const n=t.slice();return n[33]=e[l],n[35]=l,n}function Df(t){let e,l=t[1].o,n=[];for(let i=0;i0?"text-green-600":"text-gray-300"),c(Ve,"class",Je=t[32]{l(0,i=U)});let s=["mo","tu","we","th","fr","sa","su"],a={},r=!0,f=!1;Ru.subscribe(U=>{U.o&&(l(1,a=U),l(2,r=!1))}),H0();async function u(U){l(3,f=!0);const H=new URLSearchParams;H.append("r","true"),H.append("rc",a.o.length),a.o.forEach(function(ne,X){H.append("rt"+X,ne.t),H.append("rn"+X,ne.n),H.append("rd"+X,ne.d),H.append("ra"+X,ne.a),H.append("rh"+X,ne.h),H.append("rv"+X,ne.v),H.append("rsm"+X,ne.s.m),H.append("rsd"+X,ne.s.d),H.append("rem"+X,ne.e.m),H.append("red"+X,ne.e.d)}),await(await fetch("save",{method:"POST",body:H})).json(),l(3,f=!1),Ql(n+"configuration")}let m=function(U,H){return U.includes(H)?U=U.filter(function(Z){return Z!==H}):U.push(H),U},_=function(){let U=a.o;U.push({t:1,n:"",d:3,a:[0,1,2,3,4,5,6,7],h:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],v:.001,s:{m:0,d:0},e:{m:0,d:0}}),l(1,a.o=U,a)},d=function(U){let H=a.o;H.splice(U,1),l(1,a.o=H,a)},v=function(U){if(U<=0)return;let H=a.o;var Z=H[U];H[U]=H[U-1],H[U-1]=Z,l(1,a.o=H,a)},b=function(U){let H=a.o;if(!(U>=H.length-1)){var Z=H[U];H[U]=H[U+1],H[U+1]=Z,l(1,a.o=H,a)}};function h(U,H){U[H].n=this.value,l(1,a)}function M(U,H){U[H].d=Jt(this),l(1,a)}function k(U,H){U[H].t=Jt(this),l(1,a)}function T(U,H){U[H].v=$e(this.value),l(1,a)}const I=(U,H,Z,ne)=>l(1,Z[ne].a=m(U.a,H),a),O=(U,H,Z,ne)=>l(1,Z[ne].h=m(U.h,H),a),C=(U,H,Z,ne)=>l(1,Z[ne].h=m(U.h,H+8),a),B=(U,H,Z,ne)=>l(1,Z[ne].h=m(U.h,H+16),a);function L(U,H){U[H].s.d=Jt(this),l(1,a)}function z(U,H){U[H].s.m=Jt(this),l(1,a)}function y(U,H){U[H].e.d=Jt(this),l(1,a)}function V(U,H){U[H].e.m=Jt(this),l(1,a)}const R=U=>v(U),F=U=>v(U),Y=U=>b(U),j=U=>b(U),W=U=>d(U),K=U=>d(U);return t.$$set=U=>{"basepath"in U&&l(11,n=U.basepath)},[i,a,r,f,s,u,m,_,d,v,b,n,h,M,k,T,I,O,C,B,L,z,y,V,R,F,Y,j,W,K]}class lm extends It{constructor(e){super(),Lt(this,e,tm,em,Dt,{basepath:11},null,[-1,-1])}}function Bf(t,e,l){const n=t.slice();return n[13]=e[l],n[14]=e,n[15]=l,n}function Uf(t,e,l){const n=t.slice();return n[13]=e[l],n[16]=e,n[17]=l,n}function jf(t){let e,l,n,i=t[1],s=[];for(let a=0;a{l(3,r=M)});let f=!1,u,m;async function _(){if(confirm("Clear all data?"))for(let M in i)(M.startsWith("i")||M.startsWith("e"))&&l(0,i[M]=0,i)}let d=!1;async function v(M){l(5,d=!0);const k=new FormData(M.target),T=new URLSearchParams;for(let O of k){const[C,B]=O;T.append(C,B)}await(await fetch(s,{method:"POST",body:T})).json(),l(5,d=!1),Ql(a)}function b(M){i[M.key]=$e(this.value),l(0,i)}function h(M){i[M.key]=$e(this.value),l(0,i)}return t.$$set=M=>{"prefix"in M&&l(8,n=M.prefix),"data"in M&&l(0,i=M.data),"url"in M&&l(9,s=M.url),"basepath"in M&&l(10,a=M.basepath)},t.$$.update=()=>{if(t.$$.dirty&263){l(1,u=[]),l(2,m=[]);for(let M in i){let k=[];M.startsWith("i")?k=u:M.startsWith("e")&&(k=m,i[M]&&l(4,f=!0)),k.push({key:M,name:n+" "+M.substring(1),value:i[M]})}}},[i,u,m,r,f,d,_,v,n,s,a,b,h]}class Uu extends It{constructor(e){super(),Lt(this,e,im,nm,Dt,{prefix:8,data:0,url:9,basepath:10})}}function sm(t){let e,l;return e=new j0({props:{data:t[7],sysinfo:t[6],prices:t[1],dayPlot:t[2],monthPlot:t[3],temperatures:t[4],translations:t[5],tariffData:t[8]}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,i){const s={};i&128&&(s.data=n[7]),i&64&&(s.sysinfo=n[6]),i&2&&(s.prices=n[1]),i&4&&(s.dayPlot=n[2]),i&8&&(s.monthPlot=n[3]),i&16&&(s.temperatures=n[4]),i&32&&(s.translations=n[5]),i&256&&(s.tariffData=n[8]),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function om(t){let e,l;return e=new Sc({props:{sysinfo:t[6],basepath:t[0],data:t[7]}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,i){const s={};i&64&&(s.sysinfo=n[6]),i&1&&(s.basepath=n[0]),i&128&&(s.data=n[7]),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function am(t){let e,l;return e=new lm({props:{basepath:t[0]}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,i){const s={};i&1&&(s.basepath=n[0]),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function fm(t){let e,l;return e=new Rc({props:{sysinfo:t[6],data:t[7]}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,i){const s={};i&64&&(s.sysinfo=n[6]),i&128&&(s.data=n[7]),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function um(t){let e,l;return e=new os({props:{title:"CA",action:"/mqtt-ca"}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p:Ze,i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function rm(t){let e,l;return e=new os({props:{title:"certificate",action:"/mqtt-cert"}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p:Ze,i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function cm(t){let e,l;return e=new os({props:{title:"private key",action:"/mqtt-key"}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p:Ze,i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function mm(t){let e,l;return e=new Xc({props:{sysinfo:t[6],basepath:t[0]}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,i){const s={};i&64&&(s.sysinfo=n[6]),i&1&&(s.basepath=n[0]),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function _m(t){let e,l;return e=new Gc({props:{sysinfo:t[6]}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,i){const s={};i&64&&(s.sysinfo=n[6]),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function pm(t){let e,l;return e=new Hc({props:{sysinfo:t[6],basepath:t[0]}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,i){const s={};i&64&&(s.sysinfo=n[6]),i&1&&(s.basepath=n[0]),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function dm(t){let e,l;return e=new Uu({props:{prefix:"UTC Hour",data:t[2],url:"/dayplot",basepath:t[0]}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,i){const s={};i&4&&(s.data=n[2]),i&1&&(s.basepath=n[0]),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function vm(t){let e,l;return e=new Uu({props:{prefix:"Day",data:t[3],url:"/monthplot",basepath:t[0]}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,i){const s={};i&8&&(s.data=n[3]),i&1&&(s.basepath=n[0]),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function hm(t){let e,l,n,i,s,a,r,f,u,m,_,d,v,b,h,M,k,T,I,O,C,B,L,z,y,V;return e=new z1({props:{data:t[7],basepath:t[0]}}),n=new Ll({props:{path:"/",$$slots:{default:[sm]},$$scope:{ctx:t}}}),s=new Ll({props:{path:"/configuration",$$slots:{default:[om]},$$scope:{ctx:t}}}),r=new Ll({props:{path:"/priceconfig",$$slots:{default:[am]},$$scope:{ctx:t}}}),u=new Ll({props:{path:"/status",$$slots:{default:[fm]},$$scope:{ctx:t}}}),_=new Ll({props:{path:"/mqtt-ca",$$slots:{default:[um]},$$scope:{ctx:t}}}),v=new Ll({props:{path:"/mqtt-cert",$$slots:{default:[rm]},$$scope:{ctx:t}}}),h=new Ll({props:{path:"/mqtt-key",$$slots:{default:[cm]},$$scope:{ctx:t}}}),k=new Ll({props:{path:"/consent",$$slots:{default:[mm]},$$scope:{ctx:t}}}),I=new Ll({props:{path:"/setup",$$slots:{default:[_m]},$$scope:{ctx:t}}}),C=new Ll({props:{path:"/vendor",$$slots:{default:[pm]},$$scope:{ctx:t}}}),L=new Ll({props:{path:"/edit-day",$$slots:{default:[dm]},$$scope:{ctx:t}}}),y=new Ll({props:{path:"/edit-month",$$slots:{default:[vm]},$$scope:{ctx:t}}}),{c(){Oe(e.$$.fragment),l=g(),Oe(n.$$.fragment),i=g(),Oe(s.$$.fragment),a=g(),Oe(r.$$.fragment),f=g(),Oe(u.$$.fragment),m=g(),Oe(_.$$.fragment),d=g(),Oe(v.$$.fragment),b=g(),Oe(h.$$.fragment),M=g(),Oe(k.$$.fragment),T=g(),Oe(I.$$.fragment),O=g(),Oe(C.$$.fragment),B=g(),Oe(L.$$.fragment),z=g(),Oe(y.$$.fragment)},m(R,F){Le(e,R,F),E(R,l,F),Le(n,R,F),E(R,i,F),Le(s,R,F),E(R,a,F),Le(r,R,F),E(R,f,F),Le(u,R,F),E(R,m,F),Le(_,R,F),E(R,d,F),Le(v,R,F),E(R,b,F),Le(h,R,F),E(R,M,F),Le(k,R,F),E(R,T,F),Le(I,R,F),E(R,O,F),Le(C,R,F),E(R,B,F),Le(L,R,F),E(R,z,F),Le(y,R,F),V=!0},p(R,F){const Y={};F&128&&(Y.data=R[7]),F&1&&(Y.basepath=R[0]),e.$set(Y);const j={};F&1022&&(j.$$scope={dirty:F,ctx:R}),n.$set(j);const W={};F&705&&(W.$$scope={dirty:F,ctx:R}),s.$set(W);const K={};F&513&&(K.$$scope={dirty:F,ctx:R}),r.$set(K);const U={};F&704&&(U.$$scope={dirty:F,ctx:R}),u.$set(U);const H={};F&512&&(H.$$scope={dirty:F,ctx:R}),_.$set(H);const Z={};F&512&&(Z.$$scope={dirty:F,ctx:R}),v.$set(Z);const ne={};F&512&&(ne.$$scope={dirty:F,ctx:R}),h.$set(ne);const X={};F&577&&(X.$$scope={dirty:F,ctx:R}),k.$set(X);const $={};F&576&&($.$$scope={dirty:F,ctx:R}),I.$set($);const ae={};F&577&&(ae.$$scope={dirty:F,ctx:R}),C.$set(ae);const le={};F&517&&(le.$$scope={dirty:F,ctx:R}),L.$set(le);const se={};F&521&&(se.$$scope={dirty:F,ctx:R}),y.$set(se)},i(R){V||(J(e.$$.fragment,R),J(n.$$.fragment,R),J(s.$$.fragment,R),J(r.$$.fragment,R),J(u.$$.fragment,R),J(_.$$.fragment,R),J(v.$$.fragment,R),J(h.$$.fragment,R),J(k.$$.fragment,R),J(I.$$.fragment,R),J(C.$$.fragment,R),J(L.$$.fragment,R),J(y.$$.fragment,R),V=!0)},o(R){ie(e.$$.fragment,R),ie(n.$$.fragment,R),ie(s.$$.fragment,R),ie(r.$$.fragment,R),ie(u.$$.fragment,R),ie(_.$$.fragment,R),ie(v.$$.fragment,R),ie(h.$$.fragment,R),ie(k.$$.fragment,R),ie(I.$$.fragment,R),ie(C.$$.fragment,R),ie(L.$$.fragment,R),ie(y.$$.fragment,R),V=!1},d(R){Ie(e,R),R&&P(l),Ie(n,R),R&&P(i),Ie(s,R),R&&P(a),Ie(r,R),R&&P(f),Ie(u,R),R&&P(m),Ie(_,R),R&&P(d),Ie(v,R),R&&P(b),Ie(h,R),R&&P(M),Ie(k,R),R&&P(T),Ie(I,R),R&&P(O),Ie(C,R),R&&P(B),Ie(L,R),R&&P(z),Ie(y,R)}}}function bm(t){let e,l,n,i;const s=[wm,km],a=[];function r(f,u){return f[6].trying?0:1}return e=r(t),l=a[e]=s[e](t),{c(){l.c(),n=$t()},m(f,u){a[e].m(f,u),E(f,n,u),i=!0},p(f,u){let m=e;e=r(f),e===m?a[e].p(f,u):(bt(),ie(a[m],1,1,()=>{a[m]=null}),gt(),l=a[e],l?l.p(f,u):(l=a[e]=s[e](f),l.c()),J(l,1),l.m(n.parentNode,n))},i(f){i||(J(l),i=!0)},o(f){ie(l),i=!1},d(f){a[e].d(f),f&&P(n)}}}function gm(t){let e,l;return e=new hl({props:{active:"true",message:"Device is upgrading, please wait"}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p:Ze,i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function km(t){let e,l;return e=new hl({props:{active:"true",message:"Device is booting, please wait"}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p:Ze,i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function wm(t){let e,l;return e=new hl({props:{active:"true",message:"Device is booting, please wait. Trying to reach it on "+t[6].trying}}),{c(){Oe(e.$$.fragment)},m(n,i){Le(e,n,i),l=!0},p(n,i){const s={};i&64&&(s.message="Device is booting, please wait. Trying to reach it on "+n[6].trying),e.$set(s)},i(n){l||(J(e.$$.fragment,n),l=!0)},o(n){ie(e.$$.fragment,n),l=!1},d(n){Ie(e,n)}}}function Cm(t){let e,l,n,i,s,a;l=new vu({props:{basepath:t[0],$$slots:{default:[hm]},$$scope:{ctx:t}}});const r=[gm,bm],f=[];function u(m,_){return m[6].upgrading?0:m[6].booting?1:-1}return~(i=u(t))&&(s=f[i]=r[i](t)),{c(){e=p("div"),Oe(l.$$.fragment),n=g(),s&&s.c(),c(e,"class","container mx-auto m-3")},m(m,_){E(m,e,_),Le(l,e,null),o(e,n),~i&&f[i].m(e,null),a=!0},p(m,[_]){const d={};_&1&&(d.basepath=m[0]),_&1023&&(d.$$scope={dirty:_,ctx:m}),l.$set(d);let v=i;i=u(m),i===v?~i&&f[i].p(m,_):(s&&(bt(),ie(f[v],1,1,()=>{f[v]=null}),gt()),~i?(s=f[i],s?s.p(m,_):(s=f[i]=r[i](m),s.c()),J(s,1),s.m(e,null)):s=null)},i(m){a||(J(l.$$.fragment,m),J(s),a=!0)},o(m){ie(l.$$.fragment,m),ie(s),a=!1},d(m){m&&P(e),Ie(l),~i&&f[i].d()}}}function Sm(t,e,l){let n=document.getElementsByTagName("base")[0].getAttribute("href");n||(n="/");let i;ts.subscribe(d=>{l(1,i=d)});let s;Mu.subscribe(d=>{l(2,s=d)});let a;Nu.subscribe(d=>{l(3,a=d)});let r;Tu.subscribe(d=>{l(4,r=d)});let f={};Ol.subscribe(d=>{l(5,f=d)});let u={};kl.subscribe(d=>{var v;l(6,u=d),u.vndcfg===!1?Ql(n+"vendor"):u.usrcfg===!1?Ql(n+"setup"):u.fwconsent===0&&Ql(n+"consent"),u.ui.k===1?document.documentElement.classList.add("dark"):u.ui.k===0?document.documentElement.classList.remove("dark"):window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),u.ui.lang&&u.ui.lang!=((v=f==null?void 0:f.language)==null?void 0:v.code)&&Du(u.ui.lang)});let m={};r1.subscribe(d=>{l(7,m=d),D0(d)});let _={};return Eu.subscribe(d=>{l(8,_=d)}),Pu(),[n,i,s,a,r,f,u,m,_]}class Mm extends It{constructor(e){super(),Lt(this,e,Sm,Cm,Dt,{})}}new Mm({target:document.getElementById("app")}); +Occurred in: ${i}`:"",a=Di(t),r=Pf(e)?e(a):e;return`<${a}> ${r}${s}`}const Hf=t=>(...e)=>t(Gu(...e)),zf=Hf(t=>{throw new Error(t)}),Gn=Hf(console.warn),es=4,Vu=3,Ku=2,Yu=1,Qu=1;function Xu(t,e){const l=t.default?0:Nl(t.fullPath).reduce((n,i)=>{let s=n;return s+=es,Ru(i)?s+=Qu:Fu(i)?s+=Ku:Rf(i)?s-=es+Yu:s+=Vu,s},0);return{route:t,score:l,index:e}}function Zu(t){return t.map(Xu).sort((e,l)=>e.scorel.score?-1:e.index-l.index)}function Wf(t,e){let l,n;const[i]=e.split("?"),s=Nl(i),a=s[0]==="",r=Zu(t);for(let f=0,c=r.length;f({...m,params:d,uri:C});if(m.default){n=v(e);continue}const g=Nl(m.fullPath),b=Math.max(s.length,g.length);let k=0;for(;k{c===".."?f.pop():c!=="."&&f.push(c)}),Xn(`/${f.join("/")}`,n)}function ts(t,e){const{pathname:l,hash:n="",search:i="",state:s}=t,a=Nl(e,!0),r=Nl(l,!0);for(;a.length;)a[0]!==r[0]&&zf(Ul,`Invalid state: All locations must begin with the basepath "${e}", found "${l}"`),a.shift(),r.shift();return{pathname:An(...r),hash:n,search:i,state:s}}const ls=t=>t.length===1?"":t,qi=t=>{const e=t.indexOf("?"),l=t.indexOf("#"),n=e!==-1,i=l!==-1,s=i?ls(kn(t,l)):"",a=i?kn(t,0,l):t,r=n?ls(kn(a,e)):"";return{pathname:(n?kn(a,0,e):a)||"/",search:r,hash:s}},$u=t=>{const{pathname:e,search:l,hash:n}=t;return e+l+n};function xu(t,e,l){return An(l,Ju(t,e))}function er(t,e){const l=Pi(Bu(t)),n=Nl(l,!0),i=Nl(e,!0).slice(0,n.length),s=Gf({fullPath:l},An(...i));return s&&s.uri}const Zn="POP",tr="PUSH",lr="REPLACE";function Jn(t){return{...t.location,pathname:encodeURI(decodeURI(t.location.pathname)),state:t.history.state,_key:t.history.state&&t.history.state._key||"initial"}}function nr(t){let e=[],l=Jn(t),n=Zn;const i=(s=e)=>s.forEach(a=>a({location:l,action:n}));return{get location(){return l},listen(s){e.push(s);const a=()=>{l=Jn(t),n=Zn,i([s])};i([s]);const r=qf(t,"popstate",a);return()=>{r(),e=e.filter(f=>f!==s)}},navigate(s,a){const{state:r={},replace:f=!1}=a||{};if(n=f?lr:tr,Ef(s))a&&Gn(yf,"Navigation options (state or replace) are not supported, when passing a number as the first argument to navigate. They are ignored."),n=Zn,t.history.go(s);else{const c={...r,_key:Au()};try{t.history[f?"replaceState":"pushState"](c,"",s)}catch{t.location[f?"replace":"assign"](s)}}l=Jn(t),i()}}}function $n(t,e){return{...qi(e),state:t}}function ir(t="/"){let e=0,l=[$n(null,t)];return{get entries(){return l},get location(){return l[e]},addEventListener(){},removeEventListener(){},history:{get state(){return l[e].state},pushState(n,i,s){e++,l=l.slice(0,e),l.push($n(n,s))},replaceState(n,i,s){l[e]=$n(n,s)},go(n){const i=e+n;i<0||i>l.length-1||(e=i)}}}}const sr=!!(!Ll&&window.document&&window.document.createElement),or=!Ll&&window.location.origin==="null",Vf=nr(sr&&!or?window:ir()),{navigate:Al}=Vf;let Tl=null,Kf=!0;function ar(t,e){const l=document.querySelectorAll("[data-svnav-router]");for(let n=0;nTl.level||t.level===Tl.level&&ar(t.routerId,Tl.routerId))&&(Tl=t)}function ur(){Tl=null}function rr(){Kf=!1}function ns(t){if(!t)return!1;const e="tabindex";try{if(!t.hasAttribute(e)){t.setAttribute(e,"-1");let l;l=qf(t,"blur",()=>{t.removeAttribute(e),l()})}return t.focus(),document.activeElement===t}catch{return!1}}function cr(t,e){return Number(t.dataset.svnavRouteEnd)===e}function mr(t){return/^H[1-6]$/i.test(t.tagName)}function is(t,e=document){return e.querySelector(t)}function _r(t){let l=is(`[data-svnav-route-start="${t}"]`).nextElementSibling;for(;!cr(l,t);){if(mr(l))return l;const n=is("h1,h2,h3,h4,h5,h6",l);if(n)return n;l=l.nextElementSibling}return null}function pr(t){Promise.resolve(Yl(t.focusElement)).then(e=>{const l=e||_r(t.id);l||Gn(Ul,`Could not find an element to focus. You should always render a header for accessibility reasons, or set a custom focus element via the "useFocus" hook. If you don't want this Route or Router to manage focus, pass "primary={false}" to it.`,t,Yn),!ns(l)&&ns(document.documentElement)})}const dr=(t,e,l)=>(n,i)=>Tu().then(()=>{if(!Tl||Kf){rr();return}if(n&&pr(Tl.route),t.announcements&&i){const{path:s,fullPath:a,meta:r,params:f,uri:c}=Tl.route,m=t.createAnnouncement({path:s,fullPath:a,meta:r,params:f,uri:c},Yl(l));Promise.resolve(m).then(_=>{e.set(_)})}ur()}),vr="position:fixed;top:-1px;left:0;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;";function hr(t){let e,l,n=[{role:"status"},{"aria-atomic":"true"},{"aria-live":"polite"},{"data-svnav-announcer":""},Af(t[6],vr)],i={};for(let s=0;s`Navigated to ${Y.uri}`,announcements:!0,...g},C=m,E=Pi(m),R=Ol(ii),I=Ol(Xl),S=!R,B=gr(),N=v&&!(I&&!I.manageFocus),H=tl("");Ml(t,H,Y=>l(0,r=Y));const K=I?I.disableInlineStyles:b,z=tl([]);Ml(t,z,Y=>l(20,a=Y));const L=tl(null);Ml(t,L,Y=>l(18,i=Y));let F=!1;const Z=S?0:I.level+1,G=S?tl((()=>ts(Ll?qi(_):d.location,E))()):R;Ml(t,G,Y=>l(17,n=Y));const V=tl(n);Ml(t,V,Y=>l(19,s=Y));const U=dr(k,H,G),j=Y=>oe=>oe.filter(ie=>ie.id!==Y);function J(Y){if(Ll){if(F)return;const oe=Gf(Y,n.pathname);if(oe)return F=!0,oe}else z.update(oe=>{const ie=j(Y.id)(oe);return ie.push(Y),ie})}function ae(Y){z.update(j(Y))}return!S&&m!==ss&&Gn(Ul,'Only top-level Routers can have a "basepath" prop. It is ignored.',{basepath:m}),S&&(Cf(()=>d.listen(oe=>{const ie=ts(oe.location,E);V.set(n),G.set(ie)})),Nn(ii,G)),Nn(Xl,{activeRoute:L,registerRoute:J,unregisterRoute:ae,manageFocus:N,level:Z,id:B,history:S?d:I.history,basepath:S?E:I.basepath,disableInlineStyles:K}),t.$$set=Y=>{"basepath"in Y&&l(11,m=Y.basepath),"url"in Y&&l(12,_=Y.url),"history"in Y&&l(13,d=Y.history),"primary"in Y&&l(14,v=Y.primary),"a11y"in Y&&l(15,g=Y.a11y),"disableInlineStyles"in Y&&l(16,b=Y.disableInlineStyles),"$$scope"in Y&&l(21,c=Y.$$scope)},t.$$.update=()=>{if(t.$$.dirty[0]&2048&&m!==C&&Gn(Ul,'You cannot change the "basepath" prop. It is ignored.'),t.$$.dirty[0]&1179648){const Y=Wf(a,n.pathname);L.set(Y)}if(t.$$.dirty[0]&655360&&S){const Y=!!n.hash,oe=!Y&&N,ie=!Y||n.pathname!==s.pathname;U(oe,ie)}t.$$.dirty[0]&262144&&N&&i&&i.primary&&fr({level:Z,routerId:B,route:i})},[r,k,S,B,N,H,K,z,L,G,V,m,_,d,v,g,b,n,i,s,a,c,f]}class wr extends Ct{constructor(e){super(),wt(this,e,kr,br,kt,{basepath:11,url:12,history:13,primary:14,a11y:15,disableInlineStyles:16},null,[-1,-1])}}const Yf=wr;function On(t,e,l=Xl,n=Ul){Ol(l)||zf(t,s=>`You cannot use ${s} outside of a ${Di(n)}.`,e)}const Cr=t=>{const{subscribe:e}=Ol(t);return{subscribe:e}};function Qf(){return On(Bf),Cr(ii)}function Xf(){const{history:t}=Ol(Xl);return t}function Zf(){const t=Ol(Lf);return t?Ou(t,e=>e.base):tl("/")}function Jf(){On(jf);const t=Zf(),{basepath:e}=Ol(Xl);return n=>xu(n,Yl(t),e)}function Sr(){On(Uf);const t=Jf(),{navigate:e}=Xf();return(n,i)=>{const s=Ef(n)?n:t(n);return e(s,i)}}const Mr=t=>({params:t&16,location:t&8}),os=t=>({params:Ll?Yl(t[10]):t[4],location:t[3],navigate:t[11]});function as(t){let e,l;return e=new Yf({props:{primary:t[1],$$slots:{default:[Pr]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,i){const s={};i&2&&(s.primary=n[1]),i&528409&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function Nr(t){let e;const l=t[18].default,n=Ci(l,t,t[19],os);return{c(){n&&n.c()},m(i,s){n&&n.m(i,s),e=!0},p(i,s){n&&n.p&&(!e||s&524312)&&Mi(n,l,i,i[19],e?Si(l,i[19],s,Mr):Ni(i[19]),os)},i(i){e||(X(n,i),e=!0)},o(i){le(n,i),e=!1},d(i){n&&n.d(i)}}}function Tr(t){let e,l,n;const i=[{location:t[3]},{navigate:t[11]},Ll?Yl(t[10]):t[4],t[12]];var s=t[0];function a(r){let f={};for(let c=0;c{Ne(m,1)}),dt()}s?(e=Zi(s,a()),Te(e.$$.fragment),X(e.$$.fragment,1),Me(e,l.parentNode,l)):e=null}else s&&e.$set(c)},i(r){n||(e&&X(e.$$.fragment,r),n=!0)},o(r){e&&le(e.$$.fragment,r),n=!1},d(r){r&&T(l),e&&Ne(e,r)}}}function Pr(t){let e,l,n,i;const s=[Tr,Nr],a=[];function r(f,c){return f[0]!==null?0:1}return e=r(t),l=a[e]=s[e](t),{c(){l.c(),n=Wt()},m(f,c){a[e].m(f,c),P(f,n,c),i=!0},p(f,c){let m=e;e=r(f),e===m?a[e].p(f,c):(pt(),le(a[m],1,1,()=>{a[m]=null}),dt(),l=a[e],l?l.p(f,c):(l=a[e]=s[e](f),l.c()),X(l,1),l.m(n.parentNode,n))},i(f){i||(X(l),i=!0)},o(f){le(l),i=!1},d(f){a[e].d(f),f&&T(n)}}}function Er(t){let e,l,n,i,s,a=[ni(t[7]),{"data-svnav-route-start":t[5]}],r={};for(let _=0;_{f=null}),dt())},i(_){s||(X(f),s=!0)},o(_){le(f),s=!1},d(_){_&&T(e),_&&T(l),f&&f.d(_),_&&T(n),_&&T(i)}}}const Dr=Df();function qr(t,e,l){let n;const i=["path","component","meta","primary"];let s=zn(e,i),a,r,f,c,{$$slots:m={},$$scope:_}=e,{path:d=""}=e,{component:v=null}=e,{meta:g={}}=e,{primary:b=!0}=e;On(Yn,e);const k=Dr(),{registerRoute:C,unregisterRoute:E,activeRoute:R,disableInlineStyles:I}=Ol(Xl);Ml(t,R,F=>l(16,a=F));const S=Zf();Ml(t,S,F=>l(17,f=F));const B=Qf();Ml(t,B,F=>l(3,r=F));const N=tl(null);let H;const K=tl(),z=tl({});Ml(t,z,F=>l(4,c=F)),Nn(Lf,K),Nn(Lu,z),Nn(Iu,N);const L=Sr();return Ll||Mu(()=>E(k)),t.$$set=F=>{l(24,e=Sl(Sl({},e),Hn(F))),l(12,s=zn(e,i)),"path"in F&&l(13,d=F.path),"component"in F&&l(0,v=F.component),"meta"in F&&l(14,g=F.meta),"primary"in F&&l(1,b=F.primary),"$$scope"in F&&l(19,_=F.$$scope)},t.$$.update=()=>{if(t.$$.dirty&155658){const F=d==="",Z=An(f,d),y={id:k,path:d,meta:g,default:F,fullPath:F?"":Z,base:F?f:er(Z,r.pathname),primary:b,focusElement:N};K.set(y),l(15,H=C(y))}if(t.$$.dirty&98304&&l(2,n=!!(H||a&&a.id===k)),t.$$.dirty&98308&&n){const{params:F}=H||a;z.set(F)}},e=Hn(e),[v,b,n,r,c,k,R,I,S,B,z,L,s,d,g,H,a,f,m,_]}class Ar extends Ct{constructor(e){super(),wt(this,e,qr,Er,kt,{path:13,component:0,meta:14,primary:1})}}const _l=Ar;function Or(t){let e,l,n,i;const s=t[13].default,a=Ci(s,t,t[12],null);let r=[{href:t[0]},t[2],t[1]],f={};for(let c=0;cl(11,_=N));const R=Nu(),I=Jf(),{navigate:S}=Xf();function B(N){R("click",N),qu(N)&&(N.preventDefault(),S(n,{state:k,replace:a||b}))}return t.$$set=N=>{l(19,e=Sl(Sl({},e),Hn(N))),l(18,m=zn(e,c)),"to"in N&&l(5,g=N.to),"replace"in N&&l(6,b=N.replace),"state"in N&&l(7,k=N.state),"getProps"in N&&l(8,C=N.getProps),"$$scope"in N&&l(12,v=N.$$scope)},t.$$.update=()=>{t.$$.dirty&2080&&l(0,n=I(g,_)),t.$$.dirty&2049&&l(10,i=si(_.pathname,n)),t.$$.dirty&2049&&l(9,s=n===_.pathname),t.$$.dirty&2049&&(a=qi(n)===$u(_)),t.$$.dirty&512&&l(2,r=s?{"aria-current":"page"}:{}),l(1,f=(()=>{if(Pf(C)){const N=C({location:_,href:n,isPartiallyCurrent:i,isCurrent:s});return{...m,...N}}return m})())},e=Hn(e),[n,f,r,E,B,g,b,k,C,s,i,_,v,d]}class Ir extends Ct{constructor(e){super(),wt(this,e,Lr,Or,kt,{to:5,replace:6,state:7,getProps:8})}}const ml=Ir;function ql(t){return t===1?"green":t===2?"yellow":t===3?"red":"gray"}function Rr(t,e){return t>218&&t<242?"#23ac05":t>212&&t<248?"#b1d900":t>208&&t<252?"#a3b200":"#b20000"}function Ai(t,e){let l;return t>90?l="#b20000":t>85?l="#b19601":t>80?l="#a3b200":t>75?l="#569f12":l="#23ac05",l}function Pn(t){return t>75?"#23ac05":t>50?"#77d900":t>25?"#94d900":"#569f12"}function Vn(t){switch(t){case 1:return"Aidon";case 2:return"Kaifa";case 3:return"Kamstrup";case 8:return"Iskra";case 9:return"Landis+Gyr";case 10:return"Sagemcom";default:return"Unknown"}}function bt(t){for(t=t.toString();t.length<2;)t="0"+t;return t}function Je(t,e){switch(e){case 5:switch(t){case"esp8266":return"Pow-K (GPIO12)";case"esp32s2":return"Pow-K+"}case 7:switch(t){case"esp8266":return"Pow-U (GPIO12)";case"esp32s2":return"Pow-U+"}case 6:return"Pow-P1";case 51:return"Wemos S2 mini";case 50:return"Generic ESP32-S2";case 201:return"Wemos LOLIN D32";case 202:return"Adafruit HUZZAH32";case 203:return"DevKitC";case 241:return"LilyGO T-ETH-POE";case 242:return"M5 PoESP32";case 243:return"WT32-ETH01";case 200:return"Generic ESP32";case 2:return"HAN Reader 2.0 by Max Spencer";case 0:return"Custom hardware by Roar Fredriksen";case 1:return"Kamstrup module by Egil Opsahl";case 8:return"µHAN mosquito by dbeinder";case 3:return"Pow-K (UART0)";case 4:return"Pow-U (UART0)";case 101:return"Wemos D1 mini";case 100:return"Generic ESP8266";case 70:return"Generic ESP32-C3";case 71:return"ESP32-C3-DevKitM-1";case 80:return"Generic ESP32-S3"}return"Unknown"}function Kl(t){switch(t){case 2:case 4:case 7:return!0}return!1}function yt(t,e){return t==1||t==2&&e}function cl(t){return"https://github.com/UtilitechAS/amsreader-firmware/wiki/"+t}function Bt(t,e){return t==null||isNaN(t)?"-":(isNaN(e)&&(e=t<1?2:t<10?1:0),t.toFixed(e))}function Dl(t,e){return t.setTime(t.getTime()+e*36e5),t}function Fr(t){return t=="EOE"?"ENTSO-E":t=="HKS"?"hvakosterstrommen.no":t=="EDS"?"Energi Data Service":t=="MIX"?"Mixed sources":"Unknown ("+t+")"}function Br(t){return t=="EOE"?"https://transparency.entsoe.eu/":t=="HKS"?"https://www.hvakosterstrommen.no/":t=="EDS"?"https://www.energidataservice.dk/":"#"}let Rn=0;function En(t,e){var l="";Rn++;var n=function(){setTimeout(En,1e3,t,e)};if(t.net.ip&&Rn%3==0){if(!t.net.ip){n();return}l="http://"+t.net.ip}else t.hostname&&Rn%3==1?l="http://"+t.hostname:t.hostname&&Rn%3==2?l="http://"+t.hostname+".local":l="";console&&console.log("Trying url "+l),e&&e(l);var i=new XMLHttpRequest;i.timeout=5e3,i.addEventListener("abort",n),i.addEventListener("error",n),i.addEventListener("timeout",n),i.addEventListener("load",function(s){window.location.href=l||"/"}),i.open("GET",l+"/is-alive",!0),i.send()}function Yt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function fs(t){return t.startsWith("esp32")?"esp32":t}function sl(t,e){let l=[t,e];return typeof t>"u"?(l[0]="-",l[1]=e):t>=1e9?(l[0]=(t/1e6).toFixed(t>1e10?0:1),l[1]="M"+e):t>1e4?(l[0]=(t/1e3).toFixed(t>1e6?0:t>1e5?1:2),l[1]="k"+e):(l[0]=t.toFixed(0),l[1]=e),l}let jn={},oi=[];async function Ur(t,e={}){const{timeout:l=8e3}=e,n=new AbortController,i=setTimeout(()=>n.abort(),l),s=await fetch(t,{...e,signal:n.signal});return clearTimeout(i),s}let xn;async function $f(){if(oi.length){let t=oi.shift();delete jn[t.resource];try{let e=await Ur(t.resource,t.options);for(let l in t.callbacks)t.callbacks[l](e.clone())}catch(e){console.error("Error calling "+t.resource,e);for(let l in t.callbacks)t.callbacks[l]()}}xn&&clearTimeout(xn),xn=setTimeout($f,100)}$f();async function pl(t,e={}){let l;return jn[t]?l=jn[t]:(l={resource:t,options:e,callbacks:[]},jn[t]=l,oi.push(l)),new Promise(i=>l.callbacks.push(i))}let Cl={version:"",chip:"",mac:null,apmac:null,vndcfg:null,usrcfg:null,fwconsent:null,booting:!1,upgrading:!1,ui:{},security:0,boot_reason:0,upgrade:{x:-1,e:0,f:null,t:null},trying:null,if:{eth:!1}};async function Oi(){Cl=await(await pl("sysinfo.json?t="+Math.floor(Date.now()/1e3))).json(),ol.set(Cl)}const ol=tl(Cl,t=>(Oi(),function(){}));function jr(t){ol.update(e=>(e.trying=t,e))}let Fn=0,us=-127,rs=null,yr={};const Hr=Of(yr,t=>{let e,l;async function n(){pl("data.json").then(i=>i.json()).then(i=>{t(i),us!=i.t&&(us=i.t,setTimeout(zr,2e3)),rs==null&&i.pe&&i.p!=null&&(rs=i.p,eu()),Cl.upgrading?window.location.reload():(!Cl||!Cl.chip||Cl.booting||Fn>1&&!Kl(Cl.board))&&(Oi(),Pl&&clearTimeout(Pl),Pl=setTimeout(ui,2e3),El&&clearTimeout(El),El=setTimeout(ci,3e3)),Pl||(Pl=ui()),El||(El=ci());let s=5e3;if(Kl(Cl.board)&&i.v>2.5){let a=3.3-Math.min(3.3,i.v);a>0&&(s=Math.max(a,.1)*10*5e3)}s>5e3&&console.log("Next in "+s+"ms"),e&&clearTimeout(e),e=setTimeout(n,s),Fn=0}).catch(i=>{Fn++,Fn>3?(t({em:3,hm:0,wm:0,mm:0}),e=setTimeout(n,15e3),l||(l=setTimeout(En,5e3,Cl,jr))):e=setTimeout(n,Kl(Cl.board)?1e4:5e3)})}return n(),function(){clearTimeout(e)}});let ai={},wn;const Li=tl(ai);async function xf(){let t=!1;Li.update(e=>{for(var l=0;l<36;l++){if(e[bt(l)]==null){t=l<12;break}e[bt(l)]=e[bt(l+1)]}return e}),t?eu():wn=setTimeout(xf,(60-new Date().getMinutes())*6e4)}async function eu(){wn&&(clearTimeout(wn),wn=0),ai=await(await pl("energyprice.json")).json(),Li.set(ai),wn=setTimeout(xf,(60-new Date().getMinutes())*6e4)}let fi={},Pl;async function ui(){Pl&&(clearTimeout(Pl),Pl=0),fi=await(await pl("dayplot.json")).json(),tu.set(fi),Pl=setTimeout(ui,(60-new Date().getMinutes())*6e4+20)}const tu=tl(fi,t=>function(){});let ri={},El;async function ci(){El&&(clearTimeout(El),El=0),ri=await(await pl("monthplot.json")).json(),lu.set(ri),El=setTimeout(ci,(24-new Date().getHours())*36e5+40)}const lu=tl(ri,t=>function(){});let mi={};async function zr(){mi=await(await pl("temperature.json")).json(),nu.set(mi)}const nu=tl(mi,t=>function(){});let _i={},Bn;async function iu(){Bn&&(clearTimeout(Bn),Bn=0),_i=await(await pl("tariff.json")).json(),su.set(_i),Bn=setTimeout(iu,(60-new Date().getMinutes())*6e4+30)}const su=tl(_i,t=>function(){});let pi=[];const Ii=tl(pi);async function Wr(){pi=await(await pl("https://api.github.com/repos/UtilitechAS/amsreader-firmware/releases")).json(),Ii.set(pi)}let di=!1;const dl=tl(di);async function ou(t){di=await(await pl("translations.json"+(t?"?lang="+t:""))).json(),dl.set(di)}ou();function Kn(t){return"WARNING: "+t+" must be connected to an external power supply during firmware upgrade. Failure to do so may cause power-down during upload resulting in non-functioning unit."}async function au(t){await(await fetch("upgrade?expected_version="+t,{method:"POST"})).json()}function fu(t,e){if(!(!e||e.message))if(/^v\d{1,2}\.\d{1,2}\.\d{1,2}$/.test(t)){let l=t.substring(1).split("."),n=parseInt(l[0]),i=parseInt(l[1]),s=parseInt(l[2]),a=[...e];a.reverse();let r,f,c;for(let m=0;ms&&(r=_):b==i+1&&(f=_);else if(g==n+1)if(c){let C=c.tag_name.substring(1).split(".");parseInt(C[0]);let E=parseInt(C[1]);parseInt(C[2]),b==E&&(c=_)}else c=_}return f||c||r||!1}else return e[0]}function cs(t){var f;let e=(((f=t[1].header)==null?void 0:f.uptime)??"Up")+"",l,n,i;function s(c,m){return c[2]>1?Zr:c[2]>0?Xr:c[3]>1?Qr:c[3]>0?Yr:c[4]>1?Kr:c[4]>0?Vr:Gr}let a=s(t),r=a(t);return{c(){l=w(e),n=h(),r.c(),i=Wt()},m(c,m){P(c,l,m),P(c,n,m),r.m(c,m),P(c,i,m)},p(c,m){var _;m&2&&e!==(e=(((_=c[1].header)==null?void 0:_.uptime)??"Up")+"")&&O(l,e),a===(a=s(c))&&r?r.p(c,m):(r.d(1),r=a(c),r&&(r.c(),r.m(i.parentNode,i)))},d(c){c&&T(l),c&&T(n),r.d(c),c&&T(i)}}}function Gr(t){var s;let e,l,n=(((s=t[1].common)==null?void 0:s.seconds)??"s")+"",i;return{c(){e=w(t[0]),l=h(),i=w(n)},m(a,r){P(a,e,r),P(a,l,r),P(a,i,r)},p(a,r){var f;r&1&&O(e,a[0]),r&2&&n!==(n=(((f=a[1].common)==null?void 0:f.seconds)??"s")+"")&&O(i,n)},d(a){a&&T(e),a&&T(l),a&&T(i)}}}function Vr(t){var s;let e,l,n=(((s=t[1].common)==null?void 0:s.minute)??"m")+"",i;return{c(){e=w(t[4]),l=h(),i=w(n)},m(a,r){P(a,e,r),P(a,l,r),P(a,i,r)},p(a,r){var f;r&16&&O(e,a[4]),r&2&&n!==(n=(((f=a[1].common)==null?void 0:f.minute)??"m")+"")&&O(i,n)},d(a){a&&T(e),a&&T(l),a&&T(i)}}}function Kr(t){var s;let e,l,n=(((s=t[1].common)==null?void 0:s.minutes)??"m")+"",i;return{c(){e=w(t[4]),l=h(),i=w(n)},m(a,r){P(a,e,r),P(a,l,r),P(a,i,r)},p(a,r){var f;r&16&&O(e,a[4]),r&2&&n!==(n=(((f=a[1].common)==null?void 0:f.minutes)??"m")+"")&&O(i,n)},d(a){a&&T(e),a&&T(l),a&&T(i)}}}function Yr(t){var s;let e,l,n=(((s=t[1].common)==null?void 0:s.hour)??"h")+"",i;return{c(){e=w(t[3]),l=h(),i=w(n)},m(a,r){P(a,e,r),P(a,l,r),P(a,i,r)},p(a,r){var f;r&8&&O(e,a[3]),r&2&&n!==(n=(((f=a[1].common)==null?void 0:f.hour)??"h")+"")&&O(i,n)},d(a){a&&T(e),a&&T(l),a&&T(i)}}}function Qr(t){var s;let e,l,n=(((s=t[1].common)==null?void 0:s.hours)??"h")+"",i;return{c(){e=w(t[3]),l=h(),i=w(n)},m(a,r){P(a,e,r),P(a,l,r),P(a,i,r)},p(a,r){var f;r&8&&O(e,a[3]),r&2&&n!==(n=(((f=a[1].common)==null?void 0:f.hours)??"h")+"")&&O(i,n)},d(a){a&&T(e),a&&T(l),a&&T(i)}}}function Xr(t){var s;let e,l,n=(((s=t[1].common)==null?void 0:s.day)??"d")+"",i;return{c(){e=w(t[2]),l=h(),i=w(n)},m(a,r){P(a,e,r),P(a,l,r),P(a,i,r)},p(a,r){var f;r&4&&O(e,a[2]),r&2&&n!==(n=(((f=a[1].common)==null?void 0:f.day)??"d")+"")&&O(i,n)},d(a){a&&T(e),a&&T(l),a&&T(i)}}}function Zr(t){var s;let e,l,n=(((s=t[1].common)==null?void 0:s.days)??"d")+"",i;return{c(){e=w(t[2]),l=h(),i=w(n)},m(a,r){P(a,e,r),P(a,l,r),P(a,i,r)},p(a,r){var f;r&4&&O(e,a[2]),r&2&&n!==(n=(((f=a[1].common)==null?void 0:f.days)??"d")+"")&&O(i,n)},d(a){a&&T(e),a&&T(l),a&&T(i)}}}function Jr(t){let e,l=t[0]&&cs(t);return{c(){l&&l.c(),e=Wt()},m(n,i){l&&l.m(n,i),P(n,e,i)},p(n,[i]){n[0]?l?l.p(n,i):(l=cs(n),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},i:Ke,o:Ke,d(n){l&&l.d(n),n&&T(e)}}}function $r(t,e,l){let{epoch:n}=e,i={};dl.subscribe(f=>{l(1,i=f)});let s=0,a=0,r=0;return t.$$set=f=>{"epoch"in f&&l(0,n=f.epoch)},t.$$.update=()=>{t.$$.dirty&1&&(l(2,s=Math.floor(n/86400)),l(3,a=Math.floor(n/3600)),l(4,r=Math.floor(n/60)))},[n,i,s,a,r]}class xr extends Ct{constructor(e){super(),wt(this,e,$r,Jr,kt,{epoch:0})}}function e1(t){let e,l,n;return{c(){e=p("span"),l=w(t[2]),u(e,"title",t[1]),u(e,"class",n="bd-"+t[0])},m(i,s){P(i,e,s),o(e,l)},p(i,[s]){s&4&&O(l,i[2]),s&2&&u(e,"title",i[1]),s&1&&n!==(n="bd-"+i[0])&&u(e,"class",n)},i:Ke,o:Ke,d(i){i&&T(e)}}}function t1(t,e,l){let{color:n}=e,{title:i}=e,{text:s}=e;return t.$$set=a=>{"color"in a&&l(0,n=a.color),"title"in a&&l(1,i=a.title),"text"in a&&l(2,s=a.text)},[n,i,s]}class Fl extends Ct{constructor(e){super(),wt(this,e,t1,e1,kt,{color:0,title:1,text:2})}}function l1(t){let e,l=`${bt(t[0].getDate())}.${bt(t[0].getMonth()+1)}.${t[0].getFullYear()} ${bt(t[0].getHours())}:${bt(t[0].getMinutes())}`,n;return{c(){e=p("span"),n=w(l),u(e,"class",t[1])},m(i,s){P(i,e,s),o(e,n)},p(i,s){s&1&&l!==(l=`${bt(i[0].getDate())}.${bt(i[0].getMonth()+1)}.${i[0].getFullYear()} ${bt(i[0].getHours())}:${bt(i[0].getMinutes())}`)&&O(n,l),s&2&&u(e,"class",i[1])},d(i){i&&T(e)}}}function n1(t){var n;let e=`${bt(t[0].getDate())}. ${t[2].months?(n=t[2].months)==null?void 0:n[t[0].getMonth()]:bt(t[0].getMonth()+1)} ${bt(t[0].getHours())}:${bt(t[0].getMinutes())}`,l;return{c(){l=w(e)},m(i,s){P(i,l,s)},p(i,s){var a;s&5&&e!==(e=`${bt(i[0].getDate())}. ${i[2].months?(a=i[2].months)==null?void 0:a[i[0].getMonth()]:bt(i[0].getMonth()+1)} ${bt(i[0].getHours())}:${bt(i[0].getMinutes())}`)&&O(l,e)},d(i){i&&T(l)}}}function i1(t){let e;function l(s,a){return s[3]?n1:l1}let n=l(t),i=n(t);return{c(){i.c(),e=Wt()},m(s,a){i.m(s,a),P(s,e,a)},p(s,[a]){n===(n=l(s))&&i?i.p(s,a):(i.d(1),i=n(s),i&&(i.c(),i.m(e.parentNode,e)))},i:Ke,o:Ke,d(s){i.d(s),s&&T(e)}}}function s1(t,e,l){let n={};dl.subscribe(f=>{l(2,n=f)});let{timestamp:i}=e,{fullTimeColor:s}=e,{offset:a}=e,r;return t.$$set=f=>{"timestamp"in f&&l(0,i=f.timestamp),"fullTimeColor"in f&&l(1,s=f.fullTimeColor),"offset"in f&&l(4,a=f.offset)},t.$$.update=()=>{t.$$.dirty&17&&(l(3,r=Math.abs(new Date().getTime()-i.getTime())<3e5),isNaN(a)||Dl(i,a-(24+i.getHours()-i.getUTCHours())%24))},[i,s,n,r,a]}class uu extends Ct{constructor(e){super(),wt(this,e,s1,i1,kt,{timestamp:0,fullTimeColor:1,offset:4})}}function o1(t){let e,l,n;return{c(){e=Nt("svg"),l=Nt("path"),n=Nt("path"),u(l,"stroke-linecap","round"),u(l,"stroke-linejoin","round"),u(l,"d","M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 011.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.56.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.893.149c-.425.07-.765.383-.93.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 01-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.397.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 01-.12-1.45l.527-.737c.25-.35.273-.806.108-1.204-.165-.397-.505-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.107-1.204l-.527-.738a1.125 1.125 0 01.12-1.45l.773-.773a1.125 1.125 0 011.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894z"),u(n,"stroke-linecap","round"),u(n,"stroke-linejoin","round"),u(n,"d","M15 12a3 3 0 11-6 0 3 3 0 016 0z"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"fill","none"),u(e,"viewBox","0 0 24 24"),u(e,"stroke-width","1.5"),u(e,"stroke","currentColor"),u(e,"class","w-6 h-6")},m(i,s){P(i,e,s),o(e,l),o(e,n)},p:Ke,i:Ke,o:Ke,d(i){i&&T(e)}}}class a1 extends Ct{constructor(e){super(),wt(this,e,null,o1,kt,{})}}function f1(t){let e,l;return{c(){e=Nt("svg"),l=Nt("path"),u(l,"stroke-linecap","round"),u(l,"stroke-linejoin","round"),u(l,"d","M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"fill","none"),u(e,"viewBox","0 0 24 24"),u(e,"stroke-width","1.5"),u(e,"stroke","currentColor"),u(e,"class","w-6 h-6")},m(n,i){P(n,e,i),o(e,l)},p:Ke,i:Ke,o:Ke,d(n){n&&T(e)}}}class u1 extends Ct{constructor(e){super(),wt(this,e,null,f1,kt,{})}}function r1(t){let e,l;return{c(){e=Nt("svg"),l=Nt("path"),u(l,"stroke-linecap","round"),u(l,"stroke-linejoin","round"),u(l,"d","M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"fill","none"),u(e,"viewBox","0 0 24 24"),u(e,"stroke-width","1.5"),u(e,"stroke","currentColor"),u(e,"class","w-6 h-6")},m(n,i){P(n,e,i),o(e,l)},p:Ke,i:Ke,o:Ke,d(n){n&&T(e)}}}class c1 extends Ct{constructor(e){super(),wt(this,e,null,r1,kt,{})}}function m1(t){let e,l,n=t[2].version+"",i;return{c(){e=w("AMS reader "),l=p("span"),i=w(n)},m(s,a){P(s,e,a),P(s,l,a),o(l,i)},p(s,a){a&4&&n!==(n=s[2].version+"")&&O(i,n)},d(s){s&&T(e),s&&T(l)}}}function ms(t){let e,l=(t[1].t>-50?t[1].t.toFixed(1):"-")+"",n,i;return{c(){e=p("div"),n=w(l),i=w("°C"),u(e,"class","flex-none my-auto")},m(s,a){P(s,e,a),o(e,n),o(e,i)},p(s,a){a&2&&l!==(l=(s[1].t>-50?s[1].t.toFixed(1):"-")+"")&&O(n,l)},d(s){s&&T(e)}}}function _s(t){var i,s,a;let e,l=(((i=t[4].header)==null?void 0:i.han)??"HAN")+": "+(((a=(s=t[4].errors)==null?void 0:s.han)==null?void 0:a[t[1].he])??t[1].he),n;return{c(){e=p("div"),n=w(l),u(e,"class","bd-red")},m(r,f){P(r,e,f),o(e,n)},p(r,f){var c,m,_;f&18&&l!==(l=(((c=r[4].header)==null?void 0:c.han)??"HAN")+": "+(((_=(m=r[4].errors)==null?void 0:m.han)==null?void 0:_[r[1].he])??r[1].he))&&O(n,l)},d(r){r&&T(e)}}}function ps(t){var i,s,a;let e,l=(((i=t[4].header)==null?void 0:i.mqtt)??"MQTT")+": "+(((a=(s=t[4].errors)==null?void 0:s.mqtt)==null?void 0:a[t[1].me])??t[1].me),n;return{c(){e=p("div"),n=w(l),u(e,"class","bd-red")},m(r,f){P(r,e,f),o(e,n)},p(r,f){var c,m,_;f&18&&l!==(l=(((c=r[4].header)==null?void 0:c.mqtt)??"MQTT")+": "+(((_=(m=r[4].errors)==null?void 0:m.mqtt)==null?void 0:_[r[1].me])??r[1].me))&&O(n,l)},d(r){r&&T(e)}}}function ds(t){var i,s,a;let e,l=(((i=t[4].header)==null?void 0:i.price)??"PS")+": "+(((a=(s=t[4].errors)==null?void 0:s.price)==null?void 0:a[t[1].ee])??t[1].ee),n;return{c(){e=p("div"),n=w(l),u(e,"class","bd-red")},m(r,f){P(r,e,f),o(e,n)},p(r,f){var c,m,_;f&18&&l!==(l=(((c=r[4].header)==null?void 0:c.price)??"PS")+": "+(((_=(m=r[4].errors)==null?void 0:m.price)==null?void 0:_[r[1].ee])??r[1].ee))&&O(n,l)},d(r){r&&T(e)}}}function vs(t){let e,l,n,i,s,a,r,f;return l=new ml({props:{to:"/configuration",$$slots:{default:[_1]},$$scope:{ctx:t}}}),a=new ml({props:{to:"/status",$$slots:{default:[p1]},$$scope:{ctx:t}}}),{c(){var c,m;e=p("div"),Te(l.$$.fragment),i=h(),s=p("div"),Te(a.$$.fragment),u(e,"class","flex-none px-1 mt-1"),u(e,"title",n=((c=t[4].header)==null?void 0:c.config)??""),u(s,"class","flex-none px-1 mt-1"),u(s,"title",r=((m=t[4].header)==null?void 0:m.status)??"")},m(c,m){P(c,e,m),Me(l,e,null),P(c,i,m),P(c,s,m),Me(a,s,null),f=!0},p(c,m){var v,g;const _={};m&64&&(_.$$scope={dirty:m,ctx:c}),l.$set(_),(!f||m&16&&n!==(n=((v=c[4].header)==null?void 0:v.config)??""))&&u(e,"title",n);const d={};m&64&&(d.$$scope={dirty:m,ctx:c}),a.$set(d),(!f||m&16&&r!==(r=((g=c[4].header)==null?void 0:g.status)??""))&&u(s,"title",r)},i(c){f||(X(l.$$.fragment,c),X(a.$$.fragment,c),f=!0)},o(c){le(l.$$.fragment,c),le(a.$$.fragment,c),f=!1},d(c){c&&T(e),Ne(l),c&&T(i),c&&T(s),Ne(a)}}}function _1(t){let e,l;return e=new a1({}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function p1(t){let e,l;return e=new u1({}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function hs(t){let e,l;function n(a,r){return a[2].security==0||a[1].a?v1:d1}let i=n(t),s=i(t);return{c(){var a;e=p("div"),s.c(),u(e,"class","flex-none mr-3 text-yellow-500"),u(e,"title",l=(((a=t[4].header)==null?void 0:a.new_version)??"New version")+": "+t[3].tag_name)},m(a,r){P(a,e,r),s.m(e,null)},p(a,r){var f;i===(i=n(a))&&s?s.p(a,r):(s.d(1),s=i(a),s&&(s.c(),s.m(e,null))),r&24&&l!==(l=(((f=a[4].header)==null?void 0:f.new_version)??"New version")+": "+a[3].tag_name)&&u(e,"title",l)},d(a){a&&T(e),s.d()}}}function d1(t){var r;let e,l=(((r=t[4].header)==null?void 0:r.new_version)??"New version")+"",n,i,s=t[3].tag_name+"",a;return{c(){e=p("span"),n=w(l),i=w(": "),a=w(s)},m(f,c){P(f,e,c),o(e,n),o(e,i),o(e,a)},p(f,c){var m;c&16&&l!==(l=(((m=f[4].header)==null?void 0:m.new_version)??"New version")+"")&&O(n,l),c&8&&s!==(s=f[3].tag_name+"")&&O(a,s)},d(f){f&&T(e)}}}function v1(t){var m;let e,l,n=(((m=t[4].header)==null?void 0:m.new_version)??"New version")+"",i,s,a=t[3].tag_name+"",r,f,c;return{c(){e=p("button"),l=p("span"),i=w(n),s=w(": "),r=w(a),u(l,"class","mt-1"),u(e,"class","flex")},m(_,d){P(_,e,d),o(e,l),o(l,i),o(l,s),o(l,r),f||(c=re(e,"click",t[5]),f=!0)},p(_,d){var v;d&16&&n!==(n=(((v=_[4].header)==null?void 0:v.new_version)??"New version")+"")&&O(i,n),d&8&&a!==(a=_[3].tag_name+"")&&O(r,a)},d(_){_&&T(e),f=!1,c()}}}function h1(t){var ne,se,me,pe,de,Pe,Ce,Se,qe,Be;let e,l,n,i,s,a,r,f,c,m,_,d=(((ne=t[4].header)==null?void 0:ne.mem)??"Free")+"",v,g,b=(t[1].m?(t[1].m/1e3).toFixed(1):"-")+"",k,C,E,R,I,S,B,N,H,K,z,L,F,Z,y,G,V,U,j,J,ae,Y,oe,ie,te,ee,_e,ue,Q,$,he;i=new ml({props:{to:"/",$$slots:{default:[m1]},$$scope:{ctx:t}}}),f=new xr({props:{epoch:t[1].u}});let be=t[1].t>-50&&ms(t);I=new Fl({props:{title:((se=t[4].header)==null?void 0:se.esp)??"ESP",text:t[2].booting?((me=t[4].header)==null?void 0:me.booting)??"Booting":t[1].v>2?t[1].v.toFixed(2)+"V":((pe=t[4].header)==null?void 0:pe.esp)??"ESP",color:ql(t[2].booting?2:t[1].em)}}),B=new Fl({props:{title:((de=t[4].header)==null?void 0:de.han)??"HAN",text:((Pe=t[4].header)==null?void 0:Pe.han)??"HAN",color:ql(t[2].booting?9:t[1].hm)}}),H=new Fl({props:{title:((Ce=t[4].header)==null?void 0:Ce.wifi)??"WiFi",text:t[1].r?t[1].r.toFixed(0)+"dBm":((Se=t[4].header)==null?void 0:Se.wifi)??"WiFi",color:ql(t[2].booting?9:t[1].wm)}}),z=new Fl({props:{title:((qe=t[4].header)==null?void 0:qe.mqtt)??"MQTT",text:((Be=t[4].header)==null?void 0:Be.mqtt)??"MQTT",color:ql(t[2].booting?9:t[1].mm)}});let A=(t[1].he<0||t[1].he>0)&&_s(t),M=t[1].me<0&&ps(t),q=(t[1].ee>0||t[1].ee<0)&&ds(t);oe=new uu({props:{timestamp:t[1].c?new Date(t[1].c*1e3):new Date(0),offset:t[2].clock_offset,fullTimeColor:"text-red-500"}});let D=t[2].vndcfg&&t[2].usrcfg&&vs(t);ue=new c1({});let W=t[2].fwconsent===1&&t[3]&&hs(t);return{c(){var fe;e=p("nav"),l=p("div"),n=p("div"),Te(i.$$.fragment),s=h(),a=p("div"),r=p("div"),Te(f.$$.fragment),c=h(),be&&be.c(),m=h(),_=p("div"),v=w(d),g=w(": "),k=w(b),C=w("kb"),E=h(),R=p("div"),Te(I.$$.fragment),S=h(),Te(B.$$.fragment),N=h(),Te(H.$$.fragment),K=h(),Te(z.$$.fragment),L=h(),A&&A.c(),F=h(),M&&M.c(),Z=h(),q&&q.c(),y=h(),G=p("div"),V=p("div"),U=p("a"),j=p("img"),ae=h(),Y=p("div"),Te(oe.$$.fragment),ie=h(),D&&D.c(),te=h(),ee=p("div"),_e=p("a"),Te(ue.$$.fragment),$=h(),W&&W.c(),u(n,"class","flex text-lg text-gray-100 p-2"),u(r,"class","flex-none my-auto"),u(_,"class","flex-none my-auto"),u(a,"class","flex-none my-auto p-2 flex space-x-4"),u(R,"class","flex-auto flex-wrap my-auto justify-center p-2"),u(j,"class","logo"),yn(j.src,J=(t[0]+"/logo.svg").replace("//","/"))||u(j,"src",J),u(j,"alt","GitHub repo"),u(U,"class","float-right"),u(U,"href","https://github.com/UtilitechAS/amsreader-firmware"),u(U,"target","_blank"),u(U,"rel","noreferrer"),u(U,"aria-label","GitHub"),u(V,"class","flex-none"),u(Y,"class","flex-none my-auto px-2"),u(_e,"href",cl("")),u(_e,"target","_blank"),u(_e,"rel","noreferrer"),u(ee,"class","flex-none px-1 mt-1"),u(ee,"title",Q=((fe=t[4].header)==null?void 0:fe.doc)??""),u(G,"class","flex-auto p-2 flex flex-row-reverse flex-wrap"),u(l,"class","flex flex-wrap space-x-4 text-sm text-gray-300"),u(e,"class","hdr")},m(fe,we){P(fe,e,we),o(e,l),o(l,n),Me(i,n,null),o(l,s),o(l,a),o(a,r),Me(f,r,null),o(a,c),be&&be.m(a,null),o(a,m),o(a,_),o(_,v),o(_,g),o(_,k),o(_,C),o(l,E),o(l,R),Me(I,R,null),o(R,S),Me(B,R,null),o(R,N),Me(H,R,null),o(R,K),Me(z,R,null),o(l,L),A&&A.m(l,null),o(l,F),M&&M.m(l,null),o(l,Z),q&&q.m(l,null),o(l,y),o(l,G),o(G,V),o(V,U),o(U,j),o(G,ae),o(G,Y),Me(oe,Y,null),o(G,ie),D&&D.m(G,null),o(G,te),o(G,ee),o(ee,_e),Me(ue,_e,null),o(G,$),W&&W.m(G,null),he=!0},p(fe,[we]){var Ge,ht,ct,vt,Ue,je,ye,Ae,ge,De,Ve;const Fe={};we&68&&(Fe.$$scope={dirty:we,ctx:fe}),i.$set(Fe);const ft={};we&2&&(ft.epoch=fe[1].u),f.$set(ft),fe[1].t>-50?be?be.p(fe,we):(be=ms(fe),be.c(),be.m(a,m)):be&&(be.d(1),be=null),(!he||we&16)&&d!==(d=(((Ge=fe[4].header)==null?void 0:Ge.mem)??"Free")+"")&&O(v,d),(!he||we&2)&&b!==(b=(fe[1].m?(fe[1].m/1e3).toFixed(1):"-")+"")&&O(k,b);const ut={};we&16&&(ut.title=((ht=fe[4].header)==null?void 0:ht.esp)??"ESP"),we&22&&(ut.text=fe[2].booting?((ct=fe[4].header)==null?void 0:ct.booting)??"Booting":fe[1].v>2?fe[1].v.toFixed(2)+"V":((vt=fe[4].header)==null?void 0:vt.esp)??"ESP"),we&6&&(ut.color=ql(fe[2].booting?2:fe[1].em)),I.$set(ut);const nt={};we&16&&(nt.title=((Ue=fe[4].header)==null?void 0:Ue.han)??"HAN"),we&16&&(nt.text=((je=fe[4].header)==null?void 0:je.han)??"HAN"),we&6&&(nt.color=ql(fe[2].booting?9:fe[1].hm)),B.$set(nt);const rt={};we&16&&(rt.title=((ye=fe[4].header)==null?void 0:ye.wifi)??"WiFi"),we&18&&(rt.text=fe[1].r?fe[1].r.toFixed(0)+"dBm":((Ae=fe[4].header)==null?void 0:Ae.wifi)??"WiFi"),we&6&&(rt.color=ql(fe[2].booting?9:fe[1].wm)),H.$set(rt);const Ye={};we&16&&(Ye.title=((ge=fe[4].header)==null?void 0:ge.mqtt)??"MQTT"),we&16&&(Ye.text=((De=fe[4].header)==null?void 0:De.mqtt)??"MQTT"),we&6&&(Ye.color=ql(fe[2].booting?9:fe[1].mm)),z.$set(Ye),fe[1].he<0||fe[1].he>0?A?A.p(fe,we):(A=_s(fe),A.c(),A.m(l,F)):A&&(A.d(1),A=null),fe[1].me<0?M?M.p(fe,we):(M=ps(fe),M.c(),M.m(l,Z)):M&&(M.d(1),M=null),fe[1].ee>0||fe[1].ee<0?q?q.p(fe,we):(q=ds(fe),q.c(),q.m(l,y)):q&&(q.d(1),q=null),(!he||we&1&&!yn(j.src,J=(fe[0]+"/logo.svg").replace("//","/")))&&u(j,"src",J);const gt={};we&2&&(gt.timestamp=fe[1].c?new Date(fe[1].c*1e3):new Date(0)),we&4&&(gt.offset=fe[2].clock_offset),oe.$set(gt),fe[2].vndcfg&&fe[2].usrcfg?D?(D.p(fe,we),we&4&&X(D,1)):(D=vs(fe),D.c(),X(D,1),D.m(G,te)):D&&(pt(),le(D,1,1,()=>{D=null}),dt()),(!he||we&16&&Q!==(Q=((Ve=fe[4].header)==null?void 0:Ve.doc)??""))&&u(ee,"title",Q),fe[2].fwconsent===1&&fe[3]?W?W.p(fe,we):(W=hs(fe),W.c(),W.m(G,null)):W&&(W.d(1),W=null)},i(fe){he||(X(i.$$.fragment,fe),X(f.$$.fragment,fe),X(I.$$.fragment,fe),X(B.$$.fragment,fe),X(H.$$.fragment,fe),X(z.$$.fragment,fe),X(oe.$$.fragment,fe),X(D),X(ue.$$.fragment,fe),he=!0)},o(fe){le(i.$$.fragment,fe),le(f.$$.fragment,fe),le(I.$$.fragment,fe),le(B.$$.fragment,fe),le(H.$$.fragment,fe),le(z.$$.fragment,fe),le(oe.$$.fragment,fe),le(D),le(ue.$$.fragment,fe),he=!1},d(fe){fe&&T(e),Ne(i),Ne(f),be&&be.d(),Ne(I),Ne(B),Ne(H),Ne(z),A&&A.d(),M&&M.d(),q&&q.d(),Ne(oe),D&&D.d(),Ne(ue),W&&W.d()}}}function b1(t,e,l){let{basepath:n="/"}=e,{data:i={}}=e,s={},a={};function r(){var c;confirm((((c=f.header)==null?void 0:c.upgrade)??"Upgrade to {0}?").replace("{0}",a.tag_name))&&(!Kl(s.board)||confirm(Kn(Je(s.chip,s.board))))&&(ol.update(m=>(m.upgrading=!0,m)),au(a.tag_name))}ol.subscribe(c=>{l(2,s=c),c.fwconsent===1&&Wr()}),Ii.subscribe(c=>{l(3,a=fu(s.version,c))});let f={};return dl.subscribe(c=>{l(4,f=c)}),t.$$set=c=>{"basepath"in c&&l(0,n=c.basepath),"data"in c&&l(1,i=c.data)},[n,i,s,a,f,r]}class g1 extends Ct{constructor(e){super(),wt(this,e,b1,h1,kt,{basepath:0,data:1})}}function k1(t){let e,l,n,i;return{c(){e=Nt("svg"),l=Nt("path"),n=Nt("path"),u(l,"d",ei(150,150,115,210,510)),u(l,"stroke","rgba(128, 128, 128, 0.15)"),u(l,"fill","none"),u(l,"stroke-width","55"),u(n,"d",i=ei(150,150,115,210,210+300*t[0]/100)),u(n,"stroke",t[1]),u(n,"fill","none"),u(n,"stroke-width","55"),u(e,"viewBox","0 0 300 300"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"height","100%")},m(s,a){P(s,e,a),o(e,l),o(e,n)},p(s,[a]){a&1&&i!==(i=ei(150,150,115,210,210+300*s[0]/100))&&u(n,"d",i),a&2&&u(n,"stroke",s[1])},i:Ke,o:Ke,d(s){s&&T(e)}}}function bs(t,e,l,n){var i=(n-90)*Math.PI/180;return{x:t+l*Math.cos(i),y:e+l*Math.sin(i)}}function ei(t,e,l,n,i){var s=bs(t,e,l,i),a=bs(t,e,l,n),r=i-n<=180?"0":"1",f=["M",s.x,s.y,"A",l,l,0,r,0,a.x,a.y].join(" ");return f}function w1(t,e,l){let{pct:n=0}=e,{color:i="red"}=e;return t.$$set=s=>{"pct"in s&&l(0,n=s.pct),"color"in s&&l(1,i=s.color)},[n,i]}class C1 extends Ct{constructor(e){super(),wt(this,e,w1,k1,kt,{pct:0,color:1})}}function gs(t){let e,l,n,i,s,a,r,f;return{c(){e=p("br"),l=h(),n=p("span"),i=w(t[1]),s=h(),a=p("span"),r=w(t[2]),f=w("/kWh"),u(n,"class","pl-sub"),u(a,"class","pl-snt")},m(c,m){P(c,e,m),P(c,l,m),P(c,n,m),o(n,i),P(c,s,m),P(c,a,m),o(a,r),o(a,f)},p(c,m){m&2&&O(i,c[1]),m&4&&O(r,c[2])},d(c){c&&T(e),c&&T(l),c&&T(n),c&&T(s),c&&T(a)}}}function S1(t){let e,l,n,i,s,a,r,f,c,m,_=t[4][0]+"",d,v,g,b=t[4][1]+"",k,C,E;l=new C1({props:{pct:t[5],color:t[3](t[5],document.documentElement.classList.contains("dark"))}});let R=t[1]&&gs(t);return{c(){e=p("div"),Te(l.$$.fragment),n=h(),i=p("span"),s=p("span"),a=w(t[0]),r=h(),f=p("br"),c=h(),m=p("span"),d=w(_),v=h(),g=p("span"),k=w(b),C=h(),R&&R.c(),u(s,"class","pl-lab"),u(m,"class","pl-val"),u(g,"class","pl-unt"),u(i,"class","pl-ov"),u(e,"class","pl-root")},m(I,S){P(I,e,S),Me(l,e,null),o(e,n),o(e,i),o(i,s),o(s,a),o(i,r),o(i,f),o(i,c),o(i,m),o(m,d),o(i,v),o(i,g),o(g,k),o(i,C),R&&R.m(i,null),E=!0},p(I,[S]){const B={};S&32&&(B.pct=I[5]),S&40&&(B.color=I[3](I[5],document.documentElement.classList.contains("dark"))),l.$set(B),(!E||S&1)&&O(a,I[0]),(!E||S&16)&&_!==(_=I[4][0]+"")&&O(d,_),(!E||S&16)&&b!==(b=I[4][1]+"")&&O(k,b),I[1]?R?R.p(I,S):(R=gs(I),R.c(),R.m(i,null)):R&&(R.d(1),R=null)},i(I){E||(X(l.$$.fragment,I),E=!0)},o(I){le(l.$$.fragment,I),E=!1},d(I){I&&T(e),Ne(l),R&&R.d()}}}function M1(t,e,l){let{val:n}=e,{max:i}=e,{unit:s}=e,{label:a}=e,{sub:r=""}=e,{subunit:f=""}=e,{colorFn:c}=e,m,_=0;return t.$$set=d=>{"val"in d&&l(6,n=d.val),"max"in d&&l(7,i=d.max),"unit"in d&&l(8,s=d.unit),"label"in d&&l(0,a=d.label),"sub"in d&&l(1,r=d.sub),"subunit"in d&&l(2,f=d.subunit),"colorFn"in d&&l(3,c=d.colorFn)},t.$$.update=()=>{t.$$.dirty&448&&(l(4,m=sl(n,s)),l(5,_=Math.min(n,i)/i*100))},[a,r,f,c,m,_,n,i,s]}class ru extends Ct{constructor(e){super(),wt(this,e,M1,S1,kt,{val:6,max:7,unit:8,label:0,sub:1,subunit:2,colorFn:3})}}function ks(t,e,l){const n=t.slice();return n[11]=e[l],n[13]=l,n}function ws(t,e,l){const n=t.slice();return n[11]=e[l],n[13]=l,n}function Cs(t,e,l){const n=t.slice();return n[15]=e[l],n}function Ss(t){let e,l,n,i,s,a,r,f=(t[0].title||t[0].link)&&Ms(t),c=t[0].y.ticks,m=[];for(let b=0;b{f=null}),dt()),k&129){c=b[0].y.ticks;let C;for(C=0;C{s=null}),dt())},i(a){n||(X(s),n=!0)},o(a){le(s),n=!1},d(a){a&&T(e),i&&i.d(),s&&s.d()}}}function Ns(t){let e,l=t[0].title+"",n,i;return{c(){e=p("div"),n=w(l),u(e,"class","text-sm font-bold"),qt(()=>t[9].call(e))},m(s,a){P(s,e,a),o(e,n),i=Ti(e,t[9].bind(e))},p(s,a){a&1&&l!==(l=s[0].title+"")&&O(n,l)},d(s){s&&T(e),i()}}}function Ts(t){let e,l,n,i;const s=[T1,N1],a=[];function r(f,c){return f[0].link.route?0:1}return l=r(t),n=a[l]=s[l](t),{c(){e=p("div"),n.c(),u(e,"class","text-xs text-right")},m(f,c){P(f,e,c),a[l].m(e,null),i=!0},p(f,c){let m=l;l=r(f),l===m?a[l].p(f,c):(pt(),le(a[m],1,1,()=>{a[m]=null}),dt(),n=a[l],n?n.p(f,c):(n=a[l]=s[l](f),n.c()),X(n,1),n.m(e,null))},i(f){i||(X(n),i=!0)},o(f){le(n),i=!1},d(f){f&&T(e),a[l].d()}}}function N1(t){let e,l=t[0].link.text+"",n,i,s;return{c(){e=p("a"),n=w(l),u(e,"href",i=t[0].link.url),u(e,"target",s=t[0].link.target)},m(a,r){P(a,e,r),o(e,n)},p(a,r){r&1&&l!==(l=a[0].link.text+"")&&O(n,l),r&1&&i!==(i=a[0].link.url)&&u(e,"href",i),r&1&&s!==(s=a[0].link.target)&&u(e,"target",s)},i:Ke,o:Ke,d(a){a&&T(e)}}}function T1(t){let e,l;return e=new ml({props:{to:t[0].link.url,$$slots:{default:[P1]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,i){const s={};i&1&&(s.to=n[0].link.url),i&262145&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function P1(t){let e=t[0].link.text+"",l;return{c(){l=w(e)},m(n,i){P(n,l,i)},p(n,i){i&1&&e!==(e=n[0].link.text+"")&&O(l,e)},d(n){n&&T(l)}}}function Ps(t){let e,l,n,i=t[15].label+"",s,a,r,f;return{c(){e=Nt("g"),l=Nt("line"),n=Nt("text"),s=w(i),u(l,"x2","100%"),u(n,"y","-4"),u(n,"x",a=t[15].align=="right"?"85%":""),u(e,"class",r="tick tick-"+t[15].value+" tick-"+t[15].color),u(e,"transform",f="translate(0, "+t[7](t[15].value)+")")},m(c,m){P(c,e,m),o(e,l),o(e,n),o(n,s)},p(c,m){m&1&&i!==(i=c[15].label+"")&&O(s,i),m&1&&a!==(a=c[15].align=="right"?"85%":"")&&u(n,"x",a),m&1&&r!==(r="tick tick-"+c[15].value+" tick-"+c[15].color)&&u(e,"class",r),m&129&&f!==(f="translate(0, "+c[7](c[15].value)+")")&&u(e,"transform",f)},d(c){c&&T(e)}}}function Es(t){let e=!isNaN(t[7](t[15].value)),l,n=e&&Ps(t);return{c(){n&&n.c(),l=Wt()},m(i,s){n&&n.m(i,s),P(i,l,s)},p(i,s){s&129&&(e=!isNaN(i[7](i[15].value))),e?n?n.p(i,s):(n=Ps(i),n.c(),n.m(l.parentNode,l)):n&&(n.d(1),n=null)},d(i){n&&n.d(i),i&&T(l)}}}function Ds(t){let e,l,n=(t[3]>20||t[13]%2==0)&&qs(t);return{c(){e=Nt("g"),n&&n.c(),u(e,"class","tick"),u(e,"transform",l="translate("+t[6](t[13])+","+t[4]+")")},m(i,s){P(i,e,s),n&&n.m(e,null)},p(i,s){i[3]>20||i[13]%2==0?n?n.p(i,s):(n=qs(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null),s&80&&l!==(l="translate("+i[6](i[13])+","+i[4]+")")&&u(e,"transform",l)},d(i){i&&T(e),n&&n.d()}}}function qs(t){let e,l=t[11].label+"",n,i;return{c(){e=Nt("text"),n=w(l),u(e,"x",i=t[3]/2),u(e,"y","-4")},m(s,a){P(s,e,a),o(e,n)},p(s,a){a&1&&l!==(l=s[11].label+"")&&O(n,l),a&8&&i!==(i=s[3]/2)&&u(e,"x",i)},d(s){s&&T(e)}}}function As(t){let e=!isNaN(t[6](t[13])),l,n=e&&Ds(t);return{c(){n&&n.c(),l=Wt()},m(i,s){n&&n.m(i,s),P(i,l,s)},p(i,s){s&64&&(e=!isNaN(i[6](i[13]))),e?n?n.p(i,s):(n=Ds(i),n.c(),n.m(l.parentNode,l)):n&&(n.d(1),n=null)},d(i){n&&n.d(i),i&&T(l)}}}function Os(t){let e,l,n=t[11].value!==void 0&&Ls(t),i=t[11].value2>1e-4&&Fs(t);return{c(){e=Nt("g"),n&&n.c(),l=Nt("g"),i&&i.c()},m(s,a){P(s,e,a),n&&n.m(e,null),P(s,l,a),i&&i.m(l,null)},p(s,a){s[11].value!==void 0?n?n.p(s,a):(n=Ls(s),n.c(),n.m(e,null)):n&&(n.d(1),n=null),s[11].value2>1e-4?i?i.p(s,a):(i=Fs(s),i.c(),i.m(l,null)):i&&(i.d(1),i=null)},d(s){s&&T(e),n&&n.d(),s&&T(l),i&&i.d()}}}function Ls(t){let e,l,n,i,s,a,r,f=t[3]>15&&Is(t);return{c(){e=Nt("rect"),f&&f.c(),r=Wt(),u(e,"x",l=t[6](t[13])+2),u(e,"y",n=t[7](t[11].value)),u(e,"width",i=t[3]-4),u(e,"height",s=t[7](t[0].y.min)-t[7](Math.min(t[0].y.min,0)+t[11].value)),u(e,"fill",a=t[11].color)},m(c,m){P(c,e,m),f&&f.m(c,m),P(c,r,m)},p(c,m){m&64&&l!==(l=c[6](c[13])+2)&&u(e,"x",l),m&129&&n!==(n=c[7](c[11].value))&&u(e,"y",n),m&8&&i!==(i=c[3]-4)&&u(e,"width",i),m&129&&s!==(s=c[7](c[0].y.min)-c[7](Math.min(c[0].y.min,0)+c[11].value))&&u(e,"height",s),m&1&&a!==(a=c[11].color)&&u(e,"fill",a),c[3]>15?f?f.p(c,m):(f=Is(c),f.c(),f.m(r.parentNode,r)):f&&(f.d(1),f=null)},d(c){c&&T(e),f&&f.d(c),c&&T(r)}}}function Is(t){let e,l=t[11].label+"",n,i,s,a,r,f,c=t[11].title&&Rs(t);return{c(){e=Nt("text"),n=w(l),c&&c.c(),f=Wt(),u(e,"width",i=t[3]-4),u(e,"dominant-baseline","middle"),u(e,"text-anchor",s=t[3]t[7](0)-t[8]&&!t[0].dark?t[11].color:"white"),u(e,"transform",r="translate("+(t[6](t[13])+t[3]/2)+" "+(t[7](t[11].value)>t[7](0)-t[8]?t[7](t[11].value)-t[8]:t[7](t[11].value)+10)+") rotate("+(t[11].labelAngle?t[11].labelAngle:t[3]m[7](0)-m[8]&&!m[0].dark?m[11].color:"white")&&u(e,"fill",a),_&457&&r!==(r="translate("+(m[6](m[13])+m[3]/2)+" "+(m[7](m[11].value)>m[7](0)-m[8]?m[7](m[11].value)-m[8]:m[7](m[11].value)+10)+") rotate("+(m[11].labelAngle?m[11].labelAngle:m[3]15&&Bs(t);return{c(){e=Nt("rect"),f&&f.c(),r=Wt(),u(e,"x",l=t[6](t[13])+2),u(e,"y",n=t[7](0)),u(e,"width",i=t[3]-4),u(e,"height",s=t[7](t[0].y.min)-t[7](t[0].y.min+t[11].value2)),u(e,"fill",a=t[11].color2?t[11].color2:t[11].color)},m(c,m){P(c,e,m),f&&f.m(c,m),P(c,r,m)},p(c,m){m&64&&l!==(l=c[6](c[13])+2)&&u(e,"x",l),m&128&&n!==(n=c[7](0))&&u(e,"y",n),m&8&&i!==(i=c[3]-4)&&u(e,"width",i),m&129&&s!==(s=c[7](c[0].y.min)-c[7](c[0].y.min+c[11].value2))&&u(e,"height",s),m&1&&a!==(a=c[11].color2?c[11].color2:c[11].color)&&u(e,"fill",a),c[3]>15?f?f.p(c,m):(f=Bs(c),f.c(),f.m(r.parentNode,r)):f&&(f.d(1),f=null)},d(c){c&&T(e),f&&f.d(c),c&&T(r)}}}function Bs(t){let e,l=t[11].label2+"",n,i,s,a,r,f=t[11].title2&&Us(t);return{c(){e=Nt("text"),n=w(l),f&&f.c(),r=Wt(),u(e,"width",i=t[3]-4),u(e,"dominant-baseline","middle"),u(e,"text-anchor","middle"),u(e,"fill",s=t[7](-t[11].value2)t[10].call(e))},m(s,a){P(s,e,a),i&&i.m(e,null),l=Ti(e,t[10].bind(e)),n=!0},p(s,[a]){s[0].x.ticks&&s[0].points&&s[4]?i?(i.p(s,a),a&17&&X(i,1)):(i=Ss(s),i.c(),X(i,1),i.m(e,null)):i&&(pt(),le(i,1,1,()=>{i=null}),dt())},i(s){n||(X(i),n=!0)},o(s){le(i),n=!1},d(s){s&&T(e),i&&i.d(),l()}}}let Bl=30;function D1(t,e,l){let{config:n}=e,i,s,a,r,f,c,m,_=0;function d(){_=this.clientHeight,l(5,_)}function v(){i=this.clientWidth,s=this.clientHeight,l(1,i),l(2,s)}return t.$$set=g=>{"config"in g&&l(0,n=g.config)},t.$$.update=()=>{if(t.$$.dirty&63){l(4,c=s-_);let g=i-(n.padding.left+n.padding.right);l(3,a=g/n.points.length),l(8,m=an.y.max?C=n.padding.bottom:kc||C<0?0:C})}},[n,i,s,a,c,_,r,f,m,d,v]}class yl extends Ct{constructor(e){super(),wt(this,e,D1,E1,kt,{config:0})}}function q1(t){let e,l;return e=new yl({props:{config:t[0]}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,[i]){const s={};i&1&&(s.config=n[0]),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function A1(t,e,l){let{title:n}=e,{u1:i}=e,{u2:s}=e,{u3:a}=e,{ds:r}=e,f={};function c(m){return{label:Bt(m)+"V",title:m.toFixed(1)+" V",value:isNaN(m)?0:m,color:Rr(m||0,document.documentElement.classList.contains("dark"))}}return t.$$set=m=>{"title"in m&&l(1,n=m.title),"u1"in m&&l(2,i=m.u1),"u2"in m&&l(3,s=m.u2),"u3"in m&&l(4,a=m.u3),"ds"in m&&l(5,r=m.ds)},t.$$.update=()=>{if(t.$$.dirty&62){let m=[],_=[];i>0&&(m.push({label:r===1?"L1-L2":"L1"}),_.push(c(i))),s>0&&(m.push({label:r===1?"L1-L3":"L2"}),_.push(c(s))),a>0&&(m.push({label:r===1?"L2-L3":"L3"}),_.push(c(a))),l(0,f={title:n,padding:{top:20,right:15,bottom:20,left:35},y:{min:200,max:260,ticks:[{value:207,label:"-10%"},{value:230,label:"230v"},{value:253,label:"+10%"}]},x:{ticks:m},points:_})}},[f,n,i,s,a,r]}class O1 extends Ct{constructor(e){super(),wt(this,e,A1,q1,kt,{title:1,u1:2,u2:3,u3:4,ds:5})}}function L1(t){var D,W,ne,se,me;let e,l,n=(((D=t[0].reactive)==null?void 0:D.title)??"Reactive")+"",i,s,a,r,f=(((W=t[0].reactive)==null?void 0:W.instant_in)??"Instant in")+"",c,m,_,d=t[1][0]+"",v,g,b=t[1][1]+"",k,C,E,R=(((ne=t[0].reactive)==null?void 0:ne.instant_out)??"Instant out")+"",I,S,B,N=t[2][0]+"",H,K,z=t[2][1]+"",L,F,Z,y,G=(((se=t[0].reactive)==null?void 0:se.total_in)??"Total in")+"",V,U,j,J=t[3][0]+"",ae,Y,oe=t[3][1]+"",ie,te,ee,_e=(((me=t[0].reactive)==null?void 0:me.total_out)??"Total out")+"",ue,Q,$,he=t[4][0]+"",be,A,M=t[4][1]+"",q;return{c(){e=p("div"),l=p("strong"),i=w(n),s=h(),a=p("div"),r=p("div"),c=w(f),m=h(),_=p("div"),v=w(d),g=h(),k=w(b),C=h(),E=p("div"),I=w(R),S=h(),B=p("div"),H=w(N),K=h(),L=w(z),F=h(),Z=p("div"),y=p("div"),V=w(G),U=h(),j=p("div"),ae=w(J),Y=h(),ie=w(oe),te=h(),ee=p("div"),ue=w(_e),Q=h(),$=p("div"),be=w(he),A=h(),q=w(M),u(_,"class","text-right"),u(B,"class","text-right"),u(a,"class","grid grid-cols-2 mt-4"),u(j,"class","text-right"),u($,"class","text-right"),u(Z,"class","grid grid-cols-2 mt-4"),u(e,"class","mx-2 text-sm")},m(pe,de){P(pe,e,de),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(r,c),o(a,m),o(a,_),o(_,v),o(_,g),o(_,k),o(a,C),o(a,E),o(E,I),o(a,S),o(a,B),o(B,H),o(B,K),o(B,L),o(e,F),o(e,Z),o(Z,y),o(y,V),o(Z,U),o(Z,j),o(j,ae),o(j,Y),o(j,ie),o(Z,te),o(Z,ee),o(ee,ue),o(Z,Q),o(Z,$),o($,be),o($,A),o($,q)},p(pe,[de]){var Pe,Ce,Se,qe,Be;de&1&&n!==(n=(((Pe=pe[0].reactive)==null?void 0:Pe.title)??"Reactive")+"")&&O(i,n),de&1&&f!==(f=(((Ce=pe[0].reactive)==null?void 0:Ce.instant_in)??"Instant in")+"")&&O(c,f),de&2&&d!==(d=pe[1][0]+"")&&O(v,d),de&2&&b!==(b=pe[1][1]+"")&&O(k,b),de&1&&R!==(R=(((Se=pe[0].reactive)==null?void 0:Se.instant_out)??"Instant out")+"")&&O(I,R),de&4&&N!==(N=pe[2][0]+"")&&O(H,N),de&4&&z!==(z=pe[2][1]+"")&&O(L,z),de&1&&G!==(G=(((qe=pe[0].reactive)==null?void 0:qe.total_in)??"Total in")+"")&&O(V,G),de&8&&J!==(J=pe[3][0]+"")&&O(ae,J),de&8&&oe!==(oe=pe[3][1]+"")&&O(ie,oe),de&1&&_e!==(_e=(((Be=pe[0].reactive)==null?void 0:Be.total_out)??"Total out")+"")&&O(ue,_e),de&16&&he!==(he=pe[4][0]+"")&&O(be,he),de&16&&M!==(M=pe[4][1]+"")&&O(q,M)},i:Ke,o:Ke,d(pe){pe&&T(e)}}}function I1(t,e,l){let{importInstant:n}=e,{exportInstant:i}=e,{importTotal:s}=e,{exportTotal:a}=e,{translations:r={}}=e,f,c,m,_;return t.$$set=d=>{"importInstant"in d&&l(5,n=d.importInstant),"exportInstant"in d&&l(6,i=d.exportInstant),"importTotal"in d&&l(7,s=d.importTotal),"exportTotal"in d&&l(8,a=d.exportTotal),"translations"in d&&l(0,r=d.translations)},t.$$.update=()=>{t.$$.dirty&480&&(l(1,f=sl(n,"VAr")),l(2,c=sl(i,"VAr")),l(3,m=sl(s*1e3,"VArh")),l(4,_=sl(a*1e3,"VArh")))},[r,f,c,m,_,n,i,s,a]}class R1 extends Ct{constructor(e){super(),wt(this,e,I1,L1,kt,{importInstant:5,exportInstant:6,importTotal:7,exportTotal:8,translations:0})}}function ys(t){let e;function l(s,a){return s[3]?B1:F1}let n=l(t),i=n(t);return{c(){i.c(),e=Wt()},m(s,a){i.m(s,a),P(s,e,a)},p(s,a){n===(n=l(s))&&i?i.p(s,a):(i.d(1),i=n(s),i&&(i.c(),i.m(e.parentNode,e)))},d(s){i.d(s),s&&T(e)}}}function F1(t){var W,ne,se,me,pe;let e,l=(((W=t[4].realtime)==null?void 0:W.consumption)??"Consumption")+"",n,i,s,a,r=Yt(((ne=t[4].common)==null?void 0:ne.hour)??"Hour")+"",f,c,m,_=t[6][0]+"",d,v,g=t[6][1]+"",b,k,C,E=Yt(((se=t[4].common)==null?void 0:se.day)??"Day")+"",R,I,S,B=t[7][0]+"",N,H,K=t[7][1]+"",z,L,F,Z=Yt(((me=t[4].common)==null?void 0:me.month)??"Month")+"",y,G,V,U=t[8][0]+"",j,J,ae=t[8][1]+"",Y,oe,ie,te=(((pe=t[4].realtime)==null?void 0:pe.last_month)??"Last month")+"",ee,_e,ue,Q=t[9][0]+"",$,he,be=t[9][1]+"",A,M,q,D=t[5]&&Hs(t);return{c(){e=p("strong"),n=w(l),i=h(),s=p("div"),a=p("div"),f=w(r),c=h(),m=p("div"),d=w(_),v=h(),b=w(g),k=h(),C=p("div"),R=w(E),I=h(),S=p("div"),N=w(B),H=h(),z=w(K),L=h(),F=p("div"),y=w(Z),G=h(),V=p("div"),j=w(U),J=h(),Y=w(ae),oe=h(),ie=p("div"),ee=w(te),_e=h(),ue=p("div"),$=w(Q),he=h(),A=w(be),M=h(),D&&D.c(),q=Wt(),u(m,"class","text-right"),u(S,"class","text-right"),u(V,"class","text-right"),u(ue,"class","text-right"),u(s,"class","grid grid-cols-2 mb-3")},m(de,Pe){P(de,e,Pe),o(e,n),P(de,i,Pe),P(de,s,Pe),o(s,a),o(a,f),o(s,c),o(s,m),o(m,d),o(m,v),o(m,b),o(s,k),o(s,C),o(C,R),o(s,I),o(s,S),o(S,N),o(S,H),o(S,z),o(s,L),o(s,F),o(F,y),o(s,G),o(s,V),o(V,j),o(V,J),o(V,Y),o(s,oe),o(s,ie),o(ie,ee),o(s,_e),o(s,ue),o(ue,$),o(ue,he),o(ue,A),P(de,M,Pe),D&&D.m(de,Pe),P(de,q,Pe)},p(de,Pe){var Ce,Se,qe,Be,fe;Pe&16&&l!==(l=(((Ce=de[4].realtime)==null?void 0:Ce.consumption)??"Consumption")+"")&&O(n,l),Pe&16&&r!==(r=Yt(((Se=de[4].common)==null?void 0:Se.hour)??"Hour")+"")&&O(f,r),Pe&64&&_!==(_=de[6][0]+"")&&O(d,_),Pe&64&&g!==(g=de[6][1]+"")&&O(b,g),Pe&16&&E!==(E=Yt(((qe=de[4].common)==null?void 0:qe.day)??"Day")+"")&&O(R,E),Pe&128&&B!==(B=de[7][0]+"")&&O(N,B),Pe&128&&K!==(K=de[7][1]+"")&&O(z,K),Pe&16&&Z!==(Z=Yt(((Be=de[4].common)==null?void 0:Be.month)??"Month")+"")&&O(y,Z),Pe&256&&U!==(U=de[8][0]+"")&&O(j,U),Pe&256&&ae!==(ae=de[8][1]+"")&&O(Y,ae),Pe&16&&te!==(te=(((fe=de[4].realtime)==null?void 0:fe.last_month)??"Last month")+"")&&O(ee,te),Pe&512&&Q!==(Q=de[9][0]+"")&&O($,Q),Pe&512&&be!==(be=de[9][1]+"")&&O(A,be),de[5]?D?D.p(de,Pe):(D=Hs(de),D.c(),D.m(q.parentNode,q)):D&&(D.d(1),D=null)},d(de){de&&T(e),de&&T(i),de&&T(s),de&&T(M),D&&D.d(de),de&&T(q)}}}function B1(t){var Ee,Re,jt,Kt,Jt,Ot,xt,el,ll,nl;let e,l=(((Ee=t[4].common)==null?void 0:Ee.import)??"Import")+"",n,i,s,a,r=Yt(((Re=t[4].common)==null?void 0:Re.hour)??"Hour")+"",f,c,m,_=t[6][0]+"",d,v,g=t[6][1]+"",b,k,C,E,R=Yt(((jt=t[4].common)==null?void 0:jt.day)??"Day")+"",I,S,B,N=t[7][0]+"",H,K,z=t[7][1]+"",L,F,Z,y,G=Yt(((Kt=t[4].common)==null?void 0:Kt.month)??"Month")+"",V,U,j,J=t[8][0]+"",ae,Y,oe=t[8][1]+"",ie,te,ee,_e,ue=(((Jt=t[4].realtime)==null?void 0:Jt.last_mo)??"Last mo.")+"",Q,$,he,be=t[9][0]+"",A,M,q=t[9][1]+"",D,W,ne,se,me,pe=(((Ot=t[4].common)==null?void 0:Ot.export)??"Export")+"",de,Pe,Ce,Se,qe=Yt(((xt=t[4].common)==null?void 0:xt.hour)??"Hour")+"",Be,fe,we,Fe=t[10][0]+"",ft,ut,nt=t[10][1]+"",rt,Ye,gt,Ge,ht=Yt(((el=t[4].common)==null?void 0:el.day)??"Day")+"",ct,vt,Ue,je=t[11][0]+"",ye,Ae,ge=t[11][1]+"",De,Ve,ce,Le,xe=Yt(((ll=t[4].common)==null?void 0:ll.month)??"Month")+"",Xe,At,tt,ze=t[12][0]+"",mt,it,ot=t[12][1]+"",_t,St,It,Et,at=(((nl=t[4].realtime)==null?void 0:nl.last_mo)??"Last mo.")+"",Rt,Ut,Ft,Gt=t[13][0]+"",zt,Xt,Vt=t[13][1]+"",Zt,$t,We,$e=t[5]&&zs(t),st=t[5]&&Ws(t),Tt=t[5]&&Gs(t),Dt=t[5]&&Vs(t),Ie=t[5]&&Ks(t),Ze=t[5]&&Ys(t),Mt=t[5]&&Qs(t),ve=t[5]&&Xs(t);return{c(){e=p("strong"),n=w(l),i=h(),s=p("div"),a=p("div"),f=w(r),c=h(),m=p("div"),d=w(_),v=h(),b=w(g),k=h(),$e&&$e.c(),C=h(),E=p("div"),I=w(R),S=h(),B=p("div"),H=w(N),K=h(),L=w(z),F=h(),st&&st.c(),Z=h(),y=p("div"),V=w(G),U=h(),j=p("div"),ae=w(J),Y=h(),ie=w(oe),te=h(),Tt&&Tt.c(),ee=h(),_e=p("div"),Q=w(ue),$=h(),he=p("div"),A=w(be),M=h(),D=w(q),W=h(),Dt&&Dt.c(),se=h(),me=p("strong"),de=w(pe),Pe=h(),Ce=p("div"),Se=p("div"),Be=w(qe),fe=h(),we=p("div"),ft=w(Fe),ut=h(),rt=w(nt),Ye=h(),Ie&&Ie.c(),gt=h(),Ge=p("div"),ct=w(ht),vt=h(),Ue=p("div"),ye=w(je),Ae=h(),De=w(ge),Ve=h(),Ze&&Ze.c(),ce=h(),Le=p("div"),Xe=w(xe),At=h(),tt=p("div"),mt=w(ze),it=h(),_t=w(ot),St=h(),Mt&&Mt.c(),It=h(),Et=p("div"),Rt=w(at),Ut=h(),Ft=p("div"),zt=w(Gt),Xt=h(),Zt=w(Vt),$t=h(),ve&&ve.c(),u(m,"class","text-right"),u(B,"class","text-right"),u(j,"class","text-right"),u(he,"class","text-right"),u(s,"class",ne="grid grid-cols-"+t[14]+" mb-3"),u(we,"class","text-right"),u(Ue,"class","text-right"),u(tt,"class","text-right"),u(Ft,"class","text-right"),u(Ce,"class",We="grid grid-cols-"+t[14])},m(Oe,x){P(Oe,e,x),o(e,n),P(Oe,i,x),P(Oe,s,x),o(s,a),o(a,f),o(s,c),o(s,m),o(m,d),o(m,v),o(m,b),o(s,k),$e&&$e.m(s,null),o(s,C),o(s,E),o(E,I),o(s,S),o(s,B),o(B,H),o(B,K),o(B,L),o(s,F),st&&st.m(s,null),o(s,Z),o(s,y),o(y,V),o(s,U),o(s,j),o(j,ae),o(j,Y),o(j,ie),o(s,te),Tt&&Tt.m(s,null),o(s,ee),o(s,_e),o(_e,Q),o(s,$),o(s,he),o(he,A),o(he,M),o(he,D),o(s,W),Dt&&Dt.m(s,null),P(Oe,se,x),P(Oe,me,x),o(me,de),P(Oe,Pe,x),P(Oe,Ce,x),o(Ce,Se),o(Se,Be),o(Ce,fe),o(Ce,we),o(we,ft),o(we,ut),o(we,rt),o(Ce,Ye),Ie&&Ie.m(Ce,null),o(Ce,gt),o(Ce,Ge),o(Ge,ct),o(Ce,vt),o(Ce,Ue),o(Ue,ye),o(Ue,Ae),o(Ue,De),o(Ce,Ve),Ze&&Ze.m(Ce,null),o(Ce,ce),o(Ce,Le),o(Le,Xe),o(Ce,At),o(Ce,tt),o(tt,mt),o(tt,it),o(tt,_t),o(Ce,St),Mt&&Mt.m(Ce,null),o(Ce,It),o(Ce,Et),o(Et,Rt),o(Ce,Ut),o(Ce,Ft),o(Ft,zt),o(Ft,Xt),o(Ft,Zt),o(Ce,$t),ve&&ve.m(Ce,null)},p(Oe,x){var He,al,fl,ul,vl,hl,bl,gl,kl,wl;x&16&&l!==(l=(((He=Oe[4].common)==null?void 0:He.import)??"Import")+"")&&O(n,l),x&16&&r!==(r=Yt(((al=Oe[4].common)==null?void 0:al.hour)??"Hour")+"")&&O(f,r),x&64&&_!==(_=Oe[6][0]+"")&&O(d,_),x&64&&g!==(g=Oe[6][1]+"")&&O(b,g),Oe[5]?$e?$e.p(Oe,x):($e=zs(Oe),$e.c(),$e.m(s,C)):$e&&($e.d(1),$e=null),x&16&&R!==(R=Yt(((fl=Oe[4].common)==null?void 0:fl.day)??"Day")+"")&&O(I,R),x&128&&N!==(N=Oe[7][0]+"")&&O(H,N),x&128&&z!==(z=Oe[7][1]+"")&&O(L,z),Oe[5]?st?st.p(Oe,x):(st=Ws(Oe),st.c(),st.m(s,Z)):st&&(st.d(1),st=null),x&16&&G!==(G=Yt(((ul=Oe[4].common)==null?void 0:ul.month)??"Month")+"")&&O(V,G),x&256&&J!==(J=Oe[8][0]+"")&&O(ae,J),x&256&&oe!==(oe=Oe[8][1]+"")&&O(ie,oe),Oe[5]?Tt?Tt.p(Oe,x):(Tt=Gs(Oe),Tt.c(),Tt.m(s,ee)):Tt&&(Tt.d(1),Tt=null),x&16&&ue!==(ue=(((vl=Oe[4].realtime)==null?void 0:vl.last_mo)??"Last mo.")+"")&&O(Q,ue),x&512&&be!==(be=Oe[9][0]+"")&&O(A,be),x&512&&q!==(q=Oe[9][1]+"")&&O(D,q),Oe[5]?Dt?Dt.p(Oe,x):(Dt=Vs(Oe),Dt.c(),Dt.m(s,null)):Dt&&(Dt.d(1),Dt=null),x&16384&&ne!==(ne="grid grid-cols-"+Oe[14]+" mb-3")&&u(s,"class",ne),x&16&&pe!==(pe=(((hl=Oe[4].common)==null?void 0:hl.export)??"Export")+"")&&O(de,pe),x&16&&qe!==(qe=Yt(((bl=Oe[4].common)==null?void 0:bl.hour)??"Hour")+"")&&O(Be,qe),x&1024&&Fe!==(Fe=Oe[10][0]+"")&&O(ft,Fe),x&1024&&nt!==(nt=Oe[10][1]+"")&&O(rt,nt),Oe[5]?Ie?Ie.p(Oe,x):(Ie=Ks(Oe),Ie.c(),Ie.m(Ce,gt)):Ie&&(Ie.d(1),Ie=null),x&16&&ht!==(ht=Yt(((gl=Oe[4].common)==null?void 0:gl.day)??"Day")+"")&&O(ct,ht),x&2048&&je!==(je=Oe[11][0]+"")&&O(ye,je),x&2048&&ge!==(ge=Oe[11][1]+"")&&O(De,ge),Oe[5]?Ze?Ze.p(Oe,x):(Ze=Ys(Oe),Ze.c(),Ze.m(Ce,ce)):Ze&&(Ze.d(1),Ze=null),x&16&&xe!==(xe=Yt(((kl=Oe[4].common)==null?void 0:kl.month)??"Month")+"")&&O(Xe,xe),x&4096&&ze!==(ze=Oe[12][0]+"")&&O(mt,ze),x&4096&&ot!==(ot=Oe[12][1]+"")&&O(_t,ot),Oe[5]?Mt?Mt.p(Oe,x):(Mt=Qs(Oe),Mt.c(),Mt.m(Ce,It)):Mt&&(Mt.d(1),Mt=null),x&16&&at!==(at=(((wl=Oe[4].realtime)==null?void 0:wl.last_mo)??"Last mo.")+"")&&O(Rt,at),x&8192&&Gt!==(Gt=Oe[13][0]+"")&&O(zt,Gt),x&8192&&Vt!==(Vt=Oe[13][1]+"")&&O(Zt,Vt),Oe[5]?ve?ve.p(Oe,x):(ve=Xs(Oe),ve.c(),ve.m(Ce,null)):ve&&(ve.d(1),ve=null),x&16384&&We!==(We="grid grid-cols-"+Oe[14])&&u(Ce,"class",We)},d(Oe){Oe&&T(e),Oe&&T(i),Oe&&T(s),$e&&$e.d(),st&&st.d(),Tt&&Tt.d(),Dt&&Dt.d(),Oe&&T(se),Oe&&T(me),Oe&&T(Pe),Oe&&T(Ce),Ie&&Ie.d(),Ze&&Ze.d(),Mt&&Mt.d(),ve&&ve.d()}}}function Hs(t){var $,he,be,A,M;let e,l=((($=t[4].realtime)==null?void 0:$.cost)??"Cost")+"",n,i,s,a,r=Yt(((he=t[4].common)==null?void 0:he.hour)??"Hour")+"",f,c,m,_=Bt(t[1].h.c,2)+"",d,v,g,b,k,C=Yt(((be=t[4].common)==null?void 0:be.day)??"Day")+"",E,R,I,S=Bt(t[1].d.c,1)+"",B,N,H,K,z,L=Yt(((A=t[4].common)==null?void 0:A.month)??"Month")+"",F,Z,y,G=Bt(t[1].m.c)+"",V,U,j,J,ae,Y=(((M=t[4].realtime)==null?void 0:M.last_month)??"Last month")+"",oe,ie,te,ee=Bt(t[0].last_month.c)+"",_e,ue,Q;return{c(){e=p("strong"),n=w(l),i=h(),s=p("div"),a=p("div"),f=w(r),c=h(),m=p("div"),d=w(_),v=h(),g=w(t[2]),b=h(),k=p("div"),E=w(C),R=h(),I=p("div"),B=w(S),N=h(),H=w(t[2]),K=h(),z=p("div"),F=w(L),Z=h(),y=p("div"),V=w(G),U=h(),j=w(t[2]),J=h(),ae=p("div"),oe=w(Y),ie=h(),te=p("div"),_e=w(ee),ue=h(),Q=w(t[2]),u(m,"class","text-right"),u(I,"class","text-right"),u(y,"class","text-right"),u(te,"class","text-right"),u(s,"class","grid grid-cols-2")},m(q,D){P(q,e,D),o(e,n),P(q,i,D),P(q,s,D),o(s,a),o(a,f),o(s,c),o(s,m),o(m,d),o(m,v),o(m,g),o(s,b),o(s,k),o(k,E),o(s,R),o(s,I),o(I,B),o(I,N),o(I,H),o(s,K),o(s,z),o(z,F),o(s,Z),o(s,y),o(y,V),o(y,U),o(y,j),o(s,J),o(s,ae),o(ae,oe),o(s,ie),o(s,te),o(te,_e),o(te,ue),o(te,Q)},p(q,D){var W,ne,se,me,pe;D&16&&l!==(l=(((W=q[4].realtime)==null?void 0:W.cost)??"Cost")+"")&&O(n,l),D&16&&r!==(r=Yt(((ne=q[4].common)==null?void 0:ne.hour)??"Hour")+"")&&O(f,r),D&2&&_!==(_=Bt(q[1].h.c,2)+"")&&O(d,_),D&4&&O(g,q[2]),D&16&&C!==(C=Yt(((se=q[4].common)==null?void 0:se.day)??"Day")+"")&&O(E,C),D&2&&S!==(S=Bt(q[1].d.c,1)+"")&&O(B,S),D&4&&O(H,q[2]),D&16&&L!==(L=Yt(((me=q[4].common)==null?void 0:me.month)??"Month")+"")&&O(F,L),D&2&&G!==(G=Bt(q[1].m.c)+"")&&O(V,G),D&4&&O(j,q[2]),D&16&&Y!==(Y=(((pe=q[4].realtime)==null?void 0:pe.last_month)??"Last month")+"")&&O(oe,Y),D&1&&ee!==(ee=Bt(q[0].last_month.c)+"")&&O(_e,ee),D&4&&O(Q,q[2])},d(q){q&&T(e),q&&T(i),q&&T(s)}}}function zs(t){let e,l=Bt(t[1].h.c,2)+"",n,i,s;return{c(){e=p("div"),n=w(l),i=h(),s=w(t[2]),u(e,"class","text-right")},m(a,r){P(a,e,r),o(e,n),o(e,i),o(e,s)},p(a,r){r&2&&l!==(l=Bt(a[1].h.c,2)+"")&&O(n,l),r&4&&O(s,a[2])},d(a){a&&T(e)}}}function Ws(t){let e,l=Bt(t[1].d.c,1)+"",n,i,s;return{c(){e=p("div"),n=w(l),i=h(),s=w(t[2]),u(e,"class","text-right")},m(a,r){P(a,e,r),o(e,n),o(e,i),o(e,s)},p(a,r){r&2&&l!==(l=Bt(a[1].d.c,1)+"")&&O(n,l),r&4&&O(s,a[2])},d(a){a&&T(e)}}}function Gs(t){let e,l=Bt(t[1].m.c)+"",n,i,s;return{c(){e=p("div"),n=w(l),i=h(),s=w(t[2]),u(e,"class","text-right")},m(a,r){P(a,e,r),o(e,n),o(e,i),o(e,s)},p(a,r){r&2&&l!==(l=Bt(a[1].m.c)+"")&&O(n,l),r&4&&O(s,a[2])},d(a){a&&T(e)}}}function Vs(t){let e,l=Bt(t[0].last_month.c)+"",n,i,s;return{c(){e=p("div"),n=w(l),i=h(),s=w(t[2]),u(e,"class","text-right")},m(a,r){P(a,e,r),o(e,n),o(e,i),o(e,s)},p(a,r){r&1&&l!==(l=Bt(a[0].last_month.c)+"")&&O(n,l),r&4&&O(s,a[2])},d(a){a&&T(e)}}}function Ks(t){let e,l=Bt(t[1].h.i,2)+"",n,i,s;return{c(){e=p("div"),n=w(l),i=h(),s=w(t[2]),u(e,"class","text-right")},m(a,r){P(a,e,r),o(e,n),o(e,i),o(e,s)},p(a,r){r&2&&l!==(l=Bt(a[1].h.i,2)+"")&&O(n,l),r&4&&O(s,a[2])},d(a){a&&T(e)}}}function Ys(t){let e,l=Bt(t[1].d.i,1)+"",n,i,s;return{c(){e=p("div"),n=w(l),i=h(),s=w(t[2]),u(e,"class","text-right")},m(a,r){P(a,e,r),o(e,n),o(e,i),o(e,s)},p(a,r){r&2&&l!==(l=Bt(a[1].d.i,1)+"")&&O(n,l),r&4&&O(s,a[2])},d(a){a&&T(e)}}}function Qs(t){let e,l=Bt(t[1].m.i)+"",n,i,s;return{c(){e=p("div"),n=w(l),i=h(),s=w(t[2]),u(e,"class","text-right")},m(a,r){P(a,e,r),o(e,n),o(e,i),o(e,s)},p(a,r){r&2&&l!==(l=Bt(a[1].m.i)+"")&&O(n,l),r&4&&O(s,a[2])},d(a){a&&T(e)}}}function Xs(t){let e,l=Bt(t[0].last_month.i)+"",n,i,s;return{c(){e=p("div"),n=w(l),i=h(),s=w(t[2]),u(e,"class","text-right")},m(a,r){P(a,e,r),o(e,n),o(e,i),o(e,s)},p(a,r){r&1&&l!==(l=Bt(a[0].last_month.i)+"")&&O(n,l),r&4&&O(s,a[2])},d(a){a&&T(e)}}}function U1(t){var m;let e,l,n=(((m=t[4].realtime)==null?void 0:m.title)??"Real time calculations")+"",i,s,a,r,f,c=t[1]&&ys(t);return{c(){e=p("div"),l=p("strong"),i=w(n),s=h(),a=p("br"),r=p("br"),f=h(),c&&c.c(),u(e,"class","mx-2 text-sm")},m(_,d){P(_,e,d),o(e,l),o(l,i),o(e,s),o(e,a),o(e,r),o(e,f),c&&c.m(e,null)},p(_,[d]){var v;d&16&&n!==(n=(((v=_[4].realtime)==null?void 0:v.title)??"Real time calculations")+"")&&O(i,n),_[1]?c?c.p(_,d):(c=ys(_),c.c(),c.m(e,null)):c&&(c.d(1),c=null)},i:Ke,o:Ke,d(_){_&&T(e),c&&c.d()}}}function j1(t,e,l){let{sysinfo:n}=e,{data:i}=e,{currency:s}=e,{hasExport:a}=e,{translations:r={}}=e,f,c,m,_,d,v,g,b,k=!1,C=3;return t.$$set=E=>{"sysinfo"in E&&l(0,n=E.sysinfo),"data"in E&&l(1,i=E.data),"currency"in E&&l(2,s=E.currency),"hasExport"in E&&l(3,a=E.hasExport),"translations"in E&&l(4,r=E.translations)},t.$$.update=()=>{var E,R,I,S,B,N,H,K;t.$$.dirty&35&&(l(5,k=i&&i.h&&(Math.abs(i.h.c)>.01||Math.abs(i.d.c)>.01||Math.abs(i.m.c)>.01||Math.abs(i.h.i)>.01||Math.abs(i.d.i)>.01||Math.abs(i.m.i)>.01)),l(14,C=k?3:2),l(6,f=sl(((E=i==null?void 0:i.h)==null?void 0:E.u)*1e3,"Wh")),l(7,c=sl(((R=i==null?void 0:i.d)==null?void 0:R.u)*1e3,"Wh")),l(8,m=sl(((I=i==null?void 0:i.m)==null?void 0:I.u)*1e3,"Wh")),l(9,_=sl(((S=n==null?void 0:n.last_month)==null?void 0:S.u)*1e3,"Wh")),l(10,d=sl(((B=i==null?void 0:i.h)==null?void 0:B.p)*1e3,"Wh")),l(11,v=sl(((N=i==null?void 0:i.d)==null?void 0:N.p)*1e3,"Wh")),l(12,g=sl(((H=i==null?void 0:i.m)==null?void 0:H.p)*1e3,"Wh")),l(13,b=sl(((K=n==null?void 0:n.last_month)==null?void 0:K.p)*1e3,"Wh")))},[n,i,s,a,r,k,f,c,m,_,d,v,g,b,C]}class y1 extends Ct{constructor(e){super(),wt(this,e,j1,U1,kt,{sysinfo:0,data:1,currency:2,hasExport:3,translations:4})}}function H1(t){let e,l;return e=new yl({props:{config:t[0]}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,[i]){const s={};i&1&&(s.config=n[0]),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function z1(t,e,l){let{title:n}=e,{json:i}=e,{sysinfo:s}=e,a={},r,f,c=document.documentElement.classList.contains("dark");return t.$$set=m=>{"title"in m&&l(1,n=m.title),"json"in m&&l(2,i=m.json),"sysinfo"in m&&l(3,s=m.sysinfo)},t.$$.update=()=>{if(t.$$.dirty&62){let m=i.currency,_=new Date().getUTCHours(),d=0,v=0,g=0,b=[],k=[],C=[];l(5,f=l(4,r=0));let E=new Date;for(Dl(E,s.clock_offset-(24+E.getHours()-E.getUTCHours())%24),d=_;d<24&&(v=i[bt(g++)],v!=null);d++)k.push({label:bt(E.getHours())}),C.push(v*100),l(5,f=Math.min(f,v*100)),l(4,r=Math.max(r,v*100)),Dl(E,1);for(d=0;d<24&&(v=i[bt(g++)],v!=null);d++)k.push({label:bt(E.getHours())}),C.push(v*100),l(5,f=Math.min(f,v*100)),l(4,r=Math.max(r,v*100)),Dl(E,1);if(f>-100&&r<100){switch(m){case"NOK":case"DKK":m="øre";break;case"SEK":m="öre";break;case"EUR":m="cent";break;case"CHF":m="rp.";break;default:m=m+"/100"}for(l(5,f*=100),l(4,r*=100),d=0;d=0?N.toFixed(H):"",title:N>=0?N.toFixed(2)+" "+m:"",value:v>=0?Math.abs(v):0,label2:N<0?N.toFixed(H):"",title2:N<0?N.toFixed(2)+" "+m:"",value2:v<0?Math.abs(v):0,color:c?"#5c2da5":"#7c3aed"})}let I=Math.max(r,Math.abs(f));if(f<0){l(5,f=Math.min(I/4*-1,f));let N=Math.ceil(Math.abs(f)/I*4),H=f/N;for(d=1;d{"title"in m&&l(1,n=m.title),"json"in m&&l(2,i=m.json),"sysinfo"in m&&l(3,s=m.sysinfo)},t.$$.update=()=>{if(t.$$.dirty&62){let m=0,_=[],d=[],v=[];l(5,f=l(4,r=0));let g=new Date,b=new Date;b.setDate(0),b.setHours(12);let k=(b.getHours()-b.getUTCHours())%24-s.clock_offset,C=g.getUTCHours();for(Dl(g,-k-24),m=C;m<24;m++){let S=i["i"+bt(m)],B=i["e"+bt(m)];S===void 0&&(S=0),B===void 0&&(B=0),d.push({label:bt(g.getHours())}),v.push({label:S.toFixed(1),title:S.toFixed(2)+" kWh",value:S*10,label2:B.toFixed(1),title2:B.toFixed(2)+" kWh",value2:B*10,color:c?"#5c2da5":"#7c3aed",color2:c?"#27728e":"#37829e"}),l(5,f=Math.max(f,B*10)),l(4,r=Math.max(r,S*10)),Dl(g,1)}for(m=0;m{"title"in m&&l(1,n=m.title),"json"in m&&l(2,i=m.json),"sysinfo"in m&&l(3,s=m.sysinfo)},t.$$.update=()=>{if(t.$$.dirty&62){let m=0,_=[],d=[],v=[];l(5,f=l(4,r=0));let g=new Date,b=new Date;b.setDate(0),b.setHours(12);let k=(b.getHours()-b.getUTCHours())%24-s.clock_offset;for(Dl(g,-k),Dl(b,-k),m=g.getDate();m<=b.getDate();m++){let I=i["i"+bt(m)],S=i["e"+bt(m)];I===void 0&&(I=0),S===void 0&&(S=0),d.push({label:bt(m)}),v.push({label:I.toFixed(I<10?1:0),title:I.toFixed(2)+" kWh",value:I,label2:S.toFixed(S<10?1:0),title2:S.toFixed(2)+" kWh",value2:S,color:c?"#5c2da5":"#7c3aed",color2:c?"#27728e":"#37829e"}),l(5,f=Math.max(f,S)),l(4,r=Math.max(r,I))}for(m=1;m{"title"in c&&l(1,n=c.title),"json"in c&&l(2,i=c.json)},t.$$.update=()=>{if(t.$$.dirty&30){let c=0,m=0,_=[],d=[],v=[];i.s&&i.s.forEach((k,C)=>{var E=k.n?k.n:k.a;m=k.v,m==-127&&(m=0),d.push({label:E.slice(-4)}),v.push({label:m.toFixed(1),value:m,color:s?"#5c2da5":"#7c3aed"}),l(4,f=Math.min(f,m)),l(3,r=Math.max(r,m))}),l(3,r=Math.ceil(r)),l(4,f=Math.floor(f));let g=r;f<0&&(g+=Math.abs(f));let b=g/4;for(c=0;c<5;c++)m=f+b*c,_.push({value:m,label:m.toFixed(1)});l(0,a={title:n+" (°C)",dark:document.documentElement.classList.contains("dark"),height:226,width:1520,padding:{top:20,right:15,bottom:20,left:35},y:{min:f,max:r,ticks:_},x:{ticks:d},points:v})}},[a,n,i,r,f]}class $1 extends Ct{constructor(e){super(),wt(this,e,J1,Z1,kt,{title:1,json:2})}}function x1(t){let e,l;return e=new yl({props:{config:t[0]}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,[i]){const s={};i&1&&(s.config=n[0]),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}let e0=0;function t0(t,e,l){let{title:n}=e,{translations:i={}}=e,s=document.documentElement.classList.contains("dark"),a={},r=0,{tariffData:f}=e;return t.$$set=c=>{"title"in c&&l(1,n=c.title),"translations"in c&&l(2,i=c.translations),"tariffData"in c&&l(3,f=c.tariffData)},t.$$.update=()=>{var c;if(t.$$.dirty&30){let m=0,_=[],d=[],v=[];if(_.push({value:0,label:0}),f&&f.p)for(m=0;m0?bt(g.d)+"."+(i.months?(c=i.months)==null?void 0:c[new Date().getMonth()]:bt(new Date().getMonth()+1)):"-"}),l(4,r=Math.max(r,g.v))}if(f&&f.t){for(m=0;m=r)break;_.push({value:g,label:g})}_.push({label:f.m.toFixed(1),align:"right",color:"green",value:f.m})}f&&f.c&&(_.push({label:f.c.toFixed(0),color:"orange",value:f.c}),l(4,r=Math.max(r,f.c))),l(4,r=Math.ceil(r)),l(0,a={title:n,dark:document.documentElement.classList.contains("dark"),padding:{top:20,right:35,bottom:20,left:35},y:{min:e0,max:r,ticks:_},x:{ticks:d},points:v})}},[a,n,i,f,r]}class l0 extends Ct{constructor(e){super(),wt(this,e,t0,x1,kt,{title:1,translations:2,tariffData:3})}}let Il=0,n0={data:[]};async function Ri(){let e=await(await pl(Il<0?"realtime.json":"realtime.json?offset="+Il)).json();Fi.update(l=>{for(let n=0;n=0&&(Il+=e.size,IlGl||vi-Gl>300?(Ri(),ti=0):Fi.update(t=>{if(t.lastUpdate)for(;Gl>t.lastUpdate;)t.data.unshift(cu),t.data=t.data.slice(0,t.size),t.lastUpdate+=10,ti++;else t.lastUpdate=Gl;return t})}function o0(t){if(cu=t.i-t.e,Gl=t.u,!Zs){Ri(),Zs=!0,vi=Gl;return}i0()&&s0()}function Js(t,e,l){const n=t.slice();return n[18]=e[l],n[20]=l,n}function $s(t,e,l){const n=t.slice();return n[21]=e[l],n}function a0(t){let e,l,n;return{c(){e=p("strong"),l=w(t[0]),n=w(" not available"),u(e,"class","text-sm")},m(i,s){P(i,e,s),o(e,l),o(e,n)},p(i,s){s&1&&O(l,i[0])},d(i){i&&T(e)}}}function f0(t){let e,l,n,i,s,a,r,f=t[8]&&xs(t);return{c(){e=p("strong"),l=w(t[0]),n=w(" ("),i=w(t[12]),s=w(")"),a=h(),f&&f.c(),r=Wt(),u(e,"class","text-sm")},m(c,m){P(c,e,m),o(e,l),o(e,n),o(e,i),o(e,s),P(c,a,m),f&&f.m(c,m),P(c,r,m)},p(c,m){m&1&&O(l,c[0]),m&4096&&O(i,c[12]),c[8]?f?f.p(c,m):(f=xs(c),f.c(),f.m(r.parentNode,r)):f&&(f.d(1),f=null)},d(c){c&&T(e),c&&T(a),f&&f.d(c),c&&T(r)}}}function xs(t){let e,l,n,i,s,a=t[8],r=[];for(let m=0;mt[17].call(e))},m(a,r){P(a,e,r),s.m(e,null),l=Ti(e,t[17].bind(e))},p(a,[r]){i===(i=n(a))&&s?s.p(a,r):(s.d(1),s=i(a),s&&(s.c(),s.m(e,null)))},i:Ke,o:Ke,d(a){a&&T(e),s.d(),l()}}}function r0(t,e,l){let{title:n}=e,i=document.documentElement.classList.contains("dark"),s=null;Fi.subscribe(S=>{l(16,s=S)});let a=!1,r,f,c,m,_,d,v,g=function(S,B,N){return Math.ceil(_-(S-B)/(N-B)*_)-25},b=function(S){return 30+Math.ceil(S/s.size*(d-35))},k,C,E,R;function I(){c=this.clientWidth,m=this.clientHeight,l(3,c),l(4,m)}return t.$$set=S=>{"title"in S&&l(0,n=S.title)},t.$$.update=()=>{if(t.$$.dirty&67582)if(l(5,_=parseInt(m)-50),l(6,d=c-35),l(10,E=d/s.size),l(2,f=0),l(1,r=0),s.data&&_>10&&d>100&&E>.1){l(11,a=!0);for(let N in s.data){let H=s.data[N];isNaN(H)&&(H=0),l(1,r=Math.max(Math.ceil(H/1e3)*1e3,r)),l(2,f=Math.min(Math.floor(H/1e3)*1e3,f))}let S=r-f;l(12,R=r>2500?"kW":"W"),l(8,k=[]);for(let N=f;N2500?(N/1e3).toFixed(1):N}),!(k.length>6));N+=S/5);l(9,C=[]);for(let N=0;N12));N+=Math.round(s.size/Math.round(d/120)));let B=s.size;l(7,v=b(s.size)+","+g(0,f,r)+" "+b(1)+","+g(0,f,r));for(let N in s.data){if(B<0)break;let H=s.data[N];isNaN(H)&&(H=0),l(7,v=b(B--)+","+g(H,f,r)+" "+v)}}else l(11,a=!1)},[n,r,f,c,m,_,d,v,k,C,E,a,R,i,g,b,s,I]}class c0 extends Ct{constructor(e){super(),wt(this,e,r0,u0,kt,{title:0})}}function m0(t){let e,l;return e=new yl({props:{config:t[0]}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,[i]){const s={};i&1&&(s.config=n[0]),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function _0(t,e,l){let{title:n}=e,{unit:i=""}=e,{l1:s=!1}=e,{l2:a=!1}=e,{l2x:r=!1}=e,{l3:f=!1}=e,{l1i:c=0}=e,{l2i:m=0}=e,{l3i:_=0}=e,{l1e:d=0}=e,{l2e:v=0}=e,{l3e:g=0}=e,{maxImport:b=0}=e,{maxExport:k=0}=e,{importColorFn:C}=e,{exportColorFn:E}=e,R={};function I(S,B){return{label:Bt(S>900?S/1e3:S)+(S>900?"k":"")+i,title:S.toFixed(2)+" "+i,value:isNaN(S)?0:S,color:C(S?S/b*100:0,document.documentElement.classList.contains("dark")),label2:Bt(B>900?B/1e3:B)+(B>900?"k":"")+i,title2:B.toFixed(2)+" "+i,value2:isNaN(B)?0:B,color2:E(B?B/k*100:0)}}return t.$$set=S=>{"title"in S&&l(1,n=S.title),"unit"in S&&l(2,i=S.unit),"l1"in S&&l(3,s=S.l1),"l2"in S&&l(4,a=S.l2),"l2x"in S&&l(5,r=S.l2x),"l3"in S&&l(6,f=S.l3),"l1i"in S&&l(7,c=S.l1i),"l2i"in S&&l(8,m=S.l2i),"l3i"in S&&l(9,_=S.l3i),"l1e"in S&&l(10,d=S.l1e),"l2e"in S&&l(11,v=S.l2e),"l3e"in S&&l(12,g=S.l3e),"maxImport"in S&&l(13,b=S.maxImport),"maxExport"in S&&l(14,k=S.maxExport),"importColorFn"in S&&l(15,C=S.importColorFn),"exportColorFn"in S&&l(16,E=S.exportColorFn)},t.$$.update=()=>{if(t.$$.dirty&32762){let S=[],B=[];s&&(S.push({label:"L1"}),B.push(I(c,d))),a&&(r?(S.push({label:"L2"}),B.push({label:"Not available",labelAngle:-90,title:"L2 current is not reported by your meter",value:0,color:"#7c3aedcc"})):(S.push({label:"L2"}),B.push(I(m,v)))),f&&(S.push({label:"L3"}),B.push(I(_,g)));let N=[];if(k){let H=k>b?4:k*4/b;N.push({value:-k,label:"-100%"}),H>=4&&N.push({value:-k/4*3,label:"-75%"}),H>=2&&N.push({value:-k/2,label:"-50%"}),H>=4&&N.push({value:-k/4,label:"-25%"})}if(N.push({value:0,label:"0%"}),b){let H=b>k?4:b*4/k;N.push({value:b/4,label:"25%"}),H>=4&&N.push({value:b/2,label:"50%"}),H>=2&&N.push({value:b/4*3,label:"75%"}),H>=4&&N.push({value:b,label:"100%"})}l(0,R={title:n,dark:document.documentElement.classList.contains("dark"),padding:{top:20,right:15,bottom:20,left:35},y:{min:-k,max:b,ticks:N},x:{ticks:S},points:B})}},[R,n,i,s,a,r,f,c,m,_,d,v,g,b,k,C,E]}class Bi extends Ct{constructor(e){super(),wt(this,e,_0,m0,kt,{title:1,unit:2,l1:3,l2:4,l2x:5,l3:6,l1i:7,l2i:8,l3i:9,l1e:10,l2e:11,l3e:12,maxImport:13,maxExport:14,importColorFn:15,exportColorFn:16})}}function io(t){var C;let e,l,n,i,s,a,r=(t[0].mt?Vn(t[0].mt):"-")+"",f,c,m,_=t[11][0]+"",d,v,g=t[11][1]+"",b,k;return i=new ru({props:{val:t[0].i?t[0].i:0,max:t[0].im?t[0].im:15e3,unit:"W",label:((C=t[6].common)==null?void 0:C.import)??"Import",sub:Bt(t[0].p,2),subunit:t[0].pc,colorFn:Ai}}),{c(){e=p("div"),l=p("div"),n=p("div"),Te(i.$$.fragment),s=h(),a=p("div"),f=w(r),c=h(),m=p("div"),d=w(_),v=h(),b=w(g),u(n,"class","col-span-2"),u(m,"class","text-right"),u(l,"class","grid grid-cols-2"),u(e,"class","cnt")},m(E,R){P(E,e,R),o(e,l),o(l,n),Me(i,n,null),o(l,s),o(l,a),o(a,f),o(l,c),o(l,m),o(m,d),o(m,v),o(m,b),k=!0},p(E,R){var S;const I={};R&1&&(I.val=E[0].i?E[0].i:0),R&1&&(I.max=E[0].im?E[0].im:15e3),R&64&&(I.label=((S=E[6].common)==null?void 0:S.import)??"Import"),R&1&&(I.sub=Bt(E[0].p,2)),R&1&&(I.subunit=E[0].pc),i.$set(I),(!k||R&1)&&r!==(r=(E[0].mt?Vn(E[0].mt):"-")+"")&&O(f,r),(!k||R&2048)&&_!==(_=E[11][0]+"")&&O(d,_),(!k||R&2048)&&g!==(g=E[11][1]+"")&&O(b,g)},i(E){k||(X(i.$$.fragment,E),k=!0)},o(E){le(i.$$.fragment,E),k=!1},d(E){E&&T(e),Ne(i)}}}function so(t){var b;let e,l,n,i,s,a,r,f,c=t[12][0]+"",m,_,d=t[12][1]+"",v,g;return i=new ru({props:{val:t[0].e?t[0].e:0,max:t[0].om?t[0].om*1e3:1e4,unit:"W",label:((b=t[6].common)==null?void 0:b.export)??"Export",sub:Bt(t[0].px,2),subunit:t[0].pc,colorFn:Pn}}),{c(){e=p("div"),l=p("div"),n=p("div"),Te(i.$$.fragment),s=h(),a=p("div"),r=h(),f=p("div"),m=w(c),_=h(),v=w(d),u(n,"class","col-span-2"),u(f,"class","text-right"),u(l,"class","grid grid-cols-2"),u(e,"class","cnt")},m(k,C){P(k,e,C),o(e,l),o(l,n),Me(i,n,null),o(l,s),o(l,a),o(l,r),o(l,f),o(f,m),o(f,_),o(f,v),g=!0},p(k,C){var R;const E={};C&1&&(E.val=k[0].e?k[0].e:0),C&1&&(E.max=k[0].om?k[0].om*1e3:1e4),C&64&&(E.label=((R=k[6].common)==null?void 0:R.export)??"Export"),C&1&&(E.sub=Bt(k[0].px,2)),C&1&&(E.subunit=k[0].pc),i.$set(E),(!g||C&4096)&&c!==(c=k[12][0]+"")&&O(m,c),(!g||C&4096)&&d!==(d=k[12][1]+"")&&O(v,d)},i(k){g||(X(i.$$.fragment,k),g=!0)},o(k){le(i.$$.fragment,k),g=!1},d(k){k&&T(e),Ne(i)}}}function oo(t){let e,l,n=t[0].l1&&ao(t);return{c(){e=p("div"),n&&n.c(),u(e,"class","cnt")},m(i,s){P(i,e,s),n&&n.m(e,null),l=!0},p(i,s){i[0].l1?n?(n.p(i,s),s&1&&X(n,1)):(n=ao(i),n.c(),X(n,1),n.m(e,null)):n&&(pt(),le(n,1,1,()=>{n=null}),dt())},i(i){l||(X(n),l=!0)},o(i){le(n),l=!1},d(i){i&&T(e),n&&n.d()}}}function ao(t){var n;let e,l;return e=new O1({props:{title:((n=t[6].common)==null?void 0:n.voltage)??"Volt",u1:t[0].l1.u,u2:t[0].l2.u,u3:t[0].l3.u,ds:t[0].ds}}),{c(){Te(e.$$.fragment)},m(i,s){Me(e,i,s),l=!0},p(i,s){var r;const a={};s&64&&(a.title=((r=i[6].common)==null?void 0:r.voltage)??"Volt"),s&1&&(a.u1=i[0].l1.u),s&1&&(a.u2=i[0].l2.u),s&1&&(a.u3=i[0].l3.u),s&1&&(a.ds=i[0].ds),e.$set(a)},i(i){l||(X(e.$$.fragment,i),l=!0)},o(i){le(e.$$.fragment,i),l=!1},d(i){Ne(e,i)}}}function fo(t){let e,l,n=t[0].l1&&uo(t);return{c(){e=p("div"),n&&n.c(),u(e,"class","cnt")},m(i,s){P(i,e,s),n&&n.m(e,null),l=!0},p(i,s){i[0].l1?n?(n.p(i,s),s&1&&X(n,1)):(n=uo(i),n.c(),X(n,1),n.m(e,null)):n&&(pt(),le(n,1,1,()=>{n=null}),dt())},i(i){l||(X(n),l=!0)},o(i){le(n),l=!1},d(i){i&&T(e),n&&n.d()}}}function uo(t){var n;let e,l;return e=new Bi({props:{title:((n=t[6].common)==null?void 0:n.amperage)??"Amp",unit:"A",importColorFn:Ai,exportColorFn:Pn,maxImport:t[0].mf,maxExport:t[0].om?t[13]?t[0].om/.4/Math.sqrt(3):t[0].om/.23:0,l1:t[8],l2:t[9],l3:t[10],l2x:t[0].l2.e,l1i:Math.max(t[0].l1.i,0),l2i:Math.max(t[0].l2.i,0),l3i:Math.max(t[0].l3.i,0),l1e:Math.max(t[0].l1.i*-1,0),l2e:Math.max(t[0].l2.i*-1,0),l3e:Math.max(t[0].l3.i*-1,0)}}),{c(){Te(e.$$.fragment)},m(i,s){Me(e,i,s),l=!0},p(i,s){var r;const a={};s&64&&(a.title=((r=i[6].common)==null?void 0:r.amperage)??"Amp"),s&1&&(a.maxImport=i[0].mf),s&8193&&(a.maxExport=i[0].om?i[13]?i[0].om/.4/Math.sqrt(3):i[0].om/.23:0),s&256&&(a.l1=i[8]),s&512&&(a.l2=i[9]),s&1024&&(a.l3=i[10]),s&1&&(a.l2x=i[0].l2.e),s&1&&(a.l1i=Math.max(i[0].l1.i,0)),s&1&&(a.l2i=Math.max(i[0].l2.i,0)),s&1&&(a.l3i=Math.max(i[0].l3.i,0)),s&1&&(a.l1e=Math.max(i[0].l1.i*-1,0)),s&1&&(a.l2e=Math.max(i[0].l2.i*-1,0)),s&1&&(a.l3e=Math.max(i[0].l3.i*-1,0)),e.$set(a)},i(i){l||(X(e.$$.fragment,i),l=!0)},o(i){le(e.$$.fragment,i),l=!1},d(i){Ne(e,i)}}}function ro(t){let e,l,n=t[0].l1&&co(t);return{c(){e=p("div"),n&&n.c(),u(e,"class","cnt")},m(i,s){P(i,e,s),n&&n.m(e,null),l=!0},p(i,s){i[0].l1?n?(n.p(i,s),s&1&&X(n,1)):(n=co(i),n.c(),X(n,1),n.m(e,null)):n&&(pt(),le(n,1,1,()=>{n=null}),dt())},i(i){l||(X(n),l=!0)},o(i){le(n),l=!1},d(i){i&&T(e),n&&n.d()}}}function co(t){var n;let e,l;return e=new Bi({props:{title:((n=t[6].dashboard)==null?void 0:n.phase)??"Phase",unit:"W",importColorFn:Ai,exportColorFn:Pn,maxImport:(t[0].mf?t[0].mf:32)*230,maxExport:t[0].om?t[13]?t[0].om*1e3/Math.sqrt(3):t[0].om*1e3:0,l1:t[8],l2:t[9],l3:t[10],l1i:t[0].l1.p,l2i:t[0].l2.p,l3i:t[0].l3.p,l1e:t[0].l1.q,l2e:t[0].l2.q,l3e:t[0].l3.q}}),{c(){Te(e.$$.fragment)},m(i,s){Me(e,i,s),l=!0},p(i,s){var r;const a={};s&64&&(a.title=((r=i[6].dashboard)==null?void 0:r.phase)??"Phase"),s&1&&(a.maxImport=(i[0].mf?i[0].mf:32)*230),s&8193&&(a.maxExport=i[0].om?i[13]?i[0].om*1e3/Math.sqrt(3):i[0].om*1e3:0),s&256&&(a.l1=i[8]),s&512&&(a.l2=i[9]),s&1024&&(a.l3=i[10]),s&1&&(a.l1i=i[0].l1.p),s&1&&(a.l2i=i[0].l2.p),s&1&&(a.l3i=i[0].l3.p),s&1&&(a.l1e=i[0].l1.q),s&1&&(a.l2e=i[0].l2.q),s&1&&(a.l3e=i[0].l3.q),e.$set(a)},i(i){l||(X(e.$$.fragment,i),l=!0)},o(i){le(e.$$.fragment,i),l=!1},d(i){Ne(e,i)}}}function mo(t){let e,l,n=t[0].l1&&_o(t);return{c(){e=p("div"),n&&n.c(),u(e,"class","cnt")},m(i,s){P(i,e,s),n&&n.m(e,null),l=!0},p(i,s){i[0].l1?n?(n.p(i,s),s&1&&X(n,1)):(n=_o(i),n.c(),X(n,1),n.m(e,null)):n&&(pt(),le(n,1,1,()=>{n=null}),dt())},i(i){l||(X(n),l=!0)},o(i){le(n),l=!1},d(i){i&&T(e),n&&n.d()}}}function _o(t){var n;let e,l;return e=new Bi({props:{title:((n=t[6].dashboard)==null?void 0:n.pf)??"Pf",importColorFn:Pn,exportColorFn:Pn,maxImport:1,l1:t[8],l2:t[9],l3:t[10],l1i:t[0].l1.f,l2i:t[0].l2.f,l3i:t[0].l3.f}}),{c(){Te(e.$$.fragment)},m(i,s){Me(e,i,s),l=!0},p(i,s){var r;const a={};s&64&&(a.title=((r=i[6].dashboard)==null?void 0:r.pf)??"Pf"),s&256&&(a.l1=i[8]),s&512&&(a.l2=i[9]),s&1024&&(a.l3=i[10]),s&1&&(a.l1i=i[0].l1.f),s&1&&(a.l2i=i[0].l2.f),s&1&&(a.l3i=i[0].l3.f),e.$set(a)},i(i){l||(X(e.$$.fragment,i),l=!0)},o(i){le(e.$$.fragment,i),l=!1},d(i){Ne(e,i)}}}function po(t){let e,l,n;return l=new R1({props:{importInstant:t[0].ri,exportInstant:t[0].re,importTotal:t[0].ric,exportTotal:t[0].rec,translations:t[6]}}),{c(){e=p("div"),Te(l.$$.fragment),u(e,"class","cnt")},m(i,s){P(i,e,s),Me(l,e,null),n=!0},p(i,s){const a={};s&1&&(a.importInstant=i[0].ri),s&1&&(a.exportInstant=i[0].re),s&1&&(a.importTotal=i[0].ric),s&1&&(a.exportTotal=i[0].rec),s&64&&(a.translations=i[6]),l.$set(a)},i(i){n||(X(l.$$.fragment,i),n=!0)},o(i){le(l.$$.fragment,i),n=!1},d(i){i&&T(e),Ne(l)}}}function vo(t){let e,l,n;return l=new y1({props:{sysinfo:t[1],data:t[0].ea,currency:t[0].pc,hasExport:t[0].om>0||t[0].e>0,translations:t[6]}}),{c(){e=p("div"),Te(l.$$.fragment),u(e,"class","cnt")},m(i,s){P(i,e,s),Me(l,e,null),n=!0},p(i,s){const a={};s&2&&(a.sysinfo=i[1]),s&1&&(a.data=i[0].ea),s&1&&(a.currency=i[0].pc),s&1&&(a.hasExport=i[0].om>0||i[0].e>0),s&64&&(a.translations=i[6]),l.$set(a)},i(i){n||(X(l.$$.fragment,i),n=!0)},o(i){le(l.$$.fragment,i),n=!1},d(i){i&&T(e),Ne(l)}}}function ho(t){var i;let e,l,n;return l=new l0({props:{title:((i=t[6].dashboard)==null?void 0:i.tariffpeak)??"Tariff peaks",tariffData:t[7],translations:t[6]}}),{c(){e=p("div"),Te(l.$$.fragment),u(e,"class","cnt h-64")},m(s,a){P(s,e,a),Me(l,e,null),n=!0},p(s,a){var f;const r={};a&64&&(r.title=((f=s[6].dashboard)==null?void 0:f.tariffpeak)??"Tariff peaks"),a&128&&(r.tariffData=s[7]),a&64&&(r.translations=s[6]),l.$set(r)},i(s){n||(X(l.$$.fragment,s),n=!0)},o(s){le(l.$$.fragment,s),n=!1},d(s){s&&T(e),Ne(l)}}}function bo(t){var i;let e,l,n;return l=new c0({props:{title:((i=t[6].dashboard)==null?void 0:i.realtime)??"Real time"}}),{c(){e=p("div"),Te(l.$$.fragment),u(e,"class","cnt gwf")},m(s,a){P(s,e,a),Me(l,e,null),n=!0},p(s,a){var f;const r={};a&64&&(r.title=((f=s[6].dashboard)==null?void 0:f.realtime)??"Real time"),l.$set(r)},i(s){n||(X(l.$$.fragment,s),n=!0)},o(s){le(l.$$.fragment,s),n=!1},d(s){s&&T(e),Ne(l)}}}function go(t){var i;let e,l,n;return l=new W1({props:{title:((i=t[6].dashboard)==null?void 0:i.price)??"Price",json:t[2],sysinfo:t[1]}}),{c(){e=p("div"),Te(l.$$.fragment),u(e,"class","cnt gwf")},m(s,a){P(s,e,a),Me(l,e,null),n=!0},p(s,a){var f;const r={};a&64&&(r.title=((f=s[6].dashboard)==null?void 0:f.price)??"Price"),a&4&&(r.json=s[2]),a&2&&(r.sysinfo=s[1]),l.$set(r)},i(s){n||(X(l.$$.fragment,s),n=!0)},o(s){le(l.$$.fragment,s),n=!1},d(s){s&&T(e),Ne(l)}}}function ko(t){var i;let e,l,n;return l=new K1({props:{title:((i=t[6].dashboard)==null?void 0:i.day)??"24 hours",json:t[3],sysinfo:t[1]}}),{c(){e=p("div"),Te(l.$$.fragment),u(e,"class","cnt gwf")},m(s,a){P(s,e,a),Me(l,e,null),n=!0},p(s,a){var f;const r={};a&64&&(r.title=((f=s[6].dashboard)==null?void 0:f.day)??"24 hours"),a&8&&(r.json=s[3]),a&2&&(r.sysinfo=s[1]),l.$set(r)},i(s){n||(X(l.$$.fragment,s),n=!0)},o(s){le(l.$$.fragment,s),n=!1},d(s){s&&T(e),Ne(l)}}}function wo(t){var i;let e,l,n;return l=new X1({props:{title:((i=t[6].dashboard)==null?void 0:i.month)??"{0} days",json:t[4],sysinfo:t[1]}}),{c(){e=p("div"),Te(l.$$.fragment),u(e,"class","cnt gwf")},m(s,a){P(s,e,a),Me(l,e,null),n=!0},p(s,a){var f;const r={};a&64&&(r.title=((f=s[6].dashboard)==null?void 0:f.month)??"{0} days"),a&16&&(r.json=s[4]),a&2&&(r.sysinfo=s[1]),l.$set(r)},i(s){n||(X(l.$$.fragment,s),n=!0)},o(s){le(l.$$.fragment,s),n=!1},d(s){s&&T(e),Ne(l)}}}function Co(t){var i;let e,l,n;return l=new $1({props:{title:((i=t[6].dashboard)==null?void 0:i.temperature)??"Temperature",json:t[5]}}),{c(){e=p("div"),Te(l.$$.fragment),u(e,"class","cnt gwf")},m(s,a){P(s,e,a),Me(l,e,null),n=!0},p(s,a){var f;const r={};a&64&&(r.title=((f=s[6].dashboard)==null?void 0:f.temperature)??"Temperature"),a&32&&(r.json=s[5]),l.$set(r)},i(s){n||(X(l.$$.fragment,s),n=!0)},o(s){le(l.$$.fragment,s),n=!1},d(s){s&&T(e),Ne(l)}}}function p0(t){let e,l=yt(t[1].ui.i,t[0].i),n,i=yt(t[1].ui.e,t[0].om||t[0].e>0),s,a=yt(t[1].ui.v,t[0].l1&&(t[0].l1.u>100||t[0].l2.u>100||t[0].l3.u>100)),r,f=yt(t[1].ui.a,t[0].l1&&(t[0].l1.i>.01||t[0].l2.i>.01||t[0].l3.i>.01)),c,m=yt(t[1].ui.h,t[0].l1&&(t[0].l1.p>.01||t[0].l2.p>.01||t[0].l3.p>.01||t[0].l1.q>.01||t[0].l2.q>.01||t[0].l3.q>.01)),_,d=yt(t[1].ui.f,t[0].l1&&(t[0].l1.f>.01||t[0].l2.f>.01||t[0].l3.f>.01)),v,g=yt(t[1].ui.r,t[0].ri>0||t[0].re>0||t[0].ric>0||t[0].rec>0),b,k=yt(t[1].ui.c,t[0].ea),C,E=yt(t[1].ui.t,t[0].pr&&(t[0].pr.startsWith("NO")||t[0].pr.startsWith("10YNO")||t[0].pr.startsWith("10Y1001A1001A4"))),R,I=yt(t[1].ui.l,t[0].hm==1),S,B=yt(t[1].ui.p,t[0].pe&&!Number.isNaN(t[0].p)),N,H=yt(t[1].ui.d,t[3]),K,z=yt(t[1].ui.m,t[4]),L,F=yt(t[1].ui.s,t[0].t&&t[0].t!=-127&&t[5].c>1),Z,y=l&&io(t),G=i&&so(t),V=a&&oo(t),U=f&&fo(t),j=m&&ro(t),J=d&&mo(t),ae=g&&po(t),Y=k&&vo(t),oe=E&&ho(t),ie=I&&bo(t),te=B&&go(t),ee=H&&ko(t),_e=z&&wo(t),ue=F&&Co(t);return{c(){e=p("div"),y&&y.c(),n=h(),G&&G.c(),s=h(),V&&V.c(),r=h(),U&&U.c(),c=h(),j&&j.c(),_=h(),J&&J.c(),v=h(),ae&&ae.c(),b=h(),Y&&Y.c(),C=h(),oe&&oe.c(),R=h(),ie&&ie.c(),S=h(),te&&te.c(),N=h(),ee&&ee.c(),K=h(),_e&&_e.c(),L=h(),ue&&ue.c(),u(e,"class","grid 2xl:grid-cols-6 xl:grid-cols-5 lg:grid-cols-4 md:grid-cols-3 sm:grid-cols-2")},m(Q,$){P(Q,e,$),y&&y.m(e,null),o(e,n),G&&G.m(e,null),o(e,s),V&&V.m(e,null),o(e,r),U&&U.m(e,null),o(e,c),j&&j.m(e,null),o(e,_),J&&J.m(e,null),o(e,v),ae&&ae.m(e,null),o(e,b),Y&&Y.m(e,null),o(e,C),oe&&oe.m(e,null),o(e,R),ie&&ie.m(e,null),o(e,S),te&&te.m(e,null),o(e,N),ee&&ee.m(e,null),o(e,K),_e&&_e.m(e,null),o(e,L),ue&&ue.m(e,null),Z=!0},p(Q,[$]){$&3&&(l=yt(Q[1].ui.i,Q[0].i)),l?y?(y.p(Q,$),$&3&&X(y,1)):(y=io(Q),y.c(),X(y,1),y.m(e,n)):y&&(pt(),le(y,1,1,()=>{y=null}),dt()),$&3&&(i=yt(Q[1].ui.e,Q[0].om||Q[0].e>0)),i?G?(G.p(Q,$),$&3&&X(G,1)):(G=so(Q),G.c(),X(G,1),G.m(e,s)):G&&(pt(),le(G,1,1,()=>{G=null}),dt()),$&3&&(a=yt(Q[1].ui.v,Q[0].l1&&(Q[0].l1.u>100||Q[0].l2.u>100||Q[0].l3.u>100))),a?V?(V.p(Q,$),$&3&&X(V,1)):(V=oo(Q),V.c(),X(V,1),V.m(e,r)):V&&(pt(),le(V,1,1,()=>{V=null}),dt()),$&3&&(f=yt(Q[1].ui.a,Q[0].l1&&(Q[0].l1.i>.01||Q[0].l2.i>.01||Q[0].l3.i>.01))),f?U?(U.p(Q,$),$&3&&X(U,1)):(U=fo(Q),U.c(),X(U,1),U.m(e,c)):U&&(pt(),le(U,1,1,()=>{U=null}),dt()),$&3&&(m=yt(Q[1].ui.h,Q[0].l1&&(Q[0].l1.p>.01||Q[0].l2.p>.01||Q[0].l3.p>.01||Q[0].l1.q>.01||Q[0].l2.q>.01||Q[0].l3.q>.01))),m?j?(j.p(Q,$),$&3&&X(j,1)):(j=ro(Q),j.c(),X(j,1),j.m(e,_)):j&&(pt(),le(j,1,1,()=>{j=null}),dt()),$&3&&(d=yt(Q[1].ui.f,Q[0].l1&&(Q[0].l1.f>.01||Q[0].l2.f>.01||Q[0].l3.f>.01))),d?J?(J.p(Q,$),$&3&&X(J,1)):(J=mo(Q),J.c(),X(J,1),J.m(e,v)):J&&(pt(),le(J,1,1,()=>{J=null}),dt()),$&3&&(g=yt(Q[1].ui.r,Q[0].ri>0||Q[0].re>0||Q[0].ric>0||Q[0].rec>0)),g?ae?(ae.p(Q,$),$&3&&X(ae,1)):(ae=po(Q),ae.c(),X(ae,1),ae.m(e,b)):ae&&(pt(),le(ae,1,1,()=>{ae=null}),dt()),$&3&&(k=yt(Q[1].ui.c,Q[0].ea)),k?Y?(Y.p(Q,$),$&3&&X(Y,1)):(Y=vo(Q),Y.c(),X(Y,1),Y.m(e,C)):Y&&(pt(),le(Y,1,1,()=>{Y=null}),dt()),$&3&&(E=yt(Q[1].ui.t,Q[0].pr&&(Q[0].pr.startsWith("NO")||Q[0].pr.startsWith("10YNO")||Q[0].pr.startsWith("10Y1001A1001A4")))),E?oe?(oe.p(Q,$),$&3&&X(oe,1)):(oe=ho(Q),oe.c(),X(oe,1),oe.m(e,R)):oe&&(pt(),le(oe,1,1,()=>{oe=null}),dt()),$&3&&(I=yt(Q[1].ui.l,Q[0].hm==1)),I?ie?(ie.p(Q,$),$&3&&X(ie,1)):(ie=bo(Q),ie.c(),X(ie,1),ie.m(e,S)):ie&&(pt(),le(ie,1,1,()=>{ie=null}),dt()),$&3&&(B=yt(Q[1].ui.p,Q[0].pe&&!Number.isNaN(Q[0].p))),B?te?(te.p(Q,$),$&3&&X(te,1)):(te=go(Q),te.c(),X(te,1),te.m(e,N)):te&&(pt(),le(te,1,1,()=>{te=null}),dt()),$&10&&(H=yt(Q[1].ui.d,Q[3])),H?ee?(ee.p(Q,$),$&10&&X(ee,1)):(ee=ko(Q),ee.c(),X(ee,1),ee.m(e,K)):ee&&(pt(),le(ee,1,1,()=>{ee=null}),dt()),$&18&&(z=yt(Q[1].ui.m,Q[4])),z?_e?(_e.p(Q,$),$&18&&X(_e,1)):(_e=wo(Q),_e.c(),X(_e,1),_e.m(e,L)):_e&&(pt(),le(_e,1,1,()=>{_e=null}),dt()),$&35&&(F=yt(Q[1].ui.s,Q[0].t&&Q[0].t!=-127&&Q[5].c>1)),F?ue?(ue.p(Q,$),$&35&&X(ue,1)):(ue=Co(Q),ue.c(),X(ue,1),ue.m(e,null)):ue&&(pt(),le(ue,1,1,()=>{ue=null}),dt())},i(Q){Z||(X(y),X(G),X(V),X(U),X(j),X(J),X(ae),X(Y),X(oe),X(ie),X(te),X(ee),X(_e),X(ue),Z=!0)},o(Q){le(y),le(G),le(V),le(U),le(j),le(J),le(ae),le(Y),le(oe),le(ie),le(te),le(ee),le(_e),le(ue),Z=!1},d(Q){Q&&T(e),y&&y.d(),G&&G.d(),V&&V.d(),U&&U.d(),j&&j.d(),J&&J.d(),ae&&ae.d(),Y&&Y.d(),oe&&oe.d(),ie&&ie.d(),te&&te.d(),ee&&ee.d(),_e&&_e.d(),ue&&ue.d()}}}function d0(t,e,l){let{data:n={}}=e,{sysinfo:i={}}=e,{prices:s={}}=e,{dayPlot:a={}}=e,{monthPlot:r={}}=e,{temperatures:f={}}=e,{translations:c={}}=e,{tariffData:m={}}=e,_,d,v,g,b,k;return t.$$set=C=>{"data"in C&&l(0,n=C.data),"sysinfo"in C&&l(1,i=C.sysinfo),"prices"in C&&l(2,s=C.prices),"dayPlot"in C&&l(3,a=C.dayPlot),"monthPlot"in C&&l(4,r=C.monthPlot),"temperatures"in C&&l(5,f=C.temperatures),"translations"in C&&l(6,c=C.translations),"tariffData"in C&&l(7,m=C.tariffData)},t.$$.update=()=>{var C,E,R,I,S,B,N,H,K,z,L,F,Z,y,G;t.$$.dirty&1793&&(l(11,_=sl((n==null?void 0:n.ic)*1e3,"Wh")),l(12,d=sl((n==null?void 0:n.ec)*1e3,"Wh")),((C=n==null?void 0:n.l1)==null?void 0:C.u)==0&&((E=n==null?void 0:n.l2)==null?void 0:E.u)==0&&((R=n==null?void 0:n.l3)==null?void 0:R.u)==0?l(8,g=l(9,b=l(10,k=l(13,v=!0)))):(l(8,g=((I=n==null?void 0:n.l1)==null?void 0:I.u)>0||((S=n==null?void 0:n.l1)==null?void 0:S.i)>0||((B=n==null?void 0:n.l1)==null?void 0:B.p)>0||((N=n==null?void 0:n.l1)==null?void 0:N.q)>0),l(9,b=((H=n==null?void 0:n.l2)==null?void 0:H.u)>0||((K=n==null?void 0:n.l2)==null?void 0:K.i)>0||((z=n==null?void 0:n.l2)==null?void 0:z.p)>0||((L=n==null?void 0:n.l2)==null?void 0:L.q)>0),l(10,k=((F=n==null?void 0:n.l3)==null?void 0:F.u)>0||((Z=n==null?void 0:n.l3)==null?void 0:Z.i)>0||((y=n==null?void 0:n.l3)==null?void 0:y.p)>0||((G=n==null?void 0:n.l3)==null?void 0:G.q)>0),l(13,v=g&&b&&k)))},[n,i,s,a,r,f,c,m,g,b,k,_,d,v]}class v0 extends Ct{constructor(e){super(),wt(this,e,d0,p0,kt,{data:0,sysinfo:1,prices:2,dayPlot:3,monthPlot:4,temperatures:5,translations:6,tariffData:7})}}let hi={};const Cn=tl(hi);async function h0(){hi=await(await fetch("configuration.json")).json(),Cn.set(hi)}let bi={};const mu=tl(bi);async function b0(){bi=await(await fetch("priceconfig.json")).json(),mu.set(bi)}function So(t,e,l){const n=t.slice();return n[2]=e[l],n[4]=l,n}function Mo(t){let e,l,n;return{c(){e=p("option"),e.textContent="UART0",l=h(),n=p("option"),n.textContent="UART2",e.__value=3,e.value=e.__value,n.__value=113,n.value=n.__value},m(i,s){P(i,e,s),P(i,l,s),P(i,n,s)},d(i){i&&T(e),i&&T(l),i&&T(n)}}}function No(t){let e,l,n;return{c(){e=p("option"),l=w("GPIO"),n=w(t[4]),e.__value=t[4],e.value=e.__value},m(i,s){P(i,e,s),o(e,l),o(e,n)},d(i){i&&T(e)}}}function To(t){let e,l=t[4]>1&&!(t[0]=="esp8266"&&(t[4]==3||t[4]==113))&&No(t);return{c(){l&&l.c(),e=Wt()},m(n,i){l&&l.m(n,i),P(n,e,i)},p(n,i){n[4]>1&&!(n[0]=="esp8266"&&(n[4]==3||n[4]==113))?l||(l=No(n),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},d(n){l&&l.d(n),n&&T(e)}}}function g0(t){let e,l,n,i,s=t[0]=="esp8266"&&Mo(),a={length:t[1]+1},r=[];for(let f=0;f{"chip"in s&&l(0,n=s.chip)},t.$$.update=()=>{if(t.$$.dirty&1)switch(n){case"esp8266":l(1,i=16);break;case"esp32s2":l(1,i=44);break;case"esp32s3":l(1,i=46);break;case"esp32c3":l(1,i=19);break}},[n,i]}class gi extends Ct{constructor(e){super(),wt(this,e,k0,g0,kt,{chip:0})}}function Po(t){let e,l,n=t[1]&&Eo(t);return{c(){e=p("div"),l=p("div"),n&&n.c(),u(l,"class","fixed inset-0 bg-gray-500 dark:bg-gray-900 bg-opacity-50 dark:bg-opacity-80 flex items-center justify-center"),u(e,"class","z-50"),u(e,"aria-modal","true")},m(i,s){P(i,e,s),o(e,l),n&&n.m(l,null)},p(i,s){i[1]?n?n.p(i,s):(n=Eo(i),n.c(),n.m(l,null)):n&&(n.d(1),n=null)},d(i){i&&T(e),n&&n.d()}}}function Eo(t){let e,l;return{c(){e=p("div"),l=w(t[1]),u(e,"class","bg-white dark:bg-gray-600 m-2 p-3 rounded-md shadow-lg pb-4 text-gray-700 dark:text-white w-96")},m(n,i){P(n,e,i),o(e,l)},p(n,i){i&2&&O(l,n[1])},d(n){n&&T(e)}}}function w0(t){let e,l=t[0]&&Po(t);return{c(){l&&l.c(),e=Wt()},m(n,i){l&&l.m(n,i),P(n,e,i)},p(n,[i]){n[0]?l?l.p(n,i):(l=Po(n),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},i:Ke,o:Ke,d(n){l&&l.d(n),n&&T(e)}}}function C0(t,e,l){let{active:n}=e,{message:i}=e;return t.$$set=s=>{"active"in s&&l(0,n=s.active),"message"in s&&l(1,i=s.message)},[n,i]}class il extends Ct{constructor(e){super(),wt(this,e,C0,w0,kt,{active:0,message:1})}}function Do(t,e,l){const n=t.slice();return n[1]=e[l],n}function qo(t){let e,l,n=t[1]+"",i;return{c(){e=p("option"),l=w("Europe/"),i=w(n),e.__value="Europe/"+t[1],e.value=e.__value},m(s,a){P(s,e,a),o(e,l),o(e,i)},p:Ke,d(s){s&&T(e)}}}function S0(t){let e,l,n,i=t[0],s=[];for(let a=0;a>1&1,D=0;D0;M--)D[M]=D[M]?D[M-1]^S.EXPONENT[H._modN(S.LOG[D[M]]+A)]:D[M-1];D[0]=S.EXPONENT[H._modN(S.LOG[D[0]]+A)]}for(A=0;A<=q;A++)D[A]=S.LOG[D[A]]},_checkBadness:function(){var A,M,q,D,W,ne=0,se=this._badness,me=this.buffer,pe=this.width;for(W=0;Wpe*pe;)Ce-=pe*pe,Pe++;for(ne+=Pe*H.N4,D=0;D=se-2&&(A=se-2,W>9&&A--);var me=A;if(W>9){for(ne[me+2]=0,ne[me+3]=0;me--;)M=ne[me],ne[me+3]|=255&M<<4,ne[me+2]=M>>4;ne[2]|=255&A<<4,ne[1]=A>>4,ne[0]=64|A>>12}else{for(ne[me+1]=0,ne[me+2]=0;me--;)M=ne[me],ne[me+2]|=255&M<<4,ne[me+1]=M>>4;ne[1]|=255&A<<4,ne[0]=64|A>>4}for(me=A+3-(W<10);me=5&&(q+=H.N1+D[M]-5);for(M=3;MA||D[M-3]*3>=D[M]*4||D[M+3]*3>=D[M]*4)&&(q+=H.N3);return q},_finish:function(){this._stringBuffer=this.buffer.slice();var A,M,q=0,D=3e4;for(M=0;M<8&&(this._applyMask(M),A=this._checkBadness(),A>=1)D&1&&(W[ne-1-M+ne*8]=1,M<6?W[8+ne*M]=1:W[8+ne*(M+1)]=1);for(M=0;M<7;M++,D>>=1)D&1&&(W[8+ne*(ne-7+M)]=1,M?W[6-M+ne*8]=1:W[7+ne*8]=1)},_interleaveBlocks:function(){var A,M,q=this._dataBlock,D=this._ecc,W=this._eccBlock,ne=0,se=this._calculateMaxLength(),me=this._neccBlock1,pe=this._neccBlock2,de=this._stringBuffer;for(A=0;A1)for(A=C.BLOCK[D],q=W-7;;){for(M=W-7;M>A-3&&(this._addAlignment(M,q),!(M6)for(A=N.BLOCK[ne-7],M=17,q=0;q<6;q++)for(D=0;D<3;D++,M--)1&(M>11?ne>>M-12:A>>M)?(W[5-q+se*(2-D+se-11)]=1,W[2-D+se-11+se*(5-q)]=1):(this._setMask(5-q,2-D+se-11),this._setMask(2-D+se-11,5-q))},_isMasked:function(A,M){var q=H._getMaskBit(A,M);return this._mask[q]===1},_pack:function(){var A,M,q,D=1,W=1,ne=this.width,se=ne-1,me=ne-1,pe=(this._dataBlock+this._eccBlock)*(this._neccBlock1+this._neccBlock2)+this._neccBlock2;for(M=0;MM&&(q=A,A=M,M=q),q=M,q+=M*M,q>>=1,q+=A,q},_modN:function(A){for(;A>=255;)A-=255,A=(A>>8)+(A&255);return A},N1:3,N2:3,N3:40,N4:10}),K=H,z=v.extend({draw:function(){this.element.src=this.qrious.toDataURL()},reset:function(){this.element.src=""},resize:function(){var A=this.element;A.width=A.height=this.qrious.size}}),L=z,F=_.extend(function(A,M,q,D){this.name=A,this.modifiable=!!M,this.defaultValue=q,this._valueTransformer=D},{transform:function(A){var M=this._valueTransformer;return typeof M=="function"?M(A,this):A}}),Z=F,y=_.extend(null,{abs:function(A){return A!=null?Math.abs(A):null},hasOwn:function(A,M){return Object.prototype.hasOwnProperty.call(A,M)},noop:function(){},toUpperCase:function(A){return A!=null?A.toUpperCase():null}}),G=y,V=_.extend(function(A){this.options={},A.forEach(function(M){this.options[M.name]=M},this)},{exists:function(A){return this.options[A]!=null},get:function(A,M){return V._get(this.options[A],M)},getAll:function(A){var M,q=this.options,D={};for(M in q)G.hasOwn(q,M)&&(D[M]=V._get(q[M],A));return D},init:function(A,M,q){typeof q!="function"&&(q=G.noop);var D,W;for(D in this.options)G.hasOwn(this.options,D)&&(W=this.options[D],V._set(W,W.defaultValue,M),V._createAccessor(W,M,q));this._setAll(A,M,!0)},set:function(A,M,q){return this._set(A,M,q)},setAll:function(A,M){return this._setAll(A,M)},_set:function(A,M,q,D){var W=this.options[A];if(!W)throw new Error("Invalid option: "+A);if(!W.modifiable&&!D)throw new Error("Option cannot be modified: "+A);return V._set(W,M,q)},_setAll:function(A,M,q){if(!A)return!1;var D,W=!1;for(D in A)G.hasOwn(A,D)&&this._set(D,A[D],M,q)&&(W=!0);return W}},{_createAccessor:function(A,M,q){var D={get:function(){return V._get(A,M)}};A.modifiable&&(D.set=function(W){V._set(A,W,M)&&q(W,A)}),Object.defineProperty(M,A.name,D)},_get:function(A,M){return M["_"+A.name]},_set:function(A,M,q){var D="_"+A.name,W=q[D],ne=A.transform(M??A.defaultValue);return q[D]=ne,ne!==W}}),U=V,j=_.extend(function(){this._services={}},{getService:function(A){var M=this._services[A];if(!M)throw new Error("Service is not being managed with name: "+A);return M},setService:function(A,M){if(this._services[A])throw new Error("Service is already managed with name: "+A);M&&(this._services[A]=M)}}),J=j,ae=new U([new Z("background",!0,"white"),new Z("backgroundAlpha",!0,1,G.abs),new Z("element"),new Z("foreground",!0,"black"),new Z("foregroundAlpha",!0,1,G.abs),new Z("level",!0,"L",G.toUpperCase),new Z("mime",!0,"image/png"),new Z("padding",!0,null,G.abs),new Z("size",!0,100,G.abs),new Z("value",!0,"")]),Y=new J,oe=_.extend(function(A){ae.init(A,this,this.update.bind(this));var M=ae.get("element",this),q=Y.getService("element"),D=M&&q.isCanvas(M)?M:q.createCanvas(),W=M&&q.isImage(M)?M:q.createImage();this._canvasRenderer=new b(this,D,!0),this._imageRenderer=new L(this,W,W===M),this.update()},{get:function(){return ae.getAll(this)},set:function(A){ae.setAll(A,this)&&this.update()},toDataURL:function(A){return this.canvas.toDataURL(A||this.mime)},update:function(){var A=new K({level:this.level,value:this.value});this._canvasRenderer.render(A),this._imageRenderer.render(A)}},{use:function(A){Y.setService(A.getName(),A)}});Object.defineProperties(oe.prototype,{canvas:{get:function(){return this._canvasRenderer.getElement()}},image:{get:function(){return this._imageRenderer.getElement()}}});var ie=oe,te=ie,ee=_.extend({getName:function(){}}),_e=ee,ue=_e.extend({createCanvas:function(){},createImage:function(){},getName:function(){return"element"},isCanvas:function(A){},isImage:function(A){}}),Q=ue,$=Q.extend({createCanvas:function(){return document.createElement("canvas")},createImage:function(){return document.createElement("img")},isCanvas:function(A){return A instanceof HTMLCanvasElement},isImage:function(A){return A instanceof HTMLImageElement}}),he=$;te.use(new he);var be=te;return be})})(pu);var D0=pu.exports;const q0=E0(D0);function A0(t){let e,l;return{c(){e=p("img"),yn(e.src,l=t[2])||u(e,"src",l),u(e,"alt",t[0]),u(e,"class",t[1])},m(n,i){P(n,e,i)},p(n,[i]){i&4&&!yn(e.src,l=n[2])&&u(e,"src",l),i&1&&u(e,"alt",n[0]),i&2&&u(e,"class",n[1])},i:Ke,o:Ke,d(n){n&&T(e)}}}function O0(t,e,l){const n=new q0;let{errorCorrection:i="L"}=e,{background:s="#fff"}=e,{color:a="#000"}=e,{size:r="200"}=e,{value:f=""}=e,{padding:c=0}=e,{className:m="qrcode"}=e,_="";function d(){n.set({background:s,foreground:a,level:i,padding:c,size:r,value:f}),l(2,_=n.toDataURL("image/jpeg"))}return Cf(()=>{d()}),t.$$set=v=>{"errorCorrection"in v&&l(3,i=v.errorCorrection),"background"in v&&l(4,s=v.background),"color"in v&&l(5,a=v.color),"size"in v&&l(6,r=v.size),"value"in v&&l(0,f=v.value),"padding"in v&&l(7,c=v.padding),"className"in v&&l(1,m=v.className)},t.$$.update=()=>{t.$$.dirty&1&&f&&d()},[f,m,_,i,s,a,r,c]}class L0 extends Ct{constructor(e){super(),wt(this,e,O0,A0,kt,{errorCorrection:3,background:4,color:5,size:6,value:0,padding:7,className:1})}}function Ao(t,e,l){const n=t.slice();return n[113]=e[l],n}function Oo(t,e,l){const n=t.slice();return n[116]=e[l],n[117]=e,n[118]=l,n}function Lo(t,e,l){const n=t.slice();return n[119]=e[l],n[120]=e,n[121]=l,n}function I0(t,e,l){const n=t.slice();return n[122]=e[l],n}function R0(t,e,l){const n=t.slice();return n[125]=e[l],n}function Io(t){var Re,jt,Kt,Jt,Ot,xt,el,ll,nl,Oe,x,He,al,fl,ul,vl,hl,bl,gl,kl,wl,Zl,Jl,$l,xl,en;let e,l,n=(((jt=(Re=t[2].conf)==null?void 0:Re.general)==null?void 0:jt.title)??"General")+"",i,s,a,r,f,c,m,_,d,v,g=(((Jt=(Kt=t[2].conf)==null?void 0:Kt.general)==null?void 0:Jt.hostname)??"Hostname")+"",b,k,C,E,R,I,S=(((xt=(Ot=t[2].conf)==null?void 0:Ot.general)==null?void 0:xt.timezone)??"Time zone")+"",B,N,H,K,z,L,F,Z,y,G,V,U=(((ll=(el=t[2].conf)==null?void 0:el.price)==null?void 0:ll.region)??"Price region")+"",j,J,ae,Y,oe,ie,te,ee,_e,ue,Q,$,he,be,A,M,q,D,W,ne,se,me,pe,de,Pe,Ce,Se,qe,Be,fe,we,Fe,ft,ut,nt=(((Oe=(nl=t[2].conf)==null?void 0:nl.price)==null?void 0:Oe.currency)??"Currency")+"",rt,Ye,gt,Ge,ht,ct,vt,Ue,je,ye,Ae,ge,De=(((He=(x=t[2].conf)==null?void 0:x.price)==null?void 0:He.enabled)??"Enabled")+"",Ve,ce,Le,xe,Xe=(((ul=(fl=(al=t[2].conf)==null?void 0:al.general)==null?void 0:fl.security)==null?void 0:ul.title)??"Security")+"",At,tt,ze,mt,it,ot=(((bl=(hl=(vl=t[2].conf)==null?void 0:vl.general)==null?void 0:hl.security)==null?void 0:bl.none)??"None")+"",_t,St,It=(((wl=(kl=(gl=t[2].conf)==null?void 0:gl.general)==null?void 0:kl.security)==null?void 0:wl.conf)??"Conf")+"",Et,at,Rt=((($l=(Jl=(Zl=t[2].conf)==null?void 0:Zl.general)==null?void 0:Jl.security)==null?void 0:$l.all)??"All")+"",Ut,Ft,Gt,zt,Xt=(((en=(xl=t[2].conf)==null?void 0:xl.general)==null?void 0:en.context)??"Context")+"",Vt,Zt,$t,We,$e,st,Tt,Dt;z=new N0({});let Ie=!t[6].p.t&&Ro(),Ze=["NOK","SEK","DKK","EUR","CHF"],Mt=[];for(let lt=0;lt<5;lt+=1)Mt[lt]=F0(R0(t,Ze,lt));vt=new ml({props:{to:"/priceconfig",class:"text-blue-600 hover:text-blue-800",$$slots:{default:[B0]},$$scope:{ctx:t}}});let ve=t[6].p.e&&t[0].chip!="esp8266"&&Fo(t),Ee=t[6].g.s>0&&Bo(t);return{c(){var lt,Lt;e=p("div"),l=p("strong"),i=w(n),s=h(),a=p("a"),r=w("ⓘ"),f=h(),c=p("input"),m=h(),_=p("div"),d=p("div"),v=p("div"),b=w(g),k=p("br"),C=h(),E=p("input"),R=h(),I=p("div"),B=w(S),N=p("br"),H=h(),K=p("select"),Te(z.$$.fragment),L=h(),F=p("input"),Z=h(),y=p("div"),G=p("div"),V=p("div"),j=w(U),J=p("br"),ae=h(),Y=p("select"),oe=p("optgroup"),Ie&&Ie.c(),ie=p("option"),ie.textContent="NO1",te=p("option"),te.textContent="NO2",ee=p("option"),ee.textContent="NO3",_e=p("option"),_e.textContent="NO4",ue=p("option"),ue.textContent="NO5",Q=p("optgroup"),$=p("option"),$.textContent="SE1",he=p("option"),he.textContent="SE2",be=p("option"),be.textContent="SE3",A=p("option"),A.textContent="SE4",M=p("optgroup"),q=p("option"),q.textContent="DK1",D=p("option"),D.textContent="DK2",W=p("option"),W.textContent="Austria",ne=p("option"),ne.textContent="Belgium",se=p("option"),se.textContent="Czech Republic",me=p("option"),me.textContent="Estonia",pe=p("option"),pe.textContent="Finland",de=p("option"),de.textContent="France",Pe=p("option"),Pe.textContent="Germany",Ce=p("option"),Ce.textContent="Great Britain",Se=p("option"),Se.textContent="Latvia",qe=p("option"),qe.textContent="Lithuania",Be=p("option"),Be.textContent="Netherland",fe=p("option"),fe.textContent="Poland",we=p("option"),we.textContent="Slovenia",Fe=p("option"),Fe.textContent="Switzerland",ft=h(),ut=p("div"),rt=w(nt),Ye=p("br"),gt=h(),Ge=p("select");for(let rl=0;rl<5;rl+=1)Mt[rl].c();ht=h(),ct=p("div"),Te(vt.$$.fragment),Ue=h(),je=p("div"),ye=p("label"),Ae=p("input"),ge=h(),Ve=w(De),ce=h(),ve&&ve.c(),Le=h(),xe=p("div"),At=w(Xe),tt=p("br"),ze=h(),mt=p("select"),it=p("option"),_t=w(ot),St=p("option"),Et=w(It),at=p("option"),Ut=w(Rt),Ft=h(),Ee&&Ee.c(),Gt=h(),zt=p("div"),Vt=w(Xt),Zt=p("br"),$t=h(),We=p("input"),u(l,"class","text-sm"),u(a,"href",cl("General-configuration")),u(a,"target","_blank"),u(a,"class","float-right"),u(c,"type","hidden"),u(c,"name","g"),c.value="true",u(E,"name","gh"),u(E,"type","text"),u(E,"class","in-f w-full"),u(E,"pattern","[A-Za-z0-9-]+"),u(K,"name","gt"),u(K,"class","in-l w-full"),t[6].g.t===void 0&&qt(()=>t[23].call(K)),u(d,"class","flex"),u(_,"class","my-1"),u(F,"type","hidden"),u(F,"name","p"),F.value="true",ie.__value="10YNO-1--------2",ie.value=ie.__value,te.__value="10YNO-2--------T",te.value=te.__value,ee.__value="10YNO-3--------J",ee.value=ee.__value,_e.__value="10YNO-4--------9",_e.value=_e.__value,ue.__value="10Y1001A1001A48H",ue.value=ue.__value,u(oe,"label","Norway"),$.__value="10Y1001A1001A44P",$.value=$.__value,he.__value="10Y1001A1001A45N",he.value=he.__value,be.__value="10Y1001A1001A46L",be.value=be.__value,A.__value="10Y1001A1001A47J",A.value=A.__value,u(Q,"label","Sweden"),q.__value="10YDK-1--------W",q.value=q.__value,D.__value="10YDK-2--------M",D.value=D.__value,u(M,"label","Denmark"),W.__value="10YAT-APG------L",W.value=W.__value,ne.__value="10YBE----------2",ne.value=ne.__value,se.__value="10YCZ-CEPS-----N",se.value=se.__value,me.__value="10Y1001A1001A39I",me.value=me.__value,pe.__value="10YFI-1--------U",pe.value=pe.__value,de.__value="10YFR-RTE------C",de.value=de.__value,Pe.__value="10Y1001A1001A83F",Pe.value=Pe.__value,Ce.__value="10YGB----------A",Ce.value=Ce.__value,Se.__value="10YLV-1001A00074",Se.value=Se.__value,qe.__value="10YLT-1001A0008Q",qe.value=qe.__value,Be.__value="10YNL----------L",Be.value=Be.__value,fe.__value="10YPL-AREA-----S",fe.value=fe.__value,we.__value="10YSI-ELES-----O",we.value=we.__value,Fe.__value="10YCH-SWISSGRIDZ",Fe.value=Fe.__value,u(Y,"name","pr"),u(Y,"class","in-f w-full"),t[6].p.r===void 0&&qt(()=>t[24].call(Y)),u(V,"class","w-full"),u(Ge,"name","pc"),u(Ge,"class","in-l"),t[6].p.c===void 0&&qt(()=>t[25].call(Ge)),u(G,"class","flex"),u(y,"class","my-1"),u(ct,"class","my-1"),u(Ae,"type","checkbox"),u(Ae,"name","pe"),Ae.__value="true",Ae.value=Ae.__value,u(Ae,"class","rounded mb-1"),u(je,"class","my-1"),it.__value=0,it.value=it.__value,St.__value=1,St.value=St.__value,at.__value=2,at.value=at.__value,u(mt,"name","gs"),u(mt,"class","in-s"),t[6].g.s===void 0&&qt(()=>t[28].call(mt)),u(xe,"class","my-1"),u(We,"name","gc"),u(We,"type","text"),u(We,"pattern","[A-Za-z0-9]+"),u(We,"placeholder",$e=((Lt=(lt=t[2].conf)==null?void 0:lt.general)==null?void 0:Lt.context_placeholder)??"/"),u(We,"class","in-s"),u(We,"maxlength","36"),u(zt,"class","my-1"),u(e,"class","cnt")},m(lt,Lt){P(lt,e,Lt),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,c),o(e,m),o(e,_),o(_,d),o(d,v),o(v,b),o(v,k),o(v,C),o(v,E),ke(E,t[6].g.h),o(d,R),o(d,I),o(I,B),o(I,N),o(I,H),o(I,K),Me(z,K,null),et(K,t[6].g.t,!0),o(e,L),o(e,F),o(e,Z),o(e,y),o(y,G),o(G,V),o(V,j),o(V,J),o(V,ae),o(V,Y),o(Y,oe),Ie&&Ie.m(oe,null),o(oe,ie),o(oe,te),o(oe,ee),o(oe,_e),o(oe,ue),o(Y,Q),o(Q,$),o(Q,he),o(Q,be),o(Q,A),o(Y,M),o(M,q),o(M,D),o(Y,W),o(Y,ne),o(Y,se),o(Y,me),o(Y,pe),o(Y,de),o(Y,Pe),o(Y,Ce),o(Y,Se),o(Y,qe),o(Y,Be),o(Y,fe),o(Y,we),o(Y,Fe),et(Y,t[6].p.r,!0),o(G,ft),o(G,ut),o(ut,rt),o(ut,Ye),o(ut,gt),o(ut,Ge);for(let rl=0;rl<5;rl+=1)Mt[rl]&&Mt[rl].m(Ge,null);et(Ge,t[6].p.c,!0),o(e,ht),o(e,ct),Me(vt,ct,null),o(e,Ue),o(e,je),o(je,ye),o(ye,Ae),Ae.checked=t[6].p.e,o(ye,ge),o(ye,Ve),o(je,ce),ve&&ve.m(je,null),o(e,Le),o(e,xe),o(xe,At),o(xe,tt),o(xe,ze),o(xe,mt),o(mt,it),o(it,_t),o(mt,St),o(St,Et),o(mt,at),o(at,Ut),et(mt,t[6].g.s,!0),o(e,Ft),Ee&&Ee.m(e,null),o(e,Gt),o(e,zt),o(zt,Vt),o(zt,Zt),o(zt,$t),o(zt,We),ke(We,t[6].g.c),st=!0,Tt||(Dt=[re(E,"input",t[22]),re(K,"change",t[23]),re(Y,"change",t[24]),re(Ge,"change",t[25]),re(Ae,"change",t[26]),re(mt,"change",t[28]),re(We,"input",t[31])],Tt=!0)},p(lt,Lt){var tn,ln,nn,sn,on,an,fn,un,rn,cn,mn,_n,pn,dn,vn,hn,bn,gn,ji,yi,Hi,zi,Wi,Gi,Vi,Ki,Yi,Qi;(!st||Lt[0]&4)&&n!==(n=(((ln=(tn=lt[2].conf)==null?void 0:tn.general)==null?void 0:ln.title)??"General")+"")&&O(i,n),(!st||Lt[0]&4)&&g!==(g=(((sn=(nn=lt[2].conf)==null?void 0:nn.general)==null?void 0:sn.hostname)??"Hostname")+"")&&O(b,g),Lt[0]&64&&E.value!==lt[6].g.h&&ke(E,lt[6].g.h),(!st||Lt[0]&4)&&S!==(S=(((an=(on=lt[2].conf)==null?void 0:on.general)==null?void 0:an.timezone)??"Time zone")+"")&&O(B,S),Lt[0]&64&&et(K,lt[6].g.t),(!st||Lt[0]&4)&&U!==(U=(((un=(fn=lt[2].conf)==null?void 0:fn.price)==null?void 0:un.region)??"Price region")+"")&&O(j,U),lt[6].p.t?Ie&&(Ie.d(1),Ie=null):Ie||(Ie=Ro(),Ie.c(),Ie.m(oe,ie)),Lt[0]&64&&et(Y,lt[6].p.r),(!st||Lt[0]&4)&&nt!==(nt=(((cn=(rn=lt[2].conf)==null?void 0:rn.price)==null?void 0:cn.currency)??"Currency")+"")&&O(rt,nt),Lt[0]&64&&et(Ge,lt[6].p.c);const rl={};Lt[0]&4|Lt[4]&16&&(rl.$$scope={dirty:Lt,ctx:lt}),vt.$set(rl),Lt[0]&64&&(Ae.checked=lt[6].p.e),(!st||Lt[0]&4)&&De!==(De=(((_n=(mn=lt[2].conf)==null?void 0:mn.price)==null?void 0:_n.enabled)??"Enabled")+"")&&O(Ve,De),lt[6].p.e&<[0].chip!="esp8266"?ve?ve.p(lt,Lt):(ve=Fo(lt),ve.c(),ve.m(je,null)):ve&&(ve.d(1),ve=null),(!st||Lt[0]&4)&&Xe!==(Xe=(((vn=(dn=(pn=lt[2].conf)==null?void 0:pn.general)==null?void 0:dn.security)==null?void 0:vn.title)??"Security")+"")&&O(At,Xe),(!st||Lt[0]&4)&&ot!==(ot=(((gn=(bn=(hn=lt[2].conf)==null?void 0:hn.general)==null?void 0:bn.security)==null?void 0:gn.none)??"None")+"")&&O(_t,ot),(!st||Lt[0]&4)&&It!==(It=(((Hi=(yi=(ji=lt[2].conf)==null?void 0:ji.general)==null?void 0:yi.security)==null?void 0:Hi.conf)??"Conf")+"")&&O(Et,It),(!st||Lt[0]&4)&&Rt!==(Rt=(((Gi=(Wi=(zi=lt[2].conf)==null?void 0:zi.general)==null?void 0:Wi.security)==null?void 0:Gi.all)??"All")+"")&&O(Ut,Rt),Lt[0]&64&&et(mt,lt[6].g.s),lt[6].g.s>0?Ee?Ee.p(lt,Lt):(Ee=Bo(lt),Ee.c(),Ee.m(e,Gt)):Ee&&(Ee.d(1),Ee=null),(!st||Lt[0]&4)&&Xt!==(Xt=(((Ki=(Vi=lt[2].conf)==null?void 0:Vi.general)==null?void 0:Ki.context)??"Context")+"")&&O(Vt,Xt),(!st||Lt[0]&4&&$e!==($e=((Qi=(Yi=lt[2].conf)==null?void 0:Yi.general)==null?void 0:Qi.context_placeholder)??"/"))&&u(We,"placeholder",$e),Lt[0]&64&&We.value!==lt[6].g.c&&ke(We,lt[6].g.c)},i(lt){st||(X(z.$$.fragment,lt),X(vt.$$.fragment,lt),st=!0)},o(lt){le(z.$$.fragment,lt),le(vt.$$.fragment,lt),st=!1},d(lt){lt&&T(e),Ne(z),Ie&&Ie.d(),Qt(Mt,lt),Ne(vt),ve&&ve.d(),Ee&&Ee.d(),Tt=!1,Pt(Dt)}}}function Ro(t){let e,l,n,i,s;return{c(){e=p("option"),e.textContent="NO1 with support",l=p("option"),l.textContent="NO2 with support",n=p("option"),n.textContent="NO3 with support",i=p("option"),i.textContent="NO4 with support",s=p("option"),s.textContent="NO5 with support",e.__value="NO1S",e.value=e.__value,l.__value="NO2S",l.value=l.__value,n.__value="NO3S",n.value=n.__value,i.__value="NO4S",i.value=i.__value,s.__value="NO5S",s.value=s.__value},m(a,r){P(a,e,r),P(a,l,r),P(a,n,r),P(a,i,r),P(a,s,r)},d(a){a&&T(e),a&&T(l),a&&T(n),a&&T(i),a&&T(s)}}}function F0(t){let e,l;return{c(){e=p("option"),l=w(t[125]),e.__value=t[125],e.value=e.__value},m(n,i){P(n,e,i),o(e,l)},p:Ke,d(n){n&&T(e)}}}function B0(t){var n,i;let e=(((i=(n=t[2].conf)==null?void 0:n.price)==null?void 0:i.conf)??"Configure")+"",l;return{c(){l=w(e)},m(s,a){P(s,l,a)},p(s,a){var r,f;a[0]&4&&e!==(e=(((f=(r=s[2].conf)==null?void 0:r.price)==null?void 0:f.conf)??"Configure")+"")&&O(l,e)},d(s){s&&T(l)}}}function Fo(t){let e,l,n,i,s;return{c(){var a,r;e=p("br"),l=p("input"),u(l,"name","pt"),u(l,"type","text"),u(l,"class","in-s"),u(l,"placeholder",n=((r=(a=t[2].conf)==null?void 0:a.price)==null?void 0:r.api_key_placeholder)??"")},m(a,r){P(a,e,r),P(a,l,r),ke(l,t[6].p.t),i||(s=re(l,"input",t[27]),i=!0)},p(a,r){var f,c;r[0]&4&&n!==(n=((c=(f=a[2].conf)==null?void 0:f.price)==null?void 0:c.api_key_placeholder)??"")&&u(l,"placeholder",n),r[0]&64&&l.value!==a[6].p.t&&ke(l,a[6].p.t)},d(a){a&&T(e),a&&T(l),i=!1,s()}}}function Bo(t){var k,C,E,R,I,S;let e,l=(((E=(C=(k=t[2].conf)==null?void 0:k.general)==null?void 0:C.security)==null?void 0:E.username)??"Username")+"",n,i,s,a,r,f,c=(((S=(I=(R=t[2].conf)==null?void 0:R.general)==null?void 0:I.security)==null?void 0:S.password)??"Password")+"",m,_,d,v,g,b;return{c(){e=p("div"),n=w(l),i=p("br"),s=h(),a=p("input"),r=h(),f=p("div"),m=w(c),_=p("br"),d=h(),v=p("input"),u(a,"name","gu"),u(a,"type","text"),u(a,"class","in-s"),u(a,"maxlength","36"),u(e,"class","my-1"),u(v,"name","gp"),u(v,"type","password"),u(v,"class","in-s"),u(v,"maxlength","36"),u(f,"class","my-1")},m(B,N){P(B,e,N),o(e,n),o(e,i),o(e,s),o(e,a),ke(a,t[6].g.u),P(B,r,N),P(B,f,N),o(f,m),o(f,_),o(f,d),o(f,v),ke(v,t[6].g.p),g||(b=[re(a,"input",t[29]),re(v,"input",t[30])],g=!0)},p(B,N){var H,K,z,L,F,Z;N[0]&4&&l!==(l=(((z=(K=(H=B[2].conf)==null?void 0:H.general)==null?void 0:K.security)==null?void 0:z.username)??"Username")+"")&&O(n,l),N[0]&64&&a.value!==B[6].g.u&&ke(a,B[6].g.u),N[0]&4&&c!==(c=(((Z=(F=(L=B[2].conf)==null?void 0:L.general)==null?void 0:F.security)==null?void 0:Z.password)??"Password")+"")&&O(m,c),N[0]&64&&v.value!==B[6].g.p&&ke(v,B[6].g.p)},d(B){B&&T(e),B&&T(r),B&&T(f),g=!1,Pt(b)}}}function Uo(t){var Le,xe,Xe,At,tt,ze,mt,it,ot,_t,St,It,Et,at,Rt,Ut,Ft,Gt,zt,Xt,Vt,Zt,$t;let e,l,n=(((xe=(Le=t[2].conf)==null?void 0:Le.meter)==null?void 0:xe.title)??"Meter")+"",i,s,a,r,f,c,m,_,d,v,g=(((tt=(At=(Xe=t[2].conf)==null?void 0:Xe.meter)==null?void 0:At.comm)==null?void 0:tt.title)??"Communication")+"",b,k,C,E,R,I=(((it=(mt=(ze=t[2].conf)==null?void 0:ze.meter)==null?void 0:mt.comm)==null?void 0:it.passive)??"Passive")+"",S,B,N=(((St=(_t=(ot=t[2].conf)==null?void 0:ot.meter)==null?void 0:_t.comm)==null?void 0:St.pulse)??"Pulse")+"",H,K=(Et=(It=t[0])==null?void 0:It.features)==null?void 0:Et.includes("kmp"),z,L,F,Z=(((at=t[2].common)==null?void 0:at.voltage)??"Voltage")+"",y,G,V,U,j,J,ae,Y,oe,ie=(((Ut=(Rt=t[2].conf)==null?void 0:Rt.meter)==null?void 0:Ut.fuse)??"Main fuse")+"",te,ee,_e,ue,Q,$,he,be,A,M=(((Gt=(Ft=t[2].conf)==null?void 0:Ft.meter)==null?void 0:Gt.prod)??"Production")+"",q,D,W,ne,se,me,pe,de,Pe,Ce,Se,qe,Be,fe,we=(((Xt=(zt=t[2].conf)==null?void 0:zt.meter)==null?void 0:Xt.encrypted)??"Encrypted")+"",Fe,ft,ut,nt,rt,Ye,gt,Ge=((($t=(Zt=(Vt=t[2].conf)==null?void 0:Vt.meter)==null?void 0:Zt.multipliers)==null?void 0:$t.title)??"Multipliers")+"",ht,ct,vt,Ue,je=K&&jo();function ye(We,$e){return We[6].m.a===2?j0:U0}let Ae=ye(t),ge=Ae(t),De=t[6].m.e.e&&yo(t),Ve=t[6].m.e.e&&Ho(t),ce=t[6].m.m.e&&zo(t);return{c(){e=p("div"),l=p("strong"),i=w(n),s=h(),a=p("a"),r=w("ⓘ"),f=h(),c=p("input"),m=h(),_=p("input"),d=h(),v=p("div"),b=w(g),k=p("br"),C=h(),E=p("select"),R=p("option"),S=w(I),B=p("option"),H=w(N),je&&je.c(),z=h(),ge.c(),L=h(),F=p("div"),y=w(Z),G=p("br"),V=h(),U=p("select"),j=p("option"),j.textContent="400V (TN)",J=p("option"),J.textContent="230V (IT/TT)",ae=h(),Y=p("div"),oe=p("div"),te=w(ie),ee=p("br"),_e=h(),ue=p("label"),Q=p("input"),$=h(),he=p("span"),he.textContent="A",be=h(),A=p("div"),q=w(M),D=p("br"),W=h(),ne=p("label"),se=p("input"),me=h(),pe=p("span"),pe.textContent="kWp",de=h(),Pe=p("div"),Ce=h(),Se=p("div"),qe=p("label"),Be=p("input"),fe=h(),Fe=w(we),ft=h(),De&&De.c(),ut=h(),Ve&&Ve.c(),nt=h(),rt=p("label"),Ye=p("input"),gt=h(),ht=w(Ge),ct=h(),ce&&ce.c(),u(l,"class","text-sm"),u(a,"href",cl("Meter-configuration")),u(a,"target","_blank"),u(a,"class","float-right"),u(c,"type","hidden"),u(c,"name","m"),c.value="true",u(_,"type","hidden"),u(_,"name","mo"),_.value="1",R.__value=0,R.value=R.__value,B.__value=2,B.value=B.__value,u(E,"name","ma"),u(E,"class","in-s"),t[6].m.a===void 0&&qt(()=>t[32].call(E)),u(v,"class","my-1"),j.__value=2,j.value=j.__value,J.__value=1,J.value=J.__value,u(U,"name","md"),u(U,"class","in-s"),t[6].m.d===void 0&&qt(()=>t[38].call(U)),u(F,"class","my-1"),u(Q,"name","mf"),u(Q,"type","number"),u(Q,"min","5"),u(Q,"max","65535"),u(Q,"class","in-f tr w-full"),u(he,"class","in-post"),u(ue,"class","flex"),u(oe,"class","mx-1"),u(se,"name","mr"),u(se,"type","number"),u(se,"min","0"),u(se,"max","65535"),u(se,"class","in-f tr w-full"),u(pe,"class","in-post"),u(ne,"class","flex"),u(A,"class","mx-1"),u(Y,"class","my-1 flex"),u(Pe,"class","my-1"),u(Be,"type","checkbox"),u(Be,"name","me"),Be.__value="true",Be.value=Be.__value,u(Be,"class","rounded mb-1"),u(Se,"class","my-1"),u(Ye,"type","checkbox"),u(Ye,"name","mm"),Ye.__value="true",Ye.value=Ye.__value,u(Ye,"class","rounded mb-1"),u(e,"class","cnt")},m(We,$e){P(We,e,$e),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,c),o(e,m),o(e,_),o(e,d),o(e,v),o(v,b),o(v,k),o(v,C),o(v,E),o(E,R),o(R,S),o(E,B),o(B,H),je&&je.m(E,null),et(E,t[6].m.a,!0),o(e,z),ge.m(e,null),o(e,L),o(e,F),o(F,y),o(F,G),o(F,V),o(F,U),o(U,j),o(U,J),et(U,t[6].m.d,!0),o(e,ae),o(e,Y),o(Y,oe),o(oe,te),o(oe,ee),o(oe,_e),o(oe,ue),o(ue,Q),ke(Q,t[6].m.f),o(ue,$),o(ue,he),o(Y,be),o(Y,A),o(A,q),o(A,D),o(A,W),o(A,ne),o(ne,se),ke(se,t[6].m.r),o(ne,me),o(ne,pe),o(e,de),o(e,Pe),o(e,Ce),o(e,Se),o(Se,qe),o(qe,Be),Be.checked=t[6].m.e.e,o(qe,fe),o(qe,Fe),o(Se,ft),De&&De.m(Se,null),o(e,ut),Ve&&Ve.m(e,null),o(e,nt),o(e,rt),o(rt,Ye),Ye.checked=t[6].m.m.e,o(rt,gt),o(rt,ht),o(e,ct),ce&&ce.m(e,null),vt||(Ue=[re(E,"change",t[32]),re(U,"change",t[38]),re(Q,"input",t[39]),re(se,"input",t[40]),re(Be,"change",t[41]),re(Ye,"change",t[44])],vt=!0)},p(We,$e){var st,Tt,Dt,Ie,Ze,Mt,ve,Ee,Re,jt,Kt,Jt,Ot,xt,el,ll,nl,Oe,x,He,al,fl,ul;$e[0]&4&&n!==(n=(((Tt=(st=We[2].conf)==null?void 0:st.meter)==null?void 0:Tt.title)??"Meter")+"")&&O(i,n),$e[0]&4&&g!==(g=(((Ze=(Ie=(Dt=We[2].conf)==null?void 0:Dt.meter)==null?void 0:Ie.comm)==null?void 0:Ze.title)??"Communication")+"")&&O(b,g),$e[0]&4&&I!==(I=(((Ee=(ve=(Mt=We[2].conf)==null?void 0:Mt.meter)==null?void 0:ve.comm)==null?void 0:Ee.passive)??"Passive")+"")&&O(S,I),$e[0]&4&&N!==(N=(((Kt=(jt=(Re=We[2].conf)==null?void 0:Re.meter)==null?void 0:jt.comm)==null?void 0:Kt.pulse)??"Pulse")+"")&&O(H,N),$e[0]&1&&(K=(Ot=(Jt=We[0])==null?void 0:Jt.features)==null?void 0:Ot.includes("kmp")),K?je||(je=jo(),je.c(),je.m(E,null)):je&&(je.d(1),je=null),$e[0]&64&&et(E,We[6].m.a),Ae===(Ae=ye(We))&&ge?ge.p(We,$e):(ge.d(1),ge=Ae(We),ge&&(ge.c(),ge.m(e,L))),$e[0]&4&&Z!==(Z=(((xt=We[2].common)==null?void 0:xt.voltage)??"Voltage")+"")&&O(y,Z),$e[0]&64&&et(U,We[6].m.d),$e[0]&4&&ie!==(ie=(((ll=(el=We[2].conf)==null?void 0:el.meter)==null?void 0:ll.fuse)??"Main fuse")+"")&&O(te,ie),$e[0]&64&&Qe(Q.value)!==We[6].m.f&&ke(Q,We[6].m.f),$e[0]&4&&M!==(M=(((Oe=(nl=We[2].conf)==null?void 0:nl.meter)==null?void 0:Oe.prod)??"Production")+"")&&O(q,M),$e[0]&64&&Qe(se.value)!==We[6].m.r&&ke(se,We[6].m.r),$e[0]&64&&(Be.checked=We[6].m.e.e),$e[0]&4&&we!==(we=(((He=(x=We[2].conf)==null?void 0:x.meter)==null?void 0:He.encrypted)??"Encrypted")+"")&&O(Fe,we),We[6].m.e.e?De?De.p(We,$e):(De=yo(We),De.c(),De.m(Se,null)):De&&(De.d(1),De=null),We[6].m.e.e?Ve?Ve.p(We,$e):(Ve=Ho(We),Ve.c(),Ve.m(e,nt)):Ve&&(Ve.d(1),Ve=null),$e[0]&64&&(Ye.checked=We[6].m.m.e),$e[0]&4&&Ge!==(Ge=(((ul=(fl=(al=We[2].conf)==null?void 0:al.meter)==null?void 0:fl.multipliers)==null?void 0:ul.title)??"Multipliers")+"")&&O(ht,Ge),We[6].m.m.e?ce?ce.p(We,$e):(ce=zo(We),ce.c(),ce.m(e,null)):ce&&(ce.d(1),ce=null)},d(We){We&&T(e),je&&je.d(),ge.d(),De&&De.d(),Ve&&Ve.d(),ce&&ce.d(),vt=!1,Pt(Ue)}}}function jo(t){let e;return{c(){e=p("option"),e.textContent="KMP",e.__value=9,e.value=e.__value},m(l,n){P(l,e,n)},d(l){l&&T(e)}}}function U0(t){var ie,te,ee,_e,ue,Q;let e,l,n=(((te=(ie=t[2].conf)==null?void 0:ie.meter)==null?void 0:te.buffer)??"Buffer size")+"",i,s,a,r=(((_e=(ee=t[2].conf)==null?void 0:ee.meter)==null?void 0:_e.serial)??"Serial conf.")+"",f,c,m,_,d,v=(((Q=(ue=t[2].conf)==null?void 0:ue.meter)==null?void 0:Q.inverted)??"inverted")+"",g,b,k,C,E,R,I,S,B,N,H,K,z,L,F,Z,y,G,V,U,j,J,ae,Y=[3,12,24,48,96,192,384,576,1152],oe=[];for(let $=0;$<9;$+=1)oe[$]=y0(I0(t,Y,$));return{c(){e=p("div"),l=p("span"),i=w(n),s=h(),a=p("span"),f=w(r),c=h(),m=p("label"),_=p("input"),d=h(),g=w(v),b=h(),k=p("div"),C=p("select"),E=p("option"),R=w("Autodetect");for(let $=0;$<9;$+=1)oe[$].c();S=h(),B=p("select"),N=p("option"),H=w("-"),z=p("option"),z.textContent="7N1",L=p("option"),L.textContent="8N1",F=p("option"),F.textContent="8N2",Z=p("option"),Z.textContent="7E1",y=p("option"),y.textContent="8E1",V=h(),U=p("input"),u(l,"class","float-right"),u(_,"name","mi"),_.__value="true",_.value=_.__value,u(_,"type","checkbox"),u(_,"class","rounded mb-1"),u(m,"class","mt-2 ml-3 whitespace-nowrap"),E.__value=0,E.value=E.__value,E.disabled=I=t[6].m.b!=0,u(C,"name","mb"),u(C,"class","in-f tr w-1/2"),t[6].m.b===void 0&&qt(()=>t[35].call(C)),N.__value=0,N.value=N.__value,N.disabled=K=t[6].m.b!=0,z.__value=2,z.value=z.__value,L.__value=3,L.value=L.__value,F.__value=7,F.value=F.__value,Z.__value=10,Z.value=Z.__value,y.__value=11,y.value=y.__value,u(B,"name","mp"),u(B,"class","in-m"),B.disabled=G=t[6].m.b==0,t[6].m.p===void 0&&qt(()=>t[36].call(B)),u(U,"name","ms"),u(U,"type","number"),u(U,"min",64),u(U,"max",j=t[0].chip=="esp8266"?t[6].i.h.p==3||t[6].i.h.p==113?512:256:4096),u(U,"step",64),u(U,"class","in-l tr w-1/2"),u(k,"class","flex w-full"),u(e,"class","my-1")},m($,he){P($,e,he),o(e,l),o(l,i),o(e,s),o(e,a),o(a,f),o(e,c),o(e,m),o(m,_),_.checked=t[6].m.i,o(m,d),o(m,g),o(e,b),o(e,k),o(k,C),o(C,E),o(E,R);for(let be=0;be<9;be+=1)oe[be]&&oe[be].m(C,null);et(C,t[6].m.b,!0),o(k,S),o(k,B),o(B,N),o(N,H),o(B,z),o(B,L),o(B,F),o(B,Z),o(B,y),et(B,t[6].m.p,!0),o(k,V),o(k,U),ke(U,t[6].m.s),J||(ae=[re(_,"change",t[34]),re(C,"change",t[35]),re(B,"change",t[36]),re(U,"input",t[37])],J=!0)},p($,he){var be,A,M,q,D,W;he[0]&4&&n!==(n=(((A=(be=$[2].conf)==null?void 0:be.meter)==null?void 0:A.buffer)??"Buffer size")+"")&&O(i,n),he[0]&4&&r!==(r=(((q=(M=$[2].conf)==null?void 0:M.meter)==null?void 0:q.serial)??"Serial conf.")+"")&&O(f,r),he[0]&64&&(_.checked=$[6].m.i),he[0]&4&&v!==(v=(((W=(D=$[2].conf)==null?void 0:D.meter)==null?void 0:W.inverted)??"inverted")+"")&&O(g,v),he[0]&64&&I!==(I=$[6].m.b!=0)&&(E.disabled=I),he[0]&64&&et(C,$[6].m.b),he[0]&64&&K!==(K=$[6].m.b!=0)&&(N.disabled=K),he[0]&64&&G!==(G=$[6].m.b==0)&&(B.disabled=G),he[0]&64&&et(B,$[6].m.p),he[0]&65&&j!==(j=$[0].chip=="esp8266"?$[6].i.h.p==3||$[6].i.h.p==113?512:256:4096)&&u(U,"max",j),he[0]&64&&Qe(U.value)!==$[6].m.s&&ke(U,$[6].m.s)},d($){$&&T(e),Qt(oe,$),J=!1,Pt(ae)}}}function j0(t){var c,m;let e,l,n=(((m=(c=t[2].conf)==null?void 0:c.meter)==null?void 0:m.pulses)??"Pulses per kWh")+"",i,s,a,r,f;return{c(){e=p("div"),l=p("span"),i=w(n),s=h(),a=p("input"),u(a,"name","mb"),u(a,"class","in-s tr"),u(a,"type","number"),u(a,"min",1),u(a,"max",3600),u(e,"class","my-1")},m(_,d){P(_,e,d),o(e,l),o(l,i),o(e,s),o(e,a),ke(a,t[6].m.b),r||(f=re(a,"input",t[33]),r=!0)},p(_,d){var v,g;d[0]&4&&n!==(n=(((g=(v=_[2].conf)==null?void 0:v.meter)==null?void 0:g.pulses)??"Pulses per kWh")+"")&&O(i,n),d[0]&64&&Qe(a.value)!==_[6].m.b&&ke(a,_[6].m.b)},d(_){_&&T(e),r=!1,f()}}}function y0(t){let e,l=t[122]*100+"",n;return{c(){e=p("option"),n=w(l),e.__value=t[122]*100,e.value=e.__value},m(i,s){P(i,e,s),o(e,n)},p:Ke,d(i){i&&T(e)}}}function yo(t){let e,l,n,i;return{c(){e=p("br"),l=p("input"),u(l,"name","mek"),u(l,"type","text"),u(l,"class","in-s")},m(s,a){P(s,e,a),P(s,l,a),ke(l,t[6].m.e.k),n||(i=re(l,"input",t[42]),n=!0)},p(s,a){a[0]&64&&l.value!==s[6].m.e.k&&ke(l,s[6].m.e.k)},d(s){s&&T(e),s&&T(l),n=!1,i()}}}function Ho(t){var c,m;let e,l=(((m=(c=t[2].conf)==null?void 0:c.meter)==null?void 0:m.authkey)??"Authentication key")+"",n,i,s,a,r,f;return{c(){e=p("div"),n=w(l),i=p("br"),s=h(),a=p("input"),u(a,"name","mea"),u(a,"type","text"),u(a,"class","in-s"),u(e,"class","my-1")},m(_,d){P(_,e,d),o(e,n),o(e,i),o(e,s),o(e,a),ke(a,t[6].m.e.a),r||(f=re(a,"input",t[43]),r=!0)},p(_,d){var v,g;d[0]&4&&l!==(l=(((g=(v=_[2].conf)==null?void 0:v.meter)==null?void 0:g.authkey)??"Authentication key")+"")&&O(n,l),d[0]&64&&a.value!==_[6].m.e.a&&ke(a,_[6].m.e.a)},d(_){_&&T(e),r=!1,f()}}}function zo(t){var G,V,U,j,J,ae,Y,oe,ie,te,ee,_e;let e,l,n=(((U=(V=(G=t[2].conf)==null?void 0:G.meter)==null?void 0:V.multipliers)==null?void 0:U.watt)??"Watt")+"",i,s,a,r,f,c,m=(((ae=(J=(j=t[2].conf)==null?void 0:j.meter)==null?void 0:J.multipliers)==null?void 0:ae.volt)??"Volt")+"",_,d,v,g,b,k,C=(((ie=(oe=(Y=t[2].conf)==null?void 0:Y.meter)==null?void 0:oe.multipliers)==null?void 0:ie.amp)??"Amp")+"",E,R,I,S,B,N,H=(((_e=(ee=(te=t[2].conf)==null?void 0:te.meter)==null?void 0:ee.multipliers)==null?void 0:_e.kwh)??"kWh")+"",K,z,L,F,Z,y;return{c(){e=p("div"),l=p("div"),i=w(n),s=p("br"),a=h(),r=p("input"),f=h(),c=p("div"),_=w(m),d=p("br"),v=h(),g=p("input"),b=h(),k=p("div"),E=w(C),R=p("br"),I=h(),S=p("input"),B=h(),N=p("div"),K=w(H),z=p("br"),L=h(),F=p("input"),u(r,"name","mmw"),u(r,"type","number"),u(r,"min","0.00"),u(r,"max","1000"),u(r,"step","0.001"),u(r,"class","in-f tr w-full"),u(l,"class","w-1/4"),u(g,"name","mmv"),u(g,"type","number"),u(g,"min","0.00"),u(g,"max","1000"),u(g,"step","0.001"),u(g,"class","in-m tr w-full"),u(c,"class","w-1/4"),u(S,"name","mma"),u(S,"type","number"),u(S,"min","0.00"),u(S,"max","1000"),u(S,"step","0.001"),u(S,"class","in-m tr w-full"),u(k,"class","w-1/4"),u(F,"name","mmc"),u(F,"type","number"),u(F,"min","0.00"),u(F,"max","1000"),u(F,"step","0.001"),u(F,"class","in-l tr w-full"),u(N,"class","w-1/4"),u(e,"class","flex my-1")},m(ue,Q){P(ue,e,Q),o(e,l),o(l,i),o(l,s),o(l,a),o(l,r),ke(r,t[6].m.m.w),o(e,f),o(e,c),o(c,_),o(c,d),o(c,v),o(c,g),ke(g,t[6].m.m.v),o(e,b),o(e,k),o(k,E),o(k,R),o(k,I),o(k,S),ke(S,t[6].m.m.a),o(e,B),o(e,N),o(N,K),o(N,z),o(N,L),o(N,F),ke(F,t[6].m.m.c),Z||(y=[re(r,"input",t[45]),re(g,"input",t[46]),re(S,"input",t[47]),re(F,"input",t[48])],Z=!0)},p(ue,Q){var $,he,be,A,M,q,D,W,ne,se,me,pe;Q[0]&4&&n!==(n=(((be=(he=($=ue[2].conf)==null?void 0:$.meter)==null?void 0:he.multipliers)==null?void 0:be.watt)??"Watt")+"")&&O(i,n),Q[0]&64&&Qe(r.value)!==ue[6].m.m.w&&ke(r,ue[6].m.m.w),Q[0]&4&&m!==(m=(((q=(M=(A=ue[2].conf)==null?void 0:A.meter)==null?void 0:M.multipliers)==null?void 0:q.volt)??"Volt")+"")&&O(_,m),Q[0]&64&&Qe(g.value)!==ue[6].m.m.v&&ke(g,ue[6].m.m.v),Q[0]&4&&C!==(C=(((ne=(W=(D=ue[2].conf)==null?void 0:D.meter)==null?void 0:W.multipliers)==null?void 0:ne.amp)??"Amp")+"")&&O(E,C),Q[0]&64&&Qe(S.value)!==ue[6].m.m.a&&ke(S,ue[6].m.m.a),Q[0]&4&&H!==(H=(((pe=(me=(se=ue[2].conf)==null?void 0:se.meter)==null?void 0:me.multipliers)==null?void 0:pe.kwh)??"kWh")+"")&&O(K,H),Q[0]&64&&Qe(F.value)!==ue[6].m.m.c&&ke(F,ue[6].m.m.c)},d(ue){ue&&T(e),Z=!1,Pt(y)}}}function Wo(t){var H,K,z,L,F,Z;let e,l,n=(((K=(H=t[2].conf)==null?void 0:H.connection)==null?void 0:K.title)??"Connection")+"",i,s,a,r,f,c,m,_,d,v,g=(((L=(z=t[2].conf)==null?void 0:z.connection)==null?void 0:L.wifi)??"WiFi")+"",b,k,C=(((Z=(F=t[2].conf)==null?void 0:F.connection)==null?void 0:Z.ap)??"AP")+"",E,R,I,S,B=t[0].if&&t[0].if.eth&&Go(t),N=(t[6].n.c==1||t[6].n.c==2)&&Vo(t);return{c(){e=p("div"),l=p("strong"),i=w(n),s=h(),a=p("a"),r=w("ⓘ"),f=h(),c=p("input"),m=h(),_=p("div"),d=p("select"),v=p("option"),b=w(g),k=p("option"),E=w(C),B&&B.c(),R=h(),N&&N.c(),u(l,"class","text-sm"),u(a,"href",cl("Network-connection")),u(a,"target","_blank"),u(a,"class","float-right"),u(c,"type","hidden"),u(c,"name","w"),c.value="true",v.__value=1,v.value=v.__value,k.__value=2,k.value=k.__value,u(d,"name","nc"),u(d,"class","in-s"),t[6].n.c===void 0&&qt(()=>t[49].call(d)),u(_,"class","my-1"),u(e,"class","cnt")},m(y,G){P(y,e,G),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,c),o(e,m),o(e,_),o(_,d),o(d,v),o(v,b),o(d,k),o(k,E),B&&B.m(d,null),et(d,t[6].n.c,!0),o(e,R),N&&N.m(e,null),I||(S=re(d,"change",t[49]),I=!0)},p(y,G){var V,U,j,J,ae,Y;G[0]&4&&n!==(n=(((U=(V=y[2].conf)==null?void 0:V.connection)==null?void 0:U.title)??"Connection")+"")&&O(i,n),G[0]&4&&g!==(g=(((J=(j=y[2].conf)==null?void 0:j.connection)==null?void 0:J.wifi)??"WiFi")+"")&&O(b,g),G[0]&4&&C!==(C=(((Y=(ae=y[2].conf)==null?void 0:ae.connection)==null?void 0:Y.ap)??"AP")+"")&&O(E,C),y[0].if&&y[0].if.eth?B?B.p(y,G):(B=Go(y),B.c(),B.m(d,null)):B&&(B.d(1),B=null),G[0]&64&&et(d,y[6].n.c),y[6].n.c==1||y[6].n.c==2?N?N.p(y,G):(N=Vo(y),N.c(),N.m(e,null)):N&&(N.d(1),N=null)},d(y){y&&T(e),B&&B.d(),N&&N.d(),I=!1,S()}}}function Go(t){var i,s;let e,l=(((s=(i=t[2].conf)==null?void 0:i.connection)==null?void 0:s.eth)??"Ethernet")+"",n;return{c(){e=p("option"),n=w(l),e.__value=3,e.value=e.__value},m(a,r){P(a,e,r),o(e,n)},p(a,r){var f,c;r[0]&4&&l!==(l=(((c=(f=a[2].conf)==null?void 0:f.connection)==null?void 0:c.eth)??"Ethernet")+"")&&O(n,l)},d(a){a&&T(e)}}}function Vo(t){var ne,se,me,pe,de,Pe,Ce,Se,qe,Be,fe,we,Fe,ft,ut,nt,rt,Ye,gt,Ge,ht,ct,vt;let e,l=(((se=(ne=t[2].conf)==null?void 0:ne.connection)==null?void 0:se.ssid)??"SSID")+"",n,i,s,a,r,f,c=(((pe=(me=t[2].conf)==null?void 0:me.connection)==null?void 0:pe.psk)??"Password")+"",m,_,d,v,g,b,k,C=(((Ce=(Pe=(de=t[2].conf)==null?void 0:de.connection)==null?void 0:Pe.ps)==null?void 0:Ce.title)??"Power saving")+"",E,R,I,S,B,N=(((Be=(qe=(Se=t[2].conf)==null?void 0:Se.connection)==null?void 0:qe.ps)==null?void 0:Be.default)??"Default")+"",H,K,z=(((Fe=(we=(fe=t[2].conf)==null?void 0:fe.connection)==null?void 0:we.ps)==null?void 0:Fe.off)??"Off")+"",L,F,Z=(((nt=(ut=(ft=t[2].conf)==null?void 0:ft.connection)==null?void 0:ut.ps)==null?void 0:nt.min)??"Min")+"",y,G,V=(((gt=(Ye=(rt=t[2].conf)==null?void 0:rt.connection)==null?void 0:Ye.ps)==null?void 0:gt.max)??"Max")+"",U,j,J,ae=(((ht=(Ge=t[2].conf)==null?void 0:Ge.connection)==null?void 0:ht.pwr)??"Power")+"",Y,oe,ie,te,ee,_e,ue,Q,$,he,be,A,M=(((vt=(ct=t[2].conf)==null?void 0:ct.connection)==null?void 0:vt.tick_11b)??"802.11b")+"",q,D,W;return{c(){e=p("div"),n=w(l),i=p("br"),s=h(),a=p("input"),r=h(),f=p("div"),m=w(c),_=p("br"),d=h(),v=p("input"),g=h(),b=p("div"),k=p("div"),E=w(C),R=p("br"),I=h(),S=p("select"),B=p("option"),H=w(N),K=p("option"),L=w(z),F=p("option"),y=w(Z),G=p("option"),U=w(V),j=h(),J=p("div"),Y=w(ae),oe=p("br"),ie=h(),te=p("div"),ee=p("input"),_e=h(),ue=p("span"),ue.textContent="dBm",Q=h(),$=p("div"),he=p("label"),be=p("input"),A=h(),q=w(M),u(a,"name","ws"),u(a,"type","text"),u(a,"class","in-s"),u(e,"class","my-1"),u(v,"name","wp"),u(v,"type","password"),u(v,"class","in-s"),u(f,"class","my-1"),B.__value=255,B.value=B.__value,K.__value=0,K.value=K.__value,F.__value=1,F.value=F.__value,G.__value=2,G.value=G.__value,u(S,"name","wz"),u(S,"class","in-s"),t[6].w.z===void 0&&qt(()=>t[52].call(S)),u(k,"class","w-1/2"),u(ee,"name","ww"),u(ee,"type","number"),u(ee,"min","0"),u(ee,"max","20.5"),u(ee,"step","0.5"),u(ee,"class","in-f tr w-full"),u(ue,"class","in-post"),u(te,"class","flex"),u(J,"class","ml-2 w-1/2"),u(b,"class","my-1 flex"),u(be,"type","checkbox"),u(be,"name","wb"),be.__value="true",be.value=be.__value,u(be,"class","rounded mb-1"),u($,"class","my-3")},m(Ue,je){P(Ue,e,je),o(e,n),o(e,i),o(e,s),o(e,a),ke(a,t[6].w.s),P(Ue,r,je),P(Ue,f,je),o(f,m),o(f,_),o(f,d),o(f,v),ke(v,t[6].w.p),P(Ue,g,je),P(Ue,b,je),o(b,k),o(k,E),o(k,R),o(k,I),o(k,S),o(S,B),o(B,H),o(S,K),o(K,L),o(S,F),o(F,y),o(S,G),o(G,U),et(S,t[6].w.z,!0),o(b,j),o(b,J),o(J,Y),o(J,oe),o(J,ie),o(J,te),o(te,ee),ke(ee,t[6].w.w),o(te,_e),o(te,ue),P(Ue,Q,je),P(Ue,$,je),o($,he),o(he,be),be.checked=t[6].w.b,o(he,A),o(he,q),D||(W=[re(a,"input",t[50]),re(v,"input",t[51]),re(S,"change",t[52]),re(ee,"input",t[53]),re(be,"change",t[54])],D=!0)},p(Ue,je){var ye,Ae,ge,De,Ve,ce,Le,xe,Xe,At,tt,ze,mt,it,ot,_t,St,It,Et,at,Rt,Ut,Ft;je[0]&4&&l!==(l=(((Ae=(ye=Ue[2].conf)==null?void 0:ye.connection)==null?void 0:Ae.ssid)??"SSID")+"")&&O(n,l),je[0]&64&&a.value!==Ue[6].w.s&&ke(a,Ue[6].w.s),je[0]&4&&c!==(c=(((De=(ge=Ue[2].conf)==null?void 0:ge.connection)==null?void 0:De.psk)??"Password")+"")&&O(m,c),je[0]&64&&v.value!==Ue[6].w.p&&ke(v,Ue[6].w.p),je[0]&4&&C!==(C=(((Le=(ce=(Ve=Ue[2].conf)==null?void 0:Ve.connection)==null?void 0:ce.ps)==null?void 0:Le.title)??"Power saving")+"")&&O(E,C),je[0]&4&&N!==(N=(((At=(Xe=(xe=Ue[2].conf)==null?void 0:xe.connection)==null?void 0:Xe.ps)==null?void 0:At.default)??"Default")+"")&&O(H,N),je[0]&4&&z!==(z=(((mt=(ze=(tt=Ue[2].conf)==null?void 0:tt.connection)==null?void 0:ze.ps)==null?void 0:mt.off)??"Off")+"")&&O(L,z),je[0]&4&&Z!==(Z=(((_t=(ot=(it=Ue[2].conf)==null?void 0:it.connection)==null?void 0:ot.ps)==null?void 0:_t.min)??"Min")+"")&&O(y,Z),je[0]&4&&V!==(V=(((Et=(It=(St=Ue[2].conf)==null?void 0:St.connection)==null?void 0:It.ps)==null?void 0:Et.max)??"Max")+"")&&O(U,V),je[0]&64&&et(S,Ue[6].w.z),je[0]&4&&ae!==(ae=(((Rt=(at=Ue[2].conf)==null?void 0:at.connection)==null?void 0:Rt.pwr)??"Power")+"")&&O(Y,ae),je[0]&64&&Qe(ee.value)!==Ue[6].w.w&&ke(ee,Ue[6].w.w),je[0]&64&&(be.checked=Ue[6].w.b),je[0]&4&&M!==(M=(((Ft=(Ut=Ue[2].conf)==null?void 0:Ut.connection)==null?void 0:Ft.tick_11b)??"802.11b")+"")&&O(q,M)},d(Ue){Ue&&T(e),Ue&&T(r),Ue&&T(f),Ue&&T(g),Ue&&T(b),Ue&&T(Q),Ue&&T($),D=!1,Pt(W)}}}function Ko(t){var we,Fe,ft,ut,nt,rt,Ye,gt,Ge,ht,ct,vt,Ue,je;let e,l,n=(((Fe=(we=t[2].conf)==null?void 0:we.network)==null?void 0:Fe.title)??"Network")+"",i,s,a,r,f,c,m=(((ut=(ft=t[2].conf)==null?void 0:ft.network)==null?void 0:ut.ip)??"IP")+"",_,d,v,g,b,k,C=(((rt=(nt=t[2].conf)==null?void 0:nt.network)==null?void 0:rt.dhcp)??"DHCP")+"",E,R,I=(((gt=(Ye=t[2].conf)==null?void 0:Ye.network)==null?void 0:gt.static)??"Static")+"",S,B,N,H,K,z,L,F,Z,y,G,V,U,j,J,ae,Y,oe,ie,te,ee,_e=(((ht=(Ge=t[2].conf)==null?void 0:Ge.network)==null?void 0:ht.tick_mdns)??"mDNS")+"",ue,Q,$,he,be,A=(((vt=(ct=t[2].conf)==null?void 0:ct.network)==null?void 0:vt.ntp)??"NTP")+"",M,q,D,W,ne,se=(((je=(Ue=t[2].conf)==null?void 0:Ue.network)==null?void 0:je.tick_ntp_dhcp)??"from DHCP")+"",me,pe,de,Pe,Ce,Se,qe,Be;F=new _u({});let fe=t[6].n.m=="static"&&Yo(t);return{c(){e=p("div"),l=p("strong"),i=w(n),s=h(),a=p("a"),r=w("ⓘ"),f=h(),c=p("div"),_=w(m),d=p("br"),v=h(),g=p("div"),b=p("select"),k=p("option"),E=w(C),R=p("option"),S=w(I),B=h(),N=p("input"),z=h(),L=p("select"),Te(F.$$.fragment),G=h(),fe&&fe.c(),V=h(),U=p("div"),j=p("label"),J=p("input"),ae=w(" IPv6"),Y=h(),oe=p("div"),ie=p("label"),te=p("input"),ee=h(),ue=w(_e),Q=h(),$=p("input"),he=h(),be=p("div"),M=w(A),q=h(),D=p("label"),W=p("input"),ne=h(),me=w(se),pe=p("br"),de=h(),Pe=p("div"),Ce=p("input"),u(l,"class","text-sm"),u(a,"href",cl("Network-configuration")),u(a,"target","_blank"),u(a,"class","float-right"),k.__value="dhcp",k.value=k.__value,R.__value="static",R.value=R.__value,u(b,"name","nm"),u(b,"class","in-f"),t[6].n.m===void 0&&qt(()=>t[55].call(b)),u(N,"name","ni"),u(N,"type","text"),u(N,"class","in-m w-full"),N.disabled=H=t[6].n.m=="dhcp",N.required=K=t[6].n.m=="static",u(L,"name","ns"),u(L,"class","in-l"),L.disabled=Z=t[6].n.m=="dhcp",L.required=y=t[6].n.m=="static",t[6].n.s===void 0&&qt(()=>t[57].call(L)),u(g,"class","flex"),u(c,"class","my-1"),u(J,"name","nx"),J.__value="true",J.value=J.__value,u(J,"type","checkbox"),u(J,"class","rounded mb-1"),u(U,"class","my-1"),u(te,"name","nd"),te.__value="true",te.value=te.__value,u(te,"type","checkbox"),u(te,"class","rounded mb-1"),u(oe,"class","my-1"),u($,"type","hidden"),u($,"name","ntp"),$.value="true",u(W,"name","ntpd"),W.__value="true",W.value=W.__value,u(W,"type","checkbox"),u(W,"class","rounded mb-1"),u(D,"class","ml-4"),u(Ce,"name","ntph"),u(Ce,"type","text"),u(Ce,"class","in-s"),u(Pe,"class","flex"),u(be,"class","my-1"),u(e,"class","cnt")},m(ye,Ae){P(ye,e,Ae),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,c),o(c,_),o(c,d),o(c,v),o(c,g),o(g,b),o(b,k),o(k,E),o(b,R),o(R,S),et(b,t[6].n.m,!0),o(g,B),o(g,N),ke(N,t[6].n.i),o(g,z),o(g,L),Me(F,L,null),et(L,t[6].n.s,!0),o(e,G),fe&&fe.m(e,null),o(e,V),o(e,U),o(U,j),o(j,J),J.checked=t[6].n.x,o(j,ae),o(e,Y),o(e,oe),o(oe,ie),o(ie,te),te.checked=t[6].n.d,o(ie,ee),o(ie,ue),o(e,Q),o(e,$),o(e,he),o(e,be),o(be,M),o(be,q),o(be,D),o(D,W),W.checked=t[6].n.h,o(D,ne),o(D,me),o(be,pe),o(be,de),o(be,Pe),o(Pe,Ce),ke(Ce,t[6].n.n1),Se=!0,qe||(Be=[re(b,"change",t[55]),re(N,"input",t[56]),re(L,"change",t[57]),re(J,"change",t[61]),re(te,"change",t[62]),re(W,"change",t[63]),re(Ce,"input",t[64])],qe=!0)},p(ye,Ae){var ge,De,Ve,ce,Le,xe,Xe,At,tt,ze,mt,it,ot,_t;(!Se||Ae[0]&4)&&n!==(n=(((De=(ge=ye[2].conf)==null?void 0:ge.network)==null?void 0:De.title)??"Network")+"")&&O(i,n),(!Se||Ae[0]&4)&&m!==(m=(((ce=(Ve=ye[2].conf)==null?void 0:Ve.network)==null?void 0:ce.ip)??"IP")+"")&&O(_,m),(!Se||Ae[0]&4)&&C!==(C=(((xe=(Le=ye[2].conf)==null?void 0:Le.network)==null?void 0:xe.dhcp)??"DHCP")+"")&&O(E,C),(!Se||Ae[0]&4)&&I!==(I=(((At=(Xe=ye[2].conf)==null?void 0:Xe.network)==null?void 0:At.static)??"Static")+"")&&O(S,I),Ae[0]&64&&et(b,ye[6].n.m),(!Se||Ae[0]&64&&H!==(H=ye[6].n.m=="dhcp"))&&(N.disabled=H),(!Se||Ae[0]&64&&K!==(K=ye[6].n.m=="static"))&&(N.required=K),Ae[0]&64&&N.value!==ye[6].n.i&&ke(N,ye[6].n.i),(!Se||Ae[0]&64&&Z!==(Z=ye[6].n.m=="dhcp"))&&(L.disabled=Z),(!Se||Ae[0]&64&&y!==(y=ye[6].n.m=="static"))&&(L.required=y),Ae[0]&64&&et(L,ye[6].n.s),ye[6].n.m=="static"?fe?fe.p(ye,Ae):(fe=Yo(ye),fe.c(),fe.m(e,V)):fe&&(fe.d(1),fe=null),Ae[0]&64&&(J.checked=ye[6].n.x),Ae[0]&64&&(te.checked=ye[6].n.d),(!Se||Ae[0]&4)&&_e!==(_e=(((ze=(tt=ye[2].conf)==null?void 0:tt.network)==null?void 0:ze.tick_mdns)??"mDNS")+"")&&O(ue,_e),(!Se||Ae[0]&4)&&A!==(A=(((it=(mt=ye[2].conf)==null?void 0:mt.network)==null?void 0:it.ntp)??"NTP")+"")&&O(M,A),Ae[0]&64&&(W.checked=ye[6].n.h),(!Se||Ae[0]&4)&&se!==(se=(((_t=(ot=ye[2].conf)==null?void 0:ot.network)==null?void 0:_t.tick_ntp_dhcp)??"from DHCP")+"")&&O(me,se),Ae[0]&64&&Ce.value!==ye[6].n.n1&&ke(Ce,ye[6].n.n1)},i(ye){Se||(X(F.$$.fragment,ye),Se=!0)},o(ye){le(F.$$.fragment,ye),Se=!1},d(ye){ye&&T(e),Ne(F),fe&&fe.d(),qe=!1,Pt(Be)}}}function Yo(t){var R,I,S,B;let e,l=(((I=(R=t[2].conf)==null?void 0:R.network)==null?void 0:I.gw)??"Gateway")+"",n,i,s,a,r,f,c=(((B=(S=t[2].conf)==null?void 0:S.network)==null?void 0:B.dns)??"DNS")+"",m,_,d,v,g,b,k,C,E;return{c(){e=p("div"),n=w(l),i=p("br"),s=h(),a=p("input"),r=h(),f=p("div"),m=w(c),_=p("br"),d=h(),v=p("div"),g=p("input"),b=h(),k=p("input"),u(a,"name","ng"),u(a,"type","text"),u(a,"class","in-s"),u(e,"class","my-1"),u(g,"name","nd1"),u(g,"type","text"),u(g,"class","in-f w-full"),u(k,"name","nd2"),u(k,"type","text"),u(k,"class","in-l w-full"),u(v,"class","flex"),u(f,"class","my-1")},m(N,H){P(N,e,H),o(e,n),o(e,i),o(e,s),o(e,a),ke(a,t[6].n.g),P(N,r,H),P(N,f,H),o(f,m),o(f,_),o(f,d),o(f,v),o(v,g),ke(g,t[6].n.d1),o(v,b),o(v,k),ke(k,t[6].n.d2),C||(E=[re(a,"input",t[58]),re(g,"input",t[59]),re(k,"input",t[60])],C=!0)},p(N,H){var K,z,L,F;H[0]&4&&l!==(l=(((z=(K=N[2].conf)==null?void 0:K.network)==null?void 0:z.gw)??"Gateway")+"")&&O(n,l),H[0]&64&&a.value!==N[6].n.g&&ke(a,N[6].n.g),H[0]&4&&c!==(c=(((F=(L=N[2].conf)==null?void 0:L.network)==null?void 0:F.dns)??"DNS")+"")&&O(m,c),H[0]&64&&g.value!==N[6].n.d1&&ke(g,N[6].n.d1),H[0]&64&&k.value!==N[6].n.d2&&ke(k,N[6].n.d2)},d(N){N&&T(e),N&&T(r),N&&T(f),C=!1,Pt(E)}}}function Qo(t){var mt,it,ot,_t,St,It,Et,at,Rt,Ut,Ft,Gt,zt,Xt,Vt,Zt,$t,We,$e,st,Tt,Dt;let e,l,n=(((it=(mt=t[2].conf)==null?void 0:mt.mqtt)==null?void 0:it.title)??"MQTT")+"",i,s,a,r,f,c,m,_,d=(((_t=(ot=t[2].conf)==null?void 0:ot.mqtt)==null?void 0:_t.server)??"Server")+"",v,g,b,k,C,E,R,I,S,B,N,H,K=(((It=(St=t[2].conf)==null?void 0:St.mqtt)==null?void 0:It.user)??"Username")+"",z,L,F,Z,y,G,V=(((at=(Et=t[2].conf)==null?void 0:Et.mqtt)==null?void 0:at.pass)??"Password")+"",U,j,J,ae,Y,oe,ie,te=(((Ut=(Rt=t[2].conf)==null?void 0:Rt.mqtt)==null?void 0:Ut.id)??"Client ID")+"",ee,_e,ue,Q,$,he,be=(((Gt=(Ft=t[2].conf)==null?void 0:Ft.mqtt)==null?void 0:Gt.payload)??"Payload")+"",A,M,q,D,W,ne,se,me=(((Vt=(Xt=(zt=t[2].conf)==null?void 0:zt.mqtt)==null?void 0:Xt.domoticz)==null?void 0:Vt.title)??"Domoticz")+"",pe,de,Pe=(((We=($t=(Zt=t[2].conf)==null?void 0:Zt.mqtt)==null?void 0:$t.ha)==null?void 0:We.title)??"Home-Assistant")+"",Ce,Se,qe,Be,fe,we,Fe,ft=(((st=($e=t[2].conf)==null?void 0:$e.mqtt)==null?void 0:st.publish)??"Publish topic")+"",ut,nt,rt,Ye,gt,Ge,ht=(((Dt=(Tt=t[2].conf)==null?void 0:Tt.mqtt)==null?void 0:Dt.update)??"Update method")+"",ct,vt,Ue,je,ye,Ae,ge,De,Ve,ce,Le,xe,Xe,At,tt=t[0].chip!="esp8266"&&Xo(t),ze=t[6].q.s.e&&Zo(t);return{c(){var Ie,Ze;e=p("div"),l=p("strong"),i=w(n),s=h(),a=p("a"),r=w("ⓘ"),f=h(),c=p("input"),m=h(),_=p("div"),v=w(d),g=h(),tt&&tt.c(),b=h(),k=p("br"),C=h(),E=p("div"),R=p("input"),I=h(),S=p("input"),B=h(),ze&&ze.c(),N=h(),H=p("div"),z=w(K),L=p("br"),F=h(),Z=p("input"),y=h(),G=p("div"),U=w(V),j=p("br"),J=h(),ae=p("input"),Y=h(),oe=p("div"),ie=p("div"),ee=w(te),_e=p("br"),ue=h(),Q=p("input"),$=h(),he=p("div"),A=w(be),M=p("br"),q=h(),D=p("select"),W=p("option"),W.textContent="Raw (minimal)",ne=p("option"),ne.textContent="Raw (full)",se=p("option"),pe=w(me),de=p("option"),Ce=w(Pe),Se=p("option"),Se.textContent="JSON (classic)",qe=p("option"),qe.textContent="JSON (multi topic)",Be=p("option"),Be.textContent="JSON (flat)",fe=p("option"),fe.textContent="HEX dump",we=h(),Fe=p("div"),ut=w(ft),nt=p("br"),rt=h(),Ye=p("input"),gt=h(),Ge=p("div"),ct=w(ht),vt=h(),Ue=p("span"),Ue.textContent="Interval",je=h(),ye=p("div"),Ae=p("select"),ge=p("option"),ge.textContent="Real time",De=p("option"),De.textContent="Interval",Ve=h(),ce=p("input"),u(l,"class","text-sm"),u(a,"href",cl("MQTT-configuration")),u(a,"target","_blank"),u(a,"class","float-right"),u(c,"type","hidden"),u(c,"name","q"),c.value="true",u(R,"name","qh"),u(R,"type","text"),u(R,"class","in-f w-2/3"),u(S,"name","qp"),u(S,"type","number"),u(S,"min","1024"),u(S,"max","65535"),u(S,"class","in-l tr w-1/3"),u(E,"class","flex"),u(_,"class","my-1"),u(Z,"name","qu"),u(Z,"type","text"),u(Z,"class","in-s"),u(H,"class","my-1"),u(ae,"name","qa"),u(ae,"type","password"),u(ae,"class","in-s"),u(G,"class","my-1"),u(Q,"name","qc"),u(Q,"type","text"),u(Q,"class","in-f w-full"),W.__value=1,W.value=W.__value,ne.__value=2,ne.value=ne.__value,se.__value=3,se.value=se.__value,de.__value=4,de.value=de.__value,Se.__value=0,Se.value=Se.__value,qe.__value=5,qe.value=qe.__value,Be.__value=6,Be.value=Be.__value,fe.__value=255,fe.value=fe.__value,u(D,"name","qm"),u(D,"class","in-l"),t[6].q.m===void 0&&qt(()=>t[71].call(D)),u(oe,"class","my-1 flex"),u(Ye,"name","qb"),u(Ye,"type","text"),u(Ye,"class","in-s"),u(Fe,"class","my-1"),u(Ue,"class","float-right"),ge.__value=0,ge.value=ge.__value,De.__value=1,De.value=De.__value,u(Ae,"name","qt"),u(Ae,"class","in-f w-1/2"),t[6].q.t===void 0&&qt(()=>t[73].call(Ae)),u(ce,"name","qd"),u(ce,"type","number"),u(ce,"min","1"),u(ce,"max","3600"),u(ce,"class","in-l tr w-1/2"),ce.disabled=Le=((Ze=(Ie=t[6])==null?void 0:Ie.q)==null?void 0:Ze.t)!=1,u(ye,"class","flex"),u(Ge,"class","my-1"),u(e,"class","cnt")},m(Ie,Ze){P(Ie,e,Ze),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,c),o(e,m),o(e,_),o(_,v),o(_,g),tt&&tt.m(_,null),o(_,b),o(_,k),o(_,C),o(_,E),o(E,R),ke(R,t[6].q.h),o(E,I),o(E,S),ke(S,t[6].q.p),o(e,B),ze&&ze.m(e,null),o(e,N),o(e,H),o(H,z),o(H,L),o(H,F),o(H,Z),ke(Z,t[6].q.u),o(e,y),o(e,G),o(G,U),o(G,j),o(G,J),o(G,ae),ke(ae,t[6].q.a),o(e,Y),o(e,oe),o(oe,ie),o(ie,ee),o(ie,_e),o(ie,ue),o(ie,Q),ke(Q,t[6].q.c),o(oe,$),o(oe,he),o(he,A),o(he,M),o(he,q),o(he,D),o(D,W),o(D,ne),o(D,se),o(se,pe),o(D,de),o(de,Ce),o(D,Se),o(D,qe),o(D,Be),o(D,fe),et(D,t[6].q.m,!0),o(e,we),o(e,Fe),o(Fe,ut),o(Fe,nt),o(Fe,rt),o(Fe,Ye),ke(Ye,t[6].q.b),o(e,gt),o(e,Ge),o(Ge,ct),o(Ge,vt),o(Ge,Ue),o(Ge,je),o(Ge,ye),o(ye,Ae),o(Ae,ge),o(Ae,De),et(Ae,t[6].q.t,!0),o(ye,Ve),o(ye,ce),ke(ce,t[6].q.d),xe=!0,Xe||(At=[re(R,"input",t[66]),re(S,"input",t[67]),re(Z,"input",t[68]),re(ae,"input",t[69]),re(Q,"input",t[70]),re(D,"change",t[71]),re(Ye,"input",t[72]),re(Ae,"change",t[73]),re(ce,"input",t[74])],Xe=!0)},p(Ie,Ze){var Mt,ve,Ee,Re,jt,Kt,Jt,Ot,xt,el,ll,nl,Oe,x,He,al,fl,ul,vl,hl,bl,gl,kl,wl;(!xe||Ze[0]&4)&&n!==(n=(((ve=(Mt=Ie[2].conf)==null?void 0:Mt.mqtt)==null?void 0:ve.title)??"MQTT")+"")&&O(i,n),(!xe||Ze[0]&4)&&d!==(d=(((Re=(Ee=Ie[2].conf)==null?void 0:Ee.mqtt)==null?void 0:Re.server)??"Server")+"")&&O(v,d),Ie[0].chip!="esp8266"?tt?tt.p(Ie,Ze):(tt=Xo(Ie),tt.c(),tt.m(_,b)):tt&&(tt.d(1),tt=null),Ze[0]&64&&R.value!==Ie[6].q.h&&ke(R,Ie[6].q.h),Ze[0]&64&&Qe(S.value)!==Ie[6].q.p&&ke(S,Ie[6].q.p),Ie[6].q.s.e?ze?(ze.p(Ie,Ze),Ze[0]&64&&X(ze,1)):(ze=Zo(Ie),ze.c(),X(ze,1),ze.m(e,N)):ze&&(pt(),le(ze,1,1,()=>{ze=null}),dt()),(!xe||Ze[0]&4)&&K!==(K=(((Kt=(jt=Ie[2].conf)==null?void 0:jt.mqtt)==null?void 0:Kt.user)??"Username")+"")&&O(z,K),Ze[0]&64&&Z.value!==Ie[6].q.u&&ke(Z,Ie[6].q.u),(!xe||Ze[0]&4)&&V!==(V=(((Ot=(Jt=Ie[2].conf)==null?void 0:Jt.mqtt)==null?void 0:Ot.pass)??"Password")+"")&&O(U,V),Ze[0]&64&&ae.value!==Ie[6].q.a&&ke(ae,Ie[6].q.a),(!xe||Ze[0]&4)&&te!==(te=(((el=(xt=Ie[2].conf)==null?void 0:xt.mqtt)==null?void 0:el.id)??"Client ID")+"")&&O(ee,te),Ze[0]&64&&Q.value!==Ie[6].q.c&&ke(Q,Ie[6].q.c),(!xe||Ze[0]&4)&&be!==(be=(((nl=(ll=Ie[2].conf)==null?void 0:ll.mqtt)==null?void 0:nl.payload)??"Payload")+"")&&O(A,be),(!xe||Ze[0]&4)&&me!==(me=(((He=(x=(Oe=Ie[2].conf)==null?void 0:Oe.mqtt)==null?void 0:x.domoticz)==null?void 0:He.title)??"Domoticz")+"")&&O(pe,me),(!xe||Ze[0]&4)&&Pe!==(Pe=(((ul=(fl=(al=Ie[2].conf)==null?void 0:al.mqtt)==null?void 0:fl.ha)==null?void 0:ul.title)??"Home-Assistant")+"")&&O(Ce,Pe),Ze[0]&64&&et(D,Ie[6].q.m),(!xe||Ze[0]&4)&&ft!==(ft=(((hl=(vl=Ie[2].conf)==null?void 0:vl.mqtt)==null?void 0:hl.publish)??"Publish topic")+"")&&O(ut,ft),Ze[0]&64&&Ye.value!==Ie[6].q.b&&ke(Ye,Ie[6].q.b),(!xe||Ze[0]&4)&&ht!==(ht=(((gl=(bl=Ie[2].conf)==null?void 0:bl.mqtt)==null?void 0:gl.update)??"Update method")+"")&&O(ct,ht),Ze[0]&64&&et(Ae,Ie[6].q.t),(!xe||Ze[0]&64&&Le!==(Le=((wl=(kl=Ie[6])==null?void 0:kl.q)==null?void 0:wl.t)!=1))&&(ce.disabled=Le),Ze[0]&64&&Qe(ce.value)!==Ie[6].q.d&&ke(ce,Ie[6].q.d)},i(Ie){xe||(X(ze),xe=!0)},o(Ie){le(ze),xe=!1},d(Ie){Ie&&T(e),tt&&tt.d(),ze&&ze.d(),Xe=!1,Pt(At)}}}function Xo(t){let e,l,n,i,s;return{c(){e=p("label"),l=p("input"),n=w(" SSL"),u(l,"type","checkbox"),u(l,"name","qs"),l.__value="true",l.value=l.__value,u(l,"class","rounded mb-1"),u(e,"class","float-right mr-3")},m(a,r){P(a,e,r),o(e,l),l.checked=t[6].q.s.e,o(e,n),i||(s=[re(l,"change",t[65]),re(l,"change",t[18])],i=!0)},p(a,r){r[0]&64&&(l.checked=a[6].q.s.e)},d(a){a&&T(e),i=!1,Pt(s)}}}function Zo(t){let e,l,n,i,s,a,r,f,c,m,_,d,v;const g=[z0,H0],b=[];function k(N,H){return N[6].q.s.c?0:1}n=k(t),i=b[n]=g[n](t);const C=[K0,V0],E=[];function R(N,H){return N[6].q.s.r?0:1}r=R(t),f=E[r]=C[r](t);const I=[Z0,X0],S=[];function B(N,H){return N[6].q.s.k?0:1}return _=B(t),d=S[_]=I[_](t),{c(){e=p("div"),l=p("span"),i.c(),s=h(),a=p("span"),f.c(),c=h(),m=p("span"),d.c(),u(l,"class","flex pr-2"),u(a,"class","flex pr-2"),u(m,"class","flex pr-2"),u(e,"class","my-1 flex")},m(N,H){P(N,e,H),o(e,l),b[n].m(l,null),o(e,s),o(e,a),E[r].m(a,null),o(e,c),o(e,m),S[_].m(m,null),v=!0},p(N,H){let K=n;n=k(N),n===K?b[n].p(N,H):(pt(),le(b[K],1,1,()=>{b[K]=null}),dt(),i=b[n],i?i.p(N,H):(i=b[n]=g[n](N),i.c()),X(i,1),i.m(l,null));let z=r;r=R(N),r===z?E[r].p(N,H):(pt(),le(E[z],1,1,()=>{E[z]=null}),dt(),f=E[r],f?f.p(N,H):(f=E[r]=C[r](N),f.c()),X(f,1),f.m(a,null));let L=_;_=B(N),_===L?S[_].p(N,H):(pt(),le(S[L],1,1,()=>{S[L]=null}),dt(),d=S[_],d?d.p(N,H):(d=S[_]=I[_](N),d.c()),X(d,1),d.m(m,null))},i(N){v||(X(i),X(f),X(d),v=!0)},o(N){le(i),le(f),le(d),v=!1},d(N){N&&T(e),b[n].d(),E[r].d(),S[_].d()}}}function H0(t){let e,l;return e=new ml({props:{to:"/mqtt-ca",$$slots:{default:[W0]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,i){const s={};i[0]&4|i[4]&16&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function z0(t){let e,l,n,i,s,a,r;return l=new ml({props:{to:"/mqtt-ca",$$slots:{default:[G0]},$$scope:{ctx:t}}}),{c(){e=p("span"),Te(l.$$.fragment),n=h(),i=p("span"),i.textContent="🗑",u(e,"class","bd-on"),u(i,"class","bd-off")},m(f,c){P(f,e,c),Me(l,e,null),P(f,n,c),P(f,i,c),s=!0,a||(r=[re(i,"click",t[15]),re(i,"keypress",t[15])],a=!0)},p(f,c){const m={};c[0]&4|c[4]&16&&(m.$$scope={dirty:c,ctx:f}),l.$set(m)},i(f){s||(X(l.$$.fragment,f),s=!0)},o(f){le(l.$$.fragment,f),s=!1},d(f){f&&T(e),Ne(l),f&&T(n),f&&T(i),a=!1,Pt(r)}}}function W0(t){var n,i,s,a;let e,l;return e=new Fl({props:{color:"blue",text:((i=(n=t[2].conf)==null?void 0:n.mqtt)==null?void 0:i.btn_ca_upload)??"Upload CA",title:((a=(s=t[2].conf)==null?void 0:s.mqtt)==null?void 0:a.title_ca)??""}}),{c(){Te(e.$$.fragment)},m(r,f){Me(e,r,f),l=!0},p(r,f){var m,_,d,v;const c={};f[0]&4&&(c.text=((_=(m=r[2].conf)==null?void 0:m.mqtt)==null?void 0:_.btn_ca_upload)??"Upload CA"),f[0]&4&&(c.title=((v=(d=r[2].conf)==null?void 0:d.mqtt)==null?void 0:v.title_ca)??""),e.$set(c)},i(r){l||(X(e.$$.fragment,r),l=!0)},o(r){le(e.$$.fragment,r),l=!1},d(r){Ne(e,r)}}}function G0(t){var n,i;let e=(((i=(n=t[2].conf)==null?void 0:n.mqtt)==null?void 0:i.ca_ok)??"CA OK")+"",l;return{c(){l=w(e)},m(s,a){P(s,l,a)},p(s,a){var r,f;a[0]&4&&e!==(e=(((f=(r=s[2].conf)==null?void 0:r.mqtt)==null?void 0:f.ca_ok)??"CA OK")+"")&&O(l,e)},d(s){s&&T(l)}}}function V0(t){let e,l;return e=new ml({props:{to:"/mqtt-cert",$$slots:{default:[Y0]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,i){const s={};i[0]&4|i[4]&16&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function K0(t){let e,l,n,i,s,a,r;return l=new ml({props:{to:"/mqtt-cert",$$slots:{default:[Q0]},$$scope:{ctx:t}}}),{c(){e=p("span"),Te(l.$$.fragment),n=h(),i=p("span"),i.textContent="🗑",u(e,"class","bd-on"),u(i,"class","bd-off")},m(f,c){P(f,e,c),Me(l,e,null),P(f,n,c),P(f,i,c),s=!0,a||(r=[re(i,"click",t[16]),re(i,"keypress",t[16])],a=!0)},p(f,c){const m={};c[0]&4|c[4]&16&&(m.$$scope={dirty:c,ctx:f}),l.$set(m)},i(f){s||(X(l.$$.fragment,f),s=!0)},o(f){le(l.$$.fragment,f),s=!1},d(f){f&&T(e),Ne(l),f&&T(n),f&&T(i),a=!1,Pt(r)}}}function Y0(t){var n,i,s,a;let e,l;return e=new Fl({props:{color:"blue",text:((i=(n=t[2].conf)==null?void 0:n.mqtt)==null?void 0:i.btn_crt_upload)??"Upload cert",title:((a=(s=t[2].conf)==null?void 0:s.mqtt)==null?void 0:a.title_crt)??""}}),{c(){Te(e.$$.fragment)},m(r,f){Me(e,r,f),l=!0},p(r,f){var m,_,d,v;const c={};f[0]&4&&(c.text=((_=(m=r[2].conf)==null?void 0:m.mqtt)==null?void 0:_.btn_crt_upload)??"Upload cert"),f[0]&4&&(c.title=((v=(d=r[2].conf)==null?void 0:d.mqtt)==null?void 0:v.title_crt)??""),e.$set(c)},i(r){l||(X(e.$$.fragment,r),l=!0)},o(r){le(e.$$.fragment,r),l=!1},d(r){Ne(e,r)}}}function Q0(t){var n,i;let e=(((i=(n=t[2].conf)==null?void 0:n.mqtt)==null?void 0:i.crt_ok)??"Cert OK")+"",l;return{c(){l=w(e)},m(s,a){P(s,l,a)},p(s,a){var r,f;a[0]&4&&e!==(e=(((f=(r=s[2].conf)==null?void 0:r.mqtt)==null?void 0:f.crt_ok)??"Cert OK")+"")&&O(l,e)},d(s){s&&T(l)}}}function X0(t){let e,l;return e=new ml({props:{to:"/mqtt-key",$$slots:{default:[J0]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,i){const s={};i[0]&4|i[4]&16&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function Z0(t){let e,l,n,i,s,a,r;return l=new ml({props:{to:"/mqtt-key",$$slots:{default:[$0]},$$scope:{ctx:t}}}),{c(){e=p("span"),Te(l.$$.fragment),n=h(),i=p("span"),i.textContent="🗑",u(e,"class","bd-on"),u(i,"class","bd-off")},m(f,c){P(f,e,c),Me(l,e,null),P(f,n,c),P(f,i,c),s=!0,a||(r=[re(i,"click",t[17]),re(i,"keypress",t[17])],a=!0)},p(f,c){const m={};c[0]&4|c[4]&16&&(m.$$scope={dirty:c,ctx:f}),l.$set(m)},i(f){s||(X(l.$$.fragment,f),s=!0)},o(f){le(l.$$.fragment,f),s=!1},d(f){f&&T(e),Ne(l),f&&T(n),f&&T(i),a=!1,Pt(r)}}}function J0(t){var n,i,s,a;let e,l;return e=new Fl({props:{color:"blue",text:((i=(n=t[2].conf)==null?void 0:n.mqtt)==null?void 0:i.btn_key_upload)??"Upload key",title:((a=(s=t[2].conf)==null?void 0:s.mqtt)==null?void 0:a.title_key)??""}}),{c(){Te(e.$$.fragment)},m(r,f){Me(e,r,f),l=!0},p(r,f){var m,_,d,v;const c={};f[0]&4&&(c.text=((_=(m=r[2].conf)==null?void 0:m.mqtt)==null?void 0:_.btn_key_upload)??"Upload key"),f[0]&4&&(c.title=((v=(d=r[2].conf)==null?void 0:d.mqtt)==null?void 0:v.title_key)??""),e.$set(c)},i(r){l||(X(e.$$.fragment,r),l=!0)},o(r){le(e.$$.fragment,r),l=!1},d(r){Ne(e,r)}}}function $0(t){var n,i;let e=(((i=(n=t[2].conf)==null?void 0:n.mqtt)==null?void 0:i.key_ok)??"Key OK")+"",l;return{c(){l=w(e)},m(s,a){P(s,l,a)},p(s,a){var r,f;a[0]&4&&e!==(e=(((f=(r=s[2].conf)==null?void 0:r.mqtt)==null?void 0:f.key_ok)??"Key OK")+"")&&O(l,e)},d(s){s&&T(l)}}}function Jo(t){var oe,ie,te,ee,_e,ue,Q,$,he,be,A,M;let e,l,n=(((te=(ie=(oe=t[2].conf)==null?void 0:oe.mqtt)==null?void 0:ie.domoticz)==null?void 0:te.title)??"Domoticz")+"",i,s,a,r,f,c,m,_,d,v=(((ue=(_e=(ee=t[2].conf)==null?void 0:ee.mqtt)==null?void 0:_e.domoticz)==null?void 0:ue.eidx)??"Electricity IDX")+"",g,b,k,C,E,R,I=(((he=($=(Q=t[2].conf)==null?void 0:Q.mqtt)==null?void 0:$.domoticz)==null?void 0:he.cidx)??"Current IDX")+"",S,B,N,H,K,z,L=(((M=(A=(be=t[2].conf)==null?void 0:be.mqtt)==null?void 0:A.domoticz)==null?void 0:M.vidx)??"Voltage IDX")+"",F,Z,y,G,V,U,j,J,ae,Y;return{c(){e=p("div"),l=p("strong"),i=w(n),s=h(),a=p("a"),r=w("ⓘ"),f=h(),c=p("input"),m=h(),_=p("div"),d=p("div"),g=w(v),b=p("br"),k=h(),C=p("input"),E=h(),R=p("div"),S=w(I),B=p("br"),N=h(),H=p("input"),K=h(),z=p("div"),F=w(L),Z=w(`: L1, L2 & L3 + `),y=p("div"),G=p("input"),V=h(),U=p("input"),j=h(),J=p("input"),u(l,"class","text-sm"),u(a,"href",cl("MQTT-configuration#domoticz")),u(a,"target","_blank"),u(a,"class","float-right"),u(c,"type","hidden"),u(c,"name","o"),c.value="true",u(C,"name","oe"),u(C,"type","text"),u(C,"class","in-f tr w-full"),u(d,"class","w-1/2"),u(H,"name","oc"),u(H,"type","text"),u(H,"class","in-l tr w-full"),u(R,"class","w-1/2"),u(_,"class","my-1 flex"),u(G,"name","ou1"),u(G,"type","text"),u(G,"class","in-f tr w-1/3"),u(U,"name","ou2"),u(U,"type","text"),u(U,"class","in-m tr w-1/3"),u(J,"name","ou3"),u(J,"type","text"),u(J,"class","in-l tr w-1/3"),u(y,"class","flex"),u(z,"class","my-1"),u(e,"class","cnt")},m(q,D){P(q,e,D),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,c),o(e,m),o(e,_),o(_,d),o(d,g),o(d,b),o(d,k),o(d,C),ke(C,t[6].o.e),o(_,E),o(_,R),o(R,S),o(R,B),o(R,N),o(R,H),ke(H,t[6].o.c),o(e,K),o(e,z),o(z,F),o(z,Z),o(z,y),o(y,G),ke(G,t[6].o.u1),o(y,V),o(y,U),ke(U,t[6].o.u2),o(y,j),o(y,J),ke(J,t[6].o.u3),ae||(Y=[re(C,"input",t[75]),re(H,"input",t[76]),re(G,"input",t[77]),re(U,"input",t[78]),re(J,"input",t[79])],ae=!0)},p(q,D){var W,ne,se,me,pe,de,Pe,Ce,Se,qe,Be,fe;D[0]&4&&n!==(n=(((se=(ne=(W=q[2].conf)==null?void 0:W.mqtt)==null?void 0:ne.domoticz)==null?void 0:se.title)??"Domoticz")+"")&&O(i,n),D[0]&4&&v!==(v=(((de=(pe=(me=q[2].conf)==null?void 0:me.mqtt)==null?void 0:pe.domoticz)==null?void 0:de.eidx)??"Electricity IDX")+"")&&O(g,v),D[0]&64&&C.value!==q[6].o.e&&ke(C,q[6].o.e),D[0]&4&&I!==(I=(((Se=(Ce=(Pe=q[2].conf)==null?void 0:Pe.mqtt)==null?void 0:Ce.domoticz)==null?void 0:Se.cidx)??"Current IDX")+"")&&O(S,I),D[0]&64&&H.value!==q[6].o.c&&ke(H,q[6].o.c),D[0]&4&&L!==(L=(((fe=(Be=(qe=q[2].conf)==null?void 0:qe.mqtt)==null?void 0:Be.domoticz)==null?void 0:fe.vidx)??"Voltage IDX")+"")&&O(F,L),D[0]&64&&G.value!==q[6].o.u1&&ke(G,q[6].o.u1),D[0]&64&&U.value!==q[6].o.u2&&ke(U,q[6].o.u2),D[0]&64&&J.value!==q[6].o.u3&&ke(J,q[6].o.u3)},d(q){q&&T(e),ae=!1,Pt(Y)}}}function $o(t){var j,J,ae,Y,oe,ie,te,ee,_e,ue,Q,$;let e,l,n=(((ae=(J=(j=t[2].conf)==null?void 0:j.mqtt)==null?void 0:J.ha)==null?void 0:ae.title)??"Home-Assistant")+"",i,s,a,r,f,c,m,_,d=(((ie=(oe=(Y=t[2].conf)==null?void 0:Y.mqtt)==null?void 0:oe.ha)==null?void 0:ie.discovery)??"Discovery topic prefix")+"",v,g,b,k,C,E,R=(((_e=(ee=(te=t[2].conf)==null?void 0:te.mqtt)==null?void 0:ee.ha)==null?void 0:_e.hostname)??"Hostname for URL")+"",I,S,B,N,H,K,z,L=((($=(Q=(ue=t[2].conf)==null?void 0:ue.mqtt)==null?void 0:Q.ha)==null?void 0:$.tag)??"Name tag")+"",F,Z,y,G,V,U;return{c(){e=p("div"),l=p("strong"),i=w(n),s=h(),a=p("a"),r=w("ⓘ"),f=h(),c=p("input"),m=h(),_=p("div"),v=w(d),g=p("br"),b=h(),k=p("input"),C=h(),E=p("div"),I=w(R),S=p("br"),B=h(),N=p("input"),K=h(),z=p("div"),F=w(L),Z=p("br"),y=h(),G=p("input"),u(l,"class","text-sm"),u(a,"href",cl("MQTT-configuration#home-assistant")),u(a,"target","_blank"),u(a,"class","float-right"),u(c,"type","hidden"),u(c,"name","h"),c.value="true",u(k,"name","ht"),u(k,"type","text"),u(k,"class","in-s"),u(k,"placeholder","homeassistant"),u(_,"class","my-1"),u(N,"name","hh"),u(N,"type","text"),u(N,"class","in-s"),u(N,"placeholder",H=t[6].g.h+".local"),u(E,"class","my-1"),u(G,"name","hn"),u(G,"type","text"),u(G,"class","in-s"),u(z,"class","my-1"),u(e,"class","cnt")},m(he,be){P(he,e,be),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,c),o(e,m),o(e,_),o(_,v),o(_,g),o(_,b),o(_,k),ke(k,t[6].h.t),o(e,C),o(e,E),o(E,I),o(E,S),o(E,B),o(E,N),ke(N,t[6].h.h),o(e,K),o(e,z),o(z,F),o(z,Z),o(z,y),o(z,G),ke(G,t[6].h.n),V||(U=[re(k,"input",t[80]),re(N,"input",t[81]),re(G,"input",t[82])],V=!0)},p(he,be){var A,M,q,D,W,ne,se,me,pe,de,Pe,Ce;be[0]&4&&n!==(n=(((q=(M=(A=he[2].conf)==null?void 0:A.mqtt)==null?void 0:M.ha)==null?void 0:q.title)??"Home-Assistant")+"")&&O(i,n),be[0]&4&&d!==(d=(((ne=(W=(D=he[2].conf)==null?void 0:D.mqtt)==null?void 0:W.ha)==null?void 0:ne.discovery)??"Discovery topic prefix")+"")&&O(v,d),be[0]&64&&k.value!==he[6].h.t&&ke(k,he[6].h.t),be[0]&4&&R!==(R=(((pe=(me=(se=he[2].conf)==null?void 0:se.mqtt)==null?void 0:me.ha)==null?void 0:pe.hostname)??"Hostname for URL")+"")&&O(I,R),be[0]&64&&H!==(H=he[6].g.h+".local")&&u(N,"placeholder",H),be[0]&64&&N.value!==he[6].h.h&&ke(N,he[6].h.h),be[0]&4&&L!==(L=(((Ce=(Pe=(de=he[2].conf)==null?void 0:de.mqtt)==null?void 0:Pe.ha)==null?void 0:Ce.tag)??"Name tag")+"")&&O(F,L),be[0]&64&&G.value!==he[6].h.n&&ke(G,he[6].h.n)},d(he){he&&T(e),V=!1,Pt(U)}}}function xo(t){var G,V,U,j,J,ae,Y,oe;let e,l,n=(((V=(G=t[2].conf)==null?void 0:G.cloud)==null?void 0:V.title)??"Cloud connections")+"",i,s,a,r,f,c,m,_,d,v,g,b=(((j=(U=t[2].conf)==null?void 0:U.cloud)==null?void 0:j.ams)??"AMS reader cloud")+"",k,C,E,R,I,S,B,N=(((ae=(J=t[2].conf)==null?void 0:J.cloud)==null?void 0:ae.es)??"Energy Speedometer")+"",H,K,z,L,F,Z=t[5]&&ea(t),y=((oe=(Y=t[6])==null?void 0:Y.c)==null?void 0:oe.es)&&ta(t);return{c(){e=p("div"),l=p("strong"),i=w(n),s=h(),a=p("a"),r=w("ⓘ"),f=h(),c=p("input"),m=h(),_=p("div"),d=p("label"),v=p("input"),g=h(),k=w(b),C=h(),Z&&Z.c(),E=h(),R=p("div"),I=p("label"),S=p("input"),B=h(),H=w(N),K=h(),y&&y.c(),u(l,"class","text-sm"),u(a,"href",cl("Cloud")),u(a,"target","_blank"),u(a,"class","float-right"),u(c,"type","hidden"),u(c,"name","c"),c.value="true",u(v,"type","checkbox"),u(v,"name","ce"),v.__value="true",v.value=v.__value,u(v,"class","rounded mb-1"),u(_,"class","my-1"),u(S,"type","checkbox"),u(S,"class","rounded mb-1"),u(S,"name","ces"),S.__value="true",S.value=S.__value,u(R,"class","my-1"),u(e,"class","cnt")},m(ie,te){P(ie,e,te),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,c),o(e,m),o(e,_),o(_,d),o(d,v),v.checked=t[6].c.e,o(d,g),o(d,k),o(_,C),Z&&Z.m(_,null),o(e,E),o(e,R),o(R,I),o(I,S),S.checked=t[6].c.es,o(I,B),o(I,H),o(R,K),y&&y.m(R,null),z=!0,L||(F=[re(v,"change",t[83]),re(S,"change",t[84])],L=!0)},p(ie,te){var ee,_e,ue,Q,$,he,be,A;(!z||te[0]&4)&&n!==(n=(((_e=(ee=ie[2].conf)==null?void 0:ee.cloud)==null?void 0:_e.title)??"Cloud connections")+"")&&O(i,n),te[0]&64&&(v.checked=ie[6].c.e),(!z||te[0]&4)&&b!==(b=(((Q=(ue=ie[2].conf)==null?void 0:ue.cloud)==null?void 0:Q.ams)??"AMS reader cloud")+"")&&O(k,b),ie[5]?Z?Z.p(ie,te):(Z=ea(ie),Z.c(),Z.m(_,null)):Z&&(Z.d(1),Z=null),te[0]&64&&(S.checked=ie[6].c.es),(!z||te[0]&4)&&N!==(N=(((he=($=ie[2].conf)==null?void 0:$.cloud)==null?void 0:he.es)??"Energy Speedometer")+"")&&O(H,N),(A=(be=ie[6])==null?void 0:be.c)!=null&&A.es?y?(y.p(ie,te),te[0]&64&&X(y,1)):(y=ta(ie),y.c(),X(y,1),y.m(R,null)):y&&(pt(),le(y,1,1,()=>{y=null}),dt())},i(ie){z||(X(y),z=!0)},o(ie){le(y),z=!1},d(ie){ie&&T(e),Z&&Z.d(),y&&y.d(),L=!1,Pt(F)}}}function ea(t){let e,l,n;return{c(){e=p("button"),e.textContent="Connect to my cloud account",u(e,"type","button"),u(e,"class","text-blue-500 ml-6")},m(i,s){P(i,e,s),l||(n=re(e,"click",t[20]),l=!0)},p:Ke,d(i){i&&T(e),l=!1,n()}}}function ta(t){let e,l,n=t[0].mac+"",i,s,a,r,f=(t[0].meter.id?t[0].meter.id:"missing, required")+"",c,m,_,d,v=t[0].mac&&t[0].meter.id&&la(t);return{c(){e=p("div"),l=w("MAC: "),i=w(n),s=h(),a=p("div"),r=w("Meter ID: "),c=w(f),m=h(),v&&v.c(),_=Wt(),u(e,"class","pl-5"),u(a,"class","pl-5")},m(g,b){P(g,e,b),o(e,l),o(e,i),P(g,s,b),P(g,a,b),o(a,r),o(a,c),P(g,m,b),v&&v.m(g,b),P(g,_,b),d=!0},p(g,b){(!d||b[0]&1)&&n!==(n=g[0].mac+"")&&O(i,n),(!d||b[0]&1)&&f!==(f=(g[0].meter.id?g[0].meter.id:"missing, required")+"")&&O(c,f),g[0].mac&&g[0].meter.id?v?(v.p(g,b),b[0]&1&&X(v,1)):(v=la(g),v.c(),X(v,1),v.m(_.parentNode,_)):v&&(pt(),le(v,1,1,()=>{v=null}),dt())},i(g){d||(X(v),d=!0)},o(g){le(v),d=!1},d(g){g&&T(e),g&&T(s),g&&T(a),g&&T(m),v&&v.d(g),g&&T(_)}}}function la(t){let e,l,n;return l=new L0({props:{value:'{"mac":"'+t[0].mac+'","meter":"'+t[0].meter.id+'"}'}}),{c(){e=p("div"),Te(l.$$.fragment),u(e,"class","pl-2")},m(i,s){P(i,e,s),Me(l,e,null),n=!0},p(i,s){const a={};s[0]&1&&(a.value='{"mac":"'+i[0].mac+'","meter":"'+i[0].meter.id+'"}'),l.$set(a)},i(i){n||(X(l.$$.fragment,i),n=!0)},o(i){le(l.$$.fragment,i),n=!1},d(i){i&&T(e),Ne(l)}}}function na(t){var L,F,Z,y,G;let e,l,n=(((F=(L=t[2].conf)==null?void 0:L.thresholds)==null?void 0:F.title)??"Thresholds")+"",i,s,a,r,f,c,m,_,d,v,g,b=(((y=(Z=t[2].conf)==null?void 0:Z.thresholds)==null?void 0:y.avg)??"Average of")+"",k,C,E,R,I,S=(((G=t[2].common)==null?void 0:G.hours)??"hours")+"",B,N,H,K={length:9},z=[];for(let V=0;Vt[88].call(C)),u(v,"class","w-1/2"),u(_,"class","flex flex-wrap"),u(e,"class","cnt")},m(F,Z){P(F,e,Z),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),o(e,c),o(e,m),o(e,_);for(let y=0;y20&&ua(t),v=((R=(E=(C=t[6])==null?void 0:C.i)==null?void 0:E.d)==null?void 0:R.d)>0&&ma(t),g=t[0].chip=="esp8266"&&_a(t);return{c(){e=p("div"),l=p("strong"),i=w(n),s=h(),a=p("a"),r=w("ⓘ"),f=h(),d&&d.c(),c=h(),v&&v.c(),m=h(),g&&g.c(),u(l,"class","text-sm"),u(a,"href",cl("GPIO-configuration")),u(a,"target","_blank"),u(a,"class","float-right"),u(e,"class","cnt")},m(I,S){P(I,e,S),o(e,l),o(l,i),o(e,s),o(e,a),o(a,r),o(e,f),d&&d.m(e,null),o(e,c),v&&v.m(e,null),o(e,m),g&&g.m(e,null),_=!0},p(I,S){var B,N,H,K,z;(!_||S[0]&4)&&n!==(n=(((N=(B=I[2].conf)==null?void 0:B.hw)==null?void 0:N.title)??"Hardware")+"")&&O(i,n),I[0].board>20?d?(d.p(I,S),S[0]&1&&X(d,1)):(d=ua(I),d.c(),X(d,1),d.m(e,c)):d&&(pt(),le(d,1,1,()=>{d=null}),dt()),((z=(K=(H=I[6])==null?void 0:H.i)==null?void 0:K.d)==null?void 0:z.d)>0?v?v.p(I,S):(v=ma(I),v.c(),v.m(e,m)):v&&(v.d(1),v=null),I[0].chip=="esp8266"?g?g.p(I,S):(g=_a(I),g.c(),g.m(e,null)):g&&(g.d(1),g=null)},i(I){_||(X(d),_=!0)},o(I){le(d),_=!1},d(I){I&&T(e),d&&d.d(),v&&v.d(),g&&g.d()}}}function ua(t){var St,It,Et,at,Rt,Ut,Ft,Gt,zt,Xt,Vt,Zt,$t,We,$e,st,Tt,Dt,Ie,Ze,Mt,ve,Ee,Re,jt,Kt,Jt,Ot,xt,el,ll,nl,Oe;let e,l,n,i,s=(((Et=(It=(St=t[2].conf)==null?void 0:St.hw)==null?void 0:It.han)==null?void 0:Et.rx)??"HAN RX")+"",a,r,f,c,m,_,d,v=(((Ut=(Rt=(at=t[2].conf)==null?void 0:at.hw)==null?void 0:Rt.han)==null?void 0:Ut.tx)??"HAN TX")+"",g,b,k,C,E,R,I,S,B,N,H=(((zt=(Gt=(Ft=t[2].conf)==null?void 0:Ft.hw)==null?void 0:Gt.han)==null?void 0:zt.pullup)??"pullup")+"",K,z,L,F,Z=(((Vt=(Xt=t[2].conf)==null?void 0:Xt.hw)==null?void 0:Vt.ap_btn)??"AP button")+"",y,G,V,U,j,J,ae=(((We=($t=(Zt=t[2].conf)==null?void 0:Zt.hw)==null?void 0:$t.led)==null?void 0:We.title)??"LED")+"",Y,oe,ie,te,ee,_e,ue,Q,$,he,be=(((Tt=(st=($e=t[2].conf)==null?void 0:$e.hw)==null?void 0:st.led)==null?void 0:Tt.inverted)??"inverted")+"",A,M,q,D=(((Ze=(Ie=(Dt=t[2].conf)==null?void 0:Dt.hw)==null?void 0:Ie.led)==null?void 0:Ze.rgb)??"RGB")+"",W,ne,se,me,pe=(((Ee=(ve=(Mt=t[2].conf)==null?void 0:Mt.hw)==null?void 0:ve.led)==null?void 0:Ee.inverted)??"inverted")+"",de,Pe,Ce,Se,qe,Be,fe,we,Fe,ft,ut,nt,rt=(((Kt=(jt=(Re=t[2].conf)==null?void 0:Re.hw)==null?void 0:jt.led)==null?void 0:Kt.disable)??"LED dis. GPIO")+"",Ye,gt,Ge,ht,ct,vt=(((Ot=(Jt=t[2].conf)==null?void 0:Jt.hw)==null?void 0:Ot.temp)??"Temperature")+"",Ue,je,ye,Ae,ge,De,Ve=(((el=(xt=t[2].conf)==null?void 0:xt.hw)==null?void 0:el.temp_analog)??"Analog temp")+"",ce,Le,xe,Xe,At,tt,ze,mt,it;m=new gi({props:{chip:t[0].chip}}),E=new gi({props:{chip:t[0].chip}});let ot=t[0].chip!="esp8266"&&ra(t),_t=((Oe=(nl=(ll=t[6])==null?void 0:ll.i)==null?void 0:nl.v)==null?void 0:Oe.p)>0&&ca(t);return{c(){e=p("input"),l=h(),n=p("div"),i=p("div"),a=w(s),r=p("br"),f=h(),c=p("select"),Te(m.$$.fragment),_=h(),d=p("div"),g=w(v),b=p("br"),k=h(),C=p("select"),Te(E.$$.fragment),R=h(),I=p("div"),S=p("label"),B=p("input"),N=h(),K=w(H),z=h(),L=p("div"),F=p("div"),y=w(Z),G=p("br"),V=h(),U=p("input"),j=h(),J=p("div"),Y=w(ae),oe=p("br"),ie=h(),te=p("div"),ee=p("input"),_e=h(),ue=p("div"),Q=p("label"),$=p("input"),he=h(),A=w(be),M=h(),q=p("div"),W=w(D),ne=p("label"),se=p("input"),me=h(),de=w(pe),Pe=p("br"),Ce=h(),Se=p("div"),qe=p("input"),Be=h(),fe=p("input"),we=h(),Fe=p("input"),ft=h(),ut=p("div"),nt=p("div"),Ye=w(rt),gt=h(),Ge=p("input"),ht=h(),ct=p("div"),Ue=w(vt),je=p("br"),ye=h(),Ae=p("input"),ge=h(),De=p("div"),ce=w(Ve),Le=p("br"),xe=h(),Xe=p("input"),At=h(),ot&&ot.c(),tt=h(),_t&&_t.c(),u(e,"type","hidden"),u(e,"name","i"),e.value="true",u(c,"name","ihp"),u(c,"class","in-f w-full"),t[6].i.h.p===void 0&&qt(()=>t[89].call(c)),u(i,"class","w-1/3"),u(C,"name","iht"),u(C,"class","in-l w-full"),t[6].i.h.t===void 0&&qt(()=>t[90].call(C)),u(d,"class","w-1/3"),u(B,"name","ihu"),B.__value="true",B.value=B.__value,u(B,"type","checkbox"),u(B,"class","rounded mb-1"),u(S,"class","ml-2"),u(I,"class","w-1/3"),u(n,"class","flex flex-wrap"),u(U,"name","ia"),u(U,"type","number"),u(U,"min","0"),u(U,"max",t[10]),u(U,"class","in-f tr w-full"),u(F,"class","w-1/3"),u(ee,"name","ilp"),u(ee,"type","number"),u(ee,"min","0"),u(ee,"max",t[10]),u(ee,"class","in-l tr w-full"),u(te,"class","flex"),u(J,"class","w-1/3"),u($,"name","ili"),$.__value="true",$.value=$.__value,u($,"type","checkbox"),u($,"class","rounded mb-1"),u(Q,"class","ml-4"),u(ue,"class","w-1/3"),u(se,"name","iri"),se.__value="true",se.value=se.__value,u(se,"type","checkbox"),u(se,"class","rounded mb-1"),u(ne,"class","ml-4"),u(qe,"name","irr"),u(qe,"type","number"),u(qe,"min","0"),u(qe,"max",t[10]),u(qe,"class","in-f tr w-1/3"),u(fe,"name","irg"),u(fe,"type","number"),u(fe,"min","0"),u(fe,"max",t[10]),u(fe,"class","in-m tr w-1/3"),u(Fe,"name","irb"),u(Fe,"type","number"),u(Fe,"min","0"),u(Fe,"max",t[10]),u(Fe,"class","in-l tr w-1/3"),u(Se,"class","flex"),u(q,"class","w-full"),u(Ge,"name","idd"),u(Ge,"type","number"),u(Ge,"min","0"),u(Ge,"max",t[10]),u(Ge,"class","in-s tr"),u(nt,"class","my-1 pr-1 w-1/3"),u(ut,"class","w-full"),u(Ae,"name","itd"),u(Ae,"type","number"),u(Ae,"min","0"),u(Ae,"max",t[10]),u(Ae,"class","in-f tr w-full"),u(ct,"class","my-1 w-1/3"),u(Xe,"name","ita"),u(Xe,"type","number"),u(Xe,"min","0"),u(Xe,"max",t[10]),u(Xe,"class","in-l tr w-full"),u(De,"class","my-1 pr-1 w-1/3"),u(L,"class","flex flex-wrap")},m(x,He){P(x,e,He),P(x,l,He),P(x,n,He),o(n,i),o(i,a),o(i,r),o(i,f),o(i,c),Me(m,c,null),et(c,t[6].i.h.p,!0),o(n,_),o(n,d),o(d,g),o(d,b),o(d,k),o(d,C),Me(E,C,null),et(C,t[6].i.h.t,!0),o(n,R),o(n,I),o(I,S),o(S,B),B.checked=t[6].i.h.u,o(S,N),o(S,K),P(x,z,He),P(x,L,He),o(L,F),o(F,y),o(F,G),o(F,V),o(F,U),ke(U,t[6].i.a),o(L,j),o(L,J),o(J,Y),o(J,oe),o(J,ie),o(J,te),o(te,ee),ke(ee,t[6].i.l.p),o(L,_e),o(L,ue),o(ue,Q),o(Q,$),$.checked=t[6].i.l.i,o(Q,he),o(Q,A),o(L,M),o(L,q),o(q,W),o(q,ne),o(ne,se),se.checked=t[6].i.r.i,o(ne,me),o(ne,de),o(q,Pe),o(q,Ce),o(q,Se),o(Se,qe),ke(qe,t[6].i.r.r),o(Se,Be),o(Se,fe),ke(fe,t[6].i.r.g),o(Se,we),o(Se,Fe),ke(Fe,t[6].i.r.b),o(L,ft),o(L,ut),o(ut,nt),o(nt,Ye),o(nt,gt),o(nt,Ge),ke(Ge,t[6].i.d.d),o(L,ht),o(L,ct),o(ct,Ue),o(ct,je),o(ct,ye),o(ct,Ae),ke(Ae,t[6].i.t.d),o(L,ge),o(L,De),o(De,ce),o(De,Le),o(De,xe),o(De,Xe),ke(Xe,t[6].i.t.a),o(L,At),ot&&ot.m(L,null),o(L,tt),_t&&_t.m(L,null),ze=!0,mt||(it=[re(c,"change",t[89]),re(C,"change",t[90]),re(B,"change",t[91]),re(U,"input",t[92]),re(ee,"input",t[93]),re($,"change",t[94]),re(se,"change",t[95]),re(qe,"input",t[96]),re(fe,"input",t[97]),re(Fe,"input",t[98]),re(Ge,"input",t[99]),re(Ae,"input",t[100]),re(Xe,"input",t[101])],mt=!0)},p(x,He){var ul,vl,hl,bl,gl,kl,wl,Zl,Jl,$l,xl,en,lt,Lt,rl,tn,ln,nn,sn,on,an,fn,un,rn,cn,mn,_n,pn,dn,vn,hn,bn,gn;(!ze||He[0]&4)&&s!==(s=(((hl=(vl=(ul=x[2].conf)==null?void 0:ul.hw)==null?void 0:vl.han)==null?void 0:hl.rx)??"HAN RX")+"")&&O(a,s);const al={};He[0]&1&&(al.chip=x[0].chip),m.$set(al),He[0]&64&&et(c,x[6].i.h.p),(!ze||He[0]&4)&&v!==(v=(((kl=(gl=(bl=x[2].conf)==null?void 0:bl.hw)==null?void 0:gl.han)==null?void 0:kl.tx)??"HAN TX")+"")&&O(g,v);const fl={};He[0]&1&&(fl.chip=x[0].chip),E.$set(fl),He[0]&64&&et(C,x[6].i.h.t),He[0]&64&&(B.checked=x[6].i.h.u),(!ze||He[0]&4)&&H!==(H=(((Jl=(Zl=(wl=x[2].conf)==null?void 0:wl.hw)==null?void 0:Zl.han)==null?void 0:Jl.pullup)??"pullup")+"")&&O(K,H),(!ze||He[0]&4)&&Z!==(Z=(((xl=($l=x[2].conf)==null?void 0:$l.hw)==null?void 0:xl.ap_btn)??"AP button")+"")&&O(y,Z),(!ze||He[0]&1024)&&u(U,"max",x[10]),He[0]&64&&Qe(U.value)!==x[6].i.a&&ke(U,x[6].i.a),(!ze||He[0]&4)&&ae!==(ae=(((Lt=(lt=(en=x[2].conf)==null?void 0:en.hw)==null?void 0:lt.led)==null?void 0:Lt.title)??"LED")+"")&&O(Y,ae),(!ze||He[0]&1024)&&u(ee,"max",x[10]),He[0]&64&&Qe(ee.value)!==x[6].i.l.p&&ke(ee,x[6].i.l.p),He[0]&64&&($.checked=x[6].i.l.i),(!ze||He[0]&4)&&be!==(be=(((ln=(tn=(rl=x[2].conf)==null?void 0:rl.hw)==null?void 0:tn.led)==null?void 0:ln.inverted)??"inverted")+"")&&O(A,be),(!ze||He[0]&4)&&D!==(D=(((on=(sn=(nn=x[2].conf)==null?void 0:nn.hw)==null?void 0:sn.led)==null?void 0:on.rgb)??"RGB")+"")&&O(W,D),He[0]&64&&(se.checked=x[6].i.r.i),(!ze||He[0]&4)&&pe!==(pe=(((un=(fn=(an=x[2].conf)==null?void 0:an.hw)==null?void 0:fn.led)==null?void 0:un.inverted)??"inverted")+"")&&O(de,pe),(!ze||He[0]&1024)&&u(qe,"max",x[10]),He[0]&64&&Qe(qe.value)!==x[6].i.r.r&&ke(qe,x[6].i.r.r),(!ze||He[0]&1024)&&u(fe,"max",x[10]),He[0]&64&&Qe(fe.value)!==x[6].i.r.g&&ke(fe,x[6].i.r.g),(!ze||He[0]&1024)&&u(Fe,"max",x[10]),He[0]&64&&Qe(Fe.value)!==x[6].i.r.b&&ke(Fe,x[6].i.r.b),(!ze||He[0]&4)&&rt!==(rt=(((mn=(cn=(rn=x[2].conf)==null?void 0:rn.hw)==null?void 0:cn.led)==null?void 0:mn.disable)??"LED dis. GPIO")+"")&&O(Ye,rt),(!ze||He[0]&1024)&&u(Ge,"max",x[10]),He[0]&64&&Qe(Ge.value)!==x[6].i.d.d&&ke(Ge,x[6].i.d.d),(!ze||He[0]&4)&&vt!==(vt=(((pn=(_n=x[2].conf)==null?void 0:_n.hw)==null?void 0:pn.temp)??"Temperature")+"")&&O(Ue,vt),(!ze||He[0]&1024)&&u(Ae,"max",x[10]),He[0]&64&&Qe(Ae.value)!==x[6].i.t.d&&ke(Ae,x[6].i.t.d),(!ze||He[0]&4)&&Ve!==(Ve=(((vn=(dn=x[2].conf)==null?void 0:dn.hw)==null?void 0:vn.temp_analog)??"Analog temp")+"")&&O(ce,Ve),(!ze||He[0]&1024)&&u(Xe,"max",x[10]),He[0]&64&&Qe(Xe.value)!==x[6].i.t.a&&ke(Xe,x[6].i.t.a),x[0].chip!="esp8266"?ot?ot.p(x,He):(ot=ra(x),ot.c(),ot.m(L,tt)):ot&&(ot.d(1),ot=null),((gn=(bn=(hn=x[6])==null?void 0:hn.i)==null?void 0:bn.v)==null?void 0:gn.p)>0?_t?_t.p(x,He):(_t=ca(x),_t.c(),_t.m(L,null)):_t&&(_t.d(1),_t=null)},i(x){ze||(X(m.$$.fragment,x),X(E.$$.fragment,x),ze=!0)},o(x){le(m.$$.fragment,x),le(E.$$.fragment,x),ze=!1},d(x){x&&T(e),x&&T(l),x&&T(n),Ne(m),Ne(E),x&&T(z),x&&T(L),ot&&ot.d(),_t&&_t.d(),mt=!1,Pt(it)}}}function ra(t){var c,m,_;let e,l=(((_=(m=(c=t[2].conf)==null?void 0:c.hw)==null?void 0:m.vcc)==null?void 0:_.title)??"Vcc")+"",n,i,s,a,r,f;return{c(){e=p("div"),n=w(l),i=p("br"),s=h(),a=p("input"),u(a,"name","ivp"),u(a,"type","number"),u(a,"min","0"),u(a,"max",t[10]),u(a,"class","in-s tr w-full"),u(e,"class","my-1 pl-1 w-1/3")},m(d,v){P(d,e,v),o(e,n),o(e,i),o(e,s),o(e,a),ke(a,t[6].i.v.p),r||(f=re(a,"input",t[102]),r=!0)},p(d,v){var g,b,k;v[0]&4&&l!==(l=(((k=(b=(g=d[2].conf)==null?void 0:g.hw)==null?void 0:b.vcc)==null?void 0:k.title)??"Vcc")+"")&&O(n,l),v[0]&1024&&u(a,"max",d[10]),v[0]&64&&Qe(a.value)!==d[6].i.v.p&&ke(a,d[6].i.v.p)},d(d){d&&T(e),r=!1,f()}}}function ca(t){var g,b,k;let e,l=(((k=(b=(g=t[2].conf)==null?void 0:g.hw)==null?void 0:b.vcc)==null?void 0:k.divider)??"Voltage divider")+"",n,i,s,a,r,f,c,m,_,d,v;return{c(){var C,E,R,I,S,B;e=p("div"),n=w(l),i=p("br"),s=h(),a=p("div"),r=p("input"),c=h(),m=p("input"),u(r,"name","ivdv"),u(r,"type","number"),u(r,"min","0"),u(r,"max","65535"),u(r,"class","in-f tr w-full"),u(r,"placeholder",f=((R=(E=(C=t[2].conf)==null?void 0:C.hw)==null?void 0:E.vcc)==null?void 0:R.div_vcc)??"VCC"),u(m,"name","ivdg"),u(m,"type","number"),u(m,"min","0"),u(m,"max","65535"),u(m,"class","in-l tr w-full"),u(m,"placeholder",_=((B=(S=(I=t[2].conf)==null?void 0:I.hw)==null?void 0:S.vcc)==null?void 0:B.div_gnd)??"GND"),u(a,"class","flex"),u(e,"class","my-1")},m(C,E){P(C,e,E),o(e,n),o(e,i),o(e,s),o(e,a),o(a,r),ke(r,t[6].i.v.d.v),o(a,c),o(a,m),ke(m,t[6].i.v.d.g),d||(v=[re(r,"input",t[103]),re(m,"input",t[104])],d=!0)},p(C,E){var R,I,S,B,N,H,K,z,L;E[0]&4&&l!==(l=(((S=(I=(R=C[2].conf)==null?void 0:R.hw)==null?void 0:I.vcc)==null?void 0:S.divider)??"Voltage divider")+"")&&O(n,l),E[0]&4&&f!==(f=((H=(N=(B=C[2].conf)==null?void 0:B.hw)==null?void 0:N.vcc)==null?void 0:H.div_vcc)??"VCC")&&u(r,"placeholder",f),E[0]&64&&Qe(r.value)!==C[6].i.v.d.v&&ke(r,C[6].i.v.d.v),E[0]&4&&_!==(_=((L=(z=(K=C[2].conf)==null?void 0:K.hw)==null?void 0:z.vcc)==null?void 0:L.div_gnd)??"GND")&&u(m,"placeholder",_),E[0]&64&&Qe(m.value)!==C[6].i.v.d.g&&ke(m,C[6].i.v.d.g)},d(C){C&&T(e),d=!1,Pt(v)}}}function ma(t){var g,b,k,C,E,R,I,S,B,N,H,K;let e,l=(((C=(k=(b=(g=t[2].conf)==null?void 0:g.hw)==null?void 0:b.led)==null?void 0:k.behaviour)==null?void 0:C.title)??"LED behaviour")+"",n,i,s,a,r=(((S=(I=(R=(E=t[2].conf)==null?void 0:E.hw)==null?void 0:R.led)==null?void 0:I.behaviour)==null?void 0:S.enabled)??"Enabled")+"",f,c,m=(((K=(H=(N=(B=t[2].conf)==null?void 0:B.hw)==null?void 0:N.led)==null?void 0:H.behaviour)==null?void 0:K.disabled)??"Disabled")+"",_,d,v;return{c(){e=p("div"),n=w(l),i=h(),s=p("select"),a=p("option"),f=w(r),c=p("option"),_=w(m),a.__value=0,a.value=a.__value,c.__value=1,c.value=c.__value,u(s,"name","idb"),u(s,"class","in-s"),t[6].i.d.b===void 0&&qt(()=>t[105].call(s)),u(e,"class","my-1 w-full")},m(z,L){P(z,e,L),o(e,n),o(e,i),o(e,s),o(s,a),o(a,f),o(s,c),o(c,_),et(s,t[6].i.d.b,!0),d||(v=re(s,"change",t[105]),d=!0)},p(z,L){var F,Z,y,G,V,U,j,J,ae,Y,oe,ie;L[0]&4&&l!==(l=(((G=(y=(Z=(F=z[2].conf)==null?void 0:F.hw)==null?void 0:Z.led)==null?void 0:y.behaviour)==null?void 0:G.title)??"LED behaviour")+"")&&O(n,l),L[0]&4&&r!==(r=(((J=(j=(U=(V=z[2].conf)==null?void 0:V.hw)==null?void 0:U.led)==null?void 0:j.behaviour)==null?void 0:J.enabled)??"Enabled")+"")&&O(f,r),L[0]&4&&m!==(m=(((ie=(oe=(Y=(ae=z[2].conf)==null?void 0:ae.hw)==null?void 0:Y.led)==null?void 0:oe.behaviour)==null?void 0:ie.disabled)??"Disabled")+"")&&O(_,m),L[0]&64&&et(s,z[6].i.d.b)},d(z){z&&T(e),d=!1,v()}}}function _a(t){var S,B,N,H,K,z;let e,l,n,i,s=(((N=(B=(S=t[2].conf)==null?void 0:S.hw)==null?void 0:B.vcc)==null?void 0:N.offset)??"Vcc offset")+"",a,r,f,c,m,_,d=(((z=(K=(H=t[2].conf)==null?void 0:H.hw)==null?void 0:K.vcc)==null?void 0:z.multiplier)??"Multiplier")+"",v,g,b,k,C,E,R,I=(t[0].board==2||t[0].board==100)&&pa(t);return{c(){e=p("input"),l=h(),n=p("div"),i=p("div"),a=w(s),r=p("br"),f=h(),c=p("input"),m=h(),_=p("div"),v=w(d),g=p("br"),b=h(),k=p("input"),C=h(),I&&I.c(),u(e,"type","hidden"),u(e,"name","iv"),e.value="true",u(c,"name","ivo"),u(c,"type","number"),u(c,"min","0.0"),u(c,"max","3.5"),u(c,"step","0.01"),u(c,"class","in-f tr w-full"),u(i,"class","w-1/3"),u(k,"name","ivm"),u(k,"type","number"),u(k,"min","0.1"),u(k,"max","10"),u(k,"step","0.01"),u(k,"class","in-l tr w-full"),u(_,"class","w-1/3 pr-1"),u(n,"class","my-1 flex flex-wrap")},m(L,F){P(L,e,F),P(L,l,F),P(L,n,F),o(n,i),o(i,a),o(i,r),o(i,f),o(i,c),ke(c,t[6].i.v.o),o(n,m),o(n,_),o(_,v),o(_,g),o(_,b),o(_,k),ke(k,t[6].i.v.m),o(n,C),I&&I.m(n,null),E||(R=[re(c,"input",t[106]),re(k,"input",t[107])],E=!0)},p(L,F){var Z,y,G,V,U,j;F[0]&4&&s!==(s=(((G=(y=(Z=L[2].conf)==null?void 0:Z.hw)==null?void 0:y.vcc)==null?void 0:G.offset)??"Vcc offset")+"")&&O(a,s),F[0]&64&&Qe(c.value)!==L[6].i.v.o&&ke(c,L[6].i.v.o),F[0]&4&&d!==(d=(((j=(U=(V=L[2].conf)==null?void 0:V.hw)==null?void 0:U.vcc)==null?void 0:j.multiplier)??"Multiplier")+"")&&O(v,d),F[0]&64&&Qe(k.value)!==L[6].i.v.m&&ke(k,L[6].i.v.m),L[0].board==2||L[0].board==100?I?I.p(L,F):(I=pa(L),I.c(),I.m(n,null)):I&&(I.d(1),I=null)},d(L){L&&T(e),L&&T(l),L&&T(n),I&&I.d(),E=!1,Pt(R)}}}function pa(t){var c,m,_;let e,l=(((_=(m=(c=t[2].conf)==null?void 0:c.hw)==null?void 0:m.vcc)==null?void 0:_.boot)??"Boot limit")+"",n,i,s,a,r,f;return{c(){e=p("div"),n=w(l),i=p("br"),s=h(),a=p("input"),u(a,"name","ivb"),u(a,"type","number"),u(a,"min","2.5"),u(a,"max","3.5"),u(a,"step","0.1"),u(a,"class","in-s tr w-full"),u(e,"class","w-1/3 pl-1")},m(d,v){P(d,e,v),o(e,n),o(e,i),o(e,s),o(e,a),ke(a,t[6].i.v.b),r||(f=re(a,"input",t[108]),r=!0)},p(d,v){var g,b,k;v[0]&4&&l!==(l=(((k=(b=(g=d[2].conf)==null?void 0:g.hw)==null?void 0:b.vcc)==null?void 0:k.boot)??"Boot limit")+"")&&O(n,l),v[0]&64&&Qe(a.value)!==d[6].i.v.b&&ke(a,d[6].i.v.b)},d(d){d&&T(e),r=!1,f()}}}function da(t){var I,S,B,N,H,K;let e,l,n=(((S=(I=t[2].conf)==null?void 0:I.debug)==null?void 0:S.title)??"Debugging")+"",i,s,a,r,f,c,m,_,d,v,g=(((N=(B=t[2].conf)==null?void 0:B.debug)==null?void 0:N.enable)??"Enable debugging")+"",b,k,C,E,R=((K=(H=t[6])==null?void 0:H.d)==null?void 0:K.s)&&va(t);return{c(){e=p("div"),l=p("strong"),i=w(n),s=h(),a=p("a"),a.textContent="ⓘ",r=h(),f=p("input"),c=h(),m=p("div"),_=p("label"),d=p("input"),v=h(),b=w(g),k=h(),R&&R.c(),u(l,"class","text-sm"),u(a,"href","https://amsleser.no/blog/post/24-telnet-debug"),u(a,"target","_blank"),u(a,"class","float-right"),u(f,"type","hidden"),u(f,"name","d"),f.value="true",u(d,"type","checkbox"),u(d,"name","ds"),d.__value="true",d.value=d.__value,u(d,"class","rounded mb-1"),u(m,"class","mt-3"),u(e,"class","cnt")},m(z,L){P(z,e,L),o(e,l),o(l,i),o(e,s),o(e,a),o(e,r),o(e,f),o(e,c),o(e,m),o(m,_),o(_,d),d.checked=t[6].d.s,o(_,v),o(_,b),o(e,k),R&&R.m(e,null),C||(E=re(d,"change",t[109]),C=!0)},p(z,L){var F,Z,y,G,V,U;L[0]&4&&n!==(n=(((Z=(F=z[2].conf)==null?void 0:F.debug)==null?void 0:Z.title)??"Debugging")+"")&&O(i,n),L[0]&64&&(d.checked=z[6].d.s),L[0]&4&&g!==(g=(((G=(y=z[2].conf)==null?void 0:y.debug)==null?void 0:G.enable)??"Enable debugging")+"")&&O(b,g),(U=(V=z[6])==null?void 0:V.d)!=null&&U.s?R?R.p(z,L):(R=va(z),R.c(),R.m(e,null)):R&&(R.d(1),R=null)},d(z){z&&T(e),R&&R.d(),C=!1,E()}}}function va(t){var B,N,H,K;let e,l=(((N=(B=t[2].conf)==null?void 0:B.debug)==null?void 0:N.danger)??"Disable when done")+"",n,i,s,a,r,f,c=(((K=(H=t[2].conf)==null?void 0:H.debug)==null?void 0:K.telnet)??"Enable telnet")+"",m,_,d,v,g,b,k,C,E,R,I,S=t[6].d.t&&ha(t);return{c(){e=p("div"),n=w(l),i=h(),s=p("div"),a=p("label"),r=p("input"),f=h(),m=w(c),_=h(),S&&S.c(),d=h(),v=p("div"),g=p("select"),b=p("option"),b.textContent="Verbose",k=p("option"),k.textContent="Debug",C=p("option"),C.textContent="Info",E=p("option"),E.textContent="Warning",u(e,"class","bd-red"),u(r,"type","checkbox"),u(r,"name","dt"),r.__value="true",r.value=r.__value,u(r,"class","rounded mb-1"),u(s,"class","my-1"),b.__value=1,b.value=b.__value,k.__value=2,k.value=k.__value,C.__value=3,C.value=C.__value,E.__value=4,E.value=E.__value,u(g,"name","dl"),u(g,"class","in-s"),t[6].d.l===void 0&&qt(()=>t[111].call(g)),u(v,"class","my-1")},m(z,L){P(z,e,L),o(e,n),P(z,i,L),P(z,s,L),o(s,a),o(a,r),r.checked=t[6].d.t,o(a,f),o(a,m),P(z,_,L),S&&S.m(z,L),P(z,d,L),P(z,v,L),o(v,g),o(g,b),o(g,k),o(g,C),o(g,E),et(g,t[6].d.l,!0),R||(I=[re(r,"change",t[110]),re(g,"change",t[111])],R=!0)},p(z,L){var F,Z,y,G;L[0]&4&&l!==(l=(((Z=(F=z[2].conf)==null?void 0:F.debug)==null?void 0:Z.danger)??"Disable when done")+"")&&O(n,l),L[0]&64&&(r.checked=z[6].d.t),L[0]&4&&c!==(c=(((G=(y=z[2].conf)==null?void 0:y.debug)==null?void 0:G.telnet)??"Enable telnet")+"")&&O(m,c),z[6].d.t?S?S.p(z,L):(S=ha(z),S.c(),S.m(d.parentNode,d)):S&&(S.d(1),S=null),L[0]&64&&et(g,z[6].d.l)},d(z){z&&T(e),z&&T(i),z&&T(s),z&&T(_),S&&S.d(z),z&&T(d),z&&T(v),R=!1,Pt(I)}}}function ha(t){var i,s;let e,l=(((s=(i=t[2].conf)==null?void 0:i.debug)==null?void 0:s.telnet_danger)??"Disable when done")+"",n;return{c(){e=p("div"),n=w(l),u(e,"class","bd-red")},m(a,r){P(a,e,r),o(e,n)},p(a,r){var f,c;r[0]&4&&l!==(l=(((c=(f=a[2].conf)==null?void 0:f.debug)==null?void 0:c.telnet_danger)??"Disable when done")+"")&&O(n,l)},d(a){a&&T(e)}}}function ba(t){var d,v;let e,l,n=(((d=t[2].conf)==null?void 0:d.btn_reset)??"Factory reset")+"",i,s,a,r,f=(((v=t[2].btn)==null?void 0:v.reboot)??"Reboot")+"",c,m,_;return{c(){e=p("div"),l=p("button"),i=w(n),s=h(),a=p("div"),r=p("button"),c=w(f),u(l,"type","button"),u(l,"class","btn-red"),u(r,"type","button"),u(r,"class","btn-yellow"),u(a,"class","text-center")},m(g,b){P(g,e,b),o(e,l),o(l,i),P(g,s,b),P(g,a,b),o(a,r),o(r,c),m||(_=[re(l,"click",t[12]),re(r,"click",t[14])],m=!0)},p(g,b){var k,C;b[0]&4&&n!==(n=(((k=g[2].conf)==null?void 0:k.btn_reset)??"Factory reset")+"")&&O(i,n),b[0]&4&&f!==(f=(((C=g[2].btn)==null?void 0:C.reboot)??"Reboot")+"")&&O(c,f)},d(g){g&&T(e),g&&T(s),g&&T(a),m=!1,Pt(_)}}}function ga(t){var s;let e,l,n=(((s=t[2].btn)==null?void 0:s.save)??"Save")+"",i;return{c(){e=p("div"),l=p("button"),i=w(n),u(l,"type","submit"),u(l,"class","btn-pri"),u(e,"class","text-right")},m(a,r){P(a,e,r),o(e,l),o(l,i)},p(a,r){var f;r[0]&4&&n!==(n=(((f=a[2].btn)==null?void 0:f.save)??"Save")+"")&&O(i,n)},d(a){a&&T(e)}}}function x0(t){var Q,$,he,be,A,M,q,D,W,ne,se,me,pe,de,Pe,Ce,Se,qe,Be,fe,we,Fe,ft,ut,nt,rt,Ye,gt,Ge,ht,ct,vt,Ue,je,ye,Ae,ge,De,Ve;let e,l,n,i,s,a,r,f,c,m,_=((he=($=(Q=t[6])==null?void 0:Q.p)==null?void 0:$.r)==null?void 0:he.startsWith("NO"))||((M=(A=(be=t[6])==null?void 0:be.p)==null?void 0:A.r)==null?void 0:M.startsWith("10YNO"))||((W=(D=(q=t[6])==null?void 0:q.p)==null?void 0:D.r)==null?void 0:W.startsWith("10Y1001A1001A4")),d,v,g,b=((ne=t[6])==null?void 0:ne.d)&&((me=(se=t[0])==null?void 0:se.features)==null?void 0:me.includes("rdebug")),k,C,E,R,I,S,B,N,H,K,z,L,F,Z,y=((pe=t[6])==null?void 0:pe.g)&&Io(t),G=((de=t[6])==null?void 0:de.m)&&Uo(t),V=((Pe=t[6])==null?void 0:Pe.w)&&Wo(t),U=((Ce=t[6])==null?void 0:Ce.n)&&Ko(t),j=((Se=t[6])==null?void 0:Se.q)&&Qo(t),J=((Be=(qe=t[6])==null?void 0:qe.q)==null?void 0:Be.m)==3&&Jo(t),ae=((we=(fe=t[6])==null?void 0:fe.q)==null?void 0:we.m)==4&&$o(t),Y=((Fe=t[6])==null?void 0:Fe.c)&&xo(t),oe=_&&na(t),ie=((ft=t[6])==null?void 0:ft.u)&&sa(t),te=((nt=(ut=t[6])==null?void 0:ut.i)==null?void 0:nt.h)&&(((rt=t[0])==null?void 0:rt.board)>20||((Ye=t[0])==null?void 0:Ye.chip)=="esp8266"||((ht=(Ge=(gt=t[6])==null?void 0:gt.i)==null?void 0:Ge.d)==null?void 0:ht.d)>0)&&fa(t),ee=b&&da(t),_e=((ct=t[1])==null?void 0:ct.a)&&ba(t),ue=t[6]&&ga(t);return I=new il({props:{active:t[3],message:((Ue=(vt=t[2].conf)==null?void 0:vt.mask)==null?void 0:Ue.loading)??"Loading"}}),B=new il({props:{active:t[4],message:((ye=(je=t[2].conf)==null?void 0:je.mask)==null?void 0:ye.saving)??"Saving"}}),H=new il({props:{active:t[8],message:((ge=(Ae=t[2].conf)==null?void 0:Ae.mask)==null?void 0:ge.reset)??"Factory reset"}}),z=new il({props:{active:t[9],message:((Ve=(De=t[2].conf)==null?void 0:De.mask)==null?void 0:Ve.reset_done)??"Done"}}),{c(){e=p("form"),l=p("div"),y&&y.c(),n=h(),G&&G.c(),i=h(),V&&V.c(),s=h(),U&&U.c(),a=h(),j&&j.c(),r=h(),J&&J.c(),f=h(),ae&&ae.c(),c=h(),Y&&Y.c(),m=h(),oe&&oe.c(),d=h(),ie&&ie.c(),v=h(),te&&te.c(),g=h(),ee&&ee.c(),k=h(),C=p("div"),_e&&_e.c(),E=h(),ue&&ue.c(),R=h(),Te(I.$$.fragment),S=h(),Te(B.$$.fragment),N=h(),Te(H.$$.fragment),K=h(),Te(z.$$.fragment),u(l,"class","grid xl:grid-cols-4 lg:grid-cols-2 md:grid-cols-2"),u(C,"class","grid grid-cols-3 mt-3"),u(e,"autocomplete","off")},m(ce,Le){P(ce,e,Le),o(e,l),y&&y.m(l,null),o(l,n),G&&G.m(l,null),o(l,i),V&&V.m(l,null),o(l,s),U&&U.m(l,null),o(l,a),j&&j.m(l,null),o(l,r),J&&J.m(l,null),o(l,f),ae&&ae.m(l,null),o(l,c),Y&&Y.m(l,null),o(l,m),oe&&oe.m(l,null),o(l,d),ie&&ie.m(l,null),o(l,v),te&&te.m(l,null),o(l,g),ee&&ee.m(l,null),o(e,k),o(e,C),_e&&_e.m(C,null),o(C,E),ue&&ue.m(C,null),P(ce,R,Le),Me(I,ce,Le),P(ce,S,Le),Me(B,ce,Le),P(ce,N,Le),Me(H,ce,Le),P(ce,K,Le),Me(z,ce,Le),L=!0,F||(Z=re(e,"submit",jl(t[13])),F=!0)},p(ce,Le){var ze,mt,it,ot,_t,St,It,Et,at,Rt,Ut,Ft,Gt,zt,Xt,Vt,Zt,$t,We,$e,st,Tt,Dt,Ie,Ze,Mt,ve,Ee,Re,jt,Kt,Jt,Ot,xt,el,ll,nl,Oe,x;(ze=ce[6])!=null&&ze.g?y?(y.p(ce,Le),Le[0]&64&&X(y,1)):(y=Io(ce),y.c(),X(y,1),y.m(l,n)):y&&(pt(),le(y,1,1,()=>{y=null}),dt()),(mt=ce[6])!=null&&mt.m?G?G.p(ce,Le):(G=Uo(ce),G.c(),G.m(l,i)):G&&(G.d(1),G=null),(it=ce[6])!=null&&it.w?V?V.p(ce,Le):(V=Wo(ce),V.c(),V.m(l,s)):V&&(V.d(1),V=null),(ot=ce[6])!=null&&ot.n?U?(U.p(ce,Le),Le[0]&64&&X(U,1)):(U=Ko(ce),U.c(),X(U,1),U.m(l,a)):U&&(pt(),le(U,1,1,()=>{U=null}),dt()),(_t=ce[6])!=null&&_t.q?j?(j.p(ce,Le),Le[0]&64&&X(j,1)):(j=Qo(ce),j.c(),X(j,1),j.m(l,r)):j&&(pt(),le(j,1,1,()=>{j=null}),dt()),((It=(St=ce[6])==null?void 0:St.q)==null?void 0:It.m)==3?J?J.p(ce,Le):(J=Jo(ce),J.c(),J.m(l,f)):J&&(J.d(1),J=null),((at=(Et=ce[6])==null?void 0:Et.q)==null?void 0:at.m)==4?ae?ae.p(ce,Le):(ae=$o(ce),ae.c(),ae.m(l,c)):ae&&(ae.d(1),ae=null),(Rt=ce[6])!=null&&Rt.c?Y?(Y.p(ce,Le),Le[0]&64&&X(Y,1)):(Y=xo(ce),Y.c(),X(Y,1),Y.m(l,m)):Y&&(pt(),le(Y,1,1,()=>{Y=null}),dt()),Le[0]&64&&(_=((Gt=(Ft=(Ut=ce[6])==null?void 0:Ut.p)==null?void 0:Ft.r)==null?void 0:Gt.startsWith("NO"))||((Vt=(Xt=(zt=ce[6])==null?void 0:zt.p)==null?void 0:Xt.r)==null?void 0:Vt.startsWith("10YNO"))||((We=($t=(Zt=ce[6])==null?void 0:Zt.p)==null?void 0:$t.r)==null?void 0:We.startsWith("10Y1001A1001A4"))),_?oe?oe.p(ce,Le):(oe=na(ce),oe.c(),oe.m(l,d)):oe&&(oe.d(1),oe=null),($e=ce[6])!=null&&$e.u?ie?ie.p(ce,Le):(ie=sa(ce),ie.c(),ie.m(l,v)):ie&&(ie.d(1),ie=null),(Tt=(st=ce[6])==null?void 0:st.i)!=null&&Tt.h&&(((Dt=ce[0])==null?void 0:Dt.board)>20||((Ie=ce[0])==null?void 0:Ie.chip)=="esp8266"||((ve=(Mt=(Ze=ce[6])==null?void 0:Ze.i)==null?void 0:Mt.d)==null?void 0:ve.d)>0)?te?(te.p(ce,Le),Le[0]&65&&X(te,1)):(te=fa(ce),te.c(),X(te,1),te.m(l,g)):te&&(pt(),le(te,1,1,()=>{te=null}),dt()),Le[0]&65&&(b=((Ee=ce[6])==null?void 0:Ee.d)&&((jt=(Re=ce[0])==null?void 0:Re.features)==null?void 0:jt.includes("rdebug"))),b?ee?ee.p(ce,Le):(ee=da(ce),ee.c(),ee.m(l,null)):ee&&(ee.d(1),ee=null),(Kt=ce[1])!=null&&Kt.a?_e?_e.p(ce,Le):(_e=ba(ce),_e.c(),_e.m(C,E)):_e&&(_e.d(1),_e=null),ce[6]?ue?ue.p(ce,Le):(ue=ga(ce),ue.c(),ue.m(C,null)):ue&&(ue.d(1),ue=null);const xe={};Le[0]&8&&(xe.active=ce[3]),Le[0]&4&&(xe.message=((Ot=(Jt=ce[2].conf)==null?void 0:Jt.mask)==null?void 0:Ot.loading)??"Loading"),I.$set(xe);const Xe={};Le[0]&16&&(Xe.active=ce[4]),Le[0]&4&&(Xe.message=((el=(xt=ce[2].conf)==null?void 0:xt.mask)==null?void 0:el.saving)??"Saving"),B.$set(Xe);const At={};Le[0]&256&&(At.active=ce[8]),Le[0]&4&&(At.message=((nl=(ll=ce[2].conf)==null?void 0:ll.mask)==null?void 0:nl.reset)??"Factory reset"),H.$set(At);const tt={};Le[0]&512&&(tt.active=ce[9]),Le[0]&4&&(tt.message=((x=(Oe=ce[2].conf)==null?void 0:Oe.mask)==null?void 0:x.reset_done)??"Done"),z.$set(tt)},i(ce){L||(X(y),X(U),X(j),X(Y),X(te),X(I.$$.fragment,ce),X(B.$$.fragment,ce),X(H.$$.fragment,ce),X(z.$$.fragment,ce),L=!0)},o(ce){le(y),le(U),le(j),le(Y),le(te),le(I.$$.fragment,ce),le(B.$$.fragment,ce),le(H.$$.fragment,ce),le(z.$$.fragment,ce),L=!1},d(ce){ce&&T(e),y&&y.d(),G&&G.d(),V&&V.d(),U&&U.d(),j&&j.d(),J&&J.d(),ae&&ae.d(),Y&&Y.d(),oe&&oe.d(),ie&&ie.d(),te&&te.d(),ee&&ee.d(),_e&&_e.d(),ue&&ue.d(),ce&&T(R),Ne(I,ce),ce&&T(S),Ne(B,ce),ce&&T(N),Ne(H,ce),ce&&T(K),Ne(z,ce),F=!1,Z()}}}async function ec(){await(await fetch("reboot",{method:"POST"})).json()}function tc(t,e,l){let{basepath:n="/"}=e,{sysinfo:i={}}=e,{data:s}=e,a={};dl.subscribe(Ee=>{l(2,a=Ee)});let r=[{name:"Import gauge",key:"i"},{name:"Export gauge",key:"e"},{name:"Voltage",key:"v"},{name:"Amperage",key:"a"},{name:"Per phase",key:"h"},{name:"Power factor",key:"f"},{name:"Reactive",key:"r"},{name:"Realtime",key:"c"},{name:"Peaks",key:"t"},{name:"Realtime plot",key:"l"},{name:"Price",key:"p"},{name:"Day plot",key:"d"},{name:"Month plot",key:"m"},{name:"Temperature plot",key:"s"},{name:"Dark mode",key:"k"}],f=!0,c=!1,m=!1,_,d=[];Cn.subscribe(Ee=>{var Re,jt,Kt;Ee.version&&(l(5,m=(Re=Ee==null?void 0:Ee.c)==null?void 0:Re.e),l(6,_=Ee),l(3,f=!1),l(7,d=[{code:"en",name:"English"}]),(jt=_==null?void 0:_.u)!=null&&jt.lang&&_.u.lang!="en"&&d.push({code:_.u.lang,name:((Kt=a.language)==null?void 0:Kt.name)??"Unknown"}),d.push({code:"hub",name:"Load from server"}))}),h0();let v=!1,g=!1;async function b(){if(confirm("Factory reset?")){l(8,v=!0);const Ee=new URLSearchParams;Ee.append("perform","true");let jt=await(await fetch("reset",{method:"POST",body:Ee})).json();l(8,v=!1),l(9,g=jt.success)}}async function k(Ee){l(4,c=!0);const Re=new FormData(Ee.target),jt=new URLSearchParams;for(let Ot of Re){const[xt,el]=Ot;jt.append(xt,el)}let Jt=await(await fetch("save",{method:"POST",body:jt})).json();ol.update(Ot=>(Ot.hostname=Re.get("gh"),Ot.usrcfg=Jt.success,Ot.booting=Jt.reboot,Re.get("nm")=="static"&&(Ot.net.ip=Re.get("ni"),Ot.net.mask=Re.get("nu"),Ot.net.gw=Re.get("ng"),Ot.net.dns1=Re.get("nd")),Ot.ui=_.u,Ot)),l(4,c=!1),Al(n)}const C=function(){confirm("Reboot?")&&(ol.update(Ee=>(Ee.booting=!0,Ee)),ec())};async function E(){confirm("Are you sure you want to delete CA?")&&(await(await fetch("mqtt-ca",{method:"POST"})).text(),Cn.update(Re=>(Re.q.s.c=!1,Re)))}async function R(){confirm("Are you sure you want to delete cert?")&&(await(await fetch("mqtt-cert",{method:"POST"})).text(),Cn.update(Re=>(Re.q.s.r=!1,Re)))}async function I(){confirm("Are you sure you want to delete key?")&&(await(await fetch("mqtt-key",{method:"POST"})).text(),Cn.update(Re=>(Re.q.s.k=!1,Re)))}const S=function(){_.q.s.e?_.q.p==1883&&l(6,_.q.p=8883,_):_.q.p==8883&&l(6,_.q.p=1883,_)};async function B(){if(_.u.lang=="hub"){const Ee=await pl("http://hub.amsleser.no/hub/language/list.json");l(7,d=await Ee.json()),l(6,_.u.lang=a.language.code,_)}}let N=44;async function H(){const Ee=await pl("cloudkey.json");if(Ee.status==200){let Re=await Ee.json();window.open("https://www.amsleser.cloud/device/"+Re.seed)}else alert("Not able to bind to cloud")}const K=window||global;K.bindToCloud=function(){console.log("BIND CALLED")};function z(){_.g.h=this.value,l(6,_)}function L(){_.g.t=Ht(this),l(6,_)}function F(){_.p.r=Ht(this),l(6,_)}function Z(){_.p.c=Ht(this),l(6,_)}function y(){_.p.e=this.checked,l(6,_)}function G(){_.p.t=this.value,l(6,_)}function V(){_.g.s=Ht(this),l(6,_)}function U(){_.g.u=this.value,l(6,_)}function j(){_.g.p=this.value,l(6,_)}function J(){_.g.c=this.value,l(6,_)}function ae(){_.m.a=Ht(this),l(6,_)}function Y(){_.m.b=Qe(this.value),l(6,_)}function oe(){_.m.i=this.checked,l(6,_)}function ie(){_.m.b=Ht(this),l(6,_)}function te(){_.m.p=Ht(this),l(6,_)}function ee(){_.m.s=Qe(this.value),l(6,_)}function _e(){_.m.d=Ht(this),l(6,_)}function ue(){_.m.f=Qe(this.value),l(6,_)}function Q(){_.m.r=Qe(this.value),l(6,_)}function $(){_.m.e.e=this.checked,l(6,_)}function he(){_.m.e.k=this.value,l(6,_)}function be(){_.m.e.a=this.value,l(6,_)}function A(){_.m.m.e=this.checked,l(6,_)}function M(){_.m.m.w=Qe(this.value),l(6,_)}function q(){_.m.m.v=Qe(this.value),l(6,_)}function D(){_.m.m.a=Qe(this.value),l(6,_)}function W(){_.m.m.c=Qe(this.value),l(6,_)}function ne(){_.n.c=Ht(this),l(6,_)}function se(){_.w.s=this.value,l(6,_)}function me(){_.w.p=this.value,l(6,_)}function pe(){_.w.z=Ht(this),l(6,_)}function de(){_.w.w=Qe(this.value),l(6,_)}function Pe(){_.w.b=this.checked,l(6,_)}function Ce(){_.n.m=Ht(this),l(6,_)}function Se(){_.n.i=this.value,l(6,_)}function qe(){_.n.s=Ht(this),l(6,_)}function Be(){_.n.g=this.value,l(6,_)}function fe(){_.n.d1=this.value,l(6,_)}function we(){_.n.d2=this.value,l(6,_)}function Fe(){_.n.x=this.checked,l(6,_)}function ft(){_.n.d=this.checked,l(6,_)}function ut(){_.n.h=this.checked,l(6,_)}function nt(){_.n.n1=this.value,l(6,_)}function rt(){_.q.s.e=this.checked,l(6,_)}function Ye(){_.q.h=this.value,l(6,_)}function gt(){_.q.p=Qe(this.value),l(6,_)}function Ge(){_.q.u=this.value,l(6,_)}function ht(){_.q.a=this.value,l(6,_)}function ct(){_.q.c=this.value,l(6,_)}function vt(){_.q.m=Ht(this),l(6,_)}function Ue(){_.q.b=this.value,l(6,_)}function je(){_.q.t=Ht(this),l(6,_)}function ye(){_.q.d=Qe(this.value),l(6,_)}function Ae(){_.o.e=this.value,l(6,_)}function ge(){_.o.c=this.value,l(6,_)}function De(){_.o.u1=this.value,l(6,_)}function Ve(){_.o.u2=this.value,l(6,_)}function ce(){_.o.u3=this.value,l(6,_)}function Le(){_.h.t=this.value,l(6,_)}function xe(){_.h.h=this.value,l(6,_)}function Xe(){_.h.n=this.value,l(6,_)}function At(){_.c.e=this.checked,l(6,_)}function tt(){_.c.es=this.checked,l(6,_)}function ze(Ee){_.t.t[Ee]=Qe(this.value),l(6,_)}function mt(){_.t.h=Qe(this.value),l(6,_)}function it(Ee){_.u[Ee.key]=Ht(this),l(6,_)}function ot(){_.u.lang=Ht(this),l(6,_)}function _t(){_.i.h.p=Ht(this),l(6,_)}function St(){_.i.h.t=Ht(this),l(6,_)}function It(){_.i.h.u=this.checked,l(6,_)}function Et(){_.i.a=Qe(this.value),l(6,_)}function at(){_.i.l.p=Qe(this.value),l(6,_)}function Rt(){_.i.l.i=this.checked,l(6,_)}function Ut(){_.i.r.i=this.checked,l(6,_)}function Ft(){_.i.r.r=Qe(this.value),l(6,_)}function Gt(){_.i.r.g=Qe(this.value),l(6,_)}function zt(){_.i.r.b=Qe(this.value),l(6,_)}function Xt(){_.i.d.d=Qe(this.value),l(6,_)}function Vt(){_.i.t.d=Qe(this.value),l(6,_)}function Zt(){_.i.t.a=Qe(this.value),l(6,_)}function $t(){_.i.v.p=Qe(this.value),l(6,_)}function We(){_.i.v.d.v=Qe(this.value),l(6,_)}function $e(){_.i.v.d.g=Qe(this.value),l(6,_)}function st(){_.i.d.b=Ht(this),l(6,_)}function Tt(){_.i.v.o=Qe(this.value),l(6,_)}function Dt(){_.i.v.m=Qe(this.value),l(6,_)}function Ie(){_.i.v.b=Qe(this.value),l(6,_)}function Ze(){_.d.s=this.checked,l(6,_)}function Mt(){_.d.t=this.checked,l(6,_)}function ve(){_.d.l=Ht(this),l(6,_)}return t.$$set=Ee=>{"basepath"in Ee&&l(21,n=Ee.basepath),"sysinfo"in Ee&&l(0,i=Ee.sysinfo),"data"in Ee&&l(1,s=Ee.data)},t.$$.update=()=>{t.$$.dirty[0]&1&&l(10,N=i.chip=="esp8266"?16:i.chip=="esp32s2"?44:39)},[i,s,a,f,c,m,_,d,v,g,N,r,b,k,C,E,R,I,S,B,H,n,z,L,F,Z,y,G,V,U,j,J,ae,Y,oe,ie,te,ee,_e,ue,Q,$,he,be,A,M,q,D,W,ne,se,me,pe,de,Pe,Ce,Se,qe,Be,fe,we,Fe,ft,ut,nt,rt,Ye,gt,Ge,ht,ct,vt,Ue,je,ye,Ae,ge,De,Ve,ce,Le,xe,Xe,At,tt,ze,mt,it,ot,_t,St,It,Et,at,Rt,Ut,Ft,Gt,zt,Xt,Vt,Zt,$t,We,$e,st,Tt,Dt,Ie,Ze,Mt,ve]}class lc extends Ct{constructor(e){super(),wt(this,e,tc,x0,kt,{basepath:21,sysinfo:0,data:1},null,[-1,-1,-1,-1,-1])}}function ka(t,e,l){const n=t.slice();return n[22]=e[l],n}function wa(t){let e,l=t[1].cpu+"",n,i;return{c(){e=w("("),n=w(l),i=w("MHz)")},m(s,a){P(s,e,a),P(s,n,a),P(s,i,a)},p(s,a){a&2&&l!==(l=s[1].cpu+"")&&O(n,l)},d(s){s&&T(e),s&&T(n),s&&T(i)}}}function nc(t){let e=Je(t[1].chip,t[1].board)+"",l;return{c(){l=w(e)},m(n,i){P(n,l,i)},p(n,i){i&2&&e!==(e=Je(n[1].chip,n[1].board)+"")&&O(l,e)},d(n){n&&T(l)}}}function Ca(t){var V,U,j,J,ae,Y,oe,ie;let e,l=(((U=(V=t[3].status)==null?void 0:V.device)==null?void 0:U.apmac)??"AP MAC")+"",n,i,s=t[1].apmac+"",a,r,f,c=(((J=(j=t[3].status)==null?void 0:j.device)==null?void 0:J.last_boot)??"Last boot")+"",m,_,d,v,g,b,k=(((Y=(ae=t[3].status)==null?void 0:ae.device)==null?void 0:Y.reason)??"Reason")+"",C,E,R=(((ie=(oe=t[3][fs(t[1].chip)])==null?void 0:oe.reason)==null?void 0:ie[t[1].boot_reason])??t[1].boot_reason)+"",I,S,B=t[1].boot_reason+"",N,H,K=t[1].ex_cause+"",z,L,F;const Z=[sc,ic],y=[];function G(te,ee){return te[0].u>0?0:1}return d=G(t),v=y[d]=Z[d](t),{c(){e=p("div"),n=w(l),i=w(": "),a=w(s),r=h(),f=p("div"),m=w(c),_=w(`: + `),v.c(),g=h(),b=p("div"),C=w(k),E=w(": "),I=w(R),S=w(" ("),N=w(B),H=w("/"),z=w(K),L=w(")"),u(e,"class","my-2"),u(f,"class","my-2"),u(b,"class","my-2")},m(te,ee){P(te,e,ee),o(e,n),o(e,i),o(e,a),P(te,r,ee),P(te,f,ee),o(f,m),o(f,_),y[d].m(f,null),P(te,g,ee),P(te,b,ee),o(b,C),o(b,E),o(b,I),o(b,S),o(b,N),o(b,H),o(b,z),o(b,L),F=!0},p(te,ee){var ue,Q,$,he,be,A,M,q;(!F||ee&8)&&l!==(l=(((Q=(ue=te[3].status)==null?void 0:ue.device)==null?void 0:Q.apmac)??"AP MAC")+"")&&O(n,l),(!F||ee&2)&&s!==(s=te[1].apmac+"")&&O(a,s),(!F||ee&8)&&c!==(c=(((he=($=te[3].status)==null?void 0:$.device)==null?void 0:he.last_boot)??"Last boot")+"")&&O(m,c);let _e=d;d=G(te),d===_e?y[d].p(te,ee):(pt(),le(y[_e],1,1,()=>{y[_e]=null}),dt(),v=y[d],v?v.p(te,ee):(v=y[d]=Z[d](te),v.c()),X(v,1),v.m(f,null)),(!F||ee&8)&&k!==(k=(((A=(be=te[3].status)==null?void 0:be.device)==null?void 0:A.reason)??"Reason")+"")&&O(C,k),(!F||ee&10)&&R!==(R=(((q=(M=te[3][fs(te[1].chip)])==null?void 0:M.reason)==null?void 0:q[te[1].boot_reason])??te[1].boot_reason)+"")&&O(I,R),(!F||ee&2)&&B!==(B=te[1].boot_reason+"")&&O(N,B),(!F||ee&2)&&K!==(K=te[1].ex_cause+"")&&O(z,K)},i(te){F||(X(v),F=!0)},o(te){le(v),F=!1},d(te){te&&T(e),te&&T(r),te&&T(f),y[d].d(),te&&T(g),te&&T(b)}}}function ic(t){let e;return{c(){e=w("-")},m(l,n){P(l,e,n)},p:Ke,i:Ke,o:Ke,d(l){l&&T(e)}}}function sc(t){let e,l;return e=new uu({props:{timestamp:new Date(new Date().getTime()-t[0].u*1e3),fullTimeColor:""}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,i){const s={};i&1&&(s.timestamp=new Date(new Date().getTime()-n[0].u*1e3)),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function Sa(t){var m;let e,l,n,i,s=(((m=t[3].btn)==null?void 0:m.reboot)??"Reboot")+"",a,r,f,c;return l=new ml({props:{to:"/consent",$$slots:{default:[oc]},$$scope:{ctx:t}}}),{c(){e=p("div"),Te(l.$$.fragment),n=h(),i=p("button"),a=w(s),u(i,"class","btn-yellow-sm float-right"),u(e,"class","my-2")},m(_,d){P(_,e,d),Me(l,e,null),o(e,n),o(e,i),o(i,a),r=!0,f||(c=re(i,"click",t[12]),f=!0)},p(_,d){var g;const v={};d&33554440&&(v.$$scope={dirty:d,ctx:_}),l.$set(v),(!r||d&8)&&s!==(s=(((g=_[3].btn)==null?void 0:g.reboot)??"Reboot")+"")&&O(a,s)},i(_){r||(X(l.$$.fragment,_),r=!0)},o(_){le(l.$$.fragment,_),r=!1},d(_){_&&T(e),Ne(l),f=!1,c()}}}function oc(t){var i,s;let e,l=(((s=(i=t[3].status)==null?void 0:i.device)==null?void 0:s.btn_consents)??"Consents")+"",n;return{c(){e=p("span"),n=w(l),u(e,"class","btn-pri-sm")},m(a,r){P(a,e,r),o(e,n)},p(a,r){var f,c;r&8&&l!==(l=(((c=(f=a[3].status)==null?void 0:f.device)==null?void 0:c.btn_consents)??"Consents")+"")&&O(n,l)},d(a){a&&T(e)}}}function Ma(t){var z,L,F,Z,y,G,V,U;let e,l,n=(((L=(z=t[3].status)==null?void 0:z.meter)==null?void 0:L.title)??"Meter")+"",i,s,a,r=(((Z=(F=t[3].status)==null?void 0:F.meter)==null?void 0:Z.manufacturer)??"Manufacturer")+"",f,c,m=Vn(t[1].meter.mfg)+"",_,d,v,g=(((G=(y=t[3].status)==null?void 0:y.meter)==null?void 0:G.model)??"Model")+"",b,k,C=(t[1].meter.model?t[1].meter.model:"unknown")+"",E,R,I,S=(((U=(V=t[3].status)==null?void 0:V.meter)==null?void 0:U.id)??"ID")+"",B,N,H=(t[1].meter.id?t[1].meter.id:"unknown")+"",K;return{c(){e=p("div"),l=p("strong"),i=w(n),s=h(),a=p("div"),f=w(r),c=w(": "),_=w(m),d=h(),v=p("div"),b=w(g),k=w(": "),E=w(C),R=h(),I=p("div"),B=w(S),N=w(": "),K=w(H),u(l,"class","text-sm"),u(a,"class","my-2"),u(v,"class","my-2"),u(I,"class","my-2"),u(e,"class","cnt")},m(j,J){P(j,e,J),o(e,l),o(l,i),o(e,s),o(e,a),o(a,f),o(a,c),o(a,_),o(e,d),o(e,v),o(v,b),o(v,k),o(v,E),o(e,R),o(e,I),o(I,B),o(I,N),o(I,K)},p(j,J){var ae,Y,oe,ie,te,ee,_e,ue;J&8&&n!==(n=(((Y=(ae=j[3].status)==null?void 0:ae.meter)==null?void 0:Y.title)??"Meter")+"")&&O(i,n),J&8&&r!==(r=(((ie=(oe=j[3].status)==null?void 0:oe.meter)==null?void 0:ie.manufacturer)??"Manufacturer")+"")&&O(f,r),J&2&&m!==(m=Vn(j[1].meter.mfg)+"")&&O(_,m),J&8&&g!==(g=(((ee=(te=j[3].status)==null?void 0:te.meter)==null?void 0:ee.model)??"Model")+"")&&O(b,g),J&2&&C!==(C=(j[1].meter.model?j[1].meter.model:"unknown")+"")&&O(E,C),J&8&&S!==(S=(((ue=(_e=j[3].status)==null?void 0:_e.meter)==null?void 0:ue.id)??"ID")+"")&&O(B,S),J&2&&H!==(H=(j[1].meter.id?j[1].meter.id:"unknown")+"")&&O(K,H)},d(j){j&&T(e)}}}function Na(t){var U,j,J,ae,Y,oe,ie,te;let e,l,n=(((j=(U=t[3].status)==null?void 0:U.network)==null?void 0:j.title)??"Network")+"",i,s,a,r=(((ae=(J=t[3].conf)==null?void 0:J.network)==null?void 0:ae.ip)??"IP")+"",f,c,m=t[1].net.ip+"",_,d,v,g=(((oe=(Y=t[3].conf)==null?void 0:Y.network)==null?void 0:oe.mask)??"Mask")+"",b,k,C=t[1].net.mask+"",E,R,I,S=(((te=(ie=t[3].conf)==null?void 0:ie.network)==null?void 0:te.gw)??"Gateway")+"",B,N,H=t[1].net.gw+"",K,z,L,F,Z,y=t[1].net.dns1&&Ta(t),G=t[1].net.dns2&&Pa(t),V=t[1].net.ipv6&&Ea(t);return{c(){e=p("div"),l=p("strong"),i=w(n),s=h(),a=p("div"),f=w(r),c=w(": "),_=w(m),d=h(),v=p("div"),b=w(g),k=w(": "),E=w(C),R=h(),I=p("div"),B=w(S),N=w(": "),K=w(H),z=h(),L=p("div"),y&&y.c(),F=h(),G&&G.c(),Z=h(),V&&V.c(),u(l,"class","text-sm"),u(a,"class","my-2"),u(v,"class","my-2"),u(I,"class","my-2"),u(L,"class","my-2"),u(e,"class","cnt")},m(ee,_e){P(ee,e,_e),o(e,l),o(l,i),o(e,s),o(e,a),o(a,f),o(a,c),o(a,_),o(e,d),o(e,v),o(v,b),o(v,k),o(v,E),o(e,R),o(e,I),o(I,B),o(I,N),o(I,K),o(e,z),o(e,L),y&&y.m(L,null),o(L,F),G&&G.m(L,null),o(e,Z),V&&V.m(e,null)},p(ee,_e){var ue,Q,$,he,be,A,M,q;_e&8&&n!==(n=(((Q=(ue=ee[3].status)==null?void 0:ue.network)==null?void 0:Q.title)??"Network")+"")&&O(i,n),_e&8&&r!==(r=(((he=($=ee[3].conf)==null?void 0:$.network)==null?void 0:he.ip)??"IP")+"")&&O(f,r),_e&2&&m!==(m=ee[1].net.ip+"")&&O(_,m),_e&8&&g!==(g=(((A=(be=ee[3].conf)==null?void 0:be.network)==null?void 0:A.mask)??"Mask")+"")&&O(b,g),_e&2&&C!==(C=ee[1].net.mask+"")&&O(E,C),_e&8&&S!==(S=(((q=(M=ee[3].conf)==null?void 0:M.network)==null?void 0:q.gw)??"Gateway")+"")&&O(B,S),_e&2&&H!==(H=ee[1].net.gw+"")&&O(K,H),ee[1].net.dns1?y?y.p(ee,_e):(y=Ta(ee),y.c(),y.m(L,F)):y&&(y.d(1),y=null),ee[1].net.dns2?G?G.p(ee,_e):(G=Pa(ee),G.c(),G.m(L,null)):G&&(G.d(1),G=null),ee[1].net.ipv6?V?V.p(ee,_e):(V=Ea(ee),V.c(),V.m(e,null)):V&&(V.d(1),V=null)},d(ee){ee&&T(e),y&&y.d(),G&&G.d(),V&&V.d()}}}function Ta(t){var a,r;let e=(((r=(a=t[3].conf)==null?void 0:a.network)==null?void 0:r.dns)??"DNS")+"",l,n,i=t[1].net.dns1+"",s;return{c(){l=w(e),n=w(": "),s=w(i)},m(f,c){P(f,l,c),P(f,n,c),P(f,s,c)},p(f,c){var m,_;c&8&&e!==(e=(((_=(m=f[3].conf)==null?void 0:m.network)==null?void 0:_.dns)??"DNS")+"")&&O(l,e),c&2&&i!==(i=f[1].net.dns1+"")&&O(s,i)},d(f){f&&T(l),f&&T(n),f&&T(s)}}}function Pa(t){var a,r;let e=(((r=(a=t[3].conf)==null?void 0:a.network)==null?void 0:r.dns)??"DNS")+"",l,n,i=t[1].net.dns2+"",s;return{c(){l=w(e),n=w(": "),s=w(i)},m(f,c){P(f,l,c),P(f,n,c),P(f,s,c)},p(f,c){var m,_;c&8&&e!==(e=(((_=(m=f[3].conf)==null?void 0:m.network)==null?void 0:_.dns)??"DNS")+"")&&O(l,e),c&2&&i!==(i=f[1].net.dns2+"")&&O(s,i)},d(f){f&&T(l),f&&T(n),f&&T(s)}}}function Ea(t){let e,l,n=t[1].net.ipv6+"",i,s,a,r,f=t[1].net.dns1v6&&Da(t),c=t[1].net.dns2v6&&qa(t);return{c(){e=p("div"),l=w("IPv6: "),i=w(n),s=h(),a=p("div"),f&&f.c(),r=h(),c&&c.c(),u(e,"class","my-2"),u(a,"class","my-2")},m(m,_){P(m,e,_),o(e,l),o(e,i),P(m,s,_),P(m,a,_),f&&f.m(a,null),o(a,r),c&&c.m(a,null)},p(m,_){_&2&&n!==(n=m[1].net.ipv6+"")&&O(i,n),m[1].net.dns1v6?f?f.p(m,_):(f=Da(m),f.c(),f.m(a,r)):f&&(f.d(1),f=null),m[1].net.dns2v6?c?c.p(m,_):(c=qa(m),c.c(),c.m(a,null)):c&&(c.d(1),c=null)},d(m){m&&T(e),m&&T(s),m&&T(a),f&&f.d(),c&&c.d()}}}function Da(t){let e,l=t[1].net.dns1v6+"",n;return{c(){e=w("DNSv6: "),n=w(l)},m(i,s){P(i,e,s),P(i,n,s)},p(i,s){s&2&&l!==(l=i[1].net.dns1v6+"")&&O(n,l)},d(i){i&&T(e),i&&T(n)}}}function qa(t){let e,l=t[1].net.dns2v6+"",n;return{c(){e=w("DNSv6: "),n=w(l)},m(i,s){P(i,e,s),P(i,n,s)},p(i,s){s&2&&l!==(l=i[1].net.dns2v6+"")&&O(n,l)},d(i){i&&T(e),i&&T(n)}}}function Aa(t){var f,c,m,_;let e,l,n=(((c=(f=t[3].status)==null?void 0:f.firmware)==null?void 0:c.failed)??"Upgrade from {0} to {1} failed").replace("{0}",t[1].upgrade.f).replace("{1}",t[1].upgrade.t)+"",i,s,a=(((_=(m=t[3].errors)==null?void 0:m.http)==null?void 0:_[t[1].upgrade.e])??t[1].upgrade.e)+"",r;return{c(){e=p("div"),l=p("div"),i=w(n),s=h(),r=w(a),u(l,"class","bd-yellow"),u(e,"class","my-2")},m(d,v){P(d,e,v),o(e,l),o(l,i),o(l,s),o(l,r)},p(d,v){var g,b,k,C;v&10&&n!==(n=(((b=(g=d[3].status)==null?void 0:g.firmware)==null?void 0:b.failed)??"Upgrade from {0} to {1} failed").replace("{0}",d[1].upgrade.f).replace("{1}",d[1].upgrade.t)+"")&&O(i,n),v&10&&a!==(a=(((C=(k=d[3].errors)==null?void 0:k.http)==null?void 0:C[d[1].upgrade.e])??d[1].upgrade.e)+"")&&O(r,a)},d(d){d&&T(e)}}}function Oa(t){var g,b;let e,l=(((b=(g=t[3].status)==null?void 0:g.firmware)==null?void 0:b.latest)??"Latest")+"",n,i,s,a=t[4].tag_name+"",r,f,c,m,_,d=(t[1].security==0||t[0].a)&&t[1].fwconsent===1&&t[4]&&t[4].tag_name!=t[1].version&&La(t),v=t[1].fwconsent===2&&Ia(t);return{c(){e=p("div"),n=w(l),i=w(`: + `),s=p("a"),r=w(a),c=h(),d&&d.c(),m=h(),v&&v.c(),_=Wt(),u(s,"href",f=t[4].html_url),u(s,"class","ml-2 text-blue-600 hover:text-blue-800"),u(s,"target","_blank"),u(s,"rel","noreferrer"),u(e,"class","my-2 flex")},m(k,C){P(k,e,C),o(e,n),o(e,i),o(e,s),o(s,r),o(e,c),d&&d.m(e,null),P(k,m,C),v&&v.m(k,C),P(k,_,C)},p(k,C){var E,R;C&8&&l!==(l=(((R=(E=k[3].status)==null?void 0:E.firmware)==null?void 0:R.latest)??"Latest")+"")&&O(n,l),C&16&&a!==(a=k[4].tag_name+"")&&O(r,a),C&16&&f!==(f=k[4].html_url)&&u(s,"href",f),(k[1].security==0||k[0].a)&&k[1].fwconsent===1&&k[4]&&k[4].tag_name!=k[1].version?d?d.p(k,C):(d=La(k),d.c(),d.m(e,null)):d&&(d.d(1),d=null),k[1].fwconsent===2?v?v.p(k,C):(v=Ia(k),v.c(),v.m(_.parentNode,_)):v&&(v.d(1),v=null)},d(k){k&&T(e),d&&d.d(),k&&T(m),v&&v.d(k),k&&T(_)}}}function La(t){let e,l,n,i,s;return{c(){var a,r;e=p("div"),l=p("button"),l.textContent="⇓",u(e,"class","flex-none ml-2 text-green-500"),u(e,"title",n=((r=(a=t[3].status)==null?void 0:a.firmware)==null?void 0:r.install)??"Install")},m(a,r){P(a,e,r),o(e,l),i||(s=re(l,"click",t[11]),i=!0)},p(a,r){var f,c;r&8&&n!==(n=((c=(f=a[3].status)==null?void 0:f.firmware)==null?void 0:c.install)??"Install")&&u(e,"title",n)},d(a){a&&T(e),i=!1,s()}}}function Ia(t){var s,a;let e,l,n=(((a=(s=t[3].status)==null?void 0:s.firmware)==null?void 0:a.no_one_click)??"One-click upgrade disabled")+"",i;return{c(){e=p("div"),l=p("div"),i=w(n),u(l,"class","bd-yellow"),u(e,"class","my-2")},m(r,f){P(r,e,f),o(e,l),o(l,i)},p(r,f){var c,m;f&8&&n!==(n=(((m=(c=r[3].status)==null?void 0:c.firmware)==null?void 0:m.no_one_click)??"One-click upgrade disabled")+"")&&O(i,n)},d(r){r&&T(e)}}}function Ra(t){let e,l=Kn(Je(t[1].chip,t[1].board))+"",n;return{c(){e=p("div"),n=w(l),u(e,"class","bd-red")},m(i,s){P(i,e,s),o(e,n)},p(i,s){s&2&&l!==(l=Kn(Je(i[1].chip,i[1].board))+"")&&O(n,l)},d(i){i&&T(e)}}}function Fa(t){let e,l,n,i,s,a;function r(m,_){return m[6].length==0?fc:ac}let f=r(t),c=f(t);return{c(){e=p("div"),l=p("form"),n=p("input"),i=h(),c.c(),Sn(n,"display","none"),u(n,"name","file"),u(n,"type","file"),u(n,"accept",".bin"),u(l,"action","/firmware"),u(l,"enctype","multipart/form-data"),u(l,"method","post"),u(l,"autocomplete","off"),u(e,"class","my-2 flex")},m(m,_){P(m,e,_),o(e,l),o(l,n),t[14](n),o(l,i),c.m(l,null),s||(a=[re(n,"change",t[15]),re(l,"submit",t[17])],s=!0)},p(m,_){f===(f=r(m))&&c?c.p(m,_):(c.d(1),c=f(m),c&&(c.c(),c.m(l,null)))},d(m){m&&T(e),t[14](null),c.d(),s=!1,Pt(a)}}}function ac(t){var r;let e=t[6][0].name+"",l,n,i,s=(((r=t[3].btn)==null?void 0:r.upload)??"Upload")+"",a;return{c(){l=w(e),n=h(),i=p("button"),a=w(s),u(i,"type","submit"),u(i,"class","btn-pri-sm float-right ml-2")},m(f,c){P(f,l,c),P(f,n,c),P(f,i,c),o(i,a)},p(f,c){var m;c&64&&e!==(e=f[6][0].name+"")&&O(l,e),c&8&&s!==(s=(((m=f[3].btn)==null?void 0:m.upload)??"Upload")+"")&&O(a,s)},d(f){f&&T(l),f&&T(n),f&&T(i)}}}function fc(t){var a,r;let e,l=(((r=(a=t[3].status)==null?void 0:a.firmware)==null?void 0:r.btn_select_file)??"Select file")+"",n,i,s;return{c(){e=p("button"),n=w(l),u(e,"type","button"),u(e,"class","btn-pri-sm float-right")},m(f,c){P(f,e,c),o(e,n),i||(s=re(e,"click",t[16]),i=!0)},p(f,c){var m,_;c&8&&l!==(l=(((_=(m=f[3].status)==null?void 0:m.firmware)==null?void 0:_.btn_select_file)??"Select file")+"")&&O(n,l)},d(f){f&&T(e),i=!1,s()}}}function Ba(t){var G,V,U,j,J,ae;let e,l,n=(((V=(G=t[3].status)==null?void 0:G.backup)==null?void 0:V.title)??"Backup")+"",i,s,a,r,f,c,m,_,d=(((j=(U=t[3].status)==null?void 0:U.backup)==null?void 0:j.secrets)??"Include secrets")+"",v,g,b,k=(((ae=(J=t[3].status)==null?void 0:J.backup)==null?void 0:ae.secrets_desc)??"")+"",C,E,R,I,S,B,N,H,K=t[10],z=[];for(let Y=0;Y{me=null}),dt()),(ot=ge[0])!=null&&ot.a?pe?(pe.p(ge,De),De&1&&X(pe,1)):(pe=Sa(ge),pe.c(),X(pe,1),pe.m(l,null)):pe&&(pt(),le(pe,1,1,()=>{pe=null}),dt()),ge[1].meter?de?de.p(ge,De):(de=Ma(ge),de.c(),de.m(e,y)):de&&(de.d(1),de=null),ge[1].net?Pe?Pe.p(ge,De):(Pe=Na(ge),Pe.c(),Pe.m(e,G)):Pe&&(Pe.d(1),Pe=null),(!ne||De&8)&&j!==(j=(((St=(_t=ge[3].status)==null?void 0:_t.firmware)==null?void 0:St.title)??"Firmware")+"")&&O(J,j),(!ne||De&8)&&oe!==(oe=(((Et=(It=ge[3].status)==null?void 0:It.firmware)==null?void 0:Et.installed)??"Installed")+"")&&O(ie,oe),(!ne||De&2)&&ee!==(ee=ge[1].version+"")&&O(_e,ee),ge[1].upgrade.t&&ge[1].upgrade.t!=ge[1].version?Ce?Ce.p(ge,De):(Ce=Aa(ge),Ce.c(),Ce.m(V,Q)):Ce&&(Ce.d(1),Ce=null),ge[4]?Se?Se.p(ge,De):(Se=Oa(ge),Se.c(),Se.m(V,$)):Se&&(Se.d(1),Se=null),De&3&&(he=(ge[1].security==0||ge[0].a)&&Kl(ge[1].board)),he?qe?qe.p(ge,De):(qe=Ra(ge),qe.c(),qe.m(V,be)):qe&&(qe.d(1),qe=null),ge[1].security==0||ge[0].a?Be?Be.p(ge,De):(Be=Fa(ge),Be.c(),Be.m(V,null)):Be&&(Be.d(1),Be=null),ge[1].security==0||ge[0].a?fe?fe.p(ge,De):(fe=Ba(ge),fe.c(),fe.m(e,null)):fe&&(fe.d(1),fe=null);const ce={};De&128&&(ce.active=ge[7]),De&8&&(ce.message=((Rt=(at=ge[3].status)==null?void 0:at.mask)==null?void 0:Rt.firmware)??"Uploading"),q.$set(ce);const Le={};De&512&&(Le.active=ge[9]),De&8&&(Le.message=((Ft=(Ut=ge[3].status)==null?void 0:Ut.mask)==null?void 0:Ft.config)??"Uploading"),W.$set(Le)},i(ge){ne||(X(R.$$.fragment,ge),X(me),X(pe),X(q.$$.fragment,ge),X(W.$$.fragment,ge),ne=!0)},o(ge){le(R.$$.fragment,ge),le(me),le(pe),le(q.$$.fragment,ge),le(W.$$.fragment,ge),ne=!1},d(ge){ge&&T(e),se&&se.d(),Ne(R),me&&me.d(),pe&&pe.d(),de&&de.d(),Pe&&Pe.d(),Ce&&Ce.d(),Se&&Se.d(),qe&&qe.d(),Be&&Be.d(),fe&&fe.d(),ge&&T(M),Ne(q,ge),ge&&T(D),Ne(W,ge)}}}async function mc(){await(await fetch("reboot",{method:"POST"})).json()}function _c(t,e,l){let{data:n}=e,{sysinfo:i}=e,s=[{name:"WiFi",key:"iw"},{name:"MQTT",key:"im"},{name:"Web",key:"ie"},{name:"Meter",key:"it"},{name:"Thresholds",key:"ih"},{name:"GPIO",key:"ig"},{name:"NTP",key:"in"},{name:"Price",key:"is"}],a={};dl.subscribe(K=>{l(3,a=K)});let r={};Ii.subscribe(K=>{l(4,r=fu(i.version,K)),r||l(4,r=K[0])});function f(){var K;confirm((((K=a.header)==null?void 0:K.upgrade)??"Upgrade to {0}?").replace("{0}",r.tag_name))&&(i.board!=2&&i.board!=4&&i.board!=7||confirm(Kn(Je(i.chip,i.board))))&&(ol.update(z=>(z.upgrading=!0,z)),au(r.tag_name))}const c=function(){var K;confirm(((K=a.device)==null?void 0:K.reboot_confirm)??"Reboot?")&&(ol.update(z=>(z.booting=!0,z)),mc())};let m,_=[],d=!1,v,g=[],b=!1;Oi();let k={hostname:"",ip:""};function C(K){l(9,b=!0);const z=new FormData;z.append("file",g[0]),fetch("/configfile",{method:"POST",body:z}).then(L=>L.json()).then(L=>{ol.update(F=>(k&&k.hostname&&(F.hostname=k.hostname),F.booting=L.reboot,k&&k.ip&&(F.net.ip=k.ip),setTimeout(En,5e3,i),F))}).catch(L=>{console.error("Error:",L),setTimeout(En,5e3,i)})}function E(K){Wn[K?"unshift":"push"](()=>{m=K,l(5,m)})}function R(){_=this.files,l(6,_)}const I=()=>{m.click()},S=()=>l(7,d=!0);function B(K){Wn[K?"unshift":"push"](()=>{v=K,l(8,v)})}function N(){g=this.files,l(2,g)}const H=()=>{v.click()};return t.$$set=K=>{"data"in K&&l(0,n=K.data),"sysinfo"in K&&l(1,i=K.sysinfo)},t.$$.update=()=>{if(t.$$.dirty&4&&g.length==1){let K=g[0],z=new FileReader,L=F=>{let Z=F.target.result.split(` +`);for(let y in Z){let G=Z[y];G.startsWith("hostname ")?k.hostname=G.split(" ")[1]:G.startsWith("ip ")&&(k.ip=G.split(" ")[1])}};z.onload=L,z.readAsText(K)}},[n,i,g,a,r,m,_,d,v,b,s,f,c,C,E,R,I,S,B,N,H]}class pc extends Ct{constructor(e){super(),wt(this,e,_c,cc,kt,{data:0,sysinfo:1})}}function ya(t){let e,l,n=Je(t[0],7)+"",i,s,a=Je(t[0],5)+"",r,f,c=Je(t[0],4)+"",m,_,d=Je(t[0],3)+"",v,g,b,k,C=Je(t[0],2)+"",E,R,I=Je(t[0],1)+"",S,B,N=Je(t[0],0)+"",H,K,z,L,F=Je(t[0],101)+"",Z,y,G=Je(t[0],100)+"",V;return{c(){e=p("optgroup"),l=p("option"),i=w(n),s=p("option"),r=w(a),f=p("option"),m=w(c),_=p("option"),v=w(d),g=h(),b=p("optgroup"),k=p("option"),E=w(C),R=p("option"),S=w(I),B=p("option"),H=w(N),K=h(),z=p("optgroup"),L=p("option"),Z=w(F),y=p("option"),V=w(G),l.__value=7,l.value=l.__value,s.__value=5,s.value=s.__value,f.__value=4,f.value=f.__value,_.__value=3,_.value=_.__value,u(e,"label","amsleser.no"),k.__value=2,k.value=k.__value,R.__value=1,R.value=R.__value,B.__value=0,B.value=B.__value,u(b,"label","Custom hardware"),L.__value=101,L.value=L.__value,y.__value=100,y.value=y.__value,u(z,"label","Generic hardware")},m(U,j){P(U,e,j),o(e,l),o(l,i),o(e,s),o(s,r),o(e,f),o(f,m),o(e,_),o(_,v),P(U,g,j),P(U,b,j),o(b,k),o(k,E),o(b,R),o(R,S),o(b,B),o(B,H),P(U,K,j),P(U,z,j),o(z,L),o(L,Z),o(z,y),o(y,V)},p(U,j){j&1&&n!==(n=Je(U[0],7)+"")&&O(i,n),j&1&&a!==(a=Je(U[0],5)+"")&&O(r,a),j&1&&c!==(c=Je(U[0],4)+"")&&O(m,c),j&1&&d!==(d=Je(U[0],3)+"")&&O(v,d),j&1&&C!==(C=Je(U[0],2)+"")&&O(E,C),j&1&&I!==(I=Je(U[0],1)+"")&&O(S,I),j&1&&N!==(N=Je(U[0],0)+"")&&O(H,N),j&1&&F!==(F=Je(U[0],101)+"")&&O(Z,F),j&1&&G!==(G=Je(U[0],100)+"")&&O(V,G)},d(U){U&&T(e),U&&T(g),U&&T(b),U&&T(K),U&&T(z)}}}function Ha(t){let e,l,n=Je(t[0],201)+"",i,s,a=Je(t[0],202)+"",r,f,c=Je(t[0],203)+"",m,_,d=Je(t[0],241)+"",v,g,b=Je(t[0],242)+"",k,C,E=Je(t[0],243)+"",R,I,S=Je(t[0],200)+"",B;return{c(){e=p("optgroup"),l=p("option"),i=w(n),s=p("option"),r=w(a),f=p("option"),m=w(c),_=p("option"),v=w(d),g=p("option"),k=w(b),C=p("option"),R=w(E),I=p("option"),B=w(S),l.__value=201,l.value=l.__value,s.__value=202,s.value=s.__value,f.__value=203,f.value=f.__value,_.__value=241,_.value=_.__value,g.__value=242,g.value=g.__value,C.__value=243,C.value=C.__value,I.__value=200,I.value=I.__value,u(e,"label","Generic hardware")},m(N,H){P(N,e,H),o(e,l),o(l,i),o(e,s),o(s,r),o(e,f),o(f,m),o(e,_),o(_,v),o(e,g),o(g,k),o(e,C),o(C,R),o(e,I),o(I,B)},p(N,H){H&1&&n!==(n=Je(N[0],201)+"")&&O(i,n),H&1&&a!==(a=Je(N[0],202)+"")&&O(r,a),H&1&&c!==(c=Je(N[0],203)+"")&&O(m,c),H&1&&d!==(d=Je(N[0],241)+"")&&O(v,d),H&1&&b!==(b=Je(N[0],242)+"")&&O(k,b),H&1&&E!==(E=Je(N[0],243)+"")&&O(R,E),H&1&&S!==(S=Je(N[0],200)+"")&&O(B,S)},d(N){N&&T(e)}}}function za(t){let e,l,n=Je(t[0],7)+"",i,s,a=Je(t[0],6)+"",r,f,c=Je(t[0],5)+"",m,_,d,v,g=Je(t[0],51)+"",b,k,C=Je(t[0],50)+"",E;return{c(){e=p("optgroup"),l=p("option"),i=w(n),s=p("option"),r=w(a),f=p("option"),m=w(c),_=h(),d=p("optgroup"),v=p("option"),b=w(g),k=p("option"),E=w(C),l.__value=7,l.value=l.__value,s.__value=6,s.value=s.__value,f.__value=5,f.value=f.__value,u(e,"label","amsleser.no"),v.__value=51,v.value=v.__value,k.__value=50,k.value=k.__value,u(d,"label","Generic hardware")},m(R,I){P(R,e,I),o(e,l),o(l,i),o(e,s),o(s,r),o(e,f),o(f,m),P(R,_,I),P(R,d,I),o(d,v),o(v,b),o(d,k),o(k,E)},p(R,I){I&1&&n!==(n=Je(R[0],7)+"")&&O(i,n),I&1&&a!==(a=Je(R[0],6)+"")&&O(r,a),I&1&&c!==(c=Je(R[0],5)+"")&&O(m,c),I&1&&g!==(g=Je(R[0],51)+"")&&O(b,g),I&1&&C!==(C=Je(R[0],50)+"")&&O(E,C)},d(R){R&&T(e),R&&T(_),R&&T(d)}}}function Wa(t){let e,l,n=Je(t[0],8)+"",i,s,a,r,f=Je(t[0],71)+"",c,m,_=Je(t[0],70)+"",d;return{c(){e=p("optgroup"),l=p("option"),i=w(n),s=h(),a=p("optgroup"),r=p("option"),c=w(f),m=p("option"),d=w(_),l.__value=8,l.value=l.__value,u(e,"label","Custom hardware"),r.__value=71,r.value=r.__value,m.__value=70,m.value=m.__value,u(a,"label","Generic hardware")},m(v,g){P(v,e,g),o(e,l),o(l,i),P(v,s,g),P(v,a,g),o(a,r),o(r,c),o(a,m),o(m,d)},p(v,g){g&1&&n!==(n=Je(v[0],8)+"")&&O(i,n),g&1&&f!==(f=Je(v[0],71)+"")&&O(c,f),g&1&&_!==(_=Je(v[0],70)+"")&&O(d,_)},d(v){v&&T(e),v&&T(s),v&&T(a)}}}function Ga(t){let e,l,n=Je(t[0],200)+"",i;return{c(){e=p("optgroup"),l=p("option"),i=w(n),l.__value=200,l.value=l.__value,u(e,"label","Generic hardware")},m(s,a){P(s,e,a),o(e,l),o(l,i)},p(s,a){a&1&&n!==(n=Je(s[0],200)+"")&&O(i,n)},d(s){s&&T(e)}}}function Va(t){let e,l,n=Je(t[0],80)+"",i;return{c(){e=p("optgroup"),l=p("option"),i=w(n),l.__value=80,l.value=l.__value,u(e,"label","Generic hardware")},m(s,a){P(s,e,a),o(e,l),o(l,i)},p(s,a){a&1&&n!==(n=Je(s[0],80)+"")&&O(i,n)},d(s){s&&T(e)}}}function dc(t){let e,l,n,i,s,a,r,f,c=t[0]=="esp8266"&&ya(t),m=t[0]=="esp32"&&Ha(t),_=t[0]=="esp32s2"&&za(t),d=t[0]=="esp32c3"&&Wa(t),v=t[0]=="esp32solo"&&Ga(t),g=t[0]=="esp32s3"&&Va(t);return{c(){e=p("option"),l=h(),c&&c.c(),n=h(),m&&m.c(),i=h(),_&&_.c(),s=h(),d&&d.c(),a=h(),v&&v.c(),r=h(),g&&g.c(),f=Wt(),e.__value=-1,e.value=e.__value},m(b,k){P(b,e,k),P(b,l,k),c&&c.m(b,k),P(b,n,k),m&&m.m(b,k),P(b,i,k),_&&_.m(b,k),P(b,s,k),d&&d.m(b,k),P(b,a,k),v&&v.m(b,k),P(b,r,k),g&&g.m(b,k),P(b,f,k)},p(b,[k]){b[0]=="esp8266"?c?c.p(b,k):(c=ya(b),c.c(),c.m(n.parentNode,n)):c&&(c.d(1),c=null),b[0]=="esp32"?m?m.p(b,k):(m=Ha(b),m.c(),m.m(i.parentNode,i)):m&&(m.d(1),m=null),b[0]=="esp32s2"?_?_.p(b,k):(_=za(b),_.c(),_.m(s.parentNode,s)):_&&(_.d(1),_=null),b[0]=="esp32c3"?d?d.p(b,k):(d=Wa(b),d.c(),d.m(a.parentNode,a)):d&&(d.d(1),d=null),b[0]=="esp32solo"?v?v.p(b,k):(v=Ga(b),v.c(),v.m(r.parentNode,r)):v&&(v.d(1),v=null),b[0]=="esp32s3"?g?g.p(b,k):(g=Va(b),g.c(),g.m(f.parentNode,f)):g&&(g.d(1),g=null)},i:Ke,o:Ke,d(b){b&&T(e),b&&T(l),c&&c.d(b),b&&T(n),m&&m.d(b),b&&T(i),_&&_.d(b),b&&T(s),d&&d.d(b),b&&T(a),v&&v.d(b),b&&T(r),g&&g.d(b),b&&T(f)}}}function vc(t,e,l){let{chip:n}=e;return t.$$set=i=>{"chip"in i&&l(0,n=i.chip)},[n]}class hc extends Ct{constructor(e){super(),wt(this,e,vc,dc,kt,{chip:0})}}function Ka(t){let e;return{c(){e=p("div"),e.textContent="WARNING: Changing this configuration will affect basic configuration of your device. Only make changes here if instructed by vendor",u(e,"class","bd-red")},m(l,n){P(l,e,n)},d(l){l&&T(e)}}}function Ya(t){let e,l,n,i,s,a,r;return a=new gi({props:{chip:t[0].chip}}),{c(){e=p("div"),l=w("HAN GPIO"),n=p("br"),i=h(),s=p("select"),Te(a.$$.fragment),u(s,"name","vh"),u(s,"class","in-s"),u(e,"class","my-3")},m(f,c){P(f,e,c),o(e,l),o(e,n),o(e,i),o(e,s),Me(a,s,null),r=!0},p(f,c){const m={};c&1&&(m.chip=f[0].chip),a.$set(m)},i(f){r||(X(a.$$.fragment,f),r=!0)},o(f){le(a.$$.fragment,f),r=!1},d(f){f&&T(e),Ne(a)}}}function bc(t){let e,l,n,i,s,a,r,f,c,m,_,d,v,g,b,k,C,E,R,I,S,B,N,H,K,z,L,F,Z,y=t[0].usrcfg&&Ka();g=new hc({props:{chip:t[0].chip}});let G=t[0].board&&t[0].board>20&&Ya(t);return z=new il({props:{active:t[1],message:"Saving"}}),{c(){e=p("div"),l=p("div"),n=p("form"),i=p("input"),s=h(),a=p("strong"),a.textContent="Initial configuration",r=h(),y&&y.c(),f=h(),c=p("div"),m=w("Board type"),_=p("br"),d=h(),v=p("select"),Te(g.$$.fragment),b=h(),G&&G.c(),k=h(),C=p("div"),E=p("label"),R=p("input"),I=w(" Clear all other configuration"),S=h(),B=p("div"),B.innerHTML='',N=h(),H=p("span"),H.textContent=" ",K=h(),Te(z.$$.fragment),u(i,"type","hidden"),u(i,"name","v"),i.value="true",u(a,"class","text-sm"),u(v,"name","vb"),u(v,"class","in-s"),t[0].board===void 0&&qt(()=>t[5].call(v)),u(c,"class","my-3"),u(R,"type","checkbox"),u(R,"name","vr"),R.__value="true",R.value=R.__value,u(R,"class","rounded mb-1"),u(C,"class","my-3"),u(B,"class","my-3"),u(H,"class","clear-both"),u(n,"autocomplete","off"),u(l,"class","cnt"),u(e,"class","grid xl:grid-cols-4 lg:grid-cols-3 md:grid-cols-2")},m(V,U){P(V,e,U),o(e,l),o(l,n),o(n,i),o(n,s),o(n,a),o(n,r),y&&y.m(n,null),o(n,f),o(n,c),o(c,m),o(c,_),o(c,d),o(c,v),Me(g,v,null),et(v,t[0].board,!0),o(n,b),G&&G.m(n,null),o(n,k),o(n,C),o(C,E),o(E,R),R.checked=t[2],o(E,I),o(n,S),o(n,B),o(n,N),o(n,H),P(V,K,U),Me(z,V,U),L=!0,F||(Z=[re(v,"change",t[5]),re(R,"change",t[6]),re(n,"submit",jl(t[3]))],F=!0)},p(V,[U]){V[0].usrcfg?y||(y=Ka(),y.c(),y.m(n,f)):y&&(y.d(1),y=null);const j={};U&1&&(j.chip=V[0].chip),g.$set(j),U&1&&et(v,V[0].board),V[0].board&&V[0].board>20?G?(G.p(V,U),U&1&&X(G,1)):(G=Ya(V),G.c(),X(G,1),G.m(n,k)):G&&(pt(),le(G,1,1,()=>{G=null}),dt()),U&4&&(R.checked=V[2]);const J={};U&2&&(J.active=V[1]),z.$set(J)},i(V){L||(X(g.$$.fragment,V),X(G),X(z.$$.fragment,V),L=!0)},o(V){le(g.$$.fragment,V),le(G),le(z.$$.fragment,V),L=!1},d(V){V&&T(e),y&&y.d(),Ne(g),G&&G.d(),V&&T(K),Ne(z,V),F=!1,Pt(Z)}}}function gc(t,e,l){let{basepath:n="/"}=e,{sysinfo:i={}}=e,s=!1;async function a(m){l(1,s=!0);const _=new FormData(m.target),d=new URLSearchParams;for(let b of _){const[k,C]=b;d.append(k,C)}let g=await(await fetch("save",{method:"POST",body:d})).json();l(1,s=!1),ol.update(b=>(b.vndcfg=g.success,b.booting=g.reboot,b.if.eth=b.boardType>240&&b.boardType<250,b)),Al(n+(i.usrcfg?"/":"/setup"))}let r=!1;ol.subscribe(m=>{l(0,i=m),m.fwconsent===1&&l(2,r=!i.usrcfg)});function f(){i.board=Ht(this),l(0,i)}function c(){r=this.checked,l(2,r)}return t.$$set=m=>{"basepath"in m&&l(4,n=m.basepath),"sysinfo"in m&&l(0,i=m.sysinfo)},[i,s,r,a,n,f,c]}class kc extends Ct{constructor(e){super(),wt(this,e,gc,bc,kt,{basepath:4,sysinfo:0})}}function Qa(t){var i,s;let e,l=(((s=(i=t[1].conf)==null?void 0:i.connection)==null?void 0:s.eth)??"Ethernet")+"",n;return{c(){e=p("option"),n=w(l),e.__value=3,e.value=e.__value},m(a,r){P(a,e,r),o(e,n)},p(a,r){var f,c;r&2&&l!==(l=(((c=(f=a[1].conf)==null?void 0:f.connection)==null?void 0:c.eth)??"Ethernet")+"")&&O(n,l)},d(a){a&&T(e)}}}function Xa(t){var k,C,E,R;let e,l=(((C=(k=t[1].conf)==null?void 0:k.connection)==null?void 0:C.ssid)??"SSID")+"",n,i,s,a,r,f,c,m=(((R=(E=t[1].conf)==null?void 0:E.connection)==null?void 0:R.psk)??"Password")+"",_,d,v,g,b;return{c(){e=p("div"),n=w(l),i=p("br"),s=h(),a=p("input"),f=h(),c=p("div"),_=w(m),d=p("br"),v=h(),g=p("input"),u(a,"name","ss"),u(a,"type","text"),u(a,"class","in-s"),a.required=r=t[3]==1||t[3]==2,u(e,"class","my-3"),u(g,"name","sp"),u(g,"type","password"),u(g,"class","in-s"),u(g,"autocomplete","off"),g.required=b=t[3]==2,u(c,"class","my-3")},m(I,S){P(I,e,S),o(e,n),o(e,i),o(e,s),o(e,a),P(I,f,S),P(I,c,S),o(c,_),o(c,d),o(c,v),o(c,g)},p(I,S){var B,N,H,K;S&2&&l!==(l=(((N=(B=I[1].conf)==null?void 0:B.connection)==null?void 0:N.ssid)??"SSID")+"")&&O(n,l),S&8&&r!==(r=I[3]==1||I[3]==2)&&(a.required=r),S&2&&m!==(m=(((K=(H=I[1].conf)==null?void 0:H.connection)==null?void 0:K.psk)??"Password")+"")&&O(_,m),S&8&&b!==(b=I[3]==2)&&(g.required=b)},d(I){I&&T(e),I&&T(f),I&&T(c)}}}function Za(t){let e,l,n,i,s,a,r,f;return r=new _u({}),{c(){e=p("br"),l=h(),n=p("div"),i=p("input"),s=h(),a=p("select"),Te(r.$$.fragment),u(i,"name","si"),u(i,"type","text"),u(i,"class","in-f w-full"),i.required=t[2],u(a,"name","su"),u(a,"class","in-l"),a.required=t[2],u(n,"class","flex")},m(c,m){P(c,e,m),P(c,l,m),P(c,n,m),o(n,i),o(n,s),o(n,a),Me(r,a,null),f=!0},p(c,m){(!f||m&4)&&(i.required=c[2]),(!f||m&4)&&(a.required=c[2])},i(c){f||(X(r.$$.fragment,c),f=!0)},o(c){le(r.$$.fragment,c),f=!1},d(c){c&&T(e),c&&T(l),c&&T(n),Ne(r)}}}function Ja(t){var b,k,C,E;let e,l,n=(((k=(b=t[1].conf)==null?void 0:b.network)==null?void 0:k.gw)??"Gateway")+"",i,s,a,r,f,c,m=(((E=(C=t[1].conf)==null?void 0:C.network)==null?void 0:E.dns)??"DNS")+"",_,d,v,g;return{c(){e=p("div"),l=p("div"),i=w(n),s=p("br"),a=h(),r=p("input"),f=h(),c=p("div"),_=w(m),d=p("br"),v=h(),g=p("input"),u(r,"name","sg"),u(r,"type","text"),u(r,"class","in-f w-full"),u(g,"name","sd"),u(g,"type","text"),u(g,"class","in-l w-full"),u(e,"class","my-3 flex")},m(R,I){P(R,e,I),o(e,l),o(l,i),o(l,s),o(l,a),o(l,r),o(e,f),o(e,c),o(c,_),o(c,d),o(c,v),o(c,g)},p(R,I){var S,B,N,H;I&2&&n!==(n=(((B=(S=R[1].conf)==null?void 0:S.network)==null?void 0:B.gw)??"Gateway")+"")&&O(i,n),I&2&&m!==(m=(((H=(N=R[1].conf)==null?void 0:N.network)==null?void 0:H.dns)??"DNS")+"")&&O(_,m)},d(R){R&&T(e)}}}function wc(t){var W,ne,se,me,pe,de,Pe,Ce,Se,qe,Be,fe;let e,l,n,i,s,a,r=(((W=t[1].setup)==null?void 0:W.title)??"Setup")+"",f,c,m,_=(((se=(ne=t[1].conf)==null?void 0:ne.connection)==null?void 0:se.title)??"Connection")+"",d,v,g,b,k,C=(((pe=(me=t[1].conf)==null?void 0:me.connection)==null?void 0:pe.wifi)??"Connect to WiFi")+"",E,R,I=(((Pe=(de=t[1].conf)==null?void 0:de.connection)==null?void 0:Pe.ap)??"Standalone access point")+"",S,B,N,H,K=(((Se=(Ce=t[1].conf)==null?void 0:Ce.general)==null?void 0:Se.hostname)??"Hostname")+"",z,L,F,Z,y,G,V,U,j=(((qe=t[1].setup)==null?void 0:qe.static)??"Static IP")+"",J,ae,Y,oe,ie,te,ee=(((Be=t[1].btn)==null?void 0:Be.save)??"Save")+"",_e,ue,Q,$,he,be,A=t[0].if&&t[0].if.eth&&Qa(t),M=(t[3]==1||t[3]==2)&&Xa(t),q=t[2]&&Za(t),D=t[2]&&Ja(t);return Q=new il({props:{active:t[4],message:((fe=t[1].setup)==null?void 0:fe.mask)??"Saving"}}),{c(){e=p("div"),l=p("div"),n=p("form"),i=p("input"),s=h(),a=p("strong"),f=w(r),c=h(),m=p("div"),d=w(_),v=p("br"),g=h(),b=p("select"),k=p("option"),E=w(C),R=p("option"),S=w(I),A&&A.c(),B=h(),M&&M.c(),N=h(),H=p("div"),z=w(K),L=h(),F=p("input"),Z=h(),y=p("div"),G=p("label"),V=p("input"),U=h(),J=w(j),ae=h(),q&&q.c(),Y=h(),D&&D.c(),oe=h(),ie=p("div"),te=p("button"),_e=w(ee),ue=h(),Te(Q.$$.fragment),u(i,"type","hidden"),u(i,"name","s"),i.value="true",u(a,"class","text-sm"),k.__value=1,k.value=k.__value,R.__value=2,R.value=R.__value,u(b,"name","sc"),u(b,"class","in-s"),t[3]===void 0&&qt(()=>t[6].call(b)),u(m,"class","my-3"),u(F,"name","sh"),u(F,"type","text"),u(F,"class","in-s"),u(F,"maxlength","32"),u(F,"pattern","[a-z0-9_-]+"),u(F,"placeholder","Optional, ex.: ams-reader"),u(F,"autocomplete","off"),u(V,"type","checkbox"),u(V,"name","sm"),V.__value="static",V.value=V.__value,u(V,"class","rounded mb-1"),u(y,"class","my-3"),u(te,"type","submit"),u(te,"class","btn-pri"),u(ie,"class","my-3"),u(l,"class","cnt"),u(e,"class","grid xl:grid-cols-4 lg:grid-cols-3 md:grid-cols-2")},m(we,Fe){P(we,e,Fe),o(e,l),o(l,n),o(n,i),o(n,s),o(n,a),o(a,f),o(n,c),o(n,m),o(m,d),o(m,v),o(m,g),o(m,b),o(b,k),o(k,E),o(b,R),o(R,S),A&&A.m(b,null),et(b,t[3],!0),o(n,B),M&&M.m(n,null),o(n,N),o(n,H),o(H,z),o(H,L),o(H,F),ke(F,t[0].hostname),o(n,Z),o(n,y),o(y,G),o(G,V),V.checked=t[2],o(G,U),o(G,J),o(y,ae),q&&q.m(y,null),o(n,Y),D&&D.m(n,null),o(n,oe),o(n,ie),o(ie,te),o(te,_e),P(we,ue,Fe),Me(Q,we,Fe),$=!0,he||(be=[re(b,"change",t[6]),re(F,"input",t[7]),re(V,"change",t[8]),re(n,"submit",jl(t[5]))],he=!0)},p(we,[Fe]){var ut,nt,rt,Ye,gt,Ge,ht,ct,vt,Ue,je,ye;(!$||Fe&2)&&r!==(r=(((ut=we[1].setup)==null?void 0:ut.title)??"Setup")+"")&&O(f,r),(!$||Fe&2)&&_!==(_=(((rt=(nt=we[1].conf)==null?void 0:nt.connection)==null?void 0:rt.title)??"Connection")+"")&&O(d,_),(!$||Fe&2)&&C!==(C=(((gt=(Ye=we[1].conf)==null?void 0:Ye.connection)==null?void 0:gt.wifi)??"Connect to WiFi")+"")&&O(E,C),(!$||Fe&2)&&I!==(I=(((ht=(Ge=we[1].conf)==null?void 0:Ge.connection)==null?void 0:ht.ap)??"Standalone access point")+"")&&O(S,I),we[0].if&&we[0].if.eth?A?A.p(we,Fe):(A=Qa(we),A.c(),A.m(b,null)):A&&(A.d(1),A=null),Fe&8&&et(b,we[3]),we[3]==1||we[3]==2?M?M.p(we,Fe):(M=Xa(we),M.c(),M.m(n,N)):M&&(M.d(1),M=null),(!$||Fe&2)&&K!==(K=(((vt=(ct=we[1].conf)==null?void 0:ct.general)==null?void 0:vt.hostname)??"Hostname")+"")&&O(z,K),Fe&1&&F.value!==we[0].hostname&&ke(F,we[0].hostname),Fe&4&&(V.checked=we[2]),(!$||Fe&2)&&j!==(j=(((Ue=we[1].setup)==null?void 0:Ue.static)??"Static IP")+"")&&O(J,j),we[2]?q?(q.p(we,Fe),Fe&4&&X(q,1)):(q=Za(we),q.c(),X(q,1),q.m(y,null)):q&&(pt(),le(q,1,1,()=>{q=null}),dt()),we[2]?D?D.p(we,Fe):(D=Ja(we),D.c(),D.m(n,oe)):D&&(D.d(1),D=null),(!$||Fe&2)&&ee!==(ee=(((je=we[1].btn)==null?void 0:je.save)??"Save")+"")&&O(_e,ee);const ft={};Fe&16&&(ft.active=we[4]),Fe&2&&(ft.message=((ye=we[1].setup)==null?void 0:ye.mask)??"Saving"),Q.$set(ft)},i(we){$||(X(q),X(Q.$$.fragment,we),$=!0)},o(we){le(q),le(Q.$$.fragment,we),$=!1},d(we){we&&T(e),A&&A.d(),M&&M.d(),q&&q.d(),D&&D.d(),we&&T(ue),Ne(Q,we),he=!1,Pt(be)}}}function Cc(t,e,l){let n={};dl.subscribe(v=>{l(1,n=v)});let{sysinfo:i={}}=e,s=!1,a=1,r=!1;function f(v){ol.update(g=>(g.trying=v,g))}async function c(v){l(4,r=!0);const g=new FormData(v.target),b=new URLSearchParams;for(let E of g){const[R,I]=E;b.append(R,I)}let C=await(await fetch("save",{method:"POST",body:b})).json();l(4,r=!1),ol.update(E=>(E.hostname=g.get("sh"),E.usrcfg=C.success,E.booting=C.reboot,s&&(E.net.ip=g.get("si"),E.net.mask=g.get("su"),E.net.gw=g.get("sg"),E.net.dns1=g.get("sd")),C.reboot&&setTimeout(En,5e3,i,f),E))}function m(){a=Ht(this),l(3,a)}function _(){i.hostname=this.value,l(0,i)}function d(){s=this.checked,l(2,s)}return t.$$set=v=>{"sysinfo"in v&&l(0,i=v.sysinfo)},[i,n,s,a,r,c,m,_,d]}class Sc extends Ct{constructor(e){super(),wt(this,e,Cc,wc,kt,{sysinfo:0})}}function Mc(t){var z,L,F,Z;let e,l,n,i=(((z=t[2].upload)==null?void 0:z.title)??"Upload")+"",s,a,r,f,c,m=(((L=t[2].upload)==null?void 0:L.desc)??"")+"",_,d,v,g,b,k,C,E,R=(((F=t[2].btn)==null?void 0:F.upload)??"Upload")+"",I,S,B,N,H,K;return B=new il({props:{active:t[3],message:((Z=t[2].upload)==null?void 0:Z.mask)??"Uploading"}}),{c(){e=p("div"),l=p("div"),n=p("strong"),s=w(i),a=h(),r=w(t[1]),f=h(),c=p("p"),_=w(m),d=h(),v=p("form"),g=p("input"),b=h(),k=p("div"),C=p("button"),E=p("p"),I=w(R),S=h(),Te(B.$$.fragment),u(c,"class","mb-4"),u(g,"name","file"),u(g,"type","file"),u(E,"class","mb-4"),u(C,"type","submit"),u(C,"class","btn-pri"),u(k,"class","w-full text-right mt-4"),u(v,"action",t[0]),u(v,"enctype","multipart/form-data"),u(v,"method","post"),u(v,"autocomplete","off"),u(l,"class","cnt"),u(e,"class","grid xl:grid-cols-4 lg:grid-cols-2 md:grid-cols-2")},m(y,G){P(y,e,G),o(e,l),o(l,n),o(n,s),o(n,a),o(n,r),o(l,f),o(l,c),o(c,_),o(l,d),o(l,v),o(v,g),o(v,b),o(v,k),o(k,C),o(C,E),o(E,I),P(y,S,G),Me(B,y,G),N=!0,H||(K=re(v,"submit",t[4]),H=!0)},p(y,[G]){var U,j,J,ae;(!N||G&4)&&i!==(i=(((U=y[2].upload)==null?void 0:U.title)??"Upload")+"")&&O(s,i),(!N||G&2)&&O(r,y[1]),(!N||G&4)&&m!==(m=(((j=y[2].upload)==null?void 0:j.desc)??"")+"")&&O(_,m),(!N||G&4)&&R!==(R=(((J=y[2].btn)==null?void 0:J.upload)??"Upload")+"")&&O(I,R),(!N||G&1)&&u(v,"action",y[0]);const V={};G&8&&(V.active=y[3]),G&4&&(V.message=((ae=y[2].upload)==null?void 0:ae.mask)??"Uploading"),B.$set(V)},i(y){N||(X(B.$$.fragment,y),N=!0)},o(y){le(B.$$.fragment,y),N=!1},d(y){y&&T(e),y&&T(S),Ne(B,y),H=!1,K()}}}function Nc(t,e,l){let{action:n}=e,{title:i}=e,s={};dl.subscribe(f=>{l(2,s=f)});let a=!1;const r=()=>l(3,a=!0);return t.$$set=f=>{"action"in f&&l(0,n=f.action),"title"in f&&l(1,i=f.title)},[n,i,s,a,r]}class Ui extends Ct{constructor(e){super(),wt(this,e,Nc,Mc,kt,{action:0,title:1})}}function Tc(t){var Q,$,he,be,A,M,q;let e,l,n,i,s=(((Q=t[1].consent)==null?void 0:Q.title)??"Consents")+"",a,r,f,c,m,_=((($=t[1].consent)==null?void 0:$.one_click)??"One-click")+"",d,v,g,b,k=(((he=t[1].consent)==null?void 0:he.read_more)??"Read more")+"",C,E,R,I,S,B,N,H=(((be=t[1].consent)==null?void 0:be.yes)??"Yes")+"",K,z,L,F,Z,y,G=(((A=t[1].consent)==null?void 0:A.no)??"No")+"",V,U,j,J,ae,Y=(((M=t[1].btn)==null?void 0:M.save)??"Save")+"",oe,ie,te,ee,_e,ue;return te=new il({props:{active:t[2],message:((q=t[1].consent)==null?void 0:q.mask_saving)??"Saving"}}),{c(){e=p("div"),l=p("div"),n=p("form"),i=p("div"),a=w(s),r=h(),f=p("hr"),c=h(),m=p("div"),d=w(_),v=p("br"),g=h(),b=p("a"),C=w(k),E=p("br"),R=h(),I=p("label"),S=p("input"),N=h(),K=w(H),z=h(),L=p("label"),F=p("input"),y=h(),V=w(G),U=p("br"),j=h(),J=p("div"),ae=p("button"),oe=w(Y),ie=h(),Te(te.$$.fragment),u(b,"href",cl("Data-collection-on-one-click-firmware-upgrade")),u(b,"target","_blank"),u(b,"class","text-blue-600 hover:text-blue-800"),u(S,"type","radio"),u(S,"name","sf"),S.value=1,S.checked=B=t[0].fwconsent===1,u(S,"class","rounded m-2"),S.required=!0,u(F,"type","radio"),u(F,"name","sf"),F.value=2,F.checked=Z=t[0].fwconsent===2,u(F,"class","rounded m-2"),F.required=!0,u(m,"class","my-3"),u(ae,"type","submit"),u(ae,"class","btn-pri"),u(J,"class","my-3"),u(n,"autocomplete","off"),u(l,"class","cnt"),u(e,"class","grid xl:grid-cols-3 lg:grid-cols-2")},m(D,W){P(D,e,W),o(e,l),o(l,n),o(n,i),o(i,a),o(n,r),o(n,f),o(n,c),o(n,m),o(m,d),o(m,v),o(m,g),o(m,b),o(b,C),o(m,E),o(m,R),o(m,I),o(I,S),o(I,N),o(I,K),o(m,z),o(m,L),o(L,F),o(L,y),o(L,V),o(m,U),o(n,j),o(n,J),o(J,ae),o(ae,oe),P(D,ie,W),Me(te,D,W),ee=!0,_e||(ue=re(n,"submit",jl(t[3])),_e=!0)},p(D,[W]){var se,me,pe,de,Pe,Ce,Se;(!ee||W&2)&&s!==(s=(((se=D[1].consent)==null?void 0:se.title)??"Consents")+"")&&O(a,s),(!ee||W&2)&&_!==(_=(((me=D[1].consent)==null?void 0:me.one_click)??"One-click")+"")&&O(d,_),(!ee||W&2)&&k!==(k=(((pe=D[1].consent)==null?void 0:pe.read_more)??"Read more")+"")&&O(C,k),(!ee||W&1&&B!==(B=D[0].fwconsent===1))&&(S.checked=B),(!ee||W&2)&&H!==(H=(((de=D[1].consent)==null?void 0:de.yes)??"Yes")+"")&&O(K,H),(!ee||W&1&&Z!==(Z=D[0].fwconsent===2))&&(F.checked=Z),(!ee||W&2)&&G!==(G=(((Pe=D[1].consent)==null?void 0:Pe.no)??"No")+"")&&O(V,G),(!ee||W&2)&&Y!==(Y=(((Ce=D[1].btn)==null?void 0:Ce.save)??"Save")+"")&&O(oe,Y);const ne={};W&4&&(ne.active=D[2]),W&2&&(ne.message=((Se=D[1].consent)==null?void 0:Se.mask_saving)??"Saving"),te.$set(ne)},i(D){ee||(X(te.$$.fragment,D),ee=!0)},o(D){le(te.$$.fragment,D),ee=!1},d(D){D&&T(e),D&&T(ie),Ne(te,D),_e=!1,ue()}}}function Pc(t,e,l){let{basepath:n="/"}=e,{sysinfo:i={}}=e,s={};dl.subscribe(f=>{l(1,s=f)});let a=!1;async function r(f){l(2,a=!0);const c=new FormData(f.target),m=new URLSearchParams;for(let v of c){const[g,b]=v;m.append(g,b)}let d=await(await fetch("save",{method:"POST",body:m})).json();l(2,a=!1),ol.update(v=>(v.fwconsent=c.sf===!0?1:c.sf===!1?2:0,v.booting=d.reboot,v)),Al(n)}return t.$$set=f=>{"basepath"in f&&l(4,n=f.basepath),"sysinfo"in f&&l(0,i=f.sysinfo)},[i,s,a,r,n]}class Ec extends Ct{constructor(e){super(),wt(this,e,Pc,Tc,kt,{basepath:4,sysinfo:0})}}function $a(t,e,l){const n=t.slice();return n[30]=e[l],n[31]=e,n[32]=l,n}function xa(t,e,l){const n=t.slice();return n[33]=e[l],n[35]=l,n}function Dc(t,e,l){const n=t.slice();return n[33]=e[l],n[35]=l,n}function ef(t,e,l){const n=t.slice();return n[33]=e[l],n[35]=l,n}function qc(t,e,l){const n=t.slice();return n[33]=e[l],n[35]=l,n}function tf(t,e,l){const n=t.slice();return n[33]=e[l],n[35]=l,n}function lf(t,e,l){const n=t.slice();return n[33]=e[l],n[35]=l,n}function nf(t,e,l){const n=t.slice();return n[33]=e[l],n[35]=l,n}function sf(t,e,l){const n=t.slice();return n[33]=e[l],n[35]=l,n}function of(t){let e,l=t[1].o,n=[];for(let i=0;i0?"text-green-600":"text-gray-300"),u(ft,"class",nt=t[32]{l(0,i=U)});let s=["mo","tu","we","th","fr","sa","su"],a={},r=!0,f=!1;mu.subscribe(U=>{U.o&&(l(1,a=U),l(2,r=!1))}),b0();async function c(U){l(3,f=!0);const j=new URLSearchParams;j.append("r","true"),j.append("rc",a.o.length),a.o.forEach(function(ae,Y){j.append("rt"+Y,ae.t),j.append("rn"+Y,ae.n),j.append("rd"+Y,ae.d),j.append("ra"+Y,ae.a),j.append("rh"+Y,ae.h),j.append("rv"+Y,ae.v),j.append("rsm"+Y,ae.s.m),j.append("rsd"+Y,ae.s.d),j.append("rem"+Y,ae.e.m),j.append("red"+Y,ae.e.d)}),await(await fetch("save",{method:"POST",body:j})).json(),l(3,f=!1),Al(n+"configuration")}let m=function(U,j){return U.includes(j)?U=U.filter(function(J){return J!==j}):U.push(j),U},_=function(){let U=a.o;U.push({t:1,n:"",d:3,a:[0,1,2,3,4,5,6,7],h:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],v:.001,s:{m:0,d:0},e:{m:0,d:0}}),l(1,a.o=U,a)},d=function(U){let j=a.o;j.splice(U,1),l(1,a.o=j,a)},v=function(U){if(U<=0)return;let j=a.o;var J=j[U];j[U]=j[U-1],j[U-1]=J,l(1,a.o=j,a)},g=function(U){let j=a.o;if(!(U>=j.length-1)){var J=j[U];j[U]=j[U+1],j[U+1]=J,l(1,a.o=j,a)}};function b(U,j){U[j].n=this.value,l(1,a)}function k(U,j){U[j].d=Ht(this),l(1,a)}function C(U,j){U[j].t=Ht(this),l(1,a)}function E(U,j){U[j].v=Qe(this.value),l(1,a)}const R=(U,j,J,ae)=>l(1,J[ae].a=m(U.a,j),a),I=(U,j,J,ae)=>l(1,J[ae].h=m(U.h,j),a),S=(U,j,J,ae)=>l(1,J[ae].h=m(U.h,j+8),a),B=(U,j,J,ae)=>l(1,J[ae].h=m(U.h,j+16),a);function N(U,j){U[j].s.d=Ht(this),l(1,a)}function H(U,j){U[j].s.m=Ht(this),l(1,a)}function K(U,j){U[j].e.d=Ht(this),l(1,a)}function z(U,j){U[j].e.m=Ht(this),l(1,a)}const L=U=>v(U),F=U=>v(U),Z=U=>g(U),y=U=>g(U),G=U=>d(U),V=U=>d(U);return t.$$set=U=>{"basepath"in U&&l(11,n=U.basepath)},[i,a,r,f,s,c,m,_,d,v,g,n,b,k,C,E,R,I,S,B,N,H,K,z,L,F,Z,y,G,V]}class Rc extends Ct{constructor(e){super(),wt(this,e,Ic,Lc,kt,{basepath:11},null,[-1,-1])}}function pf(t,e,l){const n=t.slice();return n[13]=e[l],n[14]=e,n[15]=l,n}function df(t,e,l){const n=t.slice();return n[13]=e[l],n[16]=e,n[17]=l,n}function vf(t){let e,l,n,i=t[1],s=[];for(let a=0;a{l(3,r=k)});let f=!1,c,m;async function _(){if(confirm("Clear all data?"))for(let k in i)(k.startsWith("i")||k.startsWith("e"))&&l(0,i[k]=0,i)}let d=!1;async function v(k){l(5,d=!0);const C=new FormData(k.target),E=new URLSearchParams;for(let I of C){const[S,B]=I;E.append(S,B)}await(await fetch(s,{method:"POST",body:E})).json(),l(5,d=!1),Al(a)}function g(k){i[k.key]=Qe(this.value),l(0,i)}function b(k){i[k.key]=Qe(this.value),l(0,i)}return t.$$set=k=>{"prefix"in k&&l(8,n=k.prefix),"data"in k&&l(0,i=k.data),"url"in k&&l(9,s=k.url),"basepath"in k&&l(10,a=k.basepath)},t.$$.update=()=>{if(t.$$.dirty&263){l(1,c=[]),l(2,m=[]);for(let k in i){let C=[];k.startsWith("i")?C=c:k.startsWith("e")&&(C=m,i[k]&&l(4,f=!0)),C.push({key:k,name:n+" "+k.substring(1),value:i[k]})}}},[i,c,m,r,f,d,_,v,n,s,a,g,b]}class du extends Ct{constructor(e){super(),wt(this,e,Bc,Fc,kt,{prefix:8,data:0,url:9,basepath:10})}}function Uc(t){let e,l;return e=new v0({props:{data:t[7],sysinfo:t[6],prices:t[1],dayPlot:t[2],monthPlot:t[3],temperatures:t[4],translations:t[5],tariffData:t[8]}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,i){const s={};i&128&&(s.data=n[7]),i&64&&(s.sysinfo=n[6]),i&2&&(s.prices=n[1]),i&4&&(s.dayPlot=n[2]),i&8&&(s.monthPlot=n[3]),i&16&&(s.temperatures=n[4]),i&32&&(s.translations=n[5]),i&256&&(s.tariffData=n[8]),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function jc(t){let e,l;return e=new lc({props:{sysinfo:t[6],basepath:t[0],data:t[7]}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,i){const s={};i&64&&(s.sysinfo=n[6]),i&1&&(s.basepath=n[0]),i&128&&(s.data=n[7]),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function yc(t){let e,l;return e=new Rc({props:{basepath:t[0]}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,i){const s={};i&1&&(s.basepath=n[0]),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function Hc(t){let e,l;return e=new pc({props:{sysinfo:t[6],data:t[7]}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,i){const s={};i&64&&(s.sysinfo=n[6]),i&128&&(s.data=n[7]),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function zc(t){let e,l;return e=new Ui({props:{title:"CA",action:"/mqtt-ca"}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p:Ke,i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function Wc(t){let e,l;return e=new Ui({props:{title:"certificate",action:"/mqtt-cert"}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p:Ke,i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function Gc(t){let e,l;return e=new Ui({props:{title:"private key",action:"/mqtt-key"}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p:Ke,i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function Vc(t){let e,l;return e=new Ec({props:{sysinfo:t[6],basepath:t[0]}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,i){const s={};i&64&&(s.sysinfo=n[6]),i&1&&(s.basepath=n[0]),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function Kc(t){let e,l;return e=new Sc({props:{sysinfo:t[6]}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,i){const s={};i&64&&(s.sysinfo=n[6]),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function Yc(t){let e,l;return e=new kc({props:{sysinfo:t[6],basepath:t[0]}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,i){const s={};i&64&&(s.sysinfo=n[6]),i&1&&(s.basepath=n[0]),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function Qc(t){let e,l;return e=new du({props:{prefix:"UTC Hour",data:t[2],url:"/dayplot",basepath:t[0]}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,i){const s={};i&4&&(s.data=n[2]),i&1&&(s.basepath=n[0]),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function Xc(t){let e,l;return e=new du({props:{prefix:"Day",data:t[3],url:"/monthplot",basepath:t[0]}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,i){const s={};i&8&&(s.data=n[3]),i&1&&(s.basepath=n[0]),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function Zc(t){let e,l,n,i,s,a,r,f,c,m,_,d,v,g,b,k,C,E,R,I,S,B,N,H,K,z;return e=new g1({props:{data:t[7],basepath:t[0]}}),n=new _l({props:{path:"/",$$slots:{default:[Uc]},$$scope:{ctx:t}}}),s=new _l({props:{path:"/configuration",$$slots:{default:[jc]},$$scope:{ctx:t}}}),r=new _l({props:{path:"/priceconfig",$$slots:{default:[yc]},$$scope:{ctx:t}}}),c=new _l({props:{path:"/status",$$slots:{default:[Hc]},$$scope:{ctx:t}}}),_=new _l({props:{path:"/mqtt-ca",$$slots:{default:[zc]},$$scope:{ctx:t}}}),v=new _l({props:{path:"/mqtt-cert",$$slots:{default:[Wc]},$$scope:{ctx:t}}}),b=new _l({props:{path:"/mqtt-key",$$slots:{default:[Gc]},$$scope:{ctx:t}}}),C=new _l({props:{path:"/consent",$$slots:{default:[Vc]},$$scope:{ctx:t}}}),R=new _l({props:{path:"/setup",$$slots:{default:[Kc]},$$scope:{ctx:t}}}),S=new _l({props:{path:"/vendor",$$slots:{default:[Yc]},$$scope:{ctx:t}}}),N=new _l({props:{path:"/edit-day",$$slots:{default:[Qc]},$$scope:{ctx:t}}}),K=new _l({props:{path:"/edit-month",$$slots:{default:[Xc]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment),l=h(),Te(n.$$.fragment),i=h(),Te(s.$$.fragment),a=h(),Te(r.$$.fragment),f=h(),Te(c.$$.fragment),m=h(),Te(_.$$.fragment),d=h(),Te(v.$$.fragment),g=h(),Te(b.$$.fragment),k=h(),Te(C.$$.fragment),E=h(),Te(R.$$.fragment),I=h(),Te(S.$$.fragment),B=h(),Te(N.$$.fragment),H=h(),Te(K.$$.fragment)},m(L,F){Me(e,L,F),P(L,l,F),Me(n,L,F),P(L,i,F),Me(s,L,F),P(L,a,F),Me(r,L,F),P(L,f,F),Me(c,L,F),P(L,m,F),Me(_,L,F),P(L,d,F),Me(v,L,F),P(L,g,F),Me(b,L,F),P(L,k,F),Me(C,L,F),P(L,E,F),Me(R,L,F),P(L,I,F),Me(S,L,F),P(L,B,F),Me(N,L,F),P(L,H,F),Me(K,L,F),z=!0},p(L,F){const Z={};F&128&&(Z.data=L[7]),F&1&&(Z.basepath=L[0]),e.$set(Z);const y={};F&1022&&(y.$$scope={dirty:F,ctx:L}),n.$set(y);const G={};F&705&&(G.$$scope={dirty:F,ctx:L}),s.$set(G);const V={};F&513&&(V.$$scope={dirty:F,ctx:L}),r.$set(V);const U={};F&704&&(U.$$scope={dirty:F,ctx:L}),c.$set(U);const j={};F&512&&(j.$$scope={dirty:F,ctx:L}),_.$set(j);const J={};F&512&&(J.$$scope={dirty:F,ctx:L}),v.$set(J);const ae={};F&512&&(ae.$$scope={dirty:F,ctx:L}),b.$set(ae);const Y={};F&577&&(Y.$$scope={dirty:F,ctx:L}),C.$set(Y);const oe={};F&576&&(oe.$$scope={dirty:F,ctx:L}),R.$set(oe);const ie={};F&577&&(ie.$$scope={dirty:F,ctx:L}),S.$set(ie);const te={};F&517&&(te.$$scope={dirty:F,ctx:L}),N.$set(te);const ee={};F&521&&(ee.$$scope={dirty:F,ctx:L}),K.$set(ee)},i(L){z||(X(e.$$.fragment,L),X(n.$$.fragment,L),X(s.$$.fragment,L),X(r.$$.fragment,L),X(c.$$.fragment,L),X(_.$$.fragment,L),X(v.$$.fragment,L),X(b.$$.fragment,L),X(C.$$.fragment,L),X(R.$$.fragment,L),X(S.$$.fragment,L),X(N.$$.fragment,L),X(K.$$.fragment,L),z=!0)},o(L){le(e.$$.fragment,L),le(n.$$.fragment,L),le(s.$$.fragment,L),le(r.$$.fragment,L),le(c.$$.fragment,L),le(_.$$.fragment,L),le(v.$$.fragment,L),le(b.$$.fragment,L),le(C.$$.fragment,L),le(R.$$.fragment,L),le(S.$$.fragment,L),le(N.$$.fragment,L),le(K.$$.fragment,L),z=!1},d(L){Ne(e,L),L&&T(l),Ne(n,L),L&&T(i),Ne(s,L),L&&T(a),Ne(r,L),L&&T(f),Ne(c,L),L&&T(m),Ne(_,L),L&&T(d),Ne(v,L),L&&T(g),Ne(b,L),L&&T(k),Ne(C,L),L&&T(E),Ne(R,L),L&&T(I),Ne(S,L),L&&T(B),Ne(N,L),L&&T(H),Ne(K,L)}}}function Jc(t){let e,l,n,i;const s=[em,xc],a=[];function r(f,c){return f[6].trying?0:1}return e=r(t),l=a[e]=s[e](t),{c(){l.c(),n=Wt()},m(f,c){a[e].m(f,c),P(f,n,c),i=!0},p(f,c){let m=e;e=r(f),e===m?a[e].p(f,c):(pt(),le(a[m],1,1,()=>{a[m]=null}),dt(),l=a[e],l?l.p(f,c):(l=a[e]=s[e](f),l.c()),X(l,1),l.m(n.parentNode,n))},i(f){i||(X(l),i=!0)},o(f){le(l),i=!1},d(f){a[e].d(f),f&&T(n)}}}function $c(t){let e,l;return e=new il({props:{active:"true",message:"Device is upgrading, please wait"}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p:Ke,i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function xc(t){let e,l;return e=new il({props:{active:"true",message:"Device is booting, please wait"}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p:Ke,i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function em(t){let e,l;return e=new il({props:{active:"true",message:"Device is booting, please wait. Trying to reach it on "+t[6].trying}}),{c(){Te(e.$$.fragment)},m(n,i){Me(e,n,i),l=!0},p(n,i){const s={};i&64&&(s.message="Device is booting, please wait. Trying to reach it on "+n[6].trying),e.$set(s)},i(n){l||(X(e.$$.fragment,n),l=!0)},o(n){le(e.$$.fragment,n),l=!1},d(n){Ne(e,n)}}}function tm(t){let e,l,n,i,s,a;l=new Yf({props:{basepath:t[0],$$slots:{default:[Zc]},$$scope:{ctx:t}}});const r=[$c,Jc],f=[];function c(m,_){return m[6].upgrading?0:m[6].booting?1:-1}return~(i=c(t))&&(s=f[i]=r[i](t)),{c(){e=p("div"),Te(l.$$.fragment),n=h(),s&&s.c(),u(e,"class","container mx-auto m-3")},m(m,_){P(m,e,_),Me(l,e,null),o(e,n),~i&&f[i].m(e,null),a=!0},p(m,[_]){const d={};_&1&&(d.basepath=m[0]),_&1023&&(d.$$scope={dirty:_,ctx:m}),l.$set(d);let v=i;i=c(m),i===v?~i&&f[i].p(m,_):(s&&(pt(),le(f[v],1,1,()=>{f[v]=null}),dt()),~i?(s=f[i],s?s.p(m,_):(s=f[i]=r[i](m),s.c()),X(s,1),s.m(e,null)):s=null)},i(m){a||(X(l.$$.fragment,m),X(s),a=!0)},o(m){le(l.$$.fragment,m),le(s),a=!1},d(m){m&&T(e),Ne(l),~i&&f[i].d()}}}function lm(t,e,l){let n=document.getElementsByTagName("base")[0].getAttribute("href");n||(n="/");let i;Li.subscribe(d=>{l(1,i=d)});let s;tu.subscribe(d=>{l(2,s=d)});let a;lu.subscribe(d=>{l(3,a=d)});let r;nu.subscribe(d=>{l(4,r=d)});let f={};dl.subscribe(d=>{l(5,f=d)});let c={};ol.subscribe(d=>{var v;l(6,c=d),c.vndcfg===!1?Al(n+"vendor"):c.usrcfg===!1?Al(n+"setup"):c.fwconsent===0&&Al(n+"consent"),c.ui.k===1?document.documentElement.classList.add("dark"):c.ui.k===0?document.documentElement.classList.remove("dark"):window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),c.ui.lang&&c.ui.lang!=((v=f==null?void 0:f.language)==null?void 0:v.code)&&ou(c.ui.lang)});let m={};Hr.subscribe(d=>{l(7,m=d),o0(d)});let _={};return su.subscribe(d=>{l(8,_=d)}),iu(),[n,i,s,a,r,f,c,m,_]}class nm extends Ct{constructor(e){super(),wt(this,e,lm,tm,kt,{})}}new nm({target:document.getElementById("app")}); diff --git a/lib/SvelteUi/app/package-lock.json b/lib/SvelteUi/app/package-lock.json index 095de595..5ab27575 100644 --- a/lib/SvelteUi/app/package-lock.json +++ b/lib/SvelteUi/app/package-lock.json @@ -27,9 +27,8 @@ }, "node_modules/@alloc/quick-lru": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", - "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -391,9 +390,8 @@ }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/set-array": "^1.0.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -404,44 +402,45 @@ } }, "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "version": "3.1.0", "dev": true, + "license": "MIT", "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/set-array": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", "dev": true }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.20", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", - "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", + "version": "0.3.18", "dev": true, + "license": "MIT", "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" } }, + "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "dev": true, + "license": "MIT" + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" @@ -452,18 +451,16 @@ }, "node_modules/@nodelib/fs.stat": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8" } }, "node_modules/@nodelib/fs.walk": { "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" @@ -473,9 +470,9 @@ } }, "node_modules/@sveltejs/vite-plugin-svelte": { - "version": "2.4.6", - "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-2.4.6.tgz", - "integrity": "sha512-zO79p0+DZnXPnF0ltIigWDx/ux7Ni+HRaFOw720Qeivc1azFUrJxTl0OryXVibYNx1hCboGia1NRV3x8RNv4cA==", + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-2.5.3.tgz", + "integrity": "sha512-erhNtXxE5/6xGZz/M9eXsmI7Pxa6MS7jyTy06zN3Ck++ldrppOnOlJwHHTsMC7DHDQdgUp4NAc4cDNQ9eGdB/w==", "dev": true, "dependencies": { "@sveltejs/vite-plugin-svelte-inspector": "^1.0.4", @@ -490,7 +487,7 @@ "node": "^14.18.0 || >= 16" }, "peerDependencies": { - "svelte": "^3.54.0 || ^4.0.0", + "svelte": "^3.54.0 || ^4.0.0 || ^5.0.0-next.0", "vite": "^4.0.0" } }, @@ -512,10 +509,9 @@ } }, "node_modules/@tailwindcss/forms": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.6.tgz", - "integrity": "sha512-Fw+2BJ0tmAwK/w01tEFL5TiaJBX1NLT1/YbWgvm7ws3Qcn11kiXxzNTEQDMs5V3mQemhB56l3u0i9dwdzSQldA==", + "version": "0.5.3", "dev": true, + "license": "MIT", "dependencies": { "mini-svg-data-uri": "^1.2.3" }, @@ -525,47 +521,38 @@ }, "node_modules/@trysound/sax": { "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", - "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", + "license": "ISC", "engines": { "node": ">=10.13.0" } }, "node_modules/@types/http-proxy": { - "version": "1.17.13", - "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.13.tgz", - "integrity": "sha512-GkhdWcMNiR5QSQRYnJ+/oXzu0+7JJEPC8vkWXK351BkhjraZF+1W13CUYARUvX9+NqIU2n6YHA4iwywsc/M6Sw==", + "version": "1.17.11", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*" } }, "node_modules/@types/node": { - "version": "20.8.9", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.9.tgz", - "integrity": "sha512-UzykFsT3FhHb1h7yD4CA4YhBHq545JC0YnEz41xkipN88eKQtL6rSgocL5tbAP6Ola9Izm/Aw4Ora8He4x0BHg==", + "version": "20.3.3", "dev": true, - "dependencies": { - "undici-types": "~5.26.4" - } + "license": "MIT" }, "node_modules/@types/pug": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/@types/pug/-/pug-2.0.8.tgz", - "integrity": "sha512-QzhsZ1dMGyJbn/D9V80zp4GIA4J4rfAjCCxc3MP+new0E8dyVdSkR735Lx+n3LIaHNFcjHL5+TbziccuT+fdoQ==", - "dev": true + "version": "2.0.6", + "dev": true, + "license": "MIT" }, "node_modules/any-promise": { "version": "1.3.0", - "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", - "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/anymatch": { "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, + "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -576,14 +563,11 @@ }, "node_modules/arg": { "version": "5.0.2", - "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", - "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/autoprefixer": { - "version": "10.4.16", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.16.tgz", - "integrity": "sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==", + "version": "10.4.14", "dev": true, "funding": [ { @@ -593,16 +577,13 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/autoprefixer" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { - "browserslist": "^4.21.10", - "caniuse-lite": "^1.0.30001538", - "fraction.js": "^4.3.6", + "browserslist": "^4.21.5", + "caniuse-lite": "^1.0.30001464", + "fraction.js": "^4.2.0", "normalize-range": "^0.1.2", "picocolors": "^1.0.0", "postcss-value-parser": "^4.2.0" @@ -619,50 +600,44 @@ }, "node_modules/balanced-match": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/binary-extensions": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/boolbase": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" + "license": "ISC" }, "node_modules/brace-expansion": { "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" } }, "node_modules/browserslist": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz", - "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==", + "version": "4.21.9", "funding": [ { "type": "opencollective", @@ -677,11 +652,12 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001541", - "electron-to-chromium": "^1.4.535", - "node-releases": "^2.0.13", - "update-browserslist-db": "^1.0.13" + "caniuse-lite": "^1.0.30001503", + "electron-to-chromium": "^1.4.431", + "node-releases": "^2.0.12", + "update-browserslist-db": "^1.0.11" }, "bin": { "browserslist": "cli.js" @@ -691,27 +667,25 @@ } }, "node_modules/buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-1.0.0.tgz", + "integrity": "sha512-Db1SbgBS/fg/392AblrMJk97KggmvYhr4pB5ZIMTWtaivCPMWLkmb7m21cJvpvgK+J3nsU2CmmixNBZx4vFj/w==", "dev": true, "engines": { - "node": "*" + "node": ">=8.0.0" } }, "node_modules/camelcase-css": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", - "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/caniuse-api": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", - "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", + "license": "MIT", "dependencies": { "browserslist": "^4.0.0", "caniuse-lite": "^1.0.0", @@ -720,9 +694,7 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001555", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001555.tgz", - "integrity": "sha512-NzbUFKUnJ3DTcq6YyZB6+qqhfD112uR3uoEnkmfzm2wVzUNsFkU7AwBjKQ654Sp5cau0JxhFyRSn/tQZ+XfygA==", + "version": "1.0.30001509", "funding": [ { "type": "opencollective", @@ -736,12 +708,11 @@ "type": "github", "url": "https://github.com/sponsors/ai" } - ] + ], + "license": "CC-BY-4.0" }, "node_modules/chokidar": { "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", "dev": true, "funding": [ { @@ -749,6 +720,7 @@ "url": "https://paulmillr.com/funding/" } ], + "license": "MIT", "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", @@ -765,41 +737,25 @@ "fsevents": "~2.3.2" } }, - "node_modules/chokidar/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/colord": { "version": "2.9.3", - "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", - "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==" + "license": "MIT" }, "node_modules/commander": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "license": "MIT", "engines": { "node": ">= 10" } }, "node_modules/concat-map": { "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/css-declaration-sorter": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.1.tgz", - "integrity": "sha512-rtdthzxKuyq6IzqX6jEcIzQF/YqccluefyCYheovBOLhFT/drQA9zj/UbRAa9J7C0o6EG6u3E6g+vKkay7/k3g==", + "version": "6.4.0", + "license": "ISC", "engines": { "node": "^10 || ^12 || >=14" }, @@ -809,8 +765,7 @@ }, "node_modules/css-select": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", - "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "license": "BSD-2-Clause", "dependencies": { "boolbase": "^1.0.0", "css-what": "^6.0.1", @@ -824,8 +779,7 @@ }, "node_modules/css-tree": { "version": "1.1.3", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", - "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "license": "MIT", "dependencies": { "mdn-data": "2.0.14", "source-map": "^0.6.1" @@ -836,8 +790,7 @@ }, "node_modules/css-what": { "version": "6.1.0", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", - "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", + "license": "BSD-2-Clause", "engines": { "node": ">= 6" }, @@ -847,8 +800,7 @@ }, "node_modules/cssesc": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "license": "MIT", "bin": { "cssesc": "bin/cssesc" }, @@ -858,8 +810,7 @@ }, "node_modules/cssnano": { "version": "5.1.15", - "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", - "integrity": "sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==", + "license": "MIT", "dependencies": { "cssnano-preset-default": "^5.2.14", "lilconfig": "^2.0.3", @@ -878,8 +829,7 @@ }, "node_modules/cssnano-preset-default": { "version": "5.2.14", - "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz", - "integrity": "sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==", + "license": "MIT", "dependencies": { "css-declaration-sorter": "^6.3.1", "cssnano-utils": "^3.1.0", @@ -920,8 +870,7 @@ }, "node_modules/cssnano-utils": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", - "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", + "license": "MIT", "engines": { "node": "^10 || ^12 || >=14.0" }, @@ -931,8 +880,7 @@ }, "node_modules/csso": { "version": "4.2.0", - "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", - "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "license": "MIT", "dependencies": { "css-tree": "^1.1.2" }, @@ -942,9 +890,8 @@ }, "node_modules/debug": { "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, + "license": "MIT", "dependencies": { "ms": "2.1.2" }, @@ -959,44 +906,38 @@ }, "node_modules/dedent-js": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dedent-js/-/dedent-js-1.0.1.tgz", - "integrity": "sha512-OUepMozQULMLUmhxS95Vudo0jb0UchLimi3+pQ2plj61Fcy8axbP9hbiD4Sz6DPqn6XG3kfmziVfQ1rSys5AJQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/deepmerge": { "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/detect-indent": { "version": "6.1.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", - "integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/didyoumean": { "version": "1.2.2", - "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", - "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", - "dev": true + "dev": true, + "license": "Apache-2.0" }, "node_modules/dlv": { "version": "1.1.3", - "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", - "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/dom-serializer": { "version": "1.4.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", - "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "license": "MIT", "dependencies": { "domelementtype": "^2.0.1", "domhandler": "^4.2.0", @@ -1008,19 +949,17 @@ }, "node_modules/domelementtype": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", - "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", "funding": [ { "type": "github", "url": "https://github.com/sponsors/fb55" } - ] + ], + "license": "BSD-2-Clause" }, "node_modules/domhandler": { "version": "4.3.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", - "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "license": "BSD-2-Clause", "dependencies": { "domelementtype": "^2.2.0" }, @@ -1033,8 +972,7 @@ }, "node_modules/domutils": { "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "license": "BSD-2-Clause", "dependencies": { "dom-serializer": "^1.0.1", "domelementtype": "^2.2.0", @@ -1045,14 +983,12 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.569", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.569.tgz", - "integrity": "sha512-LsrJjZ0IbVy12ApW3gpYpcmHS3iRxH4bkKOW98y1/D+3cvDUWGcbzbsFinfUS8knpcZk/PG/2p/RnkMCYN7PVg==" + "version": "1.4.447", + "license": "ISC" }, "node_modules/entities": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "license": "BSD-2-Clause", "funding": { "url": "https://github.com/fb55/entities?sponsor=1" } @@ -1102,23 +1038,20 @@ }, "node_modules/escalade": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/eventemitter3": { "version": "4.0.7", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/fast-glob": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", - "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "version": "3.3.0", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -1130,31 +1063,18 @@ "node": ">=8.6.0" } }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/fastq": { "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", "dev": true, + "license": "ISC", "dependencies": { "reusify": "^1.0.4" } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "dependencies": { "to-regex-range": "^5.0.1" @@ -1164,21 +1084,9 @@ } }, "node_modules/follow-redirects": { -<<<<<<< HEAD -<<<<<<< HEAD - "version": "1.15.3", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", - "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", -======= - "version": "1.15.4", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz", - "integrity": "sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==", ->>>>>>> main -======= "version": "1.15.6", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", ->>>>>>> main "dev": true, "funding": [ { @@ -1196,23 +1104,21 @@ } }, "node_modules/fraction.js": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", - "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==", + "version": "4.2.0", "dev": true, + "license": "MIT", "engines": { "node": "*" }, "funding": { "type": "patreon", - "url": "https://github.com/sponsors/rawify" + "url": "https://www.patreon.com/infusion" } }, "node_modules/fs.realpath": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/fsevents": { "version": "2.3.3", @@ -1229,18 +1135,15 @@ } }, "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "version": "1.1.1", "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "license": "MIT" }, "node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, "dependencies": { "fs.realpath": "^1.0.0", @@ -1258,15 +1161,14 @@ } }, "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "version": "5.1.2", "dev": true, + "license": "ISC", "dependencies": { - "is-glob": "^4.0.3" + "is-glob": "^4.0.1" }, "engines": { - "node": ">=10.13.0" + "node": ">= 6" } }, "node_modules/graceful-fs": { @@ -1275,23 +1177,21 @@ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true }, - "node_modules/hasown": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", - "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "node_modules/has": { + "version": "1.0.3", "dev": true, + "license": "MIT", "dependencies": { - "function-bind": "^1.1.2" + "function-bind": "^1.1.1" }, "engines": { - "node": ">= 0.4" + "node": ">= 0.4.0" } }, "node_modules/http-proxy": { "version": "1.18.1", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", - "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", "dev": true, + "license": "MIT", "dependencies": { "eventemitter3": "^4.0.0", "follow-redirects": "^1.0.0", @@ -1303,9 +1203,8 @@ }, "node_modules/http-proxy-middleware": { "version": "2.0.6", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", - "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", "dev": true, + "license": "MIT", "dependencies": { "@types/http-proxy": "^1.17.8", "http-proxy": "^1.18.1", @@ -1325,11 +1224,17 @@ } } }, + "node_modules/immutable": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true + }, "node_modules/inflight": { "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "dev": true, + "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -1337,15 +1242,13 @@ }, "node_modules/inherits": { "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/is-binary-path": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "dev": true, + "license": "MIT", "dependencies": { "binary-extensions": "^2.0.0" }, @@ -1354,12 +1257,11 @@ } }, "node_modules/is-core-module": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", - "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "version": "2.12.1", "dev": true, + "license": "MIT", "dependencies": { - "hasown": "^2.0.0" + "has": "^1.0.3" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -1367,18 +1269,16 @@ }, "node_modules/is-extglob": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/is-glob": { "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, + "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" }, @@ -1397,9 +1297,8 @@ }, "node_modules/is-plain-obj": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", - "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -1408,87 +1307,74 @@ } }, "node_modules/jiti": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.20.0.tgz", - "integrity": "sha512-3TV69ZbrvV6U5DfQimop50jE9Dl6J8O1ja1dvBbMba/sZ3YBEQqJ2VZRoQPVnhlzjNtU1vaXRZVrVjU4qtm8yA==", + "version": "1.18.2", "dev": true, + "license": "MIT", "bin": { "jiti": "bin/jiti.js" } }, "node_modules/kleur": { "version": "4.1.5", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", - "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/lilconfig": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", - "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", + "license": "MIT", "engines": { "node": ">=10" } }, "node_modules/lines-and-columns": { "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.memoize": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==" + "license": "MIT" }, "node_modules/lodash.uniq": { "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", - "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==" + "license": "MIT" }, "node_modules/lower-case": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", - "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.0.3" } }, "node_modules/magic-string": { - "version": "0.30.5", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.5.tgz", - "integrity": "sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==", + "version": "0.30.11", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.11.tgz", + "integrity": "sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==", "dev": true, "dependencies": { - "@jridgewell/sourcemap-codec": "^1.4.15" - }, - "engines": { - "node": ">=12" + "@jridgewell/sourcemap-codec": "^1.5.0" } }, "node_modules/mdn-data": { "version": "2.0.14", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", - "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" + "license": "CC0-1.0" }, "node_modules/merge2": { "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8" } }, "node_modules/micromatch": { "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", "dev": true, + "license": "MIT", "dependencies": { "braces": "^3.0.2", "picomatch": "^2.3.1" @@ -1499,27 +1385,24 @@ }, "node_modules/min-indent": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", - "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/mini-svg-data-uri": { "version": "1.4.4", - "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz", - "integrity": "sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==", "dev": true, + "license": "MIT", "bin": { "mini-svg-data-uri": "cli.js" } }, "node_modules/minimatch": { "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, + "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -1550,15 +1433,13 @@ }, "node_modules/ms": { "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/mz": { "version": "2.7.0", - "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", - "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", "dev": true, + "license": "MIT", "dependencies": { "any-promise": "^1.0.0", "object-assign": "^4.0.1", @@ -1567,14 +1448,13 @@ }, "node_modules/nanoid": { "version": "3.3.6", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", - "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", "funding": [ { "type": "github", "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "bin": { "nanoid": "bin/nanoid.cjs" }, @@ -1584,41 +1464,36 @@ }, "node_modules/no-case": { "version": "3.0.4", - "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", - "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", "dev": true, + "license": "MIT", "dependencies": { "lower-case": "^2.0.2", "tslib": "^2.0.3" } }, "node_modules/node-releases": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", - "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==" + "version": "2.0.12", + "license": "MIT" }, "node_modules/normalize-path": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/normalize-range": { "version": "0.1.2", - "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/normalize-url": { "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "license": "MIT", "engines": { "node": ">=10" }, @@ -1628,8 +1503,7 @@ }, "node_modules/nth-check": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "license": "BSD-2-Clause", "dependencies": { "boolbase": "^1.0.0" }, @@ -1639,36 +1513,32 @@ }, "node_modules/object-assign": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/object-hash": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", - "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", "dev": true, + "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/once": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, + "license": "ISC", "dependencies": { "wrappy": "1" } }, "node_modules/pascal-case": { "version": "3.1.2", - "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", - "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", "dev": true, + "license": "MIT", "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3" @@ -1676,29 +1546,25 @@ }, "node_modules/path-is-absolute": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/path-parse": { "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/picocolors": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "license": "ISC" }, "node_modules/picomatch": { "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8.6" }, @@ -1708,26 +1574,22 @@ }, "node_modules/pify": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/pirates": { "version": "4.0.6", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", - "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/postcss": { "version": "8.4.31", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", - "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", "funding": [ { "type": "opencollective", @@ -1742,6 +1604,7 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", @@ -1753,8 +1616,7 @@ }, "node_modules/postcss-calc": { "version": "8.2.4", - "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", - "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", + "license": "MIT", "dependencies": { "postcss-selector-parser": "^6.0.9", "postcss-value-parser": "^4.2.0" @@ -1765,8 +1627,7 @@ }, "node_modules/postcss-colormin": { "version": "5.3.1", - "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz", - "integrity": "sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==", + "license": "MIT", "dependencies": { "browserslist": "^4.21.4", "caniuse-api": "^3.0.0", @@ -1782,8 +1643,7 @@ }, "node_modules/postcss-convert-values": { "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz", - "integrity": "sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==", + "license": "MIT", "dependencies": { "browserslist": "^4.21.4", "postcss-value-parser": "^4.2.0" @@ -1797,8 +1657,7 @@ }, "node_modules/postcss-discard-comments": { "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", - "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", + "license": "MIT", "engines": { "node": "^10 || ^12 || >=14.0" }, @@ -1808,8 +1667,7 @@ }, "node_modules/postcss-discard-duplicates": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", - "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", + "license": "MIT", "engines": { "node": "^10 || ^12 || >=14.0" }, @@ -1819,8 +1677,7 @@ }, "node_modules/postcss-discard-empty": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", - "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", + "license": "MIT", "engines": { "node": "^10 || ^12 || >=14.0" }, @@ -1830,8 +1687,7 @@ }, "node_modules/postcss-discard-overridden": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", - "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", + "license": "MIT", "engines": { "node": "^10 || ^12 || >=14.0" }, @@ -1841,9 +1697,8 @@ }, "node_modules/postcss-import": { "version": "15.1.0", - "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", - "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", "dev": true, + "license": "MIT", "dependencies": { "postcss-value-parser": "^4.0.0", "read-cache": "^1.0.0", @@ -1858,9 +1713,8 @@ }, "node_modules/postcss-js": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", - "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", "dev": true, + "license": "MIT", "dependencies": { "camelcase-css": "^2.0.1" }, @@ -1877,9 +1731,8 @@ }, "node_modules/postcss-load-config": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.1.tgz", - "integrity": "sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==", "dev": true, + "license": "MIT", "dependencies": { "lilconfig": "^2.0.5", "yaml": "^2.1.1" @@ -1905,18 +1758,16 @@ } }, "node_modules/postcss-load-config/node_modules/yaml": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.3.tgz", - "integrity": "sha512-zw0VAJxgeZ6+++/su5AFoqBbZbrEakwu+X0M5HmcwUiBL7AzcuPKjj5we4xfQLp78LkEMpD0cOnUhmgOVy3KdQ==", + "version": "2.3.1", "dev": true, + "license": "ISC", "engines": { "node": ">= 14" } }, "node_modules/postcss-merge-longhand": { "version": "5.1.7", - "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz", - "integrity": "sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==", + "license": "MIT", "dependencies": { "postcss-value-parser": "^4.2.0", "stylehacks": "^5.1.1" @@ -1930,8 +1781,7 @@ }, "node_modules/postcss-merge-rules": { "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz", - "integrity": "sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==", + "license": "MIT", "dependencies": { "browserslist": "^4.21.4", "caniuse-api": "^3.0.0", @@ -1947,8 +1797,7 @@ }, "node_modules/postcss-minify-font-values": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", - "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", + "license": "MIT", "dependencies": { "postcss-value-parser": "^4.2.0" }, @@ -1961,8 +1810,7 @@ }, "node_modules/postcss-minify-gradients": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", - "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", + "license": "MIT", "dependencies": { "colord": "^2.9.1", "cssnano-utils": "^3.1.0", @@ -1977,8 +1825,7 @@ }, "node_modules/postcss-minify-params": { "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz", - "integrity": "sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==", + "license": "MIT", "dependencies": { "browserslist": "^4.21.4", "cssnano-utils": "^3.1.0", @@ -1993,8 +1840,7 @@ }, "node_modules/postcss-minify-selectors": { "version": "5.2.1", - "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", - "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", + "license": "MIT", "dependencies": { "postcss-selector-parser": "^6.0.5" }, @@ -2007,9 +1853,8 @@ }, "node_modules/postcss-nested": { "version": "6.0.1", - "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz", - "integrity": "sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==", "dev": true, + "license": "MIT", "dependencies": { "postcss-selector-parser": "^6.0.11" }, @@ -2026,8 +1871,7 @@ }, "node_modules/postcss-normalize-charset": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", - "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", + "license": "MIT", "engines": { "node": "^10 || ^12 || >=14.0" }, @@ -2037,8 +1881,7 @@ }, "node_modules/postcss-normalize-display-values": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", - "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", + "license": "MIT", "dependencies": { "postcss-value-parser": "^4.2.0" }, @@ -2051,8 +1894,7 @@ }, "node_modules/postcss-normalize-positions": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", - "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", + "license": "MIT", "dependencies": { "postcss-value-parser": "^4.2.0" }, @@ -2065,8 +1907,7 @@ }, "node_modules/postcss-normalize-repeat-style": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", - "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", + "license": "MIT", "dependencies": { "postcss-value-parser": "^4.2.0" }, @@ -2079,8 +1920,7 @@ }, "node_modules/postcss-normalize-string": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", - "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", + "license": "MIT", "dependencies": { "postcss-value-parser": "^4.2.0" }, @@ -2093,8 +1933,7 @@ }, "node_modules/postcss-normalize-timing-functions": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", - "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", + "license": "MIT", "dependencies": { "postcss-value-parser": "^4.2.0" }, @@ -2107,8 +1946,7 @@ }, "node_modules/postcss-normalize-unicode": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz", - "integrity": "sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==", + "license": "MIT", "dependencies": { "browserslist": "^4.21.4", "postcss-value-parser": "^4.2.0" @@ -2122,8 +1960,7 @@ }, "node_modules/postcss-normalize-url": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", - "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", + "license": "MIT", "dependencies": { "normalize-url": "^6.0.1", "postcss-value-parser": "^4.2.0" @@ -2137,8 +1974,7 @@ }, "node_modules/postcss-normalize-whitespace": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", - "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", + "license": "MIT", "dependencies": { "postcss-value-parser": "^4.2.0" }, @@ -2151,8 +1987,7 @@ }, "node_modules/postcss-ordered-values": { "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", - "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", + "license": "MIT", "dependencies": { "cssnano-utils": "^3.1.0", "postcss-value-parser": "^4.2.0" @@ -2166,8 +2001,7 @@ }, "node_modules/postcss-reduce-initial": { "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz", - "integrity": "sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==", + "license": "MIT", "dependencies": { "browserslist": "^4.21.4", "caniuse-api": "^3.0.0" @@ -2181,8 +2015,7 @@ }, "node_modules/postcss-reduce-transforms": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", - "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", + "license": "MIT", "dependencies": { "postcss-value-parser": "^4.2.0" }, @@ -2195,8 +2028,7 @@ }, "node_modules/postcss-selector-parser": { "version": "6.0.13", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", - "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", + "license": "MIT", "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" @@ -2207,8 +2039,7 @@ }, "node_modules/postcss-svgo": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", - "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", + "license": "MIT", "dependencies": { "postcss-value-parser": "^4.2.0", "svgo": "^2.7.0" @@ -2222,8 +2053,7 @@ }, "node_modules/postcss-unique-selectors": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", - "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", + "license": "MIT", "dependencies": { "postcss-selector-parser": "^6.0.5" }, @@ -2236,13 +2066,10 @@ }, "node_modules/postcss-value-parser": { "version": "4.2.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" + "license": "MIT" }, "node_modules/queue-microtask": { "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", "dev": true, "funding": [ { @@ -2257,22 +2084,21 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/read-cache": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", - "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", "dev": true, + "license": "MIT", "dependencies": { "pify": "^2.3.0" } }, "node_modules/readdirp": { "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", "dev": true, + "license": "MIT", "dependencies": { "picomatch": "^2.2.1" }, @@ -2282,17 +2108,15 @@ }, "node_modules/requires-port": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/resolve": { - "version": "1.22.8", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", - "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "version": "1.22.2", "dev": true, + "license": "MIT", "dependencies": { - "is-core-module": "^2.13.0", + "is-core-module": "^2.11.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, @@ -2305,9 +2129,8 @@ }, "node_modules/reusify": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", "dev": true, + "license": "MIT", "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -2317,6 +2140,7 @@ "version": "2.7.1", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", "dev": true, "dependencies": { "glob": "^7.1.3" @@ -2343,8 +2167,6 @@ }, "node_modules/run-parallel": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, "funding": [ { @@ -2360,6 +2182,7 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "dependencies": { "queue-microtask": "^1.2.2" } @@ -2376,14 +2199,32 @@ "rimraf": "^2.5.2" } }, + "node_modules/sass": { + "version": "1.63.6", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "chokidar": ">=3.0.0 <4.0.0", + "immutable": "^4.0.0", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/sorcery": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/sorcery/-/sorcery-0.11.0.tgz", - "integrity": "sha512-J69LQ22xrQB1cIFJhPfgtLuI6BpWRiWu1Y3vSsIwK/eAScqJxd/+CJlUuHQRdX2C9NGFamq+KqNywGgaThwfHw==", + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/sorcery/-/sorcery-0.11.1.tgz", + "integrity": "sha512-o7npfeJE6wi6J9l0/5LKshFzZ2rMatRiCDwYeDQaOzqdzRJwALhX7mk/A/ecg6wjMu7wdZbmXfD2S/vpOg0bdQ==", "dev": true, "dependencies": { "@jridgewell/sourcemap-codec": "^1.4.14", - "buffer-crc32": "^0.2.5", + "buffer-crc32": "^1.0.0", "minimist": "^1.2.0", "sander": "^0.5.0" }, @@ -2393,31 +2234,26 @@ }, "node_modules/source-map": { "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } }, "node_modules/source-map-js": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } }, "node_modules/stable": { "version": "0.1.8", - "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", - "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", - "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility" + "license": "MIT" }, "node_modules/strip-indent": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", - "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", "dev": true, + "license": "MIT", "dependencies": { "min-indent": "^1.0.0" }, @@ -2427,8 +2263,7 @@ }, "node_modules/stylehacks": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", - "integrity": "sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==", + "license": "MIT", "dependencies": { "browserslist": "^4.21.4", "postcss-selector-parser": "^6.0.4" @@ -2441,10 +2276,9 @@ } }, "node_modules/sucrase": { - "version": "3.34.0", - "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.34.0.tgz", - "integrity": "sha512-70/LQEZ07TEcxiU2dz51FKaE6hCTWC6vr7FOk3Gr0U60C3shtAN+H+BFr9XlYe5xqf3RA8nrc+VIwzCfnxuXJw==", + "version": "3.32.0", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/gen-mapping": "^0.3.2", "commander": "^4.0.0", @@ -2464,18 +2298,16 @@ }, "node_modules/sucrase/node_modules/commander": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/sucrase/node_modules/glob": { "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", "dev": true, + "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -2493,9 +2325,8 @@ }, "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -2505,9 +2336,8 @@ }, "node_modules/svelte": { "version": "3.59.2", - "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.59.2.tgz", - "integrity": "sha512-vzSyuGr3eEoAtT/A6bmajosJZIUWySzY2CzB3w2pgPvnkUjGqlDnsNnA0PMO+mMAhuyMul6C2uuZzY6ELSkzyA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8" } @@ -2526,10 +2356,8 @@ }, "node_modules/svelte-navigator": { "version": "3.2.2", - "resolved": "https://registry.npmjs.org/svelte-navigator/-/svelte-navigator-3.2.2.tgz", - "integrity": "sha512-Xio4ohLUG1nQJ+ENNbLphXXu9L189fnI1WGg+2Q3CIMPe8Jm2ipytKQthdBs8t0mN7p3Eb03SE9hq0xZAqwQNQ==", "dev": true, - "hasInstallScript": true, + "license": "MIT", "dependencies": { "svelte2tsx": "^0.1.151" }, @@ -2538,32 +2366,32 @@ } }, "node_modules/svelte-preprocess": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-5.0.4.tgz", - "integrity": "sha512-ABia2QegosxOGsVlsSBJvoWeXy1wUKSfF7SWJdTjLAbx/Y3SrVevvvbFNQqrSJw89+lNSsM58SipmZJ5SRi5iw==", + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-5.1.4.tgz", + "integrity": "sha512-IvnbQ6D6Ao3Gg6ftiM5tdbR6aAETwjhHV+UKGf5bHGYR69RQvF1ho0JKPcbUON4vy4R7zom13jPjgdOWCQ5hDA==", "dev": true, "hasInstallScript": true, "dependencies": { "@types/pug": "^2.0.6", "detect-indent": "^6.1.0", - "magic-string": "^0.27.0", + "magic-string": "^0.30.5", "sorcery": "^0.11.0", "strip-indent": "^3.0.0" }, "engines": { - "node": ">= 14.10.0" + "node": ">= 16.0.0" }, "peerDependencies": { "@babel/core": "^7.10.2", "coffeescript": "^2.5.1", "less": "^3.11.3 || ^4.0.0", "postcss": "^7 || ^8", - "postcss-load-config": "^2.1.0 || ^3.0.0 || ^4.0.0", + "postcss-load-config": "^2.1.0 || ^3.0.0 || ^4.0.0 || ^5.0.0", "pug": "^3.0.0", "sass": "^1.26.8", "stylus": "^0.55.0", "sugarss": "^2.0.0 || ^3.0.0 || ^4.0.0", - "svelte": "^3.23.0 || ^4.0.0-next.0 || ^4.0.0", + "svelte": "^3.23.0 || ^4.0.0-next.0 || ^4.0.0 || ^5.0.0-next.0", "typescript": ">=3.9.5 || ^4.0.0 || ^5.0.0" }, "peerDependenciesMeta": { @@ -2599,29 +2427,15 @@ } } }, - "node_modules/svelte-preprocess/node_modules/magic-string": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz", - "integrity": "sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==", - "dev": true, - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.4.13" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/svelte-qrcode": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/svelte-qrcode/-/svelte-qrcode-1.0.0.tgz", - "integrity": "sha512-WrOvyyxtUzu32gVIDxcFMy0A7uUpbl/8yHaTNOsUaI8W5V4wa7AmReCjffhNY2aS42CqCLJ6qdwUoj/KxmeZzA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/svelte2tsx": { "version": "0.1.193", - "resolved": "https://registry.npmjs.org/svelte2tsx/-/svelte2tsx-0.1.193.tgz", - "integrity": "sha512-vzy4YQNYDnoqp2iZPnJy7kpPAY6y121L0HKrSBjU/IWW7DQ6T7RMJed2VVHFmVYm0zAGYMDl9urPc6R4DDUyhg==", "dev": true, + "license": "MIT", "dependencies": { "dedent-js": "^1.0.1", "pascal-case": "^3.1.1" @@ -2633,8 +2447,7 @@ }, "node_modules/svgo": { "version": "2.8.0", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", - "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "license": "MIT", "dependencies": { "@trysound/sax": "0.2.0", "commander": "^7.2.0", @@ -2652,20 +2465,19 @@ } }, "node_modules/tailwindcss": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.5.tgz", - "integrity": "sha512-5SEZU4J7pxZgSkv7FP1zY8i2TIAOooNZ1e/OGtxIEv6GltpoiXUqWvLy89+a10qYTB1N5Ifkuw9lqQkN9sscvA==", + "version": "3.3.2", "dev": true, + "license": "MIT", "dependencies": { "@alloc/quick-lru": "^5.2.0", "arg": "^5.0.2", "chokidar": "^3.5.3", "didyoumean": "^1.2.2", "dlv": "^1.1.3", - "fast-glob": "^3.3.0", + "fast-glob": "^3.2.12", "glob-parent": "^6.0.2", "is-glob": "^4.0.3", - "jiti": "^1.19.1", + "jiti": "^1.18.2", "lilconfig": "^2.1.0", "micromatch": "^4.0.5", "normalize-path": "^3.0.0", @@ -2677,6 +2489,7 @@ "postcss-load-config": "^4.0.1", "postcss-nested": "^6.0.1", "postcss-selector-parser": "^6.0.11", + "postcss-value-parser": "^4.2.0", "resolve": "^1.22.2", "sucrase": "^3.32.0" }, @@ -2688,20 +2501,29 @@ "node": ">=14.0.0" } }, + "node_modules/tailwindcss/node_modules/glob-parent": { + "version": "6.0.2", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/thenify": { "version": "3.3.1", - "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", - "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", "dev": true, + "license": "MIT", "dependencies": { "any-promise": "^1.0.0" } }, "node_modules/thenify-all": { "version": "1.6.0", - "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", - "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", "dev": true, + "license": "MIT", "dependencies": { "thenify": ">= 3.1.0 < 4" }, @@ -2723,21 +2545,18 @@ }, "node_modules/ts-interface-checker": { "version": "0.1.13", - "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", - "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", - "dev": true + "dev": true, + "license": "Apache-2.0" }, "node_modules/tslib": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", - "dev": true + "version": "2.6.0", + "dev": true, + "license": "0BSD" }, "node_modules/typescript": { "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true, + "license": "Apache-2.0", "peer": true, "bin": { "tsc": "bin/tsc", @@ -2747,16 +2566,8 @@ "node": ">=4.2.0" } }, - "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "dev": true - }, "node_modules/update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", + "version": "1.0.11", "funding": [ { "type": "opencollective", @@ -2771,6 +2582,7 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { "escalade": "^3.1.1", "picocolors": "^1.0.0" @@ -2784,25 +2596,12 @@ }, "node_modules/util-deprecate": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + "license": "MIT" }, "node_modules/vite": { -<<<<<<< HEAD -<<<<<<< HEAD - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.0.tgz", - "integrity": "sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==", -======= - "version": "3.2.8", - "resolved": "https://registry.npmjs.org/vite/-/vite-3.2.8.tgz", - "integrity": "sha512-EtQU16PLIJpAZol2cTLttNP1mX6L0SyI0pgQB1VOoWeQnMSvtiwovV3D6NcjN8CZQWWyESD2v5NGnpz5RvgOZA==", ->>>>>>> main -======= - "version": "3.2.10", - "resolved": "https://registry.npmjs.org/vite/-/vite-3.2.10.tgz", - "integrity": "sha512-Dx3olBo/ODNiMVk/cA5Yft9Ws+snLOXrhLtrI3F4XLt4syz2Yg8fayZMWScPKoz12v5BUv7VEmQHnsfpY80fYw==", ->>>>>>> main + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.3.tgz", + "integrity": "sha512-kQL23kMeX92v3ph7IauVkXkikdDRsYMGTVl5KY2E9OY4ONLvkHf04MDTbnfo6NKxZiDLWzVpP5oTa8hQD8U3dg==", "dev": true, "dependencies": { "esbuild": "^0.18.10", @@ -2855,12 +2654,11 @@ } }, "node_modules/vitefu": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-0.2.5.tgz", - "integrity": "sha512-SgHtMLoqaeeGnd2evZ849ZbACbnwQCIwRH57t18FxcXoZop0uQu0uzlIhJBlF/eWVzuce0sHeqPcDo+evVcg8Q==", + "version": "0.2.4", "dev": true, + "license": "MIT", "peerDependencies": { - "vite": "^3.0.0 || ^4.0.0 || ^5.0.0" + "vite": "^3.0.0 || ^4.0.0" }, "peerDependenciesMeta": { "vite": { @@ -2870,14 +2668,12 @@ }, "node_modules/wrappy": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/yaml": { "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "license": "ISC", "engines": { "node": ">= 6" } @@ -2886,8 +2682,6 @@ "dependencies": { "@alloc/quick-lru": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", - "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", "dev": true }, "@esbuild/android-arm": { @@ -3046,8 +2840,6 @@ }, "@jridgewell/gen-mapping": { "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", "dev": true, "requires": { "@jridgewell/set-array": "^1.0.1", @@ -3056,37 +2848,35 @@ } }, "@jridgewell/resolve-uri": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "version": "3.1.0", "dev": true }, "@jridgewell/set-array": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", "dev": true }, "@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", "dev": true }, "@jridgewell/trace-mapping": { - "version": "0.3.20", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", - "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", + "version": "0.3.18", "dev": true, "requires": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + }, + "dependencies": { + "@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "dev": true + } } }, "@nodelib/fs.scandir": { "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, "requires": { "@nodelib/fs.stat": "2.0.5", @@ -3095,14 +2885,10 @@ }, "@nodelib/fs.stat": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true }, "@nodelib/fs.walk": { "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, "requires": { "@nodelib/fs.scandir": "2.1.5", @@ -3110,9 +2896,9 @@ } }, "@sveltejs/vite-plugin-svelte": { - "version": "2.4.6", - "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-2.4.6.tgz", - "integrity": "sha512-zO79p0+DZnXPnF0ltIigWDx/ux7Ni+HRaFOw720Qeivc1azFUrJxTl0OryXVibYNx1hCboGia1NRV3x8RNv4cA==", + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-2.5.3.tgz", + "integrity": "sha512-erhNtXxE5/6xGZz/M9eXsmI7Pxa6MS7jyTy06zN3Ck++ldrppOnOlJwHHTsMC7DHDQdgUp4NAc4cDNQ9eGdB/w==", "dev": true, "requires": { "@sveltejs/vite-plugin-svelte-inspector": "^1.0.4", @@ -3134,53 +2920,36 @@ } }, "@tailwindcss/forms": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.6.tgz", - "integrity": "sha512-Fw+2BJ0tmAwK/w01tEFL5TiaJBX1NLT1/YbWgvm7ws3Qcn11kiXxzNTEQDMs5V3mQemhB56l3u0i9dwdzSQldA==", + "version": "0.5.3", "dev": true, "requires": { "mini-svg-data-uri": "^1.2.3" } }, "@trysound/sax": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", - "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==" + "version": "0.2.0" }, "@types/http-proxy": { - "version": "1.17.13", - "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.13.tgz", - "integrity": "sha512-GkhdWcMNiR5QSQRYnJ+/oXzu0+7JJEPC8vkWXK351BkhjraZF+1W13CUYARUvX9+NqIU2n6YHA4iwywsc/M6Sw==", + "version": "1.17.11", "dev": true, "requires": { "@types/node": "*" } }, "@types/node": { - "version": "20.8.9", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.9.tgz", - "integrity": "sha512-UzykFsT3FhHb1h7yD4CA4YhBHq545JC0YnEz41xkipN88eKQtL6rSgocL5tbAP6Ola9Izm/Aw4Ora8He4x0BHg==", - "dev": true, - "requires": { - "undici-types": "~5.26.4" - } + "version": "20.3.3", + "dev": true }, "@types/pug": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/@types/pug/-/pug-2.0.8.tgz", - "integrity": "sha512-QzhsZ1dMGyJbn/D9V80zp4GIA4J4rfAjCCxc3MP+new0E8dyVdSkR735Lx+n3LIaHNFcjHL5+TbziccuT+fdoQ==", + "version": "2.0.6", "dev": true }, "any-promise": { "version": "1.3.0", - "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", - "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", "dev": true }, "anymatch": { "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, "requires": { "normalize-path": "^3.0.0", @@ -3189,19 +2958,15 @@ }, "arg": { "version": "5.0.2", - "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", - "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", "dev": true }, "autoprefixer": { - "version": "10.4.16", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.16.tgz", - "integrity": "sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==", + "version": "10.4.14", "dev": true, "requires": { - "browserslist": "^4.21.10", - "caniuse-lite": "^1.0.30001538", - "fraction.js": "^4.3.6", + "browserslist": "^4.21.5", + "caniuse-lite": "^1.0.30001464", + "fraction.js": "^4.2.0", "normalize-range": "^0.1.2", "picocolors": "^1.0.0", "postcss-value-parser": "^4.2.0" @@ -3209,25 +2974,17 @@ }, "balanced-match": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true }, "binary-extensions": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", "dev": true }, "boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" + "version": "1.0.0" }, "brace-expansion": { "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "requires": { "balanced-match": "^1.0.0", @@ -3235,41 +2992,35 @@ } }, "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "requires": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" } }, "browserslist": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz", - "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==", + "version": "4.21.9", "requires": { - "caniuse-lite": "^1.0.30001541", - "electron-to-chromium": "^1.4.535", - "node-releases": "^2.0.13", - "update-browserslist-db": "^1.0.13" + "caniuse-lite": "^1.0.30001503", + "electron-to-chromium": "^1.4.431", + "node-releases": "^2.0.12", + "update-browserslist-db": "^1.0.11" } }, "buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-1.0.0.tgz", + "integrity": "sha512-Db1SbgBS/fg/392AblrMJk97KggmvYhr4pB5ZIMTWtaivCPMWLkmb7m21cJvpvgK+J3nsU2CmmixNBZx4vFj/w==", "dev": true }, "camelcase-css": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", - "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", "dev": true }, "caniuse-api": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", - "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", "requires": { "browserslist": "^4.0.0", "caniuse-lite": "^1.0.0", @@ -3278,14 +3029,10 @@ } }, "caniuse-lite": { - "version": "1.0.30001555", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001555.tgz", - "integrity": "sha512-NzbUFKUnJ3DTcq6YyZB6+qqhfD112uR3uoEnkmfzm2wVzUNsFkU7AwBjKQ654Sp5cau0JxhFyRSn/tQZ+XfygA==" + "version": "1.0.30001509" }, "chokidar": { "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", "dev": true, "requires": { "anymatch": "~3.1.2", @@ -3296,45 +3043,24 @@ "is-glob": "~4.0.1", "normalize-path": "~3.0.0", "readdirp": "~3.6.0" - }, - "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - } } }, "colord": { - "version": "2.9.3", - "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", - "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==" + "version": "2.9.3" }, "commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==" + "version": "7.2.0" }, "concat-map": { "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", "dev": true }, "css-declaration-sorter": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.1.tgz", - "integrity": "sha512-rtdthzxKuyq6IzqX6jEcIzQF/YqccluefyCYheovBOLhFT/drQA9zj/UbRAa9J7C0o6EG6u3E6g+vKkay7/k3g==", + "version": "6.4.0", "requires": {} }, "css-select": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", - "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", "requires": { "boolbase": "^1.0.0", "css-what": "^6.0.1", @@ -3345,27 +3071,19 @@ }, "css-tree": { "version": "1.1.3", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", - "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", "requires": { "mdn-data": "2.0.14", "source-map": "^0.6.1" } }, "css-what": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", - "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==" + "version": "6.1.0" }, "cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==" + "version": "3.0.0" }, "cssnano": { "version": "5.1.15", - "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", - "integrity": "sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==", "requires": { "cssnano-preset-default": "^5.2.14", "lilconfig": "^2.0.3", @@ -3374,8 +3092,6 @@ }, "cssnano-preset-default": { "version": "5.2.14", - "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz", - "integrity": "sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==", "requires": { "css-declaration-sorter": "^6.3.1", "cssnano-utils": "^3.1.0", @@ -3410,22 +3126,16 @@ }, "cssnano-utils": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", - "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", "requires": {} }, "csso": { "version": "4.2.0", - "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", - "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", "requires": { "css-tree": "^1.1.2" } }, "debug": { "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "requires": { "ms": "2.1.2" @@ -3433,38 +3143,26 @@ }, "dedent-js": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dedent-js/-/dedent-js-1.0.1.tgz", - "integrity": "sha512-OUepMozQULMLUmhxS95Vudo0jb0UchLimi3+pQ2plj61Fcy8axbP9hbiD4Sz6DPqn6XG3kfmziVfQ1rSys5AJQ==", "dev": true }, "deepmerge": { "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true }, "detect-indent": { "version": "6.1.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", - "integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==", "dev": true }, "didyoumean": { "version": "1.2.2", - "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", - "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", "dev": true }, "dlv": { "version": "1.1.3", - "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", - "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", "dev": true }, "dom-serializer": { "version": "1.4.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", - "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", "requires": { "domelementtype": "^2.0.1", "domhandler": "^4.2.0", @@ -3472,22 +3170,16 @@ } }, "domelementtype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", - "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==" + "version": "2.3.0" }, "domhandler": { "version": "4.3.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", - "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", "requires": { "domelementtype": "^2.2.0" } }, "domutils": { "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", "requires": { "dom-serializer": "^1.0.1", "domelementtype": "^2.2.0", @@ -3495,14 +3187,10 @@ } }, "electron-to-chromium": { - "version": "1.4.569", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.569.tgz", - "integrity": "sha512-LsrJjZ0IbVy12ApW3gpYpcmHS3iRxH4bkKOW98y1/D+3cvDUWGcbzbsFinfUS8knpcZk/PG/2p/RnkMCYN7PVg==" + "version": "1.4.447" }, "entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==" + "version": "2.2.0" }, "es6-promise": { "version": "3.3.1", @@ -3541,20 +3229,14 @@ } }, "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" + "version": "3.1.1" }, "eventemitter3": { "version": "4.0.7", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", "dev": true }, "fast-glob": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", - "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "version": "3.3.0", "dev": true, "requires": { "@nodelib/fs.stat": "^2.0.2", @@ -3562,65 +3244,36 @@ "glob-parent": "^5.1.2", "merge2": "^1.3.0", "micromatch": "^4.0.4" - }, - "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - } } }, "fastq": { "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", "dev": true, "requires": { "reusify": "^1.0.4" } }, "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "requires": { "to-regex-range": "^5.0.1" } }, "follow-redirects": { -<<<<<<< HEAD -<<<<<<< HEAD - "version": "1.15.3", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", - "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", -======= - "version": "1.15.4", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz", - "integrity": "sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==", ->>>>>>> main -======= "version": "1.15.6", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", ->>>>>>> main "dev": true }, "fraction.js": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", - "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==", + "version": "4.2.0", "dev": true }, "fs.realpath": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", "dev": true }, "fsevents": { @@ -3631,9 +3284,7 @@ "optional": true }, "function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "version": "1.1.1", "dev": true }, "glob": { @@ -3651,12 +3302,10 @@ } }, "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "version": "5.1.2", "dev": true, "requires": { - "is-glob": "^4.0.3" + "is-glob": "^4.0.1" } }, "graceful-fs": { @@ -3665,19 +3314,15 @@ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true }, - "hasown": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", - "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "has": { + "version": "1.0.3", "dev": true, "requires": { - "function-bind": "^1.1.2" + "function-bind": "^1.1.1" } }, "http-proxy": { "version": "1.18.1", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", - "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", "dev": true, "requires": { "eventemitter3": "^4.0.0", @@ -3687,8 +3332,6 @@ }, "http-proxy-middleware": { "version": "2.0.6", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", - "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", "dev": true, "requires": { "@types/http-proxy": "^1.17.8", @@ -3698,10 +3341,14 @@ "micromatch": "^4.0.2" } }, + "immutable": { + "version": "4.3.0", + "dev": true, + "optional": true, + "peer": true + }, "inflight": { "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "dev": true, "requires": { "once": "^1.3.0", @@ -3710,38 +3357,28 @@ }, "inherits": { "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, "is-binary-path": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "dev": true, "requires": { "binary-extensions": "^2.0.0" } }, "is-core-module": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", - "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "version": "2.12.1", "dev": true, "requires": { - "hasown": "^2.0.0" + "has": "^1.0.3" } }, "is-extglob": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true }, "is-glob": { "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, "requires": { "is-extglob": "^2.1.1" @@ -3755,76 +3392,54 @@ }, "is-plain-obj": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", - "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", "dev": true }, "jiti": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.20.0.tgz", - "integrity": "sha512-3TV69ZbrvV6U5DfQimop50jE9Dl6J8O1ja1dvBbMba/sZ3YBEQqJ2VZRoQPVnhlzjNtU1vaXRZVrVjU4qtm8yA==", + "version": "1.18.2", "dev": true }, "kleur": { "version": "4.1.5", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", - "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", "dev": true }, "lilconfig": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", - "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==" + "version": "2.1.0" }, "lines-and-columns": { "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", "dev": true }, "lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==" + "version": "4.1.2" }, "lodash.uniq": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", - "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==" + "version": "4.5.0" }, "lower-case": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", - "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", "dev": true, "requires": { "tslib": "^2.0.3" } }, "magic-string": { - "version": "0.30.5", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.5.tgz", - "integrity": "sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==", + "version": "0.30.11", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.11.tgz", + "integrity": "sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==", "dev": true, "requires": { - "@jridgewell/sourcemap-codec": "^1.4.15" + "@jridgewell/sourcemap-codec": "^1.5.0" } }, "mdn-data": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", - "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" + "version": "2.0.14" }, "merge2": { "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true }, "micromatch": { "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", "dev": true, "requires": { "braces": "^3.0.2", @@ -3833,20 +3448,14 @@ }, "min-indent": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", - "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", "dev": true }, "mini-svg-data-uri": { "version": "1.4.4", - "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz", - "integrity": "sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==", "dev": true }, "minimatch": { "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, "requires": { "brace-expansion": "^1.1.7" @@ -3869,14 +3478,10 @@ }, "ms": { "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, "mz": { "version": "2.7.0", - "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", - "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", "dev": true, "requires": { "any-promise": "^1.0.0", @@ -3885,14 +3490,10 @@ } }, "nanoid": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", - "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==" + "version": "3.3.6" }, "no-case": { "version": "3.0.4", - "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", - "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", "dev": true, "requires": { "lower-case": "^2.0.2", @@ -3900,51 +3501,35 @@ } }, "node-releases": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", - "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==" + "version": "2.0.12" }, "normalize-path": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true }, "normalize-range": { "version": "0.1.2", - "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", "dev": true }, "normalize-url": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==" + "version": "6.1.0" }, "nth-check": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", "requires": { "boolbase": "^1.0.0" } }, "object-assign": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "dev": true }, "object-hash": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", - "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", "dev": true }, "once": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, "requires": { "wrappy": "1" @@ -3952,8 +3537,6 @@ }, "pascal-case": { "version": "3.1.2", - "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", - "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", "dev": true, "requires": { "no-case": "^3.0.4", @@ -3962,43 +3545,29 @@ }, "path-is-absolute": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "dev": true }, "path-parse": { "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "version": "1.0.0" }, "picomatch": { "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true }, "pify": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", "dev": true }, "pirates": { "version": "4.0.6", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", - "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", "dev": true }, "postcss": { "version": "8.4.31", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", - "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", "requires": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", @@ -4007,8 +3576,6 @@ }, "postcss-calc": { "version": "8.2.4", - "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", - "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", "requires": { "postcss-selector-parser": "^6.0.9", "postcss-value-parser": "^4.2.0" @@ -4016,8 +3583,6 @@ }, "postcss-colormin": { "version": "5.3.1", - "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz", - "integrity": "sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==", "requires": { "browserslist": "^4.21.4", "caniuse-api": "^3.0.0", @@ -4027,8 +3592,6 @@ }, "postcss-convert-values": { "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz", - "integrity": "sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==", "requires": { "browserslist": "^4.21.4", "postcss-value-parser": "^4.2.0" @@ -4036,32 +3599,22 @@ }, "postcss-discard-comments": { "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", - "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", "requires": {} }, "postcss-discard-duplicates": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", - "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", "requires": {} }, "postcss-discard-empty": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", - "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", "requires": {} }, "postcss-discard-overridden": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", - "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", "requires": {} }, "postcss-import": { "version": "15.1.0", - "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", - "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", "dev": true, "requires": { "postcss-value-parser": "^4.0.0", @@ -4071,8 +3624,6 @@ }, "postcss-js": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", - "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", "dev": true, "requires": { "camelcase-css": "^2.0.1" @@ -4080,8 +3631,6 @@ }, "postcss-load-config": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.1.tgz", - "integrity": "sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==", "dev": true, "requires": { "lilconfig": "^2.0.5", @@ -4089,17 +3638,13 @@ }, "dependencies": { "yaml": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.3.tgz", - "integrity": "sha512-zw0VAJxgeZ6+++/su5AFoqBbZbrEakwu+X0M5HmcwUiBL7AzcuPKjj5we4xfQLp78LkEMpD0cOnUhmgOVy3KdQ==", + "version": "2.3.1", "dev": true } } }, "postcss-merge-longhand": { "version": "5.1.7", - "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz", - "integrity": "sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==", "requires": { "postcss-value-parser": "^4.2.0", "stylehacks": "^5.1.1" @@ -4107,8 +3652,6 @@ }, "postcss-merge-rules": { "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz", - "integrity": "sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==", "requires": { "browserslist": "^4.21.4", "caniuse-api": "^3.0.0", @@ -4118,16 +3661,12 @@ }, "postcss-minify-font-values": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", - "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", "requires": { "postcss-value-parser": "^4.2.0" } }, "postcss-minify-gradients": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", - "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", "requires": { "colord": "^2.9.1", "cssnano-utils": "^3.1.0", @@ -4136,8 +3675,6 @@ }, "postcss-minify-params": { "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz", - "integrity": "sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==", "requires": { "browserslist": "^4.21.4", "cssnano-utils": "^3.1.0", @@ -4146,16 +3683,12 @@ }, "postcss-minify-selectors": { "version": "5.2.1", - "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", - "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", "requires": { "postcss-selector-parser": "^6.0.5" } }, "postcss-nested": { "version": "6.0.1", - "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz", - "integrity": "sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==", "dev": true, "requires": { "postcss-selector-parser": "^6.0.11" @@ -4163,54 +3696,40 @@ }, "postcss-normalize-charset": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", - "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", "requires": {} }, "postcss-normalize-display-values": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", - "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", "requires": { "postcss-value-parser": "^4.2.0" } }, "postcss-normalize-positions": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", - "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", "requires": { "postcss-value-parser": "^4.2.0" } }, "postcss-normalize-repeat-style": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", - "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", "requires": { "postcss-value-parser": "^4.2.0" } }, "postcss-normalize-string": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", - "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", "requires": { "postcss-value-parser": "^4.2.0" } }, "postcss-normalize-timing-functions": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", - "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", "requires": { "postcss-value-parser": "^4.2.0" } }, "postcss-normalize-unicode": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz", - "integrity": "sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==", "requires": { "browserslist": "^4.21.4", "postcss-value-parser": "^4.2.0" @@ -4218,8 +3737,6 @@ }, "postcss-normalize-url": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", - "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", "requires": { "normalize-url": "^6.0.1", "postcss-value-parser": "^4.2.0" @@ -4227,16 +3744,12 @@ }, "postcss-normalize-whitespace": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", - "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", "requires": { "postcss-value-parser": "^4.2.0" } }, "postcss-ordered-values": { "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", - "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", "requires": { "cssnano-utils": "^3.1.0", "postcss-value-parser": "^4.2.0" @@ -4244,8 +3757,6 @@ }, "postcss-reduce-initial": { "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz", - "integrity": "sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==", "requires": { "browserslist": "^4.21.4", "caniuse-api": "^3.0.0" @@ -4253,16 +3764,12 @@ }, "postcss-reduce-transforms": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", - "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", "requires": { "postcss-value-parser": "^4.2.0" } }, "postcss-selector-parser": { "version": "6.0.13", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", - "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", "requires": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" @@ -4270,8 +3777,6 @@ }, "postcss-svgo": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", - "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", "requires": { "postcss-value-parser": "^4.2.0", "svgo": "^2.7.0" @@ -4279,27 +3784,19 @@ }, "postcss-unique-selectors": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", - "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", "requires": { "postcss-selector-parser": "^6.0.5" } }, "postcss-value-parser": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" + "version": "4.2.0" }, "queue-microtask": { "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", "dev": true }, "read-cache": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", - "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", "dev": true, "requires": { "pify": "^2.3.0" @@ -4307,8 +3804,6 @@ }, "readdirp": { "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", "dev": true, "requires": { "picomatch": "^2.2.1" @@ -4316,25 +3811,19 @@ }, "requires-port": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", "dev": true }, "resolve": { - "version": "1.22.8", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", - "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "version": "1.22.2", "dev": true, "requires": { - "is-core-module": "^2.13.0", + "is-core-module": "^2.11.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" } }, "reusify": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", "dev": true }, "rimraf": { @@ -4357,8 +3846,6 @@ }, "run-parallel": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, "requires": { "queue-microtask": "^1.2.2" @@ -4376,37 +3863,40 @@ "rimraf": "^2.5.2" } }, + "sass": { + "version": "1.63.6", + "dev": true, + "optional": true, + "peer": true, + "requires": { + "chokidar": ">=3.0.0 <4.0.0", + "immutable": "^4.0.0", + "source-map-js": ">=0.6.2 <2.0.0" + } + }, "sorcery": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/sorcery/-/sorcery-0.11.0.tgz", - "integrity": "sha512-J69LQ22xrQB1cIFJhPfgtLuI6BpWRiWu1Y3vSsIwK/eAScqJxd/+CJlUuHQRdX2C9NGFamq+KqNywGgaThwfHw==", + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/sorcery/-/sorcery-0.11.1.tgz", + "integrity": "sha512-o7npfeJE6wi6J9l0/5LKshFzZ2rMatRiCDwYeDQaOzqdzRJwALhX7mk/A/ecg6wjMu7wdZbmXfD2S/vpOg0bdQ==", "dev": true, "requires": { "@jridgewell/sourcemap-codec": "^1.4.14", - "buffer-crc32": "^0.2.5", + "buffer-crc32": "^1.0.0", "minimist": "^1.2.0", "sander": "^0.5.0" } }, "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "version": "0.6.1" }, "source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" + "version": "1.0.2" }, "stable": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", - "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==" + "version": "0.1.8" }, "strip-indent": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", - "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", "dev": true, "requires": { "min-indent": "^1.0.0" @@ -4414,17 +3904,13 @@ }, "stylehacks": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", - "integrity": "sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==", "requires": { "browserslist": "^4.21.4", "postcss-selector-parser": "^6.0.4" } }, "sucrase": { - "version": "3.34.0", - "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.34.0.tgz", - "integrity": "sha512-70/LQEZ07TEcxiU2dz51FKaE6hCTWC6vr7FOk3Gr0U60C3shtAN+H+BFr9XlYe5xqf3RA8nrc+VIwzCfnxuXJw==", + "version": "3.32.0", "dev": true, "requires": { "@jridgewell/gen-mapping": "^0.3.2", @@ -4438,14 +3924,10 @@ "dependencies": { "commander": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", "dev": true }, "glob": { "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", "dev": true, "requires": { "fs.realpath": "^1.0.0", @@ -4460,14 +3942,10 @@ }, "supports-preserve-symlinks-flag": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true }, "svelte": { "version": "3.59.2", - "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.59.2.tgz", - "integrity": "sha512-vzSyuGr3eEoAtT/A6bmajosJZIUWySzY2CzB3w2pgPvnkUjGqlDnsNnA0PMO+mMAhuyMul6C2uuZzY6ELSkzyA==", "dev": true }, "svelte-hmr": { @@ -4479,47 +3957,30 @@ }, "svelte-navigator": { "version": "3.2.2", - "resolved": "https://registry.npmjs.org/svelte-navigator/-/svelte-navigator-3.2.2.tgz", - "integrity": "sha512-Xio4ohLUG1nQJ+ENNbLphXXu9L189fnI1WGg+2Q3CIMPe8Jm2ipytKQthdBs8t0mN7p3Eb03SE9hq0xZAqwQNQ==", "dev": true, "requires": { "svelte2tsx": "^0.1.151" } }, "svelte-preprocess": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-5.0.4.tgz", - "integrity": "sha512-ABia2QegosxOGsVlsSBJvoWeXy1wUKSfF7SWJdTjLAbx/Y3SrVevvvbFNQqrSJw89+lNSsM58SipmZJ5SRi5iw==", + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-5.1.4.tgz", + "integrity": "sha512-IvnbQ6D6Ao3Gg6ftiM5tdbR6aAETwjhHV+UKGf5bHGYR69RQvF1ho0JKPcbUON4vy4R7zom13jPjgdOWCQ5hDA==", "dev": true, "requires": { "@types/pug": "^2.0.6", "detect-indent": "^6.1.0", - "magic-string": "^0.27.0", + "magic-string": "^0.30.5", "sorcery": "^0.11.0", "strip-indent": "^3.0.0" - }, - "dependencies": { - "magic-string": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz", - "integrity": "sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==", - "dev": true, - "requires": { - "@jridgewell/sourcemap-codec": "^1.4.13" - } - } } }, "svelte-qrcode": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/svelte-qrcode/-/svelte-qrcode-1.0.0.tgz", - "integrity": "sha512-WrOvyyxtUzu32gVIDxcFMy0A7uUpbl/8yHaTNOsUaI8W5V4wa7AmReCjffhNY2aS42CqCLJ6qdwUoj/KxmeZzA==", "dev": true }, "svelte2tsx": { "version": "0.1.193", - "resolved": "https://registry.npmjs.org/svelte2tsx/-/svelte2tsx-0.1.193.tgz", - "integrity": "sha512-vzy4YQNYDnoqp2iZPnJy7kpPAY6y121L0HKrSBjU/IWW7DQ6T7RMJed2VVHFmVYm0zAGYMDl9urPc6R4DDUyhg==", "dev": true, "requires": { "dedent-js": "^1.0.1", @@ -4528,8 +3989,6 @@ }, "svgo": { "version": "2.8.0", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", - "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", "requires": { "@trysound/sax": "0.2.0", "commander": "^7.2.0", @@ -4541,9 +4000,7 @@ } }, "tailwindcss": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.5.tgz", - "integrity": "sha512-5SEZU4J7pxZgSkv7FP1zY8i2TIAOooNZ1e/OGtxIEv6GltpoiXUqWvLy89+a10qYTB1N5Ifkuw9lqQkN9sscvA==", + "version": "3.3.2", "dev": true, "requires": { "@alloc/quick-lru": "^5.2.0", @@ -4551,10 +4008,10 @@ "chokidar": "^3.5.3", "didyoumean": "^1.2.2", "dlv": "^1.1.3", - "fast-glob": "^3.3.0", + "fast-glob": "^3.2.12", "glob-parent": "^6.0.2", "is-glob": "^4.0.3", - "jiti": "^1.19.1", + "jiti": "^1.18.2", "lilconfig": "^2.1.0", "micromatch": "^4.0.5", "normalize-path": "^3.0.0", @@ -4566,14 +4023,22 @@ "postcss-load-config": "^4.0.1", "postcss-nested": "^6.0.1", "postcss-selector-parser": "^6.0.11", + "postcss-value-parser": "^4.2.0", "resolve": "^1.22.2", "sucrase": "^3.32.0" + }, + "dependencies": { + "glob-parent": { + "version": "6.0.2", + "dev": true, + "requires": { + "is-glob": "^4.0.3" + } + } } }, "thenify": { "version": "3.3.1", - "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", - "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", "dev": true, "requires": { "any-promise": "^1.0.0" @@ -4581,8 +4046,6 @@ }, "thenify-all": { "version": "1.6.0", - "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", - "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", "dev": true, "requires": { "thenify": ">= 3.1.0 < 4" @@ -4599,59 +4062,31 @@ }, "ts-interface-checker": { "version": "0.1.13", - "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", - "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", "dev": true }, "tslib": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "version": "2.6.0", "dev": true }, "typescript": { "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true, "peer": true }, - "undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "dev": true - }, "update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", + "version": "1.0.11", "requires": { "escalade": "^3.1.1", "picocolors": "^1.0.0" } }, "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + "version": "1.0.2" }, "vite": { -<<<<<<< HEAD -<<<<<<< HEAD - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.0.tgz", - "integrity": "sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==", -======= - "version": "3.2.8", - "resolved": "https://registry.npmjs.org/vite/-/vite-3.2.8.tgz", - "integrity": "sha512-EtQU16PLIJpAZol2cTLttNP1mX6L0SyI0pgQB1VOoWeQnMSvtiwovV3D6NcjN8CZQWWyESD2v5NGnpz5RvgOZA==", ->>>>>>> main -======= - "version": "3.2.10", - "resolved": "https://registry.npmjs.org/vite/-/vite-3.2.10.tgz", - "integrity": "sha512-Dx3olBo/ODNiMVk/cA5Yft9Ws+snLOXrhLtrI3F4XLt4syz2Yg8fayZMWScPKoz12v5BUv7VEmQHnsfpY80fYw==", ->>>>>>> main + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.3.tgz", + "integrity": "sha512-kQL23kMeX92v3ph7IauVkXkikdDRsYMGTVl5KY2E9OY4ONLvkHf04MDTbnfo6NKxZiDLWzVpP5oTa8hQD8U3dg==", "dev": true, "requires": { "esbuild": "^0.18.10", @@ -4661,22 +4096,16 @@ } }, "vitefu": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-0.2.5.tgz", - "integrity": "sha512-SgHtMLoqaeeGnd2evZ849ZbACbnwQCIwRH57t18FxcXoZop0uQu0uzlIhJBlF/eWVzuce0sHeqPcDo+evVcg8Q==", + "version": "0.2.4", "dev": true, "requires": {} }, "wrappy": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "dev": true }, "yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==" + "version": "1.10.2" } } }