mainsail/assets/index-17a5ec1d.js

51 lines
1.4 MiB
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{V as y,_ as xe,a as La,b as Yi,c as v,d as ae,e as vP,f as g,g as Ac,h as oe,i as q,j as ws,k as cr,l as $,m as _,n as te,o as ne,p as _e,q as dt,r as de,s as Ae,t as J,u as Is,v as vt,w as Ge,x as U,y as _P,z as _s,A as kc,B as Vt,C as Ee,D as $e,E as Oe,F as it,G as gt,H as Aa,I as Bs,J as zr,K as bP,L as Fc,M as Pe,N as as,O as Vo,P as pi,Q as ay,R as oy,S as Pr,T as Uo,U as rs,W as dp,X as yP,Y as CP,Z as $P,$ as Fr,a0 as Vn,a1 as ly,a2 as _i,a3 as xP,a4 as wP,a5 as ti,a6 as $r,a7 as qs,a8 as SP,a9 as PP,aa as DP,ab as TP,ac as MP,ad as cy,ae as EP,af as OP,ag as LP,ah as so,ai as ro,aj as AP,ak as kP,al as io,am as gg,an as FP,ao as RP,ap as vg,aq as jP,ar as HP}from"./vuetify-4c65b4c3.js";import{g as Ji,c as Dr,a as mp,O as $o}from"./overlayscrollbars-44d87bcf.js";import{i as IP,t as NP,u as VP,a as UP,b as BP,c as WP,d as GP,e as zP,f as ZP,g as qP,h as XP}from"./echarts-ff51454d.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const n of i)if(n.type==="childList")for(const a of n.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const n={};return i.integrity&&(n.integrity=i.integrity),i.referrerPolicy&&(n.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?n.credentials="include":i.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function r(i){if(i.ep)return;i.ep=!0;const n=t(i);fetch(i.href,n)}})();var YP={exports:{}};(function(e){var s=function(t){var r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(F,z,w){F[z]=w.value},a,o=typeof Symbol=="function"?Symbol:{},l=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(F,z,w){return Object.defineProperty(F,z,{value:w,enumerable:!0,configurable:!0,writable:!0}),F[z]}try{d({},"")}catch{d=function(z,w,A){return z[w]=A}}function m(F,z,w,A){var H=z&&z.prototype instanceof L?z:L,K=Object.create(H.prototype),le=new Y(A||[]);return n(K,"_invoke",{value:re(F,w,le)}),K}t.wrap=m;function h(F,z,w){try{return{type:"normal",arg:F.call(z,w)}}catch(A){return{type:"throw",arg:A}}}var p="suspendedStart",f="suspendedYield",b="executing",C="completed",S={};function L(){}function N(){}function R(){}var x={};d(x,l,function(){return this});var T=Object.getPrototypeOf,I=T&&T(T(ee([])));I&&I!==r&&i.call(I,l)&&(x=I);var j=R.prototype=L.prototype=Object.create(x);N.prototype=R,n(j,"constructor",{value:R,configurable:!0}),n(R,"constructor",{value:N,configurable:!0}),N.displayName=d(R,u,"GeneratorFunction");function W(F){["next","throw","return"].forEach(function(z){d(F,z,function(w){return this._invoke(z,w)})})}t.isGeneratorFunction=function(F){var z=typeof F=="function"&&F.constructor;return z?z===N||(z.displayName||z.name)==="GeneratorFunction":!1},t.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,R):(F.__proto__=R,d(F,u,"GeneratorFunction")),F.prototype=Object.create(j),F},t.awrap=function(F){return{__await:F}};function Z(F,z){function w(K,le,he,be){var we=h(F[K],F,le);if(we.type==="throw")be(we.arg);else{var st=we.arg,Pt=st.value;return Pt&&typeof Pt=="object"&&i.call(Pt,"__await")?z.resolve(Pt.__await).then(function(Ft){w("next",Ft,he,be)},function(Ft){w("throw",Ft,he,be)}):z.resolve(Pt).then(function(Ft){st.value=Ft,he(st)},function(Ft){return w("throw",Ft,he,be)})}}var A;function H(K,le){function he(){return new z(function(be,we){w(K,le,be,we)})}return A=A?A.then(he,he):he()}n(this,"_invoke",{value:H})}W(Z.prototype),d(Z.prototype,c,function(){return this}),t.AsyncIterator=Z,t.async=function(F,z,w,A,H){H===void 0&&(H=Promise);var K=new Z(m(F,z,w,A),H);return t.isGeneratorFunction(z)?K:K.next().then(function(le){return le.done?le.value:K.next()})};function re(F,z,w){var A=p;return function(K,le){if(A===b)throw new Error("Generator is already running");if(A===C){if(K==="throw")throw le;return se()}for(w.method=K,w.arg=le;;){var he=w.delegate;if(he){var be=k(he,w);if(be){if(be===S)continue;return be}}if(w.method==="next")w.sent=w._sent=w.arg;else if(w.method==="throw"){if(A===p)throw A=C,w.arg;w.dispatchException(w.arg)}else w.method==="return"&&w.abrupt("return",w.arg);A=b;var we=h(F,z,w);if(we.type==="normal"){if(A=w.done?C:f,we.arg===S)continue;return{value:we.arg,done:w.done}}else we.type==="throw"&&(A=C,w.method="throw",w.arg=we.arg)}}}function k(F,z){var w=z.method,A=F.iterator[w];if(A===a)return z.delegate=null,w==="throw"&&F.iterator.return&&(z.method="return",z.arg=a,k(F,z),z.method==="throw")||w!=="return"&&(z.method="throw",z.arg=new TypeError("The iterator does not provide a '"+w+"' method")),S;var H=h(A,F.iterator,z.arg);if(H.type==="throw")return z.method="throw",z.arg=H.arg,z.delegate=null,S;var K=H.arg;if(!K)return z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,S;if(K.done)z[F.resultName]=K.value,z.next=F.nextLoc,z.method!=="return"&&(z.method="next",z.arg=a);else return K;return z.delegate=null,S}W(j),d(j,u,"Generator"),d(j,l,function(){return this}),d(j,"toString",function(){return"[object Generator]"});function G(F){var z={tryLoc:F[0]};1 in F&&(z.catchLoc=F[1]),2 in F&&(z.finallyLoc=F[2],z.afterLoc=F[3]),this.tryEntries.push(z)}function X(F){var z=F.completion||{};z.type="normal",delete z.arg,F.completion=z}function Y(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(G,this),this.reset(!0)}t.keys=function(F){var z=Object(F),w=[];for(var A in z)w.push(A);return w.reverse(),function H(){for(;w.length;){var K=w.pop();if(K in z)return H.value=K,H.done=!1,H}return H.done=!0,H}};function ee(F){if(F||F===""){var z=F[l];if(z)return z.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var w=-1,A=function H(){for(;++w<F.length;)if(i.call(F,w))return H.value=F[w],H.done=!1,H;return H.value=a,H.done=!0,H};return A.next=A}}throw new TypeError(typeof F+" is not iterable")}t.values=ee;function se(){return{value:a,done:!0}}return Y.prototype={constructor:Y,reset:function(F){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(X),!F)for(var z in this)z.charAt(0)==="t"&&i.call(this,z)&&!isNaN(+z.slice(1))&&(this[z]=a)},stop:function(){this.done=!0;var F=this.tryEntries[0],z=F.completion;if(z.type==="throw")throw z.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var z=this;function w(be,we){return K.type="throw",K.arg=F,z.next=be,we&&(z.method="next",z.arg=a),!!we}for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A],K=H.completion;if(H.tryLoc==="root")return w("end");if(H.tryLoc<=this.prev){var le=i.call(H,"catchLoc"),he=i.call(H,"finallyLoc");if(le&&he){if(this.prev<H.catchLoc)return w(H.catchLoc,!0);if(this.prev<H.finallyLoc)return w(H.finallyLoc)}else if(le){if(this.prev<H.catchLoc)return w(H.catchLoc,!0)}else if(he){if(this.prev<H.finallyLoc)return w(H.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(F,z){for(var w=this.tryEntries.length-1;w>=0;--w){var A=this.tryEntries[w];if(A.tryLoc<=this.prev&&i.call(A,"finallyLoc")&&this.prev<A.finallyLoc){var H=A;break}}H&&(F==="break"||F==="continue")&&H.tryLoc<=z&&z<=H.finallyLoc&&(H=null);var K=H?H.completion:{};return K.type=F,K.arg=z,H?(this.method="next",this.next=H.finallyLoc,S):this.complete(K)},complete:function(F,z){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&z&&(this.next=z),S},finish:function(F){for(var z=this.tryEntries.length-1;z>=0;--z){var w=this.tryEntries[z];if(w.finallyLoc===F)return this.complete(w.completion,w.afterLoc),X(w),S}},catch:function(F){for(var z=this.tryEntries.length-1;z>=0;--z){var w=this.tryEntries[z];if(w.tryLoc===F){var A=w.completion;if(A.type==="throw"){var H=A.arg;X(w)}return H}}throw new Error("illegal catch attempt")},delegateYield:function(F,z,w){return this.delegate={iterator:ee(F),resultName:z,nextLoc:w},this.method==="next"&&(this.arg=a),S}},t}(e.exports);try{regeneratorRuntime=s}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=s:Function("r","regeneratorRuntime = r")(s)}})(YP);var uy=function(){if(typeof Map<"u")return Map;function e(s,t){var r=-1;return s.some(function(i,n){return i[0]===t?(r=n,!0):!1}),r}return function(){function s(){this.__entries__=[]}return Object.defineProperty(s.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),s.prototype.get=function(t){var r=e(this.__entries__,t),i=this.__entries__[r];return i&&i[1]},s.prototype.set=function(t,r){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=r:this.__entries__.push([t,r])},s.prototype.delete=function(t){var r=this.__entries__,i=e(r,t);~i&&r.splice(i,1)},s.prototype.has=function(t){return!!~e(this.__entries__,t)},s.prototype.clear=function(){this.__entries__.splice(0)},s.prototype.forEach=function(t,r){r===void 0&&(r=null);for(var i=0,n=this.__entries__;i<n.length;i++){var a=n[i];t.call(r,a[1],a[0])}},s}()}(),Gd=typeof window<"u"&&typeof document<"u"&&window.document===document,Bo=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),JP=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Bo):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),KP=2;function QP(e,s){var t=!1,r=!1,i=0;function n(){t&&(t=!1,e()),r&&o()}function a(){JP(n)}function o(){var l=Date.now();if(t){if(l-i<KP)return;r=!0}else t=!0,r=!1,setTimeout(a,s);i=l}return o}var eD=20,tD=["top","right","bottom","left","width","height","size","weight"],sD=typeof MutationObserver<"u",rD=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=QP(this.refresh.bind(this),eD)}return e.prototype.addObserver=function(s){~this.observers_.indexOf(s)||this.observers_.push(s),this.connected_||this.connect_()},e.prototype.removeObserver=function(s){var t=this.observers_,r=t.indexOf(s);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var s=this.updateObservers_();s&&this.refresh()},e.prototype.updateObservers_=function(){var s=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return s.forEach(function(t){return t.broadcastActive()}),s.length>0},e.prototype.connect_=function(){!Gd||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),sD?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Gd||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(s){var t=s.propertyName,r=t===void 0?"":t,i=tD.some(function(n){return!!~r.indexOf(n)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),dy=function(e,s){for(var t=0,r=Object.keys(s);t<r.length;t++){var i=r[t];Object.defineProperty(e,i,{value:s[i],enumerable:!1,writable:!1,configurable:!0})}return e},bi=function(e){var s=e&&e.ownerDocument&&e.ownerDocument.defaultView;return s||Bo},my=Rc(0,0,0,0);function Wo(e){return parseFloat(e)||0}function _g(e){for(var s=[],t=1;t<arguments.length;t++)s[t-1]=arguments[t];return s.reduce(function(r,i){var n=e["border-"+i+"-width"];return r+Wo(n)},0)}function iD(e){for(var s=["top","right","bottom","left"],t={},r=0,i=s;r<i.length;r++){var n=i[r],a=e["padding-"+n];t[n]=Wo(a)}return t}function nD(e){var s=e.getBBox();return Rc(0,0,s.width,s.height)}function aD(e){var s=e.clientWidth,t=e.clientHeight;if(!s&&!t)return my;var r=bi(e).getComputedStyle(e),i=iD(r),n=i.left+i.right,a=i.top+i.bottom,o=Wo(r.width),l=Wo(r.height);if(r.boxSizing==="border-box"&&(Math.round(o+n)!==s&&(o-=_g(r,"left","right")+n),Math.round(l+a)!==t&&(l-=_g(r,"top","bottom")+a)),!lD(e)){var c=Math.round(o+n)-s,u=Math.round(l+a)-t;Math.abs(c)!==1&&(o-=c),Math.abs(u)!==1&&(l-=u)}return Rc(i.left,i.top,o,l)}var oD=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof bi(e).SVGGraphicsElement}:function(e){return e instanceof bi(e).SVGElement&&typeof e.getBBox=="function"}}();function lD(e){return e===bi(e).document.documentElement}function cD(e){return Gd?oD(e)?nD(e):aD(e):my}function uD(e){var s=e.x,t=e.y,r=e.width,i=e.height,n=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(n.prototype);return dy(a,{x:s,y:t,width:r,height:i,top:t,right:s+r,bottom:i+t,left:s}),a}function Rc(e,s,t,r){return{x:e,y:s,width:t,height:r}}var dD=function(){function e(s){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Rc(0,0,0,0),this.target=s}return e.prototype.isActive=function(){var s=cD(this.target);return this.contentRect_=s,s.width!==this.broadcastWidth||s.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var s=this.contentRect_;return this.broadcastWidth=s.width,this.broadcastHeight=s.height,s},e}(),mD=function(){function e(s,t){var r=uD(t);dy(this,{target:s,contentRect:r})}return e}(),hD=function(){function e(s,t,r){if(this.activeObservations_=[],this.observations_=new uy,typeof s!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=s,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(s){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(s instanceof bi(s).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(s)||(t.set(s,new dD(s)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(s){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(s instanceof bi(s).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(s)&&(t.delete(s),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var s=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&s.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var s=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new mD(r.target,r.broadcastRect())});this.callback_.call(s,t,s),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),hy=typeof WeakMap<"u"?new WeakMap:new uy,py=function(){function e(s){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=rD.getInstance(),r=new hD(s,t,this);hy.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){py.prototype[e]=function(){var s;return(s=hy.get(this))[e].apply(s,arguments)}});(function(){return typeof Bo.ResizeObserver<"u"?Bo.ResizeObserver:py})();/**
* vue-class-component v7.2.6
* (c) 2015-present Evan You
* @license MIT
*/function xo(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xo=function(s){return typeof s}:xo=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},xo(e)}function pD(e,s,t){return s in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}function fD(e){return gD(e)||vD(e)||_D()}function gD(e){if(Array.isArray(e)){for(var s=0,t=new Array(e.length);s<e.length;s++)t[s]=e[s];return t}}function vD(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function _D(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function bD(){return typeof Reflect<"u"&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function yD(e,s){cd(e,s),Object.getOwnPropertyNames(s.prototype).forEach(function(t){cd(e.prototype,s.prototype,t)}),Object.getOwnPropertyNames(s).forEach(function(t){cd(e,s,t)})}function cd(e,s,t){var r=t?Reflect.getOwnMetadataKeys(s,t):Reflect.getOwnMetadataKeys(s);r.forEach(function(i){var n=t?Reflect.getOwnMetadata(i,s,t):Reflect.getOwnMetadata(i,s);t?Reflect.defineMetadata(i,n,e,t):Reflect.defineMetadata(i,n,e)})}var CD={__proto__:[]},$D=CD instanceof Array;function jc(e){return function(s,t,r){var i=typeof s=="function"?s:s.constructor;i.__decorators__||(i.__decorators__=[]),typeof r!="number"&&(r=void 0),i.__decorators__.push(function(n){return e(n,t,r)})}}function M(){for(var e=arguments.length,s=new Array(e),t=0;t<e;t++)s[t]=arguments[t];return y.extend({mixins:s})}function xD(e){var s=xo(e);return e==null||s!=="object"&&s!=="function"}function wD(e,s){var t=s.prototype._init;s.prototype._init=function(){var n=this,a=Object.getOwnPropertyNames(e);if(e.$options.props)for(var o in e.$options.props)e.hasOwnProperty(o)||a.push(o);a.forEach(function(l){Object.defineProperty(n,l,{get:function(){return e[l]},set:function(u){e[l]=u},configurable:!0})})};var r=new s;s.prototype._init=t;var i={};return Object.keys(r).forEach(function(n){r[n]!==void 0&&(i[n]=r[n])}),i}var zd=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function bg(e){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};s.name=s.name||e._componentTag||e.name;var t=e.prototype;Object.getOwnPropertyNames(t).forEach(function(o){if(o!=="constructor"){if(zd.indexOf(o)>-1){s[o]=t[o];return}var l=Object.getOwnPropertyDescriptor(t,o);l.value!==void 0?typeof l.value=="function"?(s.methods||(s.methods={}))[o]=l.value:(s.mixins||(s.mixins=[])).push({data:function(){return pD({},o,l.value)}}):(l.get||l.set)&&((s.computed||(s.computed={}))[o]={get:l.get,set:l.set})}}),(s.mixins||(s.mixins=[])).push({data:function(){return wD(this,e)}});var r=e.__decorators__;r&&(r.forEach(function(o){return o(s)}),delete e.__decorators__);var i=Object.getPrototypeOf(e.prototype),n=i instanceof y?i.constructor:y,a=n.extend(s);return PD(a,e,n),bD()&&yD(a,e),a}var SD={prototype:!0,arguments:!0,callee:!0,caller:!0};function PD(e,s,t){Object.getOwnPropertyNames(s).forEach(function(r){if(!SD[r]){var i=Object.getOwnPropertyDescriptor(e,r);if(!(i&&!i.configurable)){var n=Object.getOwnPropertyDescriptor(s,r);if(!$D){if(r==="cid")return;var a=Object.getOwnPropertyDescriptor(t,r);if(!xD(n.value)&&a&&a.value===n.value)return}Object.defineProperty(e,r,n)}}})}function D(e){return typeof e=="function"?bg(e):function(s){return bg(s,e)}}D.registerHooks=function(s){zd.push.apply(zd,fD(s))};globalThis&&globalThis.__spreadArrays;var DD=typeof Reflect<"u"&&typeof Reflect.getMetadata<"u";function TD(e,s,t){if(DD&&!Array.isArray(e)&&typeof e!="function"&&!e.hasOwnProperty("type")&&typeof e.type>"u"){var r=Reflect.getMetadata("design:type",s,t);r!==Object&&(e.type=r)}}function P(e){return e===void 0&&(e={}),function(s,t){TD(e,s,t),jc(function(r,i){(r.props||(r.props={}))[i]=e})(s,t)}}function fy(e){return jc(function(s,t){s.computed=s.computed||{},s.computed[t]={cache:!1,get:function(){return this.$refs[e||t]}}})}function MD(e){e===void 0&&(e={});var s="value";return jc(function(t,r){(t.props||(t.props={}))[s]=e,(t.computed||(t.computed={}))[r]={get:function(){return this[s]},set:function(i){this.$emit("input",i)}}})}function me(e,s){s===void 0&&(s={});var t=s.deep,r=t===void 0?!1:t,i=s.immediate,n=i===void 0?!1:i;return jc(function(a,o){typeof a.watch!="object"&&(a.watch=Object.create(null));var l=a.watch;typeof l[e]=="object"&&!Array.isArray(l[e])?l[e]=[l[e]]:typeof l[e]>"u"&&(l[e]=[]),l[e].push({handler:o,deep:r,immediate:n})})}var ED=Object.defineProperty,OD=Object.getOwnPropertyDescriptor,LD=(e,s,t,r)=>{for(var i=r>1?void 0:r?OD(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&ED(s,t,i),i};let O=class extends y{get apiUrl(){return this.$store.getters["socket/getUrl"]}get hostUrl(){return this.$store.getters["socket/getHostUrl"]}get hostPort(){var e;return parseInt((e=this.$store.state.socket.port)!=null?e:80)}get instancesDB(){var e;return(e=this.$store.state.instancesDB)!=null?e:"moonraker"}get socketIsConnected(){var e;return(e=this.$store.state.socket.isConnected)!=null?e:!1}get guiIsReady(){return this.$store.state.socket.initializationList.length===0}get klippyIsConnected(){var e;return(e=this.$store.state.server.klippy_connected)!=null?e:!1}get klipperState(){var e;return this.klippyIsConnected?(e=this.$store.state.server.klippy_state)!=null?e:"":"disconnected"}get klipperReadyForGui(){return this.socketIsConnected&&this.klipperState==="ready"}get printerIsPrinting(){return this.klipperReadyForGui&&["printing","paused"].includes(this.printer_state)}get printerIsPrintingOnly(){return this.klipperReadyForGui&&this.printer_state==="printing"}get printerPowerDevice(){var t,r,i,n;const e=(t=this.$store.state.gui.uiSettings.powerDeviceName)!=null?t:null;return e!==null?e:(n=(i=((r=this.$store.getters["server/power/getDevices"])!=null?r:[]).find(a=>a.device.toLowerCase()==="printer"))==null?void 0:i.device)!=null?n:"printer"}get isPrinterPowerOff(){var r;const e=(r=this.$store.getters["server/power/getDevices"])!=null?r:[];if(e.length===0)return!1;const s=e.findIndex(i=>i.device===this.printerPowerDevice);return s===-1||e[s].status!=="off"?!1:!this.klippyIsConnected}get loadings(){var e;return(e=this.$store.state.socket.loadings)!=null?e:[]}get printer_state(){var t,r,i,n,a,o;const e=(n=(i=(t=this.$store.state.printer.print_stats)==null?void 0:t.state)!=null?i:(r=this.$store.state.printer.idle_timeout)==null?void 0:r.state)!=null?n:"",s=(o=(a=this.$store.state.printer["gcode_macro TIMELAPSE_TAKE_FRAME"])==null?void 0:a.is_paused)!=null?o:!1;return e==="paused"&&s?"printing":e}get isMobile(){return this.$vuetify.breakpoint.mobile}get isTablet(){return this.$vuetify.breakpoint.smAndUp&&!this.isDesktop&&!this.isWidescreen}get isDesktop(){return this.$vuetify.breakpoint.lgAndUp&&!this.isWidescreen}get isWidescreen(){return this.$vuetify.breakpoint.xl}get viewport(){return this.isMobile?"mobile":this.isTablet?"tablet":this.isDesktop?"desktop":"widescreen"}get isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0&&navigator.maxTouchPoints!==256}get isIOS(){return!!(navigator.userAgent.match(/(iPad|iPhone|iPod)/)||navigator.platform==="MacIntel"&&typeof navigator.standalone<"u")}get moonrakerComponents(){var e,s;return(s=(e=this.$store.state.server)==null?void 0:e.components)!=null?s:[]}get existGcodesRootDirectory(){return this.$store.state.server.registered_directories.findIndex(s=>s==="gcodes")>=0}get formatDateOptions(){switch(this.$store.state.gui.general.dateFormat){case"2-digits":return{day:"2-digit",month:"2-digit",year:"numeric"};case"short":return{day:"2-digit",month:"short",year:"numeric"};default:return{dateStyle:"medium"}}}get formatTimeOptions(){switch(this.$store.state.gui.general.timeFormat){case"24hours":return{hour:"2-digit",minute:"2-digit",hourCycle:"h23"};case"12hours":return{hour:"2-digit",minute:"2-digit",hourCycle:"h12"};default:return{timeStyle:"short"}}}get formatTimeWithSecondsOptions(){switch(this.$store.state.gui.general.timeFormat){case"24hours":return{hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"};case"12hours":return{hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h12"};default:return{timeStyle:"short"}}}get browserLocale(){return navigator.language}get hours12Format(){return this.$store.getters["gui/getHours12Format"]}formatDate(e){let s=null;try{s=typeof e.getMonth=="function"?e:new Date(e)}catch{return"UNKNOWN"}return s.toLocaleDateString(this.browserLocale,this.formatDateOptions)}formatTime(e,s=!1){let t=null;try{t=typeof e.getMonth=="function"?e:new Date(e)}catch{return"UNKNOWN"}return s?t.toLocaleTimeString(this.browserLocale,this.formatTimeWithSecondsOptions):t.toLocaleTimeString(this.browserLocale,this.formatTimeOptions)}formatDateTime(e,s=!1){const t=this.formatDate(e),r=this.formatTime(e,s);return"".concat(t," ").concat(r)}};O=LD([D],O);const gy="dark",vy="mainsail",Rr="#D41216",Go="#2196f3",qt="#1e1e1e",yg="v0.11.0-257",Cg="v0.8.0-306",AD=[{name:"safari",version:"16.5.2"}],kD=["#F44336","#8e379d","#03DAC5","#3F51B5","#ffde03","#009688","#E91E63"],FD="#2196F3",RD="#4CAF50",_y="99",by="44",yi=".theme",jD=1e3,Dn=["temperature","target","power","speed"],Un=["power","speed"],HD=["bme280","aht10","htu21d"],Ci=[".gcode",".g",".gco",".ufp",".nc"],yy=["history","power","updateManager","timelapse","jobQueue","announcements","spoolman","sensor"],ID=["virtual_sdcard","pause_resume","gcode_macro pause","gcode_macro resume","gcode_macro cancel_print"],ND=["uuid","estimated_time","filament_name","filament_type","filament_total","filament_weight_total","nozzle_diameter","first_layer_bed_temp","first_layer_extr_temp","chamber_temp","first_layer_height","gcode_end_byte","gcode_start_byte","job_id","layer_height","object_height","print_start_time","size","slicer","slicer_version","thumbnails"],no=500,VD=50,UD=["toolhead-control","extruder-control","macros","machine-settings","miniconsole","miscellaneous","spoolman","temperature","webcam"],bs=30,ys=64,rr=128,BD=220,WD=48,Zd=48,kn=48,GD=["^_TIMELAPSE_NEW_FRAME","^TIMELAPSE_TAKE_FRAME","^TIMELAPSE_RENDER","^_SET_TIMELAPSE_SETUP","^HYPERLAPSE ACTION=","^SET_GCODE_VARIABLE MACRO=TIMELAPSE_"],zD=["gcodes","timelapse","timelapse_frames"],ZD=[".git"],qD=["it","hu","zh"],XD=["klippy","moonraker","crowsnest","mmu","sonar"],YD=["klipper","moonraker"],fi=[{name:"mainsail",displayName:"Mainsail",colorLogo:Rr},{name:"klipper",displayName:"Klipper",colorLogo:"#b12f35",logo:{show:!0,light:!1}},{name:"voron",displayName:"Voron Design",colorLogo:"#FF2300",logo:{show:!0,light:!1}},{name:"ldo",displayName:"LDO Motion (Sponsor)",colorLogo:"#326799",colorPrimary:"#326799",logo:{show:!0,light:!1}},{name:"yumi",displayName:"YUMI (Sponsor)",colorLogo:"#F6CF3D",colorPrimary:"#F6CF3D",logo:{show:!0,light:!1}},{name:"vzbot",displayName:"VzBot",colorLogo:"#FF0000",logo:{show:!0,light:!1},sidebarBackground:{show:!0,light:!1}},{name:"prusa",displayName:"Prusa Research (Sponsor)",colorLogo:"#fa6831",colorPrimary:"#fa6831",logo:{show:!0,light:!1}},{name:"btt",displayName:"BigTreeTech (Sponsor)",colorLogo:"#ef0025",logo:{show:!0,light:!1}},{name:"multec",displayName:"Multec GmbH (Sponsor)",colorLogo:"#234D7A",colorPrimary:"#234D7A",logo:{show:!0,light:!1}}];var Ki="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9A3,3 0 0,1 15,12Z",Bn="M12,20A7,7 0 0,1 5,13A7,7 0 0,1 12,6A7,7 0 0,1 19,13A7,7 0 0,1 12,20M12,4A9,9 0 0,0 3,13A9,9 0 0,0 12,22A9,9 0 0,0 21,13A9,9 0 0,0 12,4M12.5,8H11V14L15.75,16.85L16.5,15.62L12.5,13.25V8M7.88,3.39L6.6,1.86L2,5.71L3.29,7.24L7.88,3.39M22,5.72L17.4,1.86L16.11,3.39L20.71,7.25L22,5.72Z",JD="M9.29,3.25L5.16,6.72L4,5.34L8.14,1.87L9.29,3.25M22,5.35L20.84,6.73L16.7,3.25L17.86,1.87L22,5.35M13,4A8,8 0 0,1 21,12A8,8 0 0,1 13,20A8,8 0 0,1 5,12A8,8 0 0,1 13,4M13,6A6,6 0 0,0 7,12A6,6 0 0,0 13,18A6,6 0 0,0 19,12A6,6 0 0,0 13,6M12,7.5H13.5V12.03L16.72,13.5L16.1,14.86L12,13V7.5M1,14C1,11.5 2.13,9.3 3.91,7.83C3.33,9.1 3,10.5 3,12L3.06,13.13L3,14C3,16.28 4.27,18.26 6.14,19.28C7.44,20.5 9.07,21.39 10.89,21.78C10.28,21.92 9.65,22 9,22A8,8 0 0,1 1,14Z",KD="M12,11A1,1 0 0,0 11,12A1,1 0 0,0 12,13A1,1 0 0,0 13,12A1,1 0 0,0 12,11M12,16.5C9.5,16.5 7.5,14.5 7.5,12C7.5,9.5 9.5,7.5 12,7.5C14.5,7.5 16.5,9.5 16.5,12C16.5,14.5 14.5,16.5 12,16.5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",QD="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",Cy="M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",$y="M8.27,3L3,8.27V15.73L8.27,21H15.73C17.5,19.24 21,15.73 21,15.73V8.27L15.73,3M9.1,5H14.9L19,9.1V14.9L14.9,19H9.1L5,14.9V9.1M11,15H13V17H11V15M11,7H13V13H11V7",Wn="M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16",Hc="M19.92,12.08L12,20L4.08,12.08L5.5,10.67L11,16.17V2H13V16.17L18.5,10.66L19.92,12.08M12,20H2V22H22V20H12Z",eT="M4,12H20V14H4V12M4,9H20V11H4V9M16,4L12,8L8,4H11V1H13V4H16M8,19L12,15L16,19H13V22H11V19H8Z",tT="M9,4H15V12H19.84L12,19.84L4.16,12H9V4Z",xy="M2,20V22H22V20H13V5.83L18.5,11.33L19.92,9.92L12,2L4.08,9.92L5.5,11.33L11,5.83V20H2Z",sT="M13,9V15H16L12,19L8,15H11V9H8L12,5L16,9H13M4,2H20V4H4V2M4,20H20V22H4V20Z",rT="M15,20H9V12H4.16L12,4.16L19.84,12H15V20Z",iT="M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19M14,21A2,2 0 0,1 12,23A2,2 0 0,1 10,21",nT="M22.11,21.46L2.39,1.73L1.11,3L5.83,7.72C5.29,8.73 5,9.86 5,11V17L3,19V20H18.11L20.84,22.73L22.11,21.46M7,18V11C7,10.39 7.11,9.79 7.34,9.23L16.11,18H7M10,21H14A2,2 0 0,1 12,23A2,2 0 0,1 10,21M8.29,5.09C8.82,4.75 9.4,4.5 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V15.8L17,13.8V11A5,5 0 0,0 12,6C11.22,6 10.45,6.2 9.76,6.56L8.29,5.09Z",aT="M10 21H14C14 22.1 13.1 23 12 23S10 22.1 10 21M21 19V20H3V19L5 17V11C5 7.9 7 5.2 10 4.3V4C10 2.9 10.9 2 12 2S14 2.9 14 4V4.3C17 5.2 19 7.9 19 11V17L21 19M17 11C17 8.2 14.8 6 12 6S7 8.2 7 11V18H17V11Z",wy="M19.36,2.72L20.78,4.14L15.06,9.85C16.13,11.39 16.28,13.24 15.38,14.44L9.06,8.12C10.26,7.22 12.11,7.37 13.65,8.44L19.36,2.72M5.93,17.57C3.92,15.56 2.69,13.16 2.35,10.92L7.23,8.83L14.67,16.27L12.58,21.15C10.34,20.81 7.94,19.58 5.93,17.57Z",Ic="M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1M17,12H12V17H17V12Z",gce="M20,5H17L15,3H9L7,5H4A2,2 0 0,0 2,7V19A2,2 0 0,0 4,21H20A2,2 0 0,0 22,19V7A2,2 0 0,0 20,5M12,18C10.92,18 9.86,17.65 9,17L10.44,15.56C10.91,15.85 11.45,16 12,16A3,3 0 0,0 15,13A3,3 0 0,0 12,10C10.74,10 9.6,10.8 9.18,12H11L8,15L5,12H7.1C7.65,9.29 10.29,7.55 13,8.1C15.7,8.65 17.45,11.29 16.9,14C16.42,16.33 14.38,18 12,18Z",oT="M15.9,18.5L21.9,20.1L21.5,22L12.1,19.5L2.7,22L2.2,20.1L8.2,18.5L2.1,16.9L2.6,15L12,17.5L21.4,15L21.9,16.9L15.9,18.5M16.07,7.92C15.91,7.7 15.71,7.5 15.5,7.33C15.05,6.9 14.5,6.59 14.06,6.13C13,5.08 12.79,3.34 13.44,2C12.79,2.17 12.18,2.54 11.67,2.95C9.84,4.46 9.11,7.1 10,9.38C10,9.45 10.04,9.53 10.04,9.62C10.04,9.78 9.93,9.92 9.79,10C9.63,10.05 9.46,10 9.33,9.9C9.28,9.86 9.25,9.82 9.22,9.77C8.42,8.74 8.29,7.26 8.84,6.07C7.65,7.06 7,8.72 7.11,10.29C7.13,10.65 7.18,11 7.3,11.36C7.41,11.8 7.59,12.23 7.82,12.61C8.57,13.86 9.9,14.76 11.32,14.94C12.84,15.14 14.46,14.85 15.63,13.79C16.93,12.59 17.4,10.67 16.71,9L16.61,8.83C16.47,8.5 16.28,8.2 16.04,7.93L16.07,7.92M13.83,12.47C13.63,12.65 13.31,12.83 13.05,12.91C12.26,13.19 11.46,12.79 11,12.31C11.84,12.11 12.34,11.47 12.5,10.83C12.61,10.25 12.39,9.78 12.29,9.22C12.21,8.69 12.22,8.23 12.42,7.73C12.55,8 12.69,8.28 12.86,8.5C13.41,9.22 14.27,9.54 14.45,10.5C14.47,10.63 14.5,10.72 14.5,10.83C14.5,11.43 14.26,12.07 13.82,12.47",Sy="M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z",lT="M17,19H7V5H17M17,1H7C5.89,1 5,1.89 5,3V21A2,2 0 0,0 7,23H17A2,2 0 0,0 19,21V3C19,1.89 18.1,1 17,1Z",cT="M17.45,15.18L22,7.31V19L22,21H2V3H4V15.54L9.5,6L16,9.78L20.24,2.45L21.97,3.45L16.74,12.5L10.23,8.75L4.31,19H6.57L10.96,11.44L17.45,15.18Z",Py="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",hp="M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",pp="M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z",Dy="M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",uT="M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2,4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z",Ty="M5.59,7.41L7,6L13,12L7,18L5.59,16.59L10.17,12L5.59,7.41M11.59,7.41L13,6L19,12L13,18L11.59,16.59L16.17,12L11.59,7.41Z",hr="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",dT="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",mT="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",hT="M9.42,7.41L4.83,12L9.42,16.59L8,18L2,12L8,6L9.42,7.41M15.42,7.41L10.83,12L15.42,16.59L14,18L8,12L14,6L15.42,7.41M21.42,7.41L16.83,12L21.42,16.59L20,18L14,12L20,6L21.42,7.41Z",pT="M14.58,16.59L19.17,12L14.58,7.41L16,6L22,12L16,18L14.58,16.59M8.58,16.59L13.17,12L8.58,7.41L10,6L16,12L10,18L8.58,16.59M2.58,16.59L7.17,12L2.58,7.41L4,6L10,12L4,18L2.58,16.59Z",Nc="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",fT="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M16.2,16.2L11,13V7H12.5V12.2L17,14.9L16.2,16.2Z",ka="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",gT="M20 2H8C6.9 2 6 2.9 6 4V16C6 17.11 6.9 18 8 18H20C21.11 18 22 17.11 22 16V4C22 2.9 21.11 2 20 2M20 16H8V4H20V16M4 6V20H18V22H4C2.9 22 2 21.11 2 20V6H4M9.77 12.84L12.6 10L9.77 7.15L11.17 5.75L14 8.6L16.84 5.77L18.24 7.17L15.4 10L18.23 12.84L16.83 14.24L14 11.4L11.17 14.24L9.77 12.84Z",zo="M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",vT="M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2C6.47,2 2,6.47 2,12C2,17.53 6.47,22 12,22C17.53,22 22,17.53 22,12C22,6.47 17.53,2 12,2M14.59,8L12,10.59L9.41,8L8,9.41L10.59,12L8,14.59L9.41,16L12,13.41L14.59,16L16,14.59L13.41,12L16,9.41L14.59,8Z",pe="M20 6.91L17.09 4L12 9.09L6.91 4L4 6.91L9.09 12L4 17.09L6.91 20L12 14.91L17.09 20L20 17.09L14.91 12L20 6.91Z",Gn="M6.5 20Q4.22 20 2.61 18.43 1 16.85 1 14.58 1 12.63 2.17 11.1 3.35 9.57 5.25 9.15 5.83 7.13 7.39 5.75 8.95 4.38 11 4.08V12.15L9.4 10.6L8 12L12 16L16 12L14.6 10.6L13 12.15V4.08Q15.58 4.43 17.29 6.39 19 8.35 19 11 20.73 11.2 21.86 12.5 23 13.78 23 15.5 23 17.38 21.69 18.69 20.38 20 18.5 20Z",zn="M14.6,16.6L19.2,12L14.6,7.4L16,6L22,12L16,18L14.6,16.6M9.4,16.6L4.8,12L9.4,7.4L8,6L2,12L8,18L9.4,16.6Z",us="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",_T="M22.12 21.46L2.4 1.73L1.12 3L4 5.87L2.34 8.73C2.21 8.95 2.27 9.22 2.46 9.37L4.57 11C4.53 11.34 4.5 11.67 4.5 12S4.53 12.65 4.57 12.97L2.46 14.63C2.27 14.78 2.21 15.05 2.34 15.27L4.34 18.73C4.46 18.95 4.73 19.03 4.95 18.95L7.44 17.94C7.96 18.34 8.5 18.68 9.13 18.93L9.5 21.58C9.54 21.82 9.75 22 10 22H14C14.25 22 14.46 21.82 14.5 21.58L14.87 18.93C15.38 18.72 15.83 18.45 16.26 18.14L20.85 22.73L22.12 21.46M12 15.5C10.07 15.5 8.5 13.93 8.5 12C8.5 11.5 8.62 11.08 8.79 10.67L13.33 15.21C12.92 15.39 12.5 15.5 12 15.5M11.74 8.53L8.56 5.35C8.75 5.25 8.93 5.15 9.13 5.07L9.5 2.42C9.54 2.18 9.75 2 10 2H14C14.25 2 14.46 2.18 14.5 2.42L14.87 5.07C15.5 5.32 16.04 5.66 16.56 6.05L19.05 5.05C19.27 4.96 19.54 5.05 19.66 5.27L21.66 8.73C21.78 8.95 21.73 9.22 21.54 9.37L19.43 11C19.47 11.34 19.5 11.67 19.5 12S19.47 12.65 19.43 12.97L21.54 14.63C21.73 14.78 21.78 15.05 21.66 15.27L20.5 17.29L15.47 12.26C15.5 12.18 15.5 12.09 15.5 12C15.5 10.07 13.93 8.5 12 8.5C11.91 8.5 11.83 8.5 11.74 8.53Z",bT="M15.9,18.45C17.25,18.45 18.35,17.35 18.35,16C18.35,14.65 17.25,13.55 15.9,13.55C14.54,13.55 13.45,14.65 13.45,16C13.45,17.35 14.54,18.45 15.9,18.45M21.1,16.68L22.58,17.84C22.71,17.95 22.75,18.13 22.66,18.29L21.26,20.71C21.17,20.86 21,20.92 20.83,20.86L19.09,20.16C18.73,20.44 18.33,20.67 17.91,20.85L17.64,22.7C17.62,22.87 17.47,23 17.3,23H14.5C14.32,23 14.18,22.87 14.15,22.7L13.89,20.85C13.46,20.67 13.07,20.44 12.71,20.16L10.96,20.86C10.81,20.92 10.62,20.86 10.54,20.71L9.14,18.29C9.05,18.13 9.09,17.95 9.22,17.84L10.7,16.68L10.65,16L10.7,15.31L9.22,14.16C9.09,14.05 9.05,13.86 9.14,13.71L10.54,11.29C10.62,11.13 10.81,11.07 10.96,11.13L12.71,11.84C13.07,11.56 13.46,11.32 13.89,11.15L14.15,9.29C14.18,9.13 14.32,9 14.5,9H17.3C17.47,9 17.62,9.13 17.64,9.29L17.91,11.15C18.33,11.32 18.73,11.56 19.09,11.84L20.83,11.13C21,11.07 21.17,11.13 21.26,11.29L22.66,13.71C22.75,13.86 22.71,14.05 22.58,14.16L21.1,15.31L21.15,16L21.1,16.68M6.69,8.07C7.56,8.07 8.26,7.37 8.26,6.5C8.26,5.63 7.56,4.92 6.69,4.92A1.58,1.58 0 0,0 5.11,6.5C5.11,7.37 5.82,8.07 6.69,8.07M10.03,6.94L11,7.68C11.07,7.75 11.09,7.87 11.03,7.97L10.13,9.53C10.08,9.63 9.96,9.67 9.86,9.63L8.74,9.18L8,9.62L7.81,10.81C7.79,10.92 7.7,11 7.59,11H5.79C5.67,11 5.58,10.92 5.56,10.81L5.4,9.62L4.64,9.18L3.5,9.63C3.41,9.67 3.3,9.63 3.24,9.53L2.34,7.97C2.28,7.87 2.31,7.75 2.39,7.68L3.34,6.94L3.31,6.5L3.34,6.06L2.39,5.32C2.31,5.25 2.28,5.13 2.34,5.03L3.24,3.47C3.3,3.37 3.41,3.33 3.5,3.37L4.63,3.82L5.4,3.38L5.56,2.19C5.58,2.08 5.67,2 5.79,2H7.59C7.7,2 7.79,2.08 7.81,2.19L8,3.38L8.74,3.82L9.86,3.37C9.96,3.33 10.08,3.37 10.13,3.47L11.03,5.03C11.09,5.13 11.07,5.25 11,5.32L10.03,6.06L10.06,6.5L10.03,6.94Z",fp="M21.4 7.5C22.2 8.3 22.2 9.6 21.4 10.3L18.6 13.1L10.8 5.3L13.6 2.5C14.4 1.7 15.7 1.7 16.4 2.5L18.2 4.3L21.2 1.3L22.6 2.7L19.6 5.7L21.4 7.5M15.6 13.3L14.2 11.9L11.4 14.7L9.3 12.6L12.1 9.8L10.7 8.4L7.9 11.2L6.4 9.8L3.6 12.6C2.8 13.4 2.8 14.7 3.6 15.4L5.4 17.2L1.4 21.2L2.8 22.6L6.8 18.6L8.6 20.4C9.4 21.2 10.7 21.2 11.4 20.4L14.2 17.6L12.8 16.2L15.6 13.3Z",Fa="M13,19V16H21V19H13M8.5,13L2.47,7H6.71L11.67,11.95C12.25,12.54 12.25,13.5 11.67,14.07L6.74,19H2.5L8.5,13Z",gp="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z",vp="M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z",My="M4,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M4,6V18H11V6H4M20,18V6H18.76C19,6.54 18.95,7.07 18.95,7.13C18.88,7.8 18.41,8.5 18.24,8.75L15.91,11.3L19.23,11.28L19.24,12.5L14.04,12.47L14,11.47C14,11.47 17.05,8.24 17.2,7.95C17.34,7.67 17.91,6 16.5,6C15.27,6.05 15.41,7.3 15.41,7.3L13.87,7.31C13.87,7.31 13.88,6.65 14.25,6H13V18H15.58L15.57,17.14L16.54,17.13C16.54,17.13 17.45,16.97 17.46,16.08C17.5,15.08 16.65,15.08 16.5,15.08C16.37,15.08 15.43,15.13 15.43,15.95H13.91C13.91,15.95 13.95,13.89 16.5,13.89C19.1,13.89 18.96,15.91 18.96,15.91C18.96,15.91 19,17.16 17.85,17.63L18.37,18H20M8.92,16H7.42V10.2L5.62,10.76V9.53L8.76,8.41H8.92V16Z",yT="M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M3.05,13H1V11H3.05C3.5,6.83 6.83,3.5 11,3.05V1H13V3.05C17.17,3.5 20.5,6.83 20.95,11H23V13H20.95C20.5,17.17 17.17,20.5 13,20.95V23H11V20.95C6.83,20.5 3.5,17.17 3.05,13M12,5A7,7 0 0,0 5,12A7,7 0 0,0 12,19A7,7 0 0,0 19,12A7,7 0 0,0 12,5Z",CT="M12,3C7.58,3 4,4.79 4,7C4,9.21 7.58,11 12,11C16.42,11 20,9.21 20,7C20,4.79 16.42,3 12,3M4,9V12C4,14.21 7.58,16 12,16C16.42,16 20,14.21 20,12V9C20,11.21 16.42,13 12,13C7.58,13 4,11.21 4,9M4,14V17C4,19.21 7.58,21 12,21C16.42,21 20,19.21 20,17V14C20,16.21 16.42,18 12,18C7.58,18 4,16.21 4,14Z",Ey="M20 13.09V7C20 4.79 16.42 3 12 3S4 4.79 4 7V17C4 19.21 7.59 21 12 21C12.46 21 12.9 21 13.33 20.94C13.12 20.33 13 19.68 13 19L13 18.95C12.68 19 12.35 19 12 19C8.13 19 6 17.5 6 17V14.77C7.61 15.55 9.72 16 12 16C12.65 16 13.27 15.96 13.88 15.89C14.93 14.16 16.83 13 19 13C19.34 13 19.67 13.04 20 13.09M18 12.45C16.7 13.4 14.42 14 12 14S7.3 13.4 6 12.45V9.64C7.47 10.47 9.61 11 12 11S16.53 10.47 18 9.64V12.45M12 9C8.13 9 6 7.5 6 7S8.13 5 12 5 18 6.5 18 7 15.87 9 12 9M22 20L19 23L16 20H18V16H20V20H22Z",$T="M17.86 18L18.9 19C17.5 20.2 14.94 21 12 21C7.59 21 4 19.21 4 17V7C4 4.79 7.58 3 12 3C14.95 3 17.5 3.8 18.9 5L17.86 6L17.5 6.4C16.65 5.77 14.78 5 12 5C8.13 5 6 6.5 6 7S8.13 9 12 9C13.37 9 14.5 8.81 15.42 8.54L16.38 9.5H13.5V10.92C13 10.97 12.5 11 12 11C9.61 11 7.47 10.47 6 9.64V12.45C7.3 13.4 9.58 14 12 14C12.5 14 13 13.97 13.5 13.92V14.5H16.38L15.38 15.5L15.5 15.61C14.41 15.86 13.24 16 12 16C9.72 16 7.61 15.55 6 14.77V17C6 17.5 8.13 19 12 19C14.78 19 16.65 18.23 17.5 17.61L17.86 18M18.92 7.08L17.5 8.5L20 11H15V13H20L17.5 15.5L18.92 16.92L23.84 12L18.92 7.08Z",ze="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",xT="M4.15,21.46L5.47,19.58C3.35,17.74 2,15.03 2,12A10,10 0 0,1 12,2C13.78,2 15.44,2.46 16.89,3.27L18.21,1.39L19.85,2.54L18.53,4.42C20.65,6.26 22,8.97 22,12A10,10 0 0,1 12,22C10.22,22 8.56,21.54 7.11,20.73L5.79,22.61L4.15,21.46M12,4A8,8 0 0,0 4,12C4,14.35 5,16.46 6.63,17.93L15.73,4.92C14.62,4.33 13.35,4 12,4M12,20A8,8 0 0,0 20,12C20,9.65 19,7.54 17.37,6.07L8.27,19.08C9.38,19.67 10.65,20 12,20Z",_p="M3,4H7A1,1 0 0,1 8,5V19A1,1 0 0,1 7,20H3A1,1 0 0,1 2,19V5A1,1 0 0,1 3,4M10,4H14A1,1 0 0,1 15,5V19A1,1 0 0,1 14,20H10A1,1 0 0,1 9,19V5A1,1 0 0,1 10,4M17,4H21A1,1 0 0,1 22,5V19A1,1 0 0,1 21,20H17A1,1 0 0,1 16,19V5A1,1 0 0,1 17,4M4,18H6V13H4V18M11,11H13V6H11V11M18,18H20V13H18V18Z",wT="M8,3C6.89,3 6,3.89 6,5V21H18V5C18,3.89 17.11,3 16,3H8M8,5H16V19H8V5M13,11V13H15V11H13Z",ST="M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z",Vc="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",Oy="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",Ra="M9,3H11V5H9V3M13,3H15V5H13V3M9,7H11V9H9V7M13,7H15V9H13V7M9,11H11V13H9V11M13,11H15V13H13V11M9,15H11V17H9V15M13,15H15V17H13V15M9,19H11V21H9V19M13,19H15V21H13V19Z",Ly="M12,5L5.33,15H18.67M5,17H19V19H5V17Z",Ay="M7,4V6H10V8H7L5,10V13H3V10H1V18H3V15H5V18H8L10,20H18V16H20V19H23V9H20V12H18V8H12V6H15V4H7Z",bp="M3.78,2.5L21.5,20.22L20.23,21.5L18,19.27V20H10L8,18H5V15H3V18H1V10H3V13H5V10L6.87,8.14L2.5,3.77L3.78,2.5M20,9V12H18V8H12V6H15V4H7.82L22.82,19H23V9H20Z",PT="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z",yp="M12,11A1,1 0 0,0 11,12A1,1 0 0,0 12,13A1,1 0 0,0 13,12A1,1 0 0,0 12,11M12.5,2C17,2 17.11,5.57 14.75,6.75C13.76,7.24 13.32,8.29 13.13,9.22C13.61,9.42 14.03,9.73 14.35,10.13C18.05,8.13 22.03,8.92 22.03,12.5C22.03,17 18.46,17.1 17.28,14.73C16.78,13.74 15.72,13.3 14.79,13.11C14.59,13.59 14.28,14 13.88,14.34C15.87,18.03 15.08,22 11.5,22C7,22 6.91,18.42 9.27,17.24C10.25,16.75 10.69,15.71 10.89,14.79C10.4,14.59 9.97,14.27 9.65,13.87C5.96,15.85 2,15.07 2,11.5C2,7 5.56,6.89 6.74,9.26C7.24,10.25 8.29,10.68 9.22,10.87C9.41,10.39 9.73,9.97 10.14,9.65C8.15,5.96 8.94,2 12.5,2Z",vce="M13,6V18L21.5,12M4,18L12.5,12L4,6V18Z",pr="M13,9V3.5L18.5,9M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6Z",DT="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M10.5,11C8,11 6,13 6,15.5C6,18 8,20 10.5,20C13,20 15,18 15,15.5C15,13 13,11 10.5,11M10.5,12.5A3,3 0 0,1 13.5,15.5C13.5,16.06 13.35,16.58 13.08,17L9,12.92C9.42,12.65 9.94,12.5 10.5,12.5M7.5,15.5C7.5,14.94 7.65,14.42 7.92,14L12,18.08C11.58,18.35 11.06,18.5 10.5,18.5A3,3 0 0,1 7.5,15.5Z",TT="M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H10V20.09L12.09,18H6V16H14.09L16.09,14H6V12H18.09L20,10.09V8L14,2H6M13,3.5L18.5,9H13V3.5M20.15,13C20,13 19.86,13.05 19.75,13.16L18.73,14.18L20.82,16.26L21.84,15.25C22.05,15.03 22.05,14.67 21.84,14.46L20.54,13.16C20.43,13.05 20.29,13 20.15,13M18.14,14.77L12,20.92V23H14.08L20.23,16.85L18.14,14.77Z",ja="M8,12H16V14H8V12M10,20H6V4H13V9H18V12.1L20,10.1V8L14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H10V20M8,18H12.1L13,17.1V16H8V18M20.2,13C20.3,13 20.5,13.1 20.6,13.2L21.9,14.5C22.1,14.7 22.1,15.1 21.9,15.3L20.9,16.3L18.8,14.2L19.8,13.2C19.9,13.1 20,13 20.2,13M20.2,16.9L14.1,23H12V20.9L18.1,14.8L20.2,16.9Z",Uc="M16 0H8C6.9 0 6 .9 6 2V18C6 19.1 6.9 20 8 20H20C21.1 20 22 19.1 22 18V6L16 0M20 18H8V2H15V7H20V18M4 4V22H20V24H4C2.9 24 2 23.1 2 22V4H4M10 10V12H18V10H10M10 14V16H15V14H10Z",MT="M6,2A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6M6,4H13V9H18V20H6V4M8,12V14H16V12H8M8,16V18H13V16H8Z",ET="M15,7H20.5L15,1.5V7M8,0H16L22,6V18A2,2 0 0,1 20,20H8C6.89,20 6,19.1 6,18V2A2,2 0 0,1 8,0M4,4V22H20V24H4A2,2 0 0,1 2,22V4H4Z",ky="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z",OT="M14 2H6C4.89 2 4 2.89 4 4V20C4 21.11 4.89 22 6 22H13.81C13.28 21.09 13 20.05 13 19C13 15.69 15.69 13 19 13C19.34 13 19.67 13.03 20 13.08V8L14 2M13 9V3.5L18.5 9H13M23 20H20V23H18V20H15V18H18V15H20V18H23V20Z",Fy="M12.8 22H6C4.9 22 4 21.1 4 20V4C4 2.9 4.9 2 6 2H14L20 8V11.5C19.4 11.2 18.7 11.1 18 11V9H13V4H6V20H11.5C11.8 20.7 12.3 21.4 12.8 22M17 12L14.8 14.2L17 16.4V15C18.4 15 19.5 16.1 19.5 17.5C19.5 17.9 19.4 18.3 19.2 18.6L20.3 19.7C20.7 19.1 21 18.3 21 17.5C21 15.3 19.2 13.5 17 13.5V12M19.2 20.8L17 18.5V20C15.6 20 14.5 18.9 14.5 17.5C14.5 17.1 14.6 16.7 14.8 16.4L13.7 15.3C13.3 15.9 13 16.7 13 17.5C13 19.7 14.8 21.5 17 21.5V23L19.2 20.8Z",Ry="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M13.5,16V19H10.5V16H8L12,12L16,16H13.5M13,9V3.5L18.5,9H13Z",LT="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M17,19V13L14,15.2V13H7V19H14V16.8L17,19Z",AT="M14,12V19.88C14.04,20.18 13.94,20.5 13.71,20.71C13.32,21.1 12.69,21.1 12.3,20.71L10.29,18.7C10.06,18.47 9.96,18.16 10,17.87V12H9.97L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L14.03,12H14Z",kT="M2.39 1.73L1.11 3L9.5 11.37L9.97 12H10V17.87C9.96 18.16 10.06 18.47 10.29 18.7L12.3 20.71C12.69 21.1 13.32 21.1 13.71 20.71C13.94 20.5 14.04 20.18 14 19.88V15.89L20.84 22.73L22.11 21.46L14 13.35L9.41 8.76L4.15 3.5L2.39 1.73M6.21 3L14.54 11.34L19.79 4.62C20.13 4.19 20.05 3.56 19.62 3.22C19.43 3.08 19.22 3 19 3H6.21Z",Qi="M17.66 11.2C17.43 10.9 17.15 10.64 16.89 10.38C16.22 9.78 15.46 9.35 14.82 8.72C13.33 7.26 13 4.85 13.95 3C13 3.23 12.17 3.75 11.46 4.32C8.87 6.4 7.85 10.07 9.07 13.22C9.11 13.32 9.15 13.42 9.15 13.55C9.15 13.77 9 13.97 8.8 14.05C8.57 14.15 8.33 14.09 8.14 13.93C8.08 13.88 8.04 13.83 8 13.76C6.87 12.33 6.69 10.28 7.45 8.64C5.78 10 4.87 12.3 5 14.47C5.06 14.97 5.12 15.47 5.29 15.97C5.43 16.57 5.7 17.17 6 17.7C7.08 19.43 8.95 20.67 10.96 20.92C13.1 21.19 15.39 20.8 17.03 19.32C18.86 17.66 19.5 15 18.56 12.72L18.43 12.46C18.22 12 17.66 11.2 17.66 11.2M14.5 17.5C14.22 17.74 13.76 18 13.4 18.1C12.28 18.5 11.16 17.94 10.5 17.28C11.69 17 12.4 16.12 12.61 15.23C12.78 14.43 12.46 13.77 12.33 13C12.21 12.26 12.23 11.63 12.5 10.94C12.69 11.32 12.89 11.7 13.13 12C13.9 13 15.11 13.44 15.37 14.8C15.41 14.94 15.43 15.08 15.43 15.23C15.46 16.05 15.1 16.95 14.5 17.5H14.5Z",FT="M7,2V13H10V22L17,10H13L17,2H7Z",Cp="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",$p="M13 19C13 19.34 13.04 19.67 13.09 20H4C2.9 20 2 19.11 2 18V6C2 4.89 2.89 4 4 4H10L12 6H20C21.1 6 22 6.89 22 8V13.81C21.12 13.3 20.1 13 19 13C15.69 13 13 15.69 13 19M20 18V15H18V18H15V20H18V23H20V20H23V18H20Z",xp="M20,6A2,2 0 0,1 22,8V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4H10L12,6H20M10.75,13H14V17H16V13H19.25L15,8.75",RT="M20 6H12L10 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V8C22 6.9 21.1 6 20 6M20 18H16V16H14V18H4V8H14V10H16V8H20V18M16 12V10H18V12H16M14 12H16V14H14V12M18 16H16V14H18V16Z",wp="M16.5,9L13.5,12L16.5,15H22V9M9,16.5V22H15V16.5L12,13.5M7.5,9H2V15H7.5L10.5,12M15,7.5V2H9V7.5L12,10.5L15,7.5Z",jT="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4A8,8 0 0,1 20,12C20,14.4 19,16.5 17.3,18C15.9,16.7 14,16 12,16C10,16 8.2,16.7 6.7,18C5,16.5 4,14.4 4,12A8,8 0 0,1 12,4M14,5.89C13.62,5.9 13.26,6.15 13.1,6.54L11.81,9.77L11.71,10C11,10.13 10.41,10.6 10.14,11.26C9.73,12.29 10.23,13.45 11.26,13.86C12.29,14.27 13.45,13.77 13.86,12.74C14.12,12.08 14,11.32 13.57,10.76L13.67,10.5L14.96,7.29L14.97,7.26C15.17,6.75 14.92,6.17 14.41,5.96C14.28,5.91 14.15,5.89 14,5.89M10,6A1,1 0 0,0 9,7A1,1 0 0,0 10,8A1,1 0 0,0 11,7A1,1 0 0,0 10,6M7,9A1,1 0 0,0 6,10A1,1 0 0,0 7,11A1,1 0 0,0 8,10A1,1 0 0,0 7,9M17,9A1,1 0 0,0 16,10A1,1 0 0,0 17,11A1,1 0 0,0 18,10A1,1 0 0,0 17,9Z",Bc="M10,4V8H14V4H10M16,4V8H20V4H16M16,10V14H20V10H16M16,16V20H20V16H16M14,20V16H10V20H14M8,20V16H4V20H8M8,14V10H4V14H8M8,8V4H4V8H8M10,14H14V10H10V14M4,2H20A2,2 0 0,1 22,4V20A2,2 0 0,1 20,22H4C2.92,22 2,21.1 2,20V4A2,2 0 0,1 4,2Z",jy="M10,19H13V22H10V19M12,2C17.35,2.22 19.68,7.62 16.5,11.67C15.67,12.67 14.33,13.33 13.67,14.17C13,15 13,16 13,17H10C10,15.33 10,13.92 10.67,12.92C11.33,11.92 12.67,11.33 13.5,10.67C15.92,8.43 15.32,5.26 12,5A3,3 0 0,0 9,8H6A6,6 0 0,1 12,2Z",Wc="M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",Hy="M11,18H13V16H11V18M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,6A4,4 0 0,0 8,10H10A2,2 0 0,1 12,8A2,2 0 0,1 14,10C14,12 11,11.75 11,15H13C13,12.75 16,12.5 16,10A4,4 0 0,0 12,6Z",HT="M13.5,8H12V13L16.28,15.54L17,14.33L13.5,12.25V8M13,3A9,9 0 0,0 4,12H1L4.96,16.03L9,12H6A7,7 0 0,1 13,5A7,7 0 0,1 20,12A7,7 0 0,1 13,19C11.07,19 9.32,18.21 8.06,16.94L6.64,18.36C8.27,20 10.5,21 13,21A9,9 0 0,0 22,12A9,9 0 0,0 13,3",Iy="M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z",kt="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",Ny="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z",IT="M12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22M12.3 7.29C12.5 7.11 12.74 7 13 7C13.27 7 13.5 7.11 13.71 7.29C13.9 7.5 14 7.74 14 8C14 8.27 13.9 8.5 13.71 8.71C13.5 8.9 13.27 9 13 9C12.74 9 12.5 8.9 12.3 8.71C12.11 8.5 12 8.27 12 8C12 7.74 12.11 7.5 12.3 7.29M9.8 11.97C9.8 11.97 11.97 10.25 12.76 10.18C13.5 10.12 13.35 10.97 13.28 11.41L13.27 11.47C13.13 12 12.96 12.64 12.79 13.25C12.41 14.64 12.04 16 12.13 16.25C12.23 16.59 12.85 16.16 13.3 15.86C13.36 15.82 13.41 15.78 13.46 15.75C13.46 15.75 13.54 15.67 13.62 15.78C13.64 15.81 13.66 15.84 13.68 15.86C13.77 16 13.82 16.05 13.7 16.13L13.66 16.15C13.44 16.3 12.5 16.96 12.12 17.2C11.71 17.47 10.14 18.37 10.38 16.62C10.59 15.39 10.87 14.33 11.09 13.5C11.5 12 11.68 11.32 10.76 11.91C10.39 12.13 10.17 12.27 10.04 12.36C9.93 12.44 9.92 12.44 9.85 12.31L9.82 12.25L9.77 12.17C9.7 12.07 9.7 12.06 9.8 11.97Z",NT="M12,18.54L19.37,12.8L21,14.07L12,21.07L3,14.07L4.62,12.81L12,18.54M12,16L3,9L12,2L21,9L12,16M12,4.53L6.26,9L12,13.47L17.74,9L12,4.53Z",qd="M17,14H19V17H22V19H19V22H17V19H14V17H17V14M11,16L2,9L11,2L20,9L11,16M11,18.54L12,17.75V18C12,18.71 12.12,19.39 12.35,20L11,21.07L2,14.07L3.62,12.81L11,18.54Z",Vy="M20,11H23V13H20V11M1,11H4V13H1V11M13,1V4H11V1H13M4.92,3.5L7.05,5.64L5.63,7.05L3.5,4.93L4.92,3.5M16.95,5.63L19.07,3.5L20.5,4.93L18.37,7.05L16.95,5.63M12,6A6,6 0 0,1 18,12C18,14.22 16.79,16.16 15,17.2V19A1,1 0 0,1 14,20H10A1,1 0 0,1 9,19V17.2C7.21,16.16 6,14.22 6,12A6,6 0 0,1 12,6M14,21V22A1,1 0 0,1 13,23H11A1,1 0 0,1 10,22V21H14M11,18H13V15.87C14.73,15.43 16,13.86 16,12A4,4 0 0,0 12,8A4,4 0 0,0 8,12C8,13.86 9.27,15.43 11,15.87V18Z",Sp="M12,2A7,7 0 0,1 19,9C19,11.38 17.81,13.47 16,14.74V17A1,1 0 0,1 15,18H9A1,1 0 0,1 8,17V14.74C6.19,13.47 5,11.38 5,9A7,7 0 0,1 12,2M9,21V20H15V21A1,1 0 0,1 14,22H10A1,1 0 0,1 9,21M12,4A5,5 0 0,0 7,9C7,11.05 8.23,12.81 10,13.58V16H14V13.58C15.77,12.81 17,11.05 17,9A5,5 0 0,0 12,4Z",VT="M11 9.47V11H14.76L13 14.53V13H9.24L11 9.47M13 1L6 15H11V23L18 9H13V1Z",Uy="M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z",UT="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",By="M10 13C11.1 13 12 13.89 12 15C12 16.11 11.11 17 10 17S8 16.11 8 15 8.9 13 10 13M18 1C15.24 1 13 3.24 13 6V8H4C2.9 8 2 8.9 2 10V20C2 21.1 2.9 22 4 22H16C17.1 22 18 21.1 18 20V10C18 8.9 17.1 8 16 8H15V6C15 4.34 16.34 3 18 3S21 4.34 21 6V8H23V6C23 3.24 20.76 1 18 1M16 10V20H4V10H16Z",Gc="M12,17C10.89,17 10,16.1 10,15C10,13.89 10.89,13 12,13A2,2 0 0,1 14,15A2,2 0 0,1 12,17M18,20V10H6V20H18M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10C4,8.89 4.89,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",zc="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",Wy="M17,17H7V7H17M21,11V9H19V7C19,5.89 18.1,5 17,5H15V3H13V5H11V3H9V5H7C5.89,5 5,5.89 5,7V9H3V11H5V13H3V15H5V17A2,2 0 0,0 7,19H9V21H11V19H13V21H15V19H17A2,2 0 0,0 19,17V15H21V13H19V11M13,13H11V11H13M15,9H9V15H15V9Z",BT="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",fr="M7,10L12,15L17,10H7Z",WT="M20 2H4C2.9 2 2 2.9 2 4V22L6 18H20C21.1 18 22 17.1 22 16V4C22 2.9 21.1 2 20 2M20 16H5.2L4 17.2V4H20V16Z",GT="M20 2H4C2.9 2 2 2.9 2 4V22L6 18H20C21.1 18 22 17.1 22 16V4C22 2.9 21.1 2 20 2M20 16H5.2L4 17.2V4H20V16M17 11H15V9H17M13 11H11V9H13M9 11H7V9H9",zT="M21 11C21 6.03 16.97 2 12 2S3 6.03 3 11C3 14.92 5.5 18.24 9 19.5V22H11V19.94C11.33 20 11.66 20 12 20S12.67 20 13 19.94V22H15V19.5C18.5 18.24 21 14.92 21 11M12 18C8.14 18 5 14.86 5 11S8.14 4 12 4 19 7.14 19 11 15.86 18 12 18M8 7H16V9H8V7M12.75 10L9.75 13L11 14.25L9.75 15.5L11.25 17L14.25 14L13 12.75L14.25 11.5L12.75 10Z",Gy="M19,13H5V11H19V13Z",ZT="M20 14H4V10H20",Pp="M21,16V4H3V16H21M21,2A2,2 0 0,1 23,4V16A2,2 0 0,1 21,18H14V20H16V22H8V20H10V18H3C1.89,18 1,17.1 1,16V4C1,2.89 1.89,2 3,2H21M5,6H14V11H5V6M15,6H19V8H15V6M19,9V14H15V9H19M5,12H9V14H5V12M10,12H14V14H10V12Z",qT="M9,6H5V10H7V8H9M19,10H17V12H15V14H19M21,16H3V4H21M21,2H3C1.89,2 1,2.89 1,4V16A2,2 0 0,0 3,18H10V20H8V22H16V20H14V18H21A2,2 0 0,0 23,16V4C23,2.89 22.1,2 21,2",XT="M2 12A10 10 0 0 0 15 21.54A10 10 0 0 1 15 2.46A10 10 0 0 0 2 12Z",zy="M18.13 12L19.39 10.74C19.83 10.3 20.39 10.06 21 10V9L15 3H5C3.89 3 3 3.89 3 5V19C3 20.1 3.89 21 5 21H11V19.13L11.13 19H5V5H12V12H18.13M14 4.5L19.5 10H14V4.5M19.13 13.83L21.17 15.87L15.04 22H13V19.96L19.13 13.83M22.85 14.19L21.87 15.17L19.83 13.13L20.81 12.15C21 11.95 21.33 11.95 21.53 12.15L22.85 13.47C23.05 13.67 23.05 14 22.85 14.19Z",Zy="M5 19V5H12V12H19V13C19.7 13 20.37 13.13 21 13.35V9L15 3H5C3.89 3 3 3.89 3 5V19C3 20.1 3.89 21 5 21H13.35C13.13 20.37 13 19.7 13 19H5M14 4.5L19.5 10H14V4.5M23 18V20H20V23H18V20H15V18H18V15H20V18H23Z",YT="M15 3H5A2 2 0 0 0 3 5V19A2 2 0 0 0 5 21H19A2 2 0 0 0 21 19V9L15 3M19 19H5V5H14V10H19M17 14H7V12H17M14 17H7V15H14",Zc="M3,7V5H5V4C5,2.89 5.9,2 7,2H13V9L15.5,7.5L18,9V2H19C20.05,2 21,2.95 21,4V20C21,21.05 20.05,22 19,22H7C5.95,22 5,21.05 5,20V19H3V17H5V13H3V11H5V7H3M7,11H5V13H7V11M7,7V5H5V7H7M7,19V17H5V19H7Z",JT="M16.75 22.16L14 19.16L15.16 18L16.75 19.59L20.34 16L21.5 17.41L16.75 22.16M3 7V5H5V4C5 2.89 5.9 2 7 2H13V9L15.5 7.5L18 9V2H19C20.05 2 21 2.95 21 4V13.8C20.12 13.29 19.09 13 18 13C14.69 13 12 15.69 12 19C12 20.09 12.29 21.12 12.8 22H7C5.95 22 5 21.05 5 20V19H3V17H5V13H3V11H5V7H3M5 5V7H7V5H5M5 19H7V17H5V19M5 13H7V11H5V13Z",qy="M3 7V5H5V4C5 2.9 5.9 2 7 2H13V9L15.5 7.5L18 9V2H19C20 2 21 3 21 4V13.8C20.1 13.3 19.1 13 18 13C14.7 13 12 15.7 12 19C12 20.1 12.3 21.1 12.8 22H7C5.9 22 5 21 5 20V19H3V17H5V13H3V11H5V7H3M5 5V7H7V5H5M5 19H7V17H5V19M5 13H7V11H5V13M17 15V18H14V20H17V23H19V20H22V18H19V15H17Z",Xy="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",KT="M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L10.11,5.22L16,8.61L17.96,7.5L12,4.15M6.04,7.5L12,10.85L13.96,9.75L8.08,6.35L6.04,7.5M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V9.21L13,12.58V19.29L19,15.91Z",qc="M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z",Dp="M14,19H18V5H14M6,19H10V5H6V19Z",bt="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",en="M8,5.14V19.14L19,12.14L8,5.14Z",Xc="M3 16H10V14H3M18 14V10H16V14H12V16H16V20H18V16H22V14M14 6H3V8H14M14 10H3V12H14V10Z",QT="M14 10H3V12H14V10M14 6H3V8H14V6M3 16H10V14H3V16M14.4 22L17 19.4L19.6 22L21 20.6L18.4 18L21 15.4L19.6 14L17 16.6L14.4 14L13 15.4L15.6 18L13 20.6L14.4 22Z",Tp="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",e3="M20 14H14V20H10V14H4V10H10V4H14V10H20V14Z",Yy="M16.56,5.44L15.11,6.89C16.84,7.94 18,9.83 18,12A6,6 0 0,1 12,18A6,6 0 0,1 6,12C6,9.83 7.16,7.94 8.88,6.88L7.44,5.44C5.36,6.88 4,9.28 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12C20,9.28 18.64,6.88 16.56,5.44M13,3H11V13H13",t3="M13,3H11V13H13V3M17.83,5.17L16.41,6.59C18.05,7.91 19,9.9 19,12A7,7 0 0,1 12,19C8.14,19 5,15.88 5,12C5,9.91 5.95,7.91 7.58,6.58L6.17,5.17C2.38,8.39 1.92,14.07 5.14,17.86C8.36,21.64 14.04,22.1 17.83,18.88C19.85,17.17 21,14.65 21,12C21,9.37 19.84,6.87 17.83,5.17Z",Jy="M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z",Ha="M19,6A1,1 0 0,0 20,5A1,1 0 0,0 19,4A1,1 0 0,0 18,5A1,1 0 0,0 19,6M19,2A3,3 0 0,1 22,5V11H18V7H6V11H2V5A3,3 0 0,1 5,2H19M18,18.25C18,18.63 17.79,18.96 17.47,19.13L12.57,21.82C12.4,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L6.53,19.13C6.21,18.96 6,18.63 6,18.25V13C6,12.62 6.21,12.29 6.53,12.12L11.43,9.68C11.59,9.56 11.79,9.5 12,9.5C12.21,9.5 12.4,9.56 12.57,9.68L17.47,12.12C17.79,12.29 18,12.62 18,13V18.25M12,11.65L9.04,13L12,14.6L14.96,13L12,11.65M8,17.66L11,19.29V16.33L8,14.71V17.66M16,17.66V14.71L13,16.33V19.29L16,17.66Z",Ws="M7,2H17V8H19V13H16.5L13,17H11L7.5,13H5V8H7V2M10,22H2V20H10A1,1 0 0,0 11,19V18H13V19A3,3 0 0,1 10,22Z",Ky="M7 2H17V8H19V13H16.5L13 17H11L7.5 13H5V8H7V2M10 22H2V20H10C10.6 20 11 19.5 11 19V18H13V19C13 20.7 11.7 22 10 22M21 13V7H23V13H21M21 17V15H23V17H21Z",s3="M7,2H17V7H19V13H16.5L13,17H11L7.5,13H5V7H7V2M10,22H2V20H10A1,1 0 0,0 11,19V18H13V19A3,3 0 0,1 10,22M7,9V11H8.5L12,15L15.5,11H17V9H15V4H9V9H7Z",r3="M13,2.03V2.05L13,4.05C17.39,4.59 20.5,8.58 19.96,12.97C19.5,16.61 16.64,19.5 13,19.93V21.93C18.5,21.38 22.5,16.5 21.95,11C21.5,6.25 17.73,2.5 13,2.03M11,2.06C9.05,2.25 7.19,3 5.67,4.26L7.1,5.74C8.22,4.84 9.57,4.26 11,4.06V2.06M4.26,5.67C3,7.19 2.25,9.04 2.05,11H4.05C4.24,9.58 4.8,8.23 5.69,7.1L4.26,5.67M2.06,13C2.26,14.96 3.03,16.81 4.27,18.33L5.69,16.9C4.81,15.77 4.24,14.42 4.06,13H2.06M7.1,18.37L5.67,19.74C7.18,21 9.04,21.79 11,22V20C9.58,19.82 8.23,19.25 7.1,18.37M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z",Qy="M13 18H11V16H13V18M13 15H11C11 11.75 14 12 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 12.5 13 12.75 13 15M22 12C22 17.18 18.05 21.45 13 21.95V19.94C16.95 19.45 20 16.08 20 12C20 7.92 16.95 4.55 13 4.06V2.05C18.05 2.55 22 6.82 22 12M11 2.05V4.06C9.54 4.24 8.2 4.82 7.09 5.68L5.67 4.26C7.15 3.05 9 2.25 11 2.05M4.06 11H2.05C2.25 9 3.05 7.15 4.26 5.67L5.68 7.1C4.82 8.2 4.24 9.54 4.06 11M11 19.94V21.95C9 21.75 7.15 20.96 5.67 19.74L7.09 18.32C8.2 19.18 9.54 19.76 11 19.94M2.05 13H4.06C4.24 14.46 4.82 15.8 5.68 16.91L4.26 18.33C3.05 16.85 2.25 15 2.05 13Z",Zo="M13,2.03C17.73,2.5 21.5,6.25 21.95,11C22.5,16.5 18.5,21.38 13,21.93V19.93C16.64,19.5 19.5,16.61 19.96,12.97C20.5,8.58 17.39,4.59 13,4.05V2.05L13,2.03M11,2.06V4.06C9.57,4.26 8.22,4.84 7.1,5.74L5.67,4.26C7.19,3 9.05,2.25 11,2.06M4.26,5.67L5.69,7.1C4.8,8.23 4.24,9.58 4.05,11H2.05C2.25,9.04 3,7.19 4.26,5.67M2.06,13H4.06C4.24,14.42 4.81,15.77 5.69,16.9L4.27,18.33C3.03,16.81 2.26,14.96 2.06,13M7.1,18.37C8.23,19.25 9.58,19.82 11,20V22C9.04,21.79 7.18,21 5.67,19.74L7.1,18.37M12,7.5L7.5,12H11V16H13V12H16.5L12,7.5Z",i3="M7.95,3L6.53,5.19L7.95,7.4H7.94L5.95,10.5L4.22,9.6L5.64,7.39L4.22,5.19L6.22,2.09L7.95,3M13.95,2.89L12.53,5.1L13.95,7.3L13.94,7.31L11.95,10.4L10.22,9.5L11.64,7.3L10.22,5.1L12.22,2L13.95,2.89M20,2.89L18.56,5.1L20,7.3V7.31L18,10.4L16.25,9.5L17.67,7.3L16.25,5.1L18.25,2L20,2.89M2,22V14A2,2 0 0,1 4,12H20A2,2 0 0,1 22,14V22H20V20H4V22H2M6,14A1,1 0 0,0 5,15V17A1,1 0 0,0 6,18A1,1 0 0,0 7,17V15A1,1 0 0,0 6,14M10,14A1,1 0 0,0 9,15V17A1,1 0 0,0 10,18A1,1 0 0,0 11,17V15A1,1 0 0,0 10,14M14,14A1,1 0 0,0 13,15V17A1,1 0 0,0 14,18A1,1 0 0,0 15,17V15A1,1 0 0,0 14,14M18,14A1,1 0 0,0 17,15V17A1,1 0 0,0 18,18A1,1 0 0,0 19,17V15A1,1 0 0,0 18,14Z",e2="M20,12H4A2,2 0 0,0 2,14V22H4V20H20V22H22V14A2,2 0 0,0 20,12M7,17A1,1 0 0,1 6,18A1,1 0 0,1 5,17V15A1,1 0 0,1 6,14A1,1 0 0,1 7,15V17M11,17A1,1 0 0,1 10,18A1,1 0 0,1 9,17V15A1,1 0 0,1 10,14A1,1 0 0,1 11,15V17M15,17A1,1 0 0,1 14,18A1,1 0 0,1 13,17V15A1,1 0 0,1 14,14A1,1 0 0,1 15,15V17M19,17A1,1 0 0,1 18,18A1,1 0 0,1 17,17V15A1,1 0 0,1 18,14A1,1 0 0,1 19,15V17Z",n3="M20,8H22V10H20V8M4,5H20A2,2 0 0,1 22,7H19V9H5V13H8V16H19V17H22A2,2 0 0,1 20,19H16V20H14V19H11V20H7V19H4A2,2 0 0,1 2,17V7A2,2 0 0,1 4,5M19,15H9V10H19V11H22V13H19V15M13,12V14H15V12H13M5,6V8H6V6H5M7,6V8H8V6H7M9,6V8H10V6H9M11,6V8H12V6H11M13,6V8H14V6H13M15,6V8H16V6H15M20,14H22V16H20V14Z",tn="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",a3="M2 12C2 16.97 6.03 21 11 21C13.39 21 15.68 20.06 17.4 18.4L15.9 16.9C14.63 18.25 12.86 19 11 19C4.76 19 1.64 11.46 6.05 7.05C10.46 2.64 18 5.77 18 12H15L19 16H19.1L23 12H20C20 7.03 15.97 3 11 3C6.03 3 2 7.03 2 12Z",_ce="M2 12C2 17 6 21 11 21C13.4 21 15.7 20.1 17.4 18.4L15.9 16.9C14.6 18.3 12.9 19 11 19C4.8 19 1.6 11.5 6.1 7.1S18 5.8 18 12H15L19 16H19.1L23 12H20C20 7 16 3 11 3S2 7 2 12M10 15H12V17H10V15M10 7H12V13H10V7",Yc="M18,17H10.5L12.5,15H18M6,17V14.5L13.88,6.65C14.07,6.45 14.39,6.45 14.59,6.65L16.35,8.41C16.55,8.61 16.55,8.92 16.35,9.12L8.47,17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z",Zr="M12,4C14.1,4 16.1,4.8 17.6,6.3C20.7,9.4 20.7,14.5 17.6,17.6C15.8,19.5 13.3,20.2 10.9,19.9L11.4,17.9C13.1,18.1 14.9,17.5 16.2,16.2C18.5,13.9 18.5,10.1 16.2,7.7C15.1,6.6 13.5,6 12,6V10.6L7,5.6L12,0.6V4M6.3,17.6C3.7,15 3.3,11 5.1,7.9L6.6,9.4C5.5,11.6 5.9,14.4 7.8,16.2C8.3,16.7 8.9,17.1 9.6,17.4L9,19.4C8,19 7.1,18.4 6.3,17.6Z",o3="M13,3A9,9 0 0,0 4,12H1L4.89,15.89L4.96,16.03L9,12H6A7,7 0 0,1 13,5A7,7 0 0,1 20,12A7,7 0 0,1 13,19C11.07,19 9.32,18.21 8.06,16.94L6.64,18.36C8.27,20 10.5,21 13,21A9,9 0 0,0 22,12A9,9 0 0,0 13,3Z",l3="M13.13 22.19L11.5 18.36C13.07 17.78 14.54 17 15.9 16.09L13.13 22.19M5.64 12.5L1.81 10.87L7.91 8.1C7 9.46 6.22 10.93 5.64 12.5M21.61 2.39C21.61 2.39 16.66 .269 11 5.93C8.81 8.12 7.5 10.53 6.65 12.64C6.37 13.39 6.56 14.21 7.11 14.77L9.24 16.89C9.79 17.45 10.61 17.63 11.36 17.35C13.5 16.53 15.88 15.19 18.07 13C23.73 7.34 21.61 2.39 21.61 2.39M14.54 9.46C13.76 8.68 13.76 7.41 14.54 6.63S16.59 5.85 17.37 6.63C18.14 7.41 18.15 8.68 17.37 9.46C16.59 10.24 15.32 10.24 14.54 9.46M8.88 16.53L7.47 15.12L8.88 16.53M6.24 22L9.88 18.36C9.54 18.27 9.21 18.12 8.91 17.91L4.83 22H6.24M2 22H3.41L8.18 17.24L6.76 15.83L2 20.59V22M2 19.17L6.09 15.09C5.88 14.79 5.73 14.47 5.64 14.12L2 17.76V19.17Z",c3="M13,4.07V1L8.45,5.55L13,10V6.09C15.84,6.57 18,9.03 18,12C18,14.97 15.84,17.43 13,17.91V19.93C16.95,19.44 20,16.08 20,12C20,7.92 16.95,4.56 13,4.07M7.1,18.32C8.26,19.22 9.61,19.76 11,19.93V17.9C10.13,17.75 9.29,17.41 8.54,16.87L7.1,18.32M6.09,13H4.07C4.24,14.39 4.79,15.73 5.69,16.89L7.1,15.47C6.58,14.72 6.23,13.88 6.09,13M7.11,8.53L5.7,7.11C4.8,8.27 4.24,9.61 4.07,11H6.09C6.23,10.13 6.58,9.28 7.11,8.53Z",u3="M16.89,15.5L18.31,16.89C19.21,15.73 19.76,14.39 19.93,13H17.91C17.77,13.87 17.43,14.72 16.89,15.5M13,17.9V19.92C14.39,19.75 15.74,19.21 16.9,18.31L15.46,16.87C14.71,17.41 13.87,17.76 13,17.9M19.93,11C19.76,9.61 19.21,8.27 18.31,7.11L16.89,8.53C17.43,9.28 17.77,10.13 17.91,11M15.55,5.55L11,1V4.07C7.06,4.56 4,7.92 4,12C4,16.08 7.05,19.44 11,19.93V17.91C8.16,17.43 6,14.97 6,12C6,9.03 8.16,6.57 11,6.09V10L15.55,5.55Z",qo="M20 20V17H22V20C22 21.11 21.1 22 20 22H17V20H20M2 20V17H4V20H7V22H4C2.9 22 2 21.1 2 20M10 20H14V22H10V20M14.59 8L12 10.59L9.41 8L8 9.41L10.59 12L8 14.59L9.41 16L12 13.41L14.59 16L16 14.59L13.41 12L16 9.41L14.59 8M20 10H22V14H20V10M2 10H4V14H2V10M2 4C2 2.89 2.9 2 4 2H7V4H4V7H2V4M22 4V7H20V4H17V2H20C21.1 2 22 2.9 22 4M10 2H14V4H10V2Z",t2="M2,21L23,12L2,3V10L17,12L2,14V21Z",d3="M23,12H17V10L20.39,6H17V4H23V6L19.62,10H23V12M15,16H9V14L12.39,10H9V8H15V10L11.62,14H15V16M7,20H1V18L4.39,14H1V12H7V14L3.62,18H7V20Z",Mp="M20.79,13.95L18.46,14.57L16.46,13.44V10.56L18.46,9.43L20.79,10.05L21.31,8.12L19.54,7.65L20,5.88L18.07,5.36L17.45,7.69L15.45,8.82L13,7.38V5.12L14.71,3.41L13.29,2L12,3.29L10.71,2L9.29,3.41L11,5.12V7.38L8.5,8.82L6.5,7.69L5.92,5.36L4,5.88L4.47,7.65L2.7,8.12L3.22,10.05L5.55,9.43L7.55,10.56V13.45L5.55,14.58L3.22,13.96L2.7,15.89L4.47,16.36L4,18.12L5.93,18.64L6.55,16.31L8.55,15.18L11,16.62V18.88L9.29,20.59L10.71,22L12,20.71L13.29,22L14.7,20.59L13,18.88V16.62L15.5,15.17L17.5,16.3L18.12,18.63L20,18.12L19.53,16.35L21.3,15.88L20.79,13.95M9.5,10.56L12,9.11L14.5,10.56V13.44L12,14.89L9.5,13.44V10.56Z",m3="M12,16A3,3 0 0,1 9,13C9,11.88 9.61,10.9 10.5,10.39L20.21,4.77L14.68,14.35C14.18,15.33 13.17,16 12,16M12,3C13.81,3 15.5,3.5 16.97,4.32L14.87,5.53C14,5.19 13,5 12,5A8,8 0 0,0 4,13C4,15.21 4.89,17.21 6.34,18.65H6.35C6.74,19.04 6.74,19.67 6.35,20.06C5.96,20.45 5.32,20.45 4.93,20.07V20.07C3.12,18.26 2,15.76 2,13A10,10 0 0,1 12,3M22,13C22,15.76 20.88,18.26 19.07,20.07V20.07C18.68,20.45 18.05,20.45 17.66,20.06C17.27,19.67 17.27,19.04 17.66,18.65V18.65C19.11,17.2 20,15.21 20,13C20,12 19.81,11 19.46,10.1L20.67,8C21.5,9.5 22,11.18 22,13Z",bce="M17.36,20.2V14.82H19.15V22H3V14.82H4.8V20.2H17.36M6.77,14.32L7.14,12.56L15.93,14.41L15.56,16.17L6.77,14.32M7.93,10.11L8.69,8.5L16.83,12.28L16.07,13.9L7.93,10.11M10.19,6.12L11.34,4.74L18.24,10.5L17.09,11.87L10.19,6.12M14.64,1.87L20,9.08L18.56,10.15L13.2,2.94L14.64,1.87M6.59,18.41V16.61H15.57V18.41H6.59Z",s2="M18,18H6V6H18V18Z",h3="M9,3L5,7H8V14H10V7H13M16,17V10H14V17H11L15,21L19,17H16Z",r2="M12,18A6,6 0 0,1 6,12C6,11 6.25,10.03 6.7,9.2L5.24,7.74C4.46,8.97 4,10.43 4,12A8,8 0 0,0 12,20V23L16,19L12,15M12,4V1L8,5L12,9V6A6,6 0 0,1 18,12C18,13 17.75,13.97 17.3,14.8L18.76,16.26C19.54,15.03 20,13.57 20,12A8,8 0 0,0 12,4Z",p3="M19,18H5V6H19M21,4H3C1.89,4 1,4.89 1,6V18A2,2 0 0,0 3,20H21A2,2 0 0,0 23,18V6C23,4.89 22.1,4 21,4Z",i2="M15.5,12C18,12 20,14 20,16.5C20,17.38 19.75,18.21 19.31,18.9L22.39,22L21,23.39L17.88,20.32C17.19,20.75 16.37,21 15.5,21C13,21 11,19 11,16.5C11,14 13,12 15.5,12M15.5,14A2.5,2.5 0 0,0 13,16.5A2.5,2.5 0 0,0 15.5,19A2.5,2.5 0 0,0 18,16.5A2.5,2.5 0 0,0 15.5,14M7,15V17H9C9.14,18.55 9.8,19.94 10.81,21H5C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H19A2,2 0 0,1 21,5V13.03C19.85,11.21 17.82,10 15.5,10C14.23,10 13.04,10.37 12.04,11H7V13H10C9.64,13.6 9.34,14.28 9.17,15H7M17,9V7H7V9H17Z",n2="M15.5,12C18,12 20,14 20,16.5C20,17.38 19.75,18.21 19.31,18.9L22.39,22L21,23.39L17.88,20.32C17.19,20.75 16.37,21 15.5,21C13,21 11,19 11,16.5C11,14 13,12 15.5,12M15.5,14A2.5,2.5 0 0,0 13,16.5A2.5,2.5 0 0,0 15.5,19A2.5,2.5 0 0,0 18,16.5A2.5,2.5 0 0,0 15.5,14M5,3H19C20.11,3 21,3.89 21,5V13.03C20.5,12.23 19.81,11.54 19,11V5H5V19H9.5C9.81,19.75 10.26,20.42 10.81,21H5C3.89,21 3,20.11 3,19V5C3,3.89 3.89,3 5,3M7,7H17V9H7V7M7,11H12.03C11.23,11.5 10.54,12.19 10,13H7V11M7,15H9.17C9.06,15.5 9,16 9,16.5V17H7V15Z",a2="M15 13V5A3 3 0 0 0 9 5V13A5 5 0 1 0 15 13M12 4A1 1 0 0 1 13 5V8H11V5A1 1 0 0 1 12 4Z",o2="M17 3H21V5H17V3M17 7H21V9H17V7M17 11H21V13H17.75L17 12.1V11M21 15V17H19C19 16.31 18.9 15.63 18.71 15H21M7 3V5H3V3H7M7 7V9H3V7H7M7 11V12.1L6.25 13H3V11H7M3 15H5.29C5.1 15.63 5 16.31 5 17H3V15M15 13V5C15 3.34 13.66 2 12 2S9 3.34 9 5V13C6.79 14.66 6.34 17.79 8 20S12.79 22.66 15 21 17.66 16.21 16 14C15.72 13.62 15.38 13.28 15 13M12 4C12.55 4 13 4.45 13 5V8H11V5C11 4.45 11.45 4 12 4Z",l2="M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M16.24,7.76C15.07,6.58 13.53,6 12,6V12L7.76,16.24C10.1,18.58 13.9,18.58 16.24,16.24C18.59,13.9 18.59,10.1 16.24,7.76Z",f3="M12,20A7,7 0 0,1 5,13A7,7 0 0,1 12,6A7,7 0 0,1 19,13A7,7 0 0,1 12,20M19.03,7.39L20.45,5.97C20,5.46 19.55,5 19.04,4.56L17.62,6C16.07,4.74 14.12,4 12,4A9,9 0 0,0 3,13A9,9 0 0,0 12,22C17,22 21,17.97 21,13C21,10.88 20.26,8.93 19.03,7.39M11,14H13V8H11M15,1H9V3H15V1Z",Ep="M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M17,15A3,3 0 0,1 14,12A3,3 0 0,1 17,9A3,3 0 0,1 20,12A3,3 0 0,1 17,15Z",g3="M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M7,15A3,3 0 0,1 4,12A3,3 0 0,1 7,9A3,3 0 0,1 10,12A3,3 0 0,1 7,15Z",c2="M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zM7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z",u2="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M9,8H11V17H9V8M13,8H15V17H13V8Z",v3="M2 12H4V17H20V12H22V17C22 18.11 21.11 19 20 19H4C2.9 19 2 18.11 2 17V12M12 15L17.55 9.54L16.13 8.13L13 11.25V2H11V11.25L7.88 8.13L6.46 9.55L12 15Z",_3="M18 5H6V7H18M6 9H18V11H6M2 12H4V17H20V12H22V17A2 2 0 0 1 20 19H4A2 2 0 0 1 2 17M18 13H6V15H18Z",b3="M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z",Ia="M21,10.12H14.22L16.96,7.3C14.23,4.6 9.81,4.5 7.08,7.2C4.35,9.91 4.35,14.28 7.08,17C9.81,19.7 14.23,19.7 16.96,17C18.32,15.65 19,14.08 19,12.1H21C21,14.08 20.12,16.65 18.36,18.39C14.85,21.87 9.15,21.87 5.64,18.39C2.14,14.92 2.11,9.28 5.62,5.81C9.13,2.34 14.76,2.34 18.27,5.81L21,3V10.12M12.5,8V12.25L16,14.33L15.28,15.54L11,13V8H12.5Z",y3="M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z",d2="M15,7V11H16V13H13V5H15L12,1L9,5H11V13H8V10.93C8.7,10.56 9.2,9.85 9.2,9C9.2,7.78 8.21,6.8 7,6.8C5.78,6.8 4.8,7.78 4.8,9C4.8,9.85 5.3,10.56 6,10.93V13A2,2 0 0,0 8,15H11V18.05C10.29,18.41 9.8,19.15 9.8,20A2.2,2.2 0 0,0 12,22.2A2.2,2.2 0 0,0 14.2,20C14.2,19.15 13.71,18.41 13,18.05V15H16A2,2 0 0,0 18,13V11H19V7H15Z",Jc="M5,7H9A2,2 0 0,1 11,9V15A2,2 0 0,1 9,17H5V15H9V13H6V11H9V9H5V7M13,7H16A3,3 0 0,1 19,10V14A3,3 0 0,1 16,17H13V7M16,15A1,1 0 0,0 17,14V10A1,1 0 0,0 16,9H15V15H16Z",C3="M19,5V7H15V5H19M9,5V11H5V5H9M19,13V19H15V13H19M9,17V19H5V17H9M21,3H13V9H21V3M11,3H3V13H11V3M21,11H13V21H21V11M11,15H3V21H11V15Z",$g="M3,11H11V3H3M3,21H11V13H3M13,21H21V13H13M13,3V11H21V3",sn="M12,2A7,7 0 0,1 19,9A7,7 0 0,1 12,16A7,7 0 0,1 5,9A7,7 0 0,1 12,2M12,4A5,5 0 0,0 7,9A5,5 0 0,0 12,14A5,5 0 0,0 17,9A5,5 0 0,0 12,4M12,6A3,3 0 0,1 15,9A3,3 0 0,1 12,12A3,3 0 0,1 9,9A3,3 0 0,1 12,6M6,22A2,2 0 0,1 4,20C4,19.62 4.1,19.27 4.29,18.97L6.11,15.81C7.69,17.17 9.75,18 12,18C14.25,18 16.31,17.17 17.89,15.81L19.71,18.97C19.9,19.27 20,19.62 20,20A2,2 0 0,1 18,22H6Z",$3="M12 6C13.66 6 15 7.34 15 9C15 9.78 14.7 10.5 14.21 11L10 6.79C10.5 6.3 11.22 6 12 6M12 4C14.76 4 17 6.24 17 9C17 10.33 16.47 11.53 15.62 12.42L17.04 13.84C18.25 12.59 19 10.88 19 9C19 5.13 15.87 2 12 2C10.12 2 8.41 2.75 7.16 3.96L8.58 5.38C9.47 4.53 10.67 4 12 4M22.11 21.46L20.84 22.73L19.46 21.35C19.1 21.75 18.58 22 18 22H6C4.89 22 4 21.11 4 20C4 19.62 4.1 19.27 4.29 18.97L6.11 15.81C7.69 17.17 9.75 18 12 18C13.21 18 14.37 17.75 15.43 17.32L13.85 15.74C13.26 15.91 12.64 16 12 16C8.13 16 5 12.87 5 9C5 8.36 5.09 7.74 5.26 7.15L1.11 3L2.39 1.73L22.11 21.46M12.1 14L7 8.9C7 8.93 7 8.97 7 9C7 11.76 9.24 14 12 14C12.03 14 12.07 14 12.1 14Z",x3="M22.7,19L13.6,9.9C14.5,7.6 14,4.9 12.1,3C10.1,1 7.1,0.6 4.7,1.7L9,6L6,9L1.6,4.7C0.4,7.1 0.9,10.1 2.9,12.1C4.8,14 7.5,14.5 9.8,13.6L18.9,22.7C19.3,23.1 19.9,23.1 20.3,22.7L22.6,20.4C23.1,20 23.1,19.3 22.7,19Z",w3=Object.defineProperty,S3=Object.getOwnPropertyDescriptor,Ds=(e,s,t,r)=>{for(var i=r>1?void 0:r?S3(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&w3(s,t,i),i};let Xt=class extends M(O){constructor(){super(...arguments),this.mdiChevronDown=hr,this.panelToolbarHeight=Zd}get expand(){return this.$store.getters["gui/getPanelExpand"](this.cardClass,this.viewport)}set expand(s){this.$store.dispatch("gui/saveExpandPanel",{name:this.cardClass,value:s,viewport:this.viewport})}get hasIconSlot(){return!!this.$slots.icon}get hasButtonsSlot(){return!!this.$slots.buttons}get getToolbarClass(){let s=this.toolbarClass;return this.collapsible&&(s+=" collapsible"),s}get additionalStyle(){return this.$vuetify.theme.dark?"":"border-bottom: 1px solid #A8A8A8"}};Ds([P({default:null})],Xt.prototype,"icon",2);Ds([P({required:!0,default:""})],Xt.prototype,"title",2);Ds([P({default:!1})],Xt.prototype,"collapsible",2);Ds([P({required:!0})],Xt.prototype,"cardClass",2);Ds([P({default:""})],Xt.prototype,"toolbarColor",2);Ds([P({default:""})],Xt.prototype,"toolbarClass",2);Ds([P({default:!1})],Xt.prototype,"loading",2);Ds([P({default:!0})],Xt.prototype,"marginBottom",2);Ds([P({default:!1})],Xt.prototype,"hideButtonsOnCollapse",2);Xt=Ds([D],Xt);var P3=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(xe,{class:"panel "+e.cardClass+" "+(e.marginBottom?"mb-3 mb-md-6":"")+" "+(e.expand?"":"expanded"),attrs:{loading:e.loading}},[t(La,{staticClass:"panel-toolbar",class:e.getToolbarClass,style:e.additionalStyle,attrs:{flat:"",dense:"",color:e.toolbarColor,height:e.panelToolbarHeight}},[e._t("buttons-left"),t(Yi,{staticClass:"d-flex align-center"},[e.hasIconSlot?e._t("icon"):e._e(),e.icon!==null&&!e.hasIconSlot?t(v,{attrs:{left:""}},[e._v(e._s(e.icon))]):e._e(),e.title?t("span",{staticClass:"subheading"},[e._v(e._s(e.title))]):e._e()],2),e._t("buttons-title"),t(ae),t(vP,{directives:[{name:"show",rawName:"v-show",value:e.hasButtonsSlot||e.collapsible,expression:"hasButtonsSlot || collapsible"}]},[e.expand||!e.hideButtonsOnCollapse?t("div",{staticClass:"d-flex align-center"},[e._t("buttons")],2):e._e(),e.collapsible?t(g,{staticClass:"btn-collapsible",attrs:{icon:"",ripple:!0},on:{click:function(r){e.expand=!e.expand}}},[t(v,{class:e.expand?"":"icon-rotate-90"},[e._v(e._s(e.mdiChevronDown))])],1):e._e()],1)],2),t(Ac,[t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand||!e.collapsible,expression:"expand || !collapsible"}]},[e._t("default")],2)])],1)},D3=[];function E(e,s,t,r,i,n,a,o){var l=typeof e=="function"?e.options:e;s&&(l.render=s,l.staticRenderFns=t,l._compiled=!0),r&&(l.functional=!0),n&&(l._scopeId="data-v-"+n);var c;if(a?(c=function(m){m=m||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!m&&typeof __VUE_SSR_CONTEXT__<"u"&&(m=__VUE_SSR_CONTEXT__),i&&i.call(this,m),m&&m._registeredComponents&&m._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=o?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(h,p){return c.call(p),u(h,p)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}const xg={};var T3=E(Xt,P3,D3,!1,M3,"3cfcc6d8",null,null);function M3(e){for(let s in xg)this[s]=xg[s]}const B=function(){return T3.exports}();var E3=Object.defineProperty,O3=Object.getOwnPropertyDescriptor,L3=(e,s,t,r)=>{for(var i=r>1?void 0:r?O3(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&E3(s,t,i),i};let Xd=class extends M(O){constructor(){super(...arguments),this.addPrinterValid=!1,this.dialogAddPrinter={bool:!1,hostname:"",port:7125,path:"/",name:""},this.editPrinterValid=!1,this.dialogEditPrinter={bool:!1,id:"",hostname:"",port:0,path:"/",name:""},this.showOptionalSettings=!1,this.mdiConnection=fp,this.mdiCloseThick=pe,this.mdiSync=r2,this.mdiDelete=ze,this.mdiPencil=bt,this.mdiCheckboxMarkedCircle=Dy,this.mdiCancel=Sy,this.mdiShowOptional=us,this.mdiHideOptional=_T}get printers(){var e;return(e=this.$store.getters["gui/remoteprinters/getRemoteprinters"])!=null?e:[]}get canAddPrinters(){return this.instancesDB!=="json"}get protocol(){return this.$store.state.socket.protocol}get defaultMoonrakerPort(){return this.protocol==="wss"?7130:7125}get hostname(){return this.$store.state.socket.hostname}get port(){return this.$store.state.socket.port}get path(){return this.$store.state.socket.path}get name(){return this.$store.state.printer}get formatHostname(){return this.hostname+(this.port!==""?":"+this.port:"")+(this.path!==""?this.path:"")}get isConnected(){return this.$store.state.socket.isConnected}get isConnecting(){return this.$store.state.socket.isConnecting}get connectingFailed(){return this.$store.state.socket.connectingFailed}get showDialog(){return!this.isConnected||this.isConnected&&!this.guiIsReady}get currentUrl(){let e=document.location.protocol+"//"+window.location.hostname;return parseInt(window.location.port)!==80&&window.location.port!==""&&(e+=":"+window.location.port),e}get showCorsInfo(){return this.printers.length?(this.printers.forEach(e=>{var s;if(e&&!((s=e.socket)!=null&&s.isConnected))return!0}),!1):!0}get panelTitle(){return this.dialogAddPrinter.bool?this.$t("SelectPrinterDialog.AddPrinter"):this.dialogEditPrinter.bool?this.$t("SelectPrinterDialog.EditPrinter"):this.isConnecting?this.$t("SelectPrinterDialog.Connecting",{host:this.formatHostname}):this.isConnected&&!this.guiIsReady?this.$t("ConnectionDialog.Initializing"):this.connectingFailed?this.$t("SelectPrinterDialog.ConnectionFailed",{host:this.formatHostname}):this.$t("SelectPrinterDialog.SelectPrinter")}getPrinterName(e){return this.$store.getters["farm/getPrinterName"](e)}createPrinter(){this.dialogAddPrinter.hostname="",this.dialogAddPrinter.port=this.defaultMoonrakerPort,this.dialogAddPrinter.bool=!0}addPrinter(){const e={hostname:this.dialogAddPrinter.hostname,port:this.dialogAddPrinter.port,path:this.dialogAddPrinter.path,name:this.dialogAddPrinter.name};this.$store.dispatch("gui/remoteprinters/store",{values:e}),this.dialogAddPrinter.hostname="",this.dialogAddPrinter.bool=!1,this.dialogAddPrinter.path="/",this.dialogAddPrinter.name=""}editPrinter(e){var s,t,r;this.dialogEditPrinter.hostname=e.hostname,this.dialogEditPrinter.port=e.port,this.dialogEditPrinter.id=(s=e.id)!=null?s:"",this.dialogEditPrinter.path=(t=e.path)!=null?t:"/",this.dialogEditPrinter.name=(r=e.name)!=null?r:"",this.dialogEditPrinter.bool=!0,this.showOptionalSettings=e.name?e.name.length>0:!1}updatePrinter(){const e={hostname:this.dialogEditPrinter.hostname,port:this.dialogEditPrinter.port,path:this.dialogEditPrinter.path,id:this.dialogEditPrinter.id,name:this.dialogEditPrinter.name};this.$store.dispatch("gui/remoteprinters/update",{id:this.dialogEditPrinter.id,values:e}),this.dialogEditPrinter.bool=!1}delPrinter(){this.$store.dispatch("gui/remoteprinters/delete",this.dialogEditPrinter.id),this.dialogEditPrinter.bool=!1}connect(e){this.$store.dispatch("socket/setData",{hostname:e.socket.hostname,port:e.socket.port,path:e.socket.path});const s=e.socket.path.replaceAll(/(^\/*)|(\/*$)/g,""),t=this.protocol+"://"+e.socket.hostname+":"+e.socket.port+(s.length>0?"/".concat(s):"")+"/websocket";this.$socket.setUrl(t),this.$socket.connect()}reconnect(){this.$store.dispatch("socket/setData",{connectingFailed:!1}),this.$socket.connect()}switchToChangePrinter(){this.$store.dispatch("socket/setData",{connectingFailed:!1})}checkPrinters(){this.printers.forEach(e=>{var s,t;e&&!((s=e.socket)!=null&&s.isConnected)&&!((t=e.socket)!=null&&t.isConnecting)&&this.$store.dispatch("farm/"+e.id+"/connect")})}mounted(){this.$store.dispatch("gui/remoteprinters/initFromLocalstorage").then(()=>{if(!("printer"in this.$route.query))return;let e=this.$route.query.printer.toString().toLowerCase(),s=this.printers.filter(t=>{var r;return((r=t.name)==null?void 0:r.toLowerCase())===e});if(s.length==0){window.console.error("No printer with given name '".concat(e,"' found. Showing selection dialog instead."));return}if(s.length>1){window.console.error("Multiple printers with name '".concat(e,"' found. Showing selection dialog instead."));return}this.connect(s[0])})}};Xd=L3([D({components:{Panel:B}})],Xd);var A3=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{persistent:"",width:400},model:{value:e.showDialog,callback:function(r){e.showDialog=r},expression:"showDialog"}},[t(B,{attrs:{"card-class":"select-printer-dialog",icon:e.mdiConnection,title:e.panelTitle,"margin-bottom":!1,"toolbar-color":"toolbar"},scopedSlots:e._u([{key:"buttons",fn:function(){return[!e.isConnecting&&!e.connectingFailed?[e.dialogEditPrinter.bool?[t(g,{staticClass:"minwidth-0",attrs:{icon:"",tile:""},on:{click:function(r){e.dialogEditPrinter.bool=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]:e.dialogAddPrinter.bool?[e.dialogAddPrinter.bool?t(g,{staticClass:"minwidth-0",attrs:{icon:"",tile:""},on:{click:function(r){e.dialogAddPrinter.bool=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1):e._e()]:e.printers.length>0?[t(g,{staticClass:"minwidth-0",attrs:{icon:"",tile:"",color:"primary"},on:{click:e.checkPrinters}},[t(v,[e._v(e._s(e.mdiSync))])],1)]:e._e()]:e._e()]},proxy:!0}])},[e.isConnecting||e.isConnected&&!e.guiIsReady?[t(q,[t(ws,{attrs:{color:"primary",indeterminate:""}})],1)]:e.connectingFailed?[t(q,[t("p",[e._v(" "+e._s(e.$t("SelectPrinterDialog.CannotConnectTo",{host:parseInt(e.port)!==80?e.hostname+":"+e.port:e.hostname}))+" ")]),t("div",{staticClass:"text-center"},[t(g,{staticClass:"mr-3",attrs:{text:"",color:"white"},on:{click:e.switchToChangePrinter}},[e._v(" "+e._s(e.$t("SelectPrinterDialog.ChangePrinter"))+" ")]),t(g,{attrs:{text:"",color:"primary"},on:{click:e.reconnect}},[e._v(e._s(e.$t("SelectPrinterDialog.TryAgain")))])],1)])]:e.dialogAddPrinter.bool?[t(cr,{on:{submit:function(r){return r.preventDefault(),e.addPrinter.apply(null,arguments)}},model:{value:e.addPrinterValid,callback:function(r){e.addPrinterValid=r},expression:"addPrinterValid"}},[t(q,[t($,[t(_,{staticClass:"col-8"},[t(te,{attrs:{rules:[function(r){return!!r||e.$t("SelectPrinterDialog.HostnameRequired")},function(r){return!r.startsWith("http:")||e.$t("SelectPrinterDialog.HostnameInvalid")},function(r){return!r.startsWith("https:")||e.$t("SelectPrinterDialog.HostnameInvalid")}],label:e.$t("SelectPrinterDialog.HostnameIp"),required:"",outlined:"","hide-details":"auto",dense:""},model:{value:e.dialogAddPrinter.hostname,callback:function(r){e.$set(e.dialogAddPrinter,"hostname",r)},expression:"dialogAddPrinter.hostname"}})],1),t(_,{staticClass:"col-4"},[t(te,{attrs:{rules:[function(r){return!!r||e.$t("SelectPrinterDialog.PortRequired")}],label:e.$t("SelectPrinterDialog.Port"),"hide-details":"auto",required:"",outlined:"",dense:""},model:{value:e.dialogAddPrinter.port,callback:function(r){e.$set(e.dialogAddPrinter,"port",r)},expression:"dialogAddPrinter.port"}})],1)],1),e.showOptionalSettings?t($,[t(_,{attrs:{cols:6}},[t(te,{attrs:{rules:[function(r){return!r||r.startsWith("/")||"Path must start with /"}],label:e.$t("SelectPrinterDialog.Path"),"hide-details":"auto",outlined:"",dense:""},model:{value:e.dialogAddPrinter.path,callback:function(r){e.$set(e.dialogAddPrinter,"path",r)},expression:"dialogAddPrinter.path"}})],1),t(_,{attrs:{cols:6}},[t(te,{attrs:{label:e.$t("SelectPrinterDialog.Name"),outlined:"","hide-details":"auto",dense:""},model:{value:e.dialogAddPrinter.name,callback:function(r){e.$set(e.dialogAddPrinter,"name",r)},expression:"dialogAddPrinter.name"}})],1)],1):e._e()],1),t(ne,[t(_e,{staticClass:"ml-2",attrs:{"on-icon":e.mdiShowOptional,"off-icon":e.mdiHideOptional,"true-value":!1,"false-value":!0},model:{value:e.showOptionalSettings,callback:function(r){e.showOptionalSettings=r},expression:"showOptionalSettings"}}),t(ae),t(g,{staticClass:"middle",attrs:{color:"primary",text:"",type:"submit",disabled:!e.addPrinterValid}},[e._v(" "+e._s(e.$t("SelectPrinterDialog.AddPrinter"))+" ")])],1)],1)]:e.dialogEditPrinter.bool?[t(cr,{on:{submit:function(r){return r.preventDefault(),e.updatePrinter.apply(null,arguments)}},model:{value:e.editPrinterValid,callback:function(r){e.editPrinterValid=r},expression:"editPrinterValid"}},[t(q,[t($,[t(_,{staticClass:"col-8"},[t(te,{attrs:{rules:[function(r){return!!r||e.$t("SelectPrinterDialog.HostnameRequired")},function(r){return!r.startsWith("http:")||e.$t("SelectPrinterDialog.HostnameInvalid")},function(r){return!r.startsWith("https:")||e.$t("SelectPrinterDialog.HostnameInvalid")}],label:e.$t("SelectPrinterDialog.HostnameIp"),required:"",outlined:"",dense:"","hide-details":"auto"},model:{value:e.dialogEditPrinter.hostname,callback:function(r){e.$set(e.dialogEditPrinter,"hostname",r)},expression:"dialogEditPrinter.hostname"}})],1),t(_,{staticClass:"col-4"},[t(te,{attrs:{rules:[function(r){return!!r||e.$t("SelectPrinterDialog.PortRequired")}],label:e.$t("SelectPrinterDialog.Port"),required:"",outlined:"",dense:"","hide-details":"auto"},model:{value:e.dialogEditPrinter.port,callback:function(r){e.$set(e.dialogEditPrinter,"port",r)},expression:"dialogEditPrinter.port"}})],1)],1),e.showOptionalSettings?t($,[t(_,{attrs:{cols:6}},[t(te,{attrs:{rules:[function(r){return!r||r.startsWith("/")||"Path must start with /"}],label:e.$t("SelectPrinterDialog.Path"),"hide-details":"auto",outlined:"",dense:""},model:{value:e.dialogEditPrinter.path,callback:function(r){e.$set(e.dialogEditPrinter,"path",r)},expression:"dialogEditPrinter.path"}})],1),t(_,{attrs:{cols:6}},[t(te,{attrs:{label:e.$t("SelectPrinterDialog.Name"),outlined:"","hide-details":"auto",dense:""},model:{value:e.dialogEditPrinter.name,callback:function(r){e.$set(e.dialogEditPrinter,"name",r)},expression:"dialogEditPrinter.name"}})],1)],1):e._e()],1),t(ne,[t(g,{staticClass:"minwidth-0 rounded",attrs:{color:"red",icon:"",tile:""},on:{click:e.delPrinter}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiDelete))])],1),t(_e,{staticClass:"ml-2",attrs:{"on-icon":e.mdiShowOptional,"off-icon":e.mdiHideOptional,"true-value":!1,"false-value":!0},model:{value:e.showOptionalSettings,callback:function(r){e.showOptionalSettings=r},expression:"showOptionalSettings"}}),t(ae),t(g,{attrs:{color:"primary",text:"",type:"submit",disabled:!e.editPrinterValid}},[e._v(" "+e._s(e.$t("SelectPrinterDialog.UpdatePrinter"))+" ")])],1)],1)]:[t(q,{staticClass:"mt-3"},[e.printers.length?t($,[t(_,{staticClass:"px-6"},e._l(e.printers,function(r,i){return t($,{key:i},[t(_,{staticClass:"rounded transition-swing toolbar py-2 px-2 mb-2 overflow-hidden",staticStyle:{cursor:"pointer"},on:{click:function(n){return e.connect(r)}}},[t($,{attrs:{align:"center"}},[t(_,{staticClass:"col-auto pr-0"},[r.socket.isConnecting?t(dt,{attrs:{indeterminate:"",color:"primary",size:"24",width:"2.5"}}):e._e(),r.socket.isConnecting?e._e():t(v,{attrs:{color:r.socket.isConnected?"green":"red"}},[e._v(" "+e._s(r.socket.isConnected?e.mdiCheckboxMarkedCircle:e.mdiCancel)+" ")])],1),t(_,[e._v(e._s(e.getPrinterName(r.id)))]),e.canAddPrinters?t(_,{staticClass:"col-auto pa-0"},[t(g,{staticClass:"mr-1",attrs:{tile:"",text:"",icon:"",large:""},on:{click:function(n){return n.stopPropagation(),n.preventDefault(),e.editPrinter(r)}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiPencil))])],1)],1):e._e()],1)],1)],1)}),1)],1):e._e(),e.instancesDB==="browser"?[e.showCorsInfo?t($,[t(_,[e.printers.length===0?t("p",{staticClass:"text-center"},[e._v(" "+e._s(e.$t("SelectPrinterDialog.Hello"))+" ")]):e._e(),t("p",{staticClass:"text-center"},[e._v(" "+e._s(e.$t("SelectPrinterDialog.RememberToAdd",{cors:e.currentUrl}))+" ")]),t("p",{staticClass:"text-center mb-0"},[e._v(" "+e._s(e.$t("SelectPrinterDialog.YouCanFindMore"))+" "),t("br"),t("a",{attrs:{href:"https://docs.mainsail.xyz/remotemode",target:"_blank"}},[e._v(" https://docs.mainsail.xyz/remotemode ")]),e._v(" . ")])])],1):e._e(),t($,[t(_,{staticClass:"text-center mt-0"},[t(g,{attrs:{text:"",color:"primary"},on:{click:e.createPrinter}},[e._v(" "+e._s(e.$t("SelectPrinterDialog.AddPrinter"))+" ")])],1)],1)]:e.instancesDB==="json"&&e.printers.length===0?t($,[t(_,{staticClass:"text-center mt-0"},[t("p",{staticClass:"text-center"},[e._v(" "+e._s(e.$t("SelectPrinterDialog.AddPrintersToJson"))+" ")])])],1):e._e()],2)]],2)],1)},k3=[];const wg={};var F3=E(Xd,A3,k3,!1,R3,null,null,null);function R3(e){for(let s in wg)this[s]=wg[s]}const Op=function(){return F3.exports}();var j3=Object.defineProperty,H3=Object.getOwnPropertyDescriptor,I3=(e,s,t,r)=>{for(var i=r>1?void 0:r?H3(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&j3(s,t,i),i};let Yd=class extends M(O){constructor(){super(...arguments),this.mdiHelpCircleOutline=Hy,this.mdiCloseThick=pe,this.mdiMoonWaningCrescent=XT}get mainsailVersion(){return this.$store.state.packageVersion}get klipperVersion(){var e,s;return(s=(e=this.$store.state.printer)==null?void 0:e.software_version)!=null?s:""}get moonrakerVersion(){var e,s;return(s=(e=this.$store.state.server)==null?void 0:e.moonraker_version)!=null?s:""}};Yd=I3([D({})],Yd);var N3=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(de,{attrs:{right:"",color:"panel"},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(v,e._g(e._b({},"v-icon",n,!1),i),[e._v(" "+e._s(e.mdiHelpCircleOutline)+" ")])]}}])},[t(Ae,{staticClass:"version-container pa-0"},[t("div",[t("img",{attrs:{height:"12",src:"/img/logo.svg",alt:"mainsail-logo"}})]),t("div",[e._v("v"+e._s(e.mainsailVersion))]),t("div",[t(v,{staticClass:"moonraker-logo",attrs:{small:""}},[e._v(e._s(e.mdiMoonWaningCrescent))])],1),t("div",[e._v(e._s(e.moonrakerVersion))]),t("div",[t("img",{staticClass:"klipper-logo",attrs:{height:"12",src:"/img/klipper.svg",alt:"klipper-logo"}})]),t("div",[e._v(e._s(e.klipperVersion))])])],1)},V3=[];const Sg={};var U3=E(Yd,N3,V3,!1,B3,"24513c96",null,null);function B3(e){for(let s in Sg)this[s]=Sg[s]}const m2=function(){return U3.exports}();var W3=Object.defineProperty,G3=Object.getOwnPropertyDescriptor,Lp=(e,s,t,r)=>{for(var i=r>1?void 0:r?G3(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&W3(s,t,i),i};let Zn=class extends M(O){constructor(){super(...arguments),this.internalColor=Rr}colorChanged(e){this.internalColor=e!==""?e:Rr}created(){this.color!==""&&(this.internalColor=this.color)}};Lp([P({required:!1,default:""})],Zn.prototype,"color",2);Lp([me("color")],Zn.prototype,"colorChanged",1);Zn=Lp([D],Zn);var z3=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 599.38 523.11","xml:space":"preserve"}},[t("g",[t("path",{style:"fill:"+e.color+";",attrs:{d:"M382.29,142.98L132.98,522.82L0,522.68L344.3,0l0,0C352.18,49.06,365.2,97.68,382.29,142.98"}}),t("path",{style:"fill:"+e.color+";",attrs:{d:"M413.28,213.54L208.5,522.92l132.94,0.19l135.03-206.33l0,0C452.69,284.29,431.53,249.77,413.28,213.54 L413.28,213.54"}}),t("path",{style:"fill:"+e.color+";",attrs:{d:"M599.38,447.69l-49.25,75.42L417,522.82l101.6-153.67l0,0C543.48,397.35,570.49,423.61,599.38,447.69 L599.38,447.69z"}})])])},Z3=[];const Pg={};var q3=E(Zn,z3,Z3,!1,X3,null,null,null);function X3(e){for(let s in Pg)this[s]=Pg[s]}const rn=function(){return q3.exports}();var Y3=Object.defineProperty,J3=Object.getOwnPropertyDescriptor,h2=(e,s,t,r)=>{for(var i=r>1?void 0:r?J3(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Y3(s,t,i),i};let Xo=class extends M(O){get navigationStyle(){return this.$store.state.gui.uiSettings.navigationStyle}get icon(){return this.item.icon}get title(){return this.item.title}get to(){var e;return(e=this.item.to)!=null?e:void 0}get href(){var e;return(e=this.item.href)!=null?e:void 0}get target(){var e;return(e=this.item.target)!=null?e:void 0}get borderBottom(){return this.item.to==="/allPrinters"}};h2([P({type:Object,required:!0})],Xo.prototype,"item",2);Xo=h2([D],Xo);var K3=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(de,{attrs:{right:"","open-delay":500,disabled:e.navigationStyle!=="iconsOnly"},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(J,e._g(e._b({staticClass:"small-list-item",attrs:{router:"",to:e.to,href:e.href,target:e.target}},"v-list-item",n,!1),i),[t(Is,{staticClass:"my-3 mr-3 menu-item-icon"},[t(v,[e._v(e._s(e.icon))])],1),t(vt,[t(Ge,{staticClass:"menu-item-title",attrs:{tile:""}},[e._v(" "+e._s(e.title)+" ")])],1)],1)]}}])},[t("span",[e._v(e._s(e.title))])]),e.borderBottom?t(U,{staticClass:"my-1"}):e._e()],1)},Q3=[];const Dg={};var e5=E(Xo,K3,Q3,!1,t5,"99ab1bec",null,null);function t5(e){for(let s in Dg)this[s]=Dg[s]}const p2=function(){return e5.exports}(),s5="modulepreload",r5=function(e){return"/"+e},Tg={},fe=function(s,t,r){if(!t||t.length===0)return s();const i=document.getElementsByTagName("link");return Promise.all(t.map(n=>{if(n=r5(n),n in Tg)return;Tg[n]=!0;const a=n.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(!!r)for(let u=i.length-1;u>=0;u--){const d=i[u];if(d.href===n&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector('link[href="'.concat(n,'"]').concat(o)))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":s5,a||(c.as="script",c.crossOrigin=""),c.href=n,document.head.appendChild(c),a)return new Promise((u,d)=>{c.addEventListener("load",u),c.addEventListener("error",()=>d(new Error("Unable to preload CSS for ".concat(n))))})})).then(()=>s()).catch(n=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=n,window.dispatchEvent(a),!a.defaultPrevented)throw n})};var i5=Object.defineProperty,n5=Object.getOwnPropertyDescriptor,a5=(e,s,t,r)=>{for(var i=r>1?void 0:r?n5(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&i5(s,t,i),i};let Ke=class extends y{get absolute_coordinates(){var e,s,t;return(t=(s=(e=this.$store.state.printer)==null?void 0:e.gcode_move)==null?void 0:s.absolute_coordinates)!=null?t:!0}get enableXYHoming(){return this.$store.state.gui.control.enableXYHoming}get feedrateXY(){var e,s;return(s=(e=this.$store.state.gui.control)==null?void 0:e.feedrateXY)!=null?s:100}get feedrateZ(){var e,s;return(s=(e=this.$store.state.gui.control)==null?void 0:e.feedrateZ)!=null?s:10}get existsQGL(){return this.$store.getters["printer/existsQGL"]}get existsZtilt(){return this.$store.getters["printer/existsZtilt"]}get existsBedTilt(){return this.$store.getters["printer/existsBedTilt"]}get existsBedScrews(){return this.$store.getters["printer/existsBedScrews"]}get existsDeltaCalibrate(){return this.$store.getters["printer/existsDeltaCalibrate"]}get existsScrewsTilt(){return this.$store.getters["printer/existsScrewsTilt"]}get existsFirmwareRetraction(){return this.$store.getters["printer/existsFirmwareRetraction"]}get colorQuadGantryLevel(){var s,t;return((t=(s=this.$store.state.printer.quad_gantry_level)==null?void 0:s.applied)!=null?t:!0)?"primary":"warning"}get colorZTilt(){var s,t;return((t=(s=this.$store.state.printer.z_tilt)==null?void 0:s.applied)!=null?t:!0)?"primary":"warning"}get defaultActionButton(){return this.$store.getters["gui/getDefaultControlActionButton"]}get homedAxes(){var e,s,t;return(t=(s=(e=this.$store.state.printer)==null?void 0:e.toolhead)==null?void 0:s.homed_axes)!=null?t:""}get xAxisHomed(){return this.homedAxes.includes("x")}get yAxisHomed(){return this.homedAxes.includes("y")}get zAxisHomed(){return this.homedAxes.includes("z")}get macros(){return this.$store.getters["printer/getMacros"]}get toolchangeMacros(){return this.macros.filter(e=>e.name.toUpperCase().match(/^T\d+/)).sort((e,s)=>{const t=parseInt(e.name.slice(1)),r=parseInt(s.name.slice(1));return t-r})}doHome(){this.$store.dispatch("server/addEvent",{message:"G28",type:"command"}),this.$socket.emit("printer.gcode.script",{script:"G28"},{loading:"homeAll"})}doHomeX(){this.$store.dispatch("server/addEvent",{message:"G28 X",type:"command"}),this.$socket.emit("printer.gcode.script",{script:"G28 X"},{loading:"homeX"})}doHomeY(){this.$store.dispatch("server/addEvent",{message:"G28 Y",type:"command"}),this.$socket.emit("printer.gcode.script",{script:"G28 Y"},{loading:"homeY"})}doHomeXY(){this.$store.dispatch("server/addEvent",{message:"G28 X Y",type:"command"}),this.$socket.emit("printer.gcode.script",{script:"G28 X Y"},{loading:"homeXY"})}doHomeZ(){this.$store.dispatch("server/addEvent",{message:"G28 Z",type:"command"}),this.$socket.emit("printer.gcode.script",{script:"G28 Z"},{loading:"homeZ"})}doQGL(){this.$store.dispatch("server/addEvent",{message:"QUAD_GANTRY_LEVEL",type:"command"}),this.$socket.emit("printer.gcode.script",{script:"QUAD_GANTRY_LEVEL"},{loading:"qgl"})}doZtilt(){this.$store.dispatch("server/addEvent",{message:"Z_TILT_ADJUST",type:"command"}),this.$socket.emit("printer.gcode.script",{script:"Z_TILT_ADJUST"},{loading:"zTilt"})}doSendMove(e,s){e="G91\nG1 "+e+" F"+s*60,this.absolute_coordinates&&(e+="\nG90"),this.doSend(e)}doSend(e){this.$store.dispatch("server/addEvent",{message:e,type:"command"}),this.$socket.emit("printer.gcode.script",{script:e})}};Ke=a5([D],Ke);var o5=Object.defineProperty,l5=Object.getOwnPropertyDescriptor,c5=(e,s,t,r)=>{for(var i=r>1?void 0:r?l5(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&o5(s,t,i),i};let $i=class extends y{get extruders(){return this.$store.getters["printer/getExtruders"]}get activeExtruder(){var e;return(e=this.$store.state.printer.toolhead)==null?void 0:e.extruder}get activeExtruderSettings(){var e,s;return(s=(e=this.$store.state.printer.configfile)==null?void 0:e.settings)==null?void 0:s[this.activeExtruder]}get filamentDiameter(){var e,s;return(s=(e=this.activeExtruderSettings)==null?void 0:e.filament_diameter)!=null?s:1.75}get nozzleDiameter(){var e,s;return(s=(e=this.activeExtruderSettings)==null?void 0:e.nozzle_diameter)!=null?s:.4}get feedamount(){return parseFloat(this.$store.state.gui.control.extruder.feedamount)}get feedrate(){return parseFloat(this.$store.state.gui.control.extruder.feedrate)}get extrudeFactor(){var e,s,t;return(t=(s=(e=this.$store.state.printer)==null?void 0:e.gcode_move)==null?void 0:s.extrude_factor)!=null?t:1}get extrudePossible(){return this.$store.getters["printer/getExtrudePossible"]}get minExtrudeTemp(){var e,s;return(s=(e=this.activeExtruderSettings)==null?void 0:e.min_extrude_temp)!=null?s:170}};$i=c5([D],$i);var u5=Object.defineProperty,d5=Object.getOwnPropertyDescriptor,m5=(e,s,t,r)=>{for(var i=r>1?void 0:r?d5(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&u5(s,t,i),i};let Jd=class extends M(O,Ke,$i){constructor(){super(...arguments),this.mdiPrinter3dNozzle=Ws,this.mdiDotsVertical=Vc,this.heatWaitGcodes=["printer.extruder.can_extrude","TEMPERATURE_WAIT","M109"]}get showPanel(){return this.klipperReadyForGui&&this.extruders.length>0}get macros(){return this.$store.getters["printer/getMacros"]}get loadFilamentMacro(){const s=["LOAD_FILAMENT","FILAMENT_LOAD"];return this.macros.find(t=>s.includes(t.name.toUpperCase()))}get unloadFilamentMacro(){const s=["UNLOAD_FILAMENT","FILAMENT_UNLOAD"];return this.macros.find(t=>s.includes(t.name.toUpperCase()))}get purgeFilamentMacro(){const s=["PURGE_FILAMENT","FILAMENT_PURGE"];return this.macros.find(t=>s.includes(t.name.toUpperCase()))}get cleanNozzleMacro(){const s=["CLEAN_NOZZLE","NOZZLE_CLEAN","WIPE_NOZZLE","NOZZLE_WIPE"];return this.macros.find(t=>s.includes(t.name.toUpperCase()))}get canExecuteLoadMacro(){return this.extrudePossible?!0:this.heatWaitGcodes.some(s=>{var t;return(t=this.loadFilamentMacro)==null?void 0:t.prop.gcode.includes(s)})}get canExecuteUnloadMacro(){return this.extrudePossible?!0:this.heatWaitGcodes.some(s=>{var t;return(t=this.unloadFilamentMacro)==null?void 0:t.prop.gcode.includes(s)})}get canExecutePurgeMacro(){return this.extrudePossible?!0:this.heatWaitGcodes.some(s=>{var t;return(t=this.purgeFilamentMacro)==null?void 0:t.prop.gcode.includes(s)})}get showFilamentMacros(){return this.loadFilamentMacro!==void 0||this.unloadFilamentMacro!==void 0||this.purgeFilamentMacro!==void 0||this.cleanNozzleMacro!==void 0}get showTools(){var s;return this.toolchangeMacros.length<1?!1:(s=this.$store.state.gui.view.extruder.showTools)!=null?s:!0}get showExtrusionFactor(){var s;return(s=this.$store.state.gui.view.extruder.showExtrusionFactor)!=null?s:!0}get existsPressureAdvance(){return!(this.$store.getters["printer/getExtruderSteppers"].length>0)}get showPressureAdvance(){var s;return this.existsPressureAdvance?(s=this.$store.state.gui.view.extruder.showPressureAdvance)!=null?s:!0:!1}get showFirmwareRetraction(){var s;return this.existsFirmwareRetraction?(s=this.$store.state.gui.view.extruder.showFirmwareRetraction)!=null?s:!0:!1}get showExtruderControl(){var s;return(s=this.$store.state.gui.view.extruder.showExtruderControl)!=null?s:!0}};Jd=m5([D({components:{Panel:B}})],Jd);var h5=Object.defineProperty,p5=Object.getOwnPropertyDescriptor,xt=(e,s,t,r)=>{for(var i=r>1?void 0:r?p5(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&h5(s,t,i),i};let mt=class extends M(O){constructor(){super(...arguments),this.mdiRestart=Zr,this.mdiChevronUp=Nc,this.mdiChevronDown=hr,this.value="0",this.error=!1,this.invalidChars=["e","E","+"]}created(){this.value=this.target.toString()}updateTarget(){this.value=this.target.toString()}incrementValue(){this.inputValue+this.step*this.spinnerFactor<this.max||this.max===null?this.value=(Math.round((this.inputValue+this.step*this.spinnerFactor)*10**this.dec)/10**this.dec).toString():this.value=this.max.toString(),this.submit()}decrementValue(){this.inputValue-this.step*this.spinnerFactor>this.min?this.value=(Math.round((this.inputValue-this.step*this.spinnerFactor)*10**this.dec)/10**this.dec).toString():this.value=this.min.toString(),this.submit()}resetToDefault(){this.value=this.defaultValue.toString(),this.submit()}submit(){this.invalidInput||this.$emit("submit",{name:this.param,value:this.inputValue})}checkInvalidChars(e){this.min>=0&&this.invalidChars.push("-"),this.invalidChars.includes(e.key)&&e.preventDefault()}get inputValue(){return this.value.toString()===""?0:parseFloat(this.value.replace(",","."))}get invalidInput(){return this.inputErrors.length>0}get inputErrors(){if(!this.outputErrorMsg)return[];const e=[];return this.max===null&&this.inputValue<this.min&&e.push(this.$t("App.NumberInput.GreaterOrEqualError",{min:this.min})),this.max!==null&&(this.inputValue>this.max||this.inputValue<this.min)&&e.push(this.$t("App.NumberInput.MustBeBetweenError",{min:this.min,max:this.max})),e}};xt([P({required:!0})],mt.prototype,"label",2);xt([P({type:String,required:!0})],mt.prototype,"param",2);xt([P({type:Number,required:!0})],mt.prototype,"target",2);xt([P({type:Number,required:!1})],mt.prototype,"defaultValue",2);xt([P({type:Number,required:!0})],mt.prototype,"min",2);xt([P({default:null})],mt.prototype,"max",2);xt([P({type:Number,required:!0})],mt.prototype,"dec",2);xt([P({type:Number,required:!1,default:1})],mt.prototype,"step",2);xt([P({type:String,required:!1})],mt.prototype,"unit",2);xt([P({type:Boolean,required:!1,default:!1})],mt.prototype,"hasSpinner",2);xt([P({type:Number,required:!1,default:1})],mt.prototype,"spinnerFactor",2);xt([P({type:Boolean,required:!1,default:!1})],mt.prototype,"disabled",2);xt([P({type:Boolean,required:!1,default:!1})],mt.prototype,"outputErrorMsg",2);xt([me("target")],mt.prototype,"updateTarget",1);mt=xt([D],mt);var f5=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("form",{on:{submit:function(r){return r.preventDefault(),e.submit.apply(null,arguments)}}},[t(te,{staticClass:"d-flex align-top",attrs:{label:e.label,suffix:e.unit,error:e.invalidInput,"error-messages":e.inputErrors,disabled:e.disabled,step:e.step,min:e.min,max:e.max,dec:e.dec,"hide-spin-buttons":"","hide-details":"auto",outlined:"",dense:""},on:{blur:function(r){e.value=e.target.toString()},focus:function(r){return r.target.select()},keydown:e.checkInvalidChars},scopedSlots:e._u([e.defaultValue?{key:"append",fn:function(){return[t(v,{on:{click:e.resetToDefault}},[e._v(e._s(e.value!==e.defaultValue.toString()?e.mdiRestart:""))])]},proxy:!0}:null,e.hasSpinner?{key:"append-outer",fn:function(){return[t("div",{staticClass:"_spin_button_group"},[t(g,{staticClass:"mt-n3",attrs:{disabled:e.value>=e.max&&e.max!==null||e.error||e.disabled,icon:"",plain:"",small:""},on:{click:e.incrementValue}},[t(v,[e._v(e._s(e.mdiChevronUp))])],1),t(g,{staticClass:"mb-n3",attrs:{disabled:e.value<=e.min||e.error||e.disabled,icon:"",plain:"",small:""},on:{click:e.decrementValue}},[t(v,[e._v(e._s(e.mdiChevronDown))])],1)],1)]},proxy:!0}:null],null,!0),model:{value:e.value,callback:function(r){e.value=r},expression:"value"}})],1)},g5=[];const Mg={};var v5=E(mt,f5,g5,!1,_5,"799eadb6",null,null);function _5(e){for(let s in Mg)this[s]=Mg[s]}const je=function(){return v5.exports}();var f2="Expected a function",Eg=0/0,b5="[object Symbol]",y5=/^\s+|\s+$/g,C5=/^[-+]0x[0-9a-f]+$/i,$5=/^0b[01]+$/i,x5=/^0o[0-7]+$/i,w5=parseInt,S5=typeof Dr=="object"&&Dr&&Dr.Object===Object&&Dr,P5=typeof self=="object"&&self&&self.Object===Object&&self,D5=S5||P5||Function("return this")(),T5=Object.prototype,M5=T5.toString,E5=Math.max,O5=Math.min,ud=function(){return D5.Date.now()};function L5(e,s,t){var r,i,n,a,o,l,c=0,u=!1,d=!1,m=!0;if(typeof e!="function")throw new TypeError(f2);s=Og(s)||0,Yo(t)&&(u=!!t.leading,d="maxWait"in t,n=d?E5(Og(t.maxWait)||0,s):n,m="trailing"in t?!!t.trailing:m);function h(x){var T=r,I=i;return r=i=void 0,c=x,a=e.apply(I,T),a}function p(x){return c=x,o=setTimeout(C,s),u?h(x):a}function f(x){var T=x-l,I=x-c,j=s-T;return d?O5(j,n-I):j}function b(x){var T=x-l,I=x-c;return l===void 0||T>=s||T<0||d&&I>=n}function C(){var x=ud();if(b(x))return S(x);o=setTimeout(C,f(x))}function S(x){return o=void 0,m&&r?h(x):(r=i=void 0,a)}function L(){o!==void 0&&clearTimeout(o),c=0,r=l=i=o=void 0}function N(){return o===void 0?a:S(ud())}function R(){var x=ud(),T=b(x);if(r=arguments,i=this,l=x,T){if(o===void 0)return p(l);if(d)return o=setTimeout(C,s),h(l)}return o===void 0&&(o=setTimeout(C,s)),a}return R.cancel=L,R.flush=N,R}function A5(e,s,t){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(f2);return Yo(t)&&(r="leading"in t?!!t.leading:r,i="trailing"in t?!!t.trailing:i),L5(e,s,{leading:r,maxWait:s,trailing:i})}function Yo(e){var s=typeof e;return!!e&&(s=="object"||s=="function")}function k5(e){return!!e&&typeof e=="object"}function F5(e){return typeof e=="symbol"||k5(e)&&M5.call(e)==b5}function Og(e){if(typeof e=="number")return e;if(F5(e))return Eg;if(Yo(e)){var s=typeof e.valueOf=="function"?e.valueOf():e;e=Yo(s)?s+"":s}if(typeof e!="string")return e===0?e:+e;e=e.replace(y5,"");var t=$5.test(e);return t||x5.test(e)?w5(e.slice(2),t?2:8):C5.test(e)?Eg:+e}var R5=A5;const g2=Ji(R5);var j5=Object.defineProperty,H5=Object.getOwnPropertyDescriptor,v2=(e,s,t,r)=>{for(var i=r>1?void 0:r?H5(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&j5(s,t,i),i};let Jo=class extends O{constructor(){super(...arguments),this.el={is:{}}}mounted(){this.breakpoints&&this.$nextTick(()=>{this.observer=new ResizeObserver(g2(this.onResize,50)),this.$el instanceof Element&&this.observer.observe(this.$el)})}beforeDestroy(){var e;this.$el instanceof Element&&((e=this.observer)==null||e.unobserve(this.$el))}onResize(e){if(e[0].contentRect.height===0&&e[0].contentRect.width===0)return;const s=e[0].contentRect,t=this.breakpoints;for(const r in t)this.$set(this.el.is,r,t[r](s))}};v2([P()],Jo.prototype,"breakpoints",2);Jo=v2([D],Jo);var I5=Object.defineProperty,N5=Object.getOwnPropertyDescriptor,_2=(e,s,t,r)=>{for(var i=r>1?void 0:r?N5(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&I5(s,t,i),i};let Ko=class extends M(Jo){constructor(){super(...arguments),this.init=!1}mounted(){this.init=!0}};_2([P({default:!1})],Ko.prototype,"noHide",2);Ko=_2([D],Ko);var V5=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[!e.noHide&&!e.init?t("div",{staticStyle:{visibility:"hidden"}},[e._t("default",null,{el:e.el})],2):e._e(),e._t("default",null,{el:e.el})],2)},U5=[];const Lg={};var B5=E(Ko,V5,U5,!1,W5,null,null,null);function W5(e){for(let s in Lg)this[s]=Lg[s]}const et=function(){return B5.exports}();var Kc={};const G5=mp(_P);/**
* vue-class-component v6.3.2
* (c) 2015-present Evan You
* @license MIT
*/Object.defineProperty(Kc,"__esModule",{value:!0});function z5(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Kd=z5(G5),Z5=typeof Reflect<"u"&&Reflect.defineMetadata;function q5(e,s){dd(e,s),Object.getOwnPropertyNames(s.prototype).forEach(function(t){dd(e.prototype,s.prototype,t)}),Object.getOwnPropertyNames(s).forEach(function(t){dd(e,s,t)})}function dd(e,s,t){var r=t?Reflect.getOwnMetadataKeys(s,t):Reflect.getOwnMetadataKeys(s);r.forEach(function(i){var n=t?Reflect.getOwnMetadata(i,s,t):Reflect.getOwnMetadata(i,s);t?Reflect.defineMetadata(i,n,e,t):Reflect.defineMetadata(i,n,e)})}var X5={__proto__:[]},Y5=X5 instanceof Array;function J5(e){return function(s,t,r){var i=typeof s=="function"?s:s.constructor;i.__decorators__||(i.__decorators__=[]),typeof r!="number"&&(r=void 0),i.__decorators__.push(function(n){return e(n,t,r)})}}function K5(){for(var e=[],s=0;s<arguments.length;s++)e[s]=arguments[s];return Kd.extend({mixins:e})}function Q5(e){var s=typeof e;return e==null||s!=="object"&&s!=="function"}function eM(e,s){var t=s.prototype._init;s.prototype._init=function(){var n=this,a=Object.getOwnPropertyNames(e);if(e.$options.props)for(var o in e.$options.props)e.hasOwnProperty(o)||a.push(o);a.forEach(function(l){l.charAt(0)!=="_"&&Object.defineProperty(n,l,{get:function(){return e[l]},set:function(c){e[l]=c},configurable:!0})})};var r=new s;s.prototype._init=t;var i={};return Object.keys(r).forEach(function(n){r[n]!==void 0&&(i[n]=r[n])}),i}var Qd=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured"];function Ag(e,s){s===void 0&&(s={}),s.name=s.name||e._componentTag||e.name;var t=e.prototype;Object.getOwnPropertyNames(t).forEach(function(o){if(o!=="constructor"){if(Qd.indexOf(o)>-1){s[o]=t[o];return}var l=Object.getOwnPropertyDescriptor(t,o);l.value!==void 0?typeof l.value=="function"?(s.methods||(s.methods={}))[o]=l.value:(s.mixins||(s.mixins=[])).push({data:function(){var c;return c={},c[o]=l.value,c}}):(l.get||l.set)&&((s.computed||(s.computed={}))[o]={get:l.get,set:l.set})}}),(s.mixins||(s.mixins=[])).push({data:function(){return eM(this,e)}});var r=e.__decorators__;r&&(r.forEach(function(o){return o(s)}),delete e.__decorators__);var i=Object.getPrototypeOf(e.prototype),n=i instanceof Kd?i.constructor:Kd,a=n.extend(s);return tM(a,e,n),Z5&&q5(a,e),a}function tM(e,s,t){Object.getOwnPropertyNames(s).forEach(function(r){if(r!=="prototype"){var i=Object.getOwnPropertyDescriptor(e,r);if(!(i&&!i.configurable)){var n=Object.getOwnPropertyDescriptor(s,r);if(!Y5){if(r==="cid")return;var a=Object.getOwnPropertyDescriptor(t,r);if(!Q5(n.value)&&a&&a.value===n.value)return}Object.defineProperty(e,r,n)}}})}function b2(e){return typeof e=="function"?Ag(e):function(s){return Ag(s,e)}}b2.registerHooks=function(s){Qd.push.apply(Qd,s)};Kc.default=b2;var sM=Kc.createDecorator=J5;Kc.mixins=K5;function qe(e){return sM(function(s,t){if(!s.methods)throw new Error("This decorator must be used on a vue component method.");var r=typeof e=="number"?e:e.time,i=s.methods[t],n=0,a=function(){n&&(clearTimeout(n),n=0)};s.methods[t]=function(){for(var o=this,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];a(),n=setTimeout(function(){n=0,i.apply(o,l)},r)}})}var rM=Object.defineProperty,iM=Object.getOwnPropertyDescriptor,tt=(e,s,t,r)=>{for(var i=r>1?void 0:r?iM(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&rM(s,t,i),i};let Ze=class extends M(O){constructor(){super(...arguments),this.mdiRestart=Zr,this.mdiLockOutline=Gc,this.mdiLockOpenVariantOutline=By,this.mdiMinus=Gy,this.mdiPlus=Tp,this.isLocked=!1,this.invalidChars=["e","E","+"],this.value=0,this.numInput=0,this.startValue=0,this.processedMax=100,this.dynamicStep=50}created(){this.value=this.target*this.multi,this.numInput=this.value,this.startValue=this.target*this.multi,this.dynamicStep=Math.floor(this.max/2),this.value>=this.processedMax&&(this.processedMax=(Math.ceil(this.value/this.dynamicStep)+1)*this.dynamicStep)}lockSlidersChanged(){this.isLocked=this.lockSliders&&this.isTouchDevice}startLockTimer(){let e=this.lockSlidersDelay;!this.isTouchDevice||!this.lockSliders||e<=0||(this.timeout=setTimeout(()=>this.isLocked=!0,e*1e3))}resetLockTimer(){clearTimeout(this.timeout)}get lockSliders(){return this.$store.state.gui.uiSettings.lockSlidersOnTouchDevices}get lockSlidersDelay(){return this.$store.state.gui.uiSettings.lockSlidersDelay}get colorBar(){return this.max<this.value?"warning":"primary"}changeSlider(){this.sendCmd(),this.dynamicRange&&this.value>=this.processedMax&&(this.processedMax=this.value+this.dynamicStep)}valueChanged(e){this.numInput=e}targetChanged(e){this.value=Math.round(e*this.multi),this.dynamicRange&&this.value>=this.processedMax&&(this.processedMax=this.value+this.dynamicStep)}maxChanged(e){this.processedMax=e>this.value?e:Math.ceil(this.value/this.dynamicStep)*this.dynamicStep}checkInvalidChars(e){this.min>=0&&this.invalidChars.push("-"),this.invalidChars.includes(e.key)&&e.preventDefault()}errors(){const e=[];return this.numInput.toString()===""&&e.push(this.$t("App.NumberInput.NoEmptyAllowedError")),this.numInput<this.min&&e.push(this.$t("App.NumberInput.GreaterOrEqualError",{min:this.min})),(!this.dynamicRange&&this.numInput>this.max||this.numInput<this.min)&&e.push(this.$t("App.NumberInput.MustBeBetweenError",{min:this.min,max:this.max})),e}submitInput(){this.errors().length>0||(!this.dynamicRange&&this.numInput>this.max?this.value=this.max:this.value=this.numInput,this.sendCmd())}resetSlider(){this.value=this.defaultValue,this.numInput=this.defaultValue,this.processedMax=this.max,this.value>=this.processedMax&&(this.processedMax=(Math.ceil(this.value/this.dynamicStep)+1)*this.dynamicStep),this.sendCmd()}sendCmd(){const e=(Math.max(1,this.value)*this.attributeScale).toFixed(0),s="".concat(this.command," ").concat(this.attributeName).concat(e);this.$store.dispatch("server/addEvent",{message:s,type:"command"}),this.$socket.emit("printer.gcode.script",{script:s}),this.startLockTimer()}decrement(){this.value=this.value>this.min?Math.round(this.value-this.step):this.min,this.sendCmd()}increment(){this.value=this.value<this.processedMax||this.dynamicRange?Math.round(this.value+this.step):this.processedMax,this.sendCmd()}};tt([P({type:Number,required:!0})],Ze.prototype,"target",2);tt([P({type:String,required:!0})],Ze.prototype,"command",2);tt([P({type:String,default:""})],Ze.prototype,"attributeName",2);tt([P({default:""})],Ze.prototype,"label",2);tt([P({type:String,default:""})],Ze.prototype,"icon",2);tt([P({type:String,default:"%"})],Ze.prototype,"unit",2);tt([P({type:Number,default:1})],Ze.prototype,"attributeScale",2);tt([P({type:Number,default:0})],Ze.prototype,"min",2);tt([P({type:Number,default:100})],Ze.prototype,"max",2);tt([P({type:Boolean,required:!1,default:!1})],Ze.prototype,"hasInputField",2);tt([P({type:Boolean,default:!1})],Ze.prototype,"dynamicRange",2);tt([P({type:Number,default:100})],Ze.prototype,"defaultValue",2);tt([P({type:Number,default:100})],Ze.prototype,"step",2);tt([P({type:Number,default:1})],Ze.prototype,"multi",2);tt([me("lockSliders",{immediate:!0})],Ze.prototype,"lockSlidersChanged",1);tt([qe(250)],Ze.prototype,"changeSlider",1);tt([me("value",{immediate:!0})],Ze.prototype,"valueChanged",1);tt([me("target",{immediate:!0})],Ze.prototype,"targetChanged",1);tt([me("max",{immediate:!0})],Ze.prototype,"maxChanged",1);Ze=tt([D],Ze);var nM=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t($,{attrs:{dense:""}},[t(_,{staticClass:"pa-0"},[t(_s,{staticClass:"_tool-slider-subheader px-1"},[t(v,{staticClass:"mr-2",attrs:{small:""}},[e._v(" "+e._s(e.icon)+" ")]),t("span",[e._v(e._s(e.label))]),e.value!==e.defaultValue&&!e.hasInputField?t(g,{staticClass:"ml-2",attrs:{"x-small":"",icon:"",disabled:e.isLocked},on:{click:e.resetSlider}},[t(v,[e._v(e._s(e.mdiRestart))])],1):e._e(),t(ae),e.hasInputField?e._e():t("span",{staticClass:"font-weight-bold"},[e._v(e._s(e.value)+" "+e._s(e.unit))]),t("form",{on:{submit:function(r){return r.preventDefault(),e.submitInput.apply(null,arguments)}}},[e.hasInputField?t(te,{staticClass:"_slider-input d-flex align-center pt-1",attrs:{error:e.errors().length>0,suffix:e.unit,type:"number","hide-spin-buttons":"","hide-details":"",outlined:"",dense:""},on:{blur:function(r){e.numInput=e.value},focus:function(r){return r.target.select()},keydown:e.checkInvalidChars},scopedSlots:e._u([e.value!==e.defaultValue||e.value!==e.numInput?{key:"append",fn:function(){return[t(v,{attrs:{small:""},on:{click:e.resetSlider}},[e._v(e._s(e.mdiRestart))])]},proxy:!0}:null],null,!0),model:{value:e.numInput,callback:function(r){e.numInput=r},expression:"numInput"}}):e._e()],1)],1),t("transition",{attrs:{name:"fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.errors().length>0,expression:"errors().length > 0"}],staticClass:"_error-msg d-flex justify-end"},[e._v(" "+e._s(e.errors()[0])+" ")])]),t(q,{staticClass:"pa-0 d-flex align-center"},[e.lockSliders&&e.isTouchDevice?t(g,{staticClass:"_lock-button",attrs:{plain:"",small:"",icon:""},on:{click:function(r){e.isLocked=!e.isLocked}}},[t(v,{attrs:{small:"",color:e.isLocked?"red":""}},[e._v(" "+e._s(e.isLocked?e.mdiLockOutline:e.mdiLockOpenVariantOutline)+" ")])],1):e._e(),t(kc,{directives:[{name:"touch",rawName:"v-touch",value:{start:e.resetLockTimer},expression:"{ start: resetLockTimer }"}],attrs:{disabled:e.isLocked,min:e.min,max:e.processedMax,color:e.colorBar,"hide-details":""},on:{change:e.changeSlider},scopedSlots:e._u([{key:"prepend",fn:function(){return[t(v,{attrs:{disabled:e.isLocked||e.value<=e.min},on:{click:e.decrement}},[e._v(e._s(e.mdiMinus))])]},proxy:!0},{key:"append",fn:function(){return[t(v,{attrs:{disabled:e.isLocked||e.value>=e.max&&!e.dynamicRange},on:{click:e.increment}},[e._v(" "+e._s(e.mdiPlus)+" ")])]},proxy:!0}]),model:{value:e.value,callback:function(r){e.value=r},expression:"value"}})],1)],1)],1)},aM=[];const kg={};var oM=E(Ze,nM,aM,!1,lM,"2b843f9d",null,null);function lM(e){for(let s in kg)this[s]=kg[s]}const Qc=function(){return oM.exports}();var cM=Object.defineProperty,uM=Object.getOwnPropertyDescriptor,y2=(e,s,t,r)=>{for(var i=r>1?void 0:r?uM(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&cM(s,t,i),i};let Qo=class extends M(O,$i){constructor(){super(...arguments),this.mdiArrowDownBold=tT,this.mdiArrowUpBold=rT,this.mdiPrinter3dNozzle=Ws}get feedamounts(){var s,t;return(t=(s=this.$store.state.gui.control.extruder)==null?void 0:s.feedamounts)!=null?t:[]}get feedrates(){var s,t;return(t=(s=this.$store.state.gui.control.extruder)==null?void 0:s.feedrates)!=null?t:[]}get feedamountsSorted(){return[...this.feedamounts].sort((s,t)=>t-s)}get feedratesSorted(){return[...this.feedrates].sort((s,t)=>t-s)}setFeedamount(s){this.$store.dispatch("gui/saveSetting",{name:"control.extruder.feedamount",value:s.value})}setFeedrate(s){this.$store.dispatch("gui/saveSetting",{name:"control.extruder.feedrate",value:s.value})}get maxExtrudeOnlyDistance(){var s,t;return(t=(s=this.activeExtruderSettings)==null?void 0:s.max_extrude_only_distance)!=null?t:50}get tooLargeExtrusion(){return this.feedamount*this.extrudeFactor>this.maxExtrudeOnlyDistance}onMaxExtrudeOnlyDistanceChange(){this.feedamount>this.maxExtrudeOnlyDistance&&this.setFeedamount({value:this.maxExtrudeOnlyDistance})}sendRetract(){const s="M83\nG1 E-".concat(this.feedamount," F").concat(this.feedrate*60);this.$store.dispatch("server/addEvent",{message:s,type:"command"}),this.$socket.emit("printer.gcode.script",{script:s},{loading:"btnRetract"})}sendExtrude(){const s="M83\nG1 E".concat(this.feedamount," F").concat(this.feedrate*60);this.$store.dispatch("server/addEvent",{message:s,type:"command"}),this.$socket.emit("printer.gcode.script",{script:s},{loading:"btnDetract"})}};y2([me("maxExtrudeOnlyDistance",{immediate:!0})],Qo.prototype,"onMaxExtrudeOnlyDistanceChange",1);Qo=y2([D({components:{NumberInput:je,Responsive:et,ToolSlider:Qc}})],Qo);var dM=Object.defineProperty,mM=Object.getOwnPropertyDescriptor,hM=(e,s,t,r)=>{for(var i=r>1?void 0:r?mM(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&dM(s,t,i),i};let em=class extends M(O,$i){constructor(){super(...arguments),this.mdiDiameterVariant=xT,this.mdiInformationOutline=Ny}get showEstimatedExtrusion(){var s;return(s=this.$store.state.gui.control.extruder.showEstimatedExtrusionInfo)!=null?s:!0}get extrudedLength(){return Math.round(this.feedamount*this.extrudeFactor*(Math.pow(this.filamentDiameter,2)/Math.pow(this.nozzleDiameter,2)))}get speed_factor(){var s,t;return(t=(s=this.$store.state.printer.gcode_move)==null?void 0:s.speed_factor)!=null?t:1}get volumetricFlow(){return Math.round(Math.pow(this.filamentDiameter/2,2)*Math.PI*this.feedrate*this.speed_factor*10)/10}get showTooltip(){return this.speed_factor!==1||this.extrudeFactor!==1}};em=hM([D({})],em);var pM=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.showEstimatedExtrusion?t(Ae,{staticClass:"pa-0 ma-0 pb-2"},[t("div",{staticClass:"text--disabled text-caption font-weight-light d-flex justify-center",staticStyle:{"font-size":"0.8em"}},[t("span",[e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.EstimatedExtrusion"))+" ~ "+e._s(e.extrudedLength)+" mm @ "+e._s(e.volumetricFlow)+" mm³/s - "),t(v,{staticStyle:{opacity:"0.4","margin-top":"-2px"},attrs:{"x-small":""}},[e._v(" "+e._s(e.mdiDiameterVariant)+" ")]),e._v(" "+e._s(e.nozzleDiameter)+" mm "),e.showTooltip?t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(v,e._g(e._b({attrs:{small:"",color:"warning"}},"v-icon",n,!1),i),[e._v(" "+e._s(e.mdiInformationOutline)+" ")])]}}],null,!1,3195294278)},[t("span",[e.speed_factor!==1?t("div",[e._v(" "+e._s(e.$t("Panels.ToolheadControlPanel.SpeedFactor"))+": "+e._s(e.speed_factor*100)+" % ")]):e._e(),e.extrudeFactor!==1?t("div",[e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.ExtrusionFactor"))+": "+e._s(e.extrudeFactor*100)+" % ")]):e._e()])]):e._e()],1)])]):e._e()},fM=[];const Fg={};var gM=E(em,pM,fM,!1,vM,null,null,null);function vM(e){for(let s in Fg)this[s]=Fg[s]}const _M=function(){return gM.exports}();var bM=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(et,{attrs:{breakpoints:{large:function(r){return r.width>=640}}},scopedSlots:e._u([{key:"default",fn:function(r){var i=r.el;return[t(Ae,[t($,[t(_,[t(je,{attrs:{label:e.$t("Panels.ExtruderControlPanel.FilamentLength"),param:"feedamount",target:e.feedamount,disabled:e.printerIsPrintingOnly,"output-error-msg":!0,"has-spinner":!0,"spinner-factor":100,step:.01,min:.01,max:e.maxExtrudeOnlyDistance,dec:2,unit:"mm","submit-on-blur":!0},on:{submit:e.setFeedamount}}),t(Vt,{staticClass:"_btn-group pt-3"},e._l(e.feedamountsSorted,function(n){return t(g,{key:n,staticClass:"_btn-qs flex-grow-1 px-0",attrs:{disabled:e.printerIsPrintingOnly,dense:""},on:{click:function(a){return e.setFeedamount({value:n})}}},[e._v(" "+e._s(n)+" ")])}),1)],1),t(_,[t(je,{attrs:{label:e.$t("Panels.ExtruderControlPanel.ExtrusionFeedrate"),param:"feedrate",target:e.feedrate,disabled:e.printerIsPrintingOnly,"has-spinner":!0,"output-error-msg":!0,"spinner-factor":100,step:.01,min:.01,max:null,dec:2,type:"number",unit:"mm/s"},on:{submit:e.setFeedrate}}),t(Vt,{staticClass:"_btn-group pt-3"},e._l(e.feedratesSorted,function(n){return t(g,{key:n,staticClass:"_btn-qs flex-grow-1 px-0",attrs:{disabled:e.printerIsPrintingOnly,dense:""},on:{click:function(a){return e.setFeedrate({value:n})}}},[e._v(" "+e._s(n)+" ")])}),1)],1),i.is.large?t(_,{staticClass:"col-3 d-flex align-center flex-column justify-center"},[t(de,{attrs:{left:"",disabled:e.extrudePossible&&!e.tooLargeExtrusion,color:"secondary"},scopedSlots:e._u([{key:"activator",fn:function(n){var a=n.on;return[t("div",e._g({staticClass:"mb-4"},a),[t(g,{staticClass:"_btn-extruder-cmd",attrs:{loading:e.loadings.includes("btnRetract"),disabled:!e.extrudePossible||e.tooLargeExtrusion||e.printerIsPrintingOnly,small:""},on:{click:function(o){return e.sendRetract()}}},[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(e._s(e.mdiArrowUpBold))]),e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.Retract"))+" ")],1)],1)]}}],null,!0)},[t("span",{directives:[{name:"show",rawName:"v-show",value:!e.extrudePossible,expression:"!extrudePossible"}]},[e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.ExtruderTempTooLow"))+" "+e._s(e.minExtrudeTemp)+" °C ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:e.tooLargeExtrusion,expression:"tooLargeExtrusion"}]},[e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.TooLargeExtrusion"))+" "),t("br"),e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.Requested"))+": "+e._s(e.feedamount*e.extrudeFactor)+" mm "),t("br"),e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.Allowed"))+": "+e._s(e.maxExtrudeOnlyDistance)+" mm ")])]),t(de,{attrs:{left:"",disabled:e.extrudePossible&&!e.tooLargeExtrusion,color:"secondary"},scopedSlots:e._u([{key:"activator",fn:function(n){var a=n.on;return[t("div",e._g({},a),[t(g,{staticClass:"_btn-extruder-cmd",attrs:{loading:e.loadings.includes("btnDetract"),disabled:!e.extrudePossible||e.tooLargeExtrusion||e.printerIsPrintingOnly,small:""},on:{click:function(o){return e.sendExtrude()}}},[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(e._s(e.mdiArrowDownBold))]),e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.Extrude"))+" ")],1)],1)]}}],null,!0)},[t("span",{directives:[{name:"show",rawName:"v-show",value:!e.extrudePossible,expression:"!extrudePossible"}]},[e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.ExtruderTempTooLow"))+" "+e._s(e.minExtrudeTemp)+" °C ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:e.tooLargeExtrusion,expression:"tooLargeExtrusion"}]},[e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.TooLargeExtrusion"))+" "),t("br"),e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.Requested"))+": "+e._s(e.feedamount*e.extrudeFactor)+" mm "),t("br"),e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.Allowed"))+": "+e._s(e.maxExtrudeOnlyDistance)+" mm ")])])],1):e._e()],1),i.is.large?e._e():t($,[t(_,{staticClass:"pa-0"},[t("div",{staticClass:"d-flex justify-space-around"},[t("div",{staticClass:"d-flex align-center"},[t(de,{attrs:{top:"",disabled:e.extrudePossible&&!e.tooLargeExtrusion,color:"secondary"},scopedSlots:e._u([{key:"activator",fn:function(n){var a=n.on;return[t("div",e._g({staticClass:"pt-1 pb-2 px-3"},a),[t(g,{staticClass:"_btn-extruder-cmd",attrs:{loading:e.loadings.includes("btnRetract"),disabled:!e.extrudePossible||e.tooLargeExtrusion||e.printerIsPrintingOnly,small:""},on:{click:function(o){return e.sendRetract()}}},[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(e._s(e.mdiArrowUpBold))]),e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.Retract"))+" ")],1)],1)]}}],null,!0)},[t("span",{directives:[{name:"show",rawName:"v-show",value:!e.extrudePossible,expression:"!extrudePossible"}]},[e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.ExtruderTempTooLow"))+" "+e._s(e.minExtrudeTemp)+" °C ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:e.tooLargeExtrusion,expression:"tooLargeExtrusion"}]},[e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.TooLargeExtrusion"))+" "),t("br"),e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.Requested"))+": "+e._s(e.feedamount*e.extrudeFactor)+" mm "),t("br"),e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.Allowed"))+": "+e._s(e.maxExtrudeOnlyDistance)+" mm ")])]),t(de,{attrs:{top:"",disabled:e.extrudePossible&&!e.tooLargeExtrusion,color:"secondary"},scopedSlots:e._u([{key:"activator",fn:function(n){var a=n.on;return[t("div",e._g({staticClass:"pt-1 pb-2 px-3"},a),[t(g,{staticClass:"_btn-extruder-cmd",attrs:{loading:e.loadings.includes("btnDetract"),disabled:!e.extrudePossible||e.tooLargeExtrusion||e.printerIsPrintingOnly,small:""},on:{click:function(o){return e.sendExtrude()}}},[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(e._s(e.mdiArrowDownBold))]),e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.Extrude"))+" ")],1)],1)]}}],null,!0)},[t("span",{directives:[{name:"show",rawName:"v-show",value:!e.extrudePossible,expression:"!extrudePossible"}]},[e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.ExtruderTempTooLow"))+" "+e._s(e.minExtrudeTemp)+" °C ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:e.tooLargeExtrusion,expression:"tooLargeExtrusion"}]},[e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.TooLargeExtrusion"))+" "),t("br"),e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.Requested"))+": "+e._s(e.feedamount*e.extrudeFactor)+" mm "),t("br"),e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.Allowed"))+": "+e._s(e.maxExtrudeOnlyDistance)+" mm ")])])],1)])])],1)],1),t(_M)]}}])})},yM=[];const Rg={};var CM=E(Qo,bM,yM,!1,$M,"eba60532",null,null);function $M(e){for(let s in Rg)this[s]=Rg[s]}const xM=function(){return CM.exports}();var wM=Object.defineProperty,SM=Object.getOwnPropertyDescriptor,C2=(e,s,t,r)=>{for(var i=r>1?void 0:r?SM(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&wM(s,t,i),i};let el=class extends M(O,Ke){get retractLength(){var e,s,t;return Math.floor(((t=(s=(e=this.$store.state.printer)==null?void 0:e.firmware_retraction)==null?void 0:s.retract_length)!=null?t:0)*100)/100}get retractSpeed(){var e,s,t;return Math.trunc((t=(s=(e=this.$store.state.printer)==null?void 0:e.firmware_retraction)==null?void 0:s.retract_speed)!=null?t:20)}get unretractExtraLength(){var e,s,t;return Math.floor(((t=(s=(e=this.$store.state.printer)==null?void 0:e.firmware_retraction)==null?void 0:s.unretract_extra_length)!=null?t:0)*100)/100}get unretractSpeed(){var e,s,t;return Math.trunc((t=(s=(e=this.$store.state.printer)==null?void 0:e.firmware_retraction)==null?void 0:s.unretract_speed)!=null?t:10)}get defaultRetractLength(){var e,s,t,r,i;return Math.floor(((i=(r=(t=(s=(e=this.$store.state.printer)==null?void 0:e.configfile)==null?void 0:s.settings)==null?void 0:t.firmware_retraction)==null?void 0:r.retract_length)!=null?i:0)*100)/100}get defaultRetractSpeed(){var e,s,t,r,i;return Math.trunc((i=(r=(t=(s=(e=this.$store.state.printer)==null?void 0:e.configfile)==null?void 0:s.settings)==null?void 0:t.firmware_retraction)==null?void 0:r.retract_speed)!=null?i:20)}get defaultUnretractExtraLength(){var e,s,t,r,i;return Math.floor(((i=(r=(t=(s=(e=this.$store.state.printer)==null?void 0:e.configfile)==null?void 0:s.settings)==null?void 0:t.firmware_retraction)==null?void 0:r.unretract_extra_length)!=null?i:0)*100)/100}get defaultUnretractSpeed(){var e,s,t,r,i;return Math.trunc((i=(r=(t=(s=(e=this.$store.state.printer)==null?void 0:e.configfile)==null?void 0:s.settings)==null?void 0:t.firmware_retraction)==null?void 0:r.unretract_speed)!=null?i:0)}sendCmd(e){const s="SET_RETRACTION ".concat(e.name,"=").concat(e.value);this.$store.dispatch("server/addEvent",{message:s,type:"command"}),this.$socket.emit("printer.gcode.script",{script:s})}};C2([qe(500)],el.prototype,"sendCmd",1);el=C2([D({components:{Panel:B,NumberInput:je,Responsive:et}})],el);var PM=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.existsFirmwareRetraction?t("div",[t(Ae,[t(et,{attrs:{breakpoints:{small:function(r){return r.width<=350}}},scopedSlots:e._u([{key:"default",fn:function(r){var i=r.el;return[t($,[t(_,{class:{"col-12":i.is.small}},[t(je,{attrs:{label:e.$t("Panels.ExtruderControlPanel.FirmwareRetractionSettings.RetractLength"),param:"RETRACT_LENGTH",target:e.retractLength,"default-value":e.defaultRetractLength,"output-error-msg":!0,"has-spinner":!0,"spinner-factor":10,step:.01,min:0,max:null,dec:2,unit:"mm"},on:{submit:e.sendCmd}})],1),t(_,{class:{"col-12":i.is.small}},[t(je,{attrs:{label:e.$t("Panels.ExtruderControlPanel.FirmwareRetractionSettings.RetractSpeed"),param:"RETRACT_SPEED",target:e.retractSpeed,"default-value":e.defaultRetractSpeed,"output-error-msg":!0,"has-spinner":!0,"spinner-factor":5,step:1,min:1,max:null,dec:0,unit:"mm/s"},on:{submit:e.sendCmd}})],1)],1),t($,[t(_,{class:{"col-12":i.is.small}},[t(je,{attrs:{label:e.$t("Panels.ExtruderControlPanel.FirmwareRetractionSettings.UnretractExtraLength"),param:"UNRETRACT_EXTRA_LENGTH",target:e.unretractExtraLength,"default-value":e.defaultUnretractExtraLength,"output-error-msg":!0,"has-spinner":!0,"spinner-factor":10,step:.01,min:0,max:null,dec:2,unit:"mm"},on:{submit:e.sendCmd}})],1),t(_,{class:{"col-12":i.is.small}},[t(je,{attrs:{label:e.$t("Panels.ExtruderControlPanel.FirmwareRetractionSettings.UnretractSpeed"),param:"UNRETRACT_SPEED",target:e.unretractSpeed,"default-value":e.defaultUnretractSpeed,"output-error-msg":!0,"has-spinner":!0,"spinner-factor":5,step:1,min:1,max:null,dec:0,unit:"mm/s"},on:{submit:e.sendCmd}})],1)],1)]}}],null,!1,259554286)})],1)],1):e._e()},DM=[];const jg={};var TM=E(el,PM,DM,!1,MM,null,null,null);function MM(e){for(let s in jg)this[s]=jg[s]}const EM=function(){return TM.exports}();var OM=Object.defineProperty,LM=Object.getOwnPropertyDescriptor,$2=(e,s,t,r)=>{for(var i=r>1?void 0:r?LM(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&OM(s,t,i),i};let tl=class extends M(O){constructor(){super(...arguments),this.mdiRestart=Zr,this.extruders=[],this.selectedExtruder=""}resetToActiveExtruder(){var s;this.selectedExtruder=(s=this.$store.state.printer.toolhead)==null?void 0:s.extruder}get allExtruders(){return Object.keys(this.$store.state.printer).forEach(s=>{s.startsWith("extruder")&&!this.extruders.includes(s)&&this.extruders.push(s)}),this.extruders.length===1&&this.resetToActiveExtruder(),this.extruders}get activeExtruder(){var s;return this.resetToActiveExtruder(),(s=this.$store.state.printer.toolhead)==null?void 0:s.extruder}get pressureAdvance(){var s,t,r;return Math.floor(((r=(t=(s=this.$store.state.printer)==null?void 0:s[this.selectedExtruder])==null?void 0:t.pressure_advance)!=null?r:0)*1e3)/1e3}get smoothTime(){var s,t,r;return Math.floor(((r=(t=(s=this.$store.state.printer)==null?void 0:s[this.selectedExtruder])==null?void 0:t.smooth_time)!=null?r:.04)*1e3)/1e3}get defaultPressureAdvance(){var s,t,r,i;return Math.floor(((i=(r=(t=(s=this.$store.state.printer.configfile)==null?void 0:s.settings)==null?void 0:t[this.selectedExtruder])==null?void 0:r.pressure_advance)!=null?i:0)*1e3)/1e3}get defaultSmoothTime(){var s,t,r,i;return Math.floor(((i=(r=(t=(s=this.$store.state.printer.configfile)==null?void 0:s.settings)==null?void 0:t[this.selectedExtruder])==null?void 0:r.pressure_advance_smooth_time)!=null?i:.04)*1e3)/1e3}sendCmd(s){const t="SET_PRESSURE_ADVANCE EXTRUDER=".concat(this.selectedExtruder," ").concat(s.name,"=").concat(s.value);this.$store.dispatch("server/addEvent",{message:t,type:"command"}),this.$socket.emit("printer.gcode.script",{script:t})}};$2([qe(500)],tl.prototype,"sendCmd",1);tl=$2([D({components:{NumberInput:je,Panel:B,Responsive:et}})],tl);var AM=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(et,{attrs:{breakpoints:{small:function(r){return r.width<=350},medium:function(r){return r.width>350&&r.width<=500}}},scopedSlots:e._u([{key:"default",fn:function(r){var i=r.el;return[t(Ae,[t($,[e.allExtruders.length>1?t(_,{class:{"col-12":i.is.small||i.is.medium}},[t("div",{staticClass:"d-flex align-center"},[e.selectedExtruder!==e.activeExtruder?t(g,{attrs:{icon:"",plain:""},on:{click:e.resetToActiveExtruder}},[t(v,[e._v(e._s(e.mdiRestart))])],1):e._e(),t(Ee,{attrs:{label:e.$t("Panels.ExtruderControlPanel.PressureAdvanceSettings.Extruder"),items:e.allExtruders,value:e.activeExtruder,"hide-details":"",outlined:"",dense:""},model:{value:e.selectedExtruder,callback:function(n){e.selectedExtruder=n},expression:"selectedExtruder"}})],1)]):e._e(),t(_,{class:{"col-12":i.is.small}},[t(je,{attrs:{label:e.$t("Panels.ExtruderControlPanel.PressureAdvanceSettings.Advance"),param:"ADVANCE",target:e.pressureAdvance,"default-value":e.defaultPressureAdvance,extruder:e.selectedExtruder,"output-error-msg":!0,"has-spinner":!0,min:0,max:null,step:.001,dec:3,unit:"s"},on:{submit:e.sendCmd}})],1),t(_,{class:{"col-12":i.is.small}},[t(je,{attrs:{label:e.$t("Panels.ExtruderControlPanel.PressureAdvanceSettings.SmoothTime"),param:"SMOOTH_TIME",target:e.smoothTime,"default-value":e.defaultSmoothTime,extruder:e.selectedExtruder,"output-error-msg":!0,"has-spinner":!0,"spinner-factor":10,min:0,max:.2,step:.001,dec:3,unit:"s"},on:{submit:e.sendCmd}})],1)],1)],1)]}}])})},kM=[];const Hg={};var FM=E(tl,AM,kM,!1,RM,null,null,null);function RM(e){for(let s in Hg)this[s]=Hg[s]}const jM=function(){return FM.exports}();var HM=Object.defineProperty,IM=Object.getOwnPropertyDescriptor,NM=(e,s,t,r)=>{for(var i=r>1?void 0:r?IM(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&HM(s,t,i),i};let tm=class extends M(O,$i){constructor(){super(...arguments),this.mdiPrinter3dNozzleOutline=s3}};tm=NM([D({})],tm);var VM=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Ae,[t(Qc,{attrs:{label:e.$t("Panels.ExtruderControlPanel.ExtrusionFactor"),icon:e.mdiPrinter3dNozzleOutline,target:e.extrudeFactor,min:1,max:200,multi:100,step:1,"has-input-field":!0,command:"M221","attribute-name":"S"}})],1)},UM=[];const Ig={};var BM=E(tm,VM,UM,!1,WM,null,null,null);function WM(e){for(let s in Ig)this[s]=Ig[s]}const GM=function(){return BM.exports}();var zM=Object.defineProperty,ZM=Object.getOwnPropertyDescriptor,qM=(e,s,t,r)=>{for(var i=r>1?void 0:r?ZM(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&zM(s,t,i),i};let sm=class extends M(O,Ke){constructor(){super(...arguments),this.mdiPrinter3dNozzle=Ws}get rows(){let t=[];for(let r=0;r<this.toolchangeMacros.length;r+=6)t.push(this.toolchangeMacros.slice(r,r+6));return t}};sm=qM([D({})],sm);var XM=Object.defineProperty,YM=Object.getOwnPropertyDescriptor,x2=(e,s,t,r)=>{for(var i=r>1?void 0:r?YM(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&XM(s,t,i),i};let sl=class extends M(O,Ke){get active(){var s;return(s=this.macro.variables.active)!=null?s:!1}get color(){var t,r;const s=(r=(t=this.macro.variables.color)!=null?t:this.macro.variables.colour)!=null?r:null;return s===""||s==="undefined"?null:s}get primaryColor(){return this.$store.state.gui.uiSettings.primary}get primaryTextColor(){let s=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(this.primaryColor);if(s){const t=parseInt(s[1],16)*.2126,r=parseInt(s[2],16)*.7152,i=parseInt(s[3],16)*.0722;return(t+r+i)/255>.7?"#222":"#fff"}return"#ffffff"}get warningColor(){var s,t,r,i,n;return(n=(i=(r=(t=(s=this.$vuetify)==null?void 0:s.theme)==null?void 0:t.currentTheme)==null?void 0:r.warning)==null?void 0:i.toString())!=null?n:"#ff8300"}get buttonStyle(){let s="";return this.active&&(s=this.homedAxes.includes("xyz")?this.primaryColor:this.warningColor),{color:this.active?this.primaryTextColor:"","background-color":s}}get dotStyle(){return{"border-color":this.active?this.primaryTextColor:"","background-color":"#"+this.color}}};x2([P({type:Object})],sl.prototype,"macro",2);sl=x2([D({components:{}})],sl);var JM=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(g,{staticClass:"flex-grow-1 px-0",style:e.buttonStyle,attrs:{disabled:e.printerIsPrintingOnly,dense:""},on:{click:function(r){return e.doSend(e.macro.name)}}},[e.color!=null?t("span",{staticClass:"_extruderColorState mr-1",style:e.dotStyle}):e._e(),e._v(" "+e._s(e.macro.name)+" ")])},KM=[];const Ng={};var QM=E(sl,JM,KM,!1,eE,"956e3986",null,null);function eE(e){for(let s in Ng)this[s]=Ng[s]}const tE=function(){return QM.exports}();var sE=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"mb-3"},e._l(e.rows,function(r,i){return t($,{key:"row_"+i,staticClass:"mt-0"},[t(_,[t(Vt,{staticClass:"_btn-group py-0 px-3"},e._l(r,function(n){return t(tE,{key:n.name,attrs:{macro:n}})}),1)],1)],1)}),1)},rE=[];const Vg={};var iE=E(sm,sE,rE,!1,nE,"2b552b14",null,null);function nE(e){for(let s in Vg)this[s]=Vg[s]}const aE=function(){return iE.exports}();var oE=Object.defineProperty,lE=Object.getOwnPropertyDescriptor,cE=(e,s,t,r)=>{for(var i=r>1?void 0:r?lE(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&oE(s,t,i),i};let rm=class extends M(O,Ke){constructor(){super(...arguments),this.mdiCog=us}get showTools(){var e;return(e=this.$store.state.gui.view.extruder.showTools)!=null?e:!0}set showTools(e){this.$store.dispatch("gui/saveSetting",{name:"view.extruder.showTools",value:e})}get showExtrusionFactor(){var e;return(e=this.$store.state.gui.view.extruder.showExtrusionFactor)!=null?e:!0}set showExtrusionFactor(e){this.$store.dispatch("gui/saveSetting",{name:"view.extruder.showExtrusionFactor",value:e})}get existsPressureAdvance(){return!(this.$store.getters["printer/getExtruderSteppers"].length>0)}get showPressureAdvance(){var e;return(e=this.$store.state.gui.view.extruder.showPressureAdvance)!=null?e:!0}set showPressureAdvance(e){this.$store.dispatch("gui/saveSetting",{name:"view.extruder.showPressureAdvance",value:e})}get showFirmwareRetraction(){var e;return(e=this.$store.state.gui.view.extruder.showFirmwareRetraction)!=null?e:!0}set showFirmwareRetraction(e){this.$store.dispatch("gui/saveSetting",{name:"view.extruder.showFirmwareRetraction",value:e})}get showExtruderControl(){var e;return(e=this.$store.state.gui.view.extruder.showExtruderControl)!=null?e:!0}set showExtruderControl(e){this.$store.dispatch("gui/saveSetting",{name:"view.extruder.showExtruderControl",value:e})}};rm=cE([D],rm);var uE=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t($e,{attrs:{"offset-y":!0,left:!0,"close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({attrs:{icon:"",tile:""}},"v-btn",n,!1),i),[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiCog))])],1)]}}])},[t(Oe,[e.toolchangeMacros.length?t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.ExtruderControlPanel.Tools")},model:{value:e.showTools,callback:function(r){e.showTools=r},expression:"showTools"}})],1):e._e(),t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.ExtruderControlPanel.ExtrusionFactor")},model:{value:e.showExtrusionFactor,callback:function(r){e.showExtrusionFactor=r},expression:"showExtrusionFactor"}})],1),e.existsPressureAdvance?t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.ExtruderControlPanel.PressureAdvance")},model:{value:e.showPressureAdvance,callback:function(r){e.showPressureAdvance=r},expression:"showPressureAdvance"}})],1):e._e(),e.existsFirmwareRetraction?t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.ExtruderControlPanel.FirmwareRetraction")},model:{value:e.showFirmwareRetraction,callback:function(r){e.showFirmwareRetraction=r},expression:"showFirmwareRetraction"}})],1):e._e(),t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.ExtruderControlPanel.ExtruderControl")},model:{value:e.showExtruderControl,callback:function(r){e.showExtruderControl=r},expression:"showExtruderControl"}})],1)],1)],1)},dE=[];const Ug={};var mE=E(rm,uE,dE,!1,hE,null,null,null);function hE(e){for(let s in Ug)this[s]=Ug[s]}const pE=function(){return mE.exports}();var fE=Object.defineProperty,gE=Object.getOwnPropertyDescriptor,nn=(e,s,t,r)=>{for(var i=r>1?void 0:r?gE(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&fE(s,t,i),i};let ur=class extends M(O){constructor(){super(...arguments),this.DEFAULT_DESC="G-Code macro",this.mdiCloseThick=pe,this.mdiMenuDown=fr,this.mdiRefresh=tn,this.paramArray=[],this.params={},this.paramsDialog=!1}get klipperMacro(){return this.$store.getters["printer/getMacro"](this.macro.name)}get isGcodeStyle(){return this.macro.name.match(/[G|M]\d{1,3}/gm)}get paramCols(){if(this.isMobile)return 1;const e=Math.ceil(this.paramArray.length/5);return e>4?4:e}get paramCssCols(){return 12/this.paramCols}get paramsOverlayWidth(){return 200*this.paramCols}get hasDescription(){return this.klipperMacro.description&&this.klipperMacro.description!==this.DEFAULT_DESC}klipperMacroChange(){this.refreshParams()}refreshParams(){var e;this.paramArray.splice(0,this.paramArray.length),this.params={},((e=this.klipperMacro)==null?void 0:e.params)!==null&&Object.keys(this.klipperMacro.params).forEach(s=>{s.startsWith("_")||(this.paramArray.push(s),this.params[s]={type:this.klipperMacro.params[s].type,default:this.klipperMacro.params[s].default,value:""})})}doSendMacro(e){this.$store.dispatch("server/addEvent",{message:e,type:"command"}),this.$socket.emit("printer.gcode.script",{script:e},{loading:"macro_"+e})}sendWithParams(){let e=[];this.paramArray.forEach(t=>{var i;let r=(i=this.params[t].value)==null?void 0:i.toString().trim();if(this.params[t].value!==null&&r!==""){let n=t;r!=null&&r.includes(" ")&&(r='"'.concat(r,'"')),n+=this.isGcodeStyle?r:"=".concat(r),e.push(n)}});const s=this.macro.name+" "+e.join(" ");this.doSendMacro(s)}mounted(){this.refreshParams()}};nn([P({required:!0})],ur.prototype,"macro",2);nn([P({default:"primary"})],ur.prototype,"color",2);nn([P({default:null})],ur.prototype,"alias",2);nn([P({default:!1})],ur.prototype,"disabled",2);nn([me("klipperMacro")],ur.prototype,"klipperMacroChange",1);ur=nn([D({components:{Panel:B}})],ur);var vE=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Vt,{staticClass:"d-inline-block"},[t(de,{attrs:{disabled:!e.hasDescription,top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({class:e.paramArray.length?"macroWithParameters":"",attrs:{small:"",color:e.color,loading:e.loadings.includes("macro_"+e.macro.name),disabled:e.disabled},on:{click:function(a){return e.doSendMacro(e.macro.name)}}},"v-btn",n,!1),i),[e._v(" "+e._s(e.alias?e.alias:e.macro.name.replace(/_/g," "))+" ")])]}}])},[t("span",[e._v(e._s(e.klipperMacro.description))])]),e.paramArray.length?[e.isMobile?[t(g,{staticClass:"minwidth-0 px-1 btnMacroMenu",attrs:{disabled:e.disabled,color:e.color,small:""},on:{click:function(r){e.paramsDialog=!0}}},[t(v,[e._v(e._s(e.mdiMenuDown))])],1),t(oe,{model:{value:e.paramsDialog,callback:function(r){e.paramsDialog=r},expression:"paramsDialog"}},[t(B,{attrs:{title:e.macro.name,"card-class":"macro-params-mobile-".concat(e.macro.name),"margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.paramsDialog=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}],null,!1,2576054633)},[t(q,[t($,e._l(e.paramArray,function(r,i){return t(_,{key:"param_mobile_"+i,attrs:{cols:6}},[t(te,{attrs:{label:r,placeholder:e.params[r].default,"persistent-placeholder":!0,"hide-details":"",outlined:"",dense:"",clearable:"","clear-icon":e.mdiRefresh},on:{keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.sendWithParams.apply(null,arguments)}},model:{value:e.params[r].value,callback:function(n){e.$set(e.params[r],"value",n)},expression:"params[name].value"}})],1)}),1)],1),t(ne,{staticClass:"px-4 pb-4"},[t(g,{staticClass:"text-uppercase",attrs:{color:"primary",block:""},on:{click:e.sendWithParams}},[e._v(" "+e._s(e.$t("Panels.MacrosPanel.Send"))+" ")])],1)],1)],1)]:t($e,{attrs:{"offset-y":"","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"minwidth-0 px-1 btnMacroMenu",attrs:{disabled:e.disabled,color:e.color,small:""}},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.mdiMenuDown))])],1)]}}],null,!1,3313662284)},[t(xe,{attrs:{"max-width":e.paramsOverlayWidth}},[t(q,{staticClass:"py-2"},[t($,{staticClass:"my-2"},e._l(e.paramArray,function(r,i){return t(_,{key:"param_"+i,attrs:{cols:e.paramCssCols}},[t(te,{attrs:{label:r,placeholder:e.params[r].default,"persistent-placeholder":!0,"hide-details":"",outlined:"",dense:"",clearable:"","clear-icon":e.mdiRefresh},on:{keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.sendWithParams.apply(null,arguments)}},model:{value:e.params[r].value,callback:function(n){e.$set(e.params[r],"value",n)},expression:"params[name].value"}})],1)}),1),t($,{staticClass:"my-2"},[t(_,{staticClass:"py-0"},[t(g,{staticClass:"text-uppercase",attrs:{color:"primary",block:""},on:{click:e.sendWithParams}},[e._v(" "+e._s(e.$t("Panels.MacrosPanel.Send"))+" ")])],1)],1)],1)],1)],1)]:e._e()],2)},_E=[];const Bg={};var bE=E(ur,vE,_E,!1,yE,"26a7856d",null,null);function yE(e){for(let s in Bg)this[s]=Bg[s]}const Ks=function(){return bE.exports}();var CE=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.showPanel?t(B,{attrs:{icon:e.mdiPrinter3dNozzle,title:e.$t("Panels.ExtruderControlPanel.Headline"),collapsible:!0,"card-class":"extruder-control-panel"},scopedSlots:e._u([{key:"buttons",fn:function(){return[e.showFilamentMacros?t($e,{attrs:{"offset-y":!0,"close-on-content-click":!1,left:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({attrs:{icon:"",tile:""}},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.mdiDotsVertical))])],1)]}}],null,!1,2883138713)},[t(Oe,{attrs:{dense:""}},[e.unloadFilamentMacro?t(J,[t(de,{attrs:{top:"",disabled:e.canExecuteUnloadMacro,color:"secondary"},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on;return[t("div",e._g({},i),[t(Ks,{attrs:{macro:e.unloadFilamentMacro,alias:e.$t("Panels.ExtruderControlPanel.UnloadFilament"),disabled:!e.canExecuteUnloadMacro||e.printerIsPrintingOnly,color:"#272727"}})],1)]}}],null,!1,3835858943)},[t("span",[e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.ExtruderTempTooLow"))+" "+e._s(e.minExtrudeTemp)+" °C ")])])],1):e._e(),e.loadFilamentMacro?t(J,[t(de,{attrs:{top:"",disabled:e.canExecuteLoadMacro,color:"secondary"},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on;return[t("div",e._g({},i),[t(Ks,{attrs:{macro:e.loadFilamentMacro,alias:e.$t("Panels.ExtruderControlPanel.LoadFilament"),disabled:!e.canExecuteLoadMacro||e.printerIsPrintingOnly,color:"#272727"}})],1)]}}],null,!1,1294394980)},[t("span",[e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.ExtruderTempTooLow"))+" "+e._s(e.minExtrudeTemp)+" °C ")])])],1):e._e(),e.purgeFilamentMacro?t(J,[t(de,{attrs:{top:"",disabled:e.canExecutePurgeMacro,color:"secondary"},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on;return[t("div",e._g({},i),[t(Ks,{attrs:{macro:e.purgeFilamentMacro,alias:e.$t("Panels.ExtruderControlPanel.PurgeFilament"),disabled:!e.canExecutePurgeMacro||e.printerIsPrintingOnly,color:"#272727"}})],1)]}}],null,!1,2789275863)},[t("span",[e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.ExtruderTempTooLow"))+" "+e._s(e.minExtrudeTemp)+" °C ")])])],1):e._e(),e.cleanNozzleMacro?t(J,[t(Ks,{attrs:{macro:e.cleanNozzleMacro,alias:e.$t("Panels.ExtruderControlPanel.CleanNozzle"),disabled:e.printerIsPrintingOnly,color:"#272727"}})],1):e._e()],1)],1):e._e(),t(pE)]},proxy:!0}],null,!1,40833120)},[e.showTools&&e.toolchangeMacros.length?t(aE):e._e(),e.showExtrusionFactor?[e.showTools?t(U):e._e(),t(GM)]:e._e(),e.showPressureAdvance?[e.showTools||e.showExtrusionFactor?t(U):e._e(),t(jM)]:e._e(),e.showFirmwareRetraction?[e.showTools||e.showExtrusionFactor||e.showPressureAdvance?t(U):e._e(),t(EM)]:e._e(),e.showExtruderControl?[e.showTools||e.showExtrusionFactor||e.showPressureAdvance||e.showFirmwareRetraction?t(U):e._e(),t(xM)]:e._e()],2):e._e()},$E=[];const Wg={};var xE=E(Jd,CE,$E,!1,wE,null,null,null);function wE(e){for(let s in Wg)this[s]=Wg[s]}const SE=function(){return xE.exports}(),eu=(e,s)=>{s!==null&&typeof s=="object"&&Object.keys(s).forEach(t=>{const r=s[t];typeof r=="object"&&!Array.isArray(r)&&t in e&&r!==null&&e[t]!==null?eu(e[t],r):y.set(e,t,r)})},jt=(e,s)=>{if(e!=null&&s.length){const t=e==null?void 0:e.find(r=>r.isDirectory&&r.filename===s[0]);if(t){if(s.shift(),t.childrens&&s.length)return jt(t.childrens,s);if(t.childrens)return t.childrens}return e}return null},At=(e,s)=>e.sort((t,r)=>{const i=t[s].toLowerCase(),n=r[s].toLowerCase();return i<n?-1:i>n?1:0}),jr=e=>e.charAt(0).toUpperCase()+e.slice(1),PE=e=>e.replace(/_/g," ").replace(/(?:^\w|[A-Z]|\b\w)/g,(s,t)=>t===0?s.toLowerCase():s.toUpperCase()).replace(/\s+/g,"");function Ap(e){return e=e.replace(/^!! /g,""),e=e.replace(/\n!! /g,"\n"),e=e.replace(/^\/\/ /g,""),e=e.replace(/\n\/\/ /g,"\n"),e=e.replace(/^echo:/g,""),e=e.replace(/^echo: /g,""),e=e.replace("\n// ","<br>"),e=e.replace(/\r\n|\r|\n/g,"<br>"),e}const at=e=>{let s="";return e=e.replace(/_/g," "),e.split(" ").forEach(t=>{s+=" "+t.charAt(0).toUpperCase()+t.slice(1)}),s=s.slice(1),s},Je=e=>{let s=-1;const t=[" kB"," MB"," GB"," TB"," PB"," EB"," ZB"," YB"];do e=e/1024,s++;while(e>1024);return Math.max(e,.1).toFixed(1)+t[s]},DE=e=>{let s=-1;const t=[" kHz"," MHz"," GHz"];do e=e/1e3,s++;while(e>1e3);return Math.max(e,.1).toFixed()+t[s]},tu=(e,s=!0)=>{if(!e)return"--";const t=[];if(s){const a=Math.floor(e/86400);a&&(e%=3600*24,t.push("".concat(a,"d")))}const r=Math.floor(e/3600);e%=3600,r&&t.push("".concat(r,"h"));const i=Math.floor(e/60);i&&t.push("".concat(i,"m"));const n=e%60;return n&&t.push("".concat(n.toFixed(0),"s")),t.join(" ")},kp=(e,s,t)=>{const r=s.length?s[0]:"filename",i=t[0];return e!==null&&(e.sort(function(n,a){if(n[r]===a[r])return 0;if(n[r]===null||n[r]===void 0)return-1;if(a[r]===null||a[r]===void 0)return 1;if(n[r].constructor===String&&a[r].constructor===String)return n[r].localeCompare(a[r],void 0,{sensivity:"base"});if(n[r]instanceof Array&&a[r]instanceof Array){const o=n[r].length?n.filament.reduce((c,u)=>c+u):0,l=a[r].length?a.filament.reduce((c,u)=>c+u):0;return o-l}return n[r]-a[r]}),i&&e.reverse(),e.sort((n,a)=>n.isDirectory===a.isDirectory?0:n.isDirectory?-1:1)),e!=null?e:[]};function rl(e,s){var i,n;const t=Math.min((i=e==null?void 0:e.length)!=null?i:Number.MAX_VALUE,(n=s==null?void 0:s.length)!=null?n:Number.MAX_VALUE);let r=0;for(;r<t&&!(e.charCodeAt(r)^s.charCodeAt(r));)r+=1;return e.substr(0,r)}function Fp(e){return e===""?"":Fp(e.substr(1))+e.charAt(0)}function TE(e){var a,o,l;const s=/{%?.*?params\.([A-Za-z_0-9]+)(?:\|(int|string|double))?(?:\|default\('?"?(.*?)"?'?\))?(?:\|(int|string))?.*?%?}/;let t=s.exec(e.gcode),r=e.gcode,i=null;for(;t;){i===null&&(i={});const c=t[1],u=(o=(a=t[2])!=null?a:t[4])!=null?o:null,d=(l=t[3])!=null?l:null;i["".concat(c)]={type:u,default:d},r=r.replace(t[0],""),t=s.exec(r)}const n=/{%?.*?if.*?'([A-Za-z_0-9]+)' (?:not )?in params.*?%?}/;for(t=n.exec(e.gcode),r=e.gcode;t;){i===null&&(i={});const c=t[1];"".concat(c)in i||(i["".concat(c)]={type:null,default:null}),r=r.replace(t[0],""),t=n.exec(r)}return i}function im(e){e.preventDefault(),e.returnValue=""}function ME(e){if(navigator.clipboard){navigator.clipboard.writeText(e);return}const s=document.createElement("textarea");let t=document.getElementById("devices-dialog");t||(t=document.body),s.value=e,s.style.position="absolute",s.style.top="0",s.style.left="0",s.style.zIndex="100000",s.style.opacity="0",t.appendChild(s),s.focus(),s.select();try{document.execCommand("copy")}catch(r){console.error("Unable to copy to clipboard",r)}s.remove()}function w2(e,s){const t=parseInt(e.split("x")[0]),r=parseInt(s.split("x")[0]);return t-r}var EE=Object.defineProperty,OE=Object.getOwnPropertyDescriptor,LE=(e,s,t,r)=>{for(var i=r>1?void 0:r?OE(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&EE(s,t,i),i};let Ns=class extends O{get macrogroups(){var e;return(e=this.$store.getters["gui/macros/getAllMacrogroups"])!=null?e:[]}get webcams(){var e;return(e=this.$store.getters["gui/webcams/getWebcams"])!=null?e:[]}getPanelName(e){var s;if(e.startsWith("macrogroup_")){const t=(s=e.split("_")[1])!=null?s:"",r=this.macrogroups.find(i=>i.id===t);return r?r.name:"Macrogroup"}if(e.includes("-")){let t="";return e.split("-").forEach(i=>{t+=jr(i)}),this.$t("Panels.".concat(t,"Panel.Headline"))}return this.$t("Panels.".concat(jr(e),"Panel.Headline"))}convertPanelnameToIcon(e){if(e.startsWith("macrogroup_"))return zn;switch(e){case"webcam":return sn;case"zoffset":return eT;case"toolhead-control":return wp;case"macros":return zn;case"miscellaneous":return _p;case"temperature":return o2;case"miniconsole":return Fa;case"machine-settings":return Ay;case"extruder-control":return Ws;default:return kt}}};Ns=LE([D],Ns);var AE=Object.defineProperty,kE=Object.getOwnPropertyDescriptor,Rp=(e,s,t,r)=>{for(var i=r>1?void 0:r?kE(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&AE(s,t,i),i};let qn=class extends M(O){get colorMainsail(){return"200,200,200"}get colorMoonraker(){return this.moonraker?"200,200,200":"115,115,115"}get colorKlipper(){return this.klipper?"200,200,200":"115,115,115"}};Rp([P({default:!1})],qn.prototype,"moonraker",2);Rp([P({default:!1})],qn.prototype,"klipper",2);qn=Rp([D],qn);var FE=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("svg",{staticStyle:{"fill-rule":"evenodd","clip-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2"},attrs:{width:"100%",height:"100%",viewBox:"0 0 430 70",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","xml:space":"preserve","xmlns:serif":"http://www.serif.com/"}},[t("g",{attrs:{id:"Mainsail",transform:"matrix(1,0,0,1,10,0)"}},[t("g",{attrs:{id:"Mainsail_text",transform:"matrix(1,0,0,1,-54.2745,6.1424)"}},[t("text",{style:"font-family:Roboto;font-size:16px;fill:rgb("+e.colorMainsail+");",attrs:{x:"47.429px",y:"60.749px"}},[e._v(" Mainsail ")])]),t("g",{attrs:{id:"Mainsail_icon",transform:"matrix(1.00478,0,0,1.00478,-1.35436,-0.18202)"}},[t("g",{attrs:{transform:"matrix(0.101469,0,0,0.101469,1.34792,1.1764)"}},[t("path",{style:"fill:rgb("+e.colorMainsail+");fill-rule:nonzero;",attrs:{d:"M286.718,107.235L99.735,392.115L0,392.01L258.225,0C264.135,36.795 273.9,73.26 286.718,107.235"}})]),t("g",{attrs:{transform:"matrix(0.101469,0,0,0.101469,1.34792,1.1764)"}},[t("path",{style:"fill:rgb("+e.colorMainsail+");fill-rule:nonzero;",attrs:{d:"M309.96,160.155L156.375,392.19L256.08,392.332L357.353,237.585C339.518,213.218 323.648,187.328 309.96,160.155"}})]),t("g",{attrs:{transform:"matrix(0.101469,0,0,0.101469,1.34792,1.1764)"}},[t("path",{style:"fill:rgb("+e.colorMainsail+");fill-rule:nonzero;",attrs:{d:"M449.535,335.768L412.597,392.332L312.75,392.115L388.95,276.862C407.61,298.012 427.868,317.707 449.535,335.767L449.535,335.768Z"}})])])]),t("g",{attrs:{id:"Mainsail_Moonraker",transform:"matrix(1,0,0,1,1.49628,0)"}},[t("g",{attrs:{id:"arrow_left1","serif:id":"arrow_left",transform:"matrix(0.687874,0,0,0.721154,20.3568,-15.8811)"}},[t("path",{style:"fill:rgb("+e.colorMoonraker+")",attrs:{d:"M93.918,56.626L93.918,60.724L73.299,52.528L93.918,44.333L93.918,48.431L118.741,48.431L118.741,56.626L93.918,56.626Z"}})]),t("g",{attrs:{id:"arrow_right1","serif:id":"arrow_right",transform:"matrix(-0.687874,-8.42403e-17,8.83159e-17,-0.721154,217.125,59.8811)"}},[t("path",{style:"fill:rgb("+e.colorMoonraker+")",attrs:{d:"M93.918,56.626L93.918,60.724L73.299,52.528L93.918,44.333L93.918,48.431L118.741,48.431L118.741,56.626L93.918,56.626Z"}})]),e.moonraker?t("g",{attrs:{id:"success1","serif:id":"success",transform:"matrix(1.1,0,0,1.1,105.541,9.8)"}},[t("path",{staticStyle:{fill:"rgb(38, 203, 124)","fill-rule":"nonzero"},attrs:{d:"M20,12C20,16.389 16.389,20 12,20C7.611,20 4,16.389 4,12C4,7.611 7.611,4 12,4C12.76,4 13.5,4.11 14.2,4.31L15.77,2.74C14.61,2.26 13.34,2 12,2C6.514,2 2,6.514 2,12C2,17.486 6.514,22 12,22C17.486,22 22,17.486 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}})]):t("g",{attrs:{id:"alert1","serif:id":"alert",transform:"matrix(1.1,0,0,1.1,105.541,9.8)"}},[t("path",{staticStyle:{fill:"rgb(245, 124, 5)","fill-rule":"nonzero"},attrs:{d:"M11,15L13,15L13,17L11,17L11,15M11,7L13,7L13,13L11,13L11,7M12,2C6.47,2 2,6.5 2,12C2,17.486 6.514,22 12,22C17.486,22 22,17.486 22,12C22,6.514 17.486,2 12,2M12,20C7.611,20 4,16.389 4,12C4,7.611 7.611,4 12,4C16.389,4 20,7.611 20,12C20,16.389 16.389,20 12,20Z"}})])]),t("g",{attrs:{id:"Moonraker",transform:"matrix(1,0,0,1,10,0)"}},[t("g",{attrs:{id:"Moonraker_text",transform:"matrix(1,0,0,1,120.368,6.1424)"}},[t("text",{style:"fill:rgb("+e.colorMoonraker+");font-family:Roboto;font-size:16px;",attrs:{x:"45.429px",y:"60.749px"}},[e._v(" Moonraker ")])]),t("g",{attrs:{id:"Moonraker_icon",transform:"matrix(2,0,0,2,181,-5)"}},[t("path",{style:"fill:rgb("+e.colorMoonraker+");fill-rule:nonzero;",attrs:{d:"M13,19L14,19C14.549,19 15,19.451 15,20L22,20L22,22L15,22C15,22.549 14.549,23 14,23L10,23C9.451,23 9,22.549 9,22L2,22L2,20L9,20C9,19.451 9.451,19 10,19L11,19L11,17L4,17C3.451,17 3,16.549 3,16L3,12C3,11.451 3.451,11 4,11L20,11C20.549,11 21,11.451 21,12L21,16C21,16.549 20.549,17 20,17L13,17L13,19M4,3L20,3C20.549,3 21,3.451 21,4L21,8C21,8.549 20.549,9 20,9L4,9C3.451,9 3,8.549 3,8L3,4C3,3.451 3.451,3 4,3M9,7L10,7L10,5L9,5L9,7M9,15L10,15L10,13L9,13L9,15M5,5L5,7L7,7L7,5L5,5M5,13L5,15L7,15L7,13L5,13Z"}})])]),t("g",{attrs:{id:"Moonraker_Klipper",transform:"matrix(1,0,0,1,194.593,0)"}},[t("g",{attrs:{id:"arrow_left",transform:"matrix(0.687874,0,0,0.721154,20.3568,-15.8811)"}},[t("path",{staticStyle:{fill:"rgb(115, 115, 115)"},attrs:{d:"M93.918,56.626L93.918,60.724L73.299,52.528L93.918,44.333L93.918,48.431L118.741,48.431L118.741,56.626L93.918,56.626Z"}})]),t("g",{attrs:{id:"arrow_right",transform:"matrix(-0.687874,-8.42403e-17,8.83159e-17,-0.721154,217.125,59.8811)"}},[t("path",{staticStyle:{fill:"rgb(115, 115, 115)"},attrs:{d:"M93.918,56.626L93.918,60.724L73.299,52.528L93.918,44.333L93.918,48.431L118.741,48.431L118.741,56.626L93.918,56.626Z"}})]),e.moonraker?[e.klipper?t("g",{attrs:{id:"success",transform:"matrix(1.1,0,0,1.1,105.541,9.8)"}},[t("path",{staticStyle:{fill:"rgb(38, 203, 124)","fill-rule":"nonzero"},attrs:{d:"M20,12C20,16.389 16.389,20 12,20C7.611,20 4,16.389 4,12C4,7.611 7.611,4 12,4C12.76,4 13.5,4.11 14.2,4.31L15.77,2.74C14.61,2.26 13.34,2 12,2C6.514,2 2,6.514 2,12C2,17.486 6.514,22 12,22C17.486,22 22,17.486 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}})]):t("g",{attrs:{id:"alert",transform:"matrix(1.1,0,0,1.1,105.541,9.8)"}},[t("path",{staticStyle:{fill:"rgb(245, 124, 5)","fill-rule":"nonzero"},attrs:{d:"M11,15L13,15L13,17L11,17L11,15M11,7L13,7L13,13L11,13L11,7M12,2C6.47,2 2,6.5 2,12C2,17.486 6.514,22 12,22C17.486,22 22,17.486 22,12C22,6.514 17.486,2 12,2M12,20C7.611,20 4,16.389 4,12C4,7.611 7.611,4 12,4C16.389,4 20,7.611 20,12C20,16.389 16.389,20 12,20Z"}})])]:[t("g",{attrs:{id:"unknown",transform:"matrix(1.1,0,0,1.1,105.541,9.8)"}},[t("path",{staticStyle:{fill:"rgb(115, 115, 115)","fill-rule":"nonzero"},attrs:{d:"M11,18L13,18L13,16L11,16L11,18M12,2C6.514,2 2,6.514 2,12C2,17.486 6.514,22 12,22C17.486,22 22,17.486 22,12C22,6.514 17.486,2 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,6C9.806,6 8,7.806 8,10L10,10C10,8.903 10.903,8 12,8C13.097,8 14,8.903 14,10C14,12 11,11.75 11,15L13,15C13,12.75 16,12.5 16,10C16,7.806 14.194,6 12,6Z"}})])]],2),t("g",{attrs:{id:"Klipper",transform:"matrix(1,0,0,1,10,0)"}},[t("g",{attrs:{id:"Klipper_text",transform:"matrix(1,0,0,1,317.036,6.1424)"}},[t("text",{style:"font-family:Roboto;font-size:16px;fill:rgb("+e.colorKlipper+");",attrs:{x:"48.429px",y:"60.749px"}},[e._v(" Klipper ")])]),t("g",{attrs:{id:"Klipper_icon",transform:"matrix(2,0,0,2,366,-3)"}},[t("path",{style:"fill:rgb("+e.colorKlipper+");fill-rule:nonzero;",attrs:{d:"M19,6C19.549,6 20,5.549 20,5C20,4.451 19.549,4 19,4C18.451,4 18,4.451 18,5C18,5.549 18.451,6 19,6M19,2C20.646,2 22,3.354 22,5L22,11L18,11L18,7L6,7L6,11L2,11L2,5C2,3.354 3.354,2 5,2L19,2M18,18.25C18,18.63 17.79,18.96 17.47,19.13L12.57,21.82C12.4,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L6.53,19.13C6.21,18.96 6,18.63 6,18.25L6,13C6,12.62 6.21,12.29 6.53,12.12L11.43,9.68C11.59,9.56 11.79,9.5 12,9.5C12.21,9.5 12.4,9.56 12.57,9.68L17.47,12.12C17.79,12.29 18,12.62 18,13L18,18.25M12,11.65L9.04,13L12,14.6L14.96,13L12,11.65M8,17.66L11,19.29L11,16.33L8,14.71L8,17.66M16,17.66L16,14.71L13,16.33L13,19.29L16,17.66Z"}})])])])},RE=[];const Gg={};var jE=E(qn,FE,RE,!1,HE,null,null,null);function HE(e){for(let s in Gg)this[s]=Gg[s]}const su=function(){return jE.exports}();var IE=Object.defineProperty,NE=Object.getOwnPropertyDescriptor,VE=(e,s,t,r)=>{for(var i=r>1?void 0:r?NE(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&IE(s,t,i),i};let nm=class extends M(O){constructor(){super(...arguments),this.mdiPrinter3d=Ha,this.mdiRestart=Zr,this.mdiDownload=Oy,this.mdiPower=Yy}get klippy_message(){var e;return(e=this.$store.state.server.klippy_message)!=null?e:null}get messageType(){switch(this.klipperState){case"startup":return{color:"info",icon:l3};case"shutdown":return{color:"warning",icon:Wn};case"error":return{color:"error",icon:Wn};case"disconnected":return{color:"",icon:fp};default:return{color:"",icon:WT}}}get buttonClasses(){return[this.messageType.color+"--text","my-1","w-100"]}get serviceReportsKlipper(){return"".concat(this.$t("Panels.KlippyStatePanel.ServiceReports",{service:"Klipper"}),": ").concat(this.klipperState.toUpperCase())}get serviceReportsMoonraker(){return"".concat(this.$t("Panels.KlippyStatePanel.ServiceReports",{service:"Moonraker"}),": ").concat(this.klipperState.toUpperCase())}restart(){this.$socket.emit("printer.restart",{},{loading:"restart"})}firmwareRestart(){this.$socket.emit("printer.firmware_restart",{},{loading:"firmwareRestart"})}downloadLog(e){e.preventDefault();let s="";"href"in e.target.attributes&&(s=e.target.attributes.href.value),"href"in e.target.parentElement.attributes&&(s=e.target.parentElement.attributes.href.value),window.open(s)}powerOn(){this.$socket.emit("machine.device_power.post_device",{device:this.printerPowerDevice,action:"on"},{action:"server/power/responseToggle"})}};nm=VE([D({components:{Panel:B,ConnectionStatus:su}})],nm);var UE=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.klipperState!=="ready"&&e.socketIsConnected?t("div",[e.klippyIsConnected?t(it,{staticClass:"mb-0 mb-6",attrs:{color:e.messageType.color,dense:"",text:"",border:"left"}},[t("p",{staticClass:"font-weight-medium d-flex align-center"},[t(v,{staticClass:"pr-2",attrs:{color:e.messageType.color}},[e._v(e._s(e.messageType.icon))]),e._v(" "+e._s(e.serviceReportsKlipper)+" ")],1),e.klippy_message!==null?t("div",[t("pre",{staticStyle:{"white-space":"pre-wrap"}},[e._v(e._s(e.klippy_message.trim()))]),t(U,{staticClass:"mt-2 pb-3"}),t($,[t(_,[t(g,{class:e.buttonClasses,attrs:{small:"",outlined:"",text:""},on:{click:e.restart}},[t(v,{staticClass:"mr-sm-2"},[e._v(e._s(e.mdiRestart))]),e._v(" "+e._s(e.$t("Panels.KlippyStatePanel.Restart"))+" ")],1),t(g,{class:e.buttonClasses,attrs:{small:"",outlined:"",text:""},on:{click:e.firmwareRestart}},[t(v,{staticClass:"mr-sm-2"},[e._v(e._s(e.mdiRestart))]),e._v(" "+e._s(e.$t("Panels.KlippyStatePanel.FirmwareRestart"))+" ")],1)],1),t(_,[t(g,{class:e.buttonClasses,attrs:{href:e.apiUrl+"/server/files/klippy.log",small:"",outlined:"",text:""},on:{click:e.downloadLog}},[t(v,{staticClass:"mr-2"},[e._v(e._s(e.mdiDownload))]),e._v(" "+e._s(e.$t("Panels.KlippyStatePanel.KlipperLog"))+" ")],1),t(g,{class:e.buttonClasses,attrs:{href:e.apiUrl+"/server/files/moonraker.log",small:"",outlined:"",text:""},on:{click:e.downloadLog}},[t(v,{staticClass:"mr-2"},[e._v(e._s(e.mdiDownload))]),e._v(" "+e._s(e.$t("Panels.KlippyStatePanel.MoonrakerLog"))+" ")],1)],1)],1)],1):t(q,{staticClass:"text-center py-3"},[t(dt,{attrs:{indeterminate:"",color:e.messageType.color}})],1)],1):e.isPrinterPowerOff?t(it,{staticClass:"mb-6",attrs:{dense:"",text:"",border:"left"}},[t("p",{staticClass:"font-weight-medium d-flex align-center"},[t(v,{staticClass:"pr-2"},[e._v(e._s(e.messageType.icon))]),e._v(" "+e._s(e.$t("Panels.KlippyStatePanel.PrinterSwitchedOff"))+" ")],1),t("p",[e._v(e._s(e.$t("Panels.KlippyStatePanel.PrinterSwitchedOffDescription")))]),t($,[t(_,{staticClass:"text-center"},[t(g,{class:"".concat(e.messageType.color,"--text my-1"),attrs:{small:"",outlined:"",text:""},on:{click:e.powerOn}},[t(v,{staticClass:"mr-sm-2"},[e._v(e._s(e.mdiPower))]),e._v(" "+e._s(e.$t("Panels.KlippyStatePanel.PowerOn"))+" ")],1)],1)],1)],1):e.klipperState==="disconnected"?t(it,{staticClass:"mb-6",attrs:{dense:"",text:"",border:"left"}},[t("p",{staticClass:"font-weight-medium d-flex align-center"},[t(v,{staticClass:"pr-2"},[e._v(e._s(e.messageType.icon))]),e._v(" "+e._s(e.serviceReportsMoonraker)+" ")],1),t(su,{attrs:{moonraker:!0,klipper:!1}}),t("p",{staticClass:"mt-2 mb-0 text-center"},[e._v(e._s(e.$t("Panels.KlippyStatePanel.MoonrakerCannotConnect")))]),t("p",{staticClass:"mb-0 text-center"},[e._v(e._s(e.$t("Panels.KlippyStatePanel.CheckKlippyAndUdsAddress")))])],1):e._e()],1):e._e()},BE=[];const zg={};var WE=E(nm,UE,BE,!1,GE,null,null,null);function GE(e){for(let s in zg)this[s]=zg[s]}const Na=function(){return WE.exports}();var zE=Object.defineProperty,ZE=Object.getOwnPropertyDescriptor,Va=(e,s,t,r)=>{for(var i=r>1?void 0:r?ZE(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&zE(s,t,i),i};let Hr=class extends M(O){get expand(){return this.$store.getters["gui/getPanelExpand"](this.subPanelClass,this.viewport)}set expand(e){this.$store.dispatch("gui/saveExpandPanel",{name:this.subPanelClass,value:e,viewport:this.viewport})}};Va([P({required:!1,default:hr})],Hr.prototype,"iconExpanded",2);Va([P({required:!1,default:hr})],Hr.prototype,"iconCollapsed",2);Va([P({required:!0,default:""})],Hr.prototype,"title",2);Va([P({required:!0})],Hr.prototype,"subPanelClass",2);Hr=Va([D],Hr);var qE=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t("div",{staticClass:"px-3 d-flex align-center"},[t(g,{staticClass:"px-0 btn-collapsible",attrs:{plain:"",small:"",ripple:!1},on:{click:function(r){e.expand=!e.expand}}},[t(v,{class:e.expand?"":"icon-rotate-n90",attrs:{small:""}},[e._v(" "+e._s(e.expand?e.iconExpanded:e.iconCollapsed)+" ")]),t("span",{staticClass:"pl-1"},[e._v(e._s(e.title))])],1),t(U,{staticClass:"ml-3"})],1),t(Ac,[t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._t("default")],2)])],1)},XE=[];const Zg={};var YE=E(Hr,qE,XE,!1,JE,"28d7b868",null,null);function JE(e){for(let s in Zg)this[s]=Zg[s]}const S2=function(){return YE.exports}();var KE=Object.defineProperty,QE=Object.getOwnPropertyDescriptor,P2=(e,s,t,r)=>{for(var i=r>1?void 0:r?QE(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&KE(s,t,i),i};let il=class extends M(O){get velocity(){var e,s,t;return Math.trunc((t=(s=(e=this.$store.state.printer)==null?void 0:e.toolhead)==null?void 0:s.max_velocity)!=null?t:300)}get accel(){var e,s,t;return Math.trunc((t=(s=(e=this.$store.state.printer)==null?void 0:e.toolhead)==null?void 0:s.max_accel)!=null?t:3e3)}get accelToDecel(){var e,s,t;return Math.trunc((t=(s=(e=this.$store.state.printer)==null?void 0:e.toolhead)==null?void 0:s.max_accel_to_decel)!=null?t:this.accel/2)}get minimumCruiseRatio(){var s,t,r;const e=(r=(t=(s=this.$store.state.printer)==null?void 0:s.toolhead)==null?void 0:t.minimum_cruise_ratio)!=null?r:null;return e===null?null:Math.round(e*100)/100}get squareCornerVelocity(){var e,s,t;return Math.floor(((t=(s=(e=this.$store.state.printer)==null?void 0:e.toolhead)==null?void 0:s.square_corner_velocity)!=null?t:8)*10)/10}get defaultVelocity(){var e,s,t,r,i;return Math.trunc((i=(r=(t=(s=(e=this.$store.state.printer)==null?void 0:e.configfile)==null?void 0:s.settings)==null?void 0:t.printer)==null?void 0:r.max_velocity)!=null?i:300)}get defaultAccel(){var e,s,t,r,i;return Math.trunc((i=(r=(t=(s=(e=this.$store.state.printer)==null?void 0:e.configfile)==null?void 0:s.settings)==null?void 0:t.printer)==null?void 0:r.max_accel)!=null?i:3e3)}get defaultAccelToDecel(){var e,s,t,r,i;return Math.trunc((i=(r=(t=(s=(e=this.$store.state.printer)==null?void 0:e.configfile)==null?void 0:s.settings)==null?void 0:t.printer)==null?void 0:r.max_accel_to_decel)!=null?i:1500)}get defaultMinimumCruiseRatio(){var s,t,r,i,n;const e=(n=(i=(r=(t=(s=this.$store.state.printer)==null?void 0:s.configfile)==null?void 0:t.settings)==null?void 0:r.printer)==null?void 0:i.minimum_cruise_ratio)!=null?n:.5;return Math.round(e/10)*10}get defaultSquareCornerVelocity(){var s,t,r,i,n;const e=(n=(i=(r=(t=(s=this.$store.state.printer)==null?void 0:s.configfile)==null?void 0:t.settings)==null?void 0:r.printer)==null?void 0:i.square_corner_velocity)!=null?n:8;return Math.floor(e*10)/10}sendCmd(e){const s="SET_VELOCITY_LIMIT ".concat(e.name,"=").concat(e.value);this.$store.dispatch("server/addEvent",{message:s,type:"command"}),this.$socket.emit("printer.gcode.script",{script:s})}};P2([qe(500)],il.prototype,"sendCmd",1);il=P2([D({components:{Panel:B,NumberInput:je,Responsive:et}})],il);var eO=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Ae,[t(et,{attrs:{breakpoints:{small:function(r){return r.width<375},medium:function(r){return r.width>=375}}},scopedSlots:e._u([{key:"default",fn:function(r){var i=r.el;return[t($,[t(_,{class:{"col-12":i.is.small,"col-6":i.is.medium}},[t(je,{attrs:{label:e.$t("Panels.MachineSettingsPanel.MotionSettings.Velocity"),param:"VELOCITY",target:e.velocity,"default-value":e.defaultVelocity,"output-error-msg":!0,"has-spinner":!0,"spinner-factor":5,step:1,min:1,max:null,dec:0,unit:"mm/s"},on:{submit:e.sendCmd}})],1),t(_,{class:{"col-12":i.is.small,"col-6":i.is.medium}},[t(je,{attrs:{label:e.$t("Panels.MachineSettingsPanel.MotionSettings.SquareCornerVelocity"),param:"SQUARE_CORNER_VELOCITY",target:e.squareCornerVelocity,"default-value":e.defaultSquareCornerVelocity,"output-error-msg":!0,"has-spinner":!0,step:.1,min:.1,max:null,dec:1,unit:"mm/s"},on:{submit:e.sendCmd}})],1)],1),t($,[t(_,{class:{"col-12":i.is.small,"col-6":i.is.medium}},[t(je,{attrs:{label:e.$t("Panels.MachineSettingsPanel.MotionSettings.Acceleration"),param:"ACCEL",target:e.accel,"default-value":e.defaultAccel,"output-error-msg":!0,"has-spinner":!0,"spinner-factor":100,step:1,min:1,max:null,dec:0,unit:"mm/s²"},on:{submit:e.sendCmd}})],1),t(_,{class:{"col-12":i.is.small,"col-6":i.is.medium}},[e.minimumCruiseRatio===null?t(je,{attrs:{label:e.$t("Panels.MachineSettingsPanel.MotionSettings.MaxAccelToDecel"),param:"ACCEL_TO_DECEL",target:e.accelToDecel,"default-value":e.defaultAccelToDecel,"output-error-msg":!0,"has-spinner":!0,"spinner-factor":100,step:1,min:1,max:null,dec:0,unit:"mm/s²"},on:{submit:e.sendCmd}}):t(je,{attrs:{label:e.$t("Panels.MachineSettingsPanel.MotionSettings.MinimumCruiseRatio"),param:"MINIMUM_CRUISE_RATIO",target:e.minimumCruiseRatio,"default-value":e.defaultMinimumCruiseRatio,"output-error-msg":!0,"has-spinner":!0,"spinner-factor":5,step:.01,min:0,max:.99,dec:2},on:{submit:e.sendCmd}})],1)],1)]}}])})],1)},tO=[];const qg={};var sO=E(il,eO,tO,!1,rO,null,null,null);function rO(e){for(let s in qg)this[s]=qg[s]}const D2=function(){return sO.exports}();var iO=Object.defineProperty,nO=Object.getOwnPropertyDescriptor,aO=(e,s,t,r)=>{for(var i=r>1?void 0:r?nO(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&iO(s,t,i),i};let am=class extends M(O){constructor(){super(...arguments),this.mdiEngine=Ay}};am=aO([D({components:{Panel:B,SubPanel:S2,MotionSettings:D2}})],am);var oO=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.klipperReadyForGui?t(B,{attrs:{icon:e.mdiEngine,title:e.$t("Panels.MachineSettingsPanel.Headline").toString(),collapsible:!0,"card-class":"machine-settings-panel"}},[t("div",[t(D2)],1)]):e._e()},lO=[];const Xg={};var cO=E(am,oO,lO,!1,uO,null,null,null);function uO(e){for(let s in Xg)this[s]=Xg[s]}const dO=function(){return cO.exports}();var mO=Object.defineProperty,hO=Object.getOwnPropertyDescriptor,T2=(e,s,t,r)=>{for(var i=r>1?void 0:r?hO(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&mO(s,t,i),i};let nl=class extends M(O){constructor(){super(...arguments),this.mdiCodeTags=zn}get macrogroup(){return this.$store.getters["gui/macros/getMacrogroup"](this.panelId)}get allMacros(){var s;return(s=this.$store.getters["printer/getMacros"])!=null?s:[]}get macros(){var t,r;let s=(r=(t=this.macrogroup)==null?void 0:t.macros)!=null?r:[];return s=s.filter(i=>this.allMacros.find(n=>n.name.toLowerCase()===i.name.toLowerCase())?i.showInStandby&&["standby","cancelled","complete","error"].includes(this.printer_state)||i.showInPause&&this.printer_state==="paused"||i.showInPrinting&&this.printer_state==="printing":!1),s.sort((i,n)=>i.pos-n.pos)}get macrogroupStatus(){return this.macrogroup.showInStandby&&["standby","cancelled","complete","error"].includes(this.printer_state)||this.macrogroup.showInPause&&this.printer_state==="paused"||this.macrogroup.showInPrinting&&this.printer_state==="printing"}getColor(s){return s.color==="group"?this.macrogroup.color==="custom"?this.macrogroup.colorCustom:this.macrogroup.color:s.color}};T2([P({required:!0})],nl.prototype,"panelId",2);nl=T2([D({components:{MacroButton:Ks,Panel:B}})],nl);var pO=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.klipperReadyForGui&&e.macros.length>0&&e.macrogroupStatus?t(B,{attrs:{icon:e.mdiCodeTags,title:e.macrogroup.name,collapsible:!0,"card-class":"macrogroup_"+e.panelId+"_panel"}},[t(q,{staticClass:"py-2"},[t($,[t(_,{staticClass:"text-center"},e._l(e.macros,function(r,i){return t(Ks,{key:"macroparam_"+i,staticClass:"mx-1 my-1",attrs:{macro:r,color:e.getColor(r)}})}),1)],1)],1)],1):e._e()},fO=[];const Yg={};var gO=E(nl,pO,fO,!1,vO,null,null,null);function vO(e){for(let s in Yg)this[s]=Yg[s]}const _O=function(){return gO.exports}();var bO=Object.defineProperty,yO=Object.getOwnPropertyDescriptor,CO=(e,s,t,r)=>{for(var i=r>1?void 0:r?yO(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&bO(s,t,i),i};let om=class extends M(O){constructor(){super(...arguments),this.mdiCodeTags=zn}get hiddenMacros(){var s,t,r;return((r=(t=(s=this.$store.state.gui)==null?void 0:s.macros)==null?void 0:t.hiddenMacros)!=null?r:[]).map(i=>i.toLowerCase())}get macros(){return this.$store.getters["printer/getMacros"].filter(t=>!this.hiddenMacros.includes(t.name.toLowerCase()))}};om=CO([D({components:{MacroButton:Ks,Panel:B}})],om);var $O=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.klipperReadyForGui&&e.macros.length>0?t(B,{attrs:{icon:e.mdiCodeTags,title:e.$t("Panels.MacrosPanel.Headline"),collapsible:!0,"card-class":"macros-panel"}},[t(q,{staticClass:"py-2"},[t($,[t(_,{staticClass:"text-center"},e._l(e.macros,function(r,i){return t(Ks,{key:"macro_"+i,staticClass:"mx-1 my-1",attrs:{macro:r,color:"primary"}})}),1)],1)],1)],1):e._e()},xO=[];const Jg={};var wO=E(om,$O,xO,!1,SO,null,null,null);function SO(e){for(let s in Jg)this[s]=Jg[s]}const PO=function(){return wO.exports}();var DO=Object.defineProperty,TO=Object.getOwnPropertyDescriptor,M2=(e,s,t,r)=>{for(var i=r>1?void 0:r?TO(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&DO(s,t,i),i};let al=class extends M(O){get entryStyle(){var s;const e=["ma-0","flex-nowrap"];return e.push((s=this.$store.state.gui.console.entryStyle)!=null?s:"default"),this.event.type==="action"&&e.push("text--disabled"),e}get entryFormatTime(){return this.formatTime(this.event.date.getTime(),!0)}get messageClass(){const e=["console-message"];return this.event.type==="action"?e.push("text--disabled"):this.event.message.startsWith("!! ")?e.push("error--text"):e.push("text--primary"),e}commandClick(e){const s=e.target;if(s.localName==="a"&&s.className.indexOf("command")!==-1){const t=s.innerHTML.replace(/<br>/g,"\n");this.$emit("command-click",t)}}};M2([P({required:!0})],al.prototype,"event",2);al=M2([D],al);var MO=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t($,{class:e.entryStyle},[t(_,{staticClass:"col-auto pr-0 text--disabled console-time"},[e._v(e._s(e.entryFormatTime))]),t(_,{class:e.messageClass,staticStyle:{"min-width":"0"},domProps:{innerHTML:e._s(e.event.formatMessage)},on:{"!click":function(r){return e.commandClick.apply(null,arguments)}}})],1)},EO=[];const Kg={};var OO=E(al,MO,EO,!1,LO,"54d4632f",null,null);function LO(e){for(let s in Kg)this[s]=Kg[s]}const E2=function(){return OO.exports}();var AO=Object.defineProperty,kO=Object.getOwnPropertyDescriptor,jp=(e,s,t,r)=>{for(var i=r>1?void 0:r?kO(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&AO(s,t,i),i};let Xn=class extends y{commandClick(e){this.$emit("command-click",e)}};jp([P({required:!0})],Xn.prototype,"events",2);jp([P({required:!1,default:!1})],Xn.prototype,"isMini",2);Xn=jp([D({components:{ConsoleTableEntry:E2}})],Xn);var FO=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{class:"consoleTable "+(e.isMini?"mini":"")},[e.events.length===0?[t($,{staticClass:"pa-0 ma-0"},[t(_,{staticClass:"text-center py-3"},[e._v(e._s(e.$t("Console.Empty")))])],1)]:e._l(e.events,function(r,i){return t(E2,{key:i,staticClass:"consoleTableRow",attrs:{event:r},on:{"command-click":e.commandClick}})})],2)},RO=[];const Qg={};var jO=E(Xn,FO,RO,!1,HO,null,null,null);function HO(e){for(let s in Qg)this[s]=Qg[s]}const ru=function(){return jO.exports}();var IO=Object.defineProperty,NO=Object.getOwnPropertyDescriptor,iu=(e,s,t,r)=>{for(var i=r>1?void 0:r?NO(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&IO(s,t,i),i};let xi=class extends M(O){constructor(){super(...arguments),this.cmdListSearch="",this.isOpen=!1,this.mdiHelp=jy,this.mdiCloseThick=pe}get helplist(){var e;return(e=this.$store.state.printer.helplist)!=null?e:[]}get helplistFiltered(){return this.helplist.filter(e=>typeof e.description=="string"&&(!this.cmdListSearch||e.commandLow.includes(this.cmdListSearch.toLowerCase()))).sort((e,s)=>e.commandLow.localeCompare(s.commandLow))}onIsOpen(e){e||(this.cmdListSearch="")}};iu([P({required:!1,default:!1})],xi.prototype,"isMini",2);iu([P({required:!1,default:!1})],xi.prototype,"inToolbar",2);iu([me("isOpen")],xi.prototype,"onIsOpen",1);xi=iu([D({components:{Panel:B}})],xi);var VO=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{transition:"dialog-bottom-transition","max-width":"600",fullscreen:e.isMobile},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[e.inToolbar?[t(g,e._g(e._b({attrs:{icon:"",tile:""}},"v-btn",n,!1),i),[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiHelp))])],1)]:[t(g,e._g(e._b({staticClass:"gcode-command-btn px-2 minwidth-0",attrs:{color:"lightgray",small:e.isMini}},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.mdiHelp))])],1)]]}},{key:"default",fn:function(){return[t(B,{attrs:{title:e.$t("Console.CommandList"),icon:e.mdiHelp,"card-class":"command-help-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.isOpen=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(gt,[t($,[t(_,[t(te,{attrs:{label:"Search",outlined:"","hide-details":"",clearable:"",dense:""},model:{value:e.cmdListSearch,callback:function(r){e.cmdListSearch=r},expression:"cmdListSearch"}})],1)],1)],1),t(U),t("overlay-scrollbars",{staticClass:"command-help-content",class:e.isMobile?"mobileHeight":"height300"},[t(q,{staticClass:"pt-0"},[t($,[t(_,[t(Oe,e._l(e.helplistFiltered,function(r){return t(J,{key:r.commandLow,staticClass:"px-0",attrs:{"two-line":""}},[t(vt,{staticClass:"px-0"},[t(Ge,{staticClass:"primary--text font-weight-bold cursor-pointer",on:{click:function(i){e.$emit("onCommand",r.command),e.isOpen=!1}}},[e._v(" "+e._s(r.command)+" ")]),t(Aa,{staticClass:"text-wrap"},[e._v(" "+e._s(r.description)+" ")])],1)],1)}),1)],1)],1)],1)],1)],1)]},proxy:!0}]),model:{value:e.isOpen,callback:function(r){e.isOpen=r},expression:"isOpen"}})},UO=[];const e1={};var BO=E(xi,VO,UO,!1,WO,"4bf48be0",null,null);function WO(e){for(let s in e1)this[s]=e1[s]}const nu=function(){return BO.exports}();var GO=Object.defineProperty,zO=Object.getOwnPropertyDescriptor,Hp=(e,s,t,r)=>{for(var i=r>1?void 0:r?zO(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&GO(s,t,i),i};let Yn=class extends M(O){constructor(){super(...arguments),this.mdiTrashCan=u2,this.mdiConsoleLine=Fa,this.mdiCog=us,this.mdiSend=t2,this.mdiChevronDoubleRight=Ty,this.gcode="",this.lastCommandNumber=null,this.items=[],this.cmdListSearch=null}get helplist(){var s;return(s=this.$store.state.printer.helplist)!=null?s:[]}get consoleDirection(){var s;return(s=this.$store.state.gui.console.direction)!=null?s:"table"}get consoleHeight(){var s;return(s=this.$store.state.gui.console.height)!=null?s:300}get events(){return this.$store.getters["server/getConsoleEvents"](this.consoleDirection==="table",250)}eventsChanged(){this.consoleDirection==="shell"&&this.autoscroll&&setTimeout(()=>{this.scrollToBottom()},50)}autoscrollChanged(s){s&&this.scrollToBottom()}clearConsole(){this.$store.dispatch("gui/console/clear")}get hideWaitTemperatures(){return this.$store.state.gui.console.hideWaitTemperatures}set hideWaitTemperatures(s){this.$store.dispatch("gui/saveSetting",{name:"console.hideWaitTemperatures",value:s})}get hideTlCommands(){return this.$store.state.gui.console.hideTlCommands}set hideTlCommands(s){this.$store.dispatch("gui/saveSetting",{name:"console.hideTlCommands",value:s})}get customFilters(){return this.$store.state.gui.console.consolefilters}get rows(){var s,t;return(t=(s=this.gcode)==null?void 0:s.split("\n").length)!=null?t:1}get lastCommands(){var s;return(s=this.$store.state.gui.gcodehistory.entries)!=null?s:[]}get autoscroll(){var s;return(s=this.$store.state.gui.console.autoscroll)!=null?s:!0}set autoscroll(s){this.$store.dispatch("gui/saveSetting",{name:"console.autoscroll",value:s})}commandClick(s){this.gcode=s,this.$nextTick(()=>{this.$refs.gcodeCommandField.focus()})}doSend(s){s.shiftKey?this.gcode+="\n":this.gcode!==""&&(this.$store.dispatch("printer/sendGcode",this.gcode),this.$store.dispatch("gui/gcodehistory/addToHistory",this.gcode),this.gcode="",this.lastCommandNumber=null,setTimeout(()=>{this.$refs.console.$el.scroll({top:0,left:0,behavior:"smooth"})},20))}onKeyUp(){this.lastCommandNumber===null&&this.lastCommands.length?(this.lastCommandNumber=this.lastCommands.length-1,this.gcode=this.lastCommands[this.lastCommandNumber]):this.lastCommandNumber&&this.lastCommandNumber>0&&(this.lastCommandNumber--,this.gcode=this.lastCommands[this.lastCommandNumber])}onKeyDown(){this.lastCommandNumber!==null&&this.lastCommandNumber<this.lastCommands.length-1?(this.lastCommandNumber++,this.gcode=this.lastCommands[this.lastCommandNumber]):this.lastCommandNumber!==null&&this.lastCommandNumber===this.lastCommands.length-1&&(this.lastCommandNumber=null,this.gcode="")}getAutocomplete(s){if(s.preventDefault(),this.gcode.length){let t=this.gcode.toLowerCase();const r=this.$refs.gcodeCommandField.$refs.input,i=r.value,n=i.length,a=r.selectionStart,o=n-Fp(i).indexOf("\n",n-a),l=i.indexOf("\n",o)>-1?i.indexOf("\n",o)-1:Number.MAX_SAFE_INTEGER;this.rows>1&&(t=i.substr(o,l-o));let c=this.helplist.filter(u=>u.commandLow.startsWith(t.toLowerCase()));if((c==null?void 0:c.length)===1)this.rows>1?this.gcode=this.gcode.replace(t,c[0].command):this.gcode=c[0].command;else if((c==null?void 0:c.length)>1){let u=this.helplist.filter(d=>d.commandLow.startsWith(t.toLowerCase()));if(this.rows>1?this.gcode=this.gcode.replace(t,u.reduce((d,m)=>rl(d,m.command),u[0].command)):this.gcode=u.reduce((d,m)=>rl(d,m.command),u[0].command),u&&u.length){let d="";u.forEach(m=>d+='<a class="command font-weight-bold">'+m.command+"</a>: "+m.description+"<br />"),this.$store.dispatch("server/addEvent",{message:d,type:"autocomplete"})}}}this.$refs.gcodeCommandField.focus()}toggleFilter(s){this.$store.dispatch("gui/updateConsoleFilter",s)}mounted(){this.consoleDirection==="shell"&&this.scrollToBottom()}scrollToBottom(){this.$nextTick(()=>{if(this.$refs.miniConsoleScroll){const s=this.$refs.miniConsoleScroll.osInstance();s==null||s.scroll({y:"100%"})}})}scrollToTop(){this.$nextTick(()=>{if(this.$refs.miniConsoleScroll){const s=this.$refs.miniConsoleScroll.osInstance();s==null||s.scroll({y:"0%"})}})}};Hp([me("events")],Yn.prototype,"eventsChanged",1);Hp([me("autoscroll")],Yn.prototype,"autoscrollChanged",1);Yn=Hp([D({components:{Panel:B,ConsoleTable:ru,CommandHelpModal:nu}})],Yn);var ZO=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.socketIsConnected&&e.klipperState!=="disconnected"?t(B,{attrs:{icon:e.mdiConsoleLine,title:e.$t("Panels.MiniconsolePanel.Headline"),collapsible:!0,"card-class":"miniconsole-panel","hide-buttons-on-collapse":!0},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.clearConsole}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiTrashCan))])],1),t(nu,{attrs:{"in-toolbar":!0},on:{onCommand:function(r){e.gcode=r}}}),t($e,{attrs:{"offset-y":!0,"close-on-content-click":!1,title:e.$t("Panels.MiniconsolePanel.SetupConsole")},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({attrs:{icon:"",tile:""}},"v-btn",n,!1),i),[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiCog))])],1)]}}],null,!1,3210076863)},[t(Oe,[e.consoleDirection==="shell"?t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.MiniconsolePanel.Autoscroll")},model:{value:e.autoscroll,callback:function(r){e.autoscroll=r},expression:"autoscroll"}})],1):e._e(),t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.MiniconsolePanel.HideTemperatures")},model:{value:e.hideWaitTemperatures,callback:function(r){e.hideWaitTemperatures=r},expression:"hideWaitTemperatures"}})],1),e.moonrakerComponents.includes("timelapse")?t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.MiniconsolePanel.HideTimelapse")},model:{value:e.hideTlCommands,callback:function(r){e.hideTlCommands=r},expression:"hideTlCommands"}})],1):e._e(),e._l(e.customFilters,function(r,i){return t(J,{key:i,staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:r.name},on:{change:function(n){return e.toggleFilter(r)}},model:{value:r.bool,callback:function(n){e.$set(r,"bool",n)},expression:"filter.bool"}})],1)})],2)],1)]},proxy:!0}],null,!1,1546623836)},[t("div",{staticClass:"d-flex flex-column"},[t(q,{class:e.consoleDirection==="table"?"order-1":"order-2"},[t(Bs,{ref:"gcodeCommandField",staticClass:"gcode-command-field",attrs:{items:e.items,label:e.$t("Panels.MiniconsolePanel.SendCode"),solo:"",autocomplete:"off","no-resize":"","auto-grow":"",rows:e.rows,"hide-details":"",outlined:"",dense:"","prepend-icon":e.isTouchDevice?e.mdiChevronDoubleRight:"","append-icon":e.mdiSend},on:{keydown:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:(r.preventDefault(),r.stopPropagation(),e.doSend.apply(null,arguments))},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"tab",9,r.key,"Tab")?null:e.getAutocomplete.apply(null,arguments)}],keyup:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:e.onKeyUp.apply(null,arguments)},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:e.onKeyDown.apply(null,arguments)}],"click:prepend":e.getAutocomplete,"click:append":e.doSend},model:{value:e.gcode,callback:function(r){e.gcode=r},expression:"gcode"}})],1),t(q,{class:(e.consoleDirection==="table"?"order-2":"order-1")+" pa-0"},[t($,[t(_,[t("overlay-scrollbars",{ref:"miniConsoleScroll",style:"height: "+e.consoleHeight+"px;",attrs:{options:{}}},[t(ru,{ref:"console",attrs:{events:e.events,"is-mini":!0},on:{"command-click":e.commandClick}}),t(U)],1)],1)],1)],1)],1)]):e._e()},qO=[];const t1={};var XO=E(Yn,ZO,qO,!1,YO,"1db4ee58",null,null);function YO(e){for(let s in t1)this[s]=t1[s]}const JO=function(){return XO.exports}();var KO=Object.defineProperty,QO=Object.getOwnPropertyDescriptor,e4=(e,s,t,r)=>{for(var i=r>1?void 0:r?QO(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&KO(s,t,i),i};let lm=class extends M(O){constructor(){super(...arguments),this.mdiAlertCircle=Cy,this.mdiInformation=kt}get existsPrinterConfig(){var s;return(s=this.$store.getters["printer/existPrinterConfig"])!=null?s:!1}get missingConfigs(){var s;return(s=this.$store.getters["printer/checkNecessaryConfig"])!=null?s:[]}get mainsailCfgExists(){var s;return(s=this.$store.getters["files/checkConfigFile"]("mainsail.cfg"))!=null?s:!1}};lm=e4([D({components:{Panel:B}})],lm);var t4=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.klipperState==="ready"&&e.existsPrinterConfig&&e.missingConfigs.length?t(B,{attrs:{icon:e.mdiAlertCircle,title:e.$t("Panels.MinSettingsPanel.MissingConfiguration"),collapsible:!0,"card-class":"min-settings-panel","toolbar-color":"orange darken-2"}},[t(q,[t($,[t(_,[t("ul",{},e._l(e.missingConfigs,function(r){return t("li",{key:r,staticClass:"orange--text"},[t("code",[e._v(e._s(r))]),e._v(" "+e._s(e.$t("Panels.MinSettingsPanel.IsNotDefinedInConfig"))+" ")])}),0)])],1)],1),e.mainsailCfgExists?[t(U),t(q,[t($,[t(_,[t("p",{staticClass:"orange--text mb-0"},[e._v(e._s(e.$t("Panels.MinSettingsPanel.IncludeMainsailCfg")))])])],1)],1),t(U,{staticClass:"mb-2"})]:e._e(),t(ne,{staticClass:"justify-center pb-3"},[t(g,{attrs:{small:"",href:"https://docs.mainsail.xyz/setup/configuration",target:"_blank"}},[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(e._s(e.mdiInformation))]),e._v(" "+e._s(e.$t("Panels.MinSettingsPanel.MoreInformation"))+" ")],1)],1)],2):e._e()},s4=[];const s1={};var r4=E(lm,t4,s4,!1,i4,"05f4d966",null,null);function i4(e){for(let s in s1)this[s]=s1[s]}const Ip=function(){return r4.exports}();var n4=Object.defineProperty,a4=Object.getOwnPropertyDescriptor,wt=(e,s,t,r)=>{for(var i=r>1?void 0:r?a4(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&n4(s,t,i),i};let ht=class extends M(O){constructor(){super(...arguments),this.mdiFan=yp,this.mdiToggleSwitch=Ep,this.mdiToggleSwitchOffOutline=c2,this.mdiLockOutline=Gc,this.mdiLockOpenVariantOutline=By,this.mdiMinus=Gy,this.mdiPlus=Tp,this.mdiLightbulbOutline=Sp,this.mdiLightbulbOnOutline=Vy,this.convertName=at,this.isLocked=!1,this.invalidChars=["e","E","+"],this.min=0,this.inputValue=0,this.sliderValue=0}get value(){return Math.round(this.target/this.max*100)/100}lockSlidersChanged(){this.isLocked=this.lockSliders&&this.isTouchDevice}startLockTimer(){let e=this.lockSlidersDelay;!this.isTouchDevice||!this.lockSliders||e<=0||(this.timeout=setTimeout(()=>this.isLocked=!0,e*1e3))}resetLockTimer(){clearTimeout(this.timeout)}get lockSliders(){return this.$store.state.gui.uiSettings.lockSlidersOnTouchDevices}get lockSlidersDelay(){return this.$store.state.gui.uiSettings.lockSlidersDelay}changeSliderValue(){this.value!==this.sliderValue&&(this.sliderValue<this.value&&this.sliderValue<this.off_below?this.sliderValue=0:this.sliderValue>this.value&&this.sliderValue<this.off_below&&(this.sliderValue=this.off_below),this.sendCmd(this.sliderValue))}sendCmd(e){if(this.value===e)return;e<this.min&&(e=0),e=e*this.multi;let s="SET_PIN PIN=".concat(this.name," VALUE=").concat(e.toFixed(2));this.type==="fan"&&(s="M106 S".concat(e.toFixed(0))),this.type==="fan_generic"&&(s="SET_FAN_SPEED FAN=".concat(this.name," SPEED=").concat(e)),this.type==="led"&&(s="SET_LED LED=".concat(this.name," ").concat(this.ledChannelName,"=").concat(e.toFixed(2)," SYNC=0 TRANSMIT=1")),s!==""&&(this.$store.dispatch("server/addEvent",{message:s,type:"command"}),this.$socket.emit("printer.gcode.script",{script:s})),this.startLockTimer()}ledOff(){this.sendCmd(0)}ledOn(){this.sendCmd(1)}switchOutputPin(){const e=this.value?0:1,s="SET_PIN PIN=".concat(this.name," VALUE=").concat((e*this.multi).toFixed(2));this.$store.dispatch("server/addEvent",{message:s,type:"command"}),this.$socket.emit("printer.gcode.script",{script:s})}decrement(){let e=this.value>0?Math.round((this.value-.01)*100)/100:0;this.value<this.off_below&&(e=0),this.sendCmd(e)}increment(){let e=this.value<1?Math.round((this.value+.01)*100)/100:1;this.value<this.off_below&&(e=this.off_below),this.sendCmd(e)}mounted(){this.sliderValue=this.value}valueChanged(e){this.sliderValue=e}sliderValueChanged(e){this.inputValue=Math.round(e*100)}checkInvalidChars(e){this.min>=0&&this.invalidChars.push("-"),this.invalidChars.includes(e.key)&&e.preventDefault()}get errors(){const e=[],s=this.inputValue/100;return this.inputValue.toString()===""&&e.push(this.$t("App.NumberInput.NoEmptyAllowedError")),s<this.min&&e.push(this.$t("App.NumberInput.GreaterOrEqualError",{min:this.min*100})),e}get disableFanAnimation(){var e;return(e=this.$store.state.gui.uiSettings.disableFanAnimation)!=null?e:!1}get fanClasses(){const e=["mr-2"];return!this.disableFanAnimation&&this.value>=this.off_below&&this.value>0&&e.push("icon-rotate"),e}get rpmClasses(){const e=[];return this.controllable?e.push(["mt-2"]):e.push(["mr-3","mt-1"]),this.rpm===0&&this.value>0&&e.push("red--text"),e}get ledChannelName(){return this.colorOrder==="R"?"RED":this.colorOrder==="G"?"GREEN":this.colorOrder==="B"?"BLUE":"WHITE"}submitInput(){if(this.errors.length>0)return;let e=this.inputValue/100;this.value===0&&e<this.off_below?e=this.off_below:this.value>=this.off_below&&e<this.off_below&&(e=0),this.sendCmd(e)}};wt([P({type:Number,required:!0})],ht.prototype,"target",2);wt([P({type:Number,default:1})],ht.prototype,"max",2);wt([P({type:String,default:""})],ht.prototype,"name",2);wt([P({type:String,default:""})],ht.prototype,"type",2);wt([P({type:Boolean,default:!1})],ht.prototype,"controllable",2);wt([P({type:Boolean,default:!1})],ht.prototype,"pwm",2);wt([P({type:[Number,Boolean],default:!1})],ht.prototype,"rpm",2);wt([P({type:Number,default:1})],ht.prototype,"multi",2);wt([P({type:Number,default:0})],ht.prototype,"off_below",2);wt([P({type:String,default:""})],ht.prototype,"colorOrder",2);wt([me("lockSliders",{immediate:!0})],ht.prototype,"lockSlidersChanged",1);wt([qe(500)],ht.prototype,"changeSliderValue",1);wt([me("value")],ht.prototype,"valueChanged",1);wt([me("sliderValue",{immediate:!0})],ht.prototype,"sliderValueChanged",1);ht=wt([D],ht);var o4=function(){var e,s,t=this,r=t.$createElement,i=t._self._c||r;return i(Ae,{staticClass:"px-0 py-2"},[i($,[i(_,{class:t.pwm?"pb-1":"pb-3"},[i(_s,{staticClass:"_fan-slider-subheader"},[t.type==="led"&&t.target>0?i(v,{staticClass:"mr-2",attrs:{small:"","retain-focus-on-click":!0},on:{click:t.ledOff}},[t._v(" "+t._s(t.mdiLightbulbOnOutline)+" ")]):t.type==="led"?i(v,{staticClass:"mr-2",attrs:{small:"","retain-focus-on-click":!0},on:{click:t.ledOn}},[t._v(" "+t._s(t.mdiLightbulbOutline)+" ")]):t.type.includes("fan")?i(v,{class:t.fanClasses,attrs:{small:""}},[t._v(t._s(t.mdiFan))]):t._e(),i("span",[t._v(t._s(t.convertName(t.name)))]),i(ae),t.rpm!==null?i("small",{class:t.rpmClasses},[t._v(t._s(Math.round((e=t.rpm)!==null&&e!==void 0?e:0))+" RPM")]):t._e(),t.controllable?t._e():i("span",{staticClass:"font-weight-bold"},[t._v(" "+t._s(Math.round(parseFloat(t.value)*100))+" % ")]),t.controllable&&!t.pwm?i(v,{on:{click:t.switchOutputPin}},[t._v(" "+t._s(t.value?t.mdiToggleSwitch:t.mdiToggleSwitchOffOutline)+" ")]):t._e(),i("form",{on:{submit:function(n){return n.preventDefault(),t.submitInput.apply(null,arguments)}}},[t.controllable&&t.pwm?i(te,{staticClass:"_slider-input pt-1",attrs:{error:t.errors.length>0,suffix:"%",type:"number","hide-spin-buttons":"","hide-details":"",outlined:"",dense:""},on:{blur:function(n){t.inputValue=Math.round(parseFloat(t.sliderValue)*100)},focus:function(n){return n.target.select()},keydown:t.checkInvalidChars},model:{value:t.inputValue,callback:function(n){t.inputValue=n},expression:"inputValue"}}):t._e()],1)],1),t.controllable&&t.pwm?i("transition",{attrs:{name:"fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.errors.length>0,expression:"errors.length > 0"}],staticClass:"_error-msg d-flex justify-end"},[t._v(" "+t._s((s=t.errors[0])!==null&&s!==void 0?s:"")+" ")])]):t._e(),t.controllable&&t.pwm?i(q,{staticClass:"py-0 pb-2 d-flex align-center"},[t.lockSliders&&t.isTouchDevice&&t.pwm?i(g,{staticClass:"_lock-button",attrs:{plain:"",small:"",icon:""},on:{click:function(n){t.isLocked=!t.isLocked}}},[i(v,{attrs:{small:"",color:t.isLocked?"red":""}},[t._v(" "+t._s(t.isLocked?t.mdiLockOutline:t.mdiLockOpenVariantOutline)+" ")])],1):t._e(),i(kc,{directives:[{name:"touch",rawName:"v-touch",value:{start:t.resetLockTimer},expression:"{ start: resetLockTimer }"}],attrs:{disabled:t.isLocked,min:0,max:1,step:.01,color:t.sliderValue<t.off_below&&t.sliderValue>0?"red":void 0,"hide-details":""},on:{change:t.changeSliderValue},scopedSlots:t._u([{key:"prepend",fn:function(){return[i(v,{attrs:{disabled:t.isLocked||t.sliderValue<=t.min},on:{click:t.decrement}},[t._v(" "+t._s(t.mdiMinus)+" ")])]},proxy:!0},{key:"append",fn:function(){return[i(v,{attrs:{disabled:t.isLocked||t.sliderValue>=1},on:{click:t.increment}},[t._v(t._s(t.mdiPlus))])]},proxy:!0}],null,!1,3774030646),model:{value:t.sliderValue,callback:function(n){t.sliderValue=n},expression:"sliderValue"}})],1):t._e()],1)],1)],1)},l4=[];const r1={};var c4=E(ht,o4,l4,!1,u4,"2ac94a4b",null,null);function u4(e){for(let s in r1)this[s]=r1[s]}const cm=function(){return c4.exports}();/*!
* iro.js v5.5.2
* 2016-2021 James Daniel
* Licensed under MPL 2.0
* github.com/jaames/iro.js
*/var Ve,ol,O2,um,L2,ir={},Np=[],d4=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;function Qs(e,s){for(var t in s)e[t]=s[t];return e}function A2(e){var s=e.parentNode;s&&s.removeChild(e)}function Fe(e,s,t){var r,i,n,a,o=arguments;if(s=Qs({},s),arguments.length>3)for(t=[t],r=3;r<arguments.length;r++)t.push(o[r]);if(t!=null&&(s.children=t),e!=null&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return a=s.key,(n=s.ref)!=null&&delete s.ref,a!=null&&delete s.key,dm(e,s,a,n)}function dm(e,s,t,r){var i={type:e,props:s,key:t,ref:r,__k:null,__p:null,__b:0,__e:null,l:null,__c:null,constructor:void 0};return Ve.vnode&&Ve.vnode(i),i}function au(e){return e.children}function m4(e){if(e==null||typeof e=="boolean")return null;if(typeof e=="string"||typeof e=="number")return dm(null,e,null,null);if(e.__e!=null||e.__c!=null){var s=dm(e.type,e.props,e.key,null);return s.__e=e.__e,s}return e}function gi(e,s){this.props=e,this.context=s}function ll(e,s){if(s==null)return e.__p?ll(e.__p,e.__p.__k.indexOf(e)+1):null;for(var t;s<e.__k.length;s++)if((t=e.__k[s])!=null&&t.__e!=null)return t.__e;return typeof e.type=="function"?ll(e):null}function k2(e){var s,t;if((e=e.__p)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,s=0;s<e.__k.length;s++)if((t=e.__k[s])!=null&&t.__e!=null){e.__e=e.__c.base=t.__e;break}return k2(e)}}function md(e){(!e.__d&&(e.__d=!0)&&ol.push(e)===1||um!==Ve.debounceRendering)&&(um=Ve.debounceRendering,(Ve.debounceRendering||O2)(h4))}function h4(){var e,s,t,r,i,n,a,o;for(ol.sort(function(l,c){return c.__v.__b-l.__v.__b});e=ol.pop();)e.__d&&(t=void 0,r=void 0,n=(i=(s=e).__v).__e,a=s.__P,o=s.u,s.u=!1,a&&(t=[],r=Up(a,i,Qs({},i),s.__n,a.ownerSVGElement!==void 0,null,t,o,n==null?ll(i):n),R2(t,i),r!=n&&k2(i)))}function F2(e,s,t,r,i,n,a,o,l){var c,u,d,m,h,p,f,b=t&&t.__k||Np,C=b.length;if(o==ir&&(o=n!=null?n[0]:C?ll(t,0):null),c=0,s.__k=Vp(s.__k,function(S){if(S!=null){if(S.__p=s,S.__b=s.__b+1,(d=b[c])===null||d&&S.key==d.key&&S.type===d.type)b[c]=void 0;else for(u=0;u<C;u++){if((d=b[u])&&S.key==d.key&&S.type===d.type){b[u]=void 0;break}d=null}if(m=Up(e,S,d=d||ir,r,i,n,a,null,o,l),(u=S.ref)&&d.ref!=u&&(f||(f=[])).push(u,S.__c||m,S),m!=null){if(p==null&&(p=m),S.l!=null)m=S.l,S.l=null;else if(n==d||m!=o||m.parentNode==null){e:if(o==null||o.parentNode!==e)e.appendChild(m);else{for(h=o,u=0;(h=h.nextSibling)&&u<C;u+=2)if(h==m)break e;e.insertBefore(m,o)}s.type=="option"&&(e.value="")}o=m.nextSibling,typeof s.type=="function"&&(s.l=m)}}return c++,S}),s.__e=p,n!=null&&typeof s.type!="function")for(c=n.length;c--;)n[c]!=null&&A2(n[c]);for(c=C;c--;)b[c]!=null&&H2(b[c],b[c]);if(f)for(c=0;c<f.length;c++)j2(f[c],f[++c],f[++c])}function Vp(e,s,t){if(t==null&&(t=[]),e==null||typeof e=="boolean")s&&t.push(s(null));else if(Array.isArray(e))for(var r=0;r<e.length;r++)Vp(e[r],s,t);else t.push(s?s(m4(e)):e);return t}function p4(e,s,t,r,i){var n;for(n in t)n in s||n1(e,n,null,t[n],r);for(n in s)i&&typeof s[n]!="function"||n==="value"||n==="checked"||t[n]===s[n]||n1(e,n,s[n],t[n],r)}function i1(e,s,t){s[0]==="-"?e.setProperty(s,t):e[s]=typeof t=="number"&&d4.test(s)===!1?t+"px":t==null?"":t}function n1(e,s,t,r,i){var n,a,o,l,c;if(!((s=i?s==="className"?"class":s:s==="class"?"className":s)==="key"||s==="children"))if(s==="style")if(n=e.style,typeof t=="string")n.cssText=t;else{if(typeof r=="string"&&(n.cssText="",r=null),r)for(a in r)t&&a in t||i1(n,a,"");if(t)for(o in t)r&&t[o]===r[o]||i1(n,o,t[o])}else s[0]==="o"&&s[1]==="n"?(l=s!==(s=s.replace(/Capture$/,"")),c=s.toLowerCase(),s=(c in e?c:s).slice(2),t?(r||e.addEventListener(s,a1,l),(e.t||(e.t={}))[s]=t):e.removeEventListener(s,a1,l)):s!=="list"&&s!=="tagName"&&s!=="form"&&!i&&s in e?e[s]=t==null?"":t:typeof t!="function"&&s!=="dangerouslySetInnerHTML"&&(s!==(s=s.replace(/^xlink:?/,""))?t==null||t===!1?e.removeAttributeNS("http://www.w3.org/1999/xlink",s.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",s.toLowerCase(),t):t==null||t===!1?e.removeAttribute(s):e.setAttribute(s,t))}function a1(e){return this.t[e.type](Ve.event?Ve.event(e):e)}function Up(e,s,t,r,i,n,a,o,l,c){var u,d,m,h,p,f,b,C,S,L,N=s.type;if(s.constructor!==void 0)return null;(u=Ve.__b)&&u(s);try{e:if(typeof N=="function"){if(C=s.props,S=(u=N.contextType)&&r[u.__c],L=u?S?S.props.value:u.__p:r,t.__c?b=(d=s.__c=t.__c).__p=d.__E:("prototype"in N&&N.prototype.render?s.__c=d=new N(C,L):(s.__c=d=new gi(C,L),d.constructor=N,d.render=g4),S&&S.sub(d),d.props=C,d.state||(d.state={}),d.context=L,d.__n=r,m=d.__d=!0,d.__h=[]),d.__s==null&&(d.__s=d.state),N.getDerivedStateFromProps!=null&&Qs(d.__s==d.state?d.__s=Qs({},d.__s):d.__s,N.getDerivedStateFromProps(C,d.__s)),m)N.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&a.push(d);else{if(N.getDerivedStateFromProps==null&&o==null&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(C,L),!o&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(C,d.__s,L)===!1){for(d.props=C,d.state=d.__s,d.__d=!1,d.__v=s,s.__e=l!=null?l!==t.__e?l:t.__e:null,s.__k=t.__k,u=0;u<s.__k.length;u++)s.__k[u]&&(s.__k[u].__p=s);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(C,d.__s,L)}for(h=d.props,p=d.state,d.context=L,d.props=C,d.state=d.__s,(u=Ve.__r)&&u(s),d.__d=!1,d.__v=s,d.__P=e,u=d.render(d.props,d.state,d.context),s.__k=Vp(u!=null&&u.type==au&&u.key==null?u.props.children:u),d.getChildContext!=null&&(r=Qs(Qs({},r),d.getChildContext())),m||d.getSnapshotBeforeUpdate==null||(f=d.getSnapshotBeforeUpdate(h,p)),F2(e,s,t,r,i,n,a,l,c),d.base=s.__e;u=d.__h.pop();)d.__s&&(d.state=d.__s),u.call(d);m||h==null||d.componentDidUpdate==null||d.componentDidUpdate(h,p,f),b&&(d.__E=d.__p=null)}else s.__e=f4(t.__e,s,t,r,i,n,a,c);(u=Ve.diffed)&&u(s)}catch(R){Ve.__e(R,s,t)}return s.__e}function R2(e,s){for(var t;t=e.pop();)try{t.componentDidMount()}catch(r){Ve.__e(r,t.__v)}Ve.__c&&Ve.__c(s)}function f4(e,s,t,r,i,n,a,o){var l,c,u,d,m=t.props,h=s.props;if(i=s.type==="svg"||i,e==null&&n!=null){for(l=0;l<n.length;l++)if((c=n[l])!=null&&(s.type===null?c.nodeType===3:c.localName===s.type)){e=c,n[l]=null;break}}if(e==null){if(s.type===null)return document.createTextNode(h);e=i?document.createElementNS("http://www.w3.org/2000/svg",s.type):document.createElement(s.type),n=null}return s.type===null?m!==h&&(n!=null&&(n[n.indexOf(e)]=null),e.data=h):s!==t&&(n!=null&&(n=Np.slice.call(e.childNodes)),u=(m=t.props||ir).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,o||(d||u)&&(d&&u&&d.__html==u.__html||(e.innerHTML=d&&d.__html||"")),p4(e,h,m,i,o),s.__k=s.props.children,d||F2(e,s,t,r,s.type!=="foreignObject"&&i,n,a,ir,o),o||("value"in h&&h.value!==void 0&&h.value!==e.value&&(e.value=h.value==null?"":h.value),"checked"in h&&h.checked!==void 0&&h.checked!==e.checked&&(e.checked=h.checked))),e}function j2(e,s,t){try{typeof e=="function"?e(s):e.current=s}catch(r){Ve.__e(r,t)}}function H2(e,s,t){var r,i,n;if(Ve.unmount&&Ve.unmount(e),(r=e.ref)&&j2(r,null,s),t||typeof e.type=="function"||(t=(i=e.__e)!=null),e.__e=e.l=null,(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(a){Ve.__e(a,s)}r.base=r.__P=null}if(r=e.__k)for(n=0;n<r.length;n++)r[n]&&H2(r[n],s,t);i!=null&&A2(i)}function g4(e,s,t){return this.constructor(e,t)}function v4(e,s,t){var r,i,n;Ve.__p&&Ve.__p(e,s),i=(r=t===L2)?null:t&&t.__k||s.__k,e=Fe(au,null,[e]),n=[],Up(s,r?s.__k=e:(t||s).__k=e,i||ir,ir,s.ownerSVGElement!==void 0,t&&!r?[t]:i?null:Np.slice.call(s.childNodes),n,!1,t||ir,r),R2(n,e)}Ve={},gi.prototype.setState=function(e,s){var t=this.__s!==this.state&&this.__s||(this.__s=Qs({},this.state));(typeof e!="function"||(e=e(t,this.props)))&&Qs(t,e),e!=null&&this.__v&&(this.u=!1,s&&this.__h.push(s),md(this))},gi.prototype.forceUpdate=function(e){this.__v&&(e&&this.__h.push(e),this.u=!0,md(this))},gi.prototype.render=au,ol=[],O2=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,um=Ve.debounceRendering,Ve.__e=function(e,s,t){for(var r;s=s.__p;)if((r=s.__c)&&!r.__p)try{if(r.constructor&&r.constructor.getDerivedStateFromError!=null)r.setState(r.constructor.getDerivedStateFromError(e));else{if(r.componentDidCatch==null)continue;r.componentDidCatch(e)}return md(r.__E=r)}catch(i){e=i}throw e},L2=ir;function o1(e,s){for(var t=0;t<s.length;t++){var r=s[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _4(e,s,t){return s&&o1(e.prototype,s),t&&o1(e,t),e}function Et(){return Et=Object.assign||function(e){for(var s=arguments,t=1;t<arguments.length;t++){var r=s[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Et.apply(this,arguments)}var b4="[-\\+]?\\d+%?",y4="[-\\+]?\\d*\\.\\d+%?",Tr="(?:"+y4+")|(?:"+b4+")",I2="[\\s|\\(]+("+Tr+")[,|\\s]+("+Tr+")[,|\\s]+("+Tr+")\\s*\\)?",N2="[\\s|\\(]+("+Tr+")[,|\\s]+("+Tr+")[,|\\s]+("+Tr+")[,|\\s]+("+Tr+")\\s*\\)?",C4=new RegExp("rgb"+I2),$4=new RegExp("rgba"+N2),x4=new RegExp("hsl"+I2),w4=new RegExp("hsla"+N2),ou="^(?:#?|0x?)",Mr="([0-9a-fA-F]{1})",Er="([0-9a-fA-F]{2})",S4=new RegExp(ou+Mr+Mr+Mr+"$"),P4=new RegExp(ou+Mr+Mr+Mr+Mr+"$"),D4=new RegExp(ou+Er+Er+Er+"$"),T4=new RegExp(ou+Er+Er+Er+Er+"$"),M4=2e3,E4=4e4,ao=Math.log,si=Math.round,pn=Math.floor;function Wt(e,s,t){return Math.min(Math.max(e,s),t)}function Dt(e,s){var t=e.indexOf("%")>-1,r=parseFloat(e);return t?s/100*r:r}function Tt(e){return parseInt(e,16)}function br(e){return e.toString(16).padStart(2,"0")}var ui=function(){function e(t,r){this.$={h:0,s:0,v:0,a:1},t&&this.set(t),this.onChange=r,this.initialValue=Et({},this.$)}var s=e.prototype;return s.set=function(r){if(typeof r=="string")/^(?:#?|0x?)[0-9a-fA-F]{3,8}$/.test(r)?this.hexString=r:/^rgba?/.test(r)?this.rgbString=r:/^hsla?/.test(r)&&(this.hslString=r);else if(typeof r=="object")r instanceof e?this.hsva=r.hsva:"r"in r&&"g"in r&&"b"in r?this.rgb=r:"h"in r&&"s"in r&&"v"in r?this.hsv=r:"h"in r&&"s"in r&&"l"in r?this.hsl=r:"kelvin"in r&&(this.kelvin=r.kelvin);else throw new Error("Invalid color value")},s.setChannel=function(r,i,n){var a;this[r]=Et({},this[r],(a={},a[i]=n,a))},s.reset=function(){this.hsva=this.initialValue},s.clone=function(){return new e(this)},s.unbind=function(){this.onChange=void 0},e.hsvToRgb=function(r){var i=r.h/60,n=r.s/100,a=r.v/100,o=pn(i),l=i-o,c=a*(1-n),u=a*(1-l*n),d=a*(1-(1-l)*n),m=o%6,h=[a,u,c,c,d,a][m],p=[d,a,a,u,c,c][m],f=[c,c,d,a,a,u][m];return{r:Wt(h*255,0,255),g:Wt(p*255,0,255),b:Wt(f*255,0,255)}},e.rgbToHsv=function(r){var i=r.r/255,n=r.g/255,a=r.b/255,o=Math.max(i,n,a),l=Math.min(i,n,a),c=o-l,u=0,d=o,m=o===0?0:c/o;switch(o){case l:u=0;break;case i:u=(n-a)/c+(n<a?6:0);break;case n:u=(a-i)/c+2;break;case a:u=(i-n)/c+4;break}return{h:u*60%360,s:Wt(m*100,0,100),v:Wt(d*100,0,100)}},e.hsvToHsl=function(r){var i=r.s/100,n=r.v/100,a=(2-i)*n,o=a<=1?a:2-a,l=o<1e-9?0:i*n/o;return{h:r.h,s:Wt(l*100,0,100),l:Wt(a*50,0,100)}},e.hslToHsv=function(r){var i=r.l*2,n=r.s*(i<=100?i:200-i)/100,a=i+n<1e-9?0:2*n/(i+n);return{h:r.h,s:Wt(a*100,0,100),v:Wt((i+n)/2,0,100)}},e.kelvinToRgb=function(r){var i=r/100,n,a,o;return i<66?(n=255,a=-155.25485562709179-.44596950469579133*(a=i-2)+104.49216199393888*ao(a),o=i<20?0:-254.76935184120902+.8274096064007395*(o=i-10)+115.67994401066147*ao(o)):(n=351.97690566805693+.114206453784165*(n=i-55)-40.25366309332127*ao(n),a=325.4494125711974+.07943456536662342*(a=i-50)-28.0852963507957*ao(a),o=255),{r:Wt(pn(n),0,255),g:Wt(pn(a),0,255),b:Wt(pn(o),0,255)}},e.rgbToKelvin=function(r){for(var i=r.r,n=r.b,a=.4,o=M4,l=E4,c;l-o>a;){c=(l+o)*.5;var u=e.kelvinToRgb(c);u.b/u.r>=n/i?l=c:o=c}return c},_4(e,[{key:"hsv",get:function(){var r=this.$;return{h:r.h,s:r.s,v:r.v}},set:function(r){var i=this.$;if(r=Et({},i,r),this.onChange){var n={h:!1,v:!1,s:!1,a:!1};for(var a in i)n[a]=r[a]!=i[a];this.$=r,(n.h||n.s||n.v||n.a)&&this.onChange(this,n)}else this.$=r}},{key:"hsva",get:function(){return Et({},this.$)},set:function(r){this.hsv=r}},{key:"hue",get:function(){return this.$.h},set:function(r){this.hsv={h:r}}},{key:"saturation",get:function(){return this.$.s},set:function(r){this.hsv={s:r}}},{key:"value",get:function(){return this.$.v},set:function(r){this.hsv={v:r}}},{key:"alpha",get:function(){return this.$.a},set:function(r){this.hsv=Et({},this.hsv,{a:r})}},{key:"kelvin",get:function(){return e.rgbToKelvin(this.rgb)},set:function(r){this.rgb=e.kelvinToRgb(r)}},{key:"red",get:function(){var r=this.rgb;return r.r},set:function(r){this.rgb=Et({},this.rgb,{r})}},{key:"green",get:function(){var r=this.rgb;return r.g},set:function(r){this.rgb=Et({},this.rgb,{g:r})}},{key:"blue",get:function(){var r=this.rgb;return r.b},set:function(r){this.rgb=Et({},this.rgb,{b:r})}},{key:"rgb",get:function(){var r=e.hsvToRgb(this.$),i=r.r,n=r.g,a=r.b;return{r:si(i),g:si(n),b:si(a)}},set:function(r){this.hsv=Et({},e.rgbToHsv(r),{a:r.a===void 0?1:r.a})}},{key:"rgba",get:function(){return Et({},this.rgb,{a:this.alpha})},set:function(r){this.rgb=r}},{key:"hsl",get:function(){var r=e.hsvToHsl(this.$),i=r.h,n=r.s,a=r.l;return{h:si(i),s:si(n),l:si(a)}},set:function(r){this.hsv=Et({},e.hslToHsv(r),{a:r.a===void 0?1:r.a})}},{key:"hsla",get:function(){return Et({},this.hsl,{a:this.alpha})},set:function(r){this.hsl=r}},{key:"rgbString",get:function(){var r=this.rgb;return"rgb("+r.r+", "+r.g+", "+r.b+")"},set:function(r){var i,n,a,o,l=1;if((i=C4.exec(r))?(n=Dt(i[1],255),a=Dt(i[2],255),o=Dt(i[3],255)):(i=$4.exec(r))&&(n=Dt(i[1],255),a=Dt(i[2],255),o=Dt(i[3],255),l=Dt(i[4],1)),i)this.rgb={r:n,g:a,b:o,a:l};else throw new Error("Invalid rgb string")}},{key:"rgbaString",get:function(){var r=this.rgba;return"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")"},set:function(r){this.rgbString=r}},{key:"hexString",get:function(){var r=this.rgb;return"#"+br(r.r)+br(r.g)+br(r.b)},set:function(r){var i,n,a,o,l=255;if((i=S4.exec(r))?(n=Tt(i[1])*17,a=Tt(i[2])*17,o=Tt(i[3])*17):(i=P4.exec(r))?(n=Tt(i[1])*17,a=Tt(i[2])*17,o=Tt(i[3])*17,l=Tt(i[4])*17):(i=D4.exec(r))?(n=Tt(i[1]),a=Tt(i[2]),o=Tt(i[3])):(i=T4.exec(r))&&(n=Tt(i[1]),a=Tt(i[2]),o=Tt(i[3]),l=Tt(i[4])),i)this.rgb={r:n,g:a,b:o,a:l/255};else throw new Error("Invalid hex string")}},{key:"hex8String",get:function(){var r=this.rgba;return"#"+br(r.r)+br(r.g)+br(r.b)+br(pn(r.a*255))},set:function(r){this.hexString=r}},{key:"hslString",get:function(){var r=this.hsl;return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},set:function(r){var i,n,a,o,l=1;if((i=x4.exec(r))?(n=Dt(i[1],360),a=Dt(i[2],100),o=Dt(i[3],100)):(i=w4.exec(r))&&(n=Dt(i[1],360),a=Dt(i[2],100),o=Dt(i[3],100),l=Dt(i[4],1)),i)this.hsl={h:n,s:a,l:o,a:l};else throw new Error("Invalid hsl string")}},{key:"hslaString",get:function(){var r=this.hsla;return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},set:function(r){this.hslString=r}}]),e}(),O4={sliderShape:"bar",sliderType:"value",minTemperature:2200,maxTemperature:11e3};function Bp(e){var s,t=e.width,r=e.sliderSize,i=e.borderWidth,n=e.handleRadius,a=e.padding,o=e.sliderShape,l=e.layoutDirection==="horizontal";return r=(s=r)!=null?s:a*2+n*2,o==="circle"?{handleStart:e.padding+e.handleRadius,handleRange:t-a*2-n*2,width:t,height:t,cx:t/2,cy:t/2,radius:t/2-i/2}:{handleStart:r/2,handleRange:t-r,radius:r/2,x:0,y:0,width:l?r:t,height:l?t:r}}function L4(e,s){var t=s.hsva,r=s.rgb;switch(e.sliderType){case"red":return r.r/2.55;case"green":return r.g/2.55;case"blue":return r.b/2.55;case"alpha":return t.a*100;case"kelvin":var i=e.minTemperature,n=e.maxTemperature,a=n-i,o=(s.kelvin-i)/a*100;return Math.max(0,Math.min(o,100));case"hue":return t.h/=3.6;case"saturation":return t.s;case"value":default:return t.v}}function A4(e,s,t){var r=Bp(e),i=r.handleRange,n=r.handleStart,a;e.layoutDirection==="horizontal"?a=-1*t+i+n:a=s-n,a=Math.max(Math.min(a,i),0);var o=Math.round(100/i*a);switch(e.sliderType){case"kelvin":var l=e.minTemperature,c=e.maxTemperature,u=c-l;return l+u*(o/100);case"alpha":return o/100;case"hue":return o*3.6;case"red":case"blue":case"green":return o*2.55;default:return o}}function k4(e,s){var t=Bp(e),r=t.width,i=t.height,n=t.handleRange,a=t.handleStart,o=e.layoutDirection==="horizontal",l=L4(e,s),c=o?r/2:i/2,u=a+l/100*n;return o&&(u=-1*u+n+a*2),{x:o?c:u,y:o?u:c}}function F4(e,s){var t=s.hsv,r=s.rgb;switch(e.sliderType){case"red":return[[0,"rgb(0,"+r.g+","+r.b+")"],[100,"rgb(255,"+r.g+","+r.b+")"]];case"green":return[[0,"rgb("+r.r+",0,"+r.b+")"],[100,"rgb("+r.r+",255,"+r.b+")"]];case"blue":return[[0,"rgb("+r.r+","+r.g+",0)"],[100,"rgb("+r.r+","+r.g+",255)"]];case"alpha":return[[0,"rgba("+r.r+","+r.g+","+r.b+",0)"],[100,"rgb("+r.r+","+r.g+","+r.b+")"]];case"kelvin":for(var i=[],n=e.minTemperature,a=e.maxTemperature,o=8,l=a-n,c=n,u=0;c<a;c+=l/o,u+=1){var d=ui.kelvinToRgb(c),m=d.r,h=d.g,p=d.b;i.push([100/o*u,"rgb("+m+","+h+","+p+")"])}return i;case"hue":return[[0,"#f00"],[16.666,"#ff0"],[33.333,"#0f0"],[50,"#0ff"],[66.666,"#00f"],[83.333,"#f0f"],[100,"#f00"]];case"saturation":var f=ui.hsvToHsl({h:t.h,s:0,v:t.v}),b=ui.hsvToHsl({h:t.h,s:100,v:t.v});return[[0,"hsl("+f.h+","+f.s+"%,"+f.l+"%)"],[100,"hsl("+b.h+","+b.s+"%,"+b.l+"%)"]];case"value":default:var C=ui.hsvToHsl({h:t.h,s:t.s,v:100});return[[0,"#000"],[100,"hsl("+C.h+","+C.s+"%,"+C.l+"%)"]]}}var V2=Math.PI*2,R4=function(s,t){return(s%t+t)%t},U2=function(s,t){return Math.sqrt(s*s+t*t)};function B2(e){return e.width/2-e.padding-e.handleRadius-e.borderWidth}function j4(e,s,t){var r=lu(e),i=r.cx,n=r.cy,a=e.width/2;return U2(i-s,n-t)<a}function lu(e){var s=e.width/2;return{width:e.width,radius:s-e.borderWidth,cx:s,cy:s}}function W2(e,s,t){var r=e.wheelAngle,i=e.wheelDirection;return t&&i==="clockwise"?s=r+s:i==="clockwise"?s=360-r+s:t&&i==="anticlockwise"?s=r+180-s:i==="anticlockwise"&&(s=r-s),R4(s,360)}function H4(e,s){var t=s.hsv,r=lu(e),i=r.cx,n=r.cy,a=B2(e),o=(180+W2(e,t.h,!0))*(V2/360),l=t.s/100*a,c=e.wheelDirection==="clockwise"?-1:1;return{x:i+l*Math.cos(o)*c,y:n+l*Math.sin(o)*c}}function l1(e,s,t){var r=lu(e),i=r.cx,n=r.cy,a=B2(e);s=i-s,t=n-t;var o=W2(e,Math.atan2(-t,-s)*(360/V2)),l=Math.min(U2(s,t),a);return{h:Math.round(o),s:Math.round(100/a*l)}}function Wp(e){var s=e.width,t=e.boxHeight,r=e.padding,i=e.handleRadius;return{width:s,height:t!=null?t:s,radius:r+i}}function c1(e,s,t){var r=Wp(e),i=r.width,n=r.height,a=r.radius,o=a,l=i-a*2,c=n-a*2,u=(s-o)/l*100,d=(t-o)/c*100;return{s:Math.max(0,Math.min(u,100)),v:Math.max(0,Math.min(100-d,100))}}function I4(e,s){var t=Wp(e),r=t.width,i=t.height,n=t.radius,a=s.hsv,o=n,l=r-n*2,c=i-n*2;return{x:o+a.s/100*l,y:o+(c-a.v/100*c)}}function N4(e,s){var t=s.hue;return[[[0,"#fff"],[100,"hsl("+t+",100%,50%)"]],[[0,"rgba(0,0,0,0)"],[100,"#000"]]]}var hd;function V4(e){hd||(hd=document.getElementsByTagName("base"));var s=window.navigator.userAgent,t=/^((?!chrome|android).)*safari/i.test(s),r=/iPhone|iPod|iPad/i.test(s),i=window.location;return(t||r)&&hd.length>0?i.protocol+"//"+i.host+i.pathname+i.search+e:e}function G2(e,s,t,r){for(var i=0;i<r.length;i++){var n=r[i].x-s,a=r[i].y-t,o=Math.sqrt(n*n+a*a);if(o<e.handleRadius)return i}return null}function Gp(e){return{boxSizing:"border-box",border:e.borderWidth+"px solid "+e.borderColor}}function mm(e,s,t){return e+"-gradient("+s+", "+t.map(function(r){var i=r[0],n=r[1];return n+" "+i+"%"}).join(",")+")"}function $t(e){return typeof e=="string"?e:e+"px"}var U4={width:300,height:300,color:"#fff",colors:[],padding:6,layoutDirection:"vertical",borderColor:"#fff",borderWidth:0,handleRadius:8,activeHandleRadius:null,handleSvg:null,handleProps:{x:0,y:0},wheelLightness:!0,wheelAngle:0,wheelDirection:"anticlockwise",sliderSize:null,sliderMargin:12,boxHeight:null},u1=["mousemove","touchmove","mouseup","touchend"],cu=function(e){function s(t){e.call(this,t),this.uid=(Math.random()+1).toString(36).substring(5)}return e&&(s.__proto__=e),s.prototype=Object.create(e&&e.prototype),s.prototype.constructor=s,s.prototype.render=function(r){var i=this.handleEvent.bind(this),n={onMouseDown:i,ontouchstart:i},a=r.layoutDirection==="horizontal",o=r.margin===null?r.sliderMargin:r.margin,l={overflow:"visible",display:a?"inline-block":"block"};return r.index>0&&(l[a?"marginLeft":"marginTop"]=o),Fe(au,null,r.children(this.uid,n,l))},s.prototype.handleEvent=function(r){var i=this,n=this.props.onInput,a=this.base.getBoundingClientRect();r.preventDefault();var o=r.touches?r.changedTouches[0]:r,l=o.clientX-a.left,c=o.clientY-a.top;switch(r.type){case"mousedown":case"touchstart":var u=n(l,c,0);u!==!1&&u1.forEach(function(d){document.addEventListener(d,i,{passive:!1})});break;case"mousemove":case"touchmove":n(l,c,1);break;case"mouseup":case"touchend":n(l,c,2),u1.forEach(function(d){document.removeEventListener(d,i,{passive:!1})});break}},s}(gi);function Ir(e){var s=e.r,t=e.url,r=s,i=s;return Fe("svg",{className:"IroHandle IroHandle--"+e.index+" "+(e.isActive?"IroHandle--isActive":""),style:{"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0);",transform:"translate("+$t(e.x)+", "+$t(e.y)+")",willChange:"transform",top:$t(-s),left:$t(-s),width:$t(s*2),height:$t(s*2),position:"absolute",overflow:"visible"}},t&&Fe("use",Object.assign({xlinkHref:V4(t)},e.props)),!t&&Fe("circle",{cx:r,cy:i,r:s,fill:"none","stroke-width":2,stroke:"#000"}),!t&&Fe("circle",{cx:r,cy:i,r:s-2,fill:e.fill,"stroke-width":2,stroke:"#fff"}))}Ir.defaultProps={fill:"none",x:0,y:0,r:8,url:null,props:{x:0,y:0}};function cl(e){var s=e.activeIndex,t=s!==void 0&&s<e.colors.length?e.colors[s]:e.color,r=Bp(e),i=r.width,n=r.height,a=r.radius,o=k4(e,t),l=F4(e,t);function c(u,d,m){var h=A4(e,u,d);e.parent.inputActive=!0,t[e.sliderType]=h,e.onInput(m,e.id)}return Fe(cu,Object.assign({},e,{onInput:c}),function(u,d,m){return Fe("div",Object.assign({},d,{className:"IroSlider",style:Object.assign({},{position:"relative",width:$t(i),height:$t(n),borderRadius:$t(a),background:"conic-gradient(#ccc 25%, #fff 0 50%, #ccc 0 75%, #fff 0)",backgroundSize:"8px 8px"},m)}),Fe("div",{className:"IroSliderGradient",style:Object.assign({},{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:$t(a),background:mm("linear",e.layoutDirection==="horizontal"?"to top":"to right",l)},Gp(e))}),Fe(Ir,{isActive:!0,index:t.index,r:e.handleRadius,url:e.handleSvg,props:e.handleProps,x:o.x,y:o.y}))})}cl.defaultProps=Object.assign({},O4);function B4(e){var s=Wp(e),t=s.width,r=s.height,i=s.radius,n=e.colors,a=e.parent,o=e.activeIndex,l=o!==void 0&&o<e.colors.length?e.colors[o]:e.color,c=N4(e,l),u=n.map(function(m){return I4(e,m)});function d(m,h,p){if(p===0){var f=G2(e,m,h,u);f!==null?a.setActiveColor(f):(a.inputActive=!0,l.hsv=c1(e,m,h),e.onInput(p,e.id))}else p===1&&(a.inputActive=!0,l.hsv=c1(e,m,h));e.onInput(p,e.id)}return Fe(cu,Object.assign({},e,{onInput:d}),function(m,h,p){return Fe("div",Object.assign({},h,{className:"IroBox",style:Object.assign({},{width:$t(t),height:$t(r),position:"relative"},p)}),Fe("div",{className:"IroBox",style:Object.assign({},{width:"100%",height:"100%",borderRadius:$t(i)},Gp(e),{background:mm("linear","to bottom",c[1])+","+mm("linear","to right",c[0])})}),n.filter(function(f){return f!==l}).map(function(f){return Fe(Ir,{isActive:!1,index:f.index,fill:f.hslString,r:e.handleRadius,url:e.handleSvg,props:e.handleProps,x:u[f.index].x,y:u[f.index].y})}),Fe(Ir,{isActive:!0,index:l.index,fill:l.hslString,r:e.activeHandleRadius||e.handleRadius,url:e.handleSvg,props:e.handleProps,x:u[l.index].x,y:u[l.index].y}))})}var W4="conic-gradient(red, yellow, lime, aqua, blue, magenta, red)",G4="conic-gradient(red, magenta, blue, aqua, lime, yellow, red)";function z2(e){var s=lu(e),t=s.width,r=e.colors;e.borderWidth;var i=e.parent,n=e.color,a=n.hsv,o=r.map(function(u){return H4(e,u)}),l={position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",boxSizing:"border-box"};function c(u,d,m){if(m===0){if(!j4(e,u,d))return!1;var h=G2(e,u,d,o);h!==null?i.setActiveColor(h):(i.inputActive=!0,n.hsv=l1(e,u,d),e.onInput(m,e.id))}else m===1&&(i.inputActive=!0,n.hsv=l1(e,u,d));e.onInput(m,e.id)}return Fe(cu,Object.assign({},e,{onInput:c}),function(u,d,m){return Fe("div",Object.assign({},d,{className:"IroWheel",style:Object.assign({},{width:$t(t),height:$t(t),position:"relative"},m)}),Fe("div",{className:"IroWheelHue",style:Object.assign({},l,{transform:"rotateZ("+(e.wheelAngle+90)+"deg)",background:e.wheelDirection==="clockwise"?W4:G4})}),Fe("div",{className:"IroWheelSaturation",style:Object.assign({},l,{background:"radial-gradient(circle closest-side, #fff, transparent)"})}),e.wheelLightness&&Fe("div",{className:"IroWheelLightness",style:Object.assign({},l,{background:"#000",opacity:1-a.v/100})}),Fe("div",{className:"IroWheelBorder",style:Object.assign({},l,Gp(e))}),r.filter(function(h){return h!==n}).map(function(h){return Fe(Ir,{isActive:!1,index:h.index,fill:h.hslString,r:e.handleRadius,url:e.handleSvg,props:e.handleProps,x:o[h.index].x,y:o[h.index].y})}),Fe(Ir,{isActive:!0,index:n.index,fill:n.hslString,r:e.activeHandleRadius||e.handleRadius,url:e.handleSvg,props:e.handleProps,x:o[n.index].x,y:o[n.index].y}))})}function z4(e){var s=function(t,r){var i,n=document.createElement("div");v4(Fe(e,Object.assign({},{ref:function(o){return i=o}},r)),n);function a(){var o=t instanceof Element?t:document.querySelector(t);o.appendChild(i.base),i.onMount(o)}return document.readyState!=="loading"?a():document.addEventListener("DOMContentLoaded",a),i};return s.prototype=e.prototype,Object.assign(s,e),s.__component=e,s}var Z2=function(e){function s(t){var r=this;e.call(this,t),this.colors=[],this.inputActive=!1,this.events={},this.activeEvents={},this.deferredEvents={},this.id=t.id;var i=t.colors.length>0?t.colors:[t.color];i.forEach(function(n){return r.addColor(n)}),this.setActiveColor(0),this.state=Object.assign({},t,{color:this.color,colors:this.colors,layout:t.layout})}return e&&(s.__proto__=e),s.prototype=Object.create(e&&e.prototype),s.prototype.constructor=s,s.prototype.addColor=function(r,i){i===void 0&&(i=this.colors.length);var n=new ui(r,this.onColorChange.bind(this));this.colors.splice(i,0,n),this.colors.forEach(function(a,o){return a.index=o}),this.state&&this.setState({colors:this.colors}),this.deferredEmit("color:init",n)},s.prototype.removeColor=function(r){var i=this.colors.splice(r,1)[0];i.unbind(),this.colors.forEach(function(n,a){return n.index=a}),this.state&&this.setState({colors:this.colors}),i.index===this.color.index&&this.setActiveColor(0),this.emit("color:remove",i)},s.prototype.setActiveColor=function(r){this.color=this.colors[r],this.state&&this.setState({color:this.color}),this.emit("color:setActive",this.color)},s.prototype.setColors=function(r,i){var n=this;i===void 0&&(i=0),this.colors.forEach(function(a){return a.unbind()}),this.colors=[],r.forEach(function(a){return n.addColor(a)}),this.setActiveColor(i),this.emit("color:setAll",this.colors)},s.prototype.on=function(r,i){var n=this,a=this.events;(Array.isArray(r)?r:[r]).forEach(function(o){(a[o]||(a[o]=[])).push(i),n.deferredEvents[o]&&(n.deferredEvents[o].forEach(function(l){i.apply(null,l)}),n.deferredEvents[o]=[])})},s.prototype.off=function(r,i){var n=this;(Array.isArray(r)?r:[r]).forEach(function(a){var o=n.events[a];o&&o.splice(o.indexOf(i),1)})},s.prototype.emit=function(r){for(var i=this,n=[],a=arguments.length-1;a-- >0;)n[a]=arguments[a+1];var o=this.activeEvents,l=o.hasOwnProperty(r)?o[r]:!1;if(!l){o[r]=!0;var c=this.events[r]||[];c.forEach(function(u){return u.apply(i,n)}),o[r]=!1}},s.prototype.deferredEmit=function(r){for(var i,n=[],a=arguments.length-1;a-- >0;)n[a]=arguments[a+1];var o=this.deferredEvents;(i=this).emit.apply(i,[r].concat(n)),(o[r]||(o[r]=[])).push(n)},s.prototype.setOptions=function(r){this.setState(r)},s.prototype.resize=function(r){this.setOptions({width:r})},s.prototype.reset=function(){this.colors.forEach(function(r){return r.reset()}),this.setState({colors:this.colors})},s.prototype.onMount=function(r){this.el=r,this.deferredEmit("mount",this)},s.prototype.onColorChange=function(r,i){this.setState({color:this.color}),this.inputActive&&(this.inputActive=!1,this.emit("input:change",r,i)),this.emit("color:change",r,i)},s.prototype.emitInputEvent=function(r,i){r===0?this.emit("input:start",this.color,i):r===1?this.emit("input:move",this.color,i):r===2&&this.emit("input:end",this.color,i)},s.prototype.render=function(r,i){var n=this,a=i.layout;if(!Array.isArray(a)){switch(a){default:a=[{component:z2},{component:cl}]}i.transparency&&a.push({component:cl,options:{sliderType:"alpha"}})}return Fe("div",{class:"IroColorPicker",id:i.id,style:{display:i.display}},a.map(function(o,l){var c=o.component,u=o.options;return Fe(c,Object.assign({},i,u,{ref:void 0,onInput:n.emitInputEvent.bind(n),parent:n,index:l}))}))},s}(gi);Z2.defaultProps=Object.assign({},U4,{colors:[],display:"block",id:null,layout:"default",margin:null});var Z4=z4(Z2),hm;(function(e){e.version="5.5.2",e.Color=ui,e.ColorPicker=Z4,function(s){s.h=Fe,s.ComponentBase=cu,s.Handle=Ir,s.Slider=cl,s.Wheel=z2,s.Box=B4}(e.ui||(e.ui={}))})(hm||(hm={}));var Nt=hm,q4=Object.defineProperty,X4=Object.getOwnPropertyDescriptor,Ua=(e,s,t,r)=>{for(var i=r>1?void 0:r?X4(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&q4(s,t,i),i};let Nr=class extends M(O){constructor(){super(...arguments),this.colorPicker=null}colorChanged(e){this.colorPicker&&this.colorPicker.color.rgbString!==e&&(this.colorPicker.color.rgbString=e)}get internalOptions(){return{...this.options,color:this.color,borderWidth:2,sliderSize:16}}emitColorChange(e){this.$emit("change",e),this.$emit("update:color",e)}onColorChange(e){this.emitColorChange(e)}mounted(){this.colorPicker=Nt.ColorPicker(this.picker,this.internalOptions),this.colorPicker.on("color:change",this.onColorChange)}beforeDestroy(){var e;(e=this.colorPicker)==null||e.off("color:change",this.onColorChange)}};Ua([fy("picker")],Nr.prototype,"picker",2);Ua([P({type:[Object,String],default:"#ffffff"})],Nr.prototype,"color",2);Ua([P({type:Object,default:()=>({})})],Nr.prototype,"options",2);Ua([me("color",{deep:!0})],Nr.prototype,"colorChanged",1);Nr=Ua([D],Nr);var Y4=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t("div",{ref:"picker"})])},J4=[];const d1={};var K4=E(Nr,Y4,J4,!1,Q4,null,null,null);function Q4(e){for(let s in d1)this[s]=d1[s]}const Jn=function(){return K4.exports}();var e6=Object.defineProperty,t6=Object.getOwnPropertyDescriptor,qr=(e,s,t,r)=>{for(var i=r>1?void 0:r?t6(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&e6(s,t,i),i};let Vs=class extends M(O){constructor(){super(...arguments),this.mdiCloseThick=pe,this.mdiLightbulbOutline=Sp,this.mdiLightbulbOnOutline=Vy,this.boolDialog=!1,this.inputValue=0}get name(){return this.group?at(this.group.name):at(this.object.name)}get colorPickerOptions(){let s={width:200,margin:15,layout:[]};return this.existRed&&(s==null||s.layout.push({component:Nt.ui.Slider,options:{sliderType:"red"}})),this.existGreen&&(s==null||s.layout.push({component:Nt.ui.Slider,options:{sliderType:"green"}})),this.existBlue&&(s==null||s.layout.push({component:Nt.ui.Slider,options:{sliderType:"blue"}})),this.existRed&&this.existGreen&&this.existBlue&&(s.layout=[{component:Nt.ui.Wheel},{component:Nt.ui.Slider,options:{sliderType:"value"}}]),s}get colorPickerWhiteOptions(){return{width:200,margin:15,layout:[{component:Nt.ui.Slider,options:{sliderType:"alpha"}}]}}get optionsColors(){let s=[];return this.presets.forEach(t=>{s.push("rgb(".concat(t.red,"%, ").concat(t.green,"%, ").concat(t.blue,"%)"))}),s}get current(){var r,i;const s={red:0,green:0,blue:0,white:null};if(this.existWhite&&(s.white=0),this.object.colorData.length===0)return s;const t=this.object.colorData[((i=(r=this.group)==null?void 0:r.start)!=null?i:1)-1];return s.red=t[0]*255,s.green=t[1]*255,s.blue=t[2]*255,this.object.colorOrder.indexOf("W")!==-1&&(s.white=t[3]*255),s}get isOn(){var s,t,r,i,n;return((s=this.current.red)!=null?s:0)+((r=(t=this.current)==null?void 0:t.green)!=null?r:0)+((i=this.current.blue)!=null?i:0)+((n=this.current.white)!=null?n:0)>0}get existRed(){return this.object.colorOrder.indexOf("R")!==-1}get existGreen(){return this.object.colorOrder.indexOf("G")!==-1}get existBlue(){return this.object.colorOrder.indexOf("B")!==-1}get existWhite(){return this.object.colorOrder.indexOf("W")!==-1}get currentStateStyle(){let s=this.colorRGB;return this.current.white!==null&&this.current.red==0&&this.current.green==0&&this.current.blue==0&&(s="rgb(".concat(this.current.white*255,", ").concat(this.current.white*255,", ").concat(this.current.white*255,")")),{"background-color":s}}get colorRGB(){var s,t,r;return"rgb(".concat(Math.round((s=this.current.red)!=null?s:0),", ").concat(Math.round((t=this.current.green)!=null?t:0),", ").concat(Math.round((r=this.current.blue)!=null?r:0),")")}get colorRGBW(){var s;return"rgba(255, 255, 255, ".concat(((s=this.current.white)!=null?s:0)/255,")")}get redInt(){var s;return Math.round((s=this.current.red)!=null?s:0)}get greenInt(){var s;return Math.round((s=this.current.green)!=null?s:0)}get blueInt(){var s;return Math.round((s=this.current.blue)!=null?s:0)}get whiteInt(){var s;return Math.round((s=this.current.white)!=null?s:0)}get groups(){var s;return this.root?(s=this.$store.getters["gui/miscellaneous/getEntryLightgroups"]({type:this.object.type,name:this.object.name}))!=null?s:[]:[]}get presets(){var s;return(s=this.$store.getters["gui/miscellaneous/getEntryPresets"]({type:this.object.type,name:this.object.name}))!=null?s:[]}get containerClass(){let s=["px-0"];return s.push(this.root?"py-2":"pt-2 pb-0"),s}colorChanged(s){var o,l,c,u,d,m,h,p,f,b,C,S;if(Math.round((o=s.red)!=null?o:0)===Math.round((l=this.current.red)!=null?l:0)&&Math.round((c=s.green)!=null?c:0)===Math.round((u=this.current.green)!=null?u:0)&&Math.round((d=s.blue)!=null?d:0)===Math.round((m=this.current.blue)!=null?m:0)&&Math.round((h=s.white)!=null?h:0)===Math.round((p=this.current.white)!=null?p:0))return;const t=Math.round(((f=s.red)!=null?f:0)/255*1e4)/1e4,r=Math.round(((b=s.green)!=null?b:0)/255*1e4)/1e4,i=Math.round(((C=s.blue)!=null?C:0)/255*1e4)/1e4,n=Math.round(((S=s.white)!=null?S:0)/255*1e4)/1e4;let a='SET_LED LED="'.concat(this.object.name,'" RED=').concat(t," GREEN=").concat(r," BLUE=").concat(i);if(this.existWhite&&(a+=" WHITE=".concat(n)),a+=" SYNC=0",this.group){const L=a;for(let N=this.group.start;N<=this.group.end;N++){if(N===this.group.start){a+=" INDEX=".concat(N);continue}a+="\n".concat(L," INDEX=").concat(N)}}a+=" TRANSMIT=1",this.$store.dispatch("server/addEvent",{message:a,type:"command"}),this.$socket.emit("printer.gcode.script",{script:a})}onColorRGBChanged(s){const t={red:s.red,green:s.green,blue:s.blue,white:this.current.white};this.colorChanged(t)}onColorWhiteChanged(s){const t={red:this.current.red,green:this.current.green,blue:this.current.blue,white:this.current.white};t.white=s.alpha*255,this.colorChanged(t)}onColorInput(s){const t={red:this.current.red,green:this.current.green,blue:this.current.blue,white:this.current.white};t[s.name]=s.value,this.colorChanged(t)}off(){const s={red:0,green:0,blue:0,white:0};this.colorChanged(s)}on(){const s={red:255,green:255,blue:255,white:255};this.colorChanged(s)}presetStyle(s){var t,r,i,n;return((t=s==null?void 0:s.red)!=null?t:0)+((r=s==null?void 0:s.green)!=null?r:0)+((i=s==null?void 0:s.blue)!=null?i:0)===0&&((n=s==null?void 0:s.white)!=null?n:0)>0?{backgroundColor:"rgb(".concat(s.white,"%, ").concat(s.white,"%, ").concat(s.white,"%)")}:{backgroundColor:"rgb(".concat(s.red,"%, ").concat(s.green,"%, ").concat(s.blue,"%)")}}usePreset(s){const t={...s};this.colorChanged(t)}};qr([P({type:Object,required:!0})],Vs.prototype,"object",2);qr([P({type:Boolean,default:!1})],Vs.prototype,"root",2);qr([P(Object)],Vs.prototype,"group",2);qr([qe({time:500})],Vs.prototype,"onColorRGBChanged",1);qr([qe({time:500})],Vs.prototype,"onColorWhiteChanged",1);qr([qe({time:500})],Vs.prototype,"onColorInput",1);Vs=qr([D({components:{ColorPicker:Jn,MiscellaneousLight:()=>fe(()=>Promise.resolve().then(()=>a6),void 0)}})],Vs);var s6=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Ae,{class:e.containerClass},[t($,[t(_,{staticClass:"pb-3"},[t(_s,{staticClass:"_light-subheader"},[(!e.root||e.groups.length===0)&&e.isOn?t(v,{attrs:{small:"",left:""},on:{click:e.off}},[e._v(" "+e._s(e.mdiLightbulbOnOutline)+" ")]):!e.root||e.groups.length===0?t(v,{attrs:{small:"",left:""},on:{click:e.on}},[e._v(" "+e._s(e.mdiLightbulbOutline)+" ")]):e._e(),t("span",[e._v(e._s(e.name))]),t(ae),!e.root||e.groups.length===0?t("span",{staticClass:"_currentState",style:e.currentStateStyle,on:{click:function(r){e.boolDialog=!0}}}):e._e()],1)],1)],1),e._l(e.groups,function(r){return t("miscellaneous-light",{key:r.id,attrs:{object:e.object,group:r}})}),t(oe,{attrs:{persistent:"",width:400},model:{value:e.boolDialog,callback:function(r){e.boolDialog=r},expression:"boolDialog"}},[t(B,{attrs:{title:e.name,icon:e.mdiLightbulbOutline,"card-class":"temperature-edit-heater-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.boolDialog=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,{staticClass:"pt-6"},[e.presets.length?[t($,[t(_,{staticClass:"light-presets-container pt-0 d-flex flex-wrap flex-row justify-center"},e._l(e.presets,function(r){return t(de,{key:r.id,attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(i){var n=i.on,a=i.attrs;return[t("div",e._g(e._b({style:e.presetStyle(r),on:{click:function(o){return e.usePreset(r)}}},"div",a,!1),n))]}}],null,!0)},[t("span",[e._v(e._s(r.name))])])}),1)],1),t(U,{staticClass:"my-3"})]:e._e(),t($,[t(_,{staticClass:"text-center"},[t(Jn,{attrs:{color:e.colorRGB,options:e.colorPickerOptions},on:{"update:color":e.onColorRGBChanged}}),e.existWhite?t(Jn,{staticClass:"mt-3",attrs:{color:e.colorRGBW,options:e.colorPickerWhiteOptions},on:{"update:color":e.onColorWhiteChanged}}):e._e()],1),t(_,[e.existRed?t($,[t(_,[t(je,{attrs:{label:e.$t("Panels.MiscellaneousPanel.Light.Red"),param:"red",target:e.redInt,"default-value":Math.round(e.object.initialRed*255),min:0,max:255,dec:1,step:1,"output-error-msg":!0,"has-spinner":!0},on:{submit:e.onColorInput}})],1)],1):e._e(),e.existGreen?t($,[t(_,[t(je,{attrs:{label:e.$t("Panels.MiscellaneousPanel.Light.Green"),param:"green",target:e.greenInt,"default-value":Math.round(e.object.initialGreen*255),min:0,max:255,dec:1,step:1,"has-spinner":!0},on:{submit:e.onColorInput}})],1)],1):e._e(),e.existBlue?t($,[t(_,[t(je,{attrs:{label:e.$t("Panels.MiscellaneousPanel.Light.Blue"),param:"blue",target:e.blueInt,"default-value":Math.round(e.object.initialBlue*255),min:0,max:255,dec:1,step:1,"has-spinner":!0},on:{submit:e.onColorInput}})],1)],1):e._e(),e.existWhite?t($,[t(_,[t(je,{attrs:{label:e.$t("Panels.MiscellaneousPanel.Light.White"),param:"white",target:e.whiteInt,"default-value":Math.round(e.object.initialWhite*255),min:0,max:255,dec:1,step:1,"has-spinner":!0},on:{submit:e.onColorInput}})],1)],1):e._e()],1)],1)],2)],1)],1)],2)},r6=[];const m1={};var i6=E(Vs,s6,r6,!1,n6,"aca41388",null,null);function n6(e){for(let s in m1)this[s]=m1[s]}const zp=function(){return i6.exports}(),a6=Object.freeze(Object.defineProperty({__proto__:null,default:zp},Symbol.toStringTag,{value:"Module"}));var o6=Object.defineProperty,l6=Object.getOwnPropertyDescriptor,uu=(e,s,t,r)=>{for(var i=r>1?void 0:r?l6(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&o6(s,t,i),i};let wi=class extends M(O){constructor(){super(...arguments),this.mdiToggleSwitch=Ep,this.mdiToggleSwitchOffOutline=c2,this.mdiPrinter3dNozzleAlert=Ky,this.convertName=at}get statusColor(){if(this.enabled){if(this.filament_detected)return"success"}else return"gray";return"warning"}get statusText(){return this.filament_detected?this.$t("Panels.MiscellaneousPanel.RunoutSensor.Detected"):this.$t("Panels.MiscellaneousPanel.RunoutSensor.Empty")}changeSensor(){const e="SET_FILAMENT_SENSOR SENSOR="+this.name+" ENABLE="+(this.enabled?0:1);this.$store.dispatch("server/addEvent",{message:e,type:"command"}),this.$socket.emit("printer.gcode.script",{script:e})}};uu([P({type:String,required:!0})],wi.prototype,"name",2);uu([P({type:Boolean,required:!0})],wi.prototype,"enabled",2);uu([P({type:Boolean,required:!0})],wi.prototype,"filament_detected",2);wi=uu([D],wi);var c6=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Ae,{staticClass:"px-0 py-2"},[t($,[t(_,{staticClass:"pb-3"},[t(_s,{staticClass:"_filamentRunout-subheader"},[t(v,{staticClass:"mr-2",attrs:{small:""}},[e._v(e._s(e.mdiPrinter3dNozzleAlert))]),t("span",[e._v(e._s(e.convertName(e.name)))]),t(ae),t("small",{class:"mr-3 "+e.statusColor+"--text"},[e._v(e._s(e.statusText))]),t(v,{on:{click:e.changeSensor}},[e._v(" "+e._s(e.enabled?e.mdiToggleSwitch:e.mdiToggleSwitchOffOutline)+" ")])],1)],1)],1)],1)},u6=[];const h1={};var d6=E(wi,c6,u6,!1,m6,"0d751882",null,null);function m6(e){for(let s in h1)this[s]=h1[s]}const q2=function(){return d6.exports}();var h6=Object.defineProperty,p6=Object.getOwnPropertyDescriptor,Zp=(e,s,t,r)=>{for(var i=r>1?void 0:r?p6(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&h6(s,t,i),i};let Kn=class extends M(O){constructor(){super(...arguments),this.convertName=at,this.mdiGauge=jT,this.mdiLightningBoltOutline=VT,this.mdiFlash=FT,this.mdiThermometer=a2,this.mdiMeterElectricOutline=zT}get sensorData(){const e=this.$store.state.server.sensor.sensors;return this.sensor in e?e[this.sensor].values:{}}get sensorConfig(){var t,r;const e="sensor ".concat(this.sensor),s=(r=(t=this.$store.state.server.config)==null?void 0:t.config)!=null?r:{};return e in s?s[e]:{}}get parameterConfig(){const e="parameter_".concat(this.valueName);return e in this.sensorConfig?this.sensorConfig[e]:{}}get unit(){return"units"in this.parameterConfig?this.parameterConfig.units:null}get value(){return this.valueName in this.sensorData?Math.round(this.sensorData[this.valueName]*1e3)/1e3:"--"}get output(){return this.unit===null?this.value:"".concat(this.value," ").concat(this.unit)}get name(){return this.convertName(this.valueName)}get symbol(){var e,s,t,r;return["wh","kwh","mwh","j"].includes((e=this.unit)==null?void 0:e.toLowerCase())?this.mdiLightningBoltOutline:["w","v"].includes((s=this.unit)==null?void 0:s.toLowerCase())?this.mdiFlash:((t=this.unit)==null?void 0:t.toLowerCase())==="a"?this.mdiMeterElectricOutline:["°c","c","°f","f","°"].includes((r=this.unit)==null?void 0:r.toLowerCase())?this.mdiThermometer:this.mdiGauge}};Zp([P({type:String,required:!0})],Kn.prototype,"sensor",2);Zp([P({type:String,required:!0})],Kn.prototype,"valueName",2);Kn=Zp([D],Kn);var f6=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"d-flex w-100 flex-row align-center"},[t(v,{attrs:{small:"",left:""}},[e._v(e._s(e.symbol))]),t("span",{staticClass:"flex-grow-1"},[e._v(e._s(e.name)+":")]),t("span",[e._v(e._s(e.output))])],1)},g6=[];const p1={};var v6=E(Kn,f6,g6,!1,_6,null,null,null);function _6(e){for(let s in p1)this[s]=p1[s]}const X2=function(){return v6.exports}();var b6=Object.defineProperty,y6=Object.getOwnPropertyDescriptor,Y2=(e,s,t,r)=>{for(var i=r>1?void 0:r?y6(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&b6(s,t,i),i};let ul=class extends M(O){constructor(){super(...arguments),this.convertName=at}get valueNames(){const e=this.$store.state.server.sensor.sensors;return this.name in e?Object.keys(e[this.name].values):[]}};Y2([P({type:String,required:!0})],ul.prototype,"name",2);ul=Y2([D({components:{MoonrakerSensorValue:X2}})],ul);var C6=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Ae,{staticClass:"px-0 py-2"},[t($,[t(_,{staticClass:"pb-3"},[t(_s,{staticClass:"mb-1 d-block _moonraker-sensor-subheader"},[e._v(" "+e._s(e.convertName(e.name))+" ")]),t(_s,{staticClass:"d-block _moonraker-sensor-subheader"},e._l(e.valueNames,function(r,i){return t(X2,{key:"moonraker_sensor_value_"+i,attrs:{sensor:e.name,"value-name":r}})}),1)],1)],1)],1)},$6=[];const f1={};var x6=E(ul,C6,$6,!1,w6,"93458f12",null,null);function w6(e){for(let s in f1)this[s]=f1[s]}const J2=function(){return x6.exports}();var S6=Object.defineProperty,P6=Object.getOwnPropertyDescriptor,D6=(e,s,t,r)=>{for(var i=r>1?void 0:r?P6(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&S6(s,t,i),i};let pm=class extends M(O){constructor(){super(...arguments),this.mdiDipSwitch=_p}get filamentSensors(){var s;return(s=this.$store.getters["printer/getFilamentSensors"])!=null?s:[]}get miscellaneous(){var s;return(s=this.$store.getters["printer/getMiscellaneous"])!=null?s:[]}get lights(){var s;return(s=this.$store.getters["printer/getLights"])!=null?s:[]}get moonrakerSensors(){var s;return(s=this.$store.getters["server/sensor/getSensors"])!=null?s:[]}get showMiscellaneousPanel(){return this.klipperReadyForGui&&(this.miscellaneous.length||this.filamentSensors.length||this.lights.length)}};pm=D6([D({components:{Panel:B,FilamentSensor:q2,MiscellaneousSlider:cm,MiscellaneousLight:zp,MoonrakerSensor:J2}})],pm);var T6=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.showMiscellaneousPanel?t(B,{attrs:{icon:e.mdiDipSwitch,title:e.$t("Panels.MiscellaneousPanel.Headline"),collapsible:!0,"card-class":"miscellaneous-panel"}},[e._l(e.miscellaneous,function(r,i){return t("div",{key:i},[i?t(U):e._e(),t(cm,{attrs:{name:r.name,type:r.type,target:r.power,rpm:r.rpm,controllable:r.controllable,pwm:r.pwm,off_below:r.off_below,max:r.max_power,multi:parseInt(r.scale)}})],1)}),e._l(e.lights,function(r,i){return t("div",{key:"light_"+r.name},[i||e.miscellaneous.length?t(U):e._e(),r.type==="led"&&r.colorOrder.length===1?t(cm,{attrs:{name:r.name,type:"led",rpm:null,controllable:!0,pwm:!0,target:r.singleChannelTarget,"color-order":r.colorOrder}}):t(zp,{attrs:{object:r,root:!0}})],1)}),e._l(e.filamentSensors,function(r,i){return t("div",{key:"sensor_"+i},[i||e.miscellaneous.length||e.lights.length?t(U):e._e(),t(q2,{attrs:{name:r.name,enabled:r.enabled,filament_detected:r.filament_detected}})],1)}),e._l(e.moonrakerSensors,function(r,i){return t("div",{key:"moonraker_sensor_"+i},[i||e.miscellaneous.length||e.lights.length||e.filamentSensors.length?t(U):e._e(),t(J2,{attrs:{name:r}})],1)})],2):e._e()},M6=[];const g1={};var E6=E(pm,T6,M6,!1,O6,null,null,null);function O6(e){for(let s in g1)this[s]=g1[s]}const L6=function(){return E6.exports}();var A6=Object.defineProperty,k6=Object.getOwnPropertyDescriptor,qp=(e,s,t,r)=>{for(var i=r>1?void 0:r?k6(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&A6(s,t,i),i};let Qn=class extends M(O){get color(){var s,t;const e=(t=(s=this.spool.filament)==null?void 0:s.color_hex)!=null?t:"000";return"#".concat(e)}get id(){let e=this.spool.id.toString();for(;e.length<this.max_id_digits;)e="0"+e;return e}get vendor(){var e,s,t;return(t=(s=(e=this.spool.filament)==null?void 0:e.vendor)==null?void 0:s.name)!=null?t:"Unknown"}get name(){var e,s;return(s=(e=this.spool.filament)==null?void 0:e.name)!=null?s:"Unknown"}get location(){return this.spool.location}get material(){var e,s;return(s=(e=this.spool.filament)==null?void 0:e.material)!=null?s:"--"}get remaining_weight(){var e;return(e=this.spool.remaining_weight)!=null?e:0}get total_weight(){var e,s;return(s=(e=this.spool.filament)==null?void 0:e.weight)!=null?s:0}get remaining_weight_format(){return"".concat(this.remaining_weight.toFixed(0),"g")}get total_weight_format(){if(this.total_weight<1e3)return"".concat(this.total_weight.toFixed(0),"g");let e=Math.round(this.total_weight/1e3);return e!==this.total_weight/1e3&&(e=Math.round(this.total_weight/100)/10),"".concat(e,"kg")}get last_used(){var i;if(!((i=this.spool.last_used)!=null?i:null))return this.$t("Panels.SpoolmanPanel.Never");const s=new Date(this.spool.last_used),r=new Date().getTime()-s.getTime();if(r<=1e3*60*60*24)return this.$t("Panels.SpoolmanPanel.Today");if(r<=1e3*60*60*24*2)return this.$t("Panels.SpoolmanPanel.Yesterday");if(r<=1e3*60*60*24*14){const n=Math.floor(r/864e5);return this.$t("Panels.SpoolmanPanel.DaysAgo",{days:n})}return s.toLocaleDateString()}setSpoolRow(){this.$emit("set-spool",this.spool)}};qp([P({required:!0})],Qn.prototype,"spool",2);qp([P({required:!1})],Qn.prototype,"max_id_digits",2);Qn=qp([D({})],Qn);var F6=Object.defineProperty,R6=Object.getOwnPropertyDescriptor,K2=(e,s,t,r)=>{for(var i=r>1?void 0:r?R6(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&F6(s,t,i),i};let dl=class extends M(O){get styleCircle1(){return{fill:this.color}}get styleCircle2(){return{fill:"#bebebe"}}get styleCircle3(){return{fill:"#343434"}}clickSpool(){this.$emit("click-spool")}};K2([P({required:!1,default:"#ff0"})],dl.prototype,"color",2);dl=K2([D({})],dl);var j6=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("svg",{staticClass:"cursor-pointer",attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 487.04 487.04","xml:space":"preserve"},on:{click:e.clickSpool}},[t("g",[t("circle",{style:e.styleCircle1,attrs:{cx:"243.52",cy:"243.52",r:"232.97"}}),t("circle",{style:e.styleCircle2,attrs:{cx:"243.52",cy:"243.52",r:"112.5"}}),t("path",{style:e.styleCircle3,attrs:{d:"M0,243.52c0,134.42,109.1,243.52,243.52,243.52,134.42,0,243.52-109.1,243.52-243.52S377.95,0,243.52,0C109.1,0,0,109.1,0,243.52Zm115.73,181.78c-52.4-39.5-86.52-98.59-94.52-163.72v-.09c-.68-5.43,1-10.89,4.6-15,3.6-4.12,8.79-6.51,14.26-6.57l118.36-1.33c18.99-.21,36.63,9.83,46.12,26.29,9.5,16.45,9.38,36.74-.3,53.09l-60.29,101.76c-2.8,4.73-7.48,8.03-12.87,9.1-5.39,1.06-10.98-.22-15.36-3.52ZM450.22,238.8c5.49,.06,10.7,2.46,14.31,6.59,3.62,4.13,5.3,9.61,4.63,15.06-8.01,65.13-42.12,124.22-94.52,163.72l-.07,.05c-4.37,3.29-9.93,4.57-15.3,3.51-5.37-1.06-10.03-4.36-12.82-9.06l-60.33-101.84c-9.68-16.34-9.8-36.64-.3-53.09,9.5-16.45,27.13-26.5,46.12-26.29l118.27,1.33ZM338.12,40.02c5.04,2.14,8.92,6.32,10.69,11.49,1.77,5.18,1.24,10.86-1.44,15.63l-58.03,103.17c-9.31,16.56-26.83,26.8-45.83,26.8-19,0-36.51-10.25-45.83-26.8l-57.99-103.09c-2.69-4.79-3.22-10.49-1.45-15.69,1.77-5.2,5.68-9.4,10.73-11.54,60.41-25.63,128.64-25.63,189.05,0l.08,.04Z"}})])])},H6=[];const v1={};var I6=E(dl,j6,H6,!1,N6,null,null,null);function N6(e){for(let s in v1)this[s]=v1[s]}const Q2=function(){return I6.exports}();var V6=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("tr",{staticClass:"cursor-pointer",on:{click:e.setSpoolRow}},[t("td",{staticClass:"pr-0 py-2",staticStyle:{width:"50px"}},[t(Q2,{staticClass:"mr-3",staticStyle:{width:"50px",float:"left"},attrs:{color:e.color}})],1),t("td",{staticClass:"py-2",staticStyle:{"min-width":"300px"}},[t(J,{attrs:{"two-line":""}},[t(vt,{staticClass:"no--padding"},[t("div",{staticClass:"text--disabled mb-1"},[e._v("#"+e._s(e.id)+" | "+e._s(e.vendor))]),t(Ge,{staticClass:"mb-1"},[t("span",{staticClass:"text--filament"},[e._v(e._s(e.name))]),e.location?[t("br"),t("small",[e._v(e._s(e.$t("Panels.SpoolmanPanel.Location"))+": "+e._s(e.location))])]:e._e(),e.spool.comment?[t("br"),t("small",{staticClass:"comment"},[e._v(e._s(e.spool.comment))])]:e._e()],2)],1)],1)],1),t("td",{staticClass:"text-center text-no-wrap"},[e._v(e._s(e.material))]),t("td",{staticClass:"text-right text-no-wrap"},[e._v(e._s(e.last_used))]),t("td",{staticClass:"text-right text-no-wrap"},[t("strong",[e._v(e._s(e.remaining_weight_format))]),t("small",{staticClass:"ml-1"},[e._v("/ "+e._s(e.total_weight_format))])])])},U6=[];const _1={};var B6=E(Qn,V6,U6,!1,W6,"8094a05a",null,null);function W6(e){for(let s in _1)this[s]=_1[s]}const eC=function(){return B6.exports}();var G6=Object.defineProperty,z6=Object.getOwnPropertyDescriptor,Xp=(e,s,t,r)=>{for(var i=r>1?void 0:r?z6(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&G6(s,t,i),i};let ea=class extends M(O){constructor(){super(...arguments),this.mdiAdjust=Ki,this.mdiCloseThick=pe,this.mdiDatabase=CT,this.mdiMagnify=zc,this.mdiRefresh=tn,this.search=""}get spools(){var e;return(e=this.$store.state.server.spoolman.spools)!=null?e:[]}get max_spool_id_digits(){return this.$store.state.server.spoolman.spools.reduce((s,t)=>Math.max(s,t.id),0).toString().length}get headers(){return[{text:" ",align:"start",sortable:!1},{text:this.$t("Panels.SpoolmanPanel.Filament"),align:"start",value:"filament.name",sortable:!1},{text:this.$t("Panels.SpoolmanPanel.Material"),align:"center",value:"filament.material"},{text:this.$t("Panels.SpoolmanPanel.LastUsed"),align:"end",value:"last_used"},{text:this.$t("Panels.SpoolmanPanel.Weight"),align:"end",value:"remaining_weight"}]}get spoolManagerUrl(){var e,s,t;return(t=(s=(e=this.$store.state.server.config.config)==null?void 0:e.spoolman)==null?void 0:s.server)!=null?t:null}openSpoolManager(){window.open(this.spoolManagerUrl,"_blank")}mounted(){this.refresh()}refresh(){this.$store.dispatch("server/spoolman/refreshSpools")}close(){this.$emit("close")}refreshSpools(){this.$store.dispatch("server/spoolman/refreshSpools")}customFilter(e,s,t){var n;if(s.trim().startsWith("web+spoolman:s-")){const a=parseInt((n=s.split("-")[1])!=null?n:-1);return t.id===a}const r=s.toLowerCase().split(" "),i=[t.id.toString(),t.comment,t.filament.name,t.filament.vendor.name,t.filament.material,t.location];for(const a of r)if(!i.some(l=>l==null?void 0:l.toLowerCase().includes(a)))return!1;return!0}setSpool(e){this.$store.dispatch("server/spoolman/setActiveSpool",e.id),this.close()}onShowDialogChanged(e){e&&(this.search="")}};Xp([P({required:!0})],ea.prototype,"showDialog",2);Xp([me("showDialog")],ea.prototype,"onShowDialogChanged",1);ea=Xp([D({components:{SpoolmanChangeSpoolDialogRow:eC,Panel:B}})],ea);var Z6=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(oe,{attrs:{width:"800",persistent:"",fullscreen:e.isMobile},model:{value:e.showDialog,callback:function(r){e.showDialog=r},expression:"showDialog"}},[t(B,{attrs:{title:e.$t("Panels.SpoolmanPanel.ChangeSpool"),icon:e.mdiAdjust,"card-class":"spoolman-change-spool-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.close}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(gt,[t(te,{staticStyle:{"max-width":"300px"},attrs:{"append-icon":e.mdiMagnify,label:e.$t("Panels.SpoolmanPanel.Search"),outlined:"",dense:"","hide-details":""},model:{value:e.search,callback:function(r){e.search=r},expression:"search"}}),t(ae),t(g,{staticClass:"px-2 minwidth-0 ml-3",attrs:{title:e.$t("Panels.SpoolmanPanel.Refresh"),loading:e.loadings.includes("refreshSpools")},on:{click:e.refreshSpools}},[t(v,[e._v(e._s(e.mdiRefresh))])],1),t(g,{staticClass:"px-2 minwidth-0 ml-3",attrs:{title:e.$t("Panels.SpoolmanPanel.OpenSpoolManager")},on:{click:e.openSpoolManager}},[t(v,[e._v(e._s(e.mdiDatabase))])],1)],1),t(q,{staticClass:"px-0 pb-0"},[t(zr,{attrs:{headers:e.headers,items:e.spools,"item-key":"id",search:e.search,"sort-by":"last_used","sort-desc":!0,"custom-filter":e.customFilter},scopedSlots:e._u([{key:"no-data",fn:function(){return[t("div",{staticClass:"text-center"},[e._v(e._s(e.$t("Panels.SpoolmanPanel.NoSpools")))])]},proxy:!0},{key:"no-results",fn:function(){return[t("div",{staticClass:"text-center"},[e._v(e._s(e.$t("Panels.SpoolmanPanel.NoResults")))])]},proxy:!0},{key:"item",fn:function(r){var i=r.item;return[t(eC,{key:i.id,attrs:{spool:i,max_id_digits:e.max_spool_id_digits},on:{"set-spool":e.setSpool}})]}}])})],1)],1)],1)],1)},q6=[];const b1={};var X6=E(ea,Z6,q6,!1,Y6,null,null,null);function Y6(e){for(let s in b1)this[s]=b1[s]}const du=function(){return X6.exports}();var J6=Object.defineProperty,K6=Object.getOwnPropertyDescriptor,tC=(e,s,t,r)=>{for(var i=r>1?void 0:r?K6(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&J6(s,t,i),i};let ml=class extends M(O){constructor(){super(...arguments),this.mdiEject=Ly,this.mdiCloseThick=pe}close(){this.$emit("close")}removeSpool(){this.$store.dispatch("server/spoolman/setActiveSpool",null),this.close()}};tC([P({required:!0})],ml.prototype,"showDialog",2);ml=tC([D({components:{Panel:B}})],ml);var Q6=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{width:"400",persistent:"",fullscreen:e.isMobile},model:{value:e.showDialog,callback:function(r){e.showDialog=r},expression:"showDialog"}},[t(B,{attrs:{title:e.$t("Panels.SpoolmanPanel.EjectSpool"),icon:e.mdiEject,"card-class":"spoolman-eject-spool-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.close}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t($,[t(_,[t("p",{staticClass:"body-2"},[e._v(e._s(e.$t("Panels.SpoolmanPanel.EjectSpoolQuestion")))])])],1)],1),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:e.close}},[e._v(e._s(e.$t("Panels.SpoolmanPanel.Cancel")))]),t(g,{attrs:{color:"primary",text:""},on:{click:e.removeSpool}},[e._v(" "+e._s(e.$t("Panels.SpoolmanPanel.EjectSpool"))+" ")])],1)],1)],1)},eL=[];const y1={};var tL=E(ml,Q6,eL,!1,sL,null,null,null);function sL(e){for(let s in y1)this[s]=y1[s]}const Yp=function(){return tL.exports}();var rL=Object.defineProperty,iL=Object.getOwnPropertyDescriptor,sC=(e,s,t,r)=>{for(var i=r>1?void 0:r?iL(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&rL(s,t,i),i};let hl=class extends M(O){get listItemContentClass(){return this.small?"my-0":""}get overlineClass(){const e=["text-overline","mb-1"];return this.small&&e.push("line-height-auto"),e}get listItemTitleClass(){return this.small?["text-h6","mb-1"]:["text-h5","mb-1"]}get avatarSize(){return this.small?60:80}get active_spool(){var e;return(e=this.$store.state.server.spoolman.active_spool)!=null?e:null}get color(){var s,t;const e=(t=(s=this.active_spool)==null?void 0:s.filament.color_hex)!=null?t:null;return e===null?"#000":"#".concat(e)}get id(){var e,s;return(s=(e=this.active_spool)==null?void 0:e.id)!=null?s:"XX"}get vendor(){var e,s,t,r;return(r=(t=(s=(e=this.active_spool)==null?void 0:e.filament)==null?void 0:s.vendor)==null?void 0:t.name)!=null?r:"Unknown"}get name(){var e,s;return(s=(e=this.active_spool)==null?void 0:e.filament.name)!=null?s:"Unknown"}get materialOutput(){var s,t;const e=(t=(s=this.active_spool)==null?void 0:s.filament.material)!=null?t:null;return e===null?null:e}get weightOutput(){var i,n,a,o;let e=(n=(i=this.active_spool)==null?void 0:i.remaining_weight)!=null?n:null,s=(o=(a=this.active_spool)==null?void 0:a.filament.weight)!=null?o:null,t="g";if(e===null||s===null)return null;e=Math.round(e);let r=Math.floor(s/1e3);return s>=1e3?(r!==s/1e3&&(r=Math.round(s/100)/10),"".concat(e,"g / ").concat(r,"kg")):"".concat(e," / ").concat(s).concat(t)}get lengthOutput(){var s,t;let e=(t=(s=this.active_spool)==null?void 0:s.remaining_length)!=null?t:null;return e===null?null:(e=Math.round(e/1e3),"".concat(e,"m"))}get subtitle(){return[this.materialOutput,this.weightOutput,this.lengthOutput].filter(e=>e!==null).join(" | ")}clickSpool(){this.$emit("change-spool")}};sC([P({required:!1,default:!1})],hl.prototype,"small",2);hl=sC([D({components:{Panel:B,SpoolmanChangeSpoolDialog:du,SpoolmanEjectSpoolDialog:Yp}})],hl);var nL=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(J,{attrs:{"three-line":""}},[t(vt,{class:e.listItemContentClass},[t("div",{class:e.overlineClass},[e._v("#"+e._s(e.id)+" | "+e._s(e.vendor))]),t(Ge,{class:e.listItemTitleClass},[t("span",{staticClass:"cursor-pointer",on:{click:e.clickSpool}},[e._v(e._s(e.name))])]),t(Aa,[e._v(e._s(e.subtitle))])],1),t(bP,{attrs:{tile:"",size:e.avatarSize}},[t(Q2,{attrs:{color:e.color},on:{"click-spool":e.clickSpool}})],1)],1)},aL=[];const C1={};var oL=E(hl,nL,aL,!1,lL,"dfb564f4",null,null);function lL(e){for(let s in C1)this[s]=C1[s]}const mu=function(){return oL.exports}();var cL=Object.defineProperty,uL=Object.getOwnPropertyDescriptor,dL=(e,s,t,r)=>{for(var i=r>1?void 0:r?uL(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&cL(s,t,i),i};let fm=class extends M(O){constructor(){super(...arguments),this.mdiAdjust=Ki,this.mdiDotsVertical=Vc,this.mdiEject=Ly,this.mdiOpenInNew=Xy,this.mdiSwapVertical=h3,this.showChangeSpoolDialog=!1,this.showEjectSpoolDialog=!1}get health(){var s;return(s=this.$store.state.server.spoolman.health)!=null?s:""}get title(){const s=this.$t("Panels.SpoolmanPanel.Headline");return this.health===""||this.health==="healthy"?s:"".concat(s," (").concat(this.health,")")}get changeSpoolTooltip(){return this.active_spool===null?this.$t("Panels.SpoolmanPanel.SelectSpool"):this.$t("Panels.SpoolmanPanel.ChangeSpool")}get active_spool(){var s;return(s=this.$store.state.server.spoolman.active_spool)!=null?s:null}get spoolManagerUrl(){var s,t,r;return(r=(t=(s=this.$store.state.server.config.config)==null?void 0:s.spoolman)==null?void 0:t.server)!=null?r:null}openSpoolManager(){window.open(this.spoolManagerUrl,"_blank")}};fm=dL([D({components:{SpoolmanPanelActiveSpool:mu,Panel:B,SpoolmanChangeSpoolDialog:du,SpoolmanEjectSpoolDialog:Yp}})],fm);var mL=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(B,{attrs:{icon:e.mdiAdjust,title:e.title,"card-class":"spoolman-panel",collapsible:!0},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:"",title:e.changeSpoolTooltip},on:{click:function(r){e.showChangeSpoolDialog=!0}}},[t(v,[e._v(e._s(e.mdiSwapVertical))])],1),t($e,{attrs:{"offset-y":!0,"close-on-content-click":!1,left:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({attrs:{icon:"",tile:""}},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.mdiDotsVertical))])],1)]}}])},[t(Oe,{attrs:{dense:""}},[t(J,[t(g,{staticStyle:{width:"100%"},attrs:{small:""},on:{click:function(r){e.showEjectSpoolDialog=!0}}},[t(v,{attrs:{left:""}},[e._v(e._s(e.mdiEject))]),e._v(" "+e._s(e.$t("Panels.SpoolmanPanel.EjectSpool"))+" ")],1)],1),t(J,[t(g,{staticStyle:{width:"100%"},attrs:{small:""},on:{click:e.openSpoolManager}},[t(v,{attrs:{left:""}},[e._v(e._s(e.mdiOpenInNew))]),e._v(" "+e._s(e.$t("Panels.SpoolmanPanel.OpenSpoolManager"))+" ")],1)],1)],1)],1)]},proxy:!0}])},[e.active_spool===null?t(q,[t($,[t(_,{staticClass:"text-center"},[t("p",{staticClass:"text--disabled"},[e._v(e._s(e.$t("Panels.SpoolmanPanel.NoActiveSpool")))]),t(g,{attrs:{small:"",color:"primary"},on:{click:function(r){e.showChangeSpoolDialog=!0}}},[e._v(" "+e._s(e.$t("Panels.SpoolmanPanel.SelectSpool"))+" ")])],1)],1)],1):t(mu,{on:{"change-spool":function(r){e.showChangeSpoolDialog=!0}}})],1),t(du,{attrs:{"show-dialog":e.showChangeSpoolDialog},on:{close:function(r){e.showChangeSpoolDialog=!1}}}),t(Yp,{attrs:{"show-dialog":e.showEjectSpoolDialog},on:{close:function(r){e.showEjectSpoolDialog=!1}}})],1)},hL=[];const $1={};var pL=E(fm,mL,hL,!1,fL,null,null,null);function fL(e){for(let s in $1)this[s]=$1[s]}const gL=function(){return pL.exports}();var vL=Object.defineProperty,_L=Object.getOwnPropertyDescriptor,hu=(e,s,t,r)=>{for(var i=r>1?void 0:r?_L(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&vL(s,t,i),i};let Si=class extends M(O){constructor(){super(...arguments),this.mdiCloseThick=pe,this.mdiCounter=My,this.mdiDragVertical=Ra,this.mdiFile=pr,this.mdiPlay=en,this.mdiPlaylistRemove=QT,this.showContextMenu=!1,this.contextMenuX=0,this.contextMenuY=0,this.showChangeCountDialog=!1}get smallThumbnail(){return this.$store.getters["server/jobQueue/getSmallThumbnail"](this.job)}get bigThumbnail(){return this.$store.getters["server/jobQueue/getBigThumbnail"](this.job)}get description(){var r,i;if(!((i=(r=this.job)==null?void 0:r.metadata)!=null&&i.metadataPulled))return!1;const e=[];let s="--";this.filamentLength&&e.push(this.filamentLength),this.filamentWeight&&e.push(this.filamentWeight),e.length&&(s=e.join(" / "));let t="--";return this.estimatedTime&&(t=this.estimatedTime),"".concat(this.$t("Panels.StatusPanel.Filament"),": ").concat(s,", ").concat(this.$t("Panels.StatusPanel.PrintTime"),": ").concat(t)}get filamentLength(){var s,t;const e=(t=(s=this.job.metadata)==null?void 0:s.filament_total)!=null?t:0;return e===0?null:e>=1e3?(e/1e3).toFixed(1)+" m":e.toFixed(0)+" mm"}get filamentWeight(){var s,t;const e=(t=(s=this.job.metadata)==null?void 0:s.filament_weight_total)!=null?t:0;return e===0?null:e>=1e3?(length/1e3).toFixed(1)+" kg":e.toFixed(0)+" g"}get estimatedTime(){var a,o;let e=(o=(a=this.job.metadata)==null?void 0:a.estimated_time)!=null?o:0;if(e==0)return"--";const s=[],t=Math.floor(e/(3600*24));t&&(e%=3600*24,s.push(t+"d"));const r=Math.floor(e/3600);e%=3600,r&&s.push(r+"h");const i=Math.floor(e/60);if(i&&s.push(i+"m"),r>0)return s.join(" ");const n=e%60;return n&&s.push(n.toFixed(0)+"s"),s.join(" ")}get bigThumbnailBackground(){var e;return(e=this.$store.state.gui.uiSettings.bigThumbnailBackground)!=null?e:qt}get bigThumbnailTooltipColor(){if(qt.toLowerCase()!==this.bigThumbnailBackground.toLowerCase())return this.bigThumbnailBackground}openContextMenu(e){if(e==null||e.preventDefault(),this.showContextMenu){this.showContextMenu=!1;return}this.showContextMenu=!0,this.contextMenuX=(e==null?void 0:e.clientX)||(e==null?void 0:e.pageX)||window.screenX/2,this.contextMenuY=(e==null?void 0:e.clientY)||(e==null?void 0:e.pageY)||window.screenY/2}printJob(){this.$store.dispatch("server/jobQueue/startByJobId",this.job.job_id)}startJobqueue(){this.$store.dispatch("server/jobQueue/start")}removeFromJobqueue(){var s;const e=[...(s=this.job.combinedIds)!=null?s:[],this.job.job_id];this.$store.dispatch("server/jobQueue/deleteFromQueue",e)}};hu([P({type:Object,required:!0})],Si.prototype,"job",2);hu([P({type:Boolean,default:!1})],Si.prototype,"showPrintButton",2);hu([P({type:Boolean,default:!1})],Si.prototype,"showHandle",2);Si=hu([D],Si);var bL=Object.defineProperty,yL=Object.getOwnPropertyDescriptor,pu=(e,s,t,r)=>{for(var i=r>1?void 0:r?yL(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&bL(s,t,i),i};let Pi=class extends M(O){constructor(){super(...arguments),this.mdiCloseThick=pe,this.mdiChevronUp=Nc,this.mdiChevronDown=hr,this.mdiCounter=My,this.count=1,this.countInputRules=[e=>!!e||this.$t("JobQueue.InvalidCountEmpty"),e=>parseInt(e)>0||this.$t("JobQueue.InvalidCountGreaterZero")]}update(){this.$store.dispatch("server/jobQueue/changeCount",{job_id:this.job.job_id,count:this.count}),this.closeDialog()}closeDialog(){this.$emit("close")}showChanged(e){var s,t;e&&(this.count=((t=(s=this.job.combinedIds)==null?void 0:s.length)!=null?t:0)+1)}};pu([P({type:Boolean,required:!0})],Pi.prototype,"show",2);pu([P({type:Object,required:!0})],Pi.prototype,"job",2);pu([me("show")],Pi.prototype,"showChanged",1);Pi=pu([D({components:{Panel:B}})],Pi);var CL=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{value:e.show,"max-width":"400"}},[t(B,{attrs:{title:e.$t("JobQueue.ChangeCount"),icon:e.mdiCounter,"card-class":"jobqueue-change-count-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t(te,{ref:"inputFieldAddToQueueCount",attrs:{label:e.$t("JobQueue.Count"),required:"",rules:e.countInputRules,"hide-spin-buttons":"",type:"number"},on:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.update.apply(null,arguments)}},scopedSlots:e._u([{key:"append-outer",fn:function(){return[t("div",{staticClass:"_spin_button_group"},[t(g,{staticClass:"mt-n3",attrs:{icon:"",plain:"",small:""},on:{click:function(r){e.count++}}},[t(v,[e._v(e._s(e.mdiChevronUp))])],1),t(g,{staticClass:"mb-n3",attrs:{disabled:e.count<=1,icon:"",plain:"",small:""},on:{click:function(r){e.count--}}},[t(v,[e._v(e._s(e.mdiChevronDown))])],1)],1)]},proxy:!0}]),model:{value:e.count,callback:function(r){e.count=r},expression:"count"}})],1),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:e.closeDialog}},[e._v(e._s(e.$t("JobQueue.Cancel")))]),t(g,{attrs:{color:"primary",text:""},on:{click:e.update}},[e._v(e._s(e.$t("JobQueue.ChangeCount")))])],1)],1)],1)},$L=[];const x1={};var xL=E(Pi,CL,$L,!1,wL,null,null,null);function wL(e){for(let s in x1)this[s]=x1[s]}const SL=function(){return xL.exports}();var PL=function(){var e,s=this,t=s.$createElement,r=s._self._c||t;return r($,{directives:[{name:"longpress",rawName:"v-longpress:600",value:function(i){return s.openContextMenu(i)},expression:"(e) => openContextMenu(e)",arg:"600"}],staticClass:"jobqueue-list-entry d-flex flex-row flex-nowrap cursor-pointer",on:{contextmenu:function(i){return s.openContextMenu(i)}}},[s.showHandle?r(_,{staticClass:"col-auto d-flex flex-column justify-center pr-0 py-0"},[r(v,{staticClass:"handle"},[s._v(s._s(s.mdiDragVertical))])],1):s._e(),r(_,{staticClass:"col-auto d-flex flex-column justify-center pr-0 py-0"},[s.smallThumbnail?r(de,{attrs:{top:"",disabled:!s.bigThumbnail,"content-class":"tooltip__content-opacity1",color:s.bigThumbnailTooltipColor},scopedSlots:s._u([{key:"activator",fn:function(i){var n=i.on,a=i.attrs;return[r("vue-load-image",[r("img",s._g(s._b({attrs:{slot:"image",src:s.smallThumbnail,width:32,height:32,alt:s.job.filename},slot:"image"},"img",a,!1),n)),r("div",{attrs:{slot:"preloader"},slot:"preloader"},[r(dt,{attrs:{indeterminate:"",color:"primary"}})],1),r("div",{attrs:{slot:"error"},slot:"error"},[r(v,[s._v(s._s(s.mdiFile))])],1)])]}}],null,!1,2738555475)},[r("span",[r("img",{attrs:{src:s.bigThumbnail,width:250,alt:s.job.filename}})])]):r(v,[s._v(s._s(s.mdiFile))])],1),r(_,{staticClass:"py-1",staticStyle:{"min-width":"0","font-size":"0.875em"}},[r("div",{staticClass:"text-truncate"},[(e=s.job.combinedIds)!==null&&e!==void 0&&e.length?r("strong",[s._v(s._s(s.job.combinedIds.length+1)+"x")]):s._e(),s._v(" "+s._s(s.job.filename)+" ")]),s.description?r("small",{staticClass:"text-truncate"},[s._v(s._s(s.description))]):s._e()]),s.showPrintButton&&!s.printerIsPrinting?r(_,{staticClass:"col-auto d-flex flex-column justify-center pa-0 pr-1"},[r(g,{staticClass:"minwidth-0",attrs:{icon:"",color:"success"},on:{click:s.startJobqueue}},[r(v,[s._v(s._s(s.mdiPlay))])],1)],1):s._e(),r($e,{attrs:{"position-x":s.contextMenuX,"position-y":s.contextMenuY,absolute:"","offset-y":""},model:{value:s.showContextMenu,callback:function(i){s.showContextMenu=i},expression:"showContextMenu"}},[r(Oe,[r(J,{on:{click:s.printJob}},[r(v,{staticClass:"mr-1"},[s._v(s._s(s.mdiPlay))]),s._v(" "+s._s(s.$t("JobQueue.StartPrint"))+" ")],1),r(J,{on:{click:function(i){s.showChangeCountDialog=!0}}},[r(v,{staticClass:"mr-1"},[s._v(s._s(s.mdiCounter))]),s._v(" "+s._s(s.$t("JobQueue.ChangeCount"))+" ")],1),r(J,{on:{click:s.removeFromJobqueue}},[r(v,{staticClass:"mr-1"},[s._v(s._s(s.mdiPlaylistRemove))]),s._v(" "+s._s(s.$t("JobQueue.RemoveFromQueue"))+" ")],1)],1)],1),r(SL,{attrs:{show:s.showChangeCountDialog,job:s.job},on:{close:function(i){s.showChangeCountDialog=!1}}})],1)},DL=[];const w1={};var TL=E(Si,PL,DL,!1,ML,null,null,null);function ML(e){for(let s in w1)this[s]=w1[s]}const fu=function(){return TL.exports}();var EL=Object.defineProperty,OL=Object.getOwnPropertyDescriptor,LL=(e,s,t,r)=>{for(var i=r>1?void 0:r?OL(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&EL(s,t,i),i};let gm=class extends M(O){get jobs(){var s;return(s=this.$store.getters["server/jobQueue/getJobs"])!=null?s:[]}get maxLength(){return this.jobs.length>5?4:5}get jobsTable(){return this.jobs.slice(0,this.maxLength)}get jobsRest(){return this.jobs.slice(this.maxLength)}startJobqueue(){this.$store.dispatch("server/jobQueue/start")}};gm=LL([D({components:{JobqueueEntry:fu}})],gm);var AL=Object.defineProperty,kL=Object.getOwnPropertyDescriptor,rC=(e,s,t,r)=>{for(var i=r>1?void 0:r?kL(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&AL(s,t,i),i};let pl=class extends M(O){constructor(){super(...arguments),this.mdiFileMultiple=ET}get sums(){const e={filamentLength:0,filamentWeight:0,estimatedTime:0};return this.jobs.forEach(s=>{var r,i,n,a,o,l,c,u;const t=((i=(r=s.combinedIds)==null?void 0:r.length)!=null?i:0)+1;e.filamentLength+=((a=(n=s.metadata)==null?void 0:n.filament_total)!=null?a:0)*t,e.filamentWeight+=((l=(o=s.metadata)==null?void 0:o.filament_weight_total)!=null?l:0)*t,e.estimatedTime+=((u=(c=s.metadata)==null?void 0:c.estimated_time)!=null?u:0)*t}),e}get count(){let e=0;return this.jobs.forEach(s=>{var t,r;e+=((r=(t=s.combinedIds)==null?void 0:t.length)!=null?r:0)+1}),e}get headline(){return this.$tc("Panels.StatusPanel.JobqueueMoreFiles",this.count,{count:this.count})}get description(){const e=[];let s="--";this.filamentLength&&e.push(this.filamentLength),this.filamentWeight&&e.push(this.filamentWeight),e.length&&(s=e.join(" / "));let t="--";return this.estimatedTime&&(t=this.estimatedTime),"".concat(this.$t("Panels.StatusPanel.Filament"),": ").concat(s,", ").concat(this.$t("Panels.StatusPanel.PrintTime"),": ").concat(t)}get filamentLength(){const e=this.sums.filamentLength;return e===0?null:e>=1e3?(e/1e3).toFixed(1)+" m":e.toFixed(0)+" mm"}get filamentWeight(){const e=this.sums.filamentWeight;return e===0?null:e>=1e3?(e/1e3).toFixed(1)+" kg":e.toFixed(0)+" g"}get estimatedTime(){let e=this.sums.estimatedTime;if(e==0)return"--";const s=[],t=Math.floor(e/(3600*24));t&&(e%=3600*24,s.push(t+"d"));const r=Math.floor(e/3600);e%=3600,r&&s.push(r+"h");const i=Math.floor(e/60);if(i&&s.push(i+"m"),r>0)return s.join(" ");const n=e%60;return n&&s.push(n.toFixed(0)+"s"),s.join(" ")}};rC([P({type:Array,required:!0})],pl.prototype,"jobs",2);pl=rC([D],pl);var FL=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t($,{staticClass:"d-flex flex-row flex-nowrap"},[t(_,{staticClass:"col-auto d-flex flex-column justify-center pr-0 py-0"},[t(v,{staticStyle:{width:"32px"}},[e._v(e._s(e.mdiFileMultiple))])],1),t(_,{staticClass:"py-2",staticStyle:{"min-width":"0","font-size":"0.875em"}},[t("div",{staticClass:"text-truncate"},[e._v(e._s(e.headline))]),t("small",{staticClass:"text-truncate"},[e._v(e._s(e.description))])])],1)},RL=[];const S1={};var jL=E(pl,FL,RL,!1,HL,null,null,null);function HL(e){for(let s in S1)this[s]=S1[s]}const IL=function(){return jL.exports}();var NL=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(xe,{staticClass:"filesJobqueue",attrs:{flat:""}},[e.jobs.length?[t($,{staticClass:"mx-0 mt-0 pb-3"},[t(_,{staticClass:"jobqueue-list"},[e._l(e.jobsTable,function(r,i){return t(fu,{key:r.job_id,attrs:{job:r,"show-handle":!1,"show-print-button":i===0}})}),e.jobsRest.length?t(IL,{attrs:{jobs:e.jobsRest}}):e._e()],2)],1)]:t("div",[t("p",{staticClass:"body-2 my-3 text-center text--disabled"},[e._v(e._s(e.$t("Panels.StatusPanel.EmptyJobqueue")))])])],2)},VL=[];const P1={};var UL=E(gm,NL,VL,!1,BL,"8d295736",null,null);function BL(e){for(let s in P1)this[s]=P1[s]}const iC=function(){return UL.exports}();var WL=Object.defineProperty,GL=Object.getOwnPropertyDescriptor,Xr=(e,s,t,r)=>{for(var i=r>1?void 0:r?GL(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&WL(s,t,i),i};let Us=class extends M(O){get firstColClasses(){const s=" d-flex justify-center";return this.dynamicSlotWidth?"col"+s:this.mobileSecondRow?"col-12 col-md-6"+s:"col-6"+s}get secondColClasses(){const s=" d-flex justify-end align-center settings-row-slot";return this.dynamicSlotWidth?"col-auto"+s:this.mobileSecondRow?"col-12 col-md-6 pt-0 pt-md-3"+s:"col-6"+s}};Xr([P({required:!1,default:!1})],Us.prototype,"loading",2);Xr([P({required:!1,default:""})],Us.prototype,"icon",2);Xr([P({required:!0})],Us.prototype,"title",2);Xr([P({required:!1})],Us.prototype,"subTitle",2);Xr([P({required:!1,default:!1})],Us.prototype,"dynamicSlotWidth",2);Xr([P({required:!1,default:!1})],Us.prototype,"mobileSecondRow",2);Us=Xr([D],Us);var zL=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t($,[t(_,{class:e.firstColClasses},[t($,{staticClass:"d-flex flex-row"},[e.loading?t(_,{staticClass:"col-auto d-flex justify-center align-center pr-0"},[t(dt,{attrs:{indeterminate:"",color:"primary",size:24}})],1):e.icon?t(_,{staticClass:"col-auto d-flex justify-center align-center pr-0"},[t(v,[e._v(e._s(e.icon))])],1):e._e(),t(_,{staticClass:"col d-flex justify-center flex-column"},[t("span",{staticClass:"settings-row-title"},[e._v(e._s(e.title))]),e.subTitle?t("span",{staticClass:"settings-row-subtitle"},[e._v(e._s(e.subTitle))]):e._e()])],1)],1),t(_,{class:e.secondColClasses},[e._t("default")],2)],1)},ZL=[];const D1={};var qL=E(Us,zL,ZL,!1,XL,"ac415fda",null,null);function XL(e){for(let s in D1)this[s]=D1[s]}const V=function(){return qL.exports}();var YL=Object.defineProperty,JL=Object.getOwnPropertyDescriptor,gu=(e,s,t,r)=>{for(var i=r>1?void 0:r?JL(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&YL(s,t,i),i};let Di=class extends M(O){constructor(){super(...arguments),this.mdiPrinter3d=Ha}get timelapseEnabled(){var e,s,t;return(t=(s=(e=this.$store.state.server.timelapse)==null?void 0:e.settings)==null?void 0:s.enabled)!=null?t:!1}set timelapseEnabled(e){this.$socket.emit("machine.timelapse.post_settings",{enabled:e},{action:"server/timelapse/initSettings"})}get bigThumbnailBackground(){var e;return(e=this.$store.state.gui.uiSettings.bigThumbnailBackground)!=null?e:qt}get bigThumbnailStyle(){return qt.toLowerCase()===this.bigThumbnailBackground.toLowerCase()?{}:{backgroundColor:this.bigThumbnailBackground}}get active_spool(){var e;return(e=this.$store.state.server.spoolman.active_spool)!=null?e:null}get filamentVendor(){var e,s,t,r;return(r=(t=(s=(e=this.active_spool)==null?void 0:e.filament)==null?void 0:s.vendor)==null?void 0:t.name)!=null?r:"Unknown"}get filamentName(){var e,s;return(s=(e=this.active_spool)==null?void 0:e.filament.name)!=null?s:"Unknown"}get filament(){return"".concat(this.filamentVendor," - ").concat(this.filamentName)}get question(){var e,s,t,r;return this.active_spool?this.$t("Dialogs.StartPrint.DoYouWantToStartFilenameFilament",{filename:(s=(e=this.file)==null?void 0:e.filename)!=null?s:"unknown"}):this.$t("Dialogs.StartPrint.DoYouWantToStartFilename",{filename:(r=(t=this.file)==null?void 0:t.filename)!=null?r:"unknown"})}get maxThumbnailWidth(){var e,s;return(s=(e=this.file)==null?void 0:e.big_thumbnail_width)!=null?s:400}startPrint(e=""){e=(this.currentPath+"/"+e).substring(1),this.closeDialog(),this.$socket.emit("printer.print.start",{filename:e},{action:"switchToDashboard"})}closeDialog(){this.$emit("closeDialog")}};gu([P({required:!0,default:!1})],Di.prototype,"bool",2);gu([P({required:!0,default:""})],Di.prototype,"currentPath",2);gu([P({required:!0})],Di.prototype,"file",2);Di=gu([D({components:{SettingsRow:V}})],Di);var KL=Object.defineProperty,QL=Object.getOwnPropertyDescriptor,nC=(e,s,t,r)=>{for(var i=r>1?void 0:r?QL(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&KL(s,t,i),i};let fl=class extends M(O){constructor(){super(...arguments),this.showChangeSpoolDialog=!1}get activeSpoolId(){var s,t;let e=(t=(s=this.$store.state.server.spoolman)==null?void 0:s.active_spool_id)!=null?t:null;return e===0&&(e=null),e}get activeSpool(){var e,s;return(s=(e=this.$store.state.server.spoolman)==null?void 0:e.active_spool)!=null?s:null}get classSecondDivider(){const e=["mt-4"];return e.push(this.moonrakerComponents.includes("timelapse")?"mb-2":"mb-0"),e}get buttonText(){return this.activeSpoolId===null?this.$t("Panels.SpoolmanPanel.SelectSpool"):this.$t("Panels.SpoolmanPanel.ChangeSpool")}get alerts(){var i,n,a,o,l,c,u,d,m;let e=[];if(this.activeSpoolId===null)return e.push({text:this.$t("Panels.SpoolmanPanel.NoSpoolSelected"),color:"orange"}),e;let s=(i=this.file.filament_type)!=null?i:"";s.includes(";")&&(s=s.split(";")[0]),s!==""&&((o=(a=(n=this.activeSpool)==null?void 0:n.filament)==null?void 0:a.material)==null?void 0:o.toLowerCase())!==s.toLowerCase()&&e.push({text:this.$t("Panels.SpoolmanPanel.FilamentTypeMismatch",{fileType:s,spoolType:(c=(l=this.activeSpool)==null?void 0:l.filament)==null?void 0:c.material}),color:"warning"});const t=Math.round((u=this.file.filament_weight_total)!=null?u:0),r=Math.round((m=(d=this.activeSpool)==null?void 0:d.remaining_weight)!=null?m:0);return r<t&&e.push({text:this.$t("Panels.SpoolmanPanel.TooLessFilament",{fileWeight:t,spoolWeight:r}),color:"warning"}),e}};nC([P({required:!0})],fl.prototype,"file",2);fl=nC([D({components:{SpoolmanPanelActiveSpool:mu}})],fl);var e9=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(U,{staticClass:"mt-3 mb-0"}),t(q,{staticClass:"py-0 px-2"},[e.activeSpoolId!==null?t(mu,{staticClass:"my-0",attrs:{small:!0},on:{"change-spool":function(r){e.showChangeSpoolDialog=!0}}}):e._e(),e._l(e.alerts,function(r){return t(it,{key:r.text,staticClass:"mt-4 mx-3",attrs:{text:"",color:r.color}},[e._v(" "+e._s(r.text)+" ")])}),t("div",{staticClass:"text-center"},[t(g,{staticClass:"mx-auto",attrs:{color:"primary",small:""},on:{click:function(r){e.showChangeSpoolDialog=!0}}},[e._v(" "+e._s(e.buttonText)+" ")])],1)],2),t(U,{class:e.classSecondDivider}),t(du,{attrs:{"show-dialog":e.showChangeSpoolDialog},on:{close:function(r){e.showChangeSpoolDialog=!1}}})],1)},t9=[];const T1={};var s9=E(fl,e9,t9,!1,r9,null,null,null);function r9(e){for(let s in T1)this[s]=T1[s]}const i9=function(){return s9.exports}();var n9=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{"max-width":400},on:{"click:outside":e.closeDialog,keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"esc",27,r.key,["Esc","Escape"])?null:e.closeDialog.apply(null,arguments)}},model:{value:e.bool,callback:function(r){e.bool=r},expression:"bool"}},[t(xe,[e.file.big_thumbnail?t("div",{staticClass:"d-flex align-center justify-center",staticStyle:{"min-height":"200px"}},[t(Fc,{staticClass:"d-inline-block",style:e.bigThumbnailStyle,attrs:{src:e.file.big_thumbnail,"max-width":e.maxThumbnailWidth}})],1):e._e(),t(gt,{staticClass:"text-h5"},[e._v(e._s(e.$t("Dialogs.StartPrint.Headline")))]),t(q,{staticClass:"pb-0"},[t("p",{staticClass:"body-2"},[e._v(" "+e._s(e.question)+" ")])]),e.moonrakerComponents.includes("spoolman")?t(i9,{attrs:{file:e.file}}):e._e(),e.moonrakerComponents.includes("timelapse")?[e.moonrakerComponents.includes("spoolman")?e._e():t(U,{staticClass:"mt-3 mb-2"}),t(q,{staticClass:"py-0"},[t(V,{attrs:{title:e.$t("Dialogs.StartPrint.Timelapse")}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.timelapseEnabled,callback:function(r){e.timelapseEnabled=r},expression:"timelapseEnabled"}})],1)],1),t(U,{staticClass:"mt-2 mb-0"})]:e._e(),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:e.closeDialog}},[e._v(e._s(e.$t("Dialogs.StartPrint.Cancel")))]),t(g,{attrs:{color:"primary",text:"",disabled:e.printerIsPrinting||!e.klipperReadyForGui},on:{click:function(r){return e.startPrint(e.file.filename)}}},[e._v(" "+e._s(e.$t("Dialogs.StartPrint.Print"))+" ")])],1)],2)],1)},a9=[];const M1={};var o9=E(Di,n9,a9,!1,l9,null,null,null);function l9(e){for(let s in M1)this[s]=M1[s]}const vu=function(){return o9.exports}();var c9=Object.defineProperty,u9=Object.getOwnPropertyDescriptor,Ba=(e,s,t,r)=>{for(var i=r>1?void 0:r?u9(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&c9(s,t,i),i};let Vr=class extends M(O){constructor(){super(...arguments),this.mdiChevronDown=hr,this.mdiChevronUp=Nc,this.mdiPlaylistPlus=Xc,this.mdiCloseThick=pe,this.isValid=!1,this.input="1",this.rules={count:[e=>!!e||this.$t("JobQueue.InvalidCountEmpty"),e=>parseInt(e,10)>0||this.$t("JobQueue.InvalidCountGreaterZero")]}}async addBatchToQueueAction(){const e=Array(parseInt(this.input)).fill(this.filename);await this.$store.dispatch("server/jobQueue/addToQueue",e),this.showToast&&this.$toast.info(this.$t("History.AddToQueueSuccessful",{filename:this.filename}).toString()),this.closeDialog()}closeDialog(){this.$emit("close")}resetFormState(){this.input="1"}isVisibleChanged(e){e&&this.resetFormState()}};Ba([P({type:Boolean,default:!1})],Vr.prototype,"isVisible",2);Ba([P({type:Boolean,default:!1})],Vr.prototype,"showToast",2);Ba([P({type:String,required:!0})],Vr.prototype,"filename",2);Ba([me("isVisible")],Vr.prototype,"isVisibleChanged",1);Vr=Ba([D],Vr);var d9=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{value:e.isVisible,"max-width":400},on:{"click:outside":e.closeDialog,keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"esc",27,r.key,["Esc","Escape"])?null:e.closeDialog.apply(null,arguments)}}},[t(B,{attrs:{title:e.$t("Files.AddToQueue"),"card-class":"gcode-files-add-to-queue-dialog",icon:e.mdiPlaylistPlus,"margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(cr,{on:{submit:function(r){return r.preventDefault(),e.addBatchToQueueAction.apply(null,arguments)}},model:{value:e.isValid,callback:function(r){e.isValid=r},expression:"isValid"}},[t(q,[t(te,{ref:"inputFieldAddToQueueCount",attrs:{label:e.$t("Files.Count"),required:"","hide-spin-buttons":"",type:"number",rules:e.rules.count},scopedSlots:e._u([{key:"append-outer",fn:function(){return[t("div",{staticClass:"_spin_button_group"},[t(g,{staticClass:"mt-n3",attrs:{icon:"",plain:"",small:""},on:{click:function(r){e.input++}}},[t(v,[e._v(e._s(e.mdiChevronUp))])],1),t(g,{staticClass:"mb-n3",attrs:{disabled:e.input<=1,icon:"",plain:"",small:""},on:{click:function(r){e.input--}}},[t(v,[e._v(e._s(e.mdiChevronDown))])],1)],1)]},proxy:!0}]),model:{value:e.input,callback:function(r){e.input=r},expression:"input"}})],1),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:e.closeDialog}},[e._v(e._s(e.$t("Files.Cancel")))]),t(g,{attrs:{color:"primary",text:"",type:"submit",disabled:!e.isValid}},[e._v(" "+e._s(e.$t("Files.AddToQueue"))+" ")])],1)],1)],1)],1)},m9=[];const E1={};var h9=E(Vr,d9,m9,!1,p9,"28986d85",null,null);function p9(e){for(let s in E1)this[s]=E1[s]}const an=function(){return h9.exports}();var f9=Object.defineProperty,g9=Object.getOwnPropertyDescriptor,v9=(e,s,t,r)=>{for(var i=r>1?void 0:r?g9(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&f9(s,t,i),i};let vm=class extends M(O,Ke){constructor(){super(...arguments),this.mdiFile=pr,this.mdiPlay=en,this.mdiPlaylistPlus=Xc,this.mdiFire=Qi,this.mdiVideo3d=Jc,this.mdiCloudDownload=Gn,this.mdiFileDocumentEditOutline=ja,this.mdiRenameBox=Yc,this.mdiDelete=ze,this.mdiCloseThick=pe,this.deleteDialog=!1,this.showDialogBool=!1,this.dialogFile={isDirectory:!1,filename:"",modified:new Date,permissions:"",small_thumbnail:null,big_thumbnail:null,big_thumbnail_width:null,count_printed:0,last_end_time:null,last_filament_used:null,last_print_duration:null,last_status:null,last_start_time:null,last_total_duration:null,preheat_gcode:null},this.currentPath="",this.contentTdWidth=100,this.contextMenu={shown:!1,touchTimer:void 0,x:0,y:0,item:{...this.dialogFile}},this.dialogRenameFile={show:!1,newName:"",item:{...this.dialogFile}},this.dialogAddBatchToQueue={isVisible:!1,filename:""},this.countInputRules=[s=>!!s||this.$t("JobQueue.InvalidCountEmpty"),s=>parseInt(s)>0||this.$t("JobQueue.InvalidCountGreaterZero")]}get gcodeFiles(){var r;let s=(r=this.$store.getters["files/getAllGcodes"])!=null?r:[];s=s.slice().sort((i,n)=>n.modified.getTime()-i.modified.getTime()).slice(0,5);const t=s.filter(i=>!i.metadataRequested&&!i.metadataPulled);return this.$store.dispatch("files/requestMetadata",t.map(i=>({filename:"gcodes/"+i.filename}))),s}get filename(){const s=this.contextMenu.item.filename.split("/");return s[s.length-1]}get styleContentTdWidth(){return"width: ".concat(this.contentTdWidth,"px;")}get bigThumbnailBackground(){var s;return(s=this.$store.state.gui.uiSettings.bigThumbnailBackground)!=null?s:qt}get bigThumbnailTooltipColor(){if(qt.toLowerCase()!==this.bigThumbnailBackground.toLowerCase())return this.bigThumbnailBackground}showContextMenu(s,t){this.contextMenu.shown||(s==null||s.preventDefault(),this.contextMenu.shown=!0,this.contextMenu.x=(s==null?void 0:s.clientX)||(s==null?void 0:s.pageX)||window.screenX/2,this.contextMenu.y=(s==null?void 0:s.clientY)||(s==null?void 0:s.pageY)||window.screenY/2,this.contextMenu.item=t,this.$nextTick(()=>{this.contextMenu.shown=!0}))}getDescription(s){let t="";return t+=this.$t("Panels.StatusPanel.Filament")+": ",s.filament_total||s.filament_weight_total?(s.filament_total&&(t+=s.filament_total.toFixed()+" mm"),s.filament_total&&s.filament_weight_total&&(t+=" / "),s.filament_weight_total&&(t+=s.filament_weight_total.toFixed(2)+" g")):t+="--",t+=", "+this.$t("Panels.StatusPanel.PrintTime")+": ",s.estimated_time?t+=this.formatPrintTime(s.estimated_time):t+="--",t}existMetadata(s){return s==null?void 0:s.metadataPulled}setFirst(s){s.length&&(s.forEach(t=>t.isFirst=!1),s[0].isFirst=!0)}formatPrintTime(s){if(s){let t="";const r=Math.floor(s/86400);r&&(s%=3600*24,t+=r+"d");const i=Math.floor(s/3600);s%=3600,i&&(t+=" "+i+"h");const n=Math.floor(s/60);n&&(t+=" "+n+"m");const a=s%60;return a&&(t+=" "+a.toFixed(0)+"s"),t}return"--"}getStatusIcon(s){return this.$store.getters["server/history/getPrintStatusIcon"](s)}getStatusColor(s){return this.$store.getters["server/history/getPrintStatusIconColor"](s)}showDialog(s){this.currentPath=s.filename.lastIndexOf("/")>=0?"/"+s.filename.slice(0,s.filename.lastIndexOf("/")):"",this.dialogFile={...s},s.filename.lastIndexOf("/")>=0&&(this.dialogFile.filename=s.filename.slice(s.filename.lastIndexOf("/")+1)),this.showDialogBool=!0}closeDialog(){this.showDialogBool=!1}addToQueue(s){this.$store.dispatch("server/jobQueue/addToQueue",[s.filename])}openAddBatchToQueueDialog(s){this.dialogAddBatchToQueue.isVisible=!0,this.dialogAddBatchToQueue.filename=s.filename}closeAddBatchToQueueDialog(){this.dialogAddBatchToQueue.isVisible=!1}view3D(s){this.$router.push({path:"/viewer",query:{filename:"gcodes/"+s.filename}})}downloadFile(s){const t=this.apiUrl+"/server/files/gcodes/"+encodeURI(s.filename);window.open(t)}editFile(s){const t=s.filename.lastIndexOf("/"),r=t>0?s.filename.slice(0,t+1):"",i=t>0?s.filename.slice(t+1):s.filename;this.$store.dispatch("editor/openFile",{root:"gcodes",path:r,filename:i,size:s.size,permissions:s.permissions})}renameFile(s){this.dialogRenameFile.item=s;const t=s.filename.lastIndexOf("/");this.dialogRenameFile.newName=t>0?s.filename.slice(t+1):s.filename,this.dialogRenameFile.show=!0,setTimeout(()=>{var r;(r=this.$refs.inputFieldRenameFile)==null||r.focus()},200)}renameFileAction(){this.dialogRenameFile.show=!1;const s=this.dialogRenameFile.item.filename.lastIndexOf("/"),t=s>0?this.dialogRenameFile.item.filename.slice(0,s+1):"";this.$socket.emit("server.files.move",{source:"gcodes/"+this.dialogRenameFile.item.filename,dest:"gcodes/"+t+this.dialogRenameFile.newName},{action:"files/getMove"})}removeFile(){this.$socket.emit("server.files.delete_file",{path:"gcodes/"+this.contextMenu.item.filename},{action:"files/getDeleteFile"}),this.deleteDialog=!1}mounted(){setTimeout(()=>{this.calcContentTdWidth()},200)}calcContentTdWidth(){var s,t;this.contentTdWidth=((t=(s=this.$refs.filesGcodeCard)==null?void 0:s.$el)==null?void 0:t.clientWidth)-48-48-32}handleResize(){this.$nextTick(()=>{this.calcContentTdWidth()})}};vm=v9([D({components:{Panel:B,StartPrintDialog:vu,AddBatchToQueueDialog:an}})],vm);var _9=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(xe,{ref:"filesGcodeCard",staticClass:"filesGcodeCard",attrs:{flat:""}},[t(zr,{staticClass:"dashboard-gcodes-table",attrs:{items:e.gcodeFiles,"hide-default-footer":"","sort-by":"time_added","mobile-breakpoint":"0"},on:{"current-items":e.setFirst},scopedSlots:e._u([{key:"no-data",fn:function(){return[t("div",{staticClass:"text-center"},[e._v(e._s(e.$t("Panels.StatusPanel.EmptyGcodes")))])]},proxy:!0},{key:"item",fn:function(r){var i=r.item;return[t("tr",{directives:[{name:"longpress",rawName:"v-longpress:600",value:function(n){return e.showContextMenu(n,i)},expression:"(e) => showContextMenu(e, item)",arg:"600"}],key:i.filename,staticClass:"cursor-pointer",on:{contextmenu:function(n){return e.showContextMenu(n,i)},click:function(n){return e.showDialog(i)}}},[t("td",{staticClass:"pr-0 text-center",staticStyle:{width:"32px"}},[i.small_thumbnail?[t(de,{attrs:{top:"","content-class":"tooltip__content-opacity1",disabled:!i.big_thumbnail,color:e.bigThumbnailTooltipColor},scopedSlots:e._u([{key:"activator",fn:function(n){var a=n.on,o=n.attrs;return[t("vue-load-image",{staticClass:"d-flex"},[t("img",e._g(e._b({attrs:{slot:"image",src:i.small_thumbnail,alt:i.filename,width:"32",height:"32"},slot:"image"},"img",o,!1),a)),t("div",{attrs:{slot:"preloader"},slot:"preloader"},[t(dt,{attrs:{indeterminate:"",color:"primary"}})],1),t("div",{attrs:{slot:"error"},slot:"error"},[t(v,[e._v(e._s(e.mdiFile))])],1)])]}}],null,!0)},[t("span",[t("img",{attrs:{src:i.big_thumbnail,alt:i.filename,width:"250"}})])])]:[t(v,[e._v(e._s(e.mdiFile))])]],2),t("td",{staticClass:"pr-2"},[t("div",{staticClass:"d-block text-truncate",style:e.styleContentTdWidth},[e._v(e._s(i.filename))]),e.existMetadata(i)?t("div",[t("small",[e._v(e._s(e.getDescription(i)))])]):e._e()]),t("td",[i.last_status?t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var a=n.on,o=n.attrs;return[t("span",e._g(e._b({},"span",o,!1),a),[t(v,{attrs:{small:"",color:e.getStatusColor(i.last_status)}},[e._v(" "+e._s(e.getStatusIcon(i.last_status))+" ")])],1)]}}],null,!0)},[t("span",[e._v(e._s(i.last_status.replace(/_/g," ")))])]):e._e()],1)])]}}])}),t("resize-observer",{on:{notify:e.handleResize}}),t(vu,{attrs:{bool:e.showDialogBool,file:e.dialogFile,"current-path":e.currentPath},on:{closeDialog:e.closeDialog}}),t($e,{attrs:{"position-x":e.contextMenu.x,"position-y":e.contextMenu.y,absolute:"","offset-y":""},model:{value:e.contextMenu.shown,callback:function(r){e.$set(e.contextMenu,"shown",r)},expression:"contextMenu.shown"}},[t(Oe,[t(J,{attrs:{disabled:e.printerIsPrinting||!e.klipperReadyForGui},on:{click:function(r){return e.showDialog(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiPlay))]),e._v(" "+e._s(e.$t("Files.PrintStart"))+" ")],1),e.moonrakerComponents.includes("job_queue")?t(J,{on:{click:function(r){return e.addToQueue(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiPlaylistPlus))]),e._v(" "+e._s(e.$t("Files.AddToQueue"))+" ")],1):e._e(),e.moonrakerComponents.includes("job_queue")?t(J,{on:{click:function(r){return e.openAddBatchToQueueDialog(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiPlaylistPlus))]),e._v(" "+e._s(e.$t("Files.AddBatchToQueue"))+" ")],1):e._e(),e.contextMenu.item.preheat_gcode!==null?t(J,{attrs:{disabled:["error","printing","paused"].includes(e.printer_state)},on:{click:function(r){return e.doSend(e.contextMenu.item.preheat_gcode)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiFire))]),e._v(" "+e._s(e.$t("Files.Preheat"))+" ")],1):e._e(),t(J,{on:{click:function(r){return e.view3D(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiVideo3d))]),e._v(" "+e._s(e.$t("Files.View3D"))+" ")],1),t(J,{on:{click:function(r){return e.downloadFile(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiCloudDownload))]),e._v(" "+e._s(e.$t("Files.Download"))+" ")],1),t(J,{on:{click:function(r){return e.editFile(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiFileDocumentEditOutline))]),e._v(" "+e._s(e.$t("Files.EditFile"))+" ")],1),t(J,{on:{click:function(r){return e.renameFile(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiRenameBox))]),e._v(" "+e._s(e.$t("Files.Rename"))+" ")],1),t(J,{staticClass:"red--text",on:{click:function(r){e.deleteDialog=!0}}},[t(v,{staticClass:"mr-1",attrs:{color:"error"}},[e._v(e._s(e.mdiDelete))]),e._v(" "+e._s(e.$t("Files.Delete"))+" ")],1)],1)],1),t(oe,{attrs:{"max-width":400},model:{value:e.dialogRenameFile.show,callback:function(r){e.$set(e.dialogRenameFile,"show",r)},expression:"dialogRenameFile.show"}},[t(B,{attrs:{title:e.$t("Files.RenameFile"),"card-class":"dashboard-files-rename-file-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.dialogRenameFile.show=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t(te,{ref:"inputFieldRenameFile",attrs:{label:e.$t("Files.Name"),required:""},on:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.renameFileAction.apply(null,arguments)}},model:{value:e.dialogRenameFile.newName,callback:function(r){e.$set(e.dialogRenameFile,"newName",r)},expression:"dialogRenameFile.newName"}})],1),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.dialogRenameFile.show=!1}}},[e._v(e._s(e.$t("Files.Cancel")))]),t(g,{attrs:{color:"primary",text:""},on:{click:e.renameFileAction}},[e._v(e._s(e.$t("Files.Rename")))])],1)],1)],1),t(oe,{attrs:{"max-width":"400"},model:{value:e.deleteDialog,callback:function(r){e.deleteDialog=r},expression:"deleteDialog"}},[t(B,{attrs:{title:e.$t("Files.Delete"),"card-class":"gcode-files-delete-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.deleteDialog=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t("p",{staticClass:"mb-0"},[e._v(" "+e._s(e.$t("Files.DeleteSingleFileQuestion",{name:e.filename}))+" ")])]),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.deleteDialog=!1}}},[e._v(" "+e._s(e.$t("Files.Cancel"))+" ")]),t(g,{attrs:{color:"error",text:""},on:{click:e.removeFile}},[e._v(" "+e._s(e.$t("Files.Delete"))+" ")])],1)],1)],1),t(an,{attrs:{"is-visible":e.dialogAddBatchToQueue.isVisible,filename:e.dialogAddBatchToQueue.filename},on:{close:e.closeAddBatchToQueueDialog}})],1)},b9=[];const O1={};var y9=E(vm,_9,b9,!1,C9,"6933c59e",null,null);function C9(e){for(let s in O1)this[s]=O1[s]}const aC=function(){return y9.exports}();var $9=Object.defineProperty,x9=Object.getOwnPropertyDescriptor,w9=(e,s,t,r)=>{for(var i=r>1?void 0:r?x9(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&$9(s,t,i),i};let _m=class extends M(O){constructor(){super(...arguments),this.maxFlow=0}get current_file(){var s;return(s=this.$store.state.printer.current_file)!=null?s:{}}get live_velocity(){var s,t,r;return(r=Math.abs((t=(s=this.$store.state.printer.motion_report)==null?void 0:s.live_velocity)==null?void 0:t.toFixed(0)))!=null?r:null}get live_extruder_velocity(){var t,r;const s=(r=(t=this.$store.state.printer.motion_report)==null?void 0:t.live_extruder_velocity)!=null?r:null;return s===null?null:s>0?s:0}get live_flow(){if(this.live_extruder_velocity===null)return null;const t=Math.pow(this.filament_diameter/2,2)*Math.PI*this.live_extruder_velocity;return t&&this.maxFlow<t&&(this.maxFlow=t),t==null?void 0:t.toFixed(1)}get outputMaxFlow(){return this.maxFlow?this.maxFlow.toFixed(1)+" mm³/s":"--"}get requested_speed(){var n,a,o,l,c,u;const s=(a=(n=this.$store.state.printer.gcode_move)==null?void 0:n.speed)!=null?a:0,t=(l=(o=this.$store.state.printer.gcode_move)==null?void 0:o.speed_factor)!=null?l:0,r=(u=(c=this.$store.state.printer.toolhead)==null?void 0:c.max_velocity)!=null?u:0,i=s/60*t;return i>r?r:i.toFixed(0)}get max_layers(){var s;return(s=this.$store.getters["printer/getPrintMaxLayers"])!=null?s:0}get current_layer(){var s;return(s=this.$store.getters["printer/getPrintCurrentLayer"])!=null?s:0}get estimated_time_file(){return this.$store.getters["printer/getEstimatedTimeFile"]}get estimated_time_filament(){return this.$store.getters["printer/getEstimatedTimeFilament"]}get estimated_time_slicer(){return this.$store.getters["printer/getEstimatedTimeSlicer"]}get estimated_time_avg(){return this.$store.getters["printer/getEstimatedTimeAvg"]}get eta(){return this.$store.getters["printer/getEstimatedTimeETAFormat"]}get filament_diameter(){var s,t,r,i;return(i=(r=(t=(s=this.$store.state.printer.configfile)==null?void 0:s.settings)==null?void 0:t.extruder)==null?void 0:r.filament_diameter)!=null?i:1.75}get print_time(){var s,t;return(t=(s=this.$store.state.printer.print_stats)==null?void 0:s.print_duration)!=null?t:0}get print_time_total(){var s,t;return(t=(s=this.$store.state.printer.print_stats)==null?void 0:s.total_duration)!=null?t:0}get filament_used(){var s,t;return(t=(s=this.$store.state.printer.print_stats)==null?void 0:s.filament_used)!=null?t:0}get outputFilamentUsed(){return this.filament_used>=1e3?(this.filament_used/1e3).toFixed(2)+" m":this.filament_used.toFixed(2)+" mm"}formatDuration(s){const t=s<0?"-":"";let r=Math.abs(s);const i=Math.floor(r/3600);r%=3600;const n=("0"+Math.floor(r/60)).slice(-2),a=("0"+Math.floor(r%60)).slice(-2);return t+i+":"+n+":"+a}};_m=w9([D({components:{StatusPanelFilesJobqueue:iC,StatusPanelFilesGcodes:aC}})],_m);var S9=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(q,{staticClass:"pa-0"},[t(Ae,{staticClass:"py-0"},[t($,{staticClass:"text-center py-5",attrs:{align:"center"}},[t(_,{staticClass:"col-3 pa-0"},[e.live_velocity!==null?[t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t("div",e._g(e._b({},"div",n,!1),i),[t("strong",[e._v(e._s(e.$t("Panels.StatusPanel.Speed")))]),t("br"),t("span",{staticClass:"text-no-wrap"},[e._v(e._s(e.live_velocity)+" mm/s")])])]}}],null,!1,1141285171)},[t("span",[e._v(e._s(e.$t("Panels.StatusPanel.Requested"))+": "+e._s(e.requested_speed+" mm/s"))])])]:[t("strong",[e._v(e._s(e.$t("Panels.StatusPanel.Speed")))]),t("br"),t("span",{staticClass:"text-no-wrap"},[e._v(e._s(e.requested_speed)+" mm/s")])]],2),t(_,{staticClass:"col-3 pa-0"},[t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t("div",e._g(e._b({},"div",n,!1),i),[t("strong",[e._v(e._s(e.$t("Panels.StatusPanel.Flow")))]),t("br"),t("span",{staticClass:"d-block text-center text-no-wrap"},[e._v(" "+e._s(e.live_flow+" mm³/s")+" ")])])]}}])},[t("span",[e._v(e._s(e.$t("Panels.StatusPanel.Max"))+": "+e._s(e.outputMaxFlow))])])],1),t(_,{staticClass:"col-3 pa-0"},[t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t("div",e._g(e._b({},"div",n,!1),i),[t("strong",[e._v(e._s(e.$t("Panels.StatusPanel.Filament")))]),t("br"),t("span",{staticClass:"d-block text-center text-no-wrap"},[e._v(" "+e._s(e.outputFilamentUsed)+" ")])])]}}])},["filament_total"in e.current_file?t("span",[e._v(" "+e._s((e.filament_used/1e3).toFixed(2))+" / "+e._s((e.current_file.filament_total/1e3).toFixed(2))+" m = "+e._s((100/e.current_file.filament_total*e.filament_used).toFixed(0))+" % ")]):e._e()])],1),t(_,{staticClass:"col-3 pa-0 text-center"},[t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t("div",e._g(e._b({staticClass:"text-center"},"div",n,!1),i),[t("strong",[e._v(e._s(e.$t("Panels.StatusPanel.Layer")))]),t("br"),t("span",{staticClass:"text-no-wrap"},[e._v(e._s(e.current_layer)+" of "+e._s(e.max_layers))])])]}}])},["object_height"in e.current_file&&e.current_file.object_height>0?t("span",[e._v(" "+e._s(e.$t("Panels.StatusPanel.ObjectHeight"))+": "+e._s(e.current_file.object_height)+" mm ")]):e._e()])],1)],1)],1),t(U,{staticClass:"my-0"}),t(Ae,{staticClass:"py-0"},[t($,{staticClass:"text-center pt-5 pb-2 mb-0",attrs:{align:"center"}},[t(_,{staticClass:"col-3 pa-0"},[t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t("div",e._g(e._b({staticClass:"text-center"},"div",n,!1),i),[t("strong",[e._v(e._s(e.$t("Panels.StatusPanel.Estimate")))]),t("br"),t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.estimated_time_avg?e.formatDuration(e.estimated_time_avg):"--")+" ")])])]}}])},[t("div",{staticClass:"text-right"},[e._v(" "+e._s(e.$t("Panels.StatusPanel.File"))+": "+e._s(e.estimated_time_file?e.formatDuration(e.estimated_time_file):"--")+" "),t("br"),e._v(" "+e._s(e.$t("Panels.StatusPanel.Filament"))+": "+e._s(e.estimated_time_filament?e.formatDuration(e.estimated_time_filament):"--")+" ")])])],1),t(_,{staticClass:"col-3 pa-0"},[t("strong",[e._v(e._s(e.$t("Panels.StatusPanel.Slicer")))]),t("br"),t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.estimated_time_slicer?e.formatDuration(e.estimated_time_slicer):"--")+" ")])]),t(_,{staticClass:"col-3 pa-0"},[t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t("div",e._g(e._b({staticClass:"text-center"},"div",n,!1),i),[t("strong",[e._v(e._s(e.$t("Panels.StatusPanel.Total")))]),t("br"),t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.print_time_total?e.formatDuration(e.print_time_total):"--")+" ")])])]}}])},[t("div",{staticClass:"text-right"},[e._v(" "+e._s(e.$t("Panels.StatusPanel.Print"))+": "+e._s(e.print_time?e.formatDuration(e.print_time):"--")+" "),t("br"),e._v(" "+e._s(e.$t("Panels.StatusPanel.Difference"))+": "+e._s(e.print_time&&e.print_time_total?e.formatDuration(e.print_time_total-e.print_time):"--")+" ")])])],1),t(_,{staticClass:"col-3 pa-0"},[t("strong",[e._v(e._s(e.$t("Panels.StatusPanel.ETA")))]),t("br"),t("span",{staticClass:"text-no-wrap"},[e._v(e._s(e.eta))])])],1)],1)],1)},P9=[];const L1={};var D9=E(_m,S9,P9,!1,T9,null,null,null);function T9(e){for(let s in L1)this[s]=L1[s]}const M9=function(){return D9.exports}();var E9=Object.defineProperty,O9=Object.getOwnPropertyDescriptor,L9=(e,s,t,r)=>{for(var i=r>1?void 0:r?O9(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&E9(s,t,i),i};let bm=class extends M(O){get current_file(){var s;return(s=this.$store.state.printer.current_file)!=null?s:{}}get filament_used(){var s,t;return(t=(s=this.$store.state.printer.print_stats)==null?void 0:s.filament_used)!=null?t:0}get outputFilamentUsed(){return this.filament_used>=1e3?(this.filament_used/1e3).toFixed(2)+" m":this.filament_used.toFixed(2)+" mm"}get print_time(){var s,t;return(t=(s=this.$store.state.printer.print_stats)==null?void 0:s.print_duration)!=null?t:0}get print_time_total(){var s,t;return(t=(s=this.$store.state.printer.print_stats)==null?void 0:s.total_duration)!=null?t:0}formatTime(s){let t=Math.floor(s/3600);s%=3600;let r=("0"+Math.floor(s/60)).slice(-2),i=("0"+(s%60).toFixed(0)).slice(-2);return t+":"+r+":"+i}};bm=L9([D({components:{}})],bm);var A9=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(q,{staticClass:"pa-0"},[t(Ae,{staticClass:"py-0"},[t($,{staticClass:"text-center pt-5 pb-2 mb-0",attrs:{align:"center"}},[t(_,{staticClass:"col-3 pa-0"},[t("strong",[e._v(e._s(e.$t("Panels.StatusPanel.Filament")))]),t("br"),t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.outputFilamentUsed)+" ")])]),t(_,{staticClass:"col-3 pa-0"},[t("strong",[e._v(e._s(e.$t("Panels.StatusPanel.Slicer")))]),t("br"),t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s("estimated_time"in e.current_file?e.formatTime(e.current_file.estimated_time):"--")+" ")])]),t(_,{staticClass:"col-3 pa-0"},[t("strong",[e._v(e._s(e.$t("Panels.StatusPanel.Print")))]),t("br"),t("span",{staticClass:"text-no-wrap"},[e._v(e._s(e.print_time?e.formatTime(e.print_time):"--"))])]),t(_,{staticClass:"col-3 pa-0"},[t("strong",[e._v(e._s(e.$t("Panels.StatusPanel.Total")))]),t("br"),t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.print_time_total?e.formatTime(e.print_time_total):"--")+" ")])])],1)],1)],1)},k9=[];const A1={};var F9=E(bm,A9,k9,!1,R9,null,null,null);function R9(e){for(let s in A1)this[s]=A1[s]}const j9=function(){return F9.exports}();var H9=Object.defineProperty,I9=Object.getOwnPropertyDescriptor,N9=(e,s,t,r)=>{for(var i=r>1?void 0:r?I9(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&H9(s,t,i),i};let ym=class extends M(O){};ym=N9([D({components:{StatusPanelPrintstatusPrinting:M9,StatusPanelPrintstatusComplete:j9}})],ym);var V9=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[["printing","paused","error","cancelled"].includes(e.printer_state)?[t("status-panel-printstatus-printing")]:e._e(),["complete"].includes(e.printer_state)?[t("status-panel-printstatus-complete")]:e._e()],2)},U9=[];const k1={};var B9=E(ym,V9,U9,!1,W9,null,null,null);function W9(e){for(let s in k1)this[s]=k1[s]}const G9=function(){return B9.exports}();var z9=Object.defineProperty,Z9=Object.getOwnPropertyDescriptor,oC=(e,s,t,r)=>{for(var i=r>1?void 0:r?Z9(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&z9(s,t,i),i};let gl=class extends M(O){constructor(){super(...arguments),this.coordinationCrossColor="#888",this.stripesOffset=50}get printing_objects(){var e,s;return((s=(e=this.$store.state.printer.exclude_object)==null?void 0:e.objects)!=null?s:[]).map(t=>{let r=0;if("polygon"in t)for(let i=0;i<t.polygon.length;i++){const n=t.polygon[i],a=i===t.polygon.length-1?t.polygon[0]:t.polygon[i+1];r+=n[0]*a[1]-n[1]*a[0]}return{center:t.center,name:t.name,polygon:t.polygon,size:Math.abs(r)}}).sort((t,r)=>r.size-t.size)}get printing_objects_with_polygons(){return this.printing_objects.filter(e=>"polygon"in e)}get current_object(){var e,s;return(s=(e=this.$store.state.printer.exclude_object)==null?void 0:e.current_object)!=null?s:null}get excluded_objects(){var e,s;return(s=(e=this.$store.state.printer.exclude_object)==null?void 0:e.excluded_objects)!=null?s:[]}get viewBox(){return this.convertX(this.stepperXmin)+" "+this.convertY(this.stepperYmax)+" "+this.absoluteX+" "+this.absoluteY}get toolhead(){var e;return(e=this.$store.state.printer.toolhead)!=null?e:{}}get axis_minimum(){var e;return(e=this.toolhead.axis_minimum)!=null?e:[]}get axis_maximum(){var e;return(e=this.toolhead.axis_maximum)!=null?e:[]}get stepperXmin(){var e;return(e=this.axis_minimum[0])!=null?e:0}get stepperXmax(){var e;return(e=this.axis_maximum[0])!=null?e:200}get stepperYmin(){var e;return(e=this.axis_minimum[1])!=null?e:0}get stepperYmax(){var e;return(e=this.axis_maximum[1])!=null?e:200}get absoluteX(){return Math.abs(this.stepperXmin)+Math.abs(this.stepperXmax)}get absoluteY(){return Math.abs(this.stepperYmin)+Math.abs(this.stepperYmax)}get xStripes(){const e=[],s=Math.floor(this.stepperXmin/this.stripesOffset)*this.stripesOffset,t=Math.floor(this.stepperXmax/this.stripesOffset)*this.stripesOffset;for(let r=s;r<=t;r=r+this.stripesOffset)e.push(r);return e}get yStripes(){const e=[],s=Math.floor(this.stepperYmin/this.stripesOffset)*this.stripesOffset,t=Math.floor(this.stepperYmax/this.stripesOffset)*this.stripesOffset;for(let r=s;r<=t;r=r+this.stripesOffset)e.push(r);return e}get primaryColor(){var e,s;return(s=(e=this.$store.state.gui.theme)==null?void 0:e.primary)!=null?s:Go}convertX(e){return e}convertY(e){return e*-1}showObjectTooltip(e){this.$refs.tooltipObjectMap&&(this.$refs.tooltipObjectMap.innerHTML=e,this.$refs.tooltipObjectMap.style.display="block",window.addEventListener("mousemove",this.moveTooltip))}hideObjectTooltip(){this.$refs.tooltipObjectMap&&(this.$refs.tooltipObjectMap.style.display="none",window.removeEventListener("mousemove",this.moveTooltip))}moveTooltip(e){if(!this.$refs.tooltipObjectMap)return;const s=e.offsetY-this.$refs.tooltipObjectMap.clientHeight-15;this.$refs.tooltipObjectMap.style.left="".concat(e.offsetX-20,"px"),this.$refs.tooltipObjectMap.style.top="".concat(s,"px")}openExcludeObjectDialog(e){this.$emit("update:name",e),this.$emit("update:bool",!0)}};oC([P({required:!1,default:""})],gl.prototype,"hoverName",2);gl=oC([D],gl);var q9=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticStyle:{position:"relative"}},[t("div",{ref:"tooltipObjectMap",attrs:{id:"tooltipObjectMap"}}),t("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:e.viewBox,"xml:space":"preserve"}},[t("defs",[t("marker",{attrs:{id:"arrowhead",markerWidth:"5",markerHeight:"4",refX:"2",refY:"2",orient:"auto"}},[t("polygon",{attrs:{points:"0 0, 5 2, 0 4",fill:e.coordinationCrossColor}})])]),t("line",{attrs:{x1:e.convertX(0),y1:e.convertY(1),x2:e.convertX(e.stepperXmax/4),y2:e.convertY(1),stroke:e.coordinationCrossColor,"stroke-width":"2","marker-end":"url(#arrowhead)"}}),t("line",{attrs:{x1:e.convertX(1),y1:e.convertY(0),x2:e.convertX(1),y2:e.convertY(e.stepperYmax/4),stroke:e.coordinationCrossColor,"stroke-width":"2","marker-end":"url(#arrowhead)"}}),t("g",[e._l(e.xStripes,function(r){return t("line",{key:"xLines"+r,attrs:{x1:e.convertX(r),x2:e.convertX(r),y1:e.convertY(e.stepperYmin),y2:e.convertY(e.stepperYmax),stroke:e.coordinationCrossColor,"stroke-opacity":.25,"stroke-width":"1"}})}),e._l(e.yStripes,function(r){return t("line",{key:"yLines"+r,attrs:{x1:e.convertX(e.stepperXmin),x2:e.convertX(e.stepperXmax),y1:e.convertY(r),y2:e.convertY(r),stroke:e.coordinationCrossColor,"stroke-opacity":.25,"stroke-width":"1"}})})],2),e._l(e.printing_objects_with_polygons,function(r,i){return t("g",{key:i},[t("polygon",{staticStyle:{cursor:"pointer"},attrs:{points:r.polygon.map(function(n){return e.convertX(n[0])+","+e.convertY(n[1])}).join(" "),stroke:e.current_object===r.name?e.primaryColor:"#666","stroke-width":"2","fill-rule":"evenodd",fill:e.hoverName===r.name?e.primaryColor:e.excluded_objects.includes(r.name)?"#6668":"#bbb"},on:{mouseover:function(n){return e.showObjectTooltip(r.name)},mouseout:e.hideObjectTooltip,click:function(n){return e.openExcludeObjectDialog(r.name)}}})])})],2)])},X9=[];const F1={};var Y9=E(gl,q9,X9,!1,J9,"71825b43",null,null);function J9(e){for(let s in F1)this[s]=F1[s]}const lC=function(){return Y9.exports}();var K9=Object.defineProperty,Q9=Object.getOwnPropertyDescriptor,cC=(e,s,t,r)=>{for(var i=r>1?void 0:r?Q9(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&K9(s,t,i),i};let vl=class extends M(O){constructor(){super(...arguments),this.mdiCloseCircle=zo}get printing_objects(){var e,s;return(s=(e=this.$store.state.printer.exclude_object)==null?void 0:e.objects)!=null?s:[]}get current_object(){var e,s;return(s=(e=this.$store.state.printer.exclude_object)==null?void 0:e.current_object)!=null?s:null}get excluded_objects(){var e,s;return(s=(e=this.$store.state.printer.exclude_object)==null?void 0:e.excluded_objects)!=null?s:[]}openExcludeObjectDialog(e){this.$emit("update:name",e),this.$emit("update:bool",!0)}mouseOverObject(e){this.$emit("update:hoverName",e)}};cC([P({required:!1,default:""})],vl.prototype,"hoverName",2);vl=cC([D],vl);var eA=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e._l(e.printing_objects,function(r){return[t($,{key:"div_"+r.name,staticClass:"py-3 d-flex",on:{click:function(i){return e.mouseOverObject(r.name)},mouseover:function(i){return e.mouseOverObject(r.name)},mouseleave:function(i){return e.mouseOverObject("")}}},[t(_,{class:"py-2 subtitle-2 text-truncate "+(e.hoverName===r.name?"text--white":"text--disabled")},[e._v(" "+e._s(r.name)+" ")]),t(_,{staticClass:"col-auto py-2"},[e.excluded_objects.includes(r.name)?t(as,{staticClass:"text--disabled",attrs:{pill:"",small:""}},[e._v(" "+e._s(e.$t("Panels.StatusPanel.ExcludeObject.Excluded"))+" ")]):t(v,{staticClass:"text--disabled cursor-pointer",attrs:{small:""},on:{click:function(i){return e.openExcludeObjectDialog(r.name)}}},[e._v(" "+e._s(e.mdiCloseCircle)+" ")])],1)],1),t(U,{key:"divider_"+r.name})]})],2)},tA=[];const R1={};var sA=E(vl,eA,tA,!1,rA,null,null,null);function rA(e){for(let s in R1)this[s]=R1[s]}const uC=function(){return sA.exports}();var iA=Object.defineProperty,nA=Object.getOwnPropertyDescriptor,_u=(e,s,t,r)=>{for(var i=r>1?void 0:r?nA(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&iA(s,t,i),i};let Ti=class extends M(O){constructor(){super(...arguments),this.hoverName="",this.mdiSelectionRemove=qo,this.mdiCloseThick=pe}hideDialog(){this.$emit("update:showDialog",!1)}get passName(){return this.excludeObjectDialogName}set passName(s){this.$emit("update:name",s)}updateExcludeObjectDialogBool(s){this.$emit("update:bool",s)}updateExcludeObjectDialogName(s){this.$emit("update:name",s)}updateHoverObjectDialogName(s){this.hoverName=s}};_u([P({required:!0})],Ti.prototype,"showDialog",2);_u([P({required:!0})],Ti.prototype,"excludeObjectDialogBool",2);_u([P({required:!0})],Ti.prototype,"excludeObjectDialogName",2);Ti=_u([D({components:{Panel:B,StatusPanelExcludeObjectDialogList:uC,StatusPanelExcludeObjectDialogMap:lC}})],Ti);var aA=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(oe,{attrs:{width:"900",persistent:"",fullscreen:e.isMobile},model:{value:e.showDialog,callback:function(r){e.showDialog=r},expression:"showDialog"}},[t(B,{attrs:{title:e.$t("Panels.StatusPanel.ExcludeObject.ExcludeObject"),icon:e.mdiSelectionRemove,"card-class":"exclude-object-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.hideDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(Ae,[t($,[t(_,{staticClass:"col-12 col-sm-6 pb-0 pb-sm-3"},[t("status-panel-exclude-object-dialog-map",{attrs:{"hover-name":e.hoverName},on:{"update:name":e.updateExcludeObjectDialogName,"update:bool":e.updateExcludeObjectDialogBool}})],1),t(_,{staticClass:"col-12 col-sm-6 pt-0 pt-sm-3"},[t("status-panel-exclude-object-dialog-list",{attrs:{"exclude-object-dialog-name":e.excludeObjectDialogName,"exclude-object-dialog-bool":e.excludeObjectDialogBool,"hover-name":e.hoverName},on:{"update:excludeObjectDialogName":function(r){e.excludeObjectDialogName=r},"update:exclude-object-dialog-name":function(r){e.excludeObjectDialogName=r},"update:excludeObjectDialogBool":function(r){e.excludeObjectDialogBool=r},"update:exclude-object-dialog-bool":function(r){e.excludeObjectDialogBool=r},"update:name":e.updateExcludeObjectDialogName,"update:hoverName":e.updateHoverObjectDialogName,"update:bool":e.updateExcludeObjectDialogBool}})],1)],1)],1)],1)],1)],1)},oA=[];const j1={};var lA=E(Ti,aA,oA,!1,cA,null,null,null);function cA(e){for(let s in j1)this[s]=j1[s]}const uA=function(){return lA.exports}();var dA=Object.defineProperty,mA=Object.getOwnPropertyDescriptor,dC=(e,s,t,r)=>{for(var i=r>1?void 0:r?mA(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&dA(s,t,i),i};let _l=class extends M(O){constructor(){super(...arguments),this.mdiPrinter3dNozzle=Ws,this.mdiSelectionRemove=qo,this.boolShowExcludeObjectDialog=!1,this.excludeObjectDialogName=""}get showDialogPass(){return this.showDialog}set showDialogPass(s){this.$emit("update:showDialog",s)}get printing_objects(){var s,t;return(t=(s=this.$store.state.printer.exclude_object)==null?void 0:s.objects)!=null?t:[]}get current_object(){var s,t;return(t=(s=this.$store.state.printer.exclude_object)==null?void 0:s.current_object)!=null?t:null}get excluded_objects(){var s,t;return(t=(s=this.$store.state.printer.exclude_object)==null?void 0:s.excluded_objects)!=null?t:[]}updateExcludeObjectDialogName(s){this.excludeObjectDialogName=s}updateExcludeObjectDialogBool(s){this.boolShowExcludeObjectDialog=s}openCancelObjectDialog(s){this.excludeObjectDialogName=s,this.boolShowExcludeObjectDialog=!0}cancelObject(){this.$socket.emit("printer.gcode.script",{script:"EXCLUDE_OBJECT NAME="+this.excludeObjectDialogName}),this.boolShowExcludeObjectDialog=!1}};dC([P({required:!0})],_l.prototype,"showDialog",2);_l=dC([D({components:{StatusPanelExcludeObjectDialog:uA}})],_l);var hA=function(){var e=this,s=e.$createElement,t=e._self._c||s;return["printing","paused"].includes(e.printer_state)&&e.printing_objects.length?t("div",[t(Ae,{staticClass:"py-0"},[t("div",{staticClass:"d-flex flex-row flex-nowrap justify-space-between"},[t("div",{staticClass:"py-2",staticStyle:{width:"calc(100% - 25px)"}},[t("span",{staticClass:"subtitle-2 d-block px-0 text--disabled text-truncate"},[t(v,{staticClass:"mr-2",attrs:{small:""}},[e._v(e._s(e.mdiPrinter3dNozzle))]),e._v(" "+e._s(e.current_object!==null?e.current_object:"--")+" ")],1)]),t("div",{staticClass:"py-2 pl-0"},[e.current_object!==null?t(v,{staticClass:"text--disabled cursor-pointer",attrs:{small:""},on:{click:function(r){return e.openCancelObjectDialog(e.current_object)}}},[e._v(" "+e._s(e.mdiSelectionRemove)+" ")]):e._e()],1)])]),t(U,{staticClass:"mt-0 mb-0"}),t(oe,{attrs:{"max-width":"400"},model:{value:e.boolShowExcludeObjectDialog,callback:function(r){e.boolShowExcludeObjectDialog=r},expression:"boolShowExcludeObjectDialog"}},[t(xe,[t(La,{attrs:{flat:"",dense:""}},[t(Yi,[t("span",{staticClass:"subheading"},[t(v,{attrs:{left:""}},[e._v(e._s(e.mdiSelectionRemove))]),e._v(" "+e._s(e.$t("Panels.StatusPanel.ExcludeObject.ExcludeObjectHeadline"))+" ")],1)])],1),t(q,{staticClass:"mt-3"},[e._v(" "+e._s(e.$t("Panels.StatusPanel.ExcludeObject.ExcludeObjectText",{name:e.excludeObjectDialogName}))+" ")]),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:function(r){e.boolShowExcludeObjectDialog=!1}}},[e._v(" "+e._s(e.$t("Panels.StatusPanel.ExcludeObject.Cancel"))+" ")]),t(g,{attrs:{color:"primary",text:""},on:{click:e.cancelObject}},[e._v(" "+e._s(e.$t("Panels.StatusPanel.ExcludeObject.ExcludeObject"))+" ")])],1)],1)],1),t("status-panel-exclude-object-dialog",{attrs:{"show-dialog":e.showDialogPass,"exclude-object-dialog-name":e.excludeObjectDialogName,"exclude-object-dialog-bool":e.boolShowExcludeObjectDialog},on:{"update:showDialog":function(r){e.showDialogPass=r},"update:show-dialog":function(r){e.showDialogPass=r},"update:excludeObjectDialogName":function(r){e.excludeObjectDialogName=r},"update:exclude-object-dialog-name":function(r){e.excludeObjectDialogName=r},"update:excludeObjectDialogBool":function(r){e.boolShowExcludeObjectDialog=r},"update:exclude-object-dialog-bool":function(r){e.boolShowExcludeObjectDialog=r},"update:name":e.updateExcludeObjectDialogName,"update:bool":e.updateExcludeObjectDialogBool}})],1):e._e()},pA=[];const H1={};var fA=E(_l,hA,pA,!1,gA,null,null,null);function gA(e){for(let s in H1)this[s]=H1[s]}const vA=function(){return fA.exports}();var _A=Object.defineProperty,bA=Object.getOwnPropertyDescriptor,mC=(e,s,t,r)=>{for(var i=r>1?void 0:r?bA(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&_A(s,t,i),i};let bl=class extends M(O){constructor(){super(...arguments),this.mdiFileOutline=ky,this.mdiFile=pr,this.focus=!1,this.thumbnailFactor=0}get current_filename(){var s,t;return(t=(s=this.$store.state.printer.print_stats)==null?void 0:s.filename)!=null?t:""}get current_file(){var s;return(s=this.$store.state.printer.current_file)!=null?s:{}}get thumbnailBig(){if("thumbnails"in this.current_file&&this.current_file.thumbnails.length){const s=this.current_file.thumbnails.find(t=>t.width>=rr);if(s&&"relative_path"in s){let t="";if(this.current_file.filename.lastIndexOf("/")!==-1&&(t=this.current_file.filename.substr(0,this.current_file.filename.lastIndexOf("/")+1)),s&&"relative_path"in s)return"".concat(this.apiUrl,"/server/files/gcodes/").concat(encodeURI(t+s.relative_path),"?timestamp=").concat(this.current_file.modified)}}return""}get thumbnailBigHeight(){if("thumbnails"in this.current_file&&this.current_file.thumbnails.length){const s=this.current_file.thumbnails.find(t=>t.width>=rr);if(s&&"height"in s)return s.height}return 200}get thumbnailBigWidth(){if("thumbnails"in this.current_file&&this.current_file.thumbnails.length){const s=this.current_file.thumbnails.find(t=>t.width>=rr);if(s&&"width"in s)return s.width}return 300}get thumbnailSmall(){if("thumbnails"in this.current_file&&this.current_file.thumbnails.length){const s=this.current_file.thumbnails.find(t=>t.width>=bs&&t.width<=ys&&t.height>=bs&&t.height<=ys);if(s&&"relative_path"in s){let t="";if(this.current_file.filename.lastIndexOf("/")!==-1&&(t=this.current_file.filename.substr(0,this.current_file.filename.lastIndexOf("/")+1)),s&&"relative_path"in s)return"".concat(this.apiUrl,"/server/files/gcodes/").concat(encodeURI(t+s.relative_path),"?timestamp=").concat(this.current_file.modified)}}return""}get boolBigThumbnail(){var t;const s=(t=this.$store.state.gui.uiSettings.boolBigThumbnail)!=null?t:!0;return this.current_filename&&s&&this.thumbnailBig}get bigThumbnailBackground(){var s;return(s=this.$store.state.gui.uiSettings.bigThumbnailBackground)!=null?s:qt}get thumbnailStyle(){let s={height:"200px"};return this.printstatusThumbnailZoom?this.focus&&this.thumbnailBlurHeight>0&&(s.height="".concat(this.thumbnailBlurHeight,"px")):s.height="100%",qt.toLowerCase()!==this.bigThumbnailBackground.toLowerCase()&&(s.backgroundColor=this.bigThumbnailBackground),s}get styleThumbnailOverlay(){const s={backgroundColor:"rgba(0, 0, 0, 0.3)",backdropFilter:"blur(3px)"};return this.$vuetify.theme.dark||(s.backgroundColor="rgba(255, 255, 255, 0.3)"),s}get thumbnailBlurHeight(){return this.thumbnailFactor===0?0:(this.thumbnailBigHeight*this.thumbnailFactor).toFixed()}get printstatusThumbnailZoom(){var s;return(s=this.$store.state.gui.uiSettings.printstatusThumbnailZoom)!=null?s:!0}calcThumbnailFactor(){var t,r;const s=(r=(t=this.$refs.bigThumbnail)==null?void 0:t.$el.clientWidth)!=null?r:0;return(!s||!this.thumbnailBigWidth)&&(this.thumbnailFactor=0),this.thumbnailFactor=s/this.thumbnailBigWidth}handleResize(){this.$nextTick(()=>{this.calcThumbnailFactor()})}};mC([qe(200)],bl.prototype,"handleResize",1);bl=mC([D({})],bl);var yA=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.current_filename?t("div",{staticClass:"statusPanel-printstatus-thumbnail"},[e.boolBigThumbnail?t(Fc,{ref:"bigThumbnail",staticClass:"d-flex align-end statusPanel-big-thumbnail",style:e.thumbnailStyle,attrs:{src:e.thumbnailBig,tabindex:"-1",height:"200"},on:{focus:function(r){e.focus=!0},blur:function(r){e.focus=!1}}},[t(gt,{staticClass:"white--text py-2 px-2",style:e.styleThumbnailOverlay},[t($,[t(_,[t("span",{staticClass:"subtitle-2 text-truncate px-0 text--disabled d-block"},[t(v,{staticClass:"mr-2",attrs:{small:""}},[e._v(e._s(e.mdiFileOutline))]),e._v(" "+e._s(e.current_filename)+" ")],1)])],1)],1)],1):[t(Ae,[t($,[t(_,{class:e.thumbnailSmall?"py-3":"py-2",style:e.thumbnailSmall?"width: calc(100% - 40px);":""},[t("span",{staticClass:"subtitle-2 text-truncate d-block px-0 text--disabled"},[t(v,{staticClass:"mr-2",attrs:{small:""}},[e._v(e._s(e.mdiFileOutline))]),e._v(" "+e._s(e.current_filename)+" ")],1)]),e.thumbnailSmall?t(_,{staticClass:"pa-2 pl-0 col-auto"},[e.thumbnailSmall&&e.thumbnailBig?[t(de,{attrs:{top:"","content-class":"tooltip__content-opacity1"},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t("vue-load-image",{staticClass:"d-flex"},[t("img",e._g(e._b({attrs:{slot:"image",src:e.thumbnailSmall,width:"32",height:"32",alt:e.current_filename},slot:"image"},"img",n,!1),i)),t("div",{attrs:{slot:"preloader"},slot:"preloader"},[t(dt,{attrs:{indeterminate:"",color:"primary"}})],1),t("div",{attrs:{slot:"error"},slot:"error"},[t(v,[e._v(e._s(e.mdiFile))])],1)])]}}],null,!1,4119397588)},[t("span",[t("img",{attrs:{src:e.thumbnailBig,width:"250",alt:e.current_filename}})])])]:e.thumbnailSmall?[t("vue-load-image",[t("img",{attrs:{slot:"image",src:e.thumbnailSmall,width:"32",height:"32",alt:e.current_filename},slot:"image"}),t("div",{attrs:{slot:"preloader"},slot:"preloader"},[t(dt,{attrs:{indeterminate:"",color:"primary"}})],1),t("div",{attrs:{slot:"error"},slot:"error"},[t(v,[e._v(e._s(e.mdiFile))])],1)])]:e._e()],2):e._e()],1)],1)],t("resize-observer",{on:{notify:e.handleResize}})],2):e._e()},CA=[];const I1={};var $A=E(bl,yA,CA,!1,xA,"56af8069",null,null);function xA(e){for(let s in I1)this[s]=I1[s]}const wA=function(){return $A.exports}();var SA=Object.defineProperty,PA=Object.getOwnPropertyDescriptor,bu=(e,s,t,r)=>{for(var i=r>1?void 0:r?PA(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&SA(s,t,i),i};let Mi=class extends M(O){constructor(){super(...arguments),this.mdiLayersPlus=qd,this.mdiCloseThick=pe,this.type="atLayer",this.layer=0,this.call="PAUSE"}hideDialog(){this.$emit("update:showDialog",!1)}get items(){return[{text:this.$t("Panels.StatusPanel.PauseAtLayer.AtLayer"),value:"atLayer",status:this.existsSetPauseAtLayer},{text:this.$t("Panels.StatusPanel.PauseAtLayer.NextLayer"),value:"nextLayer",status:this.existsSetPauseNextLayer}]}get itemsFiltered(){return this.items.filter(s=>s.status)}get itemsCall(){return[{text:"PAUSE",value:"PAUSE"},{text:"M600",value:"M600"}]}get current_layer(){var s,t,r;return(r=(t=(s=this.$store.state.printer.print_stats)==null?void 0:s.info)==null?void 0:t.current_layer)!=null?r:0}get total_layer(){var s,t,r;return(r=(t=(s=this.$store.state.printer.print_stats)==null?void 0:s.info)==null?void 0:t.total_layer)!=null?r:0}get macros(){var s;return(s=this.$store.getters["printer/getMacros"])!=null?s:[]}get existsSetPauseAtLayer(){return this.macros.findIndex(s=>s.name==="SET_PAUSE_AT_LAYER")!==-1}get existsSetPauseNextLayer(){return this.macros.findIndex(s=>s.name==="SET_PAUSE_NEXT_LAYER")!==-1}get macroSetPrintStatsInfo(){var s;return(s=this.$store.state.printer["gcode_macro SET_PRINT_STATS_INFO"])!=null?s:{}}get macroSettingsPauseAtLayer(){var s;return(s=this.macroSetPrintStatsInfo.pause_at_layer)!=null?s:{}}get macroSettingsPauseAtLayerEnable(){var s;return(s=this.macroSettingsPauseAtLayer.enable)!=null?s:!1}get macroSettingsPauseAtLayerCall(){var s;return(s=this.macroSettingsPauseAtLayer.call)!=null?s:"PAUSE"}get macroSettingsPauseAtLayerLayer(){var s;return(s=this.macroSettingsPauseAtLayer.layer)!=null?s:0}get macroSettingsPauseNextLayer(){var s;return(s=this.macroSetPrintStatsInfo.pause_next_layer)!=null?s:{}}get macroSettingsPauseNextLayerEnable(){var s;return(s=this.macroSettingsPauseNextLayer.enable)!=null?s:!1}get macroSettingsPauseNextLayerCall(){var s;return(s=this.macroSettingsPauseNextLayer.call)!=null?s:"PAUSE"}sendCommand(){if(this.type==="atLayer"){this.doSend("SET_PAUSE_AT_LAYER ENABLE=1 LAYER=".concat(this.layer," MACRO=").concat(this.call)),this.hideDialog();return}this.doSend("SET_PAUSE_NEXT_LAYER ENABLE=1 MACRO=".concat(this.call)),this.hideDialog()}doSend(s){this.$store.dispatch("server/addEvent",{message:s,type:"command"}),this.$socket.emit("printer.gcode.script",{script:s})}showDialogChanged(s){s&&(this.layer=this.current_layer+1,this.type="atLayer",this.existsSetPauseAtLayer||(this.type="nextLayer"))}typeChanged(s){s==="atLayer"?this.call=this.macroSettingsPauseAtLayerCall:s==="nextLayer"&&(this.call=this.macroSettingsPauseNextLayerCall)}};bu([P({required:!0})],Mi.prototype,"showDialog",2);bu([me("showDialog")],Mi.prototype,"showDialogChanged",1);bu([me("type")],Mi.prototype,"typeChanged",1);Mi=bu([D({components:{Panel:B,StatusPanelExcludeObjectDialogList:uC,StatusPanelExcludeObjectDialogMap:lC}})],Mi);var DA=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(oe,{attrs:{width:"400",persistent:"",fullscreen:e.isMobile},model:{value:e.showDialog,callback:function(r){e.showDialog=r},expression:"showDialog"}},[t(B,{attrs:{title:e.$t("Panels.StatusPanel.PauseAtLayer.PauseAtLayer").toString(),icon:e.mdiLayersPlus,"card-class":"pause-at-layer-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.hideDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[e.type==="atLayer"&&e.macroSettingsPauseAtLayerEnable?t($,[t(_,[t(it,{attrs:{text:"",type:"warning",border:"left"}},[e._v(" "+e._s(e.$t("Panels.StatusPanel.PauseAtLayer.DescriptionPauseAtLayerActive",{layer:e.macroSettingsPauseAtLayerLayer,call:e.macroSettingsPauseAtLayerCall}))+" ")])],1)],1):e._e(),e.type==="nextLayer"&&e.macroSettingsPauseNextLayerEnable?t($,[t(_,[t(it,{attrs:{text:"",type:"warning",border:"left"}},[e._v(" "+e._s(e.$t("Panels.StatusPanel.PauseAtLayer.DescriptionPauseNextLayerActive",{call:e.macroSettingsPauseAtLayerCall}))+" ")])],1)],1):e._e(),t($,[t(_,[t(Ee,{attrs:{items:e.itemsFiltered,label:e.$t("Panels.StatusPanel.PauseAtLayer.Type"),outlined:"","hide-details":""},model:{value:e.type,callback:function(r){e.type=r},expression:"type"}})],1),e.type==="atLayer"?t(_,[t(te,{attrs:{label:e.$t("Panels.StatusPanel.PauseAtLayer.Layer"),outlined:"","hide-details":""},model:{value:e.layer,callback:function(r){e.layer=r},expression:"layer"}})],1):e._e()],1),t($,{staticClass:"mt-0"},[t(_,[t(Ee,{attrs:{items:e.itemsCall,label:e.$t("Panels.StatusPanel.PauseAtLayer.Call"),outlined:"","hide-details":""},model:{value:e.call,callback:function(r){e.call=r},expression:"call"}})],1)],1)],1),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:e.hideDialog}},[e._v(e._s(e.$t("Panels.StatusPanel.PauseAtLayer.Abort")))]),t(g,{attrs:{color:"primary",text:""},on:{click:e.sendCommand}},[e._v(" "+e._s(e.$t("Panels.StatusPanel.PauseAtLayer.Accept"))+" ")])],1)],1)],1)],1)},TA=[];const N1={};var MA=E(Mi,DA,TA,!1,EA,null,null,null);function EA(e){for(let s in N1)this[s]=N1[s]}const OA=function(){return MA.exports}();var LA=Object.defineProperty,AA=Object.getOwnPropertyDescriptor,hC=(e,s,t,r)=>{for(var i=r>1?void 0:r?AA(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&LA(s,t,i),i};let yl=class extends M(O){constructor(){super(...arguments),this.mdiInformation=kt,this.mdiMessageProcessingOutline=GT,this.mdiCloseCircle=zo,this.mdiDotsVertical=Vc,this.mdiAlertOutline=Wn,this.boolShowObjects=!1,this.boolShowPauseAtLayer=!1,this.activeTab="files",this.lastFilename=""}get jobs(){return this.$store.getters["server/jobQueue/getJobs"]}get jobsCount(){return this.$store.getters["server/jobQueue/getJobsCount"]}get jobQueueBadgeColor(){return this.jobsCount>0?"primary darken-2":"grey darken-2"}get current_filename(){var e,s;return(s=(e=this.$store.state.printer.print_stats)==null?void 0:e.filename)!=null?s:""}get current_file(){var e;return(e=this.$store.state.printer.current_file)!=null?e:{}}get printPercent(){return Math.floor(this.$store.getters["printer/getPrintPercent"]*100)}get printerStateOutput(){var e;if(this.printer_state!==""){const s=(e=this.$store.state.printer.idle_timeout)==null?void 0:e.state;return this.printer_state==="standby"&&s==="Printing"?"Busy":this.printer_state!==""&&["paused","printing"].includes(this.printer_state)?this.printPercent+"% "+this.printer_state.charAt(0).toUpperCase()+this.printer_state.slice(1):this.printer_state.charAt(0).toUpperCase()+this.printer_state.slice(1)}return this.$t("Panels.StatusPanel.Unknown")}get toolbarButtons(){return[{text:this.$t("Panels.StatusPanel.PausePrint"),color:"warning",icon:Dp,loadingName:"statusPrintPause",status:()=>["printing"].includes(this.printer_state),click:this.btnPauseJob},{text:this.$t("Panels.StatusPanel.ResumePrint"),color:"success",icon:en,loadingName:"statusPrintResume",status:()=>["paused"].includes(this.printer_state),click:this.btnResumeJob},{text:this.$t("Panels.StatusPanel.CancelPrint"),color:"error",icon:s2,loadingName:"statusPrintCancel",status:()=>this.$store.state.gui.uiSettings.displayCancelPrint?["paused","printing"].includes(this.printer_state):["paused"].includes(this.printer_state),click:this.btnCancelJob},{text:this.$t("Panels.StatusPanel.ExcludeObject.ExcludeObject"),color:"warning",icon:qo,loadingName:"excludeObjectButton",status:()=>this.multiFunctionButton||this.printing_objects.length<2?!1:["paused","printing"].includes(this.printer_state),click:this.btnExcludeObject},{text:this.$t("Panels.StatusPanel.PauseAtLayer.PauseAtLayer"),color:"warning",icon:qd,loadingName:"pauseAtLayer",status:()=>this.multiFunctionButton||!this.displayPauseAtLayerButton?!1:["paused","printing"].includes(this.printer_state),click:this.btnPauseAtLayer},{text:this.$t("Panels.StatusPanel.ClearPrintStats"),color:"primary",icon:wy,loadingName:"statusPrintClear",status:()=>["error","complete","cancelled"].includes(this.printer_state),click:this.btnClearJob},{text:this.$t("Panels.StatusPanel.ReprintJob"),color:"primary",icon:Jy,loadingName:"statusPrintReprint",status:()=>["error","complete","cancelled"].includes(this.printer_state),click:this.btnReprintJob}]}get filteredToolbarButtons(){return this.toolbarButtons.filter(e=>e.status())}get printing_objects(){var e,s;return(s=(e=this.$store.state.printer.exclude_object)==null?void 0:e.objects)!=null?s:[]}get display_message(){var e,s;return(s=(e=this.$store.state.printer.display_status)==null?void 0:e.message)!=null?s:null}get print_stats_message(){var e,s;return(s=(e=this.$store.state.printer.print_stats)==null?void 0:e.message)!=null?s:null}get layer_count(){var e,s,t;return(t=(s=(e=this.$store.state.printer.print_stats)==null?void 0:e.info)==null?void 0:s.total_layer)!=null?t:null}get multiFunctionMenuButtons(){return[{text:this.$t("Panels.StatusPanel.ExcludeObject.ExcludeObject"),loadingName:"excludeObjectButton",icon:qo,status:()=>this.printing_objects.length>1,disabled:()=>["paused","printing"].includes(this.printer_state),click:this.btnExcludeObject},{text:this.$t("Panels.StatusPanel.PauseAtLayer.PauseAtLayer"),loadingName:"pauseAtLayer",icon:qd,status:()=>this.displayPauseAtLayerButton,disabled:()=>["paused","printing"].includes(this.printer_state),click:this.btnPauseAtLayer}]}get multiFunctionMenuButtonsFiltered(){return this.multiFunctionMenuButtons.filter(e=>e.status())}get multiFunctionButton(){return["paused","printing"].includes(this.printer_state)?this.multiFunctionMenuButtonsFiltered.length>1:!1}get macros(){var e;return(e=this.$store.getters["printer/getMacros"])!=null?e:[]}get existsSetPauseAtLayer(){return this.macros.findIndex(e=>e.name==="SET_PAUSE_AT_LAYER")!==-1}get existsSetPauseNextLayer(){return this.macros.findIndex(e=>e.name==="SET_PAUSE_NEXT_LAYER")!==-1}get displayPauseAtLayerButton(){return this.layer_count!==null&&(this.existsSetPauseAtLayer||this.existsSetPauseNextLayer)}mounted(){this.current_filename!==""&&(this.activeTab="status")}current_filenameChanged(e){e===""?this.activeTab="files":this.lastFilename!==e&&(this.activeTab="status"),this.lastFilename=e}clearDisplayMessage(){this.$socket.emit("printer.gcode.script",{script:"M117"})}updateShowDialog(e){this.boolShowObjects=e}btnPauseJob(){this.$socket.emit("printer.print.pause",{},{loading:"statusPrintPause"})}btnResumeJob(){this.$socket.emit("printer.print.resume",{},{loading:"statusPrintResume"})}btnExcludeObject(){this.boolShowObjects=!0}btnPauseAtLayer(){this.boolShowPauseAtLayer=!0}btnCancelJob(){this.$socket.emit("printer.print.cancel",{},{loading:"statusPrintCancel"})}btnClearJob(){this.$socket.emit("printer.gcode.script",{script:"SDCARD_RESET_FILE"},{loading:"statusPrintClear"})}btnReprintJob(){this.$socket.emit("printer.print.start",{filename:this.current_filename},{loading:"statusPrintReprint"})}};hC([me("current_filename")],yl.prototype,"current_filenameChanged",1);yl=hC([D({components:{KlippyStatePanel:Na,MinSettingsPanel:Ip,Panel:B,StatusPanelExcludeObject:vA,StatusPanelGcodefiles:aC,StatusPanelJobqueue:iC,StatusPanelPrintstatus:G9,StatusPanelPrintstatusThumbnail:wA,StatusPanelPauseAtLayerDialog:OA}})],yl);var kA=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(Ip),t(Na),e.klipperReadyForGui?t(B,{attrs:{icon:e.mdiInformation,title:e.printerStateOutput,collapsible:!0,"card-class":"status-panel"},scopedSlots:e._u([{key:"icon",fn:function(){return[["paused","printing"].includes(e.printer_state)?t(dt,{staticClass:"mr-3",attrs:{rotate:-90,size:30,width:5,value:e.printPercent,color:"primary"}}):e._e()]},proxy:!0},{key:"buttons",fn:function(){return[e._l(e.filteredToolbarButtons,function(r){return t(g,{key:r.loadingName,attrs:{color:r.color,loading:e.loadings.includes(r.loadingName),icon:"",tile:""},on:{click:r.click}},[t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(i){var n=i.on,a=i.attrs;return[t(v,e._g(e._b({},"v-icon",a,!1),n),[e._v(e._s(r.icon))])]}}],null,!0)},[t("span",[e._v(e._s(r.text))])])],1)}),e.multiFunctionButton?t($e,{staticClass:"pa-0",attrs:{left:"","offset-y":"","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({attrs:{icon:"",tile:""}},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.mdiDotsVertical))])],1)]}}],null,!1,2883138713)},[t(Oe,{attrs:{dense:""}},e._l(e.multiFunctionMenuButtonsFiltered,function(r,i){return t(J,{key:"multiFunction_"+i},[t(g,{staticStyle:{width:"100%"},attrs:{small:""},on:{click:function(n){return r.click()}}},[t(v,{attrs:{left:"",small:""}},[e._v(e._s(r.icon))]),e._v(" "+e._s(r.text)+" ")],1)],1)}),1)],1):e._e()]},proxy:!0}],null,!1,3390704979)},[t("status-panel-printstatus-thumbnail"),t("status-panel-exclude-object",{attrs:{"show-dialog":e.boolShowObjects},on:{"update:showDialog":[function(r){e.boolShowObjects=r},e.updateShowDialog],"update:show-dialog":function(r){e.boolShowObjects=r}}}),t("status-panel-pause-at-layer-dialog",{attrs:{"show-dialog":e.boolShowPauseAtLayer},on:{"update:showDialog":function(r){e.boolShowPauseAtLayer=r},"update:show-dialog":function(r){e.boolShowPauseAtLayer=r}}}),e.print_stats_message?[t(Ae,[t($,[t(_,{staticClass:"py-2"},[t("span",{staticClass:"subtitle-2 px-0 text--disabled"},[t(v,{staticClass:"mr-2 mt-1 float-left",attrs:{color:"warning",small:""}},[e._v(" "+e._s(e.mdiAlertOutline)+" ")]),e._v(" "+e._s(e.print_stats_message)+" ")],1)])],1)],1),t(U,{staticClass:"mt-0 mb-0"})]:e._e(),e.display_message?[t(Ae,[t($,{staticClass:"flex-nowrap"},[t(_,{staticClass:"py-2",staticStyle:{"min-width":"0"}},[t("span",{staticClass:"subtitle-2 px-0 text--disabled"},[t(v,{staticClass:"mr-2 mt-1 float-left",attrs:{small:""}},[e._v(e._s(e.mdiMessageProcessingOutline))]),e._v(" "+e._s(e.display_message)+" ")],1)]),t(_,{staticClass:"col-auto py-2"},[t(v,{staticClass:"text--disabled cursor-pointer",attrs:{small:""},on:{click:e.clearDisplayMessage}},[e._v(" "+e._s(e.mdiCloseCircle)+" ")])],1)],1)],1),t(U,{staticClass:"mt-0 mb-0"})]:e._e(),t(Vo,{attrs:{"fixed-tabs":""},model:{value:e.activeTab,callback:function(r){e.activeTab=r},expression:"activeTab"}},[e.current_filename?t(pi,{attrs:{href:"#status"}},[e._v(e._s(e.$t("Panels.StatusPanel.Status")))]):e._e(),t(pi,{attrs:{href:"#files"}},[e._v(e._s(e.$t("Panels.StatusPanel.Files")))]),t(pi,{attrs:{href:"#jobqueue"}},[t(ay,{attrs:{color:e.jobQueueBadgeColor,content:e.jobsCount.toString(),inline:!0}},[e._v(" "+e._s(e.$t("Panels.StatusPanel.Jobqueue"))+" ")])],1)],1),t(U,{staticClass:"my-0"}),t(oy,{staticClass:"_border-radius",model:{value:e.activeTab,callback:function(r){e.activeTab=r},expression:"activeTab"}},[e.current_filename?t(Pr,{attrs:{value:"status"}},[t("status-panel-printstatus")],1):e._e(),t(Pr,{attrs:{value:"files"}},[t("status-panel-gcodefiles")],1),t(Pr,{attrs:{value:"jobqueue"}},[t("status-panel-jobqueue")],1)],1)],2):e._e()],1)},FA=[];const V1={};var RA=E(yl,kA,FA,!1,jA,"75338652",null,null);function jA(e){for(let s in V1)this[s]=V1[s]}const Tn=function(){return RA.exports}();var HA=Object.defineProperty,IA=Object.getOwnPropertyDescriptor,NA=(e,s,t,r)=>{for(var i=r>1?void 0:r?IA(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&HA(s,t,i),i};let Cm=class extends M(O,Ke){constructor(){super(...arguments),this.mdiEngineOff=bp,this.mdiHome=Iy}get enableXYHoming(){return this.$store.state.gui.control.enableXYHoming}get stepsXYsorted(){return[...this.$store.state.gui.control.stepsXY].sort(function(s,t){return t-s})}get stepsXYsortedReverse(){return[...this.$store.state.gui.control.stepsXY].sort(function(s,t){return s-t})}get stepsZsorted(){return[...this.$store.state.gui.control.stepsZ].sort(function(s,t){return t-s})}get stepsZsortedReverse(){return[...this.$store.state.gui.control.stepsZ].sort(function(s,t){return s-t})}};Cm=NA([D],Cm);var VA=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t($,{attrs:{"no-gutters":""}},[t(_,{staticClass:"col-12 pb-0 text-center"},[t(g,{attrs:{small:"",disabled:["printing"].includes(e.printer_state),loading:e.loadings.includes("homeAll"),color:e.homedAxes.includes("xyz")?"primary":"warning"},on:{click:e.doHome}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiHome))]),e._v(" "+e._s(e.$t("Panels.ToolheadControlPanel.ALL"))+" ")],1),e.enableXYHoming?t(g,{staticClass:"ml-2",attrs:{disabled:["printing"].includes(e.printer_state),loading:e.loadings.includes("homeAll"),color:e.homedAxes.includes("xy")?"primary":"warning",small:""},on:{click:e.doHomeXY}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiHome))]),e._v(" XY ")],1):e._e(),e.existsQGL?t(g,{staticClass:"ml-2",attrs:{disabled:["printing"].includes(e.printer_state),small:"",loading:e.loadings.includes("qgl"),color:e.colorQuadGantryLevel},on:{click:e.doQGL}},[e._v(" "+e._s(e.$t("Panels.ToolheadControlPanel.QGL"))+" ")]):e._e(),e.existsZtilt?t(g,{staticClass:"ml-2",attrs:{disabled:["printing"].includes(e.printer_state),small:"",loading:e.loadings.includes("zTilt"),color:e.colorZTilt},on:{click:e.doZtilt}},[e._v(" "+e._s(e.$t("Panels.ToolheadControlPanel.ZTilt"))+" ")]):e._e(),t(g,{staticClass:"ml-2",attrs:{small:"",disabled:["printing"].includes(e.printer_state),color:e.homedAxes!==""?"primary":"warning"},on:{click:function(r){return e.doSend("M84")}}},[t(v,[e._v(e._s(e.mdiEngineOff))])],1)],1)],1),t($,{attrs:{dense:""}},[t(_,{staticClass:"text-center"},[t(Vt,{staticClass:"_btn-group row no-gutters"},[e._l(e.stepsXYsorted,function(r){return t(g,{key:"x-"+r,staticClass:"btnMinWidthAuto col btnGroup",attrs:{disabled:["printing"].includes(e.printer_state)},on:{click:function(i){return e.doSendMove("X-"+r,e.feedrateXY)}}},[t("span",{staticClass:"body-2"},[e._v(""+e._s(r))])])}),t(g,{staticClass:"font-weight-bold btnHomeAxis btnGroup",attrs:{disabled:["printing"].includes(e.printer_state),color:e.homedAxes.includes("x")?"primary":"warning",loading:e.loadings.includes("homeX")},on:{click:e.doHomeX}},[e._v(" X ")]),e._l(e.stepsXYsortedReverse,function(r){return t(g,{key:"x+"+r,staticClass:"btnMinWidthAuto col btnGroup",attrs:{disabled:["printing"].includes(e.printer_state)},on:{click:function(i){return e.doSendMove("X+"+r,e.feedrateXY)}}},[t("span",{staticClass:"body-2"},[e._v("+"+e._s(r))])])})],2)],1)],1),t($,{attrs:{dense:""}},[t(_,{staticClass:"text-center"},[t(Vt,{staticClass:"_btn-group row no-gutters"},[e._l(e.stepsXYsorted,function(r){return t(g,{key:"y-"+r,staticClass:"btnMinWidthAuto col btnGroup",attrs:{disabled:["printing"].includes(e.printer_state)},on:{click:function(i){return e.doSendMove("Y-"+r,e.feedrateXY)}}},[t("span",{staticClass:"body-2"},[e._v(""+e._s(r))])])}),t(g,{staticClass:"font-weight-bold btnHomeAxis btnGroup",attrs:{disabled:["printing"].includes(e.printer_state),color:e.homedAxes.includes("y")?"primary":"warning",loading:e.loadings.includes("homeY")},on:{click:e.doHomeY}},[e._v(" Y ")]),e._l(e.stepsXYsortedReverse,function(r){return t(g,{key:"y+"+r,staticClass:"btnMinWidthAuto col btnGroup",attrs:{disabled:["printing"].includes(e.printer_state)},on:{click:function(i){return e.doSendMove("Y+"+r,e.feedrateXY)}}},[t("span",{staticClass:"body-2"},[e._v("+"+e._s(r))])])})],2)],1)],1),t($,{attrs:{dense:""}},[t(_,{staticClass:"text-center"},[t(Vt,{staticClass:"_btn-group row no-gutters"},[e._l(e.stepsZsorted,function(r){return t(g,{key:"z-"+r,staticClass:"btnMinWidthAuto col btnGroup",attrs:{disabled:["printing"].includes(e.printer_state)},on:{click:function(i){return e.doSendMove("Z-"+r,e.feedrateZ)}}},[t("span",{staticClass:"body-2"},[e._v(""+e._s(r))])])}),t(g,{staticClass:"font-weight-bold btnHomeAxis btnGroup",attrs:{disabled:["printing"].includes(e.printer_state),color:e.homedAxes.includes("z")?"primary":"warning",loading:e.loadings.includes("homeZ")},on:{click:e.doHomeZ}},[e._v(" Z ")]),e._l(e.stepsZsortedReverse,function(r){return t(g,{key:"z+"+r,staticClass:"btnMinWidthAuto col btnGroup",attrs:{disabled:["printing"].includes(e.printer_state)},on:{click:function(i){return e.doSendMove("Z+"+r,e.feedrateZ)}}},[t("span",{staticClass:"body-2"},[e._v("+"+e._s(r))])])})],2)],1)],1)],1)},UA=[];const U1={};var BA=E(Cm,VA,UA,!1,WA,"23a679bf",null,null);function WA(e){for(let s in U1)this[s]=U1[s]}const GA=function(){return BA.exports}();var zA=Object.defineProperty,ZA=Object.getOwnPropertyDescriptor,qA=(e,s,t,r)=>{for(var i=r>1?void 0:r?ZA(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&zA(s,t,i),i};let $m=class extends M(O,Ke){constructor(){super(...arguments),this.homeIcon="M10,20L10,14L14,14L14,20L19,20L19,12L22,12L12,3L2,12L5,12L5,20L10,20Z",this.pathHomeButtonTop="M9.188,-0C9.634,0.001 10.028,0.291 10.162,0.717C10.295,1.142 10.136,1.605 9.77,1.86C6.722,4.035 4.05,6.701 1.869,9.743C1.614,10.11 1.151,10.269 0.724,10.135C0.298,10.002 0.008,9.607 0.008,9.16C0,6.418 0,2.781 0,1.029C-0,0.756 0.108,0.495 0.302,0.302C0.495,0.108 0.756,-0 1.029,0L9.188,-0Z",this.pathHomeButtonBottom="M9.188,0C9.634,0.001 10.028,0.291 10.162,0.717C10.295,1.142 10.136,1.605 9.77,1.86C6.722,4.035 4.05,6.701 1.869,9.743C1.614,10.11 1.151,10.269 0.724,10.135C0.298,10.002 0.008,9.607 0.008,9.16C0,6.418 0,2.781 0,1.029C-0,0.756 0.108,0.495 0.302,0.302C0.495,0.108 0.756,-0 1.029,0L9.188,0Z",this.xyStepOuter="M43.181,8.535C43.262,8.453 43.373,8.409 43.488,8.412C43.602,8.415 43.711,8.466 43.787,8.551C47.661,12.933 50,18.695 50,25C50,31.291 47.672,37.042 43.811,41.42C43.735,41.505 43.627,41.556 43.512,41.559C43.398,41.562 43.287,41.518 43.206,41.437C42.343,40.575 39.981,38.213 39.981,38.213C43.11,34.7 45,30.069 45,25C45,19.918 43.1,15.276 39.956,11.759C39.956,11.759 42.319,9.397 43.181,8.535Z",this.xyStepOuterMid="M47.418,4.777C57.663,18.688 57.829,31.029 47.304,45.072L39.308,37.098C42.081,33.838 43.75,29.612 43.75,25C43.75,20.371 42.069,16.132 39.277,12.868L47.418,4.777Z",this.xyStepInnerMid="M54.897,-1.964C68.991,16.277 68.542,32.764 54.738,51.763L44.077,41.131L38.115,35.169C40.361,32.389 41.667,28.846 41.667,25C41.667,21.132 40.346,17.57 38.076,14.784L54.897,-1.964Z",this.xyStepInner="M36.096,19.243C35.88,18.839 35.954,18.342 36.278,18.019C40.686,13.619 69.84,-15.445 69.84,-15.445C90.891,13.786 89.845,38.467 69.564,65.144C69.564,65.144 40.684,36.265 36.318,31.899C35.996,31.576 35.922,31.081 36.134,30.678C37.008,28.975 37.5,27.044 37.5,25C37.5,22.925 36.993,20.967 36.096,19.243Z",this.zStepOuter="M66.037,2.5C66.037,1.672 66.709,1 67.537,1L74.537,1C75.365,1 76.037,1.672 76.037,2.5L76.037,7.521C74.428,7.179 72.759,7 71.048,7C69.33,7 67.654,7.181 66.037,7.525L66.037,2.5Z",this.zStepOuterMid="M66.037,7.221C69.367,6.597 72.7,6.583 76.037,7.192L76.037,13.702C74.453,13.245 72.778,13 71.048,13C69.309,13 67.627,13.247 66.037,13.708L66.037,7.221Z",this.zStepInnerMid="M66.037,13.244C69.353,12.66 72.687,12.7 76.037,13.355L76.037,20.099C74.523,19.39 72.831,19 71.048,19C69.256,19 67.556,19.393 66.037,20.109L66.037,13.244Z",this.zStepInner="M66.037,19.186C69.409,18.542 72.742,18.52 76.037,19.102L76.037,23.682C76.037,23.815 75.984,23.942 75.891,24.036C75.564,24.362 74.774,25.153 74.359,25.567C74.204,25.722 73.967,25.757 73.773,25.656C72.955,25.236 72.029,25 71.048,25C70.051,25 69.112,25.243 68.284,25.674C68.09,25.777 67.852,25.742 67.697,25.586C67.283,25.175 66.506,24.395 66.183,24.071C66.09,23.977 66.037,23.85 66.037,23.718C66.037,22.806 66.037,19.186 66.037,19.186Z",this.zTiltIcon1="M74.189,31.503L67.751,30.009L67.638,30.496L74.076,31.99L74.189,31.503Z",this.zTiltIcon2="M74.361,32.85L74.034,32.676L74.939,32.188L75.039,33.211L74.745,33.055C74.386,33.724 73.858,34.288 73.213,34.69L72.983,34.321C73.563,33.959 74.038,33.452 74.361,32.85ZM67.193,28.75C67.586,28.1 68.142,27.564 68.807,27.196L69.018,27.576C68.42,27.907 67.919,28.389 67.565,28.974L67.883,29.165L66.954,29.605L66.907,28.578L67.193,28.75Z",this.engineOffIcon="M3.78 2.5L21.5 20.22l-1.27 1.28L18 19.27V20h-8l-2-2H5v-3H3v3H1v-8h2v3h2v-3l1.87-1.86L2.5 3.77L3.78 2.5M20 9v3h-2V8h-6V6h3V4H7.82l15 15H23V9h-3Z"}get actionButton(){var s;return(s=this.$store.state.gui.control.actionButton)!=null?s:this.defaultActionButton}get enableXYHoming(){return this.$store.state.gui.control.enableXYHoming}get reverseX(){return this.$store.state.gui.control.reverseX}get reverseY(){return this.$store.state.gui.control.reverseY}get reverseZ(){return this.$store.state.gui.control.reverseZ}get stepsXY(){var t,r;const s=(r=(t=this.$store.state.gui.control)==null?void 0:t.stepsCircleXY)!=null?r:[];return Array.from(new Set([...s!=null?s:[]])).sort((i,n)=>i-n)}get stepsZ(){var t,r;const s=(r=(t=this.$store.state.gui.control)==null?void 0:t.stepsCircleZ)!=null?r:[];return Array.from(new Set([...s!=null?s:[]])).sort((i,n)=>i-n)}get isPrinting(){return["printing"].includes(this.printer_state)}get stepTextClass(){return!this.homedAxes.includes("xy")||this.isPrinting?["disabled"]:[]}get xStepClass(){return!this.homedAxes.includes("x")||this.isPrinting?["disabled"]:[]}get yStepClass(){return!this.homedAxes.includes("y")||this.isPrinting?["disabled"]:[]}get zStepClass(){return!this.homedAxes.includes("z")||this.isPrinting?["disabled"]:[]}get xHomeClass(){let s=[];return this.homedAxes.includes("x")&&s.push("homed"),this.isPrinting&&s.push("disabled"),s}get yHomeClass(){let s=[];return this.homedAxes.includes("y")&&s.push("homed"),this.isPrinting&&s.push("disabled"),s}get xyHomeClass(){let s=[];return this.homedAxes.includes("xy")&&s.push("homed"),this.isPrinting&&s.push("disabled"),s}get xyzHomeClass(){let s=[];return this.homedAxes.includes("xyz")&&s.push("homed"),this.isPrinting&&s.push("disabled"),s}get zHomeClass(){let s=[];return this.homedAxes.includes("z")&&s.push("homed"),this.isPrinting&&s.push("disabled"),s}get colorSpecialButton(){let s=[];return this.isPrinting&&s.push("disabled"),this.existsQGL?s.push(this.colorQuadGantryLevel):this.existsZtilt&&s.push(this.colorZTilt),s}get motorsOffClass(){let s=[];return s.push(this.homedAxes!==""?"primary":"warning"),this.isPrinting&&s.push("disabled"),s}clickSpecialButton(){if(this.existsQGL)this.doQGL();else if(this.existsZtilt)return this.doZtilt()}};$m=qA([D],$m);var XA=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t($,[t(_,{staticClass:"pa-0 mt-1"},[t("svg",{staticStyle:{"fill-rule":"evenodd","clip-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2"},attrs:{width:"100%",height:"100%",viewBox:"0 0 78 62",xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve"}},[t("g",{attrs:{id:"ArtBoard1",transform:"matrix(1.24239,0,0,1,0,0)"}},[t("rect",{staticStyle:{fill:"none"},attrs:{x:"0",y:"0",width:"62",height:"62"}}),t("g",{attrs:{id:"home_buttons",transform:"matrix(0.804902,0,0,1,0.0430241,0)"}},[t("a",{class:e.xHomeClass,on:{click:e.doHomeX}},[t("g",{attrs:{id:"home_x",transform:"matrix(0.707107,-0.707107,0.707107,0.707107,-1.41799,4.05689)"}},[t("g",{staticClass:"home_button",attrs:{id:"home_button_x",transform:"matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)"}},[t("path",{attrs:{d:e.pathHomeButtonTop}})]),t("g",{attrs:{transform:"matrix(0.654426,0,0,0.654426,0.298666,4.01315)"}},[t("text",{attrs:{x:"3.789px",y:"6.089px"}},[e._v("X")])]),t("g",{staticClass:"home_icon",attrs:{id:"Icon",transform:"matrix(0.147059,0,0,0.147059,2.10662,2.08254)"}},[t("path",{staticStyle:{"fill-rule":"nonzero"},attrs:{d:e.homeIcon}})])])]),t("a",{class:e.yHomeClass,on:{click:e.doHomeY}},[t("g",{attrs:{id:"home_y",transform:"matrix(0.707107,0.707107,-0.707107,0.707107,57.8807,-1.41799)"}},[t("g",{staticClass:"home_button",attrs:{id:"home_button_y",transform:"matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)"}},[t("path",{attrs:{d:e.pathHomeButtonTop}})]),t("g",{attrs:{transform:"matrix(0.654426,0,0,0.654426,0.298666,4.01315)"}},[t("text",{attrs:{x:"3.789px",y:"6.089px"}},[e._v("Y")])]),t("g",{staticClass:"home_icon",attrs:{id:"icon",transform:"matrix(0.147059,0,0,0.147059,2.10662,2.08254)"}},[t("path",{staticStyle:{"fill-rule":"nonzero"},attrs:{d:e.homeIcon}})])])]),t("a",{class:e.zHomeClass,on:{click:e.doHomeZ}},[t("g",{attrs:{id:"home_z",transform:"matrix(-0.707107,0.707107,-0.707107,-0.707107,63.3555,57.8807)"}},[t("g",{staticClass:"home_button",attrs:{id:"home_button_z",transform:"matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)"}},[t("path",{attrs:{d:e.pathHomeButtonBottom}})]),t("g",{attrs:{transform:"matrix(0.654426,0,0,0.654426,0.298666,4.01315)"}},[t("text",{attrs:{x:"3.93px",y:"6.089px"}},[e._v("Z")])]),t("g",{staticClass:"home_icon",attrs:{id:"icon1",transform:"matrix(0.147059,0,0,0.147059,2.10662,2.08254)"}},[t("path",{staticStyle:{"fill-rule":"nonzero"},attrs:{d:e.homeIcon}})])])]),e.enableXYHoming?t("a",{class:e.xyHomeClass,on:{click:e.doHomeXY}},[t("g",{attrs:{id:"home_xy",transform:"matrix(-0.707107,-0.707107,0.707107,-0.707107,4.05689,63.3555)"}},[t("g",{staticClass:"home_button",attrs:{id:"home_button_xy",transform:"matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)"}},[t("path",{attrs:{d:e.pathHomeButtonBottom}})]),t("g",{attrs:{transform:"matrix(0.654426,0,0,0.654426,0.298666,4.01315)"}},[t("text",{attrs:{x:"2.3px",y:"6.089px"}},[e._v("XY")])]),t("g",{staticClass:"home_icon",attrs:{id:"icon2",transform:"matrix(0.147059,0,0,0.147059,2.10662,2.08254)"}},[t("path",{staticStyle:{"fill-rule":"nonzero"},attrs:{d:e.homeIcon}})])])]):t("a",{class:e.xyzHomeClass,on:{click:e.doHome}},[t("g",{attrs:{id:"home_all",transform:"matrix(-0.707107,-0.707107,0.707107,-0.707107,4.05689,63.3555)"}},[t("g",{staticClass:"home_button",attrs:{id:"home_button_all",transform:"matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)"}},[t("path",{attrs:{d:e.pathHomeButtonBottom}})]),t("g",{staticClass:"home_icon",attrs:{id:"icon3",transform:"matrix(0.29377,0,0,0.29377,0.346087,1.64241)"}},[t("path",{staticStyle:{"fill-rule":"nonzero"},attrs:{d:e.homeIcon}})])])]),e.enableXYHoming?t("a",{class:e.xyzHomeClass,on:{click:e.doHome}},[t("g",{staticClass:"home_button",attrs:{id:"home_all_center"}},[t("circle",{attrs:{id:"home_button_all_center",cx:"31",cy:"31",r:"5"}})]),t("g",{staticClass:"home-icon",attrs:{id:"icon4",transform:"scale(0.3) translate(91.25,91.25)"}},[t("path",{staticStyle:{"fill-rule":"nonzero"},attrs:{d:e.homeIcon}})])]):e._e()]),t("g",{attrs:{id:"step_buttons",transform:"matrix(0.804902,0,0,1,0.0430241,0)"}},[t("g",{attrs:{id:"Z",transform:"matrix(1.24239,0,0,1,-0.0534526,0)"}},[t("g",{class:e.zStepClass,attrs:{id:"Bottom",transform:"matrix(-1,-1.52149e-16,9.85721e-17,-1,114.34,62)"}},[t("a",{staticClass:"step inner",on:{click:function(r){return e.doSendMove("Z".concat(e.reverseZ?"+":"-").concat(e.stepsZ.length>=0?e.stepsZ[0]:0),e.feedrateZ)}}},[t("g",{attrs:{transform:"matrix(0.804902,0,0,1,0,0)"}},[t("path",{attrs:{d:e.zStepInner}})])]),t("a",{staticClass:"step inner-mid",on:{click:function(r){return e.doSendMove("Z".concat(e.reverseZ?"+":"-").concat(e.stepsZ.length>=1?e.stepsZ[1]:0),e.feedrateZ)}}},[t("g",{attrs:{transform:"matrix(0.804902,1.2326e-32,-9.92118e-33,1,-5.71917e-15,-7.10543e-15)"}},[t("path",{attrs:{d:e.zStepInnerMid}})])]),t("a",{staticClass:"step outer-mid",on:{click:function(r){return e.doSendMove("Z".concat(e.reverseZ?"+":"-").concat(e.stepsZ.length>=2?e.stepsZ[2]:0),e.feedrateZ)}}},[t("g",{attrs:{transform:"matrix(0.804902,0,0,1,0,0)"}},[t("path",{attrs:{d:e.zStepOuterMid}})])]),t("a",{staticClass:"step outer",on:{click:function(r){return e.doSendMove("Z".concat(e.reverseZ?"+":"-").concat(e.stepsZ.length>=3?e.stepsZ[3]:0),e.feedrateZ)}}},[t("g",{attrs:{transform:"matrix(0.804902,0,0,1,0,0)"}},[t("path",{attrs:{d:e.zStepOuter}})])])]),t("g",{class:e.zStepClass,attrs:{id:"Top"}},[t("a",{staticClass:"step inner",on:{click:function(r){return e.doSendMove("Z".concat(e.reverseZ?"-":"+").concat(e.stepsZ.length>=0?e.stepsZ[0]:0),e.feedrateZ)}}},[t("g",{attrs:{transform:"matrix(0.804902,0,0,1,0,0)"}},[t("path",{attrs:{d:e.zStepInner}})])]),t("a",{staticClass:"step inner-mid",on:{click:function(r){return e.doSendMove("Z".concat(e.reverseZ?"-":"+").concat(e.stepsZ.length>=1?e.stepsZ[1]:0),e.feedrateZ)}}},[t("g",{attrs:{transform:"matrix(0.804902,1.2326e-32,-9.92118e-33,1,-5.71917e-15,-7.10543e-15)"}},[t("path",{attrs:{d:e.zStepInnerMid}})])]),t("a",{staticClass:"step outer-mid",on:{click:function(r){return e.doSendMove("Z".concat(e.reverseZ?"-":"+").concat(e.stepsZ.length>=2?e.stepsZ[2]:0),e.feedrateZ)}}},[t("g",{attrs:{transform:"matrix(0.804902,0,0,1,0,0)"}},[t("path",{attrs:{d:e.zStepOuterMid}})])]),t("a",{staticClass:"step outer",on:{click:function(r){return e.doSendMove("Z".concat(e.reverseZ?"-":"+").concat(e.stepsZ.length>=3?e.stepsZ[3]:0),e.feedrateZ)}}},[t("g",{attrs:{transform:"matrix(0.804902,0,0,1,0,0)"}},[t("path",{attrs:{d:e.zStepOuter}})])])])]),t("g",{class:e.zStepClass,attrs:{id:"stepsZ",transform:"matrix(1,0,0,1,40,0)"}},[t("g",{attrs:{transform:"matrix(1,0,0,1,0.483899,4.07983)"}},[t("text",{attrs:{x:"30.7px",y:"19.056px","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsZ.length>=0?e.stepsZ[0]:"--")+" ")])]),t("g",{attrs:{transform:"matrix(1,0,0,1,0.220227,-1.95729)"}},[t("text",{attrs:{x:"30.7px",y:"19.056px","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsZ.length>=1?e.stepsZ[1]:"--")+" ")])]),t("g",{attrs:{transform:"matrix(1,0,0,1,0.220227,-7.99441)"}},[t("text",{attrs:{x:"30.7px",y:"19.056px","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsZ.length>=2?e.stepsZ[2]:"--")+" ")])]),t("g",{attrs:{transform:"matrix(1,0,0,1,0.220227,-14.0315)"}},[t("text",{attrs:{x:"30.7px",y:"19.056px","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsZ.length>=3?e.stepsZ[3]:"--")+" ")])])]),t("g",{attrs:{id:"XY"}},[t("g",{class:e.xStepClass,attrs:{id:"Right"}},[t("a",{staticClass:"step inner",on:{click:function(r){return e.doSendMove("X".concat(e.reverseX?"-":"+").concat(e.stepsXY.length>=0?e.stepsXY[0]:0),e.feedrateXY)}}},[t("g",{attrs:{transform:"matrix(0.48,0,0,0.48,19,19)"}},[t("path",{attrs:{d:e.xyStepInner}})])]),t("a",{staticClass:"step inner-mid",on:{click:function(r){return e.doSendMove("X".concat(e.reverseX?"-":"+").concat(e.stepsXY.length>=1?e.stepsXY[1]:0),e.feedrateXY)}}},[t("g",{attrs:{transform:"matrix(0.72,0,0,0.72,13,13)"}},[t("path",{attrs:{d:e.xyStepInnerMid}})])]),t("a",{staticClass:"step outer-mid",on:{click:function(r){return e.doSendMove("X".concat(e.reverseX?"-":"+").concat(e.stepsXY.length>=2?e.stepsXY[2]:0),e.feedrateXY)}}},[t("g",{attrs:{transform:"matrix(0.96,0,0,0.96,7,7)"}},[t("path",{attrs:{d:e.xyStepOuterMid}})])]),t("a",{staticClass:"step outer",on:{click:function(r){return e.doSendMove("X".concat(e.reverseX?"-":"+").concat(e.stepsXY.length>=3?e.stepsXY[3]:0),e.feedrateXY)}}},[t("g",{attrs:{transform:"matrix(1.2,0,0,1.2,1,1)"}},[t("path",{attrs:{d:e.xyStepOuter}})])])]),t("g",{class:e.xStepClass,attrs:{id:"Left",transform:"matrix(-1,-1.22465e-16,1.22465e-16,-1,61.9767,61.9767)"}},[t("a",{staticClass:"step inner",on:{click:function(r){return e.doSendMove("X".concat(e.reverseX?"+":"-").concat(e.stepsXY.length>=0?e.stepsXY[0]:0),e.feedrateXY)}}},[t("g",{attrs:{transform:"matrix(0.48,0,0,0.48,19,19)"}},[t("path",{attrs:{d:e.xyStepInner}})])]),t("a",{staticClass:"step inner-mid",on:{click:function(r){return e.doSendMove("X".concat(e.reverseX?"+":"-").concat(e.stepsXY.length>=1?e.stepsXY[1]:0),e.feedrateXY)}}},[t("g",{attrs:{transform:"matrix(0.72,0,0,0.72,13,13)"}},[t("path",{attrs:{d:e.xyStepInnerMid}})])]),t("a",{staticClass:"step outer-mid",on:{click:function(r){return e.doSendMove("X".concat(e.reverseX?"+":"-").concat(e.stepsXY.length>=2?e.stepsXY[2]:0),e.feedrateXY)}}},[t("g",{attrs:{transform:"matrix(0.96,0,0,0.96,7,7)"}},[t("path",{attrs:{d:e.xyStepOuterMid}})])]),t("a",{staticClass:"step outer",on:{click:function(r){return e.doSendMove("X".concat(e.reverseX?"+":"-").concat(e.stepsXY.length>=3?e.stepsXY[3]:0),e.feedrateXY)}}},[t("g",{attrs:{transform:"matrix(1.2,0,0,1.2,1,1)"}},[t("path",{attrs:{d:e.xyStepOuter}})])])]),t("g",{class:e.yStepClass,attrs:{id:"Bottom1",transform:"matrix(6.12323e-17,1,-1,6.12323e-17,61.9767,-1.77705e-14)"}},[t("a",{staticClass:"step inner",on:{click:function(r){return e.doSendMove("Y".concat(e.reverseY?"+":"-").concat(e.stepsXY.length>=0?e.stepsXY[0]:0),e.feedrateXY)}}},[t("g",{attrs:{transform:"matrix(0.48,0,0,0.48,19,19)"}},[t("path",{attrs:{d:e.xyStepInner}})])]),t("a",{staticClass:"step inner-mid",on:{click:function(r){return e.doSendMove("Y".concat(e.reverseY?"+":"-").concat(e.stepsXY.length>=1?e.stepsXY[1]:0),e.feedrateXY)}}},[t("g",{attrs:{transform:"matrix(0.72,0,0,0.72,13,13)"}},[t("path",{attrs:{d:e.xyStepInnerMid}})])]),t("a",{staticClass:"step outer-mid",on:{click:function(r){return e.doSendMove("Y".concat(e.reverseY?"+":"-").concat(e.stepsXY.length>=2?e.stepsXY[2]:0),e.feedrateXY)}}},[t("g",{attrs:{transform:"matrix(0.96,0,0,0.96,7,7)"}},[t("path",{attrs:{d:e.xyStepOuterMid}})])]),t("a",{staticClass:"step outer",on:{click:function(r){return e.doSendMove("Y".concat(e.reverseY?"+":"-").concat(e.stepsXY.length>=3?e.stepsXY[3]:0),e.feedrateXY)}}},[t("g",{attrs:{transform:"matrix(1.2,0,0,1.2,1,1)"}},[t("path",{attrs:{d:e.xyStepOuter}})])])]),t("g",{class:e.yStepClass,attrs:{id:"Top1",transform:"matrix(6.12323e-17,-1,1,6.12323e-17,7.10543e-15,61.9767)"}},[t("a",{staticClass:"step inner",on:{click:function(r){return e.doSendMove("Y".concat(e.reverseY?"-":"+").concat(e.stepsXY.length>=0?e.stepsXY[0]:0),e.feedrateXY)}}},[t("g",{attrs:{transform:"matrix(0.48,0,0,0.48,19,19)"}},[t("path",{attrs:{d:e.xyStepInner}})])]),t("a",{staticClass:"step inner-mid",on:{click:function(r){return e.doSendMove("Y".concat(e.reverseY?"-":"+").concat(e.stepsXY.length>=1?e.stepsXY[1]:0),e.feedrateXY)}}},[t("g",{attrs:{transform:"matrix(0.72,0,0,0.72,13,13)"}},[t("path",{attrs:{d:e.xyStepInnerMid}})])]),t("a",{staticClass:"step outer-mid",on:{click:function(r){return e.doSendMove("Y".concat(e.reverseY?"-":"+").concat(e.stepsXY.length>=2?e.stepsXY[2]:0),e.feedrateXY)}}},[t("g",{attrs:{transform:"matrix(0.96,0,0,0.96,7,7)"}},[t("path",{attrs:{d:e.xyStepOuterMid}})])]),t("a",{staticClass:"step outer",on:{click:function(r){return e.doSendMove("Y".concat(e.reverseY?"-":"+").concat(e.stepsXY.length>=3?e.stepsXY[3]:0),e.feedrateXY)}}},[t("g",{attrs:{transform:"matrix(1.2,0,0,1.2,1,1)"}},[t("path",{attrs:{d:e.xyStepOuter}})])])])]),t("g",{class:e.stepTextClass,attrs:{id:"stepsXY"}},[t("g",{attrs:{transform:"matrix(1,0,0,1,0.483899,4.07983)"}},[t("text",{attrs:{x:"30.5px",y:"19.056px","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsXY.length>=0?e.stepsXY[0]:"--")+" ")])]),t("g",{attrs:{transform:"matrix(1,0,0,1,0.220227,-1.95729)"}},[t("text",{attrs:{x:"30.5px",y:"19.056px","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsXY.length>=1?e.stepsXY[1]:"--")+" ")])]),t("g",{attrs:{transform:"matrix(1,0,0,1,0.220227,-7.99441)"}},[t("text",{attrs:{x:"30.5px",y:"19.056px","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsXY.length>=2?e.stepsXY[2]:"--")+" ")])]),t("g",{attrs:{transform:"matrix(1,0,0,1,0.220227,-14.0315)"}},[t("text",{attrs:{x:"30.5px",y:"19.056px","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsXY.length>=3?e.stepsXY[3]:"--")+" ")])])])])]),e.existsQGL&&e.actionButton==="qgl"?t("a",{class:e.colorSpecialButton,attrs:{id:"tilt_adjust"},on:{click:e.clickSpecialButton}},[t("circle",{attrs:{id:"qgl_button",cx:"70.92",cy:"31",r:"5"}}),t("text",{attrs:{x:"66.776px",y:"32.066px"}},[e._v("QGL")]),t("g",{attrs:{id:"tilt_icon"}},[t("path",{attrs:{d:e.zTiltIcon1}}),t("path",{attrs:{d:e.zTiltIcon2}})])]):e.existsZtilt&&e.actionButton==="ztilt"?t("a",{class:e.colorSpecialButton,attrs:{id:"tilt_adjust"},on:{click:e.clickSpecialButton}},[t("circle",{attrs:{id:"tilt_button",cx:"70.92",cy:"31",r:"5"}}),t("text",{attrs:{x:"66.776px",y:"32.066px"}},[e._v("Z-TILT")]),t("g",{attrs:{id:"tilt_icon"}},[t("path",{attrs:{d:e.zTiltIcon1}}),t("path",{attrs:{d:e.zTiltIcon2}})])]):t("a",{class:e.motorsOffClass,attrs:{id:"stepper_off"},on:{click:function(r){return e.doSend("M84")}}},[t("circle",{attrs:{id:"stepper_off_button",cx:"70.92",cy:"31",r:"5"}}),t("g",{attrs:{id:"stepper_off_icon",transform:"scale(0.3) translate(224,91)"}},[t("path",{attrs:{d:e.engineOffIcon}})])])])])],1)],1)},YA=[];const B1={};var JA=E($m,XA,YA,!1,KA,"8e4f3fa8",null,null);function KA(e){for(let s in B1)this[s]=B1[s]}const QA=function(){return JA.exports}();var ek=Object.defineProperty,tk=Object.getOwnPropertyDescriptor,sk=(e,s,t,r)=>{for(var i=r>1?void 0:r?tk(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&ek(s,t,i),i};let xm=class extends M(O,Ke){constructor(){super(...arguments),this.mdiChevronUp=Nc,this.mdiChevronLeft=dT,this.mdiChevronRight=mT,this.mdiChevronDown=hr,this.mdiEngineOff=bp,this.mdiHome=Iy}get actionButton(){var s;return(s=this.$store.state.gui.control.actionButton)!=null?s:this.defaultActionButton}get selectedCrossStep(){return this.$store.state.gui.control.selectedCrossStep}set selectedCrossStep(s){this.$store.dispatch("gui/saveSetting",{name:"control.selectedCrossStep",value:s})}get stepSize(){return this.stepsReversed[this.selectedCrossStep]}get reverseX(){return this.$store.state.gui.control.reverseX}get reverseY(){return this.$store.state.gui.control.reverseY}get reverseZ(){return this.$store.state.gui.control.reverseZ}get stepsAll(){var s,t;return(t=(s=this.$store.state.gui.control)==null?void 0:s.stepsAll)!=null?t:[]}get stepsReversed(){var s;return Array.from(new Set([...(s=this.stepsAll)!=null?s:[]])).sort((t,r)=>t-r)}};xm=sk([D({components:{Responsive:et}})],xm);var rk=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(et,{attrs:{breakpoints:{small:function(r){return r.width<=300}}},scopedSlots:e._u([{key:"default",fn:function(r){var i=r.el;return[t("div",[t($,[t(_,[t($,{staticClass:"mb-1",attrs:{dense:""}},[t(_,{attrs:{cols:"3"}}),t(_,{attrs:{cols:"3"}},[t(g,{staticClass:"btnMinWidthAuto fill-width",attrs:{disabled:!e.yAxisHomed||e.selectedCrossStep===null||e.selectedCrossStep===void 0||["printing"].includes(e.printer_state)},on:{click:function(n){return e.doSendMove("Y".concat(e.reverseY?"-":"+").concat(e.stepSize),e.feedrateXY)}}},[t(v,[e._v(e._s(e.mdiChevronUp))])],1)],1),t(_,{attrs:{cols:"3"}}),t(_,{attrs:{cols:"3"}},[t(g,{staticClass:"btnMinWidthAuto fill-width",attrs:{disabled:!e.zAxisHomed||e.selectedCrossStep===null||e.selectedCrossStep===void 0||["printing"].includes(e.printer_state)},on:{click:function(n){return e.doSendMove("Z".concat(e.reverseZ?"-":"+").concat(e.stepSize),e.feedrateZ)}}},[t(v,[e._v(e._s(e.mdiChevronUp))])],1)],1)],1),t($,{attrs:{dense:""}},[t(_,{staticClass:"p-rel",attrs:{cols:"3"}},[t(g,{staticClass:"btnMinWidthAuto fill-width p-abs",staticStyle:{top:"-50%",width:"calc(100% - 8px)"},attrs:{disabled:!e.xAxisHomed||e.selectedCrossStep===null||e.selectedCrossStep===void 0||["printing"].includes(e.printer_state)},on:{click:function(n){return e.doSendMove("X".concat(e.reverseX?"+":"-").concat(e.stepSize),e.feedrateXY)}}},[t(v,[e._v(e._s(e.mdiChevronLeft))])],1)],1),t(_,{attrs:{cols:"3"}},[t(g,{staticClass:"btnMinWidthAuto fill-width",attrs:{disabled:!e.yAxisHomed||e.selectedCrossStep===null||e.selectedCrossStep===void 0||["printing"].includes(e.printer_state)},on:{click:function(n){return e.doSendMove("Y".concat(e.reverseY?"+":"-").concat(e.stepSize),e.feedrateXY)}}},[t(v,[e._v(e._s(e.mdiChevronDown))])],1)],1),t(_,{staticClass:"p-rel",attrs:{cols:"3"}},[t(g,{staticClass:"btnMinWidthAuto fill-width p-abs",staticStyle:{top:"-50%",width:"calc(100% - 8px)"},attrs:{disabled:!e.xAxisHomed||e.selectedCrossStep===null||e.selectedCrossStep===void 0||["printing"].includes(e.printer_state)},on:{click:function(n){return e.doSendMove("X".concat(e.reverseX?"-":"+").concat(e.stepSize),e.feedrateXY)}}},[t(v,[e._v(e._s(e.mdiChevronRight))])],1)],1),t(_,{attrs:{cols:"3"}},[t(g,{staticClass:"btnMinWidthAuto fill-width",attrs:{disabled:!e.zAxisHomed||e.selectedCrossStep===null||e.selectedCrossStep===void 0||["printing"].includes(e.printer_state)},on:{click:function(n){return e.doSendMove("Z".concat(e.reverseZ?"+":"-").concat(e.stepSize),e.feedrateZ)}}},[t(v,[e._v(e._s(e.mdiChevronDown))])],1)],1)],1)],1),i.is.small?e._e():t(_,{staticClass:"d-flex align-center"},[t("div",{staticClass:"flex-grow-1",staticStyle:{"border-radius":"4px",overflow:"hidden"}},[t($,{staticStyle:{"margin-bottom":"-2px !important"},attrs:{dense:""}},[t(_,{attrs:{cols:"6"}},[t(g,{staticClass:"w-100",attrs:{disabled:["printing"].includes(e.printer_state),loading:e.loadings.includes("homeAll"),color:e.homedAxes.includes("xyz")?"primary":"warning",height:"30",tile:""},on:{click:e.doHome}},[t("div",{staticClass:"d-flex align-center"},[t(v,[e._v(e._s(e.mdiHome))]),t("span",[e._v(e._s(e.$t("Panels.ToolheadControlPanel.ALL")))])],1)])],1),t(_,{staticClass:"d-flex",attrs:{cols:"6"}},[e.actionButton==="qgl"?t(g,{staticClass:"btnMinWidthAuto flex-grow-1 px-0",attrs:{disabled:["printing"].includes(e.printer_state),loading:e.loadings.includes("qgl"),color:e.colorQuadGantryLevel,height:"30",dense:"",tile:""},on:{click:e.doQGL}},[e._v(" "+e._s(e.$t("Panels.ToolheadControlPanel.QGL"))+" ")]):e.actionButton==="ztilt"?t(g,{staticClass:"btnMinWidthAuto flex-grow-1 px-0",attrs:{disabled:["printing"].includes(e.printer_state),loading:e.loadings.includes("zTilt"),color:e.colorZTilt,height:"30",dense:"",tile:""},on:{click:e.doZtilt}},[e._v(" "+e._s(e.$t("Panels.ToolheadControlPanel.ZTilt"))+" ")]):t(g,{staticClass:"flex-grow-1 px-0",attrs:{disabled:["printing"].includes(e.printer_state),color:e.homedAxes!==""?"primary":"warning",height:"30",dense:"",tile:""},on:{click:function(n){return e.doSend("M84")}}},[t(v,[e._v(e._s(e.mdiEngineOff))])],1)],1)],1),t($,{attrs:{dense:""}},[e.enableXYHoming?e._e():t(_,{staticClass:"flex-grow-1",attrs:{cols:"4"}},[t(g,{staticClass:"btnMinWidthAuto w-100",attrs:{disabled:["printing"].includes(e.printer_state),loading:e.loadings.includes("homeX"),color:e.homedAxes.includes("x")?"primary":"warning",tile:"",height:"30"},on:{click:e.doHomeX}},[e._v(" X ")])],1),e.enableXYHoming?t(_,{staticClass:"flex-grow-1",attrs:{cols:"6"}},[t(g,{staticClass:"btnMinWidthAuto w-100",attrs:{disabled:["printing"].includes(e.printer_state),loading:e.loadings.includes("homeY"),color:e.homedAxes.includes("xy")?"primary":"warning",tile:"",height:"30"},on:{click:e.doHomeXY}},[e._v(" XY ")])],1):t(_,{staticClass:"flex-grow-1",attrs:{cols:"4"}},[t(g,{staticClass:"btnMinWidthAuto w-100",attrs:{disabled:["printing"].includes(e.printer_state),loading:e.loadings.includes("homeY"),color:e.homedAxes.includes("y")?"primary":"warning",tile:"",height:"30"},on:{click:e.doHomeY}},[e._v(" Y ")])],1),t(_,{staticClass:"flex-grow-1",class:e.enableXYHoming?"col-6":"col-4"},[t(g,{staticClass:"btnMinWidthAuto w-100",attrs:{disabled:["printing"].includes(e.printer_state),loading:e.loadings.includes("homeZ"),color:e.homedAxes.includes("z")?"primary":"warning",tile:"",height:"30"},on:{click:e.doHomeZ}},[e._v(" Z ")])],1)],1)],1)])],1),i.is.small?t($,[t(_,{staticClass:"d-flex align-center"},[t("div",{staticClass:"flex-grow-1",staticStyle:{"border-radius":"4px",overflow:"hidden"}},[t($,{staticStyle:{"margin-bottom":"-2px !important"},attrs:{dense:""}},[t(_,{attrs:{cols:"6"}},[t(g,{staticClass:"w-100",attrs:{disabled:["printing"].includes(e.printer_state),loading:e.loadings.includes("homeAll"),color:e.homedAxes.includes("xyz")?"primary":"warning",height:"30",tile:""},on:{click:e.doHome}},[t("div",{staticClass:"d-flex align-center"},[t(v,[e._v(e._s(e.mdiHome))]),t("span",[e._v(e._s(e.$t("Panels.ToolheadControlPanel.ALL")))])],1)])],1),t(_,{staticClass:"d-flex",attrs:{cols:"6"}},[e.actionButton==="qgl"?t(g,{staticClass:"btnMinWidthAuto flex-grow-1 px-0",attrs:{disabled:["printing"].includes(e.printer_state),loading:e.loadings.includes("qgl"),color:e.colorQuadGantryLevel,height:"30",dense:"",tile:""},on:{click:e.doQGL}},[e._v(" "+e._s(e.$t("Panels.ToolheadControlPanel.QGL"))+" ")]):e.actionButton==="ztilt"?t(g,{staticClass:"btnMinWidthAuto flex-grow-1 px-0",attrs:{disabled:["printing"].includes(e.printer_state),loading:e.loadings.includes("zTilt"),color:e.colorZTilt,height:"30",dense:"",tile:""},on:{click:e.doZtilt}},[e._v(" "+e._s(e.$t("Panels.ToolheadControlPanel.ZTilt"))+" ")]):t(g,{staticClass:"flex-grow-1 px-0",attrs:{disabled:["printing"].includes(e.printer_state),color:e.homedAxes!==""?"primary":"warning",height:"30",dense:"",tile:""},on:{click:function(n){return e.doSend("M84")}}},[t(v,[e._v(e._s(e.mdiEngineOff))])],1)],1)],1),t($,{attrs:{dense:""}},[e.enableXYHoming?e._e():t(_,{staticClass:"flex-grow-1",attrs:{cols:"4"}},[t(g,{staticClass:"btnMinWidthAuto w-100",attrs:{disabled:["printing"].includes(e.printer_state),loading:e.loadings.includes("homeX"),color:e.homedAxes.includes("x")?"primary":"warning",tile:"",height:"30"},on:{click:e.doHomeX}},[e._v(" X ")])],1),e.enableXYHoming?t(_,{staticClass:"flex-grow-1",attrs:{cols:"6"}},[t(g,{staticClass:"btnMinWidthAuto w-100",attrs:{disabled:["printing"].includes(e.printer_state),loading:e.loadings.includes("homeY"),color:e.homedAxes.includes("xy")?"primary":"warning",tile:"",height:"30"},on:{click:e.doHomeXY}},[e._v(" XY ")])],1):t(_,{staticClass:"flex-grow-1",attrs:{cols:"4"}},[t(g,{staticClass:"btnMinWidthAuto w-100",attrs:{disabled:["printing"].includes(e.printer_state),loading:e.loadings.includes("homeY"),color:e.homedAxes.includes("y")?"primary":"warning",tile:"",height:"30"},on:{click:e.doHomeY}},[e._v(" Y ")])],1),t(_,{staticClass:"flex-grow-1",class:e.enableXYHoming?"col-6":"col-4"},[t(g,{staticClass:"btnMinWidthAuto w-100",attrs:{disabled:["printing"].includes(e.printer_state),loading:e.loadings.includes("homeZ"),color:e.homedAxes.includes("z")?"primary":"warning",tile:"",height:"30"},on:{click:e.doHomeZ}},[e._v(" Z ")])],1)],1)],1)])],1):e._e(),t($,{staticClass:"mt-3",attrs:{"no-gutters":""}},[t(_,[e.stepsReversed.length>0?t(Uo,{key:"all-steps-".concat(e.stepsReversed.join("_")),staticStyle:{"flex-wrap":"nowrap",width:"100%"},attrs:{dense:"",mandatory:""},model:{value:e.selectedCrossStep,callback:function(n){e.selectedCrossStep=n},expression:"selectedCrossStep"}},e._l(e.stepsReversed,function(n){return t(g,{key:"step-".concat(n),staticClass:"btnMinWidthAuto flex-grow-1 px-0",staticStyle:{height:"28px"},attrs:{disabled:["printing"].includes(e.printer_state),dense:""}},[t("span",{staticClass:"body-2"},[e._v(e._s(n))])])}),1):t("div",{staticClass:"font-weight-bold warning rounded pa-2"},[e._v(" "+e._s(e.$t("Panels.ToolheadControlPanel.PleaseConfigureSteps"))+" "),t("br"),t("router-link",{staticStyle:{color:"white"},attrs:{to:"/settings/interface"}},[e._v(" "+e._s(e.$t("Panels.ToolheadControlPanel.SettingsInterfaceControl"))+" ")])],1)],1)],1)],1)]}}])})},ik=[];const W1={};var nk=E(xm,rk,ik,!1,ak,"8c5676c8",null,null);function ak(e){for(let s in W1)this[s]=W1[s]}const ok=function(){return nk.exports}();var lk=Object.defineProperty,ck=Object.getOwnPropertyDescriptor,gr=(e,s,t,r)=>{for(var i=r>1?void 0:r?ck(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&lk(s,t,i),i};let Ss=class extends M(O){onBlur(){this.position!==this.currentPos&&(this.position=this.currentPos)}submit(){this.$emit("submit")}};gr([MD({type:String})],Ss.prototype,"position",2);gr([P({type:String,required:!0})],Ss.prototype,"currentPos",2);gr([P({type:String,required:!1})],Ss.prototype,"label",2);gr([P({type:String,required:!1})],Ss.prototype,"suffix",2);gr([P({type:Number,required:!1,default:1})],Ss.prototype,"step",2);gr([P({type:Boolean,required:!1})],Ss.prototype,"disabled",2);gr([P({type:Boolean,required:!1})],Ss.prototype,"readonly",2);Ss=gr([D({components:{}})],Ss);var uk=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("form",{on:{submit:function(r){return r.preventDefault(),e.submit.apply(null,arguments)}}},[t(te,{attrs:{label:"[ ".concat(e.label," ]"),suffix:e.suffix,disabled:e.disabled,step:e.step,readonly:e.readonly,"hide-details":"auto",type:"number","hide-spin-buttons":"",outlined:"",reverse:"",dense:""},on:{blur:e.onBlur,focus:function(r){e.readonly||r.target.select()}},model:{value:e.position,callback:function(r){e.position=r},expression:"position"}})],1)},dk=[];const G1={};var mk=E(Ss,uk,dk,!1,hk,null,null,null);function hk(e){for(let s in G1)this[s]=G1[s]}const wo=function(){return mk.exports}();var pk=Object.defineProperty,fk=Object.getOwnPropertyDescriptor,yu=(e,s,t,r)=>{for(var i=r>1?void 0:r?fk(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&pk(s,t,i),i};let Ei=class extends M(O,Ke){constructor(){super(...arguments),this.mdiCrosshairsGps=yT,this.mdiGrid=Bc,this.input={x:{pos:"",valid:!0},y:{pos:"",valid:!0},z:{pos:"",valid:!0}}}updatePositionX(e){this.input.x.pos=e}updatePositionY(e){this.input.y.pos=e}updatePositionZ(e){this.input.z.pos=e}get displayPositionAbsolute(){return this.positionAbsolute?this.$t("Panels.ToolheadControlPanel.Absolute"):this.$t("Panels.ToolheadControlPanel.Relative")}get positionAbsolute(){var e,s;return(s=(e=this.$store.state.printer.gcode_move)==null?void 0:e.absolute_coordinates)!=null?s:!0}get livePositions(){var s,t,r,i,n,a,o,l;const e=(t=(s=this.$store.state.printer.motion_report)==null?void 0:s.live_position)!=null?t:[0,0,0];return{x:(i=(r=e[0])==null?void 0:r.toFixed(2))!=null?i:"--",y:(a=(n=e[1])==null?void 0:n.toFixed(2))!=null?a:"--",z:(l=(o=e[2])==null?void 0:o.toFixed(3))!=null?l:"--"}}get gcodePositions(){var s,t,r,i,n,a,o,l;const e=(t=(s=this.$store.state.printer.gcode_move)==null?void 0:s.gcode_position)!=null?t:[0,0,0];return{x:(i=(r=e[0])==null?void 0:r.toFixed(2))!=null?i:"--",y:(a=(n=e[1])==null?void 0:n.toFixed(2))!=null?a:"--",z:(l=(o=e[2])==null?void 0:o.toFixed(3))!=null?l:"--"}}get bed_mesh(){var e;return(e=this.$store.state.printer.bed_mesh)!=null?e:null}get currentProfileName(){var e,s;return(s=(e=this.bed_mesh)==null?void 0:e.profile_name)!=null?s:""}get showPosition(){var e;return(e=this.$store.state.gui.view.toolhead.showPosition)!=null?e:!0}get showCoordinates(){var e;return(e=this.$store.state.gui.view.toolhead.showCoordinates)!=null?e:!0}get showControl(){var e;return(e=this.$store.state.gui.view.toolhead.showControl)!=null?e:!0}get containerClass(){return this.showControl?"pb-0":""}sendCmd(){const e=this.input.x.pos!==this.gcodePositions.x?" X".concat(this.input.x.pos):"",s=this.input.y.pos!==this.gcodePositions.y?" Y".concat(this.input.y.pos):"",t=this.input.z.pos!==this.gcodePositions.z?" Z".concat(this.input.z.pos):"";let r="";this.positionAbsolute||(r+="G90\n"),t!==""&&(r+="G1".concat(t," F").concat(this.feedrateZ*60,"\n")),(e!==""||s!=="")&&(r+="G1".concat(e).concat(s," F").concat(this.feedrateXY*60)),r!==""&&this.input.x.valid&&this.input.y.valid&&this.input.z.valid&&(this.$store.dispatch("server/addEvent",{message:r,type:"command"}),this.$socket.emit("printer.gcode.script",{script:r}))}};yu([me("gcodePositions.x",{immediate:!0})],Ei.prototype,"updatePositionX",1);yu([me("gcodePositions.y",{immediate:!0})],Ei.prototype,"updatePositionY",1);yu([me("gcodePositions.z",{immediate:!0})],Ei.prototype,"updatePositionZ",1);Ei=yu([D({components:{MoveToInput:wo,Responsive:et}})],Ei);var gk=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.showCoordinates||e.showPosition?t(Ae,{class:e.containerClass},[t(et,{attrs:{breakpoints:{xsmall:function(r){return r.width<=320},small:function(r){return r.width>320&&r.width<=460},medium:function(r){return r.width>460&&r.width<=560},large:function(r){return r.width>560}}},scopedSlots:e._u([{key:"default",fn:function(r){var i=r.el;return[e.showPosition?t($,{staticClass:"flex-nowrap pb-1"},[t(_,{staticClass:"v-subheader text--secondary mr-2",class:{"col-5":i.is.small,"col-4":i.is.xsmall||i.is.medium,"col-3":i.is.large}},[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(" "+e._s(e.mdiCrosshairsGps)+" ")]),i.is.xsmall?e._e():t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$t("Panels.ToolheadControlPanel.Position"))+":  ")]),t("span",{staticClass:"text-no-wrap"},[e._v(e._s(e.displayPositionAbsolute))])],1),e.currentProfileName?t(_,{staticClass:"v-subheader text--secondary pl-2 justify-end text-no-wrap text-truncate"},[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(" "+e._s(e.mdiGrid)+" ")]),t("span",{staticClass:"text-no-wrap text-truncate"},[e._v(" "+e._s(e.currentProfileName)+" ")])],1):e._e()],1):e._e(),e.showCoordinates?t($,{attrs:{dense:""}},[t(_,{class:i.is.xsmall?"col-12":"col-4"},[t(wo,{attrs:{label:e.livePositions.x,suffix:"X",step:.01,"current-pos":e.gcodePositions.x,readonly:["printing"].includes(e.printer_state),disabled:!e.xAxisHomed},on:{submit:e.sendCmd},model:{value:e.input.x.pos,callback:function(n){e.$set(e.input.x,"pos",n)},expression:"input.x.pos"}})],1),t(_,{class:i.is.xsmall?"col-12":"col-4"},[t(wo,{attrs:{label:e.livePositions.y,suffix:"Y",step:.01,"current-pos":e.gcodePositions.y,readonly:["printing"].includes(e.printer_state),disabled:!e.yAxisHomed},on:{submit:e.sendCmd},model:{value:e.input.y.pos,callback:function(n){e.$set(e.input.y,"pos",n)},expression:"input.y.pos"}})],1),t(_,{class:i.is.xsmall?"col-12":"col-4"},[t(wo,{attrs:{label:e.livePositions.z,suffix:"Z",step:.001,"current-pos":e.gcodePositions.z,readonly:["printing"].includes(e.printer_state),disabled:!e.zAxisHomed},on:{submit:e.sendCmd},model:{value:e.input.z.pos,callback:function(n){e.$set(e.input.z,"pos",n)},expression:"input.z.pos"}})],1)],1):e._e()]}}],null,!1,2435385659)})],1):e._e()},vk=[];const z1={};var _k=E(Ei,gk,vk,!1,bk,null,null,null);function bk(e){for(let s in z1)this[s]=z1[s]}const pC=function(){return _k.exports}();var yk=Object.defineProperty,Ck=Object.getOwnPropertyDescriptor,$k=(e,s,t,r)=>{for(var i=r>1?void 0:r?Ck(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&yk(s,t,i),i};let Cl=class extends y{get homing_origin(){var e,s,t;return(t=(s=(e=this.$store.state.printer)==null?void 0:e.gcode_move)==null?void 0:s.homing_origin)!=null?t:[]}get z_gcode_offset(){return this.homing_origin.length>1?Math.round(this.homing_origin[2]*1e3)/1e3:0}get helplist(){var e;return(e=this.$store.state.printer.helplist)!=null?e:[]}get settings(){var e,s;return(s=(e=this.$store.state.printer.configfile)==null?void 0:e.settings)!=null?s:{}}get kinematics(){var e,s;return(s=(e=this.settings.printer)==null?void 0:e.kinematics)!=null?s:"cartesian"}get stepper_name(){return this.kinematics==="delta"?"stepper_a":"stepper_z"}get endstop_pin(){var s;const e=(s=this.settings[this.stepper_name])!=null?s:{};return e==null?void 0:e.endstop_pin.trim()}get zOffset(){var e,s;return(s=(e=this.$store.state.printer)==null?void 0:e.gcode_move)==null?void 0:s.homing_origin[2].toFixed(3)}get isEndstopProbe(){return this.endstop_pin.replaceAll(" ","").search("probe:z_virtual_endstop")!==-1}get existZOffsetApplyProbe(){return this.helplist.findIndex(e=>e.commandLow==="z_offset_apply_probe")!==-1}get existZOffsetApplyEndstop(){return this.helplist.findIndex(e=>e.commandLow==="z_offset_apply_endstop")!==-1}get showSaveButton(){return this.z_gcode_offset===0?!1:this.isEndstopProbe&&this.existZOffsetApplyProbe?!0:!this.isEndstopProbe&&this.existZOffsetApplyEndstop}get autoSaveZOffsetOption(){return this.isEndstopProbe&&this.existZOffsetApplyProbe?"Z_OFFSET_APPLY_PROBE":"Z_OFFSET_APPLY_ENDSTOP"}};Cl=$k([D],Cl);var xk=Object.defineProperty,wk=Object.getOwnPropertyDescriptor,Sk=(e,s,t,r)=>{for(var i=r>1?void 0:r?wk(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&xk(s,t,i),i};let wm=class extends M(O,Cl){constructor(){super(...arguments),this.mdiBroom=wy,this.mdiContentSave=vp,this.mdiArrowCollapseDown=Hc,this.mdiInformation=kt,this.mdiArrowExpandUp=xy,this.mdiLayersOutline=NT,this.saveOffsetDialog=!1}get offsetsZ(){return this.$store.state.gui.control.offsetsZ}get homed_axis(){var e,s;return(s=(e=this.$store.state.printer.toolhead)==null?void 0:e.homed_axes)!=null?s:""}get offsetZSaveOption(){var e;return(e=this.$store.state.gui.control.offsetZSaveOption)!=null?e:null}sendBabyStepDown(e){const s="SET_GCODE_OFFSET Z_ADJUST=-".concat(e," ").concat(this.homed_axis==="xyz"?"MOVE=1":"");this.$store.dispatch("server/addEvent",{message:s,type:"command"}),this.$socket.emit("printer.gcode.script",{script:s},{loading:"babyStepDown"})}sendBabyStepUp(e){const s="SET_GCODE_OFFSET Z_ADJUST=+".concat(e," ").concat(this.homed_axis==="xyz"?"MOVE=1":"");this.$store.dispatch("server/addEvent",{message:s,type:"command"}),this.$socket.emit("printer.gcode.script",{script:s},{loading:"babyStepUp"})}clearZOffset(){const e="SET_GCODE_OFFSET Z=0"+(this.homed_axis==="xyz"?" MOVE=1":"");this.$store.dispatch("server/addEvent",{message:e,type:"command"}),this.$socket.emit("printer.gcode.script",{script:e},{loading:"babySteppingClear"})}saveZOffset(){let e=this.offsetZSaveOption;e===null&&(e=this.autoSaveZOffsetOption),this.$store.dispatch("server/addEvent",{message:e,type:"command"}),this.$socket.emit("printer.gcode.script",{script:e}),this.saveOffsetDialog=!0}saveConfig(){const e="SAVE_CONFIG";this.$store.dispatch("server/addEvent",{message:e,type:"command"}),this.$socket.emit("printer.gcode.script",{script:e},{loading:"topbarSaveConfig"}),this.saveOffsetDialog=!1}};wm=Sk([D({components:{Panel:B,Responsive:et}})],wm);var Pk=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(et,{attrs:{breakpoints:{xsmall:function(r){return r.width<=285},medium:function(r){return r.width<=510}}},scopedSlots:e._u([{key:"default",fn:function(r){var i=r.el;return[t(Ae,{staticClass:"pa-0"},[t($,[t(_,{staticClass:"v-subheader text--secondary pr-0"},[t(v,{staticClass:"mr-2",attrs:{small:""}},[e._v(" "+e._s(e.mdiLayersOutline)+" ")]),t("span",[e._v(e._s(e.$t("Panels.ZoffsetPanel.Headline"))+": "+e._s(e.zOffset))])],1),t(_,{staticClass:"v-subheader justify-end pl-0"},[t("div",{staticClass:"d-flex align-center"},[e.z_gcode_offset!==0?t(g,{staticClass:"px-2 mr-1",attrs:{loading:e.loadings.includes("babySteppingClear"),text:"",small:"",plain:""},on:{click:function(n){return e.clearZOffset()}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiBroom))]),i.is.xsmall?e._e():t("span",{staticClass:"ml-1"},[e._v(e._s(e.$t("Panels.ZoffsetPanel.Clear")))])],1):e._e(),e.showSaveButton?t(g,{staticClass:"px-2",attrs:{color:"primary",text:"",small:"",plain:""},on:{click:e.saveZOffset}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiContentSave))]),i.is.xsmall?e._e():t("span",{staticClass:"ml-1"},[e._v(e._s(e.$t("Panels.ZoffsetPanel.Save")))])],1):e._e()],1)])],1),t($,{attrs:{dense:""}},[t(_,{class:i.is.medium?"col-12":"order-1 col-6"},[t("div",{staticClass:"d-flex align-center"},[t(Vt,{staticClass:"_btn-group"},e._l(e.offsetsZ,function(n,a){return t(g,{key:"offsetsUp-".concat(a),staticClass:"_btn-qs flex-grow-1 px-1",attrs:{small:""},on:{click:function(o){return e.sendBabyStepUp(n)}}},[a===0&&!i.is.xsmall?t(v,{staticClass:"mr-1 ml-n1",attrs:{left:"",small:""}},[e._v(" "+e._s(e.mdiArrowExpandUp)+" ")]):e._e(),t("span",[e._v("+"+e._s(n))])],1)}),1)],1)]),t(_,{class:i.is.medium?"col-12":"order-0 col-6"},[i.is.medium?t(Vt,{staticClass:"_btn-group"},e._l(e.offsetsZ,function(n,a){return t(g,{key:"offsetsDown-".concat(a),staticClass:"_btn-qs flex-grow-1 px-1",attrs:{small:""},on:{click:function(o){return e.sendBabyStepDown(n)}}},[a===0&&!i.is.xsmall?t(v,{staticClass:"mr-1 ml-n1",attrs:{left:"",small:""}},[e._v(" "+e._s(e.mdiArrowCollapseDown)+" ")]):e._e(),t("span",[e._v(""+e._s(n))])],1)}),1):t(Vt,{staticClass:"_btn-group"},e._l(e.offsetsZ.slice().reverse(),function(n,a){return t(g,{key:"offsetsDown-".concat(a),staticClass:"_btn-qs flex-grow-1 px-1",attrs:{small:""},on:{click:function(o){return e.sendBabyStepDown(n)}}},[t("span",[e._v(""+e._s(n))]),a===e.offsetsZ.length-1&&!i.is.xsmall?t(v,{staticClass:"mr-n1 ml-1",attrs:{left:"",small:""}},[e._v(" "+e._s(e.mdiArrowCollapseDown)+" ")]):e._e()],1)}),1)],1)],1),t(oe,{attrs:{"max-width":"290"},model:{value:e.saveOffsetDialog,callback:function(n){e.saveOffsetDialog=n},expression:"saveOffsetDialog"}},[t(B,{attrs:{title:e.$t("Panels.ZoffsetPanel.SaveInfoHeadline"),icon:e.mdiInformation,"card-class":"zoffset-saveinfo-dialog","margin-bottom":!1}},[e.printerIsPrinting?t(q,{staticClass:"mt-3"},[e._v(" "+e._s(e.$t("Panels.ZoffsetPanel.SaveInfoDescriptionPrint"))+" ")]):t(q,{staticClass:"mt-3"},[e._v(" "+e._s(e.$t("Panels.ZoffsetPanel.SaveInfoDescription"))+" ")]),e.printerIsPrinting?t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:function(n){e.saveOffsetDialog=!1}}},[e._v(e._s(e.$t("Panels.ZoffsetPanel.Ok")))])],1):t(ne,[t(ae),t(g,{attrs:{color:"primary",text:""},on:{click:e.saveConfig}},[e._v(" "+e._s(e.$t("Panels.ZoffsetPanel.SaveConfig"))+" ")]),t(g,{attrs:{text:""},on:{click:function(n){e.saveOffsetDialog=!1}}},[e._v(e._s(e.$t("Panels.ZoffsetPanel.Later")))])],1)],1)],1)],1)]}}])})},Dk=[];const Z1={};var Tk=E(wm,Pk,Dk,!1,Mk,"51065007",null,null);function Mk(e){for(let s in Z1)this[s]=Z1[s]}const fC=function(){return Tk.exports}();var Ek=Object.defineProperty,Ok=Object.getOwnPropertyDescriptor,Lk=(e,s,t,r)=>{for(var i=r>1?void 0:r?Ok(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Ek(s,t,i),i};let Sm=class extends M(O,Ke){constructor(){super(...arguments),this.mdiDotsVertical=Vc,this.mdiEngineOff=bp,this.mdiGamepad=wp,this.mdiSpeedometer=m3,this.mdiRestore=o3,this.mdiMenuDown=fr}get controlStyle(){var s;return(s=this.$store.state.gui.control.style)!=null?s:"bars"}get actionButton(){var s;return(s=this.$store.state.gui.control.actionButton)!=null?s:this.defaultActionButton}get speedFactor(){var s,t,r;return(r=(t=(s=this.$store.state.printer)==null?void 0:s.gcode_move)==null?void 0:t.speed_factor)!=null?r:1}get isPrinting(){return["printing"].includes(this.printer_state)}get axisControlVisible(){var s;return this.showControl?!(this.isPrinting&&((s=this.$store.state.gui.control.hideDuringPrint)!=null&&s)):!1}get showButtons(){return this.controlStyle!=="bars"&&(this.existsZtilt||this.existsQGL)?!0:this.existsBedScrews||this.existsBedTilt||this.existsDeltaCalibrate||this.existsScrewsTilt}get showControl(){var s;return(s=this.$store.state.gui.view.toolhead.showControl)!=null?s:!0}get showZOffset(){var s;return(s=this.$store.state.gui.view.toolhead.showZOffset)!=null?s:!0}get showSpeedFactor(){var s;return(s=this.$store.state.gui.view.toolhead.showSpeedFactor)!=null?s:!0}};Sm=Lk([D({components:{BarsControl:GA,CircleControl:QA,CrossControl:ok,MoveToControl:pC,Panel:B,ToolSlider:Qc,ZoffsetControl:fC}})],Sm);var Ak=Object.defineProperty,kk=Object.getOwnPropertyDescriptor,Fk=(e,s,t,r)=>{for(var i=r>1?void 0:r?kk(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Ak(s,t,i),i};let Pm=class extends M(O){constructor(){super(...arguments),this.mdiCog=us}get showPosition(){var e;return(e=this.$store.state.gui.view.toolhead.showPosition)!=null?e:!0}set showPosition(e){this.$store.dispatch("gui/saveSetting",{name:"view.toolhead.showPosition",value:e})}get showCoordinates(){var e;return(e=this.$store.state.gui.view.toolhead.showCoordinates)!=null?e:!0}set showCoordinates(e){this.$store.dispatch("gui/saveSetting",{name:"view.toolhead.showCoordinates",value:e})}get showControl(){var e;return(e=this.$store.state.gui.view.toolhead.showControl)!=null?e:!0}set showControl(e){this.$store.dispatch("gui/saveSetting",{name:"view.toolhead.showControl",value:e})}get showZOffset(){var e;return(e=this.$store.state.gui.view.toolhead.showZOffset)!=null?e:!0}set showZOffset(e){this.$store.dispatch("gui/saveSetting",{name:"view.toolhead.showZOffset",value:e})}get showSpeedFactor(){var e;return(e=this.$store.state.gui.view.toolhead.showSpeedFactor)!=null?e:!0}set showSpeedFactor(e){this.$store.dispatch("gui/saveSetting",{name:"view.toolhead.showSpeedFactor",value:e})}};Pm=Fk([D],Pm);var Rk=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t($e,{attrs:{"offset-y":!0,left:!0,"close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({attrs:{icon:"",tile:""}},"v-btn",n,!1),i),[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiCog))])],1)]}}])},[t(Oe,[t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.ToolheadControlPanel.PositionOutput")},model:{value:e.showPosition,callback:function(r){e.showPosition=r},expression:"showPosition"}})],1),t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.ToolheadControlPanel.CoordinateFields")},model:{value:e.showCoordinates,callback:function(r){e.showCoordinates=r},expression:"showCoordinates"}})],1),t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.ToolheadControlPanel.ControlButtons")},model:{value:e.showControl,callback:function(r){e.showControl=r},expression:"showControl"}})],1),t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.ToolheadControlPanel.ZOffset")},model:{value:e.showZOffset,callback:function(r){e.showZOffset=r},expression:"showZOffset"}})],1),t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.ToolheadControlPanel.SpeedFactor")},model:{value:e.showSpeedFactor,callback:function(r){e.showSpeedFactor=r},expression:"showSpeedFactor"}})],1)],1)],1)},jk=[];const q1={};var Hk=E(Pm,Rk,jk,!1,Ik,null,null,null);function Ik(e){for(let s in q1)this[s]=q1[s]}const Nk=function(){return Hk.exports}();var Vk=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.klipperReadyForGui?t(B,{attrs:{icon:e.mdiGamepad,title:e.$t("Panels.ToolheadControlPanel.Headline"),collapsible:!0,"card-class":"toolhead-control-panel"},scopedSlots:e._u([{key:"buttons",fn:function(){return[e.showButtons?t($e,{staticClass:"pa-0",attrs:{left:"","offset-y":"","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({attrs:{icon:"",tile:"",disabled:["printing"].includes(e.printer_state)}},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.mdiDotsVertical))])],1)]}}],null,!1,3697264518)},[t(Oe,{attrs:{dense:""}},[e.controlStyle!=="bars"&&e.actionButton!=="m84"?t(J,[t(g,{staticStyle:{width:"100%"},attrs:{small:""},on:{click:function(r){return e.doSend("M84")}}},[t(v,{attrs:{left:"",small:""}},[e._v(e._s(e.mdiEngineOff))]),e._v(" "+e._s(e.$t("Settings.ControlTab.MotorsOff",{isDefault:""}))+" ")],1)],1):e._e(),e.controlStyle!=="bars"&&e.existsZtilt&&e.actionButton!=="ztilt"?t(J,[t(g,{staticStyle:{width:"100%"},attrs:{small:""},on:{click:e.doZtilt}},[e._v("Z-Tilt Adjust")])],1):e._e(),e.controlStyle!=="bars"&&e.existsQGL&&e.actionButton!=="qgl"?t(J,[t(g,{staticStyle:{width:"100%"},attrs:{small:""},on:{click:e.doQGL}},[e._v("Quad Gantry Level")])],1):e._e(),e.existsBedTilt?t(J,[t(g,{staticStyle:{width:"100%"},attrs:{small:""},on:{click:function(r){return e.doSend("BED_TILT_CALIBRATE")}}},[e._v(" BED TILT CALIBRATE ")])],1):e._e(),e.existsBedScrews?t(J,[t(g,{staticStyle:{width:"100%"},attrs:{small:""},on:{click:function(r){return e.doSend("BED_SCREWS_ADJUST")}}},[e._v("BED SCREWS ADJUST")])],1):e._e(),e.existsDeltaCalibrate?t(J,[t(g,{staticStyle:{width:"100%"},attrs:{small:""},on:{click:function(r){return e.doSend("DELTA_CALIBRATE")}}},[e._v("DELTA CALIBRATE")])],1):e._e(),e.existsScrewsTilt?t(J,[t("div",{staticClass:"d-flex align-center",staticStyle:{width:"100%"}},[t(g,{staticStyle:{"border-top-right-radius":"0","border-bottom-right-radius":"0"},attrs:{small:""},on:{click:function(r){return e.doSend("SCREWS_TILT_CALCULATE")}}},[e._v(" SCREWS TILT CALCULATE ")]),t($e,{attrs:{"offset-y":"",left:"","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"px-0",staticStyle:{"min-width":"32px","border-top-left-radius":"0","border-bottom-left-radius":"0"},attrs:{small:""}},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.mdiMenuDown))])],1)]}}],null,!1,274928364)},[t(Oe,{attrs:{dense:""}},[t(J,[t(g,{staticStyle:{width:"100%"},attrs:{small:""},on:{click:function(r){return e.doSend("SCREWS_TILT_CALCULATE DIRECTION=CW")}}},[t(v,{staticStyle:{transform:"scaleX(-1)"},attrs:{left:"",small:""}},[e._v(e._s(e.mdiRestore))]),t("span",[e._v("CW")])],1)],1),t(J,[t(g,{staticStyle:{width:"100%"},attrs:{small:""},on:{click:function(r){return e.doSend("SCREWS_TILT_CALCULATE DIRECTION=CCW")}}},[t(v,{attrs:{left:"",small:""}},[e._v(e._s(e.mdiRestore))]),t("span",[e._v("CCW")])],1)],1)],1)],1)],1)]):e._e()],1)],1):e._e(),t(Nk)]},proxy:!0}],null,!1,2619595342)},[t(pC),e.axisControlVisible?t(Ae,[t("".concat(e.controlStyle,"-control"),{tag:"component"})],1):e._e(),e.showZOffset?t(U):e._e(),e.showZOffset?t(Ae,[t(fC)],1):e._e(),e.showSpeedFactor?t(U):e._e(),e.showSpeedFactor?t(Ae,[t(Qc,{attrs:{label:e.$t("Panels.ToolheadControlPanel.SpeedFactor"),icon:e.mdiSpeedometer,target:e.speedFactor,min:1,max:200,multi:100,step:5,"dynamic-range":!0,"has-input-field":!0,command:"M220","attribute-name":"S"}})],1):e._e()],1):e._e()},Uk=[];const X1={};var Bk=E(Sm,Vk,Uk,!1,Wk,null,null,null);function Wk(e){for(let s in X1)this[s]=X1[s]}const Gk=function(){return Bk.exports}();var zk=Object.defineProperty,Zk=Object.getOwnPropertyDescriptor,qk=(e,s,t,r)=>{for(var i=r>1?void 0:r?Zk(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&zk(s,t,i),i};let _t=class extends y{fgColor(e=1,s=this.$vuetify.theme.dark){const t=s?255:0;return"rgba(".concat(t,", ").concat(t,", ").concat(t,", ").concat(e,")")}bgColor(e=1){return this.fgColor(e,!this.$vuetify.theme.dark)}get themeName(){return this.$store.getters["gui/theme"]}get theme(){return this.$store.getters["gui/getTheme"]}get themeMode(){var e;return(e=this.$store.state.gui.uiSettings.mode)!=null?e:"dark"}get fgColorHi(){return this.fgColor(.8)}get fgColorMid(){return this.fgColor(.5)}get fgColorLow(){return this.fgColor(.2)}get fgColorFaint(){return this.fgColor(.1)}get machineButtonCol(){return this.$vuetify.theme.dark?"grey darken-3":"grey lighten-1"}get draggableBgStyle(){const e=this.$vuetify.theme.dark?"#282828":"#e7e7e7";return"background-color: ".concat(e)}get progressBarColor(){return this.$vuetify.theme.dark?"white":"primary"}get sidebarBgImage(){var e,s;return(e=this.theme.sidebarBackground)!=null&&e.show?(s=this.theme.sidebarBackground)!=null&&s.light&&this.themeMode==="light"?"/img/themes/sidebarBackground-".concat(this.themeName,"-light.png"):"/img/themes/sidebarBackground-".concat(this.themeName,".png"):this.$vuetify.theme.dark?"/img/sidebar-background.svg":"/img/sidebar-background-light.svg"}get sidebarLogo(){var s,t,r;const e=this.$store.getters["files/getSidebarLogo"];return e!==""||this.themeName==="mainsail"?e:(t=(s=this.theme.logo)==null?void 0:s.show)!=null&&t?(r=this.theme.logo)!=null&&r.light&&this.themeMode==="light"?"/img/themes/sidebarLogo-".concat(this.themeName,"-light.svg"):"/img/themes/sidebarLogo-".concat(this.themeName,".svg"):""}get mainBgImage(){var s,t;const e=this.$store.getters["files/getMainBackground"];return e||this.themeName==="mainsail"?e:(s=this.theme.mainBackground)!=null&&s.show?(t=this.theme.mainBackground)!=null&&t.light&&this.themeMode==="light"?"/img/themes/mainBackground-".concat(this.themeName,"-light.png"):"/img/themes/mainBackground-".concat(this.themeName,".png"):null}};_t=qk([D],_t);var Xk=Object.defineProperty,Yk=Object.getOwnPropertyDescriptor,Jp=(e,s,t,r)=>{for(var i=r>1?void 0:r?Yk(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Xk(s,t,i),i};let ta=class extends M(O,_t){constructor(){super(...arguments),this.hoverChart=!1,this.isVisible=!0}get chartOptions(){return{renderer:"svg",animation:!1,tooltip:this.tooltip,grid:{top:35,right:this.gridRight,bottom:30,left:25},legend:{animation:!1,show:!1,selected:this.selectedLegends},xAxis:{type:"time",splitNumber:5,minInterval:60*1e3,splitLine:{show:!0,lineStyle:{color:this.fgColorFaint}},axisLabel:{color:this.fgColorLow,margin:10,formatter:this.timeFormat}},yAxis:this.yAxis,media:this.media,dataset:{source:[]},series:this.series}}get tooltip(){return{animation:!1,trigger:"axis",backgroundColor:this.bgColor(1),borderWidth:0,textStyle:{color:this.fgColorHi,fontSize:"14px"},padding:15,formatter:this.tooltipFormatter,confine:!0,className:"echarts-tooltip",position:function(e,s,t,r,i){const n={top:60};return n[["left","right"][+(e[0]<i.viewSize[0]/2)]]=5,n}}}get yAxis(){return[{name:this.$t("Panels.TemperaturePanel.TemperaturesInChart"),type:"value",min:0,max:e=>this.autoscale?Math.ceil((e.max+5)/20)*20:this.maxTemp,minInterval:20,maxInterval:100,nameLocation:"end",nameGap:5,nameTextStyle:{color:this.fgColorMid,align:"left"},splitLine:{lineStyle:{color:this.fgColorFaint}},axisLabel:{color:this.fgColorMid,formatter:"{value}",rotate:90,showMinLabel:!0,margin:5},axisLine:{show:!0,lineStyle:{color:this.fgColorLow}}},{show:this.boolDisplayPwmAxis,name:"PWM [%]",min:0,max:1,minInterval:.25,type:"value",nameLocation:"end",nameGap:5,nameTextStyle:{color:this.fgColorMid,align:"right"},splitLine:{show:!1},axisLabel:{color:this.fgColorMid,formatter:e=>e*100,showMinLabel:!0,rotate:90,margin:5},axisLine:{show:!0,lineStyle:{color:this.fgColorLow}}}]}get media(){return[{query:{minWidth:500},option:{grid:{right:this.optionGridRight,left:40},yAxis:[{maxInterval:50,axisLabel:{showMinLabel:!1,showMaxLabel:!0,rotate:0}},{maxInterval:25,axisLabel:{showMinLabel:!1,rotate:0}}]}}]}get chart(){var e,s;return(s=(e=this.$refs.tempchart)==null?void 0:e.chart)!=null?s:null}get maxHistory(){return this.$store.getters["printer/tempHistory/getTemperatureStoreSize"]}get series(){var e;return(e=this.$store.state.printer.tempHistory.series)!=null?e:{}}get source(){var e;return(e=this.$store.state.printer.tempHistory.source)!=null?e:[]}get autoscale(){var e;return(e=this.$store.state.gui.view.tempchart.autoscale)!=null?e:!0}get maxTemp(){var e;return(e=this.$store.getters["printer/getMaxTemp"])!=null?e:300}get boolDisplayPwmAxis(){return this.$store.getters["printer/tempHistory/getBoolDisplayPwmAxis"]}get selectedLegends(){return this.$store.getters["printer/tempHistory/getSelectedLegends"]}get timeFormat(){return this.hours12Format?"{hh}:{mm}":"{HH}:{mm}"}get tempchartHeight(){var e;return(e=this.$store.state.gui.uiSettings.tempchartHeight)!=null?e:250}get tempchartStyle(){return{height:this.tempchartHeight+"px"}}get gridRight(){return this.boolDisplayPwmAxis?25:15}get optionGridRight(){return this.boolDisplayPwmAxis?35:15}beforeDestroy(){typeof window>"u"||this.chart&&this.chart.dispose()}visibilityChanged(e){this.isVisible=e}tooltipFormatter(e){let s="";const t=e.filter(r=>r.seriesName.endsWith("-temperature"));if(e.length){let r=e[0].axisValueLabel;r=r.substring(r.indexOf(" "));const i=this.$vuetify.theme.dark?"theme-dark":"";s+='<div class="row"><div class="col py-1" style=\'border-bottom: 1px solid rgba(255, 255, 255, 0.24);\'><span class="v-icon mdi '.concat(i,'" style="margin-right: 5px;"><svg xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" viewBox="0 0 24 24" class="v-icon__svg" style="font-size: 12px; width: 12px; height: 12px;"><path d="').concat(fT,'"></path></svg></span><span class="font-weight-bold">')+r+"</span></div></div>"}return t.forEach(r=>{const i=r.seriesName.substring(0,r.seriesName.lastIndexOf("-"));let n=i;n.indexOf(" ")!==-1&&(n=n.substring(n.indexOf(" ")+1)),s+='<div class="row">',s+='<div class="col-auto py-0">',s+=r.marker,s+="<span class='ml-2'>"+at(n)+":</span>",s+="</div>",s+='<div class="col text-right py-0 font-weight-bold">';const a="".concat(i,"-temperature"),o="".concat(i,"-target");if(a in r.value){const l=r.value[a];s+=l!==null?l.toFixed(1):"--"}if(o in r.value){s+=" / ";const l=r.value[o];s+=l!==null?l.toFixed(1):"--"}s+="°C",Un.forEach(l=>{const c="".concat(i,"-").concat(l);if(!(c in r.value))return;let u=r.value[c];u=u!==null?(r.value[c]*100).toFixed(0):"--",s+=" [ ".concat(u,"% ]")}),s+="</div>",s+="</div>"}),s}selectedLegendsChanged(e){var s,t;((s=this.chart)==null?void 0:s.isDisposed())!==!0&&((t=this.chart)==null||t.setOption({legend:{selected:e}}))}sourceChanged(e){var r;if(!this.chart||!this.isVisible||this.hoverChart)return;(r=this.chart)==null||r.setOption({dataset:{source:e}});const s=new Date(Date.now()-this.maxHistory*1e3);let t=e.filter(i=>i.date>=s);e.length>0&&t.length<this.maxHistory*.8&&this.$socket.emit("server.temperature_store",{include_monitors:!0},{action:"printer/tempHistory/init"})}};Jp([me("selectedLegends")],ta.prototype,"selectedLegendsChanged",1);Jp([me("source")],ta.prototype,"sourceChanged",1);ta=Jp([D({components:{}})],ta);var Jk=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("e-chart",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:e.visibilityChanged,expression:"visibilityChanged"}],ref:"tempchart",staticClass:"tempchart",style:e.tempchartStyle,attrs:{option:e.chartOptions,"init-options":{renderer:"svg"},autoresize:!0},nativeOn:{mouseenter:function(r){e.hoverChart=!0},mouseleave:function(r){e.hoverChart=!1}}})},Kk=[];const Y1={};var Qk=E(ta,Jk,Kk,!1,eF,"9b1e84ce",null,null);function eF(e){for(let s in Y1)this[s]=Y1[s]}const gC=function(){return Qk.exports}();var tF=Object.defineProperty,sF=Object.getOwnPropertyDescriptor,Gs=(e,s,t,r)=>{for(var i=r>1?void 0:r?sF(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&tF(s,t,i),i};let ls=class extends M(O,Ke){constructor(){super(...arguments),this.mdiSnowflake=Mp,this.mdiFire=Qi,this.mdiMenuDown=fr,this.value=0}setTemps(){var e;if(typeof this.value=="object"&&(this.value=(e=this.value.value)!=null?e:0),this.value===null&&(this.value=0),this.value>this.max_temp)this.value={value:this.target,text:this.target},this.$toast.error(this.$t("Panels.TemperaturePanel.TempTooHigh",{name:this.name,max:this.max_temp})+"");else if(this.value<this.min_temp&&this.value!=0)this.value={value:this.target,text:this.target},this.$toast.error(this.$t("Panels.TemperaturePanel.TempTooLow",{name:this.name,min:this.min_temp})+"");else if(this.target!==parseFloat(this.value)){const s=this.command+" "+this.attributeName+"="+this.name+" TARGET="+this.value;this.$store.dispatch("server/addEvent",{message:s,type:"command"}),this.$socket.emit("printer.gcode.script",{script:s})}}mounted(){this.value=this.target}targetChanged(e){this.value=e}};Gs([P({type:String,required:!0})],ls.prototype,"name",2);Gs([P({type:Number,required:!0,default:0})],ls.prototype,"target",2);Gs([P({type:Number,required:!0})],ls.prototype,"min_temp",2);Gs([P({type:Number,required:!0})],ls.prototype,"max_temp",2);Gs([P({type:String,required:!0})],ls.prototype,"command",2);Gs([P({type:String,required:!0})],ls.prototype,"attributeName",2);Gs([P({type:Array,default:[]})],ls.prototype,"presets",2);Gs([me("target")],ls.prototype,"targetChanged",1);ls=Gs([D],ls);var rF=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"d-flex align-center"},[t("form",{on:{submit:function(r){return r.preventDefault(),e.setTemps.apply(null,arguments)}}},[t(te,{staticClass:"_temp-input pr-1",attrs:{suffix:"°C",type:"number",dense:"",outlined:"","hide-details":"","hide-spin-buttons":""},on:{blur:function(r){e.value=e.target},focus:function(r){return r.target.select()}},model:{value:e.value,callback:function(r){e.value=r},expression:"value"}})],1),e.presets?t($e,{attrs:{"offset-y":!0,left:"",title:"Preheat"},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"pa-0",staticStyle:{"min-width":"24px"},attrs:{disabled:["printing","paused"].includes(e.printer_state),tabindex:"-1","x-small":"",plain:""}},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.mdiMenuDown))])],1)]}}],null,!1,165235721)},[t(Oe,{staticClass:"py-0",attrs:{dense:""}},e._l(e.presets,function(r){return t(J,{key:r.index,staticStyle:{"min-height":"32px"},attrs:{link:""},on:{click:function(i){return e.doSend("".concat(e.command," ").concat(e.attributeName,"=").concat(e.name," TARGET=").concat(r.value))}}},[t("div",{staticClass:"_preset"},[r.value===0?t(v,{staticClass:"_preset-icon",attrs:{else:"",color:"primary",small:""}},[e._v(" "+e._s(e.mdiSnowflake)+" ")]):t(v,{staticClass:"_preset-icon",attrs:{small:""}},[e._v(e._s(e.mdiFire))]),t("span",{staticStyle:{"padding-top":"2px"}},[e._v(e._s(r.value)+"°C")])],1)])}),1)],1):e._e()],1)},iF=[];const J1={};var nF=E(ls,rF,iF,!1,aF,"5e5067e7",null,null);function aF(e){for(let s in J1)this[s]=J1[s]}const vC=function(){return nF.exports}();var oF=Object.defineProperty,lF=Object.getOwnPropertyDescriptor,_C=(e,s,t,r)=>{for(var i=r>1?void 0:r?lF(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&oF(s,t,i),i};let $l=class extends M(O){constructor(){super(...arguments),this.mdiCloseThick=pe,this.mdiSnowflake=Mp}get cooldownGcode(){return this.$store.getters["gui/presets/getCooldownGcode"]}cooldown(){this.$store.dispatch("server/addEvent",{message:this.cooldownGcode,type:"command"}),this.$socket.emit("printer.gcode.script",{script:this.cooldownGcode}),this.closePrompt()}closePrompt(){this.$emit("close")}};_C([P({type:Boolean,default:!1})],$l.prototype,"showDialog",2);$l=_C([D({components:{Panel:B}})],$l);var cF=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{value:e.showDialog,width:"400",persistent:""}},[t(B,{attrs:{title:e.$t("CoolDownDialog.CoolDown"),"card-class":"cool-down-dialog",icon:e.mdiSnowflake,"margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closePrompt}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[e._v(e._s(e.$t("CoolDownDialog.AreYouSure")))]),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:e.closePrompt}},[e._v(e._s(e.$t("CoolDownDialog.No")))]),t(g,{attrs:{color:"primary",text:""},on:{click:e.cooldown}},[e._v(e._s(e.$t("CoolDownDialog.Yes")))])],1)],1)],1)},uF=[];const K1={};var dF=E($l,cF,uF,!1,mF,null,null,null);function mF(e){for(let s in K1)this[s]=K1[s]}const bC=function(){return dF.exports}();var hF=Object.defineProperty,pF=Object.getOwnPropertyDescriptor,fF=(e,s,t,r)=>{for(var i=r>1?void 0:r?pF(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&hF(s,t,i),i};let Dm=class extends M(O){constructor(){super(...arguments),this.mdiFire=Qi,this.mdiMenuDown=fr,this.mdiSnowflake=Mp,this.mdiCloseThick=pe,this.showCoolDownDialog=!1}get presets(){var e;return(e=this.$store.getters["gui/presets/getPresets"])!=null?e:[]}get cooldownGcode(){return this.$store.getters["gui/presets/getCooldownGcode"]}get confirmOnCoolDown(){return this.$store.state.gui.uiSettings.confirmOnCoolDown}preheat(e){var s;for(const[t,r]of Object.entries(e.values))if(r.bool){const i=t.split(" "),n=i[0];let a=(s=i[1])!=null?s:i[0],o="SET_HEATER_TEMPERATURE",l="HEATER";n==="temperature_fan"&&(o="SET_TEMPERATURE_FAN_TARGET",l="TEMPERATURE_FAN");const c="".concat(o," ").concat(l,"=").concat(a," TARGET=").concat(r.value);this.$store.dispatch("server/addEvent",{message:c,type:"command"}),this.$socket.emit("printer.gcode.script",{script:c})}e.gcode!==""&&setTimeout(()=>{this.$store.dispatch("server/addEvent",{message:e.gcode,type:"command"}),this.$socket.emit("printer.gcode.script",{script:e.gcode})},100)}btnCoolDown(){if(this.confirmOnCoolDown){this.showCoolDownDialog=!0;return}this.cooldown()}cooldown(){this.showCoolDownDialog=!1,this.$store.dispatch("server/addEvent",{message:this.cooldownGcode,type:"command"}),this.$socket.emit("printer.gcode.script",{script:this.cooldownGcode})}};Dm=fF([D({components:{CoolDownDialog:bC}})],Dm);var gF=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticStyle:{height:"100%"}},[e.presets.length?t($e,{attrs:{"offset-y":!0,left:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"pa-1",attrs:{text:"",tile:"",color:"primary",disabled:["printing","paused"].includes(e.printer_state)}},"v-btn",n,!1),i),[t("span",{staticClass:"d-none ml-1 d-md-block"},[e._v(e._s(e.$t("Panels.TemperaturePanel.Presets")))]),t(v,{staticClass:"d-md-none"},[e._v(e._s(e.mdiFire))]),t(v,[e._v(e._s(e.mdiMenuDown))])],1)]}}],null,!1,1208155870)},[t(Oe,{staticClass:"py-0",attrs:{dense:""}},e._l(e.presets,function(r,i){return t(J,{key:i,attrs:{link:""},on:{click:function(n){return e.preheat(r)}}},[t("div",{staticClass:"d-flex align-center _preset-title"},[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(e._s(e.mdiFire))]),t("span",{staticStyle:{"padding-top":"2px"}},[e._v(e._s(r.name))])],1)])}),1),t(U,{staticClass:"_fix_transparency"}),t(Oe,{staticClass:"py-0",attrs:{dense:""}},[t(J,{attrs:{link:""},on:{click:e.btnCoolDown}},[t("div",{staticClass:"d-flex align-center _preset-title"},[t(v,{staticClass:"mr-1",attrs:{small:"",color:"primary"}},[e._v(e._s(e.mdiSnowflake))]),t("span",{staticClass:"primary--text"},[e._v(e._s(e.$t("Panels.TemperaturePanel.Cooldown")))])],1)])],1)],1):t(g,{attrs:{icon:e.$vuetify.breakpoint.smAndDown,text:e.$vuetify.breakpoint.mdAndUp,tile:"",color:"primary"},on:{click:e.btnCoolDown}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiSnowflake))]),t("span",{staticClass:"d-none ml-1 d-md-inline"},[e._v(e._s(e.$t("Panels.TemperaturePanel.Cooldown")))])],1),t(bC,{attrs:{"show-dialog":e.showCoolDownDialog},on:{close:function(r){e.showCoolDownDialog=!1}}})],1)},vF=[];const Q1={};var _F=E(Dm,gF,vF,!1,bF,"300d8a4d",null,null);function bF(e){for(let s in Q1)this[s]=Q1[s]}const yC=function(){return _F.exports}();var yF=Object.defineProperty,CF=Object.getOwnPropertyDescriptor,$F=(e,s,t,r)=>{for(var i=r>1?void 0:r?CF(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&yF(s,t,i),i};let Tm=class extends M(O,Ke){constructor(){super(...arguments),this.mdiCloseThick=pe,this.mdiThermometerLines=o2,this.convertName=at,this.capitalize=jr}get boolTempchart(){var s;return(s=this.$store.state.gui.view.tempchart.boolTempchart)!=null?s:!1}};Tm=$F([D({components:{Panel:B,TempChart:gC,TemperatureInput:vC,Responsive:et,TemperaturePanelPresets:yC}})],Tm);var xF=Object.defineProperty,wF=Object.getOwnPropertyDescriptor,CC=(e,s,t,r)=>{for(var i=r>1?void 0:r?wF(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&xF(s,t,i),i};let xl=class extends M(O){constructor(){super(...arguments),this.mdiFan=yp,this.showEditDialog=!1,this.nevermoreValues=["temperature","pressure","humidity"]}get printerObject(){var e;return(e=this.$store.state.printer.nevermore)!=null?e:{}}get color(){var e,s,t,r,i,n;return(n=(i=(r=(t=(s=(e=this.$store.state.gui)==null?void 0:e.view)==null?void 0:s.tempchart)==null?void 0:t.datasetSettings)==null?void 0:r.nevermore)==null?void 0:i.color)!=null?n:"#ffffff"}get iconColor(){return this.state===null||this.state>0?"".concat(this.color).concat(_y):"".concat(this.color).concat(by)}get iconClass(){var t,r,i;const e=["_no-focus-style","cursor-pointer"];return!((r=(t=this.$store.state.gui)==null?void 0:t.uiSettings.disableFanAnimation)!=null?r:!1)&&((i=this.state)!=null?i:0)>0&&e.push("icon-rotate"),e}get state(){var e;return(e=this.printerObject.speed)!=null?e:null}get rpm(){var s;return((s=this.printerObject.rpm)!=null?s:null)===null?null:parseInt(this.printerObject.rpm)}get rpmClass(){var e;return this.rpm===0&&((e=this.printerObject.speed)!=null?e:0)>0?"red--text":""}};CC([P({type:Boolean,required:!0})],xl.prototype,"isResponsiveMobile",2);xl=CC([D],xl);var SF=Object.defineProperty,PF=Object.getOwnPropertyDescriptor,Kp=(e,s,t,r)=>{for(var i=r>1?void 0:r?PF(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&SF(s,t,i),i};let sa=class extends M(O){get value(){return this.$store.getters["gui/getDatasetValue"]({name:this.objectName,type:this.serieName})}get label(){return this.$t("Panels.TemperaturePanel.ShowNameInChart",{name:this.formatSerieName})}set value(e){this.$store.dispatch("gui/setChartDatasetStatus",{objectName:this.objectName,dataset:this.serieName,value:e})}get formatSerieName(){return jr(this.serieName)}};Kp([P({type:String,required:!0})],sa.prototype,"objectName",2);Kp([P({type:String,required:!0})],sa.prototype,"serieName",2);sa=Kp([D],sa);var DF=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t($,[t(_,{staticClass:"py-1"},[t(_e,{staticClass:"mt-0",attrs:{label:e.label,"hide-details":""},model:{value:e.value,callback:function(r){e.value=r},expression:"value"}})],1)],1)},TF=[];const ev={};var MF=E(sa,DF,TF,!1,EF,null,null,null);function EF(e){for(let s in ev)this[s]=ev[s]}const $C=function(){return MF.exports}();var OF=Object.defineProperty,LF=Object.getOwnPropertyDescriptor,Qp=(e,s,t,r)=>{for(var i=r>1?void 0:r?LF(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&OF(s,t,i),i};let ra=class extends M(O){get value(){return this.$store.getters["gui/getDatasetAdditionalSensorValue"]({name:this.objectName,type:this.additionalSensor})}set value(e){this.$store.dispatch("gui/setDatasetAdditionalSensorStatus",{objectName:this.objectName,dataset:this.additionalSensor,value:e})}get label(){return this.$t("Panels.TemperaturePanel.ShowNameInList",{name:this.additionalSensor})}};Qp([P({type:String,required:!0})],ra.prototype,"objectName",2);Qp([P({type:String,required:!0})],ra.prototype,"additionalSensor",2);ra=Qp([D],ra);var AF=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t($,[t(_,{staticClass:"col-12 py-1"},[t(_e,{staticClass:"mt-0",attrs:{label:e.label,"hide-details":""},model:{value:e.value,callback:function(r){e.value=r},expression:"value"}})],1)],1)},kF=[];const tv={};var FF=E(ra,AF,kF,!1,RF,null,null,null);function RF(e){for(let s in tv)this[s]=tv[s]}const xC=function(){return FF.exports}();var jF=Object.defineProperty,HF=Object.getOwnPropertyDescriptor,zs=(e,s,t,r)=>{for(var i=r>1?void 0:r?HF(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&jF(s,t,i),i};let cs=class extends M(O){constructor(){super(...arguments),this.mdiCloseThick=pe}get chartSeries(){var e;return(e=this.$store.getters["printer/tempHistory/getSerieNames"](this.objectName))!=null?e:[]}get printerObjectAdditionalSensor(){return this.additionalSensorName===null||!(this.additionalSensorName in this.$store.state.printer)?{}:this.$store.state.printer[this.additionalSensorName]}get additionalValues(){return this.objectName==="z_thermal_adjust"?["current_z_adjust"]:this.objectName==="nevermore"?["temperature","pressure","humidity","rpm"]:Object.keys(this.printerObjectAdditionalSensor).filter(e=>e!=="temperature")}setChartColor(e){typeof e=="object"&&"hex"in e&&(e=e.hex),this.$store.dispatch("gui/setChartColor",{objectName:this.objectName,value:e}),this.$store.dispatch("printer/tempHistory/setColor",{name:this.objectName,value:e})}closeDialog(){this.$emit("close-dialog")}};zs([P({type:Boolean,required:!0})],cs.prototype,"boolShow",2);zs([P({type:String,required:!0})],cs.prototype,"objectName",2);zs([P({type:String,required:!0})],cs.prototype,"name",2);zs([P({required:!0})],cs.prototype,"additionalSensorName",2);zs([P({type:String,required:!0})],cs.prototype,"formatName",2);zs([P({type:String,required:!0})],cs.prototype,"icon",2);zs([P({type:String,required:!0})],cs.prototype,"color",2);zs([qe(500)],cs.prototype,"setChartColor",1);cs=zs([D({components:{TemperaturePanelListItemEditAdditionalSensor:xC,TemperaturePanelListItemEditChartSerie:$C}})],cs);var IF=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{persistent:"",width:400},model:{value:e.boolShow,callback:function(r){e.boolShow=r},expression:"boolShow"}},[t(B,{attrs:{title:e.formatName,icon:e.icon,"card-class":"temperature-edit-heater-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,{staticClass:"pt-6"},[e._l(e.chartSeries,function(r){return t($C,{key:r,attrs:{"object-name":e.objectName,"serie-name":r}})}),e._l(e.additionalValues,function(r){return t(xC,{key:r,attrs:{"object-name":e.objectName,"additional-sensor":r}})}),t($,[t(_,{staticClass:"col-12 text-center pb-0"},[t(rs,{staticClass:"mx-auto",attrs:{"hide-mode-switch":"",mode:"hexa",value:e.color},on:{"update:color":e.setChartColor}})],1)],1)],2)],1)],1)},NF=[];const sv={};var VF=E(cs,IF,NF,!1,UF,null,null,null);function UF(e){for(let s in sv)this[s]=sv[s]}const wC=function(){return VF.exports}();var BF=Object.defineProperty,WF=Object.getOwnPropertyDescriptor,Wa=(e,s,t,r)=>{for(var i=r>1?void 0:r?WF(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&BF(s,t,i),i};let Ur=class extends M(O){get cssStyle(){let e={cursor:"default",fontSize:"1em"};return this.small&&(e.fontSize="0.8em"),e}get value(){var s;const e=(s=this.printerObject[this.keyName])!=null?s:null;return isNaN(e)?null:e}get intake_value(){var s;const e="intake_".concat(this.keyName);return(s=this.printerObject[e])!=null?s:null}get intake_value_min(){var s;const e="intake_".concat(this.keyName,"_min");return(s=this.printerObject[e])!=null?s:null}get intake_value_max(){var s;const e="intake_".concat(this.keyName,"_max");return(s=this.printerObject[e])!=null?s:null}get exhaust_value(){var s;const e="exhaust_".concat(this.keyName);return(s=this.printerObject[e])!=null?s:null}get exhaust_value_min(){var s;const e="exhaust_".concat(this.keyName,"_min");return(s=this.printerObject[e])!=null?s:null}get exhaust_value_max(){var s;const e="exhaust_".concat(this.keyName,"_max");return(s=this.printerObject[e])!=null?s:null}get unit(){switch(this.keyName){case"temperature":return"°C";case"pressure":return"hPa";case"humidity":return"%"}return null}get digits(){return["gas","pressure"].includes(this.keyName)?0:1}get formatValue(){return this.getFormatedValue(this.intake_value,this.exhaust_value)}get formatValue_min(){return this.getFormatedValue(this.intake_value_min,this.exhaust_value_min)}get formatValue_max(){return this.getFormatedValue(this.intake_value_max,this.exhaust_value_max)}getFormatedValue(e,s){let t=e==null?void 0:e.toFixed(this.digits),r=s==null?void 0:s.toFixed(this.digits);return this.intake_value===null&&(t="--"),this.exhaust_value===null&&(r="--"),this.unit===null?"".concat(t," > ").concat(r):"".concat(t," ").concat(this.unit," > ").concat(r," ").concat(this.unit)}get disableTooltip(){return this.intake_value_min===null||this.exhaust_value_min===null||this.intake_value_max===null||this.exhaust_value_max===null}get guiSetting(){return this.$store.getters["gui/getDatasetAdditionalSensorValue"]({name:this.objectName,sensor:this.keyName})}get isVisible(){return this.intake_value===null&&this.exhaust_value===null?!1:this.guiSetting}};Wa([P({type:Object,required:!0})],Ur.prototype,"printerObject",2);Wa([P({type:String,required:!0})],Ur.prototype,"objectName",2);Wa([P({type:String,required:!0})],Ur.prototype,"keyName",2);Wa([P({type:Boolean,required:!1,default:!0})],Ur.prototype,"small",2);Ur=Wa([D],Ur);var GF=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.isVisible?t("div",[t(de,{attrs:{top:"",disabled:e.disableTooltip},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t("span",e._g(e._b({style:e.cssStyle},"span",n,!1),i),[e._v(e._s(e.formatValue))])]}}],null,!1,2376366562)},[t("span",[e._v(" "+e._s(e.$t("Panels.TemperaturePanel.Max"))+": "+e._s(e.formatValue_max)+" "),t("br"),e._v(" "+e._s(e.$t("Panels.TemperaturePanel.Min"))+": "+e._s(e.formatValue_min)+" ")])])],1):e._e()},zF=[];const rv={};var ZF=E(Ur,GF,zF,!1,qF,null,null,null);function qF(e){for(let s in rv)this[s]=rv[s]}const iv=function(){return ZF.exports}();var XF=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("tr",[t("td",{staticClass:"icon"},[t(v,{class:e.iconClass,attrs:{color:e.iconColor,tabindex:"-1"},on:{click:function(r){e.showEditDialog=!0}}},[e._v(" "+e._s(e.mdiFan)+" ")])],1),t("td",{staticClass:"name"},[t("span",{staticClass:"cursor-pointer",on:{click:function(r){e.showEditDialog=!0}}},[e._v("Nevermore")])]),t("td",{staticClass:"text-no-wrap text-center",attrs:{colspan:"3"}},[t(iv,{attrs:{"printer-object":e.printerObject,small:!1,"object-name":"nevermore","key-name":"gas"}}),e._l(e.nevermoreValues,function(r){return t(iv,{key:r,attrs:{"printer-object":e.printerObject,"object-name":"nevermore","key-name":r}})}),e.rpm!==null?t("div",[t("small",{class:e.rpmClass},[e._v(e._s(e.rpm)+" RPM")])]):e._e()],2),t(wC,{attrs:{"bool-show":e.showEditDialog,"object-name":"nevermore",name:"nevermore","format-name":"Nevermore","additional-sensor-name":"nevermore",icon:e.mdiFan,color:e.color},on:{"close-dialog":function(r){e.showEditDialog=!1}}})],1)},YF=[];const nv={};var JF=E(xl,XF,YF,!1,KF,"2263111c",null,null);function KF(e){for(let s in nv)this[s]=nv[s]}const SC=function(){return JF.exports}();var QF=Object.defineProperty,e7=Object.getOwnPropertyDescriptor,t7=(e,s,t,r)=>{for(var i=r>1?void 0:r?e7(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&QF(s,t,i),i};let Mm=class extends M(O){get available_heaters(){var e,s,t;return(t=(s=(e=this.$store.state.printer)==null?void 0:e.heaters)==null?void 0:s.available_heaters)!=null?t:[]}get filteredHeaters(){return this.available_heaters.filter(e=>{const s=e.split(" ");let t=s[0];return s.length>1&&(t=s[1]),!t.startsWith("_")}).sort(this.sortObjectName)}get available_sensors(){var e,s,t;return(t=(s=(e=this.$store.state.printer)==null?void 0:e.heaters)==null?void 0:s.available_sensors)!=null?t:[]}get available_monitors(){var e,s,t;return(t=(s=(e=this.$store.state.printer)==null?void 0:e.heaters)==null?void 0:s.available_monitors)!=null?t:[]}get monitors(){return this.available_monitors.sort(this.sortObjectName)}get temperature_fans(){return this.available_sensors.filter(e=>e.startsWith("temperature_fan")&&!e.startsWith("temperature_fan _")).sort(this.sortObjectName)}get existsNevermoreFilter(){return"nevermore"in this.$store.state.printer}get hideMcuHostSensors(){var e;return(e=this.$store.state.gui.view.tempchart.hideMcuHostSensors)!=null?e:!1}get hideMonitors(){var e;return(e=this.$store.state.gui.view.tempchart.hideMonitors)!=null?e:!1}get temperature_sensors(){return this.available_sensors.filter(e=>{if(this.available_heaters.includes(e)||this.temperature_fans.includes(e)||this.hideMcuHostSensors&&this.checkMcuHostSensor(e))return!1;const s=e.split(" ");let t=s[0];return s.length>1&&(t=s[1]),!t.startsWith("_")}).sort(this.sortObjectName)}get heaterObjects(){return[...this.filteredHeaters,...this.temperature_fans]}get settings(){var e,s,t;return(t=(s=(e=this.$store.state.printer)==null?void 0:e.configfile)==null?void 0:s.settings)!=null?t:{}}checkMcuHostSensor(e){var r,i;const t=(i=((r=this.settings[e.toLowerCase()])!=null?r:{}).sensor_type)!=null?i:"";return["temperature_mcu","temperature_host"].includes(t)}sortObjectName(e,s){const t=e.split(" ");let r=t[0];t.length>1&&(r=t[1]),r=r.toUpperCase();const i=s.split(" ");let n=i[0];return i.length>1&&(n=i[1]),n=n.toUpperCase(),r<n?-1:r>n?1:0}};Mm=t7([D({components:{TemperaturePanelListItemNevermore:SC}})],Mm);var s7=Object.defineProperty,r7=Object.getOwnPropertyDescriptor,ef=(e,s,t,r)=>{for(var i=r>1?void 0:r?r7(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&s7(s,t,i),i};let ia=class extends M(O){constructor(){super(...arguments),this.showEditDialog=!1}get printerObject(){return this.objectName in this.$store.state.printer?this.$store.state.printer[this.objectName]:{}}get printerObjectSettings(){var s,t,r,i,n;const e=this.objectName.toLowerCase();return e in((r=(t=(s=this.$store.state.printer)==null?void 0:s.configfile)==null?void 0:t.settings)!=null?r:{})?(n=(i=this.$store.state.printer)==null?void 0:i.configfile)==null?void 0:n.settings[e]:{}}get name(){const e=this.objectName.split(" ");return e.length===1?this.objectName:e[1]}get formatName(){return at(this.name)}get icon(){var e;return this.objectName.startsWith("extruder")?(e=this.printerObject.can_extrude)!=null&&e?Ws:Ky:this.objectName==="heater_bed"?this.temperature!==null&&this.temperature>50||this.target&&this.temperature&&this.temperature>this.target-5?i3:e2:this.objectName.startsWith("heater_generic")?Qi:this.objectName.startsWith("tmc")?Wy:this.isFan?yp:a2}get color(){var e;return(e=this.$store.getters["printer/tempHistory/getDatasetColor"](this.objectName))!=null?e:"#FFFFFF"}get iconColor(){return this.target===null||this.target>0?"".concat(this.color).concat(_y):"".concat(this.color).concat(by)}get iconClass(){var s,t,r;const e=["_no-focus-style","cursor-pointer"];return this.isFan&&!((t=(s=this.$store.state.gui)==null?void 0:s.uiSettings.disableFanAnimation)!=null&&t)&&((r=this.state)!=null?r:0)>0&&e.push("icon-rotate"),e}get isFan(){return this.objectName.startsWith("temperature_fan")}get state(){var e,s;return(s=(e=this.printerObject.power)!=null?e:this.printerObject.speed)!=null?s:null}get formatState(){return this.state===null?null:this.target===0&&this.state===0?"off":"".concat(Math.round(this.state*100)," %")}get avgPower(){var e;return(e=this.$store.getters["printer/tempHistory/getAvgPower"](this.name))!=null?e:0}get avgSpeed(){var e;return(e=this.$store.getters["printer/tempHistory/getAvgSpeed"](this.name))!=null?e:0}get avgState(){return"power"in this.printerObject?Math.round(this.avgPower):"speed"in this.printerObject?Math.round(this.avgSpeed):null}get temperature(){var e,s;return(s=(e=this.printerObject)==null?void 0:e.temperature)!=null?s:null}get formatTemperature(){var e,s;return"".concat((s=(e=this.temperature)==null?void 0:e.toFixed(1))!=null?s:"--","°C")}get min_temp(){var e;return parseInt((e=this.printerObjectSettings.min_temp)!=null?e:0)}get max_temp(){var e;return parseInt((e=this.printerObjectSettings.max_temp)!=null?e:0)}get measured_min_temp(){var e,s,t;return(t=(s=(e=this.printerObject)==null?void 0:e.measured_min_temp)==null?void 0:s.toFixed(1))!=null?t:null}get measured_max_temp(){var e,s,t;return(t=(s=(e=this.printerObject)==null?void 0:e.measured_max_temp)==null?void 0:s.toFixed(1))!=null?t:null}get target(){var e,s;return(s=(e=this.printerObject)==null?void 0:e.target)!=null?s:null}get additionalSensorName(){if(this.objectName==="z_thermal_adjust")return"z_thermal_adjust";const e=HD.find(s=>{if("".concat(s," ").concat(this.name)in this.$store.state.printer)return!0});return e?"".concat(e," ").concat(this.name):null}get rpm(){var s;return((s=this.printerObject.rpm)!=null?s:null)===null?null:parseInt(this.printerObject.rpm)}get rpmClass(){var e;return this.rpm===0&&((e=this.printerObject.speed)!=null?e:0)>0?"red--text":""}get presets(){var e;return(e=this.$store.getters["gui/presets/getPresetsFromHeater"]({name:this.objectName}))!=null?e:[]}get command(){return this.objectName.startsWith("temperature_fan")?"SET_TEMPERATURE_FAN_TARGET":this.objectName.startsWith("extruder")||this.objectName.startsWith("heater_")?"SET_HEATER_TEMPERATURE":null}get commandAttributeName(){return this.command==="SET_HEATER_TEMPERATURE"?"HEATER":this.command==="SET_TEMPERATURE_FAN_TARGET"?"TEMPERATURE_FAN":""}};ef([P({type:String,required:!0})],ia.prototype,"objectName",2);ef([P({type:Boolean,required:!0})],ia.prototype,"isResponsiveMobile",2);ia=ef([D],ia);var i7=Object.defineProperty,n7=Object.getOwnPropertyDescriptor,tf=(e,s,t,r)=>{for(var i=r>1?void 0:r?n7(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&i7(s,t,i),i};let na=class extends M(O){get printerObject(){return this.additionalObjectName in this.$store.state.printer?this.$store.state.printer[this.additionalObjectName]:{}}get additionalValues(){return this.objectName==="z_thermal_adjust"?["current_z_adjust"]:Object.keys(this.printerObject).filter(e=>e!=="temperature")}};tf([P({type:String,required:!0})],na.prototype,"objectName",2);tf([P({type:String,required:!0})],na.prototype,"additionalObjectName",2);na=tf([D],na);var a7=Object.defineProperty,o7=Object.getOwnPropertyDescriptor,Cu=(e,s,t,r)=>{for(var i=r>1?void 0:r?o7(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&a7(s,t,i),i};let Oi=class extends M(O){get value(){var s;const e=(s=this.printerObject[this.keyName])!=null?s:null;return isNaN(e)?null:e}get formatValue(){var t;let e=(t=this.value)==null?void 0:t.toFixed(1);this.value===null&&(e="--");let s=null;switch(this.keyName){case"pressure":s="hPa";break;case"humidity":s="%";break;case"current_z_adjust":s="mm";break}return this.keyName==="current_z_adjust"&&this.value&&(e=this.value.toFixed(3),Math.abs(this.value)<.1&&(e=Math.round(this.value*1e3).toString(),s="μm")),s?"".concat(e," ").concat(s):e}get guiSetting(){return this.$store.getters["gui/getDatasetAdditionalSensorValue"]({name:this.objectName,sensor:this.keyName})}get isVisible(){return this.value===null?!1:this.guiSetting}};Cu([P({type:Object,required:!0})],Oi.prototype,"printerObject",2);Cu([P({type:String,required:!0})],Oi.prototype,"objectName",2);Cu([P({type:String,required:!0})],Oi.prototype,"keyName",2);Oi=Cu([D],Oi);var l7=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.isVisible?t("div",[t("small",[e._v(e._s(e.formatValue))])]):e._e()},c7=[];const av={};var u7=E(Oi,l7,c7,!1,d7,null,null,null);function d7(e){for(let s in av)this[s]=av[s]}const m7=function(){return u7.exports}();var h7=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",e._l(e.additionalValues,function(r){return t(m7,{key:r,attrs:{"printer-object":e.printerObject,"object-name":e.objectName,"key-name":r}})}),1)},p7=[];const ov={};var f7=E(na,h7,p7,!1,g7,null,null,null);function g7(e){for(let s in ov)this[s]=ov[s]}const v7=function(){return f7.exports}();var _7=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("tr",[t("td",{staticClass:"icon"},[t(v,{class:e.iconClass,attrs:{color:e.iconColor,tabindex:"-1"},on:{click:function(r){e.showEditDialog=!0}}},[e._v(" "+e._s(e.icon)+" ")])],1),t("td",{staticClass:"name"},[t("span",{staticClass:"cursor-pointer",on:{click:function(r){e.showEditDialog=!0}}},[e._v(e._s(e.formatName))])]),e.isResponsiveMobile?e._e():t("td",{staticClass:"state"},[e.state!==null?t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t("div",e._g(e._b({},"div",n,!1),i),[e._v(e._s(e.formatState))])]}}],null,!1,938967334)},[t("span",[e._v(e._s(e.$t("Panels.TemperaturePanel.Avg"))+": "+e._s(e.avgState)+" %")])]):e._e()],1),t("td",{staticClass:"current"},[t(de,{attrs:{top:"",disabled:!(e.measured_min_temp!==null||e.measured_max_temp!==null)},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t("span",e._g(e._b({staticStyle:{cursor:"default"}},"span",n,!1),i),[e._v(" "+e._s(e.formatTemperature)+" ")])]}}])},[t("span",[e._v(" "+e._s(e.$t("Panels.TemperaturePanel.Max"))+": "+e._s(e.measured_max_temp)+"°C "),t("br"),e._v(" "+e._s(e.$t("Panels.TemperaturePanel.Min"))+": "+e._s(e.measured_min_temp)+"°C ")])]),e.rpm!==null?t("div",[t("small",{class:e.rpmClass},[e._v(e._s(e.rpm)+" RPM")])]):e._e(),e.additionalSensorName?t(v7,{attrs:{"object-name":e.objectName,"additional-object-name":e.additionalSensorName}}):e._e()],1),t("td",{staticClass:"target"},[e.command!==null?t(vC,{attrs:{name:e.name,target:e.target,presets:e.presets,min_temp:e.min_temp,max_temp:e.max_temp,command:e.command,"attribute-name":e.commandAttributeName}}):e._e()],1),t(wC,{attrs:{"bool-show":e.showEditDialog,"object-name":e.objectName,name:e.name,"format-name":e.formatName,"additional-sensor-name":e.additionalSensorName,icon:e.icon,color:e.color},on:{"close-dialog":function(r){e.showEditDialog=!1}}})],1)},b7=[];const lv={};var y7=E(ia,_7,b7,!1,C7,"8977b3c0",null,null);function C7(e){for(let s in lv)this[s]=lv[s]}const pd=function(){return y7.exports}();var $7=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(et,{attrs:{breakpoints:{mobile:function(r){return r.width<=395}}},scopedSlots:e._u([{key:"default",fn:function(r){var i,n=r.el;return[t(dp,{staticClass:"temperature-panel-table"},[t("thead",[t("tr",[t("th",{staticClass:"icon"},[e._v(" ")]),t("th",{staticClass:"name"},[e._v(e._s(e.$t("Panels.TemperaturePanel.Name")))]),n.is.mobile?e._e():t("th",{staticClass:"state"},[e._v(" "+e._s(e.$t("Panels.TemperaturePanel.State"))+" ")]),t("th",{staticClass:"current"},[e._v(" "+e._s(e.$t("Panels.TemperaturePanel.Current"))+" ")]),t("th",{staticClass:"target"},[e._v(" "+e._s(e.$t("Panels.TemperaturePanel.Target"))+" ")])])]),t("tbody",[e._l(e.heaterObjects,function(a){var o;return t(pd,{key:a,attrs:{"object-name":a,"is-responsive-mobile":(o=n.is.mobile)!==null&&o!==void 0?o:!1}})}),e.existsNevermoreFilter?t(SC,{attrs:{"is-responsive-mobile":(i=n.is.mobile)!==null&&i!==void 0?i:!1}}):e._e(),e._l(e.temperature_sensors,function(a){var o;return t(pd,{key:a,attrs:{"object-name":a,"is-responsive-mobile":(o=n.is.mobile)!==null&&o!==void 0?o:!1}})}),e.hideMonitors?e._e():e._l(e.monitors,function(a){var o;return t(pd,{key:a,attrs:{"object-name":a,"is-responsive-mobile":(o=n.is.mobile)!==null&&o!==void 0?o:!1}})})],2)])]}}])})},x7=[];const cv={};var w7=E(Mm,$7,x7,!1,S7,"080ca807",null,null);function S7(e){for(let s in cv)this[s]=cv[s]}const P7=function(){return w7.exports}();var D7=Object.defineProperty,T7=Object.getOwnPropertyDescriptor,M7=(e,s,t,r)=>{for(var i=r>1?void 0:r?T7(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&D7(s,t,i),i};let Em=class extends M(O){constructor(){super(...arguments),this.mdiCog=us}get boolTempchart(){var e;return(e=this.$store.state.gui.view.tempchart.boolTempchart)!=null?e:!1}set boolTempchart(e){this.$store.dispatch("gui/saveSetting",{name:"view.tempchart.boolTempchart",value:e})}get autoscaleTempchart(){var e;return(e=this.$store.state.gui.view.tempchart.autoscale)!=null?e:!1}set autoscaleTempchart(e){this.$store.dispatch("gui/saveSetting",{name:"view.tempchart.autoscale",value:e})}get hideMcuHostSensors(){var e;return(e=this.$store.state.gui.view.tempchart.hideMcuHostSensors)!=null?e:!1}set hideMcuHostSensors(e){this.$store.dispatch("gui/saveSetting",{name:"view.tempchart.hideMcuHostSensors",value:e})}get hideMonitors(){var e;return(e=this.$store.state.gui.view.tempchart.hideMonitors)!=null?e:!1}set hideMonitors(e){this.$store.dispatch("gui/saveSetting",{name:"view.tempchart.hideMonitors",value:e})}};Em=M7([D],Em);var E7=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t($e,{attrs:{"offset-y":!0,"close-on-content-click":!1,title:e.$t("Panels.TemperaturePanel.SetupTemperatures")},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({attrs:{icon:"",tile:""}},"v-btn",n,!1),i),[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiCog))])],1)]}}])},[t(Oe,[t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.TemperaturePanel.ShowChart")},model:{value:e.boolTempchart,callback:function(r){e.boolTempchart=r},expression:"boolTempchart"}})],1),t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.TemperaturePanel.HideMcuHostSensors")},model:{value:e.hideMcuHostSensors,callback:function(r){e.hideMcuHostSensors=r},expression:"hideMcuHostSensors"}})],1),t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.TemperaturePanel.HideMonitors")},model:{value:e.hideMonitors,callback:function(r){e.hideMonitors=r},expression:"hideMonitors"}})],1),t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.TemperaturePanel.AutoscaleChart")},model:{value:e.autoscaleTempchart,callback:function(r){e.autoscaleTempchart=r},expression:"autoscaleTempchart"}})],1)],1)],1)},O7=[];const uv={};var L7=E(Em,E7,O7,!1,A7,null,null,null);function A7(e){for(let s in uv)this[s]=uv[s]}const k7=function(){return L7.exports}();var F7=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.klipperReadyForGui?t(B,{attrs:{icon:e.mdiThermometerLines,title:e.$t("Panels.TemperaturePanel.Headline"),collapsible:!0,"card-class":"temperature-panel"},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(yC),t(k7)]},proxy:!0}],null,!1,3208382191)},[t(q,{staticClass:"pa-0"},[t(P7),e.boolTempchart?[t(U,{staticClass:"my-0"}),t(gC)]:e._e()],2)],1):e._e()},R7=[];const dv={};var j7=E(Tm,F7,R7,!1,H7,null,null,null);function H7(e){for(let s in dv)this[s]=dv[s]}const I7=function(){return j7.exports}();var N7=Object.defineProperty,V7=Object.getOwnPropertyDescriptor,U7=(e,s,t,r)=>{for(var i=r>1?void 0:r?V7(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&N7(s,t,i),i};let dr=class extends M(O){convertUrl(e,s){var r,i,n,a,o,l,c,u;let t=new URL(e,this.hostUrl.toString());if(s!==null&&(t=new URL(e,s)),(e.startsWith("http")||e.startsWith("://"))&&(t=new URL(e)),e.startsWith("/webcam")){const d=[80];d.push((a=(n=(i=(r=this.$store.state.server.config)==null?void 0:r.config)==null?void 0:i.server)==null?void 0:n.port)!=null?a:7125),d.push((u=(c=(l=(o=this.$store.state.server.config)==null?void 0:o.config)==null?void 0:l.server)==null?void 0:c.ssl_port)!=null?u:7130),d.includes(this.hostPort)||(t.port=this.hostPort.toString())}return decodeURIComponent(t.toString())}convertWebcamIcon(e){switch(e){case"mdiAlbum":return KD;case"mdiCampfire":return oT;case"mdiDoor":return wT;case"mdiRadiatorDisabled":return e2;case"mdiPrinter3d":return Ha;case"mdiPrinter3dNozzle":return Ws;case"mdiRaspberryPi":return n3;default:return sn}}generateTransform(e,s,t){let r="";return e&&(r+=" scaleX(-1)"),s&&(r+=" scaleY(-1)"),t===180&&(r+=" rotate(180deg)"),r.trimStart().length?r.trimStart():"none"}};dr=U7([D],dr);var B7=Object.defineProperty,W7=Object.getOwnPropertyDescriptor,PC=(e,s,t,r)=>{for(var i=r>1?void 0:r?W7(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&B7(s,t,i),i};let wl=class extends M(O,dr){constructor(){super(...arguments),this.mdiWebcam=sn,this.mdiMenuDown=fr,this.mdiViewGrid=$g}get webcams(){return this.$store.getters["gui/webcams/getWebcams"]}get showSwitch(){return this.webcams.length>1}get currentCamId(){var s,t,r,i;if(this.webcams.length===1)return(s=this.webcams[0].name)!=null?s:"all";let e=(r=this.$store.state.gui.view.webcam.currentCam[(t=this.currentPage)!=null?t:""])!=null?r:"all";return this.webcams.findIndex(n=>n.name===e)!==-1?e:e!==void 0&&this.webcams.length===1?(i=this.webcams[0].name)!=null?i:"":"all"}set currentCamId(e){this.$store.dispatch("gui/setCurrentWebcam",{page:this.currentPage,value:e})}get currentCam(){const e=this.webcams.find(s=>s.name===this.currentCamId);return e!=null?e:{name:this.$t("Panels.WebcamPanel.All"),service:"grid",icon:$g}}};PC([P({default:"dashboard"})],wl.prototype,"currentPage",2);wl=PC([D({components:{Panel:B}})],wl);function G7(e){switch(e){case"Hlsstreamer":return()=>fe(()=>import("./Hlsstreamer-d1b15932.js"),["assets/Hlsstreamer-d1b15932.js","assets/vuetify-4c65b4c3.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-ff51454d.js","assets/Hlsstreamer-f9f189cf.css"]);case"Ipstreamer":return()=>fe(()=>import("./Ipstreamer-d64872ad.js"),["assets/Ipstreamer-d64872ad.js","assets/vuetify-4c65b4c3.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-ff51454d.js","assets/Ipstreamer-f951d43b.css"]);case"JanusStreamer":return()=>fe(()=>import("./JanusStreamer-caeac552.js"),["assets/JanusStreamer-caeac552.js","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-ff51454d.js","assets/vuetify-4c65b4c3.js","assets/vuetify-950d1cb0.css","assets/JanusStreamer-3206d816.css"]);case"JMuxerStream":return()=>fe(()=>import("./JMuxerStream-8716a630.js"),["assets/JMuxerStream-8716a630.js","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/vuetify-4c65b4c3.js","assets/vuetify-950d1cb0.css","assets/echarts-ff51454d.js","assets/JMuxerStream-baf633f9.css"]);case"Mjpegstreamer":return()=>fe(()=>import("./Mjpegstreamer-181c3267.js"),["assets/Mjpegstreamer-181c3267.js","assets/vuetify-4c65b4c3.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-ff51454d.js","assets/Mjpegstreamer-7069622c.css"]);case"MjpegstreamerAdaptive":return()=>fe(()=>import("./MjpegstreamerAdaptive-4819ecfb.js"),["assets/MjpegstreamerAdaptive-4819ecfb.js","assets/vuetify-4c65b4c3.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-ff51454d.js","assets/MjpegstreamerAdaptive-edd84448.css"]);case"Uv4lMjpeg":return()=>fe(()=>import("./Uv4lMjpeg-63b5ce35.js"),["assets/Uv4lMjpeg-63b5ce35.js","assets/vuetify-4c65b4c3.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-ff51454d.js","assets/Uv4lMjpeg-486d8a68.css"]);case"WebrtcCameraStreamer":return()=>fe(()=>import("./WebrtcCameraStreamer-8d1cc452.js"),["assets/WebrtcCameraStreamer-8d1cc452.js","assets/vuetify-4c65b4c3.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-ff51454d.js","assets/WebrtcCameraStreamer-7e0e004c.css"]);case"WebrtcMediaMTX":return()=>fe(()=>import("./WebrtcMediaMTX-2862afdc.js"),["assets/WebrtcMediaMTX-2862afdc.js","assets/vuetify-4c65b4c3.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-ff51454d.js","assets/WebrtcMediaMTX-caefdcd6.css"]);case"WebrtcGo2rtc":return()=>fe(()=>import("./WebrtcGo2rtc-b685b8ad.js"),["assets/WebrtcGo2rtc-b685b8ad.js","assets/vuetify-4c65b4c3.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-ff51454d.js","assets/WebrtcGo2rtc-4ca7d296.css"])}}const gs=e=>y.component(e,G7(e));var z7=Object.defineProperty,Z7=Object.getOwnPropertyDescriptor,$u=(e,s,t,r)=>{for(var i=r>1?void 0:r?Z7(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&z7(s,t,i),i};let Li=class extends M(O){get service(){var e,s;return(s=(e=this.webcam)==null?void 0:e.service)!=null?s:"unknown"}};$u([P({type:Object,required:!0})],Li.prototype,"webcam",2);$u([P({type:Boolean,default:!0})],Li.prototype,"showFps",2);$u([P({default:null})],Li.prototype,"printerUrl",2);Li=$u([D({components:{HlsstreamerAsync:gs("Hlsstreamer"),IpstreamerAsync:gs("Ipstreamer"),JanusStreamerAsync:gs("JanusStreamer"),JMuxerStreamAsync:gs("JMuxerStream"),MjpegstreamerAsync:gs("Mjpegstreamer"),MjpegstreamerAdaptiveAsync:gs("MjpegstreamerAdaptive"),Uv4lMjpegAsync:gs("Uv4lMjpeg"),WebrtcCameraStreamerAsync:gs("WebrtcCameraStreamer"),WebrtcMediaMTXAsync:gs("WebrtcMediaMTX"),WebrtcGo2rtcAsync:gs("WebrtcGo2rtc")}})],Li);var q7=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.service==="mjpegstreamer"?[t("mjpegstreamer-async",{attrs:{"cam-settings":e.webcam,"show-fps":e.showFps,"printer-url":e.printerUrl}})]:e.service==="mjpegstreamer-adaptive"?[t("mjpegstreamer-adaptive-async",{attrs:{"cam-settings":e.webcam,"show-fps":e.showFps,"printer-url":e.printerUrl}})]:e.service==="uv4l-mjpeg"?[t("uv4l-mjpeg-async",{attrs:{"cam-settings":e.webcam,"printer-url":e.printerUrl}})]:e.service==="ipstream"?[t("ipstreamer-async",{attrs:{"cam-settings":e.webcam,"printer-url":e.printerUrl}})]:e.service==="hlsstream"?[t("hlsstreamer-async",{attrs:{"cam-settings":e.webcam,"printer-url":e.printerUrl}})]:e.service==="jmuxer-stream"?[t("j-muxer-stream-async",{attrs:{"cam-settings":e.webcam,"printer-url":e.printerUrl}})]:e.service==="webrtc-camerastreamer"?[t("webrtc-camera-streamer-async",{attrs:{"cam-settings":e.webcam,"printer-url":e.printerUrl}})]:e.service==="webrtc-janus"?[t("janus-streamer-async",{attrs:{"cam-settings":e.webcam,"printer-url":e.printerUrl}})]:e.service==="webrtc-mediamtx"?[t("webrtc-media-m-t-x-async",{attrs:{"cam-settings":e.webcam,"printer-url":e.printerUrl}})]:e.service==="webrtc-go2rtc"?[t("webrtc-go2rtc-async",{attrs:{"cam-settings":e.webcam,"printer-url":e.printerUrl}})]:[t("p",{staticClass:"text-center py-3 font-italic"},[e._v(e._s(e.$t("Panels.WebcamPanel.UnknownWebcamService")))])]],2)},X7=[];const mv={};var Y7=E(Li,q7,X7,!1,J7,null,null,null);function J7(e){for(let s in mv)this[s]=mv[s]}const Om=function(){return Y7.exports}();var K7=Object.defineProperty,Q7=Object.getOwnPropertyDescriptor,xu=(e,s,t,r)=>{for(var i=r>1?void 0:r?Q7(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&K7(s,t,i),i};let Ai=class extends M(O){get webcams(){return this.$store.getters["gui/webcams/getWebcams"]}};xu([P({type:Object,required:!0})],Ai.prototype,"webcam",2);xu([P({type:Boolean,default:!0})],Ai.prototype,"showFps",2);xu([P({type:String,default:null})],Ai.prototype,"printerUrl",2);Ai=xu([D({components:{WebcamWrapperItem:Om}})],Ai);var e8=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.webcam.service==="grid"?[e.webcams?t(Ae,{staticClass:"pb-4",attrs:{fluid:""}},[t($,{attrs:{dense:""}},e._l(e.webcams,function(r){return t(_,{key:r.name,attrs:{cols:"6"}},[t(Om,{attrs:{webcam:r,"printer-url":e.printerUrl,"show-fps":e.showFps}})],1)}),1)],1):e._e()]:[t(Om,{attrs:{webcam:e.webcam,"printer-url":e.printerUrl,"show-fps":e.showFps}})]],2)},t8=[];const hv={};var s8=E(Ai,e8,t8,!1,r8,null,null,null);function r8(e){for(let s in hv)this[s]=hv[s]}const wu=function(){return s8.exports}();var i8=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.socketIsConnected?t(B,{attrs:{icon:e.mdiWebcam,title:e.$t("Panels.WebcamPanel.Headline"),collapsible:e.$route.fullPath!=="/cam","card-class":"webcam-panel","margin-bottom":e.currentPage!=="page"},scopedSlots:e._u([{key:"buttons",fn:function(){return[e.showSwitch?t($e,{attrs:{"offset-y":!0},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({attrs:{text:"",tile:""}},"v-btn",n,!1),i),["icon"in e.currentCam?t(v,{staticClass:"mr-2",attrs:{small:""}},[e._v(" "+e._s(e.convertWebcamIcon(e.currentCam.icon))+" ")]):e._e(),t("span",{staticClass:"d-none d-md-block"},[e._v(e._s("name"in e.currentCam?e.currentCam.name:"unknown"))]),t(v,{attrs:{small:""}},[e._v(e._s(e.mdiMenuDown))])],1)]}}],null,!1,150688541)},[t(Oe,{staticClass:"py-0",attrs:{dense:""}},[t(J,{attrs:{link:""},on:{click:function(r){e.currentCamId="all"}}},[t(Is,{staticClass:"mr-2"},[t(v,{staticClass:"mt-1",attrs:{small:""}},[e._v(e._s(e.mdiViewGrid))])],1),t(vt,[t(Ge,[e._v(e._s(e.$t("Panels.WebcamPanel.All")))])],1)],1),e._l(e.webcams,function(r){return t(J,{key:r.name,attrs:{link:""},on:{click:function(i){e.currentCamId=r.name}}},[t(Is,{staticClass:"mr-2"},[t(v,{staticClass:"mt-1",attrs:{small:""}},[e._v(e._s(e.convertWebcamIcon(r.icon)))])],1),t(vt,[t(Ge,{domProps:{textContent:e._s(r.name)}})],1)],1)})],2)],1):e._e()]},proxy:!0}],null,!1,467766518)},[e.webcams.length?t(q,{staticClass:"px-0 py-0 content d-inline-block"},[t($,[t(_,{staticClass:"pb-0",staticStyle:{position:"relative"}},[t(wu,{attrs:{webcam:e.currentCam}})],1)],1)],1):t(q,[t("p",{staticClass:"text-center mb-0 text--disabled"},[e._v(e._s(e.$t("Panels.WebcamPanel.NoWebcam")))])])],1):e._e()},n8=[];const pv={};var a8=E(wl,i8,n8,!1,o8,null,null,null);function o8(e){for(let s in pv)this[s]=pv[s]}const sf=function(){return a8.exports}();var l8=Object.defineProperty,c8=Object.getOwnPropertyDescriptor,u8=(e,s,t,r)=>{for(var i=r>1?void 0:r?c8(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&l8(s,t,i),i};let Lm=class extends M(Ns){get mobileLayout(){return this.$store.getters["gui/getPanels"]("mobile",0,!0)}get tabletLayout1(){return this.$store.getters["gui/getPanels"]("tablet",1,!0)}get tabletLayout2(){return this.$store.getters["gui/getPanels"]("tablet",2,!0)}get desktopLayout1(){return this.$store.getters["gui/getPanels"]("desktop",1,!0)}get desktopLayout2(){return this.$store.getters["gui/getPanels"]("desktop",2,!0)}get widescreenLayout1(){return this.$store.getters["gui/getPanels"]("widescreen",1,!0)}get widescreenLayout2(){return this.$store.getters["gui/getPanels"]("widescreen",2,!0)}get widescreenLayout3(){return this.$store.getters["gui/getPanels"]("widescreen",3,!0)}extractPanelName(e){return e.split("_")[0]+"-panel"}extractPanelId(e){var s;return(s=e.split("_")[1])!=null?s:null}};Lm=u8([D({components:{ExtruderControlPanel:SE,KlippyStatePanel:Na,MachineSettingsPanel:dO,MacrogroupPanel:_O,MacrosPanel:PO,MiniconsolePanel:JO,MinSettingsPanel:Ip,MiscellaneousPanel:L6,SpoolmanPanel:gL,StatusPanel:Tn,ToolheadControlPanel:Gk,TemperaturePanel:I7,WebcamPanel:sf}})],Lm);var d8=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.isMobile?t($,[t(_,[t(Tn),e._l(e.mobileLayout,function(r){return[t(e.extractPanelName(r.name),{key:"dashboard-mobileLayout-"+r.name,tag:"component",attrs:{"panel-id":e.extractPanelId(r.name)}})]})],2)],1):e.isTablet?t($,[t(_,{staticClass:"col-6"},[t(Tn),e._l(e.tabletLayout1,function(r){return[t(e.extractPanelName(r.name),{key:"dashboard-tabletLayout1-"+r.name,tag:"component",attrs:{"panel-id":e.extractPanelId(r.name)}})]})],2),t(_,{staticClass:"col-6"},[e._l(e.tabletLayout2,function(r){return[t(e.extractPanelName(r.name),{key:"dashboard-tabletLayout2-"+r.name,tag:"component",attrs:{"panel-id":e.extractPanelId(r.name)}})]})],2)],1):e.isDesktop?t($,[t(_,{staticClass:"col-5"},[t(Tn),e._l(e.desktopLayout1,function(r){return[t(e.extractPanelName(r.name),{key:"dashboard-desktopLayout1-"+r.name,tag:"component",attrs:{"panel-id":e.extractPanelId(r.name)}})]})],2),t(_,{staticClass:"col-7"},[e._l(e.desktopLayout2,function(r){return[t(e.extractPanelName(r.name),{key:"dashboard-desktopLayout2-"+r.name,tag:"component",attrs:{"panel-id":e.extractPanelId(r.name)}})]})],2)],1):e.isWidescreen?t($,[t(_,{staticClass:"col-3"},[t(Tn),e._l(e.widescreenLayout1,function(r){return[t(e.extractPanelName(r.name),{key:"dashboard-desktopLayout1-"+r.name,tag:"component",attrs:{"panel-id":e.extractPanelId(r.name)}})]})],2),t(_,{staticClass:"col-5"},[e._l(e.widescreenLayout2,function(r){return[t(e.extractPanelName(r.name),{key:"dashboard-desktopLayout2-"+r.name,tag:"component",attrs:{"panel-id":e.extractPanelId(r.name)}})]})],2),t(_,{staticClass:"col-4"},[e._l(e.widescreenLayout3,function(r){return[t(e.extractPanelName(r.name),{key:"dashboard-desktopLayout3-"+r.name,tag:"component",attrs:{"panel-id":e.extractPanelId(r.name)}})]})],2)],1):e._e()],1)},m8=[];const fv={};var h8=E(Lm,d8,m8,!1,p8,null,null,null);function p8(e){for(let s in fv)this[s]=fv[s]}const f8=function(){return h8.exports}();var g8=Object.defineProperty,v8=Object.getOwnPropertyDescriptor,_8=(e,s,t,r)=>{for(var i=r>1?void 0:r?v8(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&g8(s,t,i),i};let Am=class extends M(O){};Am=_8([D({components:{WebcamPanel:sf}})],Am);var b8=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t($,[t(_,{attrs:{"col-12":""}},[t(sf,{attrs:{"current-page":"page"}})],1)],1)],1)},y8=[];const gv={};var C8=E(Am,b8,y8,!1,$8,null,null,null);function $8(e){for(let s in gv)this[s]=gv[s]}const x8=function(){return C8.exports}();var w8=Object.defineProperty,S8=Object.getOwnPropertyDescriptor,Su=(e,s,t,r)=>{for(var i=r>1?void 0:r?S8(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&w8(s,t,i),i};let ki=class extends M(O,_t,dr){constructor(){super(...arguments),this.mdiPrinter3d=Ha,this.mdiWebcam=sn,this.mdiMenuDown=fr,this.mdiWebcamOff=$3,this.mdiFileOutline=ky,this.imageHeight=200}get printerUrl(){let t=window.location.href.split("/")[0]+"//"+this.printer.socket.hostname;return this.printer.socket.webPort!==80&&(t+=":"+this.printer.socket.webPort),t}get isCurrentPrinter(){return this.$store.getters["farm/"+this.printer._namespace+"/isCurrentPrinter"]}get currentCamName(){return this.$store.getters["farm/"+this.printer._namespace+"/getSetting"]("currentCamName","off")}set currentCamName(e){this.$store.dispatch("farm/"+this.printer._namespace+"/setSettings",{currentCamName:e})}get printer_name(){return this.$store.getters["farm/"+this.printer._namespace+"/getPrinterName"]}get printer_status(){return this.$store.getters["farm/"+this.printer._namespace+"/getStatus"]}get printer_current_filename(){return this.$store.getters["farm/"+this.printer._namespace+"/getCurrentFilename"]}get printer_image(){var e;return this.currentWebcam?this.sidebarBgImage:(e=this.$store.getters["farm/"+this.printer._namespace+"/getImage"])!=null?e:this.sidebarBgImage}get printer_logo(){return this.$store.getters["farm/"+this.printer._namespace+"/getLogo"]}get printerLogoColor(){return this.$store.getters["farm/"+this.printer._namespace+"/getLogoColor"]}get printer_position(){return this.$store.getters["farm/"+this.printer._namespace+"/getPosition"]}get printer_preview(){return this.$store.getters["farm/"+this.printer._namespace+"/getPrinterPreview"]}get showWebcamSwitch(){return this.printer_webcams.length==0?!1:this.printer.socket.isConnected}get printer_webcams(){return this.$store.getters["farm/"+this.printer._namespace+"/getPrinterWebcams"]}get currentWebcam(){var s;const e=(s=this.printer_webcams)==null?void 0:s.find(t=>t.name===this.currentCamName);return e||null}get panelClass(){let e=[];return!this.printer.socket.isConnected&&!this.printer.socket.isConnecting&&e.push("disabledPrinter"),e}clickPrinter(){if(this.printer.socket.isConnected){this.$store.dispatch("changePrinter",{printer:this.printer._namespace});return}this.$store.dispatch("farm/"+this.printer._namespace+"/reconnect")}mounted(){this.calcImageHeight()}calcImageHeight(){var e,s;if((s=(e=this.imageDiv)==null?void 0:e.$el)!=null&&s.clientWidth){this.imageHeight=Math.round(this.imageDiv.$el.clientWidth/3*2);return}this.imageHeight=200}handleResize(){this.$nextTick(()=>{this.calcImageHeight()})}};Su([P({type:Object,required:!0})],ki.prototype,"printer",2);Su([fy()],ki.prototype,"imageDiv",2);Su([qe(200)],ki.prototype,"handleResize",1);ki=Su([D({components:{Panel:B,"webcam-wrapper":wu,"mainsail-logo":rn}})],ki);var P8=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(B,{class:e.panelClass,attrs:{icon:e.mdiPrinter3d,title:e.printer_name,"card-class":"farmprinter-panel",loading:e.printer.socket.isConnecting,"toolbar-color":e.isCurrentPrinter?"primary":""},scopedSlots:e._u([{key:"buttons",fn:function(){return[e.showWebcamSwitch?t($e,{attrs:{"offset-y":!0,title:"Webcam"},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({attrs:{text:""}},"v-btn",n,!1),i),[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiWebcam))]),t(v,{attrs:{small:""}},[e._v(e._s(e.mdiMenuDown))])],1)]}}],null,!1,505444931)},[t(Oe,{staticClass:"py-0",attrs:{dense:""}},[t(J,{attrs:{link:""},on:{click:function(r){e.currentCamName="off"}}},[t(Is,{staticClass:"mr-2"},[t(v,{staticClass:"mt-1",attrs:{small:""}},[e._v(e._s(e.mdiWebcamOff))])],1),t(vt,[t(Ge,[e._v(e._s(e.$t("Panels.FarmPrinterPanel.WebcamOff")))])],1)],1),e._l(e.printer_webcams,function(r){return t(J,{key:r.name,attrs:{link:""},on:{click:function(i){e.currentCamName=r.name}}},[t(Is,{staticClass:"mr-2"},[t(v,{staticClass:"mt-1",attrs:{small:""}},[e._v(e._s(e.convertWebcamIcon(r.icon)))])],1),t(vt,[t(Ge,{domProps:{textContent:e._s(r.name)}})],1)],1)})],2)],1):e._e()]},proxy:!0}])},[t(yP,{scopedSlots:e._u([{key:"default",fn:function(r){var i=r.hover;return[t("div",[t(Fc,{ref:"imageDiv",staticClass:"d-flex align-end",attrs:{height:e.imageHeight,src:e.printer_image}},[e.printer.socket.isConnected&&e.currentCamName!=="off"&&e.currentWebcam&&"service"in e.currentWebcam?t("div",{staticClass:"webcamContainer"},[t(wu,{attrs:{webcam:e.currentWebcam,"printer-url":e.printerUrl,"show-fps":!1}})],1):e._e(),t(gt,{staticClass:"white--text py-2",staticStyle:{"background-color":"rgba(0, 0, 0, 0.3)","backdrop-filter":"blur(3px)"}},[t($,[t(_,{staticClass:"col-auto pr-0 d-flex align-center",staticStyle:{width:"58px"}},[e.printer_logo?t("img",{staticClass:"my-auto",staticStyle:{width:"100%"},attrs:{src:e.printer_logo,alt:"Logo"}}):t(rn,{staticClass:"my-auto",staticStyle:{width:"100%"},attrs:{color:e.printerLogoColor}})],1),t(_,{staticClass:"col",staticStyle:{width:"100px"}},[t("h3",{staticClass:"font-weight-regular"},[e._v(e._s(e.printer_status))]),e.printer_current_filename!==""?t("span",{staticClass:"subtitle-2 text-truncate px-0 text--disabled d-block"},[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(e._s(e.mdiFileOutline))]),e._v(" "+e._s(e.printer_current_filename)+" ")],1):e._e()])],1)],1)],1),e.printer_preview.length?t(q,{staticClass:"px-0 py-2"},[t(Ae,{staticClass:"py-0"},[t($,e._l(e.printer_preview,function(n){return t(_,{key:n.name,class:n.name==="ETA"?"col-auto":"col px-2"},[t("strong",{staticClass:"d-block text-center"},[e._v(e._s(n.name))]),t("span",{staticClass:"d-block text-center"},[e._v(e._s(n.value))])])}),1)],1)],1):e._e(),t(CP,[i?t($P,{attrs:{absolute:"","z-index":4}},[t(g,{attrs:{color:"primary"},on:{click:e.clickPrinter}},[e._v(" "+e._s(e.printer.socket.isConnected?e.$t("Panels.FarmPrinterPanel.SwitchToPrinter"):e.$t("Panels.FarmPrinterPanel.ReconnectToPrinter"))+" ")])],1):e._e()],1)],1)]}}])}),t("resize-observer",{on:{notify:e.handleResize}})],1)},D8=[];const vv={};var T8=E(ki,P8,D8,!1,M8,"69438451",null,null);function M8(e){for(let s in vv)this[s]=vv[s]}const DC=function(){return T8.exports}();var E8=Object.defineProperty,O8=Object.getOwnPropertyDescriptor,L8=(e,s,t,r)=>{for(var i=r>1?void 0:r?O8(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&E8(s,t,i),i};let km=class extends M(O){get printers(){return this.$store.getters["farm/getPrinters"]}};km=L8([D({components:{FarmPrinterPanel:DC}})],km);var A8=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t($,e._l(e.printers,function(r,i){return t(_,{key:i,staticClass:"col-12 col-sm-6 col-md-4 pb-0"},[t(DC,{attrs:{printer:r}})],1)}),1)},k8=[];const _v={};var F8=E(km,A8,k8,!1,R8,null,null,null);function R8(e){for(let s in _v)this[s]=_v[s]}const j8=function(){return F8.exports}();var H8=Object.defineProperty,I8=Object.getOwnPropertyDescriptor,rf=(e,s,t,r)=>{for(var i=r>1?void 0:r?I8(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&H8(s,t,i),i};let aa=class extends M(O){constructor(){super(...arguments),this.gcode="",this.lastCommandNumber=null,this.items=[],this.mdiChevronDoubleRight=Ty,this.mdiSend=t2,this.mdiCog=us,this.mdiTrashCan=u2}get helplist(){var e;return(e=this.$store.state.printer.helplist)!=null?e:[]}get consoleDirection(){var e;return(e=this.$store.state.gui.console.direction)!=null?e:"table"}get events(){return this.$store.getters["server/getConsoleEvents"](this.consoleDirection==="table")}eventsChanged(){this.consoleDirection==="shell"&&this.autoscroll&&setTimeout(()=>{this.scrollToBottom()},50)}autoscrollChanged(e){e&&this.scrollToBottom()}get hideWaitTemperatures(){return this.$store.state.gui.console.hideWaitTemperatures}set hideWaitTemperatures(e){this.$store.dispatch("gui/saveSetting",{name:"console.hideWaitTemperatures",value:e})}clearConsole(){this.$store.dispatch("gui/console/clear")}get hideTlCommands(){return this.$store.state.gui.console.hideWaitTemperatures}set hideTlCommands(e){this.$store.dispatch("gui/saveSetting",{name:"console.hideTlCommands",value:e})}get rows(){var e,s;return(s=(e=this.gcode)==null?void 0:e.split("\n").length)!=null?s:1}get customFilters(){return this.$store.state.gui.console.consolefilters}get lastCommands(){var e;return(e=this.$store.state.gui.gcodehistory.entries)!=null?e:[]}get autoscroll(){var e;return(e=this.$store.state.gui.console.autoscroll)!=null?e:!0}set autoscroll(e){this.$store.dispatch("gui/saveSetting",{name:"console.autoscroll",value:e})}commandClick(e){this.gcode=e,this.$nextTick(()=>{this.$refs.gcodeCommandField.focus()})}doSend(e){e.shiftKey?this.gcode+="\n":this.gcode!==""&&(this.$store.dispatch("printer/sendGcode",this.gcode),this.$store.dispatch("gui/gcodehistory/addToHistory",this.gcode),this.gcode="",this.lastCommandNumber=null,setTimeout(()=>{this.$refs.console.$el.scroll({top:0,left:0,behavior:"smooth"})},20))}onKeyUp(){this.lastCommandNumber===null&&this.lastCommands.length?(this.lastCommandNumber=this.lastCommands.length-1,this.gcode=this.lastCommands[this.lastCommandNumber]):this.lastCommandNumber&&this.lastCommandNumber>0&&(this.lastCommandNumber--,this.gcode=this.lastCommands[this.lastCommandNumber])}onKeyDown(){this.lastCommandNumber!==null&&this.lastCommandNumber<this.lastCommands.length-1?(this.lastCommandNumber++,this.gcode=this.lastCommands[this.lastCommandNumber]):this.lastCommandNumber!==null&&this.lastCommandNumber===this.lastCommands.length-1&&(this.lastCommandNumber=null,this.gcode="")}getAutocomplete(e){if(e.preventDefault(),this.gcode.length){let s=this.gcode.toLowerCase();const t=this.$refs.gcodeCommandField.$refs.input,r=t.value,i=r.length,n=t.selectionStart,a=i-Fp(r).indexOf("\n",i-n),o=r.indexOf("\n",a)>-1?r.indexOf("\n",a)-1:Number.MAX_SAFE_INTEGER;this.rows>1&&(s=r.substr(a,o-a));let l=this.helplist.filter(c=>c.commandLow.startsWith(s.toLowerCase()));if((l==null?void 0:l.length)===1)this.rows>1?this.gcode=this.gcode.replace(s,l[0].command):this.gcode=l[0].command;else if((l==null?void 0:l.length)>1){let c=this.helplist.filter(u=>u.commandLow.startsWith(s.toLowerCase()));if(this.rows>1?this.gcode=this.gcode.replace(s,c.reduce((u,d)=>rl(u,d.command),c[0].command)):this.gcode=c.reduce((u,d)=>rl(u,d.command),c[0].command),c&&c.length){let u="";c.forEach(d=>u+="<a class='command font-weight-bold'>"+d.command+"</a>: "+d.description+"<br />"),this.$store.dispatch("server/addEvent",{message:u,type:"autocomplete"})}}}this.$refs.gcodeCommandField.focus()}toggleFilter(e){this.$store.dispatch("gui/updateConsoleFilter",e)}mounted(){this.consoleDirection==="shell"&&this.scrollToBottom()}scrollToBottom(){this.$nextTick(()=>{if(this.$refs.consoleScroll){const e=this.$refs.consoleScroll.osInstance();e==null||e.scroll({y:"100%"})}})}};rf([me("events")],aa.prototype,"eventsChanged",1);rf([me("autoscroll")],aa.prototype,"autoscrollChanged",1);aa=rf([D({components:{CommandHelpModal:nu,ConsoleTable:ru}})],aa);var N8=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"d-flex flex-column"},[t($,{class:e.consoleDirection==="table"?"order-0":"order-1 mt-3"},[t(_,[t(Bs,{ref:"gcodeCommandField",staticClass:"gcode-command-field",attrs:{items:e.items,label:e.$t("Console.SendCode"),solo:"",autocomplete:"off","no-resize":"","auto-grow":"",rows:e.rows,"hide-details":"",outlined:"",dense:"","prepend-icon":e.isTouchDevice?e.mdiChevronDoubleRight:"","append-icon":e.mdiSend},on:{keydown:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:(r.preventDefault(),r.stopPropagation(),e.doSend.apply(null,arguments))},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"tab",9,r.key,"Tab")?null:e.getAutocomplete.apply(null,arguments)}],keyup:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:e.onKeyUp.apply(null,arguments)},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:e.onKeyDown.apply(null,arguments)}],"click:prepend":e.getAutocomplete,"click:append":e.doSend},model:{value:e.gcode,callback:function(r){e.gcode=r},expression:"gcode"}})],1),t(_,{staticClass:"col-auto d-flex align-center"},[t(g,{staticClass:"mr-3 px-2 minwidth-0",attrs:{color:"lightgray"},on:{click:e.clearConsole}},[t(v,[e._v(e._s(e.mdiTrashCan))])],1),t(nu,{on:{onCommand:function(r){e.gcode=r}}}),t($e,{attrs:{"offset-y":"",top:e.consoleDirection==="shell","close-on-content-click":!1,title:e.$t("Console.SetupConsole")},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"ml-3 px-2 minwidth-0",attrs:{color:"lightgray"}},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.mdiCog))])],1)]}}])},[t(Oe,[e.consoleDirection==="shell"?t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Panels.MiniconsolePanel.Autoscroll")},model:{value:e.autoscroll,callback:function(r){e.autoscroll=r},expression:"autoscroll"}})],1):e._e(),t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Console.HideTemperatures")},model:{value:e.hideWaitTemperatures,callback:function(r){e.hideWaitTemperatures=r},expression:"hideWaitTemperatures"}})],1),e.moonrakerComponents.includes("timelapse")?t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("Console.HideTimelapse")},model:{value:e.hideTlCommands,callback:function(r){e.hideTlCommands=r},expression:"hideTlCommands"}})],1):e._e(),e._l(e.customFilters,function(r,i){return t(J,{key:i,staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:r.name},on:{change:function(n){return e.toggleFilter(r)}},model:{value:r.bool,callback:function(n){e.$set(r,"bool",n)},expression:"filter.bool"}})],1)})],2)],1)],1)],1),t($,{class:e.consoleDirection==="table"?"order-1":"order-0 mt-0"},[t(_,{class:e.consoleDirection==="table"?"col":"col pt-0"},[t(xe,[t(q,{staticClass:"pa-0"},[t("overlay-scrollbars",{ref:"consoleScroll",staticClass:"consoleScrollContainer d-flex flex-column"},[t(ru,{ref:"console",attrs:{"is-mini":!1,events:e.events},on:{"command-click":e.commandClick}})],1)],1)],1)],1)],1)],1)},V8=[];const bv={};var U8=E(aa,N8,V8,!1,B8,"92532d3e",null,null);function B8(e){for(let s in bv)this[s]=bv[s]}const W8=function(){return U8.exports}();var TC={exports:{}};/**!
* Sortable 1.10.2
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function So(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?So=function(s){return typeof s}:So=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},So(e)}function G8(e,s,t){return s in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}function Yt(){return Yt=Object.assign||function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Yt.apply(this,arguments)}function mr(e){for(var s=1;s<arguments.length;s++){var t=arguments[s]!=null?arguments[s]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),r.forEach(function(i){G8(e,i,t[i])})}return e}function z8(e,s){if(e==null)return{};var t={},r=Object.keys(e),i,n;for(n=0;n<r.length;n++)i=r[n],!(s.indexOf(i)>=0)&&(t[i]=e[i]);return t}function Z8(e,s){if(e==null)return{};var t=z8(e,s),r,i;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)r=n[i],!(s.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}function q8(e){return X8(e)||Y8(e)||J8()}function X8(e){if(Array.isArray(e)){for(var s=0,t=new Array(e.length);s<e.length;s++)t[s]=e[s];return t}}function Y8(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function J8(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var K8="1.10.2";function Fs(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Zs=Fs(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ga=Fs(/Edge/i),yv=Fs(/firefox/i),Fm=Fs(/safari/i)&&!Fs(/chrome/i)&&!Fs(/android/i),MC=Fs(/iP(ad|od|hone)/i),Q8=Fs(/chrome/i)&&Fs(/android/i),EC={capture:!1,passive:!1};function Te(e,s,t){e.addEventListener(s,t,!Zs&&EC)}function Se(e,s,t){e.removeEventListener(s,t,!Zs&&EC)}function Sl(e,s){if(s){if(s[0]===">"&&(s=s.substring(1)),e)try{if(e.matches)return e.matches(s);if(e.msMatchesSelector)return e.msMatchesSelector(s);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(s)}catch{return!1}return!1}}function eR(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ss(e,s,t,r){if(e){t=t||document;do{if(s!=null&&(s[0]===">"?e.parentNode===t&&Sl(e,s):Sl(e,s))||r&&e===t)return e;if(e===t)break}while(e=eR(e))}return null}var Cv=/\s+/g;function Ne(e,s,t){if(e&&s)if(e.classList)e.classList[t?"add":"remove"](s);else{var r=(" "+e.className+" ").replace(Cv," ").replace(" "+s+" "," ");e.className=(r+(t?" "+s:"")).replace(Cv," ")}}function ue(e,s,t){var r=e&&e.style;if(r){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(t=e.currentStyle),s===void 0?t:t[s];!(s in r)&&s.indexOf("webkit")===-1&&(s="-webkit-"+s),r[s]=t+(typeof t=="string"?"":"px")}}function Lr(e,s){var t="";if(typeof e=="string")t=e;else do{var r=ue(e,"transform");r&&r!=="none"&&(t=r+" "+t)}while(!s&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(t)}function OC(e,s,t){if(e){var r=e.getElementsByTagName(s),i=0,n=r.length;if(t)for(;i<n;i++)t(r[i],i);return r}return[]}function $s(){var e=document.scrollingElement;return e||document.documentElement}function We(e,s,t,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var n,a,o,l,c,u,d;if(e!==window&&e!==$s()?(n=e.getBoundingClientRect(),a=n.top,o=n.left,l=n.bottom,c=n.right,u=n.height,d=n.width):(a=0,o=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(s||t)&&e!==window&&(i=i||e.parentNode,!Zs))do if(i&&i.getBoundingClientRect&&(ue(i,"transform")!=="none"||t&&ue(i,"position")!=="static")){var m=i.getBoundingClientRect();a-=m.top+parseInt(ue(i,"border-top-width")),o-=m.left+parseInt(ue(i,"border-left-width")),l=a+n.height,c=o+n.width;break}while(i=i.parentNode);if(r&&e!==window){var h=Lr(i||e),p=h&&h.a,f=h&&h.d;h&&(a/=f,o/=p,d/=p,u/=f,l=a+u,c=o+d)}return{top:a,left:o,bottom:l,right:c,width:d,height:u}}}function $v(e,s,t){for(var r=er(e,!0),i=We(e)[s];r;){var n=We(r)[t],a=void 0;if(t==="top"||t==="left"?a=i>=n:a=i<=n,!a)return r;if(r===$s())break;r=er(r,!1)}return!1}function Pl(e,s,t){for(var r=0,i=0,n=e.children;i<n.length;){if(n[i].style.display!=="none"&&n[i]!==ge.ghost&&n[i]!==ge.dragged&&ss(n[i],t.draggable,e,!1)){if(r===s)return n[i];r++}i++}return null}function nf(e,s){for(var t=e.lastElementChild;t&&(t===ge.ghost||ue(t,"display")==="none"||s&&!Sl(t,s));)t=t.previousElementSibling;return t||null}function Be(e,s){var t=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==ge.clone&&(!s||Sl(e,s))&&t++;return t}function xv(e){var s=0,t=0,r=$s();if(e)do{var i=Lr(e),n=i.a,a=i.d;s+=e.scrollLeft*n,t+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[s,t]}function tR(e,s){for(var t in e)if(e.hasOwnProperty(t)){for(var r in s)if(s.hasOwnProperty(r)&&s[r]===e[t][r])return Number(t)}return-1}function er(e,s){if(!e||!e.getBoundingClientRect)return $s();var t=e,r=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var i=ue(t);if(t.clientWidth<t.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return $s();if(r||s)return t;r=!0}}while(t=t.parentNode);return $s()}function sR(e,s){if(e&&s)for(var t in s)s.hasOwnProperty(t)&&(e[t]=s[t]);return e}function fd(e,s){return Math.round(e.top)===Math.round(s.top)&&Math.round(e.left)===Math.round(s.left)&&Math.round(e.height)===Math.round(s.height)&&Math.round(e.width)===Math.round(s.width)}var Fn;function LC(e,s){return function(){if(!Fn){var t=arguments,r=this;t.length===1?e.call(r,t[0]):e.apply(r,t),Fn=setTimeout(function(){Fn=void 0},s)}}}function rR(){clearTimeout(Fn),Fn=void 0}function AC(e,s,t){e.scrollLeft+=s,e.scrollTop+=t}function af(e){var s=window.Polymer,t=window.jQuery||window.Zepto;return s&&s.dom?s.dom(e).cloneNode(!0):t?t(e).clone(!0)[0]:e.cloneNode(!0)}function wv(e,s){ue(e,"position","absolute"),ue(e,"top",s.top),ue(e,"left",s.left),ue(e,"width",s.width),ue(e,"height",s.height)}function gd(e){ue(e,"position",""),ue(e,"top",""),ue(e,"left",""),ue(e,"width",""),ue(e,"height","")}var ft="Sortable"+new Date().getTime();function iR(){var e=[],s;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(ue(i,"display")==="none"||i===ge.ghost)){e.push({target:i,rect:We(i)});var n=mr({},e[e.length-1].rect);if(i.thisAnimationDuration){var a=Lr(i,!0);a&&(n.top-=a.f,n.left-=a.e)}i.fromRect=n}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(tR(e,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(s),typeof r=="function"&&r();return}var n=!1,a=0;e.forEach(function(o){var l=0,c=o.target,u=c.fromRect,d=We(c),m=c.prevFromRect,h=c.prevToRect,p=o.rect,f=Lr(c,!0);f&&(d.top-=f.f,d.left-=f.e),c.toRect=d,c.thisAnimationDuration&&fd(m,d)&&!fd(u,d)&&(p.top-d.top)/(p.left-d.left)===(u.top-d.top)/(u.left-d.left)&&(l=aR(p,m,h,i.options)),fd(d,u)||(c.prevFromRect=u,c.prevToRect=d,l||(l=i.options.animation),i.animate(c,p,d,l)),l&&(n=!0,a=Math.max(a,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(s),n?s=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),e=[]},animate:function(r,i,n,a){if(a){ue(r,"transition",""),ue(r,"transform","");var o=Lr(this.el),l=o&&o.a,c=o&&o.d,u=(i.left-n.left)/(l||1),d=(i.top-n.top)/(c||1);r.animatingX=!!u,r.animatingY=!!d,ue(r,"transform","translate3d("+u+"px,"+d+"px,0)"),nR(r),ue(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),ue(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){ue(r,"transition",""),ue(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function nR(e){return e.offsetWidth}function aR(e,s,t,r){return Math.sqrt(Math.pow(s.top-e.top,2)+Math.pow(s.left-e.left,2))/Math.sqrt(Math.pow(s.top-t.top,2)+Math.pow(s.left-t.left,2))*r.animation}var fn=[],vd={initializeByDefault:!0},za={mount:function(s){for(var t in vd)vd.hasOwnProperty(t)&&!(t in s)&&(s[t]=vd[t]);fn.push(s)},pluginEvent:function(s,t,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var n=s+"Global";fn.forEach(function(a){t[a.pluginName]&&(t[a.pluginName][n]&&t[a.pluginName][n](mr({sortable:t},r)),t.options[a.pluginName]&&t[a.pluginName][s]&&t[a.pluginName][s](mr({sortable:t},r)))})},initializePlugins:function(s,t,r,i){fn.forEach(function(o){var l=o.pluginName;if(!(!s.options[l]&&!o.initializeByDefault)){var c=new o(s,t,s.options);c.sortable=s,c.options=s.options,s[l]=c,Yt(r,c.defaults)}});for(var n in s.options)if(s.options.hasOwnProperty(n)){var a=this.modifyOption(s,n,s.options[n]);typeof a<"u"&&(s.options[n]=a)}},getEventProperties:function(s,t){var r={};return fn.forEach(function(i){typeof i.eventProperties=="function"&&Yt(r,i.eventProperties.call(t[i.pluginName],s))}),r},modifyOption:function(s,t,r){var i;return fn.forEach(function(n){s[n.pluginName]&&n.optionListeners&&typeof n.optionListeners[t]=="function"&&(i=n.optionListeners[t].call(s[n.pluginName],r))}),i}};function Mn(e){var s=e.sortable,t=e.rootEl,r=e.name,i=e.targetEl,n=e.cloneEl,a=e.toEl,o=e.fromEl,l=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,m=e.originalEvent,h=e.putSortable,p=e.extraEventProperties;if(s=s||t&&t[ft],!!s){var f,b=s.options,C="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Zs&&!Ga?f=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(f=document.createEvent("Event"),f.initEvent(r,!0,!0)),f.to=a||t,f.from=o||t,f.item=i||t,f.clone=n,f.oldIndex=l,f.newIndex=c,f.oldDraggableIndex=u,f.newDraggableIndex=d,f.originalEvent=m,f.pullMode=h?h.lastPutMode:void 0;var S=mr({},p,za.getEventProperties(r,s));for(var L in S)f[L]=S[L];t&&t.dispatchEvent(f),b[C]&&b[C].call(s,f)}}var Mt=function(s,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,n=Z8(r,["evt"]);za.pluginEvent.bind(ge)(s,t,mr({dragEl:ie,parentEl:Xe,ghostEl:Ce,rootEl:Ie,nextEl:xr,lastDownEl:Po,cloneEl:Ue,cloneHidden:Js,dragStarted:En,putSortable:ut,activeSortable:ge.active,originalEvent:i,oldIndex:di,oldDraggableIndex:Rn,newIndex:It,newDraggableIndex:Ys,hideGhostForTarget:jC,unhideGhostForTarget:HC,cloneNowHidden:function(){Js=!0},cloneNowShown:function(){Js=!1},dispatchSortableEvent:function(o){yt({sortable:t,name:o,originalEvent:i})}},n))};function yt(e){Mn(mr({putSortable:ut,cloneEl:Ue,targetEl:ie,rootEl:Ie,oldIndex:di,oldDraggableIndex:Rn,newIndex:It,newDraggableIndex:Ys},e))}var ie,Xe,Ce,Ie,xr,Po,Ue,Js,di,It,Rn,Ys,oo,ut,ci=!1,Dl=!1,Tl=[],yr,Kt,_d,bd,Sv,Pv,En,ri,jn,Hn=!1,lo=!1,Do,pt,yd=[],Rm=!1,Ml=[],Pu=typeof document<"u",co=MC,Dv=Ga||Zs?"cssFloat":"float",oR=Pu&&!Q8&&!MC&&"draggable"in document.createElement("div"),kC=function(){if(Pu){if(Zs)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),FC=function(s,t){var r=ue(s),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),n=Pl(s,0,t),a=Pl(s,1,t),o=n&&ue(n),l=a&&ue(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+We(n).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+We(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(n&&o.float&&o.float!=="none"){var d=o.float==="left"?"left":"right";return a&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return n&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||c>=i&&r[Dv]==="none"||a&&r[Dv]==="none"&&c+u>i)?"vertical":"horizontal"},lR=function(s,t,r){var i=r?s.left:s.top,n=r?s.right:s.bottom,a=r?s.width:s.height,o=r?t.left:t.top,l=r?t.right:t.bottom,c=r?t.width:t.height;return i===o||n===l||i+a/2===o+c/2},cR=function(s,t){var r;return Tl.some(function(i){if(!nf(i)){var n=We(i),a=i[ft].options.emptyInsertThreshold,o=s>=n.left-a&&s<=n.right+a,l=t>=n.top-a&&t<=n.bottom+a;if(a&&o&&l)return r=i}}),r},RC=function(s){function t(n,a){return function(o,l,c,u){var d=o.options.group.name&&l.options.group.name&&o.options.group.name===l.options.group.name;if(n==null&&(a||d))return!0;if(n==null||n===!1)return!1;if(a&&n==="clone")return n;if(typeof n=="function")return t(n(o,l,c,u),a)(o,l,c,u);var m=(a?o:l).options.group.name;return n===!0||typeof n=="string"&&n===m||n.join&&n.indexOf(m)>-1}}var r={},i=s.group;(!i||So(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=t(i.pull,!0),r.checkPut=t(i.put),r.revertClone=i.revertClone,s.group=r},jC=function(){!kC&&Ce&&ue(Ce,"display","none")},HC=function(){!kC&&Ce&&ue(Ce,"display","")};Pu&&document.addEventListener("click",function(e){if(Dl)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Dl=!1,!1},!0);var Cr=function(s){if(ie){s=s.touches?s.touches[0]:s;var t=cR(s.clientX,s.clientY);if(t){var r={};for(var i in s)s.hasOwnProperty(i)&&(r[i]=s[i]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[ft]._onDragOver(r)}}},uR=function(s){ie&&ie.parentNode[ft]._isOutsideThisEl(s.target)};function ge(e,s){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=s=Yt({},s),e[ft]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return FC(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,o){a.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ge.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};za.initializePlugins(this,e,t);for(var r in t)!(r in s)&&(s[r]=t[r]);RC(s);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=s.forceFallback?!1:oR,this.nativeDraggable&&(this.options.touchStartThreshold=1),s.supportPointer?Te(e,"pointerdown",this._onTapStart):(Te(e,"mousedown",this._onTapStart),Te(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Te(e,"dragover",this),Te(e,"dragenter",this)),Tl.push(this.el),s.store&&s.store.get&&this.sort(s.store.get(this)||[]),Yt(this,iR())}ge.prototype={constructor:ge,_isOutsideThisEl:function(s){!this.el.contains(s)&&s!==this.el&&(ri=null)},_getDirection:function(s,t){return typeof this.options.direction=="function"?this.options.direction.call(this,s,t,ie):this.options.direction},_onTapStart:function(s){if(s.cancelable){var t=this,r=this.el,i=this.options,n=i.preventOnFilter,a=s.type,o=s.touches&&s.touches[0]||s.pointerType&&s.pointerType==="touch"&&s,l=(o||s).target,c=s.target.shadowRoot&&(s.path&&s.path[0]||s.composedPath&&s.composedPath()[0])||l,u=i.filter;if(vR(r),!ie&&!(/mousedown|pointerdown/.test(a)&&s.button!==0||i.disabled)&&!c.isContentEditable&&(l=ss(l,i.draggable,r,!1),!(l&&l.animated)&&Po!==l)){if(di=Be(l),Rn=Be(l,i.draggable),typeof u=="function"){if(u.call(this,s,l,this)){yt({sortable:t,rootEl:c,name:"filter",targetEl:l,toEl:r,fromEl:r}),Mt("filter",t,{evt:s}),n&&s.cancelable&&s.preventDefault();return}}else if(u&&(u=u.split(",").some(function(d){if(d=ss(c,d.trim(),r,!1),d)return yt({sortable:t,rootEl:d,name:"filter",targetEl:l,fromEl:r,toEl:r}),Mt("filter",t,{evt:s}),!0}),u)){n&&s.cancelable&&s.preventDefault();return}i.handle&&!ss(c,i.handle,r,!1)||this._prepareDragStart(s,o,l)}}},_prepareDragStart:function(s,t,r){var i=this,n=i.el,a=i.options,o=n.ownerDocument,l;if(r&&!ie&&r.parentNode===n){var c=We(r);if(Ie=n,ie=r,Xe=ie.parentNode,xr=ie.nextSibling,Po=r,oo=a.group,ge.dragged=ie,yr={target:ie,clientX:(t||s).clientX,clientY:(t||s).clientY},Sv=yr.clientX-c.left,Pv=yr.clientY-c.top,this._lastX=(t||s).clientX,this._lastY=(t||s).clientY,ie.style["will-change"]="all",l=function(){if(Mt("delayEnded",i,{evt:s}),ge.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!yv&&i.nativeDraggable&&(ie.draggable=!0),i._triggerDragStart(s,t),yt({sortable:i,name:"choose",originalEvent:s}),Ne(ie,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){OC(ie,u.trim(),$d)}),Te(o,"dragover",Cr),Te(o,"mousemove",Cr),Te(o,"touchmove",Cr),Te(o,"mouseup",i._onDrop),Te(o,"touchend",i._onDrop),Te(o,"touchcancel",i._onDrop),yv&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ie.draggable=!0),Mt("delayStart",this,{evt:s}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Ga||Zs))){if(ge.eventCanceled){this._onDrop();return}Te(o,"mouseup",i._disableDelayedDrag),Te(o,"touchend",i._disableDelayedDrag),Te(o,"touchcancel",i._disableDelayedDrag),Te(o,"mousemove",i._delayedDragTouchMoveHandler),Te(o,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&Te(o,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,a.delay)}else l()}},_delayedDragTouchMoveHandler:function(s){var t=s.touches?s.touches[0]:s;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ie&&$d(ie),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var s=this.el.ownerDocument;Se(s,"mouseup",this._disableDelayedDrag),Se(s,"touchend",this._disableDelayedDrag),Se(s,"touchcancel",this._disableDelayedDrag),Se(s,"mousemove",this._delayedDragTouchMoveHandler),Se(s,"touchmove",this._delayedDragTouchMoveHandler),Se(s,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(s,t){t=t||s.pointerType=="touch"&&s,!this.nativeDraggable||t?this.options.supportPointer?Te(document,"pointermove",this._onTouchMove):t?Te(document,"touchmove",this._onTouchMove):Te(document,"mousemove",this._onTouchMove):(Te(ie,"dragend",this),Te(Ie,"dragstart",this._onDragStart));try{document.selection?To(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(s,t){if(ci=!1,Ie&&ie){Mt("dragStarted",this,{evt:t}),this.nativeDraggable&&Te(document,"dragover",uR);var r=this.options;!s&&Ne(ie,r.dragClass,!1),Ne(ie,r.ghostClass,!0),ge.active=this,s&&this._appendGhost(),yt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Kt){this._lastX=Kt.clientX,this._lastY=Kt.clientY,jC();for(var s=document.elementFromPoint(Kt.clientX,Kt.clientY),t=s;s&&s.shadowRoot&&(s=s.shadowRoot.elementFromPoint(Kt.clientX,Kt.clientY),s!==t);)t=s;if(ie.parentNode[ft]._isOutsideThisEl(s),t)do{if(t[ft]){var r=void 0;if(r=t[ft]._onDragOver({clientX:Kt.clientX,clientY:Kt.clientY,target:s,rootEl:t}),r&&!this.options.dragoverBubble)break}s=t}while(t=t.parentNode);HC()}},_onTouchMove:function(s){if(yr){var t=this.options,r=t.fallbackTolerance,i=t.fallbackOffset,n=s.touches?s.touches[0]:s,a=Ce&&Lr(Ce,!0),o=Ce&&a&&a.a,l=Ce&&a&&a.d,c=co&&pt&&xv(pt),u=(n.clientX-yr.clientX+i.x)/(o||1)+(c?c[0]-yd[0]:0)/(o||1),d=(n.clientY-yr.clientY+i.y)/(l||1)+(c?c[1]-yd[1]:0)/(l||1);if(!ge.active&&!ci){if(r&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))<r)return;this._onDragStart(s,!0)}if(Ce){a?(a.e+=u-(_d||0),a.f+=d-(bd||0)):a={a:1,b:0,c:0,d:1,e:u,f:d};var m="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");ue(Ce,"webkitTransform",m),ue(Ce,"mozTransform",m),ue(Ce,"msTransform",m),ue(Ce,"transform",m),_d=u,bd=d,Kt=n}s.cancelable&&s.preventDefault()}},_appendGhost:function(){if(!Ce){var s=this.options.fallbackOnBody?document.body:Ie,t=We(ie,!0,co,!0,s),r=this.options;if(co){for(pt=s;ue(pt,"position")==="static"&&ue(pt,"transform")==="none"&&pt!==document;)pt=pt.parentNode;pt!==document.body&&pt!==document.documentElement?(pt===document&&(pt=$s()),t.top+=pt.scrollTop,t.left+=pt.scrollLeft):pt=$s(),yd=xv(pt)}Ce=ie.cloneNode(!0),Ne(Ce,r.ghostClass,!1),Ne(Ce,r.fallbackClass,!0),Ne(Ce,r.dragClass,!0),ue(Ce,"transition",""),ue(Ce,"transform",""),ue(Ce,"box-sizing","border-box"),ue(Ce,"margin",0),ue(Ce,"top",t.top),ue(Ce,"left",t.left),ue(Ce,"width",t.width),ue(Ce,"height",t.height),ue(Ce,"opacity","0.8"),ue(Ce,"position",co?"absolute":"fixed"),ue(Ce,"zIndex","100000"),ue(Ce,"pointerEvents","none"),ge.ghost=Ce,s.appendChild(Ce),ue(Ce,"transform-origin",Sv/parseInt(Ce.style.width)*100+"% "+Pv/parseInt(Ce.style.height)*100+"%")}},_onDragStart:function(s,t){var r=this,i=s.dataTransfer,n=r.options;if(Mt("dragStart",this,{evt:s}),ge.eventCanceled){this._onDrop();return}Mt("setupClone",this),ge.eventCanceled||(Ue=af(ie),Ue.draggable=!1,Ue.style["will-change"]="",this._hideClone(),Ne(Ue,this.options.chosenClass,!1),ge.clone=Ue),r.cloneId=To(function(){Mt("clone",r),!ge.eventCanceled&&(r.options.removeCloneOnHide||Ie.insertBefore(Ue,ie),r._hideClone(),yt({sortable:r,name:"clone"}))}),!t&&Ne(ie,n.dragClass,!0),t?(Dl=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Se(document,"mouseup",r._onDrop),Se(document,"touchend",r._onDrop),Se(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",n.setData&&n.setData.call(r,i,ie)),Te(document,"drop",r),ue(ie,"transform","translateZ(0)")),ci=!0,r._dragStartId=To(r._dragStarted.bind(r,t,s)),Te(document,"selectstart",r),En=!0,Fm&&ue(document.body,"user-select","none")},_onDragOver:function(s){var t=this.el,r=s.target,i,n,a,o=this.options,l=o.group,c=ge.active,u=oo===l,d=o.sort,m=ut||c,h,p=this,f=!1;if(Rm)return;function b(ee,se){Mt(ee,p,mr({evt:s,isOwner:u,axis:h?"vertical":"horizontal",revert:a,dragRect:i,targetRect:n,canSort:d,fromSortable:m,target:r,completed:S,onMove:function(z,w){return Cd(Ie,t,ie,i,z,We(z),s,w)},changed:L},se))}function C(){b("dragOverAnimationCapture"),p.captureAnimationState(),p!==m&&m.captureAnimationState()}function S(ee){return b("dragOverCompleted",{insertion:ee}),ee&&(u?c._hideClone():c._showClone(p),p!==m&&(Ne(ie,ut?ut.options.ghostClass:c.options.ghostClass,!1),Ne(ie,o.ghostClass,!0)),ut!==p&&p!==ge.active?ut=p:p===ge.active&&ut&&(ut=null),m===p&&(p._ignoreWhileAnimating=r),p.animateAll(function(){b("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(r===ie&&!ie.animated||r===t&&!r.animated)&&(ri=null),!o.dragoverBubble&&!s.rootEl&&r!==document&&(ie.parentNode[ft]._isOutsideThisEl(s.target),!ee&&Cr(s)),!o.dragoverBubble&&s.stopPropagation&&s.stopPropagation(),f=!0}function L(){It=Be(ie),Ys=Be(ie,o.draggable),yt({sortable:p,name:"change",toEl:t,newIndex:It,newDraggableIndex:Ys,originalEvent:s})}if(s.preventDefault!==void 0&&s.cancelable&&s.preventDefault(),r=ss(r,o.draggable,t,!0),b("dragOver"),ge.eventCanceled)return f;if(ie.contains(s.target)||r.animated&&r.animatingX&&r.animatingY||p._ignoreWhileAnimating===r)return S(!1);if(Dl=!1,c&&!o.disabled&&(u?d||(a=!Ie.contains(ie)):ut===this||(this.lastPutMode=oo.checkPull(this,c,ie,s))&&l.checkPut(this,c,ie,s))){if(h=this._getDirection(s,r)==="vertical",i=We(ie),b("dragOverValid"),ge.eventCanceled)return f;if(a)return Xe=Ie,C(),this._hideClone(),b("revert"),ge.eventCanceled||(xr?Ie.insertBefore(ie,xr):Ie.appendChild(ie)),S(!0);var N=nf(t,o.draggable);if(!N||hR(s,h,this)&&!N.animated){if(N===ie)return S(!1);if(N&&t===s.target&&(r=N),r&&(n=We(r)),Cd(Ie,t,ie,i,r,n,s,!!r)!==!1)return C(),t.appendChild(ie),Xe=t,L(),S(!0)}else if(r.parentNode===t){n=We(r);var R=0,x,T=ie.parentNode!==t,I=!lR(ie.animated&&ie.toRect||i,r.animated&&r.toRect||n,h),j=h?"top":"left",W=$v(r,"top","top")||$v(ie,"top","top"),Z=W?W.scrollTop:void 0;ri!==r&&(x=n[j],Hn=!1,lo=!I&&o.invertSwap||T),R=pR(s,r,n,h,I?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,lo,ri===r);var re;if(R!==0){var k=Be(ie);do k-=R,re=Xe.children[k];while(re&&(ue(re,"display")==="none"||re===Ce))}if(R===0||re===r)return S(!1);ri=r,jn=R;var G=r.nextElementSibling,X=!1;X=R===1;var Y=Cd(Ie,t,ie,i,r,n,s,X);if(Y!==!1)return(Y===1||Y===-1)&&(X=Y===1),Rm=!0,setTimeout(mR,30),C(),X&&!G?t.appendChild(ie):r.parentNode.insertBefore(ie,X?G:r),W&&AC(W,0,Z-W.scrollTop),Xe=ie.parentNode,x!==void 0&&!lo&&(Do=Math.abs(x-We(r)[j])),L(),S(!0)}if(t.contains(ie))return S(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Se(document,"mousemove",this._onTouchMove),Se(document,"touchmove",this._onTouchMove),Se(document,"pointermove",this._onTouchMove),Se(document,"dragover",Cr),Se(document,"mousemove",Cr),Se(document,"touchmove",Cr)},_offUpEvents:function(){var s=this.el.ownerDocument;Se(s,"mouseup",this._onDrop),Se(s,"touchend",this._onDrop),Se(s,"pointerup",this._onDrop),Se(s,"touchcancel",this._onDrop),Se(document,"selectstart",this)},_onDrop:function(s){var t=this.el,r=this.options;if(It=Be(ie),Ys=Be(ie,r.draggable),Mt("drop",this,{evt:s}),Xe=ie&&ie.parentNode,It=Be(ie),Ys=Be(ie,r.draggable),ge.eventCanceled){this._nulling();return}ci=!1,lo=!1,Hn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),jm(this.cloneId),jm(this._dragStartId),this.nativeDraggable&&(Se(document,"drop",this),Se(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Fm&&ue(document.body,"user-select",""),ue(ie,"transform",""),s&&(En&&(s.cancelable&&s.preventDefault(),!r.dropBubble&&s.stopPropagation()),Ce&&Ce.parentNode&&Ce.parentNode.removeChild(Ce),(Ie===Xe||ut&&ut.lastPutMode!=="clone")&&Ue&&Ue.parentNode&&Ue.parentNode.removeChild(Ue),ie&&(this.nativeDraggable&&Se(ie,"dragend",this),$d(ie),ie.style["will-change"]="",En&&!ci&&Ne(ie,ut?ut.options.ghostClass:this.options.ghostClass,!1),Ne(ie,this.options.chosenClass,!1),yt({sortable:this,name:"unchoose",toEl:Xe,newIndex:null,newDraggableIndex:null,originalEvent:s}),Ie!==Xe?(It>=0&&(yt({rootEl:Xe,name:"add",toEl:Xe,fromEl:Ie,originalEvent:s}),yt({sortable:this,name:"remove",toEl:Xe,originalEvent:s}),yt({rootEl:Xe,name:"sort",toEl:Xe,fromEl:Ie,originalEvent:s}),yt({sortable:this,name:"sort",toEl:Xe,originalEvent:s})),ut&&ut.save()):It!==di&&It>=0&&(yt({sortable:this,name:"update",toEl:Xe,originalEvent:s}),yt({sortable:this,name:"sort",toEl:Xe,originalEvent:s})),ge.active&&((It==null||It===-1)&&(It=di,Ys=Rn),yt({sortable:this,name:"end",toEl:Xe,originalEvent:s}),this.save()))),this._nulling()},_nulling:function(){Mt("nulling",this),Ie=ie=Xe=Ce=xr=Ue=Po=Js=yr=Kt=En=It=Ys=di=Rn=ri=jn=ut=oo=ge.dragged=ge.ghost=ge.clone=ge.active=null,Ml.forEach(function(s){s.checked=!0}),Ml.length=_d=bd=0},handleEvent:function(s){switch(s.type){case"drop":case"dragend":this._onDrop(s);break;case"dragenter":case"dragover":ie&&(this._onDragOver(s),dR(s));break;case"selectstart":s.preventDefault();break}},toArray:function(){for(var s=[],t,r=this.el.children,i=0,n=r.length,a=this.options;i<n;i++)t=r[i],ss(t,a.draggable,this.el,!1)&&s.push(t.getAttribute(a.dataIdAttr)||gR(t));return s},sort:function(s){var t={},r=this.el;this.toArray().forEach(function(i,n){var a=r.children[n];ss(a,this.options.draggable,r,!1)&&(t[i]=a)},this),s.forEach(function(i){t[i]&&(r.removeChild(t[i]),r.appendChild(t[i]))})},save:function(){var s=this.options.store;s&&s.set&&s.set(this)},closest:function(s,t){return ss(s,t||this.options.draggable,this.el,!1)},option:function(s,t){var r=this.options;if(t===void 0)return r[s];var i=za.modifyOption(this,s,t);typeof i<"u"?r[s]=i:r[s]=t,s==="group"&&RC(r)},destroy:function(){Mt("destroy",this);var s=this.el;s[ft]=null,Se(s,"mousedown",this._onTapStart),Se(s,"touchstart",this._onTapStart),Se(s,"pointerdown",this._onTapStart),this.nativeDraggable&&(Se(s,"dragover",this),Se(s,"dragenter",this)),Array.prototype.forEach.call(s.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Tl.splice(Tl.indexOf(this.el),1),this.el=s=null},_hideClone:function(){if(!Js){if(Mt("hideClone",this),ge.eventCanceled)return;ue(Ue,"display","none"),this.options.removeCloneOnHide&&Ue.parentNode&&Ue.parentNode.removeChild(Ue),Js=!0}},_showClone:function(s){if(s.lastPutMode!=="clone"){this._hideClone();return}if(Js){if(Mt("showClone",this),ge.eventCanceled)return;Ie.contains(ie)&&!this.options.group.revertClone?Ie.insertBefore(Ue,ie):xr?Ie.insertBefore(Ue,xr):Ie.appendChild(Ue),this.options.group.revertClone&&this.animate(ie,Ue),ue(Ue,"display",""),Js=!1}}};function dR(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Cd(e,s,t,r,i,n,a,o){var l,c=e[ft],u=c.options.onMove,d;return window.CustomEvent&&!Zs&&!Ga?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=s,l.from=e,l.dragged=t,l.draggedRect=r,l.related=i||s,l.relatedRect=n||We(s),l.willInsertAfter=o,l.originalEvent=a,e.dispatchEvent(l),u&&(d=u.call(c,l,a)),d}function $d(e){e.draggable=!1}function mR(){Rm=!1}function hR(e,s,t){var r=We(nf(t.el,t.options.draggable)),i=10;return s?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function pR(e,s,t,r,i,n,a,o){var l=r?e.clientY:e.clientX,c=r?t.height:t.width,u=r?t.top:t.left,d=r?t.bottom:t.right,m=!1;if(!a){if(o&&Do<c*i){if(!Hn&&(jn===1?l>u+c*n/2:l<d-c*n/2)&&(Hn=!0),Hn)m=!0;else if(jn===1?l<u+Do:l>d-Do)return-jn}else if(l>u+c*(1-i)/2&&l<d-c*(1-i)/2)return fR(s)}return m=m||a,m&&(l<u+c*n/2||l>d-c*n/2)?l>u+c/2?1:-1:0}function fR(e){return Be(ie)<Be(e)?1:-1}function gR(e){for(var s=e.tagName+e.className+e.src+e.href+e.textContent,t=s.length,r=0;t--;)r+=s.charCodeAt(t);return r.toString(36)}function vR(e){Ml.length=0;for(var s=e.getElementsByTagName("input"),t=s.length;t--;){var r=s[t];r.checked&&Ml.push(r)}}function To(e){return setTimeout(e,0)}function jm(e){return clearTimeout(e)}Pu&&Te(document,"touchmove",function(e){(ge.active||ci)&&e.cancelable&&e.preventDefault()});ge.utils={on:Te,off:Se,css:ue,find:OC,is:function(s,t){return!!ss(s,t,s,!1)},extend:sR,throttle:LC,closest:ss,toggleClass:Ne,clone:af,index:Be,nextTick:To,cancelNextTick:jm,detectDirection:FC,getChild:Pl};ge.get=function(e){return e[ft]};ge.mount=function(){for(var e=arguments.length,s=new Array(e),t=0;t<e;t++)s[t]=arguments[t];s[0].constructor===Array&&(s=s[0]),s.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(ge.utils=mr({},ge.utils,r.utils)),za.mount(r)})};ge.create=function(e,s){return new ge(e,s)};ge.version=K8;var Ye=[],On,Hm,Im=!1,xd,wd,El,Ln;function _R(){function e(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var s in this)s.charAt(0)==="_"&&typeof this[s]=="function"&&(this[s]=this[s].bind(this))}return e.prototype={dragStarted:function(t){var r=t.originalEvent;this.sortable.nativeDraggable?Te(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Te(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Te(document,"touchmove",this._handleFallbackAutoScroll):Te(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Se(document,"dragover",this._handleAutoScroll):(Se(document,"pointermove",this._handleFallbackAutoScroll),Se(document,"touchmove",this._handleFallbackAutoScroll),Se(document,"mousemove",this._handleFallbackAutoScroll)),Tv(),Mo(),rR()},nulling:function(){El=Hm=On=Im=Ln=xd=wd=null,Ye.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,r){var i=this,n=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(n,a);if(El=t,r||Ga||Zs||Fm){Sd(t,this.options,o,r);var l=er(o,!0);Im&&(!Ln||n!==xd||a!==wd)&&(Ln&&Tv(),Ln=setInterval(function(){var c=er(document.elementFromPoint(n,a),!0);c!==l&&(l=c,Mo()),Sd(t,i.options,c,r)},10),xd=n,wd=a)}else{if(!this.options.bubbleScroll||er(o,!0)===$s()){Mo();return}Sd(t,this.options,er(o,!1),!1)}}},Yt(e,{pluginName:"scroll",initializeByDefault:!0})}function Mo(){Ye.forEach(function(e){clearInterval(e.pid)}),Ye=[]}function Tv(){clearInterval(Ln)}var Sd=LC(function(e,s,t,r){if(s.scroll){var i=(e.touches?e.touches[0]:e).clientX,n=(e.touches?e.touches[0]:e).clientY,a=s.scrollSensitivity,o=s.scrollSpeed,l=$s(),c=!1,u;Hm!==t&&(Hm=t,Mo(),On=s.scroll,u=s.scrollFn,On===!0&&(On=er(t,!0)));var d=0,m=On;do{var h=m,p=We(h),f=p.top,b=p.bottom,C=p.left,S=p.right,L=p.width,N=p.height,R=void 0,x=void 0,T=h.scrollWidth,I=h.scrollHeight,j=ue(h),W=h.scrollLeft,Z=h.scrollTop;h===l?(R=L<T&&(j.overflowX==="auto"||j.overflowX==="scroll"||j.overflowX==="visible"),x=N<I&&(j.overflowY==="auto"||j.overflowY==="scroll"||j.overflowY==="visible")):(R=L<T&&(j.overflowX==="auto"||j.overflowX==="scroll"),x=N<I&&(j.overflowY==="auto"||j.overflowY==="scroll"));var re=R&&(Math.abs(S-i)<=a&&W+L<T)-(Math.abs(C-i)<=a&&!!W),k=x&&(Math.abs(b-n)<=a&&Z+N<I)-(Math.abs(f-n)<=a&&!!Z);if(!Ye[d])for(var G=0;G<=d;G++)Ye[G]||(Ye[G]={});(Ye[d].vx!=re||Ye[d].vy!=k||Ye[d].el!==h)&&(Ye[d].el=h,Ye[d].vx=re,Ye[d].vy=k,clearInterval(Ye[d].pid),(re!=0||k!=0)&&(c=!0,Ye[d].pid=setInterval((function(){r&&this.layer===0&&ge.active._onTouchMove(El);var X=Ye[this.layer].vy?Ye[this.layer].vy*o:0,Y=Ye[this.layer].vx?Ye[this.layer].vx*o:0;typeof u=="function"&&u.call(ge.dragged.parentNode[ft],Y,X,e,El,Ye[this.layer].el)!=="continue"||AC(Ye[this.layer].el,Y,X)}).bind({layer:d}),24))),d++}while(s.bubbleScroll&&m!==l&&(m=er(m,!1)));Im=c}},30),IC=function(s){var t=s.originalEvent,r=s.putSortable,i=s.dragEl,n=s.activeSortable,a=s.dispatchSortableEvent,o=s.hideGhostForTarget,l=s.unhideGhostForTarget;if(t){var c=r||n;o();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(u.clientX,u.clientY);l(),c&&!c.el.contains(d)&&(a("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function of(){}of.prototype={startIndex:null,dragStart:function(s){var t=s.oldDraggableIndex;this.startIndex=t},onSpill:function(s){var t=s.dragEl,r=s.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=Pl(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),r&&r.animateAll()},drop:IC};Yt(of,{pluginName:"revertOnSpill"});function lf(){}lf.prototype={onSpill:function(s){var t=s.dragEl,r=s.putSortable,i=r||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:IC};Yt(lf,{pluginName:"removeOnSpill"});var Gt;function bR(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(t){var r=t.dragEl;Gt=r},dragOverValid:function(t){var r=t.completed,i=t.target,n=t.onMove,a=t.activeSortable,o=t.changed,l=t.cancel;if(a.options.swap){var c=this.sortable.el,u=this.options;if(i&&i!==c){var d=Gt;n(i)!==!1?(Ne(i,u.swapClass,!0),Gt=i):Gt=null,d&&d!==Gt&&Ne(d,u.swapClass,!1)}o(),r(!0),l()}},drop:function(t){var r=t.activeSortable,i=t.putSortable,n=t.dragEl,a=i||this.sortable,o=this.options;Gt&&Ne(Gt,o.swapClass,!1),Gt&&(o.swap||i&&i.options.swap)&&n!==Gt&&(a.captureAnimationState(),a!==r&&r.captureAnimationState(),yR(n,Gt),a.animateAll(),a!==r&&r.animateAll())},nulling:function(){Gt=null}},Yt(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Gt}}})}function yR(e,s){var t=e.parentNode,r=s.parentNode,i,n;!t||!r||t.isEqualNode(s)||r.isEqualNode(e)||(i=Be(e),n=Be(s),t.isEqualNode(r)&&i<n&&n++,t.insertBefore(s,t.children[i]),r.insertBefore(e,r.children[n]))}var ye=[],Ht=[],gn,Qt,vn=!1,Rt=!1,ii=!1,Re,_n,uo;function CR(){function e(s){for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this));s.options.supportPointer?Te(document,"pointerup",this._deselectMultiDrag):(Te(document,"mouseup",this._deselectMultiDrag),Te(document,"touchend",this._deselectMultiDrag)),Te(document,"keydown",this._checkKeyDown),Te(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,n){var a="";ye.length&&Qt===s?ye.forEach(function(o,l){a+=(l?", ":"")+o.textContent}):a=n.textContent,i.setData("Text",a)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var r=t.dragEl;Re=r},delayEnded:function(){this.isMultiDrag=~ye.indexOf(Re)},setupClone:function(t){var r=t.sortable,i=t.cancel;if(this.isMultiDrag){for(var n=0;n<ye.length;n++)Ht.push(af(ye[n])),Ht[n].sortableIndex=ye[n].sortableIndex,Ht[n].draggable=!1,Ht[n].style["will-change"]="",Ne(Ht[n],this.options.selectedClass,!1),ye[n]===Re&&Ne(Ht[n],this.options.chosenClass,!1);r._hideClone(),i()}},clone:function(t){var r=t.sortable,i=t.rootEl,n=t.dispatchSortableEvent,a=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||ye.length&&Qt===r&&(Mv(!0,i),n("clone"),a()))},showClone:function(t){var r=t.cloneNowShown,i=t.rootEl,n=t.cancel;this.isMultiDrag&&(Mv(!1,i),Ht.forEach(function(a){ue(a,"display","")}),r(),uo=!1,n())},hideClone:function(t){var r=this;t.sortable;var i=t.cloneNowHidden,n=t.cancel;this.isMultiDrag&&(Ht.forEach(function(a){ue(a,"display","none"),r.options.removeCloneOnHide&&a.parentNode&&a.parentNode.removeChild(a)}),i(),uo=!0,n())},dragStartGlobal:function(t){t.sortable,!this.isMultiDrag&&Qt&&Qt.multiDrag._deselectMultiDrag(),ye.forEach(function(r){r.sortableIndex=Be(r)}),ye=ye.sort(function(r,i){return r.sortableIndex-i.sortableIndex}),ii=!0},dragStarted:function(t){var r=this,i=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){ye.forEach(function(a){a!==Re&&ue(a,"position","absolute")});var n=We(Re,!1,!0,!0);ye.forEach(function(a){a!==Re&&wv(a,n)}),Rt=!0,vn=!0}i.animateAll(function(){Rt=!1,vn=!1,r.options.animation&&ye.forEach(function(a){gd(a)}),r.options.sort&&mo()})}},dragOver:function(t){var r=t.target,i=t.completed,n=t.cancel;Rt&&~ye.indexOf(r)&&(i(!1),n())},revert:function(t){var r=t.fromSortable,i=t.rootEl,n=t.sortable,a=t.dragRect;ye.length>1&&(ye.forEach(function(o){n.addAnimationState({target:o,rect:Rt?We(o):a}),gd(o),o.fromRect=a,r.removeAnimationState(o)}),Rt=!1,$R(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(t){var r=t.sortable,i=t.isOwner,n=t.insertion,a=t.activeSortable,o=t.parentEl,l=t.putSortable,c=this.options;if(n){if(i&&a._hideClone(),vn=!1,c.animation&&ye.length>1&&(Rt||!i&&!a.options.sort&&!l)){var u=We(Re,!1,!0,!0);ye.forEach(function(m){m!==Re&&(wv(m,u),o.appendChild(m))}),Rt=!0}if(!i)if(Rt||mo(),ye.length>1){var d=uo;a._showClone(r),a.options.animation&&!uo&&d&&Ht.forEach(function(m){a.addAnimationState({target:m,rect:_n}),m.fromRect=_n,m.thisAnimationDuration=null})}else a._showClone(r)}},dragOverAnimationCapture:function(t){var r=t.dragRect,i=t.isOwner,n=t.activeSortable;if(ye.forEach(function(o){o.thisAnimationDuration=null}),n.options.animation&&!i&&n.multiDrag.isMultiDrag){_n=Yt({},r);var a=Lr(Re,!0);_n.top-=a.f,_n.left-=a.e}},dragOverAnimationComplete:function(){Rt&&(Rt=!1,mo())},drop:function(t){var r=t.originalEvent,i=t.rootEl,n=t.parentEl,a=t.sortable,o=t.dispatchSortableEvent,l=t.oldIndex,c=t.putSortable,u=c||this.sortable;if(r){var d=this.options,m=n.children;if(!ii)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ne(Re,d.selectedClass,!~ye.indexOf(Re)),~ye.indexOf(Re))ye.splice(ye.indexOf(Re),1),gn=null,Mn({sortable:a,rootEl:i,name:"deselect",targetEl:Re,originalEvt:r});else{if(ye.push(Re),Mn({sortable:a,rootEl:i,name:"select",targetEl:Re,originalEvt:r}),r.shiftKey&&gn&&a.el.contains(gn)){var h=Be(gn),p=Be(Re);if(~h&&~p&&h!==p){var f,b;for(p>h?(b=h,f=p):(b=p,f=h+1);b<f;b++)~ye.indexOf(m[b])||(Ne(m[b],d.selectedClass,!0),ye.push(m[b]),Mn({sortable:a,rootEl:i,name:"select",targetEl:m[b],originalEvt:r}))}}else gn=Re;Qt=u}if(ii&&this.isMultiDrag){if((n[ft].options.sort||n!==i)&&ye.length>1){var C=We(Re),S=Be(Re,":not(."+this.options.selectedClass+")");if(!vn&&d.animation&&(Re.thisAnimationDuration=null),u.captureAnimationState(),!vn&&(d.animation&&(Re.fromRect=C,ye.forEach(function(N){if(N.thisAnimationDuration=null,N!==Re){var R=Rt?We(N):C;N.fromRect=R,u.addAnimationState({target:N,rect:R})}})),mo(),ye.forEach(function(N){m[S]?n.insertBefore(N,m[S]):n.appendChild(N),S++}),l===Be(Re))){var L=!1;ye.forEach(function(N){if(N.sortableIndex!==Be(N)){L=!0;return}}),L&&o("update")}ye.forEach(function(N){gd(N)}),u.animateAll()}Qt=u}(i===n||c&&c.lastPutMode!=="clone")&&Ht.forEach(function(N){N.parentNode&&N.parentNode.removeChild(N)})}},nullingGlobal:function(){this.isMultiDrag=ii=!1,Ht.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Se(document,"pointerup",this._deselectMultiDrag),Se(document,"mouseup",this._deselectMultiDrag),Se(document,"touchend",this._deselectMultiDrag),Se(document,"keydown",this._checkKeyDown),Se(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(typeof ii<"u"&&ii)&&Qt===this.sortable&&!(t&&ss(t.target,this.options.draggable,this.sortable.el,!1))&&!(t&&t.button!==0))for(;ye.length;){var r=ye[0];Ne(r,this.options.selectedClass,!1),ye.shift(),Mn({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Yt(e,{pluginName:"multiDrag",utils:{select:function(t){var r=t.parentNode[ft];!r||!r.options.multiDrag||~ye.indexOf(t)||(Qt&&Qt!==r&&(Qt.multiDrag._deselectMultiDrag(),Qt=r),Ne(t,r.options.selectedClass,!0),ye.push(t))},deselect:function(t){var r=t.parentNode[ft],i=ye.indexOf(t);!r||!r.options.multiDrag||!~i||(Ne(t,r.options.selectedClass,!1),ye.splice(i,1))}},eventProperties:function(){var t=this,r=[],i=[];return ye.forEach(function(n){r.push({multiDragElement:n,index:n.sortableIndex});var a;Rt&&n!==Re?a=-1:Rt?a=Be(n,":not(."+t.options.selectedClass+")"):a=Be(n),i.push({multiDragElement:n,index:a})}),{items:q8(ye),clones:[].concat(Ht),oldIndicies:r,newIndicies:i}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),t==="ctrl"?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function $R(e,s){ye.forEach(function(t,r){var i=s.children[t.sortableIndex+(e?Number(r):0)];i?s.insertBefore(t,i):s.appendChild(t)})}function Mv(e,s){Ht.forEach(function(t,r){var i=s.children[t.sortableIndex+(e?Number(r):0)];i?s.insertBefore(t,i):s.appendChild(t)})}function mo(){ye.forEach(function(e){e!==Re&&e.parentNode&&e.parentNode.removeChild(e)})}ge.mount(new _R);ge.mount(lf,of);const xR=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:CR,Sortable:ge,Swap:bR,default:ge},Symbol.toStringTag,{value:"Module"})),wR=mp(xR);(function(e,s){(function(r,i){e.exports=i(wR)})(typeof self<"u"?self:Dr,function(t){return function(r){var i={};function n(a){if(i[a])return i[a].exports;var o=i[a]={i:a,l:!1,exports:{}};return r[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=r,n.c=i,n.d=function(a,o,l){n.o(a,o)||Object.defineProperty(a,o,{enumerable:!0,get:l})},n.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},n.t=function(a,o){if(o&1&&(a=n(a)),o&8||o&4&&typeof a=="object"&&a&&a.__esModule)return a;var l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:a}),o&2&&typeof a!="string")for(var c in a)n.d(l,c,(function(u){return a[u]}).bind(null,c));return l},n.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return n.d(o,"a",o),o},n.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},n.p="",n(n.s="fb15")}({"01f9":function(r,i,n){var a=n("2d00"),o=n("5ca1"),l=n("2aba"),c=n("32e9"),u=n("84f2"),d=n("41a0"),m=n("7f20"),h=n("38fd"),p=n("2b4c")("iterator"),f=!([].keys&&"next"in[].keys()),b="@@iterator",C="keys",S="values",L=function(){return this};r.exports=function(N,R,x,T,I,j,W){d(x,R,T);var Z=function(H){if(!f&&H in X)return X[H];switch(H){case C:return function(){return new x(this,H)};case S:return function(){return new x(this,H)}}return function(){return new x(this,H)}},re=R+" Iterator",k=I==S,G=!1,X=N.prototype,Y=X[p]||X[b]||I&&X[I],ee=Y||Z(I),se=I?k?Z("entries"):ee:void 0,F=R=="Array"&&X.entries||Y,z,w,A;if(F&&(A=h(F.call(new N)),A!==Object.prototype&&A.next&&(m(A,re,!0),!a&&typeof A[p]!="function"&&c(A,p,L))),k&&Y&&Y.name!==S&&(G=!0,ee=function(){return Y.call(this)}),(!a||W)&&(f||G||!X[p])&&c(X,p,ee),u[R]=ee,u[re]=L,I)if(z={values:k?ee:Z(S),keys:j?ee:Z(C),entries:se},W)for(w in z)w in X||l(X,w,z[w]);else o(o.P+o.F*(f||G),R,z);return z}},"02f4":function(r,i,n){var a=n("4588"),o=n("be13");r.exports=function(l){return function(c,u){var d=String(o(c)),m=a(u),h=d.length,p,f;return m<0||m>=h?l?"":void 0:(p=d.charCodeAt(m),p<55296||p>56319||m+1===h||(f=d.charCodeAt(m+1))<56320||f>57343?l?d.charAt(m):p:l?d.slice(m,m+2):(p-55296<<10)+(f-56320)+65536)}}},"0390":function(r,i,n){var a=n("02f4")(!0);r.exports=function(o,l,c){return l+(c?a(o,l).length:1)}},"0bfb":function(r,i,n){var a=n("cb7c");r.exports=function(){var o=a(this),l="";return o.global&&(l+="g"),o.ignoreCase&&(l+="i"),o.multiline&&(l+="m"),o.unicode&&(l+="u"),o.sticky&&(l+="y"),l}},"0d58":function(r,i,n){var a=n("ce10"),o=n("e11e");r.exports=Object.keys||function(c){return a(c,o)}},1495:function(r,i,n){var a=n("86cc"),o=n("cb7c"),l=n("0d58");r.exports=n("9e1e")?Object.defineProperties:function(u,d){o(u);for(var m=l(d),h=m.length,p=0,f;h>p;)a.f(u,f=m[p++],d[f]);return u}},"214f":function(r,i,n){n("b0c5");var a=n("2aba"),o=n("32e9"),l=n("79e5"),c=n("be13"),u=n("2b4c"),d=n("520a"),m=u("species"),h=!l(function(){var f=/./;return f.exec=function(){var b=[];return b.groups={a:"7"},b},"".replace(f,"$<a>")!=="7"}),p=function(){var f=/(?:)/,b=f.exec;f.exec=function(){return b.apply(this,arguments)};var C="ab".split(f);return C.length===2&&C[0]==="a"&&C[1]==="b"}();r.exports=function(f,b,C){var S=u(f),L=!l(function(){var j={};return j[S]=function(){return 7},""[f](j)!=7}),N=L?!l(function(){var j=!1,W=/a/;return W.exec=function(){return j=!0,null},f==="split"&&(W.constructor={},W.constructor[m]=function(){return W}),W[S](""),!j}):void 0;if(!L||!N||f==="replace"&&!h||f==="split"&&!p){var R=/./[S],x=C(c,S,""[f],function(W,Z,re,k,G){return Z.exec===d?L&&!G?{done:!0,value:R.call(Z,re,k)}:{done:!0,value:W.call(re,Z,k)}:{done:!1}}),T=x[0],I=x[1];a(String.prototype,f,T),o(RegExp.prototype,S,b==2?function(j,W){return I.call(j,this,W)}:function(j){return I.call(j,this)})}}},"230e":function(r,i,n){var a=n("d3f4"),o=n("7726").document,l=a(o)&&a(o.createElement);r.exports=function(c){return l?o.createElement(c):{}}},"23c6":function(r,i,n){var a=n("2d95"),o=n("2b4c")("toStringTag"),l=a(function(){return arguments}())=="Arguments",c=function(u,d){try{return u[d]}catch{}};r.exports=function(u){var d,m,h;return u===void 0?"Undefined":u===null?"Null":typeof(m=c(d=Object(u),o))=="string"?m:l?a(d):(h=a(d))=="Object"&&typeof d.callee=="function"?"Arguments":h}},2621:function(r,i){i.f=Object.getOwnPropertySymbols},"2aba":function(r,i,n){var a=n("7726"),o=n("32e9"),l=n("69a8"),c=n("ca5a")("src"),u=n("fa5b"),d="toString",m=(""+u).split(d);n("8378").inspectSource=function(h){return u.call(h)},(r.exports=function(h,p,f,b){var C=typeof f=="function";C&&(l(f,"name")||o(f,"name",p)),h[p]!==f&&(C&&(l(f,c)||o(f,c,h[p]?""+h[p]:m.join(String(p)))),h===a?h[p]=f:b?h[p]?h[p]=f:o(h,p,f):(delete h[p],o(h,p,f)))})(Function.prototype,d,function(){return typeof this=="function"&&this[c]||u.call(this)})},"2aeb":function(r,i,n){var a=n("cb7c"),o=n("1495"),l=n("e11e"),c=n("613b")("IE_PROTO"),u=function(){},d="prototype",m=function(){var h=n("230e")("iframe"),p=l.length,f="<",b=">",C;for(h.style.display="none",n("fab2").appendChild(h),h.src="javascript:",C=h.contentWindow.document,C.open(),C.write(f+"script"+b+"document.F=Object"+f+"/script"+b),C.close(),m=C.F;p--;)delete m[d][l[p]];return m()};r.exports=Object.create||function(p,f){var b;return p!==null?(u[d]=a(p),b=new u,u[d]=null,b[c]=p):b=m(),f===void 0?b:o(b,f)}},"2b4c":function(r,i,n){var a=n("5537")("wks"),o=n("ca5a"),l=n("7726").Symbol,c=typeof l=="function",u=r.exports=function(d){return a[d]||(a[d]=c&&l[d]||(c?l:o)("Symbol."+d))};u.store=a},"2d00":function(r,i){r.exports=!1},"2d95":function(r,i){var n={}.toString;r.exports=function(a){return n.call(a).slice(8,-1)}},"2fdb":function(r,i,n){var a=n("5ca1"),o=n("d2c8"),l="includes";a(a.P+a.F*n("5147")(l),"String",{includes:function(u){return!!~o(this,u,l).indexOf(u,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(r,i,n){var a=n("86cc"),o=n("4630");r.exports=n("9e1e")?function(l,c,u){return a.f(l,c,o(1,u))}:function(l,c,u){return l[c]=u,l}},"38fd":function(r,i,n){var a=n("69a8"),o=n("4bf8"),l=n("613b")("IE_PROTO"),c=Object.prototype;r.exports=Object.getPrototypeOf||function(u){return u=o(u),a(u,l)?u[l]:typeof u.constructor=="function"&&u instanceof u.constructor?u.constructor.prototype:u instanceof Object?c:null}},"41a0":function(r,i,n){var a=n("2aeb"),o=n("4630"),l=n("7f20"),c={};n("32e9")(c,n("2b4c")("iterator"),function(){return this}),r.exports=function(u,d,m){u.prototype=a(c,{next:o(1,m)}),l(u,d+" Iterator")}},"456d":function(r,i,n){var a=n("4bf8"),o=n("0d58");n("5eda")("keys",function(){return function(c){return o(a(c))}})},4588:function(r,i){var n=Math.ceil,a=Math.floor;r.exports=function(o){return isNaN(o=+o)?0:(o>0?a:n)(o)}},4630:function(r,i){r.exports=function(n,a){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:a}}},"4bf8":function(r,i,n){var a=n("be13");r.exports=function(o){return Object(a(o))}},5147:function(r,i,n){var a=n("2b4c")("match");r.exports=function(o){var l=/./;try{"/./"[o](l)}catch{try{return l[a]=!1,!"/./"[o](l)}catch{}}return!0}},"520a":function(r,i,n){var a=n("0bfb"),o=RegExp.prototype.exec,l=String.prototype.replace,c=o,u="lastIndex",d=function(){var p=/a/,f=/b*/g;return o.call(p,"a"),o.call(f,"a"),p[u]!==0||f[u]!==0}(),m=/()??/.exec("")[1]!==void 0,h=d||m;h&&(c=function(f){var b=this,C,S,L,N;return m&&(S=new RegExp("^"+b.source+"$(?!\\s)",a.call(b))),d&&(C=b[u]),L=o.call(b,f),d&&L&&(b[u]=b.global?L.index+L[0].length:C),m&&L&&L.length>1&&l.call(L[0],S,function(){for(N=1;N<arguments.length-2;N++)arguments[N]===void 0&&(L[N]=void 0)}),L}),r.exports=c},"52a7":function(r,i){i.f={}.propertyIsEnumerable},5537:function(r,i,n){var a=n("8378"),o=n("7726"),l="__core-js_shared__",c=o[l]||(o[l]={});(r.exports=function(u,d){return c[u]||(c[u]=d!==void 0?d:{})})("versions",[]).push({version:a.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(r,i,n){var a=n("7726"),o=n("8378"),l=n("32e9"),c=n("2aba"),u=n("9b43"),d="prototype",m=function(h,p,f){var b=h&m.F,C=h&m.G,S=h&m.S,L=h&m.P,N=h&m.B,R=C?a:S?a[p]||(a[p]={}):(a[p]||{})[d],x=C?o:o[p]||(o[p]={}),T=x[d]||(x[d]={}),I,j,W,Z;C&&(f=p);for(I in f)j=!b&&R&&R[I]!==void 0,W=(j?R:f)[I],Z=N&&j?u(W,a):L&&typeof W=="function"?u(Function.call,W):W,R&&c(R,I,W,h&m.U),x[I]!=W&&l(x,I,Z),L&&T[I]!=W&&(T[I]=W)};a.core=o,m.F=1,m.G=2,m.S=4,m.P=8,m.B=16,m.W=32,m.U=64,m.R=128,r.exports=m},"5eda":function(r,i,n){var a=n("5ca1"),o=n("8378"),l=n("79e5");r.exports=function(c,u){var d=(o.Object||{})[c]||Object[c],m={};m[c]=u(d),a(a.S+a.F*l(function(){d(1)}),"Object",m)}},"5f1b":function(r,i,n){var a=n("23c6"),o=RegExp.prototype.exec;r.exports=function(l,c){var u=l.exec;if(typeof u=="function"){var d=u.call(l,c);if(typeof d!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return d}if(a(l)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(l,c)}},"613b":function(r,i,n){var a=n("5537")("keys"),o=n("ca5a");r.exports=function(l){return a[l]||(a[l]=o(l))}},"626a":function(r,i,n){var a=n("2d95");r.exports=Object("z").propertyIsEnumerable(0)?Object:function(o){return a(o)=="String"?o.split(""):Object(o)}},6762:function(r,i,n){var a=n("5ca1"),o=n("c366")(!0);a(a.P,"Array",{includes:function(c){return o(this,c,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(r,i,n){var a=n("626a"),o=n("be13");r.exports=function(l){return a(o(l))}},"69a8":function(r,i){var n={}.hasOwnProperty;r.exports=function(a,o){return n.call(a,o)}},"6a99":function(r,i,n){var a=n("d3f4");r.exports=function(o,l){if(!a(o))return o;var c,u;if(l&&typeof(c=o.toString)=="function"&&!a(u=c.call(o))||typeof(c=o.valueOf)=="function"&&!a(u=c.call(o))||!l&&typeof(c=o.toString)=="function"&&!a(u=c.call(o)))return u;throw TypeError("Can't convert object to primitive value")}},7333:function(r,i,n){var a=n("0d58"),o=n("2621"),l=n("52a7"),c=n("4bf8"),u=n("626a"),d=Object.assign;r.exports=!d||n("79e5")(function(){var m={},h={},p=Symbol(),f="abcdefghijklmnopqrst";return m[p]=7,f.split("").forEach(function(b){h[b]=b}),d({},m)[p]!=7||Object.keys(d({},h)).join("")!=f})?function(h,p){for(var f=c(h),b=arguments.length,C=1,S=o.f,L=l.f;b>C;)for(var N=u(arguments[C++]),R=S?a(N).concat(S(N)):a(N),x=R.length,T=0,I;x>T;)L.call(N,I=R[T++])&&(f[I]=N[I]);return f}:d},7726:function(r,i){var n=r.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=n)},"77f1":function(r,i,n){var a=n("4588"),o=Math.max,l=Math.min;r.exports=function(c,u){return c=a(c),c<0?o(c+u,0):l(c,u)}},"79e5":function(r,i){r.exports=function(n){try{return!!n()}catch{return!0}}},"7f20":function(r,i,n){var a=n("86cc").f,o=n("69a8"),l=n("2b4c")("toStringTag");r.exports=function(c,u,d){c&&!o(c=d?c:c.prototype,l)&&a(c,l,{configurable:!0,value:u})}},8378:function(r,i){var n=r.exports={version:"2.6.5"};typeof __e=="number"&&(__e=n)},"84f2":function(r,i){r.exports={}},"86cc":function(r,i,n){var a=n("cb7c"),o=n("c69a"),l=n("6a99"),c=Object.defineProperty;i.f=n("9e1e")?Object.defineProperty:function(d,m,h){if(a(d),m=l(m,!0),a(h),o)try{return c(d,m,h)}catch{}if("get"in h||"set"in h)throw TypeError("Accessors not supported!");return"value"in h&&(d[m]=h.value),d}},"9b43":function(r,i,n){var a=n("d8e8");r.exports=function(o,l,c){if(a(o),l===void 0)return o;switch(c){case 1:return function(u){return o.call(l,u)};case 2:return function(u,d){return o.call(l,u,d)};case 3:return function(u,d,m){return o.call(l,u,d,m)}}return function(){return o.apply(l,arguments)}}},"9c6c":function(r,i,n){var a=n("2b4c")("unscopables"),o=Array.prototype;o[a]==null&&n("32e9")(o,a,{}),r.exports=function(l){o[a][l]=!0}},"9def":function(r,i,n){var a=n("4588"),o=Math.min;r.exports=function(l){return l>0?o(a(l),9007199254740991):0}},"9e1e":function(r,i,n){r.exports=!n("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},a352:function(r,i){r.exports=t},a481:function(r,i,n){var a=n("cb7c"),o=n("4bf8"),l=n("9def"),c=n("4588"),u=n("0390"),d=n("5f1b"),m=Math.max,h=Math.min,p=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,b=/\$([$&`']|\d\d?)/g,C=function(S){return S===void 0?S:String(S)};n("214f")("replace",2,function(S,L,N,R){return[function(I,j){var W=S(this),Z=I==null?void 0:I[L];return Z!==void 0?Z.call(I,W,j):N.call(String(W),I,j)},function(T,I){var j=R(N,T,this,I);if(j.done)return j.value;var W=a(T),Z=String(this),re=typeof I=="function";re||(I=String(I));var k=W.global;if(k){var G=W.unicode;W.lastIndex=0}for(var X=[];;){var Y=d(W,Z);if(Y===null||(X.push(Y),!k))break;var ee=String(Y[0]);ee===""&&(W.lastIndex=u(Z,l(W.lastIndex),G))}for(var se="",F=0,z=0;z<X.length;z++){Y=X[z];for(var w=String(Y[0]),A=m(h(c(Y.index),Z.length),0),H=[],K=1;K<Y.length;K++)H.push(C(Y[K]));var le=Y.groups;if(re){var he=[w].concat(H,A,Z);le!==void 0&&he.push(le);var be=String(I.apply(void 0,he))}else be=x(w,Z,A,H,le,I);A>=F&&(se+=Z.slice(F,A)+be,F=A+w.length)}return se+Z.slice(F)}];function x(T,I,j,W,Z,re){var k=j+T.length,G=W.length,X=b;return Z!==void 0&&(Z=o(Z),X=f),N.call(re,X,function(Y,ee){var se;switch(ee.charAt(0)){case"$":return"$";case"&":return T;case"`":return I.slice(0,j);case"'":return I.slice(k);case"<":se=Z[ee.slice(1,-1)];break;default:var F=+ee;if(F===0)return Y;if(F>G){var z=p(F/10);return z===0?Y:z<=G?W[z-1]===void 0?ee.charAt(1):W[z-1]+ee.charAt(1):Y}se=W[F-1]}return se===void 0?"":se})}})},aae3:function(r,i,n){var a=n("d3f4"),o=n("2d95"),l=n("2b4c")("match");r.exports=function(c){var u;return a(c)&&((u=c[l])!==void 0?!!u:o(c)=="RegExp")}},ac6a:function(r,i,n){for(var a=n("cadf"),o=n("0d58"),l=n("2aba"),c=n("7726"),u=n("32e9"),d=n("84f2"),m=n("2b4c"),h=m("iterator"),p=m("toStringTag"),f=d.Array,b={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},C=o(b),S=0;S<C.length;S++){var L=C[S],N=b[L],R=c[L],x=R&&R.prototype,T;if(x&&(x[h]||u(x,h,f),x[p]||u(x,p,L),d[L]=f,N))for(T in a)x[T]||l(x,T,a[T],!0)}},b0c5:function(r,i,n){var a=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:a!==/./.exec},{exec:a})},be13:function(r,i){r.exports=function(n){if(n==null)throw TypeError("Can't call method on "+n);return n}},c366:function(r,i,n){var a=n("6821"),o=n("9def"),l=n("77f1");r.exports=function(c){return function(u,d,m){var h=a(u),p=o(h.length),f=l(m,p),b;if(c&&d!=d){for(;p>f;)if(b=h[f++],b!=b)return!0}else for(;p>f;f++)if((c||f in h)&&h[f]===d)return c||f||0;return!c&&-1}}},c649:function(r,i,n){(function(a){n.d(i,"c",function(){return h}),n.d(i,"a",function(){return d}),n.d(i,"b",function(){return l}),n.d(i,"d",function(){return m}),n("a481");function o(){return typeof window<"u"?window.console:a.console}var l=o();function c(p){var f=Object.create(null);return function(C){var S=f[C];return S||(f[C]=p(C))}}var u=/-(\w)/g,d=c(function(p){return p.replace(u,function(f,b){return b?b.toUpperCase():""})});function m(p){p.parentElement!==null&&p.parentElement.removeChild(p)}function h(p,f,b){var C=b===0?p.children[0]:p.children[b-1].nextSibling;p.insertBefore(f,C)}}).call(this,n("c8ba"))},c69a:function(r,i,n){r.exports=!n("9e1e")&&!n("79e5")(function(){return Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a!=7})},c8ba:function(r,i){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch{typeof window=="object"&&(n=window)}r.exports=n},ca5a:function(r,i){var n=0,a=Math.random();r.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++n+a).toString(36))}},cadf:function(r,i,n){var a=n("9c6c"),o=n("d53b"),l=n("84f2"),c=n("6821");r.exports=n("01f9")(Array,"Array",function(u,d){this._t=c(u),this._i=0,this._k=d},function(){var u=this._t,d=this._k,m=this._i++;return!u||m>=u.length?(this._t=void 0,o(1)):d=="keys"?o(0,m):d=="values"?o(0,u[m]):o(0,[m,u[m]])},"values"),l.Arguments=l.Array,a("keys"),a("values"),a("entries")},cb7c:function(r,i,n){var a=n("d3f4");r.exports=function(o){if(!a(o))throw TypeError(o+" is not an object!");return o}},ce10:function(r,i,n){var a=n("69a8"),o=n("6821"),l=n("c366")(!1),c=n("613b")("IE_PROTO");r.exports=function(u,d){var m=o(u),h=0,p=[],f;for(f in m)f!=c&&a(m,f)&&p.push(f);for(;d.length>h;)a(m,f=d[h++])&&(~l(p,f)||p.push(f));return p}},d2c8:function(r,i,n){var a=n("aae3"),o=n("be13");r.exports=function(l,c,u){if(a(c))throw TypeError("String#"+u+" doesn't accept regex!");return String(o(l))}},d3f4:function(r,i){r.exports=function(n){return typeof n=="object"?n!==null:typeof n=="function"}},d53b:function(r,i){r.exports=function(n,a){return{value:a,done:!!n}}},d8e8:function(r,i){r.exports=function(n){if(typeof n!="function")throw TypeError(n+" is not a function!");return n}},e11e:function(r,i){r.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(r,i,n){var a=n("5ca1"),o=n("9def"),l=n("d2c8"),c="startsWith",u=""[c];a(a.P+a.F*n("5147")(c),"String",{startsWith:function(m){var h=l(this,m,c),p=o(Math.min(arguments.length>1?arguments[1]:void 0,h.length)),f=String(m);return u?u.call(h,f,p):h.slice(p,p+f.length)===f}})},f6fd:function(r,i){(function(n){var a="currentScript",o=n.getElementsByTagName("script");a in n||Object.defineProperty(n,a,{get:function(){try{throw new Error}catch(u){var l,c=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(u.stack)||[!1])[1];for(l in o)if(o[l].src==c||o[l].readyState=="interactive")return o[l];return null}}})})(document)},f751:function(r,i,n){var a=n("5ca1");a(a.S+a.F,"Object",{assign:n("7333")})},fa5b:function(r,i,n){r.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(r,i,n){var a=n("7726").document;r.exports=a&&a.documentElement},fb15:function(r,i,n){if(n.r(i),typeof window<"u"){n("f6fd");var a;(a=window.document.currentScript)&&(a=a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=a[1])}n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d");function o(w){if(Array.isArray(w))return w}function l(w,A){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(w)))){var H=[],K=!0,le=!1,he=void 0;try{for(var be=w[Symbol.iterator](),we;!(K=(we=be.next()).done)&&(H.push(we.value),!(A&&H.length===A));K=!0);}catch(st){le=!0,he=st}finally{try{!K&&be.return!=null&&be.return()}finally{if(le)throw he}}return H}}function c(w,A){(A==null||A>w.length)&&(A=w.length);for(var H=0,K=new Array(A);H<A;H++)K[H]=w[H];return K}function u(w,A){if(w){if(typeof w=="string")return c(w,A);var H=Object.prototype.toString.call(w).slice(8,-1);if(H==="Object"&&w.constructor&&(H=w.constructor.name),H==="Map"||H==="Set")return Array.from(w);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return c(w,A)}}function d(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(w,A){return o(w)||l(w,A)||u(w,A)||d()}n("6762"),n("2fdb");function h(w){if(Array.isArray(w))return c(w)}function p(w){if(typeof Symbol<"u"&&Symbol.iterator in Object(w))return Array.from(w)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(w){return h(w)||p(w)||u(w)||f()}var C=n("a352"),S=n.n(C),L=n("c649");function N(w,A,H){return H===void 0||(w=w||{},w[A]=H),w}function R(w,A){return w.map(function(H){return H.elm}).indexOf(A)}function x(w,A,H,K){if(!w)return[];var le=w.map(function(we){return we.elm}),he=A.length-K,be=b(A).map(function(we,st){return st>=he?le.length:le.indexOf(we)});return H?be.filter(function(we){return we!==-1}):be}function T(w,A){var H=this;this.$nextTick(function(){return H.$emit(w.toLowerCase(),A)})}function I(w){var A=this;return function(H){A.realList!==null&&A["onDrag"+w](H),T.call(A,w,H)}}function j(w){return["transition-group","TransitionGroup"].includes(w)}function W(w){if(!w||w.length!==1)return!1;var A=m(w,1),H=A[0].componentOptions;return H?j(H.tag):!1}function Z(w,A,H){return w[H]||(A[H]?A[H]():void 0)}function re(w,A,H){var K=0,le=0,he=Z(A,H,"header");he&&(K=he.length,w=w?[].concat(b(he),b(w)):b(he));var be=Z(A,H,"footer");return be&&(le=be.length,w=w?[].concat(b(w),b(be)):b(be)),{children:w,headerOffset:K,footerOffset:le}}function k(w,A){var H=null,K=function(Pt,Ft){H=N(H,Pt,Ft)},le=Object.keys(w).filter(function(st){return st==="id"||st.startsWith("data-")}).reduce(function(st,Pt){return st[Pt]=w[Pt],st},{});if(K("attrs",le),!A)return H;var he=A.on,be=A.props,we=A.attrs;return K("on",he),K("props",be),Object.assign(H.attrs,we),H}var G=["Start","Add","Remove","Update","End"],X=["Choose","Unchoose","Sort","Filter","Clone"],Y=["Move"].concat(G,X).map(function(w){return"on"+w}),ee=null,se={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(A){return A}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},F={name:"draggable",inheritAttrs:!1,props:se,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(A){var H=this.$slots.default;this.transitionMode=W(H);var K=re(H,this.$slots,this.$scopedSlots),le=K.children,he=K.headerOffset,be=K.footerOffset;this.headerOffset=he,this.footerOffset=be;var we=k(this.$attrs,this.componentData);return A(this.getTag(),we,le)},created:function(){this.list!==null&&this.value!==null&&L.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&L.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),this.options!==void 0&&L.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var A=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var H={};G.forEach(function(he){H["on"+he]=I.call(A,he)}),X.forEach(function(he){H["on"+he]=T.bind(A,he)});var K=Object.keys(this.$attrs).reduce(function(he,be){return he[Object(L.a)(be)]=A.$attrs[be],he},{}),le=Object.assign({},this.options,K,H,{onMove:function(be,we){return A.onDragMove(be,we)}});!("draggable"in le)&&(le.draggable=">*"),this._sortable=new S.a(this.rootContainer,le),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(A){this.updateOptions(A)},deep:!0},$attrs:{handler:function(A){this.updateOptions(A)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var A=this._vnode.fnOptions;return A&&A.functional},getTag:function(){return this.tag||this.element},updateOptions:function(A){for(var H in A){var K=Object(L.a)(H);Y.indexOf(K)===-1&&this._sortable.option(K,A[H])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var A=this.$slots.default;return this.transitionMode?A[0].child.$slots.default:A},computeIndexes:function(){var A=this;this.$nextTick(function(){A.visibleIndexes=x(A.getChildrenNodes(),A.rootContainer.children,A.transitionMode,A.footerOffset)})},getUnderlyingVm:function(A){var H=R(this.getChildrenNodes()||[],A);if(H===-1)return null;var K=this.realList[H];return{index:H,element:K}},getUnderlyingPotencialDraggableComponent:function(A){var H=A.__vue__;return!H||!H.$options||!j(H.$options._componentTag)?!("realList"in H)&&H.$children.length===1&&"realList"in H.$children[0]?H.$children[0]:H:H.$parent},emitChanges:function(A){var H=this;this.$nextTick(function(){H.$emit("change",A)})},alterList:function(A){if(this.list){A(this.list);return}var H=b(this.value);A(H),this.$emit("input",H)},spliceList:function(){var A=arguments,H=function(le){return le.splice.apply(le,b(A))};this.alterList(H)},updatePosition:function(A,H){var K=function(he){return he.splice(H,0,he.splice(A,1)[0])};this.alterList(K)},getRelatedContextFromMoveEvent:function(A){var H=A.to,K=A.related,le=this.getUnderlyingPotencialDraggableComponent(H);if(!le)return{component:le};var he=le.realList,be={list:he,component:le};if(H!==K&&he&&le.getUnderlyingVm){var we=le.getUnderlyingVm(K);if(we)return Object.assign(we,be)}return be},getVmIndex:function(A){var H=this.visibleIndexes,K=H.length;return A>K-1?K:H[A]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(A){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var H=this.getChildrenNodes();H[A].data=null;var K=this.getComponent();K.children=[],K.kept=void 0}},onDragStart:function(A){this.context=this.getUnderlyingVm(A.item),A.item._underlying_vm_=this.clone(this.context.element),ee=A.item},onDragAdd:function(A){var H=A.item._underlying_vm_;if(H!==void 0){Object(L.d)(A.item);var K=this.getVmIndex(A.newIndex);this.spliceList(K,0,H),this.computeIndexes();var le={element:H,newIndex:K};this.emitChanges({added:le})}},onDragRemove:function(A){if(Object(L.c)(this.rootContainer,A.item,A.oldIndex),A.pullMode==="clone"){Object(L.d)(A.clone);return}var H=this.context.index;this.spliceList(H,1);var K={element:this.context.element,oldIndex:H};this.resetTransitionData(H),this.emitChanges({removed:K})},onDragUpdate:function(A){Object(L.d)(A.item),Object(L.c)(A.from,A.item,A.oldIndex);var H=this.context.index,K=this.getVmIndex(A.newIndex);this.updatePosition(H,K);var le={element:this.context.element,oldIndex:H,newIndex:K};this.emitChanges({moved:le})},updateProperty:function(A,H){A.hasOwnProperty(H)&&(A[H]+=this.headerOffset)},computeFutureIndex:function(A,H){if(!A.element)return 0;var K=b(H.to.children).filter(function(we){return we.style.display!=="none"}),le=K.indexOf(H.related),he=A.component.getVmIndex(le),be=K.indexOf(ee)!==-1;return be||!H.willInsertAfter?he:he+1},onDragMove:function(A,H){var K=this.move;if(!K||!this.realList)return!0;var le=this.getRelatedContextFromMoveEvent(A),he=this.context,be=this.computeFutureIndex(le,A);Object.assign(he,{futureIndex:be});var we=Object.assign({},A,{relatedContext:le,draggedContext:he});return K(we,H)},onDragEnd:function(){this.computeIndexes(),ee=null}}};typeof window<"u"&&"Vue"in window&&window.Vue.component("draggable",F);var z=F;i.default=z}}).default})})(TC);var SR=TC.exports;const Yr=Ji(SR);var PR=Object.defineProperty,DR=Object.getOwnPropertyDescriptor,Du=(e,s,t,r)=>{for(var i=r>1?void 0:r?DR(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&PR(s,t,i),i};let Fi=class extends M(O){constructor(){super(...arguments),this.segmentSeparator="/"}get pathSegments(){const[e,...s]=(this.path||"").split(this.segmentSeparator),t={directoryName:e,location:e};return s.reduce((r,i)=>{const n=r[r.length-1].location,a="".concat(n).concat(this.segmentSeparator).concat(i),o={directoryName:i,location:a};return r.push(o),r},[t])}};Du([P({default:!1})],Fi.prototype,"path",2);Du([P({default:!1})],Fi.prototype,"baseDirectoryLabel",2);Du([P({default:!1})],Fi.prototype,"onSegmentClick",2);Fi=Du([D],Fi);var TR=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("span",e._l(e.pathSegments,function(r,i){var n=r.directoryName,a=r.location;return t("span",{key:a,staticClass:"navigation-container"},[i!==0?[t("span",{staticClass:"navigation-divider text--disabled"},[e._v(e._s(e.segmentSeparator))])]:e._e(),i!==e.pathSegments.length-1?[t("span",{staticClass:"cursor-pointer navigation-segment",attrs:{tabindex:"0",role:"button"},on:{click:function(o){return e.onSegmentClick({location:a})},keyup:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:e.onSegmentClick({location:a})}}},[n?[e._v(e._s(n))]:[e._v(e._s(e.baseDirectoryLabel))]],2)]:[t("span",[n?[e._v(e._s(n))]:[e._v(e._s(e.baseDirectoryLabel))]],2)]],2)}),0)},MR=[];const Ev={};var ER=E(Fi,TR,MR,!1,OR,"4b5d1549",null,null);function OR(e){for(let s in Ev)this[s]=Ev[s]}const on=function(){return ER.exports}();var LR=Object.defineProperty,AR=Object.getOwnPropertyDescriptor,NC=(e,s,t,r)=>{for(var i=r>1?void 0:r?AR(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&LR(s,t,i),i};let Ol=class extends M(O,Ke){constructor(){super(...arguments),this.mdiContentCopy=gp,this.mdiFile=pr,this.mdiFileDocumentMultipleOutline=Uc,this.mdiMagnify=zc,this.mdiUpload=y3,this.mdiFolderPlus=$p,this.mdiRefresh=tn,this.mdiCog=us,this.mdiFolderUpload=xp,this.mdiFolder=Cp,this.mdiPlay=en,this.mdiPlaylistPlus=Xc,this.mdiFire=Qi,this.mdiVideo3d=Jc,this.mdiCloudDownload=Gn,this.mdiRenameBox=Yc,this.mdiFileDocumentEditOutline=ja,this.mdiDelete=ze,this.mdiCloseThick=pe,this.mdiCheckboxBlankOutline=hp,this.mdiCheckboxMarked=pp,this.mdiDragVertical=Ra,this.formatFilesize=Je,this.sortFiles=kp,this.search="",this.dialogCreateDirectory={show:!1,name:""},this.contextMenu={shown:!1,isDirectory:!1,touchTimer:void 0,x:0,y:0,item:{isDirectory:!1,filename:"",permissions:"",modified:new Date,preheat_gcode:null,small_thumbnail:null,big_thumbnail:null,big_thumbnail_width:null,count_printed:0,last_filament_used:null,last_start_time:null,last_end_time:null,last_print_duration:null,last_status:null,last_total_duration:null}},this.draggingFile={item:{...this.contextMenu.item}},this.dialogPrintFile={show:!1,item:{...this.contextMenu.item}},this.dialogAddBatchToQueue={isVisible:!1,filename:""},this.dialogRenameFile={show:!1,newName:"",item:{...this.contextMenu.item}},this.dialogDuplicateFile={show:!1,newName:"",item:{...this.contextMenu.item}},this.dialogRenameDirectory={show:!1,newName:"",item:{...this.contextMenu.item}},this.dialogDeleteDirectory={show:!1,newName:"",item:{...this.contextMenu.item}},this.deleteDialog=!1,this.deleteSelectedDialog=!1,this.isInvalidName=!0,this.nameInputRules=[e=>!!e||this.$t("Files.InvalidNameEmpty"),e=>!this.existsFilename(e)||this.$t("Files.InvalidNameAlreadyExists")],this.countInputRules=[e=>!!e||this.$t("JobQueue.InvalidCountEmpty"),e=>parseInt(e)>0||this.$t("JobQueue.InvalidCountGreaterZero")]}existsFilename(e){return this.files.findIndex(s=>s.filename===e)>=0}get gcodeInputFileAccept(){return this.isIOS?[]:Ci}get currentPath(){const e=this.$store.state.gui.view.gcodefiles.currentPath;return e==="gcodes"?"":e}set currentPath(e){this.$store.dispatch("gui/saveSettingWithoutUpload",{name:"view.gcodefiles.currentPath",value:e})}get selectedFiles(){var e;return(e=this.$store.state.gui.view.gcodefiles.selectedFiles)!=null?e:[]}set selectedFiles(e){this.$store.dispatch("gui/saveSettingWithoutUpload",{name:"view.gcodefiles.selectedFiles",value:e})}get fixedHeaders(){return[{text:"",value:"",visible:!0,sortable:!1},{text:this.$t("Files.Name").toString(),value:"filename",visible:!0,class:"text-no-wrap"},{text:"",value:"status",visible:!0,class:"text-no-wrap",sortable:!1}]}get configurableHeaders(){const e=[{text:this.$t("Files.Filesize").toString(),value:"size",visible:!0,class:"text-no-wrap",outputType:"filesize"},{text:this.$t("Files.LastModified").toString(),value:"modified",visible:!0,class:"text-no-wrap",outputType:"date"},{text:this.$t("Files.ObjectHeight").toString(),value:"object_height",visible:!0,class:"text-no-wrap",outputType:"length"},{text:this.$t("Files.LayerHeight").toString(),value:"layer_height",visible:!0,class:"text-no-wrap",outputType:"length"},{text:this.$t("Files.NozzleDiameter").toString(),value:"nozzle_diameter",visible:!0,class:"text-no-wrap",outputType:"length"},{text:this.$t("Files.ExtruderTemp").toString(),value:"first_layer_extr_temp",visible:!0,class:"text-no-wrap",outputType:"temp"},{text:this.$t("Files.BedTemp").toString(),value:"first_layer_bed_temp",visible:!0,class:"text-no-wrap",outputType:"temp"},{text:this.$t("Files.ChamberTemp").toString(),value:"chamber_temp",visible:!0,class:"text-no-wrap",outputType:"temp"},{text:this.$t("Files.FilamentName").toString(),value:"filament_name",visible:!0,class:"text-no-wrap"},{text:this.$t("Files.FilamentType").toString(),value:"filament_type",visible:!0,class:"text-no-wrap",outputType:"string"},{text:this.$t("Files.FilamentUsage").toString(),value:"filament_total",visible:!0,class:"text-no-wrap",outputType:"length"},{text:this.$t("Files.FilamentWeight").toString(),value:"filament_weight_total",visible:!0,class:"text-no-wrap",outputType:"weight"},{text:this.$t("Files.PrintTime").toString(),value:"estimated_time",visible:!0,class:"text-no-wrap",outputType:"time"},{text:this.$t("Files.LastStartTime").toString(),value:"last_start_time",visible:!0,class:"text-no-wrap",outputType:"date"},{text:this.$t("Files.LastEndTime").toString(),value:"last_end_time",visible:!0,class:"text-no-wrap",outputType:"date"},{text:this.$t("Files.LastPrintDuration").toString(),value:"last_print_duration",visible:!0,class:"text-no-wrap",outputType:"time"},{text:this.$t("Files.LastTotalDuration").toString(),value:"last_total_duration",visible:!0,class:"text-no-wrap",outputType:"time"},{text:this.$t("Files.LastFilamentUsed").toString(),value:"last_filament_used",visible:!0,class:"text-no-wrap",outputType:"length"},{text:this.$t("Files.Slicer").toString(),value:"slicer",visible:!0,class:"text-no-wrap",outputType:"string"}];let s=0;return e.forEach(t=>{var i;t.visible=!this.hideMetadataColumns.includes(t.value);let r=(i=this.orderMetadataColumns)==null?void 0:i.findIndex(n=>n===t.value);r===-1&&(s++,r=this.orderMetadataColumns.length+s),t.pos=r}),e.sort((t,r)=>{var i,n;return((i=t.pos)!=null?i:0)-((n=r.pos)!=null?n:0)})}set configurableHeaders(e){const s=[];e.forEach(t=>s.push(t.value)),this.orderMetadataColumns=s}get headers(){return[...this.fixedHeaders,...this.configurableHeaders]}get tableColumns(){return this.configurableHeaders.filter(e=>e.visible)}get directory(){return this.$store.getters["files/getDirectory"]("gcodes"+this.currentPath)}get disk_usage(){var e,s;return(s=(e=this.directory)==null?void 0:e.disk_usage)!=null?s:{used:0,free:0,total:0}}get files(){return this.$store.getters["files/getGcodeFiles"](this.currentPath,this.showHiddenFiles,this.showPrintedFiles)}get filteredHeaders(){return this.headers.filter(e=>e.visible)}get orderMetadataColumns(){var e;return(e=this.$store.state.gui.view.gcodefiles.orderMetadataColumns)!=null?e:[]}set orderMetadataColumns(e){this.$store.dispatch("gui/saveSetting",{name:"view.gcodefiles.orderMetadataColumns",value:e})}get hideMetadataColumns(){var e;return(e=this.$store.state.gui.view.gcodefiles.hideMetadataColumns)!=null?e:[]}set hideMetadataColumns(e){this.$store.dispatch("gui/saveSetting",{name:"view.gcodefiles.hideMetadataColumns",value:e})}get showHiddenFiles(){return this.$store.state.gui.view.gcodefiles.showHiddenFiles}set showHiddenFiles(e){this.$store.dispatch("gui/saveSetting",{name:"view.gcodefiles.showHiddenFiles",value:e})}get showPrintedFiles(){return this.$store.state.gui.view.gcodefiles.showPrintedFiles}set showPrintedFiles(e){this.$store.dispatch("gui/saveSetting",{name:"view.gcodefiles.showPrintedFiles",value:e})}get sortBy(){return this.$store.state.gui.view.gcodefiles.sortBy}set sortBy(e){e===void 0&&(e="modified"),this.$store.dispatch("gui/saveSetting",{name:"view.gcodefiles.sortBy",value:e})}get sortDesc(){return this.$store.state.gui.view.gcodefiles.sortDesc}set sortDesc(e){e===void 0&&(e=!1),this.$store.dispatch("gui/saveSetting",{name:"view.gcodefiles.sortDesc",value:e})}get countPerPage(){return this.$store.state.gui.view.gcodefiles.countPerPage}set countPerPage(e){this.$store.dispatch("gui/saveSetting",{name:"view.gcodefiles.countPerPage",value:e})}get bigThumbnailBackground(){var e;return(e=this.$store.state.gui.uiSettings.bigThumbnailBackground)!=null?e:qt}get bigThumbnailTooltipColor(){if(qt.toLowerCase()!==this.bigThumbnailBackground.toLowerCase())return this.bigThumbnailBackground}getStatusIcon(e){return this.$store.getters["server/history/getPrintStatusIcon"](e)}getStatusTextColor(e){return this.$store.getters["server/history/getPrintStatusTextColor"](e)}getStatusColor(e){return this.$store.getters["server/history/getPrintStatusIconColor"](e)}dragOverFilelist(e,s){e.preventDefault(),s.isDirectory&&(e.target.parentElement.style.backgroundColor="#43A04720")}dragLeaveFilelist(e){e.preventDefault(),e.stopPropagation(),e.target.parentElement.style.backgroundColor="transparent"}async dragDropFilelist(e,s){e.preventDefault(),e.target.parentElement.style.backgroundColor="transparent";let t;s.filename===".."?t=this.currentPath.substring(0,this.currentPath.lastIndexOf("/")+1)+this.draggingFile.item.filename:t=this.currentPath+"/"+s.filename+"/"+this.draggingFile.item.filename,this.$socket.emit("server.files.move",{source:"gcodes"+this.currentPath+"/"+this.draggingFile.item.filename,dest:"gcodes"+t},{action:"files/getMove"})}async uploadFile(){var e;if((e=this.$refs.fileUpload.files)!=null&&e.length){const s=[...this.$refs.fileUpload.files];this.$refs.fileUpload.value="",await this.$store.dispatch("socket/addLoading",{name:"gcodeUpload"}),await this.$store.dispatch("files/uploadSetCurrentNumber",0),await this.$store.dispatch("files/uploadSetMaxNumber",this.$refs.fileUpload.files.length);for(const t of s){await this.$store.dispatch("files/uploadIncrementCurrentNumber");const r=this.currentPath.slice(0,1)==="/"?this.currentPath.slice(1):this.currentPath,i=await this.$store.dispatch("files/uploadFile",{file:t,path:r,root:"gcodes"});i!==!1&&this.$toast.success(this.$t("Files.SuccessfullyUploaded",{filename:i}).toString())}await this.$store.dispatch("socket/removeLoading",{name:"gcodeUpload"})}}clickUploadButton(){this.$refs.fileUpload.click()}createDirectory(){this.dialogCreateDirectory.name="",this.dialogCreateDirectory.show=!0,setTimeout(()=>{var e;(e=this.$refs.inputFieldCreateDirectory)==null||e.focus()},200)}createDirectoryAction(){this.dialogCreateDirectory.name.length&&(this.dialogCreateDirectory.show=!1,this.$socket.emit("server.files.post_directory",{path:"gcodes"+this.currentPath+"/"+this.dialogCreateDirectory.name},{action:"files/getCreateDir"}))}refreshFileList(){this.$socket.emit("server.files.get_directory",{path:"gcodes"+this.currentPath},{action:"files/getDirectory"})}advancedSearch(e,s){if(s===null||typeof e!="string")return!1;e=e.toString().toLowerCase();const t=s.toLowerCase().split(" ");for(const r of t)if(!e.includes(r))return!1;return!0}refreshMetadata(e){const s=e.filter(t=>!t.isDirectory&&!t.metadataRequested&&!t.metadataPulled);this.$store.dispatch("files/requestMetadata",s.map(t=>({filename:"gcodes"+this.currentPath+"/"+t.filename})))}clickRow(e,s=!1){(!this.contextMenu.shown||s)&&(s&&(this.contextMenu.shown=!1),e.isDirectory?this.currentPath+="/"+e.filename:!["error","printing","paused"].includes(this.printer_state)&&this.isGcodeFile(e)&&(this.dialogPrintFile.show=!0,this.dialogPrintFile.item=e))}clickRowGoBack(){this.currentPath=this.currentPath.slice(0,this.currentPath.lastIndexOf("/"))}clickPathNavGoToDirectory(e){this.currentPath=e.location}async addToQueue(e){let s=[this.currentPath,e.filename].join("/");s.startsWith("/")&&(s=s.slice(1)),await this.$store.dispatch("server/jobQueue/addToQueue",[s])}openAddBatchToQueueDialog(e){let s=[this.currentPath,e.filename].join("/");s.startsWith("/")&&(s=s.slice(1)),this.dialogAddBatchToQueue.isVisible=!0,this.dialogAddBatchToQueue.filename=s}closeAddBatchToQueueDialog(){this.dialogAddBatchToQueue.isVisible=!1}changeMetadataVisible(e,s){this.$store.dispatch("gui/setGcodefilesMetadata",{name:e,value:s})}showContextMenu(e,s){this.contextMenu.shown||(e==null||e.preventDefault(),this.contextMenu.shown=!0,this.contextMenu.x=(e==null?void 0:e.clientX)||(e==null?void 0:e.pageX)||window.screenX/2,this.contextMenu.y=(e==null?void 0:e.clientY)||(e==null?void 0:e.pageY)||window.screenY/2,this.contextMenu.item=s,this.$nextTick(()=>{this.contextMenu.shown=!0}))}editFile(e){this.$store.dispatch("editor/openFile",{root:"gcodes",path:this.currentPath,filename:e.filename,size:e.size,permissions:e.permissions})}downloadFile(){const e=this.currentPath+"/"+this.contextMenu.item.filename,s=this.apiUrl+"/server/files/gcodes"+encodeURI(e);window.open(s)}async downloadSelectedFiles(){let e=[];const s=async(i,n)=>{for(const a of n){const o="".concat(i,"/").concat(a.filename);if(a.isDirectory&&a.childrens){await s(o,a.childrens);continue}e.push(o)}};await s("gcodes/"+this.currentPath,this.selectedFiles);const t=new Date,r="".concat(t.getFullYear()).concat(t.getMonth()).concat(t.getDate(),"-").concat(t.getHours()).concat(t.getMinutes()).concat(t.getSeconds());this.$socket.emit("server.files.zip",{items:e,dest:"config/gcodes-".concat(r,".zip")},{action:"files/downloadZip",loading:"gcodeDownloadZip"}),this.selectedFiles=[]}renameFile(e){this.dialogRenameFile.item=e,this.dialogRenameFile.newName=e.filename,this.dialogRenameFile.show=!0,setTimeout(()=>{var s;(s=this.$refs.inputFieldRenameFile)==null||s.focus()},200)}renameFileAction(){this.dialogRenameFile.show=!1,this.$socket.emit("server.files.move",{source:"gcodes"+this.currentPath+"/"+this.dialogRenameFile.item.filename,dest:"gcodes"+this.currentPath+"/"+this.dialogRenameFile.newName},{action:"files/getMove"})}duplicateFile(e){this.dialogDuplicateFile.item=e,this.dialogDuplicateFile.newName=e.filename,this.dialogDuplicateFile.show=!0,setTimeout(()=>{var s;(s=this.$refs.inputFieldDuplicateFile)==null||s.focus()},200)}duplicateFileAction(){this.dialogDuplicateFile.show=!1,this.$socket.emit("server.files.copy",{source:"gcodes"+this.currentPath+"/"+this.dialogDuplicateFile.item.filename,dest:"gcodes"+this.currentPath+"/"+this.dialogDuplicateFile.newName})}renameDirectory(e){this.dialogRenameDirectory.item=e,this.dialogRenameDirectory.newName=e.filename,this.dialogRenameDirectory.show=!0,setTimeout(()=>{var s;(s=this.$refs.inputFieldRenameDirectory)==null||s.focus()},200)}renameDirectoryAction(){this.dialogRenameDirectory.show=!1,this.$socket.emit("server.files.move",{source:"gcodes"+this.currentPath+"/"+this.dialogRenameDirectory.item.filename,dest:"gcodes"+this.currentPath+"/"+this.dialogRenameDirectory.newName},{action:"files/getMove"})}removeFile(){this.$socket.emit("server.files.delete_file",{path:"gcodes"+this.currentPath+"/"+this.contextMenu.item.filename},{action:"files/getDeleteFile"}),this.deleteDialog=!1}deleteDirectory(e){this.dialogDeleteDirectory.item=e,this.dialogDeleteDirectory.show=!0}deleteDirectoryAction(){this.dialogDeleteDirectory.show=!1,this.$socket.emit("server.files.delete_directory",{path:"gcodes"+this.currentPath+"/"+this.contextMenu.item.filename,force:!0},{action:"files/getDeleteDir"})}closeStartPrint(){this.dialogPrintFile.show=!1}dragFile(e,s){e.preventDefault(),this.draggingFile.item=s}dragendFile(e){e.preventDefault(),this.draggingFile.item={isDirectory:!1,filename:"",permissions:"",modified:new Date,count_printed:0,preheat_gcode:null,small_thumbnail:null,big_thumbnail:null,big_thumbnail_width:null,last_filament_used:null,last_start_time:null,last_end_time:null,last_print_duration:null,last_status:null,last_total_duration:null}}hideMetadataColumsCanged(e){e.forEach(s=>{let t=this.headers.find(r=>r.value===s);t&&(t.visible=!1)})}isGcodeFile(e){const s=e.filename.slice(e.filename.lastIndexOf("."));return Ci.includes(s)}view3D(e){this.$router.push({path:"/viewer",query:{filename:"gcodes"+this.currentPath+"/"+e.filename}})}scanMeta(e){this.$store.dispatch("files/scanMetadata",{filename:"gcodes"+this.currentPath+"/"+e.filename})}deleteSelectedFiles(){this.selectedFiles.forEach(e=>{e.isDirectory?this.$socket.emit("server.files.delete_directory",{path:"gcodes"+this.currentPath+"/"+e.filename,force:!0},{action:"files/getDeleteDir"}):this.$socket.emit("server.files.delete_file",{path:"gcodes"+this.currentPath+"/"+e.filename},{action:"files/getDeleteFile"})}),this.selectedFiles=[],this.deleteSelectedDialog=!1}outputValue(e,s){const t=e.value in s?s[e.value]:null;if(t===null)return"--";switch(e.outputType){case"filesize":return Je(t);case"date":return this.formatDateTime(t);case"time":return tu(t);case"temp":return t.toFixed()+" °C";case"length":return t>1e3?(t/1e3).toFixed(2)+" m":t.toFixed(2)+" mm";case"weight":return t.toFixed(2)+" g";default:return t}}};NC([me("hideMetadataColums")],Ol.prototype,"hideMetadataColumsCanged",1);Ol=NC([D({components:{StartPrintDialog:vu,AddBatchToQueueDialog:an,Panel:B,SettingsRow:V,PathNavigation:on,draggable:Yr}})],Ol);var kR=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(B,{attrs:{title:e.$t("Files.GCodeFiles"),icon:e.mdiFileDocumentMultipleOutline,"card-class":"gcode-files-panel"}},[t(q,[t($,[t(_,{staticClass:"col-12 d-flex align-center"},[t(te,{staticStyle:{"max-width":"300px"},attrs:{"append-icon":e.mdiMagnify,label:e.$t("Files.Search"),"single-line":"",outlined:"",clearable:"","hide-details":"",dense:""},model:{value:e.search,callback:function(r){e.search=r},expression:"search"}}),t(ae),e.selectedFiles.length?t(g,{staticClass:"px-2 minwidth-0 ml-3",attrs:{title:e.$t("Files.Download"),color:"primary",loading:e.loadings.includes("gcodeDownloadZip")},on:{click:e.downloadSelectedFiles}},[t(v,[e._v(e._s(e.mdiCloudDownload))])],1):e._e(),e.selectedFiles.length?t(g,{staticClass:"px-2 minwidth-0 ml-3",attrs:{title:e.$t("Files.Delete"),color:"error"},on:{click:function(r){e.deleteSelectedDialog=!0}}},[t(v,[e._v(e._s(e.mdiDelete))])],1):e._e(),t("input",{ref:"fileUpload",staticStyle:{display:"none"},attrs:{type:"file",accept:e.gcodeInputFileAccept.join(", "),multiple:""},on:{change:e.uploadFile}}),t(g,{staticClass:"primary--text px-2 minwidth-0 ml-3",attrs:{title:e.$t("Files.UploadNewGcode"),loading:e.loadings.includes("gcodeUpload")},on:{click:e.clickUploadButton}},[t(v,[e._v(e._s(e.mdiUpload))])],1),t(g,{staticClass:"px-2 minwidth-0 ml-3",attrs:{title:e.$t("Files.CreateNewDirectory")},on:{click:e.createDirectory}},[t(v,[e._v(e._s(e.mdiFolderPlus))])],1),t(g,{staticClass:"px-2 minwidth-0 ml-3",attrs:{title:e.$t("Files.RefreshCurrentDirectory")},on:{click:e.refreshFileList}},[t(v,[e._v(e._s(e.mdiRefresh))])],1),t($e,{attrs:{"offset-y":"",left:"","close-on-content-click":!1,title:e.$t("Files.SetupCurrentList")},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"px-2 minwidth-0 ml-3"},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.mdiCog))])],1)]}}])},[t(Oe,[t(J,{staticClass:"minHeight36",attrs:{link:""}},[t($,[t(_,{staticClass:"pr-0"},[e._v(" "+e._s(e.$t("Files.HiddenFiles"))+" ")]),t(_,{staticClass:"col-auto pl-0"},[e.showHiddenFiles?t(v,{attrs:{color:"primary"},on:{click:function(r){r.stopPropagation(),e.showHiddenFiles=!1}}},[e._v(" "+e._s(e.mdiCheckboxMarked)+" ")]):t(v,{attrs:{color:"grey lighten-1"},on:{click:function(r){r.stopPropagation(),e.showHiddenFiles=!0}}},[e._v(" "+e._s(e.mdiCheckboxBlankOutline)+" ")])],1)],1)],1),t(J,{staticClass:"minHeight36",attrs:{link:""}},[t($,[t(_,{staticClass:"pr-0"},[e._v(" "+e._s(e.$t("Files.PrintedFiles"))+" ")]),t(_,{staticClass:"col-auto pl-0"},[e.showPrintedFiles?t(v,{attrs:{color:"primary"},on:{click:function(r){r.stopPropagation(),e.showPrintedFiles=!1}}},[e._v(" "+e._s(e.mdiCheckboxMarked)+" ")]):t(v,{attrs:{color:"grey lighten-1"},on:{click:function(r){r.stopPropagation(),e.showPrintedFiles=!0}}},[e._v(" "+e._s(e.mdiCheckboxBlankOutline)+" ")])],1)],1)],1),t(U),t("draggable",{staticClass:"v-list-item-group",attrs:{handle:".handle","ghost-class":"ghost",group:"gcodeFilesColumnOrder"},model:{value:e.configurableHeaders,callback:function(r){e.configurableHeaders=r},expression:"configurableHeaders"}},e._l(e.configurableHeaders,function(r){return t(J,{key:r.value,staticClass:"minHeight36"},[t($,[t(_,{staticClass:"col-auto pr-0"},[t(v,{staticClass:"handle"},[e._v(e._s(e.mdiDragVertical))])],1),t(_,[e._v(" "+e._s(r.text)+" ")]),t(_,{staticClass:"col-auto pl-0"},[r.visible?t(v,{attrs:{color:"primary"},on:{click:function(i){return i.stopPropagation(),e.changeMetadataVisible(r.value,!1)}}},[e._v(" "+e._s(e.mdiCheckboxMarked)+" ")]):t(v,{attrs:{color:"grey lighten-1"},on:{click:function(i){return i.stopPropagation(),e.changeMetadataVisible(r.value,!0)}}},[e._v(" "+e._s(e.mdiCheckboxBlankOutline)+" ")])],1)],1)],1)}),1)],1)],1)],1)],1)],1),t(q,[t($,[t(_,{staticClass:"col-12 py-2 d-flex align-center"},[t("span",[t("b",{staticClass:"mr-1"},[e._v(e._s(e.$t("Files.CurrentPath"))+":")]),t(on,{attrs:{path:e.currentPath,"base-directory-label":"/gcodes","on-segment-click":e.clickPathNavGoToDirectory}})],1),t(ae),e.disk_usage!==null?[t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t("span",e._g(e._b({},"span",n,!1),i),[t("b",[e._v(e._s(e.$t("Files.FreeDisk"))+":")]),e._v(" "+e._s(e.formatFilesize(e.disk_usage.free))+" ")])]}}],null,!1,1145199616)},[t("span",[e._v(" "+e._s(e.$t("Files.Used"))+": "+e._s(e.formatFilesize(e.disk_usage.used))+" "),t("br"),e._v(" "+e._s(e.$t("Files.Free"))+": "+e._s(e.formatFilesize(e.disk_usage.free))+" "),t("br"),e._v(" "+e._s(e.$t("Files.Total"))+": "+e._s(e.formatFilesize(e.disk_usage.total))+" ")])])]:e._e()],2)],1)],1),t(U,{staticClass:"mb-3"}),t(zr,{staticClass:"files-table",attrs:{items:e.files,headers:e.filteredHeaders,"custom-sort":e.sortFiles,"sort-by":e.sortBy,"sort-desc":e.sortDesc,"items-per-page":e.countPerPage,"footer-props":{itemsPerPageText:e.$t("Files.Files"),itemsPerPageAllText:e.$t("Files.AllFiles"),itemsPerPageOptions:[10,25,50,100,-1]},"item-key":"filename",search:e.search,"custom-filter":e.advancedSearch,"mobile-breakpoint":"0","show-select":""},on:{"update:sortBy":function(r){e.sortBy=r},"update:sort-by":function(r){e.sortBy=r},"update:sortDesc":function(r){e.sortDesc=r},"update:sort-desc":function(r){e.sortDesc=r},"update:itemsPerPage":function(r){e.countPerPage=r},"update:items-per-page":function(r){e.countPerPage=r},"current-items":e.refreshMetadata},scopedSlots:e._u([{key:"no-data",fn:function(){return[t("div",{staticClass:"text-center"},[e._v(e._s(e.$t("Files.Empty")))])]},proxy:!0},e.currentPath!==""?{key:"body.prepend",fn:function(){return[t("tr",{staticClass:"file-list-cursor",on:{click:e.clickRowGoBack,dragover:function(r){return e.dragOverFilelist(r,{isDirectory:!0,filename:".."})},dragleave:e.dragLeaveFilelist,drop:function(r){return r.preventDefault(),r.stopPropagation(),e.dragDropFilelist(r,{isDirectory:!0,filename:".."})}}},[t("td",{staticClass:"file-list__select-td pr-0"},[t(Fr,{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"pa-0 mr-0",attrs:{disabled:""}})],1),t("td",{staticClass:"px-0 text-center",staticStyle:{width:"32px"}},[t(v,[e._v(e._s(e.mdiFolderUpload))])],1),t("td",{staticClass:"",attrs:{colspan:e.filteredHeaders.length}},[e._v("..")])])]},proxy:!0}:null,{key:"item",fn:function(r){var i=r.index,n=r.item,a=r.isSelected,o=r.select;return[t("tr",{directives:[{name:"longpress",rawName:"v-longpress:600",value:function(l){return e.showContextMenu(l,n)},expression:"(e) => showContextMenu(e, item)",arg:"600"}],key:"".concat(i," ").concat(n.filename),staticClass:"file-list-cursor user-select-none",attrs:{draggable:"true","data-name":n.filename},on:{contextmenu:function(l){return e.showContextMenu(l,n)},click:function(l){return e.clickRow(n)},drag:function(l){return e.dragFile(l,n)},dragend:function(l){return e.dragendFile(l)},dragover:function(l){return e.dragOverFilelist(l,n)},dragleave:e.dragLeaveFilelist,drop:function(l){return l.preventDefault(),l.stopPropagation(),e.dragDropFilelist(l,n)}}},[t("td",{staticClass:"file-list__select-td pr-0"},[t(Fr,{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"pa-0 mr-0",attrs:{value:a},on:{click:function(l){return l.stopPropagation(),o(!a)}}})],1),t("td",{staticClass:"px-0 text-center",staticStyle:{width:"32px"}},[n.isDirectory?[t(v,[e._v(e._s(e.mdiFolder))])]:n.small_thumbnail?[t(de,{attrs:{top:"","content-class":"tooltip__content-opacity1",color:e.bigThumbnailTooltipColor,disabled:!n.big_thumbnail},scopedSlots:e._u([{key:"activator",fn:function(l){var c=l.on,u=l.attrs;return[t("vue-load-image",[t("img",e._g(e._b({attrs:{slot:"image",src:n.small_thumbnail,width:"32",height:"32",alt:n.filename},slot:"image"},"img",u,!1),c)),t("div",{attrs:{slot:"preloader"},slot:"preloader"},[t(dt,{attrs:{indeterminate:"",color:"primary"}})],1),t("div",{attrs:{slot:"error"},slot:"error"},[t(v,[e._v(e._s(e.mdiFile))])],1)])]}}],null,!0)},[t("span",[t("img",{attrs:{src:n.big_thumbnail,width:"250",alt:n.filename}})])])]:[t(v,[e._v(e._s(e.mdiFile))])]],2),t("td",{staticClass:""},[e._v(e._s(n.filename))]),t("td",{staticClass:"text-right text-no-wrap"},[n.last_status?t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(l){var c=l.on,u=l.attrs;return[t("span",e._g(e._b({},"span",u,!1),c),[n.count_printed>0?t("span",{class:"file-list__count_printed ".concat(e.getStatusTextColor(n.last_status))},[e._v(" "+e._s(n.count_printed)+" ")]):e._e(),t(v,{attrs:{small:"",color:e.getStatusColor(n.last_status)}},[e._v(" "+e._s(e.getStatusIcon(n.last_status))+" ")])],1)]}}],null,!0)},[t("span",[e._v(e._s(n.last_status.replace(/_/g," ")))])]):e._e()],1),e._l(e.tableColumns,function(l){return t("td",{key:l.value,class:l.outputType!=="date"?"text-no-wrap":""},[e._v(" "+e._s(e.outputValue(l,n))+" "),l.value==="slicer"?[t("br"),n.slicer_version?t("small",[e._v(e._s(n.slicer_version))]):e._e()]:e._e()],2)})],2)]}}],null,!0),model:{value:e.selectedFiles,callback:function(r){e.selectedFiles=r},expression:"selectedFiles"}})],1),t(vu,{attrs:{bool:e.dialogPrintFile.show,file:e.dialogPrintFile.item,"current-path":e.currentPath},on:{closeDialog:e.closeStartPrint}}),t($e,{attrs:{"position-x":e.contextMenu.x,"position-y":e.contextMenu.y,absolute:"","offset-y":""},model:{value:e.contextMenu.shown,callback:function(r){e.$set(e.contextMenu,"shown",r)},expression:"contextMenu.shown"}},[t(Oe,[e.contextMenu.item.isDirectory?e._e():t(J,{attrs:{disabled:e.printerIsPrinting||!e.klipperReadyForGui||!e.isGcodeFile(e.contextMenu.item)},on:{click:function(r){return e.clickRow(e.contextMenu.item,!0)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiPlay))]),e._v(" "+e._s(e.$t("Files.PrintStart"))+" ")],1),!e.contextMenu.item.isDirectory&&e.moonrakerComponents.includes("job_queue")?t(J,{attrs:{disabled:!e.isGcodeFile(e.contextMenu.item)},on:{click:function(r){return e.addToQueue(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiPlaylistPlus))]),e._v(" "+e._s(e.$t("Files.AddToQueue"))+" ")],1):e._e(),!e.contextMenu.item.isDirectory&&e.moonrakerComponents.includes("job_queue")?t(J,{attrs:{disabled:!e.isGcodeFile(e.contextMenu.item)},on:{click:function(r){return e.openAddBatchToQueueDialog(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiPlaylistPlus))]),e._v(" "+e._s(e.$t("Files.AddBatchToQueue"))+" ")],1):e._e(),e.contextMenu.item.preheat_gcode!==null?t(J,{attrs:{disabled:["error","printing","paused"].includes(e.printer_state)},on:{click:function(r){return e.doSend(e.contextMenu.item.preheat_gcode)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiFire))]),e._v(" "+e._s(e.$t("Files.Preheat"))+" ")],1):e._e(),e.contextMenu.item.isDirectory?e._e():t(J,{attrs:{disabled:!e.isGcodeFile(e.contextMenu.item)},on:{click:function(r){return e.view3D(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiVideo3d))]),e._v(" "+e._s(e.$t("Files.View3D"))+" ")],1),e.contextMenu.item.isDirectory?e._e():t(J,{attrs:{disabled:!e.isGcodeFile(e.contextMenu.item)},on:{click:function(r){return e.scanMeta(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiMagnify))]),e._v(" "+e._s(e.$t("Files.ScanMeta"))+" ")],1),e.contextMenu.item.isDirectory?e._e():t(J,{on:{click:e.downloadFile}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiCloudDownload))]),e._v(" "+e._s(e.$t("Files.Download"))+" ")],1),e.contextMenu.item.isDirectory?t(J,{on:{click:function(r){return e.renameDirectory(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiRenameBox))]),e._v(" "+e._s(e.$t("Files.Rename"))+" ")],1):e._e(),e.contextMenu.item.isDirectory?e._e():t(J,{on:{click:function(r){return e.editFile(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiFileDocumentEditOutline))]),e._v(" "+e._s(e.$t("Files.EditFile"))+" ")],1),e.contextMenu.item.isDirectory?e._e():t(J,{on:{click:function(r){return e.renameFile(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiRenameBox))]),e._v(" "+e._s(e.$t("Files.Rename"))+" ")],1),e.contextMenu.item.isDirectory?e._e():t(J,{on:{click:function(r){return e.duplicateFile(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiContentCopy))]),e._v(" "+e._s(e.$t("Files.Duplicate"))+" ")],1),e.contextMenu.item.isDirectory?e._e():t(J,{staticClass:"red--text",on:{click:function(r){e.deleteDialog=!0}}},[t(v,{staticClass:"mr-1",attrs:{color:"error"}},[e._v(e._s(e.mdiDelete))]),e._v(" "+e._s(e.$t("Files.Delete"))+" ")],1),e.contextMenu.item.isDirectory?t(J,{staticClass:"red--text",on:{click:function(r){return e.deleteDirectory(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1",attrs:{color:"error"}},[e._v(e._s(e.mdiDelete))]),e._v(" "+e._s(e.$t("Files.Delete"))+" ")],1):e._e()],1)],1),t(oe,{attrs:{"max-width":400},model:{value:e.dialogCreateDirectory.show,callback:function(r){e.$set(e.dialogCreateDirectory,"show",r)},expression:"dialogCreateDirectory.show"}},[t(B,{attrs:{title:e.$t("Files.NewDirectory"),"card-class":"gcode-files-new-directory-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.dialogCreateDirectory.show=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t(te,{ref:"inputFieldCreateDirectory",attrs:{label:e.$t("Files.Name"),required:"",rules:e.nameInputRules},on:{"update:error":function(r){return e.isInvalidName=r},keypress:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.createDirectoryAction.apply(null,arguments)}},model:{value:e.dialogCreateDirectory.name,callback:function(r){e.$set(e.dialogCreateDirectory,"name",r)},expression:"dialogCreateDirectory.name"}})],1),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.dialogCreateDirectory.show=!1}}},[e._v(e._s(e.$t("Files.Cancel")))]),t(g,{attrs:{disabled:e.isInvalidName,color:"primary",text:""},on:{click:e.createDirectoryAction}},[e._v(" "+e._s(e.$t("Files.Create"))+" ")])],1)],1)],1),t(oe,{attrs:{"max-width":400},model:{value:e.dialogRenameFile.show,callback:function(r){e.$set(e.dialogRenameFile,"show",r)},expression:"dialogRenameFile.show"}},[t(B,{attrs:{title:e.$t("Files.RenameFile"),"card-class":"gcode-files-rename-file-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.dialogRenameFile.show=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t(te,{ref:"inputFieldRenameFile",attrs:{label:e.$t("Files.Name"),required:"",rules:e.nameInputRules},on:{"update:error":function(r){return e.isInvalidName=r},keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.renameFileAction.apply(null,arguments)}},model:{value:e.dialogRenameFile.newName,callback:function(r){e.$set(e.dialogRenameFile,"newName",r)},expression:"dialogRenameFile.newName"}})],1),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.dialogRenameFile.show=!1}}},[e._v(e._s(e.$t("Files.Cancel")))]),t(g,{attrs:{disabled:e.isInvalidName,color:"primary",text:""},on:{click:e.renameFileAction}},[e._v(" "+e._s(e.$t("Files.Rename"))+" ")])],1)],1)],1),t(oe,{attrs:{"max-width":400},model:{value:e.dialogDuplicateFile.show,callback:function(r){e.$set(e.dialogDuplicateFile,"show",r)},expression:"dialogDuplicateFile.show"}},[t(B,{attrs:{title:e.$t("Files.DuplicateFile"),"card-class":"gcode-files-duplicate-file-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.dialogDuplicateFile.show=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t(te,{ref:"inputFieldDuplicateFile",attrs:{label:e.$t("Files.Name"),required:"",rules:e.nameInputRules},on:{"update:error":function(r){return e.isInvalidName=r},keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.duplicateFileAction.apply(null,arguments)}},model:{value:e.dialogDuplicateFile.newName,callback:function(r){e.$set(e.dialogDuplicateFile,"newName",r)},expression:"dialogDuplicateFile.newName"}})],1),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.dialogDuplicateFile.show=!1}}},[e._v(e._s(e.$t("Files.Cancel")))]),t(g,{attrs:{disabled:e.isInvalidName,color:"primary",text:""},on:{click:e.duplicateFileAction}},[e._v(" "+e._s(e.$t("Files.Duplicate"))+" ")])],1)],1)],1),t(oe,{attrs:{"max-width":"400"},model:{value:e.dialogRenameDirectory.show,callback:function(r){e.$set(e.dialogRenameDirectory,"show",r)},expression:"dialogRenameDirectory.show"}},[t(B,{attrs:{title:e.$t("Files.RenameDirectory"),"card-class":"gcode-files-rename-directory-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.dialogRenameDirectory.show=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t(te,{ref:"inputFieldRenameDirectory",attrs:{label:e.$t("Files.Name"),required:"",rules:e.nameInputRules},on:{"update:error":function(r){return e.isInvalidName=r},keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.renameDirectoryAction.apply(null,arguments)}},model:{value:e.dialogRenameDirectory.newName,callback:function(r){e.$set(e.dialogRenameDirectory,"newName",r)},expression:"dialogRenameDirectory.newName"}})],1),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.dialogRenameDirectory.show=!1}}},[e._v(e._s(e.$t("Files.Cancel")))]),t(g,{attrs:{disabled:e.isInvalidName,color:"primary",text:""},on:{click:e.renameDirectoryAction}},[e._v(" "+e._s(e.$t("Files.Rename"))+" ")])],1)],1)],1),t(oe,{attrs:{"max-width":"400"},model:{value:e.dialogDeleteDirectory.show,callback:function(r){e.$set(e.dialogDeleteDirectory,"show",r)},expression:"dialogDeleteDirectory.show"}},[t(B,{attrs:{title:e.$t("Files.DeleteDirectory"),"card-class":"gcode-files-delete-directory-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.dialogDeleteDirectory.show=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t("p",{staticClass:"mb-0"},[e._v(" "+e._s(e.$t("Files.DeleteDirectoryQuestion",{name:e.dialogDeleteDirectory.item.filename}))+" ")])]),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.dialogDeleteDirectory.show=!1}}},[e._v(e._s(e.$t("Files.Cancel")))]),t(g,{attrs:{color:"error",text:""},on:{click:e.deleteDirectoryAction}},[e._v(e._s(e.$t("Files.Delete")))])],1)],1)],1),t(oe,{attrs:{"max-width":"400"},model:{value:e.deleteDialog,callback:function(r){e.deleteDialog=r},expression:"deleteDialog"}},[t(B,{attrs:{title:e.$t("Files.Delete"),"card-class":"gcode-files-delete-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.deleteDialog=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t("p",{staticClass:"mb-0"},[e._v(" "+e._s(e.$t("Files.DeleteSingleFileQuestion",{name:e.contextMenu.item.filename}))+" ")])]),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.deleteDialog=!1}}},[e._v(" "+e._s(e.$t("Files.Cancel"))+" ")]),t(g,{attrs:{color:"error",text:""},on:{click:e.removeFile}},[e._v(" "+e._s(e.$t("Files.Delete"))+" ")])],1)],1)],1),t(oe,{attrs:{"max-width":"400"},model:{value:e.deleteSelectedDialog,callback:function(r){e.deleteSelectedDialog=r},expression:"deleteSelectedDialog"}},[t(B,{attrs:{title:e.$t("Files.Delete"),"card-class":"gcode-files-delete-selected-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.deleteSelectedDialog=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[e.selectedFiles.length===1?t("p",{staticClass:"mb-0"},[e._v(" "+e._s(e.$t("Files.DeleteSingleFileQuestion",{name:e.selectedFiles[0].filename}))+" ")]):t("p",{staticClass:"mb-0"},[e._v(e._s(e.$t("Files.DeleteSelectedQuestion",{count:e.selectedFiles.length})))])]),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.deleteSelectedDialog=!1}}},[e._v(e._s(e.$t("Files.Cancel")))]),t(g,{attrs:{color:"error",text:""},on:{click:e.deleteSelectedFiles}},[e._v(e._s(e.$t("Files.Delete")))])],1)],1)],1),t(an,{attrs:{"is-visible":e.dialogAddBatchToQueue.isVisible,filename:e.dialogAddBatchToQueue.filename},on:{close:e.closeAddBatchToQueueDialog}})],1)},FR=[];const Ov={};var RR=E(Ol,kR,FR,!1,jR,null,null,null);function jR(e){for(let s in Ov)this[s]=Ov[s]}const VC=function(){return RR.exports}();var HR=Object.defineProperty,IR=Object.getOwnPropertyDescriptor,UC=(e,s,t,r)=>{for(var i=r>1?void 0:r?IR(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&HR(s,t,i),i};let Ll=class extends M(O){get sums(){const e={filamentLength:0,filamentWeight:0,estimatedTime:0};return this.jobs.forEach(s=>{var r,i,n,a,o,l,c,u;const t=((i=(r=s.combinedIds)==null?void 0:r.length)!=null?i:0)+1;e.filamentLength+=((a=(n=s.metadata)==null?void 0:n.filament_total)!=null?a:0)*t,e.filamentWeight+=((l=(o=s.metadata)==null?void 0:o.filament_weight_total)!=null?l:0)*t,e.estimatedTime+=((u=(c=s.metadata)==null?void 0:c.estimated_time)!=null?u:0)*t}),e}get count(){let e=0;return this.jobs.forEach(s=>{var t,r;e+=((r=(t=s.combinedIds)==null?void 0:t.length)!=null?r:0)+1}),e}get filamentLength(){const e=this.sums.filamentLength;return e===0?null:e>=1e3?(e/1e3).toFixed(1)+" m":e.toFixed(0)+" mm"}get filamentWeight(){const e=this.sums.filamentWeight;return e===0?null:e>=1e3?(e/1e3).toFixed(1)+" kg":e.toFixed(0)+" g"}get filamentOutput(){const e=[];return this.filamentLength&&e.push(this.filamentLength),this.filamentWeight&&e.push(this.filamentWeight),e.length?e.join(" / "):"--"}get estimatedTime(){let e=this.sums.estimatedTime;if(e==0)return"--";const s=[],t=Math.floor(e/(3600*24));t&&(e%=3600*24,s.push(t+"d"));const r=Math.floor(e/3600);e%=3600,r&&s.push(r+"h");const i=Math.floor(e/60);if(i&&s.push(i+"m"),r>0)return s.join(" ");const n=e%60;return n&&s.push(n.toFixed(0)+"s"),s.join(" ")}get currentPrintEta(){var s,t,r;let e=this.$store.getters["printer/getEstimatedTimeETA"];return e||(this.printerIsPrinting&&((s=this.$store.state.printer.print_stats)==null?void 0:s.print_duration)===0?Date.now()+((r=(t=this.$store.state.printer.current_file)==null?void 0:t.estimated_time)!=null?r:0)*1e3:Date.now())}get eta(){var l;if(this.sums.estimatedTime===0)return"--";let e=this.currentPrintEta+this.sums.estimatedTime*1e3;const s=(l=this.$store.getters["gui/getHours12Format"])!=null?l:!1,t=new Date(e);let r=!0,i=t.getHours();s&&i>11&&(r=!1),s&&i>12&&(i-=12),s&&i==0&&(i+=12),i<10&&(i="0"+i);const n=t.getMinutes()>=10?t.getMinutes():"0"+t.getMinutes(),a=e-new Date().getTime();let o=i+":"+n;return s&&(o+=" ".concat(r?"AM":"PM")),a>60*60*24*1e3&&(o+="+".concat(Math.trunc(a/(60*60*24*1e3)))),o}};UC([P({type:Array,required:!0})],Ll.prototype,"jobs",2);Ll=UC([D],Ll);var NR=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t($,{staticClass:"jobqueue-entry-sum"},[t(_,{staticClass:"py-2",staticStyle:{"font-size":"0.875em"}},[t("small",[t("span",{staticClass:"text-no-wrap mr-1"},[e._v(e._s(e.$t("Panels.StatusPanel.Filament"))+": "+e._s(e.filamentOutput)+",")]),t("span",{staticClass:"text-no-wrap mr-1"},[e._v(e._s(e.$t("Panels.StatusPanel.PrintTime"))+": "+e._s(e.estimatedTime)+",")]),t("span",{staticClass:"text-no-wrap mr-1"},[e._v(e._s(e.$t("Panels.StatusPanel.ETA"))+": "+e._s(e.eta))])])])],1)},VR=[];const Lv={};var UR=E(Ll,NR,VR,!1,BR,"3fc24e22",null,null);function BR(e){for(let s in Lv)this[s]=Lv[s]}const BC=function(){return UR.exports}();var WR=Object.defineProperty,GR=Object.getOwnPropertyDescriptor,zR=(e,s,t,r)=>{for(var i=r>1?void 0:r?GR(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&WR(s,t,i),i};let Nm=class extends M(O){constructor(){super(...arguments),this.mdiPlay=en,this.mdiPause=Dp,this.mdiTrayFull=_3,this.joblist=[]}get jobs(){return this.$store.getters["server/jobQueue/getJobs"]}get queueState(){var e;return(e=this.$store.state.server.jobQueue.queue_state)!=null?e:""}startJobqueue(){this.$store.dispatch("server/jobQueue/start")}pauseJobqueue(){this.$store.dispatch("server/jobQueue/pause")}updateOrder(e){this.$store.dispatch("server/jobQueue/changePosition",{newIndex:e.newIndex,oldIndex:e.oldIndex})}};Nm=zR([D({components:{JobqueueEntrySum:BC,draggable:Yr,JobqueueEntry:fu,Panel:B}})],Nm);var ZR=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(B,{attrs:{icon:e.mdiTrayFull,title:e.$t("JobQueue.JobQueue"),"card-class":"jobqueue-panel"},scopedSlots:e._u([{key:"buttons",fn:function(){return[e.queueState==="paused"?t(g,{attrs:{color:"success",loading:e.loadings.includes("startJobqueue"),icon:"",tile:"",disabled:!e.klipperReadyForGui},on:{click:e.startJobqueue}},[t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(v,e._g(e._b({},"v-icon",n,!1),i),[e._v(e._s(e.mdiPlay))])]}}],null,!1,2134053718)},[t("span",[e._v(e._s(e.$t("JobQueue.Start")))])])],1):e._e(),["ready","loading"].includes(e.queueState)?t(g,{attrs:{color:"warning",loading:e.loadings.includes("pauseJobqueue"),icon:"",tile:""},on:{click:e.pauseJobqueue}},[t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(v,e._g(e._b({},"v-icon",n,!1),i),[e._v(e._s(e.mdiPause))])]}}],null,!1,1749587264)},[t("span",[e._v(e._s(e.$t("JobQueue.Pause")))])])],1):e._e()]},proxy:!0}])},[e.jobs.length?t($,{staticClass:"mx-0 mt-0"},[t(_,[t("draggable",{staticClass:"jobqueue-list mb-3",attrs:{handle:".handle","ghost-class":"ghost",group:"jobs"},on:{end:e.updateOrder},model:{value:e.joblist,callback:function(r){e.joblist=r},expression:"joblist"}},e._l(e.jobs,function(r){return t(fu,{key:r.job_id,attrs:{job:r,"show-handle":!0}})}),1),t(BC,{attrs:{jobs:e.jobs}})],1)],1):t(q,[t("p",[e._v(e._s(e.$t("JobQueue.Empty")))])])],1)},qR=[];const Av={};var XR=E(Nm,ZR,qR,!1,YR,null,null,null);function YR(e){for(let s in Av)this[s]=Av[s]}const WC=function(){return XR.exports}();var JR=Object.defineProperty,KR=Object.getOwnPropertyDescriptor,QR=(e,s,t,r)=>{for(var i=r>1?void 0:r?KR(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&JR(s,t,i),i};let Vm=class extends M(O){constructor(){super(...arguments),this.mdiLockOutline=Gc}get queued_jobs(){var e;return(e=this.$store.state.server.jobQueue.queued_jobs)!=null?e:[]}get showJobQueue(){return this.moonrakerComponents.includes("job_queue")&&this.queued_jobs.length}};Vm=QR([D({components:{JobqueuePanel:WC,GcodefilesPanel:VC}})],Vm);var ej=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.existGcodesRootDirectory?t($,[t(_,{class:e.showJobQueue?"col-12 col-md-8 pt-0 pt-md-3 order-1 order-md-0":"col-12"},[t(VC)],1),e.showJobQueue?t(_,{staticClass:"col-12 col-md-4 pb-0 pb-sm-3 order-0 order-md-1"},[t(WC)],1):e._e()],1):t($,[t(it,{staticClass:"mx-auto mt-6",attrs:{dense:"",text:"",type:"warning",elevation:"2","max-width":"500",icon:e.mdiLockOutline}},[e._v(" "+e._s(e.$t("Files.GcodesRootDirectoryDoesntExists"))+" ")])],1)},tj=[];const kv={};var sj=E(Vm,ej,tj,!1,rj,null,null,null);function rj(e){for(let s in kv)this[s]=kv[s]}const ij=function(){return sj.exports}();var nj=Object.defineProperty,aj=Object.getOwnPropertyDescriptor,cf=(e,s,t,r)=>{for(var i=r>1?void 0:r?aj(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&nj(s,t,i),i};let oa=class extends M(O){constructor(){super(...arguments),this.mdiCloseThick=pe,this.mdiUpdate=Ia,this.formatFilesize=Je,this.formatPrintTime=tu}get entries(){var t,r,i,n,a,o,l,c,u,d,m,h,p,f,b,C,S,L,N,R,x,T,I,j,W,Z,re,k,G,X,Y,ee,se;let s=[{name:this.$t("History.Filename").toString(),value:this.job.filename,exists:!0},{name:this.$t("History.Filesize").toString(),value:Je((r=(t=this.job.metadata)==null?void 0:t.filesize)!=null?r:0),exists:((n=(i=this.job.metadata)==null?void 0:i.filesize)!=null?n:0)>0},{name:this.$t("History.LastModified").toString(),value:this.formatDateTime(((o=(a=this.job.metadata)==null?void 0:a.modified)!=null?o:0)*1e3),exists:((c=(l=this.job.metadata)==null?void 0:l.modified)!=null?c:0)>0},{name:this.$t("History.Status").toString(),value:this.$te("History.StatusValues.".concat(this.job.status),"en")?this.$t("History.StatusValues.".concat(this.job.status)).toString():this.job.status,exists:!0},{name:this.$t("History.StartTime").toString(),value:this.formatDateTime(this.job.start_time*1e3),exists:!0},{name:this.$t("History.EndTime").toString(),value:this.formatDateTime(this.job.end_time*1e3),exists:this.job.end_time>0},{name:this.$t("History.EstimatedTime").toString(),value:this.formatPrintTime((d=(u=this.job.metadata)==null?void 0:u.estimated_time)!=null?d:0),exists:this.job.metadata&&"estimated_time"in this.job.metadata},{name:this.$t("History.PrintDuration").toString(),value:this.formatPrintTime((m=this.job.print_duration)!=null?m:0),exists:this.job.print_duration>0},{name:this.$t("History.TotalDuration").toString(),value:this.formatPrintTime((h=this.job.total_duration)!=null?h:0),exists:this.job.total_duration>0},{name:this.$t("History.EstimatedFilamentWeight").toString(),value:"".concat(Math.round(((f=(p=this.job.metadata)==null?void 0:p.filament_weight_total)!=null?f:0)*100)/100," g"),exists:this.job.metadata&&"filament_weight_total"in this.job.metadata},{name:this.$t("History.EstimatedFilament").toString(),value:"".concat(Math.round((C=(b=this.job.metadata)==null?void 0:b.filament_total)!=null?C:0)," mm"),exists:this.job.metadata&&"filament_total"in this.job.metadata},{name:this.$t("History.FilamentUsed").toString(),value:"".concat(Math.round((L=(S=this.job.metadata)==null?void 0:S.filament_used)!=null?L:0)," mm"),exists:this.job.metadata&&"filament_used"in this.job.metadata},{name:this.$t("History.FirstLayerExtTemp").toString(),value:"".concat((R=(N=this.job.metadata)==null?void 0:N.first_layer_extr_temp)!=null?R:0," °C"),exists:this.job.metadata&&"first_layer_extr_temp"in this.job.metadata},{name:this.$t("History.FirstLayerBedTemp").toString(),value:"".concat((T=(x=this.job.metadata)==null?void 0:x.first_layer_bed_temp)!=null?T:0," °C"),exists:this.job.metadata&&"first_layer_bed_temp"in this.job.metadata},{name:this.$t("History.FirstLayerHeight").toString(),value:"".concat((j=(I=this.job.metadata)==null?void 0:I.first_layer_height)!=null?j:0," mm"),exists:this.job.metadata&&"first_layer_height"in this.job.metadata},{name:this.$t("History.LayerHeight").toString(),value:"".concat((Z=(W=this.job.metadata)==null?void 0:W.layer_height)!=null?Z:0," mm"),exists:this.job.metadata&&"layer_height"in this.job.metadata},{name:this.$t("History.ObjectHeight").toString(),value:"".concat((k=(re=this.job.metadata)==null?void 0:re.object_height)!=null?k:0," mm"),exists:this.job.metadata&&"object_height"in this.job.metadata},{name:this.$t("History.Slicer").toString(),value:(X=(G=this.job.metadata)==null?void 0:G.slicer)!=null?X:"--",exists:this.job.metadata&&"slicer"in this.job.metadata},{name:this.$t("History.SlicerVersion").toString(),value:(ee=(Y=this.job.metadata)==null?void 0:Y.slicer_version)!=null?ee:"--",exists:this.job.metadata&&"slicer_version"in this.job.metadata}];return"auxiliary_data"in this.job&&((se=this.job.auxiliary_data)==null||se.forEach(F=>{let z=F.value.toString();Array.isArray(F.value)||(z="".concat(Math.round(F.value*1e3)/1e3," ").concat(F.units)),z===""&&(z="--"),s.push({name:F.description,value:z,exists:!0})})),s.filter(F=>F.exists)}closeDialog(){this.$emit("close-dialog")}};cf([P({type:Boolean,required:!0})],oa.prototype,"show",2);cf([P({type:Object,required:!0})],oa.prototype,"job",2);oa=cf([D({components:{Panel:B,SettingsRow:V}})],oa);var oj=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{"max-width":600,persistent:""},on:{keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"esc",27,r.key,["Esc","Escape"])?null:e.closeDialog.apply(null,arguments)}},model:{value:e.show,callback:function(r){e.show=r},expression:"show"}},[t(B,{attrs:{title:e.$t("History.JobDetails").toString(),icon:e.mdiUpdate,"card-class":"history-detail-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,{staticClass:"pa-0"},[t("overlay-scrollbars",{staticClass:"px-6",staticStyle:{height:"350px"}},[e._l(e.entries,function(r,i){return[i>0?t(U,{key:"history_detail_entry_divider_"+i,staticClass:"my-3"}):e._e(),t($,{key:"history_detail_entry_"+i},[t(_,[e._v(e._s(r.name))]),t(_,{staticClass:"text-right"},[e._v(e._s(r.value))])],1)]})],2)],1)],1)],1)},lj=[];const Fv={};var cj=E(oa,oj,lj,!1,uj,"fa267930",null,null);function uj(e){for(let s in Fv)this[s]=Fv[s]}const uf=function(){return cj.exports}();var dj=Object.defineProperty,mj=Object.getOwnPropertyDescriptor,Za=(e,s,t,r)=>{for(var i=r>1?void 0:r?mj(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&dj(s,t,i),i};let Br=class extends M(O){constructor(){super(...arguments),this.mdiCloseThick=pe,this.note=""}get panelTitle(){return this.type==="create"?this.$t("History.CreateNote").toString():this.$t("History.EditNote").toString()}get icon(){return this.type==="create"?Zy:zy}saveNote(){var e;this.$store.dispatch("server/history/saveHistoryNote",{job_id:(e=this.job)==null?void 0:e.job_id,note:this.note}),this.closeDialog()}closeDialog(){this.$emit("close-dialog")}onShowChanged(){var e;this.show&&(this.note=(e=this.job.note)!=null?e:"")}};Za([P({type:Boolean,required:!0})],Br.prototype,"show",2);Za([P({type:String,required:!0})],Br.prototype,"type",2);Za([P({type:Object,required:!0})],Br.prototype,"job",2);Za([me("show",{immediate:!0})],Br.prototype,"onShowChanged",1);Br=Za([D({components:{Panel:B,SettingsRow:V}})],Br);var hj=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{"max-width":600,persistent:""},on:{keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"esc",27,r.key,["Esc","Escape"])?null:e.closeDialog.apply(null,arguments)}},model:{value:e.show,callback:function(r){e.show=r},expression:"show"}},[t(B,{attrs:{title:e.panelTitle,icon:e.icon,"card-class":"history-note-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,{staticClass:"pb-0"},[t($,[t(_,[t(Bs,{attrs:{outlined:"","hide-details":"",label:e.$t("History.Note")},model:{value:e.note,callback:function(r){e.note=r},expression:"note"}})],1)],1)],1),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:e.closeDialog}},[e._v(e._s(e.$t("History.Cancel")))]),t(g,{attrs:{color:"primary",text:""},on:{click:e.saveNote}},[e._v(e._s(e.$t("History.Save")))])],1)],1)],1)},pj=[];const Rv={};var fj=E(Br,hj,pj,!1,gj,"e397e32c",null,null);function gj(e){for(let s in Rv)this[s]=Rv[s]}const GC=function(){return fj.exports}();var vj=Object.defineProperty,_j=Object.getOwnPropertyDescriptor,Tu=(e,s,t,r)=>{for(var i=r>1?void 0:r?_j(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&vj(s,t,i),i};let Ri=class extends M(O){constructor(){super(...arguments),this.mdiCloseThick=pe,this.mdiDelete=ze,this.mdiFile=pr,this.mdiFileCancel=DT,this.mdiNoteEditOutline=zy,this.mdiNotePlusOutline=Zy,this.mdiNoteTextOutline=YT,this.mdiPrinter=Jy,this.mdiTextBoxSearch=i2,this.mdiPlaylistPlus=Xc,this.detailsDialogBool=!1,this.contextMenuBool=!1,this.contextMenuX=0,this.contextMenuY=0,this.noteDialogBool=!1,this.noteDialogType="create",this.addBatchToQueueDialogBool=!1}get smallThumbnail(){var r,i,n,a,o,l;if(((n=(i=(r=this.item.metadata)==null?void 0:r.thumbnails)==null?void 0:i.length)!=null?n:0)<1)return!1;const s=(o=(a=this.item.metadata)==null?void 0:a.thumbnails)==null?void 0:o.find(c=>c.width>=bs&&c.width<=ys&&c.height>=bs&&c.height<=ys);let t="";return this.item.filename.lastIndexOf("/")!==-1&&(t=this.item.filename.substring(0,this.item.filename.lastIndexOf("/"))),((l=s==null?void 0:s.relative_path)!=null?l:null)===null?!1:"".concat(this.apiUrl,"/server/files/gcodes/").concat(encodeURI(t+(s==null?void 0:s.relative_path)),"?timestamp=").concat(this.item.metadata.modified)}get bigThumbnail(){var r,i,n,a,o,l;if(((n=(i=(r=this.item.metadata)==null?void 0:r.thumbnails)==null?void 0:i.length)!=null?n:0)<1)return!1;const s=(o=(a=this.item.metadata)==null?void 0:a.thumbnails)==null?void 0:o.find(c=>c.width>=rr);let t="";return this.item.filename.lastIndexOf("/")!==-1&&(t=this.item.filename.substring(0,this.item.filename.lastIndexOf("/")+1)),((l=s==null?void 0:s.relative_path)!=null?l:null)===null?!1:"".concat(this.apiUrl,"/server/files/gcodes/").concat(encodeURI(t+(s==null?void 0:s.relative_path)),"?timestamp=").concat(this.item.metadata.modified)}get statusIcon(){return this.$store.getters["server/history/getPrintStatusIcon"](this.item.status)}get statusColor(){return this.$store.getters["server/history/getPrintStatusIconColor"](this.item.status)}get statusName(){return this.$t("History.StatusValues.".concat(this.item.status),"en")?this.$t("History.StatusValues.".concat(this.item.status)):this.item.status.replace(/_/g," ")}get cssClasses(){let s=["file-list-cursor","user-select-none"];return this.item.exists||s.push("text--disabled"),s}get isJobQueueAvailable(){return this.moonrakerComponents.includes("job_queue")}select(s){this.$emit("select",s)}showContextMenu(s){s==null||s.preventDefault(),!this.contextMenuBool&&(this.contextMenuBool=!0,this.contextMenuX=(s==null?void 0:s.clientX)||(s==null?void 0:s.pageX)||window.screenX/2,this.contextMenuY=(s==null?void 0:s.clientY)||(s==null?void 0:s.pageY)||window.screenY/2,this.$nextTick(()=>{this.contextMenuBool=!0}))}startPrint(){this.item.exists&&this.$socket.emit("printer.print.start",{filename:this.item.filename},{action:"switchToDashboard"})}createNote(){this.noteDialogType="create",this.noteDialogBool=!0}editNote(){this.noteDialogType="edit",this.noteDialogBool=!0}addToQueue(){this.$store.dispatch("server/jobQueue/addToQueue",[this.item.filename]),this.$toast.info(this.$t("History.AddToQueueSuccessful",{filename:this.item.filename}).toString())}deleteJob(){this.$socket.emit("server.history.delete_job",{uid:this.item.job_id},{action:"server/history/getDeletedJobs"})}outputValue(s,t){var i;let r=s.value in t?t[s.value]:null;if(r===null&&(r=s.value in t.metadata?t.metadata[s.value]:null),s.value.startsWith("history_field_")){const n=s.value.replace("history_field_",""),a=(i=t.auxiliary_data)==null?void 0:i.find(o=>o.name===n);if(a&&!Array.isArray(a.value))return"".concat(Math.round(a.value*1e3)/1e3," ").concat(a.units)}if(r===null)return"--";switch(s.value==="slicer"&&(r+="<br />"+t.metadata.slicer_version),s.outputType){case"filesize":return Je(r);case"date":return this.formatDateTime(r*1e3);case"time":return tu(r,!1);case"temp":return(r==null?void 0:r.toFixed())+" °C";case"length":return r>1e3?(r/1e3).toFixed(2)+" m":(r==null?void 0:r.toFixed(2))+" mm";default:return r}}};Tu([P({type:Object,required:!0})],Ri.prototype,"item",2);Tu([P({type:Array,required:!0})],Ri.prototype,"tableFields",2);Tu([P({type:Boolean,required:!0})],Ri.prototype,"isSelected",2);Ri=Tu([D({components:{AddBatchToQueueDialog:an,HistoryListPanelNoteDialog:GC,HistoryListPanelDetailsDialog:uf,Panel:B}})],Ri);var bj=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("tr",{directives:[{name:"longpress",rawName:"v-longpress:600",value:function(r){return e.showContextMenu(r)},expression:"(e) => showContextMenu(e)",arg:"600"}],key:e.item.job_id,class:e.cssClasses,on:{contextmenu:function(r){return e.showContextMenu(r)},click:function(r){e.detailsDialogBool=!0}}},[t("td",{staticClass:"pr-0"},[t(Fr,{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"pa-0 mr-0",attrs:{value:e.isSelected},on:{click:function(r){return r.stopPropagation(),e.select(!e.isSelected)}}})],1),t("td",{staticClass:"px-0 text-center",staticStyle:{width:"32px"}},[e.item.exists?e.smallThumbnail&&e.bigThumbnail?[t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t("vue-load-image",[t("img",e._g(e._b({attrs:{slot:"image",alt:e.item.filename,src:e.smallThumbnail,width:"32",height:"32"},slot:"image"},"img",n,!1),i)),t("div",{attrs:{slot:"preloader"},slot:"preloader"},[t(dt,{attrs:{indeterminate:"",color:"primary"}})],1),t("div",{attrs:{slot:"error"},slot:"error"},[t(v,[e._v(e._s(e.mdiFile))])],1)])]}}])},[t("span",[t("img",{attrs:{alt:e.item.filename,src:e.bigThumbnail,width:"250"}})])])]:e.smallThumbnail?[t("vue-load-image",[t("img",{attrs:{slot:"image",alt:e.item.filename,src:e.smallThumbnail,width:"32",height:"32"},slot:"image"}),t("div",{attrs:{slot:"preloader"},slot:"preloader"},[t(dt,{attrs:{indeterminate:"",color:"primary"}})],1),t("div",{attrs:{slot:"error"},slot:"error"},[t(v,[e._v(e._s(e.mdiFile))])],1)])]:[t(v,[e._v(e._s(e.mdiFile))])]:[t(v,{staticClass:"text--disabled"},[e._v(e._s(e.mdiFileCancel))])]],2),t("td",[e._v(e._s(e.item.filename))]),t("td",{staticClass:"text-right text-no-wrap"},["note"in e.item&&e.item.note?[t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(v,e._g(e._b({staticClass:"mr-2",attrs:{small:""}},"v-icon",n,!1),i),[e._v(" "+e._s(e.mdiNoteTextOutline)+" ")])]}}],null,!1,3447416518)},[t("span",{domProps:{innerHTML:e._s(e.item.note.replaceAll("\n","<br />"))}})])]:e._e(),t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t("span",e._g(e._b({},"span",n,!1),i),[t(v,{attrs:{small:"",color:e.statusColor,disabled:!e.item.exists}},[e._v(" "+e._s(e.statusIcon)+" ")])],1)]}}])},[t("span",[e._v(e._s(e.statusName))])])],2),e._l(e.tableFields,function(r){return t("td",{key:r.value,staticClass:"text-no-wrap",domProps:{innerHTML:e._s(e.outputValue(r,e.item))}})}),t($e,{attrs:{"position-x":e.contextMenuX,"position-y":e.contextMenuY,absolute:"","offset-y":""},model:{value:e.contextMenuBool,callback:function(r){e.contextMenuBool=r},expression:"contextMenuBool"}},[t(Oe,[t(J,{on:{click:function(r){e.detailsDialogBool=!0}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiTextBoxSearch))]),e._v(" "+e._s(e.$t("History.Details"))+" ")],1),e.item.note?t(J,{on:{click:e.editNote}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiNoteEditOutline))]),e._v(" "+e._s(e.$t("History.EditNote"))+" ")],1):t(J,{on:{click:e.createNote}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiNotePlusOutline))]),e._v(" "+e._s(e.$t("History.AddNote"))+" ")],1),e.item.exists?t(J,{attrs:{disabled:e.printerIsPrinting||!e.klipperReadyForGui},on:{click:e.startPrint}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiPrinter))]),e._v(" "+e._s(e.$t("History.Reprint"))+" ")],1):e._e(),e.item.exists&&e.isJobQueueAvailable?t(J,{on:{click:e.addToQueue}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiPlaylistPlus))]),e._v(" "+e._s(e.$t("Files.AddToQueue"))+" ")],1):e._e(),e.item.exists&&e.isJobQueueAvailable?t(J,{on:{click:function(r){e.addBatchToQueueDialogBool=!0}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiPlaylistPlus))]),e._v(" "+e._s(e.$t("Files.AddBatchToQueue"))+" ")],1):e._e(),t(J,{staticClass:"red--text",on:{click:e.deleteJob}},[t(v,{staticClass:"mr-1",attrs:{color:"error"}},[e._v(e._s(e.mdiDelete))]),e._v(" "+e._s(e.$t("History.Delete"))+" ")],1)],1)],1),t(uf,{attrs:{show:e.detailsDialogBool,job:e.item},on:{"close-dialog":function(r){e.detailsDialogBool=!1}}}),t(GC,{attrs:{show:e.noteDialogBool,type:e.noteDialogType,job:e.item},on:{"close-dialog":function(r){e.noteDialogBool=!1}}}),t(an,{attrs:{"is-visible":e.addBatchToQueueDialogBool,"show-toast":!0,filename:e.item.filename},on:{close:function(r){e.addBatchToQueueDialogBool=!1}}})],2)},yj=[];const jv={};var Cj=E(Ri,bj,yj,!1,$j,null,null,null);function $j(e){for(let s in jv)this[s]=jv[s]}const zC=function(){return Cj.exports}();var xj=Object.defineProperty,wj=Object.getOwnPropertyDescriptor,df=(e,s,t,r)=>{for(var i=r>1?void 0:r?wj(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&xj(s,t,i),i};let la=class extends M(O){constructor(){super(...arguments),this.mdiAdjust=Ki,this.mdiAlarm=Bn,this.mdiCalendar=Ic,this.mdiCloseThick=pe,this.mdiNotebookPlus=qy,this.name="",this.note="",this.reminder=null,this.reminderFilament=!1,this.reminderFilamentValue=0,this.reminderPrinttime=!1,this.reminderPrinttimeValue=0,this.reminderDate=!1,this.reminderDateValue=0,this.nameInputRules=[s=>!!s||this.$t("History.InvalidNameEmpty")]}get reminderItems(){return[{text:this.$t("History.NoReminder").toString(),value:null},{text:this.$t("History.OneTime").toString(),value:"one-time"},{text:this.$t("History.Repeat").toString(),value:"repeat"}]}get totalFilamentUsed(){var s,t;return(t=(s=this.$store.state.server.history.job_totals)==null?void 0:s.total_filament_used)!=null?t:0}get totalPrinttime(){var s,t;return(t=(s=this.$store.state.server.history.job_totals)==null?void 0:s.total_print_time)!=null?t:0}get isValid(){return!(this.name===""||this.reminder!==null&&(!this.reminderFilament&&!this.reminderPrinttime&&!this.reminderDate||this.reminderFilament&&this.reminderFilamentValue<=0||this.reminderPrinttime&&this.reminderPrinttimeValue<=0||this.reminderDate&&this.reminderDateValue<=0))}closeDialog(){this.$emit("close")}save(){const s=new Date;this.$store.dispatch("gui/maintenance/store",{entry:{name:this.name,note:this.note,start_time:s.getTime()/1e3,end_time:null,start_filament:this.totalFilamentUsed,end_filament:null,start_printtime:this.totalPrinttime,end_printtime:null,reminder:{type:this.reminder,filament:{bool:this.reminderFilament,value:this.reminderFilamentValue},printtime:{bool:this.reminderPrinttime,value:this.reminderPrinttimeValue},date:{bool:this.reminderDate,value:this.reminderDateValue}}}}),this.closeDialog()}resetValues(){this.name="",this.note="",this.reminder=null,this.reminderFilament=!1,this.reminderFilamentValue=0,this.reminderPrinttime=!1,this.reminderPrinttimeValue=0,this.reminderDate=!1,this.reminderDateValue=0}onShowChanged(){this.show&&this.resetValues()}};df([P({type:Boolean,default:!1})],la.prototype,"show",2);df([me("show")],la.prototype,"onShowChanged",1);la=df([D({components:{Panel:B,SettingsRow:V}})],la);var Sj=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{value:e.show,"max-width":600,persistent:""},on:{keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"esc",27,r.key,["Esc","Escape"])?null:e.closeDialog.apply(null,arguments)}}},[t(B,{attrs:{title:e.$t("History.AddMaintenance"),icon:e.mdiNotebookPlus,"card-class":"history-add-maintenance-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,{staticClass:"pb-0"},[t($,[t(_,[t(te,{attrs:{rules:e.nameInputRules,label:e.$t("History.Name"),"hide-details":"auto",outlined:"",dense:""},model:{value:e.name,callback:function(r){e.name=r},expression:"name"}})],1)],1),t($,[t(_,[t(Bs,{attrs:{outlined:"","hide-details":"auto",label:e.$t("History.Note")},model:{value:e.note,callback:function(r){e.note=r},expression:"note"}})],1)],1),t($,[t(_,[t(V,{attrs:{title:e.$t("History.Reminder")}},[t(Ee,{staticClass:"mt-0",attrs:{items:e.reminderItems,outlined:"",dense:"","hide-details":""},model:{value:e.reminder,callback:function(r){e.reminder=r},expression:"reminder"}})],1)],1)],1),e.reminder?[t($,[t(_,[t(V,{attrs:{icon:e.mdiAdjust,title:e.$t("History.FilamentBasedReminder"),"sub-title":e.$t("History.FilamentBasedReminderDescription")}},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.reminderFilament,callback:function(r){e.reminderFilament=r},expression:"reminderFilament"}}),t(te,{staticClass:"mt-0",attrs:{"hide-details":"auto",type:"number",outlined:"",dense:"",suffix:e.$t("History.Meter")},model:{value:e.reminderFilamentValue,callback:function(r){e.reminderFilamentValue=e._n(r)},expression:"reminderFilamentValue"}})],1)],1)],1),t($,[t(_,[t(V,{attrs:{icon:e.mdiAlarm,title:e.$t("History.PrinttimeBasedReminder"),"sub-title":e.$t("History.PrinttimeBasedReminderDescription")}},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.reminderPrinttime,callback:function(r){e.reminderPrinttime=r},expression:"reminderPrinttime"}}),t(te,{staticClass:"mt-0",attrs:{"hide-details":"auto",type:"number",outlined:"",dense:"",suffix:e.$t("History.Hours")},model:{value:e.reminderPrinttimeValue,callback:function(r){e.reminderPrinttimeValue=e._n(r)},expression:"reminderPrinttimeValue"}})],1)],1)],1),t($,[t(_,[t(V,{attrs:{icon:e.mdiCalendar,title:e.$t("History.DateBasedReminder"),"sub-title":e.$t("History.DateBasedReminderDescription")}},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.reminderDate,callback:function(r){e.reminderDate=r},expression:"reminderDate"}}),t(te,{staticClass:"mt-0",attrs:{"hide-details":"auto",type:"number",outlined:"",dense:"",suffix:e.$t("History.Days")},model:{value:e.reminderDateValue,callback:function(r){e.reminderDateValue=e._n(r)},expression:"reminderDateValue"}})],1)],1)],1)]:e._e()],2),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:e.closeDialog}},[e._v(e._s(e.$t("History.Cancel")))]),t(g,{attrs:{color:"primary",text:"",disabled:!e.isValid},on:{click:e.save}},[e._v(e._s(e.$t("History.Save")))])],1)],1)],1)},Pj=[];const Hv={};var Dj=E(la,Sj,Pj,!1,Tj,null,null,null);function Tj(e){for(let s in Hv)this[s]=Hv[s]}const ZC=function(){return Dj.exports}();var Mj=Object.defineProperty,Ej=Object.getOwnPropertyDescriptor,Mu=(e,s,t,r)=>{for(var i=r>1?void 0:r?Ej(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Mj(s,t,i),i};let ji=class extends M(O){constructor(){super(...arguments),this.mdiAdjust=Ki,this.mdiAlarm=Bn,this.mdiCalendar=Ic,this.mdiCloseThick=pe}get date(){return this.formatDateTime(this.item.start_time*1e3,!1)}get dateText(){return this.last?this.$t("History.EntryCreatedAt",{date:this.date}):this.$t("History.EntryPerformedAt",{date:this.date})}get showGoals(){return this.item.reminder.type===null?!1:this.current&&this.item.end_time===null}get restFilament(){var i,n,a,o,l;const e=(n=(i=this.item)==null?void 0:i.start_filament)!=null?n:0,s=(a=this.item.end_filament)!=null?a:0;let r=((l=(o=this.$store.state.server.history.job_totals)==null?void 0:o.total_filament_used)!=null?l:0)-e;return s&&(r=s-e),r/=1e3,r}get restFilamentText(){var s,t;const e=(t=(s=this.item.reminder.filament)==null?void 0:s.value)!=null?t:0;return this.showGoals?this.item.reminder.filament.bool?"".concat(this.restFilament.toFixed(0)," / ").concat(e," m"):!1:"".concat(this.restFilament.toFixed(0)," m")}get restFilamentClass(){var t,r;const e=["mr-3"];if(!this.showGoals||!this.item.reminder.filament.bool)return e;const s=(r=(t=this.item.reminder.filament)==null?void 0:t.value)!=null?r:0;return this.restFilament>s?[...e,"error--text","font-weight-bold"]:e}get restPrinttime(){var i,n,a,o;const e=(i=this.item.start_printtime)!=null?i:0,s=(n=this.item.end_printtime)!=null?n:0;let r=((o=(a=this.$store.state.server.history.job_totals)==null?void 0:a.total_print_time)!=null?o:0)-e;return s&&(r=s-e),r/=3600,r}get restPrinttimeText(){var s,t;const e=(t=(s=this.item.reminder.printtime)==null?void 0:s.value)!=null?t:0;return this.showGoals?this.item.reminder.printtime.bool?"".concat(this.restPrinttime.toFixed(1)," / ").concat(e," h"):!1:"".concat(this.restPrinttime.toFixed(1)," h")}get restPrinttimeClass(){var t,r;const e=["mr-3"];if(!this.showGoals||!this.item.reminder.printtime.bool)return e;const s=(r=(t=this.item.reminder.printtime)==null?void 0:t.value)!=null?r:0;return this.restPrinttime>s?[...e,"error--text","font-weight-bold"]:e}get restDays(){var i,n;const e=(i=this.item.start_time)!=null?i:0,s=(n=this.item.end_time)!=null?n:0;let r=new Date().getTime()/1e3-e;return s&&(r=s-e),r/(60*60*24)}get restDaysText(){var s,t;const e=(t=(s=this.item.reminder.date)==null?void 0:s.value)!=null?t:0;return this.showGoals?this.item.reminder.date.bool?"".concat(this.restDays.toFixed(0)," / ").concat(e," days"):!1:"".concat(this.restDays.toFixed(0)," days")}get restDaysClass(){var t,r;const e=["mr-3"];if(!this.showGoals||!this.item.reminder.date.bool)return e;const s=(r=(t=this.item.reminder.date)==null?void 0:t.value)!=null?r:0;return this.restDays>s?[...e,"error--text","font-weight-bold"]:e}get classDateItem(){return{"pb-2":!this.last,"pb-5":this.last}}get note(){var e;return(e=this.item.perform_note)==null?void 0:e.replaceAll("\n","<br>")}};Mu([P({type:Object,default:!1})],ji.prototype,"item",2);Mu([P({type:Boolean,default:!1})],ji.prototype,"current",2);Mu([P({type:Boolean,default:!1})],ji.prototype,"last",2);ji=Mu([D({components:{Panel:B}})],ji);var Oj=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(Vn,{staticClass:"pb-2",attrs:{small:"","hide-dot":""}},[t("div",[e.restFilamentText?t("span",{class:e.restFilamentClass},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiAdjust))]),e._v(" "+e._s(e.restFilamentText)+" ")],1):e._e(),e.restPrinttimeText?t("span",{class:e.restPrinttimeClass},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiAlarm))]),e._v(" "+e._s(e.restPrinttimeText)+" ")],1):e._e(),e.restDaysText?t("span",{class:e.restDaysClass},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiCalendar))]),e._v(" "+e._s(e.restDaysText)+" ")],1):e._e()]),e.note?t("p",{staticClass:"mt-2 mb-0",domProps:{innerHTML:e._s(e.note)}}):e._e()]),t(Vn,{class:e.classDateItem,attrs:{small:""}},[t("strong",[e._v(e._s(e.dateText))])])],1)},Lj=[];const Iv={};var Aj=E(ji,Oj,Lj,!1,kj,null,null,null);function kj(e){for(let s in Iv)this[s]=Iv[s]}const mf=function(){return Aj.exports}();var Fj=Object.defineProperty,Rj=Object.getOwnPropertyDescriptor,Eu=(e,s,t,r)=>{for(var i=r>1?void 0:r?Rj(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Fj(s,t,i),i};let Hi=class extends M(O){constructor(){super(...arguments),this.mdiCloseThick=pe,this.mdiNotebook=Zc,this.note=""}get showPerformButton(){var e,s;return this.item.end_time?!1:(s=(e=this.item.reminder)==null?void 0:e.type)!=null?s:!1}get performButtonText(){var e;return((e=this.item.reminder)==null?void 0:e.type)==="repeat"?this.$t("History.PerformedAndReschedule"):this.$t("History.Performed")}closeDialog(){this.$emit("close")}perform(){this.$store.dispatch("gui/maintenance/perform",{id:this.item.id,note:this.note}),this.$emit("close-both")}onShowChanged(e){e&&(this.note="")}};Eu([P({type:Boolean,default:!1})],Hi.prototype,"show",2);Eu([P({type:Object,default:!1})],Hi.prototype,"item",2);Eu([me("show")],Hi.prototype,"onShowChanged",1);Hi=Eu([D({components:{Panel:B,HistoryListPanelDetailMaintenanceHistoryEntry:mf}})],Hi);var jj=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{value:e.show,"max-width":400,persistent:""},on:{keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"esc",27,r.key,["Esc","Escape"])?null:e.closeDialog.apply(null,arguments)}}},[t(B,{attrs:{title:e.$t("History.PerformMaintenance"),icon:e.mdiNotebook,"card-class":"history-perform-maintenance-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,{staticClass:"pb-0"},[t($,[t(_,[t(Bs,{attrs:{outlined:"","hide-details":"auto",label:e.$t("History.AddANote")},model:{value:e.note,callback:function(r){e.note=r},expression:"note"}})],1)],1)],1),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:e.closeDialog}},[e._v(e._s(e.$t("History.Cancel")))]),e.showPerformButton?t(g,{attrs:{text:"",color:"primary"},on:{click:e.perform}},[e._v(e._s(e.performButtonText))]):e._e()],1)],1)],1)},Hj=[];const Nv={};var Ij=E(Hi,jj,Hj,!1,Nj,null,null,null);function Nj(e){for(let s in Nv)this[s]=Nv[s]}const qC=function(){return Ij.exports}();var Vj=Object.defineProperty,Uj=Object.getOwnPropertyDescriptor,hf=(e,s,t,r)=>{for(var i=r>1?void 0:r?Uj(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Vj(s,t,i),i};let ca=class extends M(O){constructor(){super(...arguments),this.mdiCloseThick=pe,this.mdiNotebook=Zc,this.mdiPencil=bt,this.showEditDialog=!1,this.showPerformDialog=!1}get date(){return this.formatDateTime(this.item.start_time*1e3,!1)}get note(){return this.item.note.replaceAll("\n","<br>")}get showPerformButton(){var e,s;return this.item.end_time?!1:(s=(e=this.item.reminder)==null?void 0:e.type)!=null?s:!1}get allEntries(){var e;return(e=this.$store.getters["gui/maintenance/getEntries"])!=null?e:[]}get history(){const e=[];let s=this.item.id;for(;s;){const t=this.allEntries.find(r=>r.id===s);if(!t)break;e.push(t),s=t.last_entry}return e}get outputFirstPointOfHistory(){return this.item.reminder.type===null?this.$t("History.EntrySince"):this.item.end_time===null?this.$t("History.EntryNextPerform"):this.$t("History.EntryPerformedAt",{date:this.formatDateTime(this.item.end_time*1e3)})}closeDialog(){this.$emit("close")}closePerform(){this.showPerformDialog=!1,this.closeDialog()}};hf([P({type:Boolean,default:!1})],ca.prototype,"show",2);hf([P({type:Object,default:!1})],ca.prototype,"item",2);ca=hf([D({components:{HistoryListPanelPerformMaintenance:qC,Panel:B,HistoryListPanelDetailMaintenanceHistoryEntry:mf}})],ca);var Bj=Object.defineProperty,Wj=Object.getOwnPropertyDescriptor,Ou=(e,s,t,r)=>{for(var i=r>1?void 0:r?Wj(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Bj(s,t,i),i};let Ii=class extends M(O){constructor(){super(...arguments),this.mdiAdjust=Ki,this.mdiAlarm=Bn,this.mdiCalendar=Ic,this.mdiCloseThick=pe,this.mdiNotebook=Zc,this.name="",this.note="",this.reminder=null,this.reminderFilament=!1,this.reminderFilamentValue=0,this.reminderPrinttime=!1,this.reminderPrinttimeValue=0,this.reminderDate=!1,this.reminderDateValue=0,this.nameInputRules=[e=>!!e||this.$t("History.InvalidNameEmpty")]}get reminderItems(){return[{text:this.$t("History.NoReminder").toString(),value:null},{text:this.$t("History.OneTime").toString(),value:"one-time"},{text:this.$t("History.Repeat").toString(),value:"repeat"}]}get totalFilamentUsed(){var e,s;return(s=(e=this.$store.state.server.history.job_totals)==null?void 0:e.total_filament_used)!=null?s:0}get totalPrinttime(){var e,s;return(s=(e=this.$store.state.server.history.job_totals)==null?void 0:e.total_print_time)!=null?s:0}get isValid(){return!(this.name===""||this.reminder!==null&&(!this.reminderFilament&&!this.reminderPrinttime&&!this.reminderDate||this.reminderFilament&&this.reminderFilamentValue<=0||this.reminderPrinttime&&this.reminderPrinttimeValue<=0||this.reminderDate&&this.reminderDateValue<=0))}closeDialog(){this.$emit("close")}save(){const e={...this.item};"type"in e&&delete e.type,e.name=this.name,e.note=this.note,e.reminder={type:this.reminder,filament:{bool:this.reminderFilament,value:this.reminderFilamentValue},printtime:{bool:this.reminderPrinttime,value:this.reminderPrinttimeValue},date:{bool:this.reminderDate,value:this.reminderDateValue}},this.$store.dispatch("gui/maintenance/update",e),this.closeDialog()}onShowChanged(){var e,s,t,r,i,n,a,o,l,c,u,d,m,h;this.show&&(this.name=this.item.name,this.note=this.item.note,this.reminder=(s=(e=this.item.reminder)==null?void 0:e.type)!=null?s:null,this.reminderFilament=(r=(t=this.item.reminder)==null?void 0:t.filament.bool)!=null?r:!1,this.reminderFilamentValue=(n=(i=this.item.reminder)==null?void 0:i.filament.value)!=null?n:0,this.reminderPrinttime=(o=(a=this.item.reminder)==null?void 0:a.printtime.bool)!=null?o:!1,this.reminderPrinttimeValue=(c=(l=this.item.reminder)==null?void 0:l.printtime.value)!=null?c:0,this.reminderDate=(d=(u=this.item.reminder)==null?void 0:u.date.bool)!=null?d:!1,this.reminderDateValue=(h=(m=this.item.reminder)==null?void 0:m.date.value)!=null?h:0)}};Ou([P({type:Boolean,default:!1})],Ii.prototype,"show",2);Ou([P({type:Object,required:!0})],Ii.prototype,"item",2);Ou([me("show")],Ii.prototype,"onShowChanged",1);Ii=Ou([D({components:{Panel:B,SettingsRow:V}})],Ii);var Gj=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{value:e.show,"max-width":600,persistent:""},on:{keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"esc",27,r.key,["Esc","Escape"])?null:e.closeDialog.apply(null,arguments)}}},[t(B,{attrs:{title:e.$t("History.EditMaintenance"),icon:e.mdiNotebook,"card-class":"history-edit-maintenance-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,{staticClass:"pb-0"},[t($,[t(_,[t(te,{attrs:{rules:e.nameInputRules,label:e.$t("History.Name"),"hide-details":"auto",outlined:"",dense:""},model:{value:e.name,callback:function(r){e.name=r},expression:"name"}})],1)],1),t($,[t(_,[t(Bs,{attrs:{outlined:"","hide-details":"auto",label:e.$t("History.Note")},model:{value:e.note,callback:function(r){e.note=r},expression:"note"}})],1)],1),t($,[t(_,[t(V,{attrs:{title:e.$t("History.Reminder")}},[t(Ee,{staticClass:"mt-0",attrs:{items:e.reminderItems,disabled:e.item.end_time!==null,outlined:"",dense:"","hide-details":""},model:{value:e.reminder,callback:function(r){e.reminder=r},expression:"reminder"}})],1)],1)],1),e.reminder?[t($,[t(_,[t(V,{attrs:{icon:e.mdiAdjust,title:e.$t("History.FilamentBasedReminder"),"sub-title":e.$t("History.FilamentBasedReminderDescription")}},[t(_e,{staticClass:"mt-0",attrs:{disabled:e.item.end_time!==null,"hide-details":""},model:{value:e.reminderFilament,callback:function(r){e.reminderFilament=r},expression:"reminderFilament"}}),t(te,{staticClass:"mt-0",attrs:{disabled:e.item.end_time!==null,"hide-details":"auto",type:"number",outlined:"",dense:"",suffix:e.$t("History.Meter")},model:{value:e.reminderFilamentValue,callback:function(r){e.reminderFilamentValue=e._n(r)},expression:"reminderFilamentValue"}})],1)],1)],1),t($,[t(_,[t(V,{attrs:{icon:e.mdiAlarm,title:e.$t("History.PrinttimeBasedReminder"),"sub-title":e.$t("History.PrinttimeBasedReminderDescription")}},[t(_e,{staticClass:"mt-0",attrs:{disabled:e.item.end_time!==null,"hide-details":""},model:{value:e.reminderPrinttime,callback:function(r){e.reminderPrinttime=r},expression:"reminderPrinttime"}}),t(te,{staticClass:"mt-0",attrs:{disabled:e.item.end_time!==null,"hide-details":"auto",type:"number",outlined:"",dense:"",suffix:e.$t("History.Hours")},model:{value:e.reminderPrinttimeValue,callback:function(r){e.reminderPrinttimeValue=e._n(r)},expression:"reminderPrinttimeValue"}})],1)],1)],1),t($,[t(_,[t(V,{attrs:{icon:e.mdiCalendar,title:e.$t("History.DateBasedReminder"),"sub-title":e.$t("History.DateBasedReminderDescription")}},[t(_e,{staticClass:"mt-0",attrs:{disabled:e.item.end_time!==null,"hide-details":""},model:{value:e.reminderDate,callback:function(r){e.reminderDate=r},expression:"reminderDate"}}),t(te,{staticClass:"mt-0",attrs:{disabled:e.item.end_time!==null,"hide-details":"auto",type:"number",outlined:"",dense:"",suffix:e.$t("History.Days")},model:{value:e.reminderDateValue,callback:function(r){e.reminderDateValue=e._n(r)},expression:"reminderDateValue"}})],1)],1)],1)]:e._e()],2),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:e.closeDialog}},[e._v(e._s(e.$t("History.Cancel")))]),t(g,{attrs:{color:"primary",text:"",disabled:!e.isValid},on:{click:e.save}},[e._v(e._s(e.$t("History.Save")))])],1)],1)],1)},zj=[];const Vv={};var Zj=E(Ii,Gj,zj,!1,qj,null,null,null);function qj(e){for(let s in Vv)this[s]=Vv[s]}const Xj=function(){return Zj.exports}();var Yj=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{value:e.show,"max-width":500,persistent:""},on:{keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"esc",27,r.key,["Esc","Escape"])?null:e.closeDialog.apply(null,arguments)}}},[t(B,{attrs:{title:e.$t("History.Maintenance"),icon:e.mdiNotebook,"card-class":"history-maintenance-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.showEditDialog=!0}}},[t(v,[e._v(e._s(e.mdiPencil))])],1),t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t("overlay-scrollbars",{staticStyle:{height:"350px"}},[t(q,{staticClass:"pb-0"},[t($,[t(_,[t("div",[e._v(e._s(e.date))]),t("p",{staticClass:"text-h4 text--primary"},[e._v(e._s(e.item.name))]),e.note?t("div",{staticClass:"text--primary",domProps:{innerHTML:e._s(e.note)}}):e._e()])],1)],1),t(U,{staticClass:"mt-3 mb-0"}),t(q,{staticClass:"pt-0 mb-0 pb-0"},[t(ly,{attrs:{"align-top":"",dense:""}},[t(Vn,{staticClass:"pb-1",attrs:{small:""}},[t("strong",[e._v(e._s(e.outputFirstPointOfHistory))])]),e._l(e.history,function(r){return t(mf,{key:r.id,attrs:{item:r,current:r.id===e.item.id,last:r.id===e.history[e.history.length-1].id}})})],2)],1)],1),t(U,{staticClass:"mt-0"}),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:e.closeDialog}},[e._v(e._s(e.$t("History.Cancel")))]),e.showPerformButton?t(g,{attrs:{text:"",color:"primary"},on:{click:function(r){e.showPerformDialog=!0}}},[e._v(" "+e._s(e.$t("History.Perform"))+" ")]):e._e()],1)],1),t(qC,{attrs:{show:e.showPerformDialog,item:e.item},on:{close:function(r){e.showPerformDialog=!1},"close-both":e.closePerform}}),t(Xj,{attrs:{show:e.showEditDialog,item:e.item},on:{close:function(r){e.showEditDialog=!1}}})],1)},Jj=[];const Uv={};var Kj=E(ca,Yj,Jj,!1,Qj,null,null,null);function Qj(e){for(let s in Uv)this[s]=Uv[s]}const pf=function(){return Kj.exports}();var eH=Object.defineProperty,tH=Object.getOwnPropertyDescriptor,Lu=(e,s,t,r)=>{for(var i=r>1?void 0:r?tH(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&eH(s,t,i),i};let Ni=class extends M(O){constructor(){super(...arguments),this.mdiAdjust=Ki,this.mdiAlarm=Bn,this.mdiCalendar=Ic,this.mdiDelete=ze,this.mdiTextBoxSearch=i2,this.detailsDialogBool=!1,this.contextMenuBool=!1,this.contextMenuX=0,this.contextMenuY=0}get cssClasses(){return["file-list-cursor","user-select-none"]}get restFilament(){var n,a,o,l,c;const s=(a=(n=this.item)==null?void 0:n.start_filament)!=null?a:0,t=(o=this.item.end_filament)!=null?o:0;let i=((c=(l=this.$store.state.server.history.job_totals)==null?void 0:l.total_filament_used)!=null?c:0)-s;return t&&(i=t-s),i/=1e3,i}get restTextFilament(){var t,r;if(!this.item.reminder.filament.bool)return!1;const s=(r=(t=this.item.reminder.filament)==null?void 0:t.value)!=null?r:0;return"".concat(this.restFilament.toFixed(0)," / ").concat(s," m")}get restPrinttime(){var n,a,o,l;const s=(n=this.item.start_printtime)!=null?n:0,t=(a=this.item.end_printtime)!=null?a:0;let i=((l=(o=this.$store.state.server.history.job_totals)==null?void 0:o.total_print_time)!=null?l:0)-s;return t&&(i=t-s),i/=3600,i}get restTextPrinttime(){var t,r;if(!this.item.reminder.printtime.bool)return!1;const s=(r=(t=this.item.reminder.printtime)==null?void 0:t.value)!=null?r:0;return"".concat(this.restPrinttime.toFixed(1)," / ").concat(s," h")}get restDays(){var n,a;const s=(n=this.item.start_time)!=null?n:0,t=(a=this.item.end_time)!=null?a:0;let i=new Date().getTime()/1e3-s;return t&&(i=t-s),i/(60*60*24)}get restTextDays(){var t,r;if(!this.item.reminder.date.bool)return!1;const s=(r=(t=this.item.reminder.date)==null?void 0:t.value)!=null?r:0;return"".concat(this.restDays.toFixed(0)," / ").concat(s," days")}get reminder(){var s,t;return(t=(s=this.item.reminder)==null?void 0:s.type)!=null?t:null}get alarmIcon(){return this.reminder==="repeat"?JD:Bn}get icon(){return this.item.end_time!==null?JT:Zc}select(s){this.$emit("select",s)}showContextMenu(s){s==null||s.preventDefault(),!this.contextMenuBool&&(this.contextMenuBool=!0,this.contextMenuX=(s==null?void 0:s.clientX)||(s==null?void 0:s.pageX)||window.screenX/2,this.contextMenuY=(s==null?void 0:s.clientY)||(s==null?void 0:s.pageY)||window.screenY/2,this.$nextTick(()=>{this.contextMenuBool=!0}))}deleteEntry(){this.$store.dispatch("gui/maintenance/delete",this.item.id)}};Lu([P({type:Object,required:!0})],Ni.prototype,"item",2);Lu([P({type:Array,required:!0})],Ni.prototype,"tableFields",2);Lu([P({type:Boolean,required:!0})],Ni.prototype,"isSelected",2);Ni=Lu([D({components:{HistoryListPanelDetailMaintenance:pf,Panel:B}})],Ni);var sH=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("tr",{directives:[{name:"longpress",rawName:"v-longpress:600",value:function(r){return e.showContextMenu(r)},expression:"(e) => showContextMenu(e)",arg:"600"}],key:e.item.id,class:e.cssClasses,on:{contextmenu:function(r){return e.showContextMenu(r)},click:function(r){e.detailsDialogBool=!0}}},[t("td",{staticClass:"pr-0"},[t(Fr,{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"pa-0 mr-0",attrs:{value:e.isSelected},on:{click:function(r){return r.stopPropagation(),e.select(!e.isSelected)}}})],1),t("td",{staticClass:"px-0 text-center",staticStyle:{width:"32px"}},[t(v,{attrs:{color:"primary"}},[e._v(e._s(e.icon))])],1),t("td",[e._v(e._s(e.item.name))]),t("td",{staticClass:"text-right text-no-wrap"},[e.reminder!==null?t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(v,e._g(e._b({attrs:{small:"",color:"primary"}},"v-icon",n,!1),i),[e._v(" "+e._s(e.alarmIcon)+" ")])]}}],null,!1,95998964)},[t("div",[e.restTextFilament?t("div",[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(e._s(e.mdiAdjust))]),e._v(" "+e._s(e.restTextFilament)+" ")],1):e._e(),e.restTextPrinttime?t("div",[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(e._s(e.mdiAlarm))]),e._v(" "+e._s(e.restTextPrinttime)+" ")],1):e._e(),e.restTextDays?t("div",[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(e._s(e.mdiCalendar))]),e._v(" "+e._s(e.restTextDays)+" ")],1):e._e()])]):e._e()],1),t("td",{staticClass:"text-left text-no-wrap"},[e._v(" "+e._s(e.formatDateTime(e.item.start_time*1e3,!1))+" ")]),t("td",{attrs:{colspan:e.tableFields.length-1}}),t($e,{attrs:{"position-x":e.contextMenuX,"position-y":e.contextMenuY,absolute:"","offset-y":""},model:{value:e.contextMenuBool,callback:function(r){e.contextMenuBool=r},expression:"contextMenuBool"}},[t(Oe,[t(J,{on:{click:function(r){e.detailsDialogBool=!0}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiTextBoxSearch))]),e._v(" "+e._s(e.$t("History.Details"))+" ")],1),t(J,{staticClass:"red--text",on:{click:e.deleteEntry}},[t(v,{staticClass:"mr-1",attrs:{color:"error"}},[e._v(e._s(e.mdiDelete))]),e._v(" "+e._s(e.$t("History.Delete"))+" ")],1)],1)],1),t(pf,{attrs:{show:e.detailsDialogBool,item:e.item},on:{close:function(r){e.detailsDialogBool=!1}}})],1)},rH=[];const Bv={};var iH=E(Ni,sH,rH,!1,nH,null,null,null);function nH(e){for(let s in Bv)this[s]=Bv[s]}const XC=function(){return iH.exports}();var aH=Object.defineProperty,oH=Object.getOwnPropertyDescriptor,YC=(e,s,t,r)=>{for(var i=r>1?void 0:r?oH(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&aH(s,t,i),i};let Al=class extends M(O){constructor(){super(...arguments),this.mdiCloseThick=pe}get selectedJobs(){var e;return(e=this.$store.state.gui.view.history.selectedJobs)!=null?e:[]}set selectedJobs(e){this.$store.dispatch("gui/saveSettingWithoutUpload",{name:"view.history.selectedJobs",value:e})}get question(){return this.selectedJobs.length===1?this.$t("History.DeleteSingleJobQuestion"):this.$t("History.DeleteSelectedQuestion",{count:this.selectedJobs.length})}closeDialog(){this.$emit("close")}deleteSelectedJobs(){this.selectedJobs.forEach(e=>{if(e.type==="maintenance"){this.$store.dispatch("gui/maintenance/delete",e.id);return}"job_id"in e&&this.$socket.emit("server.history.delete_job",{uid:e.job_id},{action:"server/history/getDeletedJobs"})}),this.selectedJobs=[],this.closeDialog()}};YC([P({type:Boolean,required:!0})],Al.prototype,"show",2);Al=YC([D({components:{Panel:B}})],Al);var lH=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{value:e.show,"max-width":"400"}},[t(B,{attrs:{title:e.$t("History.Delete"),"card-class":"history-delete-selected-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t("p",{staticClass:"mb-0"},[e._v(e._s(e.question))])]),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:e.closeDialog}},[e._v(e._s(e.$t("History.Cancel")))]),t(g,{attrs:{color:"error",text:""},on:{click:e.deleteSelectedJobs}},[e._v(e._s(e.$t("History.Delete")))])],1)],1)],1)},cH=[];const Wv={};var uH=E(Al,lH,cH,!1,dH,null,null,null);function dH(e){for(let s in Wv)this[s]=Wv[s]}const JC=function(){return uH.exports}();var mH=Object.defineProperty,hH=Object.getOwnPropertyDescriptor,pH=(e,s,t,r)=>{for(var i=r>1?void 0:r?hH(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&mH(s,t,i),i};let kl=class extends y{get moonrakerHistoryFields(){var r,i;const e=(i=(r=this.$store.state.server.config)==null?void 0:r.config)!=null?i:{},s=Object.keys(e).filter(n=>n.startsWith("sensor ")),t=[];return s.forEach(n=>{var o;const a=(o=e[n])!=null?o:{};Object.keys(a).filter(l=>l.startsWith("history_field_")).forEach(l=>{const c=a[l];t.push({desc:c.desc,unit:c.units,provider:n,parameter:c.parameter,name:l})})}),t}};kl=pH([D],kl);var fH=Object.defineProperty,gH=Object.getOwnPropertyDescriptor,vH=(e,s,t,r)=>{for(var i=r>1?void 0:r?gH(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&fH(s,t,i),i};let Um=class extends M(O,kl){constructor(){super(...arguments),this.mdiCloseThick=pe,this.mdiCog=us,this.mdiDatabaseArrowDownOutline=Ey,this.mdiDatabaseExportOutline=$T,this.mdiDelete=ze,this.mdiFileDocumentMultipleOutline=Uc,this.mdiMagnify=zc,this.mdiNotebookPlus=qy,this.formatFilesize=Je,this.search="",this.sortBy="start_time",this.sortDesc=!0,this.addMaintenanceDialog=!1,this.deleteSelectedDialog=!1}get allLoaded(){var e;return(e=this.$store.state.server.history.all_loaded)!=null?e:!1}get jobs(){var e;return(e=this.$store.getters["server/history/getFilteredJobList"])!=null?e:[]}get maintenanceEntries(){var e;return(e=this.$store.getters["gui/maintenance/getEntries"])!=null?e:[]}get entries(){let e=[];return this.showPrintJobs&&(e=[...this.jobs].map(s=>({...s,type:"job",select_id:"job_".concat(s.job_id)}))),this.sortBy!=="start_time"||this.showMaintenanceEntries&&(e=[...e,...this.maintenanceEntries.map(s=>({...s,type:"maintenance",select_id:"maintenance_".concat(s.id)}))]),e}get selectedJobs(){var e;return(e=this.$store.state.gui.view.history.selectedJobs)!=null?e:[]}set selectedJobs(e){this.$store.dispatch("gui/saveSettingWithoutUpload",{name:"view.history.selectedJobs",value:e})}get headers(){const e=[{text:"",value:"",align:"left",configable:!1,visible:!0,filterable:!1},{text:this.$t("History.Filename").toString(),value:"filename",align:"left",configable:!1,visible:!0},{text:"",value:"status",align:"left",configable:!1,visible:!0,filterable:!1},{text:this.$t("History.Filesize").toString(),value:"size",align:"left",configable:!0,visible:!0,outputType:"filesize"},{text:this.$t("History.LastModified").toString(),value:"modified",align:"left",configable:!0,visible:!0,outputType:"date"},{text:this.$t("History.StartTime").toString(),value:"start_time",align:"left",configable:!0,visible:!0,outputType:"date"},{text:this.$t("History.EndTime").toString(),value:"end_time",align:"left",configable:!0,visible:!0,outputType:"date"},{text:this.$t("History.EstimatedTime").toString(),value:"estimated_time",align:"left",configable:!0,visible:!0,outputType:"time"},{text:this.$t("History.PrintTime").toString(),value:"print_duration",align:"left",configable:!0,visible:!0,outputType:"time"},{text:this.$t("History.TotalTime").toString(),value:"total_duration",align:"left",configable:!0,visible:!0,outputType:"time"},{text:this.$t("History.FilamentCalc").toString(),value:"filament_total",align:"left",configable:!0,visible:!0,outputType:"length"},{text:this.$t("History.FilamentUsed").toString(),value:"filament_used",align:"left",configable:!0,visible:!0,outputType:"length"},{text:this.$t("History.FirstLayerExtTemp").toString(),value:"first_layer_extr_temp",align:"left",configable:!0,visible:!0,outputType:"temp"},{text:this.$t("History.FirstLayerBedTemp").toString(),value:"first_layer_bed_temp",align:"left",configable:!0,visible:!0,outputType:"temp"},{text:this.$t("History.FirstLayerHeight").toString(),value:"first_layer_height",align:"left",configable:!0,visible:!0,outputType:"length"},{text:this.$t("History.LayerHeight").toString(),value:"layer_height",align:"left",configable:!0,visible:!0,outputType:"length"},{text:this.$t("History.ObjectHeight").toString(),value:"object_height",align:"left",configable:!0,visible:!0,outputType:"length"},{text:this.$t("History.Slicer").toString(),value:"slicer",align:"left",configable:!0,visible:!0}];return this.moonrakerHistoryFields.forEach(s=>{e.push({text:s.desc,value:s.name,align:"left",configable:!0,visible:!1})}),e.forEach(s=>{s.visible&&this.hideColums.includes(s.value)?s.visible=!1:!s.visible&&!this.hideColums.includes(s.value)&&(s.visible=!0)}),e}get tableFields(){return this.filteredHeaders.filter(e=>!["filename","status"].includes(e.value)&&e.value!=="")}get configHeaders(){return this.headers.filter(e=>e.configable===!0)}get filteredHeaders(){return this.headers.filter(e=>e.visible===!0)}get allPrintStatusArray(){var e;return At((e=this.$store.getters["server/history/getAllPrintStatusArray"])!=null?e:[],"name")}get countPerPage(){return this.$store.state.gui.view.historycountPerPage}set countPerPage(e){this.$store.dispatch("gui/saveSetting",{name:"view.history.countPerPage",value:e})}get hideColums(){return this.$store.state.gui.view.history.hideColums}set hideColums(e){this.$store.dispatch("gui/saveSetting",{name:"view.history.hideColums",value:e})}get showMaintenanceEntries(){return this.$store.state.gui.view.history.showMaintenanceEntries}set showMaintenanceEntries(e){this.$store.dispatch("gui/saveSetting",{name:"view.history.showMaintenanceEntries",value:e})}get showPrintJobs(){return this.$store.state.gui.view.history.showPrintJobs}set showPrintJobs(e){this.$store.dispatch("gui/saveSetting",{name:"view.history.showPrintJobs",value:e})}refreshHistory(){this.$store.dispatch("socket/addLoading",{name:"historyLoadAll"}),this.$socket.emit("server.history.list",{start:0,limit:50},{action:"server/history/getHistory"})}sortFiles(e,s,t){const r=s.length?s[0]:"filename",i=t[0];return e!==void 0&&(e.sort(function(n,a){if(n[r]===a[r])return 0;if(n[r]===null||n[r]===void 0)return-1;if(a[r]===null||a[r]===void 0)return 1;if(n[r].constructor===String&&a[r].constructor===String)return n[r].localeCompare(a[r],void 0,{sensivity:"base"});if(n[r]instanceof Array&&a[r]instanceof Array){const o=n[r].length?n.filament.reduce((c,u)=>c+u):0,l=a[r].length?a.filament.reduce((c,u)=>c+u):0;return o-l}return n[r]-a[r]}),i&&e.reverse()),e}advancedSearch(e,s){return e!=null&&s!=null&&e.toString().toLowerCase().indexOf(s.toLowerCase())!==-1}changeColumnVisible(e){if(this.headers.filter(s=>s.value===e).length){let s=this.headers.filter(t=>t.value===e)[0].visible;this.$store.dispatch("gui/setHistoryColumns",{name:e,value:s})}}changeStatusVisible(e){if(e.showInTable){this.$store.dispatch("gui/hideStatusInHistoryList",e.name);return}this.$store.dispatch("gui/showStatusInHistoryList",e.name)}exportHistory(){const t=(parseFloat("1.23").toLocaleString(this.browserLocale).indexOf(",")>=0?",":".")===","?";":",",r=[],i=[];i.push("filename"),i.push("type"),i.push("status"),this.tableFields.forEach(l=>{if(l.value.startsWith("history_field_")){const c=l.value.replace("history_field_","");i.push(c);return}i.push(l.value)}),r.push(i);let n=[...this.entries];this.selectedJobs.length&&(n=[...this.selectedJobs]),n.length&&n.sort((l,c)=>c.start_time-l.start_time).forEach(l=>{var h,p;const c=[];if(((h=l.type)!=null?h:"job")==="maintenance"){const f=l;c.push(f.name),c.push("maintenance"),c.push(f.end_time!==null?"performed":"open"),this.tableFields.filter(b=>b.value!=="slicer").forEach(b=>{if(b.value==="start_time"){c.push(this.formatDateTime(f.start_time*1e3));return}if(b.value==="end_time"&&f.end_time!==null){c.push(this.formatDateTime(f.end_time*1e3));return}if(b.value==="print_duration"&&f.end_printtime!==null){const C=f.end_printtime-f.start_printtime;c.push(C.toLocaleString(this.browserLocale,{useGrouping:!1}));return}if(b.value==="filament_used"&&f.end_filament!==null){const C=f.end_filament-f.start_filament;c.push(C.toLocaleString(this.browserLocale,{useGrouping:!1}));return}c.push("")}),(p=this.tableFields.find(b=>b.value==="slicer"))!=null&&p.visible&&c.push(""),r.push(c);return}const d=l;let m=d.filename;m.includes(t)&&(m='"'+m+'"'),c.push(m),c.push("job"),c.push(d.status),this.tableFields.forEach(f=>{c.push(this.outputValue(f,d,t))}),r.push(c)});const a="data:text/csv;charset=utf-8,"+r.map(l=>l.map(c=>(c==null?void 0:c.indexOf(t))===-1?c:'"'.concat(c,'"')).join(t)).join("\n"),o=document.createElement("a");o.setAttribute("href",encodeURI(a)),o.setAttribute("download","print_history.csv"),document.body.appendChild(o),o.click(),o.remove()}outputValue(e,s,t=null){var i,n,a,o,l,c;let r=e.value in s?s[e.value]:null;if(r===null&&(r=e.value in s.metadata?s.metadata[e.value]:null),e.value==="slicer"){let u="slicer"in s.metadata&&s.metadata.slicer?s.metadata.slicer:"--";return"slicer_version"in s.metadata&&s.metadata.slicer_version&&(u+=" "+s.metadata.slicer_version),t!==null&&r.includes(t)?'"'+u+'"':u}if(e.value.startsWith("history_field_")){const u=e.value.replace("history_field_",""),d=(i=s.auxiliary_data)==null?void 0:i.find(h=>h.name===u);let m=(n=d==null?void 0:d.value)==null?void 0:n.toString();return d&&!Array.isArray(d.value)&&(m=(o=(a=d.value)==null?void 0:a.toLocaleString(this.browserLocale,{useGrouping:!1}))!=null?o:0),m?t!==null&&(m!=null&&m.includes(t))?'"'.concat(m,'"'):m:"--"}switch(e.outputType){case"date":return this.formatDateTime(r*1e3);case"time":return(l=r==null?void 0:r.toFixed())!=null?l:"";default:switch(typeof r){case"number":return(c=r==null?void 0:r.toLocaleString(this.browserLocale,{useGrouping:!1}))!=null?c:0;case"string":return t!==null&&r.includes(t)&&(r='"'+r+'"'),r;default:return r}}}};Um=vH([D({components:{HistoryListPanelDeleteSelectedDialog:JC,HistoryListEntryMaintenance:XC,HistoryListPanelAddMaintenance:ZC,HistoryListEntryJob:zC,HistoryListPanelDetailsDialog:uf,Panel:B}})],Um);var _H=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(B,{attrs:{icon:e.mdiFileDocumentMultipleOutline,title:e.$t("History.PrintHistory"),"card-class":"history-list-panel"}},[t(q,[t($,[t(_,{staticClass:"col-4 d-flex align-center"},[t(te,{attrs:{"append-icon":e.mdiMagnify,label:e.$t("History.Search"),"single-line":"",outlined:"",clearable:"","hide-details":"",dense:""},model:{value:e.search,callback:function(r){e.search=r},expression:"search"}})],1),t(_,{staticClass:"offset-4 col-4 d-flex align-center justify-end"},[e.selectedJobs.length?[t(g,{staticClass:"px-2 minwidth-0 ml-3",attrs:{title:e.$t("History.Delete"),color:"error"},on:{click:function(r){e.deleteSelectedDialog=!0}}},[t(v,[e._v(e._s(e.mdiDelete))])],1)]:e._e(),t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"px-2 minwidth-0 ml-3",on:{click:function(a){e.addMaintenanceDialog=!0}}},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.mdiNotebookPlus))])],1)]}}])},[t("span",[e._v(e._s(e.$t("History.AddMaintenance")))])]),e.allLoaded?e._e():t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"px-2 minwidth-0 ml-3",attrs:{loading:e.loadings.includes("historyLoadAll")},on:{click:e.refreshHistory}},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.mdiDatabaseArrowDownOutline))])],1)]}}],null,!1,788240949)},[t("span",[e._v(e._s(e.$t("History.LoadCompleteHistory")))])]),t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"px-2 minwidth-0 ml-3",on:{click:e.exportHistory}},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.mdiDatabaseExportOutline))])],1)]}}])},[t("span",[e._v(e._s(e.$t("History.TitleExportHistory")))])]),t($e,{attrs:{"offset-y":!0,"close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"px-2 minwidth-0 ml-3"},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.mdiCog))])],1)]}}])},[t(Oe,[t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"","input-value":e.showMaintenanceEntries,label:e.$t("History.MaintenanceEntries")},on:{change:function(r){e.showMaintenanceEntries=!e.showMaintenanceEntries}}})],1),t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"","input-value":e.showPrintJobs,label:e.$t("History.PrintJobs")},on:{change:function(r){e.showPrintJobs=!e.showPrintJobs}}})],1),t(U),e.allPrintStatusArray.length?[e._l(e.allPrintStatusArray,function(r){return t(J,{key:r.key,staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"","input-value":r.showInTable,label:"".concat(r.displayName," (").concat(r.value,")")},on:{change:function(i){return e.changeStatusVisible(r)}}})],1)}),t(U)]:e._e(),e._l(e.configHeaders,function(r,i){return t(J,{key:"history-list-panel-header-option-"+i,staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:r.text},on:{change:function(n){return e.changeColumnVisible(r.value)}},model:{value:r.visible,callback:function(n){e.$set(r,"visible",n)},expression:"header.visible"}})],1)})],2)],1)],2)],1)],1),t(U,{staticClass:"mb-3"}),t(zr,{staticClass:"history-jobs-table",attrs:{items:e.entries,headers:e.filteredHeaders,"custom-sort":e.sortFiles,"sort-by":e.sortBy,"sort-desc":e.sortDesc,"items-per-page":e.countPerPage,"footer-props":{itemsPerPageText:e.$t("History.Jobs"),itemsPerPageAllText:e.$t("History.AllJobs"),itemsPerPageOptions:[10,25,50,100,-1]},"item-key":"select_id",search:e.search,"custom-filter":e.advancedSearch,"mobile-breakpoint":"0","show-select":""},on:{"update:sortBy":function(r){e.sortBy=r},"update:sort-by":function(r){e.sortBy=r},"update:sortDesc":function(r){e.sortDesc=r},"update:sort-desc":function(r){e.sortDesc=r},"update:itemsPerPage":function(r){e.countPerPage=r},"update:items-per-page":function(r){e.countPerPage=r}},scopedSlots:e._u([{key:"no-data",fn:function(){return[t("div",{staticClass:"text-center"},[e._v(e._s(e.$t("History.Empty")))])]},proxy:!0},{key:"item",fn:function(r){var i=r.item,n=r.isSelected,a=r.select;return[i.type==="job"?t(zC,{key:i.select_id,attrs:{"is-selected":n,item:i,"table-fields":e.tableFields},on:{select:a}}):i.type==="maintenance"?t(XC,{key:i.select_id,attrs:{"is-selected":n,item:i,"table-fields":e.tableFields},on:{select:a}}):e._e()]}}]),model:{value:e.selectedJobs,callback:function(r){e.selectedJobs=r},expression:"selectedJobs"}}),t(JC,{attrs:{show:e.deleteSelectedDialog},on:{close:function(r){e.deleteSelectedDialog=!1}}}),t(ZC,{attrs:{show:e.addMaintenanceDialog},on:{close:function(r){e.addMaintenanceDialog=!1}}})],1)},bH=[];const Gv={};var yH=E(Um,_H,bH,!1,CH,"74f4284e",null,null);function CH(e){for(let s in Gv)this[s]=Gv[s]}const KC=function(){return yH.exports}();var $H=Object.defineProperty,xH=Object.getOwnPropertyDescriptor,QC=(e,s,t,r)=>{for(var i=r>1?void 0:r?xH(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&$H(s,t,i),i};let Fl=class extends M(O,_t){get chartOptions(){return{animation:!1,grid:{top:25,right:40,bottom:30,left:40},tooltip:{trigger:"axis",borderWidth:0,formatter:s=>{let t="";if(s.length){t=s[0].marker;const i=s[0].axisValueLabel.split(/[^0-9]/),n=new Date(i[0],i[1]-1,i[2]),a=Math.round(s[0].data[1]*10)/10;t+=n.toLocaleDateString()+": "+a+"m"}return t}},xAxis:{type:"time",min:new Date().setHours(0,0,0)-60*60*24*14*1e3,max:new Date().setHours(0,0,0),minInterval:60*60*24*1e3,splitLine:{show:!0,lineStyle:{color:this.fgColorLow}},axisLabel:{color:this.fgColorLow,margin:10}},yAxis:{name:this.$t("History.HistoryFilamentUsage"),type:"value",minInterval:10,maxInterval:100,nameLocation:"end",nameGap:5,nameTextStyle:{color:this.fgColorLow,align:"left"},splitLine:{lineStyle:{color:this.fgColorLow}},axisLabel:{color:this.fgColorLow,formatter:"{value}",showMinLabel:!0,margin:5},axisLine:{show:!0,lineStyle:{color:this.fgColorMid}}},color:["#BDBDBD"],series:[{type:"bar",data:this.filamentUsageArray,showSymbol:!1}]}}get filamentUsageArray(){return this.$store.getters["server/history/getFilamentUsageArray"]}get chart(){var s,t;return(t=(s=this.$refs.historyFilamentUsage)==null?void 0:s.chart)!=null?t:null}beforeDestroy(){typeof window>"u"||this.chart&&this.chart.dispose()}filamentUsageArrayChanged(s){var t;(t=this.chart)==null||t.setOption({series:{data:s}},!1,!0)}visibilityChanged(s){var t;s&&((t=this.chart)==null||t.resize())}};QC([me("filamentUsageArray")],Fl.prototype,"filamentUsageArrayChanged",1);Fl=QC([D({})],Fl);var wH=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("e-chart",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:e.visibilityChanged,expression:"visibilityChanged"}],ref:"historyFilamentUsage",staticStyle:{height:"175px",width:"100%"},attrs:{option:e.chartOptions,autoresize:!0,"init-options":{renderer:"svg"}}})},SH=[];const zv={};var PH=E(Fl,wH,SH,!1,DH,null,null,null);function DH(e){for(let s in zv)this[s]=zv[s]}const e$=function(){return PH.exports}();var TH=Object.defineProperty,MH=Object.getOwnPropertyDescriptor,t$=(e,s,t,r)=>{for(var i=r>1?void 0:r?MH(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&TH(s,t,i),i};let Rl=class extends M(O,_t){get chartOptions(){return{animation:!1,grid:{top:25,right:40,bottom:30,left:40},tooltip:{trigger:"item",borderWidth:0},xAxis:{type:"category",data:["0-2h","2-6h","6-12h","12-24h",">24h"],splitLine:{show:!0,lineStyle:{color:this.fgColorFaint}},axisLabel:{color:this.fgColorLow,margin:10}},yAxis:{name:this.$t("History.HistoryPrinttimeAVG"),type:"value",minInterval:10,maxInterval:100,nameLocation:"end",nameGap:5,nameTextStyle:{color:this.fgColorLow,align:"left"},splitLine:{lineStyle:{color:this.fgColorLow}},axisLabel:{color:this.fgColorLow,formatter:"{value}",showMinLabel:!0,margin:5},axisLine:{show:!0,lineStyle:{color:this.fgColorLow}}},series:[{type:"bar",data:this.printtimeAvgArray,itemStyle:{color:"#BDBDBD"}}]}}get printtimeAvgArray(){return this.$store.getters["server/history/getPrinttimeAvgArray"]}get chart(){var e,s;return(s=(e=this.$refs.historyPrinttimeAvg)==null?void 0:e.chart)!=null?s:null}beforeDestroy(){typeof window>"u"||this.chart&&this.chart.dispose()}printtimeAvgArrayChanged(e){var s;(s=this.chart)==null||s.setOption({series:{data:e}},!1,!0)}visibilityChanged(e){var s;e&&((s=this.chart)==null||s.resize())}};t$([me("printtimeAvgArray")],Rl.prototype,"printtimeAvgArrayChanged",1);Rl=t$([D({components:{}})],Rl);var EH=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("e-chart",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:e.visibilityChanged,expression:"visibilityChanged"}],ref:"historyPrinttimeAvg",staticStyle:{height:"175px",width:"100%"},attrs:{option:e.chartOptions,"init-options":{renderer:"svg"}}})},OH=[];const Zv={};var LH=E(Rl,EH,OH,!1,AH,null,null,null);function AH(e){for(let s in Zv)this[s]=Zv[s]}const s$=function(){return LH.exports}();var kH=Object.defineProperty,FH=Object.getOwnPropertyDescriptor,r$=(e,s,t,r)=>{for(var i=r>1?void 0:r?FH(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&kH(s,t,i),i};let jl=class extends M(O,_t){get chartOptions(){return{animation:!1,grid:{top:10,right:0,bottom:0,left:10},tooltip:{trigger:"item",borderWidth:0},series:[{type:"pie",data:this.printStatusArray,avoidLabelOverlap:!1,radius:["35%","60%"],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},label:{color:this.fgColorHi}}]}}get selectedJobs(){return this.$store.getters["server/history/getSelectedJobs"]}get allPrintStatusArray(){return this.$store.getters["server/history/getAllPrintStatusArray"]}get selectedPrintStatusArray(){return this.$store.getters["server/history/getSelectedPrintStatusArray"]}get printStatusArray(){const e=[];return(this.selectedJobs.length?this.selectedPrintStatusArray:this.allPrintStatusArray).forEach(t=>{const r={...t};r.name=t.displayName,e.push(r)}),e}get chart(){var e,s;return(s=(e=this.$refs.historyAllPrintStatus)==null?void 0:e.chart)!=null?s:null}beforeDestroy(){typeof window>"u"||this.chart&&this.chart.dispose()}printStatusArrayChanged(e){var s;(s=this.chart)==null||s.setOption({series:{data:e}},!1,!0)}visibilityChanged(e){var s;e&&((s=this.chart)==null||s.resize())}};r$([me("printStatusArray")],jl.prototype,"printStatusArrayChanged",1);jl=r$([D({components:{}})],jl);var RH=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("e-chart",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:e.visibilityChanged,expression:"visibilityChanged"}],ref:"historyAllPrintStatus",staticStyle:{height:"200px",width:"100%"},attrs:{option:e.chartOptions,autoresize:!0,"init-options":{renderer:"svg"}}})},jH=[];const qv={};var HH=E(jl,RH,jH,!1,IH,null,null,null);function IH(e){for(let s in qv)this[s]=qv[s]}const i$=function(){return HH.exports}();var NH=Object.defineProperty,VH=Object.getOwnPropertyDescriptor,UH=(e,s,t,r)=>{for(var i=r>1?void 0:r?VH(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&NH(s,t,i),i};let Bm=class extends M(O,kl){constructor(){super(...arguments),this.mdiChartAreaspline=cT,this.mdiDatabaseArrowDownOutline=Ey,this.formatPrintTime=tu}get selectedJobs(){return this.$store.getters["server/history/getSelectedJobs"]}get existsSelectedJobs(){return this.selectedJobs.length>0}get totalPrintTime(){var e,s;return(s=(e=this.$store.state.server.history.job_totals)==null?void 0:e.total_print_time)!=null?s:0}get selectedPrintTime(){let e=0;return this.selectedJobs.forEach(s=>{e+=s.print_duration}),e}get longestPrintTime(){var e,s;return(s=(e=this.$store.state.server.history.job_totals)==null?void 0:e.longest_print)!=null?s:0}get selectedLongestPrintTime(){let e=0;return this.selectedJobs.forEach(s=>{s.print_duration>e&&(e=s.print_duration)}),e}get avgPrintTime(){return this.totalJobsCount>0&&this.totalPrintTime>0?Math.round(this.totalPrintTime/this.totalJobsCount):0}get selectedAvgPrintTime(){return this.selectedJobs.length>0&&this.selectedPrintTime>0?Math.round(this.selectedPrintTime/this.selectedJobs.length):0}get totalFilamentUsed(){var e,s;return(s=(e=this.$store.state.server.history.job_totals)==null?void 0:e.total_filament_used)!=null?s:0}get totalFilamentUsedFormat(){const e=Math.round(this.totalFilamentUsed/100)/10;return"".concat(e," m")}get selectedFilamentUsed(){let e=0;return this.selectedJobs.forEach(s=>{e+=s.filament_used}),e}get selectedFilamentUsedFormat(){const e=Math.round(this.selectedFilamentUsed/100)/10;return"".concat(e," m")}get totalJobsCount(){var e,s;return(s=(e=this.$store.state.server.history.job_totals)==null?void 0:e.total_jobs)!=null?s:0}get toggleChart(){return this.$store.state.gui.view.history.toggleChartCol3}set toggleChart(e){this.$store.dispatch("gui/saveSetting",{name:"view.history.toggleChartCol3",value:e})}get togglePrintStatus(){return this.$store.state.gui.view.history.toggleChartCol2}set togglePrintStatus(e){this.$store.dispatch("gui/saveSetting",{name:"view.history.toggleChartCol2",value:e})}get allLoaded(){var e;return(e=this.$store.state.server.history.all_loaded)!=null?e:!1}get selectedTotals(){const e=[{title:this.$t("History.SelectedPrinttime"),value:this.formatPrintTime(this.selectedPrintTime,!1)},{title:this.$t("History.LongestPrinttime"),value:this.formatPrintTime(this.selectedLongestPrintTime,!1)},{title:this.$t("History.AvgPrinttime"),value:this.formatPrintTime(this.selectedAvgPrintTime,!1)},{title:this.$t("History.SelectedFilamentUsed"),value:this.selectedFilamentUsedFormat},{title:this.$t("History.SelectedJobs"),value:this.selectedJobs.length.toString()}];return e.push(...this.auxiliarySelectedTotals),e}get auxiliarySelectedTotals(){const e=[];return this.moonrakerHistoryFields.forEach(s=>{const t=this.selectedJobs.reduce((r,i)=>{var o;const n=s.name.replace("history_field_",""),a=(o=i.auxiliary_data)==null?void 0:o.find(l=>l.provider===s.provider&&l.name===n);return!a||typeof a.value!="number"?r:r+a.value},0);e.push({title:s.desc,value:"".concat(Math.round(t*1e3)/1e3," ").concat(s.unit)})}),e}get genericTotals(){const e=[{title:this.$t("History.TotalPrinttime"),value:this.formatPrintTime(this.totalPrintTime,!1)},{title:this.$t("History.LongestPrinttime"),value:this.formatPrintTime(this.longestPrintTime,!1)},{title:this.$t("History.AvgPrinttime"),value:this.formatPrintTime(this.avgPrintTime,!1)},{title:this.$t("History.TotalFilamentUsed"),value:this.totalFilamentUsedFormat},{title:this.$t("History.TotalJobs"),value:this.totalJobsCount.toString()}];return e.push(...this.auxiliaryTotals),e}get auxiliaryTotals(){var t;const e=(t=this.$store.state.server.history.auxiliary_totals)!=null?t:[],s=[];return e.forEach(r=>{var o,l;const i="history_field_".concat(r.field),n=this.moonrakerHistoryFields.find(c=>c.provider===r.provider&&c.name===i),a=Math.round(((o=r.total)!=null?o:0)*1e3)/1e3;s.push({title:(l=n==null?void 0:n.desc)!=null?l:r.field,value:"".concat(a," ").concat(n==null?void 0:n.unit)})}),s}get totals(){return this.existsSelectedJobs?this.selectedTotals:this.genericTotals}refreshHistory(){this.$store.dispatch("socket/addLoading",{name:"historyLoadAll"}),this.$socket.emit("server.history.list",{start:0,limit:50},{action:"server/history/getHistory"})}};Bm=UH([D({components:{Panel:B,HistoryFilamentUsage:e$,HistoryPrinttimeAvg:s$,HistoryAllPrintStatusChart:i$}})],Bm);var BH=Object.defineProperty,WH=Object.getOwnPropertyDescriptor,GH=(e,s,t,r)=>{for(var i=r>1?void 0:r?WH(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&BH(s,t,i),i};let Wm=class extends M(O){get selectedJobs(){return this.$store.getters["server/history/getSelectedJobs"]}get allPrintStatusArray(){return this.$store.getters["server/history/getAllPrintStatusArrayAll"]}get selectedPrintStatusArray(){return this.$store.getters["server/history/getSelectedPrintStatusArray"]}get printStatusArray(){const e=[];return(this.selectedJobs.length?this.selectedPrintStatusArray:this.allPrintStatusArray).forEach(t=>{const r={...t};r.name=t.displayName,e.push(r)}),e}};Wm=GH([D({components:{}})],Wm);var zH=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(dp,[t("tbody",e._l(e.printStatusArray,function(r){return t("tr",{key:r.name},[t("td",[e._v(e._s(r.displayName))]),t("td",{staticClass:"text-right"},[e._v(e._s(r.value))])])}),0)])},ZH=[];const Xv={};var qH=E(Wm,zH,ZH,!1,XH,null,null,null);function XH(e){for(let s in Xv)this[s]=Xv[s]}const YH=function(){return qH.exports}();var JH=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(B,{attrs:{icon:e.mdiChartAreaspline,title:e.$t("History.Statistics"),"card-class":"history-statistics-panel",collapsible:!0}},[t(q,{staticClass:"pa-0"},[t($,{attrs:{align:"center"}},[t(_,{staticClass:"col-12 col-sm-6 col-md-4"},[t(dp,[t("tbody",e._l(e.totals,function(r){return t("tr",{key:r.title},[t("td",[e._v(e._s(r.title))]),t("td",{staticClass:"text-right"},[e._v(e._s(r.value))])])}),0)])],1),t(_,{staticClass:"col-12 col-sm-6 col-md-4"},[e.togglePrintStatus==="chart"?t(i$):t(YH),t("div",{staticClass:"text-center mb-3"},[t(Uo,{attrs:{small:"",mandatory:""},model:{value:e.togglePrintStatus,callback:function(r){e.togglePrintStatus=r},expression:"togglePrintStatus"}},[t(g,{attrs:{small:"",value:"chart"}},[e._v(e._s(e.$t("History.Chart")))]),t(g,{attrs:{small:"",value:"table"}},[e._v(e._s(e.$t("History.Table")))])],1),e.allLoaded?e._e():t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"ml-3 minwidth-0 px-2",attrs:{outlined:"",small:"",loading:e.loadings.includes("historyLoadAll"),color:"primary"},on:{click:e.refreshHistory}},"v-btn",n,!1),i),[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiDatabaseArrowDownOutline))])],1)]}}],null,!1,1343318810)},[t("span",[e._v(e._s(e.$t("History.LoadCompleteHistory")))])])],1)],1),t(_,{staticClass:"col-12 col-sm-12 col-md-4"},[e.toggleChart==="filament_usage"?t(e$):e.toggleChart==="printtime_avg"?t(s$):e._e(),t("div",{staticClass:"text-center mt-3"},[t(Uo,{attrs:{small:"",mandatory:""},model:{value:e.toggleChart,callback:function(r){e.toggleChart=r},expression:"toggleChart"}},[t(g,{attrs:{small:"",value:"filament_usage"}},[e._v(e._s(e.$t("History.FilamentUsage")))]),t(g,{attrs:{small:"",value:"printtime_avg"}},[e._v(e._s(e.$t("History.PrinttimeAvg")))])],1)],1)],1)],1)],1)],1)},KH=[];const Yv={};var QH=E(Bm,JH,KH,!1,eI,null,null,null);function eI(e){for(let s in Yv)this[s]=Yv[s]}const n$=function(){return QH.exports}();var tI=Object.defineProperty,sI=Object.getOwnPropertyDescriptor,rI=(e,s,t,r)=>{for(var i=r>1?void 0:r?sI(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&tI(s,t,i),i};let Gm=class extends M(O){};Gm=rI([D({components:{HistoryListPanel:KC,HistoryStatisticsPanel:n$}})],Gm);var iI=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t($,[t(_,[t(n$)],1)],1),t($,{staticClass:"mt-0"},[t(_,[t(KC)],1)],1)],1)},nI=[];const Jv={};var aI=E(Gm,iI,nI,!1,oI,null,null,null);function oI(e){for(let s in Jv)this[s]=Jv[s]}const lI=function(){return aI.exports}();var cI=Object.defineProperty,uI=Object.getOwnPropertyDescriptor,dI=(e,s,t,r)=>{for(var i=r>1?void 0:r?uI(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&cI(s,t,i),i};let zm=class extends M(O){constructor(){super(...arguments),this.formatFilesize=Je,this.sortFiles=kp,this.mdiFileVideo=LT,this.mdiCloseThick=pe,this.mdiFileDocumentMultipleOutline=Uc,this.mdiMagnify=zc,this.mdiFolderPlus=$p,this.mdiRefresh=tn,this.mdiFolderUpload=xp,this.mdiFolder=Cp,this.mdiFolderZipOutline=RT,this.mdiFile=pr,this.mdiCloudDownload=Gn,this.mdiRenameBox=Yc,this.mdiDelete=ze,this.search="",this.boolVideoDialog=!1,this.videoDialogFilename="",this.dialogCreateDirectory={show:!1,name:""},this.contextMenu={shown:!1,isDirectory:!1,touchTimer:void 0,x:0,y:0,item:{isDirectory:!1,filename:"",permissions:"",modified:new Date}},this.dialogRenameFile={show:!1,newName:"",item:{isDirectory:!1,filename:"",permissions:"",modified:new Date}},this.dialogRenameDirectory={show:!1,newName:"",item:{isDirectory:!1,filename:"",permissions:"",modified:new Date}},this.dialogDeleteDirectory={show:!1,newName:"",item:{isDirectory:!1,filename:"",permissions:"",modified:new Date}},this.deleteDialog=!1,this.deleteSelectedDialog=!1,this.isInvalidName=!0,this.nameInputRules=[e=>!!e||this.$t("Files.InvalidNameEmpty"),e=>!this.existsFilename(e)||this.$t("Files.InvalidNameAlreadyExists")],this.rootDirectory="timelapse"}existsFilename(e){return this.files.findIndex(s=>s.filename===e)>=0}get headers(){return[{text:"",value:"",align:"left",configable:!1,visible:!0,sortable:!1},{text:this.$t("Timelapse.Name"),value:"filename",align:"left",configable:!1,visible:!0},{text:this.$t("Timelapse.Filesize"),value:"size",align:"right",configable:!0,visible:!0},{text:this.$t("Timelapse.LastModified"),value:"modified",align:"right",configable:!0,visible:!0}]}get directory(){return this.$store.getters["files/getDirectory"](this.currentPath)}get disk_usage(){var e,s;return(s=(e=this.directory)==null?void 0:e.disk_usage)!=null?s:{used:0,free:0,total:0}}get directoryPermissions(){var e,s;return(s=(e=this.directory)==null?void 0:e.permissions)!=null?s:"r"}get files(){var e,s;return[...(s=(e=this.directory)==null?void 0:e.childrens)!=null?s:[]]}get sortBy(){var e;return(e=this.$store.state.gui.view.gcodefiles.sortBy)!=null?e:"modified"}set sortBy(e){e===void 0&&(e="modified"),this.$store.dispatch("gui/saveSetting",{name:"view.timelapse.sortBy",value:e})}get sortDesc(){var e;return(e=this.$store.state.gui.view.gcodefiles.sortDesc)!=null?e:!0}set sortDesc(e){e===void 0&&(e=!1),this.$store.dispatch("gui/saveSetting",{name:"view.timelapse.sortDesc",value:e})}get countPerPage(){var e,s;return(s=(e=this.$store.state.gui.view.gcodefiles)==null?void 0:e.countPerPage)!=null?s:10}set countPerPage(e){this.$store.dispatch("gui/saveSetting",{name:"view.timelapse.countPerPage",value:e})}get displayFiles(){var e,s;return(s=(e=this.files)==null?void 0:e.filter(t=>t.isDirectory?!0:t.filename.endsWith("mp4")||t.filename.endsWith("zip")))!=null?s:[]}get currentPath(){return this.$store.state.gui.view.timelapse.currentPath}get currentPathForNavigation(){return this.currentPath===this.rootDirectory?"":this.currentPath.substring(this.rootDirectory.length)}set currentPath(e){this.$store.dispatch("gui/saveSettingWithoutUpload",{name:"view.timelapse.currentPath",value:e})}get selectedFiles(){var e;return(e=this.$store.state.gui.view.timelapse.selectedFiles)!=null?e:[]}set selectedFiles(e){this.$store.dispatch("gui/saveSettingWithoutUpload",{name:"view.timelapse.selectedFiles",value:e})}createDirectory(){this.dialogCreateDirectory.name="",this.dialogCreateDirectory.show=!0,setTimeout(()=>{var e;(e=this.$refs.inputFieldCreateDirectory)==null||e.focus()},200)}createDirectoryAction(){this.dialogCreateDirectory.show=!1,this.$socket.emit("server.files.post_directory",{path:this.currentPath+"/"+this.dialogCreateDirectory.name},{action:"files/getCreateDir"})}refreshFileList(){this.$socket.emit("server.files.get_directory",{path:this.currentPath},{action:"files/getDirectory"})}advancedSearch(e,s){return e!=null&&s!=null&&typeof e=="string"&&e.toString().toLowerCase().indexOf(s.toLowerCase())!==-1}getThumbnail(e){var r;const s=e.filename.slice(0,e.filename.lastIndexOf(".")),t=(r=this.files)==null?void 0:r.find(i=>i.filename===s+".jpg");return t?"".concat(this.apiUrl,"/server/files/").concat(encodeURI(this.currentPath),"/").concat(encodeURI(t.filename),"?timestamp=").concat(t.modified.getTime()):""}clickRow(e,s=!1){(!this.contextMenu.shown||s)&&(s&&(this.contextMenu.shown=!1),e.isDirectory?this.currentPath+="/"+e.filename:e.filename.endsWith("zip")?this.downloadFile(e.filename):e.filename.endsWith("mp4")&&(this.videoDialogFilename=encodeURI("".concat(this.currentPath,"/").concat(e.filename)),this.boolVideoDialog=!0))}clickRowGoBack(){this.currentPath=this.currentPath.slice(0,this.currentPath.lastIndexOf("/"))}clickPathNavGoToDirectory(e){this.currentPath="".concat(this.rootDirectory).concat(e.location)}showContextMenu(e,s){this.contextMenu.shown||(e==null||e.preventDefault(),this.contextMenu.shown=!0,this.contextMenu.x=(e==null?void 0:e.clientX)||(e==null?void 0:e.pageX)||window.screenX/2,this.contextMenu.y=(e==null?void 0:e.clientY)||(e==null?void 0:e.pageY)||window.screenY/2,this.contextMenu.item=s,this.$nextTick(()=>{this.contextMenu.shown=!0}))}existsFramesZip(e){const s=e.filename.lastIndexOf("."),t=e.filename.slice(0,s)+".zip";return this.files.findIndex(r=>r.filename===t)!==-1}downloadFile(e){const s=this.currentPath+"/"+e,t=this.apiUrl+"/server/files/"+encodeURI(s);window.open(t)}async downloadSelectedFiles(){let e=[];const s=async(i,n)=>{for(const a of n){const o="".concat(i,"/").concat(a.filename);if(a.isDirectory&&a.childrens){await s(o,a.childrens);continue}if(e.push(o),a.filename.endsWith(".mp4")){const l=a.filename.lastIndexOf("."),c=a.filename.slice(0,l),u="".concat(c,".jpg");this.files.indexOf(d=>d.filename===u)!==-1&&e.push("".concat(i,"/").concat(u))}}};await s(this.currentPath,this.selectedFiles);const t=new Date,r="".concat(t.getFullYear()).concat(t.getMonth()).concat(t.getDate(),"-").concat(t.getHours()).concat(t.getMinutes()).concat(t.getSeconds());this.$socket.emit("server.files.zip",{items:e,dest:"timelapse/timelapse-".concat(r,".zip")},{action:"files/downloadZip",loading:"timelapseDownloadZip"}),this.selectedFiles=[]}renameFile(e){const s=e.filename.lastIndexOf(".");this.dialogRenameFile.newName=e.filename.slice(0,s),this.dialogRenameFile.item=e,this.dialogRenameFile.show=!0,setTimeout(()=>{var t;(t=this.$refs.inputFieldRenameFile)==null||t.focus()},200)}renameFileAction(){const e=this.dialogRenameFile.item.filename.lastIndexOf("."),s=this.dialogRenameFile.item.filename.slice(0,e),t=this.dialogRenameFile.item.filename.split(".").pop();if(this.dialogRenameFile.show=!1,this.$socket.emit("server.files.move",{source:"".concat(this.currentPath,"/").concat(this.dialogRenameFile.item.filename),dest:"".concat(this.currentPath,"/").concat(this.dialogRenameFile.newName,".").concat(t)},{action:"files/getMove"}),t!=="mp4")return;this.files.find(i=>i.filename==="".concat(s,".jpg"))&&this.$socket.emit("server.files.move",{source:"".concat(this.currentPath,"/").concat(s,".jpg"),dest:"".concat(this.currentPath,"/").concat(this.dialogRenameFile.newName,".jpg")})}renameDirectory(e){this.dialogRenameDirectory.item=e,this.dialogRenameDirectory.newName=e.filename,this.dialogRenameDirectory.show=!0,setTimeout(()=>{var s;(s=this.$refs.inputFieldRenameDirectory)==null||s.focus()},200)}renameDirectoryAction(){this.dialogRenameDirectory.show=!1,this.$socket.emit("server.files.move",{source:this.currentPath+"/"+this.dialogRenameDirectory.item.filename,dest:this.currentPath+"/"+this.dialogRenameDirectory.newName},{action:"files/getMove"})}removeFile(){const e=this.contextMenu.item.filename.slice(0,this.contextMenu.item.filename.lastIndexOf(".")),s=this.contextMenu.item.filename.split(".").pop();if(this.$socket.emit("server.files.delete_file",{path:this.currentPath+"/"+this.contextMenu.item.filename},{action:"files/getDeleteFile"}),s!=="mp4")return;const t=e+".jpg";this.files.findIndex(i=>i.filename===t)!==-1&&this.$socket.emit("server.files.delete_file",{path:this.currentPath+"/"+t},{action:"files/getDeleteFile"}),this.deleteDialog=!1}deleteDirectory(e){this.dialogDeleteDirectory.item=e,this.dialogDeleteDirectory.show=!0}deleteDirectoryAction(){this.dialogDeleteDirectory.show=!1,this.$socket.emit("server.files.delete_directory",{path:this.currentPath+"/"+this.contextMenu.item.filename,force:!0},{action:"files/getDeleteDir"})}deleteSelectedFiles(){this.selectedFiles.forEach(e=>{if(e.isDirectory)this.$socket.emit("server.files.delete_directory",{path:this.currentPath+"/"+e.filename,force:!0},{action:"files/getDeleteDir"});else{const s=e.filename.slice(0,e.filename.lastIndexOf(".")),t=e.filename.split(".").pop();if(this.$socket.emit("server.files.delete_file",{path:this.currentPath+"/"+e.filename},{action:"files/getDeleteFile"}),t!=="mp4")return;const r=s+".jpg";this.files.findIndex(n=>n.filename===r)!==-1&&this.$socket.emit("server.files.delete_file",{path:this.currentPath+"/"+r},{action:"files/getDeleteFile"})}}),this.selectedFiles=[],this.deleteSelectedDialog=!1}};zm=dI([D({components:{Panel:B,PathNavigation:on}})],zm);var mI=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(B,{attrs:{title:e.$t("Timelapse.TimelapseFiles"),icon:e.mdiFileDocumentMultipleOutline,"card-class":"timelapse-files-panel"}},[t(q,[t($,[t(_,{staticClass:"col-12 d-flex align-center"},[t(te,{staticStyle:{"max-width":"300px"},attrs:{"append-icon":e.mdiMagnify,label:e.$t("Timelapse.Search"),"single-line":"",outlined:"",clearable:"","hide-details":"",dense:""},model:{value:e.search,callback:function(r){e.search=r},expression:"search"}}),t(ae),e.selectedFiles.length?t(g,{staticClass:"px-2 minwidth-0 ml-3",attrs:{title:e.$t("Timelapse.Download"),color:"primary",loading:e.loadings.includes("timelapseDownloadZip")},on:{click:e.downloadSelectedFiles}},[t(v,[e._v(e._s(e.mdiCloudDownload))])],1):e._e(),e.selectedFiles.length?t(g,{staticClass:"px-2 minwidth-0 ml-3",attrs:{title:e.$t("Timelapse.Delete"),color:"error"},on:{click:function(r){e.deleteSelectedDialog=!0}}},[t(v,[e._v(e._s(e.mdiDelete))])],1):e._e(),e.directoryPermissions.includes("w")?t(g,{staticClass:"px-2 minwidth-0 ml-3",attrs:{title:e.$t("Timelapse.CreateNewDirectory")},on:{click:e.createDirectory}},[t(v,[e._v(e._s(e.mdiFolderPlus))])],1):e._e(),t(g,{staticClass:"px-2 minwidth-0 ml-3",attrs:{title:e.$t("Timelapse.RefreshCurrentDirectory")},on:{click:e.refreshFileList}},[t(v,[e._v(e._s(e.mdiRefresh))])],1)],1)],1)],1),t(q,[t($,[t(_,{staticClass:"col-12 py-2 d-flex align-center"},[t("span",[t("b",{staticClass:"mr-1"},[e._v(e._s(e.$t("Timelapse.CurrentPath"))+":")]),t(on,{attrs:{path:e.currentPathForNavigation,"base-directory-label":"/".concat(e.rootDirectory),"on-segment-click":e.clickPathNavGoToDirectory}})],1),t(ae),e.disk_usage!==null?[t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t("span",e._g(e._b({},"span",n,!1),i),[t("b",[e._v(e._s(e.$t("Timelapse.FreeDisk"))+":")]),e._v(" "+e._s(e.formatFilesize(e.disk_usage.free))+" ")])]}}],null,!1,2240604619)},[t("span",[e._v(" "+e._s(e.$t("Timelapse.Used"))+": "+e._s(e.formatFilesize(e.disk_usage.used))+" "),t("br"),e._v(" "+e._s(e.$t("Timelapse.Free"))+": "+e._s(e.formatFilesize(e.disk_usage.free))+" "),t("br"),e._v(" "+e._s(e.$t("Timelapse.Total"))+": "+e._s(e.formatFilesize(e.disk_usage.total))+" ")])])]:e._e()],2)],1)],1),t(U,{staticClass:"mb-3"}),t(zr,{staticClass:"files-table",attrs:{items:e.displayFiles,headers:e.headers,"custom-sort":e.sortFiles,"sort-by":e.sortBy,"sort-desc":e.sortDesc,"items-per-page":e.countPerPage,"footer-props":{itemsPerPageText:e.$t("Timelapse.Files"),itemsPerPageAllText:e.$t("Timelapse.AllFiles"),itemsPerPageOptions:[10,25,50,100,-1]},"item-key":"filename",search:e.search,"custom-filter":e.advancedSearch,"mobile-breakpoint":"0","show-select":""},on:{"update:sortBy":function(r){e.sortBy=r},"update:sort-by":function(r){e.sortBy=r},"update:sortDesc":function(r){e.sortDesc=r},"update:sort-desc":function(r){e.sortDesc=r},"update:itemsPerPage":function(r){e.countPerPage=r},"update:items-per-page":function(r){e.countPerPage=r}},scopedSlots:e._u([{key:"no-data",fn:function(){return[t("div",{staticClass:"text-center font-italic"},[e._v(e._s(e.$t("Timelapse.Empty")))])]},proxy:!0},{key:"item",fn:function(r){var i=r.index,n=r.item,a=r.isSelected,o=r.select;return[t("tr",{directives:[{name:"longpress",rawName:"v-longpress:600",value:function(l){return e.showContextMenu(l,n)},expression:"(e) => showContextMenu(e, item)",arg:"600"}],key:"".concat(i," ").concat(n.filename),staticClass:"file-list-cursor user-select-none",on:{contextmenu:function(l){return e.showContextMenu(l,n)},click:function(l){return e.clickRow(n)}}},[t("td",{staticClass:"file-list__select-td pr-0"},[t(Fr,{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"pa-0 mr-0",attrs:{value:a},on:{click:function(l){return l.stopPropagation(),o(!a)}}})],1),t("td",{staticClass:"px-0 text-center",staticStyle:{width:"32px"}},[n.isDirectory?[t(v,{attrs:{width:"32"}},[e._v(e._s(e.mdiFolder))])]:n.filename.endsWith("zip")?[t(v,{attrs:{width:"32"}},[e._v(e._s(e.mdiFolderZipOutline))])]:e.getThumbnail(n)?[!n.isDirectory&&e.getThumbnail(n)?t(de,{attrs:{top:"","content-class":"tooltip__content-opacity1"},scopedSlots:e._u([{key:"activator",fn:function(l){var c=l.on,u=l.attrs;return[t("vue-load-image",[t("img",e._g(e._b({attrs:{slot:"image",src:e.getThumbnail(n),alt:n.filename,width:"32"},slot:"image"},"img",u,!1),c)),t("div",{attrs:{slot:"preloader"},slot:"preloader"},[t(dt,{attrs:{slot:"preloader",indeterminate:"",color:"primary"},slot:"preloader"})],1),t("div",{attrs:{slot:"error"},slot:"error"},[t(v,[e._v(e._s(e.mdiFile))])],1)])]}}],null,!0)},[t("span",[t("img",{attrs:{src:e.getThumbnail(n),alt:n.filename,width:"250"}})])]):e._e()]:[t(v,[e._v(e._s(e.mdiFile))])]],2),t("td",{staticClass:""},[e._v(e._s(n.filename))]),e.headers.find(function(l){return l.value==="size"}).visible?t("td",{staticClass:"text-no-wrap text-right"},[e._v(" "+e._s(n.isDirectory?"--":e.formatFilesize(n.size))+" ")]):e._e(),e.headers.find(function(l){return l.value==="modified"}).visible?t("td",{staticClass:"text-right"},[e._v(" "+e._s(e.formatDateTime(n.modified))+" ")]):e._e()])]}}]),model:{value:e.selectedFiles,callback:function(r){e.selectedFiles=r},expression:"selectedFiles"}},[t("template",{slot:"items"},e._l(e.headers,function(r){return t("td",{key:r.value},[e._v(e._s(r.text))])}),0),e.currentPath!==e.rootDirectory?t("template",{slot:"body.prepend"},[t("tr",{staticClass:"file-list-cursor",on:{click:e.clickRowGoBack}},[t("td",{staticClass:"pr-0 text-center",staticStyle:{width:"32px"}},[t(v,[e._v(e._s(e.mdiFolderUpload))])],1),t("td",{staticClass:"",attrs:{colspan:e.headers.length}},[e._v("..")])])]):e._e()],2)],1),t($e,{attrs:{"position-x":e.contextMenu.x,"position-y":e.contextMenu.y,absolute:"","offset-y":""},model:{value:e.contextMenu.shown,callback:function(r){e.$set(e.contextMenu,"shown",r)},expression:"contextMenu.shown"}},[t(Oe,[e.contextMenu.item.isDirectory?e._e():t(J,{on:{click:function(r){return e.downloadFile(e.contextMenu.item.filename)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiCloudDownload))]),e._v(" "+e._s(e.$t("Timelapse.Download"))+" ")],1),e.contextMenu.item.isDirectory&&e.contextMenu.item.permissions.includes("w")?t(J,{on:{click:function(r){return e.renameDirectory(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiRenameBox))]),e._v(" "+e._s(e.$t("Timelapse.Rename"))+" ")],1):e._e(),!e.contextMenu.item.isDirectory&&e.contextMenu.item.permissions.includes("w")?t(J,{on:{click:function(r){return e.renameFile(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiRenameBox))]),e._v(" "+e._s(e.$t("Timelapse.Rename"))+" ")],1):e._e(),!e.contextMenu.item.isDirectory&&e.contextMenu.item.permissions.includes("w")?t(J,{staticClass:"red--text",on:{click:function(r){e.deleteDialog=!0}}},[t(v,{staticClass:"mr-1",attrs:{color:"error"}},[e._v(e._s(e.mdiDelete))]),e._v(" "+e._s(e.$t("Timelapse.Delete"))+" ")],1):e._e(),e.contextMenu.item.isDirectory&&e.contextMenu.item.permissions.includes("w")?t(J,{staticClass:"red--text",on:{click:function(r){return e.deleteDirectory(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1",attrs:{color:"error"}},[e._v(e._s(e.mdiDelete))]),e._v(" "+e._s(e.$t("Timelapse.Delete"))+" ")],1):e._e()],1)],1),t(oe,{attrs:{"max-width":"400"},model:{value:e.dialogRenameFile.show,callback:function(r){e.$set(e.dialogRenameFile,"show",r)},expression:"dialogRenameFile.show"}},[t(B,{attrs:{title:e.$t("Timelapse.RenameFile"),"card-class":"gcode-files-rename-file-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.dialogRenameFile.show=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t(te,{ref:"inputFieldRenameFile",attrs:{label:e.$t("Timelapse.Name"),required:"",rules:e.nameInputRules},on:{"update:error":function(r){return e.isInvalidName=r},keypress:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.renameFileAction.apply(null,arguments)}},model:{value:e.dialogRenameFile.newName,callback:function(r){e.$set(e.dialogRenameFile,"newName",r)},expression:"dialogRenameFile.newName"}})],1),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.dialogRenameFile.show=!1}}},[e._v(e._s(e.$t("Timelapse.Cancel")))]),t(g,{attrs:{disabled:e.isInvalidName,color:"primary",text:""},on:{click:e.renameFileAction}},[e._v(" "+e._s(e.$t("Timelapse.Rename"))+" ")])],1)],1)],1),t(oe,{attrs:{"max-width":"400"},model:{value:e.dialogCreateDirectory.show,callback:function(r){e.$set(e.dialogCreateDirectory,"show",r)},expression:"dialogCreateDirectory.show"}},[t(B,{attrs:{title:e.$t("Timelapse.NewDirectory"),"card-class":"gcode-files-new-directory-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.dialogCreateDirectory.show=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t(te,{ref:"inputFieldCreateDirectory",attrs:{label:e.$t("Timelapse.Name"),required:"",rules:e.nameInputRules},on:{"update:error":function(r){return e.isInvalidName=r},keypress:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.createDirectoryAction.apply(null,arguments)}},model:{value:e.dialogCreateDirectory.name,callback:function(r){e.$set(e.dialogCreateDirectory,"name",r)},expression:"dialogCreateDirectory.name"}})],1),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.dialogCreateDirectory.show=!1}}},[e._v(" "+e._s(e.$t("Timelapse.Cancel"))+" ")]),t(g,{attrs:{disabled:e.isInvalidName,color:"primary",text:""},on:{click:e.createDirectoryAction}},[e._v(" "+e._s(e.$t("Timelapse.Create"))+" ")])],1)],1)],1),t(oe,{attrs:{"max-width":"400"},model:{value:e.dialogRenameDirectory.show,callback:function(r){e.$set(e.dialogRenameDirectory,"show",r)},expression:"dialogRenameDirectory.show"}},[t(B,{attrs:{title:e.$t("Timelapse.RenameDirectory"),"card-class":"gcode-files-rename-directory-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.dialogRenameDirectory.show=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t(te,{ref:"inputFieldRenameDirectory",attrs:{label:e.$t("Timelapse.Name"),required:"",rules:e.nameInputRules},on:{"update:error":function(r){return e.isInvalidName=r},keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.renameDirectoryAction.apply(null,arguments)}},model:{value:e.dialogRenameDirectory.newName,callback:function(r){e.$set(e.dialogRenameDirectory,"newName",r)},expression:"dialogRenameDirectory.newName"}})],1),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.dialogRenameDirectory.show=!1}}},[e._v(" "+e._s(e.$t("Timelapse.Cancel"))+" ")]),t(g,{attrs:{disabled:e.isInvalidName,color:"primary",text:""},on:{click:e.renameDirectoryAction}},[e._v(" "+e._s(e.$t("Timelapse.Rename"))+" ")])],1)],1)],1),t(oe,{attrs:{"max-width":"400"},model:{value:e.dialogDeleteDirectory.show,callback:function(r){e.$set(e.dialogDeleteDirectory,"show",r)},expression:"dialogDeleteDirectory.show"}},[t(B,{attrs:{title:e.$t("Timelapse.DeleteDirectory"),"card-class":"gcode-files-delete-directory-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.dialogDeleteDirectory.show=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t("p",{staticClass:"mb-0"},[e._v(" "+e._s(e.$t("Timelapse.DeleteDirectoryQuestion",{name:e.dialogDeleteDirectory.item.filename}))+" ")])]),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.dialogDeleteDirectory.show=!1}}},[e._v(" "+e._s(e.$t("Timelapse.Cancel"))+" ")]),t(g,{attrs:{color:"error",text:""},on:{click:e.deleteDirectoryAction}},[e._v(e._s(e.$t("Timelapse.Delete")))])],1)],1)],1),t(oe,{attrs:{"max-width":700},model:{value:e.boolVideoDialog,callback:function(r){e.boolVideoDialog=r},expression:"boolVideoDialog"}},[t(B,{attrs:{title:e.$t("Timelapse.Video"),icon:e.mdiFileVideo,"card-class":"timelapse-video-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.boolVideoDialog=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,{},[t($,[t(_,{staticClass:"pb-0"},[t("video",{staticStyle:{width:"100%"},attrs:{src:e.apiUrl+"/server/files/"+e.videoDialogFilename,controls:""}},[e._v(" Sorry, your browser doesn't support embedded videos, but don't worry, you can "),t("a",{attrs:{href:e.apiUrl+"/server/files/"+e.videoDialogFilename}},[e._v("download it")]),e._v(" and watch it with your favorite video player! ")])])],1),t($,[t(_,{staticClass:"text-center"},[t(g,{attrs:{text:"",color:"primary",href:e.apiUrl+"/server/files/"+e.videoDialogFilename,target:"_blank"}},[e._v(" "+e._s(e.$t("Timelapse.Download"))+" ")])],1)],1)],1)],1)],1),t(oe,{attrs:{"max-width":"400"},model:{value:e.deleteDialog,callback:function(r){e.deleteDialog=r},expression:"deleteDialog"}},[t(B,{attrs:{title:e.$t("Timelapse.Delete"),"card-class":"timelapse-delete-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.deleteDialog=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t("p",{staticClass:"mb-0"},[e._v(" "+e._s(e.$t("Timelapse.DeleteSingleFileQuestion",{name:e.contextMenu.item.filename}))+" ")])]),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.deleteDialog=!1}}},[e._v(" "+e._s(e.$t("Timelapse.Cancel"))+" ")]),t(g,{attrs:{color:"error",text:""},on:{click:e.removeFile}},[e._v(" "+e._s(e.$t("Timelapse.Delete"))+" ")])],1)],1)],1),t(oe,{attrs:{"max-width":"400"},model:{value:e.deleteSelectedDialog,callback:function(r){e.deleteSelectedDialog=r},expression:"deleteSelectedDialog"}},[t(B,{attrs:{title:e.$t("Timelapse.Delete"),"card-class":"timelapse-delete-selected-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.deleteSelectedDialog=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[e.selectedFiles.length===1?t("p",{staticClass:"mb-0"},[e._v(" "+e._s(e.$t("Timelapse.DeleteSingleFileQuestion",{name:e.selectedFiles[0].filename}))+" ")]):t("p",{staticClass:"mb-0"},[e._v(" "+e._s(e.$t("Timelapse.DeleteSelectedQuestion",{count:e.selectedFiles.length}))+" ")])]),t(ne,[t(ae),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.deleteSelectedDialog=!1}}},[e._v(e._s(e.$t("Timelapse.Cancel")))]),t(g,{attrs:{color:"error",text:""},on:{click:e.deleteSelectedFiles}},[e._v(e._s(e.$t("Timelapse.Delete")))])],1)],1)],1)],1)},hI=[];const Kv={};var pI=E(zm,mI,hI,!1,fI,"45e836df",null,null);function fI(e){for(let s in Kv)this[s]=Kv[s]}const a$=function(){return pI.exports}();var gI=Object.defineProperty,vI=Object.getOwnPropertyDescriptor,_I=(e,s,t,r)=>{for(var i=r>1?void 0:r?vI(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&gI(s,t,i),i};let Zm=class extends M(O,dr){constructor(){super(...arguments),this.mdiInformation=kt,this.mdiFile=pr,this.mdiCloseThick=pe,this.mdiTextBoxSearchOutline=n2,this.boolDialogRendersettings=!1,this.scale=1}get frameUrl(){var s,t,r;const e=(r=(t=(s=this.$store.state.server.timelapse)==null?void 0:s.lastFrame)==null?void 0:t.file)!=null?r:null;return e?this.apiUrl+"/server/files/timelapse_frames/"+e:null}get framesCount(){var e,s,t;return(t=(s=(e=this.$store.state.server.timelapse)==null?void 0:e.lastFrame)==null?void 0:s.count)!=null?t:0}get enabled(){var e,s,t;return(t=(s=(e=this.$store.state.server.timelapse)==null?void 0:e.settings)==null?void 0:s.enabled)!=null?t:!1}set enabled(e){this.$socket.emit("machine.timelapse.post_settings",{enabled:e},{action:"server/timelapse/initSettings"})}get autorender(){var e,s,t;return(t=(s=(e=this.$store.state.server.timelapse)==null?void 0:e.settings)==null?void 0:s.autorender)!=null?t:!1}set autorender(e){this.$socket.emit("machine.timelapse.post_settings",{autorender:e},{action:"server/timelapse/initSettings"})}get variable_fps(){var e,s,t;return(t=(s=(e=this.$store.state.server.timelapse)==null?void 0:e.settings)==null?void 0:s.variable_fps)!=null?t:!1}set variable_fps(e){this.$store.dispatch("server/timelapse/saveSetting",{variable_fps:e})}get framerateTypeOptions(){return[{value:!1,text:this.$t("Timelapse.Fixed")},{value:!0,text:this.$t("Timelapse.Variable")}]}get variable_fps_min(){var e,s,t;return(t=(s=(e=this.$store.state.server.timelapse)==null?void 0:e.settings)==null?void 0:s.variable_fps_min)!=null?t:5}set variable_fps_min(e){this.$store.dispatch("server/timelapse/saveSetting",{variable_fps_min:e})}get variable_fps_max(){var e,s,t;return(t=(s=(e=this.$store.state.server.timelapse)==null?void 0:e.settings)==null?void 0:s.variable_fps_max)!=null?t:60}set variable_fps_max(e){this.$store.dispatch("server/timelapse/saveSetting",{variable_fps_max:e})}get targetlength(){var e,s,t;return(t=(s=(e=this.$store.state.server.timelapse)==null?void 0:e.settings)==null?void 0:s.targetlength)!=null?t:10}set targetlength(e){this.$store.dispatch("server/timelapse/saveSetting",{targetlength:e})}get output_framerate(){var e,s,t;return(t=(s=(e=this.$store.state.server.timelapse)==null?void 0:e.settings)==null?void 0:s.output_framerate)!=null?t:30}set output_framerate(e){this.$store.dispatch("server/timelapse/saveSetting",{output_framerate:e})}get duplicatelastframe(){var e,s,t;return(t=(s=(e=this.$store.state.server.timelapse)==null?void 0:e.settings)==null?void 0:s.duplicatelastframe)!=null?t:0}set duplicatelastframe(e){this.$store.dispatch("server/timelapse/saveSetting",{duplicatelastframe:e})}get estimatedVideoLength(){let e=Math.round((this.framesCount+this.duplicatelastframe)/this.output_framerate);return this.variable_fps&&(e=Math.round((this.framesCount+this.duplicatelastframe)/this.variableTargetFps),e<this.targetlength&&(e=this.targetlength)),e>60?Math.floor(e/60)+"m "+(e-Math.floor(e/60)*60)+"s":e+"s"}get variableTargetFps(){let e=Math.floor(this.framesCount/this.targetlength);return e=Math.max(e,this.variable_fps_min),e=Math.min(e,this.variable_fps_max),e}get disableRenderButton(){var e,s;return((s=(e=this.$store.state.server.timelapse)==null?void 0:e.rendering.status)!=null?s:"")==="running"}get camId(){var e;return(e=this.$store.state.server.timelapse.settings.camera)!=null?e:""}get camSettings(){return this.$store.getters["gui/webcams/getWebcam"](this.camId)}get webcamStyle(){var e,s,t;return{transform:this.generateTransform((e=this.camSettings.flip_horizontal)!=null?e:!1,(s=this.camSettings.flip_vertical)!=null?s:!1,(t=this.camSettings.rotation)!=null?t:0)}}startRender(){this.boolDialogRendersettings=!1,this.$socket.emit("machine.timelapse.render",{})}saveFrames(){this.$socket.emit("machine.timelapse.saveframes",{},{loading:"timelapse_saveframes"})}calcRatio(){this.$refs.timelapsePreview&&(this.scale=this.$refs.timelapsePreview.naturalHeight/this.$refs.timelapsePreview.naturalWidth,this.scale>1&&(this.scale=this.$refs.timelapsePreview.naturalWidth/this.$refs.timelapsePreview.naturalHeight))}};Zm=_I([D({components:{Panel:B,SettingsRow:V}})],Zm);var bI=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(xe,{staticClass:"mb-3"},[t(La,{attrs:{flat:"",dense:""}},[t(Yi,[t("span",{staticClass:"subheading align-baseline"},[t(v,{attrs:{left:""}},[e._v(e._s(e.mdiInformation))]),e._v(" "+e._s(e.$t("Timelapse.Status"))+" ")],1)])],1),t($,{attrs:{"no-gutters":""}},[t(_,{staticClass:"col-12 col-sm-6 col-md-12 pb-3 pb-md-0 text--secondary"},[e.frameUrl?t(q,{staticClass:"pb-0"},[t($,[t(_,[t("vue-load-image",[t("img",{ref:"timelapsePreview",staticClass:"w-100",style:e.webcamStyle,attrs:{slot:"image",src:e.frameUrl,alt:e.$t("Timelapse.Preview")},on:{load:e.calcRatio},slot:"image"}),t("div",{attrs:{slot:"preloader"},slot:"preloader"},[t(dt,{attrs:{indeterminate:"",color:"primary"}})],1),t("div",{attrs:{slot:"error"},slot:"error"},[t(v,[e._v(e._s(e.mdiFile))])],1)])],1)],1)],1):e._e()],1),e.framesCount>0?t(_,{staticClass:"col-12 col-sm-6 col-md-12 pt-3 pt-md-0 text--secondary",attrs:{"align-self":"center"}},[t(q,{class:e.framesCount?"pt-0":""},[e.framesCount>0?[t(V,{attrs:{title:e.$t("Timelapse.Frames").toString()}},[e._v(" "+e._s(e.framesCount)+" ")]),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Timelapse.EstimatedLength").toString(),"dynamic-slot-width":!0}},[e._v(" "+e._s(e.estimatedVideoLength)+" ")])]:e._e(),["printing","paused"].includes(e.printer_state)?[t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Timelapse.Enabled").toString(),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.enabled,callback:function(r){e.enabled=r},expression:"enabled"}})],1),e.enabled?[e.framesCount>0?t(U,{staticClass:"my-2"}):e._e(),t(V,{attrs:{title:e.$t("Timelapse.Autorender").toString(),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.autorender,callback:function(r){e.autorender=r},expression:"autorender"}})],1)]:e._e()]:e._e(),e.framesCount>0&&!["printing","paused"].includes(e.printer_state)?[t(U,{staticClass:"mt-2 mb-4"}),t($,[t(_,{staticClass:"text-center"},[t(g,{attrs:{text:"",color:"primary",disabled:e.disableRenderButton},on:{click:function(r){e.boolDialogRendersettings=!0}}},[e._v(" "+e._s(e.$t("Timelapse.Render"))+" ")]),t(g,{attrs:{text:"",color:"primary",loading:e.loadings.includes("timelapse_saveframes")},on:{click:e.saveFrames}},[e._v(" "+e._s(e.$t("Timelapse.SaveFrames"))+" ")])],1)],1)]:e._e()],2)],1):t(_,{staticClass:"col-12 text--secondary",attrs:{"align-self":"center"}},[t(q,{staticClass:"pt-0 pt-md-3"},[t("p",{staticClass:"text-center my-0 font-italic"},[e._v(e._s(e.$t("Timelapse.NoActiveTimelapse")))])])],1)],1)],1),t(oe,{attrs:{"max-width":700,"max-height":500},model:{value:e.boolDialogRendersettings,callback:function(r){e.boolDialogRendersettings=r},expression:"boolDialogRendersettings"}},[t(B,{attrs:{title:e.$t("Timelapse.RenderSettings").toString(),icon:e.mdiTextBoxSearchOutline,"card-class":"timelapse-rendersettings-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:""},on:{click:function(r){e.boolDialogRendersettings=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,{},[t($,[t(_,{staticClass:"col-4"},[t(Ee,{attrs:{label:e.$t("Timelapse.Type"),items:e.framerateTypeOptions,outlined:"",dense:"","hide-details":""},model:{value:e.variable_fps,callback:function(r){e.variable_fps=r},expression:"variable_fps"}})],1),t(_,{staticClass:"col-4"},[e.variable_fps?[t(te,{attrs:{label:e.$t("Timelapse.MinFramerate"),type:"number",outlined:"",dense:"","hide-details":"","hide-spin-buttons":""},model:{value:e.variable_fps_min,callback:function(r){e.variable_fps_min=r},expression:"variable_fps_min"}}),t(te,{staticClass:"mt-3",attrs:{label:e.$t("Timelapse.MaxFramerate"),type:"number",outlined:"",dense:"","hide-details":"","hide-spin-buttons":""},model:{value:e.variable_fps_max,callback:function(r){e.variable_fps_max=r},expression:"variable_fps_max"}}),t(te,{staticClass:"mt-3",attrs:{label:e.$t("Timelapse.Targetlength"),type:"number",outlined:"",dense:"","hide-details":"","hide-spin-buttons":""},model:{value:e.targetlength,callback:function(r){e.targetlength=r},expression:"targetlength"}})]:[t(te,{attrs:{label:e.$t("Timelapse.Framerate"),type:"number",outlined:"",dense:"","hide-details":"","hide-spin-buttons":""},model:{value:e.output_framerate,callback:function(r){e.output_framerate=r},expression:"output_framerate"}})],t(te,{staticClass:"mt-3",attrs:{label:e.$t("Timelapse.DuplicateLastframe"),type:"number",outlined:"",dense:"","hide-details":"","hide-spin-buttons":""},model:{value:e.duplicatelastframe,callback:function(r){e.duplicatelastframe=r},expression:"duplicatelastframe"}})],2),t(_,{staticClass:"col-4"},[e.variable_fps?[t(te,{staticClass:"mb-3",attrs:{label:e.$t("Timelapse.TargetFps"),type:"number",outlined:"",dense:"","hide-details":"",readonly:""},model:{value:e.variableTargetFps,callback:function(r){e.variableTargetFps=r},expression:"variableTargetFps"}})]:e._e(),t(te,{attrs:{label:e.$t("Timelapse.EstimatedLength"),outlined:"",dense:"","hide-details":"",readonly:""},model:{value:e.estimatedVideoLength,callback:function(r){e.estimatedVideoLength=r},expression:"estimatedVideoLength"}})],2)],1)],1),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:function(r){e.boolDialogRendersettings=!1}}},[e._v(e._s(e.$t("Timelapse.Cancel")))]),t(g,{attrs:{text:"",color:"primary"},on:{click:e.startRender}},[e._v(e._s(e.$t("Timelapse.StartRender")))])],1)],1)],1)],1)},yI=[];const Qv={};var CI=E(Zm,bI,yI,!1,$I,null,null,null);function $I(e){for(let s in Qv)this[s]=Qv[s]}const o$=function(){return CI.exports}();var xI=Object.defineProperty,wI=Object.getOwnPropertyDescriptor,SI=(e,s,t,r)=>{for(var i=r>1?void 0:r?wI(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&xI(s,t,i),i};let qm=class extends M(O){};qm=SI([D({components:{TimelapseStatusPanel:o$,TimelapseFilesPanel:a$}})],qm);var PI=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t($,[t(_,{staticClass:"col-12 col-md-8 pt-0 pt-md-3",attrs:{order:e.$vuetify.breakpoint.mdAndUp?"":"2"}},[t(a$)],1),t(_,{staticClass:"col-12 col-md-4",attrs:{order:e.$vuetify.breakpoint.mdAndUp?"":"1"}},[t(o$)],1)],1)},DI=[];const e_={};var TI=E(qm,PI,DI,!1,MI,null,null,null);function MI(e){for(let s in e_)this[s]=e_[s]}const EI=function(){return TI.exports}();var Xm={exports:{}};const OI="2.0.0",l$=256,LI=Number.MAX_SAFE_INTEGER||9007199254740991,AI=16,kI=l$-6,FI=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Au={MAX_LENGTH:l$,MAX_SAFE_COMPONENT_LENGTH:AI,MAX_SAFE_BUILD_LENGTH:kI,MAX_SAFE_INTEGER:LI,RELEASE_TYPES:FI,SEMVER_SPEC_VERSION:OI,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const RI=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var ku=RI;(function(e,s){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Au,n=ku;s=e.exports={};const a=s.re=[],o=s.safeRe=[],l=s.src=[],c=s.t={};let u=0;const d="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",i],[d,r]],h=f=>{for(const[b,C]of m)f=f.split("".concat(b,"*")).join("".concat(b,"{0,").concat(C,"}")).split("".concat(b,"+")).join("".concat(b,"{1,").concat(C,"}"));return f},p=(f,b,C)=>{const S=h(b),L=u++;n(f,L,b),c[f]=L,l[L]=b,a[L]=new RegExp(b,C?"g":void 0),o[L]=new RegExp(S,C?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(d,"*")),p("MAINVERSION","(".concat(l[c.NUMERICIDENTIFIER],")\\.")+"(".concat(l[c.NUMERICIDENTIFIER],")\\.")+"(".concat(l[c.NUMERICIDENTIFIER],")")),p("MAINVERSIONLOOSE","(".concat(l[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[c.NUMERICIDENTIFIERLOOSE],")")),p("PRERELEASEIDENTIFIER","(?:".concat(l[c.NUMERICIDENTIFIER],"|").concat(l[c.NONNUMERICIDENTIFIER],")")),p("PRERELEASEIDENTIFIERLOOSE","(?:".concat(l[c.NUMERICIDENTIFIERLOOSE],"|").concat(l[c.NONNUMERICIDENTIFIER],")")),p("PRERELEASE","(?:-(".concat(l[c.PRERELEASEIDENTIFIER],"(?:\\.").concat(l[c.PRERELEASEIDENTIFIER],")*))")),p("PRERELEASELOOSE","(?:-?(".concat(l[c.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(l[c.PRERELEASEIDENTIFIERLOOSE],")*))")),p("BUILDIDENTIFIER","".concat(d,"+")),p("BUILD","(?:\\+(".concat(l[c.BUILDIDENTIFIER],"(?:\\.").concat(l[c.BUILDIDENTIFIER],")*))")),p("FULLPLAIN","v?".concat(l[c.MAINVERSION]).concat(l[c.PRERELEASE],"?").concat(l[c.BUILD],"?")),p("FULL","^".concat(l[c.FULLPLAIN],"$")),p("LOOSEPLAIN","[v=\\s]*".concat(l[c.MAINVERSIONLOOSE]).concat(l[c.PRERELEASELOOSE],"?").concat(l[c.BUILD],"?")),p("LOOSE","^".concat(l[c.LOOSEPLAIN],"$")),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE","".concat(l[c.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),p("XRANGEIDENTIFIER","".concat(l[c.NUMERICIDENTIFIER],"|x|X|\\*")),p("XRANGEPLAIN","[v=\\s]*(".concat(l[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[c.XRANGEIDENTIFIER],")")+"(?:".concat(l[c.PRERELEASE],")?").concat(l[c.BUILD],"?")+")?)?"),p("XRANGEPLAINLOOSE","[v=\\s]*(".concat(l[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[c.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(l[c.PRERELEASELOOSE],")?").concat(l[c.BUILD],"?")+")?)?"),p("XRANGE","^".concat(l[c.GTLT],"\\s*").concat(l[c.XRANGEPLAIN],"$")),p("XRANGELOOSE","^".concat(l[c.GTLT],"\\s*").concat(l[c.XRANGEPLAINLOOSE],"$")),p("COERCE","(^|[^\\d])(\\d{1,".concat(t,"})")+"(?:\\.(\\d{1,".concat(t,"}))?")+"(?:\\.(\\d{1,".concat(t,"}))?")+"(?:$|[^\\d])"),p("COERCERTL",l[c.COERCE],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM","(\\s*)".concat(l[c.LONETILDE],"\\s+"),!0),s.tildeTrimReplace="$1~",p("TILDE","^".concat(l[c.LONETILDE]).concat(l[c.XRANGEPLAIN],"$")),p("TILDELOOSE","^".concat(l[c.LONETILDE]).concat(l[c.XRANGEPLAINLOOSE],"$")),p("LONECARET","(?:\\^)"),p("CARETTRIM","(\\s*)".concat(l[c.LONECARET],"\\s+"),!0),s.caretTrimReplace="$1^",p("CARET","^".concat(l[c.LONECARET]).concat(l[c.XRANGEPLAIN],"$")),p("CARETLOOSE","^".concat(l[c.LONECARET]).concat(l[c.XRANGEPLAINLOOSE],"$")),p("COMPARATORLOOSE","^".concat(l[c.GTLT],"\\s*(").concat(l[c.LOOSEPLAIN],")$|^$")),p("COMPARATOR","^".concat(l[c.GTLT],"\\s*(").concat(l[c.FULLPLAIN],")$|^$")),p("COMPARATORTRIM","(\\s*)".concat(l[c.GTLT],"\\s*(").concat(l[c.LOOSEPLAIN],"|").concat(l[c.XRANGEPLAIN],")"),!0),s.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE","^\\s*(".concat(l[c.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(l[c.XRANGEPLAIN],")")+"\\s*$"),p("HYPHENRANGELOOSE","^\\s*(".concat(l[c.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(l[c.XRANGEPLAINLOOSE],")")+"\\s*$"),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Xm,Xm.exports);var qa=Xm.exports;const jI=Object.freeze({loose:!0}),HI=Object.freeze({}),II=e=>e?typeof e!="object"?jI:e:HI;var ff=II;const t_=/^[0-9]+$/,c$=(e,s)=>{const t=t_.test(e),r=t_.test(s);return t&&r&&(e=+e,s=+s),e===s?0:t&&!r?-1:r&&!t?1:e<s?-1:1},NI=(e,s)=>c$(s,e);var u$={compareIdentifiers:c$,rcompareIdentifiers:NI};const ho=ku,{MAX_LENGTH:s_,MAX_SAFE_INTEGER:po}=Au,{safeRe:r_,t:i_}=qa,VI=ff,{compareIdentifiers:ni}=u$;let UI=class vs{constructor(s,t){if(t=VI(t),s instanceof vs){if(s.loose===!!t.loose&&s.includePrerelease===!!t.includePrerelease)return s;s=s.version}else if(typeof s!="string")throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof s,'".'));if(s.length>s_)throw new TypeError("version is longer than ".concat(s_," characters"));ho("SemVer",s,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=s.trim().match(t.loose?r_[i_.LOOSE]:r_[i_.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(s));if(this.raw=s,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>po||this.major<0)throw new TypeError("Invalid major version");if(this.minor>po||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>po||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const n=+i;if(n>=0&&n<po)return n}return i}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(s){if(ho("SemVer.compare",this.version,this.options,s),!(s instanceof vs)){if(typeof s=="string"&&s===this.version)return 0;s=new vs(s,this.options)}return s.version===this.version?0:this.compareMain(s)||this.comparePre(s)}compareMain(s){return s instanceof vs||(s=new vs(s,this.options)),ni(this.major,s.major)||ni(this.minor,s.minor)||ni(this.patch,s.patch)}comparePre(s){if(s instanceof vs||(s=new vs(s,this.options)),this.prerelease.length&&!s.prerelease.length)return-1;if(!this.prerelease.length&&s.prerelease.length)return 1;if(!this.prerelease.length&&!s.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],i=s.prerelease[t];if(ho("prerelease compare",t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return ni(r,i)}while(++t)}compareBuild(s){s instanceof vs||(s=new vs(s,this.options));let t=0;do{const r=this.build[t],i=s.build[t];if(ho("prerelease compare",t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return ni(r,i)}while(++t)}inc(s,t,r){switch(s){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const i=Number(r)?1:0;if(!t&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);if(n===-1){if(t===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(t){let n=[t,i];r===!1&&(n=[t]),ni(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error("invalid increment argument: ".concat(s))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}};var St=UI;const n_=St,BI=(e,s,t=!1)=>{if(e instanceof n_)return e;try{return new n_(e,s)}catch(r){if(!t)return null;throw r}};var ln=BI;const WI=ln,GI=(e,s)=>{const t=WI(e,s);return t?t.version:null};var zI=GI;const ZI=ln,qI=(e,s)=>{const t=ZI(e.trim().replace(/^[=v]+/,""),s);return t?t.version:null};var XI=qI;const a_=St,YI=(e,s,t,r,i)=>{typeof t=="string"&&(i=r,r=t,t=void 0);try{return new a_(e instanceof a_?e.version:e,t).inc(s,r,i).version}catch{return null}};var JI=YI;const o_=ln,KI=(e,s)=>{const t=o_(e,null,!0),r=o_(s,null,!0),i=t.compare(r);if(i===0)return null;const n=i>0,a=n?t:r,o=n?r:t,l=!!a.prerelease.length;if(!!o.prerelease.length&&!l)return!o.patch&&!o.minor?"major":a.patch?"patch":a.minor?"minor":"major";const u=l?"pre":"";return t.major!==r.major?u+"major":t.minor!==r.minor?u+"minor":t.patch!==r.patch?u+"patch":"prerelease"};var QI=KI;const eN=St,tN=(e,s)=>new eN(e,s).major;var sN=tN;const rN=St,iN=(e,s)=>new rN(e,s).minor;var nN=iN;const aN=St,oN=(e,s)=>new aN(e,s).patch;var lN=oN;const cN=ln,uN=(e,s)=>{const t=cN(e,s);return t&&t.prerelease.length?t.prerelease:null};var dN=uN;const l_=St,mN=(e,s,t)=>new l_(e,t).compare(new l_(s,t));var ds=mN;const hN=ds,pN=(e,s,t)=>hN(s,e,t);var fN=pN;const gN=ds,vN=(e,s)=>gN(e,s,!0);var _N=vN;const c_=St,bN=(e,s,t)=>{const r=new c_(e,t),i=new c_(s,t);return r.compare(i)||r.compareBuild(i)};var gf=bN;const yN=gf,CN=(e,s)=>e.sort((t,r)=>yN(t,r,s));var $N=CN;const xN=gf,wN=(e,s)=>e.sort((t,r)=>xN(r,t,s));var SN=wN;const PN=ds,DN=(e,s,t)=>PN(e,s,t)>0;var Fu=DN;const TN=ds,MN=(e,s,t)=>TN(e,s,t)<0;var vf=MN;const EN=ds,ON=(e,s,t)=>EN(e,s,t)===0;var d$=ON;const LN=ds,AN=(e,s,t)=>LN(e,s,t)!==0;var m$=AN;const kN=ds,FN=(e,s,t)=>kN(e,s,t)>=0;var _f=FN;const RN=ds,jN=(e,s,t)=>RN(e,s,t)<=0;var bf=jN;const HN=d$,IN=m$,NN=Fu,VN=_f,UN=vf,BN=bf,WN=(e,s,t,r)=>{switch(s){case"===":return typeof e=="object"&&(e=e.version),typeof t=="object"&&(t=t.version),e===t;case"!==":return typeof e=="object"&&(e=e.version),typeof t=="object"&&(t=t.version),e!==t;case"":case"=":case"==":return HN(e,t,r);case"!=":return IN(e,t,r);case">":return NN(e,t,r);case">=":return VN(e,t,r);case"<":return UN(e,t,r);case"<=":return BN(e,t,r);default:throw new TypeError("Invalid operator: ".concat(s))}};var h$=WN;const GN=St,zN=ln,{safeRe:fo,t:go}=qa,ZN=(e,s)=>{if(e instanceof GN)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;s=s||{};let t=null;if(!s.rtl)t=e.match(fo[go.COERCE]);else{let r;for(;(r=fo[go.COERCERTL].exec(e))&&(!t||t.index+t[0].length!==e.length);)(!t||r.index+r[0].length!==t.index+t[0].length)&&(t=r),fo[go.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;fo[go.COERCERTL].lastIndex=-1}return t===null?null:zN("".concat(t[2],".").concat(t[3]||"0",".").concat(t[4]||"0"),s)};var qN=ZN,Pd,u_;function XN(){return u_||(u_=1,Pd=function(e){e.prototype[Symbol.iterator]=function*(){for(let s=this.head;s;s=s.next)yield s.value}}),Pd}var YN=Le;Le.Node=Wr;Le.create=Le;function Le(e){var s=this;if(s instanceof Le||(s=new Le),s.tail=null,s.head=null,s.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){s.push(i)});else if(arguments.length>0)for(var t=0,r=arguments.length;t<r;t++)s.push(arguments[t]);return s}Le.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var s=e.next,t=e.prev;return s&&(s.prev=t),t&&(t.next=s),e===this.head&&(this.head=s),e===this.tail&&(this.tail=t),e.list.length--,e.next=null,e.prev=null,e.list=null,s};Le.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var s=this.head;e.list=this,e.next=s,s&&(s.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};Le.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var s=this.tail;e.list=this,e.prev=s,s&&(s.next=e),this.tail=e,this.head||(this.head=e),this.length++}};Le.prototype.push=function(){for(var e=0,s=arguments.length;e<s;e++)KN(this,arguments[e]);return this.length};Le.prototype.unshift=function(){for(var e=0,s=arguments.length;e<s;e++)QN(this,arguments[e]);return this.length};Le.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};Le.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};Le.prototype.forEach=function(e,s){s=s||this;for(var t=this.head,r=0;t!==null;r++)e.call(s,t.value,r,this),t=t.next};Le.prototype.forEachReverse=function(e,s){s=s||this;for(var t=this.tail,r=this.length-1;t!==null;r--)e.call(s,t.value,r,this),t=t.prev};Le.prototype.get=function(e){for(var s=0,t=this.head;t!==null&&s<e;s++)t=t.next;if(s===e&&t!==null)return t.value};Le.prototype.getReverse=function(e){for(var s=0,t=this.tail;t!==null&&s<e;s++)t=t.prev;if(s===e&&t!==null)return t.value};Le.prototype.map=function(e,s){s=s||this;for(var t=new Le,r=this.head;r!==null;)t.push(e.call(s,r.value,this)),r=r.next;return t};Le.prototype.mapReverse=function(e,s){s=s||this;for(var t=new Le,r=this.tail;r!==null;)t.push(e.call(s,r.value,this)),r=r.prev;return t};Le.prototype.reduce=function(e,s){var t,r=this.head;if(arguments.length>1)t=s;else if(this.head)r=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;r!==null;i++)t=e(t,r.value,i),r=r.next;return t};Le.prototype.reduceReverse=function(e,s){var t,r=this.tail;if(arguments.length>1)t=s;else if(this.tail)r=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;r!==null;i--)t=e(t,r.value,i),r=r.prev;return t};Le.prototype.toArray=function(){for(var e=new Array(this.length),s=0,t=this.head;t!==null;s++)e[s]=t.value,t=t.next;return e};Le.prototype.toArrayReverse=function(){for(var e=new Array(this.length),s=0,t=this.tail;t!==null;s++)e[s]=t.value,t=t.prev;return e};Le.prototype.slice=function(e,s){s=s||this.length,s<0&&(s+=this.length),e=e||0,e<0&&(e+=this.length);var t=new Le;if(s<e||s<0)return t;e<0&&(e=0),s>this.length&&(s=this.length);for(var r=0,i=this.head;i!==null&&r<e;r++)i=i.next;for(;i!==null&&r<s;r++,i=i.next)t.push(i.value);return t};Le.prototype.sliceReverse=function(e,s){s=s||this.length,s<0&&(s+=this.length),e=e||0,e<0&&(e+=this.length);var t=new Le;if(s<e||s<0)return t;e<0&&(e=0),s>this.length&&(s=this.length);for(var r=this.length,i=this.tail;i!==null&&r>s;r--)i=i.prev;for(;i!==null&&r>e;r--,i=i.prev)t.push(i.value);return t};Le.prototype.splice=function(e,s,...t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,i=this.head;i!==null&&r<e;r++)i=i.next;for(var n=[],r=0;i&&r<s;r++)n.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var r=0;r<t.length;r++)i=JN(this,i,t[r]);return n};Le.prototype.reverse=function(){for(var e=this.head,s=this.tail,t=e;t!==null;t=t.prev){var r=t.prev;t.prev=t.next,t.next=r}return this.head=s,this.tail=e,this};function JN(e,s,t){var r=s===e.head?new Wr(t,null,s,e):new Wr(t,s,s.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function KN(e,s){e.tail=new Wr(s,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function QN(e,s){e.head=new Wr(s,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Wr(e,s,t,r){if(!(this instanceof Wr))return new Wr(e,s,t,r);this.list=r,this.value=e,s?(s.next=this,this.prev=s):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{XN()(Le)}catch{}const eV=YN,Sr=Symbol("max"),As=Symbol("length"),ai=Symbol("lengthCalculator"),In=Symbol("allowStale"),Or=Symbol("maxAge"),Os=Symbol("dispose"),d_=Symbol("noDisposeOnSet"),nt=Symbol("lruList"),ts=Symbol("cache"),p$=Symbol("updateAgeOnGet"),Dd=()=>1;class tV{constructor(s){if(typeof s=="number"&&(s={max:s}),s||(s={}),s.max&&(typeof s.max!="number"||s.max<0))throw new TypeError("max must be a non-negative number");this[Sr]=s.max||1/0;const t=s.length||Dd;if(this[ai]=typeof t!="function"?Dd:t,this[In]=s.stale||!1,s.maxAge&&typeof s.maxAge!="number")throw new TypeError("maxAge must be a number");this[Or]=s.maxAge||0,this[Os]=s.dispose,this[d_]=s.noDisposeOnSet||!1,this[p$]=s.updateAgeOnGet||!1,this.reset()}set max(s){if(typeof s!="number"||s<0)throw new TypeError("max must be a non-negative number");this[Sr]=s||1/0,bn(this)}get max(){return this[Sr]}set allowStale(s){this[In]=!!s}get allowStale(){return this[In]}set maxAge(s){if(typeof s!="number")throw new TypeError("maxAge must be a non-negative number");this[Or]=s,bn(this)}get maxAge(){return this[Or]}set lengthCalculator(s){typeof s!="function"&&(s=Dd),s!==this[ai]&&(this[ai]=s,this[As]=0,this[nt].forEach(t=>{t.length=this[ai](t.value,t.key),this[As]+=t.length})),bn(this)}get lengthCalculator(){return this[ai]}get length(){return this[As]}get itemCount(){return this[nt].length}rforEach(s,t){t=t||this;for(let r=this[nt].tail;r!==null;){const i=r.prev;m_(this,s,r,t),r=i}}forEach(s,t){t=t||this;for(let r=this[nt].head;r!==null;){const i=r.next;m_(this,s,r,t),r=i}}keys(){return this[nt].toArray().map(s=>s.key)}values(){return this[nt].toArray().map(s=>s.value)}reset(){this[Os]&&this[nt]&&this[nt].length&&this[nt].forEach(s=>this[Os](s.key,s.value)),this[ts]=new Map,this[nt]=new eV,this[As]=0}dump(){return this[nt].map(s=>Hl(this,s)?!1:{k:s.key,v:s.value,e:s.now+(s.maxAge||0)}).toArray().filter(s=>s)}dumpLru(){return this[nt]}set(s,t,r){if(r=r||this[Or],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const i=r?Date.now():0,n=this[ai](t,s);if(this[ts].has(s)){if(n>this[Sr])return vi(this,this[ts].get(s)),!1;const l=this[ts].get(s).value;return this[Os]&&(this[d_]||this[Os](s,l.value)),l.now=i,l.maxAge=r,l.value=t,this[As]+=n-l.length,l.length=n,this.get(s),bn(this),!0}const a=new sV(s,t,n,i,r);return a.length>this[Sr]?(this[Os]&&this[Os](s,t),!1):(this[As]+=a.length,this[nt].unshift(a),this[ts].set(s,this[nt].head),bn(this),!0)}has(s){if(!this[ts].has(s))return!1;const t=this[ts].get(s).value;return!Hl(this,t)}get(s){return Td(this,s,!0)}peek(s){return Td(this,s,!1)}pop(){const s=this[nt].tail;return s?(vi(this,s),s.value):null}del(s){vi(this,this[ts].get(s))}load(s){this.reset();const t=Date.now();for(let r=s.length-1;r>=0;r--){const i=s[r],n=i.e||0;if(n===0)this.set(i.k,i.v);else{const a=n-t;a>0&&this.set(i.k,i.v,a)}}}prune(){this[ts].forEach((s,t)=>Td(this,t,!1))}}const Td=(e,s,t)=>{const r=e[ts].get(s);if(r){const i=r.value;if(Hl(e,i)){if(vi(e,r),!e[In])return}else t&&(e[p$]&&(r.value.now=Date.now()),e[nt].unshiftNode(r));return i.value}},Hl=(e,s)=>{if(!s||!s.maxAge&&!e[Or])return!1;const t=Date.now()-s.now;return s.maxAge?t>s.maxAge:e[Or]&&t>e[Or]},bn=e=>{if(e[As]>e[Sr])for(let s=e[nt].tail;e[As]>e[Sr]&&s!==null;){const t=s.prev;vi(e,s),s=t}},vi=(e,s)=>{if(s){const t=s.value;e[Os]&&e[Os](t.key,t.value),e[As]-=t.length,e[ts].delete(t.key),e[nt].removeNode(s)}};class sV{constructor(s,t,r,i,n){this.key=s,this.value=t,this.length=r,this.now=i,this.maxAge=n||0}}const m_=(e,s,t,r)=>{let i=t.value;Hl(e,i)&&(vi(e,t),e[In]||(i=void 0)),i&&s.call(r,i.value,i.key,e)};var rV=tV,Md,h_;function ms(){if(h_)return Md;h_=1;class e{constructor(G,X){if(X=r(X),G instanceof e)return G.loose===!!X.loose&&G.includePrerelease===!!X.includePrerelease?G:new e(G.raw,X);if(G instanceof i)return this.raw=G.value,this.set=[[G]],this.format(),this;if(this.options=X,this.loose=!!X.loose,this.includePrerelease=!!X.includePrerelease,this.raw=G.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(Y=>this.parseRange(Y.trim())).filter(Y=>Y.length),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const Y=this.set[0];if(this.set=this.set.filter(ee=>!p(ee[0])),this.set.length===0)this.set=[Y];else if(this.set.length>1){for(const ee of this.set)if(ee.length===1&&f(ee[0])){this.set=[ee];break}}}this.format()}format(){return this.range=this.set.map(G=>G.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(G){const Y=((this.options.includePrerelease&&m)|(this.options.loose&&h))+":"+G,ee=t.get(Y);if(ee)return ee;const se=this.options.loose,F=se?o[l.HYPHENRANGELOOSE]:o[l.HYPHENRANGE];G=G.replace(F,Z(this.options.includePrerelease)),n("hyphen replace",G),G=G.replace(o[l.COMPARATORTRIM],c),n("comparator trim",G),G=G.replace(o[l.TILDETRIM],u),n("tilde trim",G),G=G.replace(o[l.CARETTRIM],d),n("caret trim",G);let z=G.split(" ").map(K=>C(K,this.options)).join(" ").split(/\s+/).map(K=>W(K,this.options));se&&(z=z.filter(K=>(n("loose invalid filter",K,this.options),!!K.match(o[l.COMPARATORLOOSE])))),n("range list",z);const w=new Map,A=z.map(K=>new i(K,this.options));for(const K of A){if(p(K))return[K];w.set(K.value,K)}w.size>1&&w.has("")&&w.delete("");const H=[...w.values()];return t.set(Y,H),H}intersects(G,X){if(!(G instanceof e))throw new TypeError("a Range is required");return this.set.some(Y=>b(Y,X)&&G.set.some(ee=>b(ee,X)&&Y.every(se=>ee.every(F=>se.intersects(F,X)))))}test(G){if(!G)return!1;if(typeof G=="string")try{G=new a(G,this.options)}catch{return!1}for(let X=0;X<this.set.length;X++)if(re(this.set[X],G,this.options))return!0;return!1}}Md=e;const s=rV,t=new s({max:1e3}),r=ff,i=Ru(),n=ku,a=St,{safeRe:o,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=qa,{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:h}=Au,p=k=>k.value==="<0.0.0-0",f=k=>k.value==="",b=(k,G)=>{let X=!0;const Y=k.slice();let ee=Y.pop();for(;X&&Y.length;)X=Y.every(se=>ee.intersects(se,G)),ee=Y.pop();return X},C=(k,G)=>(n("comp",k,G),k=R(k,G),n("caret",k),k=L(k,G),n("tildes",k),k=T(k,G),n("xrange",k),k=j(k,G),n("stars",k),k),S=k=>!k||k.toLowerCase()==="x"||k==="*",L=(k,G)=>k.trim().split(/\s+/).map(X=>N(X,G)).join(" "),N=(k,G)=>{const X=G.loose?o[l.TILDELOOSE]:o[l.TILDE];return k.replace(X,(Y,ee,se,F,z)=>{n("tilde",k,Y,ee,se,F,z);let w;return S(ee)?w="":S(se)?w=">=".concat(ee,".0.0 <").concat(+ee+1,".0.0-0"):S(F)?w=">=".concat(ee,".").concat(se,".0 <").concat(ee,".").concat(+se+1,".0-0"):z?(n("replaceTilde pr",z),w=">=".concat(ee,".").concat(se,".").concat(F,"-").concat(z," <").concat(ee,".").concat(+se+1,".0-0")):w=">=".concat(ee,".").concat(se,".").concat(F," <").concat(ee,".").concat(+se+1,".0-0"),n("tilde return",w),w})},R=(k,G)=>k.trim().split(/\s+/).map(X=>x(X,G)).join(" "),x=(k,G)=>{n("caret",k,G);const X=G.loose?o[l.CARETLOOSE]:o[l.CARET],Y=G.includePrerelease?"-0":"";return k.replace(X,(ee,se,F,z,w)=>{n("caret",k,ee,se,F,z,w);let A;return S(se)?A="":S(F)?A=">=".concat(se,".0.0").concat(Y," <").concat(+se+1,".0.0-0"):S(z)?se==="0"?A=">=".concat(se,".").concat(F,".0").concat(Y," <").concat(se,".").concat(+F+1,".0-0"):A=">=".concat(se,".").concat(F,".0").concat(Y," <").concat(+se+1,".0.0-0"):w?(n("replaceCaret pr",w),se==="0"?F==="0"?A=">=".concat(se,".").concat(F,".").concat(z,"-").concat(w," <").concat(se,".").concat(F,".").concat(+z+1,"-0"):A=">=".concat(se,".").concat(F,".").concat(z,"-").concat(w," <").concat(se,".").concat(+F+1,".0-0"):A=">=".concat(se,".").concat(F,".").concat(z,"-").concat(w," <").concat(+se+1,".0.0-0")):(n("no pr"),se==="0"?F==="0"?A=">=".concat(se,".").concat(F,".").concat(z).concat(Y," <").concat(se,".").concat(F,".").concat(+z+1,"-0"):A=">=".concat(se,".").concat(F,".").concat(z).concat(Y," <").concat(se,".").concat(+F+1,".0-0"):A=">=".concat(se,".").concat(F,".").concat(z," <").concat(+se+1,".0.0-0")),n("caret return",A),A})},T=(k,G)=>(n("replaceXRanges",k,G),k.split(/\s+/).map(X=>I(X,G)).join(" ")),I=(k,G)=>{k=k.trim();const X=G.loose?o[l.XRANGELOOSE]:o[l.XRANGE];return k.replace(X,(Y,ee,se,F,z,w)=>{n("xRange",k,Y,ee,se,F,z,w);const A=S(se),H=A||S(F),K=H||S(z),le=K;return ee==="="&&le&&(ee=""),w=G.includePrerelease?"-0":"",A?ee===">"||ee==="<"?Y="<0.0.0-0":Y="*":ee&&le?(H&&(F=0),z=0,ee===">"?(ee=">=",H?(se=+se+1,F=0,z=0):(F=+F+1,z=0)):ee==="<="&&(ee="<",H?se=+se+1:F=+F+1),ee==="<"&&(w="-0"),Y="".concat(ee+se,".").concat(F,".").concat(z).concat(w)):H?Y=">=".concat(se,".0.0").concat(w," <").concat(+se+1,".0.0-0"):K&&(Y=">=".concat(se,".").concat(F,".0").concat(w," <").concat(se,".").concat(+F+1,".0-0")),n("xRange return",Y),Y})},j=(k,G)=>(n("replaceStars",k,G),k.trim().replace(o[l.STAR],"")),W=(k,G)=>(n("replaceGTE0",k,G),k.trim().replace(o[G.includePrerelease?l.GTE0PRE:l.GTE0],"")),Z=k=>(G,X,Y,ee,se,F,z,w,A,H,K,le,he)=>(S(Y)?X="":S(ee)?X=">=".concat(Y,".0.0").concat(k?"-0":""):S(se)?X=">=".concat(Y,".").concat(ee,".0").concat(k?"-0":""):F?X=">=".concat(X):X=">=".concat(X).concat(k?"-0":""),S(A)?w="":S(H)?w="<".concat(+A+1,".0.0-0"):S(K)?w="<".concat(A,".").concat(+H+1,".0-0"):le?w="<=".concat(A,".").concat(H,".").concat(K,"-").concat(le):k?w="<".concat(A,".").concat(H,".").concat(+K+1,"-0"):w="<=".concat(w),"".concat(X," ").concat(w).trim()),re=(k,G,X)=>{for(let Y=0;Y<k.length;Y++)if(!k[Y].test(G))return!1;if(G.prerelease.length&&!X.includePrerelease){for(let Y=0;Y<k.length;Y++)if(n(k[Y].semver),k[Y].semver!==i.ANY&&k[Y].semver.prerelease.length>0){const ee=k[Y].semver;if(ee.major===G.major&&ee.minor===G.minor&&ee.patch===G.patch)return!0}return!1}return!0};return Md}var Ed,p_;function Ru(){if(p_)return Ed;p_=1;const e=Symbol("SemVer ANY");class s{static get ANY(){return e}constructor(u,d){if(d=t(d),u instanceof s){if(u.loose===!!d.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),a("comparator",u,d),this.options=d,this.loose=!!d.loose,this.parse(u),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(u){const d=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],m=u.match(d);if(!m)throw new TypeError("Invalid comparator: ".concat(u));this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new o(m[2],this.options.loose):this.semver=e}toString(){return this.value}test(u){if(a("Comparator.test",u,this.options.loose),this.semver===e||u===e)return!0;if(typeof u=="string")try{u=new o(u,this.options)}catch{return!1}return n(u,this.operator,this.semver,this.options)}intersects(u,d){if(!(u instanceof s))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(u.value,d).test(this.value):u.operator===""?u.value===""?!0:new l(this.value,d).test(u.semver):(d=t(d),d.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||n(this.semver,"<",u.semver,d)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||n(this.semver,">",u.semver,d)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}Ed=s;const t=ff,{safeRe:r,t:i}=qa,n=h$,a=ku,o=St,l=ms();return Ed}const iV=ms(),nV=(e,s,t)=>{try{s=new iV(s,t)}catch{return!1}return s.test(e)};var ju=nV;const aV=ms(),oV=(e,s)=>new aV(e,s).set.map(t=>t.map(r=>r.value).join(" ").trim().split(" "));var lV=oV;const cV=St,uV=ms(),dV=(e,s,t)=>{let r=null,i=null,n=null;try{n=new uV(s,t)}catch{return null}return e.forEach(a=>{n.test(a)&&(!r||i.compare(a)===-1)&&(r=a,i=new cV(r,t))}),r};var mV=dV;const hV=St,pV=ms(),fV=(e,s,t)=>{let r=null,i=null,n=null;try{n=new pV(s,t)}catch{return null}return e.forEach(a=>{n.test(a)&&(!r||i.compare(a)===1)&&(r=a,i=new hV(r,t))}),r};var gV=fV;const Od=St,vV=ms(),f_=Fu,_V=(e,s)=>{e=new vV(e,s);let t=new Od("0.0.0");if(e.test(t)||(t=new Od("0.0.0-0"),e.test(t)))return t;t=null;for(let r=0;r<e.set.length;++r){const i=e.set[r];let n=null;i.forEach(a=>{const o=new Od(a.semver.version);switch(a.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!n||f_(o,n))&&(n=o);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: ".concat(a.operator))}}),n&&(!t||f_(t,n))&&(t=n)}return t&&e.test(t)?t:null};var bV=_V;const yV=ms(),CV=(e,s)=>{try{return new yV(e,s).range||"*"}catch{return null}};var $V=CV;const xV=St,f$=Ru(),{ANY:wV}=f$,SV=ms(),PV=ju,g_=Fu,v_=vf,DV=bf,TV=_f,MV=(e,s,t,r)=>{e=new xV(e,r),s=new SV(s,r);let i,n,a,o,l;switch(t){case">":i=g_,n=DV,a=v_,o=">",l=">=";break;case"<":i=v_,n=TV,a=g_,o="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(PV(e,s,r))return!1;for(let c=0;c<s.set.length;++c){const u=s.set[c];let d=null,m=null;if(u.forEach(h=>{h.semver===wV&&(h=new f$(">=0.0.0")),d=d||h,m=m||h,i(h.semver,d.semver,r)?d=h:a(h.semver,m.semver,r)&&(m=h)}),d.operator===o||d.operator===l||(!m.operator||m.operator===o)&&n(e,m.semver))return!1;if(m.operator===l&&a(e,m.semver))return!1}return!0};var yf=MV;const EV=yf,OV=(e,s,t)=>EV(e,s,">",t);var LV=OV;const AV=yf,kV=(e,s,t)=>AV(e,s,"<",t);var FV=kV;const __=ms(),RV=(e,s,t)=>(e=new __(e,t),s=new __(s,t),e.intersects(s,t));var jV=RV;const HV=ju,IV=ds;var NV=(e,s,t)=>{const r=[];let i=null,n=null;const a=e.sort((u,d)=>IV(u,d,t));for(const u of a)HV(u,s,t)?(n=u,i||(i=u)):(n&&r.push([i,n]),n=null,i=null);i&&r.push([i,null]);const o=[];for(const[u,d]of r)u===d?o.push(u):!d&&u===a[0]?o.push("*"):d?u===a[0]?o.push("<=".concat(d)):o.push("".concat(u," - ").concat(d)):o.push(">=".concat(u));const l=o.join(" || "),c=typeof s.raw=="string"?s.raw:String(s);return l.length<c.length?l:s};const b_=ms(),Cf=Ru(),{ANY:Ld}=Cf,yn=ju,$f=ds,VV=(e,s,t={})=>{if(e===s)return!0;e=new b_(e,t),s=new b_(s,t);let r=!1;e:for(const i of e.set){for(const n of s.set){const a=BV(i,n,t);if(r=r||a!==null,a)continue e}if(r)return!1}return!0},UV=[new Cf(">=0.0.0-0")],y_=[new Cf(">=0.0.0")],BV=(e,s,t)=>{if(e===s)return!0;if(e.length===1&&e[0].semver===Ld){if(s.length===1&&s[0].semver===Ld)return!0;t.includePrerelease?e=UV:e=y_}if(s.length===1&&s[0].semver===Ld){if(t.includePrerelease)return!0;s=y_}const r=new Set;let i,n;for(const h of e)h.operator===">"||h.operator===">="?i=C_(i,h,t):h.operator==="<"||h.operator==="<="?n=$_(n,h,t):r.add(h.semver);if(r.size>1)return null;let a;if(i&&n){if(a=$f(i.semver,n.semver,t),a>0)return null;if(a===0&&(i.operator!==">="||n.operator!=="<="))return null}for(const h of r){if(i&&!yn(h,String(i),t)||n&&!yn(h,String(n),t))return null;for(const p of s)if(!yn(h,String(p),t))return!1;return!0}let o,l,c,u,d=n&&!t.includePrerelease&&n.semver.prerelease.length?n.semver:!1,m=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1;d&&d.prerelease.length===1&&n.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const h of s){if(u=u||h.operator===">"||h.operator===">=",c=c||h.operator==="<"||h.operator==="<=",i){if(m&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===m.major&&h.semver.minor===m.minor&&h.semver.patch===m.patch&&(m=!1),h.operator===">"||h.operator===">="){if(o=C_(i,h,t),o===h&&o!==i)return!1}else if(i.operator===">="&&!yn(i.semver,String(h),t))return!1}if(n){if(d&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===d.major&&h.semver.minor===d.minor&&h.semver.patch===d.patch&&(d=!1),h.operator==="<"||h.operator==="<="){if(l=$_(n,h,t),l===h&&l!==n)return!1}else if(n.operator==="<="&&!yn(n.semver,String(h),t))return!1}if(!h.operator&&(n||i)&&a!==0)return!1}return!(i&&c&&!n&&a!==0||n&&u&&!i&&a!==0||m||d)},C_=(e,s,t)=>{if(!e)return s;const r=$f(e.semver,s.semver,t);return r>0?e:r<0||s.operator===">"&&e.operator===">="?s:e},$_=(e,s,t)=>{if(!e)return s;const r=$f(e.semver,s.semver,t);return r<0?e:r>0||s.operator==="<"&&e.operator==="<="?s:e};var WV=VV;const Ad=qa,x_=Au,GV=St,w_=u$,zV=ln,ZV=zI,qV=XI,XV=JI,YV=QI,JV=sN,KV=nN,QV=lN,eU=dN,tU=ds,sU=fN,rU=_N,iU=gf,nU=$N,aU=SN,oU=Fu,lU=vf,cU=d$,uU=m$,dU=_f,mU=bf,hU=h$,pU=qN,fU=Ru(),gU=ms(),vU=ju,_U=lV,bU=mV,yU=gV,CU=bV,$U=$V,xU=yf,wU=LV,SU=FV,PU=jV,DU=NV,TU=WV;var MU={parse:zV,valid:ZV,clean:qV,inc:XV,diff:YV,major:JV,minor:KV,patch:QV,prerelease:eU,compare:tU,rcompare:sU,compareLoose:rU,compareBuild:iU,sort:nU,rsort:aU,gt:oU,lt:lU,eq:cU,neq:uU,gte:dU,lte:mU,cmp:hU,coerce:pU,Comparator:fU,Range:gU,satisfies:vU,toComparators:_U,maxSatisfying:bU,minSatisfying:yU,minVersion:CU,validRange:$U,outside:xU,gtr:wU,ltr:SU,intersects:PU,simplifyRange:DU,subset:TU,SemVer:GV,re:Ad.re,src:Ad.src,tokens:Ad.t,SEMVER_SPEC_VERSION:x_.SEMVER_SPEC_VERSION,RELEASE_TYPES:x_.RELEASE_TYPES,compareIdentifiers:w_.compareIdentifiers,rcompareIdentifiers:w_.rcompareIdentifiers};const rt=Ji(MU);var EU=Object.defineProperty,OU=Object.getOwnPropertyDescriptor,xf=(e,s,t,r)=>{for(var i=r>1?void 0:r?OU(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&EU(s,t,i),i};let ua=class extends M(O){constructor(){super(...arguments),this.mdiDotsHorizontal=ST,this.showDetails=!1}get title(){return this.commit.subject}get message(){return this.commit.message}get author(){return this.commit.author}get commitFormatDate(){const e=new Date(this.commit.date*1e3);e.setHours(0,0,0,0);const s=new Date;s.setHours(0,0,0,0);const t=Math.floor((s.getTime()-e.getTime())/(1e3*60*60*24));if(t===0){const r=Math.floor((new Date().getTime()-this.commit.date*1e3)/36e5);return this.$t("Machine.UpdatePanel.CommittedHoursAgo",{hours:r})}else return t===1?this.$t("Machine.UpdatePanel.CommittedYesterday"):t<29?this.$t("Machine.UpdatePanel.CommittedDaysAgo",{days:t}):this.$t("Machine.UpdatePanel.CommittedOnDate",{date:e.toLocaleDateString(this.browserLocale,{year:"numeric",month:"short",day:"numeric"})})}get repo_name(){var e,s;return(s=(e=this.repo.repo_name)!=null?e:this.repo.name)!=null?s:""}get commitHref(){return"https://github.com/".concat(this.repo.owner,"/").concat(this.repo_name,"/commit/").concat(this.commit.sha)}get commitShortSha(){return this.commit.sha.substring(0,6)}};xf([P({required:!0})],ua.prototype,"commit",2);xf([P({required:!0})],ua.prototype,"repo",2);ua=xf([D({components:{Panel:B}})],ua);var LU=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("li",{staticClass:"commit px-3 py-2"},[t($,{staticClass:"flex-column flex-sm-row"},[t(_,[t("h4",{staticClass:"subtitle-2 text--white mb-0"},[e._v(" "+e._s(e.title)+" "),t(as,{staticClass:"ml-2 px-2",attrs:{outlined:"",label:"","x-small":""},on:{click:function(r){e.showDetails=!e.showDetails}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiDotsHorizontal))])],1)],1),e.showDetails?t("p",{staticClass:"caption text--secondary mb-2",staticStyle:{"white-space":"pre-line"},domProps:{innerHTML:e._s(e.message)}}):e._e(),t("p",{staticClass:"caption mb-0"},[t("span",{staticClass:"font-weight-bold text-decoration-none white--text"},[e._v(" "+e._s(e.author)+" ")]),t("span",[e._v(e._s(e.commitFormatDate))])])]),t(_,{staticClass:"col-auto pt-0 pt-sm-4"},[t(as,{attrs:{outlined:"",label:"",small:"",href:e.commitHref,target:"_blank"}},[e._v(" "+e._s(e.commitShortSha)+" ")])],1)],1)],1)},AU=[];const S_={};var kU=E(ua,LU,AU,!1,FU,"f0d97490",null,null);function FU(e){for(let s in S_)this[s]=S_[s]}const g$=function(){return kU.exports}();var RU=Object.defineProperty,jU=Object.getOwnPropertyDescriptor,wf=(e,s,t,r)=>{for(var i=r>1?void 0:r?jU(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&RU(s,t,i),i};let da=class extends M(O){get groupedCommitsDate(){return new Date(this.groupedCommits.date).toLocaleDateString(this.browserLocale,{year:"numeric",month:"short",day:"numeric"})}};wf([P({required:!0})],da.prototype,"groupedCommits",2);wf([P({required:!0})],da.prototype,"repo",2);da=wf([D({components:{Panel:B,GitCommitsListDayCommit:g$}})],da);var HU=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(Vn,{staticClass:"git-commit-list-day",attrs:{small:""}},[t($,{staticClass:"pt-0"},[t(_,{staticClass:"pr-12"},[t("h3",{staticClass:"caption"},[e._v(" "+e._s(e.$t("Machine.UpdatePanel.CommitsOnDate",{date:e.groupedCommitsDate}))+" ")]),t("ul",{staticClass:"commits mt-3 pl-0"},e._l(e.groupedCommits.commits,function(r){return t(g$,{key:r.sha,attrs:{commit:r,repo:e.repo}})}),1)])],1)],1)],1)},IU=[];const P_={};var NU=E(da,HU,IU,!1,VU,"0afc8caa",null,null);function VU(e){for(let s in P_)this[s]=P_[s]}const Xa=function(){return NU.exports}();var UU=Object.defineProperty,BU=Object.getOwnPropertyDescriptor,Sf=(e,s,t,r)=>{for(var i=r>1?void 0:r?BU(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&UU(s,t,i),i};let ma=class extends M(O){constructor(){super(...arguments),this.mdiUpdate=Ia,this.mdiCloseThick=pe}get commitsBehind(){var e,s;return(s=(e=this.repo)==null?void 0:e.commits_behind)!=null?s:[]}get groupedCommits(){let e=[],s=null;return this.commitsBehind.forEach(t=>{var n;const r=new Date(((n=s==null?void 0:s.date)!=null?n:0)*1e3),i=new Date(t.date*1e3);(i.getFullYear()!==r.getFullYear()||i.getMonth()!==r.getMonth()||i.getDate()!==r.getDate())&&e.push({date:i,commits:[]}),e[e.length-1].commits.push(t),s=t}),e}get displayFullHistoryWaring(){return this.commitsBehind.length>=30}get lastCommit(){return this.commitsBehind.slice(-1)[0]}get linkToGithub(){var e,s,t,r;return"https://github.com/".concat((e=this.repo)==null?void 0:e.owner,"/").concat((s=this.repo)==null?void 0:s.name,"/commits/").concat((t=this.repo)==null?void 0:t.branch,"/?after=").concat((r=this.lastCommit)==null?void 0:r.sha,"+0")}get overlayScrollbarsStyle(){return this.isMobile?{height:"calc(100vh - 48px)"}:{height:"400px"}}get timelineClassName(){return this.isMobile?["groupedCommits","mobile"]:["groupedCommits"]}closeDialog(){this.$emit("close-dialog")}};Sf([P({required:!0})],ma.prototype,"boolShowDialog",2);Sf([P({required:!0})],ma.prototype,"repo",2);ma=Sf([D({components:{GitCommitsListDay:Xa,Panel:B}})],ma);var WU=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{persistent:"","max-width":800,fullscreen:e.isMobile},model:{value:e.boolShowDialog,callback:function(r){e.boolShowDialog=r},expression:"boolShowDialog"}},[t(B,{attrs:{title:e.$t("Machine.UpdatePanel.Commits"),icon:e.mdiUpdate,"margin-bottom":!1,"card-class":"machine-update-commits-dialog"},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,{staticClass:"py-0 px-0"},[t("overlay-scrollbars",{style:e.overlayScrollbarsStyle,attrs:{options:{overflowBehavior:{x:"hidden"}}}},[t(ly,{class:e.timelineClassName,staticStyle:{"min-height":"100%"},attrs:{"align-top":"",dense:""}},[e._l(e.groupedCommits,function(r){return t(Xa,{key:r.date.getTime(),attrs:{repo:e.repo,"grouped-commits":r}})}),e.displayFullHistoryWaring?t(Vn,{staticClass:"git-commit-list-day git-commit-list-warning",attrs:{small:""}},[t($,{staticClass:"pt-0"},[t(_,{staticClass:"pr-12"},[t(it,{attrs:{dense:"",text:"",type:"info"}},[t("p",[e._v(e._s(e.$t("Machine.UpdatePanel.MoreCommitsInfo")))]),t("div",{staticClass:"text-center mb-3"},[t(g,{attrs:{href:e.linkToGithub,target:"_blank"}},[e._v(" "+e._s(e.$t("Machine.UpdatePanel.LinkToGithub"))+" ")])],1)])],1)],1)],1):e._e()],2)],1)],1)],1)],1)},GU=[];const D_={};var zU=E(ma,WU,GU,!1,ZU,"170941d1",null,null);function ZU(e){for(let s in D_)this[s]=D_[s]}const Pf=function(){return zU.exports}();var qU=Object.defineProperty,XU=Object.getOwnPropertyDescriptor,Df=(e,s,t,r)=>{for(var i=r>1?void 0:r?XU(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&qU(s,t,i),i};let ha=class extends M(O){constructor(){super(...arguments),this.mdiCloseThick=pe,this.mdiAlertCircle=Cy,this.mdiEye=PT,this.mdiOpenInNew=Xy}get name(){var e,s;return(s=(e=this.repo)==null?void 0:e.name)!=null?s:"UNKNOWN"}get formatName(){return jr(this.name)}get configured_type(){var e,s;return(s=(e=this.repo)==null?void 0:e.configured_type)!=null?s:"UNKNOWN"}get description1(){return this.name==="klipper"?this.$t("Machine.UpdatePanel.KlipperUpdateQuestionFirmware"):this.name==="moonraker"?this.$t("Machine.UpdatePanel.MoonrakerUpdateQuestion"):this.configured_type==="web"?this.$t("Machine.UpdatePanel.WebClientUpdateQuestion"):this.$t("Machine.UpdatePanel.GenericUpdateQuestion")}get description2(){return this.name==="klipper"?this.$t("Machine.UpdatePanel.KlipperUpdateQuestionConfig"):null}get repo_name(){var e,s;return(s=(e=this.repo.repo_name)!=null?e:this.repo.name)!=null?s:""}get externalLink(){var e;return this.name==="klipper"?"//www.klipper3d.org/Config_Changes.html":this.name==="moonraker"?"//moonraker.readthedocs.io/en/latest/changelog/":((e=this.repo)==null?void 0:e.configured_type)==="web"?"//github.com/".concat(this.repo.owner,"/").concat(this.repo_name,"/releases/tag/").concat(this.repo.remote_version):"//github.com/".concat(this.repo.owner,"/").concat(this.repo_name)}get externalLinkText(){return["klipper","moonraker"].includes(this.name)?this.$t("Machine.UpdatePanel.ConfigChanges"):this.$t("Machine.UpdatePanel.GitHubPage")}openCommitHistory(){this.$emit("open-commit-history")}};Df([P({required:!0})],ha.prototype,"repo",2);Df([P({required:!1,default:!1})],ha.prototype,"boolTitle",2);ha=Df([D({components:{GitCommitsListDay:Xa,Panel:B}})],ha);var YU=function(){var e,s=this,t=s.$createElement,r=s._self._c||t;return r(it,{attrs:{text:"",dense:"",border:"left",color:"orange",icon:s.mdiAlertCircle}},[s.boolTitle?[r("strong",[s._v(s._s(s.$t("Machine.UpdatePanel.UpdateWarning",{name:s.formatName})))]),r("br")]:s._e(),s.description1?r("p",[s._v(s._s(s.description1))]):s._e(),s.description2?r("p",[s._v(s._s(s.description2))]):s._e(),r("div",{staticClass:"text-center"},[s.configured_type==="git_repo"&&(e=s.repo.commits_behind)!==null&&e!==void 0&&e.length?r(g,{staticClass:"mx-2 mt-3 mt-sm-0",on:{click:s.openCommitHistory}},[r(v,{attrs:{left:"",small:""}},[s._v(s._s(s.mdiEye))]),s._v(" "+s._s(s.$t("Machine.UpdatePanel.CommitHistory"))+" ")],1):s._e(),s.externalLink?r(g,{staticClass:"mx-2 mt-3 mt-sm-0",attrs:{href:s.externalLink,target:"_blank"}},[r(v,{attrs:{left:"",small:""}},[s._v(s._s(s.mdiOpenInNew))]),s._v(" "+s._s(s.externalLinkText)+" ")],1):s._e()],1)],2)},JU=[];const T_={};var KU=E(ha,YU,JU,!1,QU,null,null,null);function QU(e){for(let s in T_)this[s]=T_[s]}const Hu=function(){return KU.exports}();var eB=Object.defineProperty,tB=Object.getOwnPropertyDescriptor,Tf=(e,s,t,r)=>{for(var i=r>1?void 0:r?tB(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&eB(s,t,i),i};let pa=class extends M(O){constructor(){super(...arguments),this.mdiCloseThick=pe,this.mdiProgressQuestion=Qy,this.checkboxUpdateQuestion=!1}doUpdate(){this.$emit("do-update")}openCommitHistory(){this.$emit("open-commit-history")}closeDialog(){this.$emit("close-dialog")}};Tf([P({required:!0})],pa.prototype,"boolShowDialog",2);Tf([P({required:!0})],pa.prototype,"repo",2);pa=Tf([D({components:{GitCommitsListDay:Xa,Panel:B,UpdateHintAlert:Hu}})],pa);var sB=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{persistent:"","max-width":"600"},model:{value:e.boolShowDialog,callback:function(r){e.boolShowDialog=r},expression:"boolShowDialog"}},[t(B,{attrs:{title:e.$t("Machine.UpdatePanel.AreYouSure"),icon:e.mdiProgressQuestion,"margin-bottom":!1,"card-class":"machine-update-hint-dialog"},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t($,[t(_,[t(Hu,{attrs:{repo:e.repo},on:{"open-commit-history":e.openCommitHistory}}),t("div",[t(_e,{attrs:{label:e.$t("Machine.UpdatePanel.IUnderstandTheRisks"),"hide-details":""},model:{value:e.checkboxUpdateQuestion,callback:function(r){e.checkboxUpdateQuestion=r},expression:"checkboxUpdateQuestion"}})],1)],1)],1)],1),t(U),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:e.closeDialog}},[e._v(e._s(e.$t("Machine.UpdatePanel.Abort")))]),t(g,{attrs:{text:"",color:"primary",disabled:!e.checkboxUpdateQuestion},on:{click:e.doUpdate}},[e._v(" "+e._s(e.$t("Machine.UpdatePanel.StartUpdate"))+" ")])],1)],1)],1)},rB=[];const M_={};var iB=E(pa,sB,rB,!1,nB,null,null,null);function nB(e){for(let s in M_)this[s]=M_[s]}const v$=function(){return iB.exports}();var aB=Object.defineProperty,oB=Object.getOwnPropertyDescriptor,_$=(e,s,t,r)=>{for(var i=r>1?void 0:r?oB(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&aB(s,t,i),i};let Il=class extends M(O){constructor(){super(...arguments),this.mdiInformation=kt,this.mdiMenuDown=fr,this.mdiReload=a3,this.mdiCloseCircle=zo,this.mdiUpdate=Ia,this.mdiInformationOutline=Ny,this.boolShowCommitList=!1,this.boolShowUpdateHint=!1,this.toggleAnomalies=!1}get name(){var s;return(s=this.repo.name)!=null?s:"UNKNOWN"}get type(){return this.repo.configured_type}get localVersion(){var t;const s=(t=this.repo.version)!=null?t:"?";return rt.valid(s)?s:null}get remoteVersion(){var t;const s=(t=this.repo.remote_version)!=null?t:"?";return rt.valid(s)?s:null}get branch(){var s;return(s=this.repo.branch)!=null?s:"master"}get remoteAlias(){var s;return(s=this.repo.remote_alias)!=null?s:"origin"}get branchOutput(){return this.remoteAlias!=="origin"?"".concat(this.remoteAlias,"/").concat(this.branch):["master","main"].includes(this.branch)?null:this.branch}get commitsBehind(){var s;return(s=this.repo.commits_behind)!=null?s:[]}get fullVersionString(){var s;return(s=this.repo.full_version_string)!=null?s:null}get versionOutput(){let s=this.branchOutput?"".concat(this.branchOutput,": "):"";if(this.localVersion&&this.remoteVersion&&rt.gt(this.remoteVersion,this.localVersion))return"".concat(s).concat(this.localVersion," > ").concat(this.remoteVersion);if(this.commitsBehind.length){const t=this.$tc("Machine.UpdatePanel.CommitsAvailable",this.commitsBehind.length,{count:this.commitsBehind.length}).toString();return this.localVersion?"".concat(s).concat(this.localVersion," > ").concat(t):"".concat(s).concat(t)}return this.fullVersionString?this.fullVersionString:this.localVersion?this.localVersion:"UNKNOWN"}get configuredType(){var s;return(s=this.repo.configured_type)!=null?s:"git_repo"}get isValid(){var s;return(s=this.repo.is_valid)!=null?s:!0}get isDirty(){var s;return(s=this.repo.is_dirty)!=null?s:!1}get isCorrupt(){var s;return(s=this.repo.corrupt)!=null?s:!1}get debugEnabled(){var s;return(s=this.repo.debug_enabled)!=null?s:!1}get isDetached(){var s;return this.configuredType!=="git_repo"?!1:!this.debugEnabled&&((s=this.repo.detached)!=null?s:!1)}get existsRecoveryUrl(){var t;return((t=this.repo.recovery_url)!=null?t:"?")!=="?"}get btnDisabled(){return["printing","paused"].includes(this.printer_state)?!0:!this.isValid||this.isCorrupt||this.isDirty||this.commitsBehind.length?!1:this.type==="web"?!this.webUpdatable:this.commitsBehind.length===0}get btnIcon(){if(this.isDetached||!this.isValid||this.isCorrupt||this.isDirty)return zo;if(this.type==="web"){if(this.webUpdatable)return Zo;if(this.localVersion===null||this.remoteVersion===null)return Hy}return this.type==="git_repo"&&this.commitsBehind.length?Zo:Py}get btnColor(){return this.isCorrupt||this.isDetached||this.isDirty||!this.isValid?"orange":this.type==="web"&&this.webUpdatable||this.type==="git_repo"&&this.commitsBehind.length?"primary":"green"}get btnText(){if(this.isCorrupt)return this.$t("Machine.UpdatePanel.Corrupt");if(this.isDetached)return this.$t("Machine.UpdatePanel.Detached");if(this.isDirty)return this.$t("Machine.UpdatePanel.Dirty");if(!this.isValid)return this.$t("Machine.UpdatePanel.Invalid");if(this.type==="web"){if(this.webUpdatable)return this.$t("Machine.UpdatePanel.Update");if(this.localVersion===null||this.remoteVersion===null)return this.$t("Machine.UpdatePanel.Unknown")}return this.type==="git_repo"&&this.commitsBehind.length?this.$t("Machine.UpdatePanel.Update"):this.$t("Machine.UpdatePanel.UpToDate")}get anomalies(){var s;return(s=this.repo.anomalies)!=null?s:[]}get warnings(){var s;return(s=this.repo.warnings)!=null?s:[]}get webUpdatable(){return!this.localVersion||!this.remoteVersion?!1:rt.gt(this.remoteVersion,this.localVersion)}get repo_name(){var s,t;return(t=(s=this.repo.repo_name)!=null?s:this.repo.name)!=null?t:""}get webLinkRelease(){return"https://github.com/".concat(this.repo.owner,"/").concat(this.repo_name,"/releases/tag/").concat(this.repo.remote_version)}get hideUpdateWarning(){var s;return(s=this.$store.state.gui.uiSettings.hideUpdateWarnings)!=null?s:!1}clickUpdate(){if(this.hideUpdateWarning){this.doUpdate();return}this.boolShowUpdateHint=!0}doUpdate(){if(["klipper","moonraker"].includes(this.repo.name)){this.$socket.emit("machine.update."+this.repo.name,{});return}this.$socket.emit("machine.update.client",{name:this.repo.name})}doRecovery(s){this.$socket.emit("machine.update.recover",{name:this.repo.name,hard:s})}closeCommitList(){this.boolShowCommitList=!1}closeShowUpdateHint(){this.boolShowUpdateHint=!1}};_$([P({required:!0})],Il.prototype,"repo",2);Il=_$([D({components:{GitCommitsList:Pf,UpdateHint:v$}})],Il);var lB=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t($,{staticClass:"py-2"},[t(_,{staticClass:"pl-6"},[t("strong",[e._v(e._s(e.repo.name))]),t("br"),e.type==="git_repo"&&e.commitsBehind.length?[t("a",{staticClass:"info--text cursor--pointer",on:{click:function(r){e.boolShowCommitList=!0}}},[t(v,{staticClass:"mr-1",attrs:{small:"",color:"info"}},[e._v(e._s(e.mdiUpdate))]),e._v(" "+e._s(e.versionOutput)+" ")],1)]:e.type==="web"&&e.webUpdatable?[t("a",{staticClass:"info--text text-decoration-none",attrs:{href:e.webLinkRelease,target:"_blank"}},[t(v,{staticClass:"mr-1",attrs:{small:"",color:"info"}},[e._v(e._s(e.mdiUpdate))]),e._v(" "+e._s(e.versionOutput)+" ")],1)]:t("span",[e._v(e._s(e.versionOutput))])],2),t(_,{staticClass:"col-auto pr-6 text-right",attrs:{"align-self":"center"}},[e.anomalies.length>0?t(as,{staticClass:"minwidth-0 px-1 mr-2",attrs:{small:"",label:"",outlined:!e.toggleAnomalies,color:"grey"},on:{click:function(r){e.toggleAnomalies=!e.toggleAnomalies}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.toggleAnomalies?e.mdiInformationOutline:e.mdiInformation))])],1):e._e(),e.isValid?t(as,{staticClass:"minwidth-0 px-2 text-uppercase",attrs:{small:"",label:"",outlined:"",color:e.btnColor,disabled:e.btnDisabled},on:{click:e.clickUpdate}},[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(e._s(e.btnIcon))]),e._v(" "+e._s(e.btnText)+" ")],1):[t($e,{attrs:{"offset-y":!0},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(as,e._g(e._b({staticClass:"minwidth-0 px-2 text-uppercase",attrs:{small:"",label:"",outlined:"",color:e.btnColor,disabled:e.btnDisabled}},"v-chip",n,!1),i),[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(e._s(e.btnIcon))]),e._v(" "+e._s(e.btnText)+" "),t(v,{attrs:{small:""}},[e._v(e._s(e.mdiMenuDown))])],1)]}}],null,!1,56479232)},[t(Oe,{staticClass:"py-0",attrs:{dense:""}},[e.isCorrupt?e._e():t(J,{on:{click:function(r){return e.doRecovery(!1)}}},[t(Is,{staticClass:"mr-0 pt-1"},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiReload))])],1),t(vt,[t(Ge,[e._v(e._s(e.$t("Machine.UpdatePanel.SoftRecovery")))])],1)],1),t(J,{attrs:{disabled:!e.existsRecoveryUrl},on:{click:function(r){return e.doRecovery(!0)}}},[t(Is,{staticClass:"mr-0 pt-1"},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiReload))])],1),t(vt,[t(Ge,[e._v(e._s(e.$t("Machine.UpdatePanel.HardRecovery")))])],1)],1)],1)],1)]],2)],1),e.warnings.length?t($,{staticClass:"mt-0"},[t(_,{staticClass:"px-6 pt-0"},e._l(e.warnings,function(r,i){return t(it,{key:"warnings_"+i,attrs:{dense:"",text:"",color:"orange",border:"left",icon:e.mdiCloseCircle}},[t("p",{staticClass:"text--disabled mb-0"},[e._v(e._s(r))])])}),1)],1):e._e(),t($,{directives:[{name:"show",rawName:"v-show",value:e.toggleAnomalies,expression:"toggleAnomalies"}],staticClass:"mt-0"},[t(_,{staticClass:"px-6 pt-0"},e._l(e.anomalies,function(r,i){return t(it,{key:"anomalies_"+i,attrs:{dense:"",text:"",color:"grey",border:"left",icon:e.mdiInformation}},[e._v(" "+e._s(r)+" ")])}),1)],1),e.type==="git_repo"?t(Pf,{attrs:{"bool-show-dialog":e.boolShowCommitList,repo:e.repo},on:{"close-dialog":e.closeCommitList}}):e._e(),t(v$,{attrs:{"bool-show-dialog":e.boolShowUpdateHint,repo:e.repo},on:{"open-commit-history":function(r){e.boolShowCommitList=!0},"do-update":e.doUpdate,"close-dialog":e.closeShowUpdateHint}})],1)},cB=[];const E_={};var uB=E(Il,lB,cB,!1,dB,null,null,null);function dB(e){for(let s in E_)this[s]=E_[s]}const mB=function(){return uB.exports}();var hB=Object.defineProperty,pB=Object.getOwnPropertyDescriptor,fB=(e,s,t,r)=>{for(var i=r>1?void 0:r?pB(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&hB(s,t,i),i};let Ym=class extends M(O){constructor(){super(...arguments),this.mdiInformation=kt,this.boolShowPackageList=!1}get package_count(){var s,t,r;return(r=(t=(s=this.$store.state.server.updateManager)==null?void 0:s.system)==null?void 0:t.package_count)!=null?r:0}get package_list(){var s,t,r;return(r=(t=(s=this.$store.state.server.updateManager)==null?void 0:s.system)==null?void 0:t.package_list)!=null?r:[]}get btnDisabled(){return["printing","paused"].includes(this.printer_state)?!0:this.package_count===0}get btnIcon(){return this.package_count?Zo:Py}get btnColor(){return this.package_count?"primary":"green"}get btnText(){return this.package_count?this.$t("Machine.UpdatePanel.Upgrade"):this.$t("Machine.UpdatePanel.UpToDate")}doUpdate(){this.$socket.emit("machine.update.system",{})}closePackagesList(){this.boolShowPackageList=!1}};Ym=fB([D],Ym);var gB=Object.defineProperty,vB=Object.getOwnPropertyDescriptor,Mf=(e,s,t,r)=>{for(var i=r>1?void 0:r?vB(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&gB(s,t,i),i};let fa=class extends M(O){constructor(){super(...arguments),this.mdiCloseThick=pe,this.mdiPackageVariantClosed=KT}closeDialog(){this.$emit("close-dialog")}};Mf([P({required:!0})],fa.prototype,"boolShowDialog",2);Mf([P({required:!0})],fa.prototype,"packagesList",2);fa=Mf([D({components:{Panel:B}})],fa);var _B=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{persistent:"","max-width":"800"},model:{value:e.boolShowDialog,callback:function(r){e.boolShowDialog=r},expression:"boolShowDialog"}},[t(B,{attrs:{title:e.$t("Machine.UpdatePanel.UpgradeableSystemPackages"),icon:e.mdiPackageVariantClosed,"margin-bottom":!1,"card-class":"machine-update-system-packages-list-dialog"},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t($,[t(_,[t("p",[e._v(e._s(e.$t("Machine.UpdatePanel.ThesePackagesCanBeUpgrade")))]),t("p",{staticClass:"system-packages-list"},[e._v(e._s(e.packagesList.join(", ")))])])],1)],1),t(ne,[t(ae),t(g,{attrs:{text:"",color:"primary"},on:{click:e.closeDialog}},[e._v(e._s(e.$t("Machine.UpdatePanel.Close")))])],1)],1)],1)},bB=[];const O_={};var yB=E(fa,_B,bB,!1,CB,"61fb1dc8",null,null);function CB(e){for(let s in O_)this[s]=O_[s]}const $B=function(){return yB.exports}();var xB=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t($,{staticClass:"py-2"},[t(_,{staticClass:"pl-6"},[t("strong",[e._v(e._s(e.$t("Machine.UpdatePanel.System")))]),t("br"),e.package_count?[t("a",{staticClass:"info--text cursor--pointer",on:{click:function(r){e.boolShowPackageList=!0}}},[t(v,{staticClass:"mr-1",attrs:{small:"",color:"info"}},[e._v(e._s(e.mdiInformation))]),e._v(" "+e._s(e.$t("Machine.UpdatePanel.CountPackagesCanBeUpgraded",{count:e.package_count}))+" ")],1)]:t("span",[e._v(e._s(e.$t("Machine.UpdatePanel.OSPackages")))])],2),t(_,{staticClass:"col-auto pr-6 text-right",attrs:{"align-self":"center"}},[t(as,{staticClass:"minwidth-0 px-2 text-uppercase",attrs:{small:"",label:"",outlined:"",color:e.btnColor,disabled:e.btnDisabled},on:{click:e.doUpdate}},[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(e._s(e.btnIcon))]),e._v(" "+e._s(e.btnText)+" ")],1)],1)],1),t($B,{attrs:{"bool-show-dialog":e.boolShowPackageList,"packages-list":e.package_list},on:{"close-dialog":e.closePackagesList}})],1)},wB=[];const L_={};var SB=E(Ym,xB,wB,!1,PB,null,null,null);function PB(e){for(let s in L_)this[s]=L_[s]}const DB=function(){return SB.exports}();var TB=Object.defineProperty,MB=Object.getOwnPropertyDescriptor,b$=(e,s,t,r)=>{for(var i=r>1?void 0:r?MB(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&TB(s,t,i),i};let Nl=class extends M(O){constructor(){super(...arguments),this.mdiCloseThick=pe,this.mdiProgressQuestion=Qy,this.checkboxUpdateQuestion=!1,this.boolShowCommitHistory=!1,this.showCommitsRepo=null}get modules(){var e;return(e=this.$store.getters["server/updateManager/getUpdateManagerList"])!=null?e:[]}get filteredModules(){return this.modules.filter(e=>{var s,t,r,i,n,a;return!!(e.type==="git"&&((t=(s=e.data)==null?void 0:s.commits_behind)!=null&&t.length)||e.type==="web"&&rt.valid((r=e.data)==null?void 0:r.remote_version)&&rt.valid((i=e.data)==null?void 0:i.version)&&rt.gt((n=e.data)==null?void 0:n.remote_version,(a=e.data)==null?void 0:a.version))})}openCommitHistory(e){this.showCommitsRepo=e,this.boolShowCommitHistory=!0}closeDialog(){this.$emit("close-dialog")}updateAll(){this.$emit("update-all")}};b$([P({required:!0})],Nl.prototype,"boolShowDialog",2);Nl=b$([D({components:{GitCommitsListDay:Xa,Panel:B,UpdateHintAlert:Hu}})],Nl);var EB=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{persistent:"","max-width":"600"},model:{value:e.boolShowDialog,callback:function(r){e.boolShowDialog=r},expression:"boolShowDialog"}},[t(B,{attrs:{title:e.$t("Machine.UpdatePanel.AreYouSure"),icon:e.mdiProgressQuestion,"margin-bottom":!1,"card-class":"machine-update-hint-dialog"},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t($,[t(_,[e._l(e.filteredModules,function(r){return t(Hu,{key:r.name,attrs:{repo:r.data,"bool-title":!0},on:{"open-commit-history":function(i){return e.openCommitHistory(r.data)}}})}),t("div",[t(_e,{attrs:{label:e.$t("Machine.UpdatePanel.IUnderstandTheRisks"),"hide-details":""},model:{value:e.checkboxUpdateQuestion,callback:function(r){e.checkboxUpdateQuestion=r},expression:"checkboxUpdateQuestion"}})],1)],2)],1)],1),t(U),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:e.closeDialog}},[e._v(e._s(e.$t("Machine.UpdatePanel.Abort")))]),t(g,{attrs:{text:"",color:"primary",disabled:!e.checkboxUpdateQuestion},on:{click:e.updateAll}},[e._v(" "+e._s(e.$t("Machine.UpdatePanel.StartUpdate"))+" ")])],1)],1),t(Pf,{attrs:{"bool-show-dialog":e.boolShowCommitHistory,repo:e.showCommitsRepo},on:{"close-dialog":function(r){e.boolShowCommitHistory=!1}}})],1)},OB=[];const A_={};var LB=E(Nl,EB,OB,!1,AB,null,null,null);function AB(e){for(let s in A_)this[s]=A_[s]}const y$=function(){return LB.exports}();var kB=Object.defineProperty,FB=Object.getOwnPropertyDescriptor,RB=(e,s,t,r)=>{for(var i=r>1?void 0:r?FB(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&kB(s,t,i),i};let Jm=class extends M(O){constructor(){super(...arguments),this.mdiProgressUpload=Zo,this.boolShowDialog=!1}get hideUpdateWarning(){var s;return(s=this.$store.state.gui.uiSettings.hideUpdateWarnings)!=null?s:!1}clickUpdate(){if(this.hideUpdateWarning){this.updateAll();return}this.boolShowDialog=!0}updateAll(){this.$socket.emit("machine.update.full",{})}};Jm=RB([D({components:{UpdateHintAll:y$}})],Jm);var jB=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t($,{staticClass:"pt-3"},[t(_,{staticClass:"text-center"},[t(g,{attrs:{text:"",color:"primary",small:"",disabled:["printing","paused"].includes(e.printer_state)},on:{click:e.clickUpdate}},[t(v,{attrs:{left:""}},[e._v(e._s(e.mdiProgressUpload))]),e._v(" "+e._s(e.$t("Machine.UpdatePanel.UpdateAll"))+" ")],1)],1)],1),t(y$,{attrs:{"bool-show-dialog":e.boolShowDialog},on:{"close-dialog":function(r){e.boolShowDialog=!1},"update-all":e.updateAll}})],1)},HB=[];const k_={};var IB=E(Jm,jB,HB,!1,NB,null,null,null);function NB(e){for(let s in k_)this[s]=k_[s]}const VB=function(){return IB.exports}();var UB=Object.defineProperty,BB=Object.getOwnPropertyDescriptor,WB=(e,s,t,r)=>{for(var i=r>1?void 0:r?BB(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&UB(s,t,i),i};let Km=class extends M(O){constructor(){super(...arguments),this.mdiRefresh=tn,this.mdiInformation=kt,this.mdiCloseThick=pe,this.mdiUpdate=Ia}get enableUpdateManager(){return this.$store.state.server.components.includes("update_manager")}get modules(){var e;return(e=this.$store.getters["server/updateManager/getUpdateManagerList"])!=null?e:[]}get existsSystemModul(){return"system"in this.$store.state.server.updateManager}get systemPackagesCount(){var e,s,t;return(t=(s=(e=this.$store.state.server.updateManager)==null?void 0:e.system)==null?void 0:s.package_count)!=null?t:0}get checkInitState(){return this.modules.filter(s=>s.data.remote_version!=="?").length>0}get showUpdateAll(){let e=0;return this.modules.forEach(s=>{var t,r,i,n,a,o;if(s.type==="git"&&((r=(t=s.data)==null?void 0:t.commits_behind)!=null&&r.length)){e++;return}if(s.type==="web"&&rt.valid((i=s.data)==null?void 0:i.remote_version)&&rt.valid((n=s.data)==null?void 0:n.version)&&rt.gt((a=s.data)==null?void 0:a.remote_version,(o=s.data)==null?void 0:o.version)){e++;return}}),this.systemPackagesCount>0&&e++,e>1}btnSync(){this.$socket.emit("machine.update.status",{refresh:!0},{action:"server/updateManager/onUpdateStatus",loading:"loadingBtnSyncUpdateManager"})}};Km=WB([D({components:{Panel:B,UpdatePanelEntry:mB,UpdatePanelEntrySystem:DB,UpdatePanelEntryAll:VB}})],Km);var GB=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.enableUpdateManager?t(B,{attrs:{title:e.$t("Machine.UpdatePanel.UpdateManager"),icon:e.mdiUpdate,"card-class":"machine-update-panel",collapsible:!0},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({attrs:{icon:"",tile:"",color:"primary",ripple:!0,loading:e.loadings.includes("loadingBtnSyncUpdateManager"),disabled:["printing","paused"].includes(e.printer_state)},on:{click:e.btnSync}},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.mdiRefresh))])],1)]}}],null,!1,3363156462)},[t("span",[e._v(e._s(e.$t("Machine.UpdatePanel.CheckForUpdates")))])])]},proxy:!0}],null,!1,150962712)},[t(q,{staticClass:"px-0 py-0 update-manager-list"},[e.checkInitState?[e._l(e.modules,function(r,i){return[i?t(U,{key:"divider_"+r.name,staticClass:"my-0"}):e._e(),t("update-panel-entry",{key:r.name,attrs:{repo:r.data}})]}),e.existsSystemModul?[e.modules.length?t(U,{staticClass:"my-0"}):e._e(),t("update-panel-entry-system")]:e._e(),e.showUpdateAll?[t(U,{staticClass:"mb-0 mt-2 border-top-2"}),t("update-panel-entry-all")]:e._e()]:[t($,{staticClass:"mt-0 mb-0"},[t(_,{staticClass:"px-6"},[t(it,{staticClass:"mb-0",attrs:{text:"",dense:"",type:"info",border:"left"}},[e._v(" "+e._s(e.$t("Machine.UpdatePanel.InitUpdateManager"))+" ")])],1)],1)]],2)],1):e._e()],1)},zB=[];const F_={};var ZB=E(Km,GB,zB,!1,qB,"8e04f428",null,null);function qB(e){for(let s in F_)this[s]=F_[s]}const C$=function(){return ZB.exports}();var XB=Object.defineProperty,YB=Object.getOwnPropertyDescriptor,$$=(e,s,t,r)=>{for(var i=r>1?void 0:r?YB(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&XB(s,t,i),i};let Vl=class extends M(O){constructor(){super(...arguments),this.mdiDownload=Oy}get logfiles(){var s,t;return(t=(s=this.$store.getters["files/getDirectory"]("logs"))==null?void 0:s.childrens)!=null?t:[]}get filename(){return this.name+".log"}get exists(){return["klippy","moonraker"].includes(this.name)?!0:this.logfiles.findIndex(s=>s.filename===this.filename)!==-1}get href(){let s="/server/files/logs/";return["klippy","moonraker"].includes(this.name)&&(s="/server/files/"),this.apiUrl+s+this.filename}get classes(){const s=["col-12","pt-0"];return this.klipperState!=="ready"?(s.push("col-md-6"),s.push("mt-md-3")):s.push("col-md-12"),s}downloadLog(s){s.preventDefault();let t="";"href"in s.target.attributes&&(t=s.target.attributes.href.value),"href"in s.target.parentElement.attributes&&(t=s.target.parentElement.attributes.href.value),window.open(t)}};$$([P({type:String,required:!0})],Vl.prototype,"name",2);Vl=$$([D({components:{Panel:B}})],Vl);var JB=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.exists?t(_,{class:e.classes},[t(g,{staticClass:"primary--text",attrs:{href:e.href,block:""},on:{click:e.downloadLog}},[t(v,{staticClass:"mr-2"},[e._v(e._s(e.mdiDownload))]),e._v(" "+e._s(e.name)+" ")],1)],1):e._e()},KB=[];const R_={};var QB=E(Vl,JB,KB,!1,eW,null,null,null);function eW(e){for(let s in R_)this[s]=R_[s]}const Ef=function(){return QB.exports}();var tW=Object.defineProperty,sW=Object.getOwnPropertyDescriptor,rW=(e,s,t,r)=>{for(var i=r>1?void 0:r?sW(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&tW(s,t,i),i};let Qm=class extends M(O){constructor(){super(...arguments),this.mdiFileDocumentEdit=TT,this.mdiFileSyncOutline=Fy,this.genericLogfiles=XD,this.showRolloverDialog=!1}};Qm=rW([D({components:{LogfilesPanelGenericLog:Ef,Panel:B}})],Qm);var iW=Object.defineProperty,nW=Object.getOwnPropertyDescriptor,Of=(e,s,t,r)=>{for(var i=r>1?void 0:r?nW(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&iW(s,t,i),i};let ga=class extends M(O){constructor(){super(...arguments),this.mdiCloseThick=pe,this.mdiFileSyncOutline=Fy,this.rolloverLogfiles=YD,this.capitalize=jr,this.selectedRolloverLogs=[]}get loadingRolloverLogs(){return this.loadings.filter(e=>e==null?void 0:e.startsWith("rolloverLog_")).length>0}loadingRolloverLogsChanged(e){e&&this.closeDialog()}btnRolloverLogs(){this.selectedRolloverLogs.length!==0&&(this.selectedRolloverLogs.forEach(e=>{this.$socket.emit("server.logs.rollover",{application:e},{loading:"rolloverLog_"+e,action:"files/rolloverLog"})}),this.selectedRolloverLogs=[])}closeDialog(){this.$emit("close-dialog")}};Of([P({type:Boolean,default:!1})],ga.prototype,"show",2);Of([me("loadingRolloverLogs")],ga.prototype,"loadingRolloverLogsChanged",1);ga=Of([D({components:{LogfilesPanelGenericLog:Ef,Panel:B}})],ga);var aW=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{value:e.show,persistent:"",width:"400",fullscreen:e.isMobile}},[t(B,{attrs:{title:e.$t("Machine.LogfilesPanel.Rollover"),"card-class":"machine_rollover_logfiles-dialog",icon:e.mdiFileSyncOutline,"margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t($,[t(_,[t("p",{staticClass:"mb-0"},[e._v(e._s(e.$t("Machine.LogfilesPanel.RolloverDescription")))])])],1),t($,{staticClass:"mt-0"},[t(_,e._l(e.rolloverLogfiles,function(r){return t(_e,{key:r,staticClass:"mt-0",attrs:{label:e.capitalize(r),value:r,"hide-details":""},model:{value:e.selectedRolloverLogs,callback:function(i){e.selectedRolloverLogs=i},expression:"selectedRolloverLogs"}})}),1)],1)],1),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:e.closeDialog}},[e._v(" "+e._s(e.$t("Machine.LogfilesPanel.Cancel"))+" ")]),t(g,{attrs:{color:"primary",text:""},on:{click:e.btnRolloverLogs}},[e._v(" "+e._s(e.$t("Machine.LogfilesPanel.Accept"))+" ")])],1)],1)],1)},oW=[];const j_={};var lW=E(ga,aW,oW,!1,cW,null,null,null);function cW(e){for(let s in j_)this[s]=j_[s]}const uW=function(){return lW.exports}();var dW=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(B,{attrs:{title:e.$t("Machine.LogfilesPanel.Logfiles"),icon:e.mdiFileDocumentEdit,"card-class":"machine-logfiles-panel",collapsible:!0},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({attrs:{icon:"",tile:"",color:"primary",ripple:!0,loading:e.loadings.includes("loadingBtnRolloverLogs"),disabled:["printing","paused"].includes(e.printer_state)},on:{click:function(a){e.showRolloverDialog=!0}}},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.mdiFileSyncOutline))])],1)]}}])},[t("span",[e._v(e._s(e.$t("Machine.LogfilesPanel.Rollover")))])])]},proxy:!0}])},[t(q,{class:"text-center text-lg-left"},[t($,{staticClass:"pt-3"},e._l(e.genericLogfiles,function(r){return t(Ef,{key:r,attrs:{name:r}})}),1)],1)],1),t(uW,{attrs:{show:e.showRolloverDialog},on:{"close-dialog":function(r){e.showRolloverDialog=!1}}})],1)},mW=[];const H_={};var hW=E(Qm,dW,mW,!1,pW,null,null,null);function pW(e){for(let s in H_)this[s]=H_[s]}const x$=function(){return hW.exports}();var fW=Object.defineProperty,gW=Object.getOwnPropertyDescriptor,vW=(e,s,t,r)=>{for(var i=r>1?void 0:r?gW(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&fW(s,t,i),i};let eh=class extends M(O){constructor(){super(...arguments),this.mdiArrowExpandVertical=sT,this.mdiSync=r2,this.sortEndstops={}}get endstops(){var s;const e=(s=this.$store.state.printer.endstops)!=null?s:{};return Object.keys(e).sort().reduce((t,r)=>(t[r]=e[r],t),{})}get existProbe(){return"probe"in this.$store.state.printer.configfile.settings}get probe(){return"probe"in this.$store.state.printer&&"last_query"in this.$store.state.printer.probe?this.$store.state.printer.probe.last_query:!1}syncEndstops(){this.$socket.emit("printer.query_endstops.status",{},{action:"printer/getEndstopStatus",loading:"queryEndstops"}),this.existProbe&&(this.$store.dispatch("server/addEvent",{message:"QUERY_PROBE",type:"command"}),this.$socket.emit("printer.gcode.script",{script:"QUERY_PROBE"}))}};eh=vW([D({components:{Panel:B}})],eh);var _W=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(B,{attrs:{title:e.$t("Machine.EndstopPanel.Endstops"),icon:e.mdiArrowExpandVertical,"card-class":"machine-endstop-panel",collapsible:!0}},[t(q,{staticClass:"pb-0"},[t(Ae,{attrs:{"px-0":"","py-0":""}},[Object.keys(e.endstops).length?[e._l(Object.keys(e.endstops),function(r){return t($,{key:r},[t(_,{staticClass:"py-1"},[t("label",{staticClass:"mt-1 d-inline-block"},[e._v(" "+e._s(e.$t("Machine.EndstopPanel.Endstop"))+" "),t("b",[e._v(e._s(r.toUpperCase()))])]),t(as,{staticClass:"float-right",attrs:{small:"",label:"",color:e.endstops[r]==="open"?"green":"red","text-color":"white"}},[e.endstops[r]==="open"?[e._v(" "+e._s(e.$t("Machine.EndstopPanel.open"))+" ")]:[e._v(" "+e._s(e.$t("Machine.EndstopPanel.TRIGGERED"))+" ")]],2)],1)],1)}),e.existProbe?t($,[t(_,{staticClass:"py-1"},[t("label",{staticClass:"mt-1 d-inline-block"},[e._v("Probe")]),t(as,{staticClass:"float-right",attrs:{small:"",label:"",color:e.probe?"red":"green","text-color":"white"}},[e.probe?[e._v(" "+e._s(e.$t("Machine.EndstopPanel.TRIGGERED"))+" ")]:[e._v(" "+e._s(e.$t("Machine.EndstopPanel.open"))+" ")]],2)],1)],1):e._e()]:[t($,[t(_,[t("p",[e._v(e._s(e.$t("Machine.EndstopPanel.EndstopInfo")))])])],1)]],2)],1),t(ne,{staticClass:"pt-3"},[t(ae),t(g,{attrs:{icon:"",loading:e.loadings.includes("queryEndstops")},on:{click:e.syncEndstops}},[t(v,[e._v(e._s(e.mdiSync))])],1)],1)],1)},bW=[];const I_={};var yW=E(eh,_W,bW,!1,CW,null,null,null);function CW(e){for(let s in I_)this[s]=I_[s]}const w$=function(){return yW.exports}();function S$(e,s){return function(){return e.apply(s,arguments)}}const{toString:$W}=Object.prototype,{getPrototypeOf:Lf}=Object,Iu=(e=>s=>{const t=$W.call(s);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ts=e=>(e=e.toLowerCase(),s=>Iu(s)===e),Nu=e=>s=>typeof s===e,{isArray:cn}=Array,va=Nu("undefined");function xW(e){return e!==null&&!va(e)&&e.constructor!==null&&!va(e.constructor)&&zt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const P$=Ts("ArrayBuffer");function wW(e){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(e):s=e&&e.buffer&&P$(e.buffer),s}const SW=Nu("string"),zt=Nu("function"),D$=Nu("number"),Vu=e=>e!==null&&typeof e=="object",PW=e=>e===!0||e===!1,Eo=e=>{if(Iu(e)!=="object")return!1;const s=Lf(e);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},DW=Ts("Date"),TW=Ts("File"),MW=Ts("Blob"),EW=Ts("FileList"),OW=e=>Vu(e)&&zt(e.pipe),LW=e=>{let s;return e&&(typeof FormData=="function"&&e instanceof FormData||zt(e.append)&&((s=Iu(e))==="formdata"||s==="object"&&zt(e.toString)&&e.toString()==="[object FormData]"))},AW=Ts("URLSearchParams"),kW=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ya(e,s,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),cn(e))for(r=0,i=e.length;r<i;r++)s.call(null,e[r],r,e);else{const n=t?Object.getOwnPropertyNames(e):Object.keys(e),a=n.length;let o;for(r=0;r<a;r++)o=n[r],s.call(null,e[o],o,e)}}function T$(e,s){s=s.toLowerCase();const t=Object.keys(e);let r=t.length,i;for(;r-- >0;)if(i=t[r],s===i.toLowerCase())return i;return null}const M$=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),E$=e=>!va(e)&&e!==M$;function th(){const{caseless:e}=E$(this)&&this||{},s={},t=(r,i)=>{const n=e&&T$(s,i)||i;Eo(s[n])&&Eo(r)?s[n]=th(s[n],r):Eo(r)?s[n]=th({},r):cn(r)?s[n]=r.slice():s[n]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Ya(arguments[r],t);return s}const FW=(e,s,t,{allOwnKeys:r}={})=>(Ya(s,(i,n)=>{t&&zt(i)?e[n]=S$(i,t):e[n]=i},{allOwnKeys:r}),e),RW=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jW=(e,s,t,r)=>{e.prototype=Object.create(s.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:s.prototype}),t&&Object.assign(e.prototype,t)},HW=(e,s,t,r)=>{let i,n,a;const o={};if(s=s||{},e==null)return s;do{for(i=Object.getOwnPropertyNames(e),n=i.length;n-- >0;)a=i[n],(!r||r(a,e,s))&&!o[a]&&(s[a]=e[a],o[a]=!0);e=t!==!1&&Lf(e)}while(e&&(!t||t(e,s))&&e!==Object.prototype);return s},IW=(e,s,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=s.length;const r=e.indexOf(s,t);return r!==-1&&r===t},NW=e=>{if(!e)return null;if(cn(e))return e;let s=e.length;if(!D$(s))return null;const t=new Array(s);for(;s-- >0;)t[s]=e[s];return t},VW=(e=>s=>e&&s instanceof e)(typeof Uint8Array<"u"&&Lf(Uint8Array)),UW=(e,s)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const n=i.value;s.call(e,n[0],n[1])}},BW=(e,s)=>{let t;const r=[];for(;(t=e.exec(s))!==null;)r.push(t);return r},WW=Ts("HTMLFormElement"),GW=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,i){return r.toUpperCase()+i}),N_=(({hasOwnProperty:e})=>(s,t)=>e.call(s,t))(Object.prototype),zW=Ts("RegExp"),O$=(e,s)=>{const t=Object.getOwnPropertyDescriptors(e),r={};Ya(t,(i,n)=>{let a;(a=s(i,n,e))!==!1&&(r[n]=a||i)}),Object.defineProperties(e,r)},ZW=e=>{O$(e,(s,t)=>{if(zt(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=e[t];if(zt(r)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},qW=(e,s)=>{const t={},r=i=>{i.forEach(n=>{t[n]=!0})};return cn(e)?r(e):r(String(e).split(s)),t},XW=()=>{},YW=(e,s)=>(e=+e,Number.isFinite(e)?e:s),kd="abcdefghijklmnopqrstuvwxyz",V_="0123456789",L$={DIGIT:V_,ALPHA:kd,ALPHA_DIGIT:kd+kd.toUpperCase()+V_},JW=(e=16,s=L$.ALPHA_DIGIT)=>{let t="";const{length:r}=s;for(;e--;)t+=s[Math.random()*r|0];return t};function KW(e){return!!(e&&zt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const QW=e=>{const s=new Array(10),t=(r,i)=>{if(Vu(r)){if(s.indexOf(r)>=0)return;if(!("toJSON"in r)){s[i]=r;const n=cn(r)?[]:{};return Ya(r,(a,o)=>{const l=t(a,i+1);!va(l)&&(n[o]=l)}),s[i]=void 0,n}}return r};return t(e,0)},eG=Ts("AsyncFunction"),tG=e=>e&&(Vu(e)||zt(e))&&zt(e.then)&&zt(e.catch),Q={isArray:cn,isArrayBuffer:P$,isBuffer:xW,isFormData:LW,isArrayBufferView:wW,isString:SW,isNumber:D$,isBoolean:PW,isObject:Vu,isPlainObject:Eo,isUndefined:va,isDate:DW,isFile:TW,isBlob:MW,isRegExp:zW,isFunction:zt,isStream:OW,isURLSearchParams:AW,isTypedArray:VW,isFileList:EW,forEach:Ya,merge:th,extend:FW,trim:kW,stripBOM:RW,inherits:jW,toFlatObject:HW,kindOf:Iu,kindOfTest:Ts,endsWith:IW,toArray:NW,forEachEntry:UW,matchAll:BW,isHTMLForm:WW,hasOwnProperty:N_,hasOwnProp:N_,reduceDescriptors:O$,freezeMethods:ZW,toObjectSet:qW,toCamelCase:GW,noop:XW,toFiniteNumber:YW,findKey:T$,global:M$,isContextDefined:E$,ALPHABET:L$,generateString:JW,isSpecCompliantForm:KW,toJSONObject:QW,isAsyncFn:eG,isThenable:tG};function Me(e,s,t,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",s&&(this.code=s),t&&(this.config=t),r&&(this.request=r),i&&(this.response=i)}Q.inherits(Me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const A$=Me.prototype,k$={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{k$[e]={value:e}});Object.defineProperties(Me,k$);Object.defineProperty(A$,"isAxiosError",{value:!0});Me.from=(e,s,t,r,i,n)=>{const a=Object.create(A$);return Q.toFlatObject(e,a,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),Me.call(a,e.message,s,t,r,i),a.cause=e,a.name=e.name,n&&Object.assign(a,n),a};const sG=null;function sh(e){return Q.isPlainObject(e)||Q.isArray(e)}function F$(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function U_(e,s,t){return e?e.concat(s).map(function(i,n){return i=F$(i),!t&&n?"["+i+"]":i}).join(t?".":""):s}function rG(e){return Q.isArray(e)&&!e.some(sh)}const iG=Q.toFlatObject(Q,{},null,function(s){return/^is[A-Z]/.test(s)});function Uu(e,s,t){if(!Q.isObject(e))throw new TypeError("target must be an object");s=s||new FormData,t=Q.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,b){return!Q.isUndefined(b[f])});const r=t.metaTokens,i=t.visitor||u,n=t.dots,a=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(s);if(!Q.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(Q.isDate(p))return p.toISOString();if(!l&&Q.isBlob(p))throw new Me("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(p)||Q.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,f,b){let C=p;if(p&&!b&&typeof p=="object"){if(Q.endsWith(f,"{}"))f=r?f:f.slice(0,-2),p=JSON.stringify(p);else if(Q.isArray(p)&&rG(p)||(Q.isFileList(p)||Q.endsWith(f,"[]"))&&(C=Q.toArray(p)))return f=F$(f),C.forEach(function(L,N){!(Q.isUndefined(L)||L===null)&&s.append(a===!0?U_([f],N,n):a===null?f:f+"[]",c(L))}),!1}return sh(p)?!0:(s.append(U_(b,f,n),c(p)),!1)}const d=[],m=Object.assign(iG,{defaultVisitor:u,convertValue:c,isVisitable:sh});function h(p,f){if(!Q.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(p),Q.forEach(p,function(C,S){(!(Q.isUndefined(C)||C===null)&&i.call(s,C,Q.isString(S)?S.trim():S,f,m))===!0&&h(C,f?f.concat(S):[S])}),d.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return h(e),s}function B_(e){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return s[r]})}function Af(e,s){this._pairs=[],e&&Uu(e,this,s)}const R$=Af.prototype;R$.append=function(s,t){this._pairs.push([s,t])};R$.toString=function(s){const t=s?function(r){return s.call(this,r,B_)}:B_;return this._pairs.map(function(i){return t(i[0])+"="+t(i[1])},"").join("&")};function nG(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function j$(e,s,t){if(!s)return e;const r=t&&t.encode||nG,i=t&&t.serialize;let n;if(i?n=i(s,t):n=Q.isURLSearchParams(s)?s.toString():new Af(s,t).toString(r),n){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}class aG{constructor(){this.handlers=[]}use(s,t,r){return this.handlers.push({fulfilled:s,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){Q.forEach(this.handlers,function(r){r!==null&&s(r)})}}const W_=aG,H$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oG=typeof URLSearchParams<"u"?URLSearchParams:Af,lG=typeof FormData<"u"?FormData:null,cG=typeof Blob<"u"?Blob:null,uG={isBrowser:!0,classes:{URLSearchParams:oG,FormData:lG,Blob:cG},protocols:["http","https","file","blob","url","data"]},I$=typeof window<"u"&&typeof document<"u",dG=(e=>I$&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),mG=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),hG=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:I$,hasStandardBrowserEnv:dG,hasStandardBrowserWebWorkerEnv:mG},Symbol.toStringTag,{value:"Module"})),Cs={...hG,...uG};function pG(e,s){return Uu(e,new Cs.classes.URLSearchParams,Object.assign({visitor:function(t,r,i,n){return Cs.isNode&&Q.isBuffer(t)?(this.append(r,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},s))}function fG(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(s=>s[0]==="[]"?"":s[1]||s[0])}function gG(e){const s={},t=Object.keys(e);let r;const i=t.length;let n;for(r=0;r<i;r++)n=t[r],s[n]=e[n];return s}function N$(e){function s(t,r,i,n){let a=t[n++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),l=n>=t.length;return a=!a&&Q.isArray(i)?i.length:a,l?(Q.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!o):((!i[a]||!Q.isObject(i[a]))&&(i[a]=[]),s(t,r,i[a],n)&&Q.isArray(i[a])&&(i[a]=gG(i[a])),!o)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const t={};return Q.forEachEntry(e,(r,i)=>{s(fG(r),i,t,0)}),t}return null}function vG(e,s,t){if(Q.isString(e))try{return(s||JSON.parse)(e),Q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(e)}const kf={transitional:H$,adapter:["xhr","http"],transformRequest:[function(s,t){const r=t.getContentType()||"",i=r.indexOf("application/json")>-1,n=Q.isObject(s);if(n&&Q.isHTMLForm(s)&&(s=new FormData(s)),Q.isFormData(s))return i?JSON.stringify(N$(s)):s;if(Q.isArrayBuffer(s)||Q.isBuffer(s)||Q.isStream(s)||Q.isFile(s)||Q.isBlob(s))return s;if(Q.isArrayBufferView(s))return s.buffer;if(Q.isURLSearchParams(s))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),s.toString();let o;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pG(s,this.formSerializer).toString();if((o=Q.isFileList(s))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Uu(o?{"files[]":s}:s,l&&new l,this.formSerializer)}}return n||i?(t.setContentType("application/json",!1),vG(s)):s}],transformResponse:[function(s){const t=this.transitional||kf.transitional,r=t&&t.forcedJSONParsing,i=this.responseType==="json";if(s&&Q.isString(s)&&(r&&!this.responseType||i)){const a=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(s)}catch(o){if(a)throw o.name==="SyntaxError"?Me.from(o,Me.ERR_BAD_RESPONSE,this,null,this.response):o}}return s}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Cs.classes.FormData,Blob:Cs.classes.Blob},validateStatus:function(s){return s>=200&&s<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{kf.headers[e]={}});const Ff=kf,_G=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bG=e=>{const s={};let t,r,i;return e&&e.split("\n").forEach(function(a){i=a.indexOf(":"),t=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!t||s[t]&&_G[t])&&(t==="set-cookie"?s[t]?s[t].push(r):s[t]=[r]:s[t]=s[t]?s[t]+", "+r:r)}),s},G_=Symbol("internals");function Cn(e){return e&&String(e).trim().toLowerCase()}function Oo(e){return e===!1||e==null?e:Q.isArray(e)?e.map(Oo):String(e)}function yG(e){const s=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(e);)s[r[1]]=r[2];return s}const CG=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fd(e,s,t,r,i){if(Q.isFunction(r))return r.call(this,s,t);if(i&&(s=t),!!Q.isString(s)){if(Q.isString(r))return s.indexOf(r)!==-1;if(Q.isRegExp(r))return r.test(s)}}function $G(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,t,r)=>t.toUpperCase()+r)}function xG(e,s){const t=Q.toCamelCase(" "+s);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+t,{value:function(i,n,a){return this[r].call(this,s,i,n,a)},configurable:!0})})}class Bu{constructor(s){s&&this.set(s)}set(s,t,r){const i=this;function n(o,l,c){const u=Cn(l);if(!u)throw new Error("header name must be a non-empty string");const d=Q.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=Oo(o))}const a=(o,l)=>Q.forEach(o,(c,u)=>n(c,u,l));return Q.isPlainObject(s)||s instanceof this.constructor?a(s,t):Q.isString(s)&&(s=s.trim())&&!CG(s)?a(bG(s),t):s!=null&&n(t,s,r),this}get(s,t){if(s=Cn(s),s){const r=Q.findKey(this,s);if(r){const i=this[r];if(!t)return i;if(t===!0)return yG(i);if(Q.isFunction(t))return t.call(this,i,r);if(Q.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,t){if(s=Cn(s),s){const r=Q.findKey(this,s);return!!(r&&this[r]!==void 0&&(!t||Fd(this,this[r],r,t)))}return!1}delete(s,t){const r=this;let i=!1;function n(a){if(a=Cn(a),a){const o=Q.findKey(r,a);o&&(!t||Fd(r,r[o],o,t))&&(delete r[o],i=!0)}}return Q.isArray(s)?s.forEach(n):n(s),i}clear(s){const t=Object.keys(this);let r=t.length,i=!1;for(;r--;){const n=t[r];(!s||Fd(this,this[n],n,s,!0))&&(delete this[n],i=!0)}return i}normalize(s){const t=this,r={};return Q.forEach(this,(i,n)=>{const a=Q.findKey(r,n);if(a){t[a]=Oo(i),delete t[n];return}const o=s?$G(n):String(n).trim();o!==n&&delete t[n],t[o]=Oo(i),r[o]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const t=Object.create(null);return Q.forEach(this,(r,i)=>{r!=null&&r!==!1&&(t[i]=s&&Q.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,t])=>s+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...t){const r=new this(s);return t.forEach(i=>r.set(i)),r}static accessor(s){const r=(this[G_]=this[G_]={accessors:{}}).accessors,i=this.prototype;function n(a){const o=Cn(a);r[o]||(xG(i,a),r[o]=!0)}return Q.isArray(s)?s.forEach(n):n(s),this}}Bu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Q.reduceDescriptors(Bu.prototype,({value:e},s)=>{let t=s[0].toUpperCase()+s.slice(1);return{get:()=>e,set(r){this[t]=r}}});Q.freezeMethods(Bu);const Rs=Bu;function Rd(e,s){const t=this||Ff,r=s||t,i=Rs.from(r.headers);let n=r.data;return Q.forEach(e,function(o){n=o.call(t,n,i.normalize(),s?s.status:void 0)}),i.normalize(),n}function V$(e){return!!(e&&e.__CANCEL__)}function Ja(e,s,t){Me.call(this,e==null?"canceled":e,Me.ERR_CANCELED,s,t),this.name="CanceledError"}Q.inherits(Ja,Me,{__CANCEL__:!0});function wG(e,s,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?e(t):s(new Me("Request failed with status code "+t.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const SG=Cs.hasStandardBrowserEnv?{write(e,s,t,r,i,n){const a=[e+"="+encodeURIComponent(s)];Q.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),Q.isString(r)&&a.push("path="+r),Q.isString(i)&&a.push("domain="+i),n===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const s=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function PG(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function DG(e,s){return s?e.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):e}function U$(e,s){return e&&!PG(s)?DG(e,s):s}const TG=Cs.hasStandardBrowserEnv?function(){const s=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function i(n){let a=n;return s&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return r=i(window.location.href),function(a){const o=Q.isString(a)?i(a):a;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}();function MG(e){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return s&&s[1]||""}function EG(e,s){e=e||10;const t=new Array(e),r=new Array(e);let i=0,n=0,a;return s=s!==void 0?s:1e3,function(l){const c=Date.now(),u=r[n];a||(a=c),t[i]=l,r[i]=c;let d=n,m=0;for(;d!==i;)m+=t[d++],d=d%e;if(i=(i+1)%e,i===n&&(n=(n+1)%e),c-a<s)return;const h=u&&c-u;return h?Math.round(m*1e3/h):void 0}}function z_(e,s){let t=0;const r=EG(50,250);return i=>{const n=i.loaded,a=i.lengthComputable?i.total:void 0,o=n-t,l=r(o),c=n<=a;t=n;const u={loaded:n,total:a,progress:a?n/a:void 0,bytes:o,rate:l||void 0,estimated:l&&a&&c?(a-n)/l:void 0,event:i};u[s?"download":"upload"]=!0,e(u)}}const OG=typeof XMLHttpRequest<"u",LG=OG&&function(e){return new Promise(function(t,r){let i=e.data;const n=Rs.from(e.headers).normalize();let{responseType:a,withXSRFToken:o}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let u;if(Q.isFormData(i)){if(Cs.hasStandardBrowserEnv||Cs.hasStandardBrowserWebWorkerEnv)n.setContentType(!1);else if((u=n.getContentType())!==!1){const[f,...b]=u?u.split(";").map(C=>C.trim()).filter(Boolean):[];n.setContentType([f||"multipart/form-data",...b].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const f=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";n.set("Authorization","Basic "+btoa(f+":"+b))}const m=U$(e.baseURL,e.url);d.open(e.method.toUpperCase(),j$(m,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function h(){if(!d)return;const f=Rs.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),C={data:!a||a==="text"||a==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:f,config:e,request:d};wG(function(L){t(L),c()},function(L){r(L),c()},C),d=null}if("onloadend"in d?d.onloadend=h:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(h)},d.onabort=function(){d&&(r(new Me("Request aborted",Me.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new Me("Network Error",Me.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const C=e.transitional||H$;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new Me(b,C.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,e,d)),d=null},Cs.hasStandardBrowserEnv&&(o&&Q.isFunction(o)&&(o=o(e)),o||o!==!1&&TG(m))){const f=e.xsrfHeaderName&&e.xsrfCookieName&&SG.read(e.xsrfCookieName);f&&n.set(e.xsrfHeaderName,f)}i===void 0&&n.setContentType(null),"setRequestHeader"in d&&Q.forEach(n.toJSON(),function(b,C){d.setRequestHeader(C,b)}),Q.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),a&&a!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",z_(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",z_(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=f=>{d&&(r(!f||f.type?new Ja(null,e,d):f),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const p=MG(m);if(p&&Cs.protocols.indexOf(p)===-1){r(new Me("Unsupported protocol "+p+":",Me.ERR_BAD_REQUEST,e));return}d.send(i||null)})},rh={http:sG,xhr:LG};Q.forEach(rh,(e,s)=>{if(e){try{Object.defineProperty(e,"name",{value:s})}catch{}Object.defineProperty(e,"adapterName",{value:s})}});const Z_=e=>"- ".concat(e),AG=e=>Q.isFunction(e)||e===null||e===!1,B$={getAdapter:e=>{e=Q.isArray(e)?e:[e];const{length:s}=e;let t,r;const i={};for(let n=0;n<s;n++){t=e[n];let a;if(r=t,!AG(t)&&(r=rh[(a=String(t)).toLowerCase()],r===void 0))throw new Me("Unknown adapter '".concat(a,"'"));if(r)break;i[a||"#"+n]=r}if(!r){const n=Object.entries(i).map(([o,l])=>"adapter ".concat(o," ")+(l===!1?"is not supported by the environment":"is not available in the build"));let a=s?n.length>1?"since :\n"+n.map(Z_).join("\n"):" "+Z_(n[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:rh};function jd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ja(null,e)}function q_(e){return jd(e),e.headers=Rs.from(e.headers),e.data=Rd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),B$.getAdapter(e.adapter||Ff.adapter)(e).then(function(r){return jd(e),r.data=Rd.call(e,e.transformResponse,r),r.headers=Rs.from(r.headers),r},function(r){return V$(r)||(jd(e),r&&r.response&&(r.response.data=Rd.call(e,e.transformResponse,r.response),r.response.headers=Rs.from(r.response.headers))),Promise.reject(r)})}const X_=e=>e instanceof Rs?{...e}:e;function Vi(e,s){s=s||{};const t={};function r(c,u,d){return Q.isPlainObject(c)&&Q.isPlainObject(u)?Q.merge.call({caseless:d},c,u):Q.isPlainObject(u)?Q.merge({},u):Q.isArray(u)?u.slice():u}function i(c,u,d){if(Q.isUndefined(u)){if(!Q.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function n(c,u){if(!Q.isUndefined(u))return r(void 0,u)}function a(c,u){if(Q.isUndefined(u)){if(!Q.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function o(c,u,d){if(d in s)return r(c,u);if(d in e)return r(void 0,c)}const l={url:n,method:n,data:n,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(c,u)=>i(X_(c),X_(u),!0)};return Q.forEach(Object.keys(Object.assign({},e,s)),function(u){const d=l[u]||i,m=d(e[u],s[u],u);Q.isUndefined(m)&&d!==o||(t[u]=m)}),t}const W$="1.6.8",Rf={};["object","boolean","number","function","string","symbol"].forEach((e,s)=>{Rf[e]=function(r){return typeof r===e||"a"+(s<1?"n ":" ")+e}});const Y_={};Rf.transitional=function(s,t,r){function i(n,a){return"[Axios v"+W$+"] Transitional option '"+n+"'"+a+(r?". "+r:"")}return(n,a,o)=>{if(s===!1)throw new Me(i(a," has been removed"+(t?" in "+t:"")),Me.ERR_DEPRECATED);return t&&!Y_[a]&&(Y_[a]=!0,console.warn(i(a," has been deprecated since v"+t+" and will be removed in the near future"))),s?s(n,a,o):!0}};function kG(e,s,t){if(typeof e!="object")throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const n=r[i],a=s[n];if(a){const o=e[n],l=o===void 0||a(o,n,e);if(l!==!0)throw new Me("option "+n+" must be "+l,Me.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Me("Unknown option "+n,Me.ERR_BAD_OPTION)}}const ih={assertOptions:kG,validators:Rf},Xs=ih.validators;class Ul{constructor(s){this.defaults=s,this.interceptors={request:new W_,response:new W_}}async request(s,t){try{return await this._request(s,t)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const n=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?n&&!String(r.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+n):r.stack=n}throw r}}_request(s,t){typeof s=="string"?(t=t||{},t.url=s):t=s||{},t=Vi(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:n}=t;r!==void 0&&ih.assertOptions(r,{silentJSONParsing:Xs.transitional(Xs.boolean),forcedJSONParsing:Xs.transitional(Xs.boolean),clarifyTimeoutError:Xs.transitional(Xs.boolean)},!1),i!=null&&(Q.isFunction(i)?t.paramsSerializer={serialize:i}:ih.assertOptions(i,{encode:Xs.function,serialize:Xs.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=n&&Q.merge(n.common,n[t.method]);n&&Q.forEach(["delete","get","head","post","put","patch","common"],p=>{delete n[p]}),t.headers=Rs.concat(a,n);const o=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(t)===!1||(l=l&&f.synchronous,o.unshift(f.fulfilled,f.rejected))});const c=[];this.interceptors.response.forEach(function(f){c.push(f.fulfilled,f.rejected)});let u,d=0,m;if(!l){const p=[q_.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,c),m=p.length,u=Promise.resolve(t);d<m;)u=u.then(p[d++],p[d++]);return u}m=o.length;let h=t;for(d=0;d<m;){const p=o[d++],f=o[d++];try{h=p(h)}catch(b){f.call(this,b);break}}try{u=q_.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,m=c.length;d<m;)u=u.then(c[d++],c[d++]);return u}getUri(s){s=Vi(this.defaults,s);const t=U$(s.baseURL,s.url);return j$(t,s.params,s.paramsSerializer)}}Q.forEach(["delete","get","head","options"],function(s){Ul.prototype[s]=function(t,r){return this.request(Vi(r||{},{method:s,url:t,data:(r||{}).data}))}});Q.forEach(["post","put","patch"],function(s){function t(r){return function(n,a,o){return this.request(Vi(o||{},{method:s,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}Ul.prototype[s]=t(),Ul.prototype[s+"Form"]=t(!0)});const Lo=Ul;class jf{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(n){t=n});const r=this;this.promise.then(i=>{if(!r._listeners)return;let n=r._listeners.length;for(;n-- >0;)r._listeners[n](i);r._listeners=null}),this.promise.then=i=>{let n;const a=new Promise(o=>{r.subscribe(o),n=o}).then(i);return a.cancel=function(){r.unsubscribe(n)},a},s(function(n,a,o){r.reason||(r.reason=new Ja(n,a,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const t=this._listeners.indexOf(s);t!==-1&&this._listeners.splice(t,1)}static source(){let s;return{token:new jf(function(i){s=i}),cancel:s}}}const FG=jf;function RG(e){return function(t){return e.apply(null,t)}}function jG(e){return Q.isObject(e)&&e.isAxiosError===!0}const nh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(nh).forEach(([e,s])=>{nh[s]=e});const HG=nh;function G$(e){const s=new Lo(e),t=S$(Lo.prototype.request,s);return Q.extend(t,Lo.prototype,s,{allOwnKeys:!0}),Q.extend(t,s,null,{allOwnKeys:!0}),t.create=function(i){return G$(Vi(e,i))},t}const Qe=G$(Ff);Qe.Axios=Lo;Qe.CanceledError=Ja;Qe.CancelToken=FG;Qe.isCancel=V$;Qe.VERSION=W$;Qe.toFormData=Uu;Qe.AxiosError=Me;Qe.Cancel=Qe.CanceledError;Qe.all=function(s){return Promise.all(s)};Qe.spread=RG;Qe.isAxiosError=jG;Qe.mergeConfig=Vi;Qe.AxiosHeaders=Rs;Qe.formToJSON=e=>N$(Q.isHTMLForm(e)?new FormData(e):e);Qe.getAdapter=B$.getAdapter;Qe.HttpStatusCode=HG;Qe.default=Qe;const ks=Qe;var IG=Object.defineProperty,NG=Object.getOwnPropertyDescriptor,VG=(e,s,t,r)=>{for(var i=r>1?void 0:r?NG(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&IG(s,t,i),i};let ah=class extends M(O,_t){constructor(){super(...arguments),this.mdiInformation=kt,this.mdiClose=ka,this.mdiCog=us,this.mdiFolder=Cp,this.mdiFolderUpload=xp,this.mdiFileDocumentEditOutline=ja,this.mdiFile=pr,this.mdiCloudDownload=Gn,this.mdiRenameBox=Yc,this.mdiDelete=ze,this.mdiCloseThick=pe,this.mdiLockOutline=Gc,this.mdiContentCopy=gp,this.sortFiles=kp,this.formatFilesize=Je,this.currentPage=1,this.contextMenu={shown:!1,isDirectory:!1,touchTimer:null,x:0,y:0,item:{isDirectory:!1,filename:"",permissions:"",modified:new Date}},this.dialogImage={show:!1,item:{name:null,url:null,svg:null}},this.dialogCreateFile={show:!1,name:""},this.dialogRenameFile={show:!1,newName:"",item:{isDirectory:!1,filename:"",permissions:"",modified:new Date}},this.dialogDuplicateFile={show:!1,newName:"",item:{isDirectory:!1,filename:"",permissions:"",modified:new Date}},this.dialogCreateDirectory={show:!1,name:""},this.dialogRenameDirectory={show:!1,newName:"",item:{isDirectory:!1,filename:"",permissions:"",modified:new Date}},this.dialogDeleteDirectory={show:!1,item:{isDirectory:!1,filename:"",permissions:"",modified:new Date}},this.uploadSnackbar={status:!1,filename:"",percent:0,speed:0,total:0,number:0,max:0,cancelTokenSource:{}},this.draggingFile={item:{isDirectory:!1,filename:"",permissions:"",modified:new Date}},this.deleteDialog=!1,this.deleteSelectedDialog=!1,this.isInvalidName=!0,this.nameInputRules=[e=>!!e||this.$t("Files.InvalidNameEmpty"),e=>!this.existsFilename(e)||this.$t("Files.InvalidNameAlreadyExists")]}existsFilename(e){return this.files.findIndex(s=>s.filename===e)>=0}get blockFileUpload(){var e;return(e=this.$store.state.gui.view.blockFileUpload)!=null?e:!1}set blockFileUpload(e){this.$store.dispatch("gui/saveSettingWithoutUpload",{name:"view.blockFileUpload",value:e})}get toolbarButtons(){return[{text:this.$t("Machine.ConfigFilesPanel.Download"),color:"primary",icon:Gn,loadingName:"configDownloadZip",onlyWriteable:!1,condition:this.selectedFiles.length>0,click:()=>{this.downloadSelectedFiles()}},{text:this.$t("Machine.ConfigFilesPanel.Delete"),color:"error",icon:ze,loadingName:null,onlyWriteable:!0,condition:this.selectedFiles.length>0,click:()=>{this.deleteSelectedDialog=!0}},{text:this.$t("Machine.ConfigFilesPanel.UploadFile"),color:this.machineButtonCol,icon:Ry,loadingName:null,onlyWriteable:!0,condition:!0,click:this.uploadFileButton},{text:this.$t("Machine.ConfigFilesPanel.CreateFile"),color:this.machineButtonCol,icon:OT,loadingName:null,onlyWriteable:!0,condition:!0,click:this.createFile},{text:this.$t("Machine.ConfigFilesPanel.CreateDirectory"),color:this.machineButtonCol,icon:$p,loadingName:null,onlyWriteable:!0,condition:!0,click:this.createDirectory},{text:this.$t("Machine.ConfigFilesPanel.RefreshDirectory"),color:this.machineButtonCol,icon:tn,loadingName:null,onlyWriteable:!1,condition:!0,click:this.refreshFileList}].filter(e=>e.condition)}get filteredToolbarButtons(){return this.toolbarButtons.filter(e=>this.directoryPermissions.includes("w")&&e.onlyWriteable||!e.onlyWriteable)}get absolutePath(){let e="/"+this.root;return this.currentPath&&(e+=this.currentPath),e}get directory(){return this.$store.getters["files/getDirectory"](this.absolutePath)}get disk_usage(){var e,s;return(s=(e=this.directory)==null?void 0:e.disk_usage)!=null?s:{used:0,free:0,total:0}}get directoryPermissions(){var e,s;return(s=(e=this.directory)==null?void 0:e.permissions)!=null?s:"r"}get files(){var s,t;let e=[...(t=(s=this.directory)==null?void 0:s.childrens)!=null?t:[]];if(this.showHiddenFiles||(e=e.filter(r=>r.filename.slice(0,1)!==".")),this.hideBackupFiles){const r=/^printer-\d{8}_\d{6}\.cfg$/,i=/^crowsnest\.conf\.\d{4}-\d{2}-\d{2}-\d{4}$/;e=e.filter(n=>!n.filename.match(r)&&!n.filename.match(i)&&!n.filename.endsWith(".bkp"))}return e}get headers(){return[{text:"",value:"",sortable:!1},{text:this.$t("Machine.ConfigFilesPanel.Name"),value:"filename"},{text:this.$t("Machine.ConfigFilesPanel.Filesize"),value:"size",align:"right"},{text:this.$t("Machine.ConfigFilesPanel.LastModified"),value:"modified",align:"right"}]}get selectedFiles(){var e;return(e=this.$store.state.gui.view.configfiles.selectedFiles)!=null?e:[]}set selectedFiles(e){this.$store.dispatch("gui/saveSettingWithoutUpload",{name:"view.configfiles.selectedFiles",value:e})}get countPerPage(){return this.$store.state.gui.view.configfiles.countPerPage}set countPerPage(e){this.$store.dispatch("gui/saveSetting",{name:"view.configfiles.countPerPage",value:e})}get showHiddenFiles(){return this.$store.state.gui.view.configfiles.showHiddenFiles}set showHiddenFiles(e){this.$store.dispatch("gui/saveSetting",{name:"view.configfiles.showHiddenFiles",value:e})}get hideBackupFiles(){return this.$store.state.gui.view.configfiles.hideBackupFiles}set hideBackupFiles(e){this.$store.dispatch("gui/saveSetting",{name:"view.configfiles.hideBackupFiles",value:e})}get sortBy(){return this.$store.state.gui.view.configfiles.sortBy}set sortBy(e){e===void 0&&(e="filename"),this.$store.dispatch("gui/saveSetting",{name:"view.configfiles.sortBy",value:e})}get sortDesc(){return this.$store.state.gui.view.configfiles.sortDesc}set sortDesc(e){e===void 0&&(e=!1),this.$store.dispatch("gui/saveSetting",{name:"view.configfiles.sortDesc",value:e})}get registeredDirectories(){var e;return(e=this.$store.state.server.registered_directories)!=null?e:[]}get existConfigRoot(){return this.registeredDirectories.findIndex(e=>e==="config")!==-1}get showMissingConfigRootWarning(){return this.absolutePath.startsWith("/config")&&!this.absolutePath.startsWith("/config_example")&&!this.existConfigRoot}get registeredDirectoriesSelectItems(){const e=this.registeredDirectories.filter(s=>!zD.includes(s)).sort();return this.existConfigRoot||e.push("config"),e}get root(){return this.$store.state.gui.view.configfiles.rootPath}set root(e){this.$store.dispatch("gui/saveSettingWithoutUpload",{name:"view.configfiles.rootPath",value:e})}get currentPath(){return this.$store.state.gui.view.configfiles.currentPath}set currentPath(e){this.selectedFiles=[],this.$store.dispatch("gui/saveSettingWithoutUpload",{name:"view.configfiles.currentPath",value:e})}refreshFileList(){this.$socket.emit("server.files.get_directory",{path:this.absolutePath.substring(1)},{action:"files/getDirectory"})}changeRoot(){this.currentPath=""}clickRow(e,s=!1){var t,r,i,n;if(!this.contextMenu.shown||s)if(s&&(this.contextMenu.shown=!1),e.isDirectory)this.currentPath+="/"+e.filename,this.currentPage=1;else if(["png","jpeg","jpg","gif","bmp","tif","svg"].includes((r=(t=e.filename.split(".").pop())==null?void 0:t.toLowerCase())!=null?r:"")){const a="".concat(this.apiUrl,"/server/files").concat(this.absolutePath,"/").concat(e.filename,"?t=").concat(Date.now());this.dialogImage.item.name=e.filename,["svg"].includes((n=(i=e.filename.split(".").pop())==null?void 0:i.toLowerCase())!=null?n:"")?fetch(a).then(o=>o.text()).then(o=>{this.dialogImage.show=!0,this.dialogImage.item.svg=o}):(this.dialogImage.show=!0,this.dialogImage.item.url=a)}else this.$store.dispatch("editor/openFile",{root:this.root,path:this.currentPath,filename:e.filename,size:e.size,permissions:e.permissions})}clickRowGoBack(){this.currentPath=this.currentPath.slice(0,this.currentPath.lastIndexOf("/"))}clickPathNavGoToDirectory(e){this.currentPath=e.location}showContextMenu(e,s){this.contextMenu.shown||(e==null||e.preventDefault(),this.contextMenu.shown=!0,this.contextMenu.x=(e==null?void 0:e.clientX)||(e==null?void 0:e.pageX)||window.screenX/2,this.contextMenu.y=(e==null?void 0:e.clientY)||(e==null?void 0:e.pageY)||window.screenY/2,this.contextMenu.item=s,this.$nextTick(()=>{this.contextMenu.shown=!0}))}downloadFile(){const e=this.absolutePath+"/"+this.contextMenu.item.filename,s="".concat(this.apiUrl,"/server/files").concat(encodeURI(e));window.open(s)}async downloadSelectedFiles(){let e=[];const s=async(c,u)=>{for(const d of u){const m="".concat(c,"/").concat(d.filename);if(d.isDirectory&&d.childrens){await s(m,d.childrens);continue}e.push(m)}};await s(this.absolutePath,this.selectedFiles);const t=new Date,r=(t.getMonth()+1).toString().padStart(2,"0"),i=t.getDate().toString().padStart(2,"0"),n=t.getHours().toString().padStart(2,"0"),a=t.getMinutes().toString().padStart(2,"0"),o=t.getSeconds().toString().padStart(2,"0"),l="".concat(t.getFullYear()).concat(r).concat(i,"-").concat(n).concat(a).concat(o);this.$socket.emit("server.files.zip",{items:e,dest:"config/".concat(this.root,"-").concat(l,".zip")},{action:"files/downloadZip",loading:"configDownloadZip"}),this.selectedFiles=[]}createDirectory(){this.dialogCreateDirectory.name="",this.dialogCreateDirectory.show=!0,setTimeout(()=>{var e;(e=this.$refs.inputDialogCreateDirectoryName)==null||e.focus()},200)}createDirectoryAction(){this.dialogCreateDirectory.show=!1,this.$socket.emit("server.files.post_directory",{path:this.absolutePath.substring(1)+"/"+this.dialogCreateDirectory.name},{action:"files/getCreateDir"})}renameDirectory(e){this.dialogRenameDirectory.item=e,this.dialogRenameDirectory.newName=e.filename,this.dialogRenameDirectory.show=!0,setTimeout(()=>{var s;(s=this.$refs.inputDialogRenameDirectoryName)==null||s.focus()},200)}renameDirectoryAction(){this.dialogRenameDirectory.show=!1,this.$socket.emit("server.files.move",{source:(this.absolutePath+"/"+this.dialogRenameDirectory.item.filename).slice(1),dest:(this.absolutePath+"/"+this.dialogRenameDirectory.newName).slice(1)},{action:"files/getMove"})}deleteDirectory(e){this.dialogDeleteDirectory.item=e,this.dialogDeleteDirectory.show=!0}deleteDirectoryAction(){this.dialogDeleteDirectory.show=!1,this.$socket.emit("server.files.delete_directory",{path:this.absolutePath+"/"+this.dialogDeleteDirectory.item.filename,force:!0},{action:"files/getDeleteDir"})}createFile(){this.dialogCreateFile.name="",this.dialogCreateFile.show=!0,setTimeout(()=>{var e;(e=this.$refs.inputDialogCreateFileName)==null||e.focus()},200)}createFileAction(){const e=new File([""],this.dialogCreateFile.name);let s=new FormData;s.append("file",e),s.append("root",this.root),this.currentPath.length&&s.append("path",this.currentPath.slice(1)),ks.post(this.apiUrl+"/server/files/upload",s,{headers:{"Content-Type":"multipart/form-data"}}).then(()=>{this.$toast.success(this.$t("Files.SuccessfullyCreated",{filename:this.dialogCreateFile.name}).toString()),this.dialogCreateFile.show=!1,this.dialogCreateFile.name=""}).catch(()=>{window.console.error("Error create file: "+this.dialogCreateFile.name)})}renameFile(e){this.dialogRenameFile.item=e,this.dialogRenameFile.newName=e.filename,this.dialogRenameFile.show=!0,setTimeout(()=>{var s;(s=this.$refs.inputDialogRenameFileName)==null||s.focus()},200)}renameFileAction(){this.dialogRenameFile.show=!1,this.$socket.emit("server.files.move",{source:(this.absolutePath+"/"+this.dialogRenameFile.item.filename).slice(1),dest:(this.absolutePath+"/"+this.dialogRenameFile.newName).slice(1)},{action:"files/getMove"})}duplicateFile(e){this.dialogDuplicateFile.item=e,this.dialogDuplicateFile.newName=e.filename,this.dialogDuplicateFile.show=!0,setTimeout(()=>{var s;(s=this.$refs.inputDialogDuplicateFileName)==null||s.focus()},200)}duplicateFileAction(){this.dialogDuplicateFile.show=!1,this.$socket.emit("server.files.copy",{source:(this.absolutePath+"/"+this.dialogDuplicateFile.item.filename).slice(1),dest:(this.absolutePath+"/"+this.dialogDuplicateFile.newName).slice(1)})}removeFile(){this.$socket.emit("server.files.delete_file",{path:this.absolutePath+"/"+this.contextMenu.item.filename},{action:"files/getDeleteFile"}),this.deleteDialog=!1}deleteSelectedFiles(){this.selectedFiles.forEach(e=>{e.isDirectory?this.$socket.emit("server.files.delete_directory",{path:this.absolutePath+"/"+e.filename,force:!0},{action:"files/getDeleteDir"}):this.$socket.emit("server.files.delete_file",{path:this.absolutePath+"/"+e.filename},{action:"files/getDeleteFile"})}),this.selectedFiles=[],this.deleteSelectedDialog=!1}uploadFileButton(){this.$refs.fileUpload.click()}async uploadFile(){var e;if((e=this.$refs.fileUpload.files)!=null&&e.length){const s=[...this.$refs.fileUpload.files];this.$refs.fileUpload.value="",await this.$store.dispatch("socket/addLoading",{name:"configFileUpload"}),await this.$store.dispatch("files/uploadSetCurrentNumber",0),await this.$store.dispatch("files/uploadSetMaxNumber",this.$refs.fileUpload.files.length);for(const t of s){await this.$store.dispatch("files/uploadIncrementCurrentNumber");const r=this.currentPath.slice(0,1)==="/"?this.currentPath.slice(1):this.currentPath,i=await this.$store.dispatch("files/uploadFile",{file:t,path:r,root:"config"});i!==!1&&this.$toast.success(this.$t("Files.SuccessfullyUploaded",{filename:i}).toString())}await this.$store.dispatch("socket/removeLoading",{name:"configFileUpload"})}}cancelUpload(){this.uploadSnackbar.cancelTokenSource.cancel(),this.uploadSnackbar.status=!1}dragFile(e,s){e.preventDefault(),this.blockFileUpload=!0,this.draggingFile.item=s}dragendFile(e){e.preventDefault(),this.blockFileUpload=!1,this.draggingFile.item={isDirectory:!1,filename:"",permissions:"",modified:new Date}}dragOverFilelist(e,s){this.blockFileUpload&&(e.preventDefault(),s.isDirectory&&(e.target.parentElement.style.backgroundColor="#43A04720"))}dragLeaveFilelist(e){this.blockFileUpload&&(e.preventDefault(),e.stopPropagation(),e.target.parentElement.style.backgroundColor="transparent")}async dragDropFilelist(e,s){if(this.blockFileUpload){e.preventDefault(),e.target.parentElement.style.backgroundColor="transparent";let t;s.filename===".."?t=this.absolutePath.slice(1,this.absolutePath.lastIndexOf("/")+1)+this.draggingFile.item.filename:t=this.absolutePath+"/"+s.filename+"/"+this.draggingFile.item.filename,this.$socket.emit("server.files.move",{source:this.absolutePath.slice(1)+"/"+this.draggingFile.item.filename,dest:t},{action:"files/getMove"})}}};ah=VG([D({components:{Panel:B,PathNavigation:on}})],ah);var UG=function(){var e,s=this,t=s.$createElement,r=s._self._c||t;return r("div",[r(B,{attrs:{title:s.$t("Machine.ConfigFilesPanel.ConfigFiles"),"card-class":"machine-configfiles-panel",icon:s.mdiInformation,collapsible:!0}},[r(q,[r($,[r(_,{staticClass:"col-12 col-lg pr-lg-0"},[r(Ee,{staticClass:"machine-configfiles-panel__root-select",attrs:{items:s.registeredDirectoriesSelectItems,label:s.$t("Machine.ConfigFilesPanel.Root"),outlined:"","hide-details":"",dense:"",attach:".machine-configfiles-panel__root-select"},on:{change:s.changeRoot},model:{value:s.root,callback:function(i){s.root=i},expression:"root"}})],1),r(_,{staticClass:"col col-lg-auto pl-lg-0 text-right"},[r("input",{ref:"fileUpload",staticStyle:{display:"none"},attrs:{type:"file",multiple:""},on:{change:s.uploadFile}}),s._l(s.filteredToolbarButtons,function(i){return r(g,{key:i.loadingName,staticClass:"px-2 minwidth-0 ml-3",attrs:{color:i.color,loading:i.loadingName!==null&&s.loadings.includes(i.loadingName)},on:{click:i.click}},[r(de,{attrs:{top:""},scopedSlots:s._u([{key:"activator",fn:function(n){var a=n.on,o=n.attrs;return[r(v,s._g(s._b({},"v-icon",o,!1),a),[s._v(s._s(i.icon))])]}}],null,!0)},[r("span",[s._v(s._s(i.text))])])],1)}),r($e,{attrs:{"offset-y":"",left:"",title:s.$t("Machine.ConfigFilesPanel.SetupCurrentList")},scopedSlots:s._u([{key:"activator",fn:function(i){var n=i.on,a=i.attrs;return[r(g,s._g(s._b({staticClass:"px-2 minwidth-0 ml-3"},"v-btn",a,!1),n),[r(v,{staticClass:"machine-configfiles-panel__settings-icon"},[s._v(s._s(s.mdiCog))])],1)]}}])},[r(Oe,[r(J,{staticClass:"minHeight36"},[r(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:s.$t("Machine.ConfigFilesPanel.HiddenFiles")},model:{value:s.showHiddenFiles,callback:function(i){s.showHiddenFiles=i},expression:"showHiddenFiles"}})],1),r(J,{staticClass:"minHeight36"},[r(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:s.$t("Machine.ConfigFilesPanel.HideBackupFiles")},model:{value:s.hideBackupFiles,callback:function(i){s.hideBackupFiles=i},expression:"hideBackupFiles"}})],1)],1)],1)],2)],1)],1),r(q,[r($,[r(_,{staticClass:"col-12 py-2 d-flex align-center"},[r("span",[r("b",{staticClass:"mr-1"},[s._v(s._s(s.$t("Machine.ConfigFilesPanel.CurrentPath"))+":")]),r(on,{attrs:{path:s.currentPath,"base-directory-label":"/".concat(s.root),"on-segment-click":s.clickPathNavGoToDirectory}})],1),r(ae),s.disk_usage!==null&&!s.showMissingConfigRootWarning?[r(de,{attrs:{top:""},scopedSlots:s._u([{key:"activator",fn:function(i){var n=i.on,a=i.attrs;return[r("span",s._g(s._b({},"span",a,!1),n),[r("b",[s._v(s._s(s.$t("Machine.ConfigFilesPanel.FreeDisk"))+":")]),s._v(" "+s._s(s.formatFilesize(s.disk_usage.free))+" ")])]}}],null,!1,3140322967)},[r("span",[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Used"))+": "+s._s(s.formatFilesize(s.disk_usage.used))+" "),r("br"),s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Free"))+": "+s._s(s.formatFilesize(s.disk_usage.free))+" "),r("br"),s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Total"))+": "+s._s(s.formatFilesize(s.disk_usage.total))+" ")])])]:s._e()],2)],1)],1),r(U),s.showMissingConfigRootWarning?r(q,[r($,[r(_,{staticClass:"col-12 col-lg pr-lg-0"},[r(it,{staticClass:"mx-auto mt-6",attrs:{dense:"",text:"",type:"warning",elevation:"2","max-width":"500",icon:s.mdiLockOutline}},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.ConfigRootDirectoryDoesntExists"))+" ")])],1)],1)],1):r(zr,{staticClass:"files-table",attrs:{items:s.files,headers:s.headers,page:s.currentPage,"custom-sort":s.sortFiles,"sort-by":s.sortBy,"sort-desc":s.sortDesc,"items-per-page":s.countPerPage,"footer-props":{itemsPerPageText:s.$t("Machine.ConfigFilesPanel.Files"),itemsPerPageAllText:s.$t("Machine.ConfigFilesPanel.AllFiles"),itemsPerPageOptions:[10,25,50,100,-1]},"mobile-breakpoint":"0","item-key":"filename","show-select":""},on:{"update:page":function(i){s.currentPage=i},"update:sortBy":function(i){s.sortBy=i},"update:sort-by":function(i){s.sortBy=i},"update:sortDesc":function(i){s.sortDesc=i},"update:sort-desc":function(i){s.sortDesc=i},"update:itemsPerPage":function(i){s.countPerPage=i},"update:items-per-page":function(i){s.countPerPage=i}},scopedSlots:s._u([{key:"no-data",fn:function(){return[r("div",{staticClass:"text-center"},[s._v(s._s(s.$t("Machine.ConfigFilesPanel.Empty")))])]},proxy:!0},{key:"item",fn:function(i){var n=i.index,a=i.item,o=i.isSelected,l=i.select;return[r("tr",{directives:[{name:"longpress",rawName:"v-longpress:600",value:function(c){return s.showContextMenu(c,a)},expression:"(e) => showContextMenu(e, item)",arg:"600"}],key:"".concat(n," ").concat(a.filename),staticClass:"file-list-cursor user-select-none",attrs:{"data-name":a.filename,draggable:"true"},on:{contextmenu:function(c){return s.showContextMenu(c,a)},click:function(c){return s.clickRow(a)},drag:function(c){return s.dragFile(c,a)},dragend:function(c){return s.dragendFile(c)},dragover:function(c){return s.dragOverFilelist(c,a)},dragleave:s.dragLeaveFilelist,drop:function(c){return c.preventDefault(),c.stopPropagation(),s.dragDropFilelist(c,a)}}},[r("td",{staticClass:"file-list__select-td pr-0"},[r(Fr,{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"pa-0 mr-0",attrs:{value:o},on:{click:function(c){return c.stopPropagation(),l(!o)}}})],1),r("td",{staticClass:"px-0 text-center",staticStyle:{width:"32px"}},[a.isDirectory?r(v,[s._v(s._s(s.mdiFolder))]):s._e(),a.isDirectory?s._e():r(v,[s._v(s._s(s.mdiFile))])],1),r("td",{staticClass:""},[s._v(s._s(a.filename))]),r("td",{staticClass:"text-no-wrap text-right"},[s._v(" "+s._s(a.isDirectory?"--":s.formatFilesize(a.size))+" ")]),r("td",{staticClass:"text-right"},[s._v(s._s(s.formatDateTime(a.modified)))])])]}}],null,!1,1962952882),model:{value:s.selectedFiles,callback:function(i){s.selectedFiles=i},expression:"selectedFiles"}},[s.currentPath!==""?r("template",{slot:"body.prepend"},[r("tr",{staticClass:"file-list-cursor",on:{click:s.clickRowGoBack,dragover:function(i){return s.dragOverFilelist(i,{isDirectory:!0,filename:".."})},dragleave:s.dragLeaveFilelist,drop:function(i){return i.preventDefault(),i.stopPropagation(),s.dragDropFilelist(i,{isDirectory:!0,filename:".."})}}},[r("td",{staticClass:"file-list__select-td pr-0"},[r(Fr,{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"pa-0 mr-0",attrs:{disabled:""}})],1),r("td",{staticClass:"px-0 text-center",staticStyle:{width:"32px"}},[r(v,[s._v(s._s(s.mdiFolderUpload))])],1),r("td",{staticClass:"",attrs:{colspan:"4"}},[s._v("..")])])]):s._e()],2)],1),r($e,{attrs:{"position-x":s.contextMenu.x,"position-y":s.contextMenu.y,absolute:"","offset-y":""},model:{value:s.contextMenu.shown,callback:function(i){s.$set(s.contextMenu,"shown",i)},expression:"contextMenu.shown"}},[r(Oe,[s.contextMenu.item.isDirectory?s._e():r(J,{on:{click:function(i){return s.clickRow(s.contextMenu.item,!0)}}},[r(v,{staticClass:"mr-1"},[s._v(s._s(s.mdiFileDocumentEditOutline))]),s._v(" "+s._s(s.contextMenu.item.permissions.includes("w")?s.$t("Machine.ConfigFilesPanel.EditFile"):s.$t("Machine.ConfigFilesPanel.ShowFile"))+" ")],1),s.contextMenu.item.isDirectory?s._e():r(J,{on:{click:s.downloadFile}},[r(v,{staticClass:"mr-1"},[s._v(s._s(s.mdiCloudDownload))]),s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Download"))+" ")],1),!s.contextMenu.item.isDirectory&&s.contextMenu.item.permissions.includes("w")?r(J,{on:{click:function(i){return s.renameFile(s.contextMenu.item)}}},[r(v,{staticClass:"mr-1"},[s._v(s._s(s.mdiRenameBox))]),s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Rename"))+" ")],1):s._e(),s.contextMenu.item.isDirectory?s._e():r(J,{on:{click:function(i){return s.duplicateFile(s.contextMenu.item)}}},[r(v,{staticClass:"mr-1"},[s._v(s._s(s.mdiContentCopy))]),s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Duplicate"))+" ")],1),s.contextMenu.item.isDirectory&&s.contextMenu.item.permissions.includes("w")?r(J,{on:{click:function(i){return s.renameDirectory(s.contextMenu.item)}}},[r(v,{staticClass:"mr-1"},[s._v(s._s(s.mdiRenameBox))]),s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Rename"))+" ")],1):s._e(),!s.contextMenu.item.isDirectory&&s.contextMenu.item.permissions.includes("w")?r(J,{staticClass:"red--text",on:{click:function(i){s.deleteDialog=!0}}},[r(v,{staticClass:"mr-1",attrs:{color:"error"}},[s._v(s._s(s.mdiDelete))]),s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Delete"))+" ")],1):s._e(),s.contextMenu.item.isDirectory&&s.contextMenu.item.permissions.includes("w")?r(J,{staticClass:"red--text",on:{click:function(i){return s.deleteDirectory(s.contextMenu.item)}}},[r(v,{staticClass:"mr-1",attrs:{color:"error"}},[s._v(s._s(s.mdiDelete))]),s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Delete"))+" ")],1):s._e()],1)],1),r(oe,{staticClass:"fill-height",attrs:{"hide-overlay":"",fullscreen:""},on:{keydown:function(i){if(!i.type.indexOf("key")&&s._k(i.keyCode,"esc",27,i.key,["Esc","Escape"]))return null;s.dialogImage.show=!1,s.dialogImage.item.url=null,s.dialogImage.item.svg=null}},model:{value:s.dialogImage.show,callback:function(i){s.$set(s.dialogImage,"show",i)},expression:"dialogImage.show"}},[r(B,{staticStyle:{position:"relative"},attrs:{title:(e=s.dialogImage.item.name)!==null&&e!==void 0?e:"","card-class":"maschine-configfiles-imageviewer-dialog"},scopedSlots:s._u([{key:"buttons",fn:function(){return[r(g,{attrs:{icon:"",tile:""},on:{click:function(i){s.dialogImage.show=!1,s.dialogImage.item.url=null,s.dialogImage.item.svg=null}}},[r(v,[s._v(s._s(s.mdiCloseThick))])],1)]},proxy:!0}])},[r("div",{staticClass:"d-flex justify-center",staticStyle:{"max-height":"calc(var(--app-height) - 64px)",overflow:"auto"}},[s.dialogImage.item.url?r("img",{staticStyle:{"max-height":"100%",width:"auto","object-fit":"contain"},attrs:{src:s.dialogImage.item.url,alt:"image"}}):s.dialogImage.item.svg?r("div",{staticClass:"fill-width",domProps:{innerHTML:s._s(s.dialogImage.item.svg)}}):s._e()])])],1),r(oe,{attrs:{"max-width":"400"},model:{value:s.dialogCreateFile.show,callback:function(i){s.$set(s.dialogCreateFile,"show",i)},expression:"dialogCreateFile.show"}},[r(B,{attrs:{title:s.$t("Machine.ConfigFilesPanel.CreateFile"),"card-class":"maschine-configfiles-create-file-dialog","margin-bottom":!1},scopedSlots:s._u([{key:"buttons",fn:function(){return[r(g,{attrs:{icon:"",tile:""},on:{click:function(i){s.dialogCreateFile.show=!1}}},[r(v,[s._v(s._s(s.mdiCloseThick))])],1)]},proxy:!0}])},[r(q,[r(te,{ref:"inputDialogCreateFileName",attrs:{label:s.$t("Machine.ConfigFilesPanel.Name"),required:"",rules:s.nameInputRules},on:{"update:error":function(i){return s.isInvalidName=i},keyup:function(i){return!i.type.indexOf("key")&&s._k(i.keyCode,"enter",13,i.key,"Enter")?null:s.createFileAction.apply(null,arguments)}},model:{value:s.dialogCreateFile.name,callback:function(i){s.$set(s.dialogCreateFile,"name",i)},expression:"dialogCreateFile.name"}})],1),r(ne,[r(ae),r(g,{attrs:{color:"",text:""},on:{click:function(i){s.dialogCreateFile.show=!1}}},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Cancel"))+" ")]),r(g,{attrs:{disabled:s.isInvalidName,color:"primary",text:""},on:{click:s.createFileAction}},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Create"))+" ")])],1)],1)],1),r(oe,{attrs:{"max-width":"400"},model:{value:s.dialogRenameFile.show,callback:function(i){s.$set(s.dialogRenameFile,"show",i)},expression:"dialogRenameFile.show"}},[r(B,{attrs:{title:s.$t("Machine.ConfigFilesPanel.RenameFile"),"card-class":"maschine-configfiles-rename-file-dialog","margin-bottom":!1},scopedSlots:s._u([{key:"buttons",fn:function(){return[r(g,{attrs:{icon:"",tile:""},on:{click:function(i){s.dialogRenameFile.show=!1}}},[r(v,[s._v(s._s(s.mdiCloseThick))])],1)]},proxy:!0}])},[r(q,[r(te,{ref:"inputDialogRenameFileName",attrs:{label:s.$t("Machine.ConfigFilesPanel.Name"),required:"",rules:s.nameInputRules},on:{"update:error":function(i){return s.isInvalidName=i},keyup:function(i){return!i.type.indexOf("key")&&s._k(i.keyCode,"enter",13,i.key,"Enter")?null:s.renameFileAction.apply(null,arguments)}},model:{value:s.dialogRenameFile.newName,callback:function(i){s.$set(s.dialogRenameFile,"newName",i)},expression:"dialogRenameFile.newName"}})],1),r(ne,[r(ae),r(g,{attrs:{color:"",text:""},on:{click:function(i){s.dialogRenameFile.show=!1}}},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Cancel"))+" ")]),r(g,{attrs:{disabled:s.isInvalidName,color:"primary",text:""},on:{click:s.renameFileAction}},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Rename"))+" ")])],1)],1)],1),r(oe,{attrs:{"max-width":"400"},model:{value:s.dialogDuplicateFile.show,callback:function(i){s.$set(s.dialogDuplicateFile,"show",i)},expression:"dialogDuplicateFile.show"}},[r(B,{attrs:{title:s.$t("Machine.ConfigFilesPanel.DuplicateFile"),"card-class":"maschine-configfiles-duplicate-file-dialog","margin-bottom":!1},scopedSlots:s._u([{key:"buttons",fn:function(){return[r(g,{attrs:{icon:"",tile:""},on:{click:function(i){s.dialogDuplicateFile.show=!1}}},[r(v,[s._v(s._s(s.mdiCloseThick))])],1)]},proxy:!0}])},[r(q,[r(te,{ref:"inputDialoDuplicateFileName",attrs:{label:s.$t("Machine.ConfigFilesPanel.Name"),required:"",rules:s.nameInputRules},on:{"update:error":function(i){return s.isInvalidName=i},keyup:function(i){return!i.type.indexOf("key")&&s._k(i.keyCode,"enter",13,i.key,"Enter")?null:s.duplicateFileAction.apply(null,arguments)}},model:{value:s.dialogDuplicateFile.newName,callback:function(i){s.$set(s.dialogDuplicateFile,"newName",i)},expression:"dialogDuplicateFile.newName"}})],1),r(ne,[r(ae),r(g,{attrs:{color:"",text:""},on:{click:function(i){s.dialogDuplicateFile.show=!1}}},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Cancel"))+" ")]),r(g,{attrs:{disabled:s.isInvalidName,color:"primary",text:""},on:{click:s.duplicateFileAction}},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Duplicate"))+" ")])],1)],1)],1),r(oe,{attrs:{"max-width":"400"},model:{value:s.dialogCreateDirectory.show,callback:function(i){s.$set(s.dialogCreateDirectory,"show",i)},expression:"dialogCreateDirectory.show"}},[r(B,{attrs:{title:s.$t("Machine.ConfigFilesPanel.CreateDirectory"),"card-class":"maschine-configfiles-create-directory-dialog","margin-bottom":!1},scopedSlots:s._u([{key:"buttons",fn:function(){return[r(g,{attrs:{icon:"",tile:""},on:{click:function(i){s.dialogCreateDirectory.show=!1}}},[r(v,[s._v(s._s(s.mdiCloseThick))])],1)]},proxy:!0}])},[r(q,[r(te,{ref:"inputDialogCreateDirectoryName",attrs:{label:s.$t("Machine.ConfigFilesPanel.Name"),required:"",rules:s.nameInputRules},on:{"update:error":function(i){return s.isInvalidName=i},keyup:function(i){return!i.type.indexOf("key")&&s._k(i.keyCode,"enter",13,i.key,"Enter")?null:s.createDirectoryAction.apply(null,arguments)}},model:{value:s.dialogCreateDirectory.name,callback:function(i){s.$set(s.dialogCreateDirectory,"name",i)},expression:"dialogCreateDirectory.name"}})],1),r(ne,[r(ae),r(g,{attrs:{color:"",text:""},on:{click:function(i){s.dialogCreateDirectory.show=!1}}},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Cancel"))+" ")]),r(g,{attrs:{disabled:s.isInvalidName,color:"primary",text:""},on:{click:s.createDirectoryAction}},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Create"))+" ")])],1)],1)],1),r(oe,{attrs:{"max-width":"400"},model:{value:s.dialogRenameDirectory.show,callback:function(i){s.$set(s.dialogRenameDirectory,"show",i)},expression:"dialogRenameDirectory.show"}},[r(B,{attrs:{title:s.$t("Machine.ConfigFilesPanel.RenameDirectory"),"card-class":"maschine-configfiles-rename-directory-dialog","margin-bottom":!1},scopedSlots:s._u([{key:"buttons",fn:function(){return[r(g,{attrs:{icon:"",tile:""},on:{click:function(i){s.dialogRenameDirectory.show=!1}}},[r(v,[s._v(s._s(s.mdiCloseThick))])],1)]},proxy:!0}])},[r(q,[r(te,{ref:"inputDialogRenameDirectoryName",attrs:{label:s.$t("Machine.ConfigFilesPanel.Name"),required:"",rules:s.nameInputRules},on:{"update:error":function(i){return s.isInvalidName=i},keyup:function(i){return!i.type.indexOf("key")&&s._k(i.keyCode,"enter",13,i.key,"Enter")?null:s.renameDirectoryAction.apply(null,arguments)}},model:{value:s.dialogRenameDirectory.newName,callback:function(i){s.$set(s.dialogRenameDirectory,"newName",i)},expression:"dialogRenameDirectory.newName"}})],1),r(ne,[r(ae),r(g,{attrs:{color:"",text:""},on:{click:function(i){s.dialogRenameDirectory.show=!1}}},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Cancel"))+" ")]),r(g,{attrs:{disabled:s.isInvalidName,color:"primary",text:""},on:{click:s.renameDirectoryAction}},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Rename"))+" ")])],1)],1)],1),r(oe,{attrs:{"max-width":"400"},model:{value:s.dialogDeleteDirectory.show,callback:function(i){s.$set(s.dialogDeleteDirectory,"show",i)},expression:"dialogDeleteDirectory.show"}},[r(B,{attrs:{title:s.$t("Machine.ConfigFilesPanel.DeleteDirectory"),"card-class":"maschine-configfiles-delete-directory-dialog","margin-bottom":!1},scopedSlots:s._u([{key:"buttons",fn:function(){return[r(g,{attrs:{icon:"",tile:""},on:{click:function(i){s.dialogDeleteDirectory.show=!1}}},[r(v,[s._v(s._s(s.mdiCloseThick))])],1)]},proxy:!0}])},[r(q,[r("p",{staticClass:"mb-0"},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.DeleteDirectoryQuestion",{name:s.dialogDeleteDirectory.item.filename}))+" ")])]),r(ne,[r(ae),r(g,{attrs:{color:"",text:""},on:{click:function(i){s.dialogDeleteDirectory.show=!1}}},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Cancel"))+" ")]),r(g,{attrs:{color:"error",text:""},on:{click:s.deleteDirectoryAction}},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Delete"))+" ")])],1)],1)],1),r(oe,{attrs:{"max-width":"400"},model:{value:s.deleteDialog,callback:function(i){s.deleteDialog=i},expression:"deleteDialog"}},[r(B,{attrs:{title:s.$t("Machine.ConfigFilesPanel.Delete"),"card-class":"maschine-configfiles-delete-dialog","margin-bottom":!1},scopedSlots:s._u([{key:"buttons",fn:function(){return[r(g,{attrs:{icon:"",tile:""},on:{click:function(i){s.deleteDialog=!1}}},[r(v,[s._v(s._s(s.mdiCloseThick))])],1)]},proxy:!0}])},[r(q,[r("p",{staticClass:"mb-0"},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.DeleteSingleFileQuestion",{name:s.contextMenu.item.filename}))+" ")])]),r(ne,[r(ae),r(g,{attrs:{color:"",text:""},on:{click:function(i){s.deleteDialog=!1}}},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Cancel"))+" ")]),r(g,{attrs:{color:"error",text:""},on:{click:s.removeFile}},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Delete"))+" ")])],1)],1)],1),r(oe,{attrs:{"max-width":"400"},model:{value:s.deleteSelectedDialog,callback:function(i){s.deleteSelectedDialog=i},expression:"deleteSelectedDialog"}},[r(B,{attrs:{title:s.$t("Machine.ConfigFilesPanel.Delete"),"card-class":"maschine-configfiles-delete-selected-dialog","margin-bottom":!1},scopedSlots:s._u([{key:"buttons",fn:function(){return[r(g,{attrs:{icon:"",tile:""},on:{click:function(i){s.deleteSelectedDialog=!1}}},[r(v,[s._v(s._s(s.mdiCloseThick))])],1)]},proxy:!0}])},[r(q,[s.selectedFiles.length===1?r("p",{staticClass:"mb-0"},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.DeleteSingleFileQuestion",{name:s.selectedFiles[0].filename}))+" ")]):r("p",{staticClass:"mb-0"},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.DeleteSelectedQuestion",{count:s.selectedFiles.length}))+" ")])]),r(ne,[r(ae),r(g,{attrs:{color:"",text:""},on:{click:function(i){s.deleteSelectedDialog=!1}}},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Cancel"))+" ")]),r(g,{attrs:{color:"error",text:""},on:{click:s.deleteSelectedFiles}},[s._v(" "+s._s(s.$t("Machine.ConfigFilesPanel.Delete"))+" ")])],1)],1)],1),r(_i,{attrs:{timeout:-1,value:!0,fixed:"",right:"",bottom:""},scopedSlots:s._u([{key:"action",fn:function(i){var n=i.attrs;return[r(g,s._b({staticStyle:{"min-width":"auto"},attrs:{color:"red",text:""},on:{click:s.cancelUpload}},"v-btn",n,!1),[r(v,{staticClass:"0"},[s._v(s._s(s.mdiClose))])],1)]}}]),model:{value:s.uploadSnackbar.status,callback:function(i){s.$set(s.uploadSnackbar,"status",i)},expression:"uploadSnackbar.status"}},[s.uploadSnackbar.max>1?r("span",{staticClass:"mr-1"},[s._v(" ("+s._s(s.uploadSnackbar.number)+"/"+s._s(s.uploadSnackbar.max)+") ")]):s._e(),r("strong",[s._v(s._s(s.$t("Machine.ConfigFilesPanel.Uploading"))+" "+s._s(s.uploadSnackbar.filename))]),r("br"),s._v(" "+s._s(Math.round(s.uploadSnackbar.percent))+" % @ "+s._s(s.formatFilesize(Math.round(s.uploadSnackbar.speed)))+"/s "),r("br"),r(ws,{staticClass:"mt-2",attrs:{value:s.uploadSnackbar.percent}})],1)],1)},BG=[];const J_={};var WG=E(ah,UG,BG,!1,GG,null,null,null);function GG(e){for(let s in J_)this[s]=J_[s]}const z$=function(){return WG.exports}();var zG=Object.defineProperty,ZG=Object.getOwnPropertyDescriptor,qG=(e,s,t,r)=>{for(var i=r>1?void 0:r?ZG(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&zG(s,t,i),i};let oh=class extends M(O){constructor(){super(...arguments),this.formatFilesize=Je,this.mdiCloseThick=pe,this.mdiTextBoxSearchOutline=n2,this.hostDetailsDialog=!1}get hostStats(){var e;return(e=this.$store.getters["server/getHostStats"])!=null?e:null}get systemInfo(){var e,s;return(s=(e=this.$store.state.server)==null?void 0:e.system_info)!=null?s:{}}get releaseName(){var s,t,r,i;let e=(t=(s=this.hostStats.release_info)==null?void 0:s.name)!=null?t:"";return e.startsWith("#")?(i=(r=this.hostStats.release_info)==null?void 0:r.id)!=null?i:null:e.startsWith("0.")?null:e}get directory(){return this.$store.getters["files/getDirectory"]("gcodes")}get disk_usage(){var e,s;return(s=(e=this.directory)==null?void 0:e.disk_usage)!=null?s:{used:0,free:0,total:0}}get cpuUsage(){var e;return(e=this.$store.getters["server/getCpuUsage"])!=null?e:null}get cpuUsageColor(){let e="primary";return this.cpuUsage>95?e="error":this.cpuUsage>80&&(e="warning"),e}get networkInterfaces(){var e;return(e=this.$store.getters["server/getNetworkInterfaces"])!=null?e:null}getIpAddress(e){const s=e.find(r=>r.family==="ipv4");if(s)return" (".concat(s.address,")");const t=e.find(r=>r.family==="ipv6");return t?" (".concat(t.address,")"):null}get cpuDesc(){return this.hostStats.cpuDesc}get cpuName(){let e=this.hostStats.cpuName;return this.hostStats.bits&&(e+=", ".concat(this.hostStats.bits)),e}};oh=qG([D({components:{Panel:B}})],oh);var XG=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t($,{staticClass:"py-0 pr-4"},[t(_,{staticClass:"pl-6"},[t("strong",{staticStyle:{cursor:"pointer"},on:{click:function(r){e.hostDetailsDialog=!0}}},[e._v("Host")]),t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[e.hostStats.cpuName?t("small",e._g(e._b({staticClass:"ml-2"},"small",n,!1),i),[e._v("("+e._s(e.cpuName)+")")]):e._e()]}}])},[t("span",[e._v(e._s(e.cpuDesc))])]),t("br"),t("div",{staticClass:"text-body-2"},[e.hostStats.version?t("div",[e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.Version",{version:e.hostStats.version}))+" ")]):e._e(),e.hostStats.os?t("div",[e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.Os",{os:e.hostStats.os}))+" ")]):e._e(),e.releaseName?t("div",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.Distro",{name:e.releaseName,version_id:e.hostStats.release_info.version_id}))+" "),e.hostStats.release_info.codename?[e._v(" ("+e._s(e.hostStats.release_info.codename)+") ")]:e._e()],2):e._e(),t("div",[t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.Load",{load:e.hostStats.load}))+", ")]),e.hostStats.memoryFormat?t("span",{staticClass:"d-inline-block text-no-wrap"},[e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.Memory",{memory:e.hostStats.memoryFormat}))+" ")]):e._e(),t("span",{staticClass:"text-no-wrap"},[e.hostStats.tempSensor?[e.hostStats.tempSensor.measured_min_temp!==null&&e.hostStats.tempSensor.measured_max_temp!==null?[t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t("span",e._g(e._b({},"span",n,!1),i),[e._v(" , "+e._s(e.$t("Machine.SystemPanel.Values.Temp",{temp:e.hostStats.tempSensor.temperature}))+" ")])]}}],null,!1,2813579108)},[t("span",[e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.TempMax",{temp:e.hostStats.tempSensor.measured_max_temp}))+" "),t("br"),e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.TempMin",{temp:e.hostStats.tempSensor.measured_min_temp}))+" ")])])]:t("span",[e._v(" , "+e._s(e.$t("Machine.SystemPanel.Values.Temp",{temp:e.hostStats.tempSensor.temperature}))+" ")])]:e._e()],2)]),e.networkInterfaces?e._l(e.networkInterfaces,function(r,i){return t("div",{key:i},[t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(i)+" "),"details"in r?[e._v(" "+e._s(e.getIpAddress(r.details.ip_addresses))+" ")]:e._e(),e._v(" : ")],2),t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.Bandwidth",{bandwidth:e.formatFilesize(r.bandwidth)}))+" ")]),e._v(" , "),t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.Received",{received:e.formatFilesize(r.rx_bytes)}))+" ")]),e._v(" , "),t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.Transmitted",{transmitted:e.formatFilesize(r.tx_bytes)}))+" ")])])}):e._e()],2)],1),e.cpuUsage!==null?t(_,{staticClass:"px-2 col-auto d-flex flex-column justify-center align-center"},[t(dt,{attrs:{rotate:-90,size:55,width:7,value:e.cpuUsage,color:e.cpuUsageColor}},[e._v(" "+e._s(e.cpuUsage)+" ")]),t("span",{staticClass:"mt-2"},[e._v(e._s(e.$t("Machine.SystemPanel.Cpu")))])],1):t(_,{staticClass:"px-2 col-auto d-flex flex-column justify-center align-center"},[t(dt,{attrs:{rotate:-90,size:55,width:7,value:e.hostStats.loadPercent,color:e.hostStats.loadProgressColor}},[e._v(" "+e._s(e.hostStats.loadPercent)+" ")]),t("span",{staticClass:"mt-2"},[e._v(e._s(e.$t("Machine.SystemPanel.Load")))])],1),e.hostStats.memUsage!==null?t(_,{staticClass:"px-2 col-auto d-flex flex-column justify-center align-center"},[t(dt,{attrs:{rotate:-90,size:55,width:7,value:e.hostStats.memUsage,color:e.hostStats.memUsageColor}},[e._v(" "+e._s(e.hostStats.memUsage)+" ")]),t("span",{staticClass:"mt-2"},[e._v(e._s(e.$t("Machine.SystemPanel.Memory")))])],1):e._e()],1),t(oe,{attrs:{"max-width":600,"max-height":500,scrollable:""},model:{value:e.hostDetailsDialog,callback:function(r){e.hostDetailsDialog=r},expression:"hostDetailsDialog"}},[t(B,{attrs:{title:e.$t("Machine.SystemPanel.HostDetails"),icon:e.mdiTextBoxSearchOutline,"card-class":"machine-systemload-host-details-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.hostDetailsDialog=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,{staticClass:"pt-5 px-0"},[t("overlay-scrollbars",{staticClass:"px-6",staticStyle:{height:"350px"}},[Object.keys(e.systemInfo).length?e._l(e.systemInfo,function(r,i,n){return t("div",{key:i},[i!=="available_services"?[t($,{class:n?"mt-5":""},[t(_,[t("span",{staticClass:"headline"},[e._v(e._s(i))])])],1),e._l(r,function(a,o,l){return t("div",{key:o},[l?t(U,{staticClass:"my-3"}):e._e(),t($,[t(_,[e._v(e._s(o))]),t(_,{staticClass:"text-right"},[e._v(e._s(a))])],1)],1)})]:e._e()],2)}):[t($,{staticClass:"mt-5"},[t(_,[t("p",[e._v(e._s(e.$t("Machine.SystemPanel.NoMoreInfos")))])])],1)]],2)],1)],1)],1)],1)},YG=[];const K_={};var JG=E(oh,XG,YG,!1,KG,"1e488c0d",null,null);function KG(e){for(let s in K_)this[s]=K_[s]}const Z$=function(){return JG.exports}();var QG=Object.defineProperty,ez=Object.getOwnPropertyDescriptor,q$=(e,s,t,r)=>{for(var i=r>1?void 0:r?ez(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&QG(s,t,i),i};let Bl=class extends M(O){constructor(){super(...arguments),this.formatFilesize=Je,this.mdiCloseThick=pe,this.mcuDetailsDialog=!1}};q$([P({required:!0})],Bl.prototype,"mcu",2);Bl=q$([D({components:{Panel:B}})],Bl);var tz=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t($,{staticClass:"py-0 pr-4"},[t(_,{staticClass:"pl-6"},[t("strong",{staticStyle:{cursor:"pointer"},on:{click:function(r){e.mcuDetailsDialog=!0}}},[e._v(e._s(e.mcu.name))]),e.mcu.chip?t("small",{staticClass:"ml-2"},[e._v("("+e._s(e.mcu.chip)+")")]):e._e(),t("br"),t("div",{staticClass:"text-body-2"},[t("div",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.Version",{version:e.mcu.version}))+" ")]),t("div",[t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.Load",{load:e.mcu.load}))+", ")]),t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.Awake",{awake:e.mcu.awake}))+", ")]),e.mcu.freq!==null?t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.Frequency",{frequency:e.mcu.freqFormat}))+", ")]):e._e(),e.mcu.tempSensor?[e.mcu.tempSensor.measured_min_temp!==null&&e.mcu.tempSensor.measured_max_temp!==null?[t(de,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t("span",e._g(e._b({},"span",n,!1),i),[e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.Temp",{temp:e.mcu.tempSensor.temperature}))+" ")])]}}],null,!1,1093946258)},[t("span",[e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.TempMax",{temp:e.mcu.tempSensor.measured_max_temp}))+" "),t("br"),e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.TempMin",{temp:e.mcu.tempSensor.measured_min_temp}))+" ")])])]:t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$t("Machine.SystemPanel.Values.Temp",{temp:e.mcu.tempSensor.temperature}))+" ")])]:e._e()],2)])]),t(_,{staticClass:"px-2 col-auto d-flex justify-center align-center"},[t(dt,{attrs:{rotate:-90,size:55,width:7,value:e.mcu.loadPercent,color:e.mcu.loadProgressColor}},[e._v(" "+e._s(e.mcu.loadPercent)+" ")])],1)],1),t(oe,{attrs:{"max-width":400,"max-height":500,scrollable:""},model:{value:e.mcuDetailsDialog,callback:function(r){e.mcuDetailsDialog=r},expression:"mcuDetailsDialog"}},[t(B,{attrs:{title:e.mcu.name,icon:"mdi-text-box-search-outline","card-class":"machine-systemload-mcu-details-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.mcuDetailsDialog=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,{staticClass:"pt-5 px-0"},[t("overlay-scrollbars",{staticClass:"px-6",staticStyle:{height:"350px"}},[e.mcu.mcu_constants?[t($,[t(_,[t("span",{staticClass:"headline"},[e._v(e._s(e.$t("Machine.SystemPanel.Constants")))])])],1),e._l(e.mcu.mcu_constants,function(r,i,n){return t("div",{key:i},[n?t(U,{staticClass:"my-3"}):e._e(),t($,[t(_,[e._v(e._s(i))]),t(_,{staticClass:"text-right"},[e._v(e._s(r))])],1)],1)})]:e._e(),e.mcu.last_stats?[t($,{staticClass:"mt-5"},[t(_,[t("span",{staticClass:"headline"},[e._v(e._s(e.$t("Machine.SystemPanel.LastStats")))])])],1),e._l(e.mcu.last_stats,function(r,i,n){return t("div",{key:i},[n?t(U,{staticClass:"my-3"}):e._e(),t($,[t(_,[e._v(e._s(i))]),t(_,{staticClass:"text-right"},[e._v(e._s(r))])],1)],1)})]:e._e()],2)],1)],1)],1)],1)},sz=[];const Q_={};var rz=E(Bl,tz,sz,!1,iz,null,null,null);function iz(e){for(let s in Q_)this[s]=Q_[s]}const X$=function(){return rz.exports}();var nz=Object.defineProperty,az=Object.getOwnPropertyDescriptor,oz=(e,s,t,r)=>{for(var i=r>1?void 0:r?az(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&nz(s,t,i),i};let lh=class extends M(O){constructor(){super(...arguments),this.mdiCloseThick=pe,this.mdiMemory=Wy}get mcus(){var s;const e=(s=this.$store.getters["printer/getMcus"])!=null?s:[];return At(e,"name")}get hostStats(){var e;return(e=this.$store.getters["server/getHostStats"])!=null?e:null}};lh=oz([D({components:{SystemPanelMcu:X$,SystemPanelHost:Z$,Panel:B}})],lh);var lz=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(B,{attrs:{title:e.$t("Machine.SystemPanel.SystemLoad"),icon:e.mdiMemory,"card-class":"machine-systemload-panel",collapsible:!0}},[t(q,{staticClass:"px-0 py-2"},[e._l(e.mcus,function(r,i){return t("div",{key:r.name},[i?t(U,{staticClass:"my-2"}):e._e(),t(X$,{attrs:{mcu:r}})],1)}),e.hostStats?t("div",[e.mcus.length?t(U,{staticClass:"my-2"}):e._e(),t(Z$)],1):e._e()],2)],1)},cz=[];const eb={};var uz=E(lh,lz,cz,!1,dz,"0449534b",null,null);function dz(e){for(let s in eb)this[s]=eb[s]}const Y$=function(){return uz.exports}();var mz=Object.defineProperty,hz=Object.getOwnPropertyDescriptor,pz=(e,s,t,r)=>{for(var i=r>1?void 0:r?hz(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&mz(s,t,i),i};let ch=class extends M(O){};ch=pz([D({components:{SystemPanel:Y$,ConfigFilesPanel:z$,EndstopPanel:w$,LogfilesPanel:x$,UpdatePanel:C$,KlippyStatePanel:Na}})],ch);var fz=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Ae,{attrs:{fluid:"","py-0":"","px-0":""}},[t($,[t(_,{staticClass:"col-12 col-md-6 pb-0 pb-md-3"},[t(z$)],1),t(_,{staticClass:"col-12 col-md-6 pt-0 pt-md-3"},[t(Na),t(Y$),t(C$),t($,[e.klipperState==="ready"?t(_,{staticClass:"col-12 col-sm-6 pb-0 pb-md-3"},[t(w$)],1):e._e(),t(_,{class:e.klipperState!=="ready"?"col-12":"col-12 col-sm-6 pt-0 pt-sm-3"},[t(x$)],1)],1)],1)],1)],1)},gz=[];const tb={};var vz=E(ch,fz,gz,!1,_z,null,null,null);function _z(e){for(let s in tb)this[s]=tb[s]}const bz=function(){return vz.exports}(),J$=[{name:"dashboard",title:"Dashboard",path:"/",icon:Pp,component:f8,alwaysShow:!0,showInNavi:!0,position:10},{name:"farm",title:"Printers",path:"/allPrinters",component:j8,alwaysShow:!1,showInNavi:!1},{name:"webcam",title:"Webcam",path:"/cam",icon:sn,component:x8,alwaysShow:!0,showInNavi:!0,position:20,fullscreen:!0},{name:"console",title:"Console",path:"/console",icon:Fa,component:W8,alwaysShow:!0,showInNavi:!0,klipperIsConnected:!0,position:30},{name:"heightmap",title:"Heightmap",path:"/heightmap",icon:Bc,component:()=>fe(()=>import("./Heightmap-a5103d86.js"),["assets/Heightmap-a5103d86.js","assets/vuetify-4c65b4c3.js","assets/vuetify-950d1cb0.css","assets/echarts-ff51454d.js","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/Heightmap-acf3d6b7.css"]),alwaysShow:!1,showInNavi:!0,klipperComponent:"bed_mesh",position:40},{name:"gcodefiles",title:"G-Code Files",path:"/files",icon:Uc,component:ij,alwaysShow:!0,showInNavi:!0,registeredDirectory:"gcodes",position:50,fullscreen:!0},{name:"gcodeviewer",title:"G-Code Viewer",path:"/viewer",icon:Jc,component:()=>fe(()=>import("./Viewer-ac934cb5.js"),["assets/Viewer-ac934cb5.js","assets/vuetify-4c65b4c3.js","assets/vuetify-950d1cb0.css","assets/codemirror-0a1db0c7.js","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-ff51454d.js","assets/Viewer-815597de.css"]),alwaysShow:!0,showInNavi:!0,position:60,fullscreen:!0},{name:"history",title:"History",path:"/history",icon:HT,component:lI,alwaysShow:!0,showInNavi:!0,moonrakerComponent:"history",position:70},{name:"timelapse",title:"Timelapse",path:"/timelapse",icon:l2,component:EI,alwaysShow:!0,showInNavi:!0,moonrakerComponent:"timelapse",position:80},{name:"machine",title:"Machine",path:"/config",icon:x3,component:bz,alwaysShow:!0,showInNavi:!0,position:90},{title:null,component:null,alwaysShow:!1,showInNavi:!1,path:"/settings/machine",redirect:"/config"}];var yz=Object.defineProperty,Cz=Object.getOwnPropertyDescriptor,K$=(e,s,t,r)=>{for(var i=r>1?void 0:r?Cz(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&yz(s,t,i),i};let Ui=class extends M(O){constructor(){super(...arguments),this.customNaviLinks=[]}get countPrinters(){return this.$store.getters["farm/countPrinters"]}get routesNaviPoints(){const e=[];return this.countPrinters&&e.push({title:this.$t("App.Printers"),icon:C3,to:"/allPrinters",position:0,visible:!0}),J$.filter(s=>s.showInNavi&&this.showInNavi(s)).forEach(s=>{var i,n;const[t,r]=this.getUiSettings({type:"route",title:(i=s.title)!=null?i:"unknown",visible:!0,position:(n=s.position)!=null?n:999});e.push({type:"route",title:this.$t("Router.".concat(s.title)),orgTitle:s.title,icon:s.icon,to:s.path,position:t,visible:r})}),this.customNaviLinks.length&&this.customNaviLinks.forEach(s=>{var i,n,a;const[t,r]=this.getUiSettings({type:"link",title:(i=s.title)!=null?i:"unknown",visible:(n=s.visible)!=null?n:!0,position:(a=s.position)!=null?a:999});e.push({type:"link",title:s.title,icon:s.icon,href:s.href,target:s.target,position:t,visible:r})}),e}get naviPoints(){return this.routesNaviPoints.sort((e,s)=>e.position-s.position)}get visibleNaviPoints(){return this.naviPoints.filter(e=>e.visible)}get uiSettings(){return this.$store.state.gui.navigation.entries}get klippy_state(){return this.$store.state.server.klippy_state}get boolNaviWebcam(){return this.$store.state.gui.uiSettings.boolWebcamNavi}get moonrakerComponents(){return this.$store.state.server.components}get registeredDirectories(){return this.$store.state.server.registered_directories}get klipperConfigfileSettings(){var e,s;return(s=(e=this.$store.state.printer.configfile)==null?void 0:e.settings)!=null?s:{}}get sidebarNaviFile(){return this.$store.getters["files/getCustomNaviPoints"]}get webcamCount(){return this.$store.getters["gui/webcams/getWebcams"].length}async sidebarNaviFileChanged(e){if(this.customNaviLinks=[],!e)return;(await fetch(e).then(t=>t.json()).catch(t=>{throw window.console.error("Unable to parse .theme/navi.json."),t})).forEach(t=>{var r,i,n,a,o;this.customNaviLinks.push({title:(r=t.title)!=null?r:"Unknown",icon:(i=t.icon)!=null?i:Uy,href:(n=t.href)!=null?n:"#",target:(a=t.target)!=null?a:void 0,position:(o=t.position)!=null?o:999})})}showInNavi(e){return["shutdown","error","disconnected"].includes(this.klippy_state)&&!e.alwaysShow||e.title==="Webcam"&&this.webcamCount===0||e.moonrakerComponent&&!this.moonrakerComponents.includes(e.moonrakerComponent)||e.registeredDirectory&&!this.registeredDirectories.includes(e.registeredDirectory)||e.klipperComponent&&!(e.klipperComponent in this.klipperConfigfileSettings)?!1:!(e.klipperIsConnected&&!this.klippyIsConnected)}getUiSettings(e){const s=this.uiSettings.findIndex(t=>t.title===e.title&&t.type===e.type);return s===-1?[e.position,e.visible]:[this.uiSettings[s].position,this.uiSettings[s].visible]}};K$([me("sidebarNaviFile",{immediate:!0})],Ui.prototype,"sidebarNaviFileChanged",1);Ui=K$([D],Ui);var $z=Object.defineProperty,xz=Object.getOwnPropertyDescriptor,wz=(e,s,t,r)=>{for(var i=r>1?void 0:r?xz(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&$z(s,t,i),i};let uh=class extends M(Ui,O,_t){constructor(){super(...arguments),this.navigationWidth=BD,this.topbarHeight=kn}get naviDrawer(){return this.$store.state.naviDrawer}set naviDrawer(e){this.$store.dispatch("setNaviDrawer",e)}get navigationStyle(){return this.$store.state.gui.uiSettings.navigationStyle}get sidebarBackground(){var e;return(e=this.$store.getters["files/getCustomSidebarBackground"])!=null?e:this.sidebarBgImage}get currentPage(){return this.$route.fullPath}get boolNaviTemp(){return!this.isMobile&&this.$vuetify.breakpoint.mdAndDown}get sidebarCssVars(){return this.boolNaviTemp?{top:"".concat(kn,"px !important"),"padding-bottom":"".concat(kn,"px")}:{}}get sidebarLogo(){return this.$store.getters["files/getSidebarLogo"]}get logoColor(){return this.$store.state.gui.uiSettings.logo}get printerName(){return this.$store.state.gui.general.printername.length?this.$store.state.gui.general.printername:this.$store.state.printer.hostname}get logoCssVars(){return this.navigationStyle!=="iconsOnly"?{"margin-right":"16px"}:{}}get mobileLogoClass(){const e=["sidebar-logo","no-text-decoration","no-background","no-border"];return this.navigationStyle==="iconsOnly"&&(e.push("pa-0"),e.push("justify-center")),e}};uh=wz([D({components:{SidebarItem:p2,TheSelectPrinterDialog:Op,AboutDialog:m2,MainsailLogo:rn}})],uh);var Sz=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(xP,{key:e.navigationStyle,style:e.sidebarCssVars,attrs:{"mini-variant":e.navigationStyle==="iconsOnly",width:e.navigationWidth,temporary:e.boolNaviTemp,clipped:"",app:""},scopedSlots:e._u([{key:"img",fn:function(){return[t(Fc,{attrs:{src:e.sidebarBackground,height:"100%"}})]},proxy:!0},{key:"append",fn:function(){return[t(J,{staticClass:"small-list-item mb-2"},[t(Is,{staticClass:"menu-item-icon"},[t(m2)],1)],1)]},proxy:!0}]),model:{value:e.naviDrawer,callback:function(r){e.naviDrawer=r},expression:"naviDrawer"}},[t("overlay-scrollbars",{staticClass:"nav-scrollbar"},[t(Oe,{staticClass:"pr-0 pt-0 ml-0"},[t(wP,{attrs:{"active-class":"active-nav-item"}},[e.isMobile?t(J,{class:e.mobileLogoClass,style:"height: "+e.topbarHeight+"px",attrs:{router:"",to:"/",ripple:!1}},[e.sidebarLogo?[t("img",{staticClass:"nav-logo",style:e.logoCssVars,attrs:{src:e.sidebarLogo,alt:"Logo"}})]:[t(rn,{staticClass:"nav-logo",style:e.logoCssVars,attrs:{color:e.logoColor,ripple:!1}})],e.navigationStyle!=="iconsOnly"?[t("span",{staticClass:"text-h6 font-weight-regular text-truncate"},[e._v(e._s(e.printerName))])]:e._e()],2):e._e(),e._l(e.visibleNaviPoints,function(r,i){return t(p2,{key:i,attrs:{item:r}})})],2)],1)],1)],1)},Pz=[];const sb={};var Dz=E(uh,Sz,Pz,!1,Tz,"1a6ff80c",null,null);function Tz(e){for(let s in sb)this[s]=sb[s]}const Q$=function(){return Dz.exports}();var Mz=Object.defineProperty,Ez=Object.getOwnPropertyDescriptor,Oz=(e,s,t,r)=>{for(var i=r>1?void 0:r?Ez(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Mz(s,t,i),i};let dh=class extends M(O){constructor(){super(...arguments),this.mdiAlert=QD,this.mdiCloseThick=pe,this.mdiPowerStandby=t3,this.mdiRestart=Zr,this.mdiPlay=en,this.mdiPower=Yy,this.mdiStop=s2,this.mdiToggleSwitch=Ep,this.mdiToggleSwitchOff=g3,this.showMenu=!1,this.dialogPowerDeviceChange={show:!1,device:"",value:""},this.dialogConfirmation={show:!1,serviceName:null,executableFunction:null,title:"",description:"",actionButtonText:""}}get services(){var s,t,r;const e=(r=(t=(s=this.$store.state.server.system_info)==null?void 0:s.available_services)==null?void 0:t.filter(i=>i!=="klipper_mcu"))!=null?r:[];return e.sort(),e}get powerDevices(){var s;return((s=this.$store.getters["server/power/getDevices"])!=null?s:[]).filter(t=>!t.device.startsWith("_"))}get service_states(){var e,s;return(s=(e=this.$store.state.server.system_info)==null?void 0:e.service_state)!=null?s:{}}getServiceState(e){return e in this.service_states?this.service_states[e].active_state:null}getServiceSubState(e){return e in this.service_states?this.service_states[e].sub_state:null}checkDialog(e,s,t){if(this.printerIsPrinting){this.dialogConfirmation.executableFunction=e,this.dialogConfirmation.serviceName=s;const r=t.trim().charAt(0).toUpperCase()+t.trim().slice(1);let i="App.TopCornerMenu.ConfirmationDialog.Title.Service"+r,n="App.TopCornerMenu.ConfirmationDialog.Description.Service"+r,a="App.TopCornerMenu."+r;s==="klipper"&&["stop","restart","firmwareRestart"].includes(t)?(i="App.TopCornerMenu.ConfirmationDialog.Title."+(t!=="stop"?"Klipper":"Service")+r,n="App.TopCornerMenu.ConfirmationDialog.Description.Klipper"+r,t==="firmwareRestart"&&(a="App.TopCornerMenu.KlipperFirmwareRestart")):s==="host"&&(i="App.TopCornerMenu.ConfirmationDialog.Title.Host"+r,n="App.TopCornerMenu.ConfirmationDialog.Description.Host"+r),this.dialogConfirmation.title=this.$t(i).toString(),this.dialogConfirmation.description=this.$t(n).toString(),this.dialogConfirmation.actionButtonText=this.$t(a).toString(),this.dialogConfirmation.show=!0}else e(s)}executeDialog(){this.dialogConfirmation.executableFunction(this.dialogConfirmation.serviceName),this.dialogConfirmation.show=!1}klipperRestart(){this.showMenu=!1,this.$store.dispatch("server/addEvent",{message:"RESTART",type:"command"}),this.$socket.emit("printer.gcode.script",{script:"RESTART"})}klipperFirmwareRestart(){this.showMenu=!1,this.$store.dispatch("server/addEvent",{message:"FIRMWARE_RESTART",type:"command"}),this.$socket.emit("printer.gcode.script",{script:"FIRMWARE_RESTART"})}serviceStart(e){this.showMenu=!1,this.$socket.emit("machine.services.start",{service:e})}serviceRestart(e){this.showMenu=!1,this.$socket.emit("machine.services.restart",{service:e})}serviceStop(e){this.showMenu=!1,this.$socket.emit("machine.services.stop",{service:e})}changeSwitch(e,s){this.dialogPowerDeviceChange.device=e.device,this.dialogPowerDeviceChange.value=s,this.$store.state.gui.uiSettings.confirmOnPowerDeviceChange?this.dialogPowerDeviceChange.show=!0:this.powerDeviceToggle()}powerDeviceToggle(){this.dialogPowerDeviceChange.show=!1;const e=this.dialogPowerDeviceChange.value==="off"?"machine.device_power.on":"machine.device_power.off";this.$socket.emit(e,{[this.dialogPowerDeviceChange.device]:null},{action:"server/power/responseToggle"})}hostReboot(){this.showMenu=!1,this.$socket.emit("machine.reboot",{})}hostShutdown(){this.showMenu=!1,this.$socket.emit("machine.shutdown",{})}};dh=Oz([D({components:{Panel:B}})],dh);var Lz=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t($e,{attrs:{bottom:"",left:"","offset-y":!0,"close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({attrs:{icon:"",tile:""}},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.mdiPowerStandby))])],1)]}}]),model:{value:e.showMenu,callback:function(r){e.showMenu=r},expression:"showMenu"}},[t(Oe,{attrs:{dense:""}},[e.klipperState!=="disconnected"?[t(_s,{staticStyle:{height:"auto"}},[e._v(" "+e._s(e.$t("App.TopCornerMenu.KlipperControl"))+" ")]),t(J,{staticClass:"minheight30 pr-2",attrs:{link:""},on:{click:function(r){return e.checkDialog(e.klipperRestart,"klipper","restart")}}},[t(Ge,[e._v(e._s(e.$t("App.TopCornerMenu.KlipperRestart")))]),t(ti,{staticClass:"my-0 d-flex flex-row",staticStyle:{"min-width":"auto"}},[t(v,{staticClass:"mr-2",attrs:{small:""}},[e._v(e._s(e.mdiRestart))])],1)],1),t(J,{staticClass:"minheight30 pr-2",attrs:{link:""},on:{click:function(r){return e.checkDialog(e.klipperFirmwareRestart,"klipper","firmwareRestart")}}},[t(Ge,[e._v(e._s(e.$t("App.TopCornerMenu.KlipperFirmwareRestart")))]),t(ti,{staticClass:"my-0 d-flex flex-row",staticStyle:{"min-width":"auto"}},[t(v,{staticClass:"mr-2",attrs:{small:""}},[e._v(e._s(e.mdiRestart))])],1)],1)]:e._e(),e.services.length?[e.klipperState!=="disconnected"?t(U,{staticClass:"mt-0"}):e._e(),t(_s,{staticClass:"pt-2",staticStyle:{height:"auto"}},[e._v(" "+e._s(e.$t("App.TopCornerMenu.ServiceControl"))+" ")]),e._l(e.services,function(r){return t(J,{key:r,staticClass:"minheight30 pr-2"},[t(Ge,[t(de,{attrs:{left:""},scopedSlots:e._u([{key:"activator",fn:function(i){var n=i.on,a=i.attrs;return[t("span",e._g(e._b({},"span",a,!1),n),[e._v(" "+e._s(r.charAt(0).toUpperCase()+r.slice(1))+" ")])]}}],null,!0)},[t("span",[e._v(e._s(e.getServiceState(r))+" ("+e._s(e.getServiceSubState(r))+")")])])],1),t(ti,{staticClass:"my-0 d-flex flex-row",staticStyle:{"min-width":"auto"}},[e.getServiceState(r)==="inactive"?t(g,{attrs:{icon:"",small:""},on:{click:function(i){return e.checkDialog(e.serviceStart,r,"start")}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiPlay))])],1):t(g,{attrs:{icon:"",small:""},on:{click:function(i){return e.checkDialog(e.serviceRestart,r,"restart")}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiRestart))])],1),t(g,{style:r==="moonraker"?"visibility: hidden;":"",attrs:{icon:"",small:"",disabled:e.getServiceState(r)==="inactive"||r==="moonraker"},on:{click:function(i){return e.checkDialog(e.serviceStop,r,"stop")}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiStop))])],1)],1)],1)})]:e._e(),e.powerDevices.length?[t(U,{staticClass:"mt-0"}),t(_s,{staticClass:"pt-2",staticStyle:{height:"auto"}},[e._v(" "+e._s(e.$t("App.TopCornerMenu.PowerDevices"))+" ")]),e._l(e.powerDevices,function(r,i){return t(J,{key:i,staticClass:"minheight30 pr-2",attrs:{disabled:r.status==="error"||r.locked_while_printing&&["printing","paused"].includes(e.printer_state)},on:{click:function(n){return e.changeSwitch(r,r.status)}}},[t(Ge,[e._v(e._s(r.device))]),t(ti,{staticClass:"my-0 d-flex flex-row",staticStyle:{"min-width":"auto"}},[t(v,{staticClass:"mr-2",attrs:{color:r.status==="on"?"":"grey darken-2"}},[e._v(" "+e._s(r.status==="on"?e.mdiToggleSwitch:e.mdiToggleSwitchOff)+" ")])],1)],1)})]:e._e(),t(U,{staticClass:"mt-0"}),t(_s,{staticClass:"pt-2",staticStyle:{height:"auto"}},[e._v(e._s(e.$t("App.TopCornerMenu.HostControl")))]),t(J,{staticClass:"minheight30 pr-2",attrs:{link:""},on:{click:function(r){return e.checkDialog(e.hostReboot,"host","reboot")}}},[t(Ge,[e._v(e._s(e.$t("App.TopCornerMenu.Reboot")))]),t(ti,{staticClass:"my-0 d-flex flex-row",staticStyle:{"min-width":"auto"}},[t(v,{staticClass:"mr-2",attrs:{small:""}},[e._v(e._s(e.mdiPower))])],1)],1),t(J,{staticClass:"minheight30 pr-2",attrs:{link:""},on:{click:function(r){return e.checkDialog(e.hostShutdown,"host","shutdown")}}},[t(Ge,[e._v(e._s(e.$t("App.TopCornerMenu.Shutdown")))]),t(ti,{staticClass:"my-0 d-flex flex-row",staticStyle:{"min-width":"auto"}},[t(v,{staticClass:"mr-2",attrs:{small:""}},[e._v(e._s(e.mdiPower))])],1)],1)],2)],1),t(oe,{attrs:{width:"400",fullscreen:e.isMobile},model:{value:e.dialogPowerDeviceChange.show,callback:function(r){e.$set(e.dialogPowerDeviceChange,"show",r)},expression:"dialogPowerDeviceChange.show"}},[t(xe,[t(gt,{staticClass:"headline"},[e._v(" "+e._s(e.dialogPowerDeviceChange.value==="off"?e.$t("PowerDeviceChangeDialog.TurnDeviceOn",{device:e.dialogPowerDeviceChange.device}):e.$t("PowerDeviceChangeDialog.TurnDeviceOff",{device:e.dialogPowerDeviceChange.device}))+" ")]),t(q,[e._v(e._s(e.$t("PowerDeviceChangeDialog.AreYouSure")))]),t(ne,[t(ae),t(g,{attrs:{color:"red darken-1",text:""},on:{click:function(r){e.dialogPowerDeviceChange.show=!1}}},[e._v(" "+e._s(e.$t("PowerDeviceChangeDialog.No"))+" ")]),t(g,{attrs:{color:"green darken-1",text:""},on:{click:e.powerDeviceToggle}},[e._v(" "+e._s(e.$t("PowerDeviceChangeDialog.Yes"))+" ")])],1)],1)],1),t(oe,{attrs:{width:"400",fullscreen:e.isMobile},model:{value:e.dialogConfirmation.show,callback:function(r){e.$set(e.dialogConfirmation,"show",r)},expression:"dialogConfirmation.show"}},[t(B,{attrs:{"card-class":"confirm-top-corner-menu-dialog",icon:e.mdiAlert,title:e.dialogConfirmation.title,"margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.dialogConfirmation.show=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,{staticClass:"pt-3"},[t($,[t(_,[t("p",{staticClass:"body-2"},[e._v(e._s(e.dialogConfirmation.description))])])],1)],1),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:function(r){e.dialogConfirmation.show=!1}}},[e._v(" "+e._s(e.$t("App.TopCornerMenu.Cancel"))+" ")]),t(g,{attrs:{text:"",color:"error"},on:{click:e.executeDialog}},[e._v(" "+e._s(e.dialogConfirmation.actionButtonText)+" ")])],1)],1)],1)],1)},Az=[];const rb={};var kz=E(dh,Lz,Az,!1,Fz,"371c81fd",null,null);function Fz(e){for(let s in rb)this[s]=rb[s]}const ex=function(){return kz.exports}();var Rz=Object.defineProperty,jz=Object.getOwnPropertyDescriptor,Hf=(e,s,t,r)=>{for(var i=r>1?void 0:r?jz(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Rz(s,t,i),i};let _a=class extends M(O){constructor(){super(...arguments),this.selectedCheckboxes=[],this.selectAllIndeterminate=!1,this.selectAllModel=$r({get:this.getSelectAll,set:this.setSelectAll})}getSelectAll(){return this.selectAllIndeterminate=!1,0<this.selectedCheckboxes.length&&this.selectedCheckboxes.length<this.options.length?(this.selectAllIndeterminate=!0,!1):this.selectedCheckboxes.length==this.options.length}setSelectAll(s){if(s){this.selectedCheckboxes=this.options.map(t=>t.value);return}this.selectedCheckboxes=[]}};Hf([P({required:!0})],_a.prototype,"options",2);Hf([P({type:Boolean,required:!1,default:!1})],_a.prototype,"selectAll",2);_a=Hf([D],_a);var Hz=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(_,{staticClass:"pl-6"},[e.selectAll?[t(_e,{staticClass:"mt-0",attrs:{label:e.$t("Settings.GeneralTab.Everything"),"hide-details":"",indeterminate:e.selectAllIndeterminate},on:{change:function(r){return e.$emit("update:selectedCheckboxes",e.selectedCheckboxes)}},model:{value:e.selectAllModel,callback:function(r){e.selectAllModel=r},expression:"selectAllModel"}}),t(U,{staticClass:"my-2"})]:e._e(),e._l(e.options,function(r){return[t(_e,{key:r.value,staticClass:"mt-0",attrs:{label:r.label,"hide-details":"",value:r.value},on:{change:function(i){return e.$emit("update:selectedCheckboxes",e.selectedCheckboxes)}},model:{value:e.selectedCheckboxes,callback:function(i){e.selectedCheckboxes=i},expression:"selectedCheckboxes"}})]})],2)},Iz=[];const ib={};var Nz=E(_a,Hz,Iz,!1,Vz,null,null,null);function Vz(e){for(let s in ib)this[s]=ib[s]}const Jr=function(){return Nz.exports}();var Uz=Object.defineProperty,Bz=Object.getOwnPropertyDescriptor,Wz=(e,s,t,r)=>{for(var i=r>1?void 0:r?Bz(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Uz(s,t,i),i};let Bi=class extends O{get availableKeys(){return[{value:"general",label:this.$t("Settings.GeneralTab.General")},{value:"control",label:this.$t("Settings.ControlTab.Control")},{value:"dashboard",label:this.$t("Settings.DashboardTab.Dashboard")},{value:"editor",label:this.$t("Settings.EditorTab.Editor")},{value:"gcodeViewer",label:this.$t("Settings.GCodeViewerTab.GCodeViewer")},{value:"navigation",label:this.$t("Settings.GeneralTab.DbNavigation")},{value:"uiSettings",label:this.$t("Settings.UiSettingsTab.UiSettings")},{value:"view",label:this.$t("Settings.GeneralTab.DbView")},{value:"console",label:this.$t("Settings.ConsoleTab.Console")},{value:"gcodehistory",label:this.$t("Settings.GeneralTab.DbConsoleHistory")},{value:"macros",label:this.$t("Settings.MacrosTab.Macros")},{value:"notifications",label:this.$t("App.Notifications.Notifications")},{value:"presets",label:this.$t("Settings.PresetsTab.PreheatPresets")},{value:"remoteprinters",label:this.$t("Settings.RemotePrintersTab.RemotePrinters")},{value:"timelapse",label:this.$t("Settings.TimelapseTab.Timelapse")}]}async loadBackupableNamespaces(){let e=[];const s=this.$store.getters["socket/getUrl"]+"/server/database/list",t=await fetch(s).then(r=>r==null?void 0:r.json()).then(r=>{var i,n;return(n=(i=r==null?void 0:r.result)==null?void 0:i.namespaces)!=null?n:[]}).catch(()=>(window.console.error("Cannot load Moonraker DB namespaces"),[]));if(t.includes("mainsail")){const r=this.$store.getters["socket/getUrl"]+"/server/database/item?namespace=mainsail";e=await fetch(r).then(i=>i==null?void 0:i.json()).then(i=>{var n,a;return(a=(n=i==null?void 0:i.result)==null?void 0:n.value)!=null?a:{}}).then(i=>Object.keys(i)).then(i=>i.filter(n=>n!=="initVersion")).then(i=>i.map(n=>{const a=this.availableKeys.find(o=>o.value===n);return a||{value:n,label:n}})),e=e.sort(this.sortNamespaces)}return t.includes("maintenance")&&e.push({value:"maintenance",label:this.$t("Settings.GeneralTab.DbMaintenance")}),t.includes("timelapse")&&e.push({value:"timelapse",label:this.$t("Settings.GeneralTab.DbTimelapseSettings")}),t.includes("webcams")&&e.push({value:"webcams",label:this.$t("Settings.WebcamsTab.Webcams")}),e}sortNamespaces(e,s){if(e.value==="general")return-1;if(s.value==="general")return 1;const t=e.label.toString().toLowerCase(),r=s.label.toString().toLowerCase();return t<r?-1:t>r?1:0}};Bi=Wz([D],Bi);var Gz=Object.defineProperty,zz=Object.getOwnPropertyDescriptor,Zz=(e,s,t,r)=>{for(var i=r>1?void 0:r?zz(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Gz(s,t,i),i};let mh=class extends M(O,Bi){constructor(){super(...arguments),this.mdiHelpCircle=Wc,this.mdiCloseThick=pe,this.showDialog=!1,this.backupableNamespaces=[],this.backupCheckboxes=[]}async mounted(){this.backupableNamespaces=await this.loadBackupableNamespaces()}onSelectBackupCheckboxes(s){this.backupCheckboxes=s}async backupMainsail(){await this.$store.dispatch("socket/addLoading","backupMainsail"),await this.$store.dispatch("gui/backupMoonrakerDB",this.backupCheckboxes),await this.$store.dispatch("socket/removeLoading","backupMainsail"),this.closeDialog()}async openDialog(){this.backupableNamespaces=await this.loadBackupableNamespaces(),this.showDialog=!0}closeDialog(){this.showDialog=!1}};mh=Zz([D({components:{Panel:B,SettingsRow:V,CheckboxList:Jr}})],mh);var qz=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(g,{attrs:{loading:e.loadings.includes("backupDbButton"),small:""},on:{click:e.openDialog}},[e._v(" "+e._s(e.$t("Settings.GeneralTab.Backup"))+" ")]),t(oe,{attrs:{persistent:"",width:360},model:{value:e.showDialog,callback:function(r){e.showDialog=r},expression:"showDialog"}},[t(B,{attrs:{title:e.$t("Settings.GeneralTab.Backup"),"card-class":"mainsail-backup-dialog","margin-bottom":!1,icon:e.mdiHelpCircle},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t($,[t(_,[t("p",{staticClass:"mb-0"},[e._v(e._s(e.$t("Settings.GeneralTab.BackupDialog")))])])],1),t($,[t(Jr,{attrs:{options:e.backupableNamespaces,"select-all":""},on:{"update:selectedCheckboxes":e.onSelectBackupCheckboxes}})],1),t($,[t(_,{staticClass:"text-center"},[t(g,{attrs:{color:"red",loading:e.loadings.includes("backupMainsail")},on:{click:e.backupMainsail}},[e._v(" "+e._s(e.$t("Settings.GeneralTab.Backup"))+" ")])],1)],1)],1)],1)],1)],1)},Xz=[];const nb={};var Yz=E(mh,qz,Xz,!1,Jz,null,null,null);function Jz(e){for(let s in nb)this[s]=nb[s]}const tx=function(){return Yz.exports}();var Kz=Object.defineProperty,Qz=Object.getOwnPropertyDescriptor,eZ=(e,s,t,r)=>{for(var i=r>1?void 0:r?Qz(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Kz(s,t,i),i};let hh=class extends M(O,Bi){constructor(){super(...arguments),this.mdiHelpCircle=Wc,this.mdiCloseThick=pe,this.showDialog=!1,this.restoreableNamespaces=[],this.restoreCheckboxes=[],this.restoreObjects={}}onSelectRestoreCheckboxes(s){this.restoreCheckboxes=s}async restoreDb(){var s,t;(t=(s=this.$refs)==null?void 0:s.uploadBackupFile)==null||t.click()}uploadRestore(){var r,i,n,a;if(((i=(r=this.$refs.uploadBackupFile.files)==null?void 0:r.length)!=null?i:0)===0){window.console.error("No json uploaded");return}const s=(a=(n=this.$refs)==null?void 0:n.uploadBackupFile)==null?void 0:a.files[0],t=new FileReader;t.readAsText(s,"UTF-8"),t.onload=o=>{var l;this.restoreableNamespaces=[];try{this.restoreObjects=JSON.parse(((l=o==null?void 0:o.target)==null?void 0:l.result)+"");const c=Object.keys(this.restoreObjects);this.restoreableNamespaces=c.map(u=>{const d=this.availableKeys.find(m=>m.value===u);return d||{value:u,label:u}}),this.restoreableNamespaces=this.restoreableNamespaces.sort(this.sortNamespaces),this.openDialog()}catch{y.$toast.error(this.$t("Settings.GeneralTab.CannotReadJson").toString())}},t.onerror=o=>{window.console.error(o)},this.$refs.uploadBackupFile.value=""}openDialog(){this.showDialog=!0}closeDialog(){this.showDialog=!1}restoreDbAction(){this.$store.dispatch("socket/addLoading","restoreDbAction"),this.$store.dispatch("gui/restoreMoonrakerDB",{dbCheckboxes:this.restoreCheckboxes,restoreObjects:this.restoreObjects})}};hh=eZ([D({components:{SettingsGeneralTabBackupDatabase:tx,Panel:B,SettingsRow:V,CheckboxList:Jr}})],hh);var tZ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t("input",{ref:"uploadBackupFile",staticClass:"d-none",attrs:{type:"file",accept:[".json"]},on:{change:e.uploadRestore}}),t(g,{staticClass:"ml-3",attrs:{small:"",loading:e.loadings.includes("restoreUploadButton")},on:{click:e.restoreDb}},[e._v(" "+e._s(e.$t("Settings.GeneralTab.Restore"))+" ")]),t(oe,{attrs:{value:e.showDialog,persistent:"",width:360}},[t(B,{attrs:{title:e.$t("Settings.GeneralTab.Restore"),"card-class":"mainsail-restore-dialog","margin-bottom":!1,icon:e.mdiHelpCircle},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t($,[t(_,[t("p",{staticClass:"mb-0"},[e._v(e._s(e.$t("Settings.GeneralTab.RestoreDialog")))])])],1),t($,[t(Jr,{attrs:{options:e.restoreableNamespaces,"select-all":""},on:{"update:selectedCheckboxes":e.onSelectRestoreCheckboxes}})],1),t($,[t(_,{staticClass:"text-center"},[t(g,{attrs:{color:"red",loading:e.loadings.includes("restoreMainsail")},on:{click:e.restoreDbAction}},[e._v(" "+e._s(e.$t("Settings.GeneralTab.Restore"))+" ")])],1)],1)],1)],1)],1)],1)},sZ=[];const ab={};var rZ=E(hh,tZ,sZ,!1,iZ,null,null,null);function iZ(e){for(let s in ab)this[s]=ab[s]}const nZ=function(){return rZ.exports}();var aZ=Object.defineProperty,oZ=Object.getOwnPropertyDescriptor,lZ=(e,s,t,r)=>{for(var i=r>1?void 0:r?oZ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&aZ(s,t,i),i};let ph=class extends M(O,Bi){constructor(){super(...arguments),this.mdiHelpCircle=Wc,this.mdiCloseThick=pe,this.showDialog=!1,this.resetableNamespaces=[],this.resetCheckboxes=[]}async mounted(){await this.loadResetableNamespaces()}onSelectResetCheckboxes(s){this.resetCheckboxes=s}resetMainsailAction(){this.$store.dispatch("socket/addLoading","resetMainsail"),this.$store.dispatch("gui/resetMoonrakerDB",this.resetCheckboxes)}async openDialog(){await this.loadResetableNamespaces(),this.showDialog=!0}async loadResetableNamespaces(){this.resetableNamespaces=await this.loadBackupableNamespaces(),this.moonrakerComponents.includes("history")&&(this.resetableNamespaces.push({value:"history_jobs",label:this.$t("Settings.GeneralTab.DbHistoryJobs")}),this.resetableNamespaces.push({value:"history_totals",label:this.$t("Settings.GeneralTab.DbHistoryTotals")}))}closeDialog(){this.showDialog=!1}};ph=lZ([D({components:{Panel:B,SettingsRow:V,CheckboxList:Jr}})],ph);var cZ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(g,{attrs:{color:"error",small:""},on:{click:e.openDialog}},[e._v(" "+e._s(e.$t("Settings.GeneralTab.FactoryReset"))+" ")]),t(oe,{attrs:{persistent:"",width:360},model:{value:e.showDialog,callback:function(r){e.showDialog=r},expression:"showDialog"}},[t(B,{attrs:{title:e.$t("Settings.GeneralTab.FactoryReset"),"card-class":"mainsail-reset-dialog","margin-bottom":!1,icon:e.mdiHelpCircle},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closeDialog}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t($,[t(_,[t("p",{staticClass:"mb-0"},[e._v(e._s(e.$t("Settings.GeneralTab.FactoryDialog")))])])],1),t($,[t(Jr,{attrs:{options:e.resetableNamespaces,"select-all":""},on:{"update:selectedCheckboxes":e.onSelectResetCheckboxes}})],1),t($,[t(_,{staticClass:"text-center"},[t(g,{attrs:{color:"red",loading:e.loadings.includes("resetMainsail")},on:{click:e.resetMainsailAction}},[e._v(" "+e._s(e.$t("Settings.GeneralTab.Reset"))+" ")])],1)],1)],1)],1)],1)],1)},uZ=[];const ob={};var dZ=E(ph,cZ,uZ,!1,mZ,null,null,null);function mZ(e){for(let s in ob)this[s]=ob[s]}const hZ=function(){return dZ.exports}();var pZ=Object.defineProperty,fZ=Object.getOwnPropertyDescriptor,gZ=(e,s,t,r)=>{for(var i=r>1?void 0:r?fZ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&pZ(s,t,i),i};let fh=class extends M(O,Bi){constructor(){super(...arguments),this.availableLanguages=[]}async created(){const s=Object.assign({"../../locales/cz.json":()=>fe(()=>import("./cz-285b76fb.js"),[]).then(r=>r.title),"../../locales/da.json":()=>fe(()=>import("./da-32034265.js"),[]).then(r=>r.title),"../../locales/de.json":()=>fe(()=>import("./de-1b45e732.js"),[]).then(r=>r.title),"../../locales/en.json":()=>fe(()=>Promise.resolve().then(()=>Yw),void 0).then(r=>r.title),"../../locales/es.json":()=>fe(()=>import("./es-8a2d24bf.js"),[]).then(r=>r.title),"../../locales/fr.json":()=>fe(()=>import("./fr-ab90ab77.js"),[]).then(r=>r.title),"../../locales/hu.json":()=>fe(()=>import("./hu-a56cb065.js"),[]).then(r=>r.title),"../../locales/it.json":()=>fe(()=>import("./it-a13fb923.js"),[]).then(r=>r.title),"../../locales/ja.json":()=>fe(()=>import("./ja-a20a0276.js"),[]).then(r=>r.title),"../../locales/ko.json":()=>fe(()=>import("./ko-0b8d811b.js"),[]).then(r=>r.title),"../../locales/nl.json":()=>fe(()=>import("./nl-d64c7e44.js"),[]).then(r=>r.title),"../../locales/pl.json":()=>fe(()=>import("./pl-4358b7cc.js"),[]).then(r=>r.title),"../../locales/pt.json":()=>fe(()=>import("./pt-880f8881.js"),[]).then(r=>r.title),"../../locales/ru.json":()=>fe(()=>import("./ru-e26fbb6e.js"),[]).then(r=>r.title),"../../locales/se.json":()=>fe(()=>import("./se-23883ae1.js"),[]).then(r=>r.title),"../../locales/tr.json":()=>fe(()=>import("./tr-9777749c.js"),[]).then(r=>r.title),"../../locales/uk.json":()=>fe(()=>import("./uk-217f44de.js"),[]).then(r=>r.title),"../../locales/zh.json":()=>fe(()=>import("./zh-0b0471a0.js"),[]).then(r=>r.title),"../../locales/zh_TW.json":()=>fe(()=>import("./zh_TW-7176daef.js"),[]).then(r=>r.title)}),t=[];for(const r in s){const i=r.slice(r.lastIndexOf("/")+1,r.lastIndexOf(".")),n=await s[r]();t.push({text:n,value:i})}this.availableLanguages=t}get printerName(){return this.$store.state.gui.general.printername}set printerName(s){this.$store.dispatch("gui/saveSetting",{name:"general.printername",value:s})}get currentLanguage(){return this.$store.state.gui.general.language}set currentLanguage(s){this.$store.dispatch("gui/saveSetting",{name:"general.language",value:s})}get dateFormat(){return this.$store.state.gui.general.dateFormat}set dateFormat(s){this.$store.dispatch("gui/saveSetting",{name:"general.dateFormat",value:s})}get dateFormatItems(){const s=new Date,t=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language;return[{value:null,text:"Browser (".concat(s.toLocaleDateString(t,{dateStyle:"medium"}),")")},{value:"2-digits",text:s.toLocaleDateString(t,{day:"2-digit",month:"2-digit",year:"numeric"})},{value:"short",text:s.toLocaleDateString(t,{day:"2-digit",month:"short",year:"numeric"})}]}get timeFormat(){return this.$store.state.gui.general.timeFormat}set timeFormat(s){this.$store.dispatch("gui/saveSetting",{name:"general.timeFormat",value:s})}get timeFormatItems(){const s=new Date,t=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language;return[{value:null,text:"Browser (".concat(s.toLocaleTimeString(t,{timeStyle:"short"}),")")},{value:"24hours",text:this.$t("Settings.GeneralTab.24hours",{time:s.toLocaleTimeString(t,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"})})},{value:"12hours",text:this.$t("Settings.GeneralTab.12hours",{time:s.toLocaleTimeString(t,{hour:"2-digit",minute:"2-digit",hourCycle:"h12"})})}]}get calcPrintProgressItems(){return[{value:"file-relative",text:this.$t("Settings.GeneralTab.CalcPrintProgressItems.FileRelative")},{value:"file-absolute",text:this.$t("Settings.GeneralTab.CalcPrintProgressItems.FileAbsolute")},{value:"slicer",text:this.$t("Settings.GeneralTab.CalcPrintProgressItems.Slicer")},{value:"filament",text:this.$t("Settings.GeneralTab.CalcPrintProgressItems.Filament")}]}get calcPrintProgress(){var s;return(s=this.$store.state.gui.general.calcPrintProgress)!=null?s:"file-relative"}set calcPrintProgress(s){this.$store.dispatch("gui/saveSetting",{name:"general.calcPrintProgress",value:s})}get calcEstimateItems(){return[{value:"file",text:this.$t("Settings.GeneralTab.EstimateValues.File")},{value:"filament",text:this.$t("Settings.GeneralTab.EstimateValues.Filament")}]}get calcEstimateTime(){return this.$store.state.gui.general.calcEstimateTime}set calcEstimateTime(s){this.$store.dispatch("gui/saveSetting",{name:"general.calcEstimateTime",value:s})}get calcEtaTimeItems(){return[{value:"file",text:this.$t("Settings.GeneralTab.EstimateValues.File")},{value:"filament",text:this.$t("Settings.GeneralTab.EstimateValues.Filament")},{value:"slicer",text:this.$t("Settings.GeneralTab.EstimateValues.Slicer")}]}get calcEtaTime(){return this.$store.state.gui.general.calcEtaTime}set calcEtaTime(s){this.$store.dispatch("gui/saveSetting",{name:"general.calcEtaTime",value:s})}};fh=gZ([D({components:{Panel:B,SettingsRow:V,CheckboxList:Jr,SettingsGeneralTabBackupDatabase:tx,SettingsGeneralTabRestoreDatabase:nZ,SettingsGeneralTabResetDatabase:hZ}})],fh);var vZ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(xe,{attrs:{flat:""}},[t(q,[t(V,{attrs:{title:e.$t("Settings.GeneralTab.PrinterName")}},[t(te,{attrs:{"hide-details":"",outlined:"",dense:""},model:{value:e.printerName,callback:function(r){e.printerName=r},expression:"printerName"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.GeneralTab.Language")}},[t(Ee,{attrs:{items:e.availableLanguages,"hide-details":"",outlined:"",dense:""},model:{value:e.currentLanguage,callback:function(r){e.currentLanguage=r},expression:"currentLanguage"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.GeneralTab.DateFormat")}},[t(Ee,{attrs:{items:e.dateFormatItems,"hide-details":"",outlined:"",dense:""},model:{value:e.dateFormat,callback:function(r){e.dateFormat=r},expression:"dateFormat"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.GeneralTab.TimeFormat")}},[t(Ee,{attrs:{items:e.timeFormatItems,"hide-details":"",outlined:"",dense:""},model:{value:e.timeFormat,callback:function(r){e.timeFormat=r},expression:"timeFormat"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.GeneralTab.CalcPrintProgress"),"sub-title":e.$t("Settings.GeneralTab.CalcPrintProgressDescription")}},[t(Ee,{attrs:{items:e.calcPrintProgressItems,"hide-details":"",dense:"",outlined:""},model:{value:e.calcPrintProgress,callback:function(r){e.calcPrintProgress=r},expression:"calcPrintProgress"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.GeneralTab.CalcEstimateTime"),"sub-title":e.$t("Settings.GeneralTab.CalcEstimateTimeDescription")}},[t(Ee,{attrs:{items:e.calcEstimateItems,multiple:"","hide-details":"",dense:"",outlined:""},model:{value:e.calcEstimateTime,callback:function(r){e.calcEstimateTime=r},expression:"calcEstimateTime"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.GeneralTab.CalcEtaTime"),"sub-title":e.$t("Settings.GeneralTab.CalcEtaTimeDescription")}},[t(Ee,{attrs:{items:e.calcEtaTimeItems,multiple:"","hide-details":"",dense:"",outlined:""},model:{value:e.calcEtaTime,callback:function(r){e.calcEtaTime=r},expression:"calcEtaTime"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.GeneralTab.MainsailSettingsMoonrakerDb"),"dynamic-slot-width":!0}},[t("settings-general-tab-backup-database"),t("settings-general-tab-restore-database")],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.GeneralTab.FactoryReset"),"dynamic-slot-width":!0}},[t("settings-general-tab-reset-database")],1)],1)],1)],1)},_Z=[];const lb={};var bZ=E(fh,vZ,_Z,!1,yZ,null,null,null);function yZ(e){for(let s in lb)this[s]=lb[s]}const CZ=function(){return bZ.exports}();var $Z=Object.defineProperty,xZ=Object.getOwnPropertyDescriptor,If=(e,s,t,r)=>{for(var i=r>1?void 0:r?xZ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&$Z(s,t,i),i};let ba=class extends M(O,dr){constructor(){super(...arguments),this.mdiPencil=bt,this.mdiDelete=ze,this.mdiMenuDown=fr,this.selectIcon=!1,this.valid=!1,this.oldWebcamName="",this.rules={required:e=>e!==""||this.$t("Settings.WebcamsTab.Required"),unique:e=>!this.existsWebcamName(e)||this.$t("Settings.WebcamsTab.NameAlreadyExists")}}get webcams(){var e,s;return(s=(e=this.$store.state.gui.webcams)==null?void 0:e.webcams)!=null?s:[]}get title(){return this.type==="create"?this.$t("Settings.WebcamsTab.CreateWebcam"):this.$t("Settings.WebcamsTab.EditWebcam")}get actionButtonText(){return this.type==="create"?this.$t("Settings.WebcamsTab.SaveWebcam"):this.$t("Settings.WebcamsTab.UpdateWebcam")}get rotationItems(){const e=[0,90,180,270],s=[];return e.forEach(t=>{s.push({value:t,text:"".concat(t,"°")})}),s}get rulesStreamUrl(){let e=[];return this.webcam.service!=="mjpegstreamer-adaptive"&&e.push(this.rules.required),e}get rulesSnapshotUrl(){let e=[];return this.webcam.service==="mjpegstreamer-adaptive"&&e.push(this.rules.required),e}get serviceItems(){return[{value:"mjpegstreamer",text:this.$t("Settings.WebcamsTab.Mjpegstreamer")},{value:"mjpegstreamer-adaptive",text:this.$t("Settings.WebcamsTab.MjpegstreamerAdaptive")},{value:"uv4l-mjpeg",text:this.$t("Settings.WebcamsTab.Uv4lMjpeg")},{value:"ipstream",text:this.$t("Settings.WebcamsTab.Ipstream")},{value:"webrtc-camerastreamer",text:this.$t("Settings.WebcamsTab.WebrtcCameraStreamer")},{value:"webrtc-go2rtc",text:this.$t("Settings.WebcamsTab.WebrtcGo2rtc")},{value:"webrtc-mediamtx",text:this.$t("Settings.WebcamsTab.WebrtcMediaMTX")},{value:"hlsstream",text:this.$t("Settings.WebcamsTab.Hlsstream")},{value:"jmuxer-stream",text:this.$t("Settings.WebcamsTab.JMuxerStream")},{value:"webrtc-janus",text:this.$t("Settings.WebcamsTab.WebrtcJanus")}]}get iconItems(){return[{value:"mdiPrinter3d",text:this.$t("Settings.WebcamsTab.IconPrinter")},{value:"mdiPrinter3dNozzle",text:this.$t("Settings.WebcamsTab.IconNozzle")},{value:"mdiRadiatorDisabled",text:this.$t("Settings.WebcamsTab.IconBed")},{value:"mdiWebcam",text:this.$t("Settings.WebcamsTab.IconCam")},{value:"mdiAlbum",text:this.$t("Settings.WebcamsTab.IconFilament")},{value:"mdiDoor",text:this.$t("Settings.WebcamsTab.IconDoor")},{value:"mdiRaspberryPi",text:this.$t("Settings.WebcamsTab.IconMcu")},{value:"mdiCampfire",text:this.$t("Settings.WebcamsTab.IconHot")}]}get classIconButtonArrow(){let e=["_transition"];return this.selectIcon&&e.push("_rotate-180"),e}get hasFpsCounter(){return["mjpegstreamer","mjpegstreamer-adaptive"].includes(this.webcam.service)}get hasAudioOption(){return["webrtc-go2rtc"].includes(this.webcam.service)}get hideFps(){var e,s;return(s=(e=this.webcam.extra_data)==null?void 0:e.hideFps)!=null?s:!1}set hideFps(e){if(!("extra_data"in this.webcam)){this.webcam.extra_data={hideFps:e};return}this.webcam.extra_data.hideFps=e}get enableAudio(){var e,s;return(s=(e=this.webcam.extra_data)==null?void 0:e.enableAudio)!=null?s:!1}set enableAudio(e){if(!("extra_data"in this.webcam)){this.webcam.extra_data={enableAudio:e};return}this.webcam.extra_data.enableAudio=e}mounted(){this.oldWebcamName=this.webcam.name}existsWebcamName(e){var t,r;e=e.toLowerCase().trim();const s=(r=(t=this.webcams.find(i=>i.name.toLowerCase().trim()===e))==null?void 0:t.length)!=null?r:0;return this.type==="create"?s!==0:s>=1}submit(){if(this.type==="create"){this.save();return}this.update()}async save(){await this.$store.dispatch("gui/webcams/store",this.webcam),this.$emit("close")}async update(){await this.$store.dispatch("gui/webcams/update",{webcam:this.webcam,oldWebcamName:this.oldWebcamName}),this.$emit("close")}closeForm(){this.$emit("close")}};If([P({type:Object,required:!0})],ba.prototype,"webcam",2);If([P({type:String,default:"create"})],ba.prototype,"type",2);ba=If([D({components:{SettingsRow:V}})],ba);var wZ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(cr,{ref:"webcamForm",on:{submit:function(r){return r.preventDefault(),e.submit.apply(null,arguments)}},model:{value:e.valid,callback:function(r){e.valid=r},expression:"valid"}},[t(gt,[e._v(e._s(e.title))]),t(q,[t($,[t(_,{staticClass:"col-12 col-sm-6"},[t($,[t(_,{staticClass:"d-flex"},[t(Vt,[t($e,{attrs:{"offset-y":!0,title:"Icon"},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"px-2 mr-2 _transition _menu-button",attrs:{color:"transparent",elevation:"0",ripple:!1}},"v-btn",n,!1),i),[t(v,[e._v(e._s(e.convertWebcamIcon(e.webcam.icon)))]),t(v,{staticClass:"pl-1 mr-n2",class:e.classIconButtonArrow},[e._v(" "+e._s(e.mdiMenuDown)+" ")])],1)]}}]),model:{value:e.selectIcon,callback:function(r){e.selectIcon=r},expression:"selectIcon"}},[t(Oe,{staticClass:"py-0",attrs:{dense:""}},e._l(e.iconItems,function(r){return t(J,{key:r.value,attrs:{link:""},on:{click:function(i){e.webcam.icon=r.value}}},[t(Is,{staticClass:"mr-2"},[t(v,{staticClass:"mt-1",attrs:{small:""}},[e._v(" "+e._s(e.convertWebcamIcon(r.value))+" ")])],1),t(vt,[t(Ge,{domProps:{textContent:e._s(r.text)}})],1)],1)}),1)],1)],1),t(te,{staticClass:"_webcam-settings-name-field",attrs:{label:e.$t("Settings.WebcamsTab.Name"),"hide-details":"auto",outlined:"",rules:[e.rules.required,e.rules.unique],dense:""},model:{value:e.webcam.name,callback:function(r){e.$set(e.webcam,"name",r)},expression:"webcam.name"}})],1)],1),t($,[t(_,{staticClass:"py-2"},[t(te,{attrs:{label:e.$t("Settings.WebcamsTab.UrlStream"),"hide-details":"auto",outlined:"",dense:"",rules:e.rulesStreamUrl},model:{value:e.webcam.stream_url,callback:function(r){e.$set(e.webcam,"stream_url",r)},expression:"webcam.stream_url"}})],1)],1),t($,[t(_,{staticClass:"py-2"},[t(te,{attrs:{label:e.$t("Settings.WebcamsTab.UrlSnapshot"),"hide-details":"auto",outlined:"",dense:"",rules:e.rulesSnapshotUrl},model:{value:e.webcam.snapshot_url,callback:function(r){e.$set(e.webcam,"snapshot_url",r)},expression:"webcam.snapshot_url"}})],1)],1),t($,[t(_,{staticClass:"py-2"},[t(Ee,{attrs:{items:e.serviceItems,"hide-details":"",outlined:"",dense:"",label:e.$t("Settings.WebcamsTab.Service")},model:{value:e.webcam.service,callback:function(r){e.$set(e.webcam,"service",r)},expression:"webcam.service"}})],1)],1),["mjpegstreamer-adaptive","jmuxer-stream"].includes(e.webcam.service)?t($,[t(_,{staticClass:"py-2 col-6"},[t(te,{attrs:{outlined:"",dense:"","hide-details":"",label:e.$t("Settings.WebcamsTab.TargetFPS")},model:{value:e.webcam.target_fps,callback:function(r){e.$set(e.webcam,"target_fps",r)},expression:"webcam.target_fps"}})],1),t(_,{staticClass:"py-2 col-6"},[t(Ee,{attrs:{items:e.rotationItems,outlined:"",dense:"","hide-details":"",label:e.$t("Settings.WebcamsTab.Rotate")},model:{value:e.webcam.rotation,callback:function(r){e.$set(e.webcam,"rotation",r)},expression:"webcam.rotation"}})],1)],1):e._e(),e.hasFpsCounter?t($,[t(_,{staticClass:"pt-1 pb-3"},[t(_e,{staticClass:"mt-1",attrs:{"hide-details":"",label:e.$t("Settings.WebcamsTab.HideFps")},model:{value:e.hideFps,callback:function(r){e.hideFps=r},expression:"hideFps"}})],1)],1):e._e(),e.hasAudioOption?t($,[t(_,{staticClass:"pt-1 pb-3"},[t(_e,{staticClass:"mt-1",attrs:{"hide-details":"",label:e.$t("Settings.WebcamsTab.EnableAudio")},model:{value:e.enableAudio,callback:function(r){e.enableAudio=r},expression:"enableAudio"}})],1)],1):e._e(),t($,[t(_,{staticClass:"pt-1 pb-3"},[t("div",{staticClass:"v-label v-label--active theme--dark text-subtitle-1"},[e._v(" "+e._s(e.$t("Settings.WebcamsTab.FlipWebcam"))+" ")])])],1),t($,{staticClass:"mt-0"},[t(_,{staticClass:"py-0"},[t(_e,{staticClass:"mt-1",attrs:{"hide-details":"",label:e.$t("Settings.WebcamsTab.Horizontally")},model:{value:e.webcam.flip_horizontal,callback:function(r){e.$set(e.webcam,"flip_horizontal",r)},expression:"webcam.flip_horizontal"}})],1),t(_,{staticClass:"py-0"},[t(_e,{staticClass:"mt-1",attrs:{"hide-details":"",label:e.$t("Settings.WebcamsTab.Vertically")},model:{value:e.webcam.flip_vertical,callback:function(r){e.$set(e.webcam,"flip_vertical",r)},expression:"webcam.flip_vertical"}})],1)],1)],1),t(_,{staticClass:"col-12 col-sm-6 text-center",attrs:{"align-self":"center"}},[t(wu,{attrs:{webcam:e.webcam}})],1)],1)],1),t(ne,{staticClass:"d-flex justify-end"},[t(g,{attrs:{text:""},on:{click:e.closeForm}},[e._v(e._s(e.$t("Settings.Cancel")))]),t(g,{attrs:{color:"primary",text:"",type:"submit",disabled:!e.valid}},[e._v(e._s(e.actionButtonText))])],1)],1)},SZ=[];const cb={};var PZ=E(ba,wZ,SZ,!1,DZ,"3a5b3bca",null,null);function DZ(e){for(let s in cb)this[s]=cb[s]}const sx=function(){return PZ.exports}();var TZ=Object.defineProperty,MZ=Object.getOwnPropertyDescriptor,Nf=(e,s,t,r)=>{for(var i=r>1?void 0:r?MZ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&TZ(s,t,i),i};let ya=class extends M(O,dr){constructor(){super(...arguments),this.mdiPencil=bt,this.mdiDelete=ze,this.mdiLightbulbOutline=Sp}get icon(){return this.convertWebcamIcon(this.webcam.icon)}get subtitle(){return this.webcam.service==="mjpegstreamer-adaptive"?"URL: ".concat(this.webcam.snapshot_url):"URL: ".concat(this.webcam.stream_url)}toogleStatus(){let e={...this.webcam};e.enabled=!e.enabled,this.$store.dispatch("gui/webcams/update",{webcam:e,oldWebcamName:e.name})}edit(){this.$emit("edit-webcam",this.webcam)}deleteWebcam(){this.$store.dispatch("gui/webcams/delete",this.webcam.name)}};Nf([P({type:Object,default:()=>{}})],ya.prototype,"webcam",2);Nf([P({type:Boolean,default:!1})],ya.prototype,"boolBorderTop",2);ya=Nf([D({components:{SettingsRow:V}})],ya);var EZ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.boolBorderTop?t(U,{staticClass:"my-2"}):e._e(),t(V,{attrs:{title:e.webcam.name,icon:e.icon,"sub-title":e.subtitle}},[e.webcam.source==="database"?[t(g,{staticClass:"minwidth-0 px-2",attrs:{small:"",outlined:"",color:e.webcam.enabled?"":"secondary"},on:{click:e.toogleStatus}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiLightbulbOutline))])],1),t(g,{staticClass:"ml-3",attrs:{small:"",outlined:""},on:{click:e.edit}},[t(v,{attrs:{small:"",left:""}},[e._v(e._s(e.mdiPencil))]),e._v(" "+e._s(e.$t("Settings.Edit"))+" ")],1),t(g,{staticClass:"ml-3 minwidth-0 px-2",attrs:{small:"",outlined:"",color:"error"},on:{click:e.deleteWebcam}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiDelete))])],1)]:e._e()],2)],1)},OZ=[];const ub={};var LZ=E(ya,EZ,OZ,!1,AZ,null,null,null);function AZ(e){for(let s in ub)this[s]=ub[s]}const rx=function(){return LZ.exports}();var kZ=Object.defineProperty,FZ=Object.getOwnPropertyDescriptor,RZ=(e,s,t,r)=>{for(var i=r>1?void 0:r?FZ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&kZ(s,t,i),i};let gh=class extends M(O,dr){constructor(){super(...arguments),this.mdiPencil=bt,this.mdiDelete=ze,this.boolForm=!1,this.typeForm="create",this.formWebcam={}}get webcams(){var s;return(s=this.$store.state.gui.webcams.webcams)!=null?s:[]}get configfiles(){var s,t;return(t=(s=this.$store.getters["files/getDirectory"]("config"))==null?void 0:s.childrens)!=null?t:[]}get crowsnestConf(){return this.configfiles.find(s=>s.filename==="crowsnest.conf")}get existCrowsnestConf(){return this.configfiles.findIndex(s=>s.filename==="crowsnest.conf")!==-1}openCrowsnestConf(){var s,t,r;this.$store.dispatch("editor/openFile",{root:"config",path:"/",filename:(s=this.crowsnestConf)==null?void 0:s.filename,size:(t=this.crowsnestConf)==null?void 0:t.size,permissions:(r=this.crowsnestConf)==null?void 0:r.permissions})}createWebcam(){this.formWebcam={name:"",enabled:!0,icon:"mdiWebcam",service:"mjpegstreamer-adaptive",target_fps:15,target_fps_idle:15,stream_url:"/webcam/?action=stream",snapshot_url:"/webcam/?action=snapshot",rotation:0,flip_horizontal:!1,flip_vertical:!1,extra_data:{}},this.typeForm="create",this.boolForm=!0}closeForm(){this.boolForm=!1}editWebcam(s){this.formWebcam={...s},this.typeForm="edit",this.boolForm=!0}};gh=RZ([D({components:{SettingsRow:V,WebcamForm:sx,WebcamListEntry:rx}})],gh);var jZ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.boolForm?t(xe,{attrs:{flat:""}},[t(sx,{attrs:{webcam:e.formWebcam,type:e.typeForm},on:{close:e.closeForm}})],1):t(xe,{attrs:{flat:""}},[t(q,[t("h3",{staticClass:"text-h5 mb-3"},[e._v(e._s(e.$t("Settings.WebcamsTab.Webcams")))]),e._l(e.webcams,function(r,i){return t(rx,{key:r.name,attrs:{webcam:r,"bool-border-top":i>0},on:{"edit-webcam":e.editWebcam}})})],2),t(ne,[e.existCrowsnestConf?t(g,{attrs:{text:"",color:"primary"},on:{click:e.openCrowsnestConf}},[e._v(" "+e._s(e.$t("Settings.WebcamsTab.EditCrowsnestConf"))+" ")]):e._e(),t(ae),t(g,{attrs:{text:"",color:"primary"},on:{click:e.createWebcam}},[e._v(e._s(e.$t("Settings.WebcamsTab.AddWebcam")))])],1)],1)],1)},HZ=[];const db={};var IZ=E(gh,jZ,HZ,!1,NZ,null,null,null);function NZ(e){for(let s in db)this[s]=db[s]}const VZ=function(){return IZ.exports}();var UZ=Object.defineProperty,BZ=Object.getOwnPropertyDescriptor,WZ=(e,s,t,r)=>{for(var i=r>1?void 0:r?BZ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&UZ(s,t,i),i};let vh=class extends M(O){get macros(){var e;return(e=this.$store.getters["printer/getMacros"])!=null?e:[]}get hiddenMacros(){var e;return(e=this.$store.state.gui.macros.hiddenMacros)!=null?e:[]}getMacroStatus(e){return!this.hiddenMacros.includes(e.toUpperCase())}changeMacroStatus(e){const s=[...this.hiddenMacros];this.hiddenMacros.includes(e.toUpperCase())?s.splice(s.indexOf(e.toUpperCase()),1):s.push(e.toUpperCase()),this.$store.dispatch("gui/macros/saveSetting",{name:"hiddenMacros",value:s})}};vh=WZ([D({components:{SettingsRow:V}})],vh);var GZ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(q,[t("h3",{staticClass:"text-h5 mt-6 mb-3"},[e._v(e._s(e.$t("Settings.MacrosTab.Macros")))]),e.macros.length?e._l(e.macros,function(r,i){return t("div",{key:i},[i?t(U,{staticClass:"my-2"}):e._e(),t(V,{attrs:{title:r.name,"sub-title":r.description,"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"input-value":e.getMacroStatus(r.name),"hide-details":""},on:{change:function(n){return e.changeMacroStatus(r.name)}}})],1)],1)}):[t($,[t(_,[t("p",{staticClass:"mb-0 text-center font-italic"},[e._v(e._s(e.$t("Settings.MacrosTab.NOMacros")))])])],1)]],2)},zZ=[];const mb={};var ZZ=E(vh,GZ,zZ,!1,qZ,null,null,null);function qZ(e){for(let s in mb)this[s]=mb[s]}const ix=function(){return ZZ.exports}();var XZ=Object.defineProperty,YZ=Object.getOwnPropertyDescriptor,Wu=(e,s,t,r)=>{for(var i=r>1?void 0:r?YZ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&XZ(s,t,i),i};let Wi=class extends M(O,_t){constructor(){super(...arguments),this.mdiPencil=bt,this.mdiDelete=ze,this.mdiSleep=d3,this.mdiPause=Dp,this.mdiPrinter3dNozzle=Ws,this.mdiPlus=Tp,this.mdiDragVertical=Ra,this.mdiPalette=qc,this.rules={required:e=>e!==""||"required",groupUnique:e=>!this.existsGroupName(e)||"Name already exists"},this.boolFormEdit=!1,this.editGroupId=""}get groupColors(){return[{text:this.$t("Settings.MacrosTab.Primary"),value:"primary"},{text:this.$t("Settings.MacrosTab.Secondary"),value:"secondary"},{text:this.$t("Settings.MacrosTab.Success"),value:"success"},{text:this.$t("Settings.MacrosTab.Warning"),value:"warning"},{text:this.$t("Settings.MacrosTab.Error"),value:"error"},{text:this.$t("Settings.MacrosTab.Custom"),value:"custom"}]}get macroColors(){const e=[...this.groupColors],s=e.findIndex(t=>t.value==="custom");return s!==-1&&e.splice(s,1),e.push({text:this.$t("Settings.MacrosTab.Group"),value:"group"}),e}get allMacros(){var e;return(e=this.$store.getters["printer/getMacros"])!=null?e:[]}get availableMacros(){return this.allMacros.filter(e=>!this.editGroupUsedMacros.includes(e.name))}get groups(){var e;return(e=this.$store.getters["gui/macros/getAllMacrogroups"])!=null?e:[]}get editGroupUsedMacros(){var e,s,t;return(t=(s=(e=this.editGroup)==null?void 0:e.macros)==null?void 0:s.map(r=>r.name))!=null?t:[]}get editGroup(){return this.$store.getters["gui/macros/getMacrogroup"](this.editGroupId)}get editGroupMacros(){var s,t;const e=(t=(s=this.editGroup)==null?void 0:s.macros)!=null?t:[];return e.sort((r,i)=>r.pos-i.pos),e}set editGroupMacros(e){}existsGroupName(e){return this.groups.findIndex(s=>s.name===e&&s.id!=this.editGroupId)>=0}clearColorObject(e){return typeof e=="object"&&"hex"in e&&(e=e.hex),e.length>7&&(e=e.substr(0,7)),e}updateShowGeneral(e){this.$emit("update:showGeneral",e)}async addGroup(){const e={name:"",color:"primary",colorCustom:"#fff",showInStandby:!0,showInPause:!0,showInPrinting:!0};this.editGroupId=await this.$store.dispatch("gui/macros/groupStore",{values:e}),this.boolFormEdit=!0}editMacrogroup(e){this.boolFormEdit=!0,this.editGroupId=e.id}deleteMacrogroup(e){this.$store.dispatch("gui/macros/groupDelete",e)}addMacroToGroup(e){this.$store.dispatch("gui/macros/addMacroToMacrogroup",{id:this.editGroupId,macro:e.name})}updateMacroFromGroup(e,s,t){this.$store.dispatch("gui/macros/updateMacroFromMacrogroup",{id:this.editGroupId,macro:e.name,option:s,value:t})}updateMacroOrder(e){var n,a;const s=(n=e.moved.oldIndex)!=null?n:0,t=(a=e.moved.newIndex)!=null?a:0,r=this.editGroupMacros[s].pos,i=this.editGroupMacros[t].pos;this.updateMacroFromGroup(this.editGroupMacros[s],"pos",i),this.updateMacroFromGroup(this.editGroupMacros[t],"pos",r)}changeColorMacroFromGroup(e){let s=this.macroColors.findIndex(i=>i.value===e.color)+1;const t=this.macroColors.length-1;s>t&&(s=0);const r=this.macroColors[s].value;this.updateMacroFromGroup(e,"color",r)}removeMacroFromGroup(e){this.$store.dispatch("gui/macros/removeMacroFromMacrogroup",{id:this.editGroupId,macro:e.name})}existsMacro(e){return this.allMacros.findIndex(s=>s.name.toLowerCase()===e.toLowerCase())!==-1}getMacroDescription(e){var t;const s=this.allMacros.find(r=>r.name.toLowerCase()===e.toLowerCase());return s?(t=s==null?void 0:s.description)!=null?t:null:this.$t("Settings.MacrosTab.DeletedMacro")}updateMacrogroupOption(e,s){const t={};t[e]=s,this.$store.dispatch("gui/macros/groupUpdate",{id:this.editGroupId,values:t})}updateGroupOptionName(e){this.updateMacrogroupOption("name",e)}updateGroupOptionColor(e){this.updateMacrogroupOption("color",e)}updateGroupOptionColorCustom(e){this.updateMacrogroupOption("colorCustom",this.clearColorObject(e))}updateGroupOptionShowInStandby(e){this.updateMacrogroupOption("showInStandby",e)}updateGroupOptionShowInPause(e){this.updateMacrogroupOption("showInPause",e)}updateGroupOptionShowInPrinting(e){this.updateMacrogroupOption("showInPrinting",e)}updatedBoolFormEdit(e){this.updateShowGeneral(!e)}cancelEditMacrogroup(){this.boolFormEdit=!1,this.$emit("scrollToTop")}};Wu([qe(250)],Wi.prototype,"updateGroupOptionName",1);Wu([qe(250)],Wi.prototype,"updateGroupOptionColorCustom",1);Wu([me("boolFormEdit")],Wi.prototype,"updatedBoolFormEdit",1);Wi=Wu([D({components:{SettingsRow:V,draggable:Yr}})],Wi);var JZ=function(){var e,s,t,r,i=this,n=i.$createElement,a=i._self._c||n;return a("div",[i.boolFormEdit===!1?[a(q,[a("h3",{staticClass:"text-h5 mb-3"},[i._v(i._s(i.$t("Settings.MacrosTab.Macrogroups")))]),i.groups.length?i._l(i.groups,function(o,l){return a("div",{key:l},[l?a(U,{staticClass:"my-2"}):i._e(),a(V,{attrs:{title:o.name!==""?o.name:"<"+i.$t("Settings.MacrosTab.UnknownGroup")+">","sub-title":i.$tc("Settings.MacrosTab.CountMacros","macros"in o?o.macros.length:0,{count:"macros"in o?o.macros.length:0}),"dynamic-slot-width":!0}},[a(g,{staticClass:"ml-3",attrs:{small:"",outlined:""},on:{click:function(c){return i.editMacrogroup(o)}}},[a(v,{attrs:{left:"",small:""}},[i._v(i._s(i.mdiPencil))]),i._v(" "+i._s(i.$t("Settings.Edit"))+" ")],1),a(g,{staticClass:"ml-3 minwidth-0 px-2",attrs:{small:"",outlined:"",color:"error"},on:{click:function(c){return i.deleteMacrogroup(o.id)}}},[a(v,{attrs:{small:""}},[i._v(i._s(i.mdiDelete))])],1)],1)],1)}):[a($,[a(_,[a("p",{staticClass:"mb-0 text-center font-italic"},[i._v(i._s(i.$t("Settings.MacrosTab.NoGroups")))])])],1)]],2),a(ne,{staticClass:"d-flex justify-end"},[a(g,{attrs:{text:"",color:"primary"},on:{click:i.addGroup}},[i._v(i._s(i.$t("Settings.MacrosTab.AddGroup")))])],1)]:i.boolFormEdit?[a(q,[a("h3",{staticClass:"text-h5 mb-3"},[i._v(i._s(i.$t("Settings.MacrosTab.EditGroup")))]),a(V,{attrs:{title:i.$t("Settings.MacrosTab.Name")}},[a(te,{attrs:{"hide-details":"auto",rules:[i.rules.required,i.rules.groupUnique],dense:"",outlined:""},on:{change:i.updateGroupOptionName},model:{value:i.editGroup.name,callback:function(o){i.$set(i.editGroup,"name",o)},expression:"editGroup.name"}})],1),a(U,{staticClass:"my-2"}),a(V,{attrs:{title:i.$t("Settings.MacrosTab.Color")}},[a(Ee,{attrs:{items:i.groupColors,outlined:"",dense:"","hide-details":"",attach:""},on:{change:i.updateGroupOptionColor},model:{value:i.editGroup.color,callback:function(o){i.$set(i.editGroup,"color",o)},expression:"editGroup.color"}})],1),((e=i.editGroup)===null||e===void 0?void 0:e.color)==="custom"?[a(U,{staticClass:"my-2"}),a(V,{attrs:{title:i.$t("Settings.MacrosTab.CustomColor")}},[a($e,{attrs:{bottom:"",left:"","offset-y":"","close-on-content-click":!1},scopedSlots:i._u([{key:"activator",fn:function(o){var l=o.on,c=o.attrs;return[a(g,i._g(i._b({staticClass:"minwidth-0 px-5",attrs:{color:i.editGroup.colorCustom,small:""}},"v-btn",c,!1),l))]}}],null,!1,3888687373)},[a(rs,{attrs:{value:i.editGroup.colorCustom,"hide-mode-switch":"",mode:"rgba"},on:{"update:color":i.updateGroupOptionColorCustom}})],1)],1)]:i._e(),a(U,{staticClass:"my-2"}),a(V,{attrs:{title:i.$t("Settings.MacrosTab.Status")}},[a(de,{attrs:{top:""},scopedSlots:i._u([{key:"activator",fn:function(o){var l,c=o.on,u=o.attrs;return[a(g,i._g(i._b({staticClass:"ml-3 minwidth-0 px-2",attrs:{small:"",outlined:"",color:(l=i.editGroup)!==null&&l!==void 0&&l.showInStandby?"":"secondary"},on:{click:function(d){var m;return i.updateGroupOptionShowInStandby(!((m=i.editGroup)!==null&&m!==void 0&&m.showInStandby))}}},"v-btn",u,!1),c),[a(v,{attrs:{small:""}},[i._v(i._s(i.mdiSleep))])],1)]}}])},[a("span",[i._v(i._s(i.$t("Settings.MacrosTab.ShowInStateStandby")))])]),a(de,{attrs:{top:""},scopedSlots:i._u([{key:"activator",fn:function(o){var l,c=o.on,u=o.attrs;return[a(g,i._g(i._b({staticClass:"ml-3 minwidth-0 px-2",attrs:{small:"",outlined:"",color:(l=i.editGroup)!==null&&l!==void 0&&l.showInPause?"":"secondary"},on:{click:function(d){var m;return i.updateGroupOptionShowInPause(!((m=i.editGroup)!==null&&m!==void 0&&m.showInPause))}}},"v-btn",u,!1),c),[a(v,{attrs:{small:""}},[i._v(i._s(i.mdiPause))])],1)]}}])},[a("span",[i._v(i._s(i.$t("Settings.MacrosTab.ShowInStatePaused")))])]),a(de,{attrs:{top:""},scopedSlots:i._u([{key:"activator",fn:function(o){var l,c=o.on,u=o.attrs;return[a(g,i._g(i._b({staticClass:"ml-3 minwidth-0 px-2",attrs:{small:"",outlined:"",color:(l=i.editGroup)!==null&&l!==void 0&&l.showInPrinting?"":"secondary"},on:{click:function(d){var m;return i.updateGroupOptionShowInPrinting(!((m=i.editGroup)!==null&&m!==void 0&&m.showInPrinting))}}},"v-btn",u,!1),c),[a(v,{attrs:{small:""}},[i._v(i._s(i.mdiPrinter3dNozzle))])],1)]}}])},[a("span",[i._v(i._s(i.$t("Settings.MacrosTab.ShowInStatePrinting")))])])],1),a(U,{staticClass:"my-2"}),a("h3",{staticClass:"text-h5 mt-6 mb-3"},[i._v(i._s(i.$t("Settings.MacrosTab.GroupMacros")))]),(s=i.editGroup)!==null&&s!==void 0&&s.macros&&(t=i.editGroup)!==null&&t!==void 0&&(r=t.macros)!==null&&r!==void 0&&r.length?[a("draggable",{attrs:{handle:".handle","ghost-class":"ghost",group:"macros"},on:{change:i.updateMacroOrder},model:{value:i.editGroupMacros,callback:function(o){i.editGroupMacros=o},expression:"editGroupMacros"}},i._l(i.editGroupMacros,function(o,l){return a($,{key:o.name,staticClass:"my-2 mx-0",style:i.draggableBgStyle},[a(_,{staticClass:"col-auto pr-0 d-flex py-2"},[a(v,{staticClass:"handle"},[i._v(i._s(i.mdiDragVertical))])],1),a(_,{staticClass:"py-2"},[a(V,{key:"groupMacro_macro_"+l,attrs:{title:o.name,"sub-title":i.getMacroDescription(o.name),"dynamic-slot-width":!0}},[i.existsMacro(o.name)?[a(de,{attrs:{top:""},scopedSlots:i._u([{key:"activator",fn:function(c){var u=c.on,d=c.attrs;return[a(g,i._g(i._b({staticClass:"ml-3 minwidth-0 px-2",attrs:{small:"",outlined:"",color:o.color},on:{click:function(m){return i.changeColorMacroFromGroup(o)}}},"v-btn",d,!1),u),[a(v,{attrs:{small:"",left:""}},[i._v(i._s(i.mdiPalette))]),i._v(" "+i._s(o.color)+" ")],1)]}}],null,!0)},[a("span",[i._v(i._s(i.$t("Settings.MacrosTab.ChangeMacroColor")))])]),a(de,{attrs:{top:""},scopedSlots:i._u([{key:"activator",fn:function(c){var u=c.on,d=c.attrs;return[a(g,i._g(i._b({staticClass:"ml-3 minwidth-0 px-2",attrs:{small:"",outlined:"",color:o.showInStandby?"":"secondary"},on:{click:function(m){return i.updateMacroFromGroup(o,"showInStandby",!o.showInStandby)}}},"v-btn",d,!1),u),[a(v,{attrs:{small:""}},[i._v(i._s(i.mdiSleep))])],1)]}}],null,!0)},[a("span",[i._v(i._s(i.$t("Settings.MacrosTab.ShowInStateStandby")))])]),a(de,{attrs:{top:""},scopedSlots:i._u([{key:"activator",fn:function(c){var u=c.on,d=c.attrs;return[a(g,i._g(i._b({staticClass:"ml-3 minwidth-0 px-2",attrs:{small:"",outlined:"",color:o.showInPause?"":"secondary"},on:{click:function(m){return i.updateMacroFromGroup(o,"showInPause",!o.showInPause)}}},"v-btn",d,!1),u),[a(v,{attrs:{small:""}},[i._v(i._s(i.mdiPause))])],1)]}}],null,!0)},[a("span",[i._v(i._s(i.$t("Settings.MacrosTab.ShowInStatePaused")))])]),a(de,{attrs:{top:""},scopedSlots:i._u([{key:"activator",fn:function(c){var u=c.on,d=c.attrs;return[a(g,i._g(i._b({staticClass:"ml-3 minwidth-0 px-2",attrs:{small:"",outlined:"",color:o.showInPrinting?"":"secondary"},on:{click:function(m){return i.updateMacroFromGroup(o,"showInPrinting",!o.showInPrinting)}}},"v-btn",d,!1),u),[a(v,{attrs:{small:""}},[i._v(i._s(i.mdiPrinter3dNozzle))])],1)]}}],null,!0)},[a("span",[i._v(i._s(i.$t("Settings.MacrosTab.ShowInStatePrinting")))])])]:i._e(),a(de,{attrs:{top:""},scopedSlots:i._u([{key:"activator",fn:function(c){var u=c.on,d=c.attrs;return[a(g,i._g(i._b({staticClass:"ml-3 minwidth-0 px-2",attrs:{small:"",outlined:"",color:"error"},on:{click:function(m){return i.removeMacroFromGroup(o)}}},"v-btn",d,!1),u),[a(v,{attrs:{small:""}},[i._v(i._s(i.mdiDelete))])],1)]}}],null,!0)},[a("span",[i._v(i._s(i.$t("Settings.MacrosTab.DeleteMacroFromGroup")))])])],2)],1)],1)}),1)]:[a($,[a(_,[a("p",{staticClass:"mb-0 text-center font-italic"},[i._v(i._s(i.$t("Settings.MacrosTab.NoMacrosInGroup")))])])],1)],a("h3",{staticClass:"text-h5 mt-6 mb-3"},[i._v(i._s(i.$t("Settings.MacrosTab.AvailableMacros")))]),i.availableMacros.length?[i._l(i.availableMacros,function(o,l){return[l?a(U,{key:"availableMacro_deliver_"+l,staticClass:"my-2"}):i._e(),a(V,{key:"availableMacro_macro_"+l,attrs:{title:o.name,"sub-title":o.description,"dynamic-slot-width":!0}},[a(g,{staticClass:"ml-3",attrs:{small:"",outlined:""},on:{click:function(c){return i.addMacroToGroup(o)}}},[a(v,{attrs:{left:"",small:""}},[i._v(i._s(i.mdiPlus))]),i._v(" "+i._s(i.$t("Settings.MacrosTab.Add"))+" ")],1)],1)]})]:[a($,[a(_,[a("p",{staticClass:"mb-0 text-center font-italic"},[i._v(i._s(i.$t("Settings.MacrosTab.NoAvailableMacros")))])])],1)]],2),a(ne,{staticClass:"d-flex justify-end"},[a(g,{attrs:{text:""},on:{click:i.cancelEditMacrogroup}},[i._v(i._s(i.$t("Settings.Close")))])],1)]:i._e()],2)},KZ=[];const hb={};var QZ=E(Wi,JZ,KZ,!1,eq,null,null,null);function eq(e){for(let s in hb)this[s]=hb[s]}const nx=function(){return QZ.exports}();var tq=Object.defineProperty,sq=Object.getOwnPropertyDescriptor,rq=(e,s,t,r)=>{for(var i=r>1?void 0:r?sq(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&tq(s,t,i),i};let _h=class extends M(O){constructor(){super(...arguments),this.showGeneral=!0}get modes(){return[{text:this.$t("Settings.MacrosTab.Simple"),value:"simple"},{text:this.$t("Settings.MacrosTab.Expert"),value:"expert"}]}get mode(){var s,t,r;return(r=(t=(s=this.$store.state.gui)==null?void 0:s.macros)==null?void 0:t.mode)!=null?r:"simple"}set mode(s){this.$store.dispatch("gui/macros/saveSetting",{name:"mode",value:s})}updateShowGeneral(s){this.showGeneral=s}scrollToTop(){this.$emit("scrollToTop")}};_h=rq([D({components:{SettingsMacrosTabExpert:nx,SettingsMacrosTabSimple:ix,SettingsRow:V}})],_h);var iq=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(xe,{attrs:{flat:""}},[e.showGeneral?t(q,[t("h3",{staticClass:"text-h5 mb-3"},[e._v(e._s(e.$t("Settings.MacrosTab.General")))]),t(V,{attrs:{title:e.$t("Settings.MacrosTab.Management")}},[t(Ee,{attrs:{items:e.modes,outlined:"",dense:"","hide-details":"",attach:""},model:{value:e.mode,callback:function(r){e.mode=r},expression:"mode"}})],1),t(U,{staticClass:"my-2"})],1):e._e(),e.mode==="expert"?[t(nx,{on:{"update:showGeneral":e.updateShowGeneral,scrollToTop:e.scrollToTop}})]:[t(ix)]],2)},nq=[];const pb={};var aq=E(_h,iq,nq,!1,oq,null,null,null);function oq(e){for(let s in pb)this[s]=pb[s]}const lq=function(){return aq.exports}();var cq=Object.defineProperty,uq=Object.getOwnPropertyDescriptor,dq=(e,s,t,r)=>{for(var i=r>1?void 0:r?uq(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&cq(s,t,i),i};let bh=class extends M(O,Ke,Cl){constructor(){super(...arguments),this.mdiGamepad=wp,this.mdiPrinter3dNozzle=Ws}get controlStyles(){return[{text:this.$t("Settings.ControlTab.Bars"),value:"bars"},{text:this.$t("Settings.ControlTab.Circle"),value:"circle"},{text:this.$t("Settings.ControlTab.Cross"),value:"cross"}]}get controlStyle(){var s;return(s=this.$store.state.gui.control.style)!=null?s:"bar"}set controlStyle(s){this.$store.dispatch("gui/saveSetting",{name:"control.style",value:s})}get hideDuringPrint(){var s;return(s=this.$store.state.gui.control.hideDuringPrint)!=null?s:!1}set hideDuringPrint(s){this.$store.dispatch("gui/saveSetting",{name:"control.hideDuringPrint",value:s})}get actionOptions(){let s=[{text:this.$t("Settings.ControlTab.MotorsOff",{isDefault:this.defaultActionButton==="m84"?this.$t("Settings.ControlTab.IsDefault"):""}),value:"m84"}];return this.existsQGL&&s.push({text:this.$t("Settings.ControlTab.QuadGantryLevel",{isDefault:this.defaultActionButton==="qgl"?this.$t("Settings.ControlTab.IsDefault"):""}),value:"qgl"}),this.existsZtilt&&s.push({text:this.$t("Settings.ControlTab.ZTiltAdjust",{isDefault:this.defaultActionButton==="ztilt"?this.$t("Settings.ControlTab.IsDefault"):""}),value:"ztilt"}),s}get actionButton(){var s;return(s=this.$store.state.gui.control.actionButton)!=null?s:this.defaultActionButton}set actionButton(s){this.$store.dispatch("gui/saveSetting",{name:"control.actionButton",value:s})}get defaultActionButton(){return this.$store.getters["gui/getDefaultControlActionButton"]}get enableXYHoming(){var s;return(s=this.$store.state.gui.control.enableXYHoming)!=null?s:!1}set enableXYHoming(s){this.$store.dispatch("gui/saveSetting",{name:"control.enableXYHoming",value:s})}get reverseX(){return this.$store.state.gui.control.reverseX}set reverseX(s){this.$store.dispatch("gui/saveSetting",{name:"control.reverseX",value:s})}get reverseY(){return this.$store.state.gui.control.reverseY}set reverseY(s){this.$store.dispatch("gui/saveSetting",{name:"control.reverseY",value:s})}get reverseZ(){return this.$store.state.gui.control.reverseZ}set reverseZ(s){this.$store.dispatch("gui/saveSetting",{name:"control.reverseZ",value:s})}get feedrateXY(){return this.$store.state.gui.control.feedrateXY}set feedrateXY(s){this.$store.dispatch("gui/saveSetting",{name:"control.feedrateXY",value:s})}get feedrateZ(){return this.$store.state.gui.control.feedrateZ}set feedrateZ(s){this.$store.dispatch("gui/saveSetting",{name:"control.feedrateZ",value:s})}get offsetsZ(){return this.$store.state.gui.control.offsetsZ.sort(function(t,r){return t-r})}set offsetsZ(s){const t=new Set;for(const r of s)t.add(Math.abs(r));this.$store.dispatch("gui/saveSetting",{name:"control.offsetsZ",value:Array.from(t)})}get stepsAll(){const s=this.$store.state.gui.control.stepsAll;return(s!=null?s:[]).sort(function(t,r){return r-t})}set stepsAll(s){const t=[];for(const i of s)t.push(Math.abs(i));const r=t.filter(this.onlyUnique);this.$store.dispatch("gui/saveSetting",{name:"control.stepsAll",value:r})}get stepsXY(){return this.$store.state.gui.control.stepsXY.sort(function(t,r){return r-t})}set stepsXY(s){const t=[];for(const i of s)t.push(Math.abs(i));const r=t.filter(this.onlyUnique);this.$store.dispatch("gui/saveSetting",{name:"control.stepsXY",value:r})}get stepsZ(){return this.$store.state.gui.control.stepsZ.sort(function(t,r){return r-t})}set stepsZ(s){const t=[];for(const i of s)t.push(Math.abs(i));const r=t.filter(this.onlyUnique);this.$store.dispatch("gui/saveSetting",{name:"control.stepsZ",value:r})}get stepsCircleXY(){return this.$store.state.gui.control.stepsCircleXY.sort(function(t,r){return r-t})}set stepsCircleXY(s){const t=[];for(const i of s)t.push(Math.abs(i));const r=t.filter(this.onlyUnique);this.$store.dispatch("gui/saveSetting",{name:"control.stepsCircleXY",value:r})}get stepsCircleZ(){return this.$store.state.gui.control.stepsCircleZ.sort(function(t,r){return r-t})}set stepsCircleZ(s){const t=[];for(const i of s)t.push(Math.abs(i));const r=t.filter(this.onlyUnique);this.$store.dispatch("gui/saveSetting",{name:"control.stepsCircleZ",value:r})}get feedamountsE(){return this.$store.state.gui.control.extruder.feedamounts.sort(function(t,r){return r-t})}set feedamountsE(s){const t=[];for(const i of s)t.push(Math.abs(i));const r=t.filter(this.onlyUnique);this.$store.dispatch("gui/saveSetting",{name:"control.extruder.feedamounts",value:r})}get feedratesE(){return this.$store.state.gui.control.extruder.feedrates.sort(function(t,r){return r-t})}set feedratesE(s){const t=[];for(const i of s)t.push(Math.abs(i));const r=t.filter(this.onlyUnique);this.$store.dispatch("gui/saveSetting",{name:"control.extruder.feedrates",value:r})}get showEstimatedExtrusionInfo(){return this.$store.state.gui.control.extruder.showEstimatedExtrusionInfo}set showEstimatedExtrusionInfo(s){this.$store.dispatch("gui/saveSetting",{name:"control.extruder.showEstimatedExtrusionInfo",value:s})}get offsetZSaveOption(){var s;return(s=this.$store.state.gui.control.offsetZSaveOption)!=null?s:null}set offsetZSaveOption(s){this.$store.dispatch("gui/saveSetting",{name:"control.offsetZSaveOption",value:s})}get offsetZSaveOptions(){const s=this.autoSaveZOffsetOption.replace(/Z_OFFSET_APPLY_/g,""),t=[{value:null,text:"Auto (".concat(s,")")}];return this.existZOffsetApplyEndstop&&t.push({value:"Z_OFFSET_APPLY_ENDSTOP",text:"ENDSTOP"}),this.existZOffsetApplyProbe&&t.push({value:"Z_OFFSET_APPLY_PROBE",text:"PROBE"}),t}blurFeedrateXY(){this.feedrateXY>0||(this.feedrateXY=100)}blurFeedrateZ(){this.feedrateZ>0||(this.feedrateZ=25)}onlyUnique(s,t,r){return r.indexOf(s)===t}mounted(){this.$refs.formControlExtruder.validate()}};bh=dq([D({components:{SettingsRow:V}})],bh);var mq=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(xe,{attrs:{flat:""}},[t(q,[t(cr,{ref:"formControlExtruder"},[t("div",{staticClass:"d-flex align-center"},[t(v,{staticStyle:{opacity:"0.7"}},[e._v(e._s(e.mdiGamepad))]),t(gt,{staticClass:"mx-n2"},[e._v(" "+e._s(e.$t("Panels.ToolheadControlPanel.Headline"))+" ")]),t(U,{staticClass:"ml-3"})],1),t(V,{attrs:{title:e.$t("Settings.ControlTab.Style")}},[t(Ee,{attrs:{items:e.controlStyles,outlined:"",dense:"","hide-details":"",attach:""},model:{value:e.controlStyle,callback:function(r){e.controlStyle=r},expression:"controlStyle"}})],1),t(U,{staticClass:"my-2"}),["circle","cross"].includes(e.controlStyle)&&e.actionOptions.length>1?[t(V,{attrs:{title:"Overwrite action button"}},[t(Ee,{attrs:{items:e.actionOptions,outlined:"",dense:"","hide-details":"",attach:""},model:{value:e.actionButton,callback:function(r){e.actionButton=r},expression:"actionButton"}})],1),t(U,{staticClass:"my-2"})]:e._e(),t(V,{attrs:{title:e.$t("Settings.ControlTab.HideDuringPrint"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.hideDuringPrint,callback:function(r){e.hideDuringPrint=r},expression:"hideDuringPrint"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.ControlTab.EnableXYHoming"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.enableXYHoming,callback:function(r){e.enableXYHoming=r},expression:"enableXYHoming"}})],1),t(U,{staticClass:"my-2"}),["circle","cross"].includes(e.controlStyle)?[t(V,{attrs:{title:e.$t("Settings.ControlTab.InvertXMovement"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.reverseX,callback:function(r){e.reverseX=r},expression:"reverseX"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.ControlTab.InvertYMovement"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.reverseY,callback:function(r){e.reverseY=r},expression:"reverseY"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.ControlTab.InvertZMovement"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.reverseZ,callback:function(r){e.reverseZ=r},expression:"reverseZ"}})],1),t(U,{staticClass:"my-2"})]:e._e(),t(V,{attrs:{title:e.$t("Settings.ControlTab.SpeedXY")}},[t(te,{attrs:{type:"number",suffix:"mm/s","hide-details":"auto",rules:[function(r){return r>0||e.$t("Settings.ControlTab.ValueGreaterThan",{value:"0"})}],outlined:"",dense:"","hide-spin-buttons":""},on:{blur:e.blurFeedrateXY},model:{value:e.feedrateXY,callback:function(r){e.feedrateXY=r},expression:"feedrateXY"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.ControlTab.SpeedZ")}},[t(te,{attrs:{type:"number",suffix:"mm/s","hide-details":"auto",rules:[function(r){return r>0||e.$t("Settings.ControlTab.ValueGreaterThan",{value:"0"})}],outlined:"",dense:"","hide-spin-buttons":""},on:{blur:e.blurFeedrateZ},model:{value:e.feedrateZ,callback:function(r){e.feedrateZ=r},expression:"feedrateZ"}})],1),t(U,{staticClass:"my-2"}),e.controlStyle==="cross"?[t(V,{attrs:{title:e.$t("Settings.ControlTab.MoveDistancesInMm"),"mobile-second-row":!0}},[t(qs,{attrs:{"hide-selected":"","hide-details":"auto",multiple:"","small-chips":"","deletable-chips":!0,"append-icon":"",type:"number",rules:[function(r){return r.length>0||e.$t("Settings.ControlTab.MinimumValues",{minimum:"1"})},function(r){return r.length<=9||e.$t("Settings.ControlTab.MaximumValuesVisibility",{maximum:"9"})}],dense:"",outlined:"","hide-spin-buttons":""},model:{value:e.stepsAll,callback:function(r){e.stepsAll=r},expression:"stepsAll"}})],1),t(U,{staticClass:"my-2"})]:e.controlStyle==="circle"?[t(V,{attrs:{title:e.$t("Settings.ControlTab.MoveDistancesXYInMm"),"mobile-second-row":!0}},[t(qs,{attrs:{"hide-selected":"","hide-details":"auto",multiple:"","small-chips":"","deletable-chips":!0,"append-icon":"",type:"number",rules:[function(r){return r.length>0||e.$t("Settings.ControlTab.MinimumValues",{minimum:"1"})},function(r){return r.length<=4||e.$t("Settings.ControlTab.MaximumValues",{maximum:"4"})}],dense:"",outlined:"","hide-spin-buttons":""},model:{value:e.stepsCircleXY,callback:function(r){e.stepsCircleXY=r},expression:"stepsCircleXY"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.ControlTab.MoveDistancesZInMm"),"mobile-second-row":!0}},[t(qs,{attrs:{"hide-selected":"","hide-details":"auto",multiple:"","small-chips":"","deletable-chips":!0,"append-icon":"",type:"number",rules:[function(r){return r.length>0||e.$t("Settings.ControlTab.MinimumValues",{minimum:"1"})},function(r){return r.length<=4||e.$t("Settings.ControlTab.MaximumValues",{maximum:"4"})}],dense:"",outlined:"","hide-spin-buttons":""},model:{value:e.stepsCircleZ,callback:function(r){e.stepsCircleZ=r},expression:"stepsCircleZ"}})],1),t(U,{staticClass:"my-2"})]:[t(V,{attrs:{title:e.$t("Settings.ControlTab.MoveDistancesXYInMm"),"mobile-second-row":!0}},[t(qs,{attrs:{"hide-selected":"","hide-details":"auto",multiple:"","small-chips":"","deletable-chips":!0,"append-icon":"",type:"number",rules:[function(r){return r.length>0||e.$t("Settings.ControlTab.MinimumValues",{minimum:"1"})},function(r){return r.length<=3||e.$t("Settings.ControlTab.MaximumValuesVisibility",{maximum:"3"})}],dense:"",outlined:"","hide-spin-buttons":""},model:{value:e.stepsXY,callback:function(r){e.stepsXY=r},expression:"stepsXY"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.ControlTab.MoveDistancesZInMm"),"mobile-second-row":!0}},[t(qs,{attrs:{"hide-selected":"","hide-details":"auto",multiple:"","small-chips":"","deletable-chips":!0,"append-icon":"",type:"number",rules:[function(r){return r.length>0||e.$t("Settings.ControlTab.MinimumValues",{minimum:"1"})},function(r){return r.length<=3||e.$t("Settings.ControlTab.MaximumValuesVisibility",{maximum:"3"})}],dense:"",outlined:"","hide-spin-buttons":""},model:{value:e.stepsZ,callback:function(r){e.stepsZ=r},expression:"stepsZ"}})],1),t(U,{staticClass:"my-2"})],t(V,{attrs:{title:e.$t("Settings.ControlTab.ZOffsetSaveOption"),"sub-title":e.$t("Settings.ControlTab.ZOffsetSaveOptionDescription")}},[t(Ee,{staticClass:"mt-0",attrs:{items:e.offsetZSaveOptions,"hide-details":"",outlined:"",dense:""},model:{value:e.offsetZSaveOption,callback:function(r){e.offsetZSaveOption=r},expression:"offsetZSaveOption"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.ControlTab.ZOffsetIncrements"),"mobile-second-row":!0}},[t(qs,{attrs:{"hide-selected":"","hide-details":"auto",multiple:"","small-chips":"","deletable-chips":!0,"append-icon":"",type:"number",rules:[function(r){return r.length>0||e.$t("Settings.ControlTab.MinimumValues",{minimum:"1"})},function(r){return r.length<=4||e.$t("Settings.ControlTab.MaximumValuesVisibility",{maximum:"4"})}],dense:"",outlined:"","hide-spin-buttons":""},model:{value:e.offsetsZ,callback:function(r){e.offsetsZ=r},expression:"offsetsZ"}})],1),t("div",{staticClass:"d-flex align-center"},[t(v,{staticStyle:{opacity:"0.7"}},[e._v(e._s(e.mdiPrinter3dNozzle))]),t(gt,{staticClass:"mx-n2"},[e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.Headline"))+" ")]),t(U,{staticClass:"ml-3"})],1),t(V,{attrs:{title:e.$t("Settings.ControlTab.MoveDistancesEInMm"),"mobile-second-row":!0}},[t(qs,{attrs:{"hide-selected":"","hide-details":"auto",multiple:"","small-chips":"","deletable-chips":!0,"append-icon":"",type:"number",rules:[function(r){return r.length>0||e.$t("Settings.ControlTab.MinimumValues",{minimum:"1"})},function(r){return r.length<=5||e.$t("Settings.ControlTab.MaximumValuesVisibility",{maximum:"5"})}],dense:"",outlined:"","hide-spin-buttons":""},model:{value:e.feedamountsE,callback:function(r){e.feedamountsE=r},expression:"feedamountsE"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.ControlTab.SpeedEInMms"),"mobile-second-row":!0}},[t(qs,{attrs:{"hide-selected":"","hide-details":"auto",multiple:"","small-chips":"","deletable-chips":!0,"append-icon":"",type:"number",rules:[function(r){return r.length>0||e.$t("Settings.ControlTab.MinimumValues",{minimum:"1"})},function(r){return r.length<=5||e.$t("Settings.ControlTab.MaximumValuesVisibility",{maximum:"5"})}],dense:"",outlined:"","hide-spin-buttons":""},model:{value:e.feedratesE,callback:function(r){e.feedratesE=r},expression:"feedratesE"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.ControlTab.EstimatedExtrusionInfo"),"sub-title":e.$t("Settings.ControlTab.EstimatedExtrusionInfoDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.showEstimatedExtrusionInfo,callback:function(r){e.showEstimatedExtrusionInfo=r},expression:"showEstimatedExtrusionInfo"}})],1)],2)],1)],1)},hq=[];const fb={};var pq=E(bh,mq,hq,!1,fq,null,null,null);function fq(e){for(let s in fb)this[s]=fb[s]}const gq=function(){return pq.exports}();var vq=Object.defineProperty,_q=Object.getOwnPropertyDescriptor,Vf=(e,s,t,r)=>{for(var i=r>1?void 0:r?_q(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&vq(s,t,i),i};let Ca=class extends M(O){constructor(){super(...arguments),this.mdiFilter=AT,this.mdiFilterOff=kT,this.mdiPencil=bt,this.mdiDelete=ze,this.mdiConsoleLine=Fa,this.form={bool:!1,valid:!1,name:"",regex:"",id:null},this.rules={required:s=>s!==""||"required",unique:s=>!this.existsPresetName(s)||"Name already exists"},this.consoleHeightTmp=300}mounted(){this.consoleHeightTmp=this.consoleHeight}get consoleFilters(){var s;return(s=this.$store.getters["gui/console/getConsolefilters"])!=null?s:[]}get availableDirections(){return[{text:this.$t("Settings.ConsoleTab.DirectionTable"),value:"table"},{text:this.$t("Settings.ConsoleTab.DirectionShell"),value:"shell"}]}get consoleDirection(){var s;return(s=this.$store.state.gui.console.direction)!=null?s:"table"}set consoleDirection(s){this.$store.dispatch("gui/console/saveSetting",{name:"direction",value:s})}get availableEntryStyles(){return[{text:this.$t("Settings.ConsoleTab.EntryStyleDefault"),value:"default"},{text:this.$t("Settings.ConsoleTab.EntryStyleCompact"),value:"compact"}]}get entryStyle(){var s;return(s=this.$store.state.gui.console.entryStyle)!=null?s:"default"}set entryStyle(s){this.$store.dispatch("gui/console/saveSetting",{name:"entryStyle",value:s})}get consoleHeight(){var s;return(s=this.$store.state.gui.console.height)!=null?s:300}set consoleHeight(s){this.$store.dispatch("gui/console/saveSetting",{name:"height",value:s})}consoleHeightChanged(s){this.consoleHeightTmp=s}updateConsoleHeight(s){this.consoleHeight=s}get hideWaitTemperatures(){return this.$store.state.gui.console.hideWaitTemperatures}set hideWaitTemperatures(s){this.$store.dispatch("gui/console/saveSetting",{name:"hideWaitTemperatures",value:s})}get hideTimelapse(){return this.$store.state.gui.console.hideTlCommands}set hideTimelapse(s){this.$store.dispatch("gui/console/saveSetting",{name:"hideTlCommands",value:s})}existsPresetName(s){return this.consoleFilters.findIndex(t=>t.name===s&&t.id!==this.form.id)>=0}clearForm(){this.form.bool=!1,this.form.id=null,this.form.name="",this.form.regex=""}toggleFilter(s){const t={name:s.name,bool:!s.bool,regex:s.regex};this.$store.dispatch("gui/console/filterUpdate",{id:s.id,values:t})}createFilter(){this.clearForm(),this.form.bool=!0}editFilter(s){this.form.name=s.name,this.form.id=s.id,this.form.regex=s.regex,this.form.bool=!0}saveFilter(){if(this.form.valid){const s={name:this.form.name,bool:this.form.bool,regex:this.form.regex};this.form.id?this.$store.dispatch("gui/console/filterUpdate",{id:this.form.id,values:s}):this.$store.dispatch("gui/console/filterStore",{values:s}),this.clearForm()}}deleteFilter(s){this.$store.dispatch("gui/console/filterDelete",s)}};Vf([me("consoleHeight")],Ca.prototype,"consoleHeightChanged",1);Vf([qe(500)],Ca.prototype,"updateConsoleHeight",1);Ca=Vf([D({components:{SettingsRow:V}})],Ca);var bq=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.form.bool?t(xe,{attrs:{flat:""}},[t(cr,{on:{submit:function(r){return r.preventDefault(),e.saveFilter.apply(null,arguments)}},model:{value:e.form.valid,callback:function(r){e.$set(e.form,"valid",r)},expression:"form.valid"}},[t(gt,[e._v(" "+e._s(e.form.id===null?e.$t("Settings.ConsoleTab.CreateHeadline"):e.$t("Settings.ConsoleTab.EditHeadline"))+" ")]),t(q,[t(V,{attrs:{title:e.$t("Settings.ConsoleTab.Name").toString()}},[t(te,{attrs:{"hide-details":"auto",rules:[e.rules.required,e.rules.unique],dense:"",outlined:""},model:{value:e.form.name,callback:function(r){e.$set(e.form,"name",r)},expression:"form.name"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.ConsoleTab.Regex").toString()}},[t(Bs,{attrs:{outlined:"","hide-details":"auto"},model:{value:e.form.regex,callback:function(r){e.$set(e.form,"regex",r)},expression:"form.regex"}})],1)],1),t(ne,{staticClass:"d-flex justify-end"},[t(g,{attrs:{text:""},on:{click:function(r){e.form.bool=!1}}},[e._v(" "+e._s(e.$t("Settings.Cancel"))+" ")]),t(g,{attrs:{color:"primary",text:"",type:"submit"}},[e._v(" "+e._s(e.form.id===null?e.$t("Settings.ConsoleTab.StoreButton"):e.$t("Settings.ConsoleTab.UpdateButton"))+" ")])],1)],1)],1):t(xe,{attrs:{flat:""}},[t(q,[t("div",{staticClass:"d-flex align-center"},[t(v,{staticStyle:{opacity:"0.7"}},[e._v(e._s(e.mdiConsoleLine))]),t(gt,{staticClass:"mx-n2"},[e._v(" "+e._s(e.$t("Settings.ConsoleTab.Console"))+" ")]),t(U,{staticClass:"ml-3"})],1),t(V,{attrs:{title:e.$t("Settings.ConsoleTab.Direction").toString()}},[t(Ee,{attrs:{items:e.availableDirections,"hide-details":"",outlined:"",dense:"",attach:""},model:{value:e.consoleDirection,callback:function(r){e.consoleDirection=r},expression:"consoleDirection"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.ConsoleTab.EntryStyle").toString()}},[t(Ee,{attrs:{items:e.availableEntryStyles,"hide-details":"",outlined:"",dense:"",attach:""},model:{value:e.entryStyle,callback:function(r){e.entryStyle=r},expression:"entryStyle"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.ConsoleTab.Height").toString()}},[t(kc,{attrs:{"hide-details":"",min:200,max:900,step:10,label:e.consoleHeightTmp+"px"},on:{change:e.updateConsoleHeight},model:{value:e.consoleHeightTmp,callback:function(r){e.consoleHeightTmp=r},expression:"consoleHeightTmp"}})],1),t("div",{staticClass:"d-flex align-center"},[t(v,{staticStyle:{opacity:"0.7"}},[e._v(e._s(e.mdiFilter))]),t(gt,{staticClass:"mx-n2"},[e._v(" "+e._s(e.$t("Settings.ConsoleTab.Filters"))+" ")]),t(U,{staticClass:"ml-3"})],1),t(V,{attrs:{title:e.$t("Settings.ConsoleTab.HideTemperatures").toString(),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.hideWaitTemperatures,callback:function(r){e.hideWaitTemperatures=r},expression:"hideWaitTemperatures"}})],1),e.moonrakerComponents.includes("timelapse")?[t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.ConsoleTab.HideTimelapse").toString(),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.hideTimelapse,callback:function(r){e.hideTimelapse=r},expression:"hideTimelapse"}})],1)]:e._e(),t(U,{staticClass:"my-2"}),e._l(e.consoleFilters,function(r,i){return t("div",{key:i},[i?t(U,{staticClass:"my-2"}):e._e(),t(V,{attrs:{title:r.name}},[t(g,{staticClass:"minwidth-0 px-2",attrs:{small:"",outlined:"",color:r.bool?"white":"grey"},on:{click:function(n){return e.toggleFilter(r)}}},[t(v,{attrs:{small:""}},[e._v(e._s(r.bool?e.mdiFilter:e.mdiFilterOff))])],1),t(g,{staticClass:"ml-3",attrs:{small:"",outlined:""},on:{click:function(n){return e.editFilter(r)}}},[t(v,{attrs:{left:"",small:""}},[e._v(e._s(e.mdiPencil))]),e._v(" "+e._s(e.$t("Settings.Edit"))+" ")],1),t(g,{staticClass:"ml-3 minwidth-0 px-2",attrs:{small:"",outlined:"",color:"error"},on:{click:function(n){return e.deleteFilter(r.id)}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiDelete))])],1)],1)],1)})],2),t(ne,{staticClass:"d-flex justify-end"},[t(g,{attrs:{text:"",color:"primary"},on:{click:e.createFilter}},[e._v(e._s(e.$t("Settings.ConsoleTab.AddFilter")))])],1)],1)],1)},yq=[];const gb={};var Cq=E(Ca,bq,yq,!1,$q,null,null,null);function $q(e){for(let s in gb)this[s]=gb[s]}const xq=function(){return Cq.exports}();var wq=Object.defineProperty,Sq=Object.getOwnPropertyDescriptor,ax=(e,s,t,r)=>{for(var i=r>1?void 0:r?Sq(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&wq(s,t,i),i};let Wl=class extends M(O){constructor(){super(...arguments),this.mdiPencil=bt,this.mdiDelete=ze}get subTitle(){let e=[];return Object.keys(this.preset.values).forEach(s=>{const t=this.preset.values[s];if(t.bool){const r=s.indexOf(" ")?s.slice(s.indexOf(" ")+1):s;e.push(at(r)+": "+t.value+"°C")}}),this.preset.gcode&&e.push(this.$t("Settings.PresetsTab.CustomGCode").toString()),e.join(", ")}editPreset(){this.$emit("edit",this.preset)}deletePreset(){this.$store.dispatch("gui/presets/delete",this.preset.id)}};ax([P({required:!0})],Wl.prototype,"preset",2);Wl=ax([D({components:{SettingsRow:V}})],Wl);var Pq=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(V,{attrs:{title:e.preset.name,"sub-title":e.subTitle}},[t(g,{staticClass:"ml-3",attrs:{small:"",outlined:""},on:{click:e.editPreset}},[t(v,{attrs:{left:"",small:""}},[e._v(e._s(e.mdiPencil))]),e._v(" "+e._s(e.$t("Settings.Edit"))+" ")],1),t(g,{staticClass:"ml-3 minwidth-0 px-2",attrs:{small:"",outlined:"",color:"error"},on:{click:e.deletePreset}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiDelete))])],1)],1)},Dq=[];const vb={};var Tq=E(Wl,Pq,Dq,!1,Mq,null,null,null);function Mq(e){for(let s in vb)this[s]=vb[s]}const ox=function(){return Tq.exports}();var Eq=Object.defineProperty,Oq=Object.getOwnPropertyDescriptor,Lq=(e,s,t,r)=>{for(var i=r>1?void 0:r?Oq(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Eq(s,t,i),i};let yh=class extends M(O){constructor(){super(...arguments),this.mdiPencil=bt}editCooldown(){this.$emit("edit")}};yh=Lq([D({components:{SettingsRow:V}})],yh);var Aq=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(V,{attrs:{title:e.$t("Settings.PresetsTab.Cooldown")}},[t(g,{staticClass:"ml-3",attrs:{small:"",outlined:""},on:{click:e.editCooldown}},[t(v,{attrs:{left:"",small:""}},[e._v(e._s(e.mdiPencil))]),e._v(" "+e._s(e.$t("Settings.Edit"))+" ")],1)],1)},kq=[];const _b={};var Fq=E(yh,Aq,kq,!1,Rq,null,null,null);function Rq(e){for(let s in _b)this[s]=_b[s]}const lx=function(){return Fq.exports}();var jq=Object.defineProperty,Hq=Object.getOwnPropertyDescriptor,cx=(e,s,t,r)=>{for(var i=r>1?void 0:r?Hq(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&jq(s,t,i),i};let Gl=class extends M(O){constructor(){super(...arguments),this.mdiPencil=bt,this.mdiDelete=ze,this.valid=!1,this.boolInvalidMin=!1,this.rules={required:e=>e!==""||this.$t("Settings.PresetsTab.ErrorNameRequired"),unique:e=>!this.existsPresetName(e)||this.$t("Settings.PresetsTab.ErrorNameNotUnique"),invalid:e=>parseFloat(e)>=0||this.$t("Settings.PresetsTab.ErrorInvalidValue")}}get title(){return this.preset.id===null?this.$t("Settings.PresetsTab.CreateHeadline"):this.$t("Settings.PresetsTab.EditHeadline")}get storeButtonText(){return this.preset.id===null?this.$t("Settings.PresetsTab.StoreButton"):this.$t("Settings.PresetsTab.UpdateButton")}get presets(){var e;return(e=this.$store.getters["gui/presets/getPresets"])!=null?e:[]}get available_heaters(){var e,s,t;return((t=(s=(e=this.$store.state.printer)==null?void 0:e.heaters)==null?void 0:s.available_heaters)!=null?t:[]).sort()}get available_temperature_fans(){var e,s,t;return((t=(s=(e=this.$store.state.printer)==null?void 0:e.heaters)==null?void 0:s.available_sensors)!=null?t:[]).filter(r=>r.startsWith("temperature_fan ")).sort()}mounted(){const e=Object.keys(this.preset.values);this.available_heaters.filter(s=>!e.includes(s)).forEach(s=>{this.preset.values[s]={bool:!1,type:"heater",value:0}}),this.available_temperature_fans.filter(s=>!e.includes(s)).forEach(s=>{this.preset.values[s]={bool:!1,type:"temperature_fan",value:0}}),e.filter(s=>!this.available_heaters.includes(s)&&!this.available_temperature_fans.includes(s)).forEach(s=>{delete this.preset.values[s]})}existsPresetName(e){return this.presets.findIndex(s=>s.name===e&&s.id!==this.preset.id)!==-1}converNameObject(e){return at(e.replace("temperature_fan ",""))}closeForm(){this.$emit("close")}savePreset(){let e=0;for(const s of Object.keys(this.preset.values))this.preset.values[s].bool&&e++;if(this.preset.gcode.length&&e++,e===0){this.boolInvalidMin=!0;return}if(this.preset.id===null){this.$store.dispatch("gui/presets/store",{values:this.preset}),this.closeForm();return}this.$store.dispatch("gui/presets/update",{id:this.preset.id,values:this.preset}),this.closeForm()}};cx([P({required:!0})],Gl.prototype,"preset",2);Gl=cx([D({components:{SettingsRow:V}})],Gl);var Iq=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(xe,{attrs:{flat:""}},[t(cr,{on:{submit:function(r){return r.preventDefault(),e.savePreset.apply(null,arguments)}},model:{value:e.valid,callback:function(r){e.valid=r},expression:"valid"}},[t(gt,[e._v(e._s(e.title))]),t(q,[e.boolInvalidMin?t($,{staticClass:"mt-3"},[t(_,{staticClass:"py-0"},[t(it,{attrs:{dense:"",text:"",type:"error"}},[e._v(e._s(e.$t("Settings.PresetsTab.PresetInfo")))])],1)],1):e._e(),t(V,{attrs:{title:e.$t("Settings.PresetsTab.Name")}},[t(te,{attrs:{placeholder:e.$t("Settings.PresetsTab.PresetNamePlaceholder"),"hide-details":"auto",rules:[e.rules.required,e.rules.unique],dense:"",outlined:""},model:{value:e.preset.name,callback:function(r){e.$set(e.preset,"name",r)},expression:"preset.name"}})],1),e._l(e.preset.values,function(r,i){return t("div",{key:i},[t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.converNameObject(i)}},[t(_e,{staticClass:"shrink mt-0",attrs:{"hide-details":""},model:{value:r.bool,callback:function(n){e.$set(r,"bool",n)},expression:"value.bool"}}),t(te,{attrs:{"hide-details":"auto",rules:[e.rules.invalid],type:"number",suffix:"°C",dense:"",outlined:"","hide-spin-buttons":""},on:{focus:function(n){return n.target.select()}},model:{value:r.value,callback:function(n){e.$set(r,"value",n)},expression:"value.value"}})],1)],1)}),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.PresetsTab.CustomGCode")}},[t(Bs,{attrs:{outlined:"","hide-details":""},model:{value:e.preset.gcode,callback:function(r){e.$set(e.preset,"gcode",r)},expression:"preset.gcode"}})],1)],2),t(ne,{staticClass:"d-flex justify-end"},[t(g,{attrs:{text:""},on:{click:e.closeForm}},[e._v(" "+e._s(e.$t("Settings.Cancel"))+" ")]),t(g,{attrs:{color:"primary",text:"",type:"submit",disabled:!e.valid}},[e._v(" "+e._s(e.storeButtonText)+" ")])],1)],1)],1)},Nq=[];const bb={};var Vq=E(Gl,Iq,Nq,!1,Uq,null,null,null);function Uq(e){for(let s in bb)this[s]=bb[s]}const ux=function(){return Vq.exports}();var Bq=Object.defineProperty,Wq=Object.getOwnPropertyDescriptor,Gq=(e,s,t,r)=>{for(var i=r>1?void 0:r?Wq(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Bq(s,t,i),i};let Ch=class extends M(O){constructor(){super(...arguments),this.mdiPencil=bt,this.mdiDelete=ze,this.boolForm=!1,this.boolFormCooldown=!1,this.formPreset={}}get presets(){var s;return(s=this.$store.getters["gui/presets/getPresets"])!=null?s:[]}get cooldownGcode(){return this.$store.getters["gui/presets/getCooldownGcode"]}createPreset(){this.formPreset.id=null,this.formPreset.name="",this.formPreset.values={},this.formPreset.gcode="",this.boolForm=!0}edit(s){this.formPreset={...s},this.boolForm=!0}};Ch=Gq([D({components:{PresetsForm:ux,PresetsEntryCooldown:lx,PresetsEntry:ox,SettingsRow:V}})],Ch);var zq=Object.defineProperty,Zq=Object.getOwnPropertyDescriptor,dx=(e,s,t,r)=>{for(var i=r>1?void 0:r?Zq(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&zq(s,t,i),i};let zl=class extends M(O){constructor(){super(...arguments),this.mdiPencil=bt,this.mdiDelete=ze,this.gcode=""}mounted(){this.gcode=this.inputGcode}closeForm(){this.$emit("close")}saveCooldown(){this.$store.dispatch("gui/presets/saveSetting",{name:"cooldownGcode",value:this.gcode}),this.closeForm()}};dx([P({required:!0})],zl.prototype,"inputGcode",2);zl=dx([D({components:{SettingsRow:V}})],zl);var qq=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(xe,{attrs:{flat:""}},[t(cr,{on:{submit:function(r){return r.preventDefault(),e.saveCooldown.apply(null,arguments)}}},[t(gt,[e._v(e._s(e.$t("Settings.PresetsTab.EditCooldown")))]),t(q,[t(V,{attrs:{title:e.$t("Settings.PresetsTab.CustomGCode")}},[t(Bs,{attrs:{outlined:"","hide-details":""},model:{value:e.gcode,callback:function(r){e.gcode=r},expression:"gcode"}})],1)],1),t(ne,{staticClass:"d-flex justify-end"},[t(g,{attrs:{text:""},on:{click:e.closeForm}},[e._v(" "+e._s(e.$t("Settings.Cancel"))+" ")]),t(g,{attrs:{color:"primary",text:"",type:"submit"}},[e._v(" "+e._s(e.$t("Settings.PresetsTab.UpdateCooldown"))+" ")])],1)],1)],1)},Xq=[];const yb={};var Yq=E(zl,qq,Xq,!1,Jq,null,null,null);function Jq(e){for(let s in yb)this[s]=yb[s]}const Kq=function(){return Yq.exports}();var Qq=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.boolForm?t(ux,{attrs:{preset:e.formPreset},on:{close:function(r){e.boolForm=!1}}}):e.boolFormCooldown?t(Kq,{attrs:{"input-gcode":e.cooldownGcode},on:{close:function(r){e.boolFormCooldown=!1}}}):t(xe,{attrs:{flat:""}},[t(q,[t("h3",{staticClass:"text-h5 mb-3"},[e._v(e._s(e.$t("Settings.PresetsTab.PreheatPresets")))]),e._l(e.presets,function(r,i){return t("div",{key:r.index},[i?t(U,{staticClass:"my-2"}):e._e(),t(ox,{attrs:{preset:r},on:{edit:e.edit}})],1)}),e.presets.length?t(U,{staticClass:"my-2"}):e._e(),t(lx,{on:{edit:function(r){e.boolFormCooldown=!0}}})],2),t(ne,{staticClass:"d-flex justify-end"},[t(g,{attrs:{text:"",color:"primary"},on:{click:e.createPreset}},[e._v(e._s(e.$t("Settings.PresetsTab.AddPreset")))])],1)],1)],1)},eX=[];const Cb={};var tX=E(Ch,Qq,eX,!1,sX,null,null,null);function sX(e){for(let s in Cb)this[s]=Cb[s]}const rX=function(){return tX.exports}();var iX=Object.defineProperty,nX=Object.getOwnPropertyDescriptor,aX=(e,s,t,r)=>{for(var i=r>1?void 0:r?nX(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&iX(s,t,i),i};let $h=class extends M(O){constructor(){super(...arguments),this.mdiCheckboxMarkedCircle=Dy,this.mdiCancel=Sy,this.mdiPencil=bt,this.mdiDelete=ze,this.mdiAlertOutline=Wn,this.form={bool:!1,hostname:"",port:7125,path:"/",name:"",id:null,namespace:null}}get printers(){var s;return(s=this.$store.getters["gui/remoteprinters/getRemoteprinters"])!=null?s:[]}get canAddPrinters(){return this.$store.state.instancesDB!=="json"}get protocol(){var s;return(s=this.$store.state.socket.protocol)!=null?s:"ws"}formatPrinterName(s){var t;return s.hostname+(s.port!==80?":"+s.port:"")+((t=s.path)!=null?t:"")}createPrinter(){this.form.hostname="",this.form.port=7125,this.form.path="/",this.form.name="",this.form.id=null,this.form.namespace=null,this.form.bool=!0}storePrinter(){const s={hostname:this.form.hostname,port:this.form.port,name:this.form.name,path:this.form.path};this.$store.dispatch("gui/remoteprinters/store",{values:s}),this.form.hostname="",this.form.port=7125,this.form.name="",this.form.id=null,this.form.bool=!1}editPrinter(s){var t,r,i;this.form.id=(t=s.id)!=null?t:null,this.form.hostname=s.hostname,this.form.port=s.port,this.form.path=(r=s.path)!=null?r:"/",this.form.name=(i=s.name)!=null?i:"",this.form.bool=!0}updatePrinter(){const s={hostname:this.form.hostname,port:this.form.port,name:this.form.name,path:this.form.path};this.$store.dispatch("gui/remoteprinters/update",{id:this.form.id,values:s}),this.form.id=null,this.form.hostname="",this.form.port=7125,this.form.path="/",this.form.name="",this.form.bool=!1}delPrinter(s){this.$store.dispatch("gui/remoteprinters/delete",s)}};$h=aX([D({components:{SettingsRow:V}})],$h);var oX=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.form.bool?t(xe,{attrs:{flat:""}},[t(gt,[e._v(" "+e._s(e.form.id!==null?e.$t("Settings.RemotePrintersTab.EditPrinter"):e.$t("Settings.RemotePrintersTab.AddPrinter"))+" ")]),t(q,[t(V,{attrs:{title:e.$t("Settings.RemotePrintersTab.Hostname")}},[t(te,{attrs:{rules:[function(r){return!!r||"Hostname is required"},function(r){return!r.startsWith("http:")||"invalid hostname/IP"},function(r){return!r.startsWith("https:")||"invalid hostname/IP"}],"hide-details":"auto",required:"",dense:"",outlined:""},model:{value:e.form.hostname,callback:function(r){e.$set(e.form,"hostname",r)},expression:"form.hostname"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.RemotePrintersTab.Port")}},[t(te,{attrs:{rules:[function(r){return!!r||"Port is required"}],"hide-details":"auto",required:"",dense:"",outlined:""},model:{value:e.form.port,callback:function(r){e.$set(e.form,"port",r)},expression:"form.port"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.RemotePrintersTab.Path")}},[t(te,{attrs:{rules:[function(r){return!r||r.startsWith("/")||"Path must start with /"}],"hide-details":"auto",outlined:"",dense:""},model:{value:e.form.path,callback:function(r){e.$set(e.form,"path",r)},expression:"form.path"}})],1),e.instancesDB!=="moonraker"?[t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.RemotePrintersTab.Name"),"sub-title":e.$t("Settings.RemotePrintersTab.NameDescription")}},[t(te,{attrs:{outlined:"","hide-details":"auto",dense:""},model:{value:e.form.name,callback:function(r){e.$set(e.form,"name",r)},expression:"form.name"}})],1)]:e._e()],2),t(ne,{staticClass:"d-flex justify-end"},[t(g,{attrs:{text:""},on:{click:function(r){e.form.bool=!1}}},[e._v(e._s(e.$t("Settings.Cancel")))]),e.form.id===null?t(g,{attrs:{text:"",color:"primary"},on:{click:e.storePrinter}},[e._v(" "+e._s(e.$t("Settings.RemotePrintersTab.AddPrinter"))+" ")]):t(g,{attrs:{text:"",color:"primary"},on:{click:e.updatePrinter}},[e._v(" "+e._s(e.$t("Settings.RemotePrintersTab.UpdatePrinter"))+" ")])],1)],1):t(xe,{attrs:{flat:""}},[t(q,[t("h3",{staticClass:"text-h5 mb-3"},[e._v(e._s(e.$t("Settings.RemotePrintersTab.RemotePrinters")))]),e.canAddPrinters?e._e():t(it,{attrs:{icon:e.mdiAlertOutline,type:"warning",text:""}},[e._v(" "+e._s(e.$t("Settings.RemotePrintersTab.UseConfigJson"))+" ")]),e._l(e.printers,function(r,i){return t("div",{key:r.id},[i?t(U,{staticClass:"my-2"}):e._e(),t(V,{attrs:{title:e.formatPrinterName(r),loading:r.socket.isConnecting,icon:r.socket.isConnected?e.mdiCheckboxMarkedCircle:e.mdiCancel}},[t(g,{attrs:{small:"",outlined:"",disabled:!e.canAddPrinters},on:{click:function(n){return e.editPrinter(r)}}},[t(v,{attrs:{left:"",small:""}},[e._v(e._s(e.mdiPencil))]),e._v(" "+e._s(e.$t("Settings.Edit"))+" ")],1),t(g,{staticClass:"ml-3 minwidth-0 px-2",attrs:{small:"",outlined:"",color:"error",disabled:!e.canAddPrinters},on:{click:function(n){return e.delPrinter(r.id)}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiDelete))])],1)],1)],1)})],2),t(ne,{staticClass:"d-flex justify-end"},[t(g,{attrs:{text:"",color:"primary",disabled:!e.canAddPrinters},on:{click:e.createPrinter}},[e._v(" "+e._s(e.$t("Settings.RemotePrintersTab.AddPrinter"))+" ")])],1)],1)],1)},lX=[];const $b={};var cX=E($h,oX,lX,!1,uX,null,null,null);function uX(e){for(let s in $b)this[s]=$b[s]}const dX=function(){return cX.exports}();var mX=Object.defineProperty,hX=Object.getOwnPropertyDescriptor,Ka=(e,s,t,r)=>{for(var i=r>1?void 0:r?hX(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&mX(s,t,i),i};let Gr=class extends M(O,_t){constructor(){super(...arguments),this.mdiRestart=Zr,this.mdiTimerOutline=f3,this.defaultBigThumbnailBackground=qt}get mode(){return this.$store.state.gui.uiSettings.mode}set mode(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.mode",value:s})}get themeName(){return this.$store.getters["gui/theme"]}set themeName(s){var r,i;const t=fi.find(n=>n.name===s);this.logoColor===this.defaultLogoColor&&(this.logoColor=(r=t==null?void 0:t.colorLogo)!=null?r:Rr),this.primaryColor===this.defaultPrimaryColor&&(this.primaryColor=(i=t==null?void 0:t.colorPrimary)!=null?i:Go),this.$store.dispatch("gui/saveSetting",{name:"uiSettings.theme",value:s})}get modes(){return[{text:this.$t("Settings.UiSettingsTab.ThemeDark"),value:"dark"},{text:this.$t("Settings.UiSettingsTab.ThemeLight"),value:"light"}]}get themes(){return fi.map(s=>({text:s.displayName,value:s.name}))}get logoColor(){return this.$store.state.gui.uiSettings.logo}set logoColor(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.logo",value:s})}get defaultLogoColor(){var s,t;return(t=(s=this.theme)==null?void 0:s.colorLogo)!=null?t:Rr}get defaultPrimaryColor(){var s,t;return(t=(s=this.theme)==null?void 0:s.colorPrimary)!=null?t:Go}get primaryColor(){return this.$store.state.gui.uiSettings.primary}set primaryColor(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.primary",value:s})}get boolBigThumbnail(){return this.$store.state.gui.uiSettings.boolBigThumbnail}set boolBigThumbnail(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.boolBigThumbnail",value:s})}get bigThumbnailBackground(){return this.$store.state.gui.uiSettings.bigThumbnailBackground}set bigThumbnailBackground(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.bigThumbnailBackground",value:s})}get displayCancelPrint(){return this.$store.state.gui.uiSettings.displayCancelPrint}set displayCancelPrint(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.displayCancelPrint",value:s})}get progressAsFavicon(){return this.$store.state.gui.uiSettings.progressAsFavicon}set progressAsFavicon(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.progressAsFavicon",value:s})}get confirmOnEmergencyStop(){return this.$store.state.gui.uiSettings.confirmOnEmergencyStop}set confirmOnEmergencyStop(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.confirmOnEmergencyStop",value:s})}get confirmOnCoolDown(){return this.$store.state.gui.uiSettings.confirmOnCoolDown}set confirmOnCoolDown(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.confirmOnCoolDown",value:s})}get confirmOnPowerDeviceChange(){return this.$store.state.gui.uiSettings.confirmOnPowerDeviceChange}set confirmOnPowerDeviceChange(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.confirmOnPowerDeviceChange",value:s})}get lockSliders(){return this.$store.state.gui.uiSettings.lockSlidersOnTouchDevices}set lockSliders(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.lockSlidersOnTouchDevices",value:s})}get lockSlidersDelay(){return this.$store.state.gui.uiSettings.lockSlidersDelay}set lockSlidersDelay(s){s>=0&&this.$store.dispatch("gui/saveSetting",{name:"uiSettings.lockSlidersDelay",value:s})}get boolWideNavDrawer(){var s;return(s=this.$store.state.gui.uiSettings.boolWideNavDrawer)!=null?s:!1}get navigationStyleSetting(){return this.$store.state.gui.uiSettings.navigationStyle}set navigationStyleSetting(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.navigationStyle",value:s})}get navigationStyles(){return[{text:this.$t("Settings.UiSettingsTab.NavigationStyleIconsOnly"),value:"iconsOnly"},{text:this.$t("Settings.UiSettingsTab.NavigationStyleIconsAndText"),value:"iconsAndText"}]}get defaultNavigationStateSetting(){return this.$store.state.gui.uiSettings.defaultNavigationStateSetting}set defaultNavigationStateSetting(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.defaultNavigationStateSetting",value:s})}get defaultNavigationStateSettings(){return[{text:this.$t("Settings.UiSettingsTab.DefaultNavigationStateAlwaysOpen"),value:"alwaysOpen"},{text:this.$t("Settings.UiSettingsTab.DefaultNavigationStateAlwaysClosed"),value:"alwaysClosed"},{text:this.$t("Settings.UiSettingsTab.DefaultNavigationStateLastState"),value:"lastState"}]}get boolHideUploadAndPrintButton(){var s;return(s=this.$store.state.gui.uiSettings.boolHideUploadAndPrintButton)!=null?s:!1}set boolHideUploadAndPrintButton(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.boolHideUploadAndPrintButton",value:s})}get powerDevices(){var s;return(s=this.$store.getters["server/power/getDevices"])!=null?s:[]}get autoPowerDevice(){var s,t;return(t=(s=this.powerDevices.find(r=>r.device.toLowerCase()==="printer"))==null?void 0:s.device)!=null?t:"--"}get powerDeviceName(){var s;return(s=this.$store.state.gui.uiSettings.powerDeviceName)!=null?s:null}set powerDeviceName(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.powerDeviceName",value:s})}get powerDeviceOptions(){const s=[{text:"Auto (".concat(this.autoPowerDevice,")"),value:null}];return this.powerDevices.forEach(t=>{s.push({text:"".concat(t.device," (").concat(t.type,")"),value:t.device.toString()})}),s}get hideSaveConfigForBedMash(){var s;return(s=this.$store.state.gui.uiSettings.hideSaveConfigForBedMash)!=null?s:!1}set hideSaveConfigForBedMash(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.hideSaveConfigForBedMash",value:s})}get disableFanAnimation(){var s;return(s=this.$store.state.gui.uiSettings.disableFanAnimation)!=null?s:!1}set disableFanAnimation(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.disableFanAnimation",value:s})}get boolManualProbeDialog(){var s;return(s=this.$store.state.gui.uiSettings.boolManualProbeDialog)!=null?s:!0}set boolManualProbeDialog(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.boolManualProbeDialog",value:s})}get boolBedScrewsDialog(){var s;return(s=this.$store.state.gui.uiSettings.boolBedScrewsDialog)!=null?s:!0}set boolBedScrewsDialog(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.boolBedScrewsDialog",value:s})}get boolScrewsTiltAdjustDialog(){var s;return(s=this.$store.state.gui.uiSettings.boolScrewsTiltAdjustDialog)!=null?s:!0}set boolScrewsTiltAdjustDialog(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.boolScrewsTiltAdjustDialog",value:s})}get printstatusThumbnailZoom(){var s;return(s=this.$store.state.gui.uiSettings.printstatusThumbnailZoom)!=null?s:!0}set printstatusThumbnailZoom(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.printstatusThumbnailZoom",value:s})}get tempchartHeight(){var s;return(s=this.$store.state.gui.uiSettings.tempchartHeight)!=null?s:250}set tempchartHeight(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.tempchartHeight",value:s})}get hideUpdateWarnings(){var s;return(s=this.$store.state.gui.uiSettings.hideUpdateWarnings)!=null?s:!1}set hideUpdateWarnings(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.hideUpdateWarnings",value:s})}clearColorObject(s){return typeof s=="object"&&"hex"in s&&(s=s.hex),s.length>7&&(s=s.substr(0,7)),s}updateLogoColor(s){this.logoColor=this.clearColorObject(s)}updatePrimaryColor(s){this.primaryColor=this.clearColorObject(s)}updateBigThumbnailBackground(s){this.bigThumbnailBackground=this.clearColorObject(s)}onThemeChanged(s){const t=fi.find(r=>r.name===s);t&&t.colorLogo&&(this.logoColor=t.colorLogo)}};Ka([qe(500)],Gr.prototype,"updateLogoColor",1);Ka([qe(500)],Gr.prototype,"updatePrimaryColor",1);Ka([qe(500)],Gr.prototype,"updateBigThumbnailBackground",1);Ka([me("theme")],Gr.prototype,"onThemeChanged",1);Gr=Ka([D({components:{SettingsRow:V}})],Gr);var pX=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(xe,{attrs:{flat:""}},[t(q,[t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.Mode"),"sub-title":e.$t("Settings.UiSettingsTab.ModeDescription")}},[t(Ee,{staticClass:"mt-0",attrs:{items:e.modes,"hide-details":"",outlined:"",dense:""},model:{value:e.mode,callback:function(r){e.mode=r},expression:"mode"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.Theme"),"sub-title":e.$t("Settings.UiSettingsTab.ThemeDescription")}},[t(Ee,{staticClass:"mt-0",attrs:{items:e.themes,"hide-details":"",outlined:"",dense:""},model:{value:e.themeName,callback:function(r){e.themeName=r},expression:"themeName"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.Logo")}},[e.logoColor.toLowerCase()!==e.defaultLogoColor.toLowerCase()?t(g,{staticClass:"minwidth-0",attrs:{small:"",text:""},on:{click:function(r){e.logoColor=e.defaultLogoColor}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiRestart))])],1):e._e(),t($e,{attrs:{bottom:"",left:"","offset-y":"","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"minwidth-0 px-5",attrs:{color:e.logoColor,small:""}},"v-btn",n,!1),i))]}}])},[t(rs,{attrs:{value:e.logoColor,"hide-mode-switch":"",mode:"rgba"},on:{"update:color":e.updateLogoColor}})],1)],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.Primary")}},[e.primaryColor.toLowerCase()!==e.defaultPrimaryColor.toLowerCase()?t(g,{staticClass:"minwidth-0",attrs:{small:"",text:""},on:{click:function(r){e.primaryColor=e.defaultPrimaryColor}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiRestart))])],1):e._e(),t($e,{attrs:{bottom:"",left:"","offset-y":"","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"minwidth-0 px-5",attrs:{color:e.primaryColor,small:""}},"v-btn",n,!1),i))]}}])},[t(rs,{attrs:{value:e.primaryColor,"hide-mode-switch":"",mode:"rgba"},on:{"update:color":e.updatePrimaryColor}})],1)],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.GcodeThumbnails"),"sub-title":e.$t("Settings.UiSettingsTab.GcodeThumbnailsDescription"),"dynamic-slot-width":!0}},[t(g,{attrs:{outlined:"",small:"",color:"primary",href:"https://docs.mainsail.xyz/overview/features/thumbnails",target:"_blank"}},[e._v(" "+e._s(e.$t("Settings.UiSettingsTab.Guide"))+" ")])],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.BoolBigThumbnail"),"sub-title":e.$t("Settings.UiSettingsTab.BoolBigThumbnailDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.boolBigThumbnail,callback:function(r){e.boolBigThumbnail=r},expression:"boolBigThumbnail"}})],1),e.boolBigThumbnail?[t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.PrintstatusThumbnailZoom"),"sub-title":e.$t("Settings.UiSettingsTab.PrintstatusThumbnailZoomDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.printstatusThumbnailZoom,callback:function(r){e.printstatusThumbnailZoom=r},expression:"printstatusThumbnailZoom"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.BigThumbnailBackground")}},[e.bigThumbnailBackground.toLowerCase()!==e.defaultBigThumbnailBackground.toLowerCase()?t(g,{staticClass:"minwidth-0",attrs:{small:"",text:""},on:{click:function(r){e.bigThumbnailBackground=e.defaultBigThumbnailBackground}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiRestart))])],1):e._e(),t($e,{attrs:{bottom:"",left:"","offset-y":"","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"minwidth-0 px-5",attrs:{color:e.bigThumbnailBackground,small:""}},"v-btn",n,!1),i))]}}],null,!1,2319691296)},[t(rs,{attrs:{value:e.bigThumbnailBackground,"hide-mode-switch":"",mode:"rgba"},on:{"update:color":e.updateBigThumbnailBackground}})],1)],1)]:e._e(),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.DisplayCANCEL_PRINT"),"sub-title":e.$t("Settings.UiSettingsTab.DisplayCANCEL_PRINTDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.displayCancelPrint,callback:function(r){e.displayCancelPrint=r},expression:"displayCancelPrint"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.ProgressAsFavicon"),"sub-title":e.$t("Settings.UiSettingsTab.ProgressAsFaviconDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.progressAsFavicon,callback:function(r){e.progressAsFavicon=r},expression:"progressAsFavicon"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.LockSliders"),"sub-title":e.$t("Settings.UiSettingsTab.LockSlidersDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.lockSliders,callback:function(r){e.lockSliders=r},expression:"lockSliders"}})],1),t(U,{staticClass:"my-2"}),t(Ac,[t(V,{directives:[{name:"show",rawName:"v-show",value:e.lockSliders,expression:"lockSliders"}],attrs:{title:e.$t("Settings.UiSettingsTab.LockSlidersDelay"),"sub-title":e.$t("Settings.UiSettingsTab.LockSlidersDelayDescription"),"dynamic-slot-width":!0}},[t(te,{staticClass:"mt-0",style:e.isMobile?{"max-width":"140px"}:{},attrs:{"prepend-icon":e.mdiTimerOutline,label:"Timeout",type:"number",rules:[function(r){return r>=0}],min:"0",step:"0.5",suffix:"s","hide-details":"",outlined:"",dense:"","hide-spin-buttons":""},model:{value:e.lockSlidersDelay,callback:function(r){e.lockSlidersDelay=r},expression:"lockSlidersDelay"}})],1)],1),t(U,{directives:[{name:"show",rawName:"v-show",value:e.lockSliders,expression:"lockSliders"}],staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.ConfirmOnEmergencyStop"),"sub-title":e.$t("Settings.UiSettingsTab.ConfirmOnEmergencyStopDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.confirmOnEmergencyStop,callback:function(r){e.confirmOnEmergencyStop=r},expression:"confirmOnEmergencyStop"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.ConfirmOnCoolDown"),"sub-title":e.$t("Settings.UiSettingsTab.ConfirmOnCoolDownDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.confirmOnCoolDown,callback:function(r){e.confirmOnCoolDown=r},expression:"confirmOnCoolDown"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.ConfirmOnPowerDeviceChange"),"sub-title":e.$t("Settings.UiSettingsTab.ConfirmOnPowerDeviceChangeDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.confirmOnPowerDeviceChange,callback:function(r){e.confirmOnPowerDeviceChange=r},expression:"confirmOnPowerDeviceChange"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.NavigationStyle"),"sub-title":e.$t("Settings.UiSettingsTab.NavigationStyleDescription")}},[t(Ee,{staticClass:"mt-0",attrs:{items:e.navigationStyles,"hide-details":"",outlined:"",dense:""},model:{value:e.navigationStyleSetting,callback:function(r){e.navigationStyleSetting=r},expression:"navigationStyleSetting"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.DefaultNavigationState"),"sub-title":e.$t("Settings.UiSettingsTab.DefaultNavigationStateDescription")}},[t(Ee,{staticClass:"mt-0",attrs:{items:e.defaultNavigationStateSettings,"hide-details":"",outlined:"",dense:""},model:{value:e.defaultNavigationStateSetting,callback:function(r){e.defaultNavigationStateSetting=r},expression:"defaultNavigationStateSetting"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.BoolHideUploadAndPrintButton"),"sub-title":e.$t("Settings.UiSettingsTab.BoolHideUploadAndPrintButtonDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.boolHideUploadAndPrintButton,callback:function(r){e.boolHideUploadAndPrintButton=r},expression:"boolHideUploadAndPrintButton"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.PowerDeviceName"),"sub-title":e.$t("Settings.UiSettingsTab.PowerDeviceNameDescription"),"dynamic-slot-width":!0}},[t(Ee,{staticClass:"mt-0",attrs:{items:e.powerDeviceOptions,"hide-details":"",outlined:"",dense:""},model:{value:e.powerDeviceName,callback:function(r){e.powerDeviceName=r},expression:"powerDeviceName"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.HideSaveConfigButtonForBedMesh"),"sub-title":e.$t("Settings.UiSettingsTab.HideSaveConfigButtonForBedMeshDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.hideSaveConfigForBedMash,callback:function(r){e.hideSaveConfigForBedMash=r},expression:"hideSaveConfigForBedMash"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.DisableFanAnimation"),"sub-title":e.$t("Settings.UiSettingsTab.DisableFanAnimationDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.disableFanAnimation,callback:function(r){e.disableFanAnimation=r},expression:"disableFanAnimation"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.ManualProbeDialog"),"sub-title":e.$t("Settings.UiSettingsTab.ManualProbeDialogDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.boolManualProbeDialog,callback:function(r){e.boolManualProbeDialog=r},expression:"boolManualProbeDialog"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.BedScrewsDialog"),"sub-title":e.$t("Settings.UiSettingsTab.BedScrewsDialogDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.boolBedScrewsDialog,callback:function(r){e.boolBedScrewsDialog=r},expression:"boolBedScrewsDialog"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.ScrewsTiltAdjustDialog"),"sub-title":e.$t("Settings.UiSettingsTab.ScrewsTiltAdjustDialogDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.boolScrewsTiltAdjustDialog,callback:function(r){e.boolScrewsTiltAdjustDialog=r},expression:"boolScrewsTiltAdjustDialog"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.TempchartHeight"),"sub-title":e.$t("Settings.UiSettingsTab.TempchartHeightDescription")}},[t(kc,{attrs:{"hide-details":"",min:100,max:500,step:1,label:e.tempchartHeight+"px"},model:{value:e.tempchartHeight,callback:function(r){e.tempchartHeight=r},expression:"tempchartHeight"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.UiSettingsTab.HideUpdateWarnings"),"sub-title":e.$t("Settings.UiSettingsTab.HideUpdateWarningsDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.hideUpdateWarnings,callback:function(r){e.hideUpdateWarnings=r},expression:"hideUpdateWarnings"}})],1)],2)],1)],1)},fX=[];const xb={};var gX=E(Gr,pX,fX,!1,vX,null,null,null);function vX(e){for(let s in xb)this[s]=xb[s]}const _X=function(){return gX.exports}();var bX=Object.defineProperty,yX=Object.getOwnPropertyDescriptor,Uf=(e,s,t,r)=>{for(var i=r>1?void 0:r?yX(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&bX(s,t,i),i};let $a=class extends M(Ns){constructor(){super(...arguments),this.mdiInformation=kt,this.mdiDragVertical=Ra}get panelname(){return this.getPanelName(this.name)}get icon(){return this.convertPanelnameToIcon(this.name)}get checkboxColor(){return this.visible?"primary":"grey lighten-1"}get checkboxIcon(){return this.visible?pp:hp}};Uf([P({type:String,required:!0})],$a.prototype,"name",2);Uf([P({type:Boolean,required:!0})],$a.prototype,"visible",2);$a=Uf([D({components:{draggable:Yr}})],$a);var CX=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(J,[t($,[t(_,{staticClass:"col-auto px-0"},[t(v,{staticClass:"handle pr-2"},[e._v(e._s(e.mdiDragVertical))]),t(v,[e._v(e._s(e.icon))])],1),t(_,{staticClass:"pr-0 text-truncate"},[e._v(" "+e._s(e.panelname)+" ")]),t(_,{staticClass:"col-auto pl-2"},[t(v,{attrs:{color:e.checkboxColor},domProps:{innerHTML:e._s(e.checkboxIcon)},on:{click:function(r){return r.stopPropagation(),e.$emit("change-visible",e.name,!e.visible)}}})],1)],1)],1)},$X=[];const wb={};var xX=E($a,CX,$X,!1,wX,"bd581aaa",null,null);function wX(e){for(let s in wb)this[s]=wb[s]}const SX=function(){return xX.exports}();var PX=Object.defineProperty,DX=Object.getOwnPropertyDescriptor,Bf=(e,s,t,r)=>{for(var i=r>1?void 0:r?DX(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&PX(s,t,i),i};let xa=class extends M(Ns){constructor(){super(...arguments),this.mdiInformation=kt,this.mdiLock=UT}get layoutname(){return this.column?"".concat(this.viewportName,"Layout").concat(this.column):"".concat(this.viewportName,"Layout")}get groupname(){return"".concat(this.viewportName,"Viewport")}get layout(){return this.$store.getters["gui/getPanels"](this.viewportName,this.column)}set layout(s){s=s.filter(t=>t!==void 0),this.$store.dispatch("gui/saveSetting",{name:"dashboard.".concat(this.layoutname),value:s})}changeVisible(s,t){const r=this.layout.findIndex(i=>i.name===s);r!==-1&&(this.layout[r].visible=t,this.$store.dispatch("gui/saveSetting",{name:"dashboard.".concat(this.layoutname),value:this.layout}))}};Bf([P({type:String,required:!0})],xa.prototype,"viewportName",2);Bf([P({type:Number,required:!1,default:1})],xa.prototype,"column",2);xa=Bf([D({components:{SettingsDashboardSortableItem:SX,draggable:Yr}})],xa);var TX=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(xe,{staticClass:"mx-auto fill-height",attrs:{"max-width":"300",tile:""}},[t(Oe,{staticClass:"fill-height",attrs:{dense:""}},[e.column<2?t(J,[t($,[t(_,{staticClass:"col-auto pr-0 pl-8"},[t(v,[e._v(e._s(e.mdiInformation))])],1),t(_,{staticClass:"pr-0 text-truncate"},[e._v(" "+e._s(e.$t("Panels.StatusPanel.Headline"))+" ")]),t(_,{staticClass:"col-auto pl-0"},[t(v,{attrs:{color:"grey lighten-1"}},[e._v(e._s(e.mdiLock))])],1)],1)],1):e._e(),t("draggable",{staticClass:"v-list-item-group fill-height",attrs:{handle:".handle","ghost-class":"ghost",group:e.groupname},model:{value:e.layout,callback:function(r){e.layout=r},expression:"layout"}},[t("transition-group",e._l(e.layout,function(r){return t("settings-dashboard-sortable-item",{key:"item-".concat(r.name),attrs:{name:r.name,visible:r.visible},on:{"change-visible":e.changeVisible}})}),1)],1)],1)],1)},MX=[];const Sb={};var EX=E(xa,TX,MX,!1,OX,"021a8703",null,null);function OX(e){for(let s in Sb)this[s]=Sb[s]}const Gu=function(){return EX.exports}();var LX=Object.defineProperty,AX=Object.getOwnPropertyDescriptor,kX=(e,s,t,r)=>{for(var i=r>1?void 0:r?AX(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&LX(s,t,i),i};let xh=class extends M(Ns){resetLayout(){this.$store.dispatch("gui/resetLayout","mobileLayout")}};xh=kX([D({components:{SettingsDashboardSortable:Gu}})],xh);var FX=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(xe,{attrs:{flat:""}},[t(q,[t($,[t(_,[t("settings-dashboard-sortable",{attrs:{"viewport-name":"mobile",column:0}})],1)],1),t($,[t(_,{staticClass:"text-center"},[t(g,{attrs:{color:"error"},on:{click:e.resetLayout}},[e._v(e._s(e.$t("Settings.DashboardTab.ResetLayout")))])],1)],1)],1)],1)},RX=[];const Pb={};var jX=E(xh,FX,RX,!1,HX,null,null,null);function HX(e){for(let s in Pb)this[s]=Pb[s]}const IX=function(){return jX.exports}();var NX=Object.defineProperty,VX=Object.getOwnPropertyDescriptor,UX=(e,s,t,r)=>{for(var i=r>1?void 0:r?VX(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&NX(s,t,i),i};let wh=class extends M(Ns){resetLayout(){this.$store.dispatch("gui/resetLayout","tabletLayout1"),this.$store.dispatch("gui/resetLayout","tabletLayout2")}};wh=UX([D({components:{SettingsDashboardSortable:Gu}})],wh);var BX=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(xe,{attrs:{flat:""}},[t(q,[t($,[t(_,{staticClass:"col-12 col-md-6"},[t("settings-dashboard-sortable",{attrs:{"viewport-name":"tablet",column:1}})],1),t(_,{staticClass:"col-12 col-md-6"},[t("settings-dashboard-sortable",{attrs:{"viewport-name":"tablet",column:2}})],1)],1),t($,[t(_,{staticClass:"text-center"},[t(g,{attrs:{color:"error"},on:{click:e.resetLayout}},[e._v(e._s(e.$t("Settings.DashboardTab.ResetLayout")))])],1)],1)],1)],1)},WX=[];const Db={};var GX=E(wh,BX,WX,!1,zX,null,null,null);function zX(e){for(let s in Db)this[s]=Db[s]}const ZX=function(){return GX.exports}();var qX=Object.defineProperty,XX=Object.getOwnPropertyDescriptor,YX=(e,s,t,r)=>{for(var i=r>1?void 0:r?XX(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&qX(s,t,i),i};let Sh=class extends M(Ns){resetLayout(){this.$store.dispatch("gui/resetLayout","desktopLayout1"),this.$store.dispatch("gui/resetLayout","desktopLayout2")}};Sh=YX([D({components:{SettingsDashboardSortable:Gu}})],Sh);var JX=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(xe,{attrs:{flat:""}},[t(q,[t($,[t(_,{staticClass:"col-12 col-md-6"},[t("settings-dashboard-sortable",{attrs:{"viewport-name":"desktop",column:1}})],1),t(_,{staticClass:"col-12 col-md-6"},[t("settings-dashboard-sortable",{attrs:{"viewport-name":"desktop",column:2}})],1)],1),t($,[t(_,{staticClass:"text-center"},[t(g,{attrs:{color:"error"},on:{click:e.resetLayout}},[e._v(e._s(e.$t("Settings.DashboardTab.ResetLayout")))])],1)],1)],1)],1)},KX=[];const Tb={};var QX=E(Sh,JX,KX,!1,eY,null,null,null);function eY(e){for(let s in Tb)this[s]=Tb[s]}const tY=function(){return QX.exports}();var sY=Object.defineProperty,rY=Object.getOwnPropertyDescriptor,iY=(e,s,t,r)=>{for(var i=r>1?void 0:r?rY(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&sY(s,t,i),i};let Ph=class extends M(Ns){resetLayout(){this.$store.dispatch("gui/resetLayout","widescreenLayout1"),this.$store.dispatch("gui/resetLayout","widescreenLayout2"),this.$store.dispatch("gui/resetLayout","widescreenLayout3")}};Ph=iY([D({components:{SettingsDashboardSortable:Gu}})],Ph);var nY=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(xe,{attrs:{flat:""}},[t(q,[t($,[t(_,{staticClass:"col-12 col-md-4"},[t("settings-dashboard-sortable",{attrs:{"viewport-name":"widescreen",column:1}})],1),t(_,{staticClass:"col-12 col-md-4"},[t("settings-dashboard-sortable",{attrs:{"viewport-name":"widescreen",column:2}})],1),t(_,{staticClass:"col-12 col-md-4"},[t("settings-dashboard-sortable",{attrs:{"viewport-name":"widescreen",column:3}})],1)],1),t($,[t(_,{staticClass:"text-center"},[t(g,{attrs:{color:"error"},on:{click:e.resetLayout}},[e._v(e._s(e.$t("Settings.DashboardTab.ResetLayout")))])],1)],1)],1)],1)},aY=[];const Mb={};var oY=E(Ph,nY,aY,!1,lY,null,null,null);function lY(e){for(let s in Mb)this[s]=Mb[s]}const cY=function(){return oY.exports}();var uY=Object.defineProperty,dY=Object.getOwnPropertyDescriptor,mY=(e,s,t,r)=>{for(var i=r>1?void 0:r?dY(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&uY(s,t,i),i};let Dh=class extends M(O){constructor(){super(...arguments),this.mdiCellphone=lT,this.mdiTablet=p3,this.mdiMonitorDashboard=Pp,this.mdiMonitorScreenshot=qT,this.currentViewport="desktop"}mounted(){this.isMobile?this.currentViewport="mobile":this.isTablet?this.currentViewport="tablet":this.isDesktop?this.currentViewport="desktop":this.isWidescreen?this.currentViewport="widescreen":this.currentViewport="desktop"}get currentTab(){return"settings-dashboard-tab-"+this.currentViewport}};Dh=mY([D({components:{SettingsDashboardTabMobile:IX,SettingsDashboardTabTablet:ZX,SettingsDashboardTabDesktop:tY,SettingsDashboardTabWidescreen:cY}})],Dh);var hY=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(xe,{attrs:{flat:""}},[t(q,[t($,[t(_,{staticClass:"text-center"},[t(Uo,{staticClass:"mx-auto",attrs:{mandatory:""},model:{value:e.currentViewport,callback:function(r){e.currentViewport=r},expression:"currentViewport"}},[t(g,{attrs:{value:"mobile"}},[t("span",{staticClass:"hidden-sm-and-down"},[e._v(e._s(e.$t("Settings.DashboardTab.Mobile")))]),t(v,{staticClass:"hidden-sm-and-down",attrs:{right:""}},[e._v(e._s(e.mdiCellphone))]),t(v,{staticClass:"hidden-md-and-up"},[e._v(e._s(e.mdiCellphone))])],1),t(g,{attrs:{value:"tablet"}},[t("span",{staticClass:"hidden-sm-and-down"},[e._v(e._s(e.$t("Settings.DashboardTab.Tablet")))]),t(v,{staticClass:"hidden-sm-and-down",attrs:{right:""}},[e._v(e._s(e.mdiTablet))]),t(v,{staticClass:"hidden-md-and-up"},[e._v(e._s(e.mdiTablet))])],1),t(g,{attrs:{value:"desktop"}},[t("span",{staticClass:"hidden-sm-and-down"},[e._v(e._s(e.$t("Settings.DashboardTab.Desktop")))]),t(v,{staticClass:"hidden-sm-and-down",attrs:{right:""}},[e._v(e._s(e.mdiMonitorDashboard))]),t(v,{staticClass:"hidden-md-and-up"},[e._v(e._s(e.mdiMonitorDashboard))])],1),t(g,{attrs:{value:"widescreen"}},[t("span",{staticClass:"hidden-sm-and-down"},[e._v(e._s(e.$t("Settings.DashboardTab.Widescreen")))]),t(v,{staticClass:"hidden-sm-and-down",attrs:{right:""}},[e._v(e._s(e.mdiMonitorScreenshot))]),t(v,{staticClass:"hidden-md-and-up"},[e._v(e._s(e.mdiMonitorScreenshot))])],1)],1)],1)],1),t($,[t(_,{staticClass:"dashboard-rows-container"},[t(e.currentTab,{tag:"component"})],1)],1)],1)],1)},pY=[];const Eb={};var fY=E(Dh,hY,pY,!1,gY,"50943ad9",null,null);function gY(e){for(let s in Eb)this[s]=Eb[s]}const vY=function(){return fY.exports}();var _Y=Object.defineProperty,bY=Object.getOwnPropertyDescriptor,Wf=(e,s,t,r)=>{for(var i=r>1?void 0:r?bY(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&_Y(s,t,i),i};let wa=class extends M(O){get showAxes(){return this.$store.state.gui.gcodeViewer.showAxes}set showAxes(s){this.$store.dispatch("gui/saveSetting",{name:"gcodeViewer.showAxes",value:s})}get extruderColors(){return this.$store.state.gui.gcodeViewer.extruderColors}colorsUpdated(s,t){let r=this.extruderColors;r[t]=s.hex,this.$store.dispatch("gui/saveSetting",{name:"gcodeViewer.extruderColors",value:r})}get backgroundColor(){return this.$store.state.gui.gcodeViewer.backgroundColor}set backgroundColor(s){this.$store.dispatch("gui/saveSetting",{name:"gcodeViewer.backgroundColor",value:s})}get gridColor(){return this.$store.state.gui.gcodeViewer.gridColor}set gridColor(s){this.$store.dispatch("gui/saveSetting",{name:"gcodeViewer.gridColor",value:s})}get progressColor(){return this.$store.state.gui.gcodeViewer.progressColor}set progressColor(s){this.$store.dispatch("gui/saveSetting",{name:"gcodeViewer.progressColor",value:s})}updateColorValue(s,t){y.set(this,s,this.clearColorObject(t))}clearColorObject(s){return typeof s=="object"&&"hex"in s&&(s=s.hex),s.length>7&&(s=s.substr(0,7)),s}get minFeed(){return this.$store.state.gui.gcodeViewer.minFeed}set minFeed(s){this.$store.dispatch("gui/saveSetting",{name:"gcodeViewer.minFeed",value:s})}get maxFeed(){return this.$store.state.gui.gcodeViewer.maxFeed}set maxFeed(s){this.$store.dispatch("gui/saveSetting",{name:"gcodeViewer.maxFeed",value:s})}get minFeedColor(){return this.$store.state.gui.gcodeViewer.minFeedColor}set minFeedColor(s){this.$store.dispatch("gui/saveSetting",{name:"gcodeViewer.minFeedColor",value:s})}get maxFeedColor(){return this.$store.state.gui.gcodeViewer.maxFeedColor}set maxFeedColor(s){this.$store.dispatch("gui/saveSetting",{name:"gcodeViewer.maxFeedColor",value:s})}feedBlur(){this.minFeed<1&&(this.minFeed=1),this.maxFeed<this.minFeed&&(this.maxFeed=this.minFeed+1)}};Wf([qe(500)],wa.prototype,"colorsUpdated",1);Wf([qe(500)],wa.prototype,"updateColorValue",1);wa=Wf([D({components:{SettingsRow:V}})],wa);var yY=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(xe,{attrs:{flat:""}},[t(q,[t(V,{attrs:{title:e.$t("Settings.GCodeViewerTab.ShowAxes")}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.showAxes,callback:function(r){e.showAxes=r},expression:"showAxes"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.GCodeViewerTab.BackgroundColor")}},[t($e,{attrs:{"close-on-content-click":!1,bottom:"",left:"","offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"minwidth-0 px-5",attrs:{color:e.backgroundColor,small:""}},"v-btn",n,!1),i))]}}])},[t(rs,{attrs:{value:e.backgroundColor,"hide-mode-switch":"",mode:"rgba"},on:{"update:color":function(r){return e.updateColorValue("backgroundColor",r)}}})],1)],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.GCodeViewerTab.GridColor")}},[t($e,{attrs:{"close-on-content-click":!1,bottom:"",left:"","offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"minwidth-0 px-5",attrs:{color:e.gridColor,small:""}},"v-btn",n,!1),i))]}}])},[t(rs,{attrs:{value:e.gridColor,"hide-mode-switch":"",mode:"rgba"},on:{"update:color":function(r){return e.updateColorValue("gridColor",r)}}})],1)],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.GCodeViewerTab.ProgressColor")}},[t($e,{attrs:{"close-on-content-click":!1,bottom:"",left:"","offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"minwidth-0 px-5",attrs:{color:e.progressColor,small:""}},"v-btn",n,!1),i))]}}])},[t(rs,{attrs:{value:e.progressColor,"hide-mode-switch":"",mode:"rgba"},on:{"update:color":function(r){return e.updateColorValue("progressColor",r)}}})],1)],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.GCodeViewerTab.ExtruderColor")}},[t($,{attrs:{"no-gutters":""}},e._l(e.extruderColors,function(r,i){return t($e,{key:i,attrs:{"close-on-content-click":!1,bottom:"",left:"","offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(n){var a=n.on,o=n.attrs;return[t(_,{staticClass:"mt-1",attrs:{align:"right",cols:"12"}},[t("span",{staticClass:"mr-2"},[e._v(e._s(i))]),t(g,e._g(e._b({staticClass:"minwidth-0 px-5",attrs:{color:e.extruderColors[i],small:""}},"v-btn",o,!1),a))],1)]}}],null,!0)},[t(rs,{attrs:{value:e.extruderColors[i],"hide-mode-switch":"",mode:"rgba"},on:{"update:color":function(n){return e.colorsUpdated(n,i)}}})],1)}),1)],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.GCodeViewerTab.MinFeed")}},[t($e,{attrs:{"close-on-content-click":!1,bottom:"",left:"","offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"minwidth-0 px-5 mr-3",attrs:{color:e.minFeedColor,small:""}},"v-btn",n,!1),i))]}}])},[t(rs,{attrs:{value:e.minFeedColor,"hide-mode-switch":"",mode:"rgba"},on:{"update:color":function(r){return e.updateColorValue("minFeedColor",r)}}})],1),t(te,{attrs:{rules:[function(r){return r>0||"Minimum speed is 1"}],dense:"","hide-details":"auto",outlined:"",suffix:"mm/s",type:"number","hide-spin-buttons":""},on:{blur:e.feedBlur},model:{value:e.minFeed,callback:function(r){e.minFeed=r},expression:"minFeed"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.GCodeViewerTab.MaxFeed")}},[t($e,{attrs:{"close-on-content-click":!1,bottom:"",left:"","offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"minwidth-0 px-5 mr-3",attrs:{color:e.maxFeedColor,small:""}},"v-btn",n,!1),i))]}}])},[t(rs,{attrs:{value:e.maxFeedColor,"hide-mode-switch":"",mode:"rgba"},on:{"update:color":function(r){return e.updateColorValue("maxFeedColor",r)}}})],1),t(te,{attrs:{rules:[function(r){return r>0||"Minimum speed is 1"}],dense:"","hide-details":"auto",outlined:"",suffix:"mm/s",type:"number","hide-spin-buttons":""},on:{blur:e.feedBlur},model:{value:e.maxFeed,callback:function(r){e.maxFeed=r},expression:"maxFeed"}})],1)],1)],1)],1)},CY=[];const Ob={};var $Y=E(wa,yY,CY,!1,xY,null,null,null);function xY(e){for(let s in Ob)this[s]=Ob[s]}const wY=function(){return $Y.exports}();var SY=Object.defineProperty,PY=Object.getOwnPropertyDescriptor,DY=(e,s,t,r)=>{for(var i=r>1?void 0:r?PY(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&SY(s,t,i),i};let Th=class extends M(O){constructor(){super(...arguments),this.klipperRestartMethods=[{text:"FIRMWARE_RESTART",value:"FIRMWARE_RESTART"},{text:"RESTART",value:"RESTART"}]}get tabSizes(){return[2,4,6,8].map(t=>({text:this.$t("Settings.EditorTab.Spaces",{count:t}),value:t}))}get escToClose(){return this.$store.state.gui.editor.escToClose}set escToClose(s){this.$store.dispatch("gui/saveSetting",{name:"editor.escToClose",value:s})}get confirmUnsavedChanges(){return this.$store.state.gui.editor.confirmUnsavedChanges}set confirmUnsavedChanges(s){this.$store.dispatch("gui/saveSetting",{name:"editor.confirmUnsavedChanges",value:s})}get tabSize(){return this.$store.state.gui.editor.tabSize||2}set tabSize(s){this.$store.dispatch("gui/saveSetting",{name:"editor.tabSize",value:s})}get klipperRestartMethod(){return this.$store.state.gui.editor.klipperRestartMethod}set klipperRestartMethod(s){this.$store.dispatch("gui/saveSetting",{name:"editor.klipperRestartMethod",value:s})}};Th=DY([D({components:{SettingsRow:V}})],Th);var TY=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(xe,{attrs:{flat:""}},[t(q,[t(V,{attrs:{title:e.$t("Settings.EditorTab.UseEscToClose"),"sub-title":e.$t("Settings.EditorTab.UseEscToCloseDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.escToClose,callback:function(r){e.escToClose=r},expression:"escToClose"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.EditorTab.ConfirmUnsavedChanges"),"sub-title":e.$t("Settings.EditorTab.ConfirmUnsavedChangesDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.confirmUnsavedChanges,callback:function(r){e.confirmUnsavedChanges=r},expression:"confirmUnsavedChanges"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.EditorTab.TabSize"),"sub-title":e.$t("Settings.EditorTab.TabSizeDescription"),"dynamic-slot-width":!0}},[t(Ee,{attrs:{items:e.tabSizes,"hide-details":"",outlined:"",dense:"",attached:""},model:{value:e.tabSize,callback:function(r){e.tabSize=r},expression:"tabSize"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.EditorTab.KlipperRestartMethod"),"sub-title":e.$t("Settings.EditorTab.KlipperRestartMethodDescription")}},[t(Ee,{attrs:{items:e.klipperRestartMethods,"hide-details":"",outlined:"",dense:"",attached:""},model:{value:e.klipperRestartMethod,callback:function(r){e.klipperRestartMethod=r},expression:"klipperRestartMethod"}})],1)],1)],1)],1)},MY=[];const Lb={};var EY=E(Th,TY,MY,!1,OY,null,null,null);function OY(e){for(let s in Lb)this[s]=Lb[s]}const LY=function(){return EY.exports}();var AY=Object.defineProperty,kY=Object.getOwnPropertyDescriptor,FY=(e,s,t,r)=>{for(var i=r>1?void 0:r?kY(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&AY(s,t,i),i};let Mh=class extends M(O){constructor(){super(...arguments),this.modeOptions=[{text:"layermacro",value:"layermacro"},{text:"hyperlapse",value:"hyperlapse"}],this.parkposOptions=[{text:"center",value:"center"},{text:"front_left",value:"front_left"},{text:"front_right",value:"front_right"},{text:"back_left",value:"back_left"},{text:"back_right",value:"back_right"},{text:"x_only",value:"x_only"},{text:"y_only",value:"y_only"},{text:"custom",value:"custom"}]}get availableSnapshotWebcams(){return this.$store.getters["gui/webcams/getWebcams"].filter(s=>s.snapshot_url!=="")}get cameraOptions(){let s=[];return this.availableSnapshotWebcams.length===0?[{value:null,text:this.$t("Settings.TimelapseTab.NoWebcamFound")}]:(this.availableSnapshotWebcams.forEach(t=>{s.push({text:t.name,value:t.name})}),s=At(s,"text"),this.camera===null&&s.unshift({value:null,text:this.$t("Settings.TimelapseTab.SelectWebcam")}),s)}get blockedsettings(){var s;return(s=this.$store.state.server.timelapse.settings.blockedsettings)!=null?s:[]}get enabled(){return this.$store.state.server.timelapse.settings.enabled}set enabled(s){this.$store.dispatch("server/timelapse/saveSetting",{enabled:s})}get mode(){return this.$store.state.server.timelapse.settings.mode}set mode(s){this.$store.dispatch("server/timelapse/saveSetting",{mode:s})}get hyperlapseCycle(){return this.$store.state.server.timelapse.settings.hyperlapse_cycle}set hyperlapseCycle(s){this.$store.dispatch("server/timelapse/saveSetting",{hyperlapse_cycle:s})}get autorender(){return this.$store.state.server.timelapse.settings.autorender}set autorender(s){this.$store.dispatch("server/timelapse/saveSetting",{autorender:s})}get saveframes(){return this.$store.state.server.timelapse.settings.saveframes}set saveframes(s){this.$store.dispatch("server/timelapse/saveSetting",{saveframes:s})}get stream_delay_compensation(){return this.$store.state.server.timelapse.settings.stream_delay_compensation}set stream_delay_compensation(s){s===""&&(s=0),this.$store.dispatch("server/timelapse/saveSetting",{stream_delay_compensation:s})}get previewimage(){return this.$store.state.server.timelapse.settings.previewimage}set previewimage(s){this.$store.dispatch("server/timelapse/saveSetting",{previewimage:s})}get gcode_verbose(){return this.$store.state.server.timelapse.settings.gcode_verbose}set gcode_verbose(s){this.$store.dispatch("server/timelapse/saveSetting",{gcode_verbose:s})}get parkhead(){return this.$store.state.server.timelapse.settings.parkhead}set parkhead(s){this.$store.dispatch("server/timelapse/saveSetting",{parkhead:s})}get parkpos(){return this.$store.state.server.timelapse.settings.parkpos}set parkpos(s){this.$store.dispatch("server/timelapse/saveSetting",{parkpos:s})}get park_custom_pos_x(){return this.$store.state.server.timelapse.settings.park_custom_pos_x}set park_custom_pos_x(s){s===""||s<this.stepperXmin||s>this.stepperXmax||this.$store.dispatch("server/timelapse/saveSetting",{park_custom_pos_x:s})}get stepperXmin(){var s,t,r,i;return(i=(r=(t=(s=this.$store.state.printer.configfile)==null?void 0:s.settings)==null?void 0:t.stepper_x)==null?void 0:r.position_min)!=null?i:0}get stepperXmax(){var s,t,r,i;return(i=(r=(t=(s=this.$store.state.printer.configfile)==null?void 0:s.settings)==null?void 0:t.stepper_x)==null?void 0:r.position_max)!=null?i:200}get park_custom_pos_y(){return this.$store.state.server.timelapse.settings.park_custom_pos_y}set park_custom_pos_y(s){s===""||s<this.stepperYmin||s>this.stepperYmax||this.$store.dispatch("server/timelapse/saveSetting",{park_custom_pos_y:s})}get stepperYmin(){var s,t,r,i;return(i=(r=(t=(s=this.$store.state.printer.configfile)==null?void 0:s.settings)==null?void 0:t.stepper_y)==null?void 0:r.position_min)!=null?i:0}get stepperYmax(){var s,t,r,i;return(i=(r=(t=(s=this.$store.state.printer.configfile)==null?void 0:s.settings)==null?void 0:t.stepper_y)==null?void 0:r.position_max)!=null?i:200}get park_custom_pos_dz(){return this.$store.state.server.timelapse.settings.park_custom_pos_dz}set park_custom_pos_dz(s){s===""||s<0||this.$store.dispatch("server/timelapse/saveSetting",{park_custom_pos_dz:s})}get park_travel_speed(){return this.$store.state.server.timelapse.settings.park_travel_speed}set park_travel_speed(s){s===""||s<0||this.$store.dispatch("server/timelapse/saveSetting",{park_travel_speed:s})}get park_retract_speed(){return this.$store.state.server.timelapse.settings.park_retract_speed}set park_retract_speed(s){s===""||s<=0||this.$store.dispatch("server/timelapse/saveSetting",{park_retract_speed:s})}get park_extrude_speed(){return this.$store.state.server.timelapse.settings.park_extrude_speed}set park_extrude_speed(s){s===""||s<=0||this.$store.dispatch("server/timelapse/saveSetting",{park_extrude_speed:s})}get park_retract_distance(){return this.$store.state.server.timelapse.settings.park_retract_distance}set park_retract_distance(s){s===""||s<0||this.$store.dispatch("server/timelapse/saveSetting",{park_retract_distance:s})}get park_extrude_distance(){return this.$store.state.server.timelapse.settings.park_extrude_distance}set park_extrude_distance(s){s===""||s<0||this.$store.dispatch("server/timelapse/saveSetting",{park_extrude_distance:s})}get park_time(){return this.$store.state.server.timelapse.settings.park_time}set park_time(s){s===""||s<0||this.$store.dispatch("server/timelapse/saveSetting",{park_time:s})}get fw_retract(){return this.$store.state.server.timelapse.settings.fw_retract}set fw_retract(s){this.$store.dispatch("server/timelapse/saveSetting",{fw_retract:s})}get constant_rate_factor(){return this.$store.state.server.timelapse.settings.constant_rate_factor}set constant_rate_factor(s){s===""||s<=0||this.$store.dispatch("server/timelapse/saveSetting",{constant_rate_factor:s})}get output_framerate(){return this.$store.state.server.timelapse.settings.output_framerate}set output_framerate(s){s===""||s<=0||this.$store.dispatch("server/timelapse/saveSetting",{output_framerate:s})}get pixelformat(){return this.$store.state.server.timelapse.settings.pixelformat}set pixelformat(s){this.$store.dispatch("server/timelapse/saveSetting",{pixelformat:s})}get extraoutputparams(){return this.$store.state.server.timelapse.settings.extraoutputparams}set extraoutputparams(s){this.$store.dispatch("server/timelapse/saveSetting",{extraoutputparams:s})}get variable_fps(){return this.$store.state.server.timelapse.settings.variable_fps}set variable_fps(s){this.$store.dispatch("server/timelapse/saveSetting",{variable_fps:s})}get targetlength(){return this.$store.state.server.timelapse.settings.targetlength}set targetlength(s){s===""||s<=0||this.$store.dispatch("server/timelapse/saveSetting",{targetlength:s})}get variable_fps_min(){return this.$store.state.server.timelapse.settings.variable_fps_min}set variable_fps_min(s){s===""||s<=0||this.$store.dispatch("server/timelapse/saveSetting",{variable_fps_min:s})}get variable_fps_max(){return this.$store.state.server.timelapse.settings.variable_fps_max}set variable_fps_max(s){s===""||s<=this.variable_fps_min||this.$store.dispatch("server/timelapse/saveSetting",{variable_fps_max:s})}get duplicatelastframe(){return this.$store.state.server.timelapse.settings.duplicatelastframe}set duplicatelastframe(s){s===""||s<0||this.$store.dispatch("server/timelapse/saveSetting",{duplicatelastframe:s})}get camera(){var t;const s=(t=this.$store.state.server.timelapse.settings.camera)!=null?t:null;return s===null||this.blockedsettings.includes("snapshoturl")||this.availableSnapshotWebcams.length===0||this.availableSnapshotWebcams.find(r=>r.name===s)===void 0?null:this.$store.state.server.timelapse.settings.camera}set camera(s){this.$store.dispatch("server/timelapse/saveSetting",{camera:s})}get time_format_code(){return this.$store.state.server.timelapse.settings.time_format_code}set time_format_code(s){this.$store.dispatch("server/timelapse/saveSetting",{time_format_code:s})}};Mh=FY([D({components:{SettingsRow:V}})],Mh);var RY=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(xe,{attrs:{flat:""}},[t(q,[t("h3",{staticClass:"text-h5 mb-3"},[e._v(e._s(e.$t("Settings.TimelapseTab.General")))]),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.Enabled"),"sub-title":e.$t("Settings.TimelapseTab.EnabledDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":"",disabled:e.blockedsettings.includes("enabled")},model:{value:e.enabled,callback:function(r){e.enabled=r},expression:"enabled"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.Autorender"),"sub-title":e.$t("Settings.TimelapseTab.AutorenderDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":"",disabled:e.blockedsettings.includes("autorender")},model:{value:e.autorender,callback:function(r){e.autorender=r},expression:"autorender"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.Camera"),"sub-title":e.$t("Settings.TimelapseTab.CameraDescriptionWithSnapshotUrl")}},[e.blockedsettings.includes("snapshoturl")?t(it,{staticClass:"mb-0",attrs:{dense:"",text:"",type:"warning"}},[e._v(" "+e._s(e.$t("Settings.TimelapseTab.CameraWarningAlreadySet"))+" "),t("small",[e._v("("+e._s(e.$t("Settings.TimelapseTab.CameraWarningAlreadySetSmall"))+")")])]):t(Ee,{attrs:{items:e.cameraOptions,"hide-details":"",outlined:"",dense:"",disabled:e.blockedsettings.includes("camera")||e.availableSnapshotWebcams.length===0},model:{value:e.camera,callback:function(r){e.camera=r},expression:"camera"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.Mode"),"sub-title":e.$t("Settings.TimelapseTab.ModeDescription")}},[t(Ee,{attrs:{items:e.modeOptions,"hide-details":"",outlined:"",dense:"",disabled:e.blockedsettings.includes("modeOptions")},model:{value:e.mode,callback:function(r){e.mode=r},expression:"mode"}})],1),e.mode==="hyperlapse"?[t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.HyperlapseCycle"),"sub-title":e.$t("Settings.TimelapseTab.HyperlapseCycleDescription")}},[t(te,{attrs:{type:"number",suffix:"s","hide-details":"auto",outlined:"",dense:"",disabled:e.blockedsettings.includes("hyperlapseCycle"),"hide-spin-buttons":""},model:{value:e.hyperlapseCycle,callback:function(r){e.hyperlapseCycle=r},expression:"hyperlapseCycle"}})],1)]:e._e(),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.PreviewImage"),"sub-title":e.$t("Settings.TimelapseTab.PreviewImageDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":"",disabled:e.blockedsettings.includes("previewimage")},model:{value:e.previewimage,callback:function(r){e.previewimage=r},expression:"previewimage"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.SaveFrames"),"sub-title":e.$t("Settings.TimelapseTab.SaveFramesDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":"",disabled:e.blockedsettings.includes("saveframes")},model:{value:e.saveframes,callback:function(r){e.saveframes=r},expression:"saveframes"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.StreamDelayCompensation"),"sub-title":e.$t("Settings.TimelapseTab.StreamDelayCompensationDescription")}},[t(te,{attrs:{type:"number",suffix:"s",step:"0.01","hide-details":"auto",outlined:"",dense:"",rules:[function(r){return!!r||e.$t("Settings.TimelapseTab.RulesRequired")},function(r){return r>=0||e.$t("Settings.TimelapseTab.RulesZeroAndPositive")}],disabled:e.blockedsettings.includes("stream_delay_compensation")},model:{value:e.stream_delay_compensation,callback:function(r){e.stream_delay_compensation=r},expression:"stream_delay_compensation"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.GcodeVerbose"),"sub-title":e.$t("Settings.TimelapseTab.GcodeVerboseDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":"",disabled:e.blockedsettings.includes("gcode_verbose")},model:{value:e.gcode_verbose,callback:function(r){e.gcode_verbose=r},expression:"gcode_verbose"}})],1),t(U,{staticClass:"my-2"}),t("h3",{staticClass:"text-h5 mt-6 mb-3"},[e._v(e._s(e.$t("Settings.TimelapseTab.Parkhead")))]),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.Parkhead"),"sub-title":e.$t("Settings.TimelapseTab.ParkheadDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":"",disabled:e.blockedsettings.includes("parkhead")},model:{value:e.parkhead,callback:function(r){e.parkhead=r},expression:"parkhead"}})],1),e.parkhead?[t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.Parkpos"),"sub-title":e.$t("Settings.TimelapseTab.ParkposDescription")}},[t(Ee,{attrs:{items:e.parkposOptions,"hide-details":"",outlined:"",dense:"",disabled:e.blockedsettings.includes("parkposOptions")},model:{value:e.parkpos,callback:function(r){e.parkpos=r},expression:"parkpos"}})],1),["x_only","custom"].includes(e.parkpos)?[t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.PosX"),"sub-title":e.$t("Settings.TimelapseTab.PosXDescription")}},[t(te,{attrs:{type:"number",suffix:"mm","hide-details":"auto",outlined:"",dense:"",rules:[function(r){return!!r||e.$t("Settings.TimelapseTab.RulesRequired")},function(r){return r>=e.stepperXmin&&r<=e.stepperXmax||e.$t("Settings.TimelapseTab.RulesBetweenMinMax",{min:e.stepperXmin,max:e.stepperXmax})}],disabled:e.blockedsettings.includes("park_custom_pos_x"),"hide-spin-buttons":""},model:{value:e.park_custom_pos_x,callback:function(r){e.park_custom_pos_x=r},expression:"park_custom_pos_x"}})],1)]:e._e(),["y_only","custom"].includes(e.parkpos)?[t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.PosY"),"sub-title":e.$t("Settings.TimelapseTab.PosYDescription")}},[t(te,{attrs:{type:"number",suffix:"mm","hide-details":"auto",outlined:"",dense:"",rules:[function(r){return!!r||e.$t("Settings.TimelapseTab.RulesRequired")},function(r){return r>=e.stepperYmin&&r<=e.stepperYmax||e.$t("Settings.TimelapseTab.RulesBetweenMinMax",{min:e.stepperYmin,max:e.stepperYmax})}],disabled:e.blockedsettings.includes("park_custom_pos_y"),"hide-spin-buttons":""},model:{value:e.park_custom_pos_y,callback:function(r){e.park_custom_pos_y=r},expression:"park_custom_pos_y"}})],1)]:e._e(),["x_only","y_only","custom"].includes(e.parkpos)?[t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.PosDZ"),"sub-title":e.$t("Settings.TimelapseTab.PosDZDescription")}},[t(te,{attrs:{type:"number",suffix:"mm","hide-details":"auto",outlined:"",dense:"",rules:[function(r){return!!r||e.$t("Settings.TimelapseTab.RulesRequired")},function(r){return r>=0||e.$t("Settings.TimelapseTab.RulesZeroAndPositive")}],disabled:e.blockedsettings.includes("park_custom_pos_dz"),"hide-spin-buttons":""},model:{value:e.park_custom_pos_dz,callback:function(r){e.park_custom_pos_dz=r},expression:"park_custom_pos_dz"}})],1)]:e._e(),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.TravelSpeed"),"sub-title":e.$t("Settings.TimelapseTab.TravelSpeedDescription")}},[t(te,{attrs:{type:"number",suffix:"mm/s","hide-details":"auto",outlined:"",dense:"",rules:[function(r){return!!r||e.$t("Settings.TimelapseTab.RulesRequired")},function(r){return r>=0||e.$t("Settings.TimelapseTab.RulesZeroAndPositive")}],disabled:e.blockedsettings.includes("park_travel_speed"),"hide-spin-buttons":""},model:{value:e.park_travel_speed,callback:function(r){e.park_travel_speed=r},expression:"park_travel_speed"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.FwRetract"),"sub-title":e.$t("Settings.TimelapseTab.FwRetractDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":"",disabled:e.blockedsettings.includes("fw_retract")},model:{value:e.fw_retract,callback:function(r){e.fw_retract=r},expression:"fw_retract"}})],1),e.fw_retract?e._e():[t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.RetractSpeed"),"sub-title":e.$t("Settings.TimelapseTab.RetractSpeedDescription")}},[t(te,{attrs:{type:"number",suffix:"mm/s","hide-details":"auto",outlined:"",dense:"",rules:[function(r){return!!r||e.$t("Settings.TimelapseTab.RulesRequired")},function(r){return r>0||e.$t("Settings.TimelapseTab.RulesPositive")}],disabled:e.blockedsettings.includes("park_retract_speed"),"hide-spin-buttons":""},model:{value:e.park_retract_speed,callback:function(r){e.park_retract_speed=r},expression:"park_retract_speed"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.RetractDistance"),"sub-title":e.$t("Settings.TimelapseTab.RetractDistanceDescription")}},[t(te,{attrs:{type:"number",suffix:"mm","hide-details":"auto",outlined:"",dense:"",rules:[function(r){return!!r||e.$t("Settings.TimelapseTab.RulesRequired")},function(r){return r>=0||e.$t("Settings.TimelapseTab.RulesZeroAndPositive")}],disabled:e.blockedsettings.includes("park_retract_distance"),"hide-spin-buttons":""},model:{value:e.park_retract_distance,callback:function(r){e.park_retract_distance=r},expression:"park_retract_distance"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.UnretractSpeed"),"sub-title":e.$t("Settings.TimelapseTab.UnretractSpeedDescription")}},[t(te,{attrs:{type:"number",suffix:"mm/s","hide-details":"auto",outlined:"",dense:"",rules:[function(r){return!!r||e.$t("Settings.TimelapseTab.RulesRequired")},function(r){return r>0||e.$t("Settings.TimelapseTab.RulesPositive")}],disabled:e.blockedsettings.includes("park_extrude_speed"),"hide-spin-buttons":""},model:{value:e.park_extrude_speed,callback:function(r){e.park_extrude_speed=r},expression:"park_extrude_speed"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.UnretractDistance"),"sub-title":e.$t("Settings.TimelapseTab.UnretractDistanceDescription")}},[t(te,{attrs:{type:"number",suffix:"mm","hide-details":"auto",outlined:"",dense:"",rules:[function(r){return!!r||e.$t("Settings.TimelapseTab.RulesRequired")},function(r){return r>=0||e.$t("Settings.TimelapseTab.RulesZeroAndPositive")}],disabled:e.blockedsettings.includes("park_extrude_distance"),"hide-spin-buttons":""},model:{value:e.park_extrude_distance,callback:function(r){e.park_extrude_distance=r},expression:"park_extrude_distance"}})],1)],t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.ParkTime"),"sub-title":e.$t("Settings.TimelapseTab.ParkTimeDescription")}},[t(te,{attrs:{type:"number",suffix:"s","hide-details":"auto",step:"0.1",outlined:"",dense:"",rules:[function(r){return!!r||e.$t("Settings.TimelapseTab.RulesRequired")},function(r){return r>=0||e.$t("Settings.TimelapseTab.RulesZeroAndPositive")}],disabled:e.blockedsettings.includes("park_time")},model:{value:e.park_time,callback:function(r){e.park_time=r},expression:"park_time"}})],1)]:e._e(),t(U,{staticClass:"my-2"}),t("h3",{staticClass:"text-h5 mt-6 mb-3"},[e._v(e._s(e.$t("Settings.TimelapseTab.RenderingOptions")))]),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.VariableFps"),"sub-title":e.$t("Settings.TimelapseTab.VariableFpsDescription"),"dynamic-slot-width":!0}},[t(Pe,{staticClass:"mt-0",attrs:{"hide-details":"",disabled:e.blockedsettings.includes("variable_fps")},model:{value:e.variable_fps,callback:function(r){e.variable_fps=r},expression:"variable_fps"}})],1),e.variable_fps?[t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.Targetlength"),"sub-title":e.$t("Settings.TimelapseTab.TargetlengthDescription")}},[t(te,{attrs:{type:"number",suffix:"s","hide-details":"auto",outlined:"",dense:"",rules:[function(r){return!!r||e.$t("Settings.TimelapseTab.RulesRequired")},function(r){return r>0||e.$t("Settings.TimelapseTab.RulesPositive")}],disabled:e.blockedsettings.includes("targetlength"),"hide-spin-buttons":""},model:{value:e.targetlength,callback:function(r){e.targetlength=r},expression:"targetlength"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.VariableFpsMin"),"sub-title":e.$t("Settings.TimelapseTab.VariableFpsMinDescription")}},[t(te,{attrs:{type:"number",suffix:"frames","hide-details":"auto",outlined:"",dense:"",rules:[function(r){return!!r||e.$t("Settings.TimelapseTab.RulesRequired")},function(r){return r>0||e.$t("Settings.TimelapseTab.RulesPositive")}],disabled:e.blockedsettings.includes("variable_fps_min"),"hide-spin-buttons":""},model:{value:e.variable_fps_min,callback:function(r){e.variable_fps_min=r},expression:"variable_fps_min"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.VariableFpsMax"),"sub-title":e.$t("Settings.TimelapseTab.VariableFpsMaxDescription")}},[t(te,{attrs:{type:"number",suffix:"frames","hide-details":"auto",outlined:"",dense:"",rules:[function(r){return!!r||e.$t("Settings.TimelapseTab.RulesRequired")},function(r){return r>e.variable_fps_min||e.$t("Settings.TimelapseTab.RulesMin")}],disabled:e.blockedsettings.includes("variable_fps_max"),"hide-spin-buttons":""},model:{value:e.variable_fps_max,callback:function(r){e.variable_fps_max=r},expression:"variable_fps_max"}})],1)]:[t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.OutputFramerate"),"sub-title":e.$t("Settings.TimelapseTab.OutputFramerateDescription")}},[t(te,{attrs:{type:"number",suffix:"frames","hide-details":"auto",outlined:"",dense:"",rules:[function(r){return!!r||e.$t("Settings.TimelapseTab.RulesRequired")},function(r){return r>0||e.$t("Settings.TimelapseTab.RulesPositive")}],disabled:e.blockedsettings.includes("output_framerate"),"hide-spin-buttons":""},model:{value:e.output_framerate,callback:function(r){e.output_framerate=r},expression:"output_framerate"}})],1)],t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.duplicatelastframe"),"sub-title":e.$t("Settings.TimelapseTab.duplicatelastframeDescription")}},[t(te,{attrs:{type:"number","hide-details":"auto",outlined:"",dense:"",rules:[function(r){return!!r||e.$t("Settings.TimelapseTab.RulesRequired")},function(r){return r>=0||e.$t("Settings.TimelapseTab.RulesZeroAndPositive")}],disabled:e.blockedsettings.includes("duplicatelastframe"),"hide-spin-buttons":""},model:{value:e.duplicatelastframe,callback:function(r){e.duplicatelastframe=r},expression:"duplicatelastframe"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.ConstantRateFactor"),"sub-title":e.$t("Settings.TimelapseTab.ConstantRateFactorDescription")}},[t(te,{attrs:{type:"number","hide-details":"auto",outlined:"",dense:"",rules:[function(r){return!!r||e.$t("Settings.TimelapseTab.RulesRequired")},function(r){return r>0||e.$t("Settings.TimelapseTab.RulesPositive")}],disabled:e.blockedsettings.includes("constant_rate_factor"),"hide-spin-buttons":""},model:{value:e.constant_rate_factor,callback:function(r){e.constant_rate_factor=r},expression:"constant_rate_factor"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.Pixelformat"),"sub-title":e.$t("Settings.TimelapseTab.PixelformatDescription")}},[t(te,{attrs:{type:"text","hide-details":"auto",outlined:"",dense:"",disabled:e.blockedsettings.includes("pixelformat")},model:{value:e.pixelformat,callback:function(r){e.pixelformat=r},expression:"pixelformat"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.TimeFormatCode"),"sub-title":e.$t("Settings.TimelapseTab.TimeFormatCodeDescription")}},[t(te,{attrs:{type:"text","hide-details":"auto",outlined:"",dense:"",disabled:e.blockedsettings.includes("time_format_code")},model:{value:e.time_format_code,callback:function(r){e.time_format_code=r},expression:"time_format_code"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.TimelapseTab.Extraoutputparams"),"sub-title":e.$t("Settings.TimelapseTab.ExtraoutputparamsDescription")}},[t(te,{attrs:{type:"text","hide-details":"auto",outlined:"",dense:"",disabled:e.blockedsettings.includes("extraoutputparams")},model:{value:e.extraoutputparams,callback:function(r){e.extraoutputparams=r},expression:"extraoutputparams"}})],1)],2)],1)],1)},jY=[];const Ab={};var HY=E(Mh,RY,jY,!1,IY,null,null,null);function IY(e){for(let s in Ab)this[s]=Ab[s]}const NY=function(){return HY.exports}();var VY=Object.defineProperty,UY=Object.getOwnPropertyDescriptor,mx=(e,s,t,r)=>{for(var i=r>1?void 0:r?UY(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&VY(s,t,i),i};let Zl=class extends M(Ui,O,_t){constructor(){super(...arguments),this.mdiDragVertical=Ra}get title(){return this.naviPoint.title}get subtitle(){var s;if(this.naviPoint.type==="link")return"URL: ".concat((s=this.naviPoint.href)!=null?s:"Unknown")}get checkboxColor(){return this.naviPoint.visible?"primary":"grey lighten-1"}get checkboxIcon(){return this.naviPoint.visible?pp:hp}changeVisibility(){this.$store.dispatch("gui/navigation/changeVisibility",this.naviPoint)}};mx([P({type:Object,required:!0})],Zl.prototype,"naviPoint",2);Zl=mx([D({components:{SettingsRow:V,draggable:Yr}})],Zl);var BY=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t($,{staticClass:"my-2 mx-0",style:e.draggableBgStyle},[t(_,{staticClass:"col-auto pr-0 d-flex py-2"},[t(v,{staticClass:"handle"},[e._v(e._s(e.mdiDragVertical))])],1),t(_,{staticClass:"py-2"},[t(V,{attrs:{title:e.title,"sub-title":e.subtitle,"dynamic-slot-width":!0}},[t(v,{attrs:{color:e.checkboxColor},domProps:{innerHTML:e._s(e.checkboxIcon)},on:{click:e.changeVisibility}})],1)],1)],1)},WY=[];const kb={};var GY=E(Zl,BY,WY,!1,zY,null,null,null);function zY(e){for(let s in kb)this[s]=kb[s]}const hx=function(){return GY.exports}();var ZY=Object.defineProperty,qY=Object.getOwnPropertyDescriptor,XY=(e,s,t,r)=>{for(var i=r>1?void 0:r?qY(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&ZY(s,t,i),i};let Eh=class extends M(Ui,O,_t){get sortableNaviPoints(){return this.naviPoints.filter(s=>s.position>0)}set sortableNaviPoints(s){s.forEach((t,r)=>{var i;this.$store.dispatch("gui/navigation/updatePos",{type:t.type,title:(i=t.orgTitle)!=null?i:t.title,visible:t.visible,position:r+1})}),this.$store.dispatch("gui/navigation/upload")}};Eh=XY([D({components:{SettingsNavigationTabItem:hx,SettingsRow:V,draggable:Yr}})],Eh);var YY=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(q,[t("h3",{staticClass:"text-h5 mb-3"},[e._v(e._s(e.$t("Settings.NavigationTab.Navigation")))]),t("draggable",{attrs:{handle:".handle","ghost-class":"ghost",group:"navigation-points"},model:{value:e.sortableNaviPoints,callback:function(r){e.sortableNaviPoints=r},expression:"sortableNaviPoints"}},e._l(e.sortableNaviPoints,function(r,i){return t(hx,{key:i,staticClass:"my-2 mx-0",style:e.draggableBgStyle,attrs:{"navi-point":r}})}),1)],1)],1)},JY=[];const Fb={};var KY=E(Eh,YY,JY,!1,QY,null,null,null);function QY(e){for(let s in Fb)this[s]=Fb[s]}const eJ=function(){return KY.exports}();var tJ=Object.defineProperty,sJ=Object.getOwnPropertyDescriptor,px=(e,s,t,r)=>{for(var i=r>1?void 0:r?sJ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&tJ(s,t,i),i};let ql=class extends M(O){constructor(){super(...arguments),this.mdiDelete=ze,this.mdiPalette=qc,this.mdiPencil=bt,this.convertName=at,this.boolForm=!1,this.form={id:null,name:"",start:1,end:1},this.rules={required:e=>e!==""||"required",groupUnique:e=>!this.existsGroupName(e)||"Name already exists",minStart:e=>e>0||"smaller than 1",minEnd:e=>e>=this.form.start||"smaller than start value",max:e=>{var s,t;return e<=((t=(s=this.light)==null?void 0:s.chainCount)!=null?t:1)||"higher than chain_count"}}}get entry(){var e,s;return this.$store.getters["gui/miscellaneous/getEntry"]({type:(e=this.light)==null?void 0:e.type,name:(s=this.light)==null?void 0:s.name})}get groups(){if(!this.entry)return[];const e=[];return Object.entries(this.entry.lightgroups).forEach(([s,t])=>{e.push({name:t.name,start:t.start,end:t.end,id:s})}),window.console.log("getEntryLightgroups",e),At(e,"name")}createGroup(){var e,s;this.form.id=null,this.form.name="",this.form.start=1,this.form.end=(s=(e=this.light)==null?void 0:e.chainCount)!=null?s:1,this.boolForm=!0}editGroup(e){var s;this.form.id=(s=e.id)!=null?s:null,this.form.name=e.name,this.form.start=e.start,this.form.end=e.end,this.boolForm=!0}closeForm(){this.boolForm=!1}storeGroup(){this.$store.dispatch("gui/miscellaneous/storeLightgroup",{entry:this.light,lightgroup:this.form}),this.boolForm=!1}updateGroup(){this.$store.dispatch("gui/miscellaneous/updateLightgroup",{entry:this.light,lightgroup:this.form}),this.boolForm=!1}deleteGroup(e){this.$store.dispatch("gui/miscellaneous/deleteLightgroup",{entry:this.light,lightgroupId:e})}existsGroupName(e){return this.groups.findIndex(s=>s.name===e&&s.id!=this.form.id)>=0}};px([P({type:Object,default:null})],ql.prototype,"light",2);ql=px([D({components:{SettingsRow:V}})],ql);var rJ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.boolForm?[t(q,[t("h3",{staticClass:"text-h5 mb-3"},[e._v(e._s(e.$t("Settings.MiscellaneousTab.CreateGroup")))]),t(V,{attrs:{title:e.$t("Settings.MiscellaneousTab.Name").toString()}},[t(te,{attrs:{"hide-details":"auto",rules:[e.rules.required,e.rules.groupUnique],dense:"",outlined:""},model:{value:e.form.name,callback:function(r){e.$set(e.form,"name",r)},expression:"form.name"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.MiscellaneousTab.Start").toString(),"sub-title":e.$t("Settings.MiscellaneousTab.StartDescription").toString()}},[t(te,{attrs:{"hide-details":"auto",type:"number",step:"1",rules:[e.rules.minStart,e.rules.max],dense:"",outlined:""},model:{value:e.form.start,callback:function(r){e.$set(e.form,"start",r)},expression:"form.start"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.MiscellaneousTab.End").toString(),"sub-title":e.$t("Settings.MiscellaneousTab.EndDescription").toString()}},[t(te,{attrs:{"hide-details":"auto",type:"number",step:"1",rules:[e.rules.minEnd,e.rules.max],dense:"",outlined:""},model:{value:e.form.end,callback:function(r){e.$set(e.form,"end",r)},expression:"form.end"}})],1)],1),t(ne,{staticClass:"d-flex justify-end"},[t(g,{attrs:{text:""},on:{click:e.closeForm}},[e._v(e._s(e.$t("Settings.Cancel")))]),e.form.id!==null?t(g,{attrs:{text:"",color:"primary"},on:{click:e.updateGroup}},[e._v(" "+e._s(e.$t("Settings.Update"))+" ")]):t(g,{attrs:{text:"",color:"primary"},on:{click:e.storeGroup}},[e._v(e._s(e.$t("Settings.Store")))])],1)]:[t(q,[t("h3",{staticClass:"text-h5 mb-3"},[e._v(e._s(e.$t("Settings.MiscellaneousTab.LightGroups",{name:e.light.name})))]),e.light?[e.groups.length?e._l(e.groups,function(r,i){return t("div",{key:r.id},[i?t(U,{staticClass:"my-2"}):e._e(),t(V,{attrs:{title:r.name,"sub-title":e.$t("Settings.MiscellaneousTab.GroupSubTitle",{start:r.start,end:r.end}).toString(),"dynamic-slot-width":!0}},[t(g,{staticClass:"ml-3",attrs:{small:"",outlined:""},on:{click:function(n){return e.editGroup(r)}}},[t(v,{attrs:{left:"",small:""}},[e._v(e._s(e.mdiPencil))]),e._v(" "+e._s(e.$t("Settings.Edit"))+" ")],1),t(g,{staticClass:"ml-3 minwidth-0 px-2",attrs:{small:"",outlined:"",color:"error"},on:{click:function(n){return e.deleteGroup(r.id)}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiDelete))])],1)],1)],1)}):[t($,[t(_,[t("p",{staticClass:"mb-0 text-center font-italic"},[e._v(" "+e._s(e.$t("Settings.MiscellaneousTab.NoGroupFound"))+" ")])])],1)]]:[t($,[t(_,[t("p",{staticClass:"mb-0 text-center font-italic"},[e._v(" "+e._s(e.$t("Settings.MiscellaneousTab.UnableToLoadLight"))+" ")])])],1)]],2),t(ne,{staticClass:"d-flex justify-end"},[t(g,{attrs:{text:""},on:{click:function(r){return e.$emit("close")}}},[e._v(e._s(e.$t("Settings.Close")))]),t(g,{attrs:{text:"",color:"primary"},on:{click:e.createGroup}},[e._v(" "+e._s(e.$t("Settings.MiscellaneousTab.AddGroup"))+" ")])],1)]],2)},iJ=[];const Rb={};var nJ=E(ql,rJ,iJ,!1,aJ,null,null,null);function aJ(e){for(let s in Rb)this[s]=Rb[s]}const fx=function(){return nJ.exports}();var oJ=Object.defineProperty,lJ=Object.getOwnPropertyDescriptor,zu=(e,s,t,r)=>{for(var i=r>1?void 0:r?lJ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&oJ(s,t,i),i};let Gi=class extends M(O){constructor(){super(...arguments),this.mdiDelete=ze,this.mdiPencil=bt,this.convertName=at,this.boolForm=!1,this.form={id:null,name:"",red:null,green:null,blue:null,white:null},this.rules={required:e=>e!==""||"required",presetUnique:e=>!this.existsPresetName(e)||"Name already exists",min:e=>e>=0||"Must be minimum 0",max:e=>e<=255||"Must be smaller then 256"}}get entry(){var e,s;return this.$store.getters["gui/miscellaneous/getEntry"]({type:(e=this.light)==null?void 0:e.type,name:(s=this.light)==null?void 0:s.name})}get presets(){if(!this.entry)return[];const e=[];return Object.entries(this.entry.presets).forEach(([s,t])=>{e.push({...t,id:s})}),window.console.log("getEntryPresets",e),At(e,"name")}get existRed(){var e;return((e=this.light)==null?void 0:e.colorOrder.indexOf("R"))!==-1}get existGreen(){var e;return((e=this.light)==null?void 0:e.colorOrder.indexOf("G"))!==-1}get existBlue(){var e;return((e=this.light)==null?void 0:e.colorOrder.indexOf("B"))!==-1}get existWhite(){var e;return((e=this.light)==null?void 0:e.colorOrder.indexOf("W"))!==-1}get colorRGB(){var e,s,t;return"rgb(".concat(Math.round((e=this.form.red)!=null?e:0),", ").concat(Math.round((s=this.form.green)!=null?s:0),", ").concat(Math.round((t=this.form.blue)!=null?t:0),")")}get colorRGBW(){var e;return"rgba(255, 255, 255, ".concat(((e=this.form.white)!=null?e:0)/255,")")}get redInt(){var e;return Math.round((e=this.form.red)!=null?e:0)}get greenInt(){var e;return Math.round((e=this.form.green)!=null?e:0)}get blueInt(){var e;return Math.round((e=this.form.blue)!=null?e:0)}get whiteInt(){var e;return Math.round((e=this.form.white)!=null?e:0)}get colorPickerOptions(){let e={width:200,margin:15,layout:[]};return this.existRed&&(e==null||e.layout.push({component:Nt.ui.Slider,options:{sliderType:"red"}})),this.existGreen&&(e==null||e.layout.push({component:Nt.ui.Slider,options:{sliderType:"green"}})),this.existBlue&&(e==null||e.layout.push({component:Nt.ui.Slider,options:{sliderType:"blue"}})),this.existRed&&this.existGreen&&this.existBlue&&(e.layout=[{component:Nt.ui.Wheel},{component:Nt.ui.Slider,options:{sliderType:"value"}}]),e}get colorPickerWhiteOptions(){return{width:200,margin:15,layout:[{component:Nt.ui.Slider,options:{sliderType:"alpha"}}]}}entryDescriptionText(e){var t,r,i,n;let s=[];return(t=this.light)!=null&&t.colorOrder.includes("R")&&s.push("R: ".concat(e.red)),(r=this.light)!=null&&r.colorOrder.includes("G")&&s.push("G: ".concat(e.green)),(i=this.light)!=null&&i.colorOrder.includes("B")&&s.push("B: ".concat(e.blue)),(n=this.light)!=null&&n.colorOrder.includes("W")&&s.push("W: ".concat(e.white)),s.join(", ")}createPreset(){var e,s,t,r;this.form.id=null,this.form.name="",this.form.red=((e=this.light)==null?void 0:e.colorOrder.indexOf("R"))!=-1?0:null,this.form.green=((s=this.light)==null?void 0:s.colorOrder.indexOf("G"))!=-1?0:null,this.form.blue=((t=this.light)==null?void 0:t.colorOrder.indexOf("B"))!=-1?0:null,this.form.white=((r=this.light)==null?void 0:r.colorOrder.indexOf("W"))!=-1?0:null,this.boolForm=!0}editPreset(e){var s,t,r,i,n;this.form.id=(s=e.id)!=null?s:null,this.form.name=e.name,this.form.red=((t=this.light)==null?void 0:t.colorOrder.indexOf("R"))!=-1?e.red:null,this.form.green=((r=this.light)==null?void 0:r.colorOrder.indexOf("G"))!=-1?e.green:null,this.form.blue=((i=this.light)==null?void 0:i.colorOrder.indexOf("B"))!=-1?e.blue:null,this.form.white=((n=this.light)==null?void 0:n.colorOrder.indexOf("W"))!=-1?e.white:null,this.boolForm=!0}closeForm(){this.boolForm=!1}storePreset(){this.$store.dispatch("gui/miscellaneous/storePreset",{entry:this.light,preset:this.form}),this.boolForm=!1}updatePreset(){this.$store.dispatch("gui/miscellaneous/updatePreset",{entry:this.light,preset:this.form}),this.boolForm=!1}deletePreset(e){this.$store.dispatch("gui/miscellaneous/deletePreset",{entry:this.light,presetId:e})}existsPresetName(e){return this.presets.findIndex(s=>s.name===e&&s.id!=this.form.id)>=0}onColorRGBChanged(e){const s={red:e.red,green:e.green,blue:e.blue,white:this.form.white};this.colorChanged(s)}onColorWhiteChanged(e){const s={red:this.form.red,green:this.form.green,blue:this.form.blue,white:this.form.white};s.white=e.alpha*255,this.colorChanged(s)}onColorInput(e){const s={red:this.form.red,green:this.form.green,blue:this.form.blue,white:this.form.white};s[e.name]=e.value,this.colorChanged(s)}colorChanged(e){this.form.red=e.red,this.form.green=e.green,this.form.blue=e.blue,this.form.white=e.white}};zu([P({type:Object,default:null})],Gi.prototype,"light",2);zu([qe({time:250})],Gi.prototype,"onColorRGBChanged",1);zu([qe({time:250})],Gi.prototype,"onColorWhiteChanged",1);Gi=zu([D({components:{SettingsRow:V}})],Gi);var cJ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.boolForm?[t(q,[t("h3",{staticClass:"text-h5 mb-3"},[e._v(e._s(e.$t("Settings.MiscellaneousTab.CreatePreset")))]),t(V,{attrs:{title:e.$t("Settings.MiscellaneousTab.Name").toString()}},[t(te,{attrs:{"hide-details":"auto",rules:[e.rules.required,e.rules.presetUnique],dense:"",outlined:""},model:{value:e.form.name,callback:function(r){e.$set(e.form,"name",r)},expression:"form.name"}})],1),t(U,{staticClass:"my-2"}),t(V,{attrs:{title:e.$t("Settings.MiscellaneousTab.Color").toString()}},[t($,[t(_,{staticClass:"text-center"},[t(Jn,{attrs:{color:e.colorRGB,options:e.colorPickerOptions},on:{"update:color":e.onColorRGBChanged}}),e.existWhite?t(Jn,{staticClass:"mt-3",attrs:{color:e.colorRGBW,options:e.colorPickerWhiteOptions},on:{"update:color":e.onColorWhiteChanged}}):e._e()],1),t(_,[e.existRed?t($,[t(_,[t(je,{attrs:{label:e.$t("Panels.MiscellaneousPanel.Light.Red"),param:"red",target:e.redInt,min:0,max:255,dec:1,step:1,"output-error-msg":!0,"has-spinner":!0},on:{submit:e.onColorInput}})],1)],1):e._e(),e.existGreen?t($,[t(_,[t(je,{attrs:{label:e.$t("Panels.MiscellaneousPanel.Light.Green"),param:"green",target:e.greenInt,min:0,max:255,dec:1,step:1,"has-spinner":!0},on:{submit:e.onColorInput}})],1)],1):e._e(),e.existBlue?t($,[t(_,[t(je,{attrs:{label:e.$t("Panels.MiscellaneousPanel.Light.Blue"),param:"blue",target:e.blueInt,min:0,max:255,dec:1,step:1,"has-spinner":!0},on:{submit:e.onColorInput}})],1)],1):e._e(),e.existWhite?t($,[t(_,[t(je,{attrs:{label:e.$t("Panels.MiscellaneousPanel.Light.White"),param:"white",target:e.whiteInt,min:0,max:255,dec:1,step:1,"has-spinner":!0},on:{submit:e.onColorInput}})],1)],1):e._e()],1)],1)],1)],1),t(ne,{staticClass:"d-flex justify-end"},[t(g,{attrs:{text:""},on:{click:e.closeForm}},[e._v(e._s(e.$t("Settings.Cancel")))]),e.form.id!==null?t(g,{attrs:{text:"",color:"primary"},on:{click:e.updatePreset}},[e._v(" "+e._s(e.$t("Settings.Update"))+" ")]):t(g,{attrs:{text:"",color:"primary"},on:{click:e.storePreset}},[e._v(e._s(e.$t("Settings.Store")))])],1)]:[t(q,[t("h3",{staticClass:"text-h5 mb-3"},[e._v(e._s(e.$t("Settings.MiscellaneousTab.LightPresets",{name:e.light.name})))]),e.light?[e.presets.length?e._l(e.presets,function(r,i){return t("div",{key:r.id},[i?t(U,{staticClass:"my-2"}):e._e(),t(V,{attrs:{title:r.name,"sub-title":e.entryDescriptionText(r),"dynamic-slot-width":!0}},[t(g,{staticClass:"ml-3",attrs:{small:"",outlined:""},on:{click:function(n){return e.editPreset(r)}}},[t(v,{attrs:{left:"",small:""}},[e._v(e._s(e.mdiPencil))]),e._v(" "+e._s(e.$t("Settings.Edit"))+" ")],1),t(g,{staticClass:"ml-3 minwidth-0 px-2",attrs:{small:"",outlined:"",color:"error"},on:{click:function(n){return e.deletePreset(r.id)}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiDelete))])],1)],1)],1)}):[t($,[t(_,[t("p",{staticClass:"mb-0 text-center font-italic"},[e._v(" "+e._s(e.$t("Settings.MiscellaneousTab.NoPresetFound"))+" ")])])],1)]]:[t($,[t(_,[t("p",{staticClass:"mb-0 text-center font-italic"},[e._v(" "+e._s(e.$t("Settings.MiscellaneousTab.UnableToLoadPreset"))+" ")])])],1)]],2),t(ne,{staticClass:"d-flex justify-end"},[t(g,{attrs:{text:""},on:{click:function(r){return e.$emit("close")}}},[e._v(e._s(e.$t("Settings.Close")))]),t(g,{attrs:{text:"",color:"primary"},on:{click:e.createPreset}},[e._v(" "+e._s(e.$t("Settings.MiscellaneousTab.AddPreset"))+" ")])],1)]],2)},uJ=[];const jb={};var dJ=E(Gi,cJ,uJ,!1,mJ,null,null,null);function mJ(e){for(let s in jb)this[s]=jb[s]}const gx=function(){return dJ.exports}();var hJ=Object.defineProperty,pJ=Object.getOwnPropertyDescriptor,fJ=(e,s,t,r)=>{for(var i=r>1?void 0:r?pJ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&hJ(s,t,i),i};let Oh=class extends M(O){constructor(){super(...arguments),this.mdiDelete=ze,this.mdiPalette=qc,this.mdiPencil=bt,this.convertName=at,this.editLightGroupObject=null,this.editLightPresetObject=null}get lights(){var s;return(s=this.$store.getters["printer/getLights"])!=null?s:[]}get filteredLights(){return this.lights.filter(s=>s.colorOrder.length>1)}};Oh=fJ([D({components:{SettingsRow:V,SettingsMiscellaneousTabLightGroups:fx,SettingsMiscellaneousTabLightPresets:gx}})],Oh);var gJ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.editLightGroupObject?t(fx,{attrs:{light:e.editLightGroupObject},on:{close:function(r){e.editLightGroupObject=null}}}):e.editLightPresetObject?t(gx,{attrs:{light:e.editLightPresetObject},on:{close:function(r){e.editLightPresetObject=null}}}):t(q,[t("h3",{staticClass:"text-h5 mb-3"},[e._v(e._s(e.$t("Settings.MiscellaneousTab.Miscellaneous")))]),e.filteredLights.length?e._l(e.filteredLights,function(r,i){return t("div",{key:i},[i?t(U,{staticClass:"my-2"}):e._e(),t(V,{attrs:{title:e.convertName(r.name),"dynamic-slot-width":!0}},[r.chainCount>1?t(g,{staticClass:"ml-3",attrs:{small:"",outlined:""},on:{click:function(n){e.editLightGroupObject=r}}},[t(v,{attrs:{left:"",small:""}},[e._v(e._s(e.mdiPencil))]),e._v(" "+e._s(e.$t("Settings.MiscellaneousTab.Groups"))+" ")],1):e._e(),t(g,{staticClass:"ml-3",attrs:{small:"",outlined:""},on:{click:function(n){e.editLightPresetObject=r}}},[t(v,{attrs:{left:"",small:""}},[e._v(e._s(e.mdiPalette))]),e._v(" "+e._s(e.$t("Settings.MiscellaneousTab.Presets"))+" ")],1)],1)],1)}):[t($,[t(_,[t("p",{staticClass:"mb-0 text-center font-italic"},[e._v(e._s(e.$t("Settings.MiscellaneousTab.NoDevicesFound")))])])],1)]],2)],1)},vJ=[];const Hb={};var _J=E(Oh,gJ,vJ,!1,bJ,null,null,null);function bJ(e){for(let s in Hb)this[s]=Hb[s]}const yJ=function(){return _J.exports}();var CJ=Object.defineProperty,$J=Object.getOwnPropertyDescriptor,vx=(e,s,t,r)=>{for(var i=r>1?void 0:r?$J(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&CJ(s,t,i),i};let Xl=class extends M(O){constructor(){super(...arguments),this.mdiGrid=Bc}get availableColorSchemes(){return[{text:this.$t("Settings.HeightmapTab.Schemes.Portland")+" "+this.$t("Settings.HeightmapTab.IsDefault"),value:"portland"},{text:this.$t("Settings.HeightmapTab.Schemes.Spring"),value:"spring"},{text:this.$t("Settings.HeightmapTab.Schemes.Hot"),value:"hot"},{text:this.$t("Settings.HeightmapTab.Schemes.Hsv"),value:"hsv"},{text:this.$t("Settings.HeightmapTab.Schemes.GrayScale"),value:"grayScale"}]}get colorScheme(){return this.$store.state.gui.heightmap.activecolorscheme}set colorScheme(s){this.$store.dispatch("gui/heightmap/saveSetting",{name:"activecolorscheme",value:s})}colorSchemeChanged(s){this.colorScheme=s}};vx([me("colorScheme")],Xl.prototype,"colorSchemeChanged",1);Xl=vx([D({components:{Panel:B,SettingsRow:V}})],Xl);var xJ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(xe,{attrs:{flat:""}},[t(q,[t("div",{staticClass:"d-flex align-center"},[t(v,{staticStyle:{opacity:"0.7"}},[e._v(e._s(e.mdiGrid))]),t(gt,{staticClass:"mx-n2"},[e._v(" "+e._s(e.$t("Settings.HeightmapTab.Heightmap"))+" ")]),t(U,{staticClass:"ml-3"})],1),t(V,{attrs:{title:e.$t("Settings.HeightmapTab.ColorSchemes")}},[t(Ee,{attrs:{items:e.availableColorSchemes,"hide-details":"",outlined:"",dense:"",attach:""},model:{value:e.colorScheme,callback:function(r){e.colorScheme=r},expression:"colorScheme"}})],1)],1)],1)],1)},wJ=[];const Ib={};var SJ=E(Xl,xJ,wJ,!1,PJ,null,null,null);function PJ(e){for(let s in Ib)this[s]=Ib[s]}const DJ=function(){return SJ.exports}();var TJ=Object.defineProperty,MJ=Object.getOwnPropertyDescriptor,_x=(e,s,t,r)=>{for(var i=r>1?void 0:r?MJ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&TJ(s,t,i),i};let Yl=class extends M(O){constructor(){super(...arguments),this.showSettings=!1,this.activeTab="general",this.mdiCloseThick=pe,this.mdiCogs=bT}get tabTitles(){const e=[{icon:us,name:"general",title:this.$t("Settings.GeneralTab.General")},{icon:qc,name:"ui-settings",title:this.$t("Settings.UiSettingsTab.UiSettings")},{icon:Pp,name:"dashboard",title:this.$t("Settings.DashboardTab.Dashboard")},{icon:sn,name:"webcams",title:this.$t("Settings.WebcamsTab.Webcams")},{icon:zn,name:"macros",title:this.$t("Settings.MacrosTab.Macros")},{icon:b3,name:"control",title:this.$t("Settings.ControlTab.Control")},{icon:Fa,name:"console",title:this.$t("Settings.ConsoleTab.Console")},{icon:Qi,name:"presets",title:this.$t("Settings.PresetsTab.PreheatPresets")},{icon:Ha,name:"remote-printers",title:this.$t("Settings.RemotePrintersTab.RemotePrinters")},{icon:Jc,name:"g-code-viewer",title:this.$t("Settings.GCodeViewerTab.GCodeViewer")},{icon:ja,name:"editor",title:this.$t("Settings.EditorTab.Editor")},{icon:_p,name:"miscellaneous",title:this.$t("Settings.MiscellaneousTab.Miscellaneous")},{icon:BT,name:"navigation",title:this.$t("Settings.NavigationTab.Navigation")},{icon:Bc,name:"heightmap",title:this.$t("Settings.HeightmapTab.Heightmap")}];return this.moonrakerComponents.includes("timelapse")&&e.push({icon:l2,name:"timelapse",title:this.$t("Settings.TimelapseTab.Timelapse")}),e.sort((s,t)=>{if(s.name==="general")return-1;if(t.name==="general")return 1;const r=s.title.toString().toLowerCase(),i=t.title.toString().toLowerCase();return r<i?-1:r>i?1:0})}activeTabWatch(){this.scrollToTop()}scrollToTop(){if(this.$refs.settingsScroll){const e=this.$refs.settingsScroll.osInstance();e==null||e.scroll({y:"0%"})}}};_x([me("activeTab")],Yl.prototype,"activeTabWatch",1);Yl=_x([D({components:{Panel:B,SettingsUiSettingsTab:_X,SettingsRemotePrintersTab:dX,SettingsPresetsTab:rX,SettingsConsoleTab:xq,SettingsControlTab:gq,SettingsMacrosTab:lq,SettingsWebcamsTab:VZ,SettingsGeneralTab:CZ,SettingsDashboardTab:vY,SettingsGCodeViewerTab:wY,SettingsEditorTab:LY,SettingsTimelapseTab:NY,SettingsMiscellaneousTab:yJ,SettingsNavigationTab:eJ,SettingsHeightmapTab:DJ}})],Yl);var EJ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.showSettings=!0}}},[t(v,[e._v(e._s(e.mdiCogs))])],1),t(oe,{attrs:{width:"900",persistent:"",fullscreen:e.isMobile,scrollable:""},on:{keydown:function(r){if(!r.type.indexOf("key")&&e._k(r.keyCode,"esc",27,r.key,["Esc","Escape"]))return null;e.showSettings=!1}},model:{value:e.showSettings,callback:function(r){e.showSettings=r},expression:"showSettings"}},[t(B,{staticStyle:{overflow:"hidden"},attrs:{title:e.$t("Settings.InterfaceSettings"),icon:e.mdiCogs,"card-class":"settings-menu-dialog","margin-bottom":!1,height:e.isMobile?0:548},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.showSettings=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[e.isMobile?[t(Vo,{attrs:{"center-active":!0,"show-arrows":!0},model:{value:e.activeTab,callback:function(r){e.activeTab=r},expression:"activeTab"}},e._l(e.tabTitles,function(r,i){return t(pi,{key:i,staticClass:"justify-start",attrs:{href:"#"+r.name}},[t(v,{attrs:{left:""},domProps:{innerHTML:e._s(r.icon)}}),e._v(" "+e._s(r.title)+" ")],1)}),1)]:e._e(),t($,{staticClass:"flex-row flex-nowrap"},[e.isMobile?e._e():t(_,{staticClass:"col-auto pr-0"},[t("overlay-scrollbars",{ref:"settingsTabsScroll",staticClass:"settings-tabs-bar height500"},[t(Vo,{attrs:{vertical:!0},model:{value:e.activeTab,callback:function(r){e.activeTab=r},expression:"activeTab"}},e._l(e.tabTitles,function(r,i){return t(pi,{key:i,staticClass:"justify-start",staticStyle:{width:"200px"},attrs:{href:"#"+r.name}},[t(v,{attrs:{left:""},domProps:{innerHTML:e._s(r.icon)}}),t("span",{staticClass:"text-truncate"},[e._v(e._s(r.title))])],1)}),1)],1)],1),t(_,{class:e.isMobile?"":"pl-0",style:e.isMobile?"":"min-width: 500px;"},[t("overlay-scrollbars",{ref:"settingsScroll",class:"settings-tabs "+(e.isMobile?"":"height500"),attrs:{options:{overflowBehavior:{x:"hidden"}}}},[t("settings-"+e.activeTab+"-tab",{tag:"component",on:{scrollToTop:e.scrollToTop}})],1)],1)],1)],2)],1)],1)},OJ=[];const Nb={};var LJ=E(Yl,EJ,OJ,!1,AJ,"0df340c4",null,null);function AJ(e){for(let s in Nb)this[s]=Nb[s]}const bx=function(){return LJ.exports}();/*!
* vue-router v3.6.5
* (c) 2022 Evan You
* @license MIT
*/function is(e,s){for(var t in s)e[t]=s[t];return e}var kJ=/[!'()*]/g,FJ=function(e){return"%"+e.charCodeAt(0).toString(16)},RJ=/%2C/g,oi=function(e){return encodeURIComponent(e).replace(kJ,FJ).replace(RJ,",")};function Lh(e){try{return decodeURIComponent(e)}catch{}return e}function jJ(e,s,t){s===void 0&&(s={});var r=t||HJ,i;try{i=r(e||"")}catch{i={}}for(var n in s){var a=s[n];i[n]=Array.isArray(a)?a.map(Vb):Vb(a)}return i}var Vb=function(e){return e==null||typeof e=="object"?e:String(e)};function HJ(e){var s={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(t){var r=t.replace(/\+/g," ").split("="),i=Lh(r.shift()),n=r.length>0?Lh(r.join("=")):null;s[i]===void 0?s[i]=n:Array.isArray(s[i])?s[i].push(n):s[i]=[s[i],n]}),s}function IJ(e){var s=e?Object.keys(e).map(function(t){var r=e[t];if(r===void 0)return"";if(r===null)return oi(t);if(Array.isArray(r)){var i=[];return r.forEach(function(n){n!==void 0&&(n===null?i.push(oi(t)):i.push(oi(t)+"="+oi(n)))}),i.join("&")}return oi(t)+"="+oi(r)}).filter(function(t){return t.length>0}).join("&"):null;return s?"?"+s:""}var Jl=/\/?$/;function Kl(e,s,t,r){var i=r&&r.options.stringifyQuery,n=s.query||{};try{n=Ah(n)}catch{}var a={name:s.name||e&&e.name,meta:e&&e.meta||{},path:s.path||"/",hash:s.hash||"",query:n,params:s.params||{},fullPath:Ub(s,i),matched:e?NJ(e):[]};return t&&(a.redirectedFrom=Ub(t,i)),Object.freeze(a)}function Ah(e){if(Array.isArray(e))return e.map(Ah);if(e&&typeof e=="object"){var s={};for(var t in e)s[t]=Ah(e[t]);return s}else return e}var vr=Kl(null,{path:"/"});function NJ(e){for(var s=[];e;)s.unshift(e),e=e.parent;return s}function Ub(e,s){var t=e.path,r=e.query;r===void 0&&(r={});var i=e.hash;i===void 0&&(i="");var n=s||IJ;return(t||"/")+n(r)+i}function yx(e,s,t){return s===vr?e===s:s?e.path&&s.path?e.path.replace(Jl,"")===s.path.replace(Jl,"")&&(t||e.hash===s.hash&&Ao(e.query,s.query)):e.name&&s.name?e.name===s.name&&(t||e.hash===s.hash&&Ao(e.query,s.query)&&Ao(e.params,s.params)):!1:!1}function Ao(e,s){if(e===void 0&&(e={}),s===void 0&&(s={}),!e||!s)return e===s;var t=Object.keys(e).sort(),r=Object.keys(s).sort();return t.length!==r.length?!1:t.every(function(i,n){var a=e[i],o=r[n];if(o!==i)return!1;var l=s[i];return a==null||l==null?a===l:typeof a=="object"&&typeof l=="object"?Ao(a,l):String(a)===String(l)})}function VJ(e,s){return e.path.replace(Jl,"/").indexOf(s.path.replace(Jl,"/"))===0&&(!s.hash||e.hash===s.hash)&&UJ(e.query,s.query)}function UJ(e,s){for(var t in s)if(!(t in e))return!1;return!0}function Cx(e){for(var s=0;s<e.matched.length;s++){var t=e.matched[s];for(var r in t.instances){var i=t.instances[r],n=t.enteredCbs[r];if(!(!i||!n)){delete t.enteredCbs[r];for(var a=0;a<n.length;a++)i._isBeingDestroyed||n[a](i)}}}}var BJ={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(s,t){var r=t.props,i=t.children,n=t.parent,a=t.data;a.routerView=!0;for(var o=n.$createElement,l=r.name,c=n.$route,u=n._routerViewCache||(n._routerViewCache={}),d=0,m=!1;n&&n._routerRoot!==n;){var h=n.$vnode?n.$vnode.data:{};h.routerView&&d++,h.keepAlive&&n._directInactive&&n._inactive&&(m=!0),n=n.$parent}if(a.routerViewDepth=d,m){var p=u[l],f=p&&p.component;return f?(p.configProps&&Bb(f,a,p.route,p.configProps),o(f,a,i)):o()}var b=c.matched[d],C=b&&b.components[l];if(!b||!C)return u[l]=null,o();u[l]={component:C},a.registerRouteInstance=function(L,N){var R=b.instances[l];(N&&R!==L||!N&&R===L)&&(b.instances[l]=N)},(a.hook||(a.hook={})).prepatch=function(L,N){b.instances[l]=N.componentInstance},a.hook.init=function(L){L.data.keepAlive&&L.componentInstance&&L.componentInstance!==b.instances[l]&&(b.instances[l]=L.componentInstance),Cx(c)};var S=b.props&&b.props[l];return S&&(is(u[l],{route:c,configProps:S}),Bb(C,a,c,S)),o(C,a,i)}};function Bb(e,s,t,r){var i=s.props=WJ(t,r);if(i){i=s.props=is({},i);var n=s.attrs=s.attrs||{};for(var a in i)(!e.props||!(a in e.props))&&(n[a]=i[a],delete i[a])}}function WJ(e,s){switch(typeof s){case"undefined":return;case"object":return s;case"function":return s(e);case"boolean":return s?e.params:void 0}}function $x(e,s,t){var r=e.charAt(0);if(r==="/")return e;if(r==="?"||r==="#")return s+e;var i=s.split("/");(!t||!i[i.length-1])&&i.pop();for(var n=e.replace(/^\//,"").split("/"),a=0;a<n.length;a++){var o=n[a];o===".."?i.pop():o!=="."&&i.push(o)}return i[0]!==""&&i.unshift(""),i.join("/")}function GJ(e){var s="",t="",r=e.indexOf("#");r>=0&&(s=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(t=e.slice(i+1),e=e.slice(0,i)),{path:e,query:t,hash:s}}function nr(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var Ql=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},un=Sx,zJ=Gf,ZJ=JJ,qJ=xx,XJ=wx,YJ=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Gf(e,s){for(var t=[],r=0,i=0,n="",a=s&&s.delimiter||"/",o;(o=YJ.exec(e))!=null;){var l=o[0],c=o[1],u=o.index;if(n+=e.slice(i,u),i=u+l.length,c){n+=c[1];continue}var d=e[i],m=o[2],h=o[3],p=o[4],f=o[5],b=o[6],C=o[7];n&&(t.push(n),n="");var S=m!=null&&d!=null&&d!==m,L=b==="+"||b==="*",N=b==="?"||b==="*",R=o[2]||a,x=p||f;t.push({name:h||r++,prefix:m||"",delimiter:R,optional:N,repeat:L,partial:S,asterisk:!!C,pattern:x?eK(x):C?".*":"[^"+ko(R)+"]+?"})}return i<e.length&&(n+=e.substr(i)),n&&t.push(n),t}function JJ(e,s){return xx(Gf(e,s),s)}function KJ(e){return encodeURI(e).replace(/[\/?#]/g,function(s){return"%"+s.charCodeAt(0).toString(16).toUpperCase()})}function QJ(e){return encodeURI(e).replace(/[?#]/g,function(s){return"%"+s.charCodeAt(0).toString(16).toUpperCase()})}function xx(e,s){for(var t=new Array(e.length),r=0;r<e.length;r++)typeof e[r]=="object"&&(t[r]=new RegExp("^(?:"+e[r].pattern+")$",Zf(s)));return function(i,n){for(var a="",o=i||{},l=n||{},c=l.pretty?KJ:encodeURIComponent,u=0;u<e.length;u++){var d=e[u];if(typeof d=="string"){a+=d;continue}var m=o[d.name],h;if(m==null)if(d.optional){d.partial&&(a+=d.prefix);continue}else throw new TypeError('Expected "'+d.name+'" to be defined');if(Ql(m)){if(!d.repeat)throw new TypeError('Expected "'+d.name+'" to not repeat, but received `'+JSON.stringify(m)+"`");if(m.length===0){if(d.optional)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var p=0;p<m.length;p++){if(h=c(m[p]),!t[u].test(h))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(h)+"`");a+=(p===0?d.prefix:d.delimiter)+h}continue}if(h=d.asterisk?QJ(m):c(m),!t[u].test(h))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+h+'"');a+=d.prefix+h}return a}}function ko(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function eK(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function zf(e,s){return e.keys=s,e}function Zf(e){return e&&e.sensitive?"":"i"}function tK(e,s){var t=e.source.match(/\((?!\?)/g);if(t)for(var r=0;r<t.length;r++)s.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return zf(e,s)}function sK(e,s,t){for(var r=[],i=0;i<e.length;i++)r.push(Sx(e[i],s,t).source);var n=new RegExp("(?:"+r.join("|")+")",Zf(t));return zf(n,s)}function rK(e,s,t){return wx(Gf(e,t),s,t)}function wx(e,s,t){Ql(s)||(t=s||t,s=[]),t=t||{};for(var r=t.strict,i=t.end!==!1,n="",a=0;a<e.length;a++){var o=e[a];if(typeof o=="string")n+=ko(o);else{var l=ko(o.prefix),c="(?:"+o.pattern+")";s.push(o),o.repeat&&(c+="(?:"+l+c+")*"),o.optional?o.partial?c=l+"("+c+")?":c="(?:"+l+"("+c+"))?":c=l+"("+c+")",n+=c}}var u=ko(t.delimiter||"/"),d=n.slice(-u.length)===u;return r||(n=(d?n.slice(0,-u.length):n)+"(?:"+u+"(?=$))?"),i?n+="$":n+=r&&d?"":"(?="+u+"|$)",zf(new RegExp("^"+n,Zf(t)),s)}function Sx(e,s,t){return Ql(s)||(t=s||t,s=[]),t=t||{},e instanceof RegExp?tK(e,s):Ql(e)?sK(e,s,t):rK(e,s,t)}un.parse=zJ;un.compile=ZJ;un.tokensToFunction=qJ;un.tokensToRegExp=XJ;var Wb=Object.create(null);function Fo(e,s,t){s=s||{};try{var r=Wb[e]||(Wb[e]=un.compile(e));return typeof s.pathMatch=="string"&&(s[0]=s.pathMatch),r(s,{pretty:!0})}catch{return""}finally{delete s[0]}}function qf(e,s,t,r){var i=typeof e=="string"?{path:e}:e;if(i._normalized)return i;if(i.name){i=is({},e);var n=i.params;return n&&typeof n=="object"&&(i.params=is({},n)),i}if(!i.path&&i.params&&s){i=is({},i),i._normalized=!0;var a=is(is({},s.params),i.params);if(s.name)i.name=s.name,i.params=a;else if(s.matched.length){var o=s.matched[s.matched.length-1].path;i.path=Fo(o,a,"path "+s.path)}return i}var l=GJ(i.path||""),c=s&&s.path||"/",u=l.path?$x(l.path,c,t||i.append):c,d=jJ(l.query,i.query,r&&r.options.parseQuery),m=i.hash||l.hash;return m&&m.charAt(0)!=="#"&&(m="#"+m),{_normalized:!0,path:u,query:d,hash:m}}var iK=[String,Object],nK=[String,Array],Gb=function(){},aK={name:"RouterLink",props:{to:{type:iK,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:nK,default:"click"}},render:function(s){var t=this,r=this.$router,i=this.$route,n=r.resolve(this.to,i,this.append),a=n.location,o=n.route,l=n.href,c={},u=r.options.linkActiveClass,d=r.options.linkExactActiveClass,m=u==null?"router-link-active":u,h=d==null?"router-link-exact-active":d,p=this.activeClass==null?m:this.activeClass,f=this.exactActiveClass==null?h:this.exactActiveClass,b=o.redirectedFrom?Kl(null,qf(o.redirectedFrom),null,r):o;c[f]=yx(i,b,this.exactPath),c[p]=this.exact||this.exactPath?c[f]:VJ(i,b);var C=c[f]?this.ariaCurrentValue:null,S=function(re){zb(re)&&(t.replace?r.replace(a,Gb):r.push(a,Gb))},L={click:zb};Array.isArray(this.event)?this.event.forEach(function(re){L[re]=S}):L[this.event]=S;var N={class:c},R=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:o,navigate:S,isActive:c[p],isExactActive:c[f]});if(R){if(R.length===1)return R[0];if(R.length>1||!R.length)return R.length===0?s():s("span",{},R)}if(this.tag==="a")N.on=L,N.attrs={href:l,"aria-current":C};else{var x=Px(this.$slots.default);if(x){x.isStatic=!1;var T=x.data=is({},x.data);T.on=T.on||{};for(var I in T.on){var j=T.on[I];I in L&&(T.on[I]=Array.isArray(j)?j:[j])}for(var W in L)W in T.on?T.on[W].push(L[W]):T.on[W]=S;var Z=x.data.attrs=is({},x.data.attrs);Z.href=l,Z["aria-current"]=C}else N.on=L}return s(this.tag,N,this.$slots.default)}};function zb(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){var s=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(s))return}return e.preventDefault&&e.preventDefault(),!0}}function Px(e){if(e){for(var s,t=0;t<e.length;t++)if(s=e[t],s.tag==="a"||s.children&&(s=Px(s.children)))return s}}var ec;function kh(e){if(!(kh.installed&&ec===e)){kh.installed=!0,ec=e;var s=function(i){return i!==void 0},t=function(i,n){var a=i.$options._parentVnode;s(a)&&s(a=a.data)&&s(a=a.registerRouteInstance)&&a(i,n)};e.mixin({beforeCreate:function(){s(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,t(this,this)},destroyed:function(){t(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",BJ),e.component("RouterLink",aK);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var Qa=typeof window<"u";function vo(e,s,t,r,i){var n=s||[],a=t||Object.create(null),o=r||Object.create(null);e.forEach(function(u){Fh(n,a,o,u,i)});for(var l=0,c=n.length;l<c;l++)n[l]==="*"&&(n.push(n.splice(l,1)[0]),c--,l--);return{pathList:n,pathMap:a,nameMap:o}}function Fh(e,s,t,r,i,n){var a=r.path,o=r.name,l=r.pathToRegexpOptions||{},c=lK(a,i,l.strict);typeof r.caseSensitive=="boolean"&&(l.sensitive=r.caseSensitive);var u={path:c,regex:oK(c,l),components:r.components||{default:r.component},alias:r.alias?typeof r.alias=="string"?[r.alias]:r.alias:[],instances:{},enteredCbs:{},name:o,parent:i,matchAs:n,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:r.props==null?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach(function(f){var b=n?nr(n+"/"+f.path):void 0;Fh(e,s,t,f,u,b)}),s[u.path]||(e.push(u.path),s[u.path]=u),r.alias!==void 0)for(var d=Array.isArray(r.alias)?r.alias:[r.alias],m=0;m<d.length;++m){var h=d[m],p={path:h,children:r.children};Fh(e,s,t,p,i,u.path||"/")}o&&(t[o]||(t[o]=u))}function oK(e,s){var t=un(e,[],s);return t}function lK(e,s,t){return t||(e=e.replace(/\/$/,"")),e[0]==="/"||s==null?e:nr(s.path+"/"+e)}function cK(e,s){var t=vo(e),r=t.pathList,i=t.pathMap,n=t.nameMap;function a(h){vo(h,r,i,n)}function o(h,p){var f=typeof h!="object"?n[h]:void 0;vo([p||h],r,i,n,f),f&&f.alias.length&&vo(f.alias.map(function(b){return{path:b,children:[p]}}),r,i,n,f)}function l(){return r.map(function(h){return i[h]})}function c(h,p,f){var b=qf(h,p,!1,s),C=b.name;if(C){var S=n[C];if(!S)return m(null,b);var L=S.regex.keys.filter(function(I){return!I.optional}).map(function(I){return I.name});if(typeof b.params!="object"&&(b.params={}),p&&typeof p.params=="object")for(var N in p.params)!(N in b.params)&&L.indexOf(N)>-1&&(b.params[N]=p.params[N]);return b.path=Fo(S.path,b.params),m(S,b,f)}else if(b.path){b.params={};for(var R=0;R<r.length;R++){var x=r[R],T=i[x];if(uK(T.regex,b.path,b.params))return m(T,b,f)}}return m(null,b)}function u(h,p){var f=h.redirect,b=typeof f=="function"?f(Kl(h,p,null,s)):f;if(typeof b=="string"&&(b={path:b}),!b||typeof b!="object")return m(null,p);var C=b,S=C.name,L=C.path,N=p.query,R=p.hash,x=p.params;if(N=C.hasOwnProperty("query")?C.query:N,R=C.hasOwnProperty("hash")?C.hash:R,x=C.hasOwnProperty("params")?C.params:x,S)return n[S],c({_normalized:!0,name:S,query:N,hash:R,params:x},void 0,p);if(L){var T=dK(L,h),I=Fo(T,x);return c({_normalized:!0,path:I,query:N,hash:R},void 0,p)}else return m(null,p)}function d(h,p,f){var b=Fo(f,p.params),C=c({_normalized:!0,path:b});if(C){var S=C.matched,L=S[S.length-1];return p.params=C.params,m(L,p)}return m(null,p)}function m(h,p,f){return h&&h.redirect?u(h,f||p):h&&h.matchAs?d(h,p,h.matchAs):Kl(h,p,f,s)}return{match:c,addRoute:o,getRoutes:l,addRoutes:a}}function uK(e,s,t){var r=s.match(e);if(r){if(!t)return!0}else return!1;for(var i=1,n=r.length;i<n;++i){var a=e.keys[i-1];a&&(t[a.name||"pathMatch"]=typeof r[i]=="string"?Lh(r[i]):r[i])}return!0}function dK(e,s){return $x(e,s.parent?s.parent.path:"/",!0)}var mK=Qa&&window.performance&&window.performance.now?window.performance:Date;function Dx(){return mK.now().toFixed(3)}var Tx=Dx();function Zu(){return Tx}function Mx(e){return Tx=e}var Ex=Object.create(null);function Ox(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,s=window.location.href.replace(e,""),t=is({},window.history.state);return t.key=Zu(),window.history.replaceState(t,"",s),window.addEventListener("popstate",Zb),function(){window.removeEventListener("popstate",Zb)}}function ar(e,s,t,r){if(e.app){var i=e.options.scrollBehavior;i&&e.app.$nextTick(function(){var n=hK(),a=i.call(e,s,t,r?n:null);a&&(typeof a.then=="function"?a.then(function(o){Yb(o,n)}).catch(function(o){}):Yb(a,n))})}}function Lx(){var e=Zu();e&&(Ex[e]={x:window.pageXOffset,y:window.pageYOffset})}function Zb(e){Lx(),e.state&&e.state.key&&Mx(e.state.key)}function hK(){var e=Zu();if(e)return Ex[e]}function pK(e,s){var t=document.documentElement,r=t.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:i.left-r.left-s.x,y:i.top-r.top-s.y}}function qb(e){return zi(e.x)||zi(e.y)}function Xb(e){return{x:zi(e.x)?e.x:window.pageXOffset,y:zi(e.y)?e.y:window.pageYOffset}}function fK(e){return{x:zi(e.x)?e.x:0,y:zi(e.y)?e.y:0}}function zi(e){return typeof e=="number"}var gK=/^#\d/;function Yb(e,s){var t=typeof e=="object";if(t&&typeof e.selector=="string"){var r=gK.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(r){var i=e.offset&&typeof e.offset=="object"?e.offset:{};i=fK(i),s=pK(r,i)}else qb(e)&&(s=Xb(e))}else t&&qb(e)&&(s=Xb(e));s&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:s.x,top:s.y,behavior:e.behavior}):window.scrollTo(s.x,s.y))}var or=Qa&&function(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1?!1:window.history&&typeof window.history.pushState=="function"}();function tc(e,s){Lx();var t=window.history;try{if(s){var r=is({},t.state);r.key=Zu(),t.replaceState(r,"",e)}else t.pushState({key:Mx(Dx())},"",e)}catch{window.location[s?"replace":"assign"](e)}}function Rh(e){tc(e,!0)}var Kr={redirected:2,aborted:4,cancelled:8,duplicated:16};function vK(e,s){return qu(e,s,Kr.redirected,'Redirected when going from "'+e.fullPath+'" to "'+CK(s)+'" via a navigation guard.')}function _K(e,s){var t=qu(e,s,Kr.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return t.name="NavigationDuplicated",t}function Jb(e,s){return qu(e,s,Kr.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+s.fullPath+'" with a new navigation.')}function bK(e,s){return qu(e,s,Kr.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+s.fullPath+'" via a navigation guard.')}function qu(e,s,t,r){var i=new Error(r);return i._isRouter=!0,i.from=e,i.to=s,i.type=t,i}var yK=["params","query","hash"];function CK(e){if(typeof e=="string")return e;if("path"in e)return e.path;var s={};return yK.forEach(function(t){t in e&&(s[t]=e[t])}),JSON.stringify(s,null,2)}function sc(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function Xu(e,s){return sc(e)&&e._isRouter&&(s==null||e.type===s)}function Kb(e,s,t){var r=function(i){i>=e.length?t():e[i]?s(e[i],function(){r(i+1)}):r(i+1)};r(0)}function $K(e){return function(s,t,r){var i=!1,n=0,a=null;Ax(e,function(o,l,c,u){if(typeof o=="function"&&o.cid===void 0){i=!0,n++;var d=Qb(function(f){wK(f)&&(f=f.default),o.resolved=typeof f=="function"?f:ec.extend(f),c.components[u]=f,n--,n<=0&&r()}),m=Qb(function(f){var b="Failed to resolve async component "+u+": "+f;a||(a=sc(f)?f:new Error(b),r(a))}),h;try{h=o(d,m)}catch(f){m(f)}if(h)if(typeof h.then=="function")h.then(d,m);else{var p=h.component;p&&typeof p.then=="function"&&p.then(d,m)}}}),i||r()}}function Ax(e,s){return kx(e.map(function(t){return Object.keys(t.components).map(function(r){return s(t.components[r],t.instances[r],t,r)})}))}function kx(e){return Array.prototype.concat.apply([],e)}var xK=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function wK(e){return e.__esModule||xK&&e[Symbol.toStringTag]==="Module"}function Qb(e){var s=!1;return function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];if(!s)return s=!0,e.apply(this,t)}}var hs=function(s,t){this.router=s,this.base=SK(t),this.current=vr,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};hs.prototype.listen=function(s){this.cb=s};hs.prototype.onReady=function(s,t){this.ready?s():(this.readyCbs.push(s),t&&this.readyErrorCbs.push(t))};hs.prototype.onError=function(s){this.errorCbs.push(s)};hs.prototype.transitionTo=function(s,t,r){var i=this,n;try{n=this.router.match(s,this.current)}catch(o){throw this.errorCbs.forEach(function(l){l(o)}),o}var a=this.current;this.confirmTransition(n,function(){i.updateRoute(n),t&&t(n),i.ensureURL(),i.router.afterHooks.forEach(function(o){o&&o(n,a)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(o){o(n)}))},function(o){r&&r(o),o&&!i.ready&&(!Xu(o,Kr.redirected)||a!==vr)&&(i.ready=!0,i.readyErrorCbs.forEach(function(l){l(o)}))})};hs.prototype.confirmTransition=function(s,t,r){var i=this,n=this.current;this.pending=s;var a=function(f){!Xu(f)&&sc(f)&&(i.errorCbs.length?i.errorCbs.forEach(function(b){b(f)}):console.error(f)),r&&r(f)},o=s.matched.length-1,l=n.matched.length-1;if(yx(s,n)&&o===l&&s.matched[o]===n.matched[l])return this.ensureURL(),s.hash&&ar(this.router,n,s,!1),a(_K(n,s));var c=PK(this.current.matched,s.matched),u=c.updated,d=c.deactivated,m=c.activated,h=[].concat(TK(d),this.router.beforeHooks,MK(u),m.map(function(f){return f.beforeEnter}),$K(m)),p=function(f,b){if(i.pending!==s)return a(Jb(n,s));try{f(s,n,function(C){C===!1?(i.ensureURL(!0),a(bK(n,s))):sc(C)?(i.ensureURL(!0),a(C)):typeof C=="string"||typeof C=="object"&&(typeof C.path=="string"||typeof C.name=="string")?(a(vK(n,s)),typeof C=="object"&&C.replace?i.replace(C):i.push(C)):b(C)})}catch(C){a(C)}};Kb(h,p,function(){var f=EK(m),b=f.concat(i.router.resolveHooks);Kb(b,p,function(){if(i.pending!==s)return a(Jb(n,s));i.pending=null,t(s),i.router.app&&i.router.app.$nextTick(function(){Cx(s)})})})};hs.prototype.updateRoute=function(s){this.current=s,this.cb&&this.cb(s)};hs.prototype.setupListeners=function(){};hs.prototype.teardown=function(){this.listeners.forEach(function(s){s()}),this.listeners=[],this.current=vr,this.pending=null};function SK(e){if(!e)if(Qa){var s=document.querySelector("base");e=s&&s.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return e.charAt(0)!=="/"&&(e="/"+e),e.replace(/\/$/,"")}function PK(e,s){var t,r=Math.max(e.length,s.length);for(t=0;t<r&&e[t]===s[t];t++);return{updated:s.slice(0,t),activated:s.slice(t),deactivated:e.slice(t)}}function Xf(e,s,t,r){var i=Ax(e,function(n,a,o,l){var c=DK(n,s);if(c)return Array.isArray(c)?c.map(function(u){return t(u,a,o,l)}):t(c,a,o,l)});return kx(r?i.reverse():i)}function DK(e,s){return typeof e!="function"&&(e=ec.extend(e)),e.options[s]}function TK(e){return Xf(e,"beforeRouteLeave",Fx,!0)}function MK(e){return Xf(e,"beforeRouteUpdate",Fx)}function Fx(e,s){if(s)return function(){return e.apply(s,arguments)}}function EK(e){return Xf(e,"beforeRouteEnter",function(s,t,r,i){return OK(s,r,i)})}function OK(e,s,t){return function(i,n,a){return e(i,n,function(o){typeof o=="function"&&(s.enteredCbs[t]||(s.enteredCbs[t]=[]),s.enteredCbs[t].push(o)),a(o)})}}var Rx=function(e){function s(t,r){e.call(this,t,r),this._startLocation=An(this.base)}return e&&(s.__proto__=e),s.prototype=Object.create(e&&e.prototype),s.prototype.constructor=s,s.prototype.setupListeners=function(){var r=this;if(!(this.listeners.length>0)){var i=this.router,n=i.options.scrollBehavior,a=or&&n;a&&this.listeners.push(Ox());var o=function(){var l=r.current,c=An(r.base);r.current===vr&&c===r._startLocation||r.transitionTo(c,function(u){a&&ar(i,u,l,!0)})};window.addEventListener("popstate",o),this.listeners.push(function(){window.removeEventListener("popstate",o)})}},s.prototype.go=function(r){window.history.go(r)},s.prototype.push=function(r,i,n){var a=this,o=this,l=o.current;this.transitionTo(r,function(c){tc(nr(a.base+c.fullPath)),ar(a.router,c,l,!1),i&&i(c)},n)},s.prototype.replace=function(r,i,n){var a=this,o=this,l=o.current;this.transitionTo(r,function(c){Rh(nr(a.base+c.fullPath)),ar(a.router,c,l,!1),i&&i(c)},n)},s.prototype.ensureURL=function(r){if(An(this.base)!==this.current.fullPath){var i=nr(this.base+this.current.fullPath);r?tc(i):Rh(i)}},s.prototype.getCurrentLocation=function(){return An(this.base)},s}(hs);function An(e){var s=window.location.pathname,t=s.toLowerCase(),r=e.toLowerCase();return e&&(t===r||t.indexOf(nr(r+"/"))===0)&&(s=s.slice(e.length)),(s||"/")+window.location.search+window.location.hash}var jx=function(e){function s(t,r,i){e.call(this,t,r),!(i&&LK(this.base))&&e0()}return e&&(s.__proto__=e),s.prototype=Object.create(e&&e.prototype),s.prototype.constructor=s,s.prototype.setupListeners=function(){var r=this;if(!(this.listeners.length>0)){var i=this.router,n=i.options.scrollBehavior,a=or&&n;a&&this.listeners.push(Ox());var o=function(){var c=r.current;e0()&&r.transitionTo(Ro(),function(u){a&&ar(r.router,u,c,!0),or||jo(u.fullPath)})},l=or?"popstate":"hashchange";window.addEventListener(l,o),this.listeners.push(function(){window.removeEventListener(l,o)})}},s.prototype.push=function(r,i,n){var a=this,o=this,l=o.current;this.transitionTo(r,function(c){t0(c.fullPath),ar(a.router,c,l,!1),i&&i(c)},n)},s.prototype.replace=function(r,i,n){var a=this,o=this,l=o.current;this.transitionTo(r,function(c){jo(c.fullPath),ar(a.router,c,l,!1),i&&i(c)},n)},s.prototype.go=function(r){window.history.go(r)},s.prototype.ensureURL=function(r){var i=this.current.fullPath;Ro()!==i&&(r?t0(i):jo(i))},s.prototype.getCurrentLocation=function(){return Ro()},s}(hs);function LK(e){var s=An(e);if(!/^\/#/.test(s))return window.location.replace(nr(e+"/#"+s)),!0}function e0(){var e=Ro();return e.charAt(0)==="/"?!0:(jo("/"+e),!1)}function Ro(){var e=window.location.href,s=e.indexOf("#");return s<0?"":(e=e.slice(s+1),e)}function jh(e){var s=window.location.href,t=s.indexOf("#"),r=t>=0?s.slice(0,t):s;return r+"#"+e}function t0(e){or?tc(jh(e)):window.location.hash=e}function jo(e){or?Rh(jh(e)):window.location.replace(jh(e))}var AK=function(e){function s(t,r){e.call(this,t,r),this.stack=[],this.index=-1}return e&&(s.__proto__=e),s.prototype=Object.create(e&&e.prototype),s.prototype.constructor=s,s.prototype.push=function(r,i,n){var a=this;this.transitionTo(r,function(o){a.stack=a.stack.slice(0,a.index+1).concat(o),a.index++,i&&i(o)},n)},s.prototype.replace=function(r,i,n){var a=this;this.transitionTo(r,function(o){a.stack=a.stack.slice(0,a.index).concat(o),i&&i(o)},n)},s.prototype.go=function(r){var i=this,n=this.index+r;if(!(n<0||n>=this.stack.length)){var a=this.stack[n];this.confirmTransition(a,function(){var o=i.current;i.index=n,i.updateRoute(a),i.router.afterHooks.forEach(function(l){l&&l(a,o)})},function(o){Xu(o,Kr.duplicated)&&(i.index=n)})}},s.prototype.getCurrentLocation=function(){var r=this.stack[this.stack.length-1];return r?r.fullPath:"/"},s.prototype.ensureURL=function(){},s}(hs),He=function(s){s===void 0&&(s={}),this.app=null,this.apps=[],this.options=s,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=cK(s.routes||[],this);var t=s.mode||"hash";switch(this.fallback=t==="history"&&!or&&s.fallback!==!1,this.fallback&&(t="hash"),Qa||(t="abstract"),this.mode=t,t){case"history":this.history=new Rx(this,s.base);break;case"hash":this.history=new jx(this,s.base,this.fallback);break;case"abstract":this.history=new AK(this,s.base);break}},Hx={currentRoute:{configurable:!0}};He.prototype.match=function(s,t,r){return this.matcher.match(s,t,r)};Hx.currentRoute.get=function(){return this.history&&this.history.current};He.prototype.init=function(s){var t=this;if(this.apps.push(s),s.$once("hook:destroyed",function(){var a=t.apps.indexOf(s);a>-1&&t.apps.splice(a,1),t.app===s&&(t.app=t.apps[0]||null),t.app||t.history.teardown()}),!this.app){this.app=s;var r=this.history;if(r instanceof Rx||r instanceof jx){var i=function(a){var o=r.current,l=t.options.scrollBehavior,c=or&&l;c&&"fullPath"in a&&ar(t,a,o,!1)},n=function(a){r.setupListeners(),i(a)};r.transitionTo(r.getCurrentLocation(),n,n)}r.listen(function(a){t.apps.forEach(function(o){o._route=a})})}};He.prototype.beforeEach=function(s){return Yf(this.beforeHooks,s)};He.prototype.beforeResolve=function(s){return Yf(this.resolveHooks,s)};He.prototype.afterEach=function(s){return Yf(this.afterHooks,s)};He.prototype.onReady=function(s,t){this.history.onReady(s,t)};He.prototype.onError=function(s){this.history.onError(s)};He.prototype.push=function(s,t,r){var i=this;if(!t&&!r&&typeof Promise<"u")return new Promise(function(n,a){i.history.push(s,n,a)});this.history.push(s,t,r)};He.prototype.replace=function(s,t,r){var i=this;if(!t&&!r&&typeof Promise<"u")return new Promise(function(n,a){i.history.replace(s,n,a)});this.history.replace(s,t,r)};He.prototype.go=function(s){this.history.go(s)};He.prototype.back=function(){this.go(-1)};He.prototype.forward=function(){this.go(1)};He.prototype.getMatchedComponents=function(s){var t=s?s.matched?s:this.resolve(s).route:this.currentRoute;return t?[].concat.apply([],t.matched.map(function(r){return Object.keys(r.components).map(function(i){return r.components[i]})})):[]};He.prototype.resolve=function(s,t,r){t=t||this.history.current;var i=qf(s,t,r,this),n=this.match(i,t),a=n.redirectedFrom||n.fullPath,o=this.history.base,l=kK(o,a,this.mode);return{location:i,route:n,href:l,normalizedTo:i,resolved:n}};He.prototype.getRoutes=function(){return this.matcher.getRoutes()};He.prototype.addRoute=function(s,t){this.matcher.addRoute(s,t),this.history.current!==vr&&this.history.transitionTo(this.history.getCurrentLocation())};He.prototype.addRoutes=function(s){this.matcher.addRoutes(s),this.history.current!==vr&&this.history.transitionTo(this.history.getCurrentLocation())};Object.defineProperties(He.prototype,Hx);var Ix=He;function Yf(e,s){return e.push(s),function(){var t=e.indexOf(s);t>-1&&e.splice(t,1)}}function kK(e,s,t){var r=t==="hash"?"#"+s:s;return e?nr(e+"/"+r):r}He.install=kh;He.version="3.6.5";He.isNavigationFailure=Xu;He.NavigationFailureType=Kr;He.START_LOCATION=vr;Qa&&window.Vue&&window.Vue.use(He);y.use(Ix);const Sa=new Ix({base:"/",mode:"history",routes:J$});var FK=Object.defineProperty,RK=Object.getOwnPropertyDescriptor,jK=(e,s,t,r)=>{for(var i=r>1?void 0:r?RK(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&FK(s,t,i),i};let Hh=class extends M(O){constructor(){super(...arguments),this.mdiChevronDown=hr}get displayMenuPoint(){return this.instancesDB!=="moonraker"&&this.countPrinters>1||this.instancesDB==="moonraker"&&this.countPrinters}get printers(){return this.$store.getters["farm/getPrinters"]}get countPrinters(){return this.$store.getters["farm/countPrinters"]}get currentPage(){return this.$route.fullPath}switchToPrinters(){Sa.push("/allPrinters")}getPrinterName(e){return this.$store.getters["farm/"+e+"/getPrinterName"]}getPrinterDescription(e){return this.$store.getters["farm/"+e._namespace+"/getStatus"]}changePrinter(e){e.socket.isConnected&&this.$store.dispatch("changePrinter",{printer:e._namespace})}};Hh=jK([D],Hh);var HK=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t($e,{attrs:{bottom:"","offset-x":!0},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(v,e._g(e._b({staticClass:"nav-arrow right"},"v-icon",n,!1),i),[e._v(e._s(e.mdiChevronDown))])]}}])},[t(Oe,{attrs:{dense:""}},e._l(e.printers,function(r){return t(J,{key:r._namespace,attrs:{"two-line":"",disabled:!r.socket.isConnected,link:""},on:{click:function(i){return e.changePrinter(r)}}},[t(vt,[t(Ge,[e._v(e._s(e.getPrinterName(r._namespace)))]),t(Aa,[e._v(e._s(e.getPrinterDescription(r)))])],1)],1)}),1)],1)},IK=[];const s0={};var NK=E(Hh,HK,IK,!1,VK,null,null,null);function VK(e){for(let s in s0)this[s]=s0[s]}const Nx=function(){return NK.exports}();var UK=Object.defineProperty,BK=Object.getOwnPropertyDescriptor,Yu=(e,s,t,r)=>{for(var i=r>1?void 0:r?BK(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&UK(s,t,i),i};let Zi=class extends M(O){constructor(){super(...arguments),this.mdiClose=ka,this.mdiLinkVariant=Uy,this.mdiBellOffOutline=nT,this.expand=!1,this.showMaintenanceDetails=!1}get formatedText(){return this.entry.description.replace(/(\bhttps?:\/\/[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|])/gim,'<a href="$1" target="_blank" class="'+this.alertColor+'--text">$1</a>')}get alertColor(){return this.entry.priority==="critical"?"error":this.entry.priority==="high"?"warning":"info"}get entryType(){const e=this.entry.id.indexOf("/");return e===-1?"":this.entry.id.slice(0,e)}get maintenanceEntry(){if(this.entryType!=="maintenance")return null;const e=this.entry.id.replace("maintenance/","");return this.$store.getters["gui/maintenance/getEntries"].find(t=>t.id===e)}get reminderTimes(){let e=[{text:this.$t("App.Notifications.NextReboot"),clickFunction:()=>this.dismiss("reboot",null)},{text:this.$t("App.Notifications.Never"),clickFunction:()=>this.close()}];return["announcement","maintenance"].includes(this.entryType)&&(e=[],e.push({text:this.$t("App.Notifications.OneHourShort"),clickFunction:()=>this.dismiss("time",60*60)}),e.push({text:this.$t("App.Notifications.OneDayShort"),clickFunction:()=>this.dismiss("time",60*60*24)}),e.push({text:this.$t("App.Notifications.OneWeekShort"),clickFunction:()=>this.dismiss("time",60*60*24*7)})),e}xButtonAction(){if(this.entryType==="announcement")return this.close();this.dismiss("reboot",null)}close(){this.$store.dispatch("gui/notifications/close",{id:this.entry.id})}dismiss(e,s){this.$store.dispatch("gui/notifications/dismiss",{id:this.entry.id,type:e,time:s})}parentStateUpdate(e){e||(this.expand=!1)}};Yu([P({required:!0})],Zi.prototype,"entry",2);Yu([P({default:!0})],Zi.prototype,"parentState",2);Yu([me("parentState")],Zi.prototype,"parentStateUpdate",1);Zi=Yu([D({components:{}})],Zi);var WK=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(it,{class:"notification-menu-entry--priority-".concat(e.entry.priority),attrs:{text:"",color:e.alertColor,border:"left"}},[t($,{staticClass:"flex-nowrap",attrs:{align:"start"}},[t(_,{staticClass:"grow pb-2"},[t("div",{staticClass:"notification-menu-entry__headline mb-1 text-subtitle-1"},["url"in e.entry?t("a",{class:"text-decoration-none ".concat(e.alertColor,"--text "),attrs:{href:e.entry.url,target:"_blank"}},[t(v,{class:"".concat(e.alertColor,"--text pb-1"),attrs:{small:""}},[e._v(" "+e._s(e.mdiLinkVariant)+" ")]),e._v(" "+e._s(e.entry.title)+" ")],1):t("span",{class:"".concat(e.alertColor,"--text")},[e._v(e._s(e.entry.title))])]),t("p",{staticClass:"notification-menu-entry__description text-body-2 mb-0 text--disabled font-weight-light",domProps:{innerHTML:e._s(e.formatedText)}}),e.entryType==="maintenance"?t(g,{staticClass:"mt-3 mb-0 w-100",attrs:{outlined:"",small:"",color:e.alertColor},on:{click:function(r){e.showMaintenanceDetails=!0}}},[e._v(" "+e._s(e.$t("App.Notifications.ShowDetails"))+" ")]):e._e()],1),e.entry.priority!=="critical"?t(_,{staticClass:"shrink pl-0 pb-1 pt-1 pr-2 d-flex flex-column align-self-stretch justify-space-between"},[e.entryType!=="maintenance"?t(g,{staticClass:"mb-2",attrs:{icon:"",plain:"",color:e.alertColor},on:{click:e.xButtonAction}},[t(v,[e._v(e._s(e.mdiClose))])],1):e._e(),t(ae),t(g,{attrs:{icon:"",plain:"","retain-focus-on-click":"",color:e.alertColor},on:{click:function(r){e.expand=!e.expand}}},[t(v,[e._v(e._s(e.mdiBellOffOutline))])],1)],1):e._e()],1),e.entry.priority!=="critical"?t($,[t(Ac,[t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],staticClass:"pt-1 w-100"},[t(U,{staticClass:"pb-1 ml-2"}),t("div",{staticClass:"text-right py-1",staticStyle:{"font-size":"0.875rem"}},[t("span",{staticClass:"text--disabled text-caption font-weight-light"},[e._v(" "+e._s(e.$t("App.Notifications.Remind"))+" ")]),e._l(e.reminderTimes,function(r){return t(g,{key:r.text,staticClass:"mx-1",attrs:{color:e.alertColor,"x-small":"",plain:"",text:"",outlined:""},on:{click:r.clickFunction}},[e._v(" "+e._s(r.text)+" ")])})],2)],1)])],1):e._e(),e.entryType==="maintenance"?t(pf,{attrs:{show:e.showMaintenanceDetails,item:e.maintenanceEntry},on:{close:function(r){e.showMaintenanceDetails=!1}}}):e._e()],1)},GK=[];const r0={};var zK=E(Zi,WK,GK,!1,ZK,"199aea20",null,null);function ZK(e){for(let s in r0)this[s]=r0[s]}const Vx=function(){return zK.exports}();var qK=Object.defineProperty,XK=Object.getOwnPropertyDescriptor,YK=(e,s,t,r)=>{for(var i=r>1?void 0:r?XK(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&qK(s,t,i),i};let Ih=class extends M(O){constructor(){super(...arguments),this.mdiBell=iT,this.mdiBellOutline=aT,this.mdiCloseBoxMultipleOutline=gT,this.boolMenu=!1}get notifications(){var e;return(e=this.$store.getters["gui/notifications/getNotifications"])!=null?e:[]}get existsCriticalAnnouncements(){return this.notifications.filter(e=>e.priority==="critical").length>0}get existsHighAnnouncements(){return this.notifications.filter(e=>e.priority==="high").length>0}get countNormalAnnouncements(){return this.notifications.filter(e=>e.priority==="normal").length}get colorBadge(){return this.existsCriticalAnnouncements?"error":this.existsHighAnnouncements?"warning":"primary"}dismissAll(){this.notifications.forEach(async e=>{e.id.startsWith("announcement")&&await this.$store.dispatch("gui/notifications/close",{id:e.id}),await this.$store.dispatch("gui/notifications/dismiss",{id:e.id,type:"reboot",time:null})})}};Ih=YK([D({components:{NotificationMenuEntry:Vx}})],Ih);var JK=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t($e,{attrs:{bottom:"",left:!e.isMobile,"offset-y":"","close-on-click":!0,"close-on-content-click":!1,origin:"center center",transition:"slide-y-transition","min-width":e.isMobile?"100%":null},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({staticClass:"minwidth-0",attrs:{icon:"",tile:""}},"v-btn",n,!1),i),[t(ay,{attrs:{content:e.notifications.length<=9?e.notifications.length:"9+",value:e.notifications.length>0,color:e.colorBadge,overlap:""}},[t(v,[e._v(e._s(n["aria-expanded"]==="false"?e.mdiBellOutline:e.mdiBell))])],1)],1)]}}]),model:{value:e.boolMenu,callback:function(r){e.boolMenu=r},expression:"boolMenu"}},[t(xe,{attrs:{flat:"","min-width":300,"max-width":e.isMobile?null:400}},[e.notifications.length?[t("overlay-scrollbars",{staticClass:"announcement-menu__scrollbar"},[t(q,[e._l(e.notifications,function(r,i){return[t(Vx,{key:r.id,class:i<e.notifications.length-1?"":"mb-0",attrs:{entry:r,"parent-state":e.boolMenu}})]})],2)],1),e.notifications.length>1?[t(U),t(ne,[t(ae),t(g,{staticClass:"mr-2",attrs:{text:"",color:"primary"},on:{click:e.dismissAll}},[t(v,{attrs:{left:""}},[e._v(e._s(e.mdiCloseBoxMultipleOutline))]),e._v(" "+e._s(e.$t("App.Notifications.DismissAll"))+" ")],1)],1)]:e._e()]:t(q,{staticClass:"text-center"},[t("span",{staticClass:"text-disabled"},[e._v(e._s(e.$t("App.Notifications.NoNotification")))])])],2)],1)},KK=[];const i0={};var QK=E(Ih,JK,KK,!1,eQ,"1b8a7ab6",null,null);function eQ(e){for(let s in i0)this[s]=i0[s]}const Ux=function(){return QK.exports}();var tQ=Object.defineProperty,sQ=Object.getOwnPropertyDescriptor,Bx=(e,s,t,r)=>{for(var i=r>1?void 0:r?sQ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&tQ(s,t,i),i};let rc=class extends M(O){constructor(){super(...arguments),this.mdiAlertOctagonOutline=$y,this.mdiCloseThick=pe}emergencyStop(){this.$socket.emit("printer.emergency_stop",{},{loading:"topbarEmergencyStop"}),this.closePrompt()}closePrompt(){this.$emit("close")}};Bx([P({type:Boolean,default:!1})],rc.prototype,"showDialog",2);rc=Bx([D({components:{Panel:B}})],rc);var rQ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{value:e.showDialog,width:"400",persistent:""}},[t(B,{attrs:{title:e.$t("EmergencyStopDialog.EmergencyStop"),"toolbar-color":"error","card-class":"emergency-stop-dialog",icon:e.mdiAlertOctagonOutline,"margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closePrompt}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[e._v(e._s(e.$t("EmergencyStopDialog.AreYouSure")))]),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:e.closePrompt}},[e._v(e._s(e.$t("EmergencyStopDialog.No")))]),t(g,{attrs:{color:"primary",text:""},on:{click:e.emergencyStop}},[e._v(e._s(e.$t("EmergencyStopDialog.Yes")))])],1)],1)],1)},iQ=[];const n0={};var nQ=E(rc,rQ,iQ,!1,aQ,null,null,null);function aQ(e){for(let s in n0)this[s]=n0[s]}const Wx=function(){return nQ.exports}(),$n={};function oQ(e){return Object.keys(e).reduce((s,t)=>(e[t]!==!1&&e[t]!==null&&e[t]!==void 0&&(s[t]=e[t]),s),{})}const lQ={name:"InlineSvg",inheritAttrs:!1,render(e){return this.svgElSource?e("svg",{on:this.$listeners,attrs:Object.assign(this.getSvgAttrs(this.svgElSource),oQ(this.$attrs)),domProps:{innerHTML:this.getSvgContent(this.svgElSource)}}):null},props:{src:{type:String,required:!0},title:{type:String},transformSource:{type:Function,default:e=>e},keepDuringLoading:{type:Boolean,default:!0}},data(){return{svgElSource:null}},watch:{src(e){this.getSource(e)}},mounted(){this.getSource(this.src)},methods:{getSvgAttrs(e){let s={};const t=e.attributes;if(!t)return s;for(let r=t.length-1;r>=0;r--)s[t[r].name]=t[r].value;return s},getSvgContent(e){return e=e.cloneNode(!0),e=this.transformSource(e),this.title&&cQ(e,this.title),e.innerHTML},getSource(e){$n[e]||($n[e]=this.download(e)),this.svgElSource&&$n[e].getIsPending()&&!this.keepDuringLoading&&(this.svgElSource=null,this.$emit("unloaded")),$n[e].then(s=>{this.svgElSource=s,this.$nextTick(()=>{this.$emit("loaded",this.$el)})}).catch(s=>{this.svgElSource&&(this.svgElSource=null,this.$emit("unloaded")),delete $n[e],this.$emit("error",s)})},download(e){return uQ(new Promise((s,t)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.onload=()=>{if(r.status>=200&&r.status<400)try{let a=new DOMParser().parseFromString(r.responseText,"text/xml").getElementsByTagName("svg")[0];a?s(a):t(new Error('Loaded file is not valid SVG"'))}catch(i){t(i)}else t(new Error("Error loading SVG"))},r.onerror=t,r.send()}))}}};function cQ(e,s){const t=e.getElementsByTagName("title");if(t.length)t[0].textContent=s;else{const r=document.createElementNS("http://www.w3.org/2000/svg","title");r.textContent=s,e.insertBefore(r,e.firstChild)}}function uQ(e){if(e.getIsPending)return e;let s=!0,t=e.then(r=>(s=!1,r),r=>{throw s=!1,r});return t.getIsPending=function(){return s},t}var dQ=Object.defineProperty,mQ=Object.getOwnPropertyDescriptor,hQ=(e,s,t,r)=>{for(var i=r>1?void 0:r?mQ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&dQ(s,t,i),i};let Nh=class extends M(O,_t){constructor(){super(...arguments),this.mdiAlertOctagonOutline=$y,this.mdiContentSave=vp,this.mdiFileUpload=Ry,this.mdiClose=ka,this.mdiCloseThick=pe,this.topbarHeight=kn,this.showEmergencyStopDialog=!1,this.uploadSnackbar={status:!1,filename:"",percent:0,speed:0,total:0,cancelTokenSource:null},this.formatFilesize=Je}get gcodeInputFileAccept(){return this.isIOS?[]:Ci}get naviDrawer(){return this.$store.state.naviDrawer}set naviDrawer(e){this.$store.dispatch("setNaviDrawer",e)}get currentPage(){return this.$route.fullPath}get saveConfigPending(){var e,s;return(s=(e=this.$store.state.printer.configfile)==null?void 0:e.save_config_pending)!=null?s:!1}get hideSaveConfigForBedMash(){var e;return(e=this.$store.state.gui.uiSettings.hideSaveConfigForBedMash)!=null?e:!1}get showSaveConfigButton(){var s,t;if(!this.klipperReadyForGui)return!1;if(!this.hideSaveConfigForBedMash)return this.saveConfigPending;let e=Object.keys((t=(s=this.$store.state.printer.configfile)==null?void 0:s.save_config_pending_items)!=null?t:{});return e=e.filter(r=>!r.startsWith("bed_mesh ")),e.length>0}get printerName(){return this.$store.state.gui.general.printername.length?this.$store.state.gui.general.printername:this.$store.state.printer.hostname}get countPrinters(){return this.$store.getters["farm/countPrinters"]}get boolHideUploadAndPrintButton(){var e;return(e=this.$store.state.gui.uiSettings.boolHideUploadAndPrintButton)!=null?e:!1}get isSvgLogo(){return this.sidebarLogo.includes(".svg?timestamp=")||this.sidebarLogo.endsWith(".svg")}get logoColor(){return this.$store.state.gui.uiSettings.logo}get logoClasses(){return["nav-logo","ml-2","mr-1","d-none","d-sm-flex"]}get boolShowUploadAndPrint(){return this.klippyIsConnected&&this.existGcodesRootDirectory&&["standby","complete","cancelled"].includes(this.printer_state)&&!this.boolHideUploadAndPrintButton}get defaultNavigationStateSetting(){var e,s,t;return(t=(s=(e=this.$store.state.gui)==null?void 0:e.uiSettings)==null?void 0:s.defaultNavigationStateSetting)!=null?t:"alwaysOpen"}mounted(){var e;switch(this.defaultNavigationStateSetting){case"alwaysClosed":this.naviDrawer=!1;break;case"lastState":this.naviDrawer=((e=localStorage.getItem("naviDrawer"))!=null?e:"true")==="true";break;default:this.naviDrawer=this.$vuetify.breakpoint.lgAndUp}}btnEmergencyStop(){if(this.$store.state.gui.uiSettings.confirmOnEmergencyStop){this.showEmergencyStopDialog=!0;return}this.emergencyStop()}emergencyStop(){this.showEmergencyStopDialog=!1,this.$socket.emit("printer.emergency_stop",{},{loading:"topbarEmergencyStop"})}saveConfig(){this.$store.dispatch("server/addEvent",{message:"SAVE_CONFIG",type:"command"}),this.$socket.emit("printer.gcode.script",{script:"SAVE_CONFIG"},{loading:"topbarSaveConfig"})}btnUploadAndStart(){this.$refs.fileUploadAndStart.click()}async uploadAndStart(){var e,s;if((e=this.$refs.fileUploadAndStart)!=null&&e.files.length){await this.$store.dispatch("socket/addLoading",{name:"btnUploadAndStart"});let t=[];for(const r of((s=this.$refs.fileUploadAndStart)==null?void 0:s.files)||[]){const i=await this.doUploadAndStart(r);t.push(i)}await this.$store.dispatch("socket/removeLoading",{name:"btnUploadAndStart"});for(const r of t){const i=this.$t("App.TopBar.UploadOfFileSuccessful",{file:r}).toString();this.$toast.success(i)}this.$refs.fileUploadAndStart.value="",this.currentPage!=="/"&&await this.$router.push("/")}}doUploadAndStart(e){const s=new FormData,t=e.name;return this.uploadSnackbar.filename=t,this.uploadSnackbar.status=!0,this.uploadSnackbar.percent=0,this.uploadSnackbar.speed=0,s.append("file",e,t),s.append("print","true"),new Promise(r=>{this.uploadSnackbar.cancelTokenSource=ks.CancelToken.source(),ks.post(this.apiUrl+"/server/files/upload",s,{cancelToken:this.uploadSnackbar.cancelTokenSource.token,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:i=>{var n,a,o;this.uploadSnackbar.percent=((n=i.progress)!=null?n:0)*100,this.uploadSnackbar.speed=(a=i.rate)!=null?a:0,this.uploadSnackbar.total=(o=i.total)!=null?o:0}}).then(i=>{this.uploadSnackbar.status=!1,r(i.data.result)}).catch(()=>{this.uploadSnackbar.status=!1,this.$store.dispatch("socket/removeLoading",{name:"btnUploadAndStart"});const i=this.$t("App.TopBar.CannotUploadTheFile").toString();this.$toast.error(i)})})}cancelUpload(){this.uploadSnackbar.cancelTokenSource.cancel(),this.uploadSnackbar.status=!1}};Nh=hQ([D({components:{EmergencyStopDialog:Wx,InlineSvg:lQ,Panel:B,TheSettingsMenu:bx,TheTopCornerMenu:ex,PrinterSelector:Nx,MainsailLogo:rn,TheNotificationMenu:Ux}})],Nh);var pQ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(SP,{staticClass:"topbar pa-0",attrs:{app:"","elevate-on-scroll":"",height:e.topbarHeight,"clipped-left":""}},[t(PP,{attrs:{tile:""},on:{click:function(r){r.stopPropagation(),e.naviDrawer=!e.naviDrawer}}}),t("router-link",{attrs:{to:"/"}},[e.sidebarLogo&&e.isSvgLogo?t("inline-svg",{class:e.logoClasses,attrs:{src:e.sidebarLogo}}):e.sidebarLogo?t("img",{class:e.logoClasses,attrs:{src:e.sidebarLogo,alt:"Logo"}}):t(rn,{class:e.logoClasses,attrs:{color:e.logoColor,router:"",to:"/",ripple:!1}})],1),t(Yi,{staticClass:"text-no-wrap ml-0 pl-2 mr-2"},[e._v(e._s(e.printerName))]),e.countPrinters?t(Nx):e._e(),t(ae),t("input",{ref:"fileUploadAndStart",staticStyle:{display:"none"},attrs:{type:"file",accept:e.gcodeInputFileAccept.join(", ")},on:{change:e.uploadAndStart}}),e.showSaveConfigButton?t(g,{staticClass:"button-min-width-auto px-3 d-none d-sm-flex save-config-button",attrs:{tile:"",icon:e.$vuetify.breakpoint.smAndDown,text:e.$vuetify.breakpoint.mdAndUp,color:"primary",disabled:e.printerIsPrinting,loading:e.loadings.includes("topbarSaveConfig")},on:{click:e.saveConfig}},[t(v,{staticClass:"d-md-none"},[e._v(e._s(e.mdiContentSave))]),t("span",{staticClass:"d-none d-md-inline"},[e._v(e._s(e.$t("App.TopBar.SAVE_CONFIG")))])],1):e._e(),e.boolShowUploadAndPrint?t(g,{staticClass:"button-min-width-auto px-3 d-none d-sm-flex upload-and-start-button",attrs:{tile:"",icon:e.$vuetify.breakpoint.smAndDown,text:e.$vuetify.breakpoint.mdAndUp,color:"primary",loading:e.loadings.includes("btnUploadAndStart")},on:{click:e.btnUploadAndStart}},[t(v,{staticClass:"mr-md-2"},[e._v(e._s(e.mdiFileUpload))]),t("span",{staticClass:"d-none d-md-inline"},[e._v(e._s(e.$t("App.TopBar.UploadPrint")))])],1):e._e(),e.klippyIsConnected?t(g,{staticClass:"button-min-width-auto px-3 emergency-button",attrs:{tile:"",icon:e.$vuetify.breakpoint.smAndDown,text:e.$vuetify.breakpoint.mdAndUp,color:"error",loading:e.loadings.includes("topbarEmergencyStop")},on:{click:e.btnEmergencyStop}},[t(v,{staticClass:"mr-md-2"},[e._v(e._s(e.mdiAlertOctagonOutline))]),t("span",{staticClass:"d-none d-md-inline"},[e._v(e._s(e.$t("App.TopBar.EmergencyStop")))])],1):e._e(),t(Ux),t(bx),t(ex)],1),t(_i,{attrs:{timeout:-1,fixed:"",right:"",bottom:""},scopedSlots:e._u([{key:"action",fn:function(r){var i=r.attrs;return[t(g,e._b({staticStyle:{"min-width":"auto"},attrs:{color:"red",text:""},on:{click:e.cancelUpload}},"v-btn",i,!1),[t(v,{staticClass:"0"},[e._v(e._s(e.mdiClose))])],1)]}}]),model:{value:e.uploadSnackbar.status,callback:function(r){e.$set(e.uploadSnackbar,"status",r)},expression:"uploadSnackbar.status"}},[t("strong",[e._v(e._s(e.$t("App.TopBar.Uploading"))+" "+e._s(e.uploadSnackbar.filename))]),t("br"),e._v(" "+e._s(Math.round(e.uploadSnackbar.percent))+" % @ "+e._s(e.formatFilesize(Math.round(e.uploadSnackbar.speed)))+"/s "),t("br"),t(ws,{staticClass:"mt-2",attrs:{value:e.uploadSnackbar.percent}})],1),t(Wx,{attrs:{"show-dialog":e.showEmergencyStopDialog},on:{close:function(r){e.showEmergencyStopDialog=!1}}})],1)},fQ=[];const a0={};var gQ=E(Nh,pQ,fQ,!1,vQ,"f14843f0",null,null);function vQ(e){for(let s in a0)this[s]=a0[s]}const Gx=function(){return gQ.exports}();var _Q=Object.defineProperty,bQ=Object.getOwnPropertyDescriptor,zx=(e,s,t,r)=>{for(var i=r>1?void 0:r?bQ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&_Q(s,t,i),i};let ic=class extends M(O){constructor(){super(...arguments),this.mdiUpdate=Ia,this.headers=[{text:"Date",value:"date",width:"1%",dateType:"Date"},{text:"Message",sortable:!1,value:"message",width:"99%"}]}get application(){var e;return(e=this.$store.state.server.updateManager.updateResponse.application)!=null?e:""}get messages(){var e;return(e=this.$store.state.server.updateManager.updateResponse.messages)!=null?e:[]}get complete(){var e;return(e=this.$store.state.server.updateManager.updateResponse.complete)!=null?e:!0}customSort(e,s,t){return e.sort((r,i)=>{if(s[0]==="date")return t[0]?new Date(r[s]).getTime()-new Date(i[s]).getTime():new Date(i[s]).getTime()-new Date(r[s]).getTime();if(typeof r[s]<"u")return t[0]?i[s].toLowerCase().localeCompare(r[s].toLowerCase()):r[s].toLowerCase().localeCompare(i[s].toLowerCase())}),e}formatTime(e){const s=e.getHours()<10?"0"+e.getHours().toString():e.getHours(),t=e.getMinutes()<10?"0"+e.getMinutes().toString():e.getMinutes(),r=e.getSeconds()<10?"0"+e.getSeconds().toString():e.getSeconds();return s+":"+t+":"+r}close(){this.application!==null&&this.complete&&["client","mainsail","full"].includes(this.application.toLowerCase())?window.location.reload():(this.$store.commit("server/updateManager/resetUpdateResponse"),this.$socket.emit("machine.update.status",{refresh:!1},{action:"server/updateManager/onUpdateStatus"}))}messagesChanged(){setTimeout(()=>{this.$nextTick(()=>{if(this.$refs.updaterLogScroll){const e=this.$refs.updaterLogScroll.osInstance();e==null||e.scroll({y:"100%"})}})},50)}};zx([me("messages")],ic.prototype,"messagesChanged",1);ic=zx([D({components:{}})],ic);var yQ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{staticClass:"mx-0",attrs:{value:e.application!=="",persistent:"","max-width":"800"}},[t(xe,{attrs:{loading:!e.complete}},[t("template",{slot:"progress"},[t(ws,{attrs:{color:"primary",indeterminate:""}})],1),t(La,{attrs:{flat:"",dense:""}},[t(Yi,[t("span",{staticClass:"subheading"},[t(v,{attrs:{left:""}},[e._v(e._s(e.mdiUpdate))]),e.application.substr(0,8)==="recover_"&&!e.complete?[e._v(" "+e._s(e.$t("App.UpdateDialog.Recovering",{software:e.application.substr(8)}))+" ")]:e.application.substr(0,8)==="recover_"?[e._v(" "+e._s(e.$t("App.UpdateDialog.RecoveringDone",{software:e.application.substr(8)}))+" ")]:e.complete?[e._v(" "+e._s(e.$t("App.UpdateDialog.UpdatingDone",{software:e.application}))+" ")]:[e._v(" "+e._s(e.$t("App.UpdateDialog.Updating",{software:e.application}))+" ")]],2)])],1),t(q,{staticClass:"px-3"},[t($,[t(_,{staticClass:"py-6 px-0"},[t("overlay-scrollbars",{ref:"updaterLogScroll",staticClass:"updaterLogScroll"},[t(zr,{ref:"updaterLog",staticClass:"updaterLog",attrs:{headers:e.headers,items:e.messages,"item-key":"date","hide-default-footer":"","hide-default-header":"","disable-pagination":"","custom-sort":e.customSort,"sort-by":"date","sort-desc":!0,color:"primary"},scopedSlots:e._u([{key:"no-data",fn:function(){return[t("div",{staticClass:"py-2"},[e._v(e._s(e.$t("App.UpdateDialog.Empty")))])]},proxy:!0},{key:"item",fn:function(r){var i=r.item;return[t("tr",[t("td",{staticClass:"log-cell title-cell py-2"},[e._v(" "+e._s(e.formatTime(i.date))+" ")]),t("td",{staticClass:"log-cell content-cell pl-0 py-2",staticStyle:{width:"100%"},attrs:{colspan:"2"}},[i.message?t("span",{staticClass:"message",domProps:{innerHTML:e._s(i.message)}}):e._e()])])]}}])})],1)],1)],1),t($,[t(_,{staticClass:"text-center pt-5"},[t(g,{attrs:{text:"",disabled:!e.complete,color:"primary"},on:{click:e.close}},[e._v(" "+e._s(e.$t("App.UpdateDialog.Close"))+" ")])],1)],1)],1)],2)],1)},CQ=[];const o0={};var $Q=E(ic,yQ,CQ,!1,xQ,"de6f962a",null,null);function xQ(e){for(let s in o0)this[s]=o0[s]}const Zx=function(){return $Q.exports}();var wQ=Object.defineProperty,SQ=Object.getOwnPropertyDescriptor,PQ=(e,s,t,r)=>{for(var i=r>1?void 0:r?SQ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&wQ(s,t,i),i};let Vh=class extends M(O,_t){constructor(){super(...arguments),this.mdiConnection=fp,this.counter=0}get protocol(){return this.$store.state.socket.protocol}get hostname(){return this.$store.state.socket.hostname}get port(){return this.$store.state.socket.port}get path(){return this.$store.state.socket.path}get formatHostname(){return parseInt(this.port)!==80&&this.port!==""?this.hostname+":"+this.port+this.path:this.hostname+this.path}get isConnecting(){return this.$store.state.socket.isConnecting}get connectingFailed(){return this.$store.state.socket.connectingFailed}get showDialog(){return!0}get titleText(){return this.connectingFailed?this.$t("ConnectionDialog.Failed",{host:this.formatHostname}):this.isConnecting?this.$t("ConnectionDialog.Connecting",{host:this.formatHostname}):this.guiIsReady?this.formatHostname:this.$t("ConnectionDialog.Initializing")}reconnect(){this.counter++,this.$store.dispatch("socket/setData",{connectingFailed:!1}),this.$socket.connect()}};Vh=PQ([D({components:{ConnectionStatus:su}})],Vh);var DQ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{persistent:"",width:400},model:{value:e.showDialog,callback:function(r){e.showDialog=r},expression:"showDialog"}},[t(xe,[t(La,{attrs:{flat:"",dense:""}},[t(Yi,[t("span",{staticClass:"subheading"},[t(v,{attrs:{left:""}},[e._v(e._s(e.mdiConnection))]),e._v(" "+e._s(e.titleText)+" ")],1)])],1),e.connectingFailed?t(q,{staticClass:"pt-5"},[t(su,{attrs:{moonraker:!1}}),t("p",{staticClass:"text-center mt-3"},[e._v(e._s(e.$t("ConnectionDialog.CannotConnectTo",{host:e.formatHostname})))]),e.counter>2?[t(U,{staticClass:"my-3"}),t("p",[e._v(e._s(e.$t("ConnectionDialog.CheckMoonrakerLog")))]),t("ul",[t("li",[e._v("~/printer_data/logs/moonraker.log")])]),t(U,{staticClass:"mt-4 mb-5"})]:e._e(),t("div",{staticClass:"text-center"},[t(g,{staticClass:"primary--text",on:{click:e.reconnect}},[e._v(e._s(e.$t("ConnectionDialog.TryAgain")))])],1)],2):t(q,{staticClass:"pt-5"},[t(ws,{attrs:{color:e.progressBarColor,indeterminate:""}})],1)],1)],1)},TQ=[];const l0={};var MQ=E(Vh,DQ,TQ,!1,EQ,null,null,null);function EQ(e){for(let s in l0)this[s]=l0[s]}const qx=function(){return MQ.exports}(),OQ=y.component("CodemirrorAsync",()=>fe(()=>import("./Codemirror-96aef739.js"),["assets/Codemirror-96aef739.js","assets/codemirror-0a1db0c7.js","assets/vuetify-4c65b4c3.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-ff51454d.js"]));var LQ=Object.defineProperty,AQ=Object.getOwnPropertyDescriptor,Xx=(e,s,t,r)=>{for(var i=r>1?void 0:r?AQ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&LQ(s,t,i),i};let nc=class extends M(O){constructor(){super(...arguments),this.mdiCog=us,this.mdiUsb=d2,this.mdiCloseThick=pe,this.tab="serial",this.hideSystemEntries=!0}get tabs(){const s=[{tab:"serial",title:"Serial"},{tab:"usb",title:"USB"},{tab:"video",title:"Video"}];return this.canInterfaces.forEach(t=>{s.push({tab:t,title:t.toUpperCase()})}),s.sort((t,r)=>t.title.localeCompare(r.title))}get canInterfaces(){var s,t;return Object.keys((t=(s=this.$store.state.server.system_info)==null?void 0:s.canbus)!=null?t:{})}closePrompt(){this.$emit("close")}};Xx([P({type:Boolean,default:!1})],nc.prototype,"showDialog",2);nc=Xx([D({components:{Panel:B}})],nc);var kQ=Object.defineProperty,FQ=Object.getOwnPropertyDescriptor,Yx=(e,s,t,r)=>{for(var i=r>1?void 0:r?FQ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&kQ(s,t,i),i};let ac=class extends M(O){constructor(){super(...arguments),this.v4l2Devices=[],this.libcameraDevices=[],this.loading=!1,this.loaded=!1}get filteredLibcameraDevices(){return this.hideSystemEntries?this.libcameraDevices.filter(e=>!e.libcamera_id.includes("usb@")):this.libcameraDevices}get filteredV4l2Devices(){return this.v4l2Devices.filter(e=>this.hideSystemEntries?this.libcameraDevices.length===0&&e.hardware_bus.endsWith("csi")?!0:!e.hardware_bus.startsWith("platform:"):!0)}async refresh(){var s,t;this.loading=!0;const e=await fetch(this.apiUrl+"/machine/peripherals/video").then(r=>r.json()).then(r=>{var i;return(i=r.result)!=null?i:{}});this.v4l2Devices=(s=e.v4l2_devices)!=null?s:[],this.libcameraDevices=(t=e.libcamera_devices)!=null?t:[],this.loading=!1,this.loaded=!0}};Yx([P({type:Boolean,default:!1})],ac.prototype,"hideSystemEntries",2);ac=Yx([D],ac);let _o;const RQ=new Uint8Array(16);function jQ(){if(!_o&&(_o=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _o(RQ)}const ct=[];for(let e=0;e<256;++e)ct.push((e+256).toString(16).slice(1));function HQ(e,s=0){return ct[e[s+0]]+ct[e[s+1]]+ct[e[s+2]]+ct[e[s+3]]+"-"+ct[e[s+4]]+ct[e[s+5]]+"-"+ct[e[s+6]]+ct[e[s+7]]+"-"+ct[e[s+8]]+ct[e[s+9]]+"-"+ct[e[s+10]]+ct[e[s+11]]+ct[e[s+12]]+ct[e[s+13]]+ct[e[s+14]]+ct[e[s+15]]}const IQ=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),c0={randomUUID:IQ};function os(e,s,t){if(c0.randomUUID&&!s&&!e)return c0.randomUUID();e=e||{};const r=e.random||(e.rng||jQ)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,s){t=t||0;for(let i=0;i<16;++i)s[t+i]=r[i];return s}return HQ(r)}var NQ=Object.defineProperty,VQ=Object.getOwnPropertyDescriptor,Jf=(e,s,t,r)=>{for(var i=r>1?void 0:r?VQ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&NQ(s,t,i),i};let Pa=class extends M(O){constructor(){super(...arguments),this.mdiContentCopy=gp,this.isShowTooltip=!1,this.cssClassName=""}mounted(){this.cssClassName="textfield-with-copy-".concat(os())}copy(){ME(this.value),this.isShowTooltip=!0,setTimeout(()=>this.isShowTooltip=!1,2e3)}};Jf([P({type:String,required:!0})],Pa.prototype,"label",2);Jf([P({type:String,required:!0})],Pa.prototype,"value",2);Pa=Jf([D],Pa);var UQ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(te,{class:e.cssClassName,attrs:{readonly:"",dense:"",outlined:"","hide-details":"",label:e.label,value:e.value},scopedSlots:e._u([{key:"append",fn:function(){return[t(v,{on:{click:e.copy}},[e._v(e._s(e.mdiContentCopy))]),t(de,{attrs:{"open-on-click":"","open-on-hover":!1,attach:"."+e.cssClassName,"position-x":50,"position-y":0},model:{value:e.isShowTooltip,callback:function(r){e.isShowTooltip=r},expression:"isShowTooltip"}},[t("span",[e._v(e._s(e.$t("App.TextfieldWithCopy.Copied")))])])]},proxy:!0}])})},BQ=[];const u0={};var WQ=E(Pa,UQ,BQ,!1,GQ,"da2acfb4",null,null);function GQ(e){for(let s in u0)this[s]=u0[s]}const Zt=function(){return WQ.exports}();var zQ=Object.defineProperty,ZQ=Object.getOwnPropertyDescriptor,Jx=(e,s,t,r)=>{for(var i=r>1?void 0:r?ZQ(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&zQ(s,t,i),i};let oc=class extends M(O){get identicalResolutions(){const e=this.device.modes.map(s=>s.resolutions.sort(w2).join(","));return e.every(s=>s===e[0])}get resolutions(){var e,s,t;return(t=(s=(e=this.device.modes[0])==null?void 0:e.resolutions)==null?void 0:s.join(", "))!=null?t:""}get formats(){return this.device.modes.map(e=>"".concat(e.description," (").concat(e.format,")")).join(", ")}get show_alt_name(){return this.device.alt_name===null?!1:this.device.alt_name!==this.device.camera_name}};Jx([P({type:Object,required:!0})],oc.prototype,"device",2);oc=Jx([D({components:{TextfieldWithCopy:Zt}})],oc);var qQ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(xe,{staticClass:"mt-3 w-100",attrs:{outlined:""}},[t(J,{attrs:{"three-line":""}},[t(vt,[t("div",{staticClass:"text-overline mb-2 d-flex flex-row"},[e._v("V4L2")]),t(Ge,{staticClass:"text-h5 mb-0"},[e._v(e._s(e.device.camera_name))]),e.show_alt_name?t(Aa,[e._v(e._s(e.device.alt_name))]):e._e()],1)],1),t(q,[t($,[t(_,[t(Zt,{attrs:{label:e.$t("DevicesDialog.DevicePath"),value:e.device.device_path}})],1)],1),e.device.path_by_id?t($,[t(_,[t(Zt,{attrs:{label:e.$t("DevicesDialog.PathById"),value:e.device.path_by_id}})],1)],1):e._e(),e.device.path_by_hardware?t($,[t(_,[t(Zt,{attrs:{label:e.$t("DevicesDialog.PathByHardware"),value:e.device.path_by_hardware}})],1)],1):e._e(),e.device.modes.length?[e.identicalResolutions?[t($,{staticClass:"mt-0"},[t(_,{staticClass:"py-2",attrs:{cols:"4"}},[e._v(e._s(e.$t("DevicesDialog.Formats")))]),t(_,{staticClass:"py-2"},[e._v(e._s(e.formats))])],1),t($,{staticClass:"mt-0"},[t(_,{staticClass:"py-2",attrs:{cols:"4"}},[e._v(e._s(e.$t("DevicesDialog.Resolutions")))]),t(_,{staticClass:"py-2"},[e._v(e._s(e.resolutions))])],1)]:e._l(e.device.modes,function(r){return t($,{key:r.format,staticClass:"mt-0"},[t(_,{staticClass:"py-2",attrs:{cols:"4"}},[e._v(" "+e._s(r.description)+" "),t("br"),t("small",[e._v(e._s(r.format))])]),t(_,{staticClass:"py-2"},[e._v(e._s(r.resolutions.join(", ")))])],1)})]:e._e()],2)],1)},XQ=[];const d0={};var YQ=E(oc,qQ,XQ,!1,JQ,null,null,null);function JQ(e){for(let s in d0)this[s]=d0[s]}const KQ=function(){return YQ.exports}();var QQ=Object.defineProperty,eee=Object.getOwnPropertyDescriptor,Kx=(e,s,t,r)=>{for(var i=r>1?void 0:r?eee(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&QQ(s,t,i),i};let lc=class extends M(O){get identicalResolutions(){const e=this.device.modes.map(s=>s.resolutions.sort(w2).join(","));return e.every(s=>s===e[0])}get resolutions(){return this.device.modes[0].resolutions.join(", ")}get formats(){return this.device.modes.map(e=>e.format).join(", ")}};Kx([P({type:Object,required:!0})],lc.prototype,"device",2);lc=Kx([D({components:{TextfieldWithCopy:Zt}})],lc);var tee=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(xe,{staticClass:"mt-3 w-100",attrs:{outlined:""}},[t(J,{attrs:{"three-line":""}},[t(vt,[t("div",{staticClass:"text-overline mb-2 d-flex flex-row"},[e._v("Libcamera")]),t(Ge,{staticClass:"text-h5 mb-0"},[e._v(e._s(e.device.model))])],1)],1),t(q,[t($,{staticClass:"mb-1"},[t(_,[t(Zt,{attrs:{label:e.$t("DevicesDialog.LibcameraId"),value:e.device.libcamera_id}})],1)],1),e.identicalResolutions?[t($,{staticClass:"mt-0"},[t(_,{staticClass:"py-2",attrs:{cols:"4"}},[e._v(e._s(e.$t("DevicesDialog.Formats")))]),t(_,{staticClass:"py-2"},[e._v(e._s(e.formats))])],1),t($,{staticClass:"mt-0"},[t(_,{staticClass:"py-2",attrs:{cols:"4"}},[e._v(e._s(e.$t("DevicesDialog.Resolutions")))]),t(_,{staticClass:"py-2"},[e._v(e._s(e.resolutions))])],1)]:e._l(e.device.modes,function(r){return t($,{key:r.format,staticClass:"mt-0"},[t(_,{staticClass:"py-2",attrs:{cols:"4"}},[e._v(e._s(r.format))]),t(_,{staticClass:"py-2"},[e._v(e._s(r.resolutions.join(", ")))])],1)})],2)],1)},see=[];const m0={};var ree=E(lc,tee,see,!1,iee,null,null,null);function iee(e){for(let s in m0)this[s]=m0[s]}const nee=function(){return ree.exports}();var aee=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(q,[t($,[t(_,{staticClass:"text-center"},[t(g,{attrs:{loading:e.loading,color:"primary"},on:{click:e.refresh}},[e._v(e._s(e.$t("DevicesDialog.Refresh")))])],1)],1),e.libcameraDevices.length||e.filteredV4l2Devices.length?t($,{staticClass:"mt-0"},[t(_,[e._l(e.filteredLibcameraDevices,function(r,i){return t(nee,{key:"libcamera_".concat(r.libcamera_id,"_").concat(i),attrs:{device:r}})}),e._l(e.filteredV4l2Devices,function(r,i){return t(KQ,{key:"v4l2_".concat(r.hardware_bus,"_").concat(i),attrs:{device:r}})})],2)],1):e.loaded?t($,{staticClass:"mt-0"},[t(_,{staticClass:"col-8 mx-auto"},[t("p",{staticClass:"text-center text--disabled mb-0"},[e._v(e._s(e.$t("DevicesDialog.NoDeviceFound")))])])],1):t($,{staticClass:"mt-0"},[t(_,{staticClass:"col-8 mx-auto"},[t("p",{staticClass:"text-center text--disabled mb-0"},[e._v(e._s(e.$t("DevicesDialog.ClickRefresh")))])])],1)],1)},oee=[];const h0={};var lee=E(ac,aee,oee,!1,cee,null,null,null);function cee(e){for(let s in h0)this[s]=h0[s]}const uee=function(){return lee.exports}();var dee=Object.defineProperty,mee=Object.getOwnPropertyDescriptor,Qx=(e,s,t,r)=>{for(var i=r>1?void 0:r?mee(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&dee(s,t,i),i};let cc=class extends M(O){constructor(){super(...arguments),this.devices=[],this.loading=!1,this.loaded=!1}get filteredDevices(){return this.hideSystemEntries?this.devices.filter(e=>e.class!=="Hub"):this.devices}async refresh(){this.loading=!0,this.devices=await fetch(this.apiUrl+"/machine/peripherals/usb").then(e=>e.json()).then(e=>{var s,t;return(t=(s=e.result)==null?void 0:s.usb_devices)!=null?t:[]}),this.loading=!1,this.loaded=!0}};Qx([P({type:Boolean,default:!1})],cc.prototype,"hideSystemEntries",2);cc=Qx([D],cc);var hee=Object.defineProperty,pee=Object.getOwnPropertyDescriptor,ew=(e,s,t,r)=>{for(var i=r>1?void 0:r?pee(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&hee(s,t,i),i};let uc=class extends M(O){get details(){const e=["protocol","class","serial","usb_location"],s=[];return Object.keys(this.device).forEach(t=>{var i;let r=(i=this.device[t])!=null?i:null;!e.includes(t)||r===null||(t==="class"&&this.device.subclass&&(r+=", ".concat(this.device.subclass)),s.push({key:t,value:r}))}),s}};ew([P({type:Object,required:!0})],uc.prototype,"device",2);uc=ew([D],uc);var fee=function(){var e,s,t=this,r=t.$createElement,i=t._self._c||r;return i(xe,{staticClass:"mt-3",attrs:{outlined:""}},[i(J,{attrs:{"three-line":""}},[i(vt,[i("div",{staticClass:"text-overline mb-2 d-flex flex-row"},[i("span",[t._v(t._s((e=t.device.manufacturer)!==null&&e!==void 0?e:"Unknown"))]),i(ae),i("span",[t._v(t._s(t.device.vendor_id)+":"+t._s(t.device.product_id))])],1),i(Ge,{staticClass:"text-h5 mb-1"},[t._v(t._s((s=t.device.product)!==null&&s!==void 0?s:"Unknown"))]),t.device.description?i(Aa,[t._v(t._s(t.device.description))]):t._e()],1)],1),i(q,{staticClass:"pt-0"},t._l(t.details,function(n){return i($,{key:n.key,staticClass:"mt-0"},[i(_,{staticClass:"py-2",attrs:{cols:"3"}},[t._v(t._s(n.key))]),i(_,{staticClass:"py-2"},[t._v(t._s(n.value))])],1)}),1)],1)},gee=[];const p0={};var vee=E(uc,fee,gee,!1,_ee,null,null,null);function _ee(e){for(let s in p0)this[s]=p0[s]}const bee=function(){return vee.exports}();var yee=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(q,[t($,[t(_,{staticClass:"text-center"},[t(g,{attrs:{loading:e.loading,color:"primary"},on:{click:e.refresh}},[e._v(e._s(e.$t("DevicesDialog.Refresh")))])],1)],1),e.filteredDevices.length?t($,{staticClass:"mt-0"},[t(_,e._l(e.filteredDevices,function(r){return t(bee,{key:r.usb_location,attrs:{device:r}})}),1)],1):e.loaded?t($,{staticClass:"mt-0"},[t(_,{staticClass:"col-8 mx-auto"},[t("p",{staticClass:"text-center text--disabled mb-0"},[e._v(e._s(e.$t("DevicesDialog.NoDeviceFound")))])])],1):t($,{staticClass:"mt-0"},[t(_,{staticClass:"col-8 mx-auto"},[t("p",{staticClass:"text-center text--disabled mb-0"},[e._v(e._s(e.$t("DevicesDialog.ClickRefresh")))])])],1)],1)},Cee=[];const f0={};var $ee=E(cc,yee,Cee,!1,xee,null,null,null);function xee(e){for(let s in f0)this[s]=f0[s]}const wee=function(){return $ee.exports}();var See=Object.defineProperty,Pee=Object.getOwnPropertyDescriptor,tw=(e,s,t,r)=>{for(var i=r>1?void 0:r?Pee(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&See(s,t,i),i};let dc=class extends M(O){constructor(){super(...arguments),this.devices=[],this.loading=!1,this.loaded=!1}get filteredDevices(){return this.hideSystemEntries?this.devices.filter(e=>e.device_type!=="hardware_uart"):this.devices}async refresh(){this.loading=!0,this.devices=await fetch(this.apiUrl+"/machine/peripherals/serial").then(e=>e.json()).then(e=>{var s,t;return(t=(s=e.result)==null?void 0:s.serial_devices)!=null?t:[]}),this.loading=!1,this.loaded=!0}};tw([P({type:Boolean,default:!1})],dc.prototype,"hideSystemEntries",2);dc=tw([D],dc);var Dee=Object.defineProperty,Tee=Object.getOwnPropertyDescriptor,sw=(e,s,t,r)=>{for(var i=r>1?void 0:r?Tee(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Dee(s,t,i),i};let mc=class extends M(O){};sw([P({type:Object,required:!0})],mc.prototype,"device",2);mc=sw([D({components:{TextfieldWithCopy:Zt}})],mc);var Mee=function(){var e,s,t=this,r=t.$createElement,i=t._self._c||r;return i(xe,{staticClass:"mt-3 w-100",attrs:{outlined:""}},[i(J,{attrs:{"three-line":""}},[i(vt,[i("div",{staticClass:"text-overline mb-2 d-flex flex-row"},[i("span",[t._v(t._s(t.device.device_type.toUpperCase().replaceAll("_"," ")))]),i(ae),i("span",[t._v(t._s(t.device.driver_name))])],1),i(Ge,{staticClass:"text-h5 mb-0"},[t._v(t._s(t.device.device_name))])],1)],1),i(q,[i($,[i(_,[i(Zt,{attrs:{label:t.$t("DevicesDialog.DevicePath"),value:t.device.device_path}})],1)],1),(e=t.device.path_by_id)!==null&&e!==void 0&&e?i($,[i(_,[i(Zt,{attrs:{label:t.$t("DevicesDialog.PathById"),value:t.device.path_by_id}})],1)],1):t._e(),(s=t.device.path_by_hardware)!==null&&s!==void 0&&s?i($,[i(_,[i(Zt,{attrs:{label:t.$t("DevicesDialog.PathByHardware"),value:t.device.path_by_hardware}})],1)],1):t._e()],1)],1)},Eee=[];const g0={};var Oee=E(mc,Mee,Eee,!1,Lee,null,null,null);function Lee(e){for(let s in g0)this[s]=g0[s]}const Aee=function(){return Oee.exports}();var kee=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(q,[t($,[t(_,{staticClass:"text-center"},[t(g,{attrs:{loading:e.loading,color:"primary"},on:{click:e.refresh}},[e._v(e._s(e.$t("DevicesDialog.Refresh")))])],1)],1),e.filteredDevices.length?t($,{staticClass:"mt-0"},[t(_,[t(DP,{attrs:{accordion:""}},e._l(e.filteredDevices,function(r){var i;return t(Aee,{key:(i=r.path_by_hardware)!==null&&i!==void 0?i:r.device_path,attrs:{device:r}})}),1)],1)],1):e.loaded?t($,{staticClass:"mt-0"},[t(_,{staticClass:"col-8 mx-auto"},[t("p",{staticClass:"text-center text--disabled mb-0"},[e._v(e._s(e.$t("DevicesDialog.NoDeviceFound")))])])],1):t($,{staticClass:"mt-0"},[t(_,{staticClass:"col-8 mx-auto"},[t("p",{staticClass:"text-center text--disabled mb-0"},[e._v(e._s(e.$t("DevicesDialog.ClickRefresh")))])])],1)],1)},Fee=[];const v0={};var Ree=E(dc,kee,Fee,!1,jee,null,null,null);function jee(e){for(let s in v0)this[s]=v0[s]}const Hee=function(){return Ree.exports}();var Iee=Object.defineProperty,Nee=Object.getOwnPropertyDescriptor,rw=(e,s,t,r)=>{for(var i=r>1?void 0:r?Nee(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Iee(s,t,i),i};let hc=class extends M(O){};rw([P({type:Object,required:!0})],hc.prototype,"device",2);hc=rw([D({components:{TextfieldWithCopy:Zt}})],hc);var Vee=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(xe,{staticClass:"mt-3 w-100",attrs:{outlined:""}},[t(q,[t($,[t(_,[t("div",{staticClass:"text-overline mb-2 d-flex flex-row"},[t("span",[e._v(e._s(e.device.application))])])])],1),t($,{staticClass:"mt-0"},[t(_,[t(Zt,{attrs:{label:"UUID",value:e.device.uuid}})],1)],1)],1)],1)},Uee=[];const _0={};var Bee=E(hc,Vee,Uee,!1,Wee,null,null,null);function Wee(e){for(let s in _0)this[s]=_0[s]}const iw=function(){return Bee.exports}();var Gee=Object.defineProperty,zee=Object.getOwnPropertyDescriptor,Kf=(e,s,t,r)=>{for(var i=r>1?void 0:r?zee(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Gee(s,t,i),i};let Da=class extends M(O){constructor(){super(...arguments),this.mdiInformationVariantCircle=IT,this.devices=[],this.loading=!1,this.loaded=!1}async refresh(){this.loading=!0,this.devices=await fetch("".concat(this.apiUrl,"/machine/peripherals/canbus?interface=").concat(this.name)).then(e=>e.json()).then(e=>{var s;return(s=e.result.can_uuids)!=null?s:[]}),this.loading=!1,this.loaded=!0}};Kf([P({type:String,required:!0})],Da.prototype,"name",2);Kf([P({type:Boolean,default:!1})],Da.prototype,"hideSystemEntries",2);Da=Kf([D({components:{DevicesDialogCanDevice:iw}})],Da);var Zee=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("overlay-scrollbars",{staticStyle:{"max-height":"400px","overflow-x":"hidden"}},[t(q,[t($,[t(_,{staticClass:"text-center"},[t(g,{attrs:{loading:e.loading,color:"primary"},on:{click:e.refresh}},[e._v(e._s(e.$t("DevicesDialog.Refresh")))])],1)],1),e.devices.length?t($,{staticClass:"mt-0"},[t(_,e._l(e.devices,function(r){return t(iw,{key:r.uuid,attrs:{device:r}})}),1)],1):e.loaded?t($,{staticClass:"mt-0"},[t(_,{staticClass:"col-8 mx-auto"},[t("p",{staticClass:"text-center text--disabled mb-0"},[e._v(e._s(e.$t("DevicesDialog.NoDeviceFound")))])])],1):t($,{staticClass:"mt-0"},[t(_,{staticClass:"col-8 mx-auto"},[t("p",{staticClass:"text-center text--disabled mb-0"},[e._v(e._s(e.$t("DevicesDialog.ClickRefresh")))])])],1),e.devices.length===0?t($,[t(_,[t(it,{attrs:{dense:"",outlined:"",type:"info",icon:e.mdiInformationVariantCircle}},[e._v(" "+e._s(e.$t("DevicesDialog.CanBusInfo"))+" "),t($,{staticClass:"my-0"},[t(_,{staticClass:"text-center"},[t(g,{attrs:{href:"https://docs.mainsail.xyz/overview/features/query-devices#can-devices",color:"info",outlined:"",text:"",small:""}},[e._v(" open guide ")])],1)],1)],1)],1)],1):e._e()],1)],1)},qee=[];const b0={};var Xee=E(Da,Zee,qee,!1,Yee,null,null,null);function Yee(e){for(let s in b0)this[s]=b0[s]}const Jee=function(){return Xee.exports}();var Kee=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{value:e.showDialog,width:"500",persistent:"",fullscreen:e.isMobile}},[t(B,{staticStyle:{overflow:"hidden"},attrs:{id:"devices-dialog",title:e.$t("DevicesDialog.Headline"),icon:e.mdiUsb,"card-class":"devices-dialog","margin-bottom":!1,height:e.isMobile?0:548},scopedSlots:e._u([{key:"buttons",fn:function(){return[t($e,{attrs:{left:!0,"offset-y":!0,"close-on-content-click":!1,attach:"#devices-dialog"},scopedSlots:e._u([{key:"activator",fn:function(r){var i=r.on,n=r.attrs;return[t(g,e._g(e._b({attrs:{icon:"",tile:""}},"v-btn",n,!1),i),[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiCog))])],1)]}}])},[t(Oe,[t(J,{staticClass:"minHeight36"},[t(_e,{staticClass:"mt-0",attrs:{"hide-details":"",label:e.$t("DevicesDialog.HideSystemEntries")},model:{value:e.hideSystemEntries,callback:function(r){e.hideSystemEntries=r},expression:"hideSystemEntries"}})],1)],1)],1),t(g,{attrs:{icon:"",tile:""},on:{click:e.closePrompt}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(Vo,{attrs:{"fixed-tabs":""},model:{value:e.tab,callback:function(r){e.tab=r},expression:"tab"}},e._l(e.tabs,function(r){return t(pi,{key:r.tab},[e._v(e._s(r.title))])}),1),t("overlay-scrollbars",{staticStyle:{"max-height":"400px","overflow-x":"hidden"}},[t(oy,{model:{value:e.tab,callback:function(r){e.tab=r},expression:"tab"}},[e._l(e.canInterfaces,function(r){return t(Pr,{key:r},[t(Jee,{attrs:{"hide-system-entries":e.hideSystemEntries,name:r}})],1)}),t(Pr,{key:"serial"},[t(Hee,{attrs:{"hide-system-entries":e.hideSystemEntries}})],1),t(Pr,{key:"usb"},[t(wee,{attrs:{"hide-system-entries":e.hideSystemEntries}})],1),t(Pr,{key:"video"},[t(uee,{attrs:{"hide-system-entries":e.hideSystemEntries}})],1)],2)],1)],1)],1)},Qee=[];const y0={};var ete=E(nc,Kee,Qee,!1,tte,null,null,null);function tte(e){for(let s in y0)this[s]=y0[s]}const nw=function(){return ete.exports}();var ste=Object.defineProperty,rte=Object.getOwnPropertyDescriptor,aw=(e,s,t,r)=>{for(var i=r>1?void 0:r?rte(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&ste(s,t,i),i};let pc=class extends M(O){constructor(){super(...arguments),this.dialogConfirmChange=!1,this.dialogDevices=!1,this.formatFilesize=Je,this.mdiCloseThick=pe,this.mdiHelp=jy,this.mdiContentSave=vp,this.mdiRestart=Zr,this.mdiClose=ka,this.mdiHelpCircle=Wc,this.mdiFileDocumentEditOutline=ja,this.mdiFileDocumentOutline=MT,this.mdiUsb=d2}get changed(){var e;return(e=this.$store.state.editor.changed)!=null?e:!1}get changedOutput(){return this.changed?"*":""}get show(){var e;return(e=this.$store.state.editor.bool)!=null?e:!1}get filepath(){var e;return(e=this.$store.state.editor.filepath)!=null?e:""}get filename(){var e;return(e=this.$store.state.editor.filename)!=null?e:""}get filenameWithoutExtension(){return this.filename.lastIndexOf(".")?this.filename.slice(0,this.filename.lastIndexOf(".")):this.filename}get fileExtension(){return this.filename.lastIndexOf(".")?this.filename.slice(this.filename.lastIndexOf(".")+1):""}get fileroot(){var e;return(e=this.$store.state.editor.fileroot)!=null?e:"gcodes"}get permissions(){var e;return(e=this.$store.state.editor.permissions)!=null?e:"r"}get isWriteable(){return this.permissions.includes("w")}get sourcecode(){var e;return(e=this.$store.state.editor.sourcecode)!=null?e:""}set sourcecode(e){this.$store.dispatch("editor/updateSourcecode",e)}get loaderBool(){var e;return(e=this.$store.state.editor.loaderBool)!=null?e:!1}get loaderProgress(){var e;return(e=this.$store.state.editor.loaderProgress)!=null?e:{}}get snackbarHeadline(){let e=this.$t("Editor.Downloading");return this.loaderProgress.direction&&(e=jr(this.loaderProgress.direction)),this.$t("Editor.".concat(e))}get availableServices(){var e,s;return(s=(e=this.$store.state.server.system_info)==null?void 0:e.available_services)!=null?s:[]}get restartServiceName(){return!this.isWriteable||["printing","paused"].includes(this.printer_state)?null:this.availableServices.includes(this.filenameWithoutExtension)&&this.fileExtension==="conf"?this.filenameWithoutExtension:this.filename.startsWith("webcam")&&["conf","txt"].includes(this.fileExtension)?"webcamd":this.filename.startsWith("mooncord")&&this.fileExtension==="json"?"mooncord":this.filename==="moonraker.conf"?"moonraker":this.fileExtension==="cfg"?"klipper":null}get restartServiceNameExists(){return this.restartServiceName===null?!1:["klipper","moonraker"].includes(this.restartServiceName)?!0:this.availableServices.includes(this.restartServiceName)}get confirmUnsavedChanges(){var e;return(e=this.$store.state.gui.editor.confirmUnsavedChanges)!=null?e:!1}get escToClose(){var e;return(e=this.$store.state.gui.editor.escToClose)!=null?e:!1}get title(){const e=this.filepath?"".concat(this.filepath,"/").concat(this.filename):this.filename;return this.isWriteable?"".concat(e," ").concat(this.changedOutput):"".concat(e," (").concat(this.$t("Editor.FileReadOnly"),")")}get currentLanguage(){return this.$store.state.gui.general.language}get klipperConfigReference(){const e=this.currentLanguage,s=qD;let t="https://www.klipper3d.org/Config_Reference.html";return s.includes(e)&&(t="https://www.klipper3d.org/".concat(e,"/Config_Reference.html")),t}cancelDownload(){this.$store.dispatch("editor/cancelLoad")}escClose(){this.escToClose&&this.close()}close(){this.confirmUnsavedChanges?this.promptUnsavedChanges():this.$store.dispatch("editor/close")}discardChanges(){this.dialogConfirmChange=!1,this.$store.dispatch("editor/close")}promptUnsavedChanges(){!this.changed||!this.isWriteable?this.$store.dispatch("editor/close"):this.dialogConfirmChange=!0}save(e=null){this.dialogConfirmChange=!1,this.$store.dispatch("editor/saveFile",{content:this.sourcecode,restartServiceName:e})}changedChanged(e){if(this.confirmUnsavedChanges){if(e){window.addEventListener("beforeunload",im);return}window.removeEventListener("beforeunload",im)}}};aw([me("changed")],pc.prototype,"changedChanged",1);pc=aw([D({components:{DevicesDialog:nw,Panel:B,CodemirrorAsync:OQ}})],pc);var ite=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(oe,{attrs:{persistent:"",fullscreen:"","hide-overlay":"",transition:!1},on:{close:e.close,keydown:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"esc",27,r.key,["Esc","Escape"])?null:e.escClose.apply(null,arguments)},function(r){if(!r.type.indexOf("key")&&e._k(r.keyCode,"s",void 0,r.key,void 0)||!r.ctrlKey||!r.shiftKey)return null;r.preventDefault(),e.restartServiceNameExists&&e.save(e.restartServiceName)},function(r){if(!r.type.indexOf("key")&&e._k(r.keyCode,"s",void 0,r.key,void 0)||!r.metaKey||!r.shiftKey)return null;r.preventDefault(),e.restartServiceNameExists&&e.save(e.restartServiceName)},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"s",void 0,r.key,void 0)||!r.ctrlKey?null:(r.preventDefault(),e.save(null))},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"s",void 0,r.key,void 0)||!r.metaKey?null:(r.preventDefault(),e.save(null))}]},model:{value:e.show,callback:function(r){e.show=r},expression:"show"}},[t(B,{attrs:{"card-class":"editor-dialog",icon:e.isWriteable?e.mdiFileDocumentEditOutline:e.mdiFileDocumentOutline,title:e.title},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{staticClass:"d-none d-md-flex",attrs:{text:"",tile:""},on:{click:function(r){e.dialogDevices=!0}}},[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(e._s(e.mdiUsb))]),e._v(" "+e._s(e.$t("Editor.DeviceDialog"))+" ")],1),e.restartServiceName==="klipper"?t(g,{staticClass:"d-none d-md-flex",attrs:{text:"",tile:"",href:e.klipperConfigReference,target:"_blank"}},[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(e._s(e.mdiHelp))]),e._v(" "+e._s(e.$t("Editor.ConfigReference"))+" ")],1):e._e(),e.restartServiceNameExists?t(g,{staticClass:"d-none d-sm-flex",attrs:{color:"primary",text:"",tile:""},on:{click:function(r){return e.save(e.restartServiceName)}}},[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(e._s(e.mdiRestart))]),e._v(" "+e._s(e.$t("Editor.SaveRestart"))+" ")],1):e._e(),e.isWriteable?t(g,{attrs:{icon:"",tile:""},on:{click:function(r){return e.save(null)}}},[t(v,[e._v(e._s(e.mdiContentSave))])],1):e._e(),t(g,{attrs:{icon:"",tile:""},on:{click:e.close}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,{staticClass:"pa-0"},[e.show?t("codemirror-async",{ref:"editor",attrs:{name:e.filename,"file-extension":e.fileExtension},model:{value:e.sourcecode,callback:function(r){e.sourcecode=r},expression:"sourcecode"}}):e._e()],1)],1)],1),t(_i,{attrs:{timeout:-1,value:!0,fixed:"",right:"",bottom:""},scopedSlots:e._u([{key:"action",fn:function(r){var i=r.attrs;return[t(g,e._b({staticStyle:{"min-width":"auto"},attrs:{color:"red",text:"",tile:""},on:{click:e.cancelDownload}},"v-btn",i,!1),[t(v,{staticClass:"0"},[e._v(e._s(e.mdiClose))])],1)]}}]),model:{value:e.loaderBool,callback:function(r){e.loaderBool=r},expression:"loaderBool"}},[t("div",[e._v(" "+e._s(e.snackbarHeadline)+" "),t("br"),t("strong",[e._v(e._s(e.filename))])]),e.loaderProgress.total>0?[t("span",{staticClass:"mr-1"},[e._v(" ("+e._s(e.formatFilesize(e.loaderProgress.loaded))+"/"+e._s(e.formatFilesize(e.loaderProgress.total))+") ")]),e._v(" "+e._s(Math.round(100*e.loaderProgress.loaded/e.loaderProgress.total))+" % @ "+e._s(e.loaderProgress.speed)+"/s "),t("br"),t(ws,{staticClass:"mt-2",attrs:{value:100*e.loaderProgress.loaded/e.loaderProgress.total}})]:[t(ws,{staticClass:"mt-2",attrs:{indeterminate:""}})]],2),t(oe,{attrs:{persistent:"",width:600},model:{value:e.dialogConfirmChange,callback:function(r){e.dialogConfirmChange=r},expression:"dialogConfirmChange"}},[t(B,{attrs:{"card-class":"editor-confirm-change-dialog",icon:e.mdiHelpCircle,title:e.$t("Editor.UnsavedChanges"),"margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.dialogConfirmChange=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,{staticClass:"pt-3"},[t($,[t(_,[t("p",{staticClass:"body-1 mb-2"},[e._v(e._s(e.$t("Editor.UnsavedChangesMessage",{filename:e.filename})))]),t("p",{staticClass:"body-2"},[e._v(e._s(e.$t("Editor.UnsavedChangesSubMessage")))])])],1)],1),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:e.discardChanges}},[e._v(" "+e._s(e.$t("Editor.DontSave"))+" ")]),t(g,{attrs:{text:"",color:"primary"},on:{click:e.save}},[e._v(" "+e._s(e.$t("Editor.SaveClose"))+" ")]),e.restartServiceNameExists?[t(g,{attrs:{text:"",color:"primary"},on:{click:function(r){return e.save(e.restartServiceName)}}},[e._v(" "+e._s(e.$t("Editor.SaveRestart"))+" ")])]:e._e()],2)],1)],1),t(nw,{attrs:{"show-dialog":e.dialogDevices},on:{close:function(r){e.dialogDevices=!1}}})],1)},nte=[];const C0={};var ate=E(pc,ite,nte,!1,ote,"298bc720",null,null);function ote(e){for(let s in C0)this[s]=C0[s]}const ow=function(){return ate.exports}();var lte=Object.defineProperty,cte=Object.getOwnPropertyDescriptor,ute=(e,s,t,r)=>{for(var i=r>1?void 0:r?cte(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&lte(s,t,i),i};let Uh=class extends M(O){get boolShowDialogRunning(){return this.status==="running"}get boolShowDialogSuccess(){return this.status==="success"}set boolShowDialogSuccess(e){e||this.$store.dispatch("server/timelapse/resetSnackbar")}get status(){var e;return(e=this.$store.state.server.timelapse.rendering.status)!=null?e:""}get progress(){var e;return(e=this.$store.state.server.timelapse.rendering.progress)!=null?e:""}get filename(){var e;return(e=this.$store.state.server.timelapse.rendering.filename)!=null?e:""}};Uh=ute([D({components:{}})],Uh);var dte=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(_i,{attrs:{timeout:-1,value:!0,fixed:"",right:"",bottom:""},model:{value:e.boolShowDialogRunning,callback:function(r){e.boolShowDialogRunning=r},expression:"boolShowDialogRunning"}},[t("div",[e._v(e._s(e.$t("Timelapse.TimelapseRendering"))+"...")]),e.progress>0?t(ws,{staticClass:"mt-2",attrs:{value:e.progress,indeterminate:""}}):e._e(),e.progress===0?t(ws,{staticClass:"mt-2",attrs:{indeterminate:""}}):e._e()],1),t(_i,{attrs:{timeout:5e3,value:!0,fixed:"",right:"",bottom:""},model:{value:e.boolShowDialogSuccess,callback:function(r){e.boolShowDialogSuccess=r},expression:"boolShowDialogSuccess"}},[t("div",[e._v(" "+e._s(e.$t("Timelapse.TimelapseRenderingSuccessful"))+" "),t("br"),t("strong",[e._v(e._s(e.filename))])])])],1)},mte=[];const $0={};var hte=E(Uh,dte,mte,!1,pte,null,null,null);function pte(e){for(let s in $0)this[s]=$0[s]}const lw=function(){return hte.exports}();var fte=Object.defineProperty,gte=Object.getOwnPropertyDescriptor,vte=(e,s,t,r)=>{for(var i=r>1?void 0:r?gte(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&fte(s,t,i),i};let Bh=class extends M(O){constructor(){super(...arguments),this.mdiTrayArrowDown=v3,this.visible=!1}get dropzoneClasses(){return{"fullscreen-upload__dragzone--visible":this.visible}}get currentRoute(){var e;return(e=this.$route.path)!=null?e:""}get currentPathGcodes(){var e;return(e=this.$store.state.gui.view.gcodefiles.currentPath)!=null?e:""}get currentPathConfig(){var e;return(e=this.$store.state.gui.view.configfiles.currentPath)!=null?e:""}mounted(){window.addEventListener("dragenter",this.onDragOverWindow),window.addEventListener("dragover",this.onDragOverWindow),window.addEventListener("dragleave",this.onDragLeaveWindow)}beforeDestroy(){window.removeEventListener("dragenter",this.onDragOverWindow),window.removeEventListener("dragover",this.onDragOverWindow),window.removeEventListener("dragleave",this.onDragLeaveWindow)}showDropZone(){this.visible=!0}hideDropZone(){this.visible=!1}onDragOverWindow(e){var t,r;((r=(t=e.dataTransfer)==null?void 0:t.types)!=null?r:[]).includes("Files")&&(e.preventDefault(),!this.visible&&this.showDropZone())}onDragLeaveWindow(e){e.preventDefault(),this.hideDropZone()}async onDrop(e){var s,t;if(e.preventDefault(),this.hideDropZone(),(t=(s=e.dataTransfer)==null?void 0:s.files)!=null&&t.length){const r=[...e.dataTransfer.files];await this.$store.dispatch("socket/addLoading",{name:"gcodeUpload"}),await this.$store.dispatch("files/uploadSetCurrentNumber",0),await this.$store.dispatch("files/uploadSetMaxNumber",r.length);for(const i of r){const n=i.name.lastIndexOf("."),a=i.name.slice(n),o=Ci.includes(a);let l="";this.currentRoute==="/files"&&o?l=this.currentPathGcodes:this.currentRoute==="/config"&&!o&&(l=this.currentPathConfig);const c=o?"gcodes":"config";await this.$store.dispatch("files/uploadIncrementCurrentNumber");const u=await this.$store.dispatch("files/uploadFile",{file:i,path:l,root:c});u!==!1&&this.$toast.success(this.$t("Files.SuccessfullyUploaded",{filename:u}).toString())}await this.$store.dispatch("socket/removeLoading",{name:"gcodeUpload"})}}};Bh=vte([D],Bh);var _te=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"d-flex justify-center flex-column fullscreen-upload__dragzone",class:e.dropzoneClasses,on:{drop:e.onDrop}},[t(v,{staticClass:"fullscreen-upload__icon"},[e._v(e._s(e.mdiTrayArrowDown))]),t("div",{staticClass:"textnode"},[e._v(e._s(e.$t("FullscreenUpload.DropFilesToUploadFiles")))])],1)},bte=[];const x0={};var yte=E(Bh,_te,bte,!1,Cte,null,null,null);function Cte(e){for(let s in x0)this[s]=x0[s]}const cw=function(){return yte.exports}();var $te=Object.defineProperty,xte=Object.getOwnPropertyDescriptor,uw=(e,s,t,r)=>{for(var i=r>1?void 0:r?xte(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&$te(s,t,i),i};let fc=class extends M(O){constructor(){super(...arguments),this.mdiClose=ka,this.formatFilesize=Je}get show(){var e;return(e=this.$store.state.files.upload.show)!=null?e:!1}get cancelTokenSource(){return this.$store.state.files.upload.cancelTokenSource}get filename(){var e;return(e=this.$store.state.files.upload.filename)!=null?e:""}get currentNumber(){var e;return(e=this.$store.state.files.upload.currentNumber)!=null?e:0}get maxNumber(){var e;return(e=this.$store.state.files.upload.maxNumber)!=null?e:0}get speed(){var e;return Je(Math.round((e=this.$store.state.files.upload.speed)!=null?e:0))}get percent(){var e;return Math.round((e=this.$store.state.files.upload.percent)!=null?e:0)}cancelUpload(){var e;(e=this.cancelTokenSource)==null||e.cancel(),this.$store.dispatch("files/uploadSetShow",!1),this.$store.dispatch("socket/removeLoading",{name:"gcodeUpload"}),this.$store.dispatch("socket/removeLoading",{name:"configFileUpload"})}showChanged(e){const s=document.getElementsByTagName("body")[0];e?s.classList.add("fullscreenUpload--active"):s.classList.remove("fullscreenUpload--active")}};uw([me("show")],fc.prototype,"showChanged",1);fc=uw([D({components:{}})],fc);var wte=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.show?t(_i,{attrs:{timeout:-1,value:!0,fixed:"",right:"",bottom:""},scopedSlots:e._u([{key:"action",fn:function(r){var i=r.attrs;return[t(g,e._b({staticStyle:{"min-width":"auto"},attrs:{color:"red",text:""},on:{click:e.cancelUpload}},"v-btn",i,!1),[t(v,{staticClass:"0"},[e._v(e._s(e.mdiClose))])],1)]}}],null,!1,2940317734)},[e.maxNumber>1?t("span",{staticClass:"mr-1"},[e._v("("+e._s(e.currentNumber)+"/"+e._s(e.maxNumber)+")")]):e._e(),t("strong",[e._v(e._s(e.$t("Editor.Uploading")+" "+e.filename))]),t("br"),e._v(" "+e._s(e.percent)+" % @ "+e._s(e.speed)+"/s "),t("br"),t(ws,{staticClass:"mt-2",attrs:{value:e.percent}})],1):e._e()},Ste=[];const w0={};var Pte=E(fc,wte,Ste,!1,Dte,null,null,null);function Dte(e){for(let s in w0)this[s]=w0[s]}const dw=function(){return Pte.exports}();var Tte=Object.defineProperty,Mte=Object.getOwnPropertyDescriptor,Ete=(e,s,t,r)=>{for(var i=r>1?void 0:r?Mte(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Tte(s,t,i),i};let Wh=class extends M(O){constructor(){super(...arguments),this.mdiArrowCollapseDown=Hc,this.mdiArrowExpandUp=xy,this.mdiInformation=kt,this.mdiPlusThick=e3,this.mdiMinusThick=ZT,this.mdiChevronTripleLeft=hT,this.mdiChevronTripleRight=pT,this.mdiCloseThick=pe}get showDialog(){var e,s;return this.boolManualProbeDialog&&(s=(e=this.$store.state.printer.manual_probe)==null?void 0:e.is_active)!=null?s:!1}get boolManualProbeDialog(){var e;return(e=this.$store.state.gui.uiSettings.boolManualProbeDialog)!=null?e:!0}get offsetsZ(){return[1,.1,.05,.01,.005].sort()}get z_position(){var e,s;return((s=(e=this.$store.state.printer.manual_probe)==null?void 0:e.z_position)!=null?s:0).toFixed(3)}get z_position_lower(){var s,t;const e=(t=(s=this.$store.state.printer.manual_probe)==null?void 0:s.z_position_lower)!=null?t:null;return e===null?"??????":e.toFixed(3)}get z_position_upper(){var s,t;const e=(t=(s=this.$store.state.printer.manual_probe)==null?void 0:s.z_position_upper)!=null?t:null;return e===null?"??????":e.toFixed(3)}get loadingAbort(){return this.loadings.includes("manualProbeAbort")}get loadingAccept(){return this.loadings.includes("manualProbeAccept")}sendTestZ(e){const s="TESTZ Z=".concat(e);this.$store.dispatch("server/addEvent",{message:s,type:"command"}),this.$socket.emit("printer.gcode.script",{script:s})}sendAbort(){const e="ABORT";this.$store.dispatch("server/addEvent",{message:e,type:"command"}),this.$socket.emit("printer.gcode.script",{script:e},{loading:"manualProbeAbort"})}sendAccept(){const e="ACCEPT";this.$store.dispatch("server/addEvent",{message:e,type:"command"}),this.$socket.emit("printer.gcode.script",{script:e},{loading:"manualProbeAccept"})}};Wh=Ete([D({components:{Panel:B,Responsive:et}})],Wh);var Ote=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{value:e.showDialog,width:"400",persistent:"",fullscreen:e.isMobile}},[t(B,{staticStyle:{overflow:"hidden"},attrs:{title:e.$t("ManualProbe.Headline").toString(),icon:e.mdiArrowCollapseDown,"card-class":"manual_probe-dialog","margin-bottom":!1,height:e.isMobile?0:548},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.sendAbort}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(Ae,[t($,[t(_,{staticClass:"d-flex align-center justify-center"},[t("span",{staticClass:"text-h5"},[e._v(e._s(e.z_position_lower))]),t(v,{staticClass:"mx-2"},[e._v(e._s(e.mdiChevronTripleRight))]),t("span",{staticClass:"text-h4"},[e._v(e._s(e.z_position))]),t(v,{staticClass:"mx-2"},[e._v(e._s(e.mdiChevronTripleLeft))]),t("span",{staticClass:"text-h5"},[e._v(e._s(e.z_position_upper))])],1)],1),t($,[t(_,{staticClass:"text-left"},[t(g,{attrs:{color:"primary"},on:{click:function(r){return e.sendTestZ("--")}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiMinusThick))]),t(v,{attrs:{small:""}},[e._v(e._s(e.mdiMinusThick))])],1)],1),t(_,{staticClass:"text-left"},[t(g,{attrs:{color:"primary"},on:{click:function(r){return e.sendTestZ("-")}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiMinusThick))])],1)],1),t(_,{staticClass:"text-right"},[t(g,{attrs:{color:"primary"},on:{click:function(r){return e.sendTestZ("+")}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiPlusThick))])],1)],1),t(_,{staticClass:"text-right"},[t(g,{attrs:{color:"primary"},on:{click:function(r){return e.sendTestZ("++")}}},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiPlusThick))]),t(v,{attrs:{small:""}},[e._v(e._s(e.mdiPlusThick))])],1)],1)],1)],1),t(S2,{staticClass:"mb-n2",attrs:{title:e.$t("ManualProbe.Advanced"),"sub-panel-class":"manual-probe-dialog-advanced"}},[t(Ae,[t(Vt,{staticClass:"_btn-group"},e._l(e.offsetsZ,function(r,i){return t(g,{key:"offsetsUp-".concat(i),staticClass:"_btn-qs flex-grow-1 px-1",attrs:{small:""},on:{click:function(n){e.sendTestZ(r.toString())}}},[i===0?t(v,{staticClass:"mr-1 ml-n1",attrs:{left:"",small:""}},[e._v(" "+e._s(e.mdiArrowExpandUp)+" ")]):e._e(),t("span",[e._v("+"+e._s(r))])],1)}),1),t(Vt,{staticClass:"_btn-group mt-6 mt-sm-3"},e._l(e.offsetsZ,function(r,i){return t(g,{key:"offsetsDown-".concat(i),staticClass:"_btn-qs flex-grow-1 px-1",attrs:{small:""},on:{click:function(n){e.sendTestZ((r*-1).toString())}}},[i===0?t(v,{staticClass:"mr-1 ml-n1",attrs:{left:"",small:""}},[e._v(" "+e._s(e.mdiArrowCollapseDown)+" ")]):e._e(),t("span",[e._v(""+e._s(r))])],1)}),1)],1)],1),t(ne,[t(ae),t(g,{attrs:{text:"",loading:e.loadingAbort},on:{click:e.sendAbort}},[e._v(" "+e._s(e.$t("ManualProbe.Abort"))+" ")]),t(g,{attrs:{color:"primary",text:"",loading:e.loadingAccept},on:{click:e.sendAccept}},[e._v(" "+e._s(e.$t("ManualProbe.Accept"))+" ")])],1)],1)],1)},Lte=[];const S0={};var Ate=E(Wh,Ote,Lte,!1,kte,"01252f2e",null,null);function kte(e){for(let s in S0)this[s]=S0[s]}const mw=function(){return Ate.exports}();var Fte=Object.defineProperty,Rte=Object.getOwnPropertyDescriptor,jte=(e,s,t,r)=>{for(var i=r>1?void 0:r?Rte(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Fte(s,t,i),i};let Gh=class extends M(O,Ke){constructor(){super(...arguments),this.mdiArrowCollapseDown=Hc,this.mdiInformation=kt,this.mdiCloseThick=pe}get showDialog(){var s,t;return this.boolBedScrewsDialog?((t=(s=this.$store.state.printer.bed_screws)==null?void 0:s.is_active)!=null?t:!1)&&this.homedAxes.includes("xyz"):!1}get boolBedScrewsDialog(){var e;return(e=this.$store.state.gui.uiSettings.boolBedScrewsDialog)!=null?e:!0}get config(){var e,s,t;return(t=(s=(e=this.$store.state.printer.configfile)==null?void 0:e.settings)==null?void 0:s.bed_screws)!=null?t:{}}get bed_screws_state(){var e;return(e=this.$store.state.printer.bed_screws)==null?void 0:e.state}get current_screw(){var e;return(e=this.$store.state.printer.bed_screws)==null?void 0:e.current_screw}get accepted_screws(){var e;return(e=this.$store.state.printer.bed_screws)==null?void 0:e.accepted_screws}get loadingAbort(){return this.loadings.includes("bedScrewsAbort")}get loadingAccept(){return this.loadings.includes("bedScrewsAccept")}get loadingAdjusted(){return this.loadings.includes("bedScrewsAdjusted")}get screwNames(){const s=Object.keys(this.config).filter(r=>r.startsWith("screw")&&r.endsWith("_name")),t=[];return s==null||s.forEach(r=>{var a;const i=r.indexOf("_"),n=parseInt(r.slice(5,i));t[n-1]=(a=this.config["screw".concat(n,"_name")])!=null?a:""}),t}get countScrews(){return this.screwNames.length}get currentScrewName(){var e;return(e=this.screwNames[this.current_screw])!=null?e:"UNKNOWN"}get currentScrewOutput(){return this.$t("BedScrews.ScrewOutput",{current:this.current_screw,max:this.countScrews})}get acceptedScrewOutput(){return this.$t("BedScrews.ScrewOutput",{current:this.accepted_screws,max:this.countScrews})}sendAbort(){const e="ABORT";this.$store.dispatch("server/addEvent",{message:e,type:"command"}),this.$socket.emit("printer.gcode.script",{script:e},{loading:"manualProbeAbort"})}sendAccept(){const e="ACCEPT";this.$store.dispatch("server/addEvent",{message:e,type:"command"}),this.$socket.emit("printer.gcode.script",{script:e},{loading:"manualProbeAccept"})}sendAdjusted(){const e="ADJUSTED";this.$store.dispatch("server/addEvent",{message:e,type:"command"}),this.$socket.emit("printer.gcode.script",{script:e},{loading:"manualProbeAccept"})}};Gh=jte([D({components:{Panel:B,Responsive:et}})],Gh);var Hte=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{value:e.showDialog,width:"400",persistent:"",fullscreen:e.isMobile}},[t(B,{staticStyle:{overflow:"hidden"},attrs:{title:e.$t("BedScrews.Headline").toString(),icon:e.mdiArrowCollapseDown,"card-class":"manual_probe-dialog","margin-bottom":!1,height:e.isMobile?0:548},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.sendAbort}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t($,[t(_,[t(te,{attrs:{label:e.$t("BedScrews.ScrewName"),outlined:"",dense:"",clearable:"","hide-details":""},model:{value:e.currentScrewName,callback:function(r){e.currentScrewName=r},expression:"currentScrewName"}})],1)],1),t($,[t(_,{attrs:{cols:"6"}},[t(te,{attrs:{label:e.$t("BedScrews.ScrewIndex"),outlined:"",dense:"",clearable:"","hide-details":""},model:{value:e.currentScrewOutput,callback:function(r){e.currentScrewOutput=r},expression:"currentScrewOutput"}})],1),t(_,{attrs:{cols:"6"}},[t(te,{attrs:{label:e.$t("BedScrews.ScrewAccepted"),outlined:"",dense:"",clearable:"","hide-details":""},model:{value:e.acceptedScrewOutput,callback:function(r){e.acceptedScrewOutput=r},expression:"acceptedScrewOutput"}})],1)],1),t($,[t(_,[t("p",{staticClass:"text-center mb-0",domProps:{innerHTML:e._s(e.$t("BedScrews.Description"))}})])],1)],1),t(ne,[t(ae),t(g,{attrs:{text:"",loading:e.loadingAbort},on:{click:e.sendAbort}},[e._v(" "+e._s(e.$t("BedScrews.Abort"))+" ")]),t(g,{attrs:{color:"primary",text:"",loading:e.loadingAdjusted},on:{click:e.sendAdjusted}},[e._v(" "+e._s(e.$t("BedScrews.Adjusted"))+" ")]),t(g,{attrs:{color:"primary",text:"",loading:e.loadingAccept},on:{click:e.sendAccept}},[e._v(" "+e._s(e.$t("BedScrews.Accept"))+" ")])],1)],1)],1)},Ite=[];const P0={};var Nte=E(Gh,Hte,Ite,!1,Vte,null,null,null);function Vte(e){for(let s in P0)this[s]=P0[s]}const hw=function(){return Nte.exports}();var Ute=Object.defineProperty,Bte=Object.getOwnPropertyDescriptor,Qf=(e,s,t,r)=>{for(var i=r>1?void 0:r?Bte(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Ute(s,t,i),i};let Ta=class extends M(O,Ke){constructor(){super(...arguments),this.mdiRotateLeft=c3,this.mdiCloseThick=pe,this.mdiRotateRight=u3}get settings(){var e,s,t;return(t=(s=(e=this.$store.state.printer.configfile)==null?void 0:e.settings)==null?void 0:s.screws_tilt_adjust)!=null?t:{}}get outputName(){var e;return(e=this.settings[this.name+"_name"])!=null?e:"Unknown"}get coordinates(){var e;return(e=this.settings[this.name])!=null?e:[0,0]}get x(){var e;return(e=this.coordinates[0])!=null?e:0}get y(){var e;return(e=this.coordinates[1])!=null?e:0}get z(){return this.result.z.toFixed(3)}get subTitle(){return"(X: ".concat(this.x,", Y: ").concat(this.y,", Z: ").concat(this.z,")")}get sign(){var e;return(e=this.result.sign)!=null?e:""}get adjust(){var e;return(e=this.result.adjust)!=null?e:"00:00"}get is_base(){var e;return(e=this.result.is_base)!=null?e:!1}};Qf([P({required:!0})],Ta.prototype,"name",2);Qf([P({required:!0})],Ta.prototype,"result",2);Ta=Qf([D({components:{Panel:B,Responsive:et,SettingsRow:V}})],Ta);var Wte=function(){var e,s=this,t=s.$createElement,r=s._self._c||t;return r(V,{attrs:{title:s.outputName,"sub-title":s.subTitle}},[(e=s.is_base)!==null&&e!==void 0&&e?r(as,{attrs:{label:"",small:""}},[s._v(s._s(s.$t("ScrewsTiltAdjust.Base")))]):r(as,{attrs:{label:"",small:""}},[s.sign==="CCW"?r(v,{attrs:{small:"",left:""}},[s._v(s._s(s.mdiRotateLeft))]):s._e(),s.sign==="CW"?r(v,{attrs:{small:"",left:""}},[s._v(s._s(s.mdiRotateRight))]):s._e(),s._v(" "+s._s(s.adjust)+" ")],1)],1)},Gte=[];const D0={};var zte=E(Ta,Wte,Gte,!1,Zte,null,null,null);function Zte(e){for(let s in D0)this[s]=D0[s]}const pw=function(){return zte.exports}();var qte=Object.defineProperty,Xte=Object.getOwnPropertyDescriptor,Yte=(e,s,t,r)=>{for(var i=r>1?void 0:r?Xte(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&qte(s,t,i),i};let zh=class extends M(O,Ke){constructor(){super(...arguments),this.mdiArrowCollapseDown=Hc,this.mdiCloseThick=pe}get state(){var e;return(e=this.$store.state.printer.screws_tilt_adjust)!=null?e:{}}get error(){var e,s;return(s=(e=this.$store.state.printer.screws_tilt_adjust)==null?void 0:e.error)!=null?s:!1}get max_deviation(){var e,s;return(s=(e=this.$store.state.printer.screws_tilt_adjust)==null?void 0:e.max_deviation)!=null?s:null}get results(){var e,s;return(s=(e=this.$store.state.printer.screws_tilt_adjust)==null?void 0:e.results)!=null?s:{}}get showDialog(){return!this.boolScrewsTiltAdjustDialog||this.max_deviation!==null?!1:this.error||Object.keys(this.results).length}get boolScrewsTiltAdjustDialog(){var e;return(e=this.$store.state.gui.uiSettings.boolScrewsTiltAdjustDialog)!=null?e:!0}clearScrewsTiltAdjust(){this.$store.dispatch("printer/clearScrewsTiltAdjust")}async retryScrewsTiltAdjust(){var t,r;const s=[...(t=this.$store.state.server.events)!=null?t:[]].reverse().find(i=>i.type==="command"&&i.message.startsWith("SCREWS_TILT_CALCULATE"));await this.$store.dispatch("printer/clearScrewsTiltAdjust"),this.doSend((r=s==null?void 0:s.message)!=null?r:"SCREWS_TILT_CALCULATE")}};zh=Yte([D({components:{TheScrewsTiltAdjustDialogEntry:pw,Panel:B,Responsive:et,SettingsRow:V}})],zh);var Jte=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{value:e.showDialog,width:"400",persistent:"",fullscreen:e.isMobile}},[t(B,{staticStyle:{overflow:"hidden"},attrs:{title:e.$t("ScrewsTiltAdjust.Headline"),icon:e.mdiArrowCollapseDown,"card-class":"manual_probe-dialog","margin-bottom":!1,height:e.isMobile?0:548},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.clearScrewsTiltAdjust}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[e.error?t(q,[t($,[t(_,[t(it,{attrs:{border:"left",text:"",type:"error"}},[e._v(e._s(e.$t("ScrewsTiltAdjust.ErrorText")))])],1)],1)],1):e._e(),Object.keys(e.results).length?t(q,[e._l(e.results,function(r,i,n){return[n?t(U,{key:"result-divider-".concat(i),staticClass:"my-1"}):e._e(),t(pw,{key:"result-".concat(i,"-").concat(i),attrs:{name:i.toString(),result:r}})]})],2):e._e(),t(ne,[t(ae),t(g,{attrs:{text:""},on:{click:e.retryScrewsTiltAdjust}},[e._v(" "+e._s(e.$t("ScrewsTiltAdjust.Retry"))+" ")]),t(g,{attrs:{color:"primary",text:""},on:{click:e.clearScrewsTiltAdjust}},[e._v(" "+e._s(e.$t("ScrewsTiltAdjust.Accept"))+" ")])],1)],1)],1)},Kte=[];const T0={};var Qte=E(zh,Jte,Kte,!1,ese,null,null,null);function ese(e){for(let s in T0)this[s]=T0[s]}const fw=function(){return Qte.exports}(),tse=(e,s)=>{const t=e[s];return t?typeof t=="function"?t():Promise.resolve(t):new Promise((r,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+s)))})};/*!
* vue-i18n v8.28.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/var gw=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],sse=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function qi(e,s){typeof console<"u"&&(console.warn("[vue-i18n] "+e),s&&console.warn(s.stack))}function rse(e,s){typeof console<"u"&&(console.error("[vue-i18n] "+e),s&&console.error(s.stack))}var Ps=Array.isArray;function Jt(e){return e!==null&&typeof e=="object"}function ise(e){return typeof e=="boolean"}function lt(e){return typeof e=="string"}var nse=Object.prototype.toString,ase="[object Object]";function xs(e){return nse.call(e)===ase}function Lt(e){return e==null}function Zh(e){return typeof e=="function"}function Ju(){for(var e=[],s=arguments.length;s--;)e[s]=arguments[s];var t=null,r=null;return e.length===1?Jt(e[0])||Ps(e[0])?r=e[0]:typeof e[0]=="string"&&(t=e[0]):e.length===2&&(typeof e[0]=="string"&&(t=e[0]),(Jt(e[1])||Ps(e[1]))&&(r=e[1])),{locale:t,params:r}}function dn(e){return JSON.parse(JSON.stringify(e))}function ose(e,s){if(e.delete(s))return e}function lse(e){var s=[];return e.forEach(function(t){return s.push(t)}),s}function eo(e,s){return!!~e.indexOf(s)}var cse=Object.prototype.hasOwnProperty;function use(e,s){return cse.call(e,s)}function Ar(e){for(var s=arguments,t=Object(e),r=1;r<arguments.length;r++){var i=s[r];if(i!=null){var n=void 0;for(n in i)use(i,n)&&(Jt(i[n])?t[n]=Ar(t[n],i[n]):t[n]=i[n])}}return t}function gc(e,s){if(e===s)return!0;var t=Jt(e),r=Jt(s);if(t&&r)try{var i=Ps(e),n=Ps(s);if(i&&n)return e.length===s.length&&e.every(function(l,c){return gc(l,s[c])});if(!i&&!n){var a=Object.keys(e),o=Object.keys(s);return a.length===o.length&&a.every(function(l){return gc(e[l],s[l])})}else return!1}catch{return!1}else return!t&&!r?String(e)===String(s):!1}function dse(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function mse(e){return e!=null&&Object.keys(e).forEach(function(s){typeof e[s]=="string"&&(e[s]=dse(e[s]))}),e}function hse(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(s){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];var i=this.$i18n;return i._t.apply(i,[s,i.locale,i._getMessages(),this].concat(t))},e.prototype.$tc=function(s,t){for(var r=[],i=arguments.length-2;i-- >0;)r[i]=arguments[i+2];var n=this.$i18n;return n._tc.apply(n,[s,n.locale,n._getMessages(),this,t].concat(r))},e.prototype.$te=function(s,t){var r=this.$i18n;return r._te(s,r.locale,r._getMessages(),t)},e.prototype.$d=function(s){for(var t,r=[],i=arguments.length-1;i-- >0;)r[i]=arguments[i+1];return(t=this.$i18n).d.apply(t,[s].concat(r))},e.prototype.$n=function(s){for(var t,r=[],i=arguments.length-1;i-- >0;)r[i]=arguments[i+1];return(t=this.$i18n).n.apply(t,[s].concat(r))}}function pse(e){e===void 0&&(e=!1);function s(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return e?{mounted:s}:{beforeCreate:function(){var r=this.$options;if(r.i18n=r.i18n||(r.__i18nBridge||r.__i18n?{}:null),r.i18n){if(r.i18n instanceof ce){if(r.__i18nBridge||r.__i18n)try{var i=r.i18n&&r.i18n.messages?r.i18n.messages:{},n=r.__i18nBridge||r.__i18n;n.forEach(function(d){i=Ar(i,JSON.parse(d))}),Object.keys(i).forEach(function(d){r.i18n.mergeLocaleMessage(d,i[d])})}catch{}this._i18n=r.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(xs(r.i18n)){var a=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ce?this.$root.$i18n:null;if(a&&(r.i18n.root=this.$root,r.i18n.formatter=a.formatter,r.i18n.fallbackLocale=a.fallbackLocale,r.i18n.formatFallbackMessages=a.formatFallbackMessages,r.i18n.silentTranslationWarn=a.silentTranslationWarn,r.i18n.silentFallbackWarn=a.silentFallbackWarn,r.i18n.pluralizationRules=a.pluralizationRules,r.i18n.preserveDirectiveContent=a.preserveDirectiveContent),r.__i18nBridge||r.__i18n)try{var o=r.i18n&&r.i18n.messages?r.i18n.messages:{},l=r.__i18nBridge||r.__i18n;l.forEach(function(d){o=Ar(o,JSON.parse(d))}),r.i18n.messages=o}catch{}var c=r.i18n,u=c.sharedMessages;u&&xs(u)&&(r.i18n.messages=Ar(r.i18n.messages,u)),this._i18n=new ce(r.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(r.i18n.sync===void 0||r.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),a&&a.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ce?this._i18n=this.$root.$i18n:r.parent&&r.parent.$i18n&&r.parent.$i18n instanceof ce&&(this._i18n=r.parent.$i18n)},beforeMount:function(){var r=this.$options;r.i18n=r.i18n||(r.__i18nBridge||r.__i18n?{}:null),r.i18n?r.i18n instanceof ce?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):xs(r.i18n)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ce?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):r.parent&&r.parent.$i18n&&r.parent.$i18n instanceof ce&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:s,beforeDestroy:function(){if(this._i18n){var r=this;this.$nextTick(function(){r._subscribing&&(r._i18n.unsubscribeDataChanging(r),delete r._subscribing),r._i18nWatcher&&(r._i18nWatcher(),r._i18n.destroyVM(),delete r._i18nWatcher),r._localeWatcher&&(r._localeWatcher(),delete r._localeWatcher)})}}}}var M0={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(s,t){var r=t.data,i=t.parent,n=t.props,a=t.slots,o=i.$i18n;if(o){var l=n.path,c=n.locale,u=n.places,d=a(),m=o.i(l,c,fse(d)||u?gse(d.default,u):d),h=n.tag&&n.tag!==!0||n.tag===!1?n.tag:"span";return h?s(h,r,m):m}}};function fse(e){var s;for(s in e)if(s!=="default")return!1;return!!s}function gse(e,s){var t=s?vse(s):{};if(!e)return t;e=e.filter(function(i){return i.tag||i.text.trim()!==""});var r=e.every(bse);return e.reduce(r?_se:vw,t)}function vse(e){return Array.isArray(e)?e.reduce(vw,{}):Object.assign({},e)}function _se(e,s){return s.data&&s.data.attrs&&s.data.attrs.place&&(e[s.data.attrs.place]=s),e}function vw(e,s,t){return e[t]=s,e}function bse(e){return!!(e.data&&e.data.attrs&&e.data.attrs.place)}var E0={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(s,t){var r=t.props,i=t.parent,n=t.data,a=i.$i18n;if(!a)return null;var o=null,l=null;lt(r.format)?o=r.format:Jt(r.format)&&(r.format.key&&(o=r.format.key),l=Object.keys(r.format).reduce(function(h,p){var f;return eo(gw,p)?Object.assign({},h,(f={},f[p]=r.format[p],f)):h},null));var c=r.locale||a.locale,u=a._ntp(r.value,c,o,l),d=u.map(function(h,p){var f,b=n.scopedSlots&&n.scopedSlots[h.type];return b?b((f={},f[h.type]=h.value,f.index=p,f.parts=u,f)):h.value}),m=r.tag&&r.tag!==!0||r.tag===!1?r.tag:"span";return m?s(m,{attrs:n.attrs,class:n.class,staticClass:n.staticClass},d):d}};function yse(e,s,t){_w(e,t)&&bw(e,s,t)}function Cse(e,s,t,r){if(_w(e,t)){var i=t.context.$i18n;xse(e,t)&&gc(s.value,s.oldValue)&&gc(e._localeMessage,i.getLocaleMessage(i.locale))||bw(e,s,t)}}function $se(e,s,t,r){var i=t.context;if(!i){qi("Vue instance does not exists in VNode context");return}var n=t.context.$i18n||{};!s.modifiers.preserve&&!n.preserveDirectiveContent&&(e.textContent=""),e._vt=void 0,delete e._vt,e._locale=void 0,delete e._locale,e._localeMessage=void 0,delete e._localeMessage}function _w(e,s){var t=s.context;return t?t.$i18n?!0:(qi("VueI18n instance does not exists in Vue instance"),!1):(qi("Vue instance does not exists in VNode context"),!1)}function xse(e,s){var t=s.context;return e._locale===t.$i18n.locale}function bw(e,s,t){var r,i,n=s.value,a=wse(n),o=a.path,l=a.locale,c=a.args,u=a.choice;if(!o&&!l&&!c){qi("value type not supported");return}if(!o){qi("`path` is required in v-t directive");return}var d=t.context;u!=null?e._vt=e.textContent=(r=d.$i18n).tc.apply(r,[o,u].concat(O0(l,c))):e._vt=e.textContent=(i=d.$i18n).t.apply(i,[o].concat(O0(l,c))),e._locale=d.$i18n.locale,e._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}function wse(e){var s,t,r,i;return lt(e)?s=e:xs(e)&&(s=e.path,t=e.locale,r=e.args,i=e.choice),{path:s,locale:t,args:r,choice:i}}function O0(e,s){var t=[];return e&&t.push(e),s&&(Array.isArray(s)||xs(s))&&t.push(s),t}var Ct;function eg(e,s){s===void 0&&(s={bridge:!1}),eg.installed=!0,Ct=e,Ct.version&&Number(Ct.version.split(".")[0]),hse(Ct),Ct.mixin(pse(s.bridge)),Ct.directive("t",{bind:yse,update:Cse,unbind:$se}),Ct.component(M0.name,M0),Ct.component(E0.name,E0);var t=Ct.config.optionMergeStrategies;t.i18n=function(r,i){return i===void 0?r:i}}var yw=function(){this._caches=Object.create(null)};yw.prototype.interpolate=function(s,t){if(!t)return[s];var r=this._caches[s];return r||(r=Dse(s),this._caches[s]=r),Tse(r,t)};var Sse=/^(?:\d)+/,Pse=/^(?:\w)+/;function Dse(e){for(var s=[],t=0,r="";t<e.length;){var i=e[t++];if(i==="{"){r&&s.push({type:"text",value:r}),r="";var n="";for(i=e[t++];i!==void 0&&i!=="}";)n+=i,i=e[t++];var a=i==="}",o=Sse.test(n)?"list":a&&Pse.test(n)?"named":"unknown";s.push({value:n,type:o})}else i==="%"?e[t]!=="{"&&(r+=i):r+=i}return r&&s.push({type:"text",value:r}),s}function Tse(e,s){var t=[],r=0,i=Array.isArray(s)?"list":Jt(s)?"named":"unknown";if(i==="unknown")return t;for(;r<e.length;){var n=e[r];switch(n.type){case"text":t.push(n.value);break;case"list":t.push(s[parseInt(n.value,10)]);break;case"named":i==="named"&&t.push(s[n.value]);break}r++}return t}var ot=0,mi=1,Cw=2,$w=3,qh=0,vc=1,_c=2,tr=3,js=4,bc=5,yc=6,Ku=7,Ma=8,_r=[];_r[qh]={ws:[qh],ident:[tr,ot],"[":[js],eof:[Ku]};_r[vc]={ws:[vc],".":[_c],"[":[js],eof:[Ku]};_r[_c]={ws:[_c],ident:[tr,ot],0:[tr,ot],number:[tr,ot]};_r[tr]={ident:[tr,ot],0:[tr,ot],number:[tr,ot],ws:[vc,mi],".":[_c,mi],"[":[js,mi],eof:[Ku,mi]};_r[js]={"'":[bc,ot],'"':[yc,ot],"[":[js,Cw],"]":[vc,$w],eof:Ma,else:[js,ot]};_r[bc]={"'":[js,ot],eof:Ma,else:[bc,ot]};_r[yc]={'"':[js,ot],eof:Ma,else:[yc,ot]};var Mse=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ese(e){return Mse.test(e)}function Ose(e){var s=e.charCodeAt(0),t=e.charCodeAt(e.length-1);return s===t&&(s===34||s===39)?e.slice(1,-1):e}function Lse(e){if(e==null)return"eof";var s=e.charCodeAt(0);switch(s){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function Ase(e){var s=e.trim();return e.charAt(0)==="0"&&isNaN(e)?!1:Ese(s)?Ose(s):"*"+s}function kse(e){var s=[],t=-1,r=qh,i=0,n,a,o,l,c,u,d,m=[];m[mi]=function(){a!==void 0&&(s.push(a),a=void 0)},m[ot]=function(){a===void 0?a=o:a+=o},m[Cw]=function(){m[ot](),i++},m[$w]=function(){if(i>0)i--,r=js,m[ot]();else{if(i=0,a===void 0||(a=Ase(a),a===!1))return!1;m[mi]()}};function h(){var p=e[t+1];if(r===bc&&p==="'"||r===yc&&p==='"')return t++,o="\\"+p,m[ot](),!0}for(;r!==null;)if(t++,n=e[t],!(n==="\\"&&h())){if(l=Lse(n),d=_r[r],c=d[l]||d.else||Ma,c===Ma||(r=c[0],u=m[c[1]],u&&(o=c[2],o=o===void 0?n:o,u()===!1)))return;if(r===Ku)return s}}var tg=function(){this._cache=Object.create(null)};tg.prototype.parsePath=function(s){var t=this._cache[s];return t||(t=kse(s),t&&(this._cache[s]=t)),t||[]};tg.prototype.getPathValue=function(s,t){if(!Jt(s))return null;var r=this.parsePath(t);if(r.length===0)return null;for(var i=r.length,n=s,a=0;a<i;){var o=n[r[a]];if(o==null)return null;n=o,a++}return n};var Fse=/<\/?[\w\s="/.':;#-\/]+>/,Rse=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,jse=/^@(?:\.([a-zA-Z]+))?:/,Hse=/[()]/g,L0={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},Xh=new yw,ce=function(s){var t=this;s===void 0&&(s={}),!Ct&&typeof window<"u"&&window.Vue&&eg(window.Vue);var r=s.locale||"en-US",i=s.fallbackLocale===!1?!1:s.fallbackLocale||"en-US",n=s.messages||{},a=s.dateTimeFormats||s.datetimeFormats||{},o=s.numberFormats||{};this._vm=null,this._formatter=s.formatter||Xh,this._modifiers=s.modifiers||{},this._missing=s.missing||null,this._root=s.root||null,this._sync=s.sync===void 0?!0:!!s.sync,this._fallbackRoot=s.fallbackRoot===void 0?!0:!!s.fallbackRoot,this._fallbackRootWithEmptyString=s.fallbackRootWithEmptyString===void 0?!0:!!s.fallbackRootWithEmptyString,this._formatFallbackMessages=s.formatFallbackMessages===void 0?!1:!!s.formatFallbackMessages,this._silentTranslationWarn=s.silentTranslationWarn===void 0?!1:s.silentTranslationWarn,this._silentFallbackWarn=s.silentFallbackWarn===void 0?!1:!!s.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new tg,this._dataListeners=new Set,this._componentInstanceCreatedListener=s.componentInstanceCreatedListener||null,this._preserveDirectiveContent=s.preserveDirectiveContent===void 0?!1:!!s.preserveDirectiveContent,this.pluralizationRules=s.pluralizationRules||{},this._warnHtmlInMessage=s.warnHtmlInMessage||"off",this._postTranslation=s.postTranslation||null,this._escapeParameterHtml=s.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in s&&(this.__VUE_I18N_BRIDGE__=s.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(l,c){var u=Object.getPrototypeOf(t);if(u&&u.getChoiceIndex){var d=u.getChoiceIndex;return d.call(t,l,c)}var m=function(h,p){return h=Math.abs(h),p===2?h?h>1?1:0:1:h?Math.min(h,2):0};return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[l,c]):m(l,c)},this._exist=function(l,c){return!l||!c?!1:!!(!Lt(t._path.getPathValue(l,c))||l[c])},(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&Object.keys(n).forEach(function(l){t._checkLocaleMessage(l,t._warnHtmlInMessage,n[l])}),this._initVM({locale:r,fallbackLocale:i,messages:n,dateTimeFormats:a,numberFormats:o})},ke={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};ce.prototype._checkLocaleMessage=function(s,t,r){var i=[],n=function(a,o,l,c){if(xs(l))Object.keys(l).forEach(function(m){var h=l[m];xs(h)?(c.push(m),c.push("."),n(a,o,h,c),c.pop(),c.pop()):(c.push(m),n(a,o,h,c),c.pop())});else if(Ps(l))l.forEach(function(m,h){xs(m)?(c.push("["+h+"]"),c.push("."),n(a,o,m,c),c.pop(),c.pop()):(c.push("["+h+"]"),n(a,o,m,c),c.pop())});else if(lt(l)){var u=Fse.test(l);if(u){var d="Detected HTML in message '"+l+"' of keypath '"+c.join("")+"' at '"+o+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";a==="warn"?qi(d):a==="error"&&rse(d)}}};n(t,s,r,i)};ce.prototype._initVM=function(s){var t=Ct.config.silent;Ct.config.silent=!0,this._vm=new Ct({data:s,__VUE18N__INSTANCE__:!0}),Ct.config.silent=t};ce.prototype.destroyVM=function(){this._vm.$destroy()};ce.prototype.subscribeDataChanging=function(s){this._dataListeners.add(s)};ce.prototype.unsubscribeDataChanging=function(s){ose(this._dataListeners,s)};ce.prototype.watchI18nData=function(){var s=this;return this._vm.$watch("$data",function(){for(var t=lse(s._dataListeners),r=t.length;r--;)Ct.nextTick(function(){t[r]&&t[r].$forceUpdate()})},{deep:!0})};ce.prototype.watchLocale=function(s){if(s){if(!this.__VUE_I18N_BRIDGE__)return null;var r=this,i=this._vm;return this.vm.$watch("locale",function(n){i.$set(i,"locale",n),r.__VUE_I18N_BRIDGE__&&s&&(s.locale.value=n),i.$forceUpdate()},{immediate:!0})}else{if(!this._sync||!this._root)return null;var t=this._vm;return this._root.$i18n.vm.$watch("locale",function(n){t.$set(t,"locale",n),t.$forceUpdate()},{immediate:!0})}};ce.prototype.onComponentInstanceCreated=function(s){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(s,this)};ke.vm.get=function(){return this._vm};ke.messages.get=function(){return dn(this._getMessages())};ke.dateTimeFormats.get=function(){return dn(this._getDateTimeFormats())};ke.numberFormats.get=function(){return dn(this._getNumberFormats())};ke.availableLocales.get=function(){return Object.keys(this.messages).sort()};ke.locale.get=function(){return this._vm.locale};ke.locale.set=function(e){this._vm.$set(this._vm,"locale",e)};ke.fallbackLocale.get=function(){return this._vm.fallbackLocale};ke.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)};ke.formatFallbackMessages.get=function(){return this._formatFallbackMessages};ke.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e};ke.missing.get=function(){return this._missing};ke.missing.set=function(e){this._missing=e};ke.formatter.get=function(){return this._formatter};ke.formatter.set=function(e){this._formatter=e};ke.silentTranslationWarn.get=function(){return this._silentTranslationWarn};ke.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e};ke.silentFallbackWarn.get=function(){return this._silentFallbackWarn};ke.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e};ke.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent};ke.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e};ke.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage};ke.warnHtmlInMessage.set=function(e){var s=this,t=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,t!==e&&(e==="warn"||e==="error")){var r=this._getMessages();Object.keys(r).forEach(function(i){s._checkLocaleMessage(i,s._warnHtmlInMessage,r[i])})}};ke.postTranslation.get=function(){return this._postTranslation};ke.postTranslation.set=function(e){this._postTranslation=e};ke.sync.get=function(){return this._sync};ke.sync.set=function(e){this._sync=e};ce.prototype._getMessages=function(){return this._vm.messages};ce.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats};ce.prototype._getNumberFormats=function(){return this._vm.numberFormats};ce.prototype._warnDefault=function(s,t,r,i,n,a){if(!Lt(r))return r;if(this._missing){var o=this._missing.apply(null,[s,t,i,n]);if(lt(o))return o}if(this._formatFallbackMessages){var l=Ju.apply(void 0,n);return this._render(t,a,l.params,t)}else return t};ce.prototype._isFallbackRoot=function(s){return(this._fallbackRootWithEmptyString?!s:Lt(s))&&!Lt(this._root)&&this._fallbackRoot};ce.prototype._isSilentFallbackWarn=function(s){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(s):this._silentFallbackWarn};ce.prototype._isSilentFallback=function(s,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||s!==this.fallbackLocale)};ce.prototype._isSilentTranslationWarn=function(s){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(s):this._silentTranslationWarn};ce.prototype._interpolate=function(s,t,r,i,n,a,o){if(!t)return null;var l=this._path.getPathValue(t,r);if(Ps(l)||xs(l))return l;var c;if(Lt(l))if(xs(t)){if(c=t[r],!(lt(c)||Zh(c)))return null}else return null;else if(lt(l)||Zh(l))c=l;else return null;return lt(c)&&(c.indexOf("@:")>=0||c.indexOf("@.")>=0)&&(c=this._link(s,t,c,i,"raw",a,o)),this._render(c,n,a,r)};ce.prototype._link=function(s,t,r,i,n,a,o){var l=r,c=l.match(Rse);for(var u in c)if(c.hasOwnProperty(u)){var d=c[u],m=d.match(jse),h=m[0],p=m[1],f=d.replace(h,"").replace(Hse,"");if(eo(o,f))return l;o.push(f);var b=this._interpolate(s,t,f,i,n==="raw"?"string":n,n==="raw"?void 0:a,o);if(this._isFallbackRoot(b)){if(!this._root)throw Error("unexpected error");var C=this._root.$i18n;b=C._translate(C._getMessages(),C.locale,C.fallbackLocale,f,i,n,a)}b=this._warnDefault(s,f,b,i,Ps(a)?a:[a],n),this._modifiers.hasOwnProperty(p)?b=this._modifiers[p](b):L0.hasOwnProperty(p)&&(b=L0[p](b)),o.pop(),l=b?l.replace(d,b):l}return l};ce.prototype._createMessageContext=function(s,t,r,i){var n=this,a=Ps(s)?s:[],o=Jt(s)?s:{},l=function(m){return a[m]},c=function(m){return o[m]},u=this._getMessages(),d=this.locale;return{list:l,named:c,values:s,formatter:t,path:r,messages:u,locale:d,linked:function(m){return n._interpolate(d,u[d]||{},m,null,i,void 0,[m])}}};ce.prototype._render=function(s,t,r,i){if(Zh(s))return s(this._createMessageContext(r,this._formatter||Xh,i,t));var n=this._formatter.interpolate(s,r,i);return n||(n=Xh.interpolate(s,r,i)),t==="string"&&!lt(n)?n.join(""):n};ce.prototype._appendItemToChain=function(s,t,r){var i=!1;return eo(s,t)||(i=!0,t&&(i=t[t.length-1]!=="!",t=t.replace(/!/g,""),s.push(t),r&&r[t]&&(i=r[t]))),i};ce.prototype._appendLocaleToChain=function(s,t,r){var i,n=t.split("-");do{var a=n.join("-");i=this._appendItemToChain(s,a,r),n.splice(-1,1)}while(n.length&&i===!0);return i};ce.prototype._appendBlockToChain=function(s,t,r){for(var i=!0,n=0;n<t.length&&ise(i);n++){var a=t[n];lt(a)&&(i=this._appendLocaleToChain(s,a,r))}return i};ce.prototype._getLocaleChain=function(s,t){if(s==="")return[];this._localeChainCache||(this._localeChainCache={});var r=this._localeChainCache[s];if(!r){t||(t=this.fallbackLocale),r=[];for(var i=[s];Ps(i);)i=this._appendBlockToChain(r,i,t);var n;Ps(t)?n=t:Jt(t)?t.default?n=t.default:n=null:n=t,lt(n)?i=[n]:i=n,i&&this._appendBlockToChain(r,i,null),this._localeChainCache[s]=r}return r};ce.prototype._translate=function(s,t,r,i,n,a,o){for(var l=this._getLocaleChain(t,r),c,u=0;u<l.length;u++){var d=l[u];if(c=this._interpolate(d,s[d],i,n,a,o,[i]),!Lt(c))return c}return null};ce.prototype._t=function(s,t,r,i){for(var n,a=[],o=arguments.length-4;o-- >0;)a[o]=arguments[o+4];if(!s)return"";var l=Ju.apply(void 0,a);this._escapeParameterHtml&&(l.params=mse(l.params));var c=l.locale||t,u=this._translate(r,c,this.fallbackLocale,s,i,"string",l.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(n=this._root).$t.apply(n,[s].concat(a))}else return u=this._warnDefault(c,s,u,i,a,"string"),this._postTranslation&&u!==null&&u!==void 0&&(u=this._postTranslation(u,s)),u};ce.prototype.t=function(s){for(var t,r=[],i=arguments.length-1;i-- >0;)r[i]=arguments[i+1];return(t=this)._t.apply(t,[s,this.locale,this._getMessages(),null].concat(r))};ce.prototype._i=function(s,t,r,i,n){var a=this._translate(r,t,this.fallbackLocale,s,i,"raw",n);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(s,t,n)}else return this._warnDefault(t,s,a,i,[n],"raw")};ce.prototype.i=function(s,t,r){return s?(lt(t)||(t=this.locale),this._i(s,t,this._getMessages(),null,r)):""};ce.prototype._tc=function(s,t,r,i,n){for(var a,o=[],l=arguments.length-5;l-- >0;)o[l]=arguments[l+5];if(!s)return"";n===void 0&&(n=1);var c={count:n,n},u=Ju.apply(void 0,o);return u.params=Object.assign(c,u.params),o=u.locale===null?[u.params]:[u.locale,u.params],this.fetchChoice((a=this)._t.apply(a,[s,t,r,i].concat(o)),n)};ce.prototype.fetchChoice=function(s,t){if(!s||!lt(s))return null;var r=s.split("|");return t=this.getChoiceIndex(t,r.length),r[t]?r[t].trim():s};ce.prototype.tc=function(s,t){for(var r,i=[],n=arguments.length-2;n-- >0;)i[n]=arguments[n+2];return(r=this)._tc.apply(r,[s,this.locale,this._getMessages(),null,t].concat(i))};ce.prototype._te=function(s,t,r){for(var i=[],n=arguments.length-3;n-- >0;)i[n]=arguments[n+3];var a=Ju.apply(void 0,i).locale||t;return this._exist(r[a],s)};ce.prototype.te=function(s,t){return this._te(s,this.locale,this._getMessages(),t)};ce.prototype.getLocaleMessage=function(s){return dn(this._vm.messages[s]||{})};ce.prototype.setLocaleMessage=function(s,t){(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&this._checkLocaleMessage(s,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,s,t)};ce.prototype.mergeLocaleMessage=function(s,t){(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&this._checkLocaleMessage(s,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,s,Ar(typeof this._vm.messages[s]<"u"&&Object.keys(this._vm.messages[s]).length?Object.assign({},this._vm.messages[s]):{},t))};ce.prototype.getDateTimeFormat=function(s){return dn(this._vm.dateTimeFormats[s]||{})};ce.prototype.setDateTimeFormat=function(s,t){this._vm.$set(this._vm.dateTimeFormats,s,t),this._clearDateTimeFormat(s,t)};ce.prototype.mergeDateTimeFormat=function(s,t){this._vm.$set(this._vm.dateTimeFormats,s,Ar(this._vm.dateTimeFormats[s]||{},t)),this._clearDateTimeFormat(s,t)};ce.prototype._clearDateTimeFormat=function(s,t){for(var r in t){var i=s+"__"+r;this._dateTimeFormatters.hasOwnProperty(i)&&delete this._dateTimeFormatters[i]}};ce.prototype._localizeDateTime=function(s,t,r,i,n,a){for(var o=t,l=i[o],c=this._getLocaleChain(t,r),u=0;u<c.length;u++){var d=o,m=c[u];if(l=i[m],o=m,!(Lt(l)||Lt(l[n])))break}if(Lt(l)||Lt(l[n]))return null;var h=l[n],p;if(a)p=new Intl.DateTimeFormat(o,Object.assign({},h,a));else{var f=o+"__"+n;p=this._dateTimeFormatters[f],p||(p=this._dateTimeFormatters[f]=new Intl.DateTimeFormat(o,h))}return p.format(s)};ce.prototype._d=function(s,t,r,i){if(!r){var n=i?new Intl.DateTimeFormat(t,i):new Intl.DateTimeFormat(t);return n.format(s)}var a=this._localizeDateTime(s,t,this.fallbackLocale,this._getDateTimeFormats(),r,i);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(s,r,t)}else return a||""};ce.prototype.d=function(s){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];var i=this.locale,n=null,a=null;return t.length===1?(lt(t[0])?n=t[0]:Jt(t[0])&&(t[0].locale&&(i=t[0].locale),t[0].key&&(n=t[0].key)),a=Object.keys(t[0]).reduce(function(o,l){var c;return eo(sse,l)?Object.assign({},o,(c={},c[l]=t[0][l],c)):o},null)):t.length===2&&(lt(t[0])&&(n=t[0]),lt(t[1])&&(i=t[1])),this._d(s,i,n,a)};ce.prototype.getNumberFormat=function(s){return dn(this._vm.numberFormats[s]||{})};ce.prototype.setNumberFormat=function(s,t){this._vm.$set(this._vm.numberFormats,s,t),this._clearNumberFormat(s,t)};ce.prototype.mergeNumberFormat=function(s,t){this._vm.$set(this._vm.numberFormats,s,Ar(this._vm.numberFormats[s]||{},t)),this._clearNumberFormat(s,t)};ce.prototype._clearNumberFormat=function(s,t){for(var r in t){var i=s+"__"+r;this._numberFormatters.hasOwnProperty(i)&&delete this._numberFormatters[i]}};ce.prototype._getNumberFormatter=function(s,t,r,i,n,a){for(var o=t,l=i[o],c=this._getLocaleChain(t,r),u=0;u<c.length;u++){var d=o,m=c[u];if(l=i[m],o=m,!(Lt(l)||Lt(l[n])))break}if(Lt(l)||Lt(l[n]))return null;var h=l[n],p;if(a)p=new Intl.NumberFormat(o,Object.assign({},h,a));else{var f=o+"__"+n;p=this._numberFormatters[f],p||(p=this._numberFormatters[f]=new Intl.NumberFormat(o,h))}return p};ce.prototype._n=function(s,t,r,i){if(!ce.availabilities.numberFormat)return"";if(!r){var n=i?new Intl.NumberFormat(t,i):new Intl.NumberFormat(t);return n.format(s)}var a=this._getNumberFormatter(s,t,this.fallbackLocale,this._getNumberFormats(),r,i),o=a&&a.format(s);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(s,Object.assign({},{key:r,locale:t},i))}else return o||""};ce.prototype.n=function(s){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];var i=this.locale,n=null,a=null;return t.length===1?lt(t[0])?n=t[0]:Jt(t[0])&&(t[0].locale&&(i=t[0].locale),t[0].key&&(n=t[0].key),a=Object.keys(t[0]).reduce(function(o,l){var c;return eo(gw,l)?Object.assign({},o,(c={},c[l]=t[0][l],c)):o},null)):t.length===2&&(lt(t[0])&&(n=t[0]),lt(t[1])&&(i=t[1])),this._n(s,i,n,a)};ce.prototype._ntp=function(s,t,r,i){if(!ce.availabilities.numberFormat)return[];if(!r){var n=i?new Intl.NumberFormat(t,i):new Intl.NumberFormat(t);return n.formatToParts(s)}var a=this._getNumberFormatter(s,t,this.fallbackLocale,this._getNumberFormats(),r,i),o=a&&a.formatToParts(s);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(s,t,r,i)}else return o||[]};Object.defineProperties(ce.prototype,ke);var Hd;Object.defineProperty(ce,"availabilities",{get:function(){if(!Hd){var s=typeof Intl<"u";Hd={dateTimeFormat:s&&typeof Intl.DateTimeFormat<"u",numberFormat:s&&typeof Intl.NumberFormat<"u"}}return Hd}});ce.install=eg;ce.version="8.28.2";const xw=ce,ww={Notifications:{BrowserWarnings:{Description:"{name} is outdated and not fully supported. The current version is {version}, but Mainsail requires version {minVersion} or higher.",Headline:"Outdated Browser"},DependencyDescription:"The current {name} version does not support all features of Mainsail. Update {name} to at least {neededVersion}.",DependencyName:"Dependency: {name}",DismissAll:"Dismiss all",KlipperWarnings:{DeprecatedOption:"Option '{option}' in section '{section}' is deprecated and will be removed in a future release.",DeprecatedOptionHeadline:"Deprecated Klipper Option",DeprecatedValue:"Value '{value}' in option '{option}' in section '{section}' is deprecated and will be removed in a future release.",DeprecatedValueHeadline:"Deprecated Klipper Value",KlipperRuntimeWarning:"Klipper runtime warning",KlipperWarning:"Klipper warning"},MaintenanceReminder:"Maintenance Reminder",MaintenanceReminderText:'Maintenance "{name}" is due.',MoonrakerWarnings:{MoonrakerComponent:"Moonraker: {component}",MoonrakerFailedComponentDescription:"An error was detected while loading the moonraker component '{component}'. Please check the log file and fix the issue.",MoonrakerFailedInitComponentDescription:"An error was detected during initialization the moonraker component '{component}'. Please check the log file and fix the issue.",MoonrakerInitComponent:"Init. Moonraker: {component}",MoonrakerWarning:"Moonraker warning",UnparsedConfigOption:"Unparsed config option '{option}: {value}' detected in section [{section}]. This may be an option no longer available or could be the result of a module that failed to load. In the future this will result in a startup error.",UnparsedConfigSection:"Unparsed config section [{section}] detected. This may be the result of a component that failed to load. In the future this will result in a startup error."},Never:"never",NextReboot:"next reboot",NoNotification:"No Notification available",Notifications:"Notifications",OneDayShort:"1D",OneHourShort:"1H",OneWeekShort:"1W",Remind:"Remind:",ShowDetails:"show details",TmcOtFlag:"Stepper driver error: OT flag set",TmcOtFlagText:"The stepper driver '{name}' has triggered the OT flag and stopped working. This can be caused by a too high current. Please check the stepper driver settings and cooling.",TmcOtpwFlag:"Stepper driver warning: OTPW flag set",TmcOtpwFlagText:"The stepper driver '{name}' has triggered the OTPW flag and may stop working if it gets any hotter. This is an indication of an over temperature condition. This can be caused by a too high current. Please check the stepper driver settings and cooling."},NumberInput:{GreaterOrEqualError:"Must be greater or equal than {min}!",MustBeBetweenError:"Must be between {min} and {max}!",NoEmptyAllowedError:"Input must not be empty!"},Printers:"Printers",TextfieldWithCopy:{Copied:"Copied"},TheServiceWorker:{DescriptionNeedUpdate:"The local cache is outdated and needs to be updated. Please click on the button below to update the cache.",TitleNeedUpdate:"PWA needs update",Update:"update"},ThrottledStates:{DescriptionCurrentlyThrottled:"rPi ARM core(s) are currently throttled down.",DescriptionFrequencyCapped:"rPi ARM max frequency is currently limited to 1.2 GHz.",DescriptionPreviouslyFrequencyCapped:"rPi ARM max frequency was at least once limited to 1.2 GHz since last power-on.",DescriptionPreviouslyTemperatureLimited:"rPi uC (3A+/3B+ only) temperature was at least once above the soft limit (default 60C) since last power-on.",DescriptionPreviouslyThrottled:"rPI ARM core(s) were throttled down at least once since last power-on.",DescriptionPreviouslyUnderVolted:"rPI supply voltage dropped below 4.65V at least once since the last power-on.",DescriptionTemperatureLimitActive:"rPi uC (3A+/3B+ only) temperature is currently above the soft limit (default 60C).",DescriptionUnderVoltageDetected:"rPI supply voltage currently below 4.65V",TitleCurrentlyThrottled:"Currently Throttled",TitleFrequencyCapped:"Frequency Capped",TitlePreviouslyFrequencyCapped:"Previously Frequency Capped",TitlePreviouslyTemperatureLimited:"Previously Temperature Limited",TitlePreviouslyThrottled:"Previously Throttled",TitlePreviouslyUnderVolted:"Previously Under-Volted",TitleTemperatureLimitActive:"Temperature Limit Active",TitleUnderVoltageDetected:"Under-Voltage Detected"},Titles:{Complete:"Complete - {filename}",Error:"ERROR",Pause:"Pause Print",PrinterOff:"Printer OFF",Printing:"{percent}% Printing - {filename}",PrintingETA:"{percent}% Printing - ETA: {eta} - {filename}"},TopBar:{CannotUploadTheFile:"Cannot upload the file!",EmergencyStop:"Emergency Stop",SAVE_CONFIG:"SAVE CONFIG",Uploading:"Uploading",UploadOfFileSuccessful:"Upload of {file} successful!",UploadPrint:"Upload & Print"},TopCornerMenu:{Cancel:"Cancel",ConfirmationDialog:{Description:{HostReboot:"Rebooting the Host will cause the current print to fail!",HostShutdown:"Shutting down the Host will cause the current print to fail!",KlipperFirmwareRestart:"Restarting the Klipper Firmware will cause the current print to fail!",KlipperRestart:"Restarting Klipper will cause the current print to fail!",KlipperStop:"Stopping Klipper will cause the current print to fail!",ServiceRestart:"Restarting this service may cause the current print to fail!",ServiceStart:"Starting this service may cause the current print to fail!",ServiceStop:"Stopping this service may cause the current print to fail!"},Title:{HostReboot:"Host Reboot",HostShutdown:"Host Shutdown",KlipperFirmwareRestart:"Klipper Firmware Restart",KlipperRestart:"Klipper Restart",ServiceRestart:"Service Restart",ServiceStart:"Service Start",ServiceStop:"Service Stop"}},HostControl:"Host Control",KlipperControl:"Klipper Control",KlipperFirmwareRestart:"Firmware Restart",KlipperRestart:"Restart",PowerDevices:"Power Devices",Reboot:"Reboot",Restart:"Restart",ServiceControl:"Service Control",Shutdown:"Shutdown",Start:"Start",Stop:"Stop"},UpdateDialog:{Close:"Close",Empty:"Empty",Recovering:"Recovering {software}...",RecoveringDone:"Recovering {software} done!",Updating:"Updating {software}...",UpdatingDone:"Updating {software} done!"}},Sw={Abort:"abort",Accept:"accept",Adjusted:"adjusted",Description:"Click on <b>ADJUSTED</b> if the current screw was adjusted. Click on <b>ACCEPT</b> to continue without adjustment.",Headline:"Bed Screws",ScrewAccepted:"Screws accepted",ScrewIndex:"Screw Index",ScrewName:"Screw Name",ScrewOutput:"{current} of {max}"},Pw={CannotConnectTo:"Cannot connect to Moonraker ({host}).",CheckMoonrakerLog:"If this message appears repeatedly, please have a look in the log file located at:",Connecting:"Connecting to {host}",Failed:"Connection failed",Initializing:"Initializing",TryAgain:"try again"},Dw={CommandList:"Command list",Empty:"Empty",HideTemperatures:"Hide temperatures",HideTimelapse:"Hide Timelapse",SendCode:"Send code...",SetupConsole:"Setup Console"},Tw={AreYouSure:"Are you sure?",CoolDown:"CoolDown",No:"No",Yes:"Yes"},Mw={CanBusInfo:"Only unassigned nodes can be detected. Its recommended to have only one unassigned device connected to the can bus to avoid communication issues. For more details, please click on the link:",ClickRefresh:"Click on the refresh button to search for devices.",DevicePath:"Device path",Formats:"Formats",Headline:"Devices",HideSystemEntries:"Hide system entries",LibcameraId:"Libcamera ID",NoDeviceFound:"No device found. Please check the connection and click on the refresh button.",PathByHardware:"Path by hardware",PathById:"Path by ID",Refresh:"refresh",Resolutions:"Resolutions"},Ew={StartPrint:{Cancel:"Cancel",DoYouWantToStartFilename:"Do you want to start {filename}?",DoYouWantToStartFilenameFilament:"Do you want to start {filename} with the following filament?",Headline:"Start Job",Print:"print",Timelapse:"Timelapse"}},Ow={ConfigReference:"Config Reference",DeviceDialog:"Devices",DontSave:"Don't save",Downloading:"Downloading",FailedSave:"{filename} could not be uploaded!",FileReadOnly:"read-only",SaveClose:"Save & close",SaveRestart:"Save & Restart",SuccessfullySaved:"{filename} successfully saved.",UnsavedChanges:"Unsaved Changes",UnsavedChangesMessage:"Do you want to save your changes made to {filename}?",UnsavedChangesSubMessage:"Your changes will be lost if you don't save them. You can disable this message in the editor settings.",Uploading:"Uploading"},Lw={AreYouSure:"Are you sure?",EmergencyStop:"Emergency Stop",No:"No",Yes:"Yes"},Aw={AddBatchToQueue:"Add batch to Queue",AddToQueue:"Add to Queue",AllFiles:"All",BedTemp:"Bed Temp.",Cancel:"Cancel",ChamberTemp:"Chamber Temp.",Count:"Count",Create:"Create",CreateNewDirectory:"Create new Directory",CurrentPath:"Current path",Delete:"Delete",DeleteDirectory:"Delete Directory",DeleteDirectoryQuestion:'Do you really want to delete the "{name}" directory with all its contents?',DeleteSelectedQuestion:"Do you really want to delete {count} selected files?",DeleteSingleFileQuestion:'Do you really want to delete the file "{name}"?',Download:"Download",Duplicate:"Duplicate",DuplicateFile:"Duplicate File",EditFile:"Edit File",Empty:"Empty",ExtruderTemp:"Extruder Temp.",FilamentName:"Filament Name",FilamentType:"Filament Type",FilamentUsage:"Filament Usage",FilamentWeight:"Filament Weight",Files:"Files",Filesize:"File size",Free:"Free",FreeDisk:"Free disk",GCodeFiles:"G-Code Files",GcodesRootDirectoryDoesntExists:'No G-Code directory found. Please check option "path" in the [virtual_sdcard] section of the Klipper configuration.',HiddenFiles:"Hidden files",InvalidNameAlreadyExists:"Name already exists, please choose another name.",InvalidNameEmpty:"Input must not be empty!",LastEndTime:"Last End Time",LastFilamentUsed:"Last Filament Used",LastModified:"Last modified",LastPrintDuration:"Last Print Duration",LastStartTime:"Last Start Time",LastTotalDuration:"Last Total Duration",LayerHeight:"Layer Height",Name:"Name",NewDirectory:"New Directory",NozzleDiameter:"Nozzle Diameter",ObjectHeight:"Object Height",Preheat:"Preheat",PrintedFiles:"Printed files",PrintStart:"Print start",PrintTime:"Print Time",RefreshCurrentDirectory:"Refresh current Directory",Rename:"Rename",RenameDirectory:"Rename Directory",RenameFile:"Rename File",ScanMeta:"Scan Metadata",ScanMetaSuccess:"Successfully scanned metadata from: {filename}.",Search:"Search",SetupCurrentList:"Setup current list",Slicer:"Slicer",SuccessfullyCreated:"Successfully created {filename}.",SuccessfullyDeleted:"Successfully deleted {filename}.",SuccessfullyMoved:"Successfully moved {filename}.",SuccessfullyRenamed:"Successfully renamed {filename}.",SuccessfullyUploaded:"Upload of {filename} successful!",Total:"Total",UploadNewGcode:"Upload new G-Code",Used:"Used",View3D:"View 3D"},kw={CannotUploadFile:"Cannot upload file!",DropFilesToUploadFiles:"Drop files to upload"},Fw={ClearLoadedFile:"Clear",CNCMode:"CNC Mode",ColorMode:"Color Mode",Downloading:"Downloading",ForceLineRendering:"Force Line Rendering",HDRendering:"HD Rendering (Round Extrusions)",High:"High",LoadCurrentFile:"Current file",LoadLocal:"Local File",Low:"Low",Max:"Max",Medium:"Medium",ReloadRequired:"Reload required",Rendering:"Rendering",RenderQuality:"Render Quality",ShowGCode:"Show G-Code",ShowObjectSelection:"Show Object Selection",ShowToolhead:"Show Toolhead",ShowTravelMoves:"Show Travel Moves",SpecularLighting:"Specular Lighting",Title:"G-Code Viewer",Tracking:"Tracking",Transparency:"Transparency",Ultra:"Ultra",VoxelMode:"Voxel Mode (ASMBL)"},Rw={Abort:"abort",BedMeshCalibrate:"Bed Mesh Calibrate",BedMeshRemove:"Bed Mesh Remove",Calibrate:"calibrate",Clear:"clear",CurrentMesh:{Headline:"Current Mesh",Max:"Max",Min:"Min",Name:"Name",Range:"Range",Size:"Size"},DeleteBedMeshProfile:"Delete Bed Mesh Profile",DoYouReallyWantToDelete:'Do you really want to delete the profile "{name}"?',ErrorKlipperNotReady:"Klipper not ready. Heightmap disabled.",Flat:"Flat",Heightmap:"Heightmap",InvalidNameAlreadyExists:"Profile name already exists, please choose another profile name.",InvalidNameAscii:"Name is invalid. Only ascii character are allowed.",InvalidNameEmpty:"Input must not be empty!",InvalidNameReserved:"Profile 'default' is reserved, please choose another profile name.",Mesh:"Mesh",Name:"Name",NoBedMeshHasBeenLoadedYet:"No bed mesh has been loaded yet.",NoProfile:"No profile available",Probed:"Probed",Profiles:"Profiles",Remove:"delete",Rename:"rename",RenameBedMeshProfile:"Rename Bed Mesh Profile",ScaleGradient:"Scale gradient",ScaleZMax:"Scale z-max.",TitleCalibrate:"Calibrate new bed mesh",TitleClear:"Clear bed mesh",TitleHomeAll:"Home all",Wireframe:"Wireframe"},jw={AddANote:"Add a note",AddMaintenance:"Add Maintenance",AddNote:"Add note",AddToQueueSuccessful:"File {filename} added to Queue.",AllJobs:"All",AvgPrinttime:"Print Time - Ø",Cancel:"Cancel",Chart:"Chart",CreateNote:"Create Note",DateBasedReminder:"Date",DateBasedReminderDescription:"This reminder is based on the date.",Days:"days",Delete:"Delete",DeleteSelectedQuestion:"Do you really want to delete {count} selected jobs?",DeleteSingleJobQuestion:"Do you really want to delete the job?",Details:"Details",EditMaintenance:"Edit Maintenance",EditNote:"Edit Note",Empty:"empty",EndTime:"End Time",EntryCreatedAt:"Created at {date}.",EntryNextPerform:"Next perform:",EntryPerformedAt:"Performed at {date}.",EntrySince:"Used since:",EstimatedFilament:"Estimated Filament",EstimatedFilamentWeight:"Estimated Filament Weight",EstimatedTime:"Estimated Time",FilamentBasedReminder:"Filament",FilamentBasedReminderDescription:"This reminder is based on the filament usage.",FilamentCalc:"Filament Calc",FilamentUsage:"Filament usage",FilamentUsed:"Filament Used",Filename:"Filename",Filesize:"Filesize",FirstLayerBedTemp:"First Layer Bed Temp.",FirstLayerExtTemp:"First Layer Ext. Temp.",FirstLayerHeight:"First Layer Height",HistoryFilamentUsage:"Filament",HistoryPrinttimeAVG:"Prints",Hours:"hours",InvalidNameEmpty:"Invalid name. Name must not be empty!",JobDetails:"Job Details",Jobs:"Jobs",LastModified:"Last Modified",LayerHeight:"Layer Height",LoadCompleteHistory:"Load complete history",LongestPrinttime:"Longest Print Time",Maintenance:"Maintenance",MaintenanceEntries:"Maintenance Entries",Meter:"meter",Name:"Name",NoReminder:"No reminder",Note:"Note",ObjectHeight:"Object Height",OneTime:"One-Time",Perform:"perform",Performed:"performed",PerformedAndReschedule:"performed and reschedule",PerformMaintenance:"Perform Maintenance",PrintDuration:"Print Time",PrintHistory:"Print History",PrintJobs:"Print Jobs",PrintTime:"Print Time",PrinttimeAvg:"Print Time - Ø",PrinttimeBasedReminder:"Print Time",PrinttimeBasedReminderDescription:"This reminder is based on the print time.",Reminder:"Reminder",Repeat:"Repeat",Reprint:"Reprint",Save:"save",Search:"search",SelectedFilamentUsed:"Selected Filament Used",SelectedJobs:"Selected Jobs",SelectedPrinttime:"Selected Print Time",Slicer:"Slicer",SlicerVersion:"Slicer Version",StartTime:"Start Time",Statistics:"Statistics",Status:"Status",StatusValues:{cancelled:"Cancelled",completed:"Completed",error:"Error",in_progress:"In progress",interrupted:"Interrupted",klippy_disconnect:"Klippy disconnect",klippy_shutdown:"Klippy shutdown",Others:"Others",server_exit:"Server exit"},Table:"Table",TitleExportHistory:"Export History",TotalDuration:"Total Time",TotalFilamentUsed:"Total Filament Used",TotalJobs:"Total Jobs",TotalPrinttime:"Total Print Time",TotalTime:"Total Time"},Hw={Cancel:"Cancel",ChangeCount:"Change count",Count:"Count",Empty:"Empty",InvalidCountEmpty:"Input must not be empty!",InvalidCountGreaterZero:"Input must be greater than 0!",JobQueue:"Job Queue",Pause:"Pause",RemoveFromQueue:"Remove from Queue",Start:"Start",StartPrint:"Start Job"},Iw={ConfigFilesPanel:{AllFiles:"All",Cancel:"Cancel",ConfigFiles:"Config Files",ConfigRootDirectoryDoesntExists:'No configuration directory found. Please check option "config_path" in the [file_manager] section of the Moonraker configuration.',Create:"Create",CreateDirectory:"Create Directory",CreateFile:"Create File",CurrentPath:"Current path",Delete:"Delete",DeleteDirectory:"Delete Directory",DeleteDirectoryQuestion:'Delete directory "{name}" and all its contents?',DeleteSelectedQuestion:"Delete {count} selected elements?",DeleteSingleFileQuestion:'Do you really want to delete the file "{name}"?',Download:"Download",Duplicate:"Duplicate",DuplicateFile:"Duplicate File",EditFile:"Edit file",Empty:"Empty",Files:"Files",Filesize:"Filesize",Free:"Free",FreeDisk:"Free disk",HiddenFiles:"Hidden files",HideBackupFiles:"Hide backup files",LastModified:"Last modified",Name:"Name",RefreshDirectory:"Refresh Directory",Rename:"Rename",RenameDirectory:"Rename Directory",RenameFile:"Rename File",Root:"Root",SetupCurrentList:"Setup current list",ShowFile:"Show file",Total:"Total",UploadFile:"Upload File",Uploading:"Uploading",Used:"Used"},EndstopPanel:{Endstop:"Endstop",EndstopInfo:"Press the sync-button on the right-bottom to load the current endstop status.",Endstops:"Endstops",open:"OPEN",TRIGGERED:"TRIGGERED"},LogfilesPanel:{Accept:"accept",Cancel:"cancel",Logfiles:"Log Files",Rollover:"Rollover Logs",RolloverDescription:"Please select which logs should be reset:",RolloverToastFailed:'Rollover log for "{name}": {message}',RolloverToastSuccessful:'Log for "{name}" was successfully reset.'},SystemPanel:{Constants:"Constants",Cpu:"CPU",HostDetails:"Host details",LastStats:"Last stats",Load:"Load",Memory:"MEM",NoMoreInfos:"No more Infos",SystemLoad:"System Loads",Values:{Awake:"Awake: {awake}",Bandwidth:"Bandwidth: {bandwidth}/s",Distro:"Distro: {name} {version_id}",Frequency:"Freq: {frequency}",Load:"Load: {load}",Memory:"Mem: {memory}",Os:"OS: {os}",Received:"Received: {received}",Temp:"Temp: {temp}°C",TempMax:"max: {temp}°C",TempMin:"min: {temp}°C",Transmitted:"Transmitted: {transmitted}",Version:"Version: {version}"}},UpdatePanel:{Abort:"Abort",AreYouSure:"Are you sure?",CheckForUpdates:"Check for updates",Close:"Close",CommitHistory:"Commit History",Commits:"Commits",CommitsAvailable:"no commits available | {count} commit available | {count} commits available",CommitsOnDate:"Commits on {date}",CommittedDaysAgo:"committed {days} days ago",CommittedHoursAgo:"committed {hours} hours ago",CommittedOnDate:"committed on {date}",CommittedYesterday:"committed yesterday",ConfigChanges:"Config Changes",Corrupt:"corrupt",CountPackagesCanBeUpgraded:"{count} packages can be upgraded",Detached:"detached",Dirty:"dirty",GenericUpdateQuestion:"Check the commit history (if available) and the GitHub page for this project to see if any manual adjustments are necessary for this update.",GitHubPage:"GitHub Page",HardRecovery:"Hard Recovery",InitUpdateManager:"The Update Manager has not been initialized yet. This is normal when you start the system for the first time. Please click on the refresh button to initialize all components.",Invalid:"invalid",IUnderstandTheRisks:"I understand the risks",KlipperUpdateQuestionConfig:"This update may also contain changes to config parameters that would need to be modified in the printer.cfg file, see the change log for details.",KlipperUpdateQuestionFirmware:"This will update the Klipper host software. Control boards running the Klipper firmware may need to be flashed with recompiled firmware before the machine can be put back into service.",LinkToGithub:"Link to GitHub",MoonrakerUpdateQuestion:"This will update the Moonraker API. Changes to the moonraker.conf file may be required to continue using the machine.",MoreCommitsInfo:"A maximum of 30 commits can be displayed here. To see all commits, please click on the following link:",OSPackages:"OS-Packages",SoftRecovery:"Soft Recovery",StartUpdate:"Start Update",System:"System",ThesePackagesCanBeUpgrade:"These system packages can be upgraded:",Unknown:"unknown",Update:"update",UpdateAll:"Update all components",UpdateManager:"Update Manager",UpdateWarning:"Update warning: {name}",Upgrade:"upgrade",UpgradeableSystemPackages:"Upgradeable System Packages",UpToDate:"up-to-date",WebClientUpdateQuestion:"In some cases updating the web client could have changes that may cause incompatibility. See the release notes for more information."}},Nw={Abort:"abort",Accept:"accept",Advanced:"Advanced",Headline:"Manual Probe"},Vw={ExtruderControlPanel:{Allowed:"Allowed",CleanNozzle:"Clean Nozzle",EstimatedExtrusion:"Extrusion:",Extrude:"Extrude",ExtruderControl:"Extruder Control",ExtruderTempTooLow:"Extruder temp. <",ExtrusionFactor:"Extrusion factor",ExtrusionFeedrate:"Extrusion Feedrate",FilamentLength:"Filament Length",FirmwareRetraction:"Firmware Retraction",FirmwareRetractionSettings:{RetractLength:"Retract Length",RetractSpeed:"Retract Speed",UnretractExtraLength:"Unretract Extra Length",UnretractSpeed:"Unretract Speed"},Headline:"Extruder",LoadFilament:"Load Filament",PressureAdvance:"Pressure Advance",PressureAdvanceSettings:{Advance:"Pressure Advance",Extruder:"Extruder",SmoothTime:"Smooth Time"},PurgeFilament:"Purge Filament",Requested:"Requested",Retract:"Retract",TooLargeExtrusion:"Extrusion too large!",Tools:"Tools",UnloadFilament:"Unload Filament"},FarmPrinterPanel:{ReconnectToPrinter:"Reconnect",SwitchToPrinter:"Switch to Printer",WebcamOff:"Off"},KlippyStatePanel:{CheckKlippyAndUdsAddress:"Please check if the Klipper service is running and klippy_uds_address is correctly configured in the moonraker.conf.",FirmwareRestart:"Firmware Restart",KlipperLog:"Klipper Log",MoonrakerCannotConnect:"Moonraker can't connect to Klipper!",MoonrakerLog:"Moonraker Log",PowerOn:"Power on",PrinterSwitchedOff:"Printer is powered off",PrinterSwitchedOffDescription:"The printer is currently powered off and Klipper cannot connect. To power on the printer, click the button below:",Restart:"Restart",ServiceReports:"{service} reports"},MachineSettingsPanel:{Headline:"Machine",MotionSettings:{Acceleration:"Acceleration",MaxAccelToDecel:"Max Accel. to Decel.",MinimumCruiseRatio:"Min. Cruise Ratio",SquareCornerVelocity:"Square Corner Velocity",Velocity:"Velocity"}},MacrosPanel:{Headline:"Macros",Send:"send"},MiniconsolePanel:{Autoscroll:"Autoscroll",Headline:"Console",HideTemperatures:"Hide temperatures",HideTimelapse:"Hide Timelapse",SendCode:"Send code...",SetupConsole:"Setup Console"},MinSettingsPanel:{IncludeMainsailCfg:"Make sure you include the mainsail.cfg in your printer.cfg file.",IsNotDefinedInConfig:"is not defined in config.",MissingConfiguration:"Missing configuration",MoreInformation:"more information"},MiscellaneousPanel:{Headline:"Miscellaneous",Light:{Blue:"blue",Green:"green",Red:"red",White:"white"},RunoutSensor:{Detected:"detected",Empty:"empty"}},PowerControlPanel:{Error:"Error",Off:"Off",On:"On",PowerControl:"Power Control"},SpoolmanPanel:{Cancel:"Cancel",ChangeSpool:"Change Spool",DaysAgo:"{days} days ago",EjectSpool:"Eject spool",EjectSpoolQuestion:"Are you sure to eject the filament spool?",Filament:"Filament",FilamentTypeMismatch:"The material of the active spool ({spoolType}) does not match the material of the G-Code ({fileType}).",Headline:"Spoolman",LastUsed:"Last Used",Location:"Location",Material:"Material",Never:"Never",NoActiveSpool:"Filament tracking is inactive. To get started, please select a spool.",NoResults:"No spool found with the current search criteria.",NoSpools:"No spools available",NoSpoolSelected:"No spool selected. Please select a spool or this print will not be tracked.",OpenSpoolManager:"open Spool Manager",Refresh:"refresh",Search:"Search",SelectSpool:"Select Spool",Today:"Today",TooLessFilament:"The current spool may not have enough filament for this print. ({spoolWeight}g of {fileWeight}g)",Weight:"Weight",Yesterday:"Yesterday"},StatusPanel:{CancelPrint:"Cancel print",ClearPrintStats:"Clear print stats",Difference:"Difference",EmptyGcodes:"No G-Code available.",EmptyJobqueue:"There is currently no file in the job queue.",Estimate:"Estimate",ETA:"ETA",ExcludeObject:{Cancel:"cancel",Excluded:"Excluded",ExcludeObject:"Exclude Object",ExcludeObjectHeadline:"Exclude Object",ExcludeObjectText:'Do you really want to exclude "{name}"?'},Filament:"Filament",File:"File",Files:"Files",Flow:"Flow",Headline:"Status",Jobqueue:"Job Queue",JobqueueMoreFiles:"no more jobs | one more job | {count} more jobs",Layer:"Layer",Max:"max",ObjectHeight:"Object Height",PauseAtLayer:{Abort:"abort",Accept:"accept",AtLayer:"at Layer",Call:"Call",DescriptionPauseAtLayerActive:'This function is already active and will call "{call}" at layer {layer}. If you call the command again, these settings will be overwritten.',DescriptionPauseNextLayerActive:'This function is already active and will call "{call}" at the next layer.',Layer:"Layer",NextLayer:"next Layer",PauseAtLayer:"Pause at Layer",Type:"Type"},PausePrint:"Pause print",Print:"Print",PrintTime:"Print Time",ReprintJob:"Reprint job",Requested:"Requested",ResumePrint:"Resume print",Slicer:"Slicer",Speed:"Speed",Status:"Status",Total:"Total",Unknown:"Unknown"},TemperaturePanel:{AutoscaleChart:"Autoscale Chart",Avg:"Avg",Cooldown:"Cooldown",Current:"Current",Dataset:{Power:"PWM-power",Speed:"PWM-speed",Target:"target temperature",Temperature:"current temperature"},Headline:"Temperatures",HideMcuHostSensors:"Hide Host/MCU Sensors",HideMonitors:"Hide Monitors",Max:"max",Min:"min",Name:"Name",Presets:"Presets",SetupTemperatures:"Setup Temperatures",ShowChart:"Show Chart",ShowNameInChart:"Show {name} in chart",ShowNameInList:"Show {name} in list",State:"State",Target:"Target",TemperaturesInChart:"Temperature [°C]",TempTooHigh:"Temperature too high for {name}! (max: {max})",TempTooLow:"Temperature too low for {name}! (min: {min})"},ToolheadControlPanel:{Absolute:"absolute",ALL:"ALL",ControlButtons:"Control buttons",CoordinateFields:"Coordinate fields",Headline:"Toolhead",PleaseConfigureSteps:"Please configure steps",Position:"Position",PositionOutput:"Position output",QGL:"QGL",Relative:"relative",SettingsInterfaceControl:"Settings > Interface > Control",SpeedFactor:"Speed factor",ZOffset:"Z-Offset",ZTilt:"Z-Tilt"},WebcamPanel:{All:"All",FPS:"FPS",Headline:"Webcam",NoWebcam:'No webcam available. Add a webcam under "Interface Settings" -> "Webcams".',UnknownWebcamService:"Unknown Webcam Service"},ZoffsetPanel:{Clear:"Clear",Headline:"Z-Offset",Later:"Later",Ok:"OK",Save:"Save",SaveConfig:"SAVE CONFIG",SaveInfoDescription:'The new Z-Offset has been calculated and registered. Click on "SAVE CONFIG" to save it to the printer.cfg and restart Klipper.',SaveInfoDescriptionPrint:'The new Z-Offset has been calculated and registered. After printing, click on "SAVE CONFIG" in the top bar to save it to the printer.cfg and restart Klipper.',SaveInfoHeadline:"Information"}},Uw={AreYouSure:"Are you sure?",No:"No",TurnDeviceOff:"Turn {device} off",TurnDeviceOn:"Turn {device} on",Yes:"Yes"},Bw={Console:"Console",Dashboard:"Dashboard","G-Code Files":"G-Code Files","G-Code Viewer":"G-Code Viewer",Heightmap:"Heightmap",History:"History",Machine:"Machine",Printers:"Printers",Timelapse:"Timelapse",Webcam:"Webcam"},Ww={Accept:"accept",Base:"Base",ErrorText:"Something went wrong during the probing process.",Headline:"Screws tilt adjust",Retry:"retry"},Gw={AddPrinter:"Add Printer",AddPrintersToJson:"Please add the Printers to the config.json.",CannotConnectTo:"Cannot connect to {host}.",ChangePrinter:"Change Printer",Connecting:"Connecting to {host}",ConnectionFailed:"Connection failed",EditPrinter:"Edit Printer",Hello:"Hello and welcome to the remote mode of Mainsail!",HostnameInvalid:"invalid Hostname/IP",HostnameIp:"Hostname/IP",HostnameRequired:"Hostname is required",Name:"Name",Path:"Path",Port:"Port",PortRequired:"Port is required",RememberToAdd:"Please remember to add '{cors}' in moonraker.conf within 'cors_domains'.",SelectPrinter:"Select Printer",TryAgain:"try again",UpdatePrinter:"Update Printer",YouCanFindMore:"You can find more details at"},zw={Cancel:"Cancel",Close:"Close",ConsoleTab:{AddFilter:"add filter",Console:"Console",CreateHeadline:"Create filter",Direction:"Direction",DirectionShell:"Last entry at the bottom",DirectionTable:"Last entry on the top",EditHeadline:"Edit filter",EntryStyle:"Entry-Design",EntryStyleCompact:"compact",EntryStyleDefault:"default",Filters:"Filters",Height:"Height",HideTemperatures:"Hide temperatures",HideTimelapse:"Hide Timelapse",Name:"Name",Regex:"Regex",StoreButton:"Store filter",UpdateButton:"Update filter"},ControlTab:{Bars:"Bars",Circle:"Circle",Control:"Control",Cross:"Cross",EnableXYHoming:"Enable combined X & Y axes homing",EstimatedExtrusionInfo:"Show estimated extrusion info",EstimatedExtrusionInfoDescription:"Show / Hide info for estimated extrusions based on extrusion amount and feedrate",HideDuringPrint:"Hide axis controls during print",InvertXMovement:"Invert X axis movement direction",InvertYMovement:"Invert Y axis movement direction",InvertZMovement:"Invert Z axis movement direction",IsDefault:" (default)",MaximumValues:"Maximum values: {maximum}",MaximumValuesVisibility:"Maximum of {maximum} values is recommended for best visibility",MinimumValues:"Minimum values: {minimum}",MotorsOff:"Motors off{isDefault}",MoveDistancesEInMm:"Extrusion amount presets (in mm)",MoveDistancesInMm:"Move distance increments (in mm)",MoveDistancesXYInMm:"Move distance increments X & Y axes (in mm)",MoveDistancesZInMm:"Move distance increments Z axis (in mm)",QuadGantryLevel:"Quad Gantry Level{isDefault}",SpeedEInMms:"Extrusion speed presets (in mm/s)",SpeedXY:"Movement speed X & Y axes",SpeedZ:"Movement speed Z axis",Style:"Style",ValueGreaterThan:"Value has to be greater than {value}",ZOffsetIncrements:"Z-Offset increments (in mm)",ZOffsetSaveOption:"Z-Offset save option",ZOffsetSaveOptionDescription:"Change the option to save the Z-Offset",ZTiltAdjust:"Z-Tilt Adjust{isDefault}"},DashboardTab:{Dashboard:"Dashboard",Desktop:"Desktop",Mobile:"Mobile",ResetLayout:"Reset Layout",Tablet:"Tablet",Widescreen:"Widescreen"},Edit:"Edit",EditorTab:{ConfirmUnsavedChanges:"Prompt to save or discard unsaved changes",ConfirmUnsavedChangesDescription:"If enabled, the editor requires a confirmation to either save or discard the changes made. If disabled, changes are silently discarded.",Editor:"Editor",KlipperRestartMethod:"Klipper restart method",KlipperRestartMethodDescription:"Select which restart method will be used on 'Save & Restart' when editing Klipper config files.",Spaces:"Spaces: {count}",TabSize:"TAB Size",TabSizeDescription:"Adjusts how many spaces should be indented for TAB",UseEscToClose:"Use ESC to close editor",UseEscToCloseDescription:"Allows the ESC key to close the editor"},GCodeViewerTab:{BackgroundColor:"Background Color",ExtruderColor:"Extruder Colors",GCodeViewer:"G-Code Viewer",GridColor:"Grid Color",MaxFeed:"Max Feed Rate",MinFeed:"Min Feed Rate",ProgressColor:"Progress Color",ShowAxes:"Show Axes"},GeneralTab:{"12hours":"12-hours ({time})","24hours":"24-hours ({time})",Backup:"Backup",BackupDialog:"Please select all the sections you want to create a backup:",CalcEstimateTime:"Estimate time calculation",CalcEstimateTimeDescription:"If multiple are selected, an average will be calculated",CalcEtaTime:"ETA calculation",CalcEtaTimeDescription:"If multiple are selected, an average will be calculated",CalcPrintProgress:"Print progress calculation",CalcPrintProgressDescription:"Method for calculating the print progress.",CalcPrintProgressItems:{Filament:"Filament",FileAbsolute:"File position (absolute)",FileRelative:"File position (relative)",Slicer:"Slicer (M73)"},CannotReadJson:"Cannot read/parse backup file.",DateFormat:"Date Format",DbConsoleHistory:"Console History",DbHistoryJobs:"History Jobs",DbHistoryTotals:"History Totals",DbMaintenance:"Maintenance",DbNavigation:"Navigation",DbTimelapseSettings:"Timelapse Settings",DbView:"View Settings",EstimateValues:{Filament:"Filament",File:"File",Slicer:"Slicer"},Everything:"Everything",FactoryDialog:"Please select all the sections you want to reset:",FactoryReset:"Factory reset",General:"General",Language:"Language",MainsailSettingsMoonrakerDb:"Mainsail Settings in Moonraker DB",PrinterName:"Printer Name",Reset:"reset",Restore:"Restore",RestoreDialog:"Please select all the sections you want to restore:",TimeFormat:"Time Format"},HeightmapTab:{ColorSchemes:"Color Schemes",Heightmap:"Heightmap",IsDefault:"(Default)",Schemes:{GrayScale:"Grayscale",Hot:"Hot",Hsv:"Hsv",Portland:"Portland",Spring:"Spring"}},InterfaceSettings:"Interface Settings",MacrosTab:{Add:"add",AddGroup:"add Group",AvailableMacros:"Available Macros",ChangeMacroColor:"Change the color of the button.",Color:"Color",CountMacros:"no Macros added | {count} Macro | {count} Macros",Custom:"custom",CustomColor:"Custom Color",DeletedMacro:"Deleted macro",DeleteMacroFromGroup:"Delete macro from group.",EditGroup:"Edit Group",Error:"error",Expert:"Expert",General:"General",Group:"Group",GroupMacros:"Group Macros",Macrogroups:"Groups",Macros:"Macros",Management:"Management",Name:"Name",NoAvailableMacros:"No available macros.",NoGroups:"No group found...",NOMacros:"No macros found...",NoMacrosInGroup:"No macros in this group.",Primary:"primary",Secondary:"secondary",ShowInStatePaused:"Show/hide if printer is paused.",ShowInStatePrinting:"Show/hide if printer is printing.",ShowInStateStandby:"Show/hide if printer is standby.",Simple:"Simple",Status:"Status",Success:"success",UnknownGroup:"Unknown Group",Warning:"warning"},MiscellaneousTab:{AddGroup:"add group",AddPreset:"add preset",Color:"Color",CreateGroup:"Create group",CreatePreset:"Create preset",End:"End",EndDescription:"Last LED of this group.",Groups:"Groups",GroupSubTitle:"Start: {start}, End: {end}",LightGroups:"{name} - Groups",LightPresets:"{name} - Presets",Miscellaneous:"Miscellaneous",Name:"Name",NoDevicesFound:"No devices found",NoGroupFound:"No group found",NoPresetFound:"No preset found",Presets:"Presets",Start:"Start",StartDescription:"First LED of this group.",UnableToLoadLight:"Unable to load light",UnableToLoadPreset:"Unable to load preset"},NavigationTab:{Navigation:"Navigation"},PresetsTab:{AddPreset:"add preset",Cooldown:"Cooldown",CreateHeadline:"Create Preset",CustomGCode:"Custom G-Code",EditCooldown:"Edit Cooldown",EditHeadline:"Edit Preset",ErrorInvalidValue:"Invalid value",ErrorNameNotUnique:"Name already exists",ErrorNameRequired:"Name required",Name:"Name",PreheatPresets:"Presets",PresetInfo:"Please set at least a target temperature or a custom G-Code.",PresetNamePlaceholder:"Preset name (required)",StoreButton:"Store preset",UpdateButton:"Update preset",UpdateCooldown:"Update Cooldown"},RemotePrintersTab:{AddPrinter:"Add Printer",EditPrinter:"Edit Printer",Hostname:"Hostname",Name:"Name",NameDescription:"This name will not be displayed in the GUI and will only used for redirects.",Path:"Path",Port:"Port",RemotePrinters:"Printers",UpdatePrinter:"Update Printer",UseConfigJson:"InstanceDB = JSON detected. Please use the config.json to modify the printers list."},Store:"store",TimelapseTab:{Autorender:"Autorender",AutorenderDescription:"If enabled, the timelapse video will automatically render at the end of the print",Camera:"Camera",CameraDescriptionWithSnapshotUrl:"Select which camera (with snapshot URL) should be used",CameraWarningAlreadySet:"This value is already set in the Moonraker configuration file.",CameraWarningAlreadySetSmall:"snapshoturl in the [timelapse] section",ConstantRateFactor:"Constant Rate Factor",ConstantRateFactorDescription:"This configure quality vs file size of the rendered video. The range of the CRF scale is 051, where 0 is lossless, 23 is the default and 51 is worst quality possible. A lower value generally leads to higher quality and a subjectively sane range is 1728. Consider 17 or 18 to be visually lossless.",duplicatelastframe:"Duplicate Last Frame",duplicatelastframeDescription:"Duplicates the last frame on the end of the video",Enabled:"Enabled",EnabledDescription:"If disabled, G-Code macros are ignored and auto-render is skipped.",Extraoutputparams:"Extra Output Params",ExtraoutputparamsDescription:"Defines extra output parameters to FFMPEG. Note: Specifying anything here will disable the rotation setting",FwRetract:"FW Retract",FwRetractDescription:"Use firmware retraction in the timelapse macro",GcodeVerbose:"Verbose G-Code",GcodeVerboseDescription:"If enabled, G-Code macros will write information to the console",General:"General",HyperlapseCycle:"Hyperlapse Cycle Time",HyperlapseCycleDescription:"A snapshot will be taken any X seconds",Mode:"Mode",ModeDescription:"Select between Layer macro and Hyperlapse (time-based) mode",NoWebcamFound:"No Webcam available",OutputFramerate:"Output Framerate",OutputFramerateDescription:"Defines the framerate of the video. Note: this will be ignored if variable_fps is enabled",Parkhead:"Park Toolhead",ParkheadDescription:"If enabled, the toolhead will be parked before taking a frame.",Parkpos:"Park position",ParkposDescription:"Select the parking position",ParkTime:"Park Time",ParkTimeDescription:"Add additional idle time when parking.",Pixelformat:"Pixel format",PixelformatDescription:"Defines the pixel format of the output video",PosDZ:"Position Z",PosDZDescription:"Park position Z (relative)",PosX:"Position X",PosXDescription:"Park position X (absolute)",PosY:"Position Y",PosYDescription:"Park position Y (absolute)",PreviewImage:"Preview Image",PreviewImageDescription:"Save a preview image with the same name as the video",RenderingOptions:"Rendering Options",RetractDistance:"Retract Distance",RetractDistanceDescription:"The length of filament that the extruder retracts.",RetractSpeed:"Retract Speed",RetractSpeedDescription:"Speed at which the extruder retracts the filament.",RulesBetweenMinMax:"Value must be between {min} and {max}!",RulesMin:"Value must be minimum {min}!",RulesPositive:"Value must be positive!",RulesRequired:"Value is required!",RulesZeroAndPositive:"Value must be 0 or greater!",SaveFrames:"Save Frames",SaveFramesDescription:"Save the frames to a zip-file for external rendering",SelectWebcam:"Select webcam...",StreamDelayCompensation:"Stream Delay Compensation",StreamDelayCompensationDescription:"Delay frame capture",Targetlength:"Target Length",TargetlengthDescription:"The target length when Variable FPS is enabled",TimeFormatCode:"Time Format Code",TimeFormatCodeDescription:"This defines how the timestamp in the output file should be encoded",Timelapse:"Timelapse",TravelSpeed:"Travel Speed",TravelSpeedDescription:"Travel speed while moving to the parking position and resuming",UnretractDistance:"Unretract Distance",UnretractDistanceDescription:"The length of filament that the extruder unretracts after a retraction.",UnretractSpeed:"Unretract Speed",UnretractSpeedDescription:"Speed at which the extruder unretracts the filament after a retraction.",VariableFps:"Variable FPS",VariableFpsDescription:"If enabled, the framerate of the output video will be calculated based on target length",VariableFpsMax:"Variable FPS max",VariableFpsMaxDescription:"Maximum variable FPS value",VariableFpsMin:"Variable FPS min",VariableFpsMinDescription:"Minimum variable FPS value"},UiSettingsTab:{BedScrewsDialog:"Bed Screws Dialog",BedScrewsDialogDescription:"Display helper dialog for BED_SCREWS_ADJUST.",BigThumbnailBackground:"Large thumbnail background color",BoolBigThumbnail:"Large thumbnail",BoolBigThumbnailDescription:"Display a large thumbnail in the status panel during a print.",BoolHideUploadAndPrintButton:"Hide Upload and Print Button",BoolHideUploadAndPrintButtonDescription:'Show or hide the "Upload and Print" button in the top bar.',ConfirmOnCoolDown:"Require confirm on CoolDown",ConfirmOnCoolDownDescription:"Show a confirmation dialog on CoolDown",ConfirmOnEmergencyStop:"Require confirm on Emergency Stop",ConfirmOnEmergencyStopDescription:"Show a confirmation dialog on Emergency Stop",ConfirmOnPowerDeviceChange:"Require confirm on Device Power changes",ConfirmOnPowerDeviceChangeDescription:"Show a confirmation dialog on Device Power changes",DefaultNavigationState:"Navigation default state",DefaultNavigationStateAlwaysClosed:"always closed",DefaultNavigationStateAlwaysOpen:"always open",DefaultNavigationStateDescription:"Which state should have the navigation per default.",DefaultNavigationStateLastState:"last state",DisableFanAnimation:"Disable fan animation",DisableFanAnimationDescription:"This can reduce some load in your Browser.",DisplayCANCEL_PRINT:"Display CANCEL_PRINT",DisplayCANCEL_PRINTDescription:"Shows the CANCEL_PRINT button permanently - no second layer confirmation needed.",GcodeThumbnails:"G-Code thumbnails",GcodeThumbnailsDescription:"Click on the button to get to the instructions.",Guide:"Guide",HideSaveConfigButtonForBedMesh:"Hide SAVE_CONFIG button for bed_mesh changes",HideSaveConfigButtonForBedMeshDescription:"Hide SAVE_CONFIG, if only bed_mesh changes are pending to be saved in Klipper.",HideUpdateWarnings:"Hide Update Warnings",HideUpdateWarningsDescription:"This option will hide all update warnings in the update manager.",LockSliders:"Lock sliders on touchscreen devices",LockSlidersDelay:"Slider lock delay",LockSlidersDelayDescription:"Sliders will lock after a given delay. If set to 0 or left blank, sliders will only lock on page change/reload.",LockSlidersDescription:"Sliders on touchscreens need to be unlocked before changes are allowed.",Logo:"Logo",ManualProbeDialog:"Manual Probe Helper Dialog",ManualProbeDialogDescription:"Display helper dialog for PROBE_CALIBRATE or Z_ENDSTOP_CALIBRATE.",Mode:"Mode",ModeDescription:"Change the overall look and feel of the application.",NavigationStyle:"Navigation style",NavigationStyleDescription:"Change navigation appearance",NavigationStyleIconsAndText:"Icons + Text",NavigationStyleIconsOnly:"Icons only",PowerDeviceName:"Printer power device",PowerDeviceNameDescription:"Select which Moonraker power device should be used to power on the printer.",Primary:"Primary",PrintstatusThumbnailZoom:"Large thumbnail zoom",PrintstatusThumbnailZoomDescription:"This will deactivate the zoom effect of the thumbnail in the status panel.",ProgressAsFavicon:"Show progress as favicon",ProgressAsFaviconDescription:"Change the Mainsail logo favicon to a progress circle.",ScrewsTiltAdjustDialog:"Screws Tilt Adjust Dialog",ScrewsTiltAdjustDialogDescription:"Display helper dialog for SCREWS_TILT_CALCULATE.",TempchartHeight:"Height Temperature Chart",TempchartHeightDescription:"Modify the height of the temperature chart on the Dashboard.",Theme:"Theme",ThemeDark:"Dark",ThemeDescription:"Customizes the branding of the interface.",ThemeLight:"Light",UiSettings:"UI-Settings"},Update:"update",WebcamsTab:{AddWebcam:"add webcam",CreateWebcam:"Create Webcam",EditCrowsnestConf:"Edit crowsnest.conf",EditWebcam:"Edit Webcam",EnableAudio:"Enable audio",FlipWebcam:"Flip webcam image:",HideFps:"Hide FPS counter",Hlsstream:"HLS Stream",Horizontally:"horizontally",IconBed:"Bed",IconCam:"Cam",IconDoor:"Door",IconFilament:"Filament",IconHot:"Hot",IconMcu:"MCU",IconNozzle:"Nozzle",IconPrinter:"Printer",Ipstream:"IP Camera",JMuxerStream:"Raw h264 stream (jmuxer)",Mjpegstreamer:"MJPEG-Streamer",MjpegstreamerAdaptive:"Adaptive MJPEG-Streamer (experimental)",Name:"Name",NameAlreadyExists:"Name already exists",Required:"required",Rotate:"Rotate",SaveWebcam:"Save Webcam",Service:"Service",TargetFPS:"Target FPS",UpdateWebcam:"Update Webcam",UrlSnapshot:"URL Snapshot",UrlStream:"URL Stream",Uv4lMjpeg:"UV4L-MJPEG",Vertically:"vertically",Webcams:"Webcams",WebrtcCameraStreamer:"WebRTC (camera-streamer)",WebrtcGo2rtc:"WebRTC (go2rtc)",WebrtcJanus:"WebRTC (janus-gateway)",WebrtcMediaMTX:"WebRTC (MediaMTX)"}},Zw={AllFiles:"All",Autorender:"Auto-render",Cancel:"Cancel",Create:"Create",CreateNewDirectory:"create directory",CurrentPath:"Current Path",Delete:"Delete",DeleteDirectory:"Delete Directory",DeleteDirectoryQuestion:'Do you really want to delete the "{name}" directory with all its contents?',DeleteSelectedQuestion:"Do you really want to delete {count} selected files?",DeleteSingleFileQuestion:'Do you really want to delete the file "{name}"?',Download:"Download",DuplicateLastframe:"Duplicate last frame",Empty:"No finished timelapse found.",Enabled:"Enabled",EstimatedLength:"Estimated length",Files:"Files",Filesize:"Filesize",Fixed:"fixed",Framerate:"Framerate",Frames:"Frames",Free:"Free",FreeDisk:"Free disk",LastModified:"Last modified",MaxFramerate:"Max. framerate",MinFramerate:"Min. framerate",Name:"Name",NewDirectory:"New Directory",NoActiveTimelapse:"No records available.",Preview:"Preview",RefreshCurrentDirectory:"refresh directory",Rename:"Rename",RenameDirectory:"Rename Directory",RenameFile:"Rename File",Render:"render",RenderSettings:"Render Settings",SaveFrames:"Save frames",Search:"search",StartRender:"start render",Status:"Status",TargetFps:"Target FPS",Targetlength:"Target length",TimelapseFiles:"Timelapse Files",TimelapseRendering:"Timelapse rendering",TimelapseRenderingSuccessful:"Timelapse rendering successful",Total:"Total",Type:"Type",Used:"Used",Variable:"Variable",Video:"Video"},qw="English",Xw={App:ww,BedScrews:Sw,ConnectionDialog:Pw,Console:Dw,CoolDownDialog:Tw,DevicesDialog:Mw,Dialogs:Ew,Editor:Ow,EmergencyStopDialog:Lw,Files:Aw,FullscreenUpload:kw,GCodeViewer:Fw,Heightmap:Rw,History:jw,JobQueue:Hw,Machine:Iw,ManualProbe:Nw,Panels:Vw,PowerDeviceChangeDialog:Uw,Router:Bw,ScrewsTiltAdjust:Ww,SelectPrinterDialog:Gw,Settings:zw,Timelapse:Zw,title:qw},Yw=Object.freeze(Object.defineProperty({__proto__:null,App:ww,BedScrews:Sw,ConnectionDialog:Pw,Console:Dw,CoolDownDialog:Tw,DevicesDialog:Mw,Dialogs:Ew,Editor:Ow,EmergencyStopDialog:Lw,Files:Aw,FullscreenUpload:kw,GCodeViewer:Fw,Heightmap:Rw,History:jw,JobQueue:Hw,Machine:Iw,ManualProbe:Nw,Panels:Vw,PowerDeviceChangeDialog:Uw,Router:Bw,ScrewsTiltAdjust:Ww,SelectPrinterDialog:Gw,Settings:zw,Timelapse:Zw,default:Xw,title:qw},Symbol.toStringTag,{value:"Module"}));y.use(xw);const Ise={}.VUE_APP_I18N_LOCALE||"en",ve=new xw({locale:Ise,fallbackLocale:{}.VUE_APP_I18N_FALLBACK_LOCALE||"en",messages:{en:Xw}});async function Jw(e){const s=await tse(Object.assign({"../locales/cz.json":()=>fe(()=>import("./cz-285b76fb.js"),[]),"../locales/da.json":()=>fe(()=>import("./da-32034265.js"),[]),"../locales/de.json":()=>fe(()=>import("./de-1b45e732.js"),[]),"../locales/en.json":()=>fe(()=>Promise.resolve().then(()=>Yw),void 0),"../locales/es.json":()=>fe(()=>import("./es-8a2d24bf.js"),[]),"../locales/fr.json":()=>fe(()=>import("./fr-ab90ab77.js"),[]),"../locales/hu.json":()=>fe(()=>import("./hu-a56cb065.js"),[]),"../locales/it.json":()=>fe(()=>import("./it-a13fb923.js"),[]),"../locales/ja.json":()=>fe(()=>import("./ja-a20a0276.js"),[]),"../locales/ko.json":()=>fe(()=>import("./ko-0b8d811b.js"),[]),"../locales/nl.json":()=>fe(()=>import("./nl-d64c7e44.js"),[]),"../locales/pl.json":()=>fe(()=>import("./pl-4358b7cc.js"),[]),"../locales/pt.json":()=>fe(()=>import("./pt-880f8881.js"),[]),"../locales/ru.json":()=>fe(()=>import("./ru-e26fbb6e.js"),[]),"../locales/se.json":()=>fe(()=>import("./se-23883ae1.js"),[]),"../locales/tr.json":()=>fe(()=>import("./tr-9777749c.js"),[]),"../locales/uk.json":()=>fe(()=>import("./uk-217f44de.js"),[]),"../locales/zh.json":()=>fe(()=>import("./zh-0b0471a0.js"),[]),"../locales/zh_TW.json":()=>fe(()=>import("./zh_TW-7176daef.js"),[])}),"../locales/".concat(e,".json"));return ve.setLocaleMessage(e,s),ve.locale=e,s}var Nse=Object.defineProperty,Vse=Object.getOwnPropertyDescriptor,Kw=(e,s,t,r)=>{for(var i=r>1?void 0:r?Vse(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Nse(s,t,i),i};let Cc=class extends M(O){get splits(){return this.event.message.split("|")}get text(){return this.splits[0]}get command(){var e;return(e=this.splits[1])!=null?e:this.text}get color(){var e;return(e=this.splits[2])!=null?e:""}clickButton(){this.$store.dispatch("server/addEvent",{message:this.command,type:"command"}),this.$socket.emit("printer.gcode.script",{script:this.command})}};Kw([P({type:Object,required:!0})],Cc.prototype,"event",2);Cc=Kw([D({})],Cc);var Use=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(g,{attrs:{color:e.color,text:""},on:{click:e.clickButton}},[e._v(" "+e._s(e.text)+" ")])},Bse=[];const A0={};var Wse=E(Cc,Use,Bse,!1,Gse,null,null,null);function Gse(e){for(let s in A0)this[s]=A0[s]}const Qw=function(){return Wse.exports}();var zse=Object.defineProperty,Zse=Object.getOwnPropertyDescriptor,eS=(e,s,t,r)=>{for(var i=r>1?void 0:r?Zse(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&zse(s,t,i),i};let $c=class extends M(O){get text(){return this.event.message}};eS([P({type:Object,required:!0})],$c.prototype,"event",2);$c=eS([D({})],$c);var qse=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t($,[t(_,[t("p",{staticClass:"mb-0"},[e._v(e._s(e.text))])])],1)},Xse=[];const k0={};var Yse=E($c,qse,Xse,!1,Jse,null,null,null);function Jse(e){for(let s in k0)this[s]=k0[s]}const tS=function(){return Yse.exports}();var Kse=Object.defineProperty,Qse=Object.getOwnPropertyDescriptor,sS=(e,s,t,r)=>{for(var i=r>1?void 0:r?Qse(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&Kse(s,t,i),i};let xc=class extends M(O){get splits(){return this.event.message.split("|")}get text(){return this.splits[0]}get command(){var s;return(s=this.splits[1])!=null?s:this.text}get color(){var s;return(s=this.splits[2])!=null?s:""}sendCommand(){this.$store.dispatch("server/addEvent",{message:this.command,type:"command"}),this.$socket.emit("printer.gcode.script",{script:this.command})}};sS([P({type:Object,required:!0})],xc.prototype,"event",2);xc=sS([D({})],xc);var ere=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(g,{staticClass:"mx-2",attrs:{color:e.color},on:{click:e.sendCommand}},[e._v(e._s(e.text))])},tre=[];const F0={};var sre=E(xc,ere,tre,!1,rre,null,null,null);function rre(e){for(let s in F0)this[s]=F0[s]}const rS=function(){return sre.exports}();var ire=Object.defineProperty,nre=Object.getOwnPropertyDescriptor,sg=(e,s,t,r)=>{for(var i=r>1?void 0:r?nre(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&ire(s,t,i),i};let Ea=class extends M(O){};sg([P({type:Array,required:!0})],Ea.prototype,"children",2);sg([P({type:Number,required:!0})],Ea.prototype,"groupIndex",2);Ea=sg([D({})],Ea);var are=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t($,[t(_,{staticClass:"text-center"},e._l(e.children,function(r,i){return t(rS,{key:"prompt_"+e.groupIndex+"_"+i,attrs:{event:r}})}),1)],1)},ore=[];const R0={};var lre=E(Ea,are,ore,!1,cre,null,null,null);function cre(e){for(let s in R0)this[s]=R0[s]}const Yh=function(){return lre.exports}();var ure=Object.defineProperty,dre=Object.getOwnPropertyDescriptor,mre=(e,s,t,r)=>{for(var i=r>1?void 0:r?dre(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&ure(s,t,i),i};let Jh=class extends M(O){constructor(){super(...arguments),this.mdiInformation=kt,this.mdiCloseThick=pe,this.internalCloseCommand=null}get events(){return this.$store.state.server.events.slice(-100)}get macroPromptEvents(){return this.events.filter(e=>e.type==="action").filter(e=>e.message.startsWith("// action:prompt_")).map(e=>{var i,n;const s=((i=e.message)!=null?i:"").replace("// action:prompt_","").split(" ")[0].trim(),t=((n=e.message)!=null?n:"").replace("// action:prompt_".concat(s),"").replace(/"/g,"").trim();return{date:e.date,type:s,message:t}})}get lastPromptBeginPos(){return this.lastPromptShowPos===-1?-1:this.macroPromptEvents.findLastIndex(e=>e.type==="begin",this.lastPromptShowPos)}get lastPromptShowPos(){return this.macroPromptEvents.findLastIndex(e=>e.type==="show")}get lastPromptClosePos(){return this.macroPromptEvents.findLastIndex(e=>e.type==="end")}get showDialog(){var s,t,r;if(this.lastPromptBeginPos===-1)return!1;const e=(s=this.macroPromptEvents[this.lastPromptBeginPos])!=null?s:null;return this.internalCloseCommand!==null&&this.internalCloseCommand==((r=(t=e==null?void 0:e.date)==null?void 0:t.getTime())!=null?r:null)?!1:this.lastPromptBeginPos>this.lastPromptClosePos&&this.activePromptContent.length>0}get activePrompt(){return this.lastPromptShowPos===-1?[]:this.macroPromptEvents.slice(this.lastPromptBeginPos,this.lastPromptShowPos)}get activePromptContent(){const e=["button","text","button_group_start","button_group_end"],s=this.activePrompt.filter(t=>e.includes(t.type));for(;s.findIndex(t=>t.type==="button_group_start")!==-1&&s.findIndex(t=>t.type==="button_group_end")!==-1;){const t=s.findIndex(n=>n.type==="button_group_start"),r=s.findIndex(n=>n.type==="button_group_end"),i=s.slice(t+1,r);s[t]={date:i[0].date,type:"button_group",message:"",children:i.filter(n=>n.type==="button")},s.splice(t+1,i.length+1)}return s}get headline(){var e,s;return!this.showDialog||this.lastPromptBeginPos===-1?"":(s=(e=this.macroPromptEvents[this.lastPromptBeginPos])==null?void 0:e.message)!=null?s:""}get footerButtons(){return!this.showDialog||this.lastPromptBeginPos===-1?[]:this.activePrompt.filter(e=>e.type==="footer_button")}closePrompt(){var s,t,r;this.internalCloseCommand=(r=(t=(s=this.macroPromptEvents[this.lastPromptBeginPos])==null?void 0:s.date)==null?void 0:t.getTime())!=null?r:null;const e='RESPOND type="command" msg="action:prompt_end"';this.$store.dispatch("server/addEvent",{message:e,type:"command"}),this.$socket.emit("printer.gcode.script",{script:e})}};Jh=mre([D({components:{MacroPromptButtonGroup:Yh,MacroPromptButton:rS,MacroPromptText:tS,MacroPromptFooterButton:Qw,Panel:B}})],Jh);var hre=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{attrs:{value:e.showDialog,width:"400",persistent:"",fullscreen:e.isMobile}},[t(B,{staticStyle:{overflow:"hidden"},attrs:{title:e.headline,icon:e.mdiInformation,"card-class":"macro_prompt-dialog","margin-bottom":!1,height:e.isMobile?0:548},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:e.closePrompt}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[e._l(e.activePromptContent,function(r,i){var n;return[r.type==="text"?t(tS,{key:"prompt_"+i,attrs:{event:r}}):e._e(),r.type==="button_group"?t(Yh,{key:"prompt_"+i,attrs:{"group-index":i,children:(n=r.children)!==null&&n!==void 0?n:[]}}):e._e(),r.type==="button"?t(Yh,{key:"prompt_"+i,attrs:{"group-index":i,children:[r]}}):e._e()]})],2),e.footerButtons.length?t(ne,[t(ae),e._l(e.footerButtons,function(r,i){return t(Qw,{key:"prompt_footer_"+i,attrs:{event:r}})})],2):e._e()],1)],1)},pre=[];const j0={};var fre=E(Jh,hre,pre,!1,gre,null,null,null);function gre(e){for(let s in j0)this[s]=j0[s]}const iS=function(){return fre.exports}();var vre=Object.defineProperty,_re=Object.getOwnPropertyDescriptor,ps=(e,s,t,r)=>{for(var i=r>1?void 0:r?_re(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&vre(s,t,i),i};D.registerHooks(["metaInfo"]);let Ut=class extends M(O,_t){metaInfo(){let s=this.$store.getters.getTitle;return this.isPrinterPowerOff&&(s=this.$t("App.Titles.PrinterOff")),{title:s,titleTemplate:"%s"}}get title(){return this.$store.getters.getTitle}get naviDrawer(){return this.$store.state.naviDrawer}get navigationStyle(){return this.$store.state.gui.uiSettings.navigationStyle}get mainStyle(){let s={paddingLeft:"0"};return this.mainBgImage!==null&&(s.backgroundImage="url("+this.mainBgImage+")"),this.naviDrawer&&!this.$vuetify.breakpoint.mdAndDown&&(this.navigationStyle==="iconsAndText"&&(s.paddingLeft="220px"),this.navigationStyle==="iconsOnly"&&(s.paddingLeft="56px")),s}get customStylesheet(){return this.$store.getters["files/getCustomStylesheet"]}get customFavicons(){var s;return(s=this.$store.getters["files/getCustomFavicons"])!=null?s:null}get language(){return this.$store.state.gui.general.language}get current_file(){var s,t;return(t=(s=this.$store.state.printer.print_stats)==null?void 0:s.filename)!=null?t:""}get mode(){return this.$store.state.gui.uiSettings.mode}get logoColor(){return this.$store.state.gui.uiSettings.logo}get primaryColor(){return this.$store.state.gui.uiSettings.primary}get warningColor(){var s,t,r,i,n;return(n=(i=(r=(t=(s=this.$vuetify)==null?void 0:s.theme)==null?void 0:t.currentTheme)==null?void 0:r.warning)==null?void 0:i.toString())!=null?n:"#ff8300"}get primaryTextColor(){let s=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(this.primaryColor);if(s){const t=parseInt(s[1],16)*.2126,r=parseInt(s[2],16)*.7152,i=parseInt(s[3],16)*.0722;return(t+r+i)/255>.7?"#222":"#fff"}return"#ffffff"}get cssVars(){return{"--v-btn-text-primary":this.primaryTextColor,"--color-logo":this.logoColor,"--color-primary":this.primaryColor,"--color-warning":this.warningColor,"--panel-toolbar-icon-btn-width":Zd+"px","--panel-toolbar-text-btn-height":Zd+"px","--topbar-icon-btn-width":kn+"px","--sidebar-menu-item-height":WD+"px"}}get print_percent(){return Math.floor(this.$store.getters["printer/getPrintPercent"]*100)}get containerClasses(){var t,r;const s=(t=this.$router.options.routes)==null?void 0:t.find(i=>i.name===this.$route.name);return{"px-3":!0,"px-sm-6":!0,"py-sm-6":!0,"mx-auto":!0,fullscreen:(r=s==null?void 0:s.fullscreen)!=null?r:!1}}get progressAsFavicon(){return this.$store.state.gui.uiSettings.progressAsFavicon}async languageChanged(s){await Jw(s)}customStylesheetChanged(s){const t=document.getElementById("customStylesheet");if(s!==null&&t===null){const r=document.createElement("link");r.id="customStylesheet",r.type="text/css",r.rel="stylesheet",r.href=s,document.head.appendChild(r)}else s!==null&&t?t.setAttribute("href",s):t&&t.remove()}current_fileChanged(s){s!==""&&this.$socket.emit("server.files.metadata",{filename:s},{action:"files/getMetadataCurrentFile"})}primaryColorChanged(s){this.$nextTick(()=>{this.$vuetify.theme.currentTheme.primary=s})}modeChanged(s){const t=s!=="light";this.$vuetify.theme.dark=t;const r=document.documentElement;r.className=t?"theme--dark":"theme--light"}async drawFavicon(s){var n,a,o;const t=document.querySelector("link[rel*='icon'][sizes='16x16']"),r=document.querySelector("link[rel*='icon'][sizes='32x32']");if(!t||!r)return;if(this.progressAsFavicon&&this.printerIsPrinting){let l=64,c=document.createElement("canvas");c.width=l,c.height=l;const u=c.getContext("2d"),d=c.width/2,m=c.height/2,h=32;if(!u)return;u.beginPath(),u.moveTo(d,m),u.arc(d,m,h,0,2*Math.PI,!1),u.closePath(),u.fillStyle="#ddd",u.fill(),u.strokeStyle="rgba(200, 208, 218, 0.66)",u.stroke();let p=1.5*Math.PI,f=0,b=(Math.PI-.5*Math.PI)/25;(s>=0&&s<=25||s>25&&s<=50||s>50&&s<=75||s>75&&s<=100)&&(f=p+s*b),u.beginPath(),u.moveTo(d,m),u.arc(d,m,h,p,f,!1),u.closePath(),u.fillStyle=this.logoColor,u.fill(),t.href=c.toDataURL("image/png"),r.href=c.toDataURL("image/png");return}if(this.customFavicons){const[l,c]=this.customFavicons;t.href=l,r.href=c;return}if((o=(a=(n=this.theme)==null?void 0:n.logo)==null?void 0:a.show)!=null&&o&&this.sidebarLogo.endsWith(".svg")){const l=await fetch(this.sidebarLogo);if(!l.ok)return;const u=(await l.text()).replace(/fill="var\(--color-logo, #[0-9a-fA-F]{6}\)"/g,'fill="'.concat(this.logoColor,'"')),d=new Blob([u],{type:"image/svg+xml"}),m=new FileReader;m.onloadend=()=>{const h=m.result;t.href=h,r.href=h},m.readAsDataURL(d);return}const i="data:image/svg+xml;base64,"+window.btoa('\n <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 599.38 523.11" xml:space="preserve">\n <g>\n <path style="fill:'.concat(this.logoColor,';" d="M382.29,142.98L132.98,522.82L0,522.68L344.3,0l0,0C352.18,49.06,365.2,97.68,382.29,142.98"/>\n <path style="fill:').concat(this.logoColor,';" d="M413.28,213.54L208.5,522.92l132.94,0.19l135.03-206.33l0,0C452.69,284.29,431.53,249.77,413.28,213.54 L413.28,213.54"/>\n <path style="fill:').concat(this.logoColor,';" d="M599.38,447.69l-49.25,75.42L417,522.82l101.6-153.67l0,0C543.48,397.35,570.49,423.61,599.38,447.69 L599.38,447.69z"/>\n </g>\n </svg>\n '));t.href=i,r.href=i}customFaviconsChanged(){this.drawFavicon(this.print_percent)}progressAsFaviconChanged(){this.drawFavicon(this.print_percent)}logoColorChanged(){this.drawFavicon(this.print_percent)}print_percentChanged(s){this.drawFavicon(s),this.refreshSpoolman()}printerIsPrintingChanged(){this.drawFavicon(this.print_percent)}refreshSpoolman(){this.moonrakerComponents.includes("spoolman")&&this.$store.dispatch("server/spoolman/refreshActiveSpool",null,{root:!0})}appHeight(){this.$nextTick(()=>{document.documentElement.style.setProperty("--app-height",window.innerHeight+"px")})}mounted(){this.drawFavicon(this.print_percent),this.appHeight(),window.addEventListener("resize",this.appHeight),window.addEventListener("orientationchange",this.appHeight)}};ps([me("language")],Ut.prototype,"languageChanged",1);ps([me("customStylesheet")],Ut.prototype,"customStylesheetChanged",1);ps([me("current_file")],Ut.prototype,"current_fileChanged",1);ps([me("primaryColor")],Ut.prototype,"primaryColorChanged",1);ps([me("mode")],Ut.prototype,"modeChanged",1);ps([me("customFavicons")],Ut.prototype,"customFaviconsChanged",1);ps([me("progressAsFavicon")],Ut.prototype,"progressAsFaviconChanged",1);ps([me("logoColor")],Ut.prototype,"logoColorChanged",1);ps([me("print_percent")],Ut.prototype,"print_percentChanged",1);ps([me("printerIsPrinting")],Ut.prototype,"printerIsPrintingChanged",1);Ut=ps([D({components:{TheMacroPrompt:iS,TheTimelapseRenderingSnackbar:lw,TheEditor:ow,TheSelectPrinterDialog:Op,TheConnectingDialog:qx,TheUpdateDialog:Zx,TheTopbar:Gx,TheSidebar:Q$,TheFullscreenUpload:cw,TheUploadSnackbar:dw,TheManualProbeDialog:mw,TheBedScrewsDialog:hw,TheScrewsTiltAdjustDialog:fw}})],Ut);var bre=Object.defineProperty,yre=Object.getOwnPropertyDescriptor,Cre=(e,s,t,r)=>{for(var i=r>1?void 0:r?yre(s,t):s,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(s,t,i):a(i))||i);return r&&i&&bre(s,t,i),i};let Kh=class extends M(O){constructor(){super(...arguments),this.showDialog=!1,this.updateSW=null}onOfflineReady(){window.console.info("PWA is offline ready")}onNeedRefresh(){window.console.warn("PWA needs to refresh"),this.showDialog=!0}onRegistered(){window.console.debug("PWA is registered")}onRegisterError(e){window.console.error("PWA registration error:",e)}update(){var e;(e=this.updateSW)==null||e.call(this,!0),this.showDialog=!1}async mounted(){const{registerSW:e}=await fe(()=>import("./virtual_pwa-register-7198e461.js"),["assets/virtual_pwa-register-7198e461.js","assets/vuetify-4c65b4c3.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-ff51454d.js"]);this.updateSW=e({immediate:!0,onOfflineReady:this.onOfflineReady,onNeedRefresh:this.onNeedRefresh,onRegistered:this.onRegistered,onRegisterError:this.onRegisterError})}};Kh=Cre([D],Kh);var $re=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(oe,{staticClass:"mx-0",attrs:{persistent:"","max-width":"400"},model:{value:e.showDialog,callback:function(r){e.showDialog=r},expression:"showDialog"}},[t(B,{attrs:{title:e.$t("App.TheServiceWorker.TitleNeedUpdate"),"card-class":"service-worker-dialog","margin-bottom":!1}},[t(q,[t("p",[e._v(e._s(e.$t("App.TheServiceWorker.DescriptionNeedUpdate")))])]),t(ne,[t(ae),t(g,{attrs:{text:"",color:"primary"},on:{click:e.update}},[e._v(e._s(e.$t("App.TheServiceWorker.Update")))])],1)],1)],1)},xre=[];const H0={};var wre=E(Kh,$re,xre,!1,Sre,null,null,null);function Sre(e){for(let s in H0)this[s]=H0[s]}const Pre=function(){return wre.exports}();var Dre=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(TP,{style:e.cssVars},[e.socketIsConnected&&e.guiIsReady?[t(Q$),t(Gx),t(MP,{style:e.mainStyle,attrs:{id:"content"}},[t(Ae,{class:e.containerClasses,attrs:{id:"page-container",fluid:""}},[t("router-view")],1)],1),t(Pre),t(Zx),t(ow),t(lw),t(cw),t(dw),t(mw),t(hw),t(fw),t(iS)]:e.instancesDB!=="moonraker"?t(Op):t(qx)],2)},Tre=[];const I0={};var Mre=E(Ut,Dre,Tre,!1,Ere,null,null,null);function Ere(e){for(let s in I0)this[s]=I0[s]}const Ore=function(){return Mre.exports}();y.use(cy,{directives:{Touch:EP,Ripple:OP}});const nS=new cy({theme:{dark:!0,options:{customProperties:!0}},icons:{iconfont:"mdiSvg"},breakpoint:{mobileBreakpoint:768}});/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/function Lre(e){var s=Number(e.version.split(".")[0]);if(s>=2)e.mixin({beforeCreate:r});else{var t=e.prototype._init;e.prototype._init=function(i){i===void 0&&(i={}),i.init=i.init?[r].concat(i.init):r,t.call(this,i)}}function r(){var i=this.$options;i.store?this.$store=typeof i.store=="function"?i.store():i.store:i.parent&&i.parent.$store&&(this.$store=i.parent.$store)}}var Are=typeof window<"u"?window:typeof global<"u"?global:{},li=Are.__VUE_DEVTOOLS_GLOBAL_HOOK__;function kre(e){li&&(e._devtoolHook=li,li.emit("vuex:init",e),li.on("vuex:travel-to-state",function(s){e.replaceState(s)}),e.subscribe(function(s,t){li.emit("vuex:mutation",s,t)},{prepend:!0}),e.subscribeAction(function(s,t){li.emit("vuex:action",s,t)},{prepend:!0}))}function Fre(e,s){return e.filter(s)[0]}function Qh(e,s){if(s===void 0&&(s=[]),e===null||typeof e!="object")return e;var t=Fre(s,function(i){return i.original===e});if(t)return t.copy;var r=Array.isArray(e)?[]:{};return s.push({original:e,copy:r}),Object.keys(e).forEach(function(i){r[i]=Qh(e[i],s)}),r}function mn(e,s){Object.keys(e).forEach(function(t){return s(e[t],t)})}function aS(e){return e!==null&&typeof e=="object"}function Rre(e){return e&&typeof e.then=="function"}function jre(e,s){return function(){return e(s)}}var fs=function(s,t){this.runtime=t,this._children=Object.create(null),this._rawModule=s;var r=s.state;this.state=(typeof r=="function"?r():r)||{}},oS={namespaced:{configurable:!0}};oS.namespaced.get=function(){return!!this._rawModule.namespaced};fs.prototype.addChild=function(s,t){this._children[s]=t};fs.prototype.removeChild=function(s){delete this._children[s]};fs.prototype.getChild=function(s){return this._children[s]};fs.prototype.hasChild=function(s){return s in this._children};fs.prototype.update=function(s){this._rawModule.namespaced=s.namespaced,s.actions&&(this._rawModule.actions=s.actions),s.mutations&&(this._rawModule.mutations=s.mutations),s.getters&&(this._rawModule.getters=s.getters)};fs.prototype.forEachChild=function(s){mn(this._children,s)};fs.prototype.forEachGetter=function(s){this._rawModule.getters&&mn(this._rawModule.getters,s)};fs.prototype.forEachAction=function(s){this._rawModule.actions&&mn(this._rawModule.actions,s)};fs.prototype.forEachMutation=function(s){this._rawModule.mutations&&mn(this._rawModule.mutations,s)};Object.defineProperties(fs.prototype,oS);var Qr=function(s){this.register([],s,!1)};Qr.prototype.get=function(s){return s.reduce(function(t,r){return t.getChild(r)},this.root)};Qr.prototype.getNamespace=function(s){var t=this.root;return s.reduce(function(r,i){return t=t.getChild(i),r+(t.namespaced?i+"/":"")},"")};Qr.prototype.update=function(s){lS([],this.root,s)};Qr.prototype.register=function(s,t,r){var i=this;r===void 0&&(r=!0);var n=new fs(t,r);if(s.length===0)this.root=n;else{var a=this.get(s.slice(0,-1));a.addChild(s[s.length-1],n)}t.modules&&mn(t.modules,function(o,l){i.register(s.concat(l),o,r)})};Qr.prototype.unregister=function(s){var t=this.get(s.slice(0,-1)),r=s[s.length-1],i=t.getChild(r);i&&i.runtime&&t.removeChild(r)};Qr.prototype.isRegistered=function(s){var t=this.get(s.slice(0,-1)),r=s[s.length-1];return t?t.hasChild(r):!1};function lS(e,s,t){if(s.update(t),t.modules)for(var r in t.modules){if(!s.getChild(r))return;lS(e.concat(r),s.getChild(r),t.modules[r])}}var Ot,Bt=function(s){var t=this;s===void 0&&(s={}),!Ot&&typeof window<"u"&&window.Vue&&dS(window.Vue);var r=s.plugins;r===void 0&&(r=[]);var i=s.strict;i===void 0&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Qr(s),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new Ot,this._makeLocalGettersCache=Object.create(null);var n=this,a=this,o=a.dispatch,l=a.commit;this.dispatch=function(m,h){return o.call(n,m,h)},this.commit=function(m,h,p){return l.call(n,m,h,p)},this.strict=i;var c=this._modules.root.state;Qu(this,c,[],this._modules.root),ig(this,c),r.forEach(function(d){return d(t)});var u=s.devtools!==void 0?s.devtools:Ot.config.devtools;u&&kre(this)},rg={state:{configurable:!0}};rg.state.get=function(){return this._vm._data.$$state};rg.state.set=function(e){};Bt.prototype.commit=function(s,t,r){var i=this,n=wc(s,t,r),a=n.type,o=n.payload,l={type:a,payload:o},c=this._mutations[a];c&&(this._withCommit(function(){c.forEach(function(d){d(o)})}),this._subscribers.slice().forEach(function(u){return u(l,i.state)}))};Bt.prototype.dispatch=function(s,t){var r=this,i=wc(s,t),n=i.type,a=i.payload,o={type:n,payload:a},l=this._actions[n];if(l){try{this._actionSubscribers.slice().filter(function(u){return u.before}).forEach(function(u){return u.before(o,r.state)})}catch{}var c=l.length>1?Promise.all(l.map(function(u){return u(a)})):l[0](a);return new Promise(function(u,d){c.then(function(m){try{r._actionSubscribers.filter(function(h){return h.after}).forEach(function(h){return h.after(o,r.state)})}catch{}u(m)},function(m){try{r._actionSubscribers.filter(function(h){return h.error}).forEach(function(h){return h.error(o,r.state,m)})}catch{}d(m)})})}};Bt.prototype.subscribe=function(s,t){return cS(s,this._subscribers,t)};Bt.prototype.subscribeAction=function(s,t){var r=typeof s=="function"?{before:s}:s;return cS(r,this._actionSubscribers,t)};Bt.prototype.watch=function(s,t,r){var i=this;return this._watcherVM.$watch(function(){return s(i.state,i.getters)},t,r)};Bt.prototype.replaceState=function(s){var t=this;this._withCommit(function(){t._vm._data.$$state=s})};Bt.prototype.registerModule=function(s,t,r){r===void 0&&(r={}),typeof s=="string"&&(s=[s]),this._modules.register(s,t),Qu(this,this.state,s,this._modules.get(s),r.preserveState),ig(this,this.state)};Bt.prototype.unregisterModule=function(s){var t=this;typeof s=="string"&&(s=[s]),this._modules.unregister(s),this._withCommit(function(){var r=ng(t.state,s.slice(0,-1));Ot.delete(r,s[s.length-1])}),uS(this)};Bt.prototype.hasModule=function(s){return typeof s=="string"&&(s=[s]),this._modules.isRegistered(s)};Bt.prototype.hotUpdate=function(s){this._modules.update(s),uS(this,!0)};Bt.prototype._withCommit=function(s){var t=this._committing;this._committing=!0,s(),this._committing=t};Object.defineProperties(Bt.prototype,rg);function cS(e,s,t){return s.indexOf(e)<0&&(t&&t.prepend?s.unshift(e):s.push(e)),function(){var r=s.indexOf(e);r>-1&&s.splice(r,1)}}function uS(e,s){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var t=e.state;Qu(e,t,[],e._modules.root,!0),ig(e,t,s)}function ig(e,s,t){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,n={};mn(i,function(o,l){n[l]=jre(o,e),Object.defineProperty(e.getters,l,{get:function(){return e._vm[l]},enumerable:!0})});var a=Ot.config.silent;Ot.config.silent=!0,e._vm=new Ot({data:{$$state:s},computed:n}),Ot.config.silent=a,e.strict&&Bre(e),r&&(t&&e._withCommit(function(){r._data.$$state=null}),Ot.nextTick(function(){return r.$destroy()}))}function Qu(e,s,t,r,i){var n=!t.length,a=e._modules.getNamespace(t);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!n&&!i){var o=ng(s,t.slice(0,-1)),l=t[t.length-1];e._withCommit(function(){Ot.set(o,l,r.state)})}var c=r.context=Hre(e,a,t);r.forEachMutation(function(u,d){var m=a+d;Nre(e,m,u,c)}),r.forEachAction(function(u,d){var m=u.root?d:a+d,h=u.handler||u;Vre(e,m,h,c)}),r.forEachGetter(function(u,d){var m=a+d;Ure(e,m,u,c)}),r.forEachChild(function(u,d){Qu(e,s,t.concat(d),u,i)})}function Hre(e,s,t){var r=s==="",i={dispatch:r?e.dispatch:function(n,a,o){var l=wc(n,a,o),c=l.payload,u=l.options,d=l.type;return(!u||!u.root)&&(d=s+d),e.dispatch(d,c)},commit:r?e.commit:function(n,a,o){var l=wc(n,a,o),c=l.payload,u=l.options,d=l.type;(!u||!u.root)&&(d=s+d),e.commit(d,c,u)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return Ire(e,s)}},state:{get:function(){return ng(e.state,t)}}}),i}function Ire(e,s){if(!e._makeLocalGettersCache[s]){var t={},r=s.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,r)===s){var n=i.slice(r);Object.defineProperty(t,n,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[s]=t}return e._makeLocalGettersCache[s]}function Nre(e,s,t,r){var i=e._mutations[s]||(e._mutations[s]=[]);i.push(function(a){t.call(e,r.state,a)})}function Vre(e,s,t,r){var i=e._actions[s]||(e._actions[s]=[]);i.push(function(a){var o=t.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},a);return Rre(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):o})}function Ure(e,s,t,r){e._wrappedGetters[s]||(e._wrappedGetters[s]=function(n){return t(r.state,r.getters,n.state,n.getters)})}function Bre(e){e._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function ng(e,s){return s.reduce(function(t,r){return t[r]},e)}function wc(e,s,t){return aS(e)&&e.type&&(t=s,s=e,e=e.type),{type:e,payload:s,options:t}}function dS(e){Ot&&e===Ot||(Ot=e,Lre(Ot))}var mS=td(function(e,s){var t={};return ed(s).forEach(function(r){var i=r.key,n=r.val;t[i]=function(){var o=this.$store.state,l=this.$store.getters;if(e){var c=sd(this.$store,"mapState",e);if(!c)return;o=c.context.state,l=c.context.getters}return typeof n=="function"?n.call(this,o,l):o[n]},t[i].vuex=!0}),t}),hS=td(function(e,s){var t={};return ed(s).forEach(function(r){var i=r.key,n=r.val;t[i]=function(){for(var o=[],l=arguments.length;l--;)o[l]=arguments[l];var c=this.$store.commit;if(e){var u=sd(this.$store,"mapMutations",e);if(!u)return;c=u.context.commit}return typeof n=="function"?n.apply(this,[c].concat(o)):c.apply(this.$store,[n].concat(o))}}),t}),pS=td(function(e,s){var t={};return ed(s).forEach(function(r){var i=r.key,n=r.val;n=e+n,t[i]=function(){if(!(e&&!sd(this.$store,"mapGetters",e)))return this.$store.getters[n]},t[i].vuex=!0}),t}),fS=td(function(e,s){var t={};return ed(s).forEach(function(r){var i=r.key,n=r.val;t[i]=function(){for(var o=[],l=arguments.length;l--;)o[l]=arguments[l];var c=this.$store.dispatch;if(e){var u=sd(this.$store,"mapActions",e);if(!u)return;c=u.context.dispatch}return typeof n=="function"?n.apply(this,[c].concat(o)):c.apply(this.$store,[n].concat(o))}}),t}),Wre=function(e){return{mapState:mS.bind(null,e),mapGetters:pS.bind(null,e),mapMutations:hS.bind(null,e),mapActions:fS.bind(null,e)}};function ed(e){return Gre(e)?Array.isArray(e)?e.map(function(s){return{key:s,val:s}}):Object.keys(e).map(function(s){return{key:s,val:e[s]}}):[]}function Gre(e){return Array.isArray(e)||aS(e)}function td(e){return function(s,t){return typeof s!="string"?(t=s,s=""):s.charAt(s.length-1)!=="/"&&(s+="/"),e(s,t)}}function sd(e,s,t){var r=e._modulesNamespaceMap[t];return r}function zre(e){e===void 0&&(e={});var s=e.collapsed;s===void 0&&(s=!0);var t=e.filter;t===void 0&&(t=function(u,d,m){return!0});var r=e.transformer;r===void 0&&(r=function(u){return u});var i=e.mutationTransformer;i===void 0&&(i=function(u){return u});var n=e.actionFilter;n===void 0&&(n=function(u,d){return!0});var a=e.actionTransformer;a===void 0&&(a=function(u){return u});var o=e.logMutations;o===void 0&&(o=!0);var l=e.logActions;l===void 0&&(l=!0);var c=e.logger;return c===void 0&&(c=console),function(u){var d=Qh(u.state);typeof c>"u"||(o&&u.subscribe(function(m,h){var p=Qh(h);if(t(m,d,p)){var f=U0(),b=i(m),C="mutation "+m.type+f;N0(c,C,s),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(d)),c.log("%c mutation","color: #03A9F4; font-weight: bold",b),c.log("%c next state","color: #4CAF50; font-weight: bold",r(p)),V0(c)}d=p}),l&&u.subscribeAction(function(m,h){if(n(m,h)){var p=U0(),f=a(m),b="action "+m.type+p;N0(c,b,s),c.log("%c action","color: #03A9F4; font-weight: bold",f),V0(c)}}))}}function N0(e,s,t){var r=t?e.groupCollapsed:e.group;try{r.call(e,s)}catch{e.log(s)}}function V0(e){try{e.groupEnd()}catch{e.log("—— log end ——")}}function U0(){var e=new Date;return" @ "+bo(e.getHours(),2)+":"+bo(e.getMinutes(),2)+":"+bo(e.getSeconds(),2)+"."+bo(e.getMilliseconds(),3)}function Zre(e,s){return new Array(s+1).join(e)}function bo(e,s){return Zre("0",s-e.toString().length)+e}var qre={Store:Bt,install:dS,version:"3.6.2",mapState:mS,mapMutations:hS,mapGetters:pS,mapActions:fS,createNamespacedHelpers:Wre,createLogger:zre};const gS=qre,Xre={switchToDashboard(){Sa.currentRoute.fullPath!=="/"&&Sa.push("/")},changePrinter({dispatch:e,getters:s},t){e("files/reset"),e("gui/reset"),e("printer/reset"),e("server/reset"),e("socket/reset");const r=s["farm/"+t.printer+"/getSocketData"];e("socket/setSocket",{hostname:r.hostname,port:r.port,path:r.path})},setNaviDrawer({commit:e},s){e("setNaviDrawer",s)},async importConfigJson({commit:e},s){var r;let t=(r=s.instancesDB)!=null?r:"moonraker";if({}.VUE_APP_INSTANCES_DB&&(t={}.VUE_APP_INSTANCES_DB),t!=="moonraker"){e("setInstancesDB",t),t==="json"&&"instances"in s&&Array.isArray(s.instances)&&s.instances.length&&e("setConfigInstances",s.instances);return}s.hostname&&e("socket/setData",{hostname:s.hostname}),s.port&&e("socket/setData",{port:parseInt(s.port.toString())}),s.path&&e("socket/setData",{route_prefix:s.path})}},Yre={setNaviDrawer(e,s){y.set(e,"naviDrawer",s),localStorage.setItem("naviDrawer",s)},setInstancesDB(e,s){y.set(e,"instancesDB",s)},setConfigInstances(e,s){y.set(e,"configInstances",s)}},Jre={getVersion:e=>e.packageVersion,getTitle:(e,s)=>{var r,i,n,a,o,l,c,u,d,m,h,p,f,b,C,S,L,N,R,x,T,I;if(!((r=e.socket)!=null&&r.isConnected))return"Mainsail";if(((i=e.server)==null?void 0:i.klippy_state)!=="ready")return ve.t("App.Titles.Error");let t=(o=(a=(n=e.printer)==null?void 0:n.print_stats)==null?void 0:a.state)!=null?o:"";if(e.printer&&((l=e.printer["gcode_macro TIMELAPSE_TAKE_FRAME"])!=null&&l.is_paused)&&t==="paused"&&(t="printing"),t==="paused")return ve.t("App.Titles.Pause");if(((u=(c=e.printer)==null?void 0:c.print_stats)==null?void 0:u.state)==="complete"){let j=ve.t("App.Titles.Complete",{filename:e.printer.print_stats.filename});return(d=e.gui)!=null&&d.general.printername&&(j+="- ".concat((m=e.gui)==null?void 0:m.general.printername)),j}if(t==="printing"){const j=s["printer/getEstimatedTimeETAFormat"],W=Math.floor(s["printer/getPrintPercent"]*100);if(j!=="--"){let re=ve.t("App.Titles.PrintingETA",{percent:W,filename:(p=(h=e.printer)==null?void 0:h.print_stats)==null?void 0:p.filename,eta:j});return(f=e.gui)!=null&&f.general.printername&&(re+="- ".concat((b=e.gui)==null?void 0:b.general.printername)),re}let Z=ve.t("App.Titles.Printing",{percent:W,filename:(S=(C=e.printer)==null?void 0:C.print_stats)==null?void 0:S.filename});return(L=e.gui)!=null&&L.general.printername&&(Z+="- ".concat((N=e.gui)==null?void 0:N.general.printername)),Z}return(I=(T=(R=e.gui)==null?void 0:R.general.printername)!=null?T:(x=e.printer)==null?void 0:x.hostname)!=null?I:"Mainsail"},getDependencies:e=>{var b,C,S,L,N,R,x,T,I,j,W,Z;const s=[],t=(C=(b=e.printer)==null?void 0:b.software_version)!=null?C:"",r=t.split("-"),i=(S=r[0])!=null?S:"",n=parseInt((L=r[1])!=null?L:0),a=yg.split("-"),o=(N=a[0])!=null?N:"",l=parseInt((R=a[1])!=null?R:0);rt.valid(i)&&(rt.gt(o,i)||rt.eq(o,i)&&n<l)&&s.push({serviceName:"Klipper",installedVersion:t,neededVersion:yg});const c=(T=(x=e.server)==null?void 0:x.moonraker_version)!=null?T:"",u=c.split("-"),d=(I=u[0])!=null?I:"",m=parseInt((j=u[1])!=null?j:0),h=Cg.split("-"),p=(W=h[0])!=null?W:"",f=parseInt((Z=h[1])!=null?Z:0);return rt.valid(d)&&(rt.gt(p,d)||rt.eq(p,d)&&m<f)&&s.push({serviceName:"Moonraker",installedVersion:c,neededVersion:Cg}),s}},Kre={reset({commit:e}){e("setDisconnected"),e("clearLoadings"),e("reset")},setData({commit:e},s){e("setData",s)},async setSocket({commit:e,state:s},t){if(e("setData",t),"$socket"in y.prototype){const r=t.path.replaceAll(/(^\/*)|(\/*$)/g,""),i=r.length>0?"/".concat(r):"";await y.prototype.$socket.close(),await y.prototype.$socket.setUrl(s.protocol+"://"+t.hostname+":"+t.port+i+"/websocket"),await y.prototype.$socket.connect()}},onOpen({commit:e,dispatch:s,rootState:t}){var r,i;e("setConnected"),s("server/init",null,{root:!0}),(i=(r=t==null?void 0:t.server)==null?void 0:r.updateManager)!=null&&i.updateResponse.complete||e("server/updateManager/setStatus",{busy:!1},{root:!0})},onClose({commit:e}){e("setDisconnected")},onMessage({commit:e,dispatch:s},t){switch(t.method){case"notify_status_update":s("printer/getData",t.params[0],{root:!0});break;case"notify_gcode_response":s("server/addEvent",Object.assign({result:t.params[0]},{send:!1}),{root:!0});break;case"notify_klippy_ready":e("server/setKlippyConnected",null,{root:!0}),s("server/stopKlippyConnectedInterval",null,{root:!0}),s("server/stopKlippyStateInterval",null,{root:!0}),s("printer/init",null,{root:!0});break;case"notify_klippy_disconnected":s("server/setKlippyDisconnected",null,{root:!0});break;case"notify_klippy_shutdown":s("server/setKlippyShutdown",null,{root:!0});break;case"notify_proc_stat_update":s("server/updateProcStats",t.params[0],{root:!0});break;case"notify_cpu_throttled":e("server/setThrottledState",t.params[0],{root:!0});break;case"notify_filelist_changed":s("files/filelist_changed",t.params[0],{root:!0});break;case"notify_metadata_update":e("files/setMetadata",t.params[0],{root:!0});break;case"notify_power_changed":e("server/power/setStatus",t.params[0],{root:!0});break;case"notify_update_response":e("server/updateManager/addUpdateResponse",t.params[0],{root:!0});break;case"notify_update_refreshed":s("server/updateManager/onUpdateStatus",t.params[0],{root:!0});break;case"notify_history_changed":s("server/history/getChanged",t.params[0],{root:!0});break;case"notify_service_state_changed":s("server/serviceStateChanged",t.params[0],{root:!0});break;case"notify_timelapse_event":s("server/timelapse/getEvent",t.params[0],{root:!0});break;case"notify_job_queue_changed":s("server/jobQueue/getEvent",t.params[0],{root:!0});break;case"notify_announcement_update":s("server/announcements/getList",t.params[0],{root:!0});break;case"notify_announcement_dismissed":s("server/announcements/getDismissed",t.params[0],{root:!0});break;case"notify_announcement_wake":s("server/announcements/getWaked",t.params[0],{root:!0});break;case"notify_webcams_changed":s("gui/webcams/initStore",t.params[0],{root:!0});break;case"notify_active_spool_set":s("server/spoolman/getActiveSpoolId",t.params[0],{root:!0});break;case"notify_sensor_update":s("server/sensor/updateSensors",t.params[0],{root:!0});break;default:window.console.debug(t)}},addLoading({commit:e},s){e("addLoading",s)},removeLoading({commit:e},s){e("removeLoading",s)},clearLoadings({commit:e}){e("clearLoadings")},addInitModule({commit:e},s){e("addInitModule",s)},removeInitModule({commit:e},s){e("removeInitModule",s)},removeInitComponent({commit:e},s){e("removeInitComponent",s)},reportDebug(e,s){window.console.log(s)}},Qre={reset(e){const s=vS();y.set(e,"initializationList",s.initializationList)},setConnected(e){y.set(e,"isConnected",!0),y.set(e,"isConnecting",!1),y.set(e,"connectingFailed",!1)},setDisconnected(e){y.set(e,"isConnected",!1),y.set(e,"isConnecting",!1),y.set(e,"connectingFailed",!0),y.set(e,"connection_id",null)},setData(e,s){"socket"in s&&(s=s.socket),Object.entries(s).forEach(([t,r])=>{y.set(e,t,r)})},addLoading(e,s){e.loadings.push(s.name)},removeLoading(e,s){const t=e.loadings.indexOf(s.name);t>-1&&e.loadings.splice(t,1)},clearLoadings(e){e.loadings.length&&y.set(e,"loadings",[])},addInitModule(e,s){const t=[...e.initializationList];t.indexOf(s)>-1||(t.push(s),y.set(e,"initializationList",t))},removeInitModule(e,s){const t=[...e.initializationList],r=t.indexOf(s);r!==-1&&(t.splice(r,1),y.set(e,"initializationList",t))},removeInitComponent(e,s){const t=[...e.initializationList],r=t.reduce((i,n,a)=>(n.startsWith(s)&&i.push(a),i),[]);r.length&&(r.forEach(i=>t.splice(i,1)),y.set(e,"initializationList",t))}},eie={getUrl:e=>{const s=e.port!==80?":"+e.port:"";let t="/"+e.path.replace(/^\/|\/$/g,"");return t.endsWith("/")&&(t=t.slice(0,-1)),"//".concat(e.hostname).concat(s).concat(t)},getHostUrl:e=>{const s=e.protocol==="wss"?"https":"http";return"".concat(s,"://").concat(e.hostname,"/")},getWebsocketUrl:(e,s)=>e.protocol+":"+s.getUrl+"/websocket"},vS=()=>{const e={}.VUE_APP_HOSTNAME||window.location.hostname,s=window.location.port||(window.location.protocol==="https:"?443:80),t={}.VUE_APP_PORT?Number({}.VUE_APP_PORT):Number(s),r={}.VUE_APP_PATH||"";return{hostname:e,port:t,path:r,protocol:document.location.protocol==="https:"?"wss":"ws",reconnectInterval:Number({}.VUE_APP_RECONNECT_INTERVAL||2e3),isConnected:!1,isConnecting:!1,connectingFailed:!1,loadings:[],initializationList:["server"],connection_id:null}},tie=vS(),sie={namespaced:!0,state:tie,getters:eie,actions:Kre,mutations:Qre},rie={reset({commit:e,dispatch:s}){s("stopKlippyConnectedInterval"),s("stopKlippyStateInterval"),e("reset"),s("power/reset"),s("updateManager/reset")},async init({dispatch:e}){window.console.debug("init Server"),e("socket/addInitModule","server/info",{root:!0}),e("socket/addInitModule","server/config",{root:!0}),e("socket/addInitModule","server/systemInfo",{root:!0}),e("socket/addInitModule","server/procStats",{root:!0}),e("socket/addInitModule","server/databaseList",{root:!0}),e("identify"),y.$socket.emit("server.info",{},{action:"server/initServerInfo"}),y.$socket.emit("server.config",{},{action:"server/initServerConfig"}),y.$socket.emit("machine.system_info",{},{action:"server/initSystemInfo"}),y.$socket.emit("machine.proc_stats",{},{action:"server/initProcStats"}),y.$socket.emit("server.database.list",{root:"config"},{action:"server/checkDatabases"}),await e("socket/removeInitModule","server",{root:!0})},identify({dispatch:e,rootState:s}){e("socket/addInitModule","server/identify",{root:!0}),y.$socket.emit("server.connection.identify",{client_name:"mainsail",version:s.packageVersion,type:"web",url:"https://github.com/mainsail-crew/mainsail"},{action:"server/setConnectionId"})},setConnectionId({commit:e,dispatch:s},t){e("setConnectionId",t.connection_id),s("socket/removeInitModule","server/identify",{root:!0})},checkDatabases({dispatch:e,commit:s},t){var r,i;(r=t.namespaces)!=null&&r.includes("mainsail")?(e("socket/addInitModule","gui/init",{root:!0}),e("gui/init",null,{root:!0})):e("gui/initDb",null,{root:!0}),(i=t.namespaces)!=null&&i.includes("maintenance")?(e("socket/addInitModule","gui/maintenance/init",{root:!0}),e("gui/maintenance/init",null,{root:!0})):e("gui/maintenance/initDb",null,{root:!0}),e("socket/addInitModule","gui/webcam/init",{root:!0}),e("gui/webcams/init",null,{root:!0}),s("saveDbNamespaces",t.namespaces),y.$socket.emit("server.info",{},{action:"server/checkKlippyConnected"}),e("socket/removeInitModule","server/databaseList",{root:!0})},initServerInfo({dispatch:e,commit:s},t){var r,i;if("plugins"in t&&delete t.plugins,"failed_plugins"in t&&delete t.failed_plugins,(r=t.components)!=null&&r.length)for(let n of t.components)n=PE(n),yy.includes(n)&&(window.console.debug("init server component: "+n),e("socket/addInitModule","server/"+n+"/init",{root:!0}),e("server/"+n+"/init",{},{root:!0}));(i=t.registered_directories)!=null&&i.length&&e("files/initRootDirs",t.registered_directories,{root:!0}),s("setData",t),e("socket/removeInitModule","server/info",{root:!0})},initServerConfig({commit:e,dispatch:s},t){e("setConfig",t),s("socket/removeInitModule","server/config",{root:!0})},initSystemInfo({commit:e,dispatch:s},t){e("setSystemInfo",t.system_info),s("socket/removeInitModule","server/systemInfo",{root:!0})},initProcStats({commit:e,dispatch:s},t){if(t.throttled_state!==null&&e("setThrottledState",t.throttled_state),t.system_uptime){const r=new Date(new Date().getTime()-t.system_uptime*1e3);e("setSystemBootAt",r)}s("socket/removeInitModule","server/procStats",{root:!0})},updateProcStats({commit:e},s){"cpu_temp"in s&&e("setCpuTemp",s.cpu_temp),"moonraker_stats"in s&&e("setMoonrakerStats",s.moonraker_stats),"network"in s&&e("setNetworkStats",s.network),"system_cpu_usage"in s&&e("setCpuStats",s.system_cpu_usage)},setKlippyReady({dispatch:e}){e("stopKlippyConnectedInterval"),e("stopKlippyStateInterval"),e("printer/reset",null,{root:!0}),e("printer/init",null,{root:!0})},setKlippyDisconnected({commit:e,dispatch:s}){e("setKlippyDisconnected",null),s("stopKlippyStateInterval"),s("startKlippyConnectedInterval")},setKlippyShutdown({commit:e,dispatch:s}){e("setKlippyShutdown",null),s("stopKlippyStateInterval"),s("startKlippyConnectedInterval")},startKlippyConnectedInterval({commit:e,state:s}){if(s.klippy_connected_timer)return;const t=setInterval(()=>{y.$socket.emit("server.info",{},{action:"server/checkKlippyConnected"})},2e3);e("setKlippyConnectedTimer",t)},stopKlippyConnectedInterval({commit:e,state:s}){s.klippy_connected_timer!==null&&(clearInterval(s.klippy_connected_timer),e("setKlippyConnectedTimer",null))},checkKlippyConnected({commit:e,dispatch:s},t){if(!t.klippy_connected){s("startKlippyConnectedInterval");return}s("stopKlippyConnectedInterval"),e("setKlippyConnected"),s("checkKlippyState",{state:t.klippy_state,state_message:null})},startKlippyStateInterval({commit:e,state:s}){if(s.klippy_state_timer)return;const t=setInterval(()=>{y.$socket.emit("printer.info",{},{action:"server/checkKlippyState"})},2e3);e("setKlippyStateTimer",t)},stopKlippyStateInterval({commit:e,state:s}){s.klippy_state_timer!==null&&(clearInterval(s.klippy_state_timer),e("setKlippyStateTimer",null))},checkKlippyState({commit:e,dispatch:s},t){if(e("setKlippyState",t.state),e("setKlippyMessage",t.state_message),t.state!=="ready"){s("startKlippyStateInterval");return}s("stopKlippyConnectedInterval"),s("stopKlippyStateInterval"),s("printer/init",null,{root:!0})},getData({commit:e},s){e("setData",s)},getGcodeStore({commit:e,dispatch:s,rootGetters:t},r){e("clearGcodeStore");let i=r.gcode_store;t["gui/console/getConsolefilterRules"].forEach(o=>{try{const l=new RegExp(o);i=i.filter(c=>!l.test(c.message))}catch{window.console.error("Custom console filter '"+o+"' doesn't work")}});const a=t["gui/console/getConsoleClearedSince"];i=i.filter(o=>a?o.time&&o.time*1e3<a?!1:!(o.date&&new Date(o.date).valueOf()<a):!0),e("setGcodeStore",i),s("socket/removeInitModule","server/gcode_store",{root:!0})},addRootDirectory({commit:e,state:s},t){s.registered_directories.includes(t.item.root)||e("addRootDirectory",{name:t.item.root})},addEvent({commit:e,rootGetters:s},t){let r=t,i="response";typeof t=="object"&&"type"in t&&(i=t.type),"message"in t?r=t.message:"result"in t?r=t.result:"error"in t&&(r=r.error.message);let n=Ap(r);i==="response"&&r.startsWith("// action:")&&(i="action");const a=s["gui/console/getConsolefilterRules"];let o=!0;a.every(l=>{try{new RegExp(l).test(n)&&(o=!1)}catch{window.console.error("Custom console filter '"+l+"' doesn't work!")}return o}),o&&(t.type==="command"&&(n='<a class="command text--blue">'+n+"</a>"),e("addEvent",{date:new Date,message:r,formatMessage:n,type:i}),["error","response"].includes(i)&&!["/","/console"].includes(Sa.currentRoute.path)&&r.startsWith("!! ")&&y.$toast.error(n))},serviceStateChanged({commit:e},s){e("updateServiceState",s)},addFailedInitComponent({commit:e},s){e("removeComponent",s),e("addFailedInitComponent",s)}},iie={reset(e){Object.assign(e,PS())},setKlippyConnected(e){y.set(e,"klippy_connected",!0)},setKlippyState(e,s){y.set(e,"klippy_state",s)},setKlippyStateTimer(e,s){y.set(e,"klippy_state_timer",s)},setKlippyMessage(e,s){y.set(e,"klippy_message",s)},setKlippyDisconnected(e){y.set(e,"klippy_connected",!1),y.set(e,"klippy_state","disconnected"),y.set(e,"klippy_message","Disconnected...")},setKlippyShutdown(e){y.set(e,"klippy_state","shutdown"),y.set(e,"klippy_message","Shutdown...")},setCpuTemp(e,s){y.set(e,"cpu_temp",s)},setMoonrakerStats(e,s){y.set(e,"moonraker_stats",s)},setNetworkStats(e,s){y.set(e,"network_stats",s)},setCpuStats(e,s){y.set(e,"system_cpu_usage",s)},setKlippyConnectedTimer(e,s){y.set(e,"klippy_connected_timer",s)},setProcStats(e,s){y.set(e,"cpu_temp",s.cpu_temp),y.set(e,"moonraker_stats",s.moonraker_stats)},setConnectionId(e,s){y.set(e,"connection_id",s)},setData(e,s){"requestParams"in s&&delete s.requestParams,Object.entries(s).forEach(([t,r])=>{y.set(e,t,r)})},saveDbNamespaces(e,s){y.set(e,"dbNamespaces",s)},setConfig(e,s){y.set(e,"config",s)},setConsoleClearedThisSession(e){y.set(e,"console_cleared_this_session",!0)},clearGcodeStore(e){y.set(e,"events",[])},setGcodeStore(e,s){s.length>=no&&(s=s.slice(s.length-no)),s.forEach(t=>{const r=new Date(t.time*1e3);let i=Ap(t.message),n=t.type;n==="command"&&(i='<a class="command text--blue">'+i+"</a>"),n==="response"&&t.message.startsWith("// action:")&&(n="action"),e.events.push({date:r,message:t.message,formatMessage:i,type:n})})},addEvent(e,s){var t;["command","autocomplete"].includes(s.type)&&((t=e.events[e.events.length-1])==null?void 0:t.type)==="autocomplete"&&e.events.pop(),e.events.push({date:s.date,message:s.message,formatMessage:s.formatMessage,type:s.type}),e.events.length>=no&&(e.events=e.events.slice(e.events.length-no))},setSystemInfo(e,s){y.set(e,"system_info",s)},setThrottledState(e,s){s&&"bits"in s&&y.set(e.throttled_state,"bits",s.bits),s&&"flags"in s&&y.set(e.throttled_state,"flags",s.flags)},setSystemBootAt(e,s){y.set(e,"system_boot_at",s)},addRootDirectory(e,s){e.registered_directories.push(s.name)},updateServiceState(e,s){var r;const t=Object.keys(s)[0];(r=e.system_info)!=null&&r.service_state&&y.set(e.system_info.service_state,t,s[t])},addFailedInitComponent(e,s){const t=e.failed_init_components;t.includes(s)||t.push(s),y.set(e,"failed_init_components",t)},removeComponent(e,s){const t=e.components,r=t.indexOf(s);r!==-1&&(t.splice(r,1),y.set(e,"components",t))}},nie={getConsoleEvents:e=>(s=!0,t=500)=>{var i;const r=(i=[...e.events].slice(t*-1))!=null?i:[];if(r.length<20&&!e.console_cleared_this_session){const n=r.length?r[0].date:new Date;let a="";a+='- Type <a class="command text--blue">HELP</a> to get a list of available commands.\n',a+='- Click on the "?" button to get a searchable list.\n',a+="- Commands in the console are clickable and will be placed into the input field.\n",a+="- Use the tab key to complete your inputs. If there are several options, a list is displayed.\n",a+="- Use the ⇵ arrow keys to navigate through the previous entries.\n",r.unshift({date:n,message:a,formatMessage:Ap(a),type:"response"})}return s?r.reverse():r},getConfig:e=>(s,t)=>{var i,n;const r=(n=(i=e.config)==null?void 0:i.config)!=null?n:{};return s in r&&t in r[s]?r[s][t]:null},getHostStats:(e,s,t,r)=>{var n,a,o,l,c,u,d,m,h,p,f,b,C,S,L,N,R,x,T,I,j,W,Z,re,k,G,X,Y,ee,se,F,z,w,A,H,K;let i=null;if("system_info"in e){let le=null;(n=t.printer)!=null&&n.software_version&&(le=(a=t.printer)==null?void 0:a.software_version.split("-").slice(0,4).join("-")),(o=t.printer)!=null&&o.app_name&&(le=((l=t.printer)==null?void 0:l.app_name)+" "+le);let he=null;if((u=(c=e.system_info)==null?void 0:c.python)!=null&&u.version_string){const gP=(m=(d=e.system_info)==null?void 0:d.python)==null?void 0:m.version_string.indexOf(" ");he=(p=(h=e.system_info)==null?void 0:h.python)==null?void 0:p.version_string.slice(0,gP+1)}const be=(C=(b=(f=e.system_info)==null?void 0:f.cpu_info)==null?void 0:b.cpu_count)!=null?C:1,we=Math.round(((L=(S=t.printer.system_stats)==null?void 0:S.sysload)!=null?L:0)*100)/100,st=Math.round(we/be*100);let Pt="primary";st>95?Pt="error":st>80&&(Pt="warning");let Ft=null,ei=null;const hn=((R=(N=t.printer.system_stats)==null?void 0:N.memavail)!=null?R:0)*1024,Ms=((I=(T=(x=e.system_info)==null?void 0:x.cpu_info)==null?void 0:T.total_memory)!=null?I:0)*1024;hn>0&&Ms>0?(Ft=Je(Ms-hn)+" / "+Je(Ms),ei=Math.round((Ms-hn)/Ms*100)):Ms&&(Ft=Je(Ms));let od="primary";ei&&ei>95?od="error":ei&&ei>80&&(od="warning");let ld=r["printer/getHostTempSensor"];ld===null&&e.cpu_temp!==null&&(ld={temperature:(j=e.cpu_temp)==null?void 0:j.toFixed(0),measured_min_temp:null,measured_max_temp:null}),i={cpuName:(re=(Z=(W=e.system_info)==null?void 0:W.cpu_info)==null?void 0:Z.processor)!=null?re:null,cpuDesc:(X=(G=(k=e.system_info)==null?void 0:k.cpu_info)==null?void 0:G.cpu_desc)!=null?X:null,bits:(se=(ee=(Y=e.system_info)==null?void 0:Y.cpu_info)==null?void 0:ee.bits)!=null?se:null,version:le,pythonVersion:he,os:(w=(z=(F=e.system_info)==null?void 0:F.distribution)==null?void 0:z.name)!=null?w:null,release_info:(K=(H=(A=e.system_info)==null?void 0:A.distribution)==null?void 0:H.release_info)!=null?K:null,load:we,loadPercent:st<100?st:100,loadProgressColor:Pt,memoryFormat:Ft,memUsed:Je(Ms-hn),memAvail:Je(hn),memTotal:Je(Ms),memUsage:ei,memUsageColor:od,tempSensor:ld}}return i},getCpuUsage:e=>"cpu"in e.system_cpu_usage?Math.round(e.system_cpu_usage.cpu):null,getNetworkInterfaces:e=>{const s={};return Object.keys(e.network_stats).forEach(t=>{var r,i,n,a,o;t!=="lo"&&(t in((i=(r=e.system_info)==null?void 0:r.network)!=null?i:{})||t.startsWith("can"))&&(s[t]={...e.network_stats[t]},(n=e.system_info)!=null&&n.network&&t in((o=(a=e.system_info)==null?void 0:a.network)!=null?o:{})&&(s[t].details={...e.system_info.network[t]}))}),s},getThrottledStateFlags:e=>{let s=e.throttled_state.flags.filter(t=>t!=="?");return s=s.map(t=>(t=t.replace(/ /g,"").replace(/-/g,""),t.charAt(0).toUpperCase()+t.slice(1))),s}},aie={reset({commit:e}){e("reset")},init(){y.$socket.emit("machine.device_power.devices",{},{action:"server/power/getDevices"})},async getDevices({commit:e,dispatch:s},t){t.error||await e("setDevices",t.devices),await s("socket/removeInitModule","server/power/init",{root:!0})},getStatus({commit:e},s){s.error||e("setStatus",s)},responseToggle({commit:e},s){"requestParams"in s&&delete s.requestParams;for(const[t,r]of Object.entries(s))e("setStatus",{device:t,status:r})}},oie={reset(e){Object.assign(e,_S())},setDevices(e,s){y.set(e,"devices",s)},setStatus(e,s){const t=e.devices.findIndex(r=>r.device===s.device);t>=0&&y.set(e.devices[t],"status",s.status)}},lie={getDevices:e=>e.devices},_S=()=>({devices:[]}),cie=_S(),uie={namespaced:!0,state:cie,getters:lie,actions:aie,mutations:oie},die={reset({commit:e}){e("reset")},init(){y.$socket.emit("machine.update.status",{},{action:"server/updateManager/onUpdateStatus"})},async onUpdateStatus({commit:e,dispatch:s},t){var r,i;await e("resetRepos");for(const n of Object.keys(t.version_info)){const a=(r=t.version_info[n])!=null?r:{},o=(i=a.configured_type)!=null?i:null;if(["git_repo","zip"].includes(o)){await e("storeGitRepo",{...a,name:n});continue}if(["web","web_beta"].includes(o)){await e("storeWebRepo",{...a,name:n});continue}n==="system"&&await e("updateSystem",{...a})}await s("socket/removeInitModule","server/updateManager/init",{root:!0})}},mie={reset(e){Object.assign(e,bS())},resetRepos(e){y.set(e,"git_repos",[]),y.set(e,"web_repos",[]),y.set(e,"system",{package_count:0,package_list:[]})},storeGitRepo(e,s){const t=[...e.git_repos];t.push({...s}),y.set(e,"git_repos",t)},storeWebRepo(e,s){const t=[...e.web_repos];t.push({...s}),y.set(e,"web_repos",t)},updateSystem(e,s){const t={...e.system};t.package_count=s.package_count,t.package_list=s.package_list,y.set(e,"system",t)},addUpdateResponse(e,s){e.updateResponse.application!==s.application&&y.set(e.updateResponse,"application",s.application),e.updateResponse.complete!==s.complete&&y.set(e.updateResponse,"complete",s.complete),"complete"in s&&s.complete&&y.$socket.emit("machine.update.status",{refresh:!1},{action:"server/updateManager/onUpdateStatus"}),e.updateResponse.messages.push({date:new Date,message:s.message})},resetUpdateResponse(e){y.set(e,"updateResponse",{application:"",complete:!0,messages:[]})}},hie={getUpdateManagerList(e){const s=[];return e.git_repos.forEach(t=>{s.push({name:t.name,type:"git",data:{...t}})}),e.web_repos.forEach(t=>{s.push({name:t.name,type:"web",data:{...t}})}),At(s,"name")}},bS=()=>({busy:!1,github_rate_limit:null,github_requests_remaining:null,github_limit_reset_time:null,git_repos:[],web_repos:[],system:{package_count:0,package_list:[]},updateResponse:{application:"",complete:!0,messages:[]}}),pie=bS(),fie={namespaced:!0,state:pie,getters:hie,actions:die,mutations:mie},gie={reset({commit:e}){e("reset")},init(){y.$socket.emit("server.history.list",{start:0,limit:50,max:100},{action:"server/history/getHistory"}),y.$socket.emit("server.history.totals",{},{action:"server/history/getTotals"})},getTotals({commit:e},s){var r;e("setTotals",s.job_totals);const t=(r=s.auxiliary_totals)!=null?r:[];t.length&&e("setAuxiliaryTotals",t)},async getHistory({commit:e,dispatch:s,state:t},r){var o,l,c,u,d,m,h,p,f,b,C;"requestParams"in r&&((l=(o=r.requestParams)==null?void 0:o.start)!=null?l:0)===0&&e("resetJobs"),(c=r.jobs)==null||c.forEach(S=>{t.jobs.findIndex(L=>L.job_id===S.job_id)===-1&&e("addJob",S)});const i=(d=(u=r.requestParams)==null?void 0:u.start)!=null?d:0,n=(h=(m=r.requestParams)==null?void 0:m.limit)!=null?h:50,a=(f=(p=r.requestParams)==null?void 0:p.max)!=null?f:null;if(n>0&&(a===null||a>i+n)&&((b=r.jobs)==null?void 0:b.length)===n){y.$socket.emit("server.history.list",{start:i+n,limit:n,max:a},{action:"server/history/getHistory"});return}((C=r.jobs)==null?void 0:C.length)<n&&(s("socket/removeLoading",{name:"historyLoadAll"},{root:!0}),e("setAllLoaded")),s("loadHistoryNotes")},loadHistoryNotes({dispatch:e,rootState:s}){var t;(t=s.server)!=null&&t.dbNamespaces.includes("history_notes")?y.$socket.emit("server.database.get_item",{namespace:"history_notes"},{action:"server/history/initHistoryNotes"}):e("socket/removeInitModule","server/history/init",{root:!0})},async initHistoryNotes({commit:e,dispatch:s},t){const r=Object.keys(t.value);for(const i of r){const n=t.value[i];await e("setHistoryNotes",{job_id:i,text:n.text})}await s("socket/removeInitModule","server/history/init",{root:!0})},getChanged({commit:e},s){s.action==="added"?e("addJob",s.job):s.action==="finished"&&e("updateJob",s.job),y.$socket.emit("server.history.totals",{},{action:"server/history/getTotals"})},getDeletedJobs({commit:e},s){"deleted_jobs"in s&&Array.isArray(s.deleted_jobs)&&s.deleted_jobs.forEach(t=>{e("destroyJob",t)})},saveHistoryNote({commit:e},s){y.$socket.emit("server.database.post_item",{namespace:"history_notes",key:s.job_id,value:{text:s.note}}),e("setHistoryNotes",{job_id:s.job_id,text:s.note})}},vie={reset(e){Object.assign(e,yS())},resetJobs(e){y.set(e,"jobs",[])},setTotals(e,s){y.set(e,"job_totals",s)},setAuxiliaryTotals(e,s){y.set(e,"auxiliary_totals",s)},setHistoryNotes(e,s){const t=e.jobs.find(r=>r.job_id===s.job_id);t&&y.set(t,"note",s.text)},addJob(e,s){const t=[...e.jobs];t.push(s),y.set(e,"jobs",t)},updateJob(e,s){const t=e.jobs.findIndex(r=>r.job_id===s.job_id);t!==-1&&y.set(e.jobs,t,s)},destroyJob(e,s){const t=e.jobs.findIndex(r=>r.job_id===s);t!==-1&&e.jobs.splice(t,1)},setAllLoaded(e){y.set(e,"all_loaded",!0)}},_ie={getSelectedJobs:(e,s,t)=>{var i;return((i=t.gui.view.history.selectedJobs)!=null?i:[]).filter(n=>n.type==="job")},getTotalPrintTime(e){let s=0;return e.jobs.forEach(t=>{s+=t.print_duration}),s},getTotalCompletedPrintTime(e){let s=0;return e.jobs.forEach(t=>{t.status==="completed"&&(s+=t.print_duration)}),s},getLongestPrintTime(e){let s=0;return e.jobs.forEach(t=>{t.print_duration>s&&(s=t.print_duration)}),s},getTotalFilamentUsed(e){let s=0;return e.jobs.forEach(t=>{s+=t.filament_used}),s},getTotalJobsCount(e){return e.jobs.length},getTotalCompletedJobsCount(e){return e.jobs.filter(s=>s.status==="completed").length},getAvgPrintTime(e,s){const t=s.getTotalCompletedPrintTime,r=s.getTotalCompletedJobsCount;return t>0&&r>0?Math.round(t/r):0},getAllPrintStatusArrayAll(e,s,t){const r=[];return e.jobs.forEach(i=>{var a;const n=r.findIndex(o=>o.name===i.status);if(n!==-1)r[n].value+=1;else{const o=ve.te("History.StatusValues.".concat(i.status),"en")?ve.t("History.StatusValues.".concat(i.status)).toString():i.status,l={opacity:.9,color:"#424242",borderColor:"#1E1E1E",borderWidth:2,borderRadius:3};switch(i.status){case"completed":l.color="#BDBDBD";break;case"in_progress":l.color="#EEEEEE";break;case"cancelled":l.color="#616161";break}r.push({name:i.status,displayName:o,value:1,itemStyle:l,showInTable:!((a=t.gui)!=null&&a.view.history.hidePrintStatus.includes(i.status))})}}),r},getAllPrintStatusArray(e,s){const t=[...s.getAllPrintStatusArrayAll],i=e.jobs.length*.05,n=t.filter(a=>a.value<i);if(n.length>1){let a=0;n.forEach(o=>{const l=t.findIndex(c=>c.name===o.name);l!==-1&&(a+=t[l].value,t.splice(l,1))}),t.push({name:"others",displayName:ve.t("History.StatusValues.Others").toString(),value:a,itemStyle:{opacity:.9,color:"#616161",borderColor:"#1E1E1E",borderWidth:2,borderRadius:3},showInTable:!0})}return t},getSelectedPrintStatusArray(e,s,t){const r=[];return s.getSelectedJobs.forEach(i=>{var a;const n=r.findIndex(o=>o.name===i.status);if(n!==-1)r[n].value+=1;else{const o=ve.te("History.StatusValues.".concat(i.status),"en").toString()?ve.t("History.StatusValues.".concat(i.status)).toString():i.status,l={opacity:.9,color:"#424242",borderColor:"#1E1E1E",borderWidth:2,borderRadius:3};switch(i.status){case"completed":l.color="#BDBDBD";break;case"in_progress":l.color="#EEEEEE";break;case"cancelled":l.color="#616161";break}r.push({name:i.status,displayName:o,value:1,itemStyle:l,showInTable:!((a=t.gui)!=null&&a.view.history.hidePrintStatus.includes(i.status))})}}),r},getFilamentUsageArray(e,s){const t=[],r=new Date;r.setTime(r.getTime()-60*60*24*14*1e3),r.setHours(0,0,0,0);let i=[...e.jobs.filter(n=>new Date(n.start_time*1e3)>=r&&n.filament_used>0)];s.getSelectedJobs.length&&(i=[...s.getSelectedJobs.filter(n=>new Date(n.start_time*1e3)>=r&&n.filament_used>0)]);for(let n=0;n<=14;n++){const a=new Date;a.setTime(r.getTime()+60*60*24*n*1e3),t.push([new Date(a).setHours(0,0,0,0),0])}return i.length&&i.forEach(n=>{const a=new Date(n.start_time*1e3).setHours(0,0,0,0),o=t.findIndex(l=>l[0]===a);o!==-1&&(t[o][1]+=Math.round(n.filament_used)/1e3)}),t.sort((n,a)=>a[0]-n[0])},getPrinttimeAvgArray(e,s){const t=[0,0,0,0,0],r=new Date(new Date().getTime()-60*60*24*14*1e3);let i=[...e.jobs.filter(n=>new Date(n.start_time*1e3)>=r&&n.status==="completed")];return s.getSelectedJobs.length&&(i=[...s.getSelectedJobs.filter(n=>new Date(n.start_time*1e3)>=r&&n.status==="completed")]),i.length&&i.forEach(n=>{n.print_duration>0&&n.print_duration<=60*60*2?t[0]++:n.print_duration>60*60*2&&n.print_duration<=60*60*6?t[1]++:n.print_duration>60*60*6&&n.print_duration<=60*60*12?t[2]++:n.print_duration>60*60*12&&n.print_duration<=60*60*24?t[3]++:n.print_duration>60*60*24&&t[4]++}),t},getPrintStatus:e=>s=>{var t;if(e.jobs.length){const r=e.jobs.find(i=>i.job_id===s);return(t=r==null?void 0:r.status)!=null?t:""}return""},getPrintJobById:e=>s=>{if(e.jobs.length!==0)return e.jobs.find(t=>t.job_id===s)},getPrintJobsForGcodes:e=>(s,t,r,i,n)=>{if(e.jobs.length===0)return[];if(i)return e.jobs.filter(o=>{var l;return((l=o.metadata)==null?void 0:l.uuid)===i});const a=e.jobs.filter(o=>{var l,c,u;return((l=o.metadata)==null?void 0:l.size)===r&&Math.round(((u=(c=o.metadata)==null?void 0:c.modified)!=null?u:0)*1e3)===t});return a.length?a:n?a.filter(o=>o.job_id===n):[]},getPrintStatusByFilename:e=>(s,t)=>{var r;if(e.jobs.length){const i=e.jobs.find(n=>{var a,o;return n.filename===s&&Math.round(((o=(a=n.metadata)==null?void 0:a.modified)!=null?o:0)*1e3)===t});return(r=i==null?void 0:i.status)!=null?r:""}return""},getPrintStatusIconColor:()=>e=>{switch(e){case"in_progress":return"blue accent-3";case"completed":return"green";case"cancelled":return"red";default:return"orange"}},getPrintStatusTextColor:()=>e=>{switch(e){case"in_progress":return"blue--text";case"completed":return"green--text";case"cancelled":return"red--text";default:return"orange--text"}},getPrintStatusIcon:()=>e=>{switch(e){case"in_progress":return r3;case"completed":return uT;case"cancelled":return vT;default:return Wn}},getFilteredJobList:(e,s,t)=>{const r=t.gui.view.history.hidePrintStatus;return e.jobs.filter(i=>!r.includes(i.status))}},yS=()=>({jobs:[],job_totals:{total_jobs:0,total_time:0,total_print_time:0,total_filament_used:0,longest_job:0,longest_print:0},auxiliary_totals:[],all_loaded:!1}),bie=yS(),yie={namespaced:!0,state:bie,getters:_ie,actions:gie,mutations:vie},Cie={reset({commit:e}){e("reset")},init(){y.$socket.emit("machine.timelapse.get_settings",{},{action:"server/timelapse/initSettings"}),y.$socket.emit("machine.timelapse.lastframeinfo",{},{action:"server/timelapse/initLastFrameinfo"})},async initSettings({commit:e,dispatch:s},t){"requestParams"in t&&delete t.requestParams,await e("setSettings",t),await s("socket/removeInitModule","server/timelapse/init",{root:!0})},initLastFrameinfo({commit:e},s){e("setLastFrame",{count:s.framecount,file:s.lastframefile})},getEvent({commit:e},s){switch(s.action){case"newframe":e("setLastFrame",{count:parseInt(s.frame),file:s.framefile});break;case"render":s.status==="error"?(y.$toast.error(s.msg),e("resetSnackbar")):e("setRenderStatus",s);break;default:window.console.log("unknown timelapse event",s)}},saveSetting(e,s){y.$socket.emit("machine.timelapse.post_settings",s,{action:"server/timelapse/initSettings"})},updateCamSettings({dispatch:e,state:s},t){s.settings.camera===t.oldName&&e("saveSetting",{camera:t.newName})},resetSnackbar({commit:e}){e("resetSnackbar")}},$ie={reset(e){Object.assign(e,CS())},setSettings(e,s){Object.keys(s).forEach(t=>{t in e.settings&&e.settings[t]!==s[t]&&y.set(e.settings,t,s[t])})},setLastFrame(e,s){y.set(e.lastFrame,"count",s.count),y.set(e.lastFrame,"file",s.file)},setRenderStatus(e,s){var t,r;y.set(e,"rendering",{status:s.status,progress:(t=s.progress)!=null?t:0,filename:(r=s.filename)!=null?r:""})},resetSnackbar(e){y.set(e,"rendering",{status:"",progress:0,filename:""})}},xie={},CS=()=>({settings:{enabled:!0,camera:"",mode:"layermacro",autorender:!0,autorenderOnce:!1,saveframes:!1,stream_delay_compensation:.05,gcode_verbose:!0,parkhead:!1,parkpos:"back_left",park_custom_pos_x:0,park_custom_pos_y:0,park_custom_pos_dz:0,park_travel_speed:100,park_retract_speed:15,park_retract_distance:1,park_extrude_speed:15,park_extrude_distance:1,park_time:.1,fw_retract:!1,hyperlapse_cycle:30,constant_rate_factor:23,output_framerate:30,pixelformat:"yuv420p",extraoutputparams:"",variable_fps:!1,targetlength:60,variable_fps_min:5,variable_fps_max:60,rotation:0,duplicatelastframe:0,previewimage:!0,time_format_code:"%Y%m%d_%H%M",blockedsettings:[]},lastFrame:{count:0,file:""},rendering:{status:"",progress:0,filename:""}}),wie=CS(),Sie={namespaced:!0,state:wie,getters:xie,actions:Cie,mutations:$ie},Pie={reset({commit:e}){e("reset")},init(){y.$socket.emit("server.job_queue.status",{},{action:"server/jobQueue/getStatus"})},getEvent({commit:e},s){"updated_queue"in s&&s.updated_queue!==null&&e("setQueuedJobs",s.updated_queue),"queue_state"in s&&e("setQueueState",s.queue_state)},async getStatus({commit:e,dispatch:s},t){"queued_jobs"in t&&e("setQueuedJobs",t.queued_jobs),"queue_state"in t&&e("setQueueState",t.queue_state),await s("socket/removeInitModule","server/jobQueue/init",{root:!0})},async addToQueue(e,s){y.$socket.emit("server.job_queue.post_job",{filenames:s})},changeCount({dispatch:e,getters:s},t){const r=s.getJobs,i=r.findIndex(n=>n.job_id===t.job_id);i!==-1&&(r[i].combinedIds=Array(t.count-1).fill(t.job_id),e("sendNewQueueList",{jobs:r}))},changePosition({dispatch:e,getters:s},t){const r=s.getJobs,i=r.splice(t.oldIndex,1)[0];r.splice(t.newIndex,0,i),e("sendNewQueueList",{jobs:r})},startByJobId({dispatch:e,getters:s},t){const r=s.getJobs,i=r.findIndex(a=>a.job_id===t);if(i===-1)return;const n=r.splice(i,1)[0];r.splice(0,0,n),e("sendNewQueueList",{jobs:r,printStart:!0})},sendNewQueueList(e,s){const t=s.jobs.map(i=>{var a,o;const n=((o=(a=i.combinedIds)==null?void 0:a.length)!=null?o:0)+1;return n===1?i.filename:Array(n).fill(i.filename)}).flat(),r={};s.printStart&&(r.action="server/jobQueue/start"),y.$socket.emit("server.job_queue.post_job",{filenames:t,reset:!0},r)},deleteFromQueue(e,s){y.$socket.emit("server.job_queue.delete_job",{job_ids:s})},clearQueue(){y.$socket.emit("server.job_queue.delete_job",{all:!0})},start(){y.$socket.emit("server.job_queue.start",{},{loading:"startJobqueue"})},pause(){y.$socket.emit("server.job_queue.pause",{},{loading:"pauseJobqueue"})}},Die={reset(e){Object.assign(e,$S())},setQueuedJobs(e,s){y.set(e,"queued_jobs",s)},setQueueState(e,s){y.set(e,"queue_state",s)}},Tie={getJobs:(e,s,t,r)=>{const i=[];return e.queued_jobs.forEach(n=>{var l;const a={...n};if(i.length&&i[i.length-1].filename===a.filename){(l=i[i.length-1].combinedIds)==null||l.push(a.job_id);return}const o=r["files/getFile"]("gcodes/"+a.filename);o!=null&&o.metadataPulled||y.$socket.emit("server.files.metadata",{filename:a.filename},{action:"files/getMetadata"}),a.metadata=o,a.combinedIds=[],i.push(a)}),i},getJobsCount:e=>e.queued_jobs.length,getSmallThumbnail:(e,s,t,r)=>i=>{var n,a,o,l;if((a=(n=i==null?void 0:i.metadata)==null?void 0:n.thumbnails)!=null&&a.length){const c=(o=i==null?void 0:i.metadata)==null?void 0:o.thumbnails.find(d=>d.width>=bs&&d.width<=ys&&d.height>=bs&&d.height<=ys),u=i.filename.lastIndexOf("/")!==-1?"gcodes/"+i.filename.slice(0,i.filename.lastIndexOf("/")):"gcodes";if(c&&"relative_path"in c)return r["socket/getUrl"]+"/server/files/"+u+"/"+encodeURI(c.relative_path)+"?timestamp="+((l=i.metadata)==null?void 0:l.modified.getTime())}return""},getBigThumbnail:(e,s,t,r)=>i=>{var n,a,o,l;if((a=(n=i==null?void 0:i.metadata)==null?void 0:n.thumbnails)!=null&&a.length){const c=(o=i==null?void 0:i.metadata)==null?void 0:o.thumbnails.find(d=>d.width>=rr),u=i.filename.lastIndexOf("/")!==-1?"gcodes/"+i.filename.slice(0,i.filename.lastIndexOf("/")):"gcodes";if(c&&"relative_path"in c)return r["socket/getUrl"]+"/server/files/"+u+"/"+encodeURI(c.relative_path)+"?timestamp="+((l=i.metadata)==null?void 0:l.modified.getTime())}return""}},$S=()=>({queued_jobs:[],queue_state:""}),Mie=$S(),Eie={namespaced:!0,state:Mie,getters:Tie,actions:Pie,mutations:Die},Oie={reset({commit:e}){e("reset")},init(){y.$socket.emit("server.announcements.list",{},{action:"server/announcements/getList"})},async getList({commit:e,dispatch:s},t){if("entries"in t){const r=t.entries.map(i=>{const n=new Date(i.date*1e3),a=t.date_dismissed?new Date(i.date_dismissed*1e3):null,o=t.dismiss_wake?new Date(i.dismiss_wake*1e3):null;return{...i,date:n,date_dismissed:a,dismiss_wake:o}});await e("setEntries",r)}"feeds"in t&&await e("setFeeds",t.feeds),await s("socket/removeInitModule","server/announcements/init",{root:!0})},getDismissed({commit:e},s){e("setDismissed",{entry_id:s.entry_id,status:!0})},getWaked({commit:e},s){e("setDismissed",{entry_id:s.entry_id,status:!1})},close(e,s){y.$socket.emit("server.announcements.dismiss",{entry_id:s.entry_id})},dismiss(e,s){y.$socket.emit("server.announcements.dismiss",{entry_id:s.entry_id,wake_time:s.time})}},Lie={reset(e){Object.assign(e,xS())},setEntries(e,s){y.set(e,"entries",s)},setFeeds(e,s){y.set(e,"feeds",s)},setDismissed(e,s){const t=[...e.entries],r=t.findIndex(i=>i.entry_id===s.entry_id);r>-1&&(t[r].dismissed=s.status,s.status?t[r].date_dismissed=new Date:(t[r].date_dismissed=null,t[r].dismiss_wake=null)),y.set(e,"entries",t)}},Aie={getAnnouncements:e=>e.entries.filter(s=>!s.dismissed)},xS=()=>({entries:[],feeds:[]}),kie=xS(),Fie={namespaced:!0,state:kie,getters:Aie,actions:Oie,mutations:Lie};function xn(e){var s,t,r,i;return((t=(s=e.error)==null?void 0:s.message)!=null?t:null)!==null?(y.$toast.error((i=(r=e.error)==null?void 0:r.message)!=null?i:"unknown spoolman error"),null):"response"in e?e.response:e}const Rie={reset({commit:e}){e("reset")},init({dispatch:e}){y.$socket.emit("server.spoolman.get_spool_id",{},{action:"server/spoolman/getActiveSpoolId"}),y.$socket.emit("server.spoolman.proxy",{request_method:"GET",path:"/v1/info",use_v2_response:!0},{action:"server/spoolman/getInfo"}),y.$socket.emit("server.spoolman.proxy",{request_method:"GET",path:"/v1/health",use_v2_response:!0},{action:"server/spoolman/getHealth"}),y.$socket.emit("server.spoolman.proxy",{request_method:"GET",path:"/v1/vendor",use_v2_response:!0},{action:"server/spoolman/getVendors"}),e("socket/addInitModule","server/spoolman/getActiveSpoolId",{root:!0}),e("socket/addInitModule","server/spoolman/getHealth",{root:!0}),e("socket/addInitModule","server/spoolman/getInfo",{root:!0}),e("socket/addInitModule","server/spoolman/getVendors",{root:!0}),e("socket/removeInitModule","server/spoolman/init",{root:!0})},getActiveSpoolId({commit:e,dispatch:s},t){if(e("setActiveSpoolId",t.spool_id),s("socket/removeInitModule","server/spoolman/getActiveSpoolId",{root:!0}),[null,0].includes(t.spool_id)){e("setActiveSpool",null);return}y.$socket.emit("server.spoolman.proxy",{request_method:"GET",use_v2_response:!0,path:"/v1/spool/".concat(t.spool_id)},{action:"server/spoolman/getActiveSpool"})},getActiveSpool({commit:e},s){"requestParams"in s&&delete s.requestParams,s=xn(s),s!==null&&e("setActiveSpool",s)},getHealth({commit:e,dispatch:s},t){delete t.requestParams,s("socket/removeInitModule","server/spoolman/getHealth",{root:!0}),t=xn(t),t!==null&&e("setHealth",t.status)},getInfo({commit:e,dispatch:s},t){delete t.requestParams,s("socket/removeInitModule","server/spoolman/getInfo",{root:!0}),t=xn(t),t!==null&&e("setInfo",t)},getVendors({commit:e,dispatch:s},t){delete t.requestParams,s("socket/removeInitModule","server/spoolman/getVendors",{root:!0}),t=xn(t),t!==null&&e("setVendors",Object.entries(t).map(r=>r))},refreshSpools({dispatch:e}){y.$socket.emit("server.spoolman.proxy",{request_method:"GET",path:"/v1/spool"},{action:"server/spoolman/getSpools"}),e("socket/addLoading","refreshSpools",{root:!0})},getSpools({commit:e,dispatch:s},t){if("requestParams"in t&&delete t.requestParams,s("socket/removeLoading","refreshSpools",{root:!0}),t=xn(t),t===null)return;const r=Object.entries(t).map(i=>i[1]);e("setSpools",r)},setActiveSpool(e,s){const t={};s!==null&&(t.spool_id=s),y.$socket.emit("server.spoolman.post_spool_id",t)},refreshActiveSpool({state:e}){e.active_spool_id!==null&&y.$socket.emit("server.spoolman.proxy",{request_method:"GET",path:"/v1/spool/".concat(e.active_spool_id)},{action:"server/spoolman/getActiveSpool"})}},jie={reset(e){Object.assign(e,wS())},setActiveSpoolId(e,s){y.set(e,"active_spool_id",s)},setActiveSpool(e,s){y.set(e,"active_spool",s)},setHealth(e,s){y.set(e,"health",s)},setInfo(e,s){y.set(e,"info",s)},setVendors(e,s){y.set(e,"vendors",s)},setSpools(e,s){y.set(e,"spools",s)}},Hie={},wS=()=>({health:"",info:{automatic_backups:!1,backups_dir:"",data_dir:"",debug_mode:!1,version:""},active_spool_id:null,active_spool:null,vendors:[],feeds:[]}),Iie=wS(),Nie={namespaced:!0,state:Iie,getters:Hie,actions:Rie,mutations:jie},Vie={reset({commit:e}){e("reset")},init(){y.$socket.emit("server.sensors.list",{},{action:"server/sensor/getSensors"})},getSensors({commit:e,dispatch:s},t){e("setSensors",t.sensors),s("socket/removeInitModule","server/sensor/init",{root:!0})},updateSensors({commit:e},s){Object.keys(s).forEach(t=>{e("updateSensor",{key:t,value:s[t]})})}},Uie={reset(e){Object.assign(e,SS())},setSensors(e,s){y.set(e,"sensors",s)},updateSensor(e,s){s.key in e.sensors&&y.set(e.sensors[s.key],"values",s.value)}},Bie={getSensors:e=>Object.keys(e.sensors)},SS=()=>({sensors:{}}),Wie=SS(),Gie={namespaced:!0,state:Wie,getters:Bie,actions:Vie,mutations:Uie},PS=()=>({klippy_connected:!1,klippy_connected_timer:null,klippy_state:"",klippy_state_timer:null,klippy_message:"",components:[],failed_components:[],failed_init_components:[],warnings:[],registered_directories:[],events:[],config:{},system_info:null,system_boot_at:null,cpu_temp:0,moonraker_stats:null,throttled_state:{bits:0,flags:[]},network_stats:{},system_cpu_usage:{},dbNamespaces:[],websocket_count:0,moonraker_version:""}),zie=PS(),Zie={namespaced:!0,state:zie,getters:nie,actions:rie,mutations:iie,modules:{power:uie,updateManager:fie,history:yie,timelapse:Sie,jobQueue:Eie,announcements:Fie,spoolman:Nie,sensor:Gie}},qie={reset({commit:e}){e("reset"),e("tempHistory/reset"),e("socket/clearLoadings",null,{root:!0})},init({dispatch:e}){window.console.debug("init printer"),e("reset"),e("socket/addInitModule","printer/info",{root:!0}),e("socket/addInitModule","printer/initSubscripts",{root:!0}),e("socket/addInitModule","printer/initHelpList",{root:!0}),e("socket/addInitModule","printer/initTempHistory",{root:!0}),e("socket/addInitModule","server/gcode_store",{root:!0}),y.$socket.emit("printer.info",{},{action:"printer/getInfo"}),y.$socket.emit("printer.objects.list",{},{action:"printer/initSubscripts"}),y.$socket.emit("printer.gcode.help",{},{action:"printer/initHelpList"}),y.$socket.emit("server.gcode_store",{},{action:"server/getGcodeStore"})},getInfo({commit:e,dispatch:s},t){var r;e("server/setData",{klippy_state:t.state,klippy_message:t.state_message},{root:!0}),e("setData",{app_name:(r=t.app)!=null?r:null,hostname:t.hostname,software_version:t.software_version,cpu_info:t.cpu_info}),s("socket/removeInitModule","printer/info",{root:!0})},initSubscripts({dispatch:e},s){let t={};const r=["menu"];s.objects.forEach(i=>{const n=i.split(" ");r.includes(n[0])||(t={...t,[i]:null})}),Object.keys(t).length>0?y.$socket.emit("printer.objects.subscribe",{objects:t},{action:"printer/getInitData"}):y.$socket.emit("server.temperature_store",{include_monitors:!0},{action:"printer/tempHistory/init"}),e("socket/removeInitModule","printer/initSubscripts",{root:!0})},getInitData({dispatch:e},s){"screws_tilt_adjust"in s.status&&(s.status.screws_tilt_adjust.error=!1,s.status.screws_tilt_adjust.results={}),e("getData",s),y.$socket.emit("server.temperature_store",{include_monitors:!0},{action:"printer/tempHistory/init"}),setTimeout(()=>{e("initExtruderCanExtrude")},200)},getData({commit:e,dispatch:s,state:t},r){var i,n,a,o,l,c,u,d,m,h;"status"in r&&(r=r.status),"requestParams"in r&&delete r.requestParams,"webhooks"in r&&(this.dispatch("server/getData",{klippy_state:r.webhooks.state,klippy_message:r.webhooks.state_message},{root:!0}),delete r.webhooks),"bed_mesh"in t&&"bed_mesh"in r&&"profiles"in r.bed_mesh&&(e("setBedMeshProfiles",r.bed_mesh.profiles),delete r.bed_mesh.profiles),(a=(n=(i=r.configfile)==null?void 0:i.settings)==null?void 0:n.printer)!=null&&a.kinematics&&s("gui/updateGcodeviewerCache",{kinematics:(c=(l=(o=r.configfile)==null?void 0:o.settings)==null?void 0:l.printer)==null?void 0:c.kinematics},{root:!0}),(u=r.toolhead)!=null&&u.axis_maximum&&s("gui/updateGcodeviewerCache",{axis_maximum:(d=r.toolhead)==null?void 0:d.axis_maximum},{root:!0}),(m=r.toolhead)!=null&&m.axis_minimum&&s("gui/updateGcodeviewerCache",{axis_minimum:(h=r.toolhead)==null?void 0:h.axis_minimum},{root:!0}),e("setData",r)},initExtruderCanExtrude({state:e}){const s=Object.keys(e).filter(r=>r.startsWith("extruder")),t={};s.forEach(r=>{t[r]=["can_extrude"]}),y.$socket.emit("printer.objects.query",{objects:t},{action:"printer/getData"})},initHelpList({commit:e,dispatch:s},t){e("setHelplist",t),s("socket/removeInitModule","printer/initHelpList",{root:!0})},getEndstopStatus({commit:e},s){e("setEndstopStatus",s)},removeBedMeshProfile({commit:e},s){e("removeBedMeshProfile",s)},sendGcode({dispatch:e},s){e("server/addEvent",{message:s,type:"command"},{root:!0}),s.toLowerCase().trim()==="m112"?y.$socket.emit("printer.emergency_stop",{},{loading:"sendGcode"}):y.$socket.emit("printer.gcode.script",{script:s},{loading:"sendGcode"})},clearScrewsTiltAdjust({commit:e}){e("clearScrewsTiltAdjust")}},Xie={reset(e){const s=TS();for(const t of Object.keys(e))!(t in s)&&t!=="tempHistory"&&delete e[t];for(const[t,r]of Object.entries(s))y.set(e,t,r)},setData(e,s){eu(e,s)},setBedMeshProfiles(e,s){"bed_mesh"in e&&y.set(e.bed_mesh,"profiles",s)},setHelplist(e,s){const t=[];for(const[r,i]of Object.entries(s))t.push({commandLow:r.toLowerCase(),command:r,description:i});y.set(e,"helplist",t)},clearCurrentFile(e){y.set(e,"current_file",{})},setEndstopStatus(e,s){delete s.requestParams,y.set(e,"endstops",s)},removeBedMeshProfile(e,s){"bed_mesh "+s.name in e.configfile.config&&Object.assign(e.configfile.config["bed_mesh "+s.name],{deleted:!0})},clearScrewsTiltAdjust(e){y.set(e.screws_tilt_adjust,"error",!1),y.set(e.screws_tilt_adjust,"results",{})}},Yie={getPrintPercent:(e,s,t)=>{var i,n,a;switch((a=(n=(i=t==null?void 0:t.gui)==null?void 0:i.general)==null?void 0:n.calcPrintProgress)!=null?a:"file-relative"){case"file-relative":return s.getPrintPercentByFilepositionRelative;case"file-absolute":return s.getPrintPercentByFilepositionAbsolute;case"slicer":return s.getPrintPercentBySlicer;case"filament":return s.getPrintPercentByFilament;default:return s.getPrintPercentByFilepositionRelative}},getPrintPercentByFilepositionRelative:e=>{var s,t,r,i,n;if((s=e.current_file)!=null&&s.filename&&((t=e.current_file)!=null&&t.gcode_start_byte)&&((r=e.current_file)!=null&&r.gcode_end_byte)&&e.current_file.filename===e.print_stats.filename){if(e.virtual_sdcard.file_position<=e.current_file.gcode_start_byte)return 0;if(e.virtual_sdcard.file_position>=e.current_file.gcode_end_byte)return 1;const a=e.virtual_sdcard.file_position-e.current_file.gcode_start_byte,o=e.current_file.gcode_end_byte-e.current_file.gcode_start_byte;if(a>0&&o>0)return 1/o*a}return(n=(i=e.virtual_sdcard)==null?void 0:i.progress)!=null?n:0},getPrintPercentByFilepositionAbsolute:e=>{var s,t;return(t=(s=e.virtual_sdcard)==null?void 0:s.progress)!=null?t:0},getPrintPercentBySlicer:e=>{var s,t;return(t=(s=e.display_status)==null?void 0:s.progress)!=null?t:0},getPrintPercentByFilament:e=>{var r,i,n,a,o,l;const s=(i=(r=e.print_stats)==null?void 0:r.filament_used)!=null?i:null,t=(a=(n=e.current_file)==null?void 0:n.filament_total)!=null?a:null;if(s!==null&&t!==null){if(t==0)return 0;const c=s/t;return c>1?1:c}return(l=(o=e.virtual_sdcard)==null?void 0:o.progress)!=null?l:0},getPrintMaxLayers:e=>{var s,t,r,i,n,a,o;if(((r=(t=(s=e.print_stats)==null?void 0:s.info)==null?void 0:t.total_layer)!=null?r:null)!==null)return e.print_stats.info.total_layer;if((i=e.current_file)!=null&&i.layer_count)return e.current_file.layer_count;if(((n=e.current_file)==null?void 0:n.first_layer_height)!==void 0&&((a=e.current_file)==null?void 0:a.layer_height)!==void 0&&((o=e.current_file)==null?void 0:o.object_height)!==void 0){const l=Math.ceil((e.current_file.object_height-e.current_file.first_layer_height)/e.current_file.layer_height+1);return l>0?l:0}return 0},getPrintCurrentLayer:(e,s)=>{var t,r,i,n,a,o,l,c;if(((i=(r=(t=e.print_stats)==null?void 0:t.info)==null?void 0:r.current_layer)!=null?i:null)!==null)return e.print_stats.info.current_layer;if(((n=e.print_stats)==null?void 0:n.print_duration)>0&&((a=e.current_file)==null?void 0:a.first_layer_height)!==void 0&&((o=e.current_file)==null?void 0:o.layer_height)!==void 0){const u=(c=(l=e.gcode_move)==null?void 0:l.gcode_position[2])!=null?c:0,d=Math.ceil((u-e.current_file.first_layer_height)/e.current_file.layer_height+1);if(d>s.getPrintMaxLayers)return s.getPrintMaxLayers;if(d>0)return d}return 0},getPrinterObjects:e=>s=>{var r,i,n,a;const t=[];for(const[o,l]of Object.entries(e)){let c=o.substring(0,o.indexOf(" ")).trimEnd(),u=o.substring(o.indexOf(" ")+1).trimStart();o.indexOf(" ")===-1&&(c=u=o),s.includes(c)&&t.push({name:u,type:c,state:{...l},config:(i=(r=e.configfile)==null?void 0:r.config[o])!=null?i:{},settings:(a=(n=e.configfile)==null?void 0:n.settings[o.toLowerCase()])!=null?a:{}})}return t},getMacros:e=>{var a,o,l,c;const s=[],t=(o=(a=e.configfile)==null?void 0:a.settings)!=null?o:null,r=(c=(l=e.gcode)==null?void 0:l.commands)!=null?c:{},i="gcode_macro ",n=i.length;return Object.keys(e).filter(u=>u.toLowerCase().startsWith(i)).forEach(u=>{var b,C,S,L;const d=u.slice(n),m=(b=r[d.toUpperCase()])!=null?b:{};if(d.startsWith("_"))return;const h=u.toLowerCase(),p=(C=t[h])!=null?C:{};if("rename_existing"in p)return;const f=(S=e[u])!=null?S:{};s.push({name:d,description:(L=m==null?void 0:m.help)!=null?L:null,prop:p,params:TE(p),variables:f})}),At(s,"name")},getMacro:(e,s)=>t=>{const r=t.toLowerCase();return s.getMacros.find(i=>i.name.toLowerCase()===r)},getPartFanSpeed:e=>"fan"in e?e.fan.speed:0,getFans:(e,s)=>{const t=[],r=["temperature_fan","controller_fan","heater_fan","fan_generic","fan"],i=s.getPrinterObjects(r),n=["fan_generic","fan"];return i.foreach(a=>{var o;t.push({name:a.name,type:a.type,speed:(o=a.state.speed)!=null?o:0,controllable:n.includes(a.type)})}),t.sort((a,o)=>{if(a.controllable<o.controllable)return 1;if(a.controllable>o.controllable)return-1;const l=a.name.toUpperCase(),c=o.name.toUpperCase();return l<c?-1:l>c?1:0})},getLights:(e,s)=>{const t=[],r=["dotstar","led","neopixel","pca9533","pca9632"];return s.getPrinterObjects(r).filter(n=>!n.name.startsWith("_")).forEach(n=>{var h,p,f,b,C,S,L,N,R,x,T,I;let a="RGB",o=null;const l=(h=n.state.color_data)!=null?h:[];"color_order"in n.settings&&(a=(p=n.settings.color_order[0])!=null?p:""),n.type==="led"&&(a="","red_pin"in n.config&&(a+="R"),"green_pin"in n.config&&(a+="G"),"blue_pin"in n.config&&(a+="B"),"white_pin"in n.config&&(a+="W"));let c=(f=n.settings.initial_red)!=null?f:null;"initial_red"in n.config||(c=null);let u=(b=n.settings.initial_green)!=null?b:null;"initial_green"in n.config||(u=null);let d=(C=n.settings.initial_blue)!=null?C:null;"initial_blue"in n.config||(d=null);let m=(S=n.settings.initial_white)!=null?S:null;if("initial_white"in n.config||(m=null),n.type==="led"&&a.length===1){const j=(L=l[0])!=null?L:[];switch(a){case"R":o=(N=j[0])!=null?N:0;break;case"G":o=(R=j[1])!=null?R:0;break;case"B":o=(x=j[2])!=null?x:0;break;case"W":o=(T=j[3])!=null?T:0;break}}t.push({name:n.name,type:n.type,chainCount:(I=n.settings.chain_count)!=null?I:1,colorOrder:a,initialRed:c,initialGreen:u,initialBlue:d,initialWhite:m,colorData:l,singleChannelTarget:o})}),t.sort((n,a)=>{const o=n.name.toUpperCase(),l=a.name.toUpperCase();return o<l?-1:o>l?1:0})},getMiscellaneous:e=>{var i,n,a,o,l,c;const s=[],t=["controller_fan","heater_fan","fan_generic","fan","output_pin","pwm_tool","pwm_cycle_time"],r=["fan_generic","fan"];for(const[u,d]of Object.entries(e)){const m=u.split(" ");if(t.includes(m[0])){const h=m.length>1?m[1]:m[0];if(!h.startsWith("_")){let p=r.includes(m[0].toLowerCase());const f=(n=(i=e.configfile)==null?void 0:i.settings[u.toLowerCase()])!=null?n:{},b="speed"in d?d.speed:"value"in d?d.value:0,C="rpm"in d?d.rpm:null;let S=p,L=1;m[0].toLowerCase()==="fan"&&(L=255),["output_pin","pwm_tool","pwm_cycle_time"].includes(m[0])&&(p=!0,S=!1,"pwm"in f&&(S=(a=f==null?void 0:f.pwm)!=null?a:!1),["pwm_tool","pwm_cycle_time"].includes(m[0])&&(S=!0),"scale"in f&&(L=(o=f==null?void 0:f.scale)!=null?o:1));const N={name:h,type:m[0],power:b,controllable:p,pwm:S,rpm:C,scale:L,object:d,config:f,off_below:void 0,max_power:void 0};"configfile"in e&&"settings"in e.configfile&&u.toLowerCase()in e.configfile.settings&&("off_below"in f&&(N.off_below=(l=f==null?void 0:f.off_below)!=null?l:0),"max_power"in f&&(N.max_power=(c=f==null?void 0:f.max_power)!=null?c:1)),s.push(N)}}}return s.sort((u,d)=>{if(u.type==="fan")return-1;if(d.type==="fan"||u.pwm<d.pwm)return 1;if(u.pwm>d.pwm)return-1;if(u.controllable<d.controllable)return 1;if(u.controllable>d.controllable)return-1;const m=u.name.toUpperCase(),h=d.name.toUpperCase();return m<h?-1:m>h?1:0})},getAvailableHeaters:e=>{var s,t;return(t=(s=e.heaters)==null?void 0:s.available_heaters)!=null?t:[]},getAvailableSensors:e=>{var s,t;return(t=(s=e.heaters)==null?void 0:s.available_sensors)!=null?t:[]},getAvailableMonitors:e=>{var s,t;return(t=(s=e.heaters)==null?void 0:s.available_monitors)!=null?t:[]},getFilamentSensors:e=>{const s=["filament_switch_sensor","filament_motion_sensor"],t=[];for(const[r,i]of Object.entries(e)){const n=r.split(" ");s.includes(n[0])&&t.push({name:n[1],enabled:i.enabled,filament_detected:i.filament_detected})}return At(t,"name")},getMcus:(e,s)=>{const t=[];return Object.keys(e).forEach(r=>{var i,n,a,o,l,c,u,d,m,h,p,f;if(r==="mcu"||r.startsWith("mcu ")){const b=e[r];let C=((i=b.mcu_version)!=null?i:"unknown").split("-").slice(0,4).join("-");"app"in b&&b.app!=="Klipper"&&(C=b.app+" "+C);let S=0;(n=b.last_stats)!=null&&n.mcu_task_avg&&((a=b.last_stats)!=null&&a.mcu_task_stddev)&&(S=b.last_stats.mcu_task_avg+3*((o=b.last_stats)==null?void 0:o.mcu_task_stddev)/.0025);let L="primary";S>.95?L="error":S>.8&&(L="warning"),t.push({name:r,mcu_constants:b.mcu_constants,last_stats:b.last_stats,version:C,chip:(c=(l=b.mcu_constants)==null?void 0:l.MCU)!=null?c:null,freq:(d=(u=b.last_stats)==null?void 0:u.freq)!=null?d:null,freqFormat:DE((h=(m=b.last_stats)==null?void 0:m.freq)!=null?h:0),awake:(((f=(p=b.last_stats)==null?void 0:p.mcu_awake)!=null?f:0)/5).toFixed(2),load:S.toFixed(2),loadPercent:S<1?Math.round(S*100):100,loadProgressColor:L,tempSensor:s.getMcuTempSensor(r)})}}),t},getPrinterObject:e=>s=>s in e?e[s]:null,getPrinterConfigObjects:e=>s=>{var r;const t={};return(r=e.configfile)!=null&&r.settings&&Object.keys(e.configfile.settings).forEach(i=>{const n=i.split(" ");s.includes(n[0])&&(t[i]=e.configfile.settings[i])}),t},getHostTempSensor:(e,s)=>{const t=["rpi_temperature","temperature_host"],r=["temperature_sensor","temperature_fan"];let i=null;const n=s.getPrinterConfigObjects(r);return Object.keys(n).forEach(a=>{var c,u,d;const o=n[a],l=Object.keys(e).find(m=>m.toLowerCase()===a.toLowerCase())||"";if("sensor_type"in o&&t.includes(o.sensor_type)&&l in e){const m=e[l];i={temperature:(c=m.temperature)==null?void 0:c.toFixed(0),measured_min_temp:(u=m.measured_min_temp)==null?void 0:u.toFixed(1),measured_max_temp:(d=m.measured_max_temp)==null?void 0:d.toFixed(1)}}}),i},getMcuTempSensors:(e,s)=>{const t=["temperature_sensor","temperature_fan"],r=[],i=s.getPrinterConfigObjects(t);return Object.keys(i).forEach(n=>{const a=i[n],o=Object.keys(e).find(l=>l.toLowerCase()===n.toLowerCase())||"";"sensor_type"in a&&a.sensor_type==="temperature_mcu"&&"sensor_mcu"in a&&r.push({key:o,settings:a,object:o in e?e[o]:{}})}),r},getMcuTempSensor:(e,s)=>t=>{let r=null;return s.getMcuTempSensors.forEach(n=>{var a,o,l,c,u,d;t.endsWith((a=n.settings)==null?void 0:a.sensor_mcu)&&((o=n.object)!=null&&o.temperature)&&(r={temperature:n.object.temperature.toFixed(0),measured_min_temp:(c=(l=n.object.measured_min_temp)==null?void 0:l.toFixed(1))!=null?c:null,measured_max_temp:(d=(u=n.object.measured_max_temp)==null?void 0:u.toFixed(1))!=null?d:null})}),r},getExtruders:e=>{var t,r;const s=[];return(t=e.configfile)!=null&&t.settings&&Object.keys((r=e.configfile)==null?void 0:r.settings).filter(i=>i.match(/^(extruder)\d?$/g)).sort().forEach(i=>{var a;const n=(a=e.configfile)==null?void 0:a.settings[i];s.push({key:i,name:"Extruder ".concat(i=="extruder"?"0":i.replace("extruder","")),filamentDiameter:n.filament_diameter,nozzleDiameter:n.nozzle_diameter,minExtrudeTemp:n.min_extrude_temp,maxExtrudeOnlyDistance:n.max_extrude_only_distance})}),s},getExtruderSteppers:e=>{var t,r;const s=[];return(t=e.configfile)!=null&&t.settings&&Object.keys((r=e.configfile)==null?void 0:r.settings).filter(i=>i.match(/^extruder_stepper/g)).sort().forEach(i=>{var a;const n=(a=e.configfile)==null?void 0:a.settings[i];s.push({key:i,name:i.replace("extruder_stepper ",""),extruder:n.extruder})}),s},getExtrudePossible:e=>{var t,r,i,n;const s=(r=(t=e.toolhead)==null?void 0:t.extruder)!=null?r:"extruder";return(n=(i=e[s])==null?void 0:i.can_extrude)!=null?n:!1},getBedMeshProfileName:e=>"bed_mesh"in e&&"profile_name"in e.bed_mesh?e.bed_mesh.profile_name:"",getMaxTemp:e=>{var t,r;let s=0;return(r=(t=e.heaters)==null?void 0:t.available_sensors)==null||r.forEach(i=>{var a;const n=(a=e.configfile)==null?void 0:a.settings[i];n&&"max_temp"in n&&Math.round(n.max_temp)>s&&Math.round(n.max_temp)<1e4&&(s=Math.round(n.max_temp))}),s>0?s+10:300},existPrinterConfig:e=>{var s;return(s=e.configfile)!=null&&s.config?Object.keys(e.configfile.config).length>0:!1},checkConfig:e=>s=>e.configfile.config?Object.keys(e.configfile.config).findIndex(r=>r.toLowerCase()===s.toLowerCase())!==-1:!1,checkNecessaryConfig:(e,s)=>{const t=[];return ID.forEach(r=>{s.checkConfig(r)||t.push(r)}),!s.checkConfig("display")&&!s.checkConfig("display_status")&&t.push("display_status"),t},getEstimatedTimeFile:(e,s)=>"print_stats"in e&&"print_duration"in e.print_stats&&e.print_stats.print_duration>0&&s.getPrintPercent>0?(e.print_stats.print_duration/s.getPrintPercent-e.print_stats.print_duration).toFixed(0):0,getEstimatedTimeFilament:e=>"print_stats"in e&&"print_duration"in e.print_stats&&"filament_used"in e.print_stats&&"current_file"in e&&"filament_total"in e.current_file&&e.print_stats.print_duration>0&&e.current_file.filament_total>0&&e.current_file.filament_total>e.print_stats.filament_used?(e.print_stats.print_duration/(e.print_stats.filament_used/e.current_file.filament_total)-e.print_stats.print_duration).toFixed(0):0,getEstimatedTimeSlicer:e=>"print_stats"in e&&"print_duration"in e.print_stats&&"current_file"in e&&"estimated_time"in e.current_file&&e.print_stats.print_duration>0&&e.current_file.estimated_time>0?(e.current_file.estimated_time-e.print_stats.print_duration).toFixed(0):0,getEstimatedTimeAvg:(e,s,t)=>{var o,l,c,u,d,m,h,p;let r=0,i=0;const n=(u=(c=(l=(o=t.gui)==null?void 0:o.general)==null?void 0:l.calcEstimateTime)==null?void 0:c.includes("file"))!=null?u:!1,a=(p=(h=(m=(d=t.gui)==null?void 0:d.general)==null?void 0:m.calcEstimateTime)==null?void 0:h.includes("filament"))!=null?p:!1;return n&&s.getEstimatedTimeFile>0&&(r+=parseInt(s.getEstimatedTimeFile),i++),a&&s.getEstimatedTimeFilament>0&&(r+=parseInt(s.getEstimatedTimeFilament),i++),r&&i?r/i:0},getEstimatedTimeETA:(e,s,t)=>{var l,c,u,d,m,h,p,f,b,C,S,L;let r=0,i=0;const n=(d=(u=(c=(l=t.gui)==null?void 0:l.general)==null?void 0:c.calcEtaTime)==null?void 0:u.includes("file"))!=null?d:!1,a=(f=(p=(h=(m=t.gui)==null?void 0:m.general)==null?void 0:h.calcEtaTime)==null?void 0:p.includes("filament"))!=null?f:!1,o=(L=(S=(C=(b=t.gui)==null?void 0:b.general)==null?void 0:C.calcEtaTime)==null?void 0:S.includes("slicer"))!=null?L:!1;return n&&s.getEstimatedTimeFile>0&&(r+=parseInt(s.getEstimatedTimeFile),i++),a&&s.getEstimatedTimeFilament>0&&(r+=parseInt(s.getEstimatedTimeFilament),i++),o&&s.getEstimatedTimeSlicer>0&&(r+=parseInt(s.getEstimatedTimeSlicer),i++),r&&i?Math.round(Date.now()+r/i*1e3):0},getEstimatedTimeETAFormat:(e,s,t,r)=>{var m;const i=(m=r["gui/getHours12Format"])!=null?m:!1,n=s.getEstimatedTimeETA;if(n===0)return"--";const a=new Date(n);let o=!0,l=a.getHours();i&&l>11&&(o=!1),i&&l>12&&(l-=12),i&&l==0&&(l+=12),l<10&&(l="0"+l);const c=a.getMinutes()>=10?a.getMinutes():"0"+a.getMinutes(),u=n-new Date().getTime();let d=l+":"+c;return i&&(d+=" ".concat(o?"AM":"PM")),u>60*60*24*1e3&&(d+="+".concat(Math.trunc(u/(60*60*24*1e3)))),d},getKinematics:e=>{var s,t,r,i,n;return(t=(s=e.configfile)==null?void 0:s.settings)!=null&&t.printer?(n=(i=(r=e.configfile)==null?void 0:r.settings)==null?void 0:i.printer.kinematics)!=null?n:"none":!1},existsQGL:e=>{var s;return(s=e.configfile)!=null&&s.settings?"quad_gantry_level"in e.configfile.settings:!1},existsZtilt:e=>{var s;return(s=e.configfile)!=null&&s.settings?"z_tilt"in e.configfile.settings:!1},existsBedTilt:e=>{var s;return(s=e.configfile)!=null&&s.settings?"bed_tilt"in e.configfile.settings:!1},existsBedScrews:e=>{var s;return(s=e.configfile)!=null&&s.settings?"bed_screws"in e.configfile.settings:!1},existsDeltaCalibrate:e=>{var s;return(s=e.configfile)!=null&&s.settings?"delta_calibrate"in e.configfile.settings:!1},existsScrewsTilt:e=>{var s;return(s=e.configfile)!=null&&s.settings?"screws_tilt_adjust"in e.configfile.settings:!1},existsFirmwareRetraction:e=>{var s;return(s=e.configfile)!=null&&s.settings?"firmware_retraction"in e.configfile.settings:!1}},Jie={reset({commit:e,state:s}){s.updateSourceInterval!==null&&clearInterval(s.updateSourceInterval),e("reset")},init({commit:e,rootGetters:s,dispatch:t},r){var c,u,d;window.console.debug("init printer/tempHistory"),t("reset");const i=new Date,n=(c=s["printer/getAvailableHeaters"])!=null?c:[],a=(u=s["printer/getAvailableSensors"])!=null?u:[],o=(d=s["printer/getAvailableMonitors"])!=null?d:[],l=s["printer/tempHistory/getTemperatureStoreSize"];if(r!==void 0){"requestParams"in r&&delete r.requestParams;const m=Object.keys(r),h={};m.forEach(R=>{let x=R;if(x.indexOf(" ")!==-1&&(x=x.substring(x.indexOf(" ")+1)),!(a.includes(R)||o.includes(R))||x.startsWith("_")){delete r[R];return}const T=r[R];Dn.forEach(I=>{if(I+"s"in T){const j=l-T[I+"s"].length;T[I+"s"]=[...Array.from({length:j},()=>null),...T[I+"s"]]}}),h[R]={...T}}),a.concat(o).forEach(R=>{if(R in r)return;let x=R,T=R;const I=R.indexOf(" ");if(I!==-1&&(x=R.substring(I+1),T=R.substring(0,I)),x.startsWith("_"))return;const j={temperatures:Array(l).fill(null)};n.includes(R)?(j.targets=Array(l).fill(null),j.powers=Array(l).fill(null)):["temperature_fan"].includes(T)&&(j.targets=Array(l).fill(null),j.speeds=Array(l).fill(null)),h[R]={...j}});const f=[];for(let R=0;R<l;R++){const x={date:new Date(i.getTime()-1e3*(l-R))};Object.keys(h).forEach(T=>{Dn.forEach(I=>{const j="".concat(I,"s");j in h[T]&&(x["".concat(T,"-").concat(I)]=h[T][j][R])})}),f.push(x)}e("setInitSource",f);const b=Object.keys(f[0]).filter(R=>R!=="date"),C=b.filter(R=>R.endsWith("-temperature")).map(R=>R.slice(0,R.length-12)).sort(),S=[];let L=0;C.forEach(R=>{let x=s["gui/getDatasetValue"]({name:R,type:"color"});x||(R==="heater_bed"&&(x=FD),R.endsWith(" chamber")&&(x=RD),x||(x=kD[L],L++,x===void 0&&(x="#"+Math.floor(16777215*Math.random()).toString(16))));const T={id:S.length+1,color:x,type:"line",name:"".concat(R,"-temperature"),encode:{x:"date",y:"".concat(R,"-temperature")},animation:!1,yAxisIndex:0,lineStyle:{color:x,width:2,opacity:.9},showSymbol:!1,emphasis:{lineStyle:{color:x,width:2,opacity:.9}}};S.push(T),Dn.forEach(I=>{if(I==="temperature")return;const j=R+"-"+I;if(!b.includes(j))return;const W=JSON.parse(JSON.stringify(T));W.id=S.length+1,W.name=j,W.encode.y=j,I==="target"&&(W.lineStyle.width=0,W.emphasis.lineStyle.width=0,W.areaStyle={color:x,opacity:.1},W.emphasis.areaStyle={color:x,opacity:.1}),Un.includes(I)&&(W.yAxisIndex=1,W.lineStyle.width=1.5,W.lineStyle.opacity=.75,W.lineStyle.type="dotted",W.emphasis.lineStyle.width=1.5,W.emphasis.lineStyle.opacity=.75,W.emphasis.lineStyle.type="dotted"),S.push(W)})}),e("setInitSeries",S);const N=setInterval(()=>{t("updateSource")},jD);e("setUpdateSourceInterval",N)}t("socket/removeInitModule","printer/initTempHistory",{root:!0})},async updateSource({commit:e,rootState:s,rootGetters:t,state:r}){var o,l;const i=(o=t["printer/getAvailableSensors"])!=null?o:[],n=(l=t["printer/getAvailableMonitors"])!=null?l:[],a=i.concat(n);if(a.length){const c=new Date;if(r.source.length){const d=r.source[r.source.length-1],m=d.date.getSeconds(),h=c.getSeconds(),p=c.getTime()-d.date.getTime();if(m===h&&p<1e3)return}const u={date:c};a.forEach(d=>{if(!(s.printer&&d in s.printer))return;const m={...s.printer[d]};Dn.forEach(h=>{if(!(h in m))return;let p=m[h];p!==null&&(p=Math.round(m[h]*10)/10),Un.includes(h)&&(p=Math.round(m[h]*1e3)/1e3),u["".concat(d,"-").concat(h)]=p})}),e("addToSource",{data:u,maxHistory:t["printer/tempHistory/getTemperatureStoreSize"]})}},setColor({commit:e},s){e("setColor",s)}},Kie={reset(e){Object.assign(e,DS())},setInitSource(e,s){y.set(e,"source",s)},setInitSeries(e,s){y.set(e,"series",s)},addToSource(e,s){const t=[...e.source];for(t.push(s.data);t.length>s.maxHistory;)t.splice(0,1);y.set(e,"source",t)},saveLastDate(e,s){y.set(e,"timeLastUpdate",s)},setUpdateSourceInterval(e,s){y.set(e,"updateSourceInterval",s)},setColor(e,s){e.series.filter(t=>s.name===t.name||t.name.startsWith(s.name+"-")).forEach(t=>{var r;if(t.color=s.value,t.lineStyle.color=s.value,t.emphasis.lineStyle.color=s.value,t.name.endsWith("-target")){const i=t.areaStyle;i&&(i.color=s.value);const n=(r=t.emphasis)==null?void 0:r.areaStyle;n&&(n.color=s.value)}})}},Qie={getDatasetColor:(e,s)=>t=>{var i,n;const r=s.getSeries("".concat(t,"-temperature"));return(n=(i=r==null?void 0:r.lineStyle)==null?void 0:i.color)!=null?n:null},getSeries:e=>s=>e.series.find(t=>t.name===s),getSerieNames:e=>s=>{const t=[];return e.series.map(i=>i.name).filter(i=>i.startsWith("".concat(s,"-"))).forEach(i=>{t.push(i.slice(s.length+1))}),t},getBoolDisplayPwmAxis:(e,s)=>{const t=s.getSelectedLegends;return Object.keys(t).find(r=>t[r]===!0&&(r.endsWith("-power")||r.endsWith("-speed")))!==void 0},getAvg:e=>(s,t)=>{const r=t&&t!=="temperature"?s+"-"+t:s,i=new Date().getTime()-1e3*60;let n=0,a=0;return e.source.filter(o=>o.date>i).forEach(o=>{r in o&&(n+=o[r],a++)}),a&&Un.includes(t)?n/a*100:a?n/a:0},getAvgPower:(e,s)=>t=>s.getAvg(t,"power"),getAvgSpeed:(e,s)=>t=>s.getAvg(t,"speed"),getHostMcuSensors:(e,s,t)=>{var a,o,l,c,u,d,m,h,p;const r=(l=(o=(a=t.printer)==null?void 0:a.configfile)==null?void 0:o.settings)!=null?l:{},i=(d=(u=(c=t.printer)==null?void 0:c.heaters)==null?void 0:u.available_heaters)!=null?d:[];return((p=(h=(m=t.printer)==null?void 0:m.heaters)==null?void 0:h.available_sensors)!=null?p:[]).filter(f=>{var S;if(i.includes(f)||f.startsWith("temperature_fan"))return!1;const b=r[f.toLowerCase()];if(!b)return!1;const C=(S=b.sensor_type)!=null?S:"";return["temperature_mcu","temperature_host"].includes(C)})},getSelectedLegends:(e,s,t)=>{var c,u,d,m,h,p,f,b,C,S,L,N,R,x,T,I,j,W,Z,re,k,G;const r={},i=(d=(u=(c=t.printer)==null?void 0:c.heaters)==null?void 0:u.available_sensors)!=null?d:[],n=(p=(h=(m=t.printer)==null?void 0:m.heaters)==null?void 0:h.available_monitors)!=null?p:[],a=(S=(C=(b=(f=t.gui)==null?void 0:f.view)==null?void 0:b.tempchart)==null?void 0:C.datasetSettings)!=null?S:{};if(Object.keys(a).forEach(X=>{!i.includes(X)&&!n.includes(X)||Object.keys(a[X]).forEach(Y=>{if(!Dn.includes(Y))return;const ee="".concat(X,"-").concat(Y);e.series.findIndex(se=>se.name===ee)!==-1&&(r[ee]=a[X][Y])})}),e.series.forEach(X=>{if(Object.keys(r).includes(X.name))return;const Y=X.name.slice(X.name.lastIndexOf("-")+1);r[X.name]=!Un.includes(Y)}),(x=(R=(N=(L=t.gui)==null?void 0:L.view)==null?void 0:N.tempchart)==null?void 0:R.hideMcuHostSensors)!=null?x:!1){const X=(T=s.getHostMcuSensors)!=null?T:[];Object.keys(r).filter(Y=>{const ee=Y.slice(0,Y.lastIndexOf("-"));return X.includes(ee)}).forEach(Y=>{r[Y]=!1})}if((Z=(W=(j=(I=t.gui)==null?void 0:I.view)==null?void 0:j.tempchart)==null?void 0:W.hideMonitors)!=null?Z:!1){const X=(G=(k=(re=t.printer)==null?void 0:re.heaters)==null?void 0:k.available_monitors)!=null?G:[];Object.keys(r).filter(Y=>{const ee=Y.slice(0,Y.lastIndexOf("-"));return X.includes(ee)}).forEach(Y=>{r[Y]=!1})}return r},getTemperatureStoreSize:(e,s,t,r)=>{const i=r["server/getConfig"]("data_store","temperature_store_size");return i!=null?i:1200}},DS=()=>({source:[],series:[],timeLastUpdate:null,updateSourceInterval:null}),ene=DS(),tne={namespaced:!0,state:ene,getters:Qie,actions:Jie,mutations:Kie},TS=()=>({}),sne=TS(),rne={namespaced:!0,state:sne,getters:Yie,actions:qie,mutations:Xie,modules:{tempHistory:tne}},ine={reset({commit:e}){e("reset")},initRootDirs({state:e,commit:s},t){t.forEach(r=>{e.filetree.findIndex(i=>i.filename===r)===-1&&(s("createRootDir",{name:r,permissions:"r"}),y.$socket.emit("server.files.get_directory",{path:r},{action:"files/getDirectory"}))})},getDirectory({state:e,commit:s,getters:t},r){var c,u,d,m,h,p;const i=r.requestParams.path.split("/"),n=i.length?i[0]:r.requestParams.path,a=r.requestParams.path.indexOf("/"),o=a>1?r.requestParams.path.slice(a+1):"",l=t.getDirectory(n+"/"+o);if((c=l==null?void 0:l.childrens)!=null&&c.length&&(l==null||l.childrens.forEach(f=>{var b,C;f!=null&&f.isDirectory&&((b=r.dirs)==null?void 0:b.findIndex(S=>S.dirname===f.filename))<0?s("setDeleteDir",{item:{path:o.length?o+"/"+f.filename:f.filename,root:n}}):!(f!=null&&f.isDirectory)&&((C=r.files)==null?void 0:C.findIndex(S=>S.filename===f.filename))<0&&s("setDeleteFile",{item:{path:o.length?o+"/"+f.filename:f.filename,root:n}})})),(u=r.dirs)!=null&&u.length&&r.dirs.filter(f=>!ZD.includes(f.dirname)).forEach(f=>{var b;((b=l==null?void 0:l.childrens)==null?void 0:b.findIndex(C=>C.isDirectory&&C.filename===f.dirname))===-1&&(s("setCreateDir",{item:{path:o.length?o+"/"+f.dirname:f.dirname,root:n,permissions:f.permissions,modified:f.modified*1e3}}),y.$socket.emit("server.files.get_directory",{path:r.requestParams.path+"/"+f.dirname},{action:"files/getDirectory"}))}),(d=r.files)!=null&&d.length&&r.files.forEach(f=>{var C;const b=(C=l==null?void 0:l.childrens)==null?void 0:C.find(S=>!S.isDirectory&&S.filename===f.filename);b&&(b.size!==f.size||b.modified.getTime()!==new Date(f.modified*1e3).getTime())?s("setModifyFile",{item:{path:o.length?o+"/"+f.filename:f.filename,root:n,modified:f.modified,size:f.size}}):b||s("setCreateFile",{item:{path:o.length?o+"/"+f.filename:f.filename,root:n,permissions:f.permissions,modified:f.modified,size:f.size}})}),(m=r==null?void 0:r.root_info)!=null&&m.name){const f=e.filetree.find(b=>{var C;return b.filename===((C=r==null?void 0:r.root_info)==null?void 0:C.name)});f&&f.permissions!==((h=r.root_info)==null?void 0:h.permissions)&&s("setRootPermissions",r.root_info)}(p=r.requestParams)!=null&&p.path&&r.disk_usage&&s("setDiskUsage",{disk_usage:r.disk_usage,path:r.requestParams.path})},scanMetadata({commit:e},s){if(s.filename.slice(0,s.filename.indexOf("/"))==="gcodes"){const r=s.filename.slice(7);e("setMetadataRequested",{filename:r}),y.$socket.emit("server.files.metascan",{filename:r},{action:"files/getScanMetadata"})}},getScanMetadata({dispatch:e},s){if(s!==void 0&&s.filename!==""){e("getMetadata",s);const t=s.filename;y.$toast.success(ve.t("Files.ScanMetaSuccess",{filename:t}).toString())}},requestMetadata({commit:e},s){let t=[];for(const{filename:r}of s)if(t.length>=100&&(y.$socket.emitBatch(t),t=[]),r.slice(0,r.indexOf("/"))==="gcodes"){const n=r.slice(7);e("setMetadataRequested",{filename:n}),t.push({method:"server.files.metadata",params:{filename:n},emitOptions:{action:"files/getMetadata"}})}y.$socket.emitBatch(t)},getMetadata({commit:e,rootState:s},t){var r,i;t!==void 0&&t.filename!==""&&(t.filename===((i=(r=s==null?void 0:s.printer)==null?void 0:r.print_stats)==null?void 0:i.filename)&&(e("printer/clearCurrentFile",null,{root:!0}),e("printer/setData",{current_file:t},{root:!0})),e("setMetadata",t))},getMetadataCurrentFile({commit:e},s){e("printer/clearCurrentFile",null,{root:!0}),e("printer/setData",{current_file:s},{root:!0})},async filelist_changed({commit:e,dispatch:s},t){var r,i;switch(t.action){case"create_file":e("setCreateFile",t);break;case"move_file":if(((r=t.source_item)==null?void 0:r.path)==="printer_autosave.cfg"&&((i=t.source_item)==null?void 0:i.root)==="config"){e("setCreateFile",t);return}await e("setMoveFile",t),t.item.root==="gcodes"&&Ci.includes(t.item.path.slice(t.item.path.lastIndexOf(".")))&&await s("requestMetadata",[{filename:"gcodes/"+t.item.path}]);break;case"delete_file":e("setDeleteFile",t);break;case"modify_file":e("setModifyFile",t);break;case"create_dir":e("setCreateDir",t);break;case"move_dir":e("setMoveDir",t);break;case"delete_dir":e("setDeleteDir",t);break;case"root_update":s("server/addRootDirectory",t,{root:!0}),e("setRootUpdate",t);break;default:window.console.error("Unknown filelist_changed action: "+t.action);break}},getMove(e,s){if(s.error)y.$toast.error(s.error.message);else{const t=s.requestParams.dest.substr(s.requestParams.dest.lastIndexOf("/")).replace("/",""),r=s.requestParams.source.substr(0,s.requestParams.source.lastIndexOf("/")),i=s.requestParams.dest.substr(0,s.requestParams.dest.lastIndexOf("/"));r===i?y.$toast.success(ve.t("Files.SuccessfullyRenamed",{filename:t})):y.$toast.success(ve.t("Files.SuccessfullyMoved",{filename:t}))}},getCreateDir(e,s){if(s.error)y.$toast.error(s.error.message);else{const t=s.requestParams.path.substr(s.requestParams.path.lastIndexOf("/")+1);y.$toast.success(ve.t("Files.SuccessfullyCreated",{filename:t}))}},getDeleteDir(e,s){if(s.error)y.$toast.error(s.error.message);else{const t=s.requestParams.path.substr(s.requestParams.path.lastIndexOf("/")+1);y.$toast.success(ve.t("Files.SuccessfullyDeleted",{filename:t}))}},getDeleteFile(e,s){if(s.error)y.$toast.error(s.error.message);else{const t=s.item.path.substr(s.item.path.lastIndexOf("/")+1),r=s.item.path.substr(s.item.path.lastIndexOf(".")+1);s.item.root==="timelapse"&&r==="jpg"||y.$toast.success(ve.t("Files.SuccessfullyDeleted",{filename:t}))}},async uploadFile({commit:e,rootGetters:s},t){const r=s["socket/getUrl"],i=new FormData;i.append("file",t.file,t.file.name),i.append("root",t.root),i.append("path",t.path);const n=ks.CancelToken.source();return await e("uploadClearState"),await e("uploadSetCancelTokenSource",n),await e("uploadSetFilename",t.file.name),await e("uploadSetShow",!0),new Promise(a=>{ks.post(r+"/server/files/upload",i,{cancelToken:n.token,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:o=>{var u,d;const l=((u=o.progress)!=null?u:0)*100;e("uploadSetPercent",l);const c=(d=o.rate)!=null?d:0;e("uploadSetSpeed",c)}}).then(o=>{e("uploadSetShow",!1);const l=o.data.item.path.lastIndexOf("/"),c=o.data.item.path.slice(l+1);a(c)}).catch(()=>{e("uploadSetShow",!1),y.$toast.error(ve.t("FullscreenUpload.CannotUploadFile").toString()),a(!1)})})},uploadSetShow({commit:e},s){e("uploadSetShow",s)},uploadSetCurrentNumber({commit:e},s){e("uploadSetCurrentNumber",s)},uploadIncrementCurrentNumber({state:e,commit:s}){s("uploadSetCurrentNumber",e.upload.currentNumber+1)},uploadSetMaxNumber({commit:e},s){e("uploadSetMaxNumber",s)},downloadZip({rootGetters:e},s){const t=e["socket/getUrl"],r="".concat(t,"/server/files/").concat(s.destination.root,"/").concat(encodeURI(s.destination.path));window.open(r)},rolloverLog(e,s){s.rolled_over.forEach(t=>{y.$toast.success(ve.t("Machine.LogfilesPanel.RolloverToastSuccessful",{name:t}))}),Object.keys(s.failed).forEach(t=>{const r=s.failed[t];y.$toast.error(ve.t("Machine.LogfilesPanel.RolloverToastFailed",{name:t,message:r}))}),setTimeout(()=>{y.$socket.emit("server.files.get_directory",{path:"logs"},{action:"files/getDirectory"})},500)}},nne={reset(e){Object.assign(e,MS())},createRootDir(e,s){e.filetree.push({isDirectory:!0,filename:s.name,modified:new Date,permissions:s.permissions,childrens:[],disk_usage:{free:0,total:0,used:0}})},setMetadataRequested(e,s){let t="gcodes/"+s.filename;const r=t.split("/");t=r[r.length-1];const i=jt(e.filetree,r),n=i==null?void 0:i.findIndex(a=>a.filename===t);if(i&&n!==void 0&&n!==-1){const a={...i[n]};a.metadataRequested=!0,y.set(i,n,a)}else window.console.error("file not found in filetree: "+s.filename)},setMetadata(e,s){let t="gcodes/"+s.filename;const r=t.split("/");t=r[r.length-1];const i=jt(e.filetree,r),n=i==null?void 0:i.findIndex(a=>a.filename===t);if(i&&n!==void 0&&n!==-1){const a={...i[n]};ND.forEach(o=>{o in s&&(a[o]=s[o])}),a.metadataRequested=!0,a.metadataPulled=!0,y.set(i,n,a)}else window.console.error("file not found in filetree: "+s.filename)},setCreateFile(e,s){let t=s.item.path;s.item.path.lastIndexOf("/")>=0&&(t=s.item.path.substr(s.item.path.lastIndexOf("/")).replace("/",""));const r=s.item.path.substr(0,s.item.path.lastIndexOf("/")),i=jt(e.filetree,(s.item.root+"/"+r).split("/"));if(i){const n=i.findIndex(a=>!a.isDirectory&&a.filename===t);if(n===-1){const a=new Date(s.item.modified*1e3);i.push({isDirectory:!1,filename:t,modified:a,permissions:s.item.permissions,size:s.item.size,metadataRequested:!1,metadataPulled:!1})}else{i[n].modified=new Date(s.item.modified*1e3),i[n].size=s.item.size,i[n].metadataRequested=!1,i[n].metadataPulled=!1;const a=t.substring(t.lastIndexOf(".")+1);s.item.root==="gcodes"&&a==="gcode"&&y.$socket.emit("server.files.metadata",{filename:s.item.path},{action:"files/getMetadata"})}}},setMoveFile(e,s){let t=s.source_item.path,r=s.source_item.root;const i=s.source_item.path.lastIndexOf("/");i!==-1&&(t=s.source_item.path.substring(i+1),r=s.source_item.root+"/"+s.source_item.path.substring(0,i));let n=s.item.path,a=s.item.root;const o=s.item.path.lastIndexOf("/");o!==-1&&(n=s.item.path.substring(o+1),a=s.item.root+"/"+s.item.path.substring(0,o));const l=jt(e.filetree,r.split("/")),c=l==null?void 0:l.findIndex(m=>m.filename===t);if(c===void 0||c===-1||l===null)return;const u=l.splice(c,1)[0];u.filename=n,r!==a&&"metadataPulled"in u&&u.metadataPulled&&"thumbnails"in u&&(u.metadataPulled=!1,delete u.thumbnails);const d=jt(e.filetree,a.split("/"));d==null||d.push(u)},setModifyFile(e,s){let t=s.item.path,r=s.item.root;const i=s.item.path.lastIndexOf("/");i!==-1&&(t=s.item.path.substr(i+1),r=s.item.root+"/"+s.item.path.substr(0,i+1));const n=jt(e.filetree,r.split("/")),a=n==null?void 0:n.findIndex(o=>o.filename===t);a!==void 0&&a>-1&&n&&n[a]&&("metadataPulled"in n[a]&&n[a].metadataPulled&&(n[a].metadataPulled=!1,"thumbnails"in n[a]&&delete n[a].thumbnails),n[a].modified=new Date(s.item.modified*1e3),n[a].size=s.item.size)},setMoveDir(e,s){let t=s.source_item.path,r=s.source_item.root;const i=s.source_item.path.lastIndexOf("/");i!==-1&&(t=s.source_item.path.substr(i+1),r=s.source_item.root+"/"+s.source_item.path.substr(0,i+1));let n=s.item.path,a=s.item.root;const o=s.item.path.lastIndexOf("/");o!==-1&&(n=s.item.path.substr(o+1),a=s.item.root+"/"+s.item.path.substr(0,o+1));const l=jt(e.filetree,r.split("/")),c=l==null?void 0:l.findIndex(u=>u.filename===t);if(c!==void 0&&l&&l[c]){const u=l.splice(c,1)[0];u.filename=n;const d=jt(e.filetree,a.split("/"));d==null||d.push(u)}},setDeleteFile(e,s){let t=s.item.path.substr(0,s.item.path.lastIndexOf("/"));const r=s.item.path.substr(s.item.path.lastIndexOf("/")+1);t=jt(e.filetree,(s.item.root+"/"+t).split("/"));const i=t.findIndex(n=>n.filename===r);i>=0&&t[i]&&t.splice(i,1)},setCreateDir(e,s){var n;const t=s.item.path.substr(s.item.path.lastIndexOf("/")+1),r=s.item.path.substr(0,s.item.path.lastIndexOf("/")),i=jt(e.filetree,(s.item.root+"/"+r).split("/"));i&&i.push({isDirectory:!0,filename:t,modified:(n=s.item.modified)!=null?n:new Date,permissions:s.item.permissions,childrens:[]})},setDeleteDir(e,s){let t=s.item.path.substr(0,s.item.path.lastIndexOf("/"));const r=s.item.path.substr(s.item.path.lastIndexOf("/")+1);t=jt(e.filetree,(s.item.root+"/"+t).split("/"));const i=t.findIndex(n=>n.filename===r);i>=0&&t[i]&&t.splice(i,1)},setRootUpdate(e,s){var r,i,n;const t=e.filetree.findIndex(a=>a.filename===s.item.root);t!==-1&&((r=e.filetree[t].childrens)!=null&&r.length)&&((n=e.filetree[t].childrens)==null||n.splice(0,(i=e.filetree[t].childrens)==null?void 0:i.length))},setDiskUsage(e,s){const t=s.path.substr(0,s.path.lastIndexOf("/")),r=s.path.substr(s.path.lastIndexOf("/")+1),i=jt(e.filetree,t.split("/")),n=i==null?void 0:i.find(a=>a.isDirectory&&a.filename===r);n&&y.set(n,"disk_usage",s.disk_usage)},setRootPermissions(e,s){const t=e.filetree.find(r=>r.filename===s.name);t&&y.set(t,"permissions",s.permissions)},uploadClearState(e){const s={...e.upload};s.show=!1,s.filename="",s.cancelTokenSource=null,s.speed=0,s.percent=0,y.set(e,"upload",s)},uploadSetShow(e,s){y.set(e.upload,"show",s)},uploadSetFilename(e,s){y.set(e.upload,"filename",s)},uploadSetCancelTokenSource(e,s){y.set(e.upload,"cancelTokenSource",s)},uploadSetCurrentNumber(e,s){y.set(e.upload,"currentNumber",s)},uploadSetMaxNumber(e,s){y.set(e.upload,"maxNumber",s)},uploadSetPercent(e,s){e.upload.percent!==s&&y.set(e.upload,"percent",s)},uploadSetSpeed(e,s){e.upload.speed!==s&&y.set(e.upload,"speed",s)}},ane={getDirectory:e=>s=>{s.startsWith("/")&&(s=s.substr(1)),s.endsWith("/")&&(s=s.substr(0,s.length-1));const t=function(r,i){var n;if(i.length){const a=(n=r==null?void 0:r.childrens)==null?void 0:n.find(o=>o.isDirectory&&o.filename===i[0]);return a?(i.shift(),t(a,i)):null}return r};return t({childrens:e.filetree},s.split("/"))},getFile:(e,s)=>t=>{var a;const r=t.slice(0,t.lastIndexOf("/")),i=t.slice(t.lastIndexOf("/")+1),n=s.getDirectory(r);return(a=n==null?void 0:n.childrens)==null?void 0:a.find(o=>o.filename===i&&!o.isDirectory)},getGcodeFiles:(e,s,t,r)=>(i,n,a)=>{var d;const o=s.getDirectory("gcodes");if(o===null)return[];let l="".concat(r["socket/getUrl"],"/server/files/gcodes"),c=[];if(i!==null){l+=encodeURI(i);const m=s.getDirectory("gcodes"+i);c=(d=m==null?void 0:m.childrens)!=null?d:[]}else{const m=(h,p)=>{var f,b;h.isDirectory&&((f=h.childrens)!=null&&f.length)&&((b=h.childrens)==null||b.forEach(C=>{if(C.isDirectory)m(C,p+C.filename+"/");else{const S={...C};S.filename=p+C.filename,c.push(S)}}))};m(o,"")}c=c.filter(m=>{if(!n&&(m.filename==="thumbs"||m.filename.startsWith(".")))return!1;if(m.isDirectory)return!0;const h=m.filename.lastIndexOf("."),p=m.filename.slice(h);return Ci.includes(p)});const u=[];return c.forEach(m=>{var L,N;const h=typeof m.modified.getTime=="function"?m.modified.getTime():0,p={...m,preheat_gcode:null,small_thumbnail:null,big_thumbnail:null,big_thumbnail_width:null,count_printed:0,last_start_time:null,last_end_time:null,last_filament_used:null,last_status:null,last_print_duration:null,last_total_duration:null},f=[];if([{name:"first_layer_extr_temp",gcode:"M104"},{name:"first_layer_bed_temp",gcode:"M140"}].forEach(R=>{R.name in m&&m[R.name]>1&&f.push("".concat(R.gcode," S").concat(m[R.name]))}),f.length&&(p.preheat_gcode=f.join("\n")),(L=m.thumbnails)!=null&&L.length){let R="";if(i===null){const I=m.filename.lastIndexOf("/");I>0&&(R="/"+m.filename.slice(0,I))}const x=m.thumbnails.find(I=>I.width>=bs&&I.width<=ys&&I.height>=bs&&I.height<=ys);x&&"relative_path"in x&&(p.small_thumbnail="".concat(l+R,"/").concat(encodeURI(x.relative_path),"?timestamp=").concat(h));const T=m.thumbnails.find(I=>I.width>=rr);T&&"relative_path"in T&&(p.big_thumbnail="".concat(l+R,"/").concat(encodeURI(T.relative_path),"?timestamp=").concat(h),p.big_thumbnail_width=T.width)}const C=i&&i.length?i+"/"+m.filename:m.filename;let S=r["server/history/getPrintJobsForGcodes"](C,h,m.size,(N=m.uuid)!=null?N:null,m.job_id);if(S&&S.length){S=S.sort((T,I)=>I.start_time-T.start_time);const R=S.filter(T=>T.status==="completed"),x=[...S].shift();if(p.last_status=x.status,p.count_printed=R.length,p.last_start_time=new Date(x.start_time*1e3),p.count_printed>0){const T=R[0];p.last_start_time=new Date(T.start_time*1e3),p.last_end_time=new Date(T.end_time*1e3),p.last_filament_used=T.filament_used,p.last_print_duration=T.print_duration,p.last_total_duration=T.total_duration}}(a||p.count_printed===0)&&u.push(p)}),u},getAllGcodes:(e,s)=>s.getGcodeFiles(null,!1,!0),getThemeFileUrl:(e,s,t,r)=>(i,n)=>{var l;const a=s.getDirectory("config/"+yi),o=(l=a==null?void 0:a.childrens)==null?void 0:l.find(c=>{var u,d,m,h;return((d=c.filename)==null?void 0:d.slice(0,(u=c.filename)==null?void 0:u.lastIndexOf(".")))===i&&n.includes((h=c.filename)==null?void 0:h.slice(((m=c.filename)==null?void 0:m.lastIndexOf("."))+1))});return o?"".concat(r["socket/getUrl"],"/server/files/config/").concat(yi,"/").concat(o.filename,"?timestamp=").concat(o.modified.getTime()):null},getSidebarLogo:(e,s)=>{var i;const t="sidebar-logo",r=["svg","jpg","jpeg","png","gif"];return(i=s.getThemeFileUrl(t,r))!=null?i:""},getCustomSidebarBackground:(e,s)=>{var i;const t="sidebar-background",r=["jpg","jpeg","png","gif","svg"];return(i=s.getThemeFileUrl(t,r))!=null?i:null},getMainBackground:(e,s)=>{const t="main-background",r=["jpg","jpeg","png","gif","svg"];return s.getThemeFileUrl(t,r)},getCustomStylesheet:(e,s)=>{var i;const t="custom",r=["css"];return(i=s.getThemeFileUrl(t,r))!=null?i:null},getCustomNaviPoints:(e,s)=>{var i;const t="navi",r=["json"];return(i=s.getThemeFileUrl(t,r))!=null?i:null},getCustomFavicons:(e,s)=>{const t="favicon-32x32",r="favicon-32x32",i=["png","svg"],n=s.getThemeFileUrl(t,i),a=s.getThemeFileUrl(r,i);return n&&a?[n,a]:n?[n,n]:a?[a,a]:null},getDiskUsage:e=>s=>{s.indexOf("/")===0&&(s=s.substr(1)),s.indexOf("/")!==-1&&(s=s.substr(0,s.indexOf("/")));const t=e.filetree.find(r=>r.filename===s);return t&&"disk_usage"in t?t.disk_usage:null},checkConfigFile:(e,s)=>t=>{var i;const r=s.getDirectory("config");return((i=r==null?void 0:r.childrens)==null?void 0:i.findIndex(n=>n.filename!==void 0&&n.filename===t))!==-1},getSmallThumbnail:(e,s,t,r)=>(i,n)=>{var a;if("thumbnails"in i&&((a=i.thumbnails)!=null&&a.length)){const o=i.thumbnails.find(l=>l.width>=bs&&l.width<=ys&&l.height>=bs&&l.height<=ys);if(o&&"relative_path"in o)return"".concat(r["socket/getUrl"],"/server/files/").concat(n,"/").concat(encodeURI(o.relative_path),"?timestamp=").concat(i.modified.getTime())}return""},getBigThumbnail:(e,s,t,r)=>(i,n)=>{var a;if("thumbnails"in i&&((a=i.thumbnails)!=null&&a.length)){const o=i.thumbnails.find(l=>l.width>=rr);if(o&&"relative_path"in o)return"".concat(r["socket/getUrl"],"/server/files/").concat(encodeURI(n),"/").concat(encodeURI(o.relative_path),"?timestamp=").concat(i.modified.getTime())}return""}},MS=()=>({filetree:[],upload:{show:!1,filename:"",currentNumber:0,maxNumber:0,cancelTokenSource:null,percent:0,speed:0}}),one=MS(),lne={namespaced:!0,state:one,getters:ane,actions:ine,mutations:nne},cne={reset({commit:e,dispatch:s}){e("reset"),s("console/reset"),s("gcodehistory/reset"),s("macros/reset"),s("presets/reset"),s("webcams/reset")},init(){window.console.debug("init gui"),y.$socket.emit("server.database.get_item",{namespace:"mainsail"},{action:"gui/initStore"})},async initStore({commit:e,dispatch:s,rootGetters:t,rootState:r},i){var o,l,c,u,d,m;const a=t["socket/getUrl"]+"/server/database/item"+"?namespace=mainsail";if("remoteprinters"in i.value&&(r.instancesDB==="moonraker"&&s("remoteprinters/initStore",i.value.remoteprinters.printers),delete i.value.remoteprinters),(c=(l=(o=i.value)==null?void 0:o.view)==null?void 0:l.gcodefiles)!=null&&c.currentPath&&(window.console.debug("remove currentPath from gui namespace"),await fetch(a+"&key=view.gcodefiles.currentPath",{method:"DELETE"})),(m=(d=(u=i.value)==null?void 0:u.view)==null?void 0:d.configfiles)!=null&&m.currentPath&&(window.console.debug("remove currentPath from gui namespace"),await fetch(a+"&key=view.configfiles.currentPath",{method:"DELETE"})),"cooldownGcode"in i.value&&(window.console.debug("update cooldownGcode to new namespace"),s("saveSetting",{name:"presets.cooldownGcode",value:i.value.cooldownGcode}),await fetch(a+"&key=cooldownGcode",{method:"DELETE"}),delete i.value.cooldownGcode),"presets"in i.value&&Array.isArray(i.value.presets)&&(window.console.debug("update presets to new namespace"),i.value.presets.forEach(h=>{s("presets/store",{values:h})}),delete i.value.presets),"dashboard"in i.value&&"nonExpandPanels"in i.value.dashboard&&Array.isArray(i.value.dashboard.nonExpandPanels)&&(await fetch(a+"&key=dashboard.nonExpandPanels",{method:"DELETE"}),s("saveSetting",{name:"dashboard.nonExpandPanels.widescreen",value:i.value.dashboard.nonExpandPanels}),delete i.value.dashboard.nonExpandPanels),"dashboard"in i.value){const h=i.value.dashboard;["mobileLayout","tabletLayout1","tabletLayout2","desktopLayout1","desktopLayout2","widescreenLayout1","widescreenLayout2","widescreenLayout3"].forEach(f=>{if(f in h){const b=h[f].findIndex(C=>C.name==="tools");b!==-1&&(h[f][b].name="temperature",s("saveSetting",{name:"dashboard."+f,value:h[f]}))}})}await e("setData",i.value),await s("socket/removeInitModule","gui/init",{root:!0})},async initDb({dispatch:e,rootGetters:s}){var a;const t=s["socket/getUrl"]+"/server/database/item",r=s["socket/getUrl"]+"/server/files/config/"+yi+"/default.json?time="+Date.now(),i=await fetch(r);let n={};i&&(n=await i.json(),((a=n.error)==null?void 0:a.code)===404&&(n={}));for(const o in n)if(["webcams","timelapse"].includes(o))for(const l of n[o])await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({namespace:o,key:l,value:n[o][l]})});else await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({namespace:"mainsail",key:o,value:n[o]})});await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({namespace:"mainsail",key:"initVersion",value:s.getVersion})}),e("init")},saveSetting({commit:e},s){e("saveSetting",s),y.$socket.emit("server.database.post_item",{namespace:"mainsail",key:s.name,value:s.value})},saveSettingWithoutUpload({commit:e},s){e("saveSetting",s)},updateSettings(e,s){const t=s.keyName;let r=s.newVal;"value"in s&&t in s.value&&typeof s.value[t]!="string"&&!Array.isArray(s.value[t])&&(r=Object.assign(s.value[t],{...r})),y.$socket.emit("server.database.post_item",{namespace:"mainsail",key:t,value:r})},setGcodefilesMetadata({commit:e,dispatch:s,state:t},r){e("setGcodefilesMetadata",r),s("updateSettings",{keyName:"view.gcodefiles.hideMetadataColumns",newVal:t.view.gcodefiles.hideMetadataColumns})},setGcodefilesShowHiddenFiles({commit:e,dispatch:s,state:t},r){e("setGcodefilesShowHiddenFiles",r),s("updateSettings",{keyName:"view.gcodefiles.showHiddenFiles",newVal:t.view.gcodefiles.showHiddenFiles})},setCurrentWebcam({commit:e,dispatch:s,state:t},r){e("setCurrentWebcam",r),s("updateSettings",{keyName:"view.webcam.currentCam",newVal:t.view.webcam.currentCam})},setTempchartDatasetAdditionalSensorSetting({commit:e,dispatch:s,state:t},r){e("setTempchartDatasetAdditionalSensorSetting",r),s("updateSettings",{keyName:"view.tempchart",newVal:t.view.tempchart})},async resetMoonrakerDB({rootGetters:e},s){var n,a;const t=e["socket/getUrl"]+"/server/database/item",r=e["socket/getUrl"]+"/server/files/config/"+yi+"/default.json?time="+Date.now();let i={};try{i=await fetch(r).then(o=>o.json())}catch(o){window.console.error("Error while fetching/parsing default.json",o),i={}}for(const o of s)if(["maintenance","timelapse","webcams"].includes(o)){const l=t+"?namespace="+o,u=await(await fetch(l)).json();if((n=u==null?void 0:u.result)!=null&&n.value)for(const d of Object.keys((a=u==null?void 0:u.result)==null?void 0:a.value))await fetch(l+"&key="+d,{method:"DELETE"});if(o in i)for(const d of i[o])await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({namespace:o,key:d,value:i[o][d]})})}else o==="history_jobs"?await fetch(e["socket/getUrl"]+"/server/history/job?all=true",{method:"DELETE"}):o==="history_totals"?await fetch(e["socket/getUrl"]+"/server/history/reset_totals",{method:"POST"}):(await fetch(e["socket/getUrl"]+"/server/database/item?namespace=mainsail&key="+o,{method:"DELETE"}),o in i&&await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({namespace:"mainsail",key:o,value:i[o]})}));window.location.reload()},async backupMoonrakerDB({rootGetters:e},s){var o,l,c,u;const t={},i=await(await fetch(e["socket/getUrl"]+"/server/database/item?namespace=mainsail")).json(),n=(l=(o=i==null?void 0:i.result)==null?void 0:o.value)!=null?l:{};for(const d of s)if(["timelapse","webcams"].includes(d)){const m=e["socket/getUrl"]+"/server/database/item?namespace="+d,p=await(await fetch(m)).json();(c=p==null?void 0:p.result)!=null&&c.value&&(t[d]={...(u=p==null?void 0:p.result)==null?void 0:u.value})}else d in n&&(t[d]={...n[d]});const a=document.createElement("a");a.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(t))),a.setAttribute("download","backup-mainsail.json"),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a)},async restoreMoonrakerDB({rootGetters:e},s){var l,c,u,d,m,h;const t=e["socket/getUrl"]+"/server/database/item",r=t+"?namespace=mainsail",n=await(await fetch(e["socket/getUrl"]+"/server/database/list")).json(),a=(c=(l=n==null?void 0:n.result)==null?void 0:l.namespaces)!=null?c:[];let o=[];if(a.includes("mainsail")){const f=await(await fetch(r)).json();o=Object.keys((d=(u=f==null?void 0:f.result)==null?void 0:u.value)!=null?d:{})}for(const p of s.dbCheckboxes)if(["timelapse","webcams"].includes(p)){if(a.includes(p)){const f=t+"?namespace="+p,C=await(await fetch(f)).json();if((m=C==null?void 0:C.result)!=null&&m.value)for(const S of Object.keys((h=C==null?void 0:C.result)==null?void 0:h.value))await fetch(f+"&key="+S,{method:"DELETE"})}for(const f of Object.keys(s.restoreObjects[p])){const b=s.restoreObjects[p][f];await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({namespace:p,key:f,value:b})})}}else o.includes(p)&&await fetch(r+"&key="+p,{method:"DELETE"}),await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({namespace:"mainsail",key:p,value:s.restoreObjects[p]})});window.location.reload()},setHistoryColumns({commit:e,dispatch:s,state:t},r){e("setHistoryColumns",r),s("updateSettings",{keyName:"view.history",newVal:t.view.history})},hideStatusInHistoryList({commit:e,dispatch:s,state:t},r){const i=[...t.view.history.hidePrintStatus];i.includes(r)||(i.push(r),e("setHistoryHidePrintStatus",i),s("updateSettings",{keyName:"view.history.hidePrintStatus",newVal:i}))},saveExpandPanel({commit:e,dispatch:s,state:t},r){r.value?e("removeClosePanel",{name:r.name,viewport:r.viewport}):e("addClosePanel",{name:r.name,viewport:r.viewport}),s("updateSettings",{keyName:"dashboard.nonExpandPanels.".concat(r.viewport),newVal:t.dashboard.nonExpandPanels[r.viewport]})},showStatusInHistoryList({commit:e,dispatch:s,state:t},r){const i=[...t.view.history.hidePrintStatus],n=i.indexOf(r);n!==-1&&(i.splice(n,1),e("setHistoryHidePrintStatus",i),s("updateSettings",{keyName:"view.history.hidePrintStatus",newVal:i}))},resetLayout({dispatch:e},s){var i;const r=(i=rd().dashboard[s])!=null?i:[];e("saveSetting",{name:"dashboard."+s,value:r})},updateGcodeviewerCache({dispatch:e,state:s},t){var i;const r=(i=s.gcodeViewer.klipperCache)!=null?i:{};Object.keys(t).forEach(n=>{const a=t[n],o=n in r?r[n]:null;JSON.stringify(a)!==JSON.stringify(o)&&e("saveSetting",{name:"gcodeViewer.klipperCache.".concat(n),value:a})})},announcementDismissFlag(e,s){window.console.log(s)},setChartDatasetStatus({commit:e,dispatch:s,state:t},r){e("setChartDatasetStatus",r),s("updateSettings",{keyName:"view.tempchart.datasetSettings",newVal:t.view.tempchart.datasetSettings})},setDatasetAdditionalSensorStatus({commit:e,dispatch:s,state:t},r){e("setDatasetAdditionalSensorStatus",r),s("updateSettings",{keyName:"view.tempchart.datasetSettings",newVal:t.view.tempchart.datasetSettings})},setChartColor({commit:e,dispatch:s,state:t},r){e("setChartDatasetStatus",{objectName:r.objectName,dataset:"color",value:r.value}),s("updateSettings",{keyName:"view.tempchart.datasetSettings",newVal:t.view.tempchart.datasetSettings})}},une={reset(e){Object.assign(e,rd())},setData(e,s){eu(e,s)},saveSetting(e,s){const t=(r,i,n)=>i!==void 0&&typeof i=="string"?t(r,i.split("."),n):i.length==1&&n!==void 0?r[i[0]]=n:i.length==0?r:(i[0]in r||(r[i[0]]={}),t(r[i[0]],i.slice(1),n));t(e,s.name,s.value)},setHeaterChartVisibility(e,s){const t=e.view.tempchart.hiddenDataset.indexOf(s.name.toUpperCase());s.hidden&&t===-1?e.view.tempchart.hiddenDataset.push(s.name.toUpperCase()):s.hidden!==!0&&t>-1&&e.view.tempchart.hiddenDataset.splice(t,1)},setGcodefilesMetadata(e,s){const t=[...e.view.gcodefiles.hideMetadataColumns],r=t.findIndex(i=>i===s.name);s.value&&r!==-1?t.splice(r,1):!s.value&&r===-1&&t.push(s.name),y.set(e.view.gcodefiles,"hideMetadataColumns",t)},setGcodefilesShowHiddenFiles(e,s){y.set(e.view.gcodefiles,"showHiddenFiles",s)},setCurrentWebcam(e,s){y.set(e.view.webcam.currentCam,s.page,s.value)},setHistoryColumns(e,s){s.value&&e.view.history.hideColums.includes(s.name)?e.view.history.hideColums.splice(e.view.history.hideColums.indexOf(s.name),1):!s.value&&!e.view.history.hideColums.includes(s.name)&&e.view.history.hideColums.push(s.name)},setHistoryHidePrintStatus(e,s){y.set(e.view.history,"hidePrintStatus",s)},addClosePanel(e,s){const t=[...e.dashboard.nonExpandPanels[s.viewport]];t.includes(s.name)||(t.push(s.name),y.set(e.dashboard.nonExpandPanels,s.viewport,t))},removeClosePanel(e,s){const t=[...e.dashboard.nonExpandPanels[s.viewport]],r=t.indexOf(s.name);r>-1&&(t.splice(r,1),y.set(e.dashboard.nonExpandPanels,s.viewport,t))},deleteFromDashboardLayout(e,s){const t=[...e.dashboard[s.layoutname]];t.splice(s.index,1),y.set(e.dashboard,s.layoutname,t)},setChartDatasetStatus(e,s){if(!(s.objectName in e.view.tempchart.datasetSettings)){const t={};t[s.dataset]=s.value,y.set(e.view.tempchart.datasetSettings,s.objectName,t);return}y.set(e.view.tempchart.datasetSettings[s.objectName],s.dataset,s.value)},setDatasetAdditionalSensorStatus(e,s){if(!(s.objectName in e.view.tempchart.datasetSettings)){const t={additionalSensors:{}};t.additionalSensors[s.dataset]=s.value,y.set(e.view.tempchart.datasetSettings,s.objectName,t);return}if(!("additionalSensors"in e.view.tempchart.datasetSettings[s.objectName])){const t={};t[s.dataset]=s.value,y.set(e.view.tempchart.datasetSettings[s.objectName],"additionalSensors",t);return}y.set(e.view.tempchart.datasetSettings[s.objectName].additionalSensors,s.dataset,s.value)}},dne={theme:e=>{const s=e.uiSettings.theme;return fi.findIndex(t=>t.name===s)===-1?vy:s},getTheme:(e,s)=>{var t;return(t=fi.find(r=>r.name===s.theme))!=null?t:fi[0]},getDatasetValue:e=>s=>s.name in e.view.tempchart.datasetSettings&&s.type in e.view.tempchart.datasetSettings[s.name]?e.view.tempchart.datasetSettings[s.name][s.type]:["temperature","target"].includes(s.type),getDatasetAdditionalSensorValue:e=>s=>s.name in e.view.tempchart.datasetSettings&&"additionalSensors"in e.view.tempchart.datasetSettings[s.name]&&s.sensor in e.view.tempchart.datasetSettings[s.name].additionalSensors?e.view.tempchart.datasetSettings[s.name].additionalSensors[s.sensor]:!0,getPanelExpand:e=>(s,t)=>"dashboard"in e&&t in e.dashboard.nonExpandPanels?!e.dashboard.nonExpandPanels[t].includes(s):!0,getAllPossiblePanels:(e,s,t,r)=>{var c,u,d,m;let i=[...UD];return((c=e.macros)==null?void 0:c.mode)==="expert"&&(s["macros/getAllMacrogroups"].forEach(p=>{i.push("macrogroup_"+p.id)}),i=i.filter(p=>p!=="macros")),r["printer/getKinematics"]==="none"&&(i=i.filter(h=>!["toolhead-control","machine-settings"].includes(h))),r["printer/getExtruders"].length<1&&(i=i.filter(h=>h!=="extruder-control")),((m=(d=(u=t.printer)==null?void 0:u.heaters)==null?void 0:d.available_sensors)!=null?m:[]).length<1&&(i=i.filter(h=>h!=="temperature")),s["webcams/getWebcams"].length===0&&(i=i.filter(h=>h!=="webcam")),t.server.components.includes("spoolman")||(i=i.filter(h=>h!=="spoolman")),i},getPanels:(e,s,t)=>(r,i,n=!1)=>{var c,u;const a=i?"".concat(r,"Layout").concat(i):"".concat(r,"Layout");let o=(u=(c=e.dashboard[a])==null?void 0:c.filter(d=>d!==null))!=null?u:[];const l=s.getAllPossiblePanels;if(i<2){const d=s.getAllPanelsFromViewport(r),m=[];l.forEach(h=>{d.find(p=>p.name===h)||m.push({name:h,visible:!0})}),o=o.concat(m)}if(n&&(o=o.filter(d=>d.visible)),t.gui.macros.mode==="simple")o=o.filter(d=>!d.name.startsWith("macrogroup_"));else{o=o.filter(m=>m.name!=="macros");const d=s["macros/getAllMacrogroups"];d.length&&(o=o.filter(m=>{if(!m.name.startsWith("macrogroup_"))return!0;const h=m.name.slice(11);return d.findIndex(p=>p.id===h)!==-1}))}return o.filter(d=>l.includes(d.name))},getAllPanelsFromViewport:e=>s=>{let t=[];"".concat(s,"Layout")in e.dashboard&&(t=t.concat(e.dashboard["".concat(s,"Layout")]));let r=1;for(;"".concat(s,"Layout").concat(r)in e.dashboard;)t=t.concat(e.dashboard["".concat(s,"Layout").concat(r)]),r++;return t},getDefaultControlActionButton:(e,s,t,r)=>r["printer/existsQGL"]?"qgl":r["printer/existsZtilt"]?"ztilt":"m84",getHours12Format:e=>{const s=e.general.timeFormat;return s==="12hours"?!0:s===null?Intl.DateTimeFormat(navigator.language,{hour:"numeric"}).resolvedOptions().hour12:!1}},mne={reset({commit:e}){e("reset")},clear({commit:e}){const s=new Date().valueOf();y.$socket.emit("server.database.post_item",{namespace:"mainsail",key:"console.cleared_since",value:s}),e("clear",{cleared_since:s}),e("server/clearGcodeStore",{},{root:!0}),e("server/setConsoleClearedThisSession",{},{root:!0})},saveSetting({dispatch:e},s){e("gui/saveSetting",{name:"console."+s.name,value:s.value},{root:!0})},filterUpload(e,s){y.$socket.emit("server.database.post_item",{namespace:"mainsail",key:"console.consolefilters."+s.id,value:s.value})},filterStore({commit:e,dispatch:s,state:t},r){const i=os();e("filterStore",{id:i,values:r.values}),s("filterUpload",{id:i,value:t.consolefilters[i]})},filterUpdate({commit:e,dispatch:s,state:t},r){e("filterUpdate",r),s("filterUpload",{id:r.id,value:t.consolefilters[r.id]})},filterDelete({commit:e},s){e("filterDelete",s),y.$socket.emit("server.database.delete_item",{namespace:"mainsail",key:"console.consolefilters."+s})}},hne={reset(e){Object.assign(e,ES())},clear(e,s){y.set(e,"cleared_since",s.cleared_since)},filterStore(e,s){y.set(e.consolefilters,s.id,s.values)},filterUpdate(e,s){if(s.id in e.consolefilters){const t={...e.consolefilters[s.id]};Object.assign(t,s.values),y.set(e.consolefilters,s.id,t)}},filterDelete(e,s){s in e.consolefilters&&y.delete(e.consolefilters,s)}},pne={getConsolefilters:e=>{const s=[];return Object.keys(e.consolefilters).forEach(t=>{s.push({...e.consolefilters[t],id:t})}),At(s,"name")},getConsolefilterRules:(e,s,t)=>{const r=[];return t.gui.console.hideWaitTemperatures&&r.push("^(?:ok\\s+)?(B|C|T\\d*):"),t.gui.console.hideTlCommands&&GD.forEach(i=>{r.push(i)}),Object.keys(e.consolefilters).forEach(i=>{const n=e.consolefilters[i];n.bool&&n.regex.split("\n").forEach(a=>{a!==""&&r.push(a)})}),r},getConsoleClearedSince:e=>e.cleared_since},ES=()=>({hideWaitTemperatures:!0,hideTlCommands:!0,direction:"table",entryStyle:"default",height:300,autoscroll:!0,consolefilters:{}}),fne=ES(),gne={namespaced:!0,state:fne,getters:pne,actions:mne,mutations:hne},vne={reset({commit:e}){e("reset")},upload({state:e}){y.$socket.emit("server.database.post_item",{namespace:"mainsail",key:"gcodehistory.entries",value:e.entries})},async addToHistory({commit:e,dispatch:s,state:t},r){const i=[...t.entries];for(i.push(r);i.length>VD;)i.splice(0,1);await e("updateHistory",i),await s("upload")}},_ne={reset(e){Object.assign(e,OS())},updateHistory(e,s){y.set(e,"entries",s)}},bne={},OS=()=>({entries:[]}),yne=OS(),Cne={namespaced:!0,state:yne,getters:bne,actions:vne,mutations:_ne},$ne={reset({commit:e}){e("reset")},saveSetting({dispatch:e},s){e("gui/saveSetting",{name:"macros."+s.name,value:s.value},{root:!0})},groupUpload({state:e},s){y.$socket.emit("server.database.post_item",{namespace:"mainsail",key:"macros.macrogroups."+s,value:e.macrogroups[s]})},async groupStore({commit:e,dispatch:s},t){const r=os();return await e("groupStore",{id:r,values:t.values}),await s("groupUpload",r),r},groupUpdate({commit:e,dispatch:s},t){e("groupUpdate",t),s("groupUpload",t.id)},addMacroToMacrogroup({commit:e,dispatch:s},t){e("addMacroToMacrogroup",t),s("groupUpload",t.id)},updateMacroFromMacrogroup({commit:e,dispatch:s},t){e("updateMacroFromMacrogroup",t),s("groupUpload",t.id)},removeMacroFromMacrogroup({commit:e,dispatch:s},t){e("removeMacroFromMacrogroup",t),s("groupUpload",t.id)},groupDelete({commit:e,dispatch:s,rootState:t},r){e("groupDelete",r),y.$socket.emit("server.database.delete_item",{namespace:"mainsail",key:"macros.macrogroups."+r}),["mobileLayout","tabletLayout1","tabletLayout2","desktopLayout1","desktopLayout2","widescreenLayout1","widescreenLayout2","widescreenLayout3"].forEach(n=>{var l;const o=(t.gui?[...t.gui.dashboard[n]]:[]).findIndex(c=>c.name==="macrogroup_"+r);o!==-1&&(e("gui/deleteFromDashboardLayout",{layoutname:n,index:o},{root:!0}),s("gui/updateSettings",{keyName:"dashboard."+n,newVal:(l=t.gui)==null?void 0:l.dashboard[n]},{root:!0}))})}},xne={reset(e){Object.assign(e,LS())},groupStore(e,s){y.set(e.macrogroups,s.id,s.values)},groupUpdate(e,s){if(s.id in e.macrogroups){const t={...e.macrogroups[s.id]};Object.assign(t,s.values),y.set(e.macrogroups,s.id,t)}},addMacroToMacrogroup(e,s){var i,n;const t=[...(n=(i=e.macrogroups[s.id])==null?void 0:i.macros)!=null?n:[]],r={pos:1,name:s.macro,color:"group",showInStandby:!0,showInPrinting:!0,showInPause:!0};t.length&&(r.pos=Math.max(...t.map(a=>a.pos))+1),t.push(r),y.set(e.macrogroups[s.id],"macros",t)},updateMacroFromMacrogroup(e,s){var i,n;const t=[...(n=(i=e.macrogroups[s.id])==null?void 0:i.macros)!=null?n:[]],r=t.findIndex(a=>a.name===s.macro);if(r!==-1){const a=t[r];a[s.option]=s.value,y.set(e.macrogroups[s.id],"macros",t)}},removeMacroFromMacrogroup(e,s){var i,n;const t=[...(n=(i=e.macrogroups[s.id])==null?void 0:i.macros)!=null?n:[]],r=t.findIndex(a=>a.name===s.macro);if(r!==-1){const a=t[r].pos;t.splice(r,1),t.filter(o=>o.pos>a).forEach(o=>{o.pos=o.pos-1})}y.set(e.macrogroups[s.id],"macros",t)},groupDelete(e,s){s in e.macrogroups&&y.delete(e.macrogroups,s)}},wne={getAllMacrogroups:e=>{const s=[];return Object.keys(e.macrogroups).forEach(t=>{s.push({...e.macrogroups[t],id:t})}),At(s,"name")},getMacrogroup:e=>s=>e.macrogroups[s]},LS=()=>({mode:"simple",hiddenMacros:[],macrogroups:{}}),Sne=LS(),Pne={namespaced:!0,state:Sne,getters:wne,actions:$ne,mutations:xne},Dne={reset({commit:e}){e("reset")},upload({state:e},s){y.$socket.emit("server.database.post_item",{namespace:"mainsail",key:"miscellaneous.entries."+s,value:e.entries[s]})},async store({commit:e,dispatch:s},t){const r=os();return await e("store",{id:r,values:t}),await s("upload",r),r},async storeLightgroup({commit:e,dispatch:s,getters:t},r){let i=t.getId(r.entry);i===null&&(i=await s("store",r.entry));const n=os();return await e("updateLightgroup",{entryId:i,lightgroupId:n,values:r.lightgroup}),await s("upload",i),n},async updateLightgroup({commit:e,dispatch:s,getters:t},r){const i=t.getId(r.entry);if(i!==null)return await e("updateLightgroup",{entryId:i,lightgroupId:r.lightgroup.id,values:r.lightgroup}),await s("upload",i),r.lightgroup.id},async deleteLightgroup({commit:e,dispatch:s,getters:t},r){const i=t.getId(r.entry);i!==null&&(await e("destroyLightgroup",{entryId:i,lightgroupId:r.lightgroupId}),await s("upload",i))},async storePreset({commit:e,dispatch:s,getters:t},r){let i=t.getId(r.entry);i===null&&(i=await s("store",r.entry));const n=os();return await e("updatePreset",{entryId:i,presetId:n,values:r.preset}),await s("upload",i),n},async updatePreset({commit:e,dispatch:s,getters:t},r){const i=t.getId(r.entry);if(i!==null)return await e("updatePreset",{entryId:i,presetId:r.preset.id,values:r.preset}),await s("upload",i),r.preset.id},async deletePreset({commit:e,dispatch:s,getters:t},r){const i=t.getId(r.entry);i!==null&&(await e("destroyPreset",{entryId:i,presetId:r.presetId}),await s("upload",i))}},Tne={reset(e){Object.assign(e,AS())},store(e,s){const t={name:s.values.name,type:s.values.type,lightgroups:{},presets:{}};y.set(e.entries,s.id,t)},updateLightgroup(e,s){const t={name:s.values.name,start:parseInt(s.values.start.toString()),end:parseInt(s.values.end.toString())};y.set(e.entries[s.entryId].lightgroups,s.lightgroupId,t)},destroyLightgroup(e,s){const t={...e.entries};delete t[s.entryId].lightgroups[s.lightgroupId],y.set(e,"entries",t)},updatePreset(e,s){const t={name:s.values.name,red:s.values.red,green:s.values.green,blue:s.values.blue,white:s.values.white};y.set(e.entries[s.entryId].presets,s.presetId,t)},destroyPreset(e,s){const t={...e.entries};delete t[s.entryId].presets[s.presetId],y.set(e,"entries",t)}},Mne={getEntries:e=>{const s=[];return Object.entries(e.entries).forEach(([t,r])=>{s.push({id:t,name:r.name,type:r.type,lightgroups:{...r.lightgroups},presets:{...r.presets}})}),s},getEntry:(e,s)=>t=>s.getEntries.find(r=>r.name===t.name&&r.type===t.type),getId:(e,s)=>t=>{var r,i;return(i=(r=s.getEntry(t))==null?void 0:r.id)!=null?i:null},getEntryLightgroups:(e,s)=>t=>{const r=s.getEntry(t);if(!r)return[];const i=[];return Object.entries(r.lightgroups).forEach(([n,a])=>{i.push({name:a.name,start:a.start,end:a.end,id:n})}),At(i,"name")},getEntryPresets:(e,s)=>t=>{const r=s.getEntry(t);if(!r)return[];const i=[];return Object.entries(r.presets).forEach(([n,a])=>{i.push({name:a.name,red:a.red,green:a.green,blue:a.blue,white:a.white,id:n})}),At(i,"name")}},AS=()=>({entries:{}}),Ene=AS(),One={namespaced:!0,state:Ene,getters:Mne,actions:Dne,mutations:Tne},Lne={reset({commit:e}){e("reset")},upload({state:e}){y.$socket.emit("server.database.post_item",{namespace:"mainsail",key:"navigation.entries",value:e.entries})},updatePos({commit:e},s){e("updatePos",s)},changeVisibility({commit:e,dispatch:s},t){e("changeVisibility",t),s("upload")}},Ane={reset(e){Object.assign(e,kS())},updatePos(e,s){const t=e.entries.findIndex(n=>n.type===s.type&&n.title===s.title);if(t!==-1){e.entries[t].position=s.position;return}const r={type:s.type,title:s.title,visible:s.visible,position:s.position},i=[...e.entries];i.push(r),y.set(e,"entries",i)},changeVisibility(e,s){var a;const t=(a=s.orgTitle)!=null?a:s.title,r=e.entries.findIndex(o=>o.type===s.type&&o.title===t);if(r!==-1){e.entries[r].visible=!s.visible;return}const i={type:s.type,title:t,visible:!s.visible,position:s.position},n=[...e.entries];n.push(i),y.set(e,"entries",n)}},kne={},kS=()=>({entries:[]}),Fne=kS(),Rne={namespaced:!0,state:Fne,getters:kne,actions:Lne,mutations:Ane},jne={reset({commit:e}){e("reset")},upload({state:e}){y.$socket.emit("server.database.post_item",{namespace:"mainsail",key:"notifications.dismiss",value:e.dismiss})},close({dispatch:e},s){const t=s.id.indexOf("/");if(t===-1)return;const r=s.id.slice(0,t),i=s.id.slice(t+1);if(r==="announcement"){e("server/announcements/close",{entry_id:i},{root:!0});return}e("storeDismiss",{entry_id:i,category:r,type:"ever",time:null})},dismiss({dispatch:e},s){const t=s.id.indexOf("/");if(t===-1)return;const r=s.id.slice(0,t),i=s.id.slice(t+1);if(r==="announcement"){e("server/announcements/dismiss",{entry_id:i,time:s.time},{root:!0});return}e("storeDismiss",{entry_id:i,category:r,type:s.type,time:s.time})},async storeDismiss({commit:e,dispatch:s,state:t},r){var a;let i=new Date().getTime();r.type==="time"&&(i=new Date().getTime()+((a=r.time)!=null?a:0)*1e3);const n={id:r.entry_id,category:r.category,type:r.type,date:i};t.dismiss.filter(o=>o.id===n.id&&o.category===n.category&&o.type===n.type).length&&await e("removeDismiss",n),await e("addDismiss",n),await s("upload")}},Hne={reset(e){Object.assign(e,RS())},addDismiss(e,s){const t=[...e.dismiss];t.push(s),y.set(e,"dismiss",t)},removeDismiss(e,s){const t=[...e.dismiss],r=t.findIndex(i=>i.id===s.id&&i.category===s.category&&i.type===s.type);r!==-1&&t.splice(r),y.set(e,"dismiss",t)}};var FS={exports:{}};const Ine={},Nne=Object.freeze(Object.defineProperty({__proto__:null,default:Ine},Symbol.toStringTag,{value:"Module"})),B0=mp(Nne);/**
* [js-sha256]{@link https://github.com/emn178/js-sha256}
*
* @version 0.10.1
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2023
* @license MIT
*/(function(e){(function(){var s="input is invalid type",t=typeof window=="object",r=t?window:{};r.JS_SHA256_NO_WINDOW&&(t=!1);var i=!t&&typeof self=="object",n=!r.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;n?r=Dr:i&&(r=self);var a=!r.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,o=!r.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),c=[-2147483648,8388608,32768,128],u=[24,16,8,0],d=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],m=["hex","array","digest","arrayBuffer"],h=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(x){return Object.prototype.toString.call(x)==="[object Array]"}),o&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(x){return typeof x=="object"&&x.buffer&&x.buffer.constructor===ArrayBuffer});var p=function(x,T){return function(I){return new L(T,!0).update(I)[x]()}},f=function(x){var T=p("hex",x);n&&(T=b(T,x)),T.create=function(){return new L(x)},T.update=function(W){return T.create().update(W)};for(var I=0;I<m.length;++I){var j=m[I];T[j]=p(j,x)}return T},b=function(x,T){var I=B0,j=B0.Buffer,W=T?"sha224":"sha256",Z;j.from&&!r.JS_SHA256_NO_BUFFER_FROM?Z=j.from:Z=function(k){return new j(k)};var re=function(k){if(typeof k=="string")return I.createHash(W).update(k,"utf8").digest("hex");if(k==null)throw new Error(s);return k.constructor===ArrayBuffer&&(k=new Uint8Array(k)),Array.isArray(k)||ArrayBuffer.isView(k)||k.constructor===j?I.createHash(W).update(Z(k)).digest("hex"):x(k)};return re},C=function(x,T){return function(I,j){return new N(I,T,!0).update(j)[x]()}},S=function(x){var T=C("hex",x);T.create=function(W){return new N(W,x)},T.update=function(W,Z){return T.create(W).update(Z)};for(var I=0;I<m.length;++I){var j=m[I];T[j]=C(j,x)}return T};function L(x,T){T?(h[0]=h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0,this.blocks=h):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=x}L.prototype.update=function(x){if(!this.finalized){var T,I=typeof x;if(I!=="string"){if(I==="object"){if(x===null)throw new Error(s);if(o&&x.constructor===ArrayBuffer)x=new Uint8Array(x);else if(!Array.isArray(x)&&(!o||!ArrayBuffer.isView(x)))throw new Error(s)}else throw new Error(s);T=!0}for(var j,W=0,Z,re=x.length,k=this.blocks;W<re;){if(this.hashed&&(this.hashed=!1,k[0]=this.block,k[16]=k[1]=k[2]=k[3]=k[4]=k[5]=k[6]=k[7]=k[8]=k[9]=k[10]=k[11]=k[12]=k[13]=k[14]=k[15]=0),T)for(Z=this.start;W<re&&Z<64;++W)k[Z>>2]|=x[W]<<u[Z++&3];else for(Z=this.start;W<re&&Z<64;++W)j=x.charCodeAt(W),j<128?k[Z>>2]|=j<<u[Z++&3]:j<2048?(k[Z>>2]|=(192|j>>6)<<u[Z++&3],k[Z>>2]|=(128|j&63)<<u[Z++&3]):j<55296||j>=57344?(k[Z>>2]|=(224|j>>12)<<u[Z++&3],k[Z>>2]|=(128|j>>6&63)<<u[Z++&3],k[Z>>2]|=(128|j&63)<<u[Z++&3]):(j=65536+((j&1023)<<10|x.charCodeAt(++W)&1023),k[Z>>2]|=(240|j>>18)<<u[Z++&3],k[Z>>2]|=(128|j>>12&63)<<u[Z++&3],k[Z>>2]|=(128|j>>6&63)<<u[Z++&3],k[Z>>2]|=(128|j&63)<<u[Z++&3]);this.lastByteIndex=Z,this.bytes+=Z-this.start,Z>=64?(this.block=k[16],this.start=Z-64,this.hash(),this.hashed=!0):this.start=Z}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},L.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var x=this.blocks,T=this.lastByteIndex;x[16]=this.block,x[T>>2]|=c[T&3],this.block=x[16],T>=56&&(this.hashed||this.hash(),x[0]=this.block,x[16]=x[1]=x[2]=x[3]=x[4]=x[5]=x[6]=x[7]=x[8]=x[9]=x[10]=x[11]=x[12]=x[13]=x[14]=x[15]=0),x[14]=this.hBytes<<3|this.bytes>>>29,x[15]=this.bytes<<3,this.hash()}},L.prototype.hash=function(){var x=this.h0,T=this.h1,I=this.h2,j=this.h3,W=this.h4,Z=this.h5,re=this.h6,k=this.h7,G=this.blocks,X,Y,ee,se,F,z,w,A,H,K,le;for(X=16;X<64;++X)F=G[X-15],Y=(F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3,F=G[X-2],ee=(F>>>17|F<<15)^(F>>>19|F<<13)^F>>>10,G[X]=G[X-16]+Y+G[X-7]+ee<<0;for(le=T&I,X=0;X<64;X+=4)this.first?(this.is224?(A=300032,F=G[0]-1413257819,k=F-150054599<<0,j=F+24177077<<0):(A=704751109,F=G[0]-210244248,k=F-1521486534<<0,j=F+143694565<<0),this.first=!1):(Y=(x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10),ee=(W>>>6|W<<26)^(W>>>11|W<<21)^(W>>>25|W<<7),A=x&T,se=A^x&I^le,w=W&Z^~W&re,F=k+ee+w+d[X]+G[X],z=Y+se,k=j+F<<0,j=F+z<<0),Y=(j>>>2|j<<30)^(j>>>13|j<<19)^(j>>>22|j<<10),ee=(k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7),H=j&x,se=H^j&T^A,w=k&W^~k&Z,F=re+ee+w+d[X+1]+G[X+1],z=Y+se,re=I+F<<0,I=F+z<<0,Y=(I>>>2|I<<30)^(I>>>13|I<<19)^(I>>>22|I<<10),ee=(re>>>6|re<<26)^(re>>>11|re<<21)^(re>>>25|re<<7),K=I&j,se=K^I&x^H,w=re&k^~re&W,F=Z+ee+w+d[X+2]+G[X+2],z=Y+se,Z=T+F<<0,T=F+z<<0,Y=(T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10),ee=(Z>>>6|Z<<26)^(Z>>>11|Z<<21)^(Z>>>25|Z<<7),le=T&I,se=le^T&j^K,w=Z&re^~Z&k,F=W+ee+w+d[X+3]+G[X+3],z=Y+se,W=x+F<<0,x=F+z<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+x<<0,this.h1=this.h1+T<<0,this.h2=this.h2+I<<0,this.h3=this.h3+j<<0,this.h4=this.h4+W<<0,this.h5=this.h5+Z<<0,this.h6=this.h6+re<<0,this.h7=this.h7+k<<0},L.prototype.hex=function(){this.finalize();var x=this.h0,T=this.h1,I=this.h2,j=this.h3,W=this.h4,Z=this.h5,re=this.h6,k=this.h7,G=l[x>>28&15]+l[x>>24&15]+l[x>>20&15]+l[x>>16&15]+l[x>>12&15]+l[x>>8&15]+l[x>>4&15]+l[x&15]+l[T>>28&15]+l[T>>24&15]+l[T>>20&15]+l[T>>16&15]+l[T>>12&15]+l[T>>8&15]+l[T>>4&15]+l[T&15]+l[I>>28&15]+l[I>>24&15]+l[I>>20&15]+l[I>>16&15]+l[I>>12&15]+l[I>>8&15]+l[I>>4&15]+l[I&15]+l[j>>28&15]+l[j>>24&15]+l[j>>20&15]+l[j>>16&15]+l[j>>12&15]+l[j>>8&15]+l[j>>4&15]+l[j&15]+l[W>>28&15]+l[W>>24&15]+l[W>>20&15]+l[W>>16&15]+l[W>>12&15]+l[W>>8&15]+l[W>>4&15]+l[W&15]+l[Z>>28&15]+l[Z>>24&15]+l[Z>>20&15]+l[Z>>16&15]+l[Z>>12&15]+l[Z>>8&15]+l[Z>>4&15]+l[Z&15]+l[re>>28&15]+l[re>>24&15]+l[re>>20&15]+l[re>>16&15]+l[re>>12&15]+l[re>>8&15]+l[re>>4&15]+l[re&15];return this.is224||(G+=l[k>>28&15]+l[k>>24&15]+l[k>>20&15]+l[k>>16&15]+l[k>>12&15]+l[k>>8&15]+l[k>>4&15]+l[k&15]),G},L.prototype.toString=L.prototype.hex,L.prototype.digest=function(){this.finalize();var x=this.h0,T=this.h1,I=this.h2,j=this.h3,W=this.h4,Z=this.h5,re=this.h6,k=this.h7,G=[x>>24&255,x>>16&255,x>>8&255,x&255,T>>24&255,T>>16&255,T>>8&255,T&255,I>>24&255,I>>16&255,I>>8&255,I&255,j>>24&255,j>>16&255,j>>8&255,j&255,W>>24&255,W>>16&255,W>>8&255,W&255,Z>>24&255,Z>>16&255,Z>>8&255,Z&255,re>>24&255,re>>16&255,re>>8&255,re&255];return this.is224||G.push(k>>24&255,k>>16&255,k>>8&255,k&255),G},L.prototype.array=L.prototype.digest,L.prototype.arrayBuffer=function(){this.finalize();var x=new ArrayBuffer(this.is224?28:32),T=new DataView(x);return T.setUint32(0,this.h0),T.setUint32(4,this.h1),T.setUint32(8,this.h2),T.setUint32(12,this.h3),T.setUint32(16,this.h4),T.setUint32(20,this.h5),T.setUint32(24,this.h6),this.is224||T.setUint32(28,this.h7),x};function N(x,T,I){var j,W=typeof x;if(W==="string"){var Z=[],re=x.length,k=0,G;for(j=0;j<re;++j)G=x.charCodeAt(j),G<128?Z[k++]=G:G<2048?(Z[k++]=192|G>>6,Z[k++]=128|G&63):G<55296||G>=57344?(Z[k++]=224|G>>12,Z[k++]=128|G>>6&63,Z[k++]=128|G&63):(G=65536+((G&1023)<<10|x.charCodeAt(++j)&1023),Z[k++]=240|G>>18,Z[k++]=128|G>>12&63,Z[k++]=128|G>>6&63,Z[k++]=128|G&63);x=Z}else if(W==="object"){if(x===null)throw new Error(s);if(o&&x.constructor===ArrayBuffer)x=new Uint8Array(x);else if(!Array.isArray(x)&&(!o||!ArrayBuffer.isView(x)))throw new Error(s)}else throw new Error(s);x.length>64&&(x=new L(T,!0).update(x).array());var X=[],Y=[];for(j=0;j<64;++j){var ee=x[j]||0;X[j]=92^ee,Y[j]=54^ee}L.call(this,T,I),this.update(Y),this.oKeyPad=X,this.inner=!0,this.sharedMemory=I}N.prototype=new L,N.prototype.finalize=function(){if(L.prototype.finalize.call(this),this.inner){this.inner=!1;var x=this.array();L.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(x),L.prototype.finalize.call(this)}};var R=f();R.sha256=R,R.sha224=f(!0),R.sha256.hmac=S(),R.sha224.hmac=S(!0),a?e.exports=R:(r.sha256=R.sha256,r.sha224=R.sha224)})()})(FS);var sr=FS.exports,W0=globalThis&&globalThis.__spreadArray||function(e,s,t){if(t||arguments.length===2)for(var r=0,i=s.length,n;r<i;r++)(n||!(r in s))&&(n||(n=Array.prototype.slice.call(s,0,r)),n[r]=s[r]);return e.concat(n||Array.prototype.slice.call(s))},Vne=function(){function e(s,t,r){this.name=s,this.version=t,this.os=r,this.type="browser"}return e}(),Une=function(){function e(s){this.version=s,this.type="node",this.name="node",this.os=process.platform}return e}(),Bne=function(){function e(s,t,r,i){this.name=s,this.version=t,this.os=r,this.bot=i,this.type="bot-device"}return e}(),Wne=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}(),Gne=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}(),zne=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Zne=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,G0=3,qne=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",zne]],z0=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Xne(e){return e?Z0(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Gne:typeof navigator<"u"?Z0(navigator.userAgent):Kne()}function Yne(e){return e!==""&&qne.reduce(function(s,t){var r=t[0],i=t[1];if(s)return s;var n=i.exec(e);return!!n&&[r,n]},!1)}function Z0(e){var s=Yne(e);if(!s)return null;var t=s[0],r=s[1];if(t==="searchbot")return new Wne;var i=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);i?i.length<G0&&(i=W0(W0([],i,!0),Qne(G0-i.length),!0)):i=[];var n=i.join("."),a=Jne(e),o=Zne.exec(e);return o&&o[1]?new Bne(t,n,a,o[1]):new Vne(t,n,a)}function Jne(e){for(var s=0,t=z0.length;s<t;s++){var r=z0[s],i=r[0],n=r[1],a=n.exec(e);if(a)return i}return null}function Kne(){var e=typeof process<"u"&&process.version;return e?new Une(process.version.slice(1)):null}function Qne(e){for(var s=[],t=0;t<e;t++)s.push("0");return s}const eae={getNotifications:(e,s)=>{let t=[];t=t.concat(s.getNotificationsAnnouncements),t=t.concat(s.getNotificationsFlags),t=t.concat(s.getNotificationsDependencies),t=t.concat(s.getNotificationsMoonrakerWarnings),t=t.concat(s.getNotificationsMoonrakerFailedComponents),t=t.concat(s.getNotificationsMoonrakerFailedInitComponents),t=t.concat(s.getNotificationsKlipperWarnings),t=t.concat(s.getNotificationsOverdueMaintenance),t=t.concat(s.getNotificationsBrowserWarnings),t=t.concat(s.getNotificationsOverheatDrivers);const r={normal:2,high:1,critical:0};return t.sort((i,n)=>r[i.priority]<r[n.priority]?-1:r[i.priority]>r[n.priority]?1:n.date.getTime()-i.date.getTime())},getNotificationsAnnouncements:(e,s,t,r)=>{const i=[],n=r["server/announcements/getAnnouncements"];return n.length&&n.forEach(a=>{i.push({id:"announcement/"+a.entry_id,priority:a.priority,title:a.title,description:a.description,date:a.date,dismissed:a.dismissed,url:a.url})}),i},getNotificationsFlags:(e,s,t,r)=>{var a;const i=[];let n=r["server/getThrottledStateFlags"];if(n.length){const o=(a=t.server.system_boot_at)!=null?a:new Date,l=r["gui/notifications/getDismissByCategory"]("flag").map(c=>c.id);n=n.filter(c=>!l.includes(c)),n.forEach(c=>{i.push({id:"flag/"+c,priority:c.startsWith("Previously")?"high":"critical",title:ve.t("App.ThrottledStates.Title".concat(c)),description:ve.t("App.ThrottledStates.Description".concat(c)),date:o,dismissed:!1})})}return i},getNotificationsDependencies:(e,s,t,r)=>{var a;const i=[];let n=r.getDependencies;if(n.length){const o=(a=t.server.system_boot_at)!=null?a:new Date,l=r["gui/notifications/getDismissByCategory"]("dependency").map(c=>c.id);n=n.filter(c=>!l.includes("".concat(c.serviceName,"/").concat(c.neededVersion))),n.forEach(c=>{i.push({id:"dependency/".concat(c.serviceName,"/").concat(c.neededVersion),priority:"high",title:ve.t("App.Notifications.DependencyName",{name:c.serviceName}).toString(),description:ve.t("App.Notifications.DependencyDescription",{name:c.serviceName,installedVersion:c.installedVersion,neededVersion:c.neededVersion}).toString(),date:o,dismissed:!1})})}return i},getNotificationsMoonrakerWarnings:(e,s,t,r)=>{var a,o;const i=[];let n=(a=t.server.warnings)!=null?a:[];if(n.length){const l=(o=t.server.system_boot_at)!=null?o:new Date,c=r["gui/notifications/getDismissByCategory"]("moonrakerWarning").map(u=>u.id);n=n.filter(u=>!c.includes(sr.sha256(u))),n.forEach(u=>{var m,h,p,f;let d=u;if(u.startsWith("Unparsed config option")){const C=(h=(m=RegExp(/'(?<option>.+): (?<value>.+)'.+\[(?<section>.+)\]/).exec(u))==null?void 0:m.groups)!=null?h:{option:"",section:"",value:""};d=ve.t("App.Notifications.MoonrakerWarnings.UnparsedConfigOption",C).toString()}else if(u.startsWith("Unparsed config section")){const C=(f=(p=RegExp(/\[(?<section>.+)\]/).exec(u))==null?void 0:p.groups)!=null?f:{section:""};d=ve.t("App.Notifications.MoonrakerWarnings.UnparsedConfigSection",C).toString()}i.push({id:"moonrakerWarning/".concat(sr.sha256(u)),priority:"high",title:ve.t("App.Notifications.MoonrakerWarnings.MoonrakerWarning").toString(),description:d,date:l,dismissed:!1})})}return i},getNotificationsMoonrakerFailedComponents:(e,s,t,r)=>{var a,o;const i=[];let n=(a=t.server.failed_components)!=null?a:[];if(n.length){const l=(o=t.server.system_boot_at)!=null?o:new Date,c=r["gui/notifications/getDismissByCategory"]("moonrakerFailedComponent").map(u=>u.id);n=n.filter(u=>!c.includes(u)),n.forEach(u=>{i.push({id:"moonrakerFailedComponent/".concat(u),priority:"high",title:ve.t("App.Notifications.MoonrakerWarnings.MoonrakerComponent",{component:u}).toString(),description:ve.t("App.Notifications.MoonrakerWarnings.MoonrakerFailedComponentDescription",{component:u}).toString(),date:l,dismissed:!1})})}return i},getNotificationsMoonrakerFailedInitComponents:(e,s,t,r)=>{var a,o;const i=[];let n=(a=t.server.failed_init_components)!=null?a:[];if(n.length){const l=(o=t.server.system_boot_at)!=null?o:new Date,c=r["gui/notifications/getDismissByCategory"]("moonrakerFailedInitComponent").map(u=>u.id);n=n.filter(u=>!c.includes(u)),n.forEach(u=>{i.push({id:"moonrakerFailedInitComponent/".concat(u),priority:"high",title:ve.t("App.Notifications.MoonrakerWarnings.MoonrakerInitComponent",{component:u}).toString(),description:ve.t("App.Notifications.MoonrakerWarnings.MoonrakerFailedInitComponentDescription",{component:u}).toString(),date:l,dismissed:!1})})}return i},getNotificationsKlipperWarnings:(e,s,t,r)=>{var a,o,l;const i=[];let n=(o=(a=t.printer.configfile)==null?void 0:a.warnings)!=null?o:[];if(n.length){const c=(l=t.server.system_boot_at)!=null?l:new Date,u=r["gui/notifications/getDismissByCategory"]("klipperWarning").map(d=>d.id);n=n.filter(d=>!u.includes(sr.sha256(d.message))),n.forEach(d=>{let m=ve.t("App.Notifications.KlipperWarnings.KlipperWarning").toString(),h=d.message;d.type==="deprecated_value"?(m=ve.t("App.Notifications.KlipperWarnings.DeprecatedValueHeadline").toString(),h=ve.t("App.Notifications.KlipperWarnings.DeprecatedValue",d).toString()):d.type==="deprecated_option"?(m=ve.t("App.Notifications.KlipperWarnings.DeprecatedOptionHeadline").toString(),h=ve.t("App.Notifications.KlipperWarnings.DeprecatedOption",d).toString()):d.type==="runtime_warning"&&(m=ve.t("App.Notifications.KlipperWarnings.KlipperRuntimeWarning").toString());let p="https://docs.mainsail.xyz/faq/klipper_warnings/"+d.type;d.type==="deprecated_option"&&d.option.startsWith("default_parameter")?p+="#default_parameter":d.type==="deprecated_option"?p+="#"+d.option:d.type==="deprecated_value"&&(p+="#"+d.value),i.push({id:"klipperWarning/".concat(sr.sha256(d.message)),priority:"high",title:m,description:h,date:c,url:p,dismissed:!1})})}return i},getNotificationsBrowserWarnings:(e,s,t)=>{var o,l;const r=[],i=Xne(),n=(o=t.server.system_boot_at)!=null?o:new Date;if(i===null)return r;window.console.debug("Browser: ".concat(i.name," ").concat(i.version,", OS: ").concat(i.os));const a=AD.find(c=>c.name.toLowerCase()===i.name.toLowerCase());return a===void 0||rt.valid(i.version)&&rt.valid(a.version)&&rt.gt(a.version,(l=i.version)!=null?l:"0.0.0")&&r.push({id:"browserWarning/".concat(a.name,"/").concat(a.version),priority:"critical",title:ve.t("App.Notifications.BrowserWarnings.Headline").toString(),description:ve.t("App.Notifications.BrowserWarnings.Description",{name:a.name,version:i.version,minVersion:a.version}).toString(),date:n,dismissed:!1}),r},getNotificationsOverdueMaintenance:(e,s,t,r)=>{var l;const i=[];let n=r["gui/maintenance/getOverdueEntries"];if(n.length==0)return[];const a=(l=t.server.system_boot_at)!=null?l:new Date,o=r["gui/notifications/getDismissByCategory"]("maintenance").map(c=>c.id);return n=n.filter(c=>!o.includes(c.id)),n.forEach(c=>{i.push({id:"maintenance/".concat(c.id),priority:"high",title:ve.t("App.Notifications.MaintenanceReminder").toString(),description:ve.t("App.Notifications.MaintenanceReminderText",{name:c.name}).toString(),date:a,dismissed:!1})}),i},getNotificationsOverheatDrivers:(e,s,t)=>{var n;const r=[],i=(n=t.server.system_boot_at)!=null?n:new Date;return Object.keys(t.printer).filter(a=>a.startsWith("tmc")).forEach(a=>{var c,u,d,m;const o=t.printer[a],l=a.split(" ")[1];((u=(c=o.drv_status)==null?void 0:c.ot)!=null?u:null)===1&&r.push({id:"tmcwarning/".concat(a,"-ot"),priority:"critical",title:ve.t("App.Notifications.TmcOtFlag").toString(),description:ve.t("App.Notifications.TmcOtFlagText",{name:l}).toString(),date:i,dismissed:!1,url:"https://www.klipper3d.org/TMC_Drivers.html#tmc-reports-error-ot1overtemperror"}),((m=(d=o.drv_status)==null?void 0:d.otpw)!=null?m:null)===1&&r.push({id:"tmcwarning/".concat(a,"-otpw"),priority:"high",title:ve.t("App.Notifications.TmcOtpwFlag").toString(),description:ve.t("App.Notifications.TmcOtpwFlagText",{name:l}).toString(),date:i,dismissed:!1,url:"https://www.klipper3d.org/TMC_Drivers.html#tmc-reports-error-ot1overtemperror"})}),r},getDismiss:(e,s,t)=>{var a;const r=new Date,i=(a=t.server.system_boot_at)!=null?a:new Date;let n=[...e.dismiss];return n=n.filter(o=>o.type==="reboot"?i.getTime()<o.date:o.type==="time"?r.getTime()<o.date:!0),n},getDismissByCategory:(e,s)=>t=>{let r=s.getDismiss;return r=r.filter(i=>i.category===t),r}},RS=()=>({dismiss:[]}),tae=RS(),sae={namespaced:!0,state:tae,getters:eae,actions:jne,mutations:Hne},rae={reset({commit:e}){e("reset")},saveSetting({dispatch:e},s){e("gui/saveSetting",{name:"presets."+s.name,value:s.value},{root:!0})},upload(e,s){y.$socket.emit("server.database.post_item",{namespace:"mainsail",key:"presets.presets."+s.id,value:s.value})},store({commit:e,dispatch:s,state:t},r){const i=os();e("store",{id:i,values:{...r.values}}),s("upload",{id:i,value:t.presets[i]})},update({commit:e,dispatch:s,state:t},r){e("update",r),s("upload",{id:r.id,value:t.presets[r.id]})},delete({commit:e},s){e("delete",s),y.$socket.emit("server.database.delete_item",{namespace:"mainsail",key:"presets.presets."+s})}},iae={reset(e){Object.assign(e,jS())},initStore(e,s){"cooldownGcode"in s.value&&(y.set(e,"cooldownGcode",s.value.cooldownGcode),delete s.value.cooldownGcode),y.set(e,"presets",s.value)},store(e,s){y.set(e.presets,s.id,s.values)},update(e,s){s.id in e.presets&&y.set(e.presets,s.id,s.values)},updateCooldownGcode(e,s){y.set(e,"cooldownGcode",s)},delete(e,s){s in e.presets&&y.delete(e.presets,s)}},nae={getCooldownGcode:e=>{var s;return(s=e.cooldownGcode)!=null?s:"TURN_OFF_HEATERS"},getPresets:e=>{const s=[];return"presets"in e&&Object.keys(e.presets).forEach(t=>{s.push({...e.presets[t],id:t})}),At(s,"name")},getPresetsFromHeater:e=>s=>{const t=[];return t.push({value:0,text:"0 °C"}),"presets"in e?(Object.keys(e.presets).forEach(r=>{var n;const i=e.presets[r];(n=i.values[s.name])!=null&&n.bool&&t.findIndex(a=>{var o,l,c;return a.value===parseFloat((c=(l=(o=i.values[s.name])==null?void 0:o.value)==null?void 0:l.toString())!=null?c:"0")})===-1&&t.push({value:parseFloat(i.values[s.name].value),text:i.values[s.name].value+" °C"})}),t.sort((r,i)=>r.value>i.value?-1:r.value<i.value?1:0)):t}},jS=()=>({presets:{},cooldownGcode:"TURN_OFF_HEATERS"}),aae=jS(),oae={namespaced:!0,state:aae,getters:nae,actions:rae,mutations:iae},lae={reset({commit:e,dispatch:s,state:t}){Object.keys(t.printers).forEach(r=>{s("farm/unregisterPrinter",r,{root:!0})}),e("reset")},initFromLocalstorage({dispatch:e,rootState:s}){var r,i;let t=(r=s.configInstances)!=null?r:[];if(s.instancesDB==="browser"&&(t=JSON.parse((i=localStorage.getItem("printers"))!=null?i:"{}")),Array.isArray(t)){const n={};t.forEach(a=>{const o=os();n[o]=a}),e("initStore",n)}},async initStore({commit:e,dispatch:s},t){s("reset"),Object.keys(t).forEach(r=>{var n,a,o,l;const i=t[r];e("store",{id:r,values:i}),s("farm/registerPrinter",{id:r,hostname:(n=i.hostname)!=null?n:"",port:(a=i.port)!=null?a:7125,path:(o=i.path)!=null?o:"",settings:(l=i.settings)!=null?l:{}},{root:!0})})},upload({state:e,rootState:s},t){var r;if(s.instancesDB==="browser"){const i=[];Object.keys(e.printers).forEach(n=>{i.push({hostname:e.printers[n].hostname,port:e.printers[n].port,name:e.printers[n].name,path:e.printers[n].path,settings:e.printers[n].settings})}),localStorage.setItem("printers",JSON.stringify(i))}else if(s.instancesDB==="moonraker"&&t in e.printers){const i={hostname:e.printers[t].hostname,port:e.printers[t].port,path:e.printers[t].path,settings:(r=e.printers[t].settings)!=null?r:{}};y.$socket.emit("server.database.post_item",{namespace:"mainsail",key:"remoteprinters.printers."+t,value:i})}},store({commit:e,dispatch:s},t){var i,n,a;const r=os();e("store",{id:r,values:t.values}),s("farm/registerPrinter",{id:r,hostname:(i=t.values.hostname)!=null?i:"",port:(n=t.values.port)!=null?n:7125,path:(a=t.values.path)!=null?a:"",name:t.values.name},{root:!0}),s("upload",r)},update({commit:e,dispatch:s},t){e("update",t),s("farm/updatePrinter",t,{root:!0}),s("upload",t.id)},updateSettings({commit:e,dispatch:s},t){e("update",{id:t.id,values:{settings:t.values}}),s("upload",t.id)},delete({commit:e,dispatch:s,rootState:t},r){e("delete",r),s("farm/unregisterPrinter",r,{root:!0}),t.instancesDB==="browser"?s("upload"):y.$socket.emit("server.database.delete_item",{namespace:"mainsail",key:"remoteprinters.printers."+r})}},cae={reset(e){Object.assign(e,HS())},store(e,s){y.set(e.printers,s.id,s.values)},update(e,s){if(s.id in e.printers){const t={...e.printers[s.id]};Object.assign(t,s.values),y.set(e.printers,s.id,t)}},delete(e,s){s in e.printers&&y.delete(e.printers,s)}},uae={getRemoteprinters:(e,s,t,r)=>{const i=[];return Object.keys(e.printers).forEach(n=>{const a={...r["farm/getPrinterSocketState"](n)};i.push({...e.printers[n],id:n,socket:a})}),At(i,"hostname")}},HS=()=>({printers:{}}),dae=HS(),mae={namespaced:!0,state:dae,getters:uae,actions:lae,mutations:cae},hae={reset({commit:e}){e("reset")},init(){y.$socket.emit("server.database.get_item",{namespace:"maintenance"},{action:"gui/maintenance/initStore"})},async initDb({dispatch:e,rootGetters:s}){var u,d,m;const t=s["socket/getUrl"],r="".concat(t,"/server/files/config/").concat(yi,"/maintenance.json?time=").concat(Date.now()),n=(u=(await fetch(r).then(h=>h.status!==200?{entries:[]}:h.json()).catch(h=>(window.console.error("maintenance.json cannot be parsed",h),{entries:[]}))).entries)!=null?u:[];if((n==null?void 0:n.length)===0){y.$socket.emit("server.database.post_item",{namespace:"maintenance",key:os(),value:{name:"MAINTENANCE_INIT"}});return}const a=await fetch("".concat(t,"/server/history/totals")).then(h=>h.status!==200?{}:h.json()).then(h=>{var p,f;return(f=(p=h.result)==null?void 0:p.job_totals)!=null?f:{}}).catch(h=>{window.console.debug("History totals could not be loaded",h)}),o=(d=a.total_filament_used)!=null?d:0,l=(m=a.total_print_time)!=null?m:0,c=new Date().getTime()/1e3;n.forEach(h=>{var p,f,b,C,S,L,N,R,x,T,I,j,W,Z,re,k,G,X,Y,ee,se;e("store",{entry:{name:h.name,note:(p=h.note)!=null?p:"",start_time:c,end_time:null,start_filament:o,end_filament:null,start_printtime:l,end_printtime:null,last_entry:null,reminder:{type:(b=(f=h.reminder)==null?void 0:f.type)!=null?b:null,filament:{bool:(L=(S=(C=h.reminder)==null?void 0:C.filament)==null?void 0:S.bool)!=null?L:!1,value:(x=(R=(N=h.reminder)==null?void 0:N.filament)==null?void 0:R.value)!=null?x:null},printtime:{bool:(j=(I=(T=h.reminder)==null?void 0:T.printtime)==null?void 0:I.bool)!=null?j:!1,value:(re=(Z=(W=h.reminder)==null?void 0:W.printtime)==null?void 0:Z.value)!=null?re:null},date:{bool:(X=(G=(k=h.reminder)==null?void 0:k.date)==null?void 0:G.bool)!=null?X:!1,value:(se=(ee=(Y=h.reminder)==null?void 0:Y.date)==null?void 0:ee.value)!=null?se:null}}}})})},async initStore({commit:e,dispatch:s},t){var n;await e("reset");const r=(n=t.value)!=null?n:{},i=Object.keys(r).find(a=>{var o;return((o=r[a])==null?void 0:o.name)==="MAINTENANCE_INIT"});i&&delete r[i],await e("initStore",r),await s("socket/removeInitModule","gui/maintenance/init",{root:!0})},upload(e,s){y.$socket.emit("server.database.post_item",{namespace:"maintenance",key:s.id,value:s.value})},store({commit:e,dispatch:s,state:t},r){const i=os();e("store",{id:i,values:r.entry}),s("upload",{id:i,value:t.entries[i]})},update({commit:e,dispatch:s},t){const r=t.id;delete t.id,e("update",{id:r,entry:t}),s("upload",{id:r,value:t})},delete({commit:e},s){e("delete",s),y.$socket.emit("server.database.delete_item",{namespace:"maintenance",key:s})},perform({dispatch:e,state:s,rootState:t},r){var o,l,c,u,d,m,h,p;const i=s.entries[r.id];if(!i)return;const n=(u=(c=(l=(o=t.server)==null?void 0:o.history)==null?void 0:l.job_totals)==null?void 0:c.total_filament_used)!=null?u:0,a=(p=(h=(m=(d=t.server)==null?void 0:d.history)==null?void 0:m.job_totals)==null?void 0:h.total_print_time)!=null?p:0;if(i.id=r.id,i.end_time=Date.now()/1e3,i.end_filament=n,i.end_printtime=a,i.perform_note=r.note.trim()||null,e("update",i),i.reminder.type==="repeat"){const f=new Date;e("store",{entry:{name:i.name,note:i.note,start_time:f.getTime()/1e3,end_time:null,start_filament:n,end_filament:null,start_printtime:a,end_printtime:null,last_entry:r.id,reminder:{...i.reminder}}})}}},pae={reset(e){Object.assign(e,IS())},initStore(e,s){y.set(e,"entries",s)},store(e,s){y.set(e.entries,s.id,s.values)},update(e,s){if(!(s.id in e.entries))return;const t={...e.entries[s.id]};Object.assign(t,s.entry),y.set(e.entries,s.id,t)},delete(e,s){s in e.entries&&y.delete(e.entries,s)}},fae={getEntries:e=>{const s=[];return Object.keys(e.entries).forEach(t=>{s.push({...e.entries[t],id:t})}),s},getOverdueEntries:(e,s,t)=>{var o,l,c;const r=(o=t.server.history.job_totals.total_print_time)!=null?o:0,i=(l=t.server.history.job_totals.total_filament_used)!=null?l:0,n=new Date().getTime()/1e3;return((c=s.getEntries)!=null?c:[]).filter(u=>{var d,m,h;return u.reminder.type===null||u.end_time!==null?!1:!!(u.reminder.filament.bool&&u.start_filament+((d=u.reminder.filament.value)!=null?d:0)*1e3<=i||u.reminder.printtime.bool&&u.start_printtime+((m=u.reminder.printtime.value)!=null?m:0)*3600<=r||u.reminder.date.bool&&u.start_time+((h=u.reminder.date.value)!=null?h:0)*24*60*60<=n)})}},IS=()=>({entries:{}}),gae=IS(),vae={namespaced:!0,state:gae,getters:fae,actions:hae,mutations:pae},_ae={reset({commit:e}){e("reset")},init(){window.console.debug("init gui/webcams"),y.$socket.emit("server.webcams.list",{},{action:"gui/webcams/initStore"})},async initStore({commit:e,dispatch:s},t){await e("reset"),await e("initStore",t.webcams),await s("socket/removeInitModule","gui/webcam/init",{root:!0})},store(e,s){y.$socket.emit("server.webcams.post_item",s)},update({dispatch:e,rootState:s},t){var r;y.$socket.emit("server.webcams.post_item",t.webcam),t.webcam.name!==t.oldWebcamName&&e("delete",t.oldWebcamName),(r=s.server)!=null&&r.components.includes("timelapse")&&e("server/timelapse/updateCamSettings",{newName:t.webcam.name,oldName:t.oldWebcamName},{root:!0})},delete(e,s){y.$socket.emit("server.webcams.delete_item",{name:s})}},bae={reset(e){Object.assign(e,NS())},initStore(e,s){y.set(e,"webcams",s)}},yae={getWebcams:e=>e.webcams.filter(s=>s.enabled),getWebcam:(e,s)=>t=>{var i;return((i=s.getWebcams)!=null?i:[]).find(n=>n.name===t)}},NS=()=>({webcams:[]}),Cae=NS(),$ae={namespaced:!0,state:Cae,getters:yae,actions:_ae,mutations:bae},xae={getActiveColorSchemeList:e=>{switch(e.activecolorscheme.toLowerCase()){case"hsv":return["#0000ff","#00ffff","#00ff00","#ffff00","#ff0000"];case"spring":return["#ff00ff","#ffff00"];case"hot":return["#000000","#ff0000","#ffff00","#ffffff"];case"grayscale":return["#ffffff","#000000"];default:return["#313695","#4575b4","#74add1","#abd9e9","#e0f3f8","#ffffbf","#fee090","#fdae61","#f46d43","#d73027","#a50026"]}}},wae={saveActiveColorScheme({commit:e},s){e("saveActiveColorScheme",s)},saveSetting({dispatch:e},s){e("gui/saveSetting",{name:"heightmap."+s.name,value:s.value},{root:!0})}},Sae=()=>({activecolorscheme:"portland"}),Pae=Sae(),Dae={namespaced:!0,state:Pae,getters:xae,actions:wae},rd=()=>({general:{printername:"",language:"en",dateFormat:null,timeFormat:null,calcPrintProgress:"file-relative",calcEstimateTime:["file","filament"],calcEtaTime:["file","filament","slicer"]},control:{style:"bars",actionButton:null,hideDuringPrint:!1,enableXYHoming:!1,feedrateXY:100,stepsXY:[100,10,1],feedrateZ:25,offsetsZ:[.005,.01,.025,.05],offsetZSaveOption:null,stepsZ:[25,1,.1],stepsAll:[.1,1,10,25,50,100],stepsCircleXY:[1,10,50,100],stepsCircleZ:[.1,1,10,50],selectedCrossStep:null,reverseX:!1,reverseY:!1,reverseZ:!1,extruder:{feedamount:25,feedamounts:[50,25,10,5,1],feedrate:5,feedrates:[10,5,2,1],showEstimatedExtrusionInfo:!0}},dashboard:{nonExpandPanels:{mobile:[],tablet:[],desktop:[],widescreen:[]},mobileLayout:[{name:"webcam",visible:!1},{name:"toolhead-control",visible:!0},{name:"extruder-control",visible:!0},{name:"macros",visible:!0},{name:"machine-settings",visible:!0},{name:"miscellaneous",visible:!0},{name:"temperature",visible:!0},{name:"miniconsole",visible:!1}],tabletLayout1:[{name:"webcam",visible:!0},{name:"toolhead-control",visible:!0},{name:"extruder-control",visible:!0},{name:"macros",visible:!0},{name:"machine-settings",visible:!0},{name:"miscellaneous",visible:!0}],tabletLayout2:[{name:"temperature",visible:!0},{name:"miniconsole",visible:!0}],desktopLayout1:[{name:"webcam",visible:!0},{name:"toolhead-control",visible:!0},{name:"extruder-control",visible:!0},{name:"macros",visible:!0},{name:"machine-settings",visible:!0},{name:"miscellaneous",visible:!0}],desktopLayout2:[{name:"temperature",visible:!0},{name:"miniconsole",visible:!0}],widescreenLayout1:[{name:"toolhead-control",visible:!0},{name:"extruder-control",visible:!0},{name:"macros",visible:!0},{name:"miscellaneous",visible:!0}],widescreenLayout2:[{name:"temperature",visible:!0},{name:"machine-settings",visible:!0}],widescreenLayout3:[{name:"webcam",visible:!0},{name:"miniconsole",visible:!0}]},editor:{escToClose:!0,confirmUnsavedChanges:!0,klipperRestartMethod:"FIRMWARE_RESTART",tabSize:2},gcodeViewer:{extruderColors:["#E76F51FF","#F4A261FF","#E9C46AFF","#2A9D8FFF","#264653FF"],gridColor:"#B3B3B3",backgroundColor:"#121212",colorMode:2,showAxes:!0,minFeed:20,maxFeed:100,minFeedColor:"#2196f3",maxFeedColor:"#D41216",progressColor:"#ECECEC",showCursor:!0,showTravelMoves:!1,showObjectSelection:!1,hdRendering:!1,forceLineRendering:!1,transparency:!1,voxelMode:!1,voxelWidth:1,voxelHeight:1,specularLighting:!1,klipperCache:{kinematics:null,axis_minimum:null,axis_maximum:null},showGCodePanel:!1,cncMode:!1},navigation:{entries:[]},uiSettings:{mode:gy,theme:vy,logo:Rr,primary:Go,displayCancelPrint:!1,lockSlidersOnTouchDevices:!0,lockSlidersDelay:1.5,confirmOnEmergencyStop:!1,confirmOnCoolDown:!1,confirmOnPowerDeviceChange:!1,boolBigThumbnail:!0,bigThumbnailBackground:qt,boolWideNavDrawer:!1,boolHideUploadAndPrintButton:!1,navigationStyle:"iconsAndText",defaultNavigationStateSetting:"alwaysOpen",powerDeviceName:null,progressAsFavicon:!0,hideSaveConfigForBedMash:!1,disableFanAnimation:!1,boolManualProbeDialog:!0,boolBedScrewsDialog:!0,boolScrewsTiltAdjustDialog:!0,tempchartHeight:250,hideUpdateWarnings:!1,printstatusThumbnailZoom:!0},view:{blockFileUpload:!1,configfiles:{countPerPage:10,sortBy:"filename",sortDesc:!1,showHiddenFiles:!1,hideBackupFiles:!1,currentPath:"",rootPath:"config",selectedFiles:[]},extruder:{showTools:!0,showExtrusionFactor:!0,showPressureAdvance:!0,showFirmwareRetraction:!0,showExtruderControl:!0},gcodefiles:{countPerPage:10,sortBy:"modified",sortDesc:!0,showHiddenFiles:!1,showPrintedFiles:!0,hideMetadataColumns:[],orderMetadataColumns:["size","modified","object_height","layer_height","nozzle_diameter","filament_name","filament_type","filament_total","filament_weight_total","estimated_time","last_print_duration","slicer"],currentPath:"",selectedFiles:[]},heightmap:{probed:!0,mesh:!1,flat:!1,wireframe:!0,scaleGradient:!1,scaleZMax:.5},history:{countPerPage:10,toggleChartCol2:"chart",toggleChartCol3:"filament_usage",hidePrintStatus:[],hideColums:["size","modified","end_time","total_duration","filament_total","first_layer_extr_temp","first_layer_bed_temp","first_layer_height","layer_height","object_height"],selectedJobs:[],showMaintenanceEntries:!0,showPrintJobs:!0},jobqueue:{countPerPage:10},lockedSliders:[],tempchart:{boolTempchart:!0,hiddenDataset:[],hideMcuHostSensors:!1,hideMonitors:!1,autoscale:!1,datasetSettings:{}},timelapse:{countPerPage:10,sortBy:"modified",sortDesc:!0,showHiddenFiles:!1,currentPath:"timelapse",selectedFiles:[]},toolhead:{showPosition:!0,showCoordinates:!0,showControl:!0,showZOffset:!0,showSpeedFactor:!0},webcam:{currentCam:{dashboard:"all",page:"all"}}}}),Tae=rd(),Mae={namespaced:!0,state:Tae,getters:dne,actions:cne,mutations:une,modules:{console:gne,gcodehistory:Cne,macros:Pne,maintenance:vae,miscellaneous:One,navigation:Rne,notifications:sae,presets:oae,remoteprinters:mae,webcams:$ae,heightmap:Dae}},Eae={reset({commit:e}){e("reset")},connect({state:e,commit:s,dispatch:t,getters:r,rootGetters:i}){s("setSocketData",{isConnecting:!0});const n=new WebSocket(r.getSocketUrl);n.onopen=()=>{s("setSocketData",{instance:n,reconnects:0,isConnecting:!1,isConnected:!0}),t("sendObj",{method:"server.info",action:"getServerInfo"})},n.onclose=a=>{i["farm/existsPrinter"](e._namespace)&&(!a.wasClean&&e.socket.reconnects<e.socket.maxReconnects?(s("setSocketData",{reconnects:e.socket.reconnects+1}),setTimeout(()=>{t("connect")},e.socket.reconnectInterval)):s("setSocketData",{isConnecting:!1,isConnected:!1,reconnects:0}))},n.onerror=()=>{window.console.error("Farm Printer WebSocket Error")},n.onmessage=a=>{const o=JSON.parse(a.data);if(o&&o.method)switch(o.method){case"notify_status_update":t("getData",o.params[0]);break;case"notify_klippy_disconnected":t("disconnectKlippy");break;case"notify_klippy_ready":t("connectKlippy");break}else if("result"in o){const l=e.socket.wsData.findIndex(c=>c.id===o.id);if(l!==-1&&e.socket.wsData[l].action!==void 0&&e.socket.wsData[l].action!==""){let c=o.result;c==="ok"&&(c={result:c}),typeof c=="string"&&(c={result:c});const u={},d=e.socket.wsData[l];d.actionPreload&&Object.assign(u,d.actionPreload),Object.assign(u,{requestParams:d.params}),Object.assign(u,c),t(d.action,u)}l!==-1&&s("removeWsData",l)}}},reconnect({state:e,dispatch:s}){e.socket.instance&&e.socket.instance.close(),s("connect")},sendObj({state:e,commit:s},t){if(e.socket.instance&&e.socket.instance.readyState===WebSocket.OPEN){const r=Math.floor(Math.random()*1e4)+1;s("addWsData",{id:r,action:t.action,params:t.params||{},actionPreload:t.actionPreload||null}),e.socket.instance.send(JSON.stringify({jsonrpc:"2.0",method:t.method,params:t.params||{},id:r}))}},connectKlippy({commit:e,dispatch:s}){e("setKlippyConnected",!0),s("initPrinter")},disconnectKlippy({commit:e}){e("setKlippyConnected",!1)},getServerInfo({commit:e,dispatch:s},t){e("setKlippyConnected",t.klippy_connected),s("initPrinter")},initPrinter({state:e,commit:s,dispatch:t}){s("resetData"),e.server.klippy_connected&&t("sendObj",{method:"printer.objects.list",action:"getObjectsList"}),t("sendObj",{method:"server.files.list",action:"getConfigDir",params:{root:"config"}}),t("sendObj",{method:"server.database.list",action:"getDatabases"})},getObjectsList({dispatch:e},s){var i;const t=["webhooks","print_stats","virtual_sdcard","display_status","heaters","heater_bed","heater_fan","fan","temperature_fan","temperature_sensor","idle_timeout","toolhead"];let r={};(i=s.objects)==null||i.forEach(n=>{const o=n.split(" ")[0];(t.includes(o)||o.startsWith("extruder"))&&(r={...r,[n]:null})}),Object.keys(r).length>0&&e("sendObj",{method:"printer.objects.subscribe",params:{objects:r},action:"getData"})},getData({commit:e,dispatch:s},t){var i,n,a;const r="status"in t?{...t.status}:{...t};e("setData",r),((n=(i=r.print_stats)==null?void 0:i.filename)!=null?n:"")!==""&&s("sendObj",{method:"server.files.metadata",params:{filename:(a=r.print_stats)==null?void 0:a.filename},action:"getMetadataCurrentFile"})},setSettings({commit:e,dispatch:s,state:t},r){e("setSettings",r),s("gui/remoteprinters/updateSettings",{id:t._namespace,values:t.settings},{root:!0})},getMetadataCurrentFile({commit:e},s){e("setCurrentFile",s)},getConfigDir({commit:e},s){e("setConfigDir",s)},getDatabases({commit:e,dispatch:s},t){e("setDatabases",t.namespaces),t.namespaces.includes("mainsail")&&s("sendObj",{method:"server.database.get_item",params:{namespace:"mainsail"},action:"getMainsailData"}),s("sendObj",{method:"server.webcams.list",action:"getWebcamsData"})},getMainsailData({commit:e},s){e("setMainsailData",s.value)},getWebcamsData({commit:e},s){e("setWebcamsData",s.webcams)}},Oae={reset(e){Object.assign(e,ep())},resetData(e){Object.assign(e.data,ep().data)},setSocketData(e,s){"status"in s&&(s=s.status),"requestParams"in s&&delete s.requestParams,"_namespace"in s&&(y.set(e,"_namespace",s._namespace),delete s._namespace),Object.entries(s).forEach(([t,r])=>{y.set(e.socket,t,r)})},setData(e,s){"requestParams"in s&&delete s.requestParams,Object.entries(s).forEach(([t,r])=>{typeof r=="object"?y.set(e.data,t,{...e.data[t],...r}):y.set(e.data,t,r)})},setSettings(e,s){y.set(e,"settings",{...e.settings,...s})},addWsData(e,s){const t=[...e.socket.wsData];t.push(s),y.set(e.socket,"wsData",t)},removeWsData(e,s){const t=[...e.socket.wsData];t.splice(s,1),y.set(e.socket,"wsData",t)},setKlippyConnected(e,s){y.set(e.server,"klippy_connected",s)},setCurrentFile(e,s){"requestParams"in s&&delete s.requestParams,y.set(e,"current_file",s)},setConfigDir(e,s){Object.values(s).forEach(t=>{var r;(r=t.path)!=null&&r.startsWith(".theme/")&&e.theme_files.push(t.path)})},setDatabases(e,s){y.set(e,"databases",s)},setMainsailData(e,s){eu(e.data.gui,s)},setWebcamsData(e,s){y.set(e.data,"webcams",s)}},Lae={getSocketUrl:e=>{const s=e.socket.path.replaceAll(/(^\/*)|(\/*$)/g,""),t=s.length>0?"/".concat(s):"";return e.socket.protocol+"://"+e.socket.hostname+":"+e.socket.port+t+"/websocket"},getSocketData:e=>e.socket,isCurrentPrinter:(e,s,t)=>t.socket.hostname===e.socket.hostname&&t.socket.port===e.socket.port,getSetting:e=>(s,t)=>{var r;return(r=e.settings[s])!=null?r:t},getPrinterName:e=>"gui"in e.data&&"general"in e.data.gui&&"printername"in e.data.gui.general&&e.data.gui.general.printername!==""?e.data.gui.general.printername:e.socket.hostname+(e.socket.port!=80?":"+e.socket.port:"")+e.socket.path,getPrinterSocketState:e=>e.socket,getLogoColor:e=>{var s,t,r;return(r=(t=(s=e.data.gui)==null?void 0:s.uiSettings)==null?void 0:t.logo)!=null?r:Rr},getStatus:(e,s)=>{var t,r;if(e.socket.isConnected)if(e.server.klippy_connected){if((r=(t=e.data)==null?void 0:t.print_stats)!=null&&r.state){if(e.data.print_stats.state==="printing"){const i=s.getPrintPercent;return Math.floor(i*100)+"% Printing"}return e.data.print_stats.state.charAt(0).toUpperCase()+e.data.print_stats.state.slice(1)}}else return"ERROR";else return e.socket.isConnecting?"Connecting...":"Disconnected";return"Unknown"},getCurrentFilename:e=>{var s,t;return(t=(s=e.data.print_stats)==null?void 0:s.filename)!=null?t:""},getPrintPercent:(e,s)=>{var r,i,n;switch((n=(i=(r=e.data.gui)==null?void 0:r.general)==null?void 0:i.calcPrintProgress)!=null?n:"file-relative"){case"file-relative":return s.getPrintPercentByFilepositionRelative;case"file-absolute":return s.getPrintPercentByFilepositionAbsolute;case"slicer":return s.getPrintPercentBySlicer;case"filament":return s.getPrintPercentByFilament;default:return s.getPrintPercentByFilepositionRelative}},getPrintPercentByFilepositionRelative:e=>{var s,t,r,i,n,a;if((s=e.current_file)!=null&&s.filename&&((t=e.current_file)!=null&&t.gcode_start_byte)&&((r=e.current_file)!=null&&r.gcode_end_byte)&&e.current_file.filename===e.data.print_stats.filename){if(e.data.virtual_sdcard.file_position<=e.current_file.gcode_start_byte)return 0;if(e.data.virtual_sdcard.file_position>=((i=e.current_file)==null?void 0:i.gcode_end_byte))return 1;const o=e.data.virtual_sdcard.file_position-e.current_file.gcode_start_byte,l=e.current_file.gcode_end_byte-e.current_file.gcode_start_byte;if(o>0&&l>0)return 1/l*o}return(a=(n=e.data.virtual_sdcard)==null?void 0:n.progress)!=null?a:0},getPrintPercentByFilepositionAbsolute:e=>{var s,t;return(t=(s=e.data.virtual_sdcard)==null?void 0:s.progress)!=null?t:0},getPrintPercentBySlicer:e=>{var s,t;return(t=(s=e.data.display_status)==null?void 0:s.progress)!=null?t:0},getPrintPercentByFilament:e=>{var r,i,n,a,o,l;const s=(i=(r=e.data.print_stats)==null?void 0:r.filament_used)!=null?i:null,t=(a=(n=e.current_file)==null?void 0:n.filament_total)!=null?a:null;return s!==null&&t!==null?t==0?0:s/t:(l=(o=e.data.virtual_sdcard)==null?void 0:o.progress)!=null?l:0},getImage:e=>{var s;if(e.current_file.filename&&((s=e.current_file.thumbnails)!=null&&s.length)){const t=e.current_file.filename.lastIndexOf("/"),r=t!==-1?e.current_file.filename.substring(0,t)+"/":"",i=e.current_file.thumbnails.find(o=>o.width>=rr),n=e.socket.path.replaceAll(/(^\/*)|(\/*$)/g,""),a=n.length>0?"/".concat(n):"";if(i&&"relative_path"in i)return"//"+e.socket.hostname+":"+e.socket.port+a+"/server/files/gcodes/"+r+i.relative_path}return null},getThemeFileUrl:e=>(s,t)=>{const r=e.theme_files.find(a=>a.substr(0,a.lastIndexOf("."))===yi+"/"+s&&t.includes(a.substr(a.lastIndexOf(".")+1))),i=e.socket.path.replaceAll(/(^\/*)|(\/*$)/g,""),n=i.length>0?"/".concat(i):"";return r?"//"+e.socket.hostname+":"+e.socket.port+n+"/server/files/config/"+r:null},getLogo:(e,s)=>{const t="sidebar-logo",r=["gif","jpg","png","gif","svg"];return s.getThemeFileUrl(t,r)},getPosition:e=>"toolhead"in e.data&&"position"in e.data.toolhead?e.data.toolhead.position:[],getPrinterPreview:(e,s,t,r)=>{var n,a,o,l,c,u,d,m;if(!e.server.klippy_connected)return[];const i=[];if(Object.keys(e.data).filter(h=>h.startsWith("extruder")).forEach(h=>{var p,f,b,C;((p=e.data[h])==null?void 0:p.temperature)!==void 0&&((f=e.data[h])==null?void 0:f.target)!==void 0&&i.push({name:at(h),value:((b=e.data[h].temperature)==null?void 0:b.toFixed(0))+"° / "+((C=e.data[h].target)==null?void 0:C.toFixed(0))+"°"})}),((n=e.data.heater_bed)==null?void 0:n.temperature)!==void 0&&((a=e.data.heater_bed)==null?void 0:a.target)!==void 0&&i.push({name:at("heater_bed"),value:e.data.heater_bed.temperature.toFixed(0)+"° / "+e.data.heater_bed.target.toFixed(0)+"°"}),((o=e.data["temperature_fan chamber"])==null?void 0:o.temperature)!==void 0&&((l=e.data["temperature_fan chamber"])==null?void 0:l.target)!==void 0&&i.push({name:at("chamber"),value:e.data["temperature_fan chamber"].temperature.toFixed(0)+"° / "+e.data["temperature_fan chamber"].target.toFixed(0)+"°"}),"temperature_sensor chamber"in e.data&&i.push({name:at("chamber"),value:e.data["temperature_sensor chamber"].temperature.toFixed(0)+"°"}),((d=(u=(c=e.data)==null?void 0:c.print_stats)==null?void 0:u.state)!=null?d:"")==="printing"&&s.getPrintPercent>0){const h=(m=r["gui/getHours12Format"])!=null?m:!1,p=new Date(s.estimated_time_eta),f=new Date(p);let b=!0,C=f.getHours();h&&C>11&&(b=!1),h&&C>12&&(C-=12),C<10&&(C="0"+C);const S=f.getMinutes()>=10?f.getMinutes():"0"+f.getMinutes(),L=f.getTime()-new Date().getTime();let N=C+":"+S;h&&(N+=" ".concat(b?"AM":"PM")),L>60*60*24*1e3&&(N+="+".concat(Math.trunc(L/(60*60*24*1e3)))),i.push({name:"ETA",value:s.estimated_time_eta>0?N:"--",file:s.estimated_time_file,filament:s.estimated_time_filament,slicer:s.estimated_time_slicer,eta:s.estimated_time_eta})}return i},estimated_time_file:(e,s)=>{var t;return((t=e.data.print_stats)==null?void 0:t.print_duration)>0&&s.getPrintPercent>0?(e.data.print_stats.print_duration/s.getPrintPercent-e.data.print_stats.print_duration).toFixed(0):0},estimated_time_filament:e=>{var s,t;return(s=e.data.print_stats)!=null&&s.print_duration&&((t=e.data.print_stats)!=null&&t.filament_used)&&e.current_file.filament_total&&e.data.print_stats.filament_used>0&&e.current_file.filament_total>e.data.print_stats.filament_used?(e.data.print_stats.print_duration/(e.data.print_stats.filament_used/e.current_file.filament_total)-e.data.print_stats.print_duration).toFixed(0):0},estimated_time_slicer:e=>{var s,t,r;return e.data.print_stats&&((s=e.data.print_stats)!=null&&s.print_duration)&&((t=e.current_file)!=null&&t.estimated_time)&&((r=e.current_file)==null?void 0:r.estimated_time)>e.data.print_stats.print_duration?(e.current_file.estimated_time-e.data.print_stats.print_duration).toFixed(0):0},estimated_time_eta:(e,s)=>{var o,l,c,u,d,m,h,p,f,b,C,S;let t=0,r=0;const i=(u=(c=(l=(o=e.data.gui)==null?void 0:o.general)==null?void 0:l.calcEtaTime)==null?void 0:c.includes("file"))!=null?u:!0,n=(p=(h=(m=(d=e.data.gui)==null?void 0:d.general)==null?void 0:m.calcEtaTime)==null?void 0:h.includes("filament"))!=null?p:!0,a=(S=(C=(b=(f=e.data.gui)==null?void 0:f.general)==null?void 0:b.calcEtaTime)==null?void 0:C.includes("slicer"))!=null?S:!0;return i&&s.estimated_time_file>0&&(t+=parseInt(s.estimated_time_file),r++),n&&s.estimated_time_filament>0&&(t+=parseInt(s.estimated_time_filament),r++),a&&s.estimated_time_slicer>0&&(t+=parseInt(s.estimated_time_slicer),r++),t&&r?Date.now()+t/r*1e3:0},getPrinterWebcams:e=>e.data.webcams.filter(s=>s.enabled)},ep=()=>({_namespace:"",socket:{instance:null,hostname:"",port:7125,path:"",webPort:80,protocol:document.location.protocol==="https:"?"wss":"ws",isConnected:!1,isConnecting:!1,reconnects:0,maxReconnects:2,reconnectInterval:1e3,wsData:[]},server:{klippy_connected:!1},data:{gui:rd(),webcams:[]},settings:{},databases:[],current_file:{isDirectory:!1,filename:"",modified:new Date,permissions:""},theme_files:[]}),Aae=()=>ep(),kae={namespaced:!0,state:Aae,getters:Lae,actions:Eae,mutations:Oae},Fae=()=>({}),Rae=()=>Fae(),jae={namespaced:!0,state:Rae,getters:{countPrinters:e=>Object.keys(e).length,getPrinters:e=>e,getPrinterName:(e,s)=>t=>s[t+"/getPrinterName"],getPrinterSocketState:(e,s)=>t=>{var r;return(r=s[t+"/getPrinterSocketState"])!=null?r:{isConnecting:!1,isConnected:!1}},existsPrinter:e=>s=>Object.keys(e).includes(s)},actions:{registerPrinter({commit:e,dispatch:s},t){this.hasModule(["farm",t.id])||(this.registerModule(["farm",t.id],kae),e("farm/"+t.id+"/setSocketData",{...t,_namespace:t.id},{root:!0}),"settings"in t&&e("farm/"+t.id+"/setSettings",t.settings,{root:!0}),s("farm/"+t.id+"/connect",{},{root:!0}))},updatePrinter({dispatch:e,commit:s},t){s(t.id+"/setSocketData",{hostname:t.values.hostname,port:t.values.port,path:t.values.path,isConnecting:!0}),e(t.id+"/reconnect")},unregisterPrinter({state:e},s){var t,r;s in e&&((r=(t=e[s].socket)==null?void 0:t.instance)==null||r.close(),this.unregisterModule(["farm",s]))}},mutations:{}},Hae={reset({commit:e}){e("reset")},downloadProgress({state:e,commit:s},t){var o;let r=e.loaderProgress.speed,i=e.loaderProgress.lastTimestamp,n=e.loaderProgress.lastLoaded;const a=t.progressEvent.timeStamp-e.loaderProgress.lastTimestamp;if(a>500){let c=(t.progressEvent.loaded-n)/a;const u=["kB","MB","GB"];let d=0;for(;c>1024;)c/=1024,d=Math.min(2,d+1);r=c.toFixed(2)+u[d],i=t.progressEvent.timeStamp,n=t.progressEvent.loaded}s("updateLoader",{direction:t.direction,speed:r,loaded:t.progressEvent.loaded,total:(o=t.filesize)!=null?o:t.progressEvent.total,lastLoaded:n,lastTimestamp:i})},openFile({state:e,dispatch:s,commit:t,rootGetters:r},i){const n=[];n.push(i.root);let a=i.path;a.slice(0,1)==="/"&&(a=a.slice(1)),a.slice(-1)==="/"&&(a=a.slice(0,-1)),a!==""&&n.push(a),n.push(i.filename);const o=n.join("/"),l=r["socket/getUrl"]+"/server/files/"+encodeURI(o)+"?".concat(Date.now());e.cancelToken&&s("cancelLoad");const u=ks.CancelToken.source();t("updateCancelTokenSource",u),t("updateLoaderState",!0),t("setFilename",i.filename),t("setPermissions",i.permissions),ks.get(l,{cancelToken:u.token,onDownloadProgress:d=>s("downloadProgress",{progressEvent:d,direction:"downloading",filesize:i.size}),responseType:"blob"}).then(d=>d.data.text()).then(d=>{t("openFile",{filename:i.filename,fileroot:i.root,filepath:a,file:d})}).finally(()=>{setTimeout(()=>{s("clearLoader")},100)})},async saveFile({state:e,commit:s,getters:t,rootGetters:r,dispatch:i},n){const a=new Blob([n.content],{type:"text/plain"}),o=new FormData;o.append("file",a,e.filename),o.append("root",e.fileroot),o.append("path",e.filepath),o.append("checksum",sr.sha256(n.content));const l=r["socket/getUrl"]+"/server/files/upload";e.cancelToken&&i("cancelLoad");const u=ks.CancelToken.source();s("updateCancelTokenSource",u),s("updateLoaderState",!0),ks.post(l,o,{cancelToken:u.token,onUploadProgress:d=>i("downloadProgress",{progressEvent:d,direction:"uploading",filesize:null})}).then(d=>d.data).then(d=>{if(i("clearLoader"),y.$toast.success(ve.t("Editor.SuccessfullySaved",{filename:d.item.path}).toString()),n.restartServiceName==="klipper"){const m=t.getKlipperRestartMethod;y.$socket.emit("printer.gcode.script",{script:m})}else n.restartServiceName==="moonraker"?y.$socket.emit("server.restart",{}):n.restartServiceName!==null&&y.$socket.emit("machine.services.restart",{service:n.restartServiceName});s("updateLoadedHash",n.content),n.restartServiceName!==null&&i("close")}).catch(d=>{var m;window.console.log((m=d.response)==null?void 0:m.data.error),i("clearLoader"),y.$toast.error(ve.t("Editor.FailedSave",{filename:e.filename}).toString())})},cancelLoad({state:e,commit:s,dispatch:t}){e.cancelToken&&(e.cancelToken.cancel("User canceled upload/download"),s("updateCancelTokenSource",null),t("clearLoader"))},clearLoader({commit:e}){e("updateLoaderState",!1),e("updateLoader",{direction:"downloading",lastLoaded:0,lastTimestamp:0,loaded:0,total:0,speed:""})},close({commit:e}){e("reset"),window.removeEventListener("beforeunload",im)},updateSourcecode({commit:e},s){e("updateSourcecode",s)}},Iae={reset(e){Object.assign(e,VS())},updateCancelTokenSource(e,s){y.set(e,"cancelToken",s)},updateLoaderState(e,s){y.set(e,"loaderBool",s)},updateLoader(e,s){y.set(e,"loaderProgress",s)},openFile(e,s){y.set(e,"filename",s.filename),y.set(e,"fileroot",s.fileroot),y.set(e,"filepath",s.filepath),y.set(e,"sourcecode",s.file),y.set(e,"loadedHash",sr.sha256(s.file.replace(/(?:\r\n|\r|\n)/g,"\n"))),y.set(e,"changed",!1),y.set(e,"bool",!0)},showEditor(e){y.set(e,"bool",!0)},setFilename(e,s){y.set(e,"filename",s)},setPermissions(e,s){y.set(e,"permissions",s)},hideEditor(e){y.set(e,"bool",!1)},updateSourcecode(e,s){y.set(e,"sourcecode",s),e.changed=sr.sha256(s)!=e.loadedHash},updateLoadedHash(e,s){y.set(e,"loadedHash",sr.sha256(s.replace(/(?:\r\n|\r|\n)/g,"\n"))),y.set(e,"changed",!1)}},Nae={getKlipperRestartMethod:(e,s,t)=>{var r,i;return(i=(r=t.gui.editor)==null?void 0:r.klipperRestartMethod)!=null?i:"FIRMWARE_RESTART"}},VS=()=>({bool:!1,filename:"",permissions:"",fileroot:"",filepath:"",sourcecode:"",loaderBool:!1,loaderProgress:{direction:"downloading",lastTimestamp:0,lastLoaded:0,loaded:0,total:0,speed:""},cancelToken:null,loadedHash:"",changed:!1}),Vae=VS(),Uae={namespaced:!0,state:Vae,getters:Nae,actions:Hae,mutations:Iae},Bae={reset({commit:e}){e("reset")},setViewerBackup({commit:e},s){e("setViewerBackup",s)},setCanvasBackup({commit:e},s){e("setCanvasBackup",s)},setLoadedFileBackup({commit:e},s){e("setLoadedFileBackup",s)}},Wae={reset(e){Object.assign(e,US())},setViewerBackup(e,s){y.set(e,"viewerBackup",s)},setCanvasBackup(e,s){y.set(e,"canvasBackup",s)},setLoadedFileBackup(e,s){y.set(e,"loadedFileBackup",s)}},Gae={},US=()=>({viewerBackup:null,canvasBackup:null,loadedFileBackup:null}),zae=US(),Zae={namespaced:!0,state:zae,getters:Gae,actions:Bae,mutations:Wae};y.use(gS);const qae=()=>({packageVersion:"2.12.0",debugMode:{}.VUE_APP_DEBUG_MODE||!1,naviDrawer:null,instancesDB:"moonraker",configInstances:[]}),Xae=qae(),wr=new gS.Store({state:Xae,modules:{socket:sie,server:Zie,printer:rne,files:lne,gui:Mae,farm:jae,editor:Uae,gcodeviewer:Zae},getters:Jre,mutations:Yre,actions:Xre});class Yae{constructor(s){this.url="",this.instance=null,this.maxReconnects=5,this.reconnectInterval=1e3,this.reconnects=0,this.keepAliveTimeout=1e3,this.messageId=0,this.timerId=null,this.store=null,this.waits=[],this.url=s.url,this.maxReconnects=s.maxReconnects||5,this.reconnectInterval=s.reconnectInterval||1e3,this.store=s.store}setUrl(s){this.url=s}handleMessage(s){var r,i,n,a,o,l,c,u,d,m,h,p;const t=this.getWaitById(s.id);if((r=s.error)!=null&&r.message){if(((i=s.error)==null?void 0:i.message)!=="Klippy Disconnected"&&window.console.error("Response Error: ".concat(s.error.message," (").concat((n=t==null?void 0:t.action)!=null?n:"no action",")")),t!=null&&t.id){const f=(o=(a=t.action)==null?void 0:a.split("/")[1])!=null?o:null;if(f&&((l=t.action)!=null&&l.startsWith("server/"))&&yy.includes(f)&&((u=(c=this.store)==null?void 0:c.state.socket)!=null&&u.initializationList.length)){const b=t.action.replace("server/","").split("/")[0];window.console.error("init server component ".concat(b," failed")),(d=this.store)==null||d.dispatch("server/addFailedInitComponent",b),(m=this.store)==null||m.dispatch("socket/removeInitComponent","server/".concat(b,"/"))}this.removeWaitById(t.id)}return}if(!t){(h=this.store)==null||h.dispatch("socket/onMessage",s);return}if(t!=null&&t.action){let f=s.result;f==="ok"&&(f={result:f}),typeof f=="string"&&(f={result:f});const b={};t.actionPayload&&Object.assign(b,t.actionPayload),Object.assign(b,{requestParams:t.params}),Object.assign(b,f),(p=this.store)==null||p.dispatch(t.action,b)}this.removeWaitById(t.id)}async connect(){var s,t;(s=this.store)==null||s.dispatch("socket/setData",{isConnecting:!0}),await((t=this.instance)==null?void 0:t.close()),this.instance=new WebSocket(this.url),this.instance.onopen=()=>{var r;this.reconnects=0,(r=this.store)==null||r.dispatch("socket/onOpen",event)},this.instance.onclose=r=>{var i;if(r.wasClean||this.reconnects>=this.maxReconnects){(i=this.store)==null||i.dispatch("socket/onClose",r);return}this.reconnects++,setTimeout(()=>{this.connect()},this.reconnectInterval)},this.instance.onerror=()=>{var r;(r=this.instance)==null||r.close()},this.instance.onmessage=r=>{if(this.store===null)return;const i=JSON.parse(r.data);if(Array.isArray(i))for(const n of i)this.handleMessage(n);else this.handleMessage(i)}}close(){var s;(s=this.instance)==null||s.close()}getWaitById(s){var t;return(t=this.waits.find(r=>r.id===s))!=null?t:null}removeWaitById(s){var r;const t=this.waits.findIndex(i=>i.id===s);if(t){const i=this.waits[t];i.loading&&((r=this.store)==null||r.dispatch("socket/removeLoading",{name:i.loading})),this.waits.splice(t,1)}}emit(s,t,r={}){var n,a,o,l,c;if(((n=this.instance)==null?void 0:n.readyState)!==WebSocket.OPEN)return;const i=this.messageId++;this.waits.push({id:i,params:t,action:(a=r.action)!=null?a:null,actionPayload:(o=r.actionPayload)!=null?o:{},loading:(l=r.loading)!=null?l:null}),r.loading&&((c=this.store)==null||c.dispatch("socket/addLoading",{name:r.loading})),this.instance.send(JSON.stringify({jsonrpc:"2.0",method:s,params:t,id:i}))}emitBatch(s){var r,i,n,a,o;if(s.length===0||((r=this.instance)==null?void 0:r.readyState)!==WebSocket.OPEN)return;const t=[];for(const{method:l,params:c,emitOptions:u={}}of s){const d=this.messageId++;this.waits.push({id:d,params:c,action:(i=u.action)!=null?i:null,actionPayload:(n=u.actionPayload)!=null?n:{},loading:(a=u.loading)!=null?a:null}),u.loading&&((o=this.store)==null||o.dispatch("socket/addLoading",{name:u.loading})),t.push({jsonrpc:"2.0",method:l,params:c,id:d})}this.instance.send(JSON.stringify(t))}}function Jae(e,s){const t=new Yae(s);e.prototype.$socket=t,e.$socket=t}function Ho(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ho=function(s){return typeof s}:Ho=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Ho(e)}function Kae(e,s){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}function q0(e,s){for(var t=0;t<s.length;t++){var r=s[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qae(e,s,t){return s&&q0(e.prototype,s),t&&q0(e,t),e}function X0(e){return eoe(e)||toe(e)||soe()}function eoe(e){if(Array.isArray(e)){for(var s=0,t=new Array(e.length);s<e.length;s++)t[s]=e[s];return t}}function toe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function soe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function roe(e){var s;return typeof e=="function"?s={callback:e}:s=e,s}function ioe(e,s){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,n,a=function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];if(n=u,!(r&&l===i)){var m=t.leading;typeof m=="function"&&(m=m(l,i)),(!r||l!==i)&&m&&e.apply(void 0,[l].concat(X0(n))),i=l,clearTimeout(r),r=setTimeout(function(){e.apply(void 0,[l].concat(X0(n))),r=0},s)}};return a._clear=function(){clearTimeout(r),r=null},a}function BS(e,s){if(e===s)return!0;if(Ho(e)==="object"){for(var t in e)if(!BS(e[t],s[t]))return!1;return!0}return!1}var noe=function(){function e(s,t,r){Kae(this,e),this.el=s,this.observer=null,this.frozen=!1,this.createObserver(t,r)}return Qae(e,[{key:"createObserver",value:function(t,r){var i=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=roe(t),this.callback=function(o,l){i.options.callback(o,l),o&&i.options.once&&(i.frozen=!0,i.destroyObserver())},this.callback&&this.options.throttle){var n=this.options.throttleOptions||{},a=n.leading;this.callback=ioe(this.callback,this.options.throttle,{leading:function(l){return a==="both"||a==="visible"&&l||a==="hidden"&&!l}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(o){var l=o[0];if(o.length>1){var c=o.find(function(d){return d.isIntersecting});c&&(l=c)}if(i.callback){var u=l.isIntersecting&&l.intersectionRatio>=i.threshold;if(u===i.oldResult)return;i.oldResult=u,i.callback(u,l)}},this.options.intersection),r.context.$nextTick(function(){i.observer&&i.observer.observe(i.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function WS(e,s,t){var r=s.value;if(r)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new noe(e,r,t);e._vue_visibilityState=i}}function aoe(e,s,t){var r=s.value,i=s.oldValue;if(!BS(r,i)){var n=e._vue_visibilityState;if(!r){GS(e);return}n?n.createObserver(r,t):WS(e,{value:r},t)}}function GS(e){var s=e._vue_visibilityState;s&&(s.destroyObserver(),delete e._vue_visibilityState)}var zS={bind:WS,update:aoe,unbind:GS};function ooe(e){e.directive("observe-visibility",zS)}var loe={version:"1.0.0",install:ooe},Sc=null;typeof window<"u"?Sc=window.Vue:typeof global<"u"&&(Sc=global.Vue);Sc&&Sc.use(loe);var coe=function(s){return uoe(s)&&!doe(s)};function uoe(e){return!!e&&typeof e=="object"}function doe(e){var s=Object.prototype.toString.call(e);return s==="[object RegExp]"||s==="[object Date]"||poe(e)}var moe=typeof Symbol=="function"&&Symbol.for,hoe=moe?Symbol.for("react.element"):60103;function poe(e){return e.$$typeof===hoe}function foe(e){return Array.isArray(e)?[]:{}}function Oa(e,s){return s.clone!==!1&&s.isMergeableObject(e)?Xi(foe(e),e,s):e}function goe(e,s,t){return e.concat(s).map(function(r){return Oa(r,t)})}function voe(e,s){if(!s.customMerge)return Xi;var t=s.customMerge(e);return typeof t=="function"?t:Xi}function _oe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(s){return Object.propertyIsEnumerable.call(e,s)}):[]}function Y0(e){return Object.keys(e).concat(_oe(e))}function ZS(e,s){try{return s in e}catch{return!1}}function boe(e,s){return ZS(e,s)&&!(Object.hasOwnProperty.call(e,s)&&Object.propertyIsEnumerable.call(e,s))}function yoe(e,s,t){var r={};return t.isMergeableObject(e)&&Y0(e).forEach(function(i){r[i]=Oa(e[i],t)}),Y0(s).forEach(function(i){boe(e,i)||(ZS(e,i)&&t.isMergeableObject(s[i])?r[i]=voe(i,t)(e[i],s[i],t):r[i]=Oa(s[i],t))}),r}function Xi(e,s,t){t=t||{},t.arrayMerge=t.arrayMerge||goe,t.isMergeableObject=t.isMergeableObject||coe,t.cloneUnlessOtherwiseSpecified=Oa;var r=Array.isArray(s),i=Array.isArray(e),n=r===i;return n?r?t.arrayMerge(e,s,t):yoe(e,s,t):Oa(s,t)}Xi.all=function(s,t){if(!Array.isArray(s))throw new Error("first argument should be an array");return s.reduce(function(r,i){return Xi(r,i,t)},{})};var Coe=Xi,$oe=Coe;const xoe=Ji($oe);/**
* vue-meta v2.4.0
* (c) 2020
* - Declan de Wet
* - Sébastien Chopin (@Atinux)
* - Pim (@pimlie)
* - All the amazing contributors
* @license MIT
*/var woe="2.4.0";function Nn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nn=function(s){return typeof s}:Nn=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Nn(e)}function tp(e,s,t){return s in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}function J0(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function es(e){for(var s=1;s<arguments.length;s++){var t=arguments[s]!=null?arguments[s]:{};s%2?J0(Object(t),!0).forEach(function(r){tp(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J0(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function qS(e){return Soe(e)||Poe(e)||XS(e)||Doe()}function Soe(e){if(Array.isArray(e))return sp(e)}function Poe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function XS(e,s){if(e){if(typeof e=="string")return sp(e,s);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return sp(e,s)}}function sp(e,s){(s==null||s>e.length)&&(s=e.length);for(var t=0,r=new Array(s);t<s;t++)r[t]=e[t];return r}function Doe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Toe(e,s){var t;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(t=XS(e))||s&&e&&typeof e.length=="number"){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n=!0,a=!1,o;return{s:function(){t=e[Symbol.iterator]()},n:function(){var l=t.next();return n=l.done,l},e:function(l){a=!0,o=l},f:function(){try{!n&&t.return!=null&&t.return()}finally{if(a)throw o}}}}function Pc(e){return Array.isArray(e)}function Hs(e){return typeof e>"u"}function id(e){return Nn(e)==="object"}function K0(e){return Nn(e)==="object"&&e!==null}function nd(e){return typeof e=="function"}function Moe(e){return typeof e=="string"}function Eoe(){try{return!Hs(window)}catch{return!1}}var Ooe=Eoe(),Loe=Ooe?window:global,Id=Loe.console||{};function Dc(e){!Id||!Id.warn||Id.warn(e)}var YS=function(){return Dc("This vue app/component has no vue-meta configuration")},ag={title:void 0,titleChunk:"",titleTemplate:"%s",htmlAttrs:{},bodyAttrs:{},headAttrs:{},base:[],link:[],meta:[],style:[],script:[],noscript:[],__dangerouslyDisableSanitizers:[],__dangerouslyDisableSanitizersByTagID:{}},De="_vueMeta",Aoe="metaInfo",koe="data-vue-meta",Foe="data-vue-meta-server-rendered",Roe="vmid",joe="template",Hoe="content",Ioe="ssr",Noe=10,Voe=!0,Es={keyName:Aoe,attribute:koe,ssrAttribute:Foe,tagIDKeyName:Roe,contentKeyName:Hoe,metaTemplateKeyName:joe,waitOnDestroyed:Voe,debounceWait:Noe,ssrAppId:Ioe},kr=Object.keys(ag),Tc=[kr[12],kr[13]],og=[kr[1],kr[2],"changed"].concat(Tc),ad=[kr[3],kr[4],kr[5]],Uoe=["link","style","script"],Boe=["base","meta","link"],Woe=["noscript","script","style"],Goe=["innerHTML","cssText","json"],JS=["once","skip","template"],KS=["body","pbody"],to=["allowfullscreen","amp","amp-boilerplate","async","autofocus","autoplay","checked","compact","controls","declare","default","defaultchecked","defaultmuted","defaultselected","defer","disabled","enabled","formnovalidate","hidden","indeterminate","inert","ismap","itemscope","loop","multiple","muted","nohref","noresize","noshade","novalidate","nowrap","open","pauseonexit","readonly","required","reversed","scoped","seamless","selected","sortable","truespeed","typemustmatch","visible"],Nd=null;function wn(e,s,t){var r=e.debounceWait;!s[De].initialized&&(s[De].initializing||t==="watcher")&&(s[De].initialized=null),s[De].initialized&&!s[De].pausing&&zoe(function(){return void s.$meta().refresh()},r)}function zoe(e,s){if(s=s===void 0?10:s,!s){e();return}return clearTimeout(Nd),Nd=setTimeout(function(){e()},s),Nd}function Zoe(e,s,t){if(!Array.prototype.find){for(var r=0;r<e.length;r++)if(s.call(t,e[r],r,e))return e[r];return}return e.find(s,t)}function QS(e,s,t){if(!Array.prototype.findIndex){for(var r=0;r<e.length;r++)if(s.call(t,e[r],r,e))return r;return-1}return e.findIndex(s,t)}function lg(e){return Array.from?Array.from(e):Array.prototype.slice.call(e)}function ns(e,s){if(!Array.prototype.includes){for(var t in e)if(e[t]===s)return!0;return!1}return e.includes(s)}var cg=function(s,t){return(t||document).querySelectorAll(s)};function hi(e,s){return e[s]||(e[s]=document.getElementsByTagName(s)[0]),e[s]}function qoe(e){var s=e.body,t=e.pbody;return s?"body":t?"pbody":"head"}function Vd(e,s,t){var r=s.appId,i=s.attribute,n=s.type,a=s.tagIDKeyName;t=t||{};var o=["".concat(n,"[").concat(i,'="').concat(r,'"]'),"".concat(n,"[data-").concat(a,"]")].map(function(l){for(var c in t){var u=t[c],d=u&&u!==!0?'="'.concat(u,'"'):"";l+="[data-".concat(c).concat(d,"]")}return l});return lg(cg(o.join(", "),e))}function Xoe(e,s){var t=e.attribute;lg(cg("[".concat(t,'="').concat(s,'"]'))).map(function(r){return r.remove()})}function Mc(e,s){e.removeAttribute(s)}function rp(e){return e=e||this,e&&(e[De]===!0||id(e[De]))}function Yoe(e){return e=e||this,e&&!Hs(e[De])}function eP(e,s){return e[De].pausing=!0,function(){return ug(e,s)}}function ug(e,s){if(e[De].pausing=!1,s||s===void 0)return e.$meta().refresh()}function ip(e){var s=e.$router;e[De].navGuards||!s||(e[De].navGuards=!0,s.beforeEach(function(t,r,i){eP(e),i()}),s.afterEach(function(){e.$nextTick(function(){var t=ug(e),r=t.metaInfo;r&&nd(r.afterNavigation)&&r.afterNavigation(r)})}))}var Q0=1;function Joe(e,s){var t=["activated","deactivated","beforeMount"],r=!1;return{beforeCreate:function(){var n=this,a="$root",o=this[a],l=this.$options,c=e.config.devtools;if(Object.defineProperty(this,"_hasMetaInfo",{configurable:!0,get:function(){return c&&!o[De].deprecationWarningShown&&(Dc("VueMeta DeprecationWarning: _hasMetaInfo has been deprecated and will be removed in a future version. Please use hasMetaInfo(vm) instead"),o[De].deprecationWarningShown=!0),rp(this)}}),this===o&&o.$once("hook:beforeMount",function(){if(r=this.$el&&this.$el.nodeType===1&&this.$el.hasAttribute("data-server-rendered"),!r&&o[De]&&o[De].appId===1){var d=hi({},"html");r=d&&d.hasAttribute(s.ssrAttribute)}}),!(Hs(l[s.keyName])||l[s.keyName]===null)){if(o[De]||(o[De]={appId:Q0},Q0++,c&&o.$options[s.keyName]&&this.$nextTick(function(){var d=Zoe(o.$children,function(m){return m.$vnode&&m.$vnode.fnOptions});d&&d.$vnode.fnOptions[s.keyName]&&Dc("VueMeta has detected a possible global mixin which adds a ".concat(s.keyName," property to all Vue components on the page. This could cause severe performance issues. If possible, use $meta().addApp to add meta information instead"))})),!this[De]){this[De]=!0;for(var u=this.$parent;u&&u!==o;)Hs(u[De])&&(u[De]=!1),u=u.$parent}nd(l[s.keyName])&&(l.computed=l.computed||{},l.computed.$metaInfo=l[s.keyName],this.$isServer||this.$on("hook:created",function(){this.$watch("$metaInfo",function(){wn(s,this[a],"watcher")})})),Hs(o[De].initialized)&&(o[De].initialized=this.$isServer,o[De].initialized||(o[De].initializedSsr||(o[De].initializedSsr=!0,this.$on("hook:beforeMount",function(){var d=this[a];r&&(d[De].appId=s.ssrAppId)})),this.$on("hook:mounted",function(){var d=this[a];d[De].initialized||(d[De].initializing=!0,this.$nextTick(function(){var m=d.$meta().refresh(),h=m.tags,p=m.metaInfo;h===!1&&d[De].initialized===null&&this.$nextTick(function(){return wn(s,d,"init")}),d[De].initialized=!0,delete d[De].initializing,!s.refreshOnceOnNavigation&&p.afterNavigation&&ip(d)}))}),s.refreshOnceOnNavigation&&ip(o))),this.$on("hook:destroyed",function(){var d=this;!this.$parent||!rp(this)||(delete this._hasMetaInfo,this.$nextTick(function(){if(!s.waitOnDestroyed||!d.$el||!d.$el.offsetParent){wn(s,d.$root,"destroyed");return}var m=setInterval(function(){d.$el&&d.$el.offsetParent!==null||(clearInterval(m),wn(s,d.$root,"destroyed"))},50)}))}),!this.$isServer&&t.forEach(function(d){n.$on("hook:".concat(d),function(){wn(s,this[a],d)})})}}}}function tP(e){return e=id(e)?e:{},{keyName:e.keyName||Es.keyName,attribute:e.attribute||Es.attribute,ssrAttribute:e.ssrAttribute||Es.ssrAttribute,tagIDKeyName:e.tagIDKeyName||Es.tagIDKeyName,contentKeyName:e.contentKeyName||Es.contentKeyName,metaTemplateKeyName:e.metaTemplateKeyName||Es.metaTemplateKeyName,debounceWait:Hs(e.debounceWait)?Es.debounceWait:e.debounceWait,waitOnDestroyed:Hs(e.waitOnDestroyed)?Es.waitOnDestroyed:e.waitOnDestroyed,ssrAppId:e.ssrAppId||Es.ssrAppId,refreshOnceOnNavigation:!!e.refreshOnceOnNavigation}}function Koe(e){var s={};for(var t in e)s[t]=e[t];return s}function ey(e,s){return!s||!id(e)?Pc(e)?e:[]:(Pc(e[s])||(e[s]=[]),e)}var sP=[[/&/g,"&amp;"],[/</g,"&lt;"],[/>/g,"&gt;"],[/"/g,"&quot;"],[/'/g,"&#x27;"]],Qoe=[[/&/g,"&"],[/</g,"<"],[/>/g,">"],[/"/g,'"'],[/'/g,"'"]];function np(e,s,t,r){var i=s.tagIDKeyName,n=t.doEscape,a=n===void 0?function(h){return h}:n,o={};for(var l in e){var c=e[l];if(ns(og,l)){o[l]=c;continue}var u=Tc[0];if(t[u]&&ns(t[u],l)){o[l]=c;continue}var d=e[i];if(d&&(u=Tc[1],t[u]&&t[u][d]&&ns(t[u][d],l))){o[l]=c;continue}if(Moe(c)?o[l]=a(c):Pc(c)?o[l]=c.map(function(h){return K0(h)?np(h,s,t,!0):a(h)}):K0(c)?o[l]=np(c,s,t,!0):o[l]=c,r){var m=a(l);l!==m&&(o[m]=o[l],delete o[l])}}return o}function ele(e,s,t){t=t||[];var r={doEscape:function(n){return t.reduce(function(a,o){return a.replace(o[0],o[1])},n)}};return Tc.forEach(function(i,n){if(n===0)ey(s,i);else if(n===1)for(var a in s[i])ey(s[i],a);r[i]=s[i]}),np(s,e,r)}function Ec(e,s,t,r){var i=e.component,n=e.metaTemplateKeyName,a=e.contentKeyName;return t===!0||s[n]===!0?!1:(Hs(t)&&s[n]&&(t=s[n],s[n]=!0),t?(Hs(r)&&(r=s[a]),s[a]=nd(t)?t.call(i,r):t.replace(/%s/g,r),!0):(delete s[n],!1))}function tle(e,s,t){var r=e.component,i=e.tagIDKeyName,n=e.metaTemplateKeyName,a=e.contentKeyName,o=[];return!s.length&&!t.length?o:(s.forEach(function(l,c){if(!l[i]){o.push(l);return}var u=QS(t,function(p){return p[i]===l[i]}),d=t[u];if(u===-1){o.push(l);return}if(a in d&&d[a]===void 0||"innerHTML"in d&&d.innerHTML===void 0){o.push(l),t.splice(u,1);return}if(d[a]===null||d.innerHTML===null){t.splice(u,1);return}var m=l[n];if(m){var h=d[n];if(!h){Ec({component:r,metaTemplateKeyName:n,contentKeyName:a},d,m),d.template=!0;return}d[a]||Ec({component:r,metaTemplateKeyName:n,contentKeyName:a},d,void 0,l[a])}}),o.concat(t))}var ty=!1;function sle(e,s,t){return t=t||{},s.title===void 0&&delete s.title,ad.forEach(function(r){if(s[r])for(var i in s[r])i in s[r]&&s[r][i]===void 0&&(ns(to,i)&&!ty&&(Dc("VueMeta: Please note that since v2 the value undefined is not used to indicate boolean attributes anymore, see migration guide for details"),ty=!0),delete s[r][i])}),xoe(e,s,{arrayMerge:function(i,n){return tle(t,i,n)}})}function rP(e,s){return iP(e||{},s,ag)}function iP(e,s,t){if(t=t||{},s._inactive)return t;e=e||{};var r=e,i=r.keyName,n=s.$metaInfo,a=s.$options,o=s.$children;if(a[i]){var l=n||a[i];id(l)&&(t=sle(t,l,e))}return o.length&&o.forEach(function(c){Yoe(c)&&(t=iP(e,c,t))}),t}var nP=[];function rle(e){return(e||document).readyState==="complete"}function ile(e,s){arguments.length===1&&(s=e,e=""),nP.push([e,s])}function nle(e,s,t,r){var i=e.tagIDKeyName,n=!1;return t.forEach(function(a){!a[i]||!a.callback||(n=!0,ile("".concat(s,"[data-").concat(i,'="').concat(a[i],'"]'),a.callback))}),!r||!n?n:aP()}function aP(){if(rle()){sy();return}document.onreadystatechange=function(){sy()}}function sy(e){nP.forEach(function(s){var t=s[0],r=s[1],i="".concat(t,'[onload="this.__vm_l=1"]'),n=[];e||(n=lg(cg(i))),e&&e.matches(i)&&(n=[e]),n.forEach(function(a){if(!a.__vm_cb){var o=function(){a.__vm_cb=!0,Mc(a,"onload"),r(a)};if(a.__vm_l){o();return}a.__vm_ev||(a.__vm_ev=!0,a.addEventListener("load",o))}})})}var Ud={};function oP(e,s,t,r,i){var n=s||{},a=n.attribute,o=i.getAttribute(a);o&&(Ud[t]=JSON.parse(decodeURI(o)),Mc(i,a));var l=Ud[t]||{},c=[];for(var u in l)l[u]!==void 0&&e in l[u]&&(c.push(u),r[u]||delete l[u][e]);for(var d in r){var m=l[d];(!m||m[e]!==r[d])&&(c.push(d),r[d]!==void 0&&(l[d]=l[d]||{},l[d][e]=r[d]))}for(var h=0,p=c;h<p.length;h++){var f=p[h],b=l[f],C=[];for(var S in b)Array.prototype.push.apply(C,[].concat(b[S]));if(C.length){var L=ns(to,f)&&C.some(Boolean)?"":C.filter(function(N){return N!==void 0}).join(" ");i.setAttribute(f,L)}else Mc(i,f)}Ud[t]=l}function ale(e){!e&&e!==""||(document.title=e)}function ole(e,s,t,r,i,n){var a=s||{},o=a.attribute,l=a.tagIDKeyName,c=KS.slice();c.push(l);var u=[],d={appId:e,attribute:o,type:t,tagIDKeyName:l},m={head:Vd(i,d),pbody:Vd(n,d,{pbody:!0}),body:Vd(n,d,{body:!0})};if(r.length>1){var h=[];r=r.filter(function(b){var C=JSON.stringify(b),S=!ns(h,C);return h.push(C),S})}r.forEach(function(b){if(!b.skip){var C=document.createElement(t);b.once||C.setAttribute(o,e),Object.keys(b).forEach(function(R){if(!ns(JS,R)){if(R==="innerHTML"){C.innerHTML=b.innerHTML;return}if(R==="json"){C.innerHTML=JSON.stringify(b.json);return}if(R==="cssText"){C.styleSheet?C.styleSheet.cssText=b.cssText:C.appendChild(document.createTextNode(b.cssText));return}if(R==="callback"){C.onload=function(){return b[R](C)};return}var x=ns(c,R)?"data-".concat(R):R,T=ns(to,R);if(!(T&&!b[R])){var I=T?"":b[R];C.setAttribute(x,I)}}});var S=m[qoe(b)],L,N=S.some(function(R,x){return L=x,C.isEqualNode(R)});N&&(L||L===0)?S.splice(L,1):u.push(C)}});var p=[];for(var f in m)Array.prototype.push.apply(p,m[f]);return p.forEach(function(b){b.parentNode.removeChild(b)}),u.forEach(function(b){if(b.hasAttribute("data-body")){n.appendChild(b);return}if(b.hasAttribute("data-pbody")){n.insertBefore(b,n.firstChild);return}i.appendChild(b)}),{oldTags:p,newTags:u}}function ap(e,s,t){s=s||{};var r=s,i=r.ssrAttribute,n=r.ssrAppId,a={},o=hi(a,"html");if(e===n&&o.hasAttribute(i)){Mc(o,i);var l=!1;return Uoe.forEach(function(b){t[b]&&nle(s,b,t[b])&&(l=!0)}),l&&aP(),!1}var c={},u={};for(var d in t)if(!ns(og,d)){if(d==="title"){ale(t.title);continue}if(ns(ad,d)){var m=d.substr(0,4);oP(e,s,d,t[d],hi(a,m));continue}if(Pc(t[d])){var h=ole(e,s,d,t[d],hi(a,"head"),hi(a,"body")),p=h.oldTags,f=h.newTags;f.length&&(c[d]=f,u[d]=p)}}return{tagsAdded:c,tagsRemoved:u}}var lr;function lle(e,s,t){return{set:function(i){return cle(e,s,t,i)},remove:function(){return ule(e,s,t)}}}function cle(e,s,t,r){if(e&&e.$el)return ap(s,t,r);lr=lr||{},lr[s]=r}function ule(e,s,t){if(e&&e.$el){var r={},i=Toe(ad),n;try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.substr(0,4);oP(s,t,a,{},hi(r,o))}}catch(l){i.e(l)}finally{i.f()}return Xoe(t,s)}lr[s]&&(delete lr[s],dg())}function lP(){return lr}function dg(e){(e||!Object.keys(lr).length)&&(lr=void 0)}function mg(e,s,t,r){e=e||{},t=t||[];var i=e,n=i.tagIDKeyName;return s.title&&(s.titleChunk=s.title),s.titleTemplate&&s.titleTemplate!=="%s"&&Ec({component:r,contentKeyName:"title"},s,s.titleTemplate,s.titleChunk||""),s.base&&(s.base=Object.keys(s.base).length?[s.base]:[]),s.meta&&(s.meta=s.meta.filter(function(a,o,l){var c=!!a[n];if(!c)return!0;var u=o===QS(l,function(d){return d[n]===a[n]});return u}),s.meta.forEach(function(a){return Ec(e,a)})),ele(e,s,t)}function dle(e,s){if(s=s||{},!e[De])return YS(),{};var t=rP(s,e),r=mg(s,t,Qoe,e),i=e[De].appId,n=ap(i,s,r);n&&nd(r.changed)&&(r.changed(r,n.tagsAdded,n.tagsRemoved),n={addedTags:n.tagsAdded,removedTags:n.tagsRemoved});var a=lP();if(a){for(var o in a)ap(o,s,a[o]),delete a[o];dg(!0)}return{vm:e,metaInfo:r,tags:n}}function mle(e,s,t,r){var i=r.addSsrAttribute,n=e||{},a=n.attribute,o=n.ssrAttribute,l="";for(var c in t){var u=t[c],d=[];for(var m in u)d.push.apply(d,qS([].concat(u[m])));d.length&&(l+=to.includes(c)&&d.some(Boolean)?"".concat(c):"".concat(c,'="').concat(d.join(" "),'"'),l+=" ")}return l&&(l+="".concat(a,'="').concat(encodeURI(JSON.stringify(t)),'"')),s==="htmlAttrs"&&i?"".concat(o).concat(l?" ":"").concat(l):l}function hle(e,s,t,r){var i=r||{},n=i.ln;return t?"<".concat(s,">").concat(t,"</").concat(s,">").concat(n?"\n":""):""}function ry(e,s,t,r){var i=e||{},n=i.ssrAppId,a=i.attribute,o=i.tagIDKeyName,l=r||{},c=l.appId,u=l.isSSR,d=u===void 0?!0:u,m=l.body,h=m===void 0?!1:m,p=l.pbody,f=p===void 0?!1:p,b=l.ln,C=b===void 0?!1:b,S=[o].concat(qS(KS));return!t||!t.length?"":t.reduce(function(L,N){if(N.skip)return L;var R=Object.keys(N);if(R.length===0||!!N.body!==h||!!N.pbody!==f)return L;var x=N.once?"":" ".concat(a,'="').concat(c||(d===!1?"1":n),'"');for(var T in N)if(!(Goe.includes(T)||JS.includes(T))){if(T==="callback"){x+=' onload="this.__vm_l=1"';continue}var I="";S.includes(T)&&(I="data-");var j=!I&&to.includes(T);j&&!N[T]||(x+=" ".concat(I).concat(T)+(j?"":'="'.concat(N[T],'"')))}var W="";N.json&&(W=JSON.stringify(N.json));var Z=N.innerHTML||N.cssText||W,re=!Boe.includes(s),k=re&&Woe.includes(s);return"".concat(L,"<").concat(s).concat(x).concat(!k&&re?"/":"",">")+(k?"".concat(Z,"</").concat(s,">"):"")+(C?"\n":"")},"")}function cP(e,s,t){var r={data:s,extraData:void 0,addInfo:function(l,c){this.extraData=this.extraData||{},this.extraData[l]=c},callInjectors:function(l){var c=this.injectors;return(l.body||l.pbody?"":c.title.text(l))+c.meta.text(l)+c.base.text(l)+c.link.text(l)+c.style.text(l)+c.script.text(l)+c.noscript.text(l)},injectors:{head:function(l){return r.callInjectors(es(es({},t),{},{ln:l}))},bodyPrepend:function(l){return r.callInjectors(es(es({},t),{},{ln:l,pbody:!0}))},bodyAppend:function(l){return r.callInjectors(es(es({},t),{},{ln:l,body:!0}))}}},i=function(l){if(og.includes(l))return"continue";r.injectors[l]={text:function(u){var d=u===!0;if(u=es(es({addSsrAttribute:d},t),u),l==="title")return hle(e,l,r.data[l],u);if(ad.includes(l)){var m={},h=r.data[l];if(h){var p=u.isSSR===!1?"1":e.ssrAppId;for(var f in h)m[f]=tp({},p,h[f])}if(r.extraData)for(var b in r.extraData){var C=r.extraData[b][l];if(C)for(var S in C)m[S]=es(es({},m[S]),{},tp({},b,C[S]))}return mle(e,l,m,u)}var L=ry(e,l,r.data[l],u);if(r.extraData)for(var N in r.extraData){var R=r.extraData[N][l],x=ry(e,l,R,es({appId:N},u));L="".concat(L).concat(x)}return L}}};for(var n in ag)var a=i(n);return r}function ple(e,s,t){if(!e[De])return YS(),{};var r=rP(s,e),i=mg(s,r,sP,e),n=cP(s,i,t),a=lP();if(a){for(var o in a)n.addInfo(o,a[o]),delete a[o];dg(!0)}return n.injectors}function fle(e){e=e||{};var s=this.$root;return{getOptions:function(){return Koe(e)},setOptions:function(r){var i="refreshOnceOnNavigation";r&&r[i]&&(e.refreshOnceOnNavigation=!!r[i],ip(s));var n="debounceWait";if(r&&n in r){var a=parseInt(r[n]);isNaN(a)||(e.debounceWait=a)}var o="waitOnDestroyed";r&&o in r&&(e.waitOnDestroyed=!!r[o])},refresh:function(){return dle(s,e)},inject:function(r){return ple(s,e,r)},pause:function(){return eP(s)},resume:function(){return ug(s)},addApp:function(r){return lle(s,r,e)}}}function gle(e,s){s=tP(s);var t=mg(s,e,sP),r=cP(s,t);return r.injectors}function vle(e,s){e.__vuemeta_installed||(e.__vuemeta_installed=!0,s=tP(s),e.prototype.$meta=function(){return fle.call(this,s)},e.mixin(Joe(e,s)))}var _le={version:woe,install:vle,generate:function(s,t){return gle(s,t)},hasMetaInfo:rp},uP={exports:{}};/*!
* vue-load-image v0.2.0
* (c) 2021 Sangwon Lee <lsw0150305@gmail.com>
* Released under the MIT License.
*/(function(e,s){(function(t,r){e.exports=r()})(window,function(){return function(t){var r={};function i(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=t,i.c=r,i.d=function(n,a,o){i.o(n,a)||Object.defineProperty(n,a,{enumerable:!0,get:o})},i.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},i.t=function(n,a){if(1&a&&(n=i(n)),8&a||4&a&&typeof n=="object"&&n&&n.__esModule)return n;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&a&&typeof n!="string")for(var l in n)i.d(o,l,(function(c){return n[c]}).bind(null,l));return o},i.n=function(n){var a=n&&n.__esModule?function(){return n.default}:function(){return n};return i.d(a,"a",a),a},i.o=function(n,a){return Object.prototype.hasOwnProperty.call(n,a)},i.p="",i(i.s=0)}([function(t,r,i){i.r(r);var n="pending",a="loading",o="loaded",l="failed",c=function(d,m,h,p,f,b,C,S){var L,N=typeof d=="function"?d.options:d;if(m&&(N.render=m,N.staticRenderFns=h,N._compiled=!0),p&&(N.functional=!0),b&&(N._scopeId="data-v-"+b),C?(L=function(T){(T=T||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(T=__VUE_SSR_CONTEXT__),f&&f.call(this,T),T&&T._registeredComponents&&T._registeredComponents.add(C)},N._ssrRegister=L):f&&(L=S?function(){f.call(this,this.$root.$options.shadowRoot)}:f),L)if(N.functional){N._injectStyles=L;var R=N.render;N.render=function(T,I){return L.call(I),R(T,I)}}else{var x=N.beforeCreate;N.beforeCreate=x?[].concat(x,L):[L]}return{exports:d,options:N}}({data:function(){return{status:null,img:null,src:null}},created:function(){var d=this.$slots.image[0].data.attrs;if(this.src=d.src||d["data-src"],this.src)return this.status=a,this.crossOrigin=d.crossorigin,void this.createLoader();this.status=n},updated:function(){var d=this.$slots.image[0].data.attrs,m=d.src||d["data-src"];this.status!==a||this.img?this.src!==m&&(this.src=m,this.crossOrigin=d.crossorigin,this.createLoader()):this.createLoader()},watch:{src:function(d){this.status=d?a:n}},methods:{createLoader:function(){this.destroyLoader(),this.img=new Image,this.img.onload=this.handleLoad,this.img.onerror=this.handleError,this.img.crossOrigin=this.crossOrigin,this.img.src=this.src},destroyLoader:function(){this.img&&(this.img.onload=null,this.img.onerror=null,this.img=null)},handleLoad:function(){this.destroyLoader(),this.status=o,this.$emit("onLoad")},handleError:function(d){this.destroyLoader(),this.status=l,this.$emit("onError",d)}}},function(){var d=this.$createElement;return(this._self._c||d)("div",{staticClass:"vue-load-image"},[this.status==="loaded"?this._t("image"):this.status==="failed"?this._t("error"):this.status==="loading"?this._t("preloader"):this._e()],2)},[],!1,null,null,null);c.options.__file="VueLoadImage.vue";var u=c.exports;r.default=u}])})})(uP);var ble=uP.exports;const yle=Ji(ble);var dP={exports:{}};(function(e,s){(function(t,r){e.exports=r()})(Dr,()=>(()=>{var t={d:(m,h)=>{for(var p in h)t.o(h,p)&&!t.o(m,p)&&Object.defineProperty(m,p,{enumerable:!0,get:h[p]})},o:(m,h)=>Object.prototype.hasOwnProperty.call(m,h)},r={};t.d(r,{default:()=>d});class i{constructor(h,p){this.startedAt=Date.now(),this.callback=h,this.delay=p,this.timer=setTimeout(h,p)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt}resume(){this.stop(),this.startedAt=Date.now(),this.timer=setTimeout(this.callback,this.delay)}stop(){clearTimeout(this.timer)}}const n=Object.freeze({TOP_RIGHT:"top-right",TOP:"top",TOP_LEFT:"top-left",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left"}),a={all:o=o||new Map,on:function(m,h){var p=o.get(m);p?p.push(h):o.set(m,[h])},off:function(m,h){var p=o.get(m);p&&(h?p.splice(p.indexOf(h)>>>0,1):o.set(m,[]))},emit:function(m,h){var p=o.get(m);p&&p.slice().map(function(f){f(h)}),(p=o.get("*"))&&p.slice().map(function(f){f(m,h)})}};var o,l=function(m,h,p,f,b,C,S,L){var N,R=typeof m=="function"?m.options:m;if(h&&(R.render=h,R.staticRenderFns=p,R._compiled=!0),f&&(R.functional=!0),C&&(R._scopeId="data-v-"+C),S?(N=function(I){(I=I||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(I=__VUE_SSR_CONTEXT__),b&&b.call(this,I),I&&I._registeredComponents&&I._registeredComponents.add(S)},R._ssrRegister=N):b&&(N=L?function(){b.call(this,(R.functional?this.parent:this).$root.$options.shadowRoot)}:b),N)if(R.functional){R._injectStyles=N;var x=R.render;R.render=function(I,j){return N.call(j),x(I,j)}}else{var T=R.beforeCreate;R.beforeCreate=T?[].concat(T,N):[N]}return{exports:m,options:R}}({name:"toast",props:{message:{type:String,required:!0},type:{type:String,default:"success"},position:{type:String,default:n.BOTTOM_RIGHT,validator:m=>Object.values(n).includes(m)},duration:{type:Number,default:3e3},dismissible:{type:Boolean,default:!0},onDismiss:{type:Function,default:()=>{}},onClick:{type:Function,default:()=>{}},queue:Boolean,pauseOnHover:{type:Boolean,default:!0}},data:()=>({isActive:!1,parentTop:null,parentBottom:null,isHovered:!1}),beforeMount(){this.setupContainer()},mounted(){this.showNotice(),a.on("toast-clear",this.dismiss)},methods:{setupContainer(){if(this.parentTop=document.querySelector(".v-toast.v-toast--top"),this.parentBottom=document.querySelector(".v-toast.v-toast--bottom"),this.parentTop&&this.parentBottom)return;this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="v-toast v-toast--top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="v-toast v-toast--bottom");const m=document.body;m.appendChild(this.parentTop),m.appendChild(this.parentBottom)},shouldQueue(){return!!this.queue&&(this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0)},dismiss(){this.timer&&this.timer.stop(),clearTimeout(this.queueTimer),this.isActive=!1,setTimeout(()=>{var m;this.onDismiss.apply(null,arguments),this.$destroy(),(m=this.$el).remove!==void 0?m.remove():m.parentNode.removeChild(m)},150)},showNotice(){this.shouldQueue()?this.queueTimer=setTimeout(this.showNotice,250):(this.correctParent.insertAdjacentElement("afterbegin",this.$el),this.isActive=!0,this.duration&&(this.timer=new i(this.dismiss,this.duration)))},whenClicked(){this.dismissible&&(this.onClick.apply(null,arguments),this.dismiss())},toggleTimer(m){this.pauseOnHover&&this.timer&&(m?this.timer.pause():this.timer.resume())}},computed:{correctParent(){switch(this.position){case n.TOP:case n.TOP_RIGHT:case n.TOP_LEFT:return this.parentTop;case n.BOTTOM:case n.BOTTOM_RIGHT:case n.BOTTOM_LEFT:return this.parentBottom}},transition(){switch(this.position){case n.TOP:case n.TOP_RIGHT:case n.TOP_LEFT:return{enter:"v-toast--fade-in-down",leave:"v-toast--fade-out"};case n.BOTTOM:case n.BOTTOM_RIGHT:case n.BOTTOM_LEFT:return{enter:"v-toast--fade-in-up",leave:"v-toast--fade-out"}}}},beforeDestroy(){a.off("toast-clear",this.dismiss)}},function(){var m=this,h=m._self._c;return h("transition",{attrs:{"enter-active-class":m.transition.enter,"leave-active-class":m.transition.leave}},[h("div",{directives:[{name:"show",rawName:"v-show",value:m.isActive,expression:"isActive"}],staticClass:"v-toast__item",class:["v-toast__item--".concat(m.type),"v-toast__item--".concat(m.position)],attrs:{role:"alert"},on:{mouseover:function(p){return m.toggleTimer(!0)},mouseleave:function(p){return m.toggleTimer(!1)},click:m.whenClicked}},[h("div",{staticClass:"v-toast__icon"}),m._v(" "),h("p",{staticClass:"v-toast__text",domProps:{innerHTML:m._s(m.message)}})])])},[],!1,null,null,null);const c=l.exports,u=function(m){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{open(p){let f;typeof p=="string"&&(f=p);const b={message:f},C=Object.assign({},b,h,p);return new(m.extend(c))({el:document.createElement("div"),propsData:C})},clear(){a.emit("toast-clear")},success(p){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:p,type:"success"},f))},error(p){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:p,type:"error"},f))},info(p){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:p,type:"info"},f))},warning(p){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:p,type:"warning"},f))},default(p){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:p,type:"default"},f))}}};c.install=function(m){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=u(m,h);m.$toast=p,m.prototype.$toast=p};const d=c;return r=r.default})())})(dP);var Cle=dP.exports;const $le=Ji(Cle);class xle extends y.extend({name:"overlay-scrollbars",props:{options:{type:Object},extensions:{type:[String,Array,Object]}},methods:{osInstance(){return this._osInstace},osTarget(){return this.$el||null}},watch:{options(s,t){let r=this._osInstace;$o.valid(r)&&r.options(s)}},data(){return{}},mounted(){this._osInstace=$o(this.osTarget(),this.options||{},this.extensions)},beforeDestroy(){const s=this._osInstace;$o.valid(s)&&(s.destroy(),this._osInstace=null)}}){constructor(){super(...arguments),this._osInstace=null}}function wle(e,s,t,r,i,n,a,o,l,c){typeof a!="boolean"&&(l=o,o=a,a=!1);const u=typeof t=="function"?t.options:t;e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,i&&(u.functional=!0)),r&&(u._scopeId=r);let d;if(n?(d=function(m){m=m||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!m&&typeof __VUE_SSR_CONTEXT__<"u"&&(m=__VUE_SSR_CONTEXT__),s&&s.call(this,l(m)),m&&m._registeredComponents&&m._registeredComponents.add(n)},u._ssrRegister=d):s&&(d=a?function(m){s.call(this,c(m,this.$root.$options.shadowRoot))}:function(m){s.call(this,o(m))}),d)if(u.functional){const m=u.render;u.render=function(p,f){return d.call(f),m(p,f)}}else{const m=u.beforeCreate;u.beforeCreate=m?[].concat(m,d):[d]}return t}const Sle=xle;var mP=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"os-host"},[t("div",{staticClass:"os-resize-observer-host"}),e._v(" "),t("div",{staticClass:"os-padding"},[t("div",{staticClass:"os-viewport"},[t("div",{staticClass:"os-content"},[e._t("default")],2)])]),e._v(" "),e._m(0),e._v(" "),e._m(1),e._v(" "),t("div",{staticClass:"os-scrollbar-corner"})])},Ple=[function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"os-scrollbar os-scrollbar-horizontal "},[t("div",{staticClass:"os-scrollbar-track"},[t("div",{staticClass:"os-scrollbar-handle"})])])},function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"os-scrollbar os-scrollbar-vertical"},[t("div",{staticClass:"os-scrollbar-track"},[t("div",{staticClass:"os-scrollbar-handle"})])])}];mP._withStripped=!0;const Dle=void 0,Tle=void 0,Mle=void 0,Ele=!1,Ole=wle({render:mP,staticRenderFns:Ple},Dle,Sle,Tle,Ele,Mle,!1,void 0,void 0,void 0),Lle={install(e,s){s&&$o.defaultOptions(s),e.component("overlay-scrollbars",Ole)}};y.directive("longpress",{bind:function(e,s,t){var l,c;if(typeof s.value!="function"){const u=(l=t.context)==null?void 0:l.$options.name;let d="[longpress:] provided expression '".concat(s.expression,"' is not a function, but has to be");u&&(d+=" Found in component '".concat(u,"' ")),console.warn(d)}const r=Number((c=s.arg)!=null?c:1e3),i=u=>{s.value(u)};let n=null;const a=u=>{var d;if(u.type!=="click"&&!(!u.touches||u.touches.length<1))return(d=document.querySelector("body"))==null||d.setAttribute("style","user-select: none; -webkit-user-select: none; -moz-user-select: none;"),setTimeout(()=>{var m;(m=document.querySelector("body"))==null||m.setAttribute("style","")},r+200),n===null&&(n=window.setTimeout(()=>{u.preventDefault(),u.stopPropagation(),u.stopImmediatePropagation(),u.cancelBubble=!0,i({clientX:u.touches[0].clientX,clientY:u.touches[0].clientY,force:u.touches[0].force,identifier:u.touches[0].identifier,pageX:u.touches[0].pageX,pageY:u.touches[0].pageY,radiusX:u.touches[0].radiusX,radiusY:u.touches[0].radiusY,rotationAngle:u.touches[0].rotationAngle,screenX:u.touches[0].screenX,screenY:u.touches[0].screenY,preventDefault:()=>u.preventDefault()})},r)),!1},o=()=>{n!==null&&(clearTimeout(n),n=null)};e.addEventListener("touchstart",a),e.addEventListener("touchmove",o),e.addEventListener("touchend",o),e.addEventListener("touchcancel",o),document.addEventListener("scroll",o,{passive:!0})}});y.directive("responsive-class",{inserted(e,s){const t=g2(i=>{const n=i[0].contentRect;for(const a in s.value)e.classList.toggle(a,s.value[a](n))},50);new ResizeObserver(t).observe(e)}});var op=y;y.util.warn;var Bd=null;function Ale(e){return Bd||(Bd=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(s){return setTimeout(s,16)}).bind(window)),Bd(e)}var Wd=null;function kle(e){Wd||(Wd=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(s){clearTimeout(s)}).bind(window)),Wd(e)}function Fle(e){var s=document.createElement("style");return s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(s),s}function yo(e,s){s===void 0&&(s={});var t=document.createElement(e);return Object.keys(s).forEach(function(r){t[r]=s[r]}),t}function hP(e,s,t){var r=window.getComputedStyle(e,t||null)||{display:"none"};return r[s]}function lp(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var s=e;s!==document;){if(hP(s,"display")==="none")return{detached:!1,rendered:!1};s=s.parentNode}return{detached:!1,rendered:!0}}var Rle='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',cp=0,Io=null;function jle(e,s){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=Nle.bind(e));var t=e.__resize_listeners__;if(!t){if(e.__resize_listeners__=[],window.ResizeObserver){var r=e.offsetWidth,i=e.offsetHeight,n=new ResizeObserver(function(){!e.__resize_observer_triggered__&&(e.__resize_observer_triggered__=!0,e.offsetWidth===r&&e.offsetHeight===i)||Oc(e)}),a=lp(e),o=a.detached,l=a.rendered;e.__resize_observer_triggered__=o===!1&&l===!1,e.__resize_observer__=n,n.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){Oc(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(cp||(Io=Fle(Rle)),Vle(e),e.__resize_rendered__=lp(e).rendered,window.MutationObserver){var c=new MutationObserver(e.__resize_mutation_handler__);c.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=c}}e.__resize_listeners__.push(s),cp++}function Hle(e,s){var t=e.__resize_listeners__;if(t){if(s&&t.splice(t.indexOf(s),1),!t.length||!s){if(e.detachEvent&&e.removeEventListener){e.detachEvent("onresize",e.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);return}e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",hg),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--cp&&Io&&Io.parentNode.removeChild(Io)}}function Ile(e){var s=e.__resize_last__,t=s.width,r=s.height,i=e.offsetWidth,n=e.offsetHeight;return i!==t||n!==r?{width:i,height:n}:null}function Nle(){var e=lp(this),s=e.rendered,t=e.detached;s!==this.__resize_rendered__&&(!t&&this.__resize_triggers__&&(pg(this),this.addEventListener("scroll",hg,!0)),this.__resize_rendered__=s,Oc(this))}function hg(){var e=this;pg(this),this.__resize_raf__&&kle(this.__resize_raf__),this.__resize_raf__=Ale(function(){var s=Ile(e);s&&(e.__resize_last__=s,Oc(e))})}function Oc(e){!e||!e.__resize_listeners__||e.__resize_listeners__.forEach(function(s){s.call(e,e)})}function Vle(e){var s=hP(e,"position");(!s||s==="static")&&(e.style.position="relative"),e.__resize_old_position__=s,e.__resize_last__={};var t=yo("div",{className:"resize-triggers"}),r=yo("div",{className:"resize-expand-trigger"}),i=yo("div"),n=yo("div",{className:"resize-contract-trigger"});r.appendChild(i),t.appendChild(r),t.appendChild(n),e.appendChild(t),e.__resize_triggers__={triggers:t,expand:r,expandChild:i,contract:n},pg(e),e.addEventListener("scroll",hg,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function pg(e){var s=e.__resize_triggers__,t=s.expand,r=s.expandChild,i=s.contract,n=i.scrollWidth,a=i.scrollHeight,o=t.offsetWidth,l=t.offsetHeight,c=t.scrollWidth,u=t.scrollHeight;i.scrollLeft=n,i.scrollTop=a,r.style.width=o+1+"px",r.style.height=l+1+"px",t.scrollLeft=c,t.scrollTop=u}var Ls=function(){return Ls=Object.assign||function(e){for(var s,t=1,r=arguments.length;t<r;t++)for(var i in s=arguments[t])Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i]);return e},Ls.apply(this,arguments)};var Ule=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Ble(e){return s=Object.create(null),Ule.forEach(function(t){s[t]=function(r){return function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,i)}}(t)}),s;var s}var Wle={autoresize:[Boolean,Object]},Gle=/^on[^a-z]/,zle=function(e){return Gle.test(e)};function Co(e,s){var t=HP(e);return t&&typeof t=="object"&&"value"in t?t.value||s:t||s}var Zle="ecLoadingOptions",qle={loading:Boolean,loadingOptions:Object},Sn=null,fg="x-vue-echarts",iy=[],Pn=[];(function(e,s){if(e&&typeof document<"u"){var t,r=s.prepend===!0?"prepend":"append",i=s.singleTag===!0,n=typeof s.container=="string"?document.querySelector(s.container):document.getElementsByTagName("head")[0];if(i){var a=iy.indexOf(n);a===-1&&(a=iy.push(n)-1,Pn[a]={}),t=Pn[a]&&Pn[a][r]?Pn[a][r]:Pn[a][r]=o()}else t=o();e.charCodeAt(0)===65279&&(e=e.substring(1)),t.styleSheet?t.styleSheet.cssText+=e:t.appendChild(document.createTextNode(e))}function o(){var l=document.createElement("style");if(l.setAttribute("type","text/css"),s.attributes)for(var c=Object.keys(s.attributes),u=0;u<c.length;u++)l.setAttribute(c[u],s.attributes[c[u]]);var d=r==="prepend"?"afterbegin":"beforeend";return n.insertAdjacentElement(d,l),l}})("x-vue-echarts{display:block;width:100%;height:100%;min-width:0}x-vue-echarts>div{width:100%;height:100%}\n",{});var Xle=function(){if(Sn!=null)return Sn;if(typeof HTMLElement>"u"||typeof customElements>"u")return Sn=!1;try{new Function("tag","class EChartsElement extends HTMLElement {\n __dispose = null;\n\n disconnectedCallback() {\n if (this.__dispose) {\n this.__dispose();\n this.__dispose = null;\n }\n }\n}\n\nif (customElements.get(tag) == null) {\n customElements.define(tag, EChartsElement);\n}\n")(fg)}catch{return Sn=!1}return Sn=!0}();op&&op.config.ignoredElements.push(fg);var Yle="ecTheme",Jle="ecInitOptions",Kle="ecUpdateOptions",Qle=LP({name:"echarts",props:Ls(Ls({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},Wle),qle),emits:{},inheritAttrs:!1,setup:function(e,s){var t=s.attrs,r=so(),i=so(),n=so(),a=so(),o=ro(Yle,null),l=ro(Jle,null),c=ro(Kle,null),u=AP(e),d=u.autoresize,m=u.manualUpdate,h=u.loading,p=u.loadingOptions,f=$r(function(){return a.value||e.option||null}),b=$r(function(){return e.theme||Co(o,{})}),C=$r(function(){return e.initOptions||Co(l,{})}),S=$r(function(){return e.updateOptions||Co(c,{})}),L=$r(function(){return function(j){var W={};for(var Z in j)zle(Z)||(W[Z]=j[Z]);return W}(t)}),N=kP().proxy.$listeners;function R(j){if(i.value){var W=n.value=IP(i.value,b.value,C.value);e.group&&(W.group=e.group);var Z=N;Z||(Z={},Object.keys(t).filter(function(k){return k.indexOf("on")===0&&k.length>2}).forEach(function(k){var G=k.charAt(2).toLowerCase()+k.slice(3);G.substring(G.length-4)==="Once"&&(G="~".concat(G.substring(0,G.length-4))),Z[G]=t[k]})),Object.keys(Z).forEach(function(k){var G=Z[k];if(G){var X=k.toLowerCase();X.charAt(0)==="~"&&(X=X.substring(1),G.__once__=!0);var Y=W;if(X.indexOf("zr:")===0&&(Y=W.getZr(),X=X.substring(3)),G.__once__){delete G.__once__;var ee=G;G=function(){for(var se=[],F=0;F<arguments.length;F++)se[F]=arguments[F];ee.apply(void 0,se),Y.off(X,G)}}Y.on(X,G)}}),d.value?jP(function(){W&&!W.isDisposed()&&W.resize(),re()}):re()}function re(){var k=j||f.value;k&&W.setOption(k,S.value)}}function x(){n.value&&(n.value.dispose(),n.value=void 0)}var T=null;io(m,function(j){typeof T=="function"&&(T(),T=null),j||(T=io(function(){return e.option},function(W,Z){W&&(n.value?n.value.setOption(W,Ls({notMerge:W!==Z},S.value)):R())},{deep:!0}))},{immediate:!0}),io([b,C],function(){x(),R()},{deep:!0}),gg(function(){e.group&&n.value&&(n.value.group=e.group)});var I=Ble(n);return function(j,W,Z){var re=ro(Zle,{}),k=$r(function(){return Ls(Ls({},Co(re,{})),Z==null?void 0:Z.value)});gg(function(){var G=j.value;G&&(W.value?G.showLoading(k.value):G.hideLoading())})}(n,h,p),function(j,W,Z){var re=null;io([Z,j,W],function(k,G,X){var Y=k[0],ee=k[1],se=k[2];if(Y&&ee&&se){var F=se===!0?{}:se,z=F.throttle,w=z===void 0?100:z,A=F.onResize,H=function(){ee.resize(),A==null||A()};re=w?NP(H,w):H,jle(Y,re)}X(function(){Y&&re&&Hle(Y,re)})})}(n,d,i),FP(function(){R()}),RP(function(){Xle&&r.value?r.value.__dispose=x:x()}),Ls({chart:n,root:r,inner:i,setOption:function(j,W){e.manualUpdate&&(a.value=j),n.value?n.value.setOption(j,W||{}):R(j)},nonEventAttrs:L},I)},render:function(){var e=op?{attrs:this.nonEventAttrs}:Ls({},this.nonEventAttrs);return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",vg(fg,e,[vg("div",{ref:"inner"})])}});function ece(){var e=window.navigator.userAgent,s=e.indexOf("MSIE ");if(s>0)return parseInt(e.substring(s+5,e.indexOf(".",s)),10);var t=e.indexOf("Trident/");if(t>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}var No;function up(){up.init||(up.init=!0,No=ece()!==-1)}var tce={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted:function(){var s=this;up(),this.$nextTick(function(){s._w=s.$el.offsetWidth,s._h=s.$el.offsetHeight,s.emitOnMount&&s.emitSize()});var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",No&&this.$el.appendChild(t),t.data="about:blank",No||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()},methods:{compareAndNotify:function(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize:function(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!No&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};function sce(e,s,t,r,i,n,a,o,l,c){typeof a!="boolean"&&(l=o,o=a,a=!1);var u=typeof t=="function"?t.options:t;e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,i&&(u.functional=!0)),r&&(u._scopeId=r);var d;if(n?(d=function(f){f=f||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!f&&typeof __VUE_SSR_CONTEXT__<"u"&&(f=__VUE_SSR_CONTEXT__),s&&s.call(this,l(f)),f&&f._registeredComponents&&f._registeredComponents.add(n)},u._ssrRegister=d):s&&(d=a?function(p){s.call(this,c(p,this.$root.$options.shadowRoot))}:function(p){s.call(this,o(p))}),d)if(u.functional){var m=u.render;u.render=function(f,b){return d.call(b),m(f,b)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,d):[d]}return t}var rce=tce,pP=function(){var s=this,t=s.$createElement,r=s._self._c||t;return r("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},ice=[];pP._withStripped=!0;var nce=void 0,ace="data-v-8859cc6c",oce=void 0,lce=!1,ny=sce({render:pP,staticRenderFns:ice},nce,rce,ace,lce,oce,!1,void 0,void 0,void 0);function cce(e){e.component("resize-observer",ny),e.component("ResizeObserver",ny)}var fP={version:"1.0.1",install:cce},Lc=null;typeof window<"u"?Lc=window.Vue:typeof global<"u"&&(Lc=global.Vue);Lc&&Lc.use(fP);y.config.productionTip=!1;y.directive("observe-visibility",zS);y.use(_le);y.component("VueLoadImage",yle);y.use($le,{duration:3e3});const uce=navigator.userAgent.includes("Safari")&&navigator.userAgent.search("Chrome")===-1,dce="ontouchstart"in window||navigator.maxTouchPoints>0&&navigator.maxTouchPoints!==256;y.use(Lle,{className:"os-theme-light",scrollbars:{visibility:"auto",autoHide:uce&&dce?"scroll":"move"}});VP([UP,BP,WP,GP,zP,ZP,qP,XP]);y.component("EChart",Qle);y.use(fP);const mce=async()=>{var s,t;try{const r="/",n=await(await fetch("".concat(r,"config.json"))).json();window.console.debug("Loaded config.json"),await wr.dispatch("importConfigJson",n),"defaultLocale"in n&&await Jw(n.defaultLocale);const a=(s=n.defaultMode)!=null?s:gy;nS.framework.theme.dark=a!=="light"}catch(r){window.console.error("Failed to load config.json"),window.console.error(r)}const e=wr.getters["socket/getWebsocketUrl"];y.use(Jae,{url:e,store:wr}),((t=wr==null?void 0:wr.state)==null?void 0:t.instancesDB)==="moonraker"&&y.$socket.connect()};mce().then(()=>new y({vuetify:nS,router:Sa,store:wr,i18n:ve,render:e=>e(Ore)}).$mount("#app"));export{Je as A,O as B,D as C,ks as D,qe as E,fe as F,dr as G,B0 as H,P,fy as R,_t as T,me as W,B as _,Gc as a,pe as b,Bc as c,ze as d,bt as e,Zo as f,bce as g,kt as h,Ke as i,Iy as j,TD as k,jc as l,M as m,E as n,_ce as o,gce as p,Ep as q,c2 as r,ka as s,us as t,Jc as u,en as v,Dp as w,vce as x,wy as y,qo as z};