mirror of
https://github.com/luc-github/ESP3D-WEBUI.git
synced 2026-03-03 14:44:03 +01:00
1 line
137 KiB
HTML
1 line
137 KiB
HTML
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>ESP3D</title><style type="text/css">/*! Spectre.css v0.5.9 | MIT License | github.com/picturepan2/spectre */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}hr{box-sizing:content-box;height:0;overflow:visible}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}address{font-style:normal}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:"SF Mono","Segoe UI Mono","Roboto Mono",Menlo,Courier,monospace;font-size:1em}dfn{font-style:italic}small{font-size:80%;font-weight:400}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}fieldset{border:0;margin:0;padding:0}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item;outline:0}canvas{display:inline-block}template{display:none}[hidden]{display:none}*,::after,::before{box-sizing:inherit}html{box-sizing:border-box;font-size:20px;line-height:1.5;-webkit-tap-highlight-color:transparent}body{background:#fff;color:#3b4351;font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;font-size:.8rem;overflow-x:hidden;text-rendering:optimizeLegibility}a{color:#5755d9;outline:0;text-decoration:none}a:focus{box-shadow:0 0 0 .1rem rgba(87,85,217,.2)}a.active,a:active,a:focus,a:hover{color:#302ecd;text-decoration:underline}a:visited{color:#807fe2}h1,h2,h3,h4,h5,h6{color:inherit;font-weight:500;line-height:1.2;margin-bottom:.5em;margin-top:0}.h1,.h2,.h3,.h4,.h5,.h6{font-weight:500}.h1,h1{font-size:2rem}.h2,h2{font-size:1.6rem}.h3,h3{font-size:1.4rem}.h4,h4{font-size:1.2rem}.h5,h5{font-size:1rem}.h6,h6{font-size:.8rem}p{margin:0 0 1.2rem}a,ins,u{text-decoration-skip:ink edges}abbr[title]{border-bottom:.05rem dotted;cursor:help;text-decoration:none}kbd{border-radius:.2rem;line-height:1.25;padding:.1rem .2rem;background:#303742;color:#fff;font-size:.7rem}mark{background:#ffe9b3;color:#3b4351;border-bottom:.05rem solid #ffd367;border-radius:.2rem;padding:.05rem .1rem 0}blockquote{border-left:.1rem solid #dadee4;margin-left:0;padding:.4rem .8rem}blockquote p:last-child{margin-bottom:0}ol,ul{margin:.8rem 0 .8rem .8rem;padding:0}ol ol,ol ul,ul ol,ul ul{margin:.8rem 0 .8rem .8rem}ol li,ul li{margin-top:.4rem}ul{list-style:disc inside}ul ul{list-style-type:circle}ol{list-style:decimal inside}ol ol{list-style-type:lower-alpha}dl dt{font-weight:700}dl dd{margin:.4rem 0 .8rem 0}.lang-zh,.lang-zh-hans,html:lang(zh),html:lang(zh-Hans){font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",sans-serif}.lang-zh-hant,html:lang(zh-Hant){font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang TC","Hiragino Sans CNS","Microsoft JhengHei","Helvetica Neue",sans-serif}.lang-ja,html:lang(ja){font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Hiragino Sans","Hiragino Kaku Gothic Pro","Yu Gothic",YuGothic,Meiryo,"Helvetica Neue",sans-serif}.lang-ko,html:lang(ko){font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Malgun Gothic","Helvetica Neue",sans-serif}.lang-cjk ins,.lang-cjk u,:lang(ja) ins,:lang(ja) u,:lang(zh) ins,:lang(zh) u{border-bottom:.05rem solid;text-decoration:none}.lang-cjk del+del,.lang-cjk del+s,.lang-cjk ins+ins,.lang-cjk ins+u,.lang-cjk s+del,.lang-cjk s+s,.lang-cjk u+ins,.lang-cjk u+u,:lang(ja) del+del,:lang(ja) del+s,:lang(ja) ins+ins,:lang(ja) ins+u,:lang(ja) s+del,:lang(ja) s+s,:lang(ja) u+ins,:lang(ja) u+u,:lang(zh) del+del,:lang(zh) del+s,:lang(zh) ins+ins,:lang(zh) ins+u,:lang(zh) s+del,:lang(zh) s+s,:lang(zh) u+ins,:lang(zh) u+u{margin-left:.125em}.table{border-collapse:collapse;border-spacing:0;width:100%;text-align:left}.table.table-striped tbody tr:nth-of-type(odd){background:#f7f8f9}.table tbody tr.active,.table.table-striped tbody tr.active{background:#eef0f3}.table.table-hover tbody tr:hover{background:#eef0f3}.table.table-scroll{display:block;overflow-x:auto;padding-bottom:.75rem;white-space:nowrap}.table td,.table th{border-bottom:.05rem solid #dadee4;padding:.6rem .4rem}.table th{border-bottom-width:.1rem}.btn{appearance:none;background:#fff;border:.05rem solid #5755d9;border-radius:.2rem;color:#5755d9;cursor:pointer;display:inline-block;font-size:.8rem;height:1.8rem;line-height:1.2rem;outline:0;padding:.25rem .4rem;text-align:center;text-decoration:none;transition:background .2s,border .2s,box-shadow .2s,color .2s;user-select:none;vertical-align:middle;white-space:nowrap}.btn:focus{box-shadow:0 0 0 .1rem rgba(87,85,217,.2)}.btn:focus,.btn:hover{background:#f1f1fc;border-color:#4b48d6;text-decoration:none}.btn.active,.btn:active{background:#4b48d6;border-color:#3634d2;color:#fff;text-decoration:none}.btn.active.loading::after,.btn:active.loading::after{border-bottom-color:#fff;border-left-color:#fff}.btn.disabled,.btn:disabled,.btn[disabled]{cursor:default;opacity:.5;pointer-events:none}.btn.btn-primary{background:#5755d9;border-color:#4b48d6;color:#fff}.btn.btn-primary:focus,.btn.btn-primary:hover{background:#4240d4;border-color:#3634d2;color:#fff}.btn.btn-primary.active,.btn.btn-primary:active{background:#3a38d2;border-color:#302ecd;color:#fff}.btn.btn-primary.loading::after{border-bottom-color:#fff;border-left-color:#fff}.btn.btn-success{background:#32b643;border-color:#2faa3f;color:#fff}.btn.btn-success:focus{box-shadow:0 0 0 .1rem rgba(50,182,67,.2)}.btn.btn-success:focus,.btn.btn-success:hover{background:#30ae40;border-color:#2da23c;color:#fff}.btn.btn-success.active,.btn.btn-success:active{background:#2a9a39;border-color:#278e34;color:#fff}.btn.btn-success.loading::after{border-bottom-color:#fff;border-left-color:#fff}.btn.btn-error{background:red;border-color:#f00000;color:#fff}.btn.btn-error:focus{box-shadow:0 0 0 .1rem rgba(255,0,0,.2)}.btn.btn-error:focus,.btn.btn-error:hover{background:#f50000;border-color:#e60000;color:#fff}.btn.btn-error.active,.btn.btn-error:active{background:#db0000;border-color:#c00;color:#fff}.btn.btn-error.loading::after{border-bottom-color:#fff;border-left-color:#fff}.btn.btn-link{background:0 0;border-color:transparent;color:#5755d9}.btn.btn-link.active,.btn.btn-link:active,.btn.btn-link:focus,.btn.btn-link:hover{color:#302ecd}.btn.btn-sm{font-size:.7rem;height:1.4rem;padding:.05rem .3rem}.btn.btn-lg{font-size:.9rem;height:2rem;padding:.35rem .6rem}.btn.btn-block{display:block;width:100%}.btn.btn-action{width:1.8rem;padding-left:0;padding-right:0}.btn.btn-action.btn-sm{width:1.4rem}.btn.btn-action.btn-lg{width:2rem}.btn.btn-clear{background:0 0;border:0;color:currentColor;height:1rem;line-height:.8rem;margin-left:.2rem;margin-right:-2px;opacity:1;padding:.1rem;text-decoration:none;width:1rem}.btn.btn-clear:focus,.btn.btn-clear:hover{background:rgba(247,248,249,.5);opacity:.95}.btn.btn-clear::before{content:"\2715"}.btn-group{display:inline-flex;flex-wrap:wrap}.btn-group .btn{flex:1 0 auto}.btn-group .btn:first-child:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.btn-group .btn:not(:first-child):not(:last-child){border-radius:0;margin-left:-.05rem}.btn-group .btn:last-child:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-.05rem}.btn-group .btn.active,.btn-group .btn:active,.btn-group .btn:focus,.btn-group .btn:hover{z-index:1}.btn-group.btn-group-block{display:flex}.btn-group.btn-group-block .btn{flex:1 0 0}.form-group:not(:last-child){margin-bottom:.4rem}fieldset{margin-bottom:.8rem}legend{font-size:.9rem;font-weight:500;margin-bottom:.8rem}.form-label{display:block;line-height:1.2rem;padding:.3rem 0}.form-label.label-sm{font-size:.7rem;padding:.1rem 0}.form-label.label-lg{font-size:.9rem;padding:.4rem 0}.form-input{appearance:none;background:#fff;background-image:none;border:.05rem solid #bcc3ce;border-radius:.2rem;color:#3b4351;display:block;font-size:.8rem;height:1.8rem;line-height:1.2rem;max-width:100%;outline:0;padding:.25rem .4rem;position:relative;transition:background .2s,border .2s,box-shadow .2s,color .2s;width:100%}.form-input:focus{box-shadow:0 0 0 .1rem rgba(87,85,217,.2);border-color:#5755d9}.form-input::placeholder{color:#bcc3ce}.form-input.input-sm{font-size:.7rem;height:1.4rem;padding:.05rem .3rem}.form-input.input-lg{font-size:.9rem;height:2rem;padding:.35rem .6rem}.form-input.input-inline{display:inline-block;vertical-align:middle;width:auto}.form-input[type=file]{height:auto}textarea.form-input,textarea.form-input.input-lg,textarea.form-input.input-sm{height:auto}.form-input-hint{color:#bcc3ce;font-size:.7rem;margin-top:.2rem}.has-success .form-input-hint,.is-success+.form-input-hint{color:#32b643}.has-error .form-input-hint,.is-error+.form-input-hint{color:red}.form-select{appearance:none;border:.05rem solid #bcc3ce;border-radius:.2rem;color:inherit;font-size:.8rem;height:1.8rem;line-height:1.2rem;outline:0;padding:.25rem .4rem;vertical-align:middle;width:100%;background:#fff}.form-select:focus{box-shadow:0 0 0 .1rem rgba(87,85,217,.2);border-color:#5755d9}.form-select::-ms-expand{display:none}.form-select.select-sm{font-size:.7rem;height:1.4rem;padding:.05rem 1.1rem .05rem .3rem}.form-select.select-lg{font-size:.9rem;height:2rem;padding:.35rem 1.4rem .35rem .6rem}.form-select[multiple],.form-select[size]{height:auto;padding:.25rem .4rem}.form-select[multiple] option,.form-select[size] option{padding:.1rem .2rem}.form-select:not([multiple]):not([size]){background:#fff url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%204%205'%3E%3Cpath%20fill='%23667189'%20d='M2%200L0%202h4zm0%205L0%203h4z'/%3E%3C/svg%3E") no-repeat right .35rem center/.4rem .5rem;padding-right:1.2rem}.has-icon-left,.has-icon-right{position:relative}.has-icon-left .form-icon,.has-icon-right .form-icon{height:.8rem;margin:0 .25rem;position:absolute;top:50%;transform:translateY(-50%);width:.8rem;z-index:2}.has-icon-left .form-icon{left:.05rem}.has-icon-left .form-input{padding-left:1.3rem}.has-icon-right .form-icon{right:.05rem}.has-icon-right .form-input{padding-right:1.3rem}.form-checkbox,.form-radio,.form-switch{display:block;line-height:1.2rem;margin:.2rem 0;min-height:1.4rem;padding:.1rem .4rem .1rem 1.2rem;position:relative}.form-checkbox input,.form-radio input,.form-switch input{clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;position:absolute;width:1px}.form-checkbox input:focus+.form-icon,.form-radio input:focus+.form-icon,.form-switch input:focus+.form-icon{box-shadow:0 0 0 .1rem rgba(87,85,217,.2);border-color:#5755d9}.form-checkbox input:checked+.form-icon,.form-radio input:checked+.form-icon,.form-switch input:checked+.form-icon{background:#5755d9;border-color:#5755d9}.form-checkbox .form-icon,.form-radio .form-icon,.form-switch .form-icon{border:.05rem solid #bcc3ce;cursor:pointer;display:inline-block;position:absolute;transition:background .2s,border .2s,box-shadow .2s,color .2s}.form-checkbox.input-sm,.form-radio.input-sm,.form-switch.input-sm{font-size:.7rem;margin:0}.form-checkbox.input-lg,.form-radio.input-lg,.form-switch.input-lg{font-size:.9rem;margin:.3rem 0}.form-checkbox .form-icon,.form-radio .form-icon{background:#fff;height:.8rem;left:0;top:.3rem;width:.8rem}.form-checkbox input:active+.form-icon,.form-radio input:active+.form-icon{background:#eef0f3}.form-checkbox .form-icon{border-radius:.2rem}.form-checkbox input:checked+.form-icon::before{background-clip:padding-box;border:.1rem solid #fff;border-left-width:0;border-top-width:0;content:"";height:9px;left:50%;margin-left:-3px;margin-top:-6px;position:absolute;top:50%;transform:rotate(45deg);width:6px}.form-checkbox input:indeterminate+.form-icon{background:#5755d9;border-color:#5755d9}.form-checkbox input:indeterminate+.form-icon::before{background:#fff;content:"";height:2px;left:50%;margin-left:-5px;margin-top:-1px;position:absolute;top:50%;width:10px}.form-radio .form-icon{border-radius:50%}.form-radio input:checked+.form-icon::before{background:#fff;border-radius:50%;content:"";height:6px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:6px}.form-switch{padding-left:2rem}.form-switch .form-icon{background:#bcc3ce;background-clip:padding-box;border-radius:.45rem;height:.9rem;left:0;top:.25rem;width:1.6rem}.form-switch .form-icon::before{background:#fff;border-radius:50%;content:"";display:block;height:.8rem;left:0;position:absolute;top:0;transition:background .2s,border .2s,box-shadow .2s,color .2s,left .2s;width:.8rem}.form-switch input:checked+.form-icon::before{left:14px}.form-switch input:active+.form-icon::before{background:#f7f8f9}.input-group{display:flex}.input-group .input-group-addon{background:#f7f8f9;border:.05rem solid #bcc3ce;border-radius:.2rem;line-height:1.2rem;padding:.25rem .4rem;white-space:nowrap}.input-group .input-group-addon.addon-sm{font-size:.7rem;padding:.05rem .3rem}.input-group .input-group-addon.addon-lg{font-size:.9rem;padding:.35rem .6rem}.input-group .form-input,.input-group .form-select{flex:1 1 auto;width:1%}.input-group .input-group-btn{z-index:1}.input-group .form-input:first-child:not(:last-child),.input-group .form-select:first-child:not(:last-child),.input-group .input-group-addon:first-child:not(:last-child),.input-group .input-group-btn:first-child:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.input-group .form-input:not(:first-child):not(:last-child),.input-group .form-select:not(:first-child):not(:last-child),.input-group .input-group-addon:not(:first-child):not(:last-child),.input-group .input-group-btn:not(:first-child):not(:last-child){border-radius:0;margin-left:-.05rem}.input-group .form-input:last-child:not(:first-child),.input-group .form-select:last-child:not(:first-child),.input-group .input-group-addon:last-child:not(:first-child),.input-group .input-group-btn:last-child:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-.05rem}.input-group .form-input:focus,.input-group .form-select:focus,.input-group .input-group-addon:focus,.input-group .input-group-btn:focus{z-index:2}.input-group .form-select{width:auto}.input-group.input-inline{display:inline-flex}.form-input.is-success,.form-select.is-success,.has-success .form-input,.has-success .form-select{background:#f9fdfa;border-color:#32b643}.form-input.is-success:focus,.form-select.is-success:focus,.has-success .form-input:focus,.has-success .form-select:focus{box-shadow:0 0 0 .1rem rgba(50,182,67,.2)}.form-input.is-error,.form-select.is-error,.has-error .form-input,.has-error .form-select{background:#fff;border-color:red}.form-input.is-error:focus,.form-select.is-error:focus,.has-error .form-input:focus,.has-error .form-select:focus{box-shadow:0 0 0 .1rem rgba(255,0,0,.2)}.form-checkbox.is-error .form-icon,.form-radio.is-error .form-icon,.form-switch.is-error .form-icon,.has-error .form-checkbox .form-icon,.has-error .form-radio .form-icon,.has-error .form-switch .form-icon{border-color:red}.form-checkbox.is-error input:checked+.form-icon,.form-radio.is-error input:checked+.form-icon,.form-switch.is-error input:checked+.form-icon,.has-error .form-checkbox input:checked+.form-icon,.has-error .form-radio input:checked+.form-icon,.has-error .form-switch input:checked+.form-icon{background:red;border-color:red}.form-checkbox.is-error input:focus+.form-icon,.form-radio.is-error input:focus+.form-icon,.form-switch.is-error input:focus+.form-icon,.has-error .form-checkbox input:focus+.form-icon,.has-error .form-radio input:focus+.form-icon,.has-error .form-switch input:focus+.form-icon{box-shadow:0 0 0 .1rem rgba(255,0,0,.2);border-color:red}.form-checkbox.is-error input:indeterminate+.form-icon,.has-error .form-checkbox input:indeterminate+.form-icon{background:red;border-color:red}.form-input:not(:placeholder-shown):invalid{border-color:red}.form-input:not(:placeholder-shown):invalid:focus{box-shadow:0 0 0 .1rem rgba(255,0,0,.2);background:#fff}.form-input:not(:placeholder-shown):invalid+.form-input-hint{color:red}.form-input.disabled,.form-input:disabled,.form-select.disabled,.form-select:disabled{background-color:#eef0f3;cursor:not-allowed;opacity:.5}.form-input[readonly]{background-color:#f7f8f9}input.disabled+.form-icon,input:disabled+.form-icon{background:#eef0f3;cursor:not-allowed;opacity:.5}.form-switch input.disabled+.form-icon::before,.form-switch input:disabled+.form-icon::before{background:#fff}.form-horizontal{padding:.4rem 0}.form-horizontal .form-group{display:flex;flex-wrap:wrap}.form-inline{display:inline-block}.label{border-radius:.2rem;line-height:1.25;padding:.1rem .2rem;background:#eef0f3;color:#455060;display:inline-block}.label.label-rounded{border-radius:5rem;padding-left:.4rem;padding-right:.4rem}.label.label-primary{background:#5755d9;color:#fff}.label.label-secondary{background:#f1f1fc;color:#5755d9}.label.label-success{background:#32b643;color:#fff}.label.label-warning{background:#ffb700;color:#fff}.label.label-error{background:red;color:#fff}code{border-radius:.2rem;line-height:1.25;padding:.1rem .2rem;background:#fcf2f2;color:#d73e48;font-size:85%}.code{border-radius:.2rem;color:#3b4351;position:relative}.code::before{color:#bcc3ce;content:attr(data-lang);font-size:.7rem;position:absolute;right:.4rem;top:.1rem}.code code{background:#f7f8f9;color:inherit;display:block;line-height:1.5;overflow-x:auto;padding:1rem;width:100%}.img-responsive{display:block;height:auto;max-width:100%}.img-fit-cover{object-fit:cover}.img-fit-contain{object-fit:contain}.video-responsive{display:block;overflow:hidden;padding:0;position:relative;width:100%}.video-responsive::before{content:"";display:block;padding-bottom:56.25%}.video-responsive embed,.video-responsive iframe,.video-responsive object{border:0;bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}video.video-responsive{height:auto;max-width:100%}video.video-responsive::before{content:none}.video-responsive-4-3::before{padding-bottom:75%}.video-responsive-1-1::before{padding-bottom:100%}.figure{margin:0 0 .4rem 0}.figure .figure-caption{color:#66758c;margin-top:.4rem}.container{margin-left:auto;margin-right:auto;padding-left:.4rem;padding-right:.4rem;width:100%}.container.grid-xl{max-width:1296px}.container.grid-lg{max-width:976px}.container.grid-md{max-width:856px}.container.grid-sm{max-width:616px}.container.grid-xs{max-width:496px}.show-lg,.show-md,.show-sm,.show-xl,.show-xs{display:none!important}.cols,.columns{display:flex;flex-wrap:wrap;margin-left:-.4rem;margin-right:-.4rem}.cols.col-gapless,.columns.col-gapless{margin-left:0;margin-right:0}.cols.col-gapless>.column,.columns.col-gapless>.column{padding-left:0;padding-right:0}.cols.col-oneline,.columns.col-oneline{flex-wrap:nowrap;overflow-x:auto}.column,[class~=col-]{flex:1;max-width:100%;padding-left:.4rem;padding-right:.4rem}.column.col-1,.column.col-10,.column.col-11,.column.col-12,.column.col-2,.column.col-3,.column.col-4,.column.col-5,.column.col-6,.column.col-7,.column.col-8,.column.col-9,.column.col-auto,[class~=col-].col-1,[class~=col-].col-10,[class~=col-].col-11,[class~=col-].col-12,[class~=col-].col-2,[class~=col-].col-3,[class~=col-].col-4,[class~=col-].col-5,[class~=col-].col-6,[class~=col-].col-7,[class~=col-].col-8,[class~=col-].col-9,[class~=col-].col-auto{flex:none}.col-12{width:100%}.col-11{width:91.66666667%}.col-10{width:83.33333333%}.col-9{width:75%}.col-8{width:66.66666667%}.col-7{width:58.33333333%}.col-6{width:50%}.col-5{width:41.66666667%}.col-4{width:33.33333333%}.col-3{width:25%}.col-2{width:16.66666667%}.col-1{width:8.33333333%}.col-auto{flex:0 0 auto;max-width:none;width:auto}.col-mx-auto{margin-left:auto;margin-right:auto}.col-ml-auto{margin-left:auto}.col-mr-auto{margin-right:auto}@media (max-width:1280px){.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-auto{flex:none}.col-xl-12{width:100%}.col-xl-11{width:91.66666667%}.col-xl-10{width:83.33333333%}.col-xl-9{width:75%}.col-xl-8{width:66.66666667%}.col-xl-7{width:58.33333333%}.col-xl-6{width:50%}.col-xl-5{width:41.66666667%}.col-xl-4{width:33.33333333%}.col-xl-3{width:25%}.col-xl-2{width:16.66666667%}.col-xl-1{width:8.33333333%}.col-xl-auto{width:auto}.hide-xl{display:none!important}.show-xl{display:block!important}}@media (max-width:960px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-auto{flex:none}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-auto{width:auto}.hide-lg{display:none!important}.show-lg{display:block!important}}@media (max-width:840px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-auto{flex:none}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-auto{width:auto}.hide-md{display:none!important}.show-md{display:block!important}}@media (max-width:600px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-auto{flex:none}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-auto{width:auto}.hide-sm{display:none!important}.show-sm{display:block!important}}@media (max-width:480px){.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-auto{flex:none}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-auto{width:auto}.hide-xs{display:none!important}.show-xs{display:block!important}}.navbar{align-items:stretch;display:flex;flex-wrap:wrap;justify-content:space-between}.navbar .navbar-section{align-items:center;display:flex;flex:1 0 0}.navbar .navbar-section:not(:first-child):last-child{justify-content:flex-end}.navbar .navbar-center{align-items:center;display:flex;flex:0 0 auto}.navbar .navbar-brand{font-size:.9rem;text-decoration:none}.badge{position:relative;white-space:nowrap}.badge:not([data-badge])::after,.badge[data-badge]::after{background:#5755d9;background-clip:padding-box;border-radius:.5rem;box-shadow:0 0 0 .1rem #fff;color:#fff;content:attr(data-badge);display:inline-block;transform:translate(-.05rem,-.5rem)}.badge[data-badge]::after{font-size:.7rem;height:.9rem;line-height:1;min-width:.9rem;padding:.1rem .2rem;text-align:center;white-space:nowrap}.badge:not([data-badge])::after,.badge[data-badge=""]::after{height:6px;min-width:6px;padding:0;width:6px}.badge.btn::after{position:absolute;top:0;right:0;transform:translate(50%,-50%)}.badge.avatar::after{position:absolute;top:14.64%;right:14.64%;transform:translate(50%,-50%);z-index:100}.bar{background:#eef0f3;border-radius:.2rem;display:flex;flex-wrap:nowrap;height:.8rem;width:100%}.bar.bar-sm{height:.2rem}.bar .bar-item{background:#5755d9;color:#fff;display:block;font-size:.7rem;flex-shrink:0;line-height:.8rem;height:100%;position:relative;text-align:center;width:0}.bar .bar-item:first-child{border-bottom-left-radius:.2rem;border-top-left-radius:.2rem}.bar .bar-item:last-child{border-bottom-right-radius:.2rem;border-top-right-radius:.2rem;flex-shrink:1}.bar-slider{height:.1rem;margin:.4rem 0;position:relative}.bar-slider .bar-item{left:0;padding:0;position:absolute}.bar-slider .bar-item:not(:last-child):first-child{background:#eef0f3;z-index:1}.bar-slider .bar-slider-btn{background:#5755d9;border:0;border-radius:50%;height:.6rem;padding:0;position:absolute;right:0;top:50%;transform:translate(50%,-50%);width:.6rem}.bar-slider .bar-slider-btn:active{box-shadow:0 0 0 .1rem #5755d9}.card{background:#fff;border:.05rem solid #dadee4;border-radius:.2rem;display:flex;flex-direction:column}.card .card-body,.card .card-footer,.card .card-header{padding:.8rem;padding-bottom:0}.card .card-body:last-child,.card .card-footer:last-child,.card .card-header:last-child{padding-bottom:.8rem}.card .card-body{flex:1 1 auto}.card .card-image{padding-top:.8rem}.card .card-image:first-child{padding-top:0}.card .card-image:first-child img{border-top-left-radius:.2rem;border-top-right-radius:.2rem}.card .card-image:last-child img{border-bottom-left-radius:.2rem;border-bottom-right-radius:.2rem}.dropdown{display:inline-block;position:relative}.dropdown .menu{animation:slide-down .15s ease 1;display:none;left:0;max-height:50vh;overflow-y:auto;position:absolute;top:100%}.dropdown.dropdown-right .menu{left:auto;right:0}.dropdown .dropdown-toggle:focus+.menu,.dropdown .menu:hover,.dropdown.active .menu{display:block}.dropdown .btn-group .dropdown-toggle:nth-last-child(2){border-bottom-right-radius:.2rem;border-top-right-radius:.2rem}.empty{background:#f7f8f9;border-radius:.2rem;color:#66758c;text-align:center;padding:3.2rem 1.6rem}.empty .empty-icon{margin-bottom:.8rem}.empty .empty-subtitle,.empty .empty-title{margin:.4rem auto}.empty .empty-action{margin-top:.8rem}.menu{box-shadow:0 .05rem .2rem rgba(48,55,66,.3);background:#fff;border-radius:.2rem;list-style:none;margin:0;min-width:180px;padding:.4rem;transform:translateY(.2rem);z-index:300}.menu.menu-nav{background:0 0;box-shadow:none}.menu .menu-item{margin-top:0;padding:0 .4rem;position:relative;text-decoration:none}.menu .menu-item>a{border-radius:.2rem;color:inherit;display:block;margin:0 -.4rem;padding:.2rem .4rem;text-decoration:none}.menu .menu-item>a:focus,.menu .menu-item>a:hover{background:#f1f1fc;color:#5755d9}.menu .menu-item>a.active,.menu .menu-item>a:active{background:#f1f1fc;color:#5755d9}.menu .menu-item .form-checkbox,.menu .menu-item .form-radio,.menu .menu-item .form-switch{margin:.1rem 0}.menu .menu-item+.menu-item{margin-top:.2rem}.menu .menu-badge{align-items:center;display:flex;height:100%;position:absolute;right:0;top:0}.menu .menu-badge .label{margin-right:.4rem}.modal{align-items:center;bottom:0;display:none;justify-content:center;left:0;opacity:0;overflow:hidden;padding:.4rem;position:fixed;right:0;top:0}.modal.active,.modal:target{display:flex;opacity:1;z-index:400}.modal.active .modal-overlay,.modal:target .modal-overlay{background:rgba(247,248,249,.75);bottom:0;cursor:default;display:block;left:0;position:absolute;right:0;top:0}.modal.active .modal-container,.modal:target .modal-container{animation:slide-down .2s ease 1;z-index:1}.modal.modal-sm .modal-container{max-width:320px;padding:0 .4rem}.modal.modal-lg .modal-overlay{background:#fff}.modal.modal-lg .modal-container{box-shadow:none;max-width:960px}.modal-container{box-shadow:0 .2rem .5rem rgba(48,55,66,.3);background:#fff;border-radius:.2rem;display:flex;flex-direction:column;max-height:75vh;max-width:640px;padding:0 .8rem;width:100%}.modal-container.modal-fullheight{max-height:100vh}.modal-container .modal-header{color:#303742;padding:.8rem}.modal-container .modal-body{overflow-y:auto;padding:.8rem;position:relative}.modal-container .modal-footer{padding:.8rem;text-align:right}.nav{display:flex;flex-direction:column;list-style:none;margin:.2rem 0}.nav .nav-item a{color:#66758c;padding:.2rem .4rem;text-decoration:none}.nav .nav-item a:focus,.nav .nav-item a:hover{color:#5755d9}.nav .nav-item.active>a{color:#505c6e;font-weight:700}.nav .nav-item.active>a:focus,.nav .nav-item.active>a:hover{color:#5755d9}.nav .nav{margin-bottom:.4rem;margin-left:.8rem}.panel{border:.05rem solid #dadee4;border-radius:.2rem;display:flex;flex-direction:column}.panel .panel-footer,.panel .panel-header{flex:0 0 auto;padding:.8rem}.panel .panel-nav{flex:0 0 auto}.panel .panel-body{flex:1 1 auto;overflow-y:auto;padding:0 .8rem}.step{display:flex;flex-wrap:nowrap;list-style:none;margin:.2rem 0;width:100%}.step .step-item{flex:1 1 0;margin-top:0;min-height:1rem;text-align:center;position:relative}.step .step-item:not(:first-child)::before{background:#5755d9;content:"";height:2px;left:-50%;position:absolute;top:9px;width:100%}.step .step-item a{color:#5755d9;display:inline-block;padding:20px 10px 0;text-decoration:none}.step .step-item a::before{background:#5755d9;border:.1rem solid #fff;border-radius:50%;content:"";display:block;height:.6rem;left:50%;position:absolute;top:.2rem;transform:translateX(-50%);width:.6rem;z-index:1}.step .step-item.active a::before{background:#fff;border:.1rem solid #5755d9}.step .step-item.active~.step-item::before{background:#dadee4}.step .step-item.active~.step-item a{color:#bcc3ce}.step .step-item.active~.step-item a::before{background:#dadee4}.tab{align-items:center;border-bottom:.05rem solid #dadee4;display:flex;flex-wrap:wrap;list-style:none;margin:.2rem 0 .15rem 0}.tab .tab-item{margin-top:0}.tab .tab-item a{border-bottom:.1rem solid transparent;color:inherit;display:block;margin:0 .4rem 0 0;padding:.4rem .2rem .3rem .2rem;text-decoration:none}.tab .tab-item a:focus,.tab .tab-item a:hover{color:#5755d9}.tab .tab-item a.active,.tab .tab-item.active a{border-bottom-color:#5755d9;color:#5755d9}.tab .tab-item.tab-action{flex:1 0 auto;text-align:right}.tab .tab-item .btn-clear{margin-top:-.2rem}.tab.tab-block .tab-item{flex:1 0 0;text-align:center}.tab.tab-block .tab-item a{margin:0}.tab.tab-block .tab-item .badge[data-badge]::after{position:absolute;right:.1rem;top:.1rem;transform:translate(0,0)}.tab:not(.tab-block) .badge{padding-right:0}.tile{align-content:space-between;align-items:flex-start;display:flex}.tile .tile-action,.tile .tile-icon{flex:0 0 auto}.tile .tile-content{flex:1 1 auto}.tile .tile-content:not(:first-child){padding-left:.4rem}.tile .tile-content:not(:last-child){padding-right:.4rem}.tile .tile-subtitle,.tile .tile-title{line-height:1.2rem}.tile.tile-centered{align-items:center}.tile.tile-centered .tile-content{overflow:hidden}.tile.tile-centered .tile-subtitle,.tile.tile-centered .tile-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:0}.toast{background:rgba(48,55,66,.95);border-color:#303742;border:.05rem solid #303742;border-radius:.2rem;color:#fff;display:block;padding:.4rem;width:100%}.toast.toast-primary{background:rgba(87,85,217,.95);border-color:#5755d9}.toast.toast-success{background:rgba(50,182,67,.95);border-color:#32b643}.toast.toast-warning{background:rgba(255,183,0,.95);border-color:#ffb700}.toast.toast-error{background:rgba(255,0,0,.95);border-color:red}.toast a{color:#fff;text-decoration:underline}.toast a.active,.toast a:active,.toast a:focus,.toast a:hover{opacity:.75}.toast .btn-clear{margin:.1rem}.toast p:last-child{margin-bottom:0}.tooltip{position:relative}.tooltip::after{background:rgba(48,55,66,.95);border-radius:.2rem;bottom:100%;color:#fff;content:attr(data-tooltip);display:block;font-size:.7rem;left:50%;max-width:320px;opacity:0;overflow:hidden;padding:.2rem .4rem;pointer-events:none;position:absolute;text-overflow:ellipsis;transform:translate(-50%,.4rem);transition:opacity .2s,transform .2s;white-space:pre;z-index:300}.tooltip:focus::after,.tooltip:hover::after{opacity:1;transform:translate(-50%,-.2rem)}.tooltip.disabled,.tooltip[disabled]{pointer-events:auto}.tooltip.tooltip-right::after{bottom:50%;left:100%;transform:translate(-.2rem,50%)}.tooltip.tooltip-right:focus::after,.tooltip.tooltip-right:hover::after{transform:translate(.2rem,50%)}.tooltip.tooltip-bottom::after{bottom:auto;top:100%;transform:translate(-50%,-.4rem)}.tooltip.tooltip-bottom:focus::after,.tooltip.tooltip-bottom:hover::after{transform:translate(-50%,.2rem)}.tooltip.tooltip-left::after{bottom:50%;left:auto;right:100%;transform:translate(.4rem,50%)}.tooltip.tooltip-left:focus::after,.tooltip.tooltip-left:hover::after{transform:translate(-.2rem,50%)}@keyframes loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes slide-down{0%{opacity:0;transform:translateY(-1.6rem)}100%{opacity:1;transform:translateY(0)}}.text-primary{color:#5755d9!important}a.text-primary:focus,a.text-primary:hover{color:#4240d4}a.text-primary:visited{color:#6c6ade}.text-secondary{color:#e5e5f9!important}a.text-secondary:focus,a.text-secondary:hover{color:#d1d0f4}a.text-secondary:visited{color:#fafafe}.text-gray{color:#bcc3ce!important}a.text-gray:focus,a.text-gray:hover{color:#adb6c4}a.text-gray:visited{color:#cbd0d9}.text-light{color:#fff!important}a.text-light:focus,a.text-light:hover{color:#f2f2f2}a.text-light:visited{color:#fff}.text-dark{color:#3b4351!important}a.text-dark:focus,a.text-dark:hover{color:#303742}a.text-dark:visited{color:#455060}.text-success{color:#32b643!important}a.text-success:focus,a.text-success:hover{color:#2da23c}a.text-success:visited{color:#39c94b}.text-warning{color:#ffb700!important}a.text-warning:focus,a.text-warning:hover{color:#e6a500}a.text-warning:visited{color:#ffbe1a}.text-error{color:red!important}a.text-error:focus,a.text-error:hover{color:#e60000}a.text-error:visited{color:#ff1a1a}.bg-primary{background:#5755d9!important;color:#fff}.bg-secondary{background:#f1f1fc!important}.bg-dark{background:#303742!important;color:#fff}.bg-gray{background:#f7f8f9!important}.bg-success{background:#32b643!important;color:#fff}.bg-warning{background:#ffb700!important;color:#fff}.bg-error{background:red!important;color:#fff}.c-hand{cursor:pointer}.c-move{cursor:move}.c-zoom-in{cursor:zoom-in}.c-zoom-out{cursor:zoom-out}.c-not-allowed{cursor:not-allowed}.c-auto{cursor:auto}.d-block{display:block}.d-inline{display:inline}.d-inline-block{display:inline-block}.d-flex{display:flex}.d-inline-flex{display:inline-flex}.d-hide,.d-none{display:none!important}.d-visible{visibility:visible}.d-invisible{visibility:hidden}.text-hide{background:0 0;border:0;color:transparent;font-size:0;line-height:0;text-shadow:none}.text-assistive{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.divider,.divider-vert{display:block;position:relative}.divider-vert[data-content]::after,.divider[data-content]::after{background:#fff;color:#bcc3ce;content:attr(data-content);display:inline-block;font-size:.7rem;padding:0 .4rem;transform:translateY(-.65rem)}.divider{border-top:.05rem solid #f1f3f5;height:.05rem;margin:.4rem 0}.divider[data-content]{margin:.8rem 0}.divider-vert{display:block;padding:.8rem}.divider-vert::before{border-left:.05rem solid #dadee4;bottom:.4rem;content:"";display:block;left:50%;position:absolute;top:.4rem;transform:translateX(-50%)}.divider-vert[data-content]::after{left:50%;padding:.2rem 0;position:absolute;top:50%;transform:translate(-50%,-50%)}.loading{color:transparent!important;min-height:.8rem;pointer-events:none;position:relative}.loading::after{animation:loading .5s infinite linear;background:0 0;border:.1rem solid #5755d9;border-radius:50%;border-right-color:transparent;border-top-color:transparent;content:"";display:block;height:.8rem;left:50%;margin-left:-.4rem;margin-top:-.4rem;opacity:1;padding:0;position:absolute;top:50%;width:.8rem;z-index:1}.loading.loading-lg{min-height:2rem}.loading.loading-lg::after{height:1.6rem;margin-left:-.8rem;margin-top:-.8rem;width:1.6rem}.clearfix::after{clear:both;content:"";display:table}.float-left{float:left!important}.float-right{float:right!important}.p-relative{position:relative!important}.p-absolute{position:absolute!important}.p-fixed{position:fixed!important}.p-sticky{position:sticky!important}.p-centered{display:block;float:none;margin-left:auto;margin-right:auto}.flex-centered{align-items:center;display:flex;justify-content:center}.m-0{margin:0!important}.mb-0{margin-bottom:0!important}.ml-0{margin-left:0!important}.mr-0{margin-right:0!important}.mt-0{margin-top:0!important}.mx-0{margin-left:0!important;margin-right:0!important}.my-0{margin-bottom:0!important;margin-top:0!important}.m-1{margin:.2rem!important}.mb-1{margin-bottom:.2rem!important}.ml-1{margin-left:.2rem!important}.mr-1{margin-right:.2rem!important}.mt-1{margin-top:.2rem!important}.mx-1{margin-left:.2rem!important;margin-right:.2rem!important}.my-1{margin-bottom:.2rem!important;margin-top:.2rem!important}.m-2{margin:.4rem!important}.mb-2{margin-bottom:.4rem!important}.ml-2{margin-left:.4rem!important}.mr-2{margin-right:.4rem!important}.mt-2{margin-top:.4rem!important}.mx-2{margin-left:.4rem!important;margin-right:.4rem!important}.my-2{margin-bottom:.4rem!important;margin-top:.4rem!important}.p-0{padding:0!important}.pb-0{padding-bottom:0!important}.pl-0{padding-left:0!important}.pr-0{padding-right:0!important}.pt-0{padding-top:0!important}.px-0{padding-left:0!important;padding-right:0!important}.py-0{padding-bottom:0!important;padding-top:0!important}.p-1{padding:.2rem!important}.pb-1{padding-bottom:.2rem!important}.pl-1{padding-left:.2rem!important}.pr-1{padding-right:.2rem!important}.pt-1{padding-top:.2rem!important}.px-1{padding-left:.2rem!important;padding-right:.2rem!important}.py-1{padding-bottom:.2rem!important;padding-top:.2rem!important}.p-2{padding:.4rem!important}.pb-2{padding-bottom:.4rem!important}.pl-2{padding-left:.4rem!important}.pr-2{padding-right:.4rem!important}.pt-2{padding-top:.4rem!important}.px-2{padding-left:.4rem!important;padding-right:.4rem!important}.py-2{padding-bottom:.4rem!important;padding-top:.4rem!important}.s-rounded{border-radius:.2rem}.s-circle{border-radius:50%}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-normal{font-weight:400}.text-bold{font-weight:700}.text-italic{font-style:italic}.text-large{font-size:1.2em}.text-small{font-size:.9em}.text-tiny{font-size:.8em}.text-muted{opacity:.8}.text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-clip{overflow:hidden;text-overflow:clip;white-space:nowrap}.text-break{hyphens:auto;word-break:break-word;word-wrap:break-word}/*! Spectre.css Icons v0.5.9 | MIT License | github.com/picturepan2/spectre *//*! Spectre.css Experimentals v0.5.9 | MIT License | github.com/picturepan2/spectre */.filter .filter-tag#tag-0:checked~.filter-nav .chip[for=tag-0],.filter .filter-tag#tag-1:checked~.filter-nav .chip[for=tag-1],.filter .filter-tag#tag-2:checked~.filter-nav .chip[for=tag-2],.filter .filter-tag#tag-3:checked~.filter-nav .chip[for=tag-3],.filter .filter-tag#tag-4:checked~.filter-nav .chip[for=tag-4],.filter .filter-tag#tag-5:checked~.filter-nav .chip[for=tag-5],.filter .filter-tag#tag-6:checked~.filter-nav .chip[for=tag-6],.filter .filter-tag#tag-7:checked~.filter-nav .chip[for=tag-7],.filter .filter-tag#tag-8:checked~.filter-nav .chip[for=tag-8]{background:#5755d9;color:#fff}.filter .filter-tag#tag-1:checked~.filter-body .filter-item:not([data-tag~=tag-1]),.filter .filter-tag#tag-2:checked~.filter-body .filter-item:not([data-tag~=tag-2]),.filter .filter-tag#tag-3:checked~.filter-body .filter-item:not([data-tag~=tag-3]),.filter .filter-tag#tag-4:checked~.filter-body .filter-item:not([data-tag~=tag-4]),.filter .filter-tag#tag-5:checked~.filter-body .filter-item:not([data-tag~=tag-5]),.filter .filter-tag#tag-6:checked~.filter-body .filter-item:not([data-tag~=tag-6]),.filter .filter-tag#tag-7:checked~.filter-body .filter-item:not([data-tag~=tag-7]),.filter .filter-tag#tag-8:checked~.filter-body .filter-item:not([data-tag~=tag-8]){display:none}.filter .filter-nav{margin:.4rem 0}.filter .filter-body{display:flex;flex-wrap:wrap}.meter{appearance:none;background:#f7f8f9;border:0;border-radius:.2rem;display:block;width:100%;height:.8rem}.meter::-webkit-meter-inner-element{display:block}.meter::-webkit-meter-bar,.meter::-webkit-meter-even-less-good-value,.meter::-webkit-meter-optimum-value,.meter::-webkit-meter-suboptimum-value{border-radius:.2rem}.meter::-webkit-meter-bar{background:#f7f8f9}.meter::-webkit-meter-optimum-value{background:#32b643}.meter::-webkit-meter-suboptimum-value{background:#ffb700}.meter::-webkit-meter-even-less-good-value{background:red}.meter:-moz-meter-optimum,.meter:-moz-meter-sub-optimum,.meter:-moz-meter-sub-sub-optimum,.meter::-moz-meter-bar{border-radius:.2rem}.meter:-moz-meter-optimum::-moz-meter-bar{background:#32b643}.meter:-moz-meter-sub-optimum::-moz-meter-bar{background:#ffb700}.meter:-moz-meter-sub-sub-optimum::-moz-meter-bar{background:red}.off-canvas{display:flex;flex-flow:nowrap;height:100%;position:relative;width:100%}.off-canvas .off-canvas-toggle{display:block;position:absolute;top:.4rem;transition:none;z-index:1;left:.4rem}.off-canvas .off-canvas-sidebar{background:#f7f8f9;bottom:0;min-width:10rem;overflow-y:auto;position:fixed;top:0;transition:transform .25s;z-index:200;left:0;transform:translateX(-100%)}.off-canvas .off-canvas-content{flex:1 1 auto;height:100%;padding:.4rem .4rem .4rem 4rem}.off-canvas .off-canvas-overlay{background:rgba(48,55,66,.1);border-color:transparent;border-radius:0;bottom:0;display:none;height:100%;left:0;position:fixed;right:0;top:0;width:100%}.off-canvas .off-canvas-sidebar.active,.off-canvas .off-canvas-sidebar:target{transform:translateX(0)}.off-canvas .off-canvas-sidebar.active~.off-canvas-overlay,.off-canvas .off-canvas-sidebar:target~.off-canvas-overlay{display:block;z-index:100}@media (min-width:960px){.off-canvas.off-canvas-sidebar-show .off-canvas-toggle{display:none}.off-canvas.off-canvas-sidebar-show .off-canvas-sidebar{flex:0 0 auto;position:relative;transform:none}.off-canvas.off-canvas-sidebar-show .off-canvas-overlay{display:none!important}}.progress{appearance:none;background:#eef0f3;border:0;border-radius:.2rem;color:#5755d9;height:.2rem;position:relative;width:100%}.progress::-webkit-progress-bar{background:0 0;border-radius:.2rem}.progress::-webkit-progress-value{background:#5755d9;border-radius:.2rem}.progress::-moz-progress-bar{background:#5755d9;border-radius:.2rem}.progress:indeterminate{animation:progress-indeterminate 1.5s linear infinite;background:#eef0f3 linear-gradient(to right,#5755d9 30%,#eef0f3 30%) top left/150% 150% no-repeat}.progress:indeterminate::-moz-progress-bar{background:0 0}@keyframes progress-indeterminate{0%{background-position:200% 0}100%{background-position:-200% 0}}.slider{appearance:none;background:0 0;display:block;width:100%;height:1.2rem}.slider:focus{box-shadow:0 0 0 .1rem rgba(87,85,217,.2);outline:0}.slider.tooltip:not([data-tooltip])::after{content:attr(value)}.slider::-webkit-slider-thumb{-webkit-appearance:none;background:#5755d9;border:0;border-radius:50%;height:.6rem;margin-top:-.25rem;transition:transform .2s;width:.6rem}.slider::-moz-range-thumb{background:#5755d9;border:0;border-radius:50%;height:.6rem;transition:transform .2s;width:.6rem}.slider::-ms-thumb{background:#5755d9;border:0;border-radius:50%;height:.6rem;transition:transform .2s;width:.6rem}.slider:active::-webkit-slider-thumb{transform:scale(1.25)}.slider:active::-moz-range-thumb{transform:scale(1.25)}.slider:active::-ms-thumb{transform:scale(1.25)}.slider.disabled::-webkit-slider-thumb,.slider:disabled::-webkit-slider-thumb{background:#f7f8f9;transform:scale(1)}.slider.disabled::-moz-range-thumb,.slider:disabled::-moz-range-thumb{background:#f7f8f9;transform:scale(1)}.slider.disabled::-ms-thumb,.slider:disabled::-ms-thumb{background:#f7f8f9;transform:scale(1)}.slider::-webkit-slider-runnable-track{background:#eef0f3;border-radius:.2rem;height:.1rem;width:100%}.slider::-moz-range-track{background:#eef0f3;border-radius:.2rem;height:.1rem;width:100%}.slider::-ms-track{background:#eef0f3;border-radius:.2rem;height:.1rem;width:100%}.slider::-ms-fill-lower{background:#5755d9}.timeline .timeline-item{display:flex;margin-bottom:1.2rem;position:relative}.timeline .timeline-item::before{background:#dadee4;content:"";height:100%;left:11px;position:absolute;top:1.2rem;width:2px}.timeline .timeline-item .timeline-left{flex:0 0 auto}.timeline .timeline-item .timeline-content{flex:1 1 auto;padding:2px 0 2px .8rem}.timeline .timeline-item .timeline-icon{align-items:center;border-radius:50%;color:#fff;display:flex;height:1.2rem;justify-content:center;text-align:center;width:1.2rem}.timeline .timeline-item .timeline-icon::before{border:.1rem solid #5755d9;border-radius:50%;content:"";display:block;height:.4rem;left:.4rem;position:absolute;top:.4rem;width:.4rem}.timeline .timeline-item .timeline-icon.icon-lg{background:#5755d9;line-height:1.2rem}.timeline .timeline-item .timeline-icon.icon-lg::before{content:none}#main-container{padding:1em}@media (max-width:600px){#main-container{padding:0}}.fullscreen{height:100vh}.flex-wrap .form-label{margin-right:10px}.centered{position:fixed;top:50%;left:50%;-ms-transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.navbar{padding:0;padding-left:15px;background-color:#eef0f3}.tab .tab-item .btn{border-radius:0}.file-list .tile:hover{background:#f1f1fc}.file-list .tile:hover.folder{cursor:pointer}.file-list .tile .tile-content .tile-subtitle{line-height:.96rem}@media (min-width:600px){.panel-body-features{max-height:400px}}.feather-icon-container label{vertical-align:top;margin-left:.25rem}.tooltip>span,.tooltip>svg{pointer-events:none}.form-group .form-label,.form-switch{cursor:pointer;user-select:none}.flex-wrap{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.flex-cols{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.has-modification svg{color:#ffb700}.has-error svg{color:red}.has-success svg{color:#32b643}.has-modification .form-input-hint,.has-modification label,.is-modified+.form-input-hint{color:#ffb700}.form-input.is-modified,.form-select.is-modified,.has-modification .form-input,.has-modification .form-select{background:#fffaf7;border-color:#ffb700}.form-input.is-modified:focus,.form-select.is-modified:focus,.has-modification .form-input:focus,.has-modification .form-select:focus{box-shadow:0 0 0 .1rem rgba(232,86,0,.2)}.form-checkbox.is-modified .form-icon,.form-radio.is-modified .form-icon,.form-switch.is-modified .form-icon,.has-modification .form-checkbox .form-icon,.has-modification .form-radio .form-icon,.has-modification .form-switch .form-icon{border-color:#ffb700}.form-checkbox.is-modified input:checked+.form-icon,.form-radio.is-modified input:checked+.form-icon,.form-switch.is-modified input:checked+.form-icon,.has-modification .form-checkbox input:checked+.form-icon,.has-modification .form-radio input:checked+.form-icon,.has-modification .form-switch input:checked+.form-icon{background:#ffb700;border-color:#ffb700}.form-checkbox.is-modified input:focus+.form-icon,.form-radio.is-modified input:focus+.form-icon,.form-switch.is-modified input:focus+.form-icon,.has-modification .form-checkbox input:focus+.form-icon,.has-modification .form-radio input:focus+.form-icon,.has-modification .form-switch input:focus+.form-icon{border-color:#ffb700;box-shadow:0 0 0 .1rem rgba(232,86,0,.2)}.form-checkbox.is-modified input:indeterminate+.form-icon,.has-modification .form-checkbox input:indeterminate+.form-icon{background:#ffb700;border-color:#ffb700}#dashboard .panel{margin-bottom:1em}#dashboard .panel .actions{flex:1 1 auto;overflow-y:auto;padding:0 .8rem}.column .panel{height:100%;box-shadow:0 0 14px -5px rgba(0,0,0,.05)}.upload-wrapper .drag-drop-zone{border:2px dashed #bcc3ce;border-radius:.2rem;height:5rem;background-color:#f7f8f9;color:#5755d9;text-align:center;line-height:5rem}.upload-wrapper .drag-drop-zone.active{color:#4b48d6;border:2px dashed #5755d9;background-color:#f1f1fc}.upload-wrapper .file-input{visibility:hidden}.upload-wrapper .content{padding:10px;vertical-align:middle;display:inline-block;line-height:1.2;text-align:center}.btn-red:hover{color:#fff;background-color:#00f!important}.panel-dropdown{color:#66758c;float:right;font-weight:400;font-size:.8rem}.menu-item{margin-top:0;padding:0 .4rem;position:relative;text-decoration:none}.menu-item>.btn{border-radius:.2rem;color:inherit;display:block;padding:.2rem .4rem;text-decoration:none}.menu-item>.btn:focus,.menu-item>.btn:hover{background:#f1f1fc;color:#5755d9}.toasts-container{position:fixed;z-index:1000;right:.5rem;top:.5rem}.toasts-container>.toast{margin:.2rem 0}#featuresSettingsPanel h3{color:#5755d9;text-transform:capitalize;font-weight:400;margin-top:1.5em}#featuresSettingsPanel .panel{height:100%}#featuresSettingsPanel .panel .panel-title h4{text-transform:capitalize}#featuresSettingsPanel .panel .panel-body{padding:.4rem .8rem}#terminal{min-height:20em;max-height:20em;margin-bottom:.6rem;border-radius:.2rem;color:#bcc3ce;background-color:#303742;display:block;padding:.25rem .4rem;font-family:"SF Mono","Segoe UI Mono","Roboto Mono",Menlo,Courier,monospace;font-size:.7rem;overflow-y:scroll;scrollbar-color:#663399 green;scrollbar-width:thin}#terminal pre{margin:0}#terminal code{margin:0;display:block;font-size:2vw}#terminal code.stdout:before{content:"\25BE";margin:0 .4rem 0 0}#terminal code.stdin:before{color:#2d98da;content:"\25B4";margin:0 .4rem 0 0}#terminal code.info{background-color:#f7b731;color:#fff}#terminal code.info:before{content:"\25B8";margin:0 .4rem 0 0}.mobile-view .hide-low{display:none!important}.mobile-view .show-low{display:block!important}.show-low{display:none}.align-top{align-items:top!important;-ms-flex-align:top!important}@media (max-width:480px){.hide-low{display:none!important}.show-low{display:block!important}li .active,section .active{background-color:rgba(100,100,100,.1)!important}}body,html{height:100vh;margin:0;overflow-y:hidden}#app{display:flex;flex-flow:column;height:100%}.menu-container{flex:0 1 auto}.information-container{flex:0 1 auto}.main-page-container{flex:1 1 auto;overflow-y:auto;height:100%}.logo{padding-top:7px;padding-left:4px;padding-right:4px;border-radius:5px}a label{cursor:pointer}.tab-item{color:#8080ff!important}li .active,section .active{color:#00f!important;font-weight:700}.mobile-view li .active,.mobile-view section .active{background-color:rgba(0,0,255,.1)!important}.passwordReveal{color:silver;cursor:pointer;margin-top:-.22rem!important;margin-right:.35rem!important}.passwordReveal:hover{color:#00f}.no-box{box-shadow:0 0 0 .1rem transparent!important}</style></head><body><script defer="defer">(()=>{"use strict";var e,t,n,o,r,l={},i=[],a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(e,t){for(var n in t)e[n]=t[n];return e}function c(e){var t=e.parentNode;t&&t.removeChild(e)}function u(e,t,n){var o,r,l,i=arguments,a={};for(l in t)"key"==l?o=t[l]:"ref"==l?r=t[l]:a[l]=t[l];if(arguments.length>3)for(n=[n],l=3;l<arguments.length;l++)n.push(i[l]);if(null!=n&&(a.children=n),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===a[l]&&(a[l]=e.defaultProps[l]);return d(e,a,o,r,null)}function d(t,n,o,r,l){var i={type:t,props:n,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==l?++e.__v:l};return null!=e.vnode&&e.vnode(i),i}function p(e){return e.children}function h(e,t){this.props=e,this.context=t}function m(e,t){if(null==t)return e.__?m(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?m(e):null}function f(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return f(e)}}function g(r){(!r.__d&&(r.__d=!0)&&t.push(r)&&!v.__r++||o!==e.debounceRendering)&&((o=e.debounceRendering)||n)(v)}function v(){for(var e;v.__r=t.length;)e=t.sort((function(e,t){return e.__v.__b-t.__v.__b})),t=[],e.some((function(e){var t,n,o,r,l,i;e.__d&&(l=(r=(t=e).__v).__e,(i=t.__P)&&(n=[],(o=s({},r)).__v=r.__v+1,P(i,r,o,t.__n,void 0!==i.ownerSVGElement,null!=r.__h?[l]:null,n,null==l?m(r):l,r.__h),C(n,r),r.__e!=l&&f(r)))}))}function S(e,t,n,o,r,a,s,c,u,h){var f,g,v,S,y,w,x,k=o&&o.__k||i,C=k.length;for(n.__k=[],f=0;f<t.length;f++)if(null!=(S=n.__k[f]=null==(S=t[f])||"boolean"==typeof S?null:"string"==typeof S||"number"==typeof S||"bigint"==typeof S?d(null,S,null,null,S):Array.isArray(S)?d(p,{children:S},null,null,null):S.__b>0?d(S.type,S.props,S.key,null,S.__v):S)){if(S.__=n,S.__b=n.__b+1,null===(v=k[f])||v&&S.key==v.key&&S.type===v.type)k[f]=void 0;else for(g=0;g<C;g++){if((v=k[g])&&S.key==v.key&&S.type===v.type){k[g]=void 0;break}v=null}P(e,S,v=v||l,r,a,s,c,u,h),y=S.__e,(g=S.ref)&&v.ref!=g&&(x||(x=[]),v.ref&&x.push(v.ref,null,S),x.push(g,S.__c||y,S)),null!=y?(null==w&&(w=y),"function"==typeof S.type&&null!=S.__k&&S.__k===v.__k?S.__d=u=b(S,u,e):u=_(e,S,v,k,y,u),h||"option"!==n.type?"function"==typeof n.type&&(n.__d=u):e.value=""):u&&v.__e==u&&u.parentNode!=e&&(u=m(v))}for(n.__e=w,f=C;f--;)null!=k[f]&&("function"==typeof n.type&&null!=k[f].__e&&k[f].__e==n.__d&&(n.__d=m(o,f+1)),j(k[f],k[f]));if(x)for(f=0;f<x.length;f++)T(x[f],x[++f],x[++f])}function b(e,t,n){var o,r;for(o=0;o<e.__k.length;o++)(r=e.__k[o])&&(r.__=e,t="function"==typeof r.type?b(r,t,n):_(n,r,r,e.__k,r.__e,t));return t}function _(e,t,n,o,r,l){var i,a,s;if(void 0!==t.__d)i=t.__d,t.__d=void 0;else if(null==n||r!=l||null==r.parentNode)e:if(null==l||l.parentNode!==e)e.appendChild(r),i=null;else{for(a=l,s=0;(a=a.nextSibling)&&s<o.length;s+=2)if(a==r)break e;e.insertBefore(r,l),i=l}return void 0!==i?i:r.nextSibling}function y(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||a.test(t)?n:n+"px"}function w(e,t,n,o,r){var l;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||y(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||y(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])l=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+l]=n,n?o||e.addEventListener(t,l?k:x,l):e.removeEventListener(t,l?k:x,l);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function x(t){this.l[t.type+!1](e.event?e.event(t):t)}function k(t){this.l[t.type+!0](e.event?e.event(t):t)}function P(t,n,o,r,l,i,a,c,u){var d,m,f,g,v,b,_,y,w,x,k,P=n.type;if(void 0!==n.constructor)return null;null!=o.__h&&(u=o.__h,c=n.__e=o.__e,n.__h=null,i=[c]),(d=e.__b)&&d(n);try{e:if("function"==typeof P){if(y=n.props,w=(d=P.contextType)&&r[d.__c],x=d?w?w.props.value:d.__:r,o.__c?_=(m=n.__c=o.__c).__=m.__E:("prototype"in P&&P.prototype.render?n.__c=m=new P(y,x):(n.__c=m=new h(y,x),m.constructor=P,m.render=M),w&&w.sub(m),m.props=y,m.state||(m.state={}),m.context=x,m.__n=r,f=m.__d=!0,m.__h=[]),null==m.__s&&(m.__s=m.state),null!=P.getDerivedStateFromProps&&(m.__s==m.state&&(m.__s=s({},m.__s)),s(m.__s,P.getDerivedStateFromProps(y,m.__s))),g=m.props,v=m.state,f)null==P.getDerivedStateFromProps&&null!=m.componentWillMount&&m.componentWillMount(),null!=m.componentDidMount&&m.__h.push(m.componentDidMount);else{if(null==P.getDerivedStateFromProps&&y!==g&&null!=m.componentWillReceiveProps&&m.componentWillReceiveProps(y,x),!m.__e&&null!=m.shouldComponentUpdate&&!1===m.shouldComponentUpdate(y,m.__s,x)||n.__v===o.__v){m.props=y,m.state=m.__s,n.__v!==o.__v&&(m.__d=!1),m.__v=n,n.__e=o.__e,n.__k=o.__k,n.__k.forEach((function(e){e&&(e.__=n)})),m.__h.length&&a.push(m);break e}null!=m.componentWillUpdate&&m.componentWillUpdate(y,m.__s,x),null!=m.componentDidUpdate&&m.__h.push((function(){m.componentDidUpdate(g,v,b)}))}m.context=x,m.props=y,m.state=m.__s,(d=e.__r)&&d(n),m.__d=!1,m.__v=n,m.__P=t,d=m.render(m.props,m.state,m.context),m.state=m.__s,null!=m.getChildContext&&(r=s(s({},r),m.getChildContext())),f||null==m.getSnapshotBeforeUpdate||(b=m.getSnapshotBeforeUpdate(g,v)),k=null!=d&&d.type===p&&null==d.key?d.props.children:d,S(t,Array.isArray(k)?k:[k],n,o,r,l,i,a,c,u),m.base=n.__e,n.__h=null,m.__h.length&&a.push(m),_&&(m.__E=m.__=null),m.__e=!1}else null==i&&n.__v===o.__v?(n.__k=o.__k,n.__e=o.__e):n.__e=O(o.__e,n,o,r,l,i,a,u);(d=e.diffed)&&d(n)}catch(t){n.__v=null,(u||null!=i)&&(n.__e=c,n.__h=!!u,i[i.indexOf(c)]=null),e.__e(t,n,o)}}function C(t,n){e.__c&&e.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(e){e.call(n)}))}catch(t){e.__e(t,n.__v)}}))}function O(e,t,n,o,r,a,s,u){var d,p,h,m,f=n.props,g=t.props,v=t.type,b=0;if("svg"===v&&(r=!0),null!=a)for(;b<a.length;b++)if((d=a[b])&&(d===e||(v?d.localName==v:3==d.nodeType))){e=d,a[b]=null;break}if(null==e){if(null===v)return document.createTextNode(g);e=r?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),a=null,u=!1}if(null===v)f===g||u&&e.data===g||(e.data=g);else{if(a=a&&i.slice.call(e.childNodes),p=(f=n.props||l).dangerouslySetInnerHTML,h=g.dangerouslySetInnerHTML,!u){if(null!=a)for(f={},m=0;m<e.attributes.length;m++)f[e.attributes[m].name]=e.attributes[m].value;(h||p)&&(h&&(p&&h.__html==p.__html||h.__html===e.innerHTML)||(e.innerHTML=h&&h.__html||""))}if(function(e,t,n,o,r){var l;for(l in n)"children"===l||"key"===l||l in t||w(e,l,null,n[l],o);for(l in t)r&&"function"!=typeof t[l]||"children"===l||"key"===l||"value"===l||"checked"===l||n[l]===t[l]||w(e,l,t[l],n[l],o)}(e,g,f,r,u),h)t.__k=[];else if(b=t.props.children,S(e,Array.isArray(b)?b:[b],t,n,o,r&&"foreignObject"!==v,a,s,e.firstChild,u),null!=a)for(b=a.length;b--;)null!=a[b]&&c(a[b]);u||("value"in g&&void 0!==(b=g.value)&&(b!==e.value||"progress"===v&&!b)&&w(e,"value",b,f.value,!1),"checked"in g&&void 0!==(b=g.checked)&&b!==e.checked&&w(e,"checked",b,f.checked,!1))}return e}function T(t,n,o){try{"function"==typeof t?t(n):t.current=n}catch(t){e.__e(t,o)}}function j(t,n,o){var r,l,i;if(e.unmount&&e.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||T(r,null,n)),o||"function"==typeof t.type||(o=null!=(l=t.__e)),t.__e=t.__d=void 0,null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){e.__e(t,n)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&j(r[i],n,o);null!=l&&c(l)}function M(e,t,n){return this.constructor(e,n)}function E(t,n,o){var r,a,s;e.__&&e.__(t,n),a=(r="function"==typeof o)?null:o&&o.__k||n.__k,s=[],P(n,t=(!r&&o||n).__k=u(p,null,[t]),a||l,l,void 0!==n.ownerSVGElement,!r&&o?[o]:a?null:n.firstChild?i.slice.call(n.childNodes):null,s,!r&&o?o:a?a.__e:n.firstChild,r),C(s,t)}function I(e,t){var n={__c:t="__cC"+r++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,o;return this.getChildContext||(n=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(g)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}e={__e:function(e,t){for(var n,o,r;t=t.__;)if((n=t.__c)&&!n.__)try{if((o=n.constructor)&&null!=o.getDerivedStateFromError&&(n.setState(o.getDerivedStateFromError(e)),r=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),r=n.__d),r)return n.__E=n}catch(t){e=t}throw e},__v:0},h.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof e&&(e=e(s({},n),this.props)),e&&s(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),g(this))},h.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),g(this))},h.prototype.render=p,t=[],n="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,v.__r=0,r=0;const N=JSON.parse('{"transtest":"present"}'),D=JSON.parse('{"P1":"override config","P2":"Reset board","P3":"Save current settings ?","P4":"Reset board to apply changes?","P5":"Sorry this UI is only for 3D printer, please use CNC one","P6":"Home all axis","P7":"Home X axis","P8":"Home Y axis","P9":"Home Z axis","P10":"XY feed rate","P11":"Z feed rate","P12":"Speed","P13":"Motors Off","P14":"mm/min","P15":"Emergency Stop","P16":"mm","P17":"Cannot get valid data","P18":"Move to position","P19":"Reset","P20":"Move to: ","P21":"TFT SD","P22":"TFT USB","P23":"TFT SD support","P24":"TFT USB support","P25":"Printer SD","P26":"Printer SD support","P27":"Operation successful","P28":"Operation failed","P29":"Temperatures","P30":"Flow rate","P31":"Fan","P32":"Extrusion","temperatures":"Temperatures panel","P34":"Maximum ","P35":"Preheat","P36":"Extruders","extruders":"Extruders Panel","P37":"Bed","P38":"Stop heating","P39":"Stop","P40":"Stop all","P41":"Extruder","P42":"Probe","P43":"Chamber","P44":"Redondant","P45":"Show fans panel","P46":"Show speed panel","P47":"Show flow rate panel","P48":"Extruder maximum","P49":"Mixed extruders","P50":"E feed rate","P51":"Colors","P52":"Number","P53":"Extrude","P54":"Reverse","P55":"Distance of extrusion","P56":"Chart mode","P57":"Control mode","P58":"Clear chart","P59":"Timestamp","P60":"Date Time","P63":"Printing","P64":"Not printing","P65":"Move X to","P66":"Move Y to","P67":"Bed maximum","P68":"Extruder preheat","P69":"Bed preheat","P70":"Chamber maximum","P71":"Chamber preheat","P72":"℃","processing":"Processing","heating":"Heating","controls":"Extra Controls"}'),z=JSON.parse('{"lang":"English","S1":"Connection error","S2":"Connecting","S3":"Looks like you are connected from another place, so this page is now disconnected","S4":"Parsing response error, format is incorrect","S5":"Cannot connect with board","S6":"WebSocket connection error","S7":"Parsing preferences error, file is incorrect","S8":"Retry","S9":"Disconnected","S10":"Connection with board is lost","S11":"Connect again","S12":"About %s","S13":"Dashboard","S14":"Settings","S15":"Donation for ESP3D","S16":"Firmware","S17":"Interface","S18":"Browser version","S19":"Unknown","S20":"Go to github","S21":"Parsing data error, data are incorrect","S22":"Error","S23":"Refresh information","S24":"Close","S25":"Update","S26":"Please Confirm","S27":"Yes","S28":"Cancel","S29":"No","S30":"Do you want to update ?","S31":"Do you want to upload ?","S32":"Uploading...","S33":"File transfert failed","S34":"Update done","S35":"Restarting...","S36":"Features","polling":"Polling","S39":"Printer settings","S40":"Scan available networks","S41":"enter value","S42":"Incorrect value","S43":"Set","S44":"Save data failed!","S45":"List of available networks","S47":"Select network","S48":"Join","S49":"Protected","S50":"Refresh","S51":"Select this network","S52":"Export","S53":"Export to file","S54":"Import","S55":"Import from file","S56":"Problem with import file","S57":"Importing...","S58":"Restart ESP3D","S59":"This will restart the board","S60":"Please wait...","S61":"Save","S62":"Save and apply changes","S63":"Show","S64":"Auto load data","S67":"Language pack","S68":"Language","S70":"Label","S71":"Value","S72":"Help","S73":"General","S74":"free to use","S75":"Terminal","terminal":"Terminal Panel","S76":"Verbose mode","S77":"Autoscroll","S78":"Clear","S79":"Clear terminal","S80":"Enter command","S81":"Send","S82":"Send command","S83":"There is an error, fix problem first","S85":"free to use","S86":"Close panel","S87":"free to use","S88":"Upload","S89":"Upload file","S90":"Create directory","S91":"Saving...","S92":"Terminal panel","S93":"Visible when starting","jog":"Jog panel","files":"Files panel","S96":"Extensions","S97":"use ; to separate","S98":"Total","S99":"Used","S100":"Delete file","S101":"Delete directory","S102":"Processing...","S103":"Request failed","S104":"Please type directory name","S105":"Type directory name","S106":"Create","S107":"Destination","S108":"Downloading...","S109":"Command error...","S110":"No SD card","S111":"Could not open directory","S112":"Enable polling commands","S113":"Refresh time","S114":"ms","S115":"Commands","S116":"Positions","S117":"Close all panels","S118":"Distance of movement","S120":"Expand buttons on start","macros":"Macros","S122":"Force mobile view","S123":"Information","S124":"It seems you are in limited environment, please open a browser using $IP$ address to get all features working.","S125":"Macro editor","S126":"Ok","S127":"Macro","S128":"Add macro","S129":"Name","S130":"Color","S131":"Text color","S132":"Icon","S133":"Select","S134":"Select icon","S135":"Type","S136":"Macro type","S137":"Flash","S138":"SD Card","S139":"URL address","S140":"GCODE command","S141":"File name","S142":"Command","S143":"Printer SD","S144":"CNC SD","S145":"Authentication Required","S146":"User Name","S147":"Password","S148":"Log In","S149":"You are now disconnected","S150":"WebUI version","S151":"Disconnect","S152":"Do you want to disconnect?","S153":"Your session will end soon, do you want to stay connected ?","S154":"Stay connected","extrapanels":"Extra panels","S156":"Add panel","S157":"Panel","S158":"Page","S159":"Function type","S160":"Image","S161":"Content","S162":"Camera","S163":"Next","S164":"Previous","S165":"Setup","S166":"Display setup next time?","S167":"Show it","S168":"Hide it","S169":"Enable/disable sound notifications","S170":"Sound notifications","S171":"Update WebUI","S172":"Update Firmware","S173":"Session timeout","S174":"Changes applied, now need to restart the board.","S175":"Operation canceled by user","S176":"Show sensors panel","S177":"List of language packs","S178":"Select","S179":"Select this language pack","general":"General","chip id":"Chip ID","CPU Freq":"CPU Frequency","CPU Temp":"CPU Temperature","free mem":"Free memory","SDK":"SDK","flash size":"Flash Size","size for update":"Available Size for update","FS type":"Filesystem type","FS usage":"Filesystem usage","sleep mode":"Sleep mode","wifi":"WiFi","HTTP port":"HTTP port","Telnet port":"Telnet port","Ftp ports":"Ftp ports","Telnet Client":"Telnet Client","Ftp Client":"Ftp Client","Websocket port":"Websocket port","WebDav port":"WebDav port","WebDav Client":"WebDav Client","camera name":"Camera name","camera ports":"Camera ports","BT Status":"Status","connected":"Connected","disconnected":"Disconnected","cable":"Cable","ON":"Enabled","OFF":"Disabled","DNS":"DNS","mac":"Mac address","signal":"Signal","phy mode":"Phy Mode","visible":"Visible","authentication":"Authentication","DHCP Server":"DHCP Server","clients":"Clients","direct":"Direct","shared":"Shared","debug":"Debug","FW arch":"FW architecture","FW ver":"Firmware version","system":"System","sta":"Client mode","ap":"Access point mode","mixed":"Mixed mode","service":"Services","http":"HTTP protocol","telnetp":"Telnet protocol","websocketp":"WebSocket protocol","webdavp":"WebDav protocol","telnet":"Telnet","ftp":"FTP protocol","notification":"Notifications","network":"Network","yes":"Yes","no":"No","hostname":"Hostname","radio mode":"Radio mode","bt":"Bluetooth","ethernet":"Ethernet","eth-sta":"Ethernet","SSID":"SSID","ip mode":"IP Mode","none":"None","dhcp":"DHCP","static":"Static","ip":"IP","gw":"Gateway","msk":"Mask","pwd":"Password","channel":"Channel","security":"Security","adm pwd":"Admin password","user pwd":"User Password","enable":"Enable","port":"Port","control port":"Control port","active port":"Active port","passive port":"Passive port","time":"Time","i-time":"Internet time","tzone":"Time zone","dst":"DST","t-server":"Time server","auto notif":"Auto notification","pushover":"Pushover","email":"Email","line":"Line","telegram":"Telegram","t1":"Token 1","t2":"Token 2","ts":"Setting","device":"Connected device","camera":"Camera","buzzer":"Buzzer","sensor":"Sensor","type":"Type","sd":"SD card","speedx":"Speed factor","targetfw":"Target firmware","repetier":"Repetier","marlin":"Marlin","marlinkimbra":"Marlin Kimbra","smoothieware":"Smoothieware","unknown":"Unknown","baud":"Baud rate","verbose":"Verbose","bootdelay":"Delay (ms)","boot":"Boot sequence","session timeout":"Inactivity timeout (min)","outputmsg":"Output message","M117":"Printer screen","screen":"Screen","ws":"Websocket","serial":"Serial","intervalms":"Interval (millisec)","modem":"Modem","light":"Light","grbl":"Grbl","SD updater":"SD updater"}');var F,R,A,L=0,B=[],H=e.__b,U=e.__r,W=e.diffed,V=e.__c,q=e.unmount;function $(t,n){e.__h&&e.__h(R,t,L||n),L=0;var o=R.__H||(R.__H={__:[],__h:[]});return t>=o.__.length&&o.__.push({}),o.__[t]}function J(e){return L=1,G(re,e)}function G(e,t,n){var o=$(F++,2);return o.t=e,o.__c||(o.__=[n?n(t):re(void 0,t),function(e){var t=o.t(o.__[0],e);o.__[0]!==t&&(o.__=[t,o.__[1]],o.__c.setState({}))}],o.__c=R),o.__}function Y(t,n){var o=$(F++,3);!e.__s&&oe(o.__H,n)&&(o.__=t,o.__H=n,R.__H.__h.push(o))}function K(e){return L=5,Q((function(){return{current:e}}),[])}function Q(e,t){var n=$(F++,7);return oe(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function X(e){var t=R.context[e.__c],n=$(F++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(R)),t.props.value):e.__}function Z(){B.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(te),t.__H.__h.forEach(ne),t.__H.__h=[]}catch(n){t.__H.__h=[],e.__e(n,t.__v)}})),B=[]}e.__b=function(e){R=null,H&&H(e)},e.__r=function(e){U&&U(e),F=0;var t=(R=e.__c).__H;t&&(t.__h.forEach(te),t.__h.forEach(ne),t.__h=[])},e.diffed=function(t){W&&W(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==B.push(n)&&A===e.requestAnimationFrame||((A=e.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(o),ee&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);ee&&(t=requestAnimationFrame(n))})(Z)),R=void 0},e.__c=function(t,n){n.some((function(t){try{t.__h.forEach(te),t.__h=t.__h.filter((function(e){return!e.__||ne(e)}))}catch(o){n.some((function(e){e.__h&&(e.__h=[])})),n=[],e.__e(o,t.__v)}})),V&&V(t,n)},e.unmount=function(t){q&&q(t);var n=t.__c;if(n&&n.__H)try{n.__H.__.forEach(te)}catch(t){e.__e(t,n.__v)}};var ee="function"==typeof requestAnimationFrame;function te(e){var t=R;"function"==typeof e.__c&&e.__c(),R=t}function ne(e){var t=R;e.__c=e.__(),R=t}function oe(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function re(e,t){return"function"==typeof t?t(e):t}const le={...N,...D,...z},ie=I("TranslationsContext"),ae=()=>X(ie),se=({children:e})=>{const[t,n]=J(le),o={currentLanguage:t,setCurrentLanguage:n,baseLangRessource:le};return u(ie.Provider,{value:o},e)},ce=I("RouterContext"),ue=()=>X(ce),de=({children:e})=>{const t=K("/about"),n=K("/settings/features"),[o,r]=J(t.current),[l,i]=J({}),a={activeRoute:o,setActiveRoute:r,routes:l,setRoutes:i,defaultRoute:t,activeTab:n};return u(ce.Provider,{value:a},e)};function pe(){return(pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}const he=()=>Math.random().toString(36).substr(2,9),me=(e,t,n={})=>({is:o=e,class:r="",id:l="",...i})=>{const a=Object.keys(i).reduce((e,t)=>Object.keys(n).includes(t)?{classes:[...e.classes,n[t]],...e.props}:{classes:[...e.classes],props:{...e.props,[t]:i[t]}},{classes:[],props:{}});return u(o,pe({class:`${t} ${a.classes.join(" ")} ${r}`.trim(),id:l},a.props))},fe=(e,t,n)=>{n/=100;const o=t*Math.min(n,1-n)/100,r=t=>{const r=(t+e/30)%12,l=n-o*Math.max(Math.min(r-3,9-r,1),-1);return Math.round(255*l).toString(16).padStart(2,"0")};return`#${r(0)}${r(8)}${r(4)}`};const ge=(e="",t)=>{const n=new URL("http://"+window.location.host+"/"+e);return t&&Object.keys(t).forEach(e=>{n.searchParams.append(e,t[e])}),n};function ve(e,t){let n=e;if(void 0===e.length&&"number"!=typeof e)for(let o in t){let r=t[o];void 0===e[o]?n[o]=r:n[o]=ve(e[o],t[o])}else if(e.length>0&&"string"!=typeof e){for(let o in t)if(-1===JSON.stringify(e).indexOf(JSON.stringify(t[o]))){let e=n.findIndex(e=>e.id==t[o].id);if(-1==e)n.push(t[o]);else if(Array.isArray(n[e].value))for(let r in t[o].value)n[e].value.push(t[o].value[r]);else n[e].value=t[o].value}}else n=t;return n}function Se(){function e(e,t){return e.toString().padStart(t,"0")}const t=new Date;return`${t.getFullYear()}-${e(t.getMonth()+1,2)}-${e(t.getDate(),2)}-${e(t.getHours(),2)}-${e(t.getMinutes(),2)}-${e(t.getSeconds(),2)}`}function be(e,t){if(!e)return;let n=e.children;if(n)for(var o=0;o<n.length;o++)be(n[o],t);t?e.setAttribute("disabled","true"):e.removeAttribute("disabled")}const _e=I("uiContext"),ye=()=>X(_e),we=({children:e})=>{const[t,n]=J(),[o,r]=J([]),[l,i]=J([]),[a,s]=J(!1),[c,d]=J(!1),[p,h]=J({connected:!1,authenticate:!0,page:"connecting"}),m=K(l);m.current=l;const f={data:[t,n],modals:{modalList:o,addModal:e=>r([...o,{...e,id:e.id?e.id:he()}]),removeModal:e=>{const t=o.filter((t,n)=>n!==e);r(t),0==t.length&&be(document.getElementById("main"),!1),be(document.getElementById("info"),!1),be(document.getElementById("menu"),!1)},getModalIndex:e=>o.findIndex(t=>t.id==e),clearModals:()=>{r([])}},toasts:{toastList:l,addToast:e=>{i([...m.current,{...e,id:he()}])},removeToast:e=>{const t=(n=m.current,o=e,n.filter(({id:e})=>!o.includes(e)));var n,o;i([...t])}},connection:{connectionState:p,setConnectionState:h},dialogs:{needLogin:a,setNeedLogin:s,showKeepConnected:c,setShowKeepConnected:d}};return u(_e.Provider,{value:f},e)},xe=I("HttpQueueContext"),ke=()=>X(xe),Pe=({children:e})=>{const t=K([]),n=K(!1),o=K(),{dialogs:r,connection:l}=ye(),i=e=>{const n=[...t.current].filter(({id:t})=>!e.includes(t));t.current=n},a=async()=>{n.current||(n.current=!0);const{url:e,params:s,onSuccess:c,onFail:u,onProgress:d}=t.current[0];let p=!1;try{o.current=((e,t={},n=(()=>{}))=>{const{method:o="GET",headers:r={},body:l=null}=t,i=o.trim().toUpperCase(),a=new XMLHttpRequest;a.upload.addEventListener("progress",e=>{const t=e.position||e.loaded,o=e.totalSize||e.total,r=Math.floor(t/o*1e3)/10;n(r)}),a.open(i,e+(/\?/.test(e)?"&":"?")+"t="+(new Date).getTime(),!0),r instanceof Headers?r.forEach((e,t)=>a.setRequestHeader(t,e)):Object.keys(r).forEach(e=>a.setRequestHeader(e,r[e]));const s=new Promise((e,t)=>{a.onload=()=>{a.status>=200&&a.status<300&&e(a.response);const n=new Error(`${a.status}${a.statusText?" - "+a.statusText:""}`);n.code=a.status,t(n)},a.onerror=()=>t(new Error("An error occurred during the transaction")),a.onabort=()=>{const e=new Error("Request aborted");e.code=499,t(e)}}),c=["POST","PUT","CONNECT","PATCH"].toLocaleString(o)?l:null;return a.send(c),{abort:e=>{if(a.abort(),"function"==typeof callback)return e()},xhr:a,response:s}})(e,s,d);const u=await o.current.response;l.setConnectionState({connected:l.connectionState.connected,authenticate:!0,page:"connecting"}),c(u)}catch(e){401==e.code?(p=!0,l.setConnectionState({connected:l.connectionState.connected,authenticate:!1,page:"notauthenticated"})):499==e.code||e.code||l.setConnectionState({connected:!1,authenticate:l.connectionState.authenticate,page:"connectionlost"}),u&&u(e.message)}finally{p?(i("login"),o.current=null,r.setNeedLogin(!0)):(t.current=[...t.current].slice(1),o.current=null,t.current.length>0?a():n.current=!1)}};return u(xe.Provider,{value:{addInQueue:e=>{t.current=[...t.current,e],n.current||a()},addInTopQueue:e=>{t.current=[e,...t.current],n.current||a()},removeRequests:i,getCurrentRequest:()=>o.current,removeAllRequests:()=>{o.current&&o.current.abort(),t.current=[],o.current=null},processRequests:()=>{a()}}},e)},Ce=I("SettingsContext"),Oe=()=>X(Ce),Te=({children:e})=>{const t=K({}),n=K({}),o=K({}),r={settings:t,interfaceSettings:t,connectionSettings:n,featuresSettings:o,getInterfaceValue:e=>{if(t.current)for(let n in t.current)if(Array.isArray(t.current[n])){for(let o=0;o<t.current[n].length;o++)if(t.current[n][o].id==e)return t.current[n][o].value}else for(let o in t.current[n])if(Array.isArray(t.current[n][o]))for(let r=0;r<t.current[n][o].length;r++)if(t.current[n][o][r].id==e)return t.current[n][o][r].value}};return u(Ce.Provider,{value:r},e)},je=I("DatasContext"),Me=()=>X(je),Ee=({children:e})=>{const t={datas:K({about:[]})};return u(je.Provider,{value:t},e)},Ie=/([a-zA-Z]{1}-?\d*){1}:(-?\d+\.?\d*){1} *\/? *(\d*\.*\d*)?/gim,Ne=/([\w-\/~\d]+.[\d\w]+)\s(\d+)/gim;class De{constructor(){this.fileListBuffer=[],this.isParsingFile=!1,this.currentLine="",this.results=[],this.parse=this.parse.bind(this),this.fileParser=this.fileParser.bind(this),this.returnFileList=this.returnFileList.bind(this)}parse(e){if((e=>""===e.trim()||"\n"===e||"\r"===e||"\r\n"===e)(e)||(e=>e.startsWith(";"))(e))return null;if((e=>e.startsWith("Begin file list"))(e))return this.isParsingFile=!0,null;if(this.isParsingFile){if((e=>e.startsWith("End file list"))(e)){this.isParsingFile=!1;const e=this.returnFileList();return this.fileListBuffer=[],e}return this.lineParser("files",e),null}return(e=>-1!=e.indexOf("T:"))(e)?this.lineParser("temp",e):null}fileParser(e){const t=[...e.matchAll(Ne)],[n,o,r]=t[0];return this.fileListBuffer=n?[...this.fileListBuffer,{name:o,size:parseInt(r)}]:[...this.fileListBuffer],null}returnFileList(){return{values:[...this.fileListBuffer],type:"files"}}lineParser(e,t){return"temp"===e?this.temperatureParser(t):"files"===e?this.fileParser(t):void 0}temperatureParser(e){return{values:[...e.matchAll(Ie)].map((e,t,n)=>{const o=Math.floor(360/n.length*t);return{timestamp:Date.now(),id:e[1],value:parseFloat(e[2]),target:parseFloat(e[3]),color:fe(o,80,70)}}),type:"temp"}}}const ze=JSON.parse('{"settings":{"polling":[{"id":"pollingcommands","type":"text","label":"S115","help":"S97","value":"M105"}]}}'),Fe=JSON.parse('{"settings":{"temperatures":[{"id":"showtemperaturespanel","type":"boolean","label":"S63","value":true},{"id":"extrudermax","type":"number","label":"P48","value":"300","append":"P72","min":"1"},{"id":"extruderpreheat","type":"text","label":"P68","value":"190;220;230","append":"P72","help":"S97"},{"id":"bedmax","type":"number","label":"P67","value":"140","append":"P72","min":"1"},{"id":"bedpreheat","type":"text","label":"P69","value":"50;90;110","append":"P72","help":"S97"},{"id":"chambermax","type":"number","label":"P70","value":"140","append":"P72"},{"id":"chamberpreheat","type":"text","label":"P71","append":"P72","value":"50;90;110","help":"S97"}],"extruders":[{"id":"showextruderspanel","type":"boolean","label":"S63","value":true},{"id":"ismixedextruder","type":"boolean","label":"P49","value":false},{"id":"ecolors","type":"text","label":"P51","help":"S97","value":"blue;red;green;#FF00FF"},{"id":"efeedrate","type":"number","label":"P50","append":"P14","value":"400","min":"1"},{"id":"enumber","type":"number","label":"P52","value":"1","min":"1"}],"controls":[{"id":"showfanspanel","type":"boolean","label":"P45","value":true},{"id":"showspeedpanel","type":"boolean","label":"P46","value":false},{"id":"showflowratepanel","type":"boolean","label":"P47","value":false}],"files":[{"id":"filesfilter","type":"text","label":"S96","value":"g;G;gco;GCO;gcode;GCODE","help":"S97"},{"id":"tftsd","type":"boolean","label":"P23","value":false},{"id":"tftusb","type":"boolean","label":"P24","value":false},{"id":"printersd","type":"boolean","label":"P26","value":false}],"jog":[{"id":"xyfeedrate","type":"number","label":"P10","min":"1","append":"P14","value":"1000"},{"id":"zfeedrate","type":"number","label":"P11","append":"P14","min":"1","value":"1000"},{"id":"xpos","type":"number","label":"P65","value":"100"},{"id":"ypos","type":"number","label":"P66","value":"100"}]}}'),Re=ve(ve(JSON.parse('{"settings":{"general":[{"id":"language","type":"pickup","label":"S68","value":"default"},{"id":"autoload","type":"boolean","label":"S64","value":true},{"id":"mobileview","type":"boolean","label":"S122","value":false},{"id":"showsensorspanel","type":"boolean","label":"S176","value":false}],"polling":[{"id":"enablepolling","type":"boolean","label":"S112","value":false},{"id":"pollingrefresh","type":"number","label":"S113","min":"1","max":"360000","append":"S114","value":"3000"},{"id":"pollingcommands","type":"text","label":"S115","help":"S97","value":""}],"terminal":[{"id":"showterminalpanel","type":"boolean","label":"S63","value":true},{"id":"openterminalonstart","type":"boolean","label":"S93","value":false},{"id":"verbose","type":"boolean","label":"S76","value":true},{"id":"autoscroll","type":"boolean","label":"S77","value":true}],"files":[{"id":"showfilespanel","type":"boolean","label":"S63","value":true},{"id":"openfilesonstart","type":"boolean","label":"S93","value":false}],"jog":[{"id":"showjogpanel","type":"boolean","label":"S63","value":true}],"macros":[{"id":"showmacros","type":"boolean","label":"S63","value":true},{"id":"expandmacrosbuttonsonstart","type":"boolean","label":"S120","value":true},{"id":"macros","type":"list","value":[]}],"extrapanels":[{"id":"showextrapanels","type":"boolean","label":"S63","value":true},{"id":"extrapanels","type":"list","value":[]}]}}'),Fe),ze),Ae=I("wsContext"),Le=()=>X(Ae),Be={temp:[],files:[]},He=(e,t)=>{if(!t)return Be;switch(t.type){case"temp":return{...e,temp:(n=[...e.temp,t.values],o=400,n.slice(n.length-(n.length<=o?n.length:o),n.length))};case"files":return{...e,files:t.values};default:return{...Be,...e}}var n,o},Ue=({children:e})=>{const{toasts:t,connection:n,dialogs:o,modals:r}=ye(),{removeAllRequests:l}=ke(),[i,a]=G(He,Be),s=K([]),{connectionSettings:c}=Oe(),d=K(new De),p=K(),[h,m]=J(!1),[f,g]=J(!1),v=K(!1),S=K(0),[b,_]=J([]),y=(e=!1)=>{if(!v.current){if(f){if(e)return}else g(!0);if(setTimeout(y,5e3),!h&&p.current&&1==p.current.readyState){const e=function(e){let t=e+"=",n=decodeURIComponent(document.cookie).split(";");for(var o=0;o<n.length;o++){for(var r=n[o];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return""}("ESPSESSIONID"),t="PING:"+(e.length>0?e:"none");p.current.send(t)}}},w=e=>{if(v.current)return;const{parse:t}=d.current,n=e.data;if(n instanceof ArrayBuffer){const e=(r=n,new Uint8Array(r).reduce((e,t)=>{if(10==t||13==t)return[...e,[]];const n=Number(e.length-1);return[...e.slice(0,n),[...e[n],t]]},[[]])).map(e=>({std:"out",value:e.reduce((e,t)=>e+String.fromCharCode(t),"")}));s.current=[...s.current,...e],[...e].forEach(e=>{a(t(e.value))})}else{const e=n.split(":");if(e.length>1)switch(e[0].toUpperCase()){case"CURRENTID":c.current.wsID=e[1];break;case"ACTIVEID":e[1]!=c.current.wsID&&x("already connected");break;case"PING":3==e.length&&(e[1]<=0?x("sessiontimeout"):e[1]<3e4&&o.setShowKeepConnected(!0))}s.current=[...s.current,{std:"out",value:n}];const r=t(n);r&&a(r)}var r;_(s.current)},x=e=>{n.setConnectionState({connected:!1,authenticate:!1,page:e}),g(!1),m(!0),v.current=!0,p.current&&p.current.close(),l(),r.clearModals()},k=()=>{if(!c.current.WebCommunication)return S.current<4?(S.current++,console.log("Error with connection data",c.current),void setTimeout(k,3e3)):void t.addToast({content:"S6",type:"error"});const e="Synchronous"===c.current.WebCommunication?"":"/ws";p.current=new WebSocket(`ws://${c.current.WebSocketIP}:${c.current.WebSocketport}${e}`,["arduino"]),p.current.binaryType="arraybuffer",p.current.onopen=e=>(S.current=0,void y(!0)),p.current.onmessage=e=>w(e),p.current.onclose=e=>{v.current||(h||S.current++,S.current>=4?x("connectionlost"):(console.log("Ws connection lost"),setTimeout(k,3e3)))},p.current.onerror=e=>(S.current++,void t.addToast({content:"S6",type:"error"}))};Y(()=>{c.current.WebCommunication&&k()},[c.current]);const P={ws:p.current,data:b,parsedValues:i,setData:e=>{s.current=e,_(e)},addData:e=>{const t=[...b,e];s.current=t,_(t)},setIsPingPaused:m,Disconnect:x};return u(Ae.Provider,{value:P},e)},We=me("div","loading",{lg:"loading-lg",large:"loading-lg"}),Ve=me("div","modal",{lg:"text-lg",large:"text-lg",sm:"text-sm",small:"text-sm"});Ve.Overlay=me("a","modal-overlay"),Ve.Container=me("div","modal-container"),Ve.Header=me("div","modal-header"),Ve.Body=me("div","modal-body"),Ve.Footer=me("div","modal-footer");const qe=Ve,$e=me("div","toast",{primary:"toast-primary",success:"toast-success",warning:"toast-warning",error:"toast-error"});$e.Close=me("button","btn btn-clear float-right");const Je=$e;function Ge(){return(Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}const Ye=me("button","btn",{link:"btn-link",primary:"btn-primary",error:"btn-error",success:"btn-success",lg:"btn-lg",sm:"btn-sm",block:"btn-block",action:"btn-action",circle:"s-circle",active:"active",disable:"disable",loading:"loading",tooltip:"tooltip",ltooltip:"tooltip tooltip-left",mx2:"mx-2",m2:"m-2"}),Ke=({label:e,icon:t,...n})=>u(Ye,Ge({class:"feather-icon-container"},n),t,e&&u("label",{class:"hide-low",style:"pointer-events: none;"},e)),Qe=(me("progress","progress"),({children:e})=>u("center",null,u("div",{style:"display: inline-block;text-align: left;"},e))),Xe=JSON.parse('{"en":"English","fr":"Français","zh_cn":"简体中文"}');function Ze(e,t=!1,n=null){const{currentLanguage:o,baseLangRessource:r}=ae();let l=t?r[e]:n?n[e]:o[e];return e&&"object"!=typeof e&&isNaN(e)&&isNaN(e.charAt(0))?(void 0===l&&(l=r[e],void 0===l&&(l=e)),l):e}function et(e){const t=e.replace("lang-","").replace(".json","");let n=Xe[t];return t&&"object"!=typeof t&&isNaN(t)&&isNaN(t.charAt(0))?void 0===n?e:n:t}const tt=({index:e,type:t="",children:n,timeout:o=2e3,remove:r})=>(Y(()=>{let t;if(o)return t=setTimeout(()=>{r(e)},o),()=>clearTimeout(t)},[]),u(Je,{[t]:!0},u(Je.Close,{onClick:()=>{r(e)}}),n)),nt=()=>{const{toasts:e}=ye();return e.toastList&&u("div",{class:"toasts-container"},e.toastList.map(t=>{const{id:n,type:o,content:r}=t;return u(tt,{remove:e.removeToast,index:n,type:o,key:n},Ze(r))}))},ot=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("circle",{cx:"12",cy:"12",r:"10"}),u("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),u("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"}))},rt=({modals:e,title:t,button1:n,button2:o,content:r,icon:l,id:i,hideclose:a,overlay:s})=>{-1==e.getModalIndex(i)&&e.addModal({id:i,title:u("div",{class:"text-primary feather-icon-container",style:"line-height:24px!important"},l,u("label",null,t)),content:r,footer:u("div",null,n&&u("button",{class:"btn mx-2",onClick:()=>{n&&1!=n.noclose&&e.removeModal(e.getModalIndex(i)),n&&n.cb&&n.cb()}},n.text),o&&u("button",{class:"btn mx-2",onClick:()=>{o&&1!=o.noclose&&e.removeModal(e.getModalIndex(i)),o&&o.cb&&o.cb()}},o.text)),overlay:s,hideclose:a})},lt=({modals:e,title:t,content:n,button1:o,button2:r})=>{rt({modals:e,title:t,content:n,button1:o,button2:r,id:"confirmation",icon:u(ot,null),hideclose:!0})},it=()=>{const{addInQueue:e,addInTopQueue:t,removeRequests:n,getCurrentRequest:o,processRequests:r}=ke(),[l,i]=J(),[a,s]=J(!0),c=K([]);Y(()=>{},[]);return{data:l,setData:i,createNewRequest:(t,n,o={})=>{const{onSuccess:r,onFail:l,onProgress:a}=o,s=n.id?n.id:he();c.current=[...c.current,s],e({id:s,url:t,params:n,onSuccess:e=>{i(e),r&&r(e)},onProgress:e=>{a&&a(e)},onFail:l?e=>{l&&l(e)}:null})},processRequestsNow:()=>{r()},createNewTopRequest:(e,n,o={})=>{const{onSuccess:r,onFail:l,onProgress:a}=o,s=n.id?n.id:he();c.current=[...c.current,s],t({id:s,url:e,params:n,onSuccess:e=>{i(e),r&&r(e)},onProgress:e=>{a&&a(e)},onFail:l?e=>{l&&l(e)}:null})},abortRequest:e=>{e&&n(e);const t=o();t&&t.abort()},setKillOnUnmount:s}};function at(e,t){let n=!1;const o=JSON.parse(JSON.stringify(e));function r(e,t){for(let n in o.settings)if(Array.isArray(o.settings[n]))for(let r=0;r<o.settings[n].length;r++)if(o.settings[n][r].id==e)return o.settings[n][r].value=t,!0;return!1}if(t.custom&&(o.custom=t.custom),t.settings)for(let e in t.settings)r(e,t.settings[e])||(n=!0,console.log("Error with ",e));return[o,n]}const st=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("circle",{cx:"12",cy:"12",r:"10"}),u("path",{d:"M16 16s-1.5-2-4-2-4 2-4 2"}),u("line",{x1:"9",y1:"9",x2:"9.01",y2:"9"}),u("line",{x1:"15",y1:"9",x2:"15.01",y2:"9"}))},ct=()=>{const{createNewRequest:e}=it(),{toasts:t,connection:n}=ye(),{interfaceSettings:o,connectionSettings:r,getInterfaceValue:l}=Oe(),{defaultRoute:i,setActiveRoute:a}=ue(),{currentLanguage:s,baseLangRessource:c,setCurrentLanguage:d}=ae();return{getInterfaceSettings:(n,r)=>{o.current=Re,e(ge("preferences.json").toString(),{method:"GET"},{onSuccess:i=>{const a=JSON.parse(i),[s,p]=at(Re,a);!function(e){for(let t in e)if(Array.isArray(e[t]))for(let n=0;n<e[t].length;n++)e[t][n].id&&(e[t][n].initial=e[t][n].value)}(s.settings),p&&t.addToast({content:u("span",{class:"feather-icon-container"},u(st,null),u("span",{class:"m-1"},"preferences.json")),type:"error"}),o.current=s,l("mobileview")?document.getElementById("app").classList.add("mobile-view"):document.getElementById("app").classList.remove("mobile-view");const h=l("language");d(c),"default"!=h?(n&&n(!1),e(ge(h).toString(),{method:"GET"},{onSuccess:e=>{const t=JSON.parse(e);d(t),r&&r(),n&&n(!1)},onFail:e=>{r&&r(),n&&n(!1),t.addToast({content:e+" "+h,type:"error"})}})):(r&&r(),n&&n(!1))},onFail:e=>{n&&n(!1),t.addToast({content:e+" preferences.json",type:"error"}),console.log("No valid preferences.json")}})},getConnectionSettings:o=>{e(ge("command",{cmd:"[ESP800]",time:Se()}).toString(),{method:"GET",id:"connection"},{onSuccess:e=>{const t=JSON.parse(e);r.current=t,document.title=t.Hostname,n.setConnectionState({connected:!0,authenticate:!0,page:"connecting"}),0==t.FWTarget?(a("/settings"),i.current="/settings"):(a("/dashboard"),i.current="/dashboard")},onFail:e=>{n.setConnectionState({connected:!1,authenticate:!1,page:"error"}),e.startsWith("401")||t.addToast({content:e,type:"error"})}})},getInterfaceValue:l}},ut=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),u("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"}))};function dt(){return(dt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}const pt=({id:e,label:t,validation:n,value:o=!1,type:r,setValue:l,inline:i,...a})=>{const s={name:e,id:e,checked:o,...a};return Y(()=>{l&&l(null,!0)},[o]),u("label",{class:"form-switch"},u("input",dt({type:"checkbox"},s,{onChange:e=>{l&&l(e.target.checked)}})),u("i",{class:"form-icon"})," ",u("span",{class:i?"text-dark":"d-none"},t))},ht=({inline:e,validation:t=null,children:n,label:o,id:r,type:l})=>u("div",{class:""+(e=>null!==e&&e.valid?e.modified?"form-group has-modification":"form-group has-success":null===e||e.valid?"form-group":"form-group has-error")(t)},u("div",{class:e?"columns mt-2":"flex-cols"},u("label",{class:e&&"boolean"==l?"d-none":"form-label text-dark "+(e?"column col-auto":""),htmlFor:r},o),n),t&&t.message&&u("div",{className:"form-input-hint "+(e?"text-left":"text-center")},t.message)),mt=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),u("line",{x1:"1",y1:"1",x2:"23",y2:"23"}))},ft=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),u("circle",{cx:"12",cy:"12",r:"3"}))},gt=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("circle",{cx:"11",cy:"11",r:"8"}),u("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))},vt=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),u("polyline",{points:"22 4 12 14.01 9 11.01"}))},St=({id:e,setValue:t,refreshfn:n})=>{const{modals:o,toasts:r}=ye(),[l,i]=J(!0),[a,s]=J([]),{createNewRequest:c}=it(),d=()=>{i(!0),c(ge("command",{cmd:"[ESP410]"}).toString(),{method:"GET"},{onSuccess:e=>{i(!1);const t=JSON.parse(e);s(t.AP_LIST)},onFail:e=>{i(!1),r.addToast({content:e,type:"error"}),s([])}})};return Y(()=>{d(),n(d)},[]),u(p,null,l&&u(We,null),!l&&u("table",{class:"table"},u("thead",{class:"hide-low"},u("tr",null,u("th",null,Ze("SSID")),u("th",null,Ze("signal")),u("th",null,Ze("S49")),u("th",null,Ze("S48")))),u("tbody",null,a.map(n=>u("tr",null,u("td",null,n.SSID.replace("'","'").replace(""",'"')),u("td",null,n.SIGNAL,"%"),u("td",null,n.IS_PROTECTED?u(ut,null):""),u("td",null,u(Ke,{m2:!0,ltooltip:!0,"data-tooltip":Ze("S51"),icon:u(vt,null),onClick:()=>{t(n.SSID.replace("'","'").replace(""",'"')),o.removeModal(o.getModalIndex(e))}})))))))};function bt(){return(bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}const _t=({applyTo:e})=>{const[t,n]=J(!1);return Y(()=>{e.current.type=t?"text":"password"},[]),u("div",{class:"form-icon passwordReveal",onCLick:()=>{n(!t),e.current.type=t?"password":"text"}},u(t?mt:ft,{size:"1rem",class:"has-error",style:"margin-top:0.15rem"}))},yt=({label:e="",type:t="text",id:n="",value:o="",setValue:r,extra:l,inline:i,append:a,help:s,...c})=>{const d=K(),p=e=>{r&&r(e.target.value)},{modals:h}=ye(),m={type:t,id:n,name:n,value:o};let f=null;const g=()=>{f&&f()};if(Y(()=>{r&&r(null,!0)},[o]),"password"===t)return u("div",bt({class:"has-icon-right "+(i?"column":"")},c),u("input",bt({ref:d,class:"form-input"},m,{placeholder:""},c,{onInput:p})),u(_t,{applyTo:d}));if("scan"==l){const e=Ze("S45"),t=Ze("S24"),n=Ze("S50");return u("div",{class:`input-group ${i?"column":""} `},u("input",bt({ref:d,id:"ssid_sta",class:"form-input"},m,{placeholder:""},c,{onInput:p})),u(Ke,{class:"input-group-btn",ltooltip:!0,"data-tooltip":Ze("S40"),icon:u(gt,{color:"blue"}),onClick:o=>{o.target.blur();rt({modals:h,title:e,button2:{text:t},button1:{cb:g,text:n,noclose:!0},icon:u(gt,null),id:"scan",content:u(St,{id:"scan",setValue:r,refreshfn:e=>f=e})})}}))}return u("div",{class:`input-group ${i?"column":""} ${s?"tooltip":""}`,"data-tooltip":Ze(s)},u("input",bt({class:"form-input"},m,c,{onInput:p})),a&&u("span",{class:"input-group-addon"},Ze(a)))};function wt(){return(wt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}const xt=({label:e,...t})=>u("option",t,e),kt=({label:e="",id:t="",options:n=[],inline:o,setValue:r,value:l,...i})=>{const a=n.map(e=>u(xt,e)),s={id:t,name:t};return Y(()=>{r&&r(null,!0)},[l]),u("select",wt({class:"form-select "+(o?"column":"")},s,i,{value:l,onChange:e=>{r&&r(e.target.value)}}),a)},Pt=({id:e,setValue:t,refreshfn:n})=>{const{modals:o,toasts:r}=ye(),[l,i]=J(!0),[a,s]=J([]),{createNewRequest:c}=it(),d=()=>{i(!0),c(ge("files",{path:"/"}).toString(),{method:"GET"},{onSuccess:e=>{i(!1);const t=JSON.parse(e);s(t.files)},onFail:e=>{i(!1),r.addToast({content:e,type:"error"}),s([])}})};return Y(()=>{d(),n(d)},[]),u(p,null,l&&u(We,null),!l&&u("table",{class:"table"},u("thead",{class:"hide-low"},u("tr",null,u("th",null,Ze("S67")),u("th",null,Ze("S178")))),u("tbody",null,u("tr",null,u("td",null,Ze("lang",!0)),u("td",null,u(Ke,{m2:!0,ltooltip:!0,"data-tooltip":Ze("S179"),icon:u(vt,null),onClick:()=>{t("default"),o.removeModal(o.getModalIndex(e))}}))),a.map(n=>{if(n.name.match(/^lang-\w*.json(.gz)*/g))return u("tr",null,u("td",null,et(n.name.replace(".gz",""))),u("td",null,u(Ke,{m2:!0,ltooltip:!0,"data-tooltip":Ze("S179"),icon:u(vt,null),onClick:()=>{t(n.name.replace(".gz","")),o.removeModal(o.getModalIndex(e))}})))}))))},Ct=({label:e="",id:t="",inline:n,setValue:o,value:r,...l})=>{const[i,a]=J(Ze("lang")),{modals:s,toasts:c}=ye(),d=Ze("lang",!0),p=e=>{o&&o(e),a("default"==e?d:et(e))},h=Ze("S177"),m=Ze("S24"),f=Ze("S50");let g=null;const v=()=>{g&&g()};return Y(()=>{o&&o(null,!0),a("default"==r?d:et(r))},[r]),u("div",{class:`input-group ${n?"column":""} `},u("span",{class:"form-input",style:"cursor: pointer;",readonly:!0,value:Ze("lang"),onClick:e=>{e.target.blur();rt({modals:s,title:h,button2:{text:m},button1:{cb:v,text:f,noclose:!0},icon:u(gt,null),id:"langagePickup",content:u(Pt,{id:"langagePickup",setValue:p,refreshfn:e=>g=e})})}},i))},Ot=e=>{const{type:t,id:n}=e;switch(t){case"list":return u("span",null,"List for ",n," (TODO)");case"pickup":return u(ht,e,u(Ct,e));case"select":return u(ht,e,u(kt,e));case"boolean":return u(ht,e,u(pt,e));default:return u(ht,e,u(yt,e))}},Tt=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("circle",{cx:"12",cy:"12",r:"10"}),u("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),u("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"}))},jt=({modals:e,title:t,button1:n,content:o})=>{const r="progression";-1==e.getModalIndex(r)&&e.addModal({id:r,title:u("div",{class:"text-primary feather-icon-container",style:"line-height:24px!important"},u(Tt,null),u("label",null,t)),content:o,footer:u("button",{class:"btn mx-2",onClick:()=>{e.removeModal(e.getModalIndex(r)),n&&n.cb&&n.cb()}},n.text),hideclose:!0})},Mt=()=>{const{modals:e}=ye();return e.modalList&&e.modalList.length>0&&(be(document.getElementById("main"),!0),be(document.getElementById("info"),!0),be(document.getElementById("menu"),!0)),e.modalList&&e.modalList.length>0&&e.modalList.map((t,n)=>{t.size;return u(qe,{class:"active",id:"modal-"+t.id,key:n},u(qe.Overlay,{"aria-label":"Close",onClick:()=>{t.overlay&&e.removeModal(n)}}),u(qe.Container,null,u(qe.Header,null,u("button",{className:t.hideclose?"d-none":"btn btn-clear float-right btn-red","aria-label":"Close",onClick:()=>e.removeModal(n)}),u("div",{className:"modal-title h5"},t.title&&t.title)),u(qe.Body,null,u("div",{className:"content"},t.content&&t.content)),t.footer&&u(qe.Footer,null,t.footer)))})},Et=({height:e="50px",color:t="currentColor",bgcolor:n="white"})=>{const{interfaceSettings:o}=Oe();return o.current&&o.custom&&o.custom.logo?u("span",{dangerouslySetInnerHTML:{__html:o.custom.logo.replace("{height}",e).replaceAll("{color}",t).replaceAll("{bgcolor}",n)}}):u("svg",{height:e,viewBox:"22 56 240 180",fill:n,stroke:t},u("path",{d:"m 227,91.9 -97,-0.3 0,100.4 83,0 c 20,0 46,-6 47,-36 l 0,-24 c 1,-20 -13,-40 -33,-40.1 z"}),u("path",{fill:t,stroke:n,d:"M79.7,200.2h124c-15.5,16.5-37.6,26.7-62,26.7S95.3,216.7,79.7,200.2z"}),u("path",{fill:t,stroke:n,d:"M203.7,83.2h-124c15.5-16.5,37.6-26.7,62-26.7S188.2,66.8,203.7,83.2z"}),u("path",{fill:t,stroke:n,d:"M200.3,152.7c0,2.7-0.5,5-1.5,7.1s-2.4,3.8-4.2,5.2c-1.8,1.4-4,2.5-6.5,3.2c-2.5,0.7-5.3,1.1-8.3,1.1c-1.8,0-3.5-0.1-5.1-0.4c-1.6-0.3-3-0.6-4.2-1c-1.2-0.4-2.2-0.8-3-1.2c-0.8-0.4-1.3-0.7-1.6-0.9c-0.2-0.2-0.4-0.5-0.6-0.7c-0.1-0.3-0.2-0.6-0.3-1c-0.1-0.4-0.2-0.8-0.2-1.4c0-0.6-0.1-1.2-0.1-2c0-1.3,0.1-2.2,0.3-2.7c0.2-0.5,0.5-0.8,1-0.8c0.3,0,0.7,0.2,1.4,0.6c0.7,0.4,1.5,0.8,2.6,1.2c1,0.4,2.3,0.8,3.7,1.2c1.4,0.4,3,0.6,4.8,0.6c1.5,0,2.8-0.2,4-0.5c1.2-0.4,2.1-0.9,2.9-1.5c0.8-0.6,1.4-1.4,1.8-2.3c0.4-0.9,0.6-1.9,0.6-3.1c0-1.2-0.2-2.3-0.7-3.3c-0.5-1-1.2-1.8-2.1-2.5c-0.9-0.7-2.1-1.2-3.6-1.6c-1.4-0.4-3.1-0.6-5.1-0.6h-4.6c-0.4,0-0.7,0-0.9-0.1c-0.2-0.1-0.5-0.3-0.6-0.6c-0.2-0.3-0.3-0.7-0.3-1.3c-0.1-0.5-0.1-1.2-0.1-2.1c0-0.8,0-1.4,0.1-2c0.1-0.5,0.2-0.9,0.3-1.2c0.2-0.3,0.3-0.5,0.6-0.6c0.2-0.1,0.5-0.2,0.8-0.2h4.6c1.6,0,3-0.2,4.2-0.6c1.2-0.4,2.3-0.9,3.1-1.6c0.8-0.7,1.5-1.5,1.9-2.5c0.4-1,0.7-2,0.7-3.2c0-0.9-0.2-1.8-0.5-2.6c-0.3-0.8-0.7-1.5-1.3-2.1c-0.6-0.6-1.3-1.1-2.3-1.4c-0.9-0.3-2-0.5-3.3-0.5c-1.4,0-2.8,0.2-4,0.6c-1.3,0.4-2.4,0.9-3.4,1.4c-1,0.5-1.8,1-2.5,1.4c-0.7,0.4-1.2,0.7-1.5,0.7c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.3-0.3-0.4-0.6c-0.1-0.3-0.2-0.7-0.2-1.2c-0.1-0.5-0.1-1.2-0.1-2c0-0.7,0-1.3,0-1.7c0-0.5,0.1-0.8,0.2-1.1c0.1-0.3,0.2-0.6,0.3-0.8c0.1-0.2,0.3-0.5,0.6-0.7c0.3-0.3,0.8-0.7,1.7-1.2c0.8-0.5,1.9-1,3.2-1.5c1.3-0.5,2.8-0.9,4.5-1.3c1.7-0.3,3.5-0.5,5.5-0.5c2.6,0,4.9,0.3,6.8,0.9c2,0.6,3.7,1.5,5,2.6c1.4,1.1,2.4,2.5,3.1,4.2c0.7,1.7,1,3.5,1,5.6c0,1.6-0.2,3.1-0.6,4.5c-0.4,1.4-1,2.6-1.8,3.7c-0.8,1.1-1.8,2-3,2.8c-1.2,0.8-2.6,1.3-4.1,1.7v0.1c1.9,0.2,3.5,0.7,5,1.4c1.5,0.7,2.7,1.6,3.8,2.7c1,1.1,1.8,2.3,2.4,3.7C200,149.7,200.3,151.2,200.3,152.7z"}),u("path",{fill:t,stroke:n,d:"M249.6,141c0,4.9-0.6,9-1.9,12.5c-1.3,3.5-3.1,6.3-5.5,8.5c-2.4,2.2-5.3,3.8-8.7,4.8c-3.4,1-7.5,1.5-12.2,1.5h-12.7c-0.9,0-1.7-0.3-2.3-0.8c-0.6-0.5-0.9-1.4-0.9-2.6v-46.4c0-1.2,0.3-2.1,0.9-2.6c0.6-0.5,1.4-0.8,2.3-0.8h13.6c4.7,0,8.8,0.6,12.1,1.7c3.3,1.1,6.1,2.8,8.3,4.9c2.3,2.2,4,4.9,5.2,8.1C249,133,249.6,136.7,249.6,141z M238.5,141.3c0-2.5-0.3-4.9-0.9-7c-0.6-2.2-1.5-4-2.8-5.6c-1.3-1.6-3-2.8-5-3.7c-2-0.9-4.7-1.3-8-1.3h-5.5v36.2h5.6c3,0,5.5-0.4,7.5-1.2c2-0.8,3.7-1.9,5.1-3.5c1.4-1.5,2.4-3.5,3-5.8C238.1,147.1,238.5,144.4,238.5,141.3z"}),u("path",{fill:t,stroke:n,d:"M222.1,90.3h-34.9H61.4c-21.5,0-39,17.5-39,39v24.9c0,21.5,17.5,39,39,39h68.4h92.3c21.5,0,39-17.5,39-39v-24.9C261.1,107.8,243.6,90.3,222.1,90.3z M155.1,179.4c5-7,4.9-16.5,4.9-16.5v-42.5c0-15,12.2-27.2,27.2-27.2h34.9c19.8,0,36,16.1,36,36v24.9c0,19.8-16.1,36-36,36h-79.2C142.9,190.2,149.6,187.2,155.1,179.4z"}),u("path",{d:"M69.7,164.1c0,0.8,0,1.5-0.1,2c-0.1,0.5-0.2,1-0.3,1.3c-0.1,0.3-0.3,0.6-0.5,0.7c-0.2,0.2-0.4,0.2-0.7,0.2H41.4c-0.9,0-1.7-0.3-2.3-0.8c-0.6-0.5-0.9-1.4-0.9-2.6v-46.4c0-1.2,0.3-2.1,0.9-2.6c0.6-0.5,1.4-0.8,2.3-0.8H68c0.2,0,0.5,0.1,0.7,0.2c0.2,0.1,0.4,0.4,0.5,0.7c0.1,0.3,0.2,0.8,0.3,1.3c0.1,0.5,0.1,1.2,0.1,2c0,0.8,0,1.4-0.1,2c-0.1,0.5-0.2,1-0.3,1.3c-0.1,0.3-0.3,0.6-0.5,0.7c-0.2,0.2-0.4,0.2-0.7,0.2H49v13H65c0.2,0,0.5,0.1,0.7,0.2c0.2,0.2,0.4,0.4,0.5,0.7c0.1,0.3,0.2,0.7,0.3,1.3c0.1,0.5,0.1,1.2,0.1,2c0,0.8,0,1.5-0.1,2c-0.1,0.5-0.2,0.9-0.3,1.3c-0.1,0.3-0.3,0.5-0.5,0.7c-0.2,0.1-0.4,0.2-0.7,0.2H49v15h19.2c0.2,0,0.5,0.1,0.7,0.2c0.2,0.2,0.4,0.4,0.5,0.7c0.1,0.3,0.2,0.8,0.3,1.3C69.7,162.6,69.7,163.3,69.7,164.1z"}),u("path",{d:"M109.4,152.4c0,2.8-0.5,5.2-1.6,7.4c-1,2.1-2.5,3.9-4.2,5.3c-1.8,1.4-3.9,2.5-6.2,3.2c-2.4,0.7-4.9,1.1-7.6,1.1c-1.8,0-3.5-0.2-5.1-0.5c-1.6-0.3-3-0.7-4.2-1.1c-1.2-0.4-2.2-0.9-3-1.3c-0.8-0.5-1.4-0.9-1.7-1.2c-0.4-0.4-0.6-0.9-0.8-1.5c-0.2-0.7-0.2-1.6-0.2-2.9c0-0.8,0-1.6,0.1-2.1c0.1-0.6,0.1-1,0.3-1.4c0.1-0.4,0.3-0.6,0.5-0.8c0.2-0.2,0.4-0.2,0.7-0.2c0.4,0,0.9,0.2,1.6,0.7c0.7,0.5,1.6,1,2.7,1.5c1.1,0.5,2.4,1,3.9,1.5c1.5,0.5,3.3,0.7,5.3,0.7c1.3,0,2.5-0.2,3.5-0.5c1-0.3,1.9-0.8,2.7-1.3c0.7-0.6,1.3-1.3,1.7-2.1c0.4-0.8,0.6-1.8,0.6-2.8c0-1.2-0.3-2.2-1-3.1c-0.7-0.9-1.5-1.6-2.6-2.3c-1.1-0.7-2.3-1.3-3.6-1.9c-1.3-0.6-2.7-1.2-4.2-1.9c-1.4-0.7-2.8-1.4-4.2-2.2c-1.3-0.8-2.5-1.8-3.6-3c-1.1-1.2-1.9-2.5-2.6-4.1c-0.7-1.6-1-3.5-1-5.7c0-2.5,0.5-4.8,1.4-6.7c0.9-1.9,2.2-3.5,3.8-4.8c1.6-1.3,3.5-2.2,5.7-2.9c2.2-0.6,4.5-0.9,6.9-0.9c1.3,0,2.5,0.1,3.8,0.3c1.3,0.2,2.4,0.5,3.5,0.8c1.1,0.3,2.1,0.7,2.9,1.1c0.8,0.4,1.4,0.8,1.7,1c0.3,0.3,0.5,0.5,0.6,0.7c0.1,0.2,0.2,0.4,0.2,0.8c0.1,0.3,0.1,0.7,0.1,1.2c0,0.5,0,1.1,0,1.8c0,0.8,0,1.5-0.1,2c0,0.5-0.1,1-0.2,1.4c-0.1,0.4-0.2,0.6-0.4,0.8c-0.2,0.2-0.4,0.2-0.7,0.2c-0.3,0-0.8-0.2-1.4-0.6c-0.7-0.4-1.5-0.8-2.4-1.3c-1-0.5-2.1-0.9-3.3-1.2c-1.3-0.4-2.6-0.6-4.2-0.6c-1.2,0-2.2,0.1-3.1,0.4c-0.9,0.3-1.6,0.7-2.2,1.2c-0.6,0.5-1,1.1-1.3,1.8c-0.3,0.7-0.4,1.5-0.4,2.3c0,1.2,0.3,2.2,1,3.1c0.6,0.9,1.5,1.6,2.6,2.3c1.1,0.7,2.3,1.3,3.7,1.9c1.4,0.6,2.8,1.2,4.2,1.9c1.4,0.7,2.8,1.4,4.2,2.2c1.4,0.8,2.6,1.8,3.7,3c1.1,1.2,1.9,2.5,2.6,4.1C109.1,148.4,109.4,150.2,109.4,152.4z"}),u("path",{d:"M151.4,131.2c0,3-0.5,5.6-1.4,7.9c-0.9,2.3-2.3,4.2-4.1,5.8c-1.8,1.6-4,2.8-6.6,3.6c-2.6,0.8-5.6,1.2-9.1,1.2h-4.4v17c0,0.3-0.1,0.5-0.3,0.7c-0.2,0.2-0.5,0.4-0.9,0.5c-0.4,0.1-1,0.2-1.6,0.3c-0.7,0.1-1.6,0.1-2.6,0.1c-1,0-1.9,0-2.6-0.1c-0.7-0.1-1.3-0.2-1.7-0.3c-0.4-0.1-0.7-0.3-0.9-0.5c-0.2-0.2-0.2-0.5-0.2-0.7v-47.8c0-1.3,0.3-2.3,1-2.9c0.7-0.6,1.6-1,2.7-1h12.5c1.3,0,2.5,0,3.6,0.1c1.1,0.1,2.5,0.3,4.1,0.6c1.6,0.3,3.2,0.9,4.8,1.7c1.6,0.8,3,1.9,4.2,3.2c1.2,1.3,2,2.8,2.6,4.6C151.1,127.1,151.4,129,151.4,131.2z M140.1,132c0-1.9-0.3-3.4-1-4.6c-0.7-1.2-1.5-2.1-2.4-2.7c-1-0.6-2-0.9-3-1.1c-1.1-0.2-2.1-0.2-3.3-0.2h-4.6v18h4.8c1.7,0,3.2-0.2,4.3-0.7c1.2-0.5,2.1-1.1,2.9-2c0.7-0.8,1.3-1.8,1.7-3C139.9,134.6,140.1,133.3,140.1,132z"}))};function It(){return(It=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}const Nt=({children:e,routesList:t,localDefault:n})=>{const[o,r]=J(!0),{setActiveRoute:l,setRoutes:i,activeRoute:a,routes:s,defaultRoute:c,activeTab:d}=ue();const h=n?d.current:c.current,m=Object.values(t).find(e=>e.path==h),[f,g]=J(m.component),v=function(e,t){return L=8,Q((function(){return e}),t)}(()=>{S()},[]),S=()=>{let e=!1;r(!0);const n=function(){if("undefined"!=typeof window){const e=window.location.hash.slice(1).toLowerCase();return"/settings"==e?(window.location.href="/#"+d.current,"/settings/features"):e}return c}().split("/");for(let o=0;o<n.length;o++){const i=n.slice(0,o+1).join("/");for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const o=t[n];if(o.path===i){l(o.path),g(o.component),e=!0,r(!1);break}}}e||(window.location.href="/#"+h)};return Y(()=>{i({...s,...t}),S()},[]),Y(()=>(S(),a.startsWith("/settings/")&&(d.current=a),window.addEventListener("hashchange",v),()=>window.removeEventListener("hashchange",v)),[v,a]),o?u(We,{large:!0}):u(p,null,f,e)},Dt=({activeClassName:e="",className:t="",href:n,children:o,...r})=>{const{activeRoute:l}=ue(),[i,a]=J();return Y(()=>{const o=window.location.hash.slice(1).toLowerCase();"/settings"==l&&n==o||o.startsWith("/settings")&&"/settings"==n?a(`${t} ${e}`):a(l===n?`${t} ${e}`:t)},[l]),i&&u("a",It({href:"#"+n,className:i},r),o)},zt=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),u("polyline",{points:"16 17 21 12 16 7"}),u("line",{x1:"21",y1:"12",x2:"9",y2:"12"}))},Ft=[{label:u(Et,{bgcolor:"#ffffff"}),icon:null,href:"/about"},{label:"S123",icon:u(e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"}))},null),href:"/informations"},{label:"S13",icon:u(e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("rect",{x:"2",y:"2",width:"20",height:"8",rx:"2",ry:"2"}),u("rect",{x:"2",y:"14",width:"20",height:"8",rx:"2",ry:"2"}),u("line",{x1:"6",y1:"6",x2:"6.01",y2:"6"}),u("line",{x1:"6",y1:"18",x2:"6.01",y2:"18"}))},null),href:"/dashboard",id:"dashboardLink"},{label:"S14",icon:u(e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("circle",{cx:"12",cy:"12",r:"3"}),u("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}))},null),href:"/settings",id:"settingsLink"}],Rt=()=>{const{connectionSettings:e}=Oe(),{defaultRoute:t,activeRoute:n}=ue(),{modals:o}=ye(),{createNewRequest:r}=it(),[l,i]=J(!1),{Disconnect:a}=Le();function s(){document.getElementById("infopage")&&0==document.getElementById("infopage").clientWidth&&document.getElementById("/dashboard"==t.current?"dashboardLink":"settingsLink").click()}const c=()=>{const e=new FormData;e.append("DISCONNECT","YES"),r(ge("login").toString(),{method:"POST",id:"login",body:e},{onSuccess:e=>{a("sessiontimeout")},onFail:e=>{a("sessiontimeout")}})};if(Y(()=>{new ResizeObserver(s).observe(document.getElementById("app"))},[]),l){const e=Ze("S26"),t=Ze("S152"),n=Ze("S27"),r=Ze("S28");lt({modals:o,title:e,content:t,button1:{cb:c,text:n},button2:{text:r}}),i(!1)}const d=()=>{i(!0)};if(Object.keys(e.current).length>0)return u("header",{class:"navbar"},u("section",{class:"navbar-section"},Ft&&Ft.map(({label:t,icon:n,href:o,id:r})=>u(Dt,{id:r,className:"/about"==o?"navbar-brand logo no-box ":0==e.current.FWTarget&&"/dashboard"==o?"d-none":"/informations"==o?"btn btn-link no-box feather-icon-container show-low":"btn btn-link no-box feather-icon-container",activeClassName:"active",href:o},n,u("label",{class:"/about"==o?"":"hide-low"},Ze(t))))),u("section",{class:"navbar-section"},u("span",{className:"Disabled"==e.current.Authentication?"d-none":"btn btn-link no-box mx-2 feather-icon-container",onClick:d},u(zt,null),u("label",{class:"hide-low"},Ze("S151")))))},At=()=>u("div",{id:"menu",class:"menu-container"},u(Rt,null)),Lt=({type:e})=>u("div",{id:"panel"==e?"infopanel":"infopage",class:"panel"==e?"information-container hide-low":"container show-low"},"panel"==e?"Information panel":"Information page"),Bt=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),u("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),u("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"}))},Ht=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("circle",{cx:"12",cy:"12",r:"10"}),u("line",{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"}))},Ut=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("line",{x1:"5",y1:"12",x2:"19",y2:"12"}))},Wt=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("line",{x1:"22",y1:"12",x2:"2",y2:"12"}),u("path",{d:"M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"}),u("line",{x1:"6",y1:"16",x2:"6.01",y2:"16"}),u("line",{x1:"10",y1:"16",x2:"10.01",y2:"16"}))},Vt=()=>{const{connection:e}=ye(),{connectionSettings:t}=Oe(),n=K();let o,r,l,i,a=0;if(!e.connectionState.connected||!e.connectionState.authenticate){const s=()=>{a>0&&(a--,n&&(n.current.innerHTML=a),setTimeout(s,1e3))},c=t=>{e.setConnectionState({connected:!1,authenticate:e.connectionState.authenticate,page:"connecting"}),window.location.href=ge().toString()};switch(e.connectionState.page){case"notauthenticated":l=Ze("S1"),o=u(ut,{size:"50px"}),r=Ze("S145"),document.title=(t.current?t.current.Hostname:"ESP3D")+"("+Ze("S22")+")",i=u("button",{class:"btn",onClick:c},Ze("S11"));break;case"error":l=Ze("S1"),o=u(st,{size:"50px"}),r=Ze("S5"),document.title=(t.current?t.current.Hostname:"ESP3D")+"("+Ze("S22")+")",i=u("button",{class:"btn",onClick:c},Ze("S8"));break;case"sessiontimeout":case"connectionlost":l=Ze("S1"),o=u(Bt,{size:"50px"}),r="connectionlost"==e.connectionState.page?Ze("S10"):Ze("S173"),document.title=(t.current?t.current.Hostname:"ESP3D")+"("+Ze("S9")+")",i=u("button",{class:"btn",onClick:c},Ze("S11"));break;case"already connected":l=Ze("S9"),o=u(Ht,{size:"50px"}),r=Ze("S3"),document.title=(t.current?t.current.Hostname:"ESP3D")+"("+Ze("S9")+")",i=u("button",{class:"btn",onClick:c},Ze("S11"));break;case"restart":a=40,setTimeout(s,1e3),document.title=(t.current?t.current.Hostname:"ESP3D")+"("+Ze("S35")+")",l=Ze("S35"),o=u("div",{class:"d-inline-block",style:"padding:0 20px"},u(We,{large:!0})),r=u("span",null,Ze("S60"),u("span",{ref:n},"40"),Ze("S114")),i="";break;default:document.title=(t.current?t.current.Hostname:"ESP3D")+"("+Ze("S2")+")",l=Ze("S2"),o=u("div",{class:"d-inline-block",style:"padding:0 20px"},u(We,{large:!0})),r=Ze("S60"),i=""}return u("div",{class:"empty fullscreen"},u("div",{class:"centered text-primary"},u("div",{class:"empty-icon"},u("div",{class:"d-flex p-centered",style:"flex-wrap:nowrap!important"},u(Et,null),u(Ut,{size:"50px"}),o,u(Ut,{size:"50px"}),u(Wt,{size:"50px"}))),u("div",{class:"empty-title h5"},l),u("div",{class:"empty-subtitle"},r),u("div",{class:"empty-action"},i)))}},qt=()=>u("span",null,"3.0.0.a7"),$t=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("circle",{cx:"12",cy:"12",r:"10"}),u("circle",{cx:"12",cy:"12",r:"4"}),u("line",{x1:"4.93",y1:"4.93",x2:"9.17",y2:"9.17"}),u("line",{x1:"14.83",y1:"14.83",x2:"19.07",y2:"19.07"}),u("line",{x1:"14.83",y1:"9.17",x2:"19.07",y2:"4.93"}),u("line",{x1:"14.83",y1:"9.17",x2:"18.36",y2:"5.64"}),u("line",{x1:"4.93",y1:"19.07",x2:"9.17",y2:"14.83"}))},Jt=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("path",{d:"M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"}))},Gt=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("polyline",{points:"16 16 12 12 8 16"}),u("line",{x1:"12",y1:"12",x2:"12",y2:"21"}),u("path",{d:"M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"}),u("polyline",{points:"16 16 12 12 8 16"}))},Yt=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("polyline",{points:"1 4 1 10 7 10"}),u("polyline",{points:"23 20 23 14 17 14"}),u("path",{d:"M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"}))},Kt=()=>{const{interfaceSettings:e}=Oe();let t,n;if(e.current.custom&&(e.current.custom.help||e.current.custom.information)){if(e.current.custom.help){const n=t=>{window.open(e.current.custom.help,"_blank"),t.target.blur()};t=u(Ke,{mx2:!0,icon:u($t,null),label:Ze("S72"),onClick:n})}if(e.current.custom.information){const e=e=>{window.open(sinterfaceSettings.current.custom.information,"_blank"),e.target.blur()};n=u(Ke,{mx2:!0,icon:u(Tt,null),label:Ze("S123"),onClick:e})}return u("li",{class:"feather-icon-container"},t," ",n)}},Qt=()=>{const{toasts:e,modals:t}=ye(),{Disconnect:n}=Le(),{createNewRequest:o,abortRequest:r}=it(),{interfaceSettings:l,getInterfaceValue:i}=Oe(),[a,s]=J(!0),c=K(0),d=K(0),[p,h]=J([]),[m,f]=J(!1),[g,v]=J(!1),[S,b]=J(!1),{datas:_}=Me(),y=K(null),w=()=>{s(!0),o(ge("command",{cmd:"[ESP420]"}).toString(),{method:"GET"},{onSuccess:e=>{const{Status:t}=JSON.parse(e);h([...t]),_.current.about=[...t],s(!1)},onFail:t=>{s(!1),e.addToast({content:t,type:"error"})}})};const x=()=>{const r=y.current.files,l=new FormData;if(l.append("path","/"),r.length>0)for(let e=0;e<r.length;e++){const t=r[e],n="/"+t.name+"S";l.append(n,t.size),l.append("myfiles",t,"/"+t.name)}o(ge(m?"updatefw":"files"),{method:"POST",id:"upload",body:l},{onSuccess:e=>{t.removeModal(t.getModalIndex("upload")),n(m?"restart":"connecting"),m?setTimeout(()=>{window.location.reload()},4e4):window.location.reload()},onFail:n=>{t.removeModal(t.getModalIndex("upload")),e.addToast({content:n,type:"error"})},onProgress:e=>{c.current.value=e,d.current.innerHTML=e+"%"}}),b(!0)},k=()=>u(Qe,null,u("progress",{ref:c,value:"0",max:"100"}),u("label",{style:"margin-left:15px",ref:d}));if(S){const e=Ze("S32"),n=Ze("S28");jt({modals:t,title:e,button1:{cb:r,text:n},content:u(k,null)}),b(!1)}if(g){const e=Ze(m?"S30":"S31"),n=Ze("S27"),o=Ze("S28"),r=[...y.current.files],l=u(Qe,null,u("ul",null,r.reduce((e,t)=>[...e,u("li",null,t.name)],[])));lt({modals:t,title:e,content:l,button1:{cb:x,text:n},button2:{text:o}}),v(!1)}return Y(()=>{0!=_.current.about.length?(h([..._.current.about]),s(!1)):i("autoload")?w():s(!1)},[]),u("div",{id:"about",class:"container"},u("h2",null,Ze("S12").replace("%s",l.current&&l.current.custom&&l.current.custom.name?l.current.custom.name:"ESP3D")),a&&u(We,null),!a&&p&&u("div",null,u("input",{ref:y,type:"file",class:"d-none",onChange:()=>{y.current.files.length>0&&v(!0)}}),u("hr",null),u(Qe,null,u("ul",null,u("li",null,u("span",{class:"text-primary"},Ze("S150"),": "),u("span",{class:"text-dark"},u(qt,null)),u(Ke,{sm:!0,mx2:!0,tooltip:!0,"data-tooltip":Ze("S20"),icon:u(Jt,null),onClick:e=>{window.open("https://github.com/luc-github/ESP3D-WEBUI/tree/3.0","_blank"),e.target.blur()}}),u(Ke,{sm:!0,mx2:!0,tooltip:!0,"data-tooltip":Ze("S171"),icon:u(Gt,null),label:Ze("S25"),onClick:e=>{f(!1),y.current.value="",y.current.setAttribute("accept","*"),y.current.setAttribute("multiple","true"),y.current.click(),e.target.blur()}})),u("li",null,u("span",{class:"text-primary"},Ze("FW ver"),": "),u("span",{class:"text-dark"},p.find(e=>"FW ver"==e.id)&&p.find(e=>"FW ver"==e.id).value),u(Ke,{sm:!0,mx2:!0,tooltip:!0,"data-tooltip":Ze("S20"),icon:u(Jt,null),onClick:e=>{window.open(l.current.custom.fwurl?l.current.custom.fwurl:"https://github.com/luc-github/ESP3D/tree/3.0","_blank"),e.target.blur()}}),u(Ke,{sm:!0,mx2:!0,tooltip:!0,"data-tooltip":Ze("S172"),icon:u(Gt,null),label:Ze("S25"),onClick:e=>{e.target.blur(),f(!0),y.current.value="",y.current.setAttribute("accept",".bin, .bin.gz"),y.current.setAttribute("multiple","false"),y.current.click()}})),u(Kt,null),u("li",null,u("span",{class:"text-primary"},Ze("S18"),": "),u("span",{class:"text-dark"},function(){var e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?"IE "+((e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||""):"Chrome"===n[1]&&null!=(e=t.match(/\b(OPR|Edge)\/(\d+)/))?e.slice(1).join(" ").replace("OPR","Opera"):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&n.splice(1,1,e[1]),n.join(" "))}())),p.map(({id:e,value:t})=>{if("FW ver"!=e)return u("li",null,u("span",{class:"text-primary"},Ze(e),": "),u("span",{class:"text-dark"},Ze(t)))}))),u("hr",null),u("center",null,u(Ke,{icon:u(Yt,null),label:Ze("S50"),tooltip:!0,"data-tooltip":Ze("S23"),onClick:()=>{w()}}))),u("br",null))},Xt=()=>u("div",{id:"dashboard"},u("h2",null,"Dashboard")),Zt=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("path",{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"}),u("line",{x1:"4",y1:"22",x2:"4",y2:"15"}))},en=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),u("polyline",{points:"7 10 12 15 17 10"}),u("line",{x1:"12",y1:"15",x2:"12",y2:"3"}))},tn=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),u("polyline",{points:"15 3 21 3 21 9"}),u("line",{x1:"10",y1:"14",x2:"21",y2:"3"}))},nn=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"}),u("polyline",{points:"17 21 17 13 7 13 7 21"}),u("polyline",{points:"7 3 7 8 15 8"}))},on=e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("polyline",{points:"1 4 1 10 7 10"}),u("path",{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"}))},rn=e=>{const{F:t,P:n,T:o,V:r,H:l,O:i,M:a,S:s,MS:c,R:u}=e;let d={id:n,initial:r,label:l,type:o,value:r,cast:o};var p;return Array.isArray(i)&&void 0!==i&&(d.options=(p=i,[...p].map(e=>{const t=Object.keys(e)[0];return{label:t,value:e[t]}}))),void 0!==u&&(d.needRestart=u),void 0!==s&&(d.max=parseInt(s)),void 0!==a&&(d.min=parseInt(a),void 0!==c&&(d.minSecondary=parseInt(c),parseInt(c)<parseInt(a)&&(d.min=parseInt(c),d.minSecondary=parseInt(a)))),"A"===o&&(d.format="ip"),d.type=(({value:e,type:t,options:n})=>void 0!==n?"select":"B"===t||"I"===t?"number":"text")(d),d};function ln(){return(ln=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function an(e,t=!0){const n={};n.settings={},e.custom&&(n.custom=e.custom);for(let o in e.settings)for(let r in e.settings[o])e.settings[o][r].id&&(n.settings[e.settings[o][r].id]=t?e.settings[o][r].initial:e.settings[o][r].value);if(t){const e=new Blob([JSON.stringify(n,null," ")],{type:"application/json"});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(e,"preferences.json");else{const t=document.createElement("a"),n=URL.createObjectURL(e);t.href=n,t.download="preferences.json",document.body.appendChild(t),t.click(),setTimeout((function(){document.body.removeChild(t),window.URL.revokeObjectURL(n)}),0)}}return n}function sn(){return(sn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}const cn=[{label:"S36",icon:u(Et,{height:"24px"}),href:"/settings/features"},{label:"S17",icon:u(ft,null),href:"/settings/interface"},{label:"Marlin",icon:u(e=>{const t=e.color||"currentColor",n=e.size||24;return delete e.color,delete e.size,u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e),u("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"}))},null),href:"/settings/machine"}],un=()=>{const{connectionSettings:e}=Oe();return u("ul",{class:"tab tab-block"},cn&&cn.map(({label:t,icon:n,href:o})=>u("li",{class:"tab-item"},u(Dt,{className:0==e.current.FWTarget&&"/settings/machine"==o?"d-none":"btn btn-link no-box feather-icon-container",activeClassName:"active",href:o},n,u("label",{class:"hide-low"},Ze(t))))))},dn={FEATURES:{component:u(()=>{const{toasts:e,modals:t}=ye(),{Disconnect:n}=Le(),{createNewRequest:o,abortRequest:r}=it(),{featuresSettings:l,getInterfaceValue:i}=Oe(),[a,s]=J(!0),[c,d]=J(!0),h=K(0),m=K(0),[f,g]=J(l.current),v=K(null),S=Ze("S21"),b=Ze("S42"),_=Ze("S58"),y=Ze("S27"),w=Ze("S28"),x=Ze("S59"),k=Ze("S91"),P=Ze("S174"),C=Ze("S175"),O=()=>u("center",null,u("progress",{ref:h,value:"0",max:"100"}),u("label",{style:"margin-left:15px",ref:m})),T=()=>{s(!0),o(ge("command",{cmd:"[ESP400]"}).toString(),{method:"GET"},{onSuccess:t=>{try{const e=(e=>e.reduce((e,t)=>{const n=rn(t),[o,r]=t.F.split("/");if(Object.prototype.hasOwnProperty.call(e,o)){if(Object.prototype.hasOwnProperty.call(e[o],r)){const t=[...e[o][r],n];return{...e,[o]:{...e[o],[r]:[...t]}}}return{...e,[o]:{...e[o],[r]:[n]}}}return{...e,[o]:{[r]:[n]}}},{}))(JSON.parse(t).Settings);l.current={...e},g(l.current)}catch(t){console.log(t),e.addToast({content:S,type:"error"})}finally{s(!1)}},onFail:t=>{s(!1),console.log(t),e.addToast({content:t,type:"error"})}})};function j(){r("ESP401"),e.addToast({content:C,type:"error"}),E(!1)}function M(e,t){null!=typeof h.current.value&&(h.current.value=(100*(e+1)/t).toFixed(0),m.current.innerHTML=e+1+" / "+t)}function E(e){t.removeModal(t.getModalIndex("progression")),s(!1),e&<({modals:t,title:_,content:P,button1:{cb:N,text:y},button2:{text:w}})}function I(){let n=!1,r=0,l=0;s(!0),jt({modals:t,title:k,button1:{cb:j,text:w},content:u(O,null)}),Object.keys(f).map(e=>{const t=f[e];Object.keys(t).map(e=>{const o=t[e];Object.keys(o).map(e=>{const t=o[e];t.initial!=t.value&&l++,"1"==t.needRestart&&(n=!0)})})}),Object.keys(f).map(t=>{const i=f[t];Object.keys(i).map(t=>{const a=i[t];Object.keys(a).map(t=>{const i=a[t];i.initial!=i.value&&(!function(t,n,r,l){let i="[ESP401]P="+t.id+" T="+t.cast+" V="+t.value;o(ge("command",{cmd:i}).toString(),{method:"GET",id:"ESP401"},{onSuccess:o=>{M(n,r);try{t.initial=t.value}catch(t){console.log(t),e.addToast({content:t,type:"error"})}finally{n==r-1&&E(l)}},onFail:t=>{M(n,r),console.log(t),e.addToast({content:t,type:"error"}),n==r-1&&E(l)}})}(i,r,l,n),r++)})})})}function N(){n("restart"),setTimeout(()=>{window.location.reload()},4e4),console.log("restart")}const D=e=>{let t={message:u(Zt,{size:"1rem"}),valid:!0,modified:!0};if("text"==e.type)"A"==e.cast?/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(e.value)||(t.valid=!1):(null!=typeof e.min&&(e.value.trim().length<e.min||null!=typeof e.minSecondary&&e.value.trim().length<e.minSecondary&&e.value.trim().length>e.min)&&(t.valid=!1),e.max&&e.value.trim().length>e.max&&(t.valid=!1));else if("number"==e.type)e.max&&e.value>e.max&&(t.valid=!1),e.min&&e.value<e.min&&(t.valid=!1);else if("select"==e.type){-1==e.options.findIndex(t=>t.value==parseInt(e.value))&&(t.valid=!1)}return t.valid||(t.message=b),e.haserror=!t.valid,e.value==e.initial?e.hasmodified=!1:e.hasmodified=!0,d(function(){let e=JSON.stringify(f),t=-1!=e.indexOf('"hasmodified":true');return!(-1!=e.indexOf('"haserror":true')||!t)}()),e.hasmodified||e.haserror?t:null};return Y(()=>{l.current&&0!=Object.keys(l.current).length?(g(l.current),s(!1)):i("autoload")?T():s(!1)},[]),u("div",{id:"features"},u("input",{ref:v,type:"file",class:"d-none",accept:".json",onChange:()=>{let t=!1;if(v.current.files.length>0){s(!0);const n=new FileReader;n.onload=function(n){const o=n.target.result;try{const n=JSON.parse(o);[l.current,t]=function(e,t){const n=JSON.parse(JSON.stringify(e));let o=!1;return Object.keys(t).map(e=>{const r=t[e];Object.keys(r).map(t=>{const l=r[t];Object.keys(l).map(r=>{const i=l[r];if(n&&n[e]&&Array.isArray(n[e][t])){const r=n[e][t].find(e=>e.id===i.id);r?r.value=i.value:(o=!0,console.log("Cannot find entry:",e,".",t,".",i.id))}else o=!0,console.log("Cannot find section:",e,".",t)})})}),[n,o]}(l.current,n),t&&e.addToast({content:"S56",type:"error"}),g(l.current)}catch(n){console.log(n),e.addToast({content:"S56",type:"error"})}finally{s(!1)}},n.readAsText(v.current.files[0])}}}),u("h2",null,Ze("S36")),a&&u(We,{large:!0}),!a&&u(p,null,0!=Object.keys(f).length&&u("div",{class:"flex-wrap"},Object.keys(f).map(e=>{const t=f[e];return u(p,null,Object.keys(t).map(n=>{const o=t[n];return u("div",{className:"column col-xs-12 col-sm-12 col-md-6 col-lg-4 col-xl-4 col-3 mb-2"},u("div",{class:"panel mb-2 panel-features"},u("div",{class:"navbar"},u("span",{class:"navbar-section label label-secondary text-ellipsis"},u("strong",{class:"text-ellipsis"},Ze(n))),u("span",{class:"navbar-section"},u("span",{style:"height: 100%;"},u("span",{class:"label label-primary align-top"},Ze(e))))),u("div",{class:"panel-body panel-body-features"},o.map(e=>{const[t,o]=J(),{label:r,options:l,initial:i,...a}=e,s=l?l.reduce((e,t)=>[...e,{label:Ze(t.label),value:t.value}],[]):null;return u(Ot,ln({label:Ze(r),options:s,extra:"sta"==n&&"SSID"==r?"scan":null},a,{setValue:(t,n)=>{n||(e.value=t),o(D(e))},validation:t}))}))))}))})),u("center",null,u("br",null),u(Ke,{m2:!0,label:Ze("S50"),tooltip:!0,"data-tooltip":Ze("S23"),icon:u(Yt,null),onClick:T}),0!=Object.keys(f).length&&u(p,null,u(Ke,{m2:!0,label:Ze("S54"),tooltip:!0,"data-tooltip":Ze("S55"),icon:u(en,null),onClick:e=>{e.target.blur(),v.current.value="",v.current.click()}}),u(Ke,{m2:!0,label:Ze("S52"),tooltip:!0,"data-tooltip":Ze("S53"),icon:u(tn,null),onClick:e=>{e.target.blur(),function(e){const t={};Object.keys(e).map(n=>{const o=e[n];t[n]={},Object.keys(o).map(e=>{const r=o[e];t[n][e]=[],Object.keys(r).map(o=>{const l=r[o];t[n][e].push({id:l.id,label:l.label,value:l.initial})})})});const n=new Blob([JSON.stringify(t,null," ")],{type:"application/json"});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(n,"export.json");else{const e=document.createElement("a"),t=URL.createObjectURL(n);e.href=t,e.download="export.json",document.body.appendChild(e),e.click(),setTimeout((function(){document.body.removeChild(e),window.URL.revokeObjectURL(t)}),0)}}(l.current)}}),c&&u(Ke,{m2:!0,tooltip:!0,"data-tooltip":Ze("S62"),label:Ze("S61"),icon:u(nn,null),onClick:e=>{e.target.blur(),I()}}),u(Ke,{m2:!0,tooltip:!0,"data-tooltip":Ze("S59"),label:Ze("S58"),icon:u(on,null),onClick:e=>{e.target.blur(),lt({modals:t,title:_,content:x,button1:{cb:N,text:y},button2:{text:w}})}})))),u("br",null))},null),path:"/settings/features"},INTERFACE:{component:u(()=>{const{toasts:e,modals:t}=ye(),{datas:n}=Me(),{createNewRequest:o,abortRequest:r}=it(),{getInterfaceSettings:l}=ct(),{interfaceSettings:i}=Oe(),[a,s]=J(!0),[c,d]=J(!0),h=K(null),m=Ze("S42"),f=e=>{const t={message:u(Zt,{size:"1rem"}),valid:!0,modified:!0};if("text"==e.type)null!=typeof e.min&&(e.value.trim().length<e.min||null!=typeof e.minSecondary&&e.value.trim().length<e.minSecondary&&e.value.trim().length>e.min)&&(t.valid=!1),e.max&&e.value.trim().length>e.max&&(t.valid=!1);else if("number"==e.type)e.max&&e.value>parseInt(e.max)&&(t.valid=!1),e.min&&e.value<parseInt(e.min)&&(t.valid=!1);else if("select"==e.type){-1==e.options.findIndex(t=>t.value==parseInt(e.value))&&(t.valid=!1)}return t.valid||(t.message=m),e.haserror=!t.valid,e.value==e.initial?e.hasmodified=!1:e.hasmodified=!0,d(function(){let e=JSON.stringify(i.current.settings),t=-1!=e.indexOf('"hasmodified":true');return!(-1!=e.indexOf('"haserror":true')||!t)}()),e.hasmodified||e.haserror?t:null};const g=()=>{s(!0),l(s)};return Y(()=>{s(!1)},[]),u("div",{id:"interface"},u("input",{ref:h,type:"file",class:"d-none",accept:".json",onChange:()=>{let t=!1;if(h.current.files.length>0){s(!0);const n=new FileReader;n.onload=function(n){const o=n.target.result;try{const n=JSON.parse(o);[i.current,t]=at(i.current,n),t&&e.addToast({content:"S56",type:"error"})}catch(n){console.log(n),e.addToast({content:"S56",type:"error"})}finally{s(!1)}},n.readAsText(h.current.files[0])}}}),u("h2",null,Ze("S17")),a&&u(We,{large:!0}),!a&&i.current&&u(p,null,i.current.settings&&u("div",{class:"flex-wrap"},Object.keys(i.current.settings).map(e=>{const t=i.current.settings[e];return u(p,null,u("div",{className:"column col-xs-12 col-sm-12 col-md-6 col-lg-4 col-xl-4 col-3 mb-2"},u("div",{class:"panel mb-2 panel-features"},u("span",{class:"navbar-section label label-secondary text-ellipsis"},u("strong",{class:"text-ellipsis"},Ze(e))),u("div",{class:"panel-body panel-body-features"},Object.keys(t).map(e=>{const n=t[e],{label:o,initial:r,type:l,...i}=n,[a,s]=J();return u(Ot,sn({label:Ze(o),type:l,inline:"boolean"==l},i,{setValue:(e,t)=>{t||(n.value=e),s(f(n))},validation:a}))})))))})),u("center",null,u("br",null),u(Ke,{m2:!0,label:Ze("S50"),tooltip:!0,"data-tooltip":Ze("S23"),icon:u(Yt,null),onClick:g}),u(Ke,{m2:!0,label:Ze("S54"),tooltip:!0,"data-tooltip":Ze("S55"),icon:u(en,null),onClick:e=>{e.target.blur(),h.current.value="",h.current.click()}}),u(Ke,{m2:!0,label:Ze("S52"),tooltip:!0,"data-tooltip":Ze("S53"),icon:u(tn,null),onClick:e=>{e.target.blur(),an(i.current)}}),c&&u(Ke,{m2:!0,tooltip:!0,"data-tooltip":Ze("S62"),label:Ze("S61"),icon:u(nn,null),onClick:e=>{e.target.blur(),(()=>{const e=JSON.stringify(an(i.current,!1),null," "),t=new Blob([e],{type:"application/json"}),n=new FormData,r=new File([t],"preferences.json");n.append("path","/"),n.append("preferences.jsonS",e.length),n.append("myfiles",r,"preferences.json"),s(!0),o(ge("files").toString(),{method:"POST",id:"preferences",body:n},{onSuccess:e=>{setTimeout(g,1e3)},onFail:e=>{s(!1)}})})()}}))))},null),path:"/settings/interface"},MACHINE:{component:u(()=>u("div",{id:"machine"},u("h2",null,"Machine"),"The firmware target is ","Marlin"),null),path:"/settings/machine"}},pn=()=>u("div",{id:"settings",class:"container"},u(un,null),u(Nt,{routesList:dn,localDefault:"/settings/features"})),hn={DASHBOARD:{component:u(Xt,null),path:"/dashboard"},ABOUT:{component:u(Qt,null),path:"/about"},SETTINGS:{component:u(pn,null),path:"/settings"},INFORMATIONS:{component:u(Lt,{type:"page"}),path:"/informations"}},mn=()=>u("div",{id:"main",class:"main-page-container"},u(Nt,{routesList:hn})),fn=()=>{const{connection:e,dialogs:t}=ye();return 1==t.needLogin&&(t.setNeedLogin(!1),(()=>{const{modals:e,connection:t}=ye(),{createNewTopRequest:n,processRequestsNow:o}=it(),r="login",l=K(),i=K();-1==e.getModalIndex(r)&&e.addModal({id:r,title:u("div",{class:"text-primary feather-icon-container",style:"line-height:24px!important"},u(ut,null),u("label",null,Ze("S145"))),content:u("div",{class:"form-horizontal"},u(Ot,{type:"text",id:"login",value:l.current,label:Ze("S146"),style:"width:15rem",setValue:e=>{l.current=e},inline:!0}),u(Ot,{type:"password",label:Ze("S147"),id:"password",value:i.current,style:"width:15rem",setValue:e=>{i.current=e},inline:!0})),footer:u("div",null,u("button",{class:"btn mx-2",onClick:()=>{const a=new FormData;a.append("SUBMIT","YES"),a.append("USER",l.current.trim()),a.append("PASSWORD",i.current.trim()),n(ge("login").toString(),{method:"POST",id:r,body:a},{onSuccess:e=>{window.location.reload()},onFail:e=>{}}),t.setConnectionState({connected:t.connectionState.connected,authenticate:!1,page:"connecting"}),e.removeModal(e.getModalIndex(r)),o()}},Ze("S148")),u("button",{class:"btn mx-2",onClick:()=>{e.removeModal(e.getModalIndex(r))}},Ze("S28"))),hideclose:!0})})()),1==t.showKeepConnected&&(t.setShowKeepConnected(!1),(()=>{const{modals:e}=ye(),{createNewRequest:t}=it(),n="keepconnected";-1==e.getModalIndex(n)&&e.addModal({id:n,title:u("div",{class:"text-primary feather-icon-container",style:"line-height:24px!important"},u(ot,null),u("label",null,Ze("S145"))),content:Ze("S153"),footer:u("div",null,u("button",{class:"btn mx-2",onClick:()=>{t(ge("command",{PING:"Yes"}).toString(),{method:"GET"},{onSuccess:e=>{},onFail:e=>{}}),e.removeModal(e.getModalIndex(n))}},Ze("S27")),u("button",{class:"btn mx-2",onClick:()=>{e.removeModal(e.getModalIndex(n))}},Ze("S28"))),hideclose:!1})})()),e.connectionState.connected&&e.connectionState.authenticate?u(p,null,u(At,null),u(Lt,{type:"panel"}),u(mn,null)):u(Vt,null)},gn=()=>{const{getConnectionSettings:e,getInterfaceSettings:t}=ct();return Y(()=>{t(null,e)},[]),u(fn,null)};E(u(()=>u("div",{id:"app"},u(Ee,null,u(de,null,u(we,null,u(Pe,null,u(se,null,u(Te,null,u(Ue,null,u(nt,null),u(Mt,null),u(gn,null))))))))),null),document.body)})()</script></body></html> |