import{V as y,_ as De,a as oa,b as ki,c as v,d as le,e as zx,f as g,g as jl,h as oe,i as q,j as bs,k as Lr,l as S,m as _,n as re,o as ne,p as at,q as pe,r as ke,s as K,t as Rs,u as Gt,v as rt,w as E,x as Zx,y as Js,z as Nl,A as Nt,B as Le,C as $e,D as Oe,E as we,F as dt,G as vt,H as up,I as Ai,J as Ns,K as qx,L as Vl,M as Te,N as ns,O as Bu,P as mn,Q as $b,R as Xx,S as au,T as ho,U as ss,W as dp,X as Yx,Y as Jx,Z as Kx,$ as ai,a0 as xb,a1 as Qx,a2 as oi,a3 as ew,a4 as tw,a5 as Gr,a6 as br,a7 as Zs,a8 as sw,a9 as rw,aa as iw,ab as nw,ac as wb,ad as aw,ae as ow,af as lw,ag as Ta,ah as Da,ai as cw,aj as uw,ak as Ma,al as of,am as dw,an as hw,ao as lf,ap as pw,aq as mw}from"./vuetify-52f40ce5.js";import{g as Fi,c as xr,a as hp,O as za}from"./overlayscrollbars-44d87bcf.js";import{i as fw,t as gw,u as vw,a as _w,b as bw,c as yw,d as Cw,e as $w,f as xw,g as ww,h as Sw}from"./echarts-9bc570b0.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 Pw={exports:{}};(function(e){var s=function(t){var r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(F,G,x){F[G]=x.value},a,o=typeof Symbol=="function"?Symbol:{},l=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(F,G,x){return Object.defineProperty(F,G,{value:x,enumerable:!0,configurable:!0,writable:!0}),F[G]}try{d({},"")}catch{d=function(G,x,P){return G[x]=P}}function h(F,G,x,P){var L=G&&G.prototype instanceof M?G:M,Y=Object.create(L.prototype),ae=new Q(P||[]);return n(Y,"_invoke",{value:ee(F,x,ae)}),Y}t.wrap=h;function p(F,G,x){try{return{type:"normal",arg:F.call(G,x)}}catch(P){return{type:"throw",arg:P}}}var m="suspendedStart",f="suspendedYield",b="executing",C="completed",w={};function M(){}function H(){}function A(){}var $={};d($,l,function(){return this});var T=Object.getPrototypeOf,I=T&&T(T(te([])));I&&I!==r&&i.call(I,l)&&($=I);var R=A.prototype=M.prototype=Object.create($);H.prototype=A,n(R,"constructor",{value:A,configurable:!0}),n(A,"constructor",{value:H,configurable:!0}),H.displayName=d(A,u,"GeneratorFunction");function W(F){["next","throw","return"].forEach(function(G){d(F,G,function(x){return this._invoke(G,x)})})}t.isGeneratorFunction=function(F){var G=typeof F=="function"&&F.constructor;return G?G===H||(G.displayName||G.name)==="GeneratorFunction":!1},t.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,A):(F.__proto__=A,d(F,u,"GeneratorFunction")),F.prototype=Object.create(R),F},t.awrap=function(F){return{__await:F}};function B(F,G){function x(Y,ae,de,ge){var ye=p(F[Y],F,ae);if(ye.type==="throw")ge(ye.arg);else{var tt=ye.arg,lt=tt.value;return lt&&typeof lt=="object"&&i.call(lt,"__await")?G.resolve(lt.__await).then(function(_t){x("next",_t,de,ge)},function(_t){x("throw",_t,de,ge)}):G.resolve(lt).then(function(_t){tt.value=_t,de(tt)},function(_t){return x("throw",_t,de,ge)})}}var P;function L(Y,ae){function de(){return new G(function(ge,ye){x(Y,ae,ge,ye)})}return P=P?P.then(de,de):de()}n(this,"_invoke",{value:L})}W(B.prototype),d(B.prototype,c,function(){return this}),t.AsyncIterator=B,t.async=function(F,G,x,P,L){L===void 0&&(L=Promise);var Y=new B(h(F,G,x,P),L);return t.isGeneratorFunction(G)?Y:Y.next().then(function(ae){return ae.done?ae.value:Y.next()})};function ee(F,G,x){var P=m;return function(Y,ae){if(P===b)throw new Error("Generator is already running");if(P===C){if(Y==="throw")throw ae;return se()}for(x.method=Y,x.arg=ae;;){var de=x.delegate;if(de){var ge=D(de,x);if(ge){if(ge===w)continue;return ge}}if(x.method==="next")x.sent=x._sent=x.arg;else if(x.method==="throw"){if(P===m)throw P=C,x.arg;x.dispatchException(x.arg)}else x.method==="return"&&x.abrupt("return",x.arg);P=b;var ye=p(F,G,x);if(ye.type==="normal"){if(P=x.done?C:f,ye.arg===w)continue;return{value:ye.arg,done:x.done}}else ye.type==="throw"&&(P=C,x.method="throw",x.arg=ye.arg)}}}function D(F,G){var x=G.method,P=F.iterator[x];if(P===a)return G.delegate=null,x==="throw"&&F.iterator.return&&(G.method="return",G.arg=a,D(F,G),G.method==="throw")||x!=="return"&&(G.method="throw",G.arg=new TypeError("The iterator does not provide a '"+x+"' method")),w;var L=p(P,F.iterator,G.arg);if(L.type==="throw")return G.method="throw",G.arg=L.arg,G.delegate=null,w;var Y=L.arg;if(!Y)return G.method="throw",G.arg=new TypeError("iterator result is not an object"),G.delegate=null,w;if(Y.done)G[F.resultName]=Y.value,G.next=F.nextLoc,G.method!=="return"&&(G.method="next",G.arg=a);else return Y;return G.delegate=null,w}W(R),d(R,u,"Generator"),d(R,l,function(){return this}),d(R,"toString",function(){return"[object Generator]"});function z(F){var G={tryLoc:F[0]};1 in F&&(G.catchLoc=F[1]),2 in F&&(G.finallyLoc=F[2],G.afterLoc=F[3]),this.tryEntries.push(G)}function X(F){var G=F.completion||{};G.type="normal",delete G.arg,F.completion=G}function Q(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(z,this),this.reset(!0)}t.keys=function(F){var G=Object(F),x=[];for(var P in G)x.push(P);return x.reverse(),function L(){for(;x.length;){var Y=x.pop();if(Y in G)return L.value=Y,L.done=!1,L}return L.done=!0,L}};function te(F){if(F||F===""){var G=F[l];if(G)return G.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var x=-1,P=function L(){for(;++x=0;--P){var L=this.tryEntries[P],Y=L.completion;if(L.tryLoc==="root")return x("end");if(L.tryLoc<=this.prev){var ae=i.call(L,"catchLoc"),de=i.call(L,"finallyLoc");if(ae&&de){if(this.prev=0;--x){var P=this.tryEntries[x];if(P.tryLoc<=this.prev&&i.call(P,"finallyLoc")&&this.prev=0;--G){var x=this.tryEntries[G];if(x.finallyLoc===F)return this.complete(x.completion,x.afterLoc),X(x),w}},catch:function(F){for(var G=this.tryEntries.length-1;G>=0;--G){var x=this.tryEntries[G];if(x.tryLoc===F){var P=x.completion;if(P.type==="throw"){var L=P.arg;X(x)}return L}}throw new Error("illegal catch attempt")},delegateYield:function(F,G,x){return this.delegate={iterator:te(F),resultName:G,nextLoc:x},this.method==="next"&&(this.arg=a),w}},t}(e.exports);try{regeneratorRuntime=s}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=s:Function("r","regeneratorRuntime = r")(s)}})(Pw);var Sb=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__;i0},e.prototype.connect_=function(){!Wu||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Lw?(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(){!Wu||!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=Ow.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}(),Pb=function(e,s){for(var t=0,r=Object.keys(s);t"u"||!(Element instanceof Object))){if(!(s instanceof li(s).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(s)||(t.set(s,new Vw(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 li(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 Uw(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}(),Db=typeof WeakMap<"u"?new WeakMap:new Sb,Mb=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=kw.getInstance(),r=new Bw(s,t,this);Db.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Mb.prototype[e]=function(){var s;return(s=Db.get(this))[e].apply(s,arguments)}});(function(){return typeof po.ResizeObserver<"u"?po.ResizeObserver:Mb})();/** * vue-class-component v7.2.6 * (c) 2015-present Evan You * @license MIT */function Za(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Za=function(s){return typeof s}:Za=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Za(e)}function Ww(e,s,t){return s in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}function Gw(e){return zw(e)||Zw(e)||qw()}function zw(e){if(Array.isArray(e)){for(var s=0,t=new Array(e.length);s1&&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(Gu.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 Ww({},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 eS(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 sS(a,e,n),Xw()&&Yw(a,e),a}var tS={prototype:!0,arguments:!0,callee:!0,caller:!0};function sS(e,s,t){Object.getOwnPropertyNames(s).forEach(function(r){if(!tS[r]){var i=Object.getOwnPropertyDescriptor(e,r);if(!(i&&!i.configurable)){var n=Object.getOwnPropertyDescriptor(s,r);if(!Kw){if(r==="cid")return;var a=Object.getOwnPropertyDescriptor(t,r);if(!Qw(n.value)&&a&&a.value===n.value)return}Object.defineProperty(e,r,n)}}})}function O(e){return typeof e=="function"?uf(e):function(s){return uf(s,e)}}O.registerHooks=function(s){Gu.push.apply(Gu,Gw(s))};globalThis&&globalThis.__spreadArrays;var rS=typeof Reflect<"u"&&typeof Reflect.getMetadata<"u";function iS(e,s,t){if(rS&&!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 k(e){return e===void 0&&(e={}),function(s,t){iS(e,s,t),Bl(function(r,i){(r.props||(r.props={}))[i]=e})(s,t)}}function Eb(e){return Bl(function(s,t){s.computed=s.computed||{},s.computed[t]={cache:!1,get:function(){return this.$refs[e||t]}}})}function nS(e){e===void 0&&(e={});var s="value";return Bl(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 Bl(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 aS=Object.defineProperty,oS=Object.getOwnPropertyDescriptor,lS=(e,s,t,r)=>{for(var i=r>1?void 0:r?oS(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&&aS(s,t,i),i};let V=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 s;let e=(s=this.$store.state.gui.uiSettings.powerDeviceName)!=null?s:null;return e===null&&(e="printer"),e}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)}};V=lS([O],V);const Ob="dark",$n="#D41216",pp="#2196f3",zt="#1e1e1e",df="v0.11.0-257",hf="v0.8.0-137",cS=[{name:"safari",version:"16.5.2"}],uS=["#F44336","#8e379d","#03DAC5","#3F51B5","#ffde03","#009688","#E91E63"],dS="#2196F3",hS="#4CAF50",Lb="99",kb="44",xn=".theme",pS=1e3,on=["temperature","target","power","speed"],wn=["power","speed"],mS=["bme280","aht10","htu21d"],ci=[".gcode",".g",".gco",".ufp",".nc"],Ab=["history","power","updateManager","timelapse","jobQueue","announcements","spoolman"],fS=["virtual_sdcard","pause_resume","gcode_macro pause","gcode_macro resume","gcode_macro cancel_print"],gS=["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"],Ea=500,vS=50,_S=["toolhead-control","extruder-control","macros","machine-settings","miniconsole","miscellaneous","spoolman","temperature","webcam"],ms=30,fs=64,Os=128,bS=220,yS=48,zu=48,fn=48,CS=["^_TIMELAPSE_NEW_FRAME","^TIMELAPSE_TAKE_FRAME","^TIMELAPSE_RENDER","^_SET_TIMELAPSE_SETUP","^HYPERLAPSE ACTION=","^SET_GCODE_VARIABLE MACRO=TIMELAPSE_"],$S=["gcodes","timelapse","timelapse_frames"],xS=[".git"],wS=["it","hu","zh"],SS=["klippy","moonraker","crowsnest","mmu","sonar"],PS=["klipper","moonraker"];var Fb="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",TS="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",DS="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",Rb="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",MS="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",Sn="M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16",Wl="M19.92,12.08L12,20L4.08,12.08L5.5,10.67L11,16.17V2H13V16.17L18.5,10.66L19.92,12.08M12,20H2V22H22V20H12Z",ES="M4,12H20V14H4V12M4,9H20V11H4V9M16,4L12,8L8,4H11V1H13V4H16M8,19L12,15L16,19H13V22H11V19H8Z",OS="M9,4H15V12H19.84L12,19.84L4.16,12H9V4Z",Ib="M2,20V22H22V20H13V5.83L18.5,11.33L19.92,9.92L12,2L4.08,9.92L5.5,11.33L11,5.83V20H2Z",LS="M13,9V15H16L12,19L8,15H11V9H8L12,5L16,9H13M4,2H20V4H4V2M4,20H20V22H4V20Z",kS="M15,20H9V12H4.16L12,4.16L19.84,12H15V20Z",AS="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",FS="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",RS="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",Hb="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",rre="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",IS="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",jb="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",HS="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",jS="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",Nb="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",mp="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",fp="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",Vb="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",NS="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",Ub="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",Vs="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",VS="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",US="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",BS="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",WS="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",la="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",GS="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",ca="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",zS="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",fo="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",ZS="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",Ce="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",Pn="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",Tn="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",qS="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",gp="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",ua="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",Bb="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",XS="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",YS="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",JS="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",Wb="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",KS="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",Ye="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",QS="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",eP="M8,3C6.89,3 6,3.89 6,5V21H18V5C18,3.89 17.11,3 16,3H8M8,5H16V19H8V5M13,11V13H15V11H13Z",tP="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",Gl="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",Gb="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",zl="M9,3H11V5H9V3M13,3H15V5H13V3M9,7H11V9H9V7M13,7H15V9H13V7M9,11H11V13H9V11M13,11H15V13H13V11M9,15H11V17H9V15M13,15H15V17H13V15M9,19H11V21H9V19M13,19H15V21H13V19Z",zb="M12,5L5.33,15H18.67M5,17H19V19H5V17Z",Zb="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",sP="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",ire="M13,6V18L21.5,12M4,18L12.5,12L4,6V18Z",dr="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",rP="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",iP="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",da="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",Zl="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",nP="M6,2A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6M6,4H13V9H18V20H6V4M8,12V14H16V12H8M8,16V18H13V16H8Z",aP="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",qb="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z",oP="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",Xb="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",Yb="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",lP="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",cP="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",uP="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",Ri="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",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",dP="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",ql="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",Jb="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",Xl="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",Kb="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",hP="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",Qb="M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z",At="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",pP="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",mP="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",Zu="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",e0="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",t0="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",fP="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",s0="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",Yl="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",Jl="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",r0="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",gP="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",hr="M7,10L12,15L17,10H7Z",vP="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",_P="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",i0="M19,13H5V11H19V13Z",bP="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",yP="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",CP="M2 12A10 10 0 0 0 15 21.54A10 10 0 0 1 15 2.46A10 10 0 0 0 2 12Z",$P="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",xP="M21.04 13.13C21.18 13.13 21.31 13.19 21.42 13.3L22.7 14.58C22.92 14.79 22.92 15.14 22.7 15.35L21.7 16.35L19.65 14.3L20.65 13.3C20.76 13.19 20.9 13.13 21.04 13.13M19.07 14.88L21.12 16.93L15.06 23H13V20.94L19.07 14.88M3 7V5H5V4C5 2.89 5.9 2 7 2H13V9L15.5 7.5L18 9V2H19C20.05 2 21 2.95 21 4V10L11 20V22H7C5.95 22 5 21.05 5 20V19H3V17H5V13H3V11H5V7H3M5 7H7V5H5V7M5 11V13H7V11H5M5 17V19H7V17H5Z",wP="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",n0="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",SP="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",Kl="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",Tp="M14,19H18V5H14M6,19H10V5H6V19Z",xt="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",Ii="M8,5.14V19.14L19,12.14L8,5.14Z",a0="M3 16H10V14H3M18 14V10H16V14H12V16H16V20H18V16H22V14M14 6H3V8H14M14 10H3V12H14V10Z",PP="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",Dp="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",TP="M20 14H14V20H10V14H4V10H10V4H14V10H20V14Z",o0="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",DP="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",l0="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",Bs="M7,2H17V8H19V13H16.5L13,17H11L7.5,13H5V8H7V2M10,22H2V20H10A1,1 0 0,0 11,19V18H13V19A3,3 0 0,1 10,22Z",c0="M7 2H17V8H19V13H16.5L13 17H11L7.5 13H5V8H7V2M10 22H2V20H10C10.6 20 11 19.5 11 19V18H13V19C13 20.7 11.7 22 10 22M21 13V7H23V13H21M21 17V15H23V17H21Z",MP="M7,2H17V7H19V13H16.5L13,17H11L7.5,13H5V7H7V2M10,22H2V20H10A1,1 0 0,0 11,19V18H13V19A3,3 0 0,1 10,22M7,9V11H8.5L12,15L15.5,11H17V9H15V4H9V9H7Z",EP="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",u0="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",Mp="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",OP="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",d0="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",LP="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",Hi="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",kP="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",nre="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",Ql="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",jr="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",AP="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",FP="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",RP="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",IP="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",go="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",h0="M2,21L23,12L2,3V10L17,12L2,14V21Z",HP="M23,12H17V10L20.39,6H17V4H23V6L19.62,10H23V12M15,16H9V14L12.39,10H9V8H15V10L11.62,14H15V16M7,20H1V18L4.39,14H1V12H7V14L3.62,18H7V20Z",p0="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",jP="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",are="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",m0="M18,18H6V6H18V18Z",NP="M9,3L5,7H8V14H10V7H13M16,17V10H14V17H11L15,21L19,17H16Z",f0="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",VP="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",UP="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",g0="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",BP="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",v0="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",_0="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",WP="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",GP="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",b0="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",y0="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M9,8H11V17H9V8M13,8H15V17H13V8Z",zP="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",ZP="M18 5H6V7H18M6 9H18V11H6M2 12H4V17H20V12H22V17A2 2 0 0 1 20 19H4A2 2 0 0 1 2 17M18 13H6V15H18Z",qP="M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z",pa="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",XP="M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z",ec="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",YP="M19,5V7H15V5H19M9,5V11H5V5H9M19,13V19H15V13H19M9,17V19H5V17H9M21,3H13V9H21V3M11,3H3V13H11V3M21,11H13V21H21V11M11,15H3V21H11V15Z",pf="M3,11H11V3H3M3,21H11V13H3M13,21H21V13H13M13,3V11H21V3",ji="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",JP="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",KP="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",QP=Object.defineProperty,eT=Object.getOwnPropertyDescriptor,$s=(e,s,t,r)=>{for(var i=r>1?void 0:r?eT(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&&QP(s,t,i),i};let Zt=class extends j(V){constructor(){super(...arguments),this.mdiChevronDown=Vs,this.panelToolbarHeight=zu}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"}};$s([k({default:null})],Zt.prototype,"icon",2);$s([k({required:!0,default:""})],Zt.prototype,"title",2);$s([k({default:!1})],Zt.prototype,"collapsible",2);$s([k({required:!0})],Zt.prototype,"cardClass",2);$s([k({default:""})],Zt.prototype,"toolbarColor",2);$s([k({default:""})],Zt.prototype,"toolbarClass",2);$s([k({default:!1})],Zt.prototype,"loading",2);$s([k({default:!0})],Zt.prototype,"marginBottom",2);$s([k({default:!1})],Zt.prototype,"hideButtonsOnCollapse",2);Zt=$s([O],Zt);var tT=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(De,{class:"panel "+e.cardClass+" "+(e.marginBottom?"mb-3 mb-md-6":"")+" "+(e.expand?"":"expanded"),attrs:{loading:e.loading}},[t(oa,{staticClass:"panel-toolbar",class:e.getToolbarClass,style:e.additionalStyle,attrs:{flat:"",dense:"",color:e.toolbarColor,height:e.panelToolbarHeight}},[e._t("buttons-left"),t(ki,{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(le),t(zx,{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(jl,[t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand||!e.collapsible,expression:"expand || !collapsible"}]},[e._t("default")],2)])],1)},sT=[];function N(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(h){h=h||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!h&&typeof __VUE_SSR_CONTEXT__<"u"&&(h=__VUE_SSR_CONTEXT__),i&&i.call(this,h),h&&h._registeredComponents&&h._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(p,m){return c.call(m),u(p,m)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}const mf={};var rT=N(Zt,tT,sT,!1,iT,"3cfcc6d8",null,null);function iT(e){for(let s in mf)this[s]=mf[s]}const Z=function(){return rT.exports}();var nT=Object.defineProperty,aT=Object.getOwnPropertyDescriptor,oT=(e,s,t,r)=>{for(var i=r>1?void 0:r?aT(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&&nT(s,t,i),i};let qu=class extends j(V){constructor(){super(...arguments),this.addPrinterValid=!1,this.dialogAddPrinter={bool:!1,hostname:"",port:7125},this.editPrinterValid=!1,this.dialogEditPrinter={bool:!1,id:"",hostname:"",port:0},this.mdiConnection=gp,this.mdiCloseThick=Ce,this.mdiSync=f0,this.mdiDelete=Ye,this.mdiPencil=xt,this.mdiCheckboxMarkedCircle=Vb,this.mdiCancel=jb}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 formatHostname(){return parseInt(this.port)!==80&&this.port!==""?this.hostname+":"+this.port:this.hostname}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};this.$store.dispatch("gui/remoteprinters/store",{values:e}),this.dialogAddPrinter.hostname="",this.dialogAddPrinter.bool=!1}editPrinter(e){var s;this.dialogEditPrinter.hostname=e.hostname,this.dialogEditPrinter.port=e.port,this.dialogEditPrinter.id=(s=e.id)!=null?s:"",this.dialogEditPrinter.bool=!0}updatePrinter(){const e={hostname:this.dialogEditPrinter.hostname,port:this.dialogEditPrinter.port};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}),this.$socket.setUrl(this.protocol+"://"+e.socket.hostname+":"+e.socket.port+"/websocket"),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")}};qu=oT([O({components:{Panel:Z}})],qu);var lT=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(Z,{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(bs,{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(Lr,{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(S,[t(_,{staticClass:"col-8"},[t(re,{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(re,{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)],1),t(ne,[t(le),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(Lr,{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(S,[t(_,{staticClass:"col-8"},[t(re,{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(re,{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)],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(le),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(S,[t(_,{staticClass:"px-6"},e._l(e.printers,function(r,i){return t(S,{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(S,{attrs:{align:"center"}},[t(_,{staticClass:"col-auto pr-0"},[r.socket.isConnecting?t(at,{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(S,[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(S,[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(S,[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)},cT=[];const ff={};var uT=N(qu,lT,cT,!1,dT,null,null,null);function dT(e){for(let s in ff)this[s]=ff[s]}const Op=function(){return uT.exports}();var hT=Object.defineProperty,pT=Object.getOwnPropertyDescriptor,mT=(e,s,t,r)=>{for(var i=r>1?void 0:r?pT(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&&hT(s,t,i),i};let Xu=class extends j(V){constructor(){super(...arguments),this.mdiHelpCircleOutline=Kb,this.mdiCloseThick=Ce,this.mdiMoonWaningCrescent=CP}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:""}};Xu=mT([O({})],Xu);var fT=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(pe,{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(ke,{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)},gT=[];const gf={};var vT=N(Xu,fT,gT,!1,_T,"24513c96",null,null);function _T(e){for(let s in gf)this[s]=gf[s]}const C0=function(){return vT.exports}();var bT=Object.defineProperty,yT=Object.getOwnPropertyDescriptor,Lp=(e,s,t,r)=>{for(var i=r>1?void 0:r?yT(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&&bT(s,t,i),i};let Dn=class extends j(V){constructor(){super(...arguments),this.internalColor=$n}colorChanged(e){this.internalColor=e!==""?e:$n}created(){this.color!==""&&(this.internalColor=this.color)}};Lp([k({required:!1,default:""})],Dn.prototype,"color",2);Lp([me("color")],Dn.prototype,"colorChanged",1);Dn=Lp([O],Dn);var CT=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"}})])])},$T=[];const vf={};var xT=N(Dn,CT,$T,!1,wT,null,null,null);function wT(e){for(let s in vf)this[s]=vf[s]}const Ni=function(){return xT.exports}();var ST=Object.defineProperty,PT=Object.getOwnPropertyDescriptor,$0=(e,s,t,r)=>{for(var i=r>1?void 0:r?PT(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&&ST(s,t,i),i};let vo=class extends j(V){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"}};$0([k({type:Object,required:!0})],vo.prototype,"item",2);vo=$0([O],vo);var TT=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(pe,{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(K,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(Rs,{staticClass:"my-3 mr-3 menu-item-icon"},[t(v,[e._v(e._s(e.icon))])],1),t(Gt,[t(rt,{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(E,{staticClass:"my-1"}):e._e()],1)},DT=[];const _f={};var MT=N(vo,TT,DT,!1,ET,"99ab1bec",null,null);function ET(e){for(let s in _f)this[s]=_f[s]}const x0=function(){return MT.exports}(),OT="modulepreload",LT=function(e){return"/"+e},bf={},he=function(s,t,r){if(!t||t.length===0)return s();const i=document.getElementsByTagName("link");return Promise.all(t.map(n=>{if(n=LT(n),n in bf)return;bf[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":OT,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 kT=Object.defineProperty,AT=Object.getOwnPropertyDescriptor,FT=(e,s,t,r)=>{for(var i=r>1?void 0:r?AT(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&&kT(s,t,i),i};let Je=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})}};Je=FT([O],Je);var RT=Object.defineProperty,IT=Object.getOwnPropertyDescriptor,HT=(e,s,t,r)=>{for(var i=r>1?void 0:r?IT(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&&RT(s,t,i),i};let ui=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}};ui=HT([O],ui);var jT=Object.defineProperty,NT=Object.getOwnPropertyDescriptor,VT=(e,s,t,r)=>{for(var i=r>1?void 0:r?NT(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&&jT(s,t,i),i};let Yu=class extends j(V,Je,ui){constructor(){super(...arguments),this.mdiPrinter3dNozzle=Bs,this.mdiDotsVertical=Gl,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}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}};Yu=VT([O({components:{Panel:Z}})],Yu);var UT=Object.defineProperty,BT=Object.getOwnPropertyDescriptor,wt=(e,s,t,r)=>{for(var i=r>1?void 0:r?BT(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&&UT(s,t,i),i};let ht=class extends j(V){constructor(){super(...arguments),this.mdiRestart=jr,this.mdiChevronUp=la,this.mdiChevronDown=Vs,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.spinnerFactorthis.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.inputValuethis.max||this.inputValue=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)},GT=[];const yf={};var zT=N(ht,WT,GT,!1,ZT,"799eadb6",null,null);function ZT(e){for(let s in yf)this[s]=yf[s]}const Ie=function(){return zT.exports}();var w0="Expected a function",Cf=0/0,qT="[object Symbol]",XT=/^\s+|\s+$/g,YT=/^[-+]0x[0-9a-f]+$/i,JT=/^0b[01]+$/i,KT=/^0o[0-7]+$/i,QT=parseInt,eD=typeof xr=="object"&&xr&&xr.Object===Object&&xr,tD=typeof self=="object"&&self&&self.Object===Object&&self,sD=eD||tD||Function("return this")(),rD=Object.prototype,iD=rD.toString,nD=Math.max,aD=Math.min,lu=function(){return sD.Date.now()};function oD(e,s,t){var r,i,n,a,o,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(w0);s=$f(s)||0,_o(t)&&(u=!!t.leading,d="maxWait"in t,n=d?nD($f(t.maxWait)||0,s):n,h="trailing"in t?!!t.trailing:h);function p($){var T=r,I=i;return r=i=void 0,c=$,a=e.apply(I,T),a}function m($){return c=$,o=setTimeout(C,s),u?p($):a}function f($){var T=$-l,I=$-c,R=s-T;return d?aD(R,n-I):R}function b($){var T=$-l,I=$-c;return l===void 0||T>=s||T<0||d&&I>=n}function C(){var $=lu();if(b($))return w($);o=setTimeout(C,f($))}function w($){return o=void 0,h&&r?p($):(r=i=void 0,a)}function M(){o!==void 0&&clearTimeout(o),c=0,r=l=i=o=void 0}function H(){return o===void 0?a:w(lu())}function A(){var $=lu(),T=b($);if(r=arguments,i=this,l=$,T){if(o===void 0)return m(l);if(d)return o=setTimeout(C,s),p(l)}return o===void 0&&(o=setTimeout(C,s)),a}return A.cancel=M,A.flush=H,A}function lD(e,s,t){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(w0);return _o(t)&&(r="leading"in t?!!t.leading:r,i="trailing"in t?!!t.trailing:i),oD(e,s,{leading:r,maxWait:s,trailing:i})}function _o(e){var s=typeof e;return!!e&&(s=="object"||s=="function")}function cD(e){return!!e&&typeof e=="object"}function uD(e){return typeof e=="symbol"||cD(e)&&iD.call(e)==qT}function $f(e){if(typeof e=="number")return e;if(uD(e))return Cf;if(_o(e)){var s=typeof e.valueOf=="function"?e.valueOf():e;e=_o(s)?s+"":s}if(typeof e!="string")return e===0?e:+e;e=e.replace(XT,"");var t=JT.test(e);return t||KT.test(e)?QT(e.slice(2),t?2:8):YT.test(e)?Cf:+e}var dD=lD;const S0=Fi(dD);var hD=Object.defineProperty,pD=Object.getOwnPropertyDescriptor,P0=(e,s,t,r)=>{for(var i=r>1?void 0:r?pD(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&&hD(s,t,i),i};let bo=class extends V{constructor(){super(...arguments),this.el={is:{}}}mounted(){this.breakpoints&&this.$nextTick(()=>{this.observer=new ResizeObserver(S0(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))}};P0([k()],bo.prototype,"breakpoints",2);bo=P0([O],bo);var mD=Object.defineProperty,fD=Object.getOwnPropertyDescriptor,T0=(e,s,t,r)=>{for(var i=r>1?void 0:r?fD(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&&mD(s,t,i),i};let yo=class extends j(bo){constructor(){super(...arguments),this.init=!1}mounted(){this.init=!0}};T0([k({default:!1})],yo.prototype,"noHide",2);yo=T0([O],yo);var gD=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)},vD=[];const xf={};var _D=N(yo,gD,vD,!1,bD,null,null,null);function bD(e){for(let s in xf)this[s]=xf[s]}const Qe=function(){return _D.exports}();var tc={};const yD=hp(Zx);/** * vue-class-component v6.3.2 * (c) 2015-present Evan You * @license MIT */Object.defineProperty(tc,"__esModule",{value:!0});function CD(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Ju=CD(yD),$D=typeof Reflect<"u"&&Reflect.defineMetadata;function xD(e,s){cu(e,s),Object.getOwnPropertyNames(s.prototype).forEach(function(t){cu(e.prototype,s.prototype,t)}),Object.getOwnPropertyNames(s).forEach(function(t){cu(e,s,t)})}function cu(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 wD={__proto__:[]},SD=wD instanceof Array;function PD(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 TD(){for(var e=[],s=0;s-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 MD(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 Ju?i.constructor:Ju,a=n.extend(s);return ED(a,e,n),$D&&xD(a,e),a}function ED(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(!SD){if(r==="cid")return;var a=Object.getOwnPropertyDescriptor(t,r);if(!DD(n.value)&&a&&a.value===n.value)return}Object.defineProperty(e,r,n)}}})}function D0(e){return typeof e=="function"?wf(e):function(s){return wf(s,e)}}D0.registerHooks=function(s){Ku.push.apply(Ku,s)};tc.default=D0;var OD=tc.createDecorator=PD;tc.mixins=TD;function Ze(e){return OD(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{for(var i=r>1?void 0:r?kD(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&&LD(s,t,i),i};let ze=class extends j(V){constructor(){super(...arguments),this.mdiRestart=jr,this.mdiLockOutline=Yl,this.mdiLockOpenVariantOutline=s0,this.mdiMinus=i0,this.mdiPlus=Dp,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.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.numInputthis.max||this.numInput0||(!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.value0,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(Nl,{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)},FD=[];const Sf={};var RD=N(ze,AD,FD,!1,ID,"2b843f9d",null,null);function ID(e){for(let s in Sf)this[s]=Sf[s]}const sc=function(){return RD.exports}();var HD=Object.defineProperty,jD=Object.getOwnPropertyDescriptor,M0=(e,s,t,r)=>{for(var i=r>1?void 0:r?jD(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&&HD(s,t,i),i};let Co=class extends j(V,ui){constructor(){super(...arguments),this.mdiArrowDownBold=OS,this.mdiArrowUpBold=kS,this.mdiPrinter3dNozzle=Bs}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"})}};M0([me("maxExtrudeOnlyDistance",{immediate:!0})],Co.prototype,"onMaxExtrudeOnlyDistanceChange",1);Co=M0([O({components:{NumberInput:Ie,Responsive:Qe,ToolSlider:sc}})],Co);var ND=Object.defineProperty,VD=Object.getOwnPropertyDescriptor,UD=(e,s,t,r)=>{for(var i=r>1?void 0:r?VD(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&&ND(s,t,i),i};let Qu=class extends j(V,ui){constructor(){super(...arguments),this.mdiDiameterVariant=QS}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 volumetricFlow(){return Math.round(Math.pow(this.filamentDiameter/2,2)*Math.PI*this.feedrate*10)/10}};Qu=UD([O({})],Qu);var BD=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.showEstimatedExtrusion?t(ke,{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 ")],1)])]):e._e()},WD=[];const Pf={};var GD=N(Qu,BD,WD,!1,zD,null,null,null);function zD(e){for(let s in Pf)this[s]=Pf[s]}const ZD=function(){return GD.exports}();var qD=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Qe,{attrs:{breakpoints:{large:function(r){return r.width>=640}}},scopedSlots:e._u([{key:"default",fn:function(r){var i=r.el;return[t(ke,[t(S,[t(_,[t(Ie,{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(Nt,{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(Ie,{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(Nt,{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(pe,{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(pe,{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(S,[t(_,{staticClass:"pa-0"},[t("div",{staticClass:"d-flex justify-space-around"},[t("div",{staticClass:"d-flex align-center"},[t(pe,{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(pe,{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(ZD)]}}])})},XD=[];const Tf={};var YD=N(Co,qD,XD,!1,JD,"eba60532",null,null);function JD(e){for(let s in Tf)this[s]=Tf[s]}const KD=function(){return YD.exports}();var QD=Object.defineProperty,e3=Object.getOwnPropertyDescriptor,E0=(e,s,t,r)=>{for(var i=r>1?void 0:r?e3(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&&QD(s,t,i),i};let $o=class extends j(V,Je){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})}};E0([Ze(500)],$o.prototype,"sendCmd",1);$o=E0([O({components:{Panel:Z,NumberInput:Ie,Responsive:Qe}})],$o);var t3=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.existsFirmwareRetraction?t("div",[t(ke,[t(Qe,{attrs:{breakpoints:{small:function(r){return r.width<=350}}},scopedSlots:e._u([{key:"default",fn:function(r){var i=r.el;return[t(S,[t(_,{class:{"col-12":i.is.small}},[t(Ie,{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(Ie,{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(S,[t(_,{class:{"col-12":i.is.small}},[t(Ie,{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(Ie,{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()},s3=[];const Df={};var r3=N($o,t3,s3,!1,i3,null,null,null);function i3(e){for(let s in Df)this[s]=Df[s]}const n3=function(){return r3.exports}();var a3=Object.defineProperty,o3=Object.getOwnPropertyDescriptor,O0=(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&&a3(s,t,i),i};let xo=class extends j(V){constructor(){super(...arguments),this.mdiRestart=jr,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})}};O0([Ze(500)],xo.prototype,"sendCmd",1);xo=O0([O({components:{NumberInput:Ie,Panel:Z,Responsive:Qe}})],xo);var l3=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Qe,{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(ke,[t(S,[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(Le,{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(Ie,{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(Ie,{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)]}}])})},c3=[];const Mf={};var u3=N(xo,l3,c3,!1,d3,null,null,null);function d3(e){for(let s in Mf)this[s]=Mf[s]}const h3=function(){return u3.exports}();var p3=Object.defineProperty,m3=Object.getOwnPropertyDescriptor,f3=(e,s,t,r)=>{for(var i=r>1?void 0:r?m3(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&&p3(s,t,i),i};let ed=class extends j(V,ui){constructor(){super(...arguments),this.mdiPrinter3dNozzleOutline=MP}};ed=f3([O({})],ed);var g3=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(ke,[t(sc,{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)},v3=[];const Ef={};var _3=N(ed,g3,v3,!1,b3,null,null,null);function b3(e){for(let s in Ef)this[s]=Ef[s]}const y3=function(){return _3.exports}();var C3=Object.defineProperty,$3=Object.getOwnPropertyDescriptor,x3=(e,s,t,r)=>{for(var i=r>1?void 0:r?$3(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&&C3(s,t,i),i};let td=class extends j(V,Je){constructor(){super(...arguments),this.mdiPrinter3dNozzle=Bs}get rows(){let t=[];for(let r=0;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 wo=class extends j(V,Je){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}}};L0([k({type:Object})],wo.prototype,"macro",2);wo=L0([O({components:{}})],wo);var P3=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)+" ")])},T3=[];const Of={};var D3=N(wo,P3,T3,!1,M3,"956e3986",null,null);function M3(e){for(let s in Of)this[s]=Of[s]}const E3=function(){return D3.exports}();var O3=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(S,{key:"row_"+i,staticClass:"mt-0"},[t(_,[t(Nt,{staticClass:"_btn-group py-0 px-3"},e._l(r,function(n){return t(E3,{key:n.name,attrs:{macro:n}})}),1)],1)],1)}),1)},L3=[];const Lf={};var k3=N(td,O3,L3,!1,A3,"2b552b14",null,null);function A3(e){for(let s in Lf)this[s]=Lf[s]}const F3=function(){return k3.exports}();var R3=Object.defineProperty,I3=Object.getOwnPropertyDescriptor,H3=(e,s,t,r)=>{for(var i=r>1?void 0:r?I3(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&&R3(s,t,i),i};let sd=class extends j(V,Je){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})}};sd=H3([O],sd);var j3=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(K,{staticClass:"minHeight36"},[t(we,{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(K,{staticClass:"minHeight36"},[t(we,{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(K,{staticClass:"minHeight36"},[t(we,{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(K,{staticClass:"minHeight36"},[t(we,{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(K,{staticClass:"minHeight36"},[t(we,{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)},N3=[];const kf={};var V3=N(sd,j3,N3,!1,U3,null,null,null);function U3(e){for(let s in kf)this[s]=kf[s]}const B3=function(){return V3.exports}();var W3=Object.defineProperty,G3=Object.getOwnPropertyDescriptor,Vi=(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 lr=class extends j(V){constructor(){super(...arguments),this.mdiCloseThick=Ce,this.mdiMenuDown=hr,this.mdiRefresh=Hi,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}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()}};Vi([k({required:!0})],lr.prototype,"macro",2);Vi([k({default:"primary"})],lr.prototype,"color",2);Vi([k({default:null})],lr.prototype,"alias",2);Vi([k({default:!1})],lr.prototype,"disabled",2);Vi([me("klipperMacro")],lr.prototype,"klipperMacroChange",1);lr=Vi([O({components:{Panel:Z}})],lr);var z3=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Nt,{staticClass:"d-inline-block"},[t(g,{class:e.paramArray.length?"macroWithParameters":"",attrs:{small:"",color:e.color,loading:e.loadings.includes("macro_"+e.macro.name),disabled:e.disabled},on:{click:function(r){return e.doSendMacro(e.macro.name)}}},[e._v(" "+e._s(e.alias?e.alias:e.macro.name.replace(/_/g," "))+" ")]),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(Z,{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(S,e._l(e.paramArray,function(r,i){return t(_,{key:"param_mobile_"+i,attrs:{cols:6}},[t(re,{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(De,{attrs:{"max-width":e.paramsOverlayWidth}},[t(q,{staticClass:"py-2"},[t(S,{staticClass:"my-2"},e._l(e.paramArray,function(r,i){return t(_,{key:"param_"+i,attrs:{cols:e.paramCssCols}},[t(re,{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(S,{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)},Z3=[];const Af={};var q3=N(lr,z3,Z3,!1,X3,"029e4e5c",null,null);function X3(e){for(let s in Af)this[s]=Af[s]}const Ks=function(){return q3.exports}();var Y3=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.showPanel?t(Z,{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(K,[t(pe,{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(K,[t(pe,{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(K,[t(pe,{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(K,[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(B3)]},proxy:!0}],null,!1,40833120)},[e.showTools&&e.toolchangeMacros.length?t(F3):e._e(),e.showExtrusionFactor?[e.showTools?t(E):e._e(),t(y3)]:e._e(),e.showPressureAdvance?[e.showTools||e.showExtrusionFactor?t(E):e._e(),t(h3)]:e._e(),e.showFirmwareRetraction?[e.showTools||e.showExtrusionFactor||e.showPressureAdvance?t(E):e._e(),t(n3)]:e._e(),e.showExtruderControl?[e.showTools||e.showExtrusionFactor||e.showPressureAdvance||e.showFirmwareRetraction?t(E):e._e(),t(KD)]:e._e()],2):e._e()},J3=[];const Ff={};var K3=N(Yu,Y3,J3,!1,Q3,null,null,null);function Q3(e){for(let s in Ff)this[s]=Ff[s]}const e5=function(){return K3.exports}(),rc=(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?rc(e[t],r):y.set(e,t,r)})},Rt=(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 Rt(t.childrens,s);if(t.childrens)return t.childrens}return e}return null},$t=(e,s)=>e.sort((t,r)=>{const i=t[s].toLowerCase(),n=r[s].toLowerCase();return in?1:0}),kr=e=>e.charAt(0).toUpperCase()+e.slice(1),t5=e=>e.replace(/_/g," ").replace(/(?:^\w|[A-Z]|\b\w)/g,(s,t)=>t===0?s.toLowerCase():s.toUpperCase()).replace(/\s+/g,"");function kp(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// ","
"),e=e.replace(/\r\n|\r|\n/g,"
"),e}const gt=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},it=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]},s5=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]},r5=e=>{if(e){let s="";const t=Math.floor(e/86400);t&&(e%=3600*24,s+=t+"d");const r=Math.floor(e/3600);e%=3600,r&&(s+=" "+r+"h");const i=Math.floor(e/60);i&&(s+=" "+i+"m");const n=e%60;return n&&(s+=" "+n.toFixed(0)+"s"),s}return"--"},Ap=(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 So(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{for(var i=r>1?void 0:r?a5(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&&n5(s,t,i),i};let Is=class extends V{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+=kr(i)}),this.$t("Panels.".concat(t,"Panel.Headline"))}return this.$t("Panels.".concat(kr(e),"Panel.Headline"))}convertPanelnameToIcon(e){if(e.startsWith("macrogroup_"))return Tn;switch(e){case"webcam":return ji;case"zoffset":return ES;case"toolhead-control":return wp;case"macros":return Tn;case"miscellaneous":return _p;case"temperature":return v0;case"miniconsole":return ua;case"machine-settings":return Zb;case"extruder-control":return Bs;default:return At}}};Is=o5([O],Is);var l5=Object.defineProperty,c5=Object.getOwnPropertyDescriptor,Rp=(e,s,t,r)=>{for(var i=r>1?void 0:r?c5(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&&l5(s,t,i),i};let Mn=class extends j(V){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([k({default:!1})],Mn.prototype,"moonraker",2);Rp([k({default:!1})],Mn.prototype,"klipper",2);Mn=Rp([O],Mn);var u5=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"}})])])])},d5=[];const Rf={};var h5=N(Mn,u5,d5,!1,p5,null,null,null);function p5(e){for(let s in Rf)this[s]=Rf[s]}const ic=function(){return h5.exports}();var m5=Object.defineProperty,f5=Object.getOwnPropertyDescriptor,g5=(e,s,t,r)=>{for(var i=r>1?void 0:r?f5(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&&m5(s,t,i),i};let id=class extends j(V){constructor(){super(...arguments),this.mdiPrinter3d=ha,this.mdiRestart=jr,this.mdiDownload=Gb,this.mdiPower=o0}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:FP};case"shutdown":return{color:"warning",icon:Sn};case"error":return{color:"error",icon:Sn};case"disconnected":return{color:"",icon:gp};default:return{color:"",icon:vP}}}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"})}};id=g5([O({components:{Panel:Z,ConnectionStatus:ic}})],id);var v5=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.klipperState!=="ready"&&e.socketIsConnected?t("div",[e.klippyIsConnected?[t(dt,{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.$t("Panels.KlippyStatePanel.ServiceReports",{service:"Klipper"}))+": "+e._s(e.klipperState.toUpperCase())+" ")],1),e.klippy_message!==null?t("div",[t("pre",{staticStyle:{"white-space":"pre-wrap"}},[e._v(e._s(e.klippy_message.trim()))]),t(E,{staticClass:"mt-2 pb-3"}),t(S,[t(_,[t(g,{class:"".concat(e.messageType.color,"--text my-1"),staticStyle:{width:"100%"},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:"".concat(e.messageType.color,"--text my-1"),staticStyle:{width:"100%"},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:"".concat(e.messageType.color,"--text my-1"),staticStyle:{width:"100%"},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(" Klipper Log ")],1),t(g,{class:"".concat(e.messageType.color,"--text my-1"),staticStyle:{width:"100%"},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(" Moonraker Log ")],1)],1)],1)],1):t(q,{staticClass:"text-center py-3"},[t(at,{attrs:{indeterminate:"",color:e.messageType.color}})],1)],1)]:e.isPrinterPowerOff?[t(dt,{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(S,[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(dt,{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.ServiceReports",{service:"Moonraker"}))+": "+e._s(e.klipperState.toUpperCase())+" ")],1),t(ic,{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()],2):e._e()},_5=[];const If={};var b5=N(id,v5,_5,!1,y5,null,null,null);function y5(e){for(let s in If)this[s]=If[s]}const ma=function(){return b5.exports}();var C5=Object.defineProperty,$5=Object.getOwnPropertyDescriptor,fa=(e,s,t,r)=>{for(var i=r>1?void 0:r?$5(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&&C5(s,t,i),i};let Ar=class extends j(V){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})}};fa([k({required:!1,default:Vs})],Ar.prototype,"iconExpanded",2);fa([k({required:!1,default:Vs})],Ar.prototype,"iconCollapsed",2);fa([k({required:!0,default:""})],Ar.prototype,"title",2);fa([k({required:!0})],Ar.prototype,"subPanelClass",2);Ar=fa([O],Ar);var x5=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(E,{staticClass:"ml-3"})],1),t(jl,[t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._t("default")],2)])],1)},w5=[];const Hf={};var S5=N(Ar,x5,w5,!1,P5,"28d7b868",null,null);function P5(e){for(let s in Hf)this[s]=Hf[s]}const k0=function(){return S5.exports}();var T5=Object.defineProperty,D5=Object.getOwnPropertyDescriptor,A0=(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&&T5(s,t,i),i};let Po=class extends j(V){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})}};A0([Ze(500)],Po.prototype,"sendCmd",1);Po=A0([O({components:{Panel:Z,NumberInput:Ie,Responsive:Qe}})],Po);var M5=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(ke,[t(Qe,{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(S,[t(_,{class:{"col-12":i.is.small,"col-6":i.is.medium}},[t(Ie,{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(Ie,{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(S,[t(_,{class:{"col-12":i.is.small,"col-6":i.is.medium}},[t(Ie,{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(Ie,{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(Ie,{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)},E5=[];const jf={};var O5=N(Po,M5,E5,!1,L5,null,null,null);function L5(e){for(let s in jf)this[s]=jf[s]}const F0=function(){return O5.exports}();var k5=Object.defineProperty,A5=Object.getOwnPropertyDescriptor,F5=(e,s,t,r)=>{for(var i=r>1?void 0:r?A5(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&&k5(s,t,i),i};let nd=class extends j(V){constructor(){super(...arguments),this.mdiEngine=Zb}};nd=F5([O({components:{Panel:Z,SubPanel:k0,MotionSettings:F0}})],nd);var R5=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.klipperReadyForGui?t(Z,{attrs:{icon:e.mdiEngine,title:e.$t("Panels.MachineSettingsPanel.Headline").toString(),collapsible:!0,"card-class":"machine-settings-panel"}},[t("div",[t(F0)],1)]):e._e()},I5=[];const Nf={};var H5=N(nd,R5,I5,!1,j5,null,null,null);function j5(e){for(let s in Nf)this[s]=Nf[s]}const N5=function(){return H5.exports}();var V5=Object.defineProperty,U5=Object.getOwnPropertyDescriptor,R0=(e,s,t,r)=>{for(var i=r>1?void 0:r?U5(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&&V5(s,t,i),i};let To=class extends j(V){constructor(){super(...arguments),this.mdiCodeTags=Tn}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}};R0([k({required:!0})],To.prototype,"panelId",2);To=R0([O({components:{MacroButton:Ks,Panel:Z}})],To);var B5=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.klipperReadyForGui&&e.macros.length>0&&e.macrogroupStatus?t(Z,{attrs:{icon:e.mdiCodeTags,title:e.macrogroup.name,collapsible:!0,"card-class":"macrogroup_"+e.panelId+"_panel"}},[t(q,{staticClass:"py-2"},[t(S,[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()},W5=[];const Vf={};var G5=N(To,B5,W5,!1,z5,null,null,null);function z5(e){for(let s in Vf)this[s]=Vf[s]}const Z5=function(){return G5.exports}();var q5=Object.defineProperty,X5=Object.getOwnPropertyDescriptor,Y5=(e,s,t,r)=>{for(var i=r>1?void 0:r?X5(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&&q5(s,t,i),i};let ad=class extends j(V){constructor(){super(...arguments),this.mdiCodeTags=Tn}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()))}};ad=Y5([O({components:{MacroButton:Ks,Panel:Z}})],ad);var J5=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.klipperReadyForGui&&e.macros.length>0?t(Z,{attrs:{icon:e.mdiCodeTags,title:e.$t("Panels.MacrosPanel.Headline"),collapsible:!0,"card-class":"macros-panel"}},[t(q,{staticClass:"py-2"},[t(S,[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()},K5=[];const Uf={};var Q5=N(ad,J5,K5,!1,eM,null,null,null);function eM(e){for(let s in Uf)this[s]=Uf[s]}const tM=function(){return Q5.exports}();var sM=Object.defineProperty,rM=Object.getOwnPropertyDescriptor,I0=(e,s,t,r)=>{for(var i=r>1?void 0:r?rM(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&&sM(s,t,i),i};let Do=class extends j(V){get entryStyle(){var s;const e=["ma-0"];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(/
/g,"\n");this.$emit("command-click",t)}}};I0([k({required:!0})],Do.prototype,"event",2);Do=I0([O],Do);var iM=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(S,{class:e.entryStyle},[t(_,{staticClass:"col-auto pr-0 text--disabled console-time"},[e._v(e._s(e.entryFormatTime))]),t(_,{class:e.messageClass,domProps:{innerHTML:e._s(e.event.formatMessage)},on:{"!click":function(r){return e.commandClick.apply(null,arguments)}}})],1)},nM=[];const Bf={};var aM=N(Do,iM,nM,!1,oM,"b5bd1d04",null,null);function oM(e){for(let s in Bf)this[s]=Bf[s]}const H0=function(){return aM.exports}();var lM=Object.defineProperty,cM=Object.getOwnPropertyDescriptor,Ip=(e,s,t,r)=>{for(var i=r>1?void 0:r?cM(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&&lM(s,t,i),i};let En=class extends y{commandClick(e){this.$emit("command-click",e)}};Ip([k({required:!0})],En.prototype,"events",2);Ip([k({required:!1,default:!1})],En.prototype,"isMini",2);En=Ip([O({components:{ConsoleTableEntry:H0}})],En);var uM=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(S,{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(H0,{key:i,staticClass:"consoleTableRow",attrs:{event:r},on:{"command-click":e.commandClick}})})],2)},dM=[];const Wf={};var hM=N(En,uM,dM,!1,pM,null,null,null);function pM(e){for(let s in Wf)this[s]=Wf[s]}const nc=function(){return hM.exports}();var mM=Object.defineProperty,fM=Object.getOwnPropertyDescriptor,ac=(e,s,t,r)=>{for(var i=r>1?void 0:r?fM(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&&mM(s,t,i),i};let di=class extends j(V){constructor(){super(...arguments),this.cmdListSearch="",this.isOpen=!1,this.mdiHelp=Jb,this.mdiCloseThick=Ce}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="")}};ac([k({required:!1,default:!1})],di.prototype,"isMini",2);ac([k({required:!1,default:!1})],di.prototype,"inToolbar",2);ac([me("isOpen")],di.prototype,"onIsOpen",1);di=ac([O({components:{Panel:Z}})],di);var gM=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(Z,{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(vt,[t(S,[t(_,[t(re,{attrs:{label:"Search",outlined:"","hide-details":"",clearable:"",dense:""},model:{value:e.cmdListSearch,callback:function(r){e.cmdListSearch=r},expression:"cmdListSearch"}})],1)],1)],1),t(E),t("overlay-scrollbars",{staticClass:"command-help-content",class:e.isMobile?"mobileHeight":"height300"},[t(q,{staticClass:"pt-0"},[t(S,[t(_,[t(Oe,e._l(e.helplistFiltered,function(r){return t(K,{key:r.commandLow,staticClass:"px-0",attrs:{"two-line":""}},[t(Gt,{staticClass:"px-0"},[t(rt,{staticClass:"blue--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(up,{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"}})},vM=[];const Gf={};var _M=N(di,gM,vM,!1,bM,"06867a20",null,null);function bM(e){for(let s in Gf)this[s]=Gf[s]}const oc=function(){return _M.exports}();var yM=Object.defineProperty,CM=Object.getOwnPropertyDescriptor,Hp=(e,s,t,r)=>{for(var i=r>1?void 0:r?CM(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&&yM(s,t,i),i};let On=class extends j(V){constructor(){super(...arguments),this.mdiTrashCan=y0,this.mdiConsoleLine=ua,this.mdiCog=Us,this.mdiSend=h0,this.mdiChevronDoubleRight=Ub,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-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,h)=>So(d,h.command),u[0].command)):this.gcode=u.reduce((d,h)=>So(d,h.command),u[0].command),u&&u.length){let d="";u.forEach(h=>d+=''+h.command+": "+h.description+"
"),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")],On.prototype,"eventsChanged",1);Hp([me("autoscroll")],On.prototype,"autoscrollChanged",1);On=Hp([O({components:{Panel:Z,ConsoleTable:nc,CommandHelpModal:oc}})],On);var $M=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.socketIsConnected&&e.klipperState!=="disconnected"?t(Z,{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(oc,{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(K,{staticClass:"minHeight36"},[t(we,{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(K,{staticClass:"minHeight36"},[t(we,{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(K,{staticClass:"minHeight36"},[t(we,{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(K,{key:i,staticClass:"minHeight36"},[t(we,{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(Ai,{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(S,[t(_,[t("overlay-scrollbars",{ref:"miniConsoleScroll",style:"height: "+e.consoleHeight+"px;",attrs:{options:{}}},[t(nc,{ref:"console",attrs:{events:e.events,"is-mini":!0},on:{"command-click":e.commandClick}}),t(E)],1)],1)],1)],1)],1)]):e._e()},xM=[];const zf={};var wM=N(On,$M,xM,!1,SM,"4b06e9de",null,null);function SM(e){for(let s in zf)this[s]=zf[s]}const PM=function(){return wM.exports}();var TM=Object.defineProperty,DM=Object.getOwnPropertyDescriptor,MM=(e,s,t,r)=>{for(var i=r>1?void 0:r?DM(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&&TM(s,t,i),i};let od=class extends j(V){constructor(){super(...arguments),this.mdiAlertCircle=Rb,this.mdiInformation=At}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}};od=MM([O({components:{Panel:Z}})],od);var EM=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.klipperState==="ready"&&e.existsPrinterConfig&&e.missingConfigs.length?t(Z,{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(S,[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(E),t(q,[t(S,[t(_,[t("p",{staticClass:"orange--text mb-0"},[e._v(e._s(e.$t("Panels.MinSettingsPanel.IncludeMainsailCfg")))])])],1)],1),t(E,{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()},OM=[];const Zf={};var LM=N(od,EM,OM,!1,kM,"05f4d966",null,null);function kM(e){for(let s in Zf)this[s]=Zf[s]}const jp=function(){return LM.exports}();var AM=Object.defineProperty,FM=Object.getOwnPropertyDescriptor,St=(e,s,t,r)=>{for(var i=r>1?void 0:r?FM(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&&AM(s,t,i),i};let pt=class extends j(V){constructor(){super(...arguments),this.mdiFan=yp,this.mdiToggleSwitch=Ep,this.mdiToggleSwitchOffOutline=b0,this.mdiLockOutline=Yl,this.mdiLockOpenVariantOutline=s0,this.mdiMinus=i0,this.mdiPlus=Dp,this.mdiLightbulbOutline=Sp,this.mdiLightbulbOnOutline=e0,this.convertName=gt,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.sliderValuethis.value&&this.sliderValue0?Math.round((this.value-.01)*100)/100:0;this.value=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.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&&e0?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!=="output_pin"?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(le),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(re,{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(Nl,{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.sliderValue0?"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)},IM=[];const qf={};var HM=N(pt,RM,IM,!1,jM,"291ea388",null,null);function jM(e){for(let s in qf)this[s]=qf[s]}const ld=function(){return HM.exports}();/*! * iro.js v5.5.2 * 2016-2021 James Daniel * Licensed under MPL 2.0 * github.com/jaames/iro.js */var Ue,Mo,j0,cd,N0,sr={},Np=[],NM=/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 V0(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-1,r=parseFloat(e);return t?s/100*r:r}function Dt(e){return parseInt(e,16)}function gr(e){return e.toString(16).padStart(2,"0")}var ei=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=Xi(i),l=i-o,c=a*(1-n),u=a*(1-l*n),d=a*(1-(1-l)*n),h=o%6,p=[a,u,c,c,d,a][h],m=[d,a,a,u,c,c][h],f=[c,c,d,a,a,u][h];return{r:Ut(p*255,0,255),g:Ut(m*255,0,255),b:Ut(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,h=o===0?0:c/o;switch(o){case l:u=0;break;case i:u=(n-a)/c+(na;){c=(l+o)*.5;var u=e.kelvinToRgb(c);u.b/u.r>=n/i?l=c:o=c}return c},ZM(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:zr(i),g:zr(n),b:zr(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:zr(i),s:zr(n),l:zr(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=YM.exec(r))?(n=Tt(i[1],255),a=Tt(i[2],255),o=Tt(i[3],255)):(i=JM.exec(r))&&(n=Tt(i[1],255),a=Tt(i[2],255),o=Tt(i[3],255),l=Tt(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"#"+gr(r.r)+gr(r.g)+gr(r.b)},set:function(r){var i,n,a,o,l=255;if((i=eE.exec(r))?(n=Dt(i[1])*17,a=Dt(i[2])*17,o=Dt(i[3])*17):(i=tE.exec(r))?(n=Dt(i[1])*17,a=Dt(i[2])*17,o=Dt(i[3])*17,l=Dt(i[4])*17):(i=sE.exec(r))?(n=Dt(i[1]),a=Dt(i[2]),o=Dt(i[3])):(i=rE.exec(r))&&(n=Dt(i[1]),a=Dt(i[2]),o=Dt(i[3]),l=Dt(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"#"+gr(r.r)+gr(r.g)+gr(r.b)+gr(Xi(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=KM.exec(r))?(n=Tt(i[1],360),a=Tt(i[2],100),o=Tt(i[3],100)):(i=QM.exec(r))&&(n=Tt(i[1],360),a=Tt(i[2],100),o=Tt(i[3],100),l=Tt(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}(),aE={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 oE(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 lE(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 cE(e,s){var t=Bp(e),r=t.width,i=t.height,n=t.handleRange,a=t.handleStart,o=e.layoutDirection==="horizontal",l=oE(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 uE(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;c0?i.protocol+"//"+i.host+i.pathname+i.search+e:e}function Q0(e,s,t,r){for(var i=0;i0&&(l[a?"marginLeft":"marginTop"]=o),Fe(lc,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&&tg.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),tg.forEach(function(d){document.removeEventListener(d,i,{passive:!1})});break}},s}(ii);function Fr(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("+Ct(e.x)+", "+Ct(e.y)+")",willChange:"transform",top:Ct(-s),left:Ct(-s),width:Ct(s*2),height:Ct(s*2),position:"absolute",overflow:"visible"}},t&&Fe("use",Object.assign({xlinkHref:gE(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"}))}Fr.defaultProps={fill:"none",x:0,y:0,r:8,url:null,props:{x:0,y:0}};function Oo(e){var s=e.activeIndex,t=s!==void 0&&s0?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 ei(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:ey},{component:Oo}]}i.transparency&&a.push({component:Oo,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}(ii);ty.defaultProps=Object.assign({},vE,{colors:[],display:"block",id:null,layout:"default",margin:null});var $E=CE(ty),hd;(function(e){e.version="5.5.2",e.Color=ei,e.ColorPicker=$E,function(s){s.h=Fe,s.ComponentBase=dc,s.Handle=Fr,s.Slider=Oo,s.Wheel=ey,s.Box=_E}(e.ui||(e.ui={}))})(hd||(hd={}));var jt=hd,xE=Object.defineProperty,wE=Object.getOwnPropertyDescriptor,ga=(e,s,t,r)=>{for(var i=r>1?void 0:r?wE(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&&xE(s,t,i),i};let Rr=class extends j(V){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=jt.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)}};ga([Eb("picker")],Rr.prototype,"picker",2);ga([k({type:[Object,String],default:"#ffffff"})],Rr.prototype,"color",2);ga([k({type:Object,default:()=>({})})],Rr.prototype,"options",2);ga([me("color",{deep:!0})],Rr.prototype,"colorChanged",1);Rr=ga([O],Rr);var SE=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t("div",{ref:"picker"})])},PE=[];const sg={};var TE=N(Rr,SE,PE,!1,DE,null,null,null);function DE(e){for(let s in sg)this[s]=sg[s]}const Ln=function(){return TE.exports}();var ME=Object.defineProperty,EE=Object.getOwnPropertyDescriptor,Nr=(e,s,t,r)=>{for(var i=r>1?void 0:r?EE(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&&ME(s,t,i),i};let Hs=class extends j(V){constructor(){super(...arguments),this.mdiCloseThick=Ce,this.mdiLightbulbOutline=Sp,this.mdiLightbulbOnOutline=e0,this.boolDialog=!1,this.inputValue=0}get name(){return this.group?gt(this.group.name):gt(this.object.name)}get colorPickerOptions(){let s={width:200,margin:15,layout:[]};return this.existRed&&(s==null||s.layout.push({component:jt.ui.Slider,options:{sliderType:"red"}})),this.existGreen&&(s==null||s.layout.push({component:jt.ui.Slider,options:{sliderType:"green"}})),this.existBlue&&(s==null||s.layout.push({component:jt.ui.Slider,options:{sliderType:"blue"}})),this.existRed&&this.existGreen&&this.existBlue&&(s.layout=[{component:jt.ui.Wheel},{component:jt.ui.Slider,options:{sliderType:"value"}}]),s}get colorPickerWhiteOptions(){return{width:200,margin:15,layout:[{component:jt.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,h,p,m,f,b,C,w;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((h=this.current.blue)!=null?h:0)&&Math.round((p=s.white)!=null?p:0)===Math.round((m=this.current.white)!=null?m: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(((w=s.white)!=null?w: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 M=a;for(let H=this.group.start;H<=this.group.end;H++){if(H===this.group.start){a+=" INDEX=".concat(H);continue}a+="\n".concat(M," INDEX=").concat(H)}}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)}};Nr([k({type:Object,required:!0})],Hs.prototype,"object",2);Nr([k({type:Boolean,default:!1})],Hs.prototype,"root",2);Nr([k(Object)],Hs.prototype,"group",2);Nr([Ze({time:500})],Hs.prototype,"onColorRGBChanged",1);Nr([Ze({time:500})],Hs.prototype,"onColorWhiteChanged",1);Nr([Ze({time:500})],Hs.prototype,"onColorInput",1);Hs=Nr([O({components:{ColorPicker:Ln,MiscellaneousLight:()=>he(()=>Promise.resolve().then(()=>FE),void 0)}})],Hs);var OE=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(ke,{class:e.containerClass},[t(S,[t(_,{staticClass:"pb-3"},[t(Js,{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(le),!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(Z,{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(S,[t(_,{staticClass:"light-presets-container pt-0 d-flex flex-wrap flex-row justify-center"},e._l(e.presets,function(r){return t(pe,{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(E,{staticClass:"my-3"})]:e._e(),t(S,[t(_,{staticClass:"text-center"},[t(Ln,{attrs:{color:e.colorRGB,options:e.colorPickerOptions},on:{"update:color":e.onColorRGBChanged}}),e.existWhite?t(Ln,{staticClass:"mt-3",attrs:{color:e.colorRGBW,options:e.colorPickerWhiteOptions},on:{"update:color":e.onColorWhiteChanged}}):e._e()],1),t(_,[e.existRed?t(S,[t(_,[t(Ie,{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(S,[t(_,[t(Ie,{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(S,[t(_,[t(Ie,{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(S,[t(_,[t(Ie,{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)},LE=[];const rg={};var kE=N(Hs,OE,LE,!1,AE,"aca41388",null,null);function AE(e){for(let s in rg)this[s]=rg[s]}const zp=function(){return kE.exports}(),FE=Object.freeze(Object.defineProperty({__proto__:null,default:zp},Symbol.toStringTag,{value:"Module"}));var RE=Object.defineProperty,IE=Object.getOwnPropertyDescriptor,hc=(e,s,t,r)=>{for(var i=r>1?void 0:r?IE(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&&RE(s,t,i),i};let hi=class extends j(V){constructor(){super(...arguments),this.mdiToggleSwitch=Ep,this.mdiToggleSwitchOffOutline=b0,this.mdiPrinter3dNozzleAlert=c0,this.convertName=gt}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})}};hc([k({type:String,required:!0})],hi.prototype,"name",2);hc([k({type:Boolean,required:!0})],hi.prototype,"enabled",2);hc([k({type:Boolean,required:!0})],hi.prototype,"filament_detected",2);hi=hc([O],hi);var HE=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(ke,{staticClass:"px-0 py-2"},[t(S,[t(_,{staticClass:"pb-3"},[t(Js,{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(le),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)},jE=[];const ig={};var NE=N(hi,HE,jE,!1,VE,"0d751882",null,null);function VE(e){for(let s in ig)this[s]=ig[s]}const sy=function(){return NE.exports}();var UE=Object.defineProperty,BE=Object.getOwnPropertyDescriptor,WE=(e,s,t,r)=>{for(var i=r>1?void 0:r?BE(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&&UE(s,t,i),i};let pd=class extends j(V){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 showMiscellaneousPanel(){return this.klipperReadyForGui&&(this.miscellaneous.length||this.filamentSensors.length||this.lights.length)}};pd=WE([O({components:{Panel:Z,FilamentSensor:sy,MiscellaneousSlider:ld,MiscellaneousLight:zp}})],pd);var GE=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.showMiscellaneousPanel?t(Z,{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(E):e._e(),t(ld,{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(E):e._e(),r.type==="led"&&r.colorOrder.length===1?t(ld,{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(E):e._e(),t(sy,{attrs:{name:r.name,enabled:r.enabled,filament_detected:r.filament_detected}})],1)})],2):e._e()},zE=[];const ng={};var ZE=N(pd,GE,zE,!1,qE,null,null,null);function qE(e){for(let s in ng)this[s]=ng[s]}const XE=function(){return ZE.exports}();var YE=Object.defineProperty,JE=Object.getOwnPropertyDescriptor,Zp=(e,s,t,r)=>{for(var i=r>1?void 0:r?JE(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&&YE(s,t,i),i};let kn=class extends j(V){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{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 Lo=class extends j(V){get styleCircle1(){return{fill:this.color}}get styleCircle2(){return{fill:"#bebebe"}}get styleCircle3(){return{fill:"#343434"}}clickSpool(){this.$emit("click-spool")}};ry([k({required:!1,default:"#ff0"})],Lo.prototype,"color",2);Lo=ry([O({})],Lo);var eO=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"}})])])},tO=[];const ag={};var sO=N(Lo,eO,tO,!1,rO,null,null,null);function rO(e){for(let s in ag)this[s]=ag[s]}const iy=function(){return sO.exports}();var iO=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(iy,{staticClass:"mr-3",staticStyle:{width:"50px",float:"left"},attrs:{color:e.color}})],1),t("td",{staticClass:"py-2",staticStyle:{"min-width":"300px"}},[t(K,{attrs:{"two-line":""}},[t(Gt,{staticClass:"no--padding"},[t("div",{staticClass:"text--disabled mb-1"},[e._v("#"+e._s(e.id)+" | "+e._s(e.vendor))]),t(rt,{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",[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))])])])},nO=[];const og={};var aO=N(kn,iO,nO,!1,oO,"6caf4e0e",null,null);function oO(e){for(let s in og)this[s]=og[s]}const ny=function(){return aO.exports}();var lO=Object.defineProperty,cO=Object.getOwnPropertyDescriptor,qp=(e,s,t,r)=>{for(var i=r>1?void 0:r?cO(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&&lO(s,t,i),i};let An=class extends j(V){constructor(){super(...arguments),this.mdiAdjust=Fb,this.mdiCloseThick=Ce,this.mdiDatabase=JS,this.mdiMagnify=Jl,this.mdiRefresh=Hi,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){const r=s.toLowerCase().split(" "),i=[t.comment,t.filament.name,t.filament.vendor.name,t.filament.material,t.location];for(const n of r)if(!i.some(o=>o==null?void 0:o.toLowerCase().includes(n)))return!1;return!0}setSpool(e){this.$store.dispatch("server/spoolman/setActiveSpool",e.id),this.close()}onShowDialogChanged(e){e&&(this.search="")}};qp([k({required:!0})],An.prototype,"showDialog",2);qp([me("showDialog")],An.prototype,"onShowDialogChanged",1);An=qp([O({components:{SpoolmanChangeSpoolDialogRow:ny,Panel:Z}})],An);var uO=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(Z,{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(vt,[t(re,{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(le),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(Ns,{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(ny,{key:i.id,attrs:{spool:i,max_id_digits:e.max_spool_id_digits},on:{"set-spool":e.setSpool}})]}}])})],1)],1)],1)],1)},dO=[];const lg={};var hO=N(An,uO,dO,!1,pO,null,null,null);function pO(e){for(let s in lg)this[s]=lg[s]}const pc=function(){return hO.exports}();var mO=Object.defineProperty,fO=Object.getOwnPropertyDescriptor,ay=(e,s,t,r)=>{for(var i=r>1?void 0:r?fO(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 ko=class extends j(V){constructor(){super(...arguments),this.mdiEject=zb,this.mdiCloseThick=Ce}close(){this.$emit("close")}removeSpool(){this.$store.dispatch("server/spoolman/setActiveSpool",null),this.close()}};ay([k({required:!0})],ko.prototype,"showDialog",2);ko=ay([O({components:{Panel:Z}})],ko);var gO=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(Z,{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(S,[t(_,[t("p",{staticClass:"body-2"},[e._v(e._s(e.$t("Panels.SpoolmanPanel.EjectSpoolQuestion")))])])],1)],1),t(ne,[t(le),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)},vO=[];const cg={};var _O=N(ko,gO,vO,!1,bO,null,null,null);function bO(e){for(let s in cg)this[s]=cg[s]}const Xp=function(){return _O.exports}();var yO=Object.defineProperty,CO=Object.getOwnPropertyDescriptor,oy=(e,s,t,r)=>{for(var i=r>1?void 0:r?CO(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&&yO(s,t,i),i};let Ao=class extends j(V){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")}};oy([k({required:!1,default:!1})],Ao.prototype,"small",2);Ao=oy([O({components:{Panel:Z,SpoolmanChangeSpoolDialog:pc,SpoolmanEjectSpoolDialog:Xp}})],Ao);var $O=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(K,{attrs:{"three-line":""}},[t(Gt,{class:e.listItemContentClass},[t("div",{class:e.overlineClass},[e._v("#"+e._s(e.id)+" | "+e._s(e.vendor))]),t(rt,{class:e.listItemTitleClass},[t("span",{staticClass:"cursor-pointer",on:{click:e.clickSpool}},[e._v(e._s(e.name))])]),t(up,[e._v(e._s(e.subtitle))])],1),t(qx,{attrs:{tile:"",size:e.avatarSize}},[t(iy,{attrs:{color:e.color},on:{"click-spool":e.clickSpool}})],1)],1)},xO=[];const ug={};var wO=N(Ao,$O,xO,!1,SO,"dfb564f4",null,null);function SO(e){for(let s in ug)this[s]=ug[s]}const mc=function(){return wO.exports}();var PO=Object.defineProperty,TO=Object.getOwnPropertyDescriptor,DO=(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&&PO(s,t,i),i};let md=class extends j(V){constructor(){super(...arguments),this.mdiAdjust=Fb,this.mdiDotsVertical=Gl,this.mdiEject=zb,this.mdiOpenInNew=n0,this.mdiSwapVertical=NP,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")}};md=DO([O({components:{SpoolmanPanelActiveSpool:mc,Panel:Z,SpoolmanChangeSpoolDialog:pc,SpoolmanEjectSpoolDialog:Xp}})],md);var MO=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(Z,{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(K,[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(K,[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(S,[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(mc,{on:{"change-spool":function(r){e.showChangeSpoolDialog=!0}}})],1),t(pc,{attrs:{"show-dialog":e.showChangeSpoolDialog},on:{close:function(r){e.showChangeSpoolDialog=!1}}}),t(Xp,{attrs:{"show-dialog":e.showEjectSpoolDialog},on:{close:function(r){e.showEjectSpoolDialog=!1}}})],1)},EO=[];const dg={};var OO=N(md,MO,EO,!1,LO,null,null,null);function LO(e){for(let s in dg)this[s]=dg[s]}const kO=function(){return OO.exports}();var AO=Object.defineProperty,FO=Object.getOwnPropertyDescriptor,fc=(e,s,t,r)=>{for(var i=r>1?void 0:r?FO(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 pi=class extends j(V){constructor(){super(...arguments),this.mdiChevronDown=Vs,this.mdiChevronUp=la,this.mdiCloseThick=Ce,this.mdiCounter=XS,this.mdiFile=dr,this.mdiPlay=Ii,this.mdiPlaylistRemove=PP,this.contextMenu={shown:!1,x:0,y:0,item:{}},this.dialogChangeCount={show:!1,count:1,item:{}},this.countInputRules=[e=>!!e||this.$t("JobQueue.InvalidCountEmpty"),e=>parseInt(e)>0||this.$t("JobQueue.InvalidCountGreaterZero")]}get styleContentTdWidth(){return"width: ".concat(this.contentTdWidth,"px;")}get smallThumbnail(){return this.$store.getters["server/jobQueue/getSmallThumbnail"](this.item)}get bigThumbnail(){return this.$store.getters["server/jobQueue/getBigThumbnail"](this.item)}get description(){var s,t,r,i,n;let e="";return e+=this.$t("Panels.StatusPanel.Filament")+": ",(s=this.item.metadata)!=null&&s.filament_total||this.item.metadata.filament_weight_total?((t=this.item.metadata)!=null&&t.filament_total&&(e+=this.item.metadata.filament_total.toFixed()+" mm"),(r=this.item.metadata)!=null&&r.filament_total&&this.item.metadata.filament_weight_total&&(e+=" / "),(i=this.item.metadata)!=null&&i.filament_weight_total&&(e+=this.item.metadata.filament_weight_total.toFixed(2)+" g")):e+="--",e+=", "+this.$t("Panels.StatusPanel.PrintTime")+": ",(n=this.item.metadata)!=null&&n.estimated_time?e+=this.formatPrintTime(this.item.metadata.estimated_time):e+="--",e}get bigThumbnailBackground(){var e;return(e=this.$store.state.gui.uiSettings.bigThumbnailBackground)!=null?e:zt}get bigThumbnailTooltipColor(){if(zt.toLowerCase()!==this.bigThumbnailBackground.toLowerCase())return this.bigThumbnailBackground}formatPrintTime(e){if(e){let s="";const t=Math.floor(e/86400);t&&(e%=3600*24,s+=t+"d");const r=Math.floor(e/3600);e%=3600,r&&(s+=" "+r+"h");const i=Math.floor(e/60);i&&(s+=" "+i+"m");const n=e%60;return n&&(s+=" "+n.toFixed(0)+"s"),s}return"--"}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}))}startJobqueue(){this.$store.dispatch("server/jobQueue/start")}removeFromJobqueue(e){var t;const s=[...(t=e.combinedIds)!=null?t:[]];s.push(e.job_id),this.$store.dispatch("server/jobQueue/deleteFromQueue",s)}openChangeCountDialog(e){var s,t;this.dialogChangeCount.show=!0,this.dialogChangeCount.count=((t=(s=e.combinedIds)==null?void 0:s.length)!=null?t:0)+1,this.dialogChangeCount.item=e}changeCountAction(){this.$store.dispatch("server/jobQueue/changeCount",{job_id:this.dialogChangeCount.item.job_id,count:this.dialogChangeCount.count}),this.dialogChangeCount.show=!1}};fc([k({type:Object,required:!0})],pi.prototype,"item",2);fc([k({type:Number,required:!0})],pi.prototype,"contentTdWidth",2);fc([k({type:Boolean,default:!1})],pi.prototype,"isFirst",2);pi=fc([O({components:{NumberInput:Ie}})],pi);var RO=function(){var e,s,t=this,r=t.$createElement,i=t._self._c||r;return i("tr",{directives:[{name:"longpress",rawName:"v-longpress:600",value:function(n){return t.showContextMenu(n,t.item)},expression:"(e) => showContextMenu(e, item)",arg:"600"}],staticClass:"cursor-pointer",on:{contextmenu:function(n){return t.showContextMenu(n,t.item)}}},[i("td",{staticClass:"pr-0 text-center",staticStyle:{width:"32px"}},[t.smallThumbnail&&t.bigThumbnail?[t.smallThumbnail&&t.bigThumbnail?i(pe,{attrs:{top:"","content-class":"tooltip__content-opacity1",color:t.bigThumbnailTooltipColor},scopedSlots:t._u([{key:"activator",fn:function(n){var a=n.on,o=n.attrs;return[i("vue-load-image",[i("img",t._g(t._b({attrs:{slot:"image",src:t.smallThumbnail,width:"32",height:"32"},slot:"image"},"img",o,!1),a)),i("div",{attrs:{slot:"preloader"},slot:"preloader"},[i(at,{attrs:{indeterminate:"",color:"primary"}})],1),i("div",{attrs:{slot:"error"},slot:"error"},[i(v,[t._v(t._s(t.mdiFile))])],1)])]}}],null,!1,309331284)},[i("span",[i("img",{attrs:{src:t.bigThumbnail,width:"250"}})])]):t._e()]:t.smallThumbnail?[i("vue-load-image",[i("img",{attrs:{slot:"image",src:t.smallThumbnail,width:"32",height:"32"},slot:"image"}),i("div",{attrs:{slot:"preloader"},slot:"preloader"},[i(at,{attrs:{indeterminate:"",color:"primary"}})],1),i("div",{attrs:{slot:"error"},slot:"error"},[i(v,[t._v(t._s(t.mdiFile))])],1)])]:[i(v,[t._v(t._s(t.mdiFile))])]],2),i("td",{staticClass:"pr-2"},[t.isFirst&&!t.printerIsPrinting?[i(g,{staticClass:"float-right minwidth-0 mt-1",attrs:{icon:"",color:"success"},on:{click:t.startJobqueue}},[i(v,[t._v(t._s(t.mdiPlay))])],1)]:t._e(),i("div",{staticClass:"d-block text-truncate",style:t.styleContentTdWidth},[t.item.combinedIds.length?i("strong",[t._v(t._s(t.item.combinedIds.length+1)+"x")]):t._e(),t._v(" "+t._s(t.item.filename)+" ")]),(e=t.item)!==null&&e!==void 0&&(s=e.metadata)!==null&&s!==void 0&&s.metadataPulled?i("small",[t._v(t._s(t.description))]):t._e()],2),i($e,{attrs:{"position-x":t.contextMenu.x,"position-y":t.contextMenu.y,absolute:"","offset-y":""},model:{value:t.contextMenu.shown,callback:function(n){t.$set(t.contextMenu,"shown",n)},expression:"contextMenu.shown"}},[i(Oe,[i(K,{on:{click:function(n){return t.openChangeCountDialog(t.contextMenu.item)}}},[i(v,{staticClass:"mr-1"},[t._v(t._s(t.mdiCounter))]),t._v(" "+t._s(t.$t("JobQueue.ChangeCount"))+" ")],1),i(K,{on:{click:function(n){return t.removeFromJobqueue(t.contextMenu.item)}}},[i(v,{staticClass:"mr-1"},[t._v(t._s(t.mdiPlaylistRemove))]),t._v(" "+t._s(t.$t("JobQueue.RemoveFromQueue"))+" ")],1)],1)],1),i(oe,{attrs:{"max-width":"400"},model:{value:t.dialogChangeCount.show,callback:function(n){t.$set(t.dialogChangeCount,"show",n)},expression:"dialogChangeCount.show"}},[i(Z,{attrs:{title:t.$t("JobQueue.ChangeCount").toString(),icon:t.mdiCounter,"card-class":"jobqueue-change-count-dialog","margin-bottom":!1},scopedSlots:t._u([{key:"buttons",fn:function(){return[i(g,{attrs:{icon:"",tile:""},on:{click:function(n){t.dialogChangeCount.show=!1}}},[i(v,[t._v(t._s(t.mdiCloseThick))])],1)]},proxy:!0}])},[i(q,[i(re,{ref:"inputFieldAddToQueueCount",attrs:{label:t.$t("JobQueue.Count"),required:"",rules:t.countInputRules,"hide-spin-buttons":"",type:"number"},on:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.changeCountAction.apply(null,arguments)}},scopedSlots:t._u([{key:"append-outer",fn:function(){return[i("div",{staticClass:"_spin_button_group"},[i(g,{staticClass:"mt-n3",attrs:{icon:"",plain:"",small:""},on:{click:function(n){t.dialogChangeCount.count++}}},[i(v,[t._v(t._s(t.mdiChevronUp))])],1),i(g,{staticClass:"mb-n3",attrs:{disabled:t.dialogChangeCount.count<=1,icon:"",plain:"",small:""},on:{click:function(n){t.dialogChangeCount.count--}}},[i(v,[t._v(t._s(t.mdiChevronDown))])],1)],1)]},proxy:!0}]),model:{value:t.dialogChangeCount.count,callback:function(n){t.$set(t.dialogChangeCount,"count",n)},expression:"dialogChangeCount.count"}})],1),i(ne,[i(le),i(g,{attrs:{color:"",text:""},on:{click:function(n){t.dialogChangeCount.show=!1}}},[t._v(t._s(t.$t("JobQueue.Cancel")))]),i(g,{attrs:{color:"primary",text:""},on:{click:t.changeCountAction}},[t._v(t._s(t.$t("JobQueue.ChangeCount")))])],1)],1)],1)],1)},IO=[];const hg={};var HO=N(pi,RO,IO,!1,jO,"2c9673dc",null,null);function jO(e){for(let s in hg)this[s]=hg[s]}const gc=function(){return HO.exports}();var NO=Object.defineProperty,VO=Object.getOwnPropertyDescriptor,UO=(e,s,t,r)=>{for(var i=r>1?void 0:r?VO(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&&NO(s,t,i),i};let fd=class extends j(V){constructor(){super(...arguments),this.mdiFileMultiple=aP,this.contentTdWidth=100}get jobs(){var s;return(s=this.$store.getters["server/jobQueue/getJobs"])!=null?s:[]}get jobsTable(){return this.jobs.slice(0,5)}get jobsRest(){return this.jobs.slice(5)}get restJobsLength(){let s=0;return this.jobsRest.forEach(t=>{var r,i;s+=((i=(r=t.combinedIds)==null?void 0:r.length)!=null?i:0)+1}),s}get descriptionRestJobs(){let s=0,t=0,r=0;this.jobsRest.forEach(n=>{var o,l,c,u,d,h,p;const a=((l=(o=n.combinedIds)==null?void 0:o.length)!=null?l:0)+1;(c=n.metadata)!=null&&c.filament_total&&(s+=((u=n.metadata)==null?void 0:u.filament_total)*a),(d=n.metadata)!=null&&d.filament_weight_total&&(t+=((h=n.metadata)==null?void 0:h.filament_weight_total)*a),(p=n.metadata)!=null&&p.estimated_time&&(r+=n.metadata.estimated_time*a)});let i="";return i+=this.$t("Files.Filament")+": ",s||t?(s&&(i+=s.toFixed()+" mm"),s&&t&&(i+=" / "),t&&(i+=t.toFixed(2)+" g")):i+="--",i+=", "+this.$t("Files.PrintTime")+": ",r?i+=this.formatPrintTime(r):i+="--",i}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"--"}startJobqueue(){this.$store.dispatch("server/jobQueue/start")}mounted(){setTimeout(()=>{this.calcContentTdWidth()},200)}calcContentTdWidth(){var s,t;this.contentTdWidth=((t=(s=this.$refs.filesJobqueue)==null?void 0:s.$el)==null?void 0:t.clientWidth)-48-48-32}handleResize(){this.$nextTick(()=>{this.calcContentTdWidth()})}};fd=UO([O({components:{JobqueueEntry:gc}})],fd);var BO=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(De,{ref:"filesJobqueue",staticClass:"filesJobqueue",attrs:{flat:""}},[t(Ns,{staticClass:"dashboard-jobqueue-table",attrs:{items:e.jobsTable,"hide-default-footer":"","sort-by":"time_added","mobile-breakpoint":"0"},scopedSlots:e._u([{key:"no-data",fn:function(){return[t("div",{staticClass:"text-center"},[e._v(e._s(e.$t("Panels.StatusPanel.EmptyJobqueue")))])]},proxy:!0},{key:"item",fn:function(r){var i=r.item,n=r.index;return[t(gc,{key:i.job_id,attrs:{item:i,"is-first":n===0,"content-td-width":e.contentTdWidth}})]}},e.jobsRest.length?{key:"body.append",fn:function(){return[t("tr",[t("td",{staticClass:"pr-0 text-center",staticStyle:{width:"32px"}},[t(v,[e._v(e._s(e.mdiFileMultiple))])],1),t("td",{staticClass:"pr-2"},[e._v(" "+e._s(e.$tc("Panels.StatusPanel.JobqueueMoreFiles",e.restJobsLength,{count:e.restJobsLength}))+" "),t("br"),t("small",[e._v(e._s(e.descriptionRestJobs))])])])]},proxy:!0}:null],null,!0)}),t("resize-observer",{on:{notify:e.handleResize}})],1)},WO=[];const pg={};var GO=N(fd,BO,WO,!1,zO,"3d360c2d",null,null);function zO(e){for(let s in pg)this[s]=pg[s]}const ly=function(){return GO.exports}();var ZO=Object.defineProperty,qO=Object.getOwnPropertyDescriptor,Vr=(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&&ZO(s,t,i),i};let js=class extends j(V){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}};Vr([k({required:!1,default:!1})],js.prototype,"loading",2);Vr([k({required:!1,default:""})],js.prototype,"icon",2);Vr([k({required:!0})],js.prototype,"title",2);Vr([k({required:!1})],js.prototype,"subTitle",2);Vr([k({required:!1,default:!1})],js.prototype,"dynamicSlotWidth",2);Vr([k({required:!1,default:!1})],js.prototype,"mobileSecondRow",2);js=Vr([O],js);var XO=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(S,[t(_,{class:e.firstColClasses},[t(S,{staticClass:"d-flex flex-row"},[e.loading?t(_,{staticClass:"col-auto d-flex justify-center align-center pr-0"},[t(at,{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)},YO=[];const mg={};var JO=N(js,XO,YO,!1,KO,"ac415fda",null,null);function KO(e){for(let s in mg)this[s]=mg[s]}const U=function(){return JO.exports}();var QO=Object.defineProperty,e4=Object.getOwnPropertyDescriptor,vc=(e,s,t,r)=>{for(var i=r>1?void 0:r?e4(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&&QO(s,t,i),i};let mi=class extends j(V){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:zt}get bigThumbnailStyle(){return zt.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")}};vc([k({required:!0,default:!1})],mi.prototype,"bool",2);vc([k({required:!0,default:""})],mi.prototype,"currentPath",2);vc([k({required:!0})],mi.prototype,"file",2);mi=vc([O({components:{SettingsRow:U}})],mi);var t4=Object.defineProperty,s4=Object.getOwnPropertyDescriptor,cy=(e,s,t,r)=>{for(var i=r>1?void 0:r?s4(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&&t4(s,t,i),i};let Fo=class extends j(V){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,h;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((h=(d=this.activeSpool)==null?void 0:d.remaining_weight)!=null?h:0);return r{for(var i=r>1?void 0:r?p4(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&&h4(s,t,i),i};let gd=class extends j(V,Je){constructor(){super(...arguments),this.mdiChevronDown=Vs,this.mdiChevronUp=la,this.mdiFile=dr,this.mdiPlay=Ii,this.mdiPlaylistPlus=a0,this.mdiFire=Ri,this.mdiVideo3d=ec,this.mdiCloudDownload=Pn,this.mdiFileDocumentEditOutline=da,this.mdiRenameBox=Ql,this.mdiDelete=Ye,this.mdiCloseThick=Ce,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={show:!1,count:1,item:{...this.contextMenu.item}},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:[];return s=s.slice().sort((i,n)=>n.modified.getTime()-i.modified.getTime()).slice(0,5),s.filter(i=>!i.metadataRequested&&!i.metadataPulled).forEach(i=>{this.$store.dispatch("files/requestMetadata",{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:zt}get bigThumbnailTooltipColor(){if(zt.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.show=!0,this.dialogAddBatchToQueue.count=1,this.dialogAddBatchToQueue.item=s}async addBatchToQueueAction(){let s=[this.currentPath,this.dialogAddBatchToQueue.item.filename].join("/");s.startsWith("/")&&(s=s.slice(1));const t=[];for(let r=0;r0?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()})}};gd=m4([O({components:{Panel:Z,StartPrintDialog:_c}})],gd);var f4=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(De,{ref:"filesGcodeCard",staticClass:"filesGcodeCard",attrs:{flat:""}},[t(Ns,{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(pe,{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(at,{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(pe,{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(_c,{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(K,{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(K,{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(K,{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(K,{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(K,{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(K,{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(K,{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(K,{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(K,{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(Z,{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(re,{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(le),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(Z,{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(le),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.dialogAddBatchToQueue.show,callback:function(r){e.$set(e.dialogAddBatchToQueue,"show",r)},expression:"dialogAddBatchToQueue.show"}},[t(Z,{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:function(r){e.dialogAddBatchToQueue.show=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t(re,{ref:"inputFieldAddToQueueCount",attrs:{label:e.$t("Files.Count"),required:"","hide-spin-buttons":"",type:"number",rules:e.countInputRules},on:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.addBatchToQueueAction.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.dialogAddBatchToQueue.count++}}},[t(v,[e._v(e._s(e.mdiChevronUp))])],1),t(g,{staticClass:"mb-n3",attrs:{disabled:e.dialogAddBatchToQueue.count<=1,icon:"",plain:"",small:""},on:{click:function(r){e.dialogAddBatchToQueue.count--}}},[t(v,[e._v(e._s(e.mdiChevronDown))])],1)],1)]},proxy:!0}]),model:{value:e.dialogAddBatchToQueue.count,callback:function(r){e.$set(e.dialogAddBatchToQueue,"count",r)},expression:"dialogAddBatchToQueue.count"}})],1),t(ne,[t(le),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.dialogAddBatchToQueue.show=!1}}},[e._v(e._s(e.$t("Files.Cancel")))]),t(g,{attrs:{color:"primary",text:""},on:{click:e.addBatchToQueueAction}},[e._v(e._s(e.$t("Files.AddToQueue")))])],1)],1)],1)],1)},g4=[];const vg={};var v4=N(gd,f4,g4,!1,_4,"556064d8",null,null);function _4(e){for(let s in vg)this[s]=vg[s]}const uy=function(){return v4.exports}();var b4=Object.defineProperty,y4=Object.getOwnPropertyDescriptor,C4=(e,s,t,r)=>{for(var i=r>1?void 0:r?y4(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&&b4(s,t,i),i};let vd=class extends j(V){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.maxFlowr?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){let t=s<0?"-":"",r=Math.abs(s),i=Math.floor(r/3600);r%=3600;let n=("0"+Math.floor(r/60)).slice(-2),a=("0"+(r%60).toFixed(0)).slice(-2);return t+i+":"+n+":"+a}};vd=C4([O({components:{StatusPanelFilesJobqueue:ly,StatusPanelFilesGcodes:uy}})],vd);var $4=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(q,{staticClass:"pa-0"},[t(ke,{staticClass:"py-0"},[t(S,{staticClass:"text-center py-5",attrs:{align:"center"}},[t(_,{staticClass:"col-3 pa-0"},[e.live_velocity!==null?[t(pe,{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(pe,{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(pe,{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(pe,{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(E,{staticClass:"my-0"}),t(ke,{staticClass:"py-0"},[t(S,{staticClass:"text-center pt-5 pb-2 mb-0",attrs:{align:"center"}},[t(_,{staticClass:"col-3 pa-0"},[t(pe,{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(pe,{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)},x4=[];const _g={};var w4=N(vd,$4,x4,!1,S4,null,null,null);function S4(e){for(let s in _g)this[s]=_g[s]}const P4=function(){return w4.exports}();var T4=Object.defineProperty,D4=Object.getOwnPropertyDescriptor,M4=(e,s,t,r)=>{for(var i=r>1?void 0:r?D4(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&&T4(s,t,i),i};let _d=class extends j(V){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}};_d=M4([O({components:{}})],_d);var E4=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(q,{staticClass:"pa-0"},[t(ke,{staticClass:"py-0"},[t(S,{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)},O4=[];const bg={};var L4=N(_d,E4,O4,!1,k4,null,null,null);function k4(e){for(let s in bg)this[s]=bg[s]}const A4=function(){return L4.exports}();var F4=Object.defineProperty,R4=Object.getOwnPropertyDescriptor,I4=(e,s,t,r)=>{for(var i=r>1?void 0:r?R4(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&&F4(s,t,i),i};let bd=class extends j(V){};bd=I4([O({components:{StatusPanelPrintstatusPrinting:P4,StatusPanelPrintstatusComplete:A4}})],bd);var H4=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)},j4=[];const yg={};var N4=N(bd,H4,j4,!1,V4,null,null,null);function V4(e){for(let s in yg)this[s]=yg[s]}const U4=function(){return N4.exports}();var B4=Object.defineProperty,W4=Object.getOwnPropertyDescriptor,dy=(e,s,t,r)=>{for(var i=r>1?void 0:r?W4(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&&B4(s,t,i),i};let Ro=class extends j(V){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;ir.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:pp}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)}};dy([k({required:!1,default:""})],Ro.prototype,"hoverName",2);Ro=dy([O],Ro);var G4=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)])},z4=[];const Cg={};var Z4=N(Ro,G4,z4,!1,q4,"71825b43",null,null);function q4(e){for(let s in Cg)this[s]=Cg[s]}const hy=function(){return Z4.exports}();var X4=Object.defineProperty,Y4=Object.getOwnPropertyDescriptor,py=(e,s,t,r)=>{for(var i=r>1?void 0:r?Y4(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&&X4(s,t,i),i};let Io=class extends j(V){constructor(){super(...arguments),this.mdiCloseCircle=fo}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)}};py([k({required:!1,default:""})],Io.prototype,"hoverName",2);Io=py([O],Io);var J4=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e._l(e.printing_objects,function(r){return[t(S,{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(ns,{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(E,{key:"divider_"+r.name})]})],2)},K4=[];const $g={};var Q4=N(Io,J4,K4,!1,e6,null,null,null);function e6(e){for(let s in $g)this[s]=$g[s]}const my=function(){return Q4.exports}();var t6=Object.defineProperty,s6=Object.getOwnPropertyDescriptor,bc=(e,s,t,r)=>{for(var i=r>1?void 0:r?s6(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&&t6(s,t,i),i};let fi=class extends j(V){constructor(){super(...arguments),this.hoverName="",this.mdiSelectionRemove=go,this.mdiCloseThick=Ce}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}};bc([k({required:!0})],fi.prototype,"showDialog",2);bc([k({required:!0})],fi.prototype,"excludeObjectDialogBool",2);bc([k({required:!0})],fi.prototype,"excludeObjectDialogName",2);fi=bc([O({components:{Panel:Z,StatusPanelExcludeObjectDialogList:my,StatusPanelExcludeObjectDialogMap:hy}})],fi);var r6=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(Z,{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(ke,[t(S,[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)},i6=[];const xg={};var n6=N(fi,r6,i6,!1,a6,null,null,null);function a6(e){for(let s in xg)this[s]=xg[s]}const o6=function(){return n6.exports}();var l6=Object.defineProperty,c6=Object.getOwnPropertyDescriptor,fy=(e,s,t,r)=>{for(var i=r>1?void 0:r?c6(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&&l6(s,t,i),i};let Ho=class extends j(V){constructor(){super(...arguments),this.mdiPrinter3dNozzle=Bs,this.mdiSelectionRemove=go,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}};fy([k({required:!0})],Ho.prototype,"showDialog",2);Ho=fy([O({components:{StatusPanelExcludeObjectDialog:o6}})],Ho);var u6=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(ke,{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(E,{staticClass:"mt-0 mb-0"}),t(oe,{attrs:{"max-width":"400"},model:{value:e.boolShowExcludeObjectDialog,callback:function(r){e.boolShowExcludeObjectDialog=r},expression:"boolShowExcludeObjectDialog"}},[t(De,[t(oa,{attrs:{flat:"",dense:""}},[t(ki,[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(le),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()},d6=[];const wg={};var h6=N(Ho,u6,d6,!1,p6,null,null,null);function p6(e){for(let s in wg)this[s]=wg[s]}const m6=function(){return h6.exports}();var f6=Object.defineProperty,g6=Object.getOwnPropertyDescriptor,gy=(e,s,t,r)=>{for(var i=r>1?void 0:r?g6(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 jo=class extends j(V){constructor(){super(...arguments),this.mdiFileOutline=qb,this.mdiFile=dr}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>=Os);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>=Os);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>=Os);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>=ms&&t.width<=fs&&t.height>=ms&&t.height<=fs);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:zt}get thumbnailStyle(){return zt.toLowerCase()!==this.bigThumbnailBackground.toLowerCase()?{backgroundColor:this.bigThumbnailBackground}:{}}focusBigThumbnail(){if(this.$refs.bigThumbnail){const s=this.$refs.bigThumbnail.$el.clientWidth,t=this.thumbnailBigWidth,r=s/t;this.$refs.bigThumbnail.$el.style.height=(this.thumbnailBigHeight*r).toFixed()+"px"}}blurBigThumbnail(){this.$refs.bigThumbnail&&(this.$refs.bigThumbnail.$el.style.height="200px")}handleResize(){this.$nextTick(()=>{var t;document.activeElement===((t=this.$refs.bigThumbnail)==null?void 0:t.$el)&&this.focusBigThumbnail()})}};gy([Ze(200)],jo.prototype,"handleResize",1);jo=gy([O({})],jo);var v6=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(Vl,{ref:"bigThumbnail",staticClass:"d-flex align-end statusPanel-big-thumbnail",style:e.thumbnailStyle,attrs:{src:e.thumbnailBig,tabindex:"-1",height:"200"},on:{focus:e.focusBigThumbnail,blur:e.blurBigThumbnail}},[t(vt,{staticClass:"white--text py-2 px-2",staticStyle:{"background-color":"rgba(0, 0, 0, 0.3)","backdrop-filter":"blur(3px)"}},[t(S,[t(_,{staticStyle:{width:"100px"}},[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(ke,[t(S,[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(pe,{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(at,{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(at,{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()},_6=[];const Sg={};var b6=N(jo,v6,_6,!1,y6,"7c42fe44",null,null);function y6(e){for(let s in Sg)this[s]=Sg[s]}const C6=function(){return b6.exports}();var $6=Object.defineProperty,x6=Object.getOwnPropertyDescriptor,yc=(e,s,t,r)=>{for(var i=r>1?void 0:r?x6(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&&$6(s,t,i),i};let gi=class extends j(V){constructor(){super(...arguments),this.mdiLayersPlus=Zu,this.mdiCloseThick=Ce,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)}};yc([k({required:!0})],gi.prototype,"showDialog",2);yc([me("showDialog")],gi.prototype,"showDialogChanged",1);yc([me("type")],gi.prototype,"typeChanged",1);gi=yc([O({components:{Panel:Z,StatusPanelExcludeObjectDialogList:my,StatusPanelExcludeObjectDialogMap:hy}})],gi);var w6=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(Z,{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(S,[t(_,[t(dt,{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(S,[t(_,[t(dt,{attrs:{text:"",type:"warning",border:"left"}},[e._v(" "+e._s(e.$t("Panels.StatusPanel.PauseAtLayer.DescriptionPauseNextLayerActive",{call:e.macroSettingsPauseAtLayerCall}))+" ")])],1)],1):e._e(),t(S,[t(_,[t(Le,{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(re,{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(S,{staticClass:"mt-0"},[t(_,[t(Le,{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(le),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)},S6=[];const Pg={};var P6=N(gi,w6,S6,!1,T6,null,null,null);function T6(e){for(let s in Pg)this[s]=Pg[s]}const D6=function(){return P6.exports}();var M6=Object.defineProperty,E6=Object.getOwnPropertyDescriptor,vy=(e,s,t,r)=>{for(var i=r>1?void 0:r?E6(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&&M6(s,t,i),i};let No=class extends j(V){constructor(){super(...arguments),this.mdiInformation=At,this.mdiMessageProcessingOutline=_P,this.mdiCloseCircle=fo,this.mdiDotsVertical=Gl,this.mdiAlertOutline=Sn,this.boolShowObjects=!1,this.boolShowPauseAtLayer=!1,this.activeTab="files",this.lastFilename=""}get jobs(){return this.$store.getters["server/jobQueue/getJobs"]}get jobsCount(){var e;return(e=this.jobs.length)!=null?e:0}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:Tp,loadingName:"statusPrintPause",status:()=>["printing"].includes(this.printer_state),click:this.btnPauseJob},{text:this.$t("Panels.StatusPanel.ResumePrint"),color:"success",icon:Ii,loadingName:"statusPrintResume",status:()=>["paused"].includes(this.printer_state),click:this.btnResumeJob},{text:this.$t("Panels.StatusPanel.CancelPrint"),color:"error",icon:m0,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:go,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:Zu,loadingName:"pauseAtLayer",status:()=>this.multiFunctionButton||this.layer_count===null?!1:["paused","printing"].includes(this.printer_state),click:this.btnPauseAtLayer},{text:this.$t("Panels.StatusPanel.ClearPrintStats"),color:"primary",icon:Hb,loadingName:"statusPrintClear",status:()=>["error","complete","cancelled"].includes(this.printer_state),click:this.btnClearJob},{text:this.$t("Panels.StatusPanel.ReprintJob"),color:"primary",icon:l0,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:go,status:()=>this.printing_objects.length>1,disabled:()=>["paused","printing"].includes(this.printer_state),click:this.btnExcludeObject},{text:this.$t("Panels.StatusPanel.PauseAtLayer.PauseAtLayer")+" - "+this.displayPauseAtLayerButton,loadingName:"pauseAtLayer",icon:Zu,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"})}};vy([me("current_filename")],No.prototype,"current_filenameChanged",1);No=vy([O({components:{KlippyStatePanel:ma,MinSettingsPanel:jp,Panel:Z,StatusPanelExcludeObject:m6,StatusPanelGcodefiles:uy,StatusPanelJobqueue:ly,StatusPanelPrintstatus:U4,StatusPanelPrintstatusThumbnail:C6,StatusPanelPauseAtLayerDialog:D6}})],No);var O6=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(jp),t(ma),e.klipperReadyForGui?t(Z,{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(at,{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(pe,{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(K,{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(ke,[t(S,[t(_,{staticClass:"py-2"},[t("span",{staticClass:"subtitle-2 d-block px-0 text--disabled"},[t(v,{staticClass:"mr-2",attrs:{color:"warning",small:""}},[e._v(e._s(e.mdiAlertOutline))]),e._v(" "+e._s(e.print_stats_message)+" ")],1)])],1)],1),t(E,{staticClass:"mt-0 mb-0"})]:e._e(),e.display_message?[t(ke,[t(S,[t(_,{staticClass:"py-2"},[t("span",{staticClass:"subtitle-2 d-block px-0 text--disabled"},[t(v,{staticClass:"mr-2",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(E,{staticClass:"mt-0 mb-0"})]:e._e(),t(Bu,{attrs:{"fixed-tabs":""},model:{value:e.activeTab,callback:function(r){e.activeTab=r},expression:"activeTab"}},[e.current_filename?t(mn,{attrs:{href:"#status"}},[e._v(e._s(e.$t("Panels.StatusPanel.Status")))]):e._e(),t(mn,{attrs:{href:"#files"}},[e._v(e._s(e.$t("Panels.StatusPanel.Files")))]),t(mn,{attrs:{href:"#jobqueue"}},[t($b,{attrs:{color:e.jobQueueBadgeColor,content:e.jobsCount.toString(),inline:!0}},[e._v(" "+e._s(e.$t("Panels.StatusPanel.Jobqueue"))+" ")])],1)],1),t(E,{staticClass:"my-0"}),t(Xx,{staticClass:"_border-radius",model:{value:e.activeTab,callback:function(r){e.activeTab=r},expression:"activeTab"}},[e.current_filename?t(au,{attrs:{value:"status"}},[t("status-panel-printstatus")],1):e._e(),t(au,{attrs:{value:"files"}},[t("status-panel-gcodefiles")],1),t(au,{attrs:{value:"jobqueue"}},[t("status-panel-jobqueue")],1)],1)],2):e._e()],1)},L6=[];const Tg={};var k6=N(No,O6,L6,!1,A6,"4b30acc0",null,null);function A6(e){for(let s in Tg)this[s]=Tg[s]}const ln=function(){return k6.exports}();var F6=Object.defineProperty,R6=Object.getOwnPropertyDescriptor,I6=(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 yd=class extends j(V,Je){constructor(){super(...arguments),this.mdiEngineOff=bp,this.mdiHome=Qb}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})}};yd=I6([O],yd);var H6=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(S,{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(S,{attrs:{dense:""}},[t(_,{staticClass:"text-center"},[t(Nt,{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(S,{attrs:{dense:""}},[t(_,{staticClass:"text-center"},[t(Nt,{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(S,{attrs:{dense:""}},[t(_,{staticClass:"text-center"},[t(Nt,{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)},j6=[];const Dg={};var N6=N(yd,H6,j6,!1,V6,"23a679bf",null,null);function V6(e){for(let s in Dg)this[s]=Dg[s]}const U6=function(){return N6.exports}();var B6=Object.defineProperty,W6=Object.getOwnPropertyDescriptor,G6=(e,s,t,r)=>{for(var i=r>1?void 0:r?W6(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 Cd=class extends j(V,Je){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()}};Cd=G6([O],Cd);var z6=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(S,[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)},Z6=[];const Mg={};var q6=N(Cd,z6,Z6,!1,X6,"8e4f3fa8",null,null);function X6(e){for(let s in Mg)this[s]=Mg[s]}const Y6=function(){return q6.exports}();var J6=Object.defineProperty,K6=Object.getOwnPropertyDescriptor,Q6=(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 $d=class extends j(V,Je){constructor(){super(...arguments),this.mdiChevronUp=la,this.mdiChevronLeft=VS,this.mdiChevronRight=US,this.mdiChevronDown=Vs,this.mdiEngineOff=bp,this.mdiHome=Qb}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)}};$d=Q6([O({components:{Responsive:Qe}})],$d);var eL=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Qe,{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(S,[t(_,[t(S,{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(S,{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(S,{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(S,{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(S,[t(_,{staticClass:"d-flex align-center"},[t("div",{staticClass:"flex-grow-1",staticStyle:{"border-radius":"4px",overflow:"hidden"}},[t(S,{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(S,{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(S,{staticClass:"mt-3",attrs:{"no-gutters":""}},[t(_,[e.stepsReversed.length>0?t(ho,{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)]}}])})},tL=[];const Eg={};var sL=N($d,eL,tL,!1,rL,"8c5676c8",null,null);function rL(e){for(let s in Eg)this[s]=Eg[s]}const iL=function(){return sL.exports}();var nL=Object.defineProperty,aL=Object.getOwnPropertyDescriptor,pr=(e,s,t,r)=>{for(var i=r>1?void 0:r?aL(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&&nL(s,t,i),i};let ys=class extends j(V){onBlur(){this.position!==this.currentPos&&(this.position=this.currentPos)}submit(){this.$emit("submit")}};pr([nS({type:String})],ys.prototype,"position",2);pr([k({type:String,required:!0})],ys.prototype,"currentPos",2);pr([k({type:String,required:!1})],ys.prototype,"label",2);pr([k({type:String,required:!1})],ys.prototype,"suffix",2);pr([k({type:Number,required:!1,default:1})],ys.prototype,"step",2);pr([k({type:Boolean,required:!1})],ys.prototype,"disabled",2);pr([k({type:Boolean,required:!1})],ys.prototype,"readonly",2);ys=pr([O({components:{}})],ys);var oL=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(re,{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)},lL=[];const Og={};var cL=N(ys,oL,lL,!1,uL,null,null,null);function uL(e){for(let s in Og)this[s]=Og[s]}const qa=function(){return cL.exports}();var dL=Object.defineProperty,hL=Object.getOwnPropertyDescriptor,Cc=(e,s,t,r)=>{for(var i=r>1?void 0:r?hL(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&&dL(s,t,i),i};let vi=class extends j(V,Je){constructor(){super(...arguments),this.mdiCrosshairsGps=YS,this.mdiGrid=ql,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}))}};Cc([me("gcodePositions.x",{immediate:!0})],vi.prototype,"updatePositionX",1);Cc([me("gcodePositions.y",{immediate:!0})],vi.prototype,"updatePositionY",1);Cc([me("gcodePositions.z",{immediate:!0})],vi.prototype,"updatePositionZ",1);vi=Cc([O({components:{MoveToInput:qa,Responsive:Qe}})],vi);var pL=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.showCoordinates||e.showPosition?t(ke,{class:e.containerClass},[t(Qe,{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(S,{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(S,{attrs:{dense:""}},[t(_,{class:i.is.xsmall?"col-12":"col-4"},[t(qa,{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(qa,{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(qa,{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()},mL=[];const Lg={};var fL=N(vi,pL,mL,!1,gL,null,null,null);function gL(e){for(let s in Lg)this[s]=Lg[s]}const _y=function(){return fL.exports}();var vL=Object.defineProperty,_L=Object.getOwnPropertyDescriptor,bL=(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 Vo=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}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.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"}};Vo=bL([O],Vo);var yL=Object.defineProperty,CL=Object.getOwnPropertyDescriptor,$L=(e,s,t,r)=>{for(var i=r>1?void 0:r?CL(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 xd=class extends j(V,Vo){constructor(){super(...arguments),this.mdiBroom=Hb,this.mdiContentSave=vp,this.mdiArrowCollapseDown=Wl,this.mdiInformation=At,this.mdiArrowExpandUp=Ib,this.mdiLayersOutline=mP,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}};xd=$L([O({components:{Panel:Z,Responsive:Qe}})],xd);var xL=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Qe,{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(ke,{staticClass:"pa-0"},[t(S,[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(S,{attrs:{dense:""}},[t(_,{class:i.is.medium?"col-12":"order-1 col-6"},[t("div",{staticClass:"d-flex align-center"},[t(Nt,{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(Nt,{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(Nt,{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(Z,{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(le),t(g,{attrs:{text:""},on:{click:function(n){e.saveOffsetDialog=!1}}},[e._v(e._s(e.$t("Panels.ZoffsetPanel.Ok")))])],1):t(ne,[t(le),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)]}}])})},wL=[];const kg={};var SL=N(xd,xL,wL,!1,PL,"51065007",null,null);function PL(e){for(let s in kg)this[s]=kg[s]}const by=function(){return SL.exports}();var TL=Object.defineProperty,DL=Object.getOwnPropertyDescriptor,ML=(e,s,t,r)=>{for(var i=r>1?void 0:r?DL(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&&TL(s,t,i),i};let wd=class extends j(V,Je){constructor(){super(...arguments),this.mdiDotsVertical=Gl,this.mdiEngineOff=bp,this.mdiGamepad=wp,this.mdiSpeedometer=jP,this.mdiRestore=AP,this.mdiMenuDown=hr}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}};wd=ML([O({components:{BarsControl:U6,CircleControl:Y6,CrossControl:iL,MoveToControl:_y,Panel:Z,ToolSlider:sc,ZoffsetControl:by}})],wd);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 Sd=class extends j(V){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})}};Sd=LL([O],Sd);var kL=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(K,{staticClass:"minHeight36"},[t(we,{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(K,{staticClass:"minHeight36"},[t(we,{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(K,{staticClass:"minHeight36"},[t(we,{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(K,{staticClass:"minHeight36"},[t(we,{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(K,{staticClass:"minHeight36"},[t(we,{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)},AL=[];const Ag={};var FL=N(Sd,kL,AL,!1,RL,null,null,null);function RL(e){for(let s in Ag)this[s]=Ag[s]}const IL=function(){return FL.exports}();var HL=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.klipperReadyForGui?t(Z,{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(K,[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(K,[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(K,[t(g,{staticStyle:{width:"100%"},attrs:{small:""},on:{click:e.doQGL}},[e._v("Quad Gantry Level")])],1):e._e(),e.existsBedTilt?t(K,[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(K,[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(K,[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(K,[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(K,[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(K,[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(IL)]},proxy:!0}],null,!1,2619595342)},[t(_y),e.axisControlVisible?t(ke,[t("".concat(e.controlStyle,"-control"),{tag:"component"})],1):e._e(),e.showZOffset?t(E):e._e(),e.showZOffset?t(ke,[t(by)],1):e._e(),e.showSpeedFactor?t(E):e._e(),e.showSpeedFactor?t(ke,[t(sc,{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()},jL=[];const Fg={};var NL=N(wd,HL,jL,!1,VL,null,null,null);function VL(e){for(let s in Fg)this[s]=Fg[s]}const UL=function(){return NL.exports}();var BL=Object.defineProperty,WL=Object.getOwnPropertyDescriptor,GL=(e,s,t,r)=>{for(var i=r>1?void 0:r?WL(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 kt=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 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(){return this.$vuetify.theme.dark?"/img/sidebar-background.svg":"/img/sidebar-background-light.svg"}};kt=GL([O],kt);var zL=Object.defineProperty,ZL=Object.getOwnPropertyDescriptor,Yp=(e,s,t,r)=>{for(var i=r>1?void 0:r?ZL(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&&zL(s,t,i),i};let Fn=class extends j(V,kt){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]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+='
')+r+"
"}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+='
',s+='
',s+=r.marker,s+=""+gt(n)+":",s+="
",s+='
';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",wn.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+="
",s+="
"}),s}selectedLegendsChanged(e,s){var t;((t=this.chart)==null?void 0:t.isDisposed())!==!0&&Object.keys(e).forEach(r=>{var i;if(e[r]!==s[r]){const n=e[r]?"legendSelect":"legendUnSelect";(i=this.chart)==null||i.dispatchAction({type:n,name:r})}})}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{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 as=class extends j(V,Je){constructor(){super(...arguments),this.mdiSnowflake=p0,this.mdiFire=Ri,this.mdiMenuDown=hr,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{for(var i=r>1?void 0:r?nk(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&&ik(s,t,i),i};let Pd=class extends j(V){constructor(){super(...arguments),this.mdiFire=Ri,this.mdiMenuDown=hr,this.mdiSnowflake=p0}get presets(){var e;return(e=this.$store.getters["gui/presets/getPresets"])!=null?e:[]}get cooldownGcode(){return this.$store.getters["gui/presets/getCooldownGcode"]}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)}cooldown(){this.$store.dispatch("server/addEvent",{message:this.cooldownGcode,type:"command"}),this.$socket.emit("printer.gcode.script",{script:this.cooldownGcode})}};Pd=ak([O],Pd);var ok=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(K,{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(E,{staticClass:"_fix_transparency"}),t(Oe,{staticClass:"py-0",attrs:{dense:""}},[t(K,{attrs:{link:""},on:{click:e.cooldown}},[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.cooldown}},[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)],1)},lk=[];const Hg={};var ck=N(Pd,ok,lk,!1,uk,"3edd7172",null,null);function uk(e){for(let s in Hg)this[s]=Hg[s]}const $y=function(){return ck.exports}();var dk=Object.defineProperty,hk=Object.getOwnPropertyDescriptor,pk=(e,s,t,r)=>{for(var i=r>1?void 0:r?hk(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&&dk(s,t,i),i};let Td=class extends j(V,Je){constructor(){super(...arguments),this.mdiCloseThick=Ce,this.mdiThermometerLines=v0,this.convertName=gt,this.capitalize=kr}get boolTempchart(){var s;return(s=this.$store.state.gui.view.tempchart.boolTempchart)!=null?s:!1}};Td=pk([O({components:{Panel:Z,TempChart:yy,TemperatureInput:Cy,Responsive:Qe,TemperaturePanelPresets:$y}})],Td);var mk=Object.defineProperty,fk=Object.getOwnPropertyDescriptor,xy=(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&&mk(s,t,i),i};let Uo=class extends j(V){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(Lb):"".concat(this.color).concat(kb)}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":""}};xy([k({type:Boolean,required:!0})],Uo.prototype,"isResponsiveMobile",2);Uo=xy([O],Uo);var gk=Object.defineProperty,vk=Object.getOwnPropertyDescriptor,Jp=(e,s,t,r)=>{for(var i=r>1?void 0:r?vk(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&&gk(s,t,i),i};let Rn=class extends j(V){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 kr(this.serieName)}};Jp([k({type:String,required:!0})],Rn.prototype,"objectName",2);Jp([k({type:String,required:!0})],Rn.prototype,"serieName",2);Rn=Jp([O],Rn);var _k=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(S,[t(_,{staticClass:"py-1"},[t(we,{staticClass:"mt-0",attrs:{label:e.label,"hide-details":""},model:{value:e.value,callback:function(r){e.value=r},expression:"value"}})],1)],1)},bk=[];const jg={};var yk=N(Rn,_k,bk,!1,Ck,null,null,null);function Ck(e){for(let s in jg)this[s]=jg[s]}const wy=function(){return yk.exports}();var $k=Object.defineProperty,xk=Object.getOwnPropertyDescriptor,Kp=(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&&$k(s,t,i),i};let In=class extends j(V){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})}};Kp([k({type:String,required:!0})],In.prototype,"objectName",2);Kp([k({type:String,required:!0})],In.prototype,"additionalSensor",2);In=Kp([O],In);var wk=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(S,[t(_,{staticClass:"col-12 py-1"},[t(we,{staticClass:"mt-0",attrs:{label:e.label,"hide-details":""},model:{value:e.value,callback:function(r){e.value=r},expression:"value"}})],1)],1)},Sk=[];const Ng={};var Pk=N(In,wk,Sk,!1,Tk,null,null,null);function Tk(e){for(let s in Ng)this[s]=Ng[s]}const Sy=function(){return Pk.exports}();var Dk=Object.defineProperty,Mk=Object.getOwnPropertyDescriptor,Gs=(e,s,t,r)=>{for(var i=r>1?void 0:r?Mk(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&&Dk(s,t,i),i};let os=class extends j(V){constructor(){super(...arguments),this.mdiCloseThick=Ce}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")}};Gs([k({type:Boolean,required:!0})],os.prototype,"boolShow",2);Gs([k({type:String,required:!0})],os.prototype,"objectName",2);Gs([k({type:String,required:!0})],os.prototype,"name",2);Gs([k({required:!0})],os.prototype,"additionalSensorName",2);Gs([k({type:String,required:!0})],os.prototype,"formatName",2);Gs([k({type:String,required:!0})],os.prototype,"icon",2);Gs([k({type:String,required:!0})],os.prototype,"color",2);Gs([Ze(500)],os.prototype,"setChartColor",1);os=Gs([O({components:{TemperaturePanelListItemEditAdditionalSensor:Sy,TemperaturePanelListItemEditChartSerie:wy}})],os);var Ek=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(Z,{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(wy,{key:r,attrs:{"object-name":e.objectName,"serie-name":r}})}),e._l(e.additionalValues,function(r){return t(Sy,{key:r,attrs:{"object-name":e.objectName,"additional-sensor":r}})}),t(S,[t(_,{staticClass:"col-12 text-center pb-0"},[t(ss,{staticClass:"mx-auto",attrs:{"hide-mode-switch":"",mode:"hexa",value:e.color},on:{"update:color":e.setChartColor}})],1)],1)],2)],1)],1)},Ok=[];const Vg={};var Lk=N(os,Ek,Ok,!1,kk,null,null,null);function kk(e){for(let s in Vg)this[s]=Vg[s]}const Py=function(){return Lk.exports}();var Ak=Object.defineProperty,Fk=Object.getOwnPropertyDescriptor,va=(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&&Ak(s,t,i),i};let Ir=class extends j(V){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}};va([k({type:Object,required:!0})],Ir.prototype,"printerObject",2);va([k({type:String,required:!0})],Ir.prototype,"objectName",2);va([k({type:String,required:!0})],Ir.prototype,"keyName",2);va([k({type:Boolean,required:!1,default:!0})],Ir.prototype,"small",2);Ir=va([O],Ir);var Rk=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.isVisible?t("div",[t(pe,{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()},Ik=[];const Ug={};var Hk=N(Ir,Rk,Ik,!1,jk,null,null,null);function jk(e){for(let s in Ug)this[s]=Ug[s]}const Bg=function(){return Hk.exports}();var Nk=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(Bg,{attrs:{"printer-object":e.printerObject,small:!1,"object-name":"nevermore","key-name":"gas"}}),e._l(e.nevermoreValues,function(r){return t(Bg,{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(Py,{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)},Vk=[];const Wg={};var Uk=N(Uo,Nk,Vk,!1,Bk,"2263111c",null,null);function Bk(e){for(let s in Wg)this[s]=Wg[s]}const Ty=function(){return Uk.exports}();var Wk=Object.defineProperty,Gk=Object.getOwnPropertyDescriptor,zk=(e,s,t,r)=>{for(var i=r>1?void 0:r?Gk(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&&Wk(s,t,i),i};let Dd=class extends j(V){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(),rn?1:0}};Dd=zk([O({components:{TemperaturePanelListItemNevermore:Ty}})],Dd);var Zk=Object.defineProperty,qk=Object.getOwnPropertyDescriptor,Qp=(e,s,t,r)=>{for(var i=r>1?void 0:r?qk(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 Hn=class extends j(V){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 gt(this.name)}get icon(){var e;return this.objectName.startsWith("extruder")?(e=this.printerObject.can_extrude)!=null&&e?Bs:c0:this.objectName==="heater_bed"?this.temperature!==null&&this.temperature>50||this.target&&this.temperature&&this.temperature>this.target-5?OP:d0:this.objectName.startsWith("heater_generic")?Ri:this.objectName.startsWith("tmc")?r0:this.isFan?yp:BP}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(Lb):"".concat(this.color).concat(kb)}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=mS.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":""}};Qp([k({type:String,required:!0})],Hn.prototype,"objectName",2);Qp([k({type:Boolean,required:!0})],Hn.prototype,"isResponsiveMobile",2);Hn=Qp([O],Hn);var Xk=Object.defineProperty,Yk=Object.getOwnPropertyDescriptor,em=(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 jn=class extends j(V){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")}};em([k({type:String,required:!0})],jn.prototype,"objectName",2);em([k({type:String,required:!0})],jn.prototype,"additionalObjectName",2);jn=em([O],jn);var Jk=Object.defineProperty,Kk=Object.getOwnPropertyDescriptor,$c=(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&&Jk(s,t,i),i};let _i=class extends j(V){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}};$c([k({type:Object,required:!0})],_i.prototype,"printerObject",2);$c([k({type:String,required:!0})],_i.prototype,"objectName",2);$c([k({type:String,required:!0})],_i.prototype,"keyName",2);_i=$c([O],_i);var Qk=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()},eA=[];const Gg={};var tA=N(_i,Qk,eA,!1,sA,null,null,null);function sA(e){for(let s in Gg)this[s]=Gg[s]}const rA=function(){return tA.exports}();var iA=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",e._l(e.additionalValues,function(r){return t(rA,{key:r,attrs:{"printer-object":e.printerObject,"object-name":e.objectName,"key-name":r}})}),1)},nA=[];const zg={};var aA=N(jn,iA,nA,!1,oA,null,null,null);function oA(e){for(let s in zg)this[s]=zg[s]}const lA=function(){return aA.exports}();var cA=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(pe,{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(pe,{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(lA,{attrs:{"object-name":e.objectName,"additional-object-name":e.additionalSensorName}}):e._e()],1),t("td",{staticClass:"target"},[e.command!==null?t(Cy,{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(Py,{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)},uA=[];const Zg={};var dA=N(Hn,cA,uA,!1,hA,"8977b3c0",null,null);function hA(e){for(let s in Zg)this[s]=Zg[s]}const hu=function(){return dA.exports}();var pA=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Qe,{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(hu,{key:a,attrs:{"object-name":a,"is-responsive-mobile":(o=n.is.mobile)!==null&&o!==void 0?o:!1}})}),e.existsNevermoreFilter?t(Ty,{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(hu,{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(hu,{key:a,attrs:{"object-name":a,"is-responsive-mobile":(o=n.is.mobile)!==null&&o!==void 0?o:!1}})})],2)])]}}])})},mA=[];const qg={};var fA=N(Dd,pA,mA,!1,gA,"080ca807",null,null);function gA(e){for(let s in qg)this[s]=qg[s]}const vA=function(){return fA.exports}();var _A=Object.defineProperty,bA=Object.getOwnPropertyDescriptor,yA=(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 Md=class extends j(V){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})}};Md=yA([O],Md);var CA=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(K,{staticClass:"minHeight36"},[t(we,{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(K,{staticClass:"minHeight36"},[t(we,{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(K,{staticClass:"minHeight36"},[t(we,{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(K,{staticClass:"minHeight36"},[t(we,{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)},$A=[];const Xg={};var xA=N(Md,CA,$A,!1,wA,null,null,null);function wA(e){for(let s in Xg)this[s]=Xg[s]}const SA=function(){return xA.exports}();var PA=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.klipperReadyForGui?t(Z,{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($y),t(SA)]},proxy:!0}],null,!1,3208382191)},[t(q,{staticClass:"pa-0"},[t(vA),e.boolTempchart?[t(E,{staticClass:"my-0"}),t(yy)]:e._e()],2)],1):e._e()},TA=[];const Yg={};var DA=N(Td,PA,TA,!1,MA,null,null,null);function MA(e){for(let s in Yg)this[s]=Yg[s]}const EA=function(){return DA.exports}();var OA=Object.defineProperty,LA=Object.getOwnPropertyDescriptor,kA=(e,s,t,r)=>{for(var i=r>1?void 0:r?LA(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&&OA(s,t,i),i};let cr=class extends j(V){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 TS;case"mdiCampfire":return IS;case"mdiDoor":return eP;case"mdiRadiatorDisabled":return d0;case"mdiPrinter3d":return ha;case"mdiPrinter3dNozzle":return Bs;case"mdiRaspberryPi":return LP;default:return ji}}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"}};cr=kA([O],cr);var AA=Object.defineProperty,FA=Object.getOwnPropertyDescriptor,Dy=(e,s,t,r)=>{for(var i=r>1?void 0:r?FA(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&&AA(s,t,i),i};let Bo=class extends j(V,cr){constructor(){super(...arguments),this.mdiWebcam=ji,this.mdiMenuDown=hr,this.mdiViewGrid=pf}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:pf}}};Dy([k({default:"dashboard"})],Bo.prototype,"currentPage",2);Bo=Dy([O({components:{Panel:Z}})],Bo);function RA(e){switch(e){case"Hlsstreamer":return()=>he(()=>import("./Hlsstreamer-886899b4.js"),["assets/Hlsstreamer-886899b4.js","assets/vuetify-52f40ce5.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-9bc570b0.js","assets/Hlsstreamer-f9f189cf.css"]);case"Ipstreamer":return()=>he(()=>import("./Ipstreamer-dd27a9e8.js"),["assets/Ipstreamer-dd27a9e8.js","assets/vuetify-52f40ce5.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-9bc570b0.js","assets/Ipstreamer-f951d43b.css"]);case"JanusStreamer":return()=>he(()=>import("./JanusStreamer-1b43ec62.js"),["assets/JanusStreamer-1b43ec62.js","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-9bc570b0.js","assets/vuetify-52f40ce5.js","assets/vuetify-950d1cb0.css","assets/JanusStreamer-3206d816.css"]);case"JMuxerStream":return()=>he(()=>import("./JMuxerStream-7e36ed89.js"),["assets/JMuxerStream-7e36ed89.js","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/vuetify-52f40ce5.js","assets/vuetify-950d1cb0.css","assets/echarts-9bc570b0.js","assets/JMuxerStream-baf633f9.css"]);case"Mjpegstreamer":return()=>he(()=>import("./Mjpegstreamer-60c9a3d3.js"),["assets/Mjpegstreamer-60c9a3d3.js","assets/vuetify-52f40ce5.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-9bc570b0.js","assets/Mjpegstreamer-c7e864b6.css"]);case"MjpegstreamerAdaptive":return()=>he(()=>import("./MjpegstreamerAdaptive-2e7c6467.js"),["assets/MjpegstreamerAdaptive-2e7c6467.js","assets/vuetify-52f40ce5.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-9bc570b0.js","assets/MjpegstreamerAdaptive-33a0e59f.css"]);case"Uv4lMjpeg":return()=>he(()=>import("./Uv4lMjpeg-d2ae09fd.js"),["assets/Uv4lMjpeg-d2ae09fd.js","assets/vuetify-52f40ce5.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-9bc570b0.js","assets/Uv4lMjpeg-486d8a68.css"]);case"WebrtcCameraStreamer":return()=>he(()=>import("./WebrtcCameraStreamer-1fb7b328.js"),["assets/WebrtcCameraStreamer-1fb7b328.js","assets/vuetify-52f40ce5.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-9bc570b0.js","assets/WebrtcCameraStreamer-7e0e004c.css"]);case"WebrtcMediaMTX":return()=>he(()=>import("./WebrtcMediaMTX-d62a8a77.js"),["assets/WebrtcMediaMTX-d62a8a77.js","assets/vuetify-52f40ce5.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-9bc570b0.js","assets/WebrtcMediaMTX-089db774.css"]);case"WebrtcGo2rtc":return()=>he(()=>import("./WebrtcGo2rtc-ddbe76a4.js"),["assets/WebrtcGo2rtc-ddbe76a4.js","assets/vuetify-52f40ce5.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-9bc570b0.js","assets/WebrtcGo2rtc-4ca7d296.css"])}}const hs=e=>y.component(e,RA(e));var IA=Object.defineProperty,HA=Object.getOwnPropertyDescriptor,xc=(e,s,t,r)=>{for(var i=r>1?void 0:r?HA(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 bi=class extends j(V){get service(){var e,s;return(s=(e=this.webcam)==null?void 0:e.service)!=null?s:"unknown"}};xc([k({type:Object,required:!0})],bi.prototype,"webcam",2);xc([k({type:Boolean,default:!0})],bi.prototype,"showFps",2);xc([k({default:null})],bi.prototype,"printerUrl",2);bi=xc([O({components:{HlsstreamerAsync:hs("Hlsstreamer"),IpstreamerAsync:hs("Ipstreamer"),JanusStreamerAsync:hs("JanusStreamer"),JMuxerStreamAsync:hs("JMuxerStream"),MjpegstreamerAsync:hs("Mjpegstreamer"),MjpegstreamerAdaptiveAsync:hs("MjpegstreamerAdaptive"),Uv4lMjpegAsync:hs("Uv4lMjpeg"),WebrtcCameraStreamerAsync:hs("WebrtcCameraStreamer"),WebrtcMediaMTXAsync:hs("WebrtcMediaMTX"),WebrtcGo2rtcAsync:hs("WebrtcGo2rtc")}})],bi);var jA=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)},NA=[];const Jg={};var VA=N(bi,jA,NA,!1,UA,null,null,null);function UA(e){for(let s in Jg)this[s]=Jg[s]}const Ed=function(){return VA.exports}();var BA=Object.defineProperty,WA=Object.getOwnPropertyDescriptor,wc=(e,s,t,r)=>{for(var i=r>1?void 0:r?WA(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&&BA(s,t,i),i};let yi=class extends j(V){get webcams(){return this.$store.getters["gui/webcams/getWebcams"]}};wc([k({type:Object,required:!0})],yi.prototype,"webcam",2);wc([k({type:Boolean,default:!0})],yi.prototype,"showFps",2);wc([k({type:String,default:null})],yi.prototype,"printerUrl",2);yi=wc([O({components:{WebcamWrapperItem:Ed}})],yi);var GA=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.webcam.service==="grid"?[e.webcams?t(ke,{staticClass:"pb-4",attrs:{fluid:""}},[t(S,{attrs:{dense:""}},e._l(e.webcams,function(r){return t(_,{key:r.name,attrs:{cols:"6"}},[t(Ed,{attrs:{webcam:r,"printer-url":e.printerUrl,"show-fps":e.showFps}})],1)}),1)],1):e._e()]:[t(Ed,{attrs:{webcam:e.webcam,"printer-url":e.printerUrl,"show-fps":e.showFps}})]],2)},zA=[];const Kg={};var ZA=N(yi,GA,zA,!1,qA,null,null,null);function qA(e){for(let s in Kg)this[s]=Kg[s]}const Sc=function(){return ZA.exports}();var XA=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.socketIsConnected?t(Z,{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(K,{attrs:{link:""},on:{click:function(r){e.currentCamId="all"}}},[t(Rs,{staticClass:"mr-2"},[t(v,{staticClass:"mt-1",attrs:{small:""}},[e._v(e._s(e.mdiViewGrid))])],1),t(Gt,[t(rt,[e._v(e._s(e.$t("Panels.WebcamPanel.All")))])],1)],1),e._l(e.webcams,function(r){return t(K,{key:r.name,attrs:{link:""},on:{click:function(i){e.currentCamId=r.name}}},[t(Rs,{staticClass:"mr-2"},[t(v,{staticClass:"mt-1",attrs:{small:""}},[e._v(e._s(e.convertWebcamIcon(r.icon)))])],1),t(Gt,[t(rt,{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(S,[t(_,{staticClass:"pb-0",staticStyle:{position:"relative"}},[t(Sc,{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()},YA=[];const Qg={};var JA=N(Bo,XA,YA,!1,KA,null,null,null);function KA(e){for(let s in Qg)this[s]=Qg[s]}const tm=function(){return JA.exports}();var QA=Object.defineProperty,eF=Object.getOwnPropertyDescriptor,tF=(e,s,t,r)=>{for(var i=r>1?void 0:r?eF(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&&QA(s,t,i),i};let Od=class extends j(Is){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}};Od=tF([O({components:{ExtruderControlPanel:e5,KlippyStatePanel:ma,MachineSettingsPanel:N5,MacrogroupPanel:Z5,MacrosPanel:tM,MiniconsolePanel:PM,MinSettingsPanel:jp,MiscellaneousPanel:XE,SpoolmanPanel:kO,StatusPanel:ln,ToolheadControlPanel:UL,TemperaturePanel:EA,WebcamPanel:tm}})],Od);var sF=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.isMobile?t(S,[t(_,[t(ln),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(S,[t(_,{staticClass:"col-6"},[t(ln),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(S,[t(_,{staticClass:"col-5"},[t(ln),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(S,[t(_,{staticClass:"col-3"},[t(ln),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)},rF=[];const e1={};var iF=N(Od,sF,rF,!1,nF,null,null,null);function nF(e){for(let s in e1)this[s]=e1[s]}const aF=function(){return iF.exports}();var oF=Object.defineProperty,lF=Object.getOwnPropertyDescriptor,cF=(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 Ld=class extends j(V){};Ld=cF([O({components:{WebcamPanel:tm}})],Ld);var uF=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(S,[t(_,{attrs:{"col-12":""}},[t(tm,{attrs:{"current-page":"page"}})],1)],1)],1)},dF=[];const t1={};var hF=N(Ld,uF,dF,!1,pF,null,null,null);function pF(e){for(let s in t1)this[s]=t1[s]}const mF=function(){return hF.exports}();var fF=Object.defineProperty,gF=Object.getOwnPropertyDescriptor,Pc=(e,s,t,r)=>{for(var i=r>1?void 0:r?gF(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&&fF(s,t,i),i};let Ci=class extends j(V,kt,cr){constructor(){super(...arguments),this.mdiPrinter3d=ha,this.mdiWebcam=ji,this.mdiMenuDown=hr,this.mdiWebcamOff=JP,this.mdiFileOutline=qb,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(){this.printer.socket.isConnected?this.$store.dispatch("changePrinter",{printer:this.printer._namespace}):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()})}};Pc([k({type:Object,required:!0})],Ci.prototype,"printer",2);Pc([Eb()],Ci.prototype,"imageDiv",2);Pc([Ze(200)],Ci.prototype,"handleResize",1);Ci=Pc([O({components:{Panel:Z,"webcam-wrapper":Sc,"mainsail-logo":Ni}})],Ci);var vF=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Z,{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(K,{attrs:{link:""},on:{click:function(r){e.currentCamName="off"}}},[t(Rs,{staticClass:"mr-2"},[t(v,{staticClass:"mt-1",attrs:{small:""}},[e._v(e._s(e.mdiWebcamOff))])],1),t(Gt,[t(rt,[e._v(e._s(e.$t("Panels.FarmPrinterPanel.WebcamOff")))])],1)],1),e._l(e.printer_webcams,function(r){return t(K,{key:r.name,attrs:{link:""},on:{click:function(i){e.currentCamName=r.name}}},[t(Rs,{staticClass:"mr-2"},[t(v,{staticClass:"mt-1",attrs:{small:""}},[e._v(e._s(e.convertWebcamIcon(r.icon)))])],1),t(Gt,[t(rt,{domProps:{textContent:e._s(r.name)}})],1)],1)})],2)],1):e._e()]},proxy:!0}])},[t(Yx,{scopedSlots:e._u([{key:"default",fn:function(r){var i=r.hover;return[t("div",[t(Vl,{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(Sc,{attrs:{webcam:e.currentWebcam,"printer-url":e.printerUrl,"show-fps":!1}})],1):e._e(),t(vt,{staticClass:"white--text py-2",staticStyle:{"background-color":"rgba(0, 0, 0, 0.3)","backdrop-filter":"blur(3px)"}},[t(S,[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(Ni,{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(ke,{staticClass:"py-0"},[t(S,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(Jx,[i?t(Kx,{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)},_F=[];const s1={};var bF=N(Ci,vF,_F,!1,yF,"a9292318",null,null);function yF(e){for(let s in s1)this[s]=s1[s]}const My=function(){return bF.exports}();var CF=Object.defineProperty,$F=Object.getOwnPropertyDescriptor,xF=(e,s,t,r)=>{for(var i=r>1?void 0:r?$F(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&&CF(s,t,i),i};let kd=class extends j(V){get printers(){return this.$store.getters["farm/getPrinters"]}};kd=xF([O({components:{FarmPrinterPanel:My}})],kd);var wF=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(S,e._l(e.printers,function(r,i){return t(_,{key:i,staticClass:"col-12 col-sm-6 col-md-4 pb-0"},[t(My,{attrs:{printer:r}})],1)}),1)},SF=[];const r1={};var PF=N(kd,wF,SF,!1,TF,null,null,null);function TF(e){for(let s in r1)this[s]=r1[s]}const DF=function(){return PF.exports}();var MF=Object.defineProperty,EF=Object.getOwnPropertyDescriptor,sm=(e,s,t,r)=>{for(var i=r>1?void 0:r?EF(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&&MF(s,t,i),i};let Nn=class extends j(V){constructor(){super(...arguments),this.gcode="",this.lastCommandNumber=null,this.items=[],this.mdiChevronDoubleRight=Ub,this.mdiSend=h0,this.mdiCog=Us,this.mdiTrashCan=y0}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-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)=>So(u,d.command),c[0].command)):this.gcode=c.reduce((u,d)=>So(u,d.command),c[0].command),c&&c.length){let u="";c.forEach(d=>u+=""+d.command+": "+d.description+"
"),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%"})}})}};sm([me("events")],Nn.prototype,"eventsChanged",1);sm([me("autoscroll")],Nn.prototype,"autoscrollChanged",1);Nn=sm([O({components:{CommandHelpModal:oc,ConsoleTable:nc}})],Nn);var OF=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"d-flex flex-column"},[t(S,{class:e.consoleDirection==="table"?"order-0":"order-1 mt-3"},[t(_,[t(Ai,{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(oc,{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(K,{staticClass:"minHeight36"},[t(we,{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(K,{staticClass:"minHeight36"},[t(we,{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(K,{staticClass:"minHeight36"},[t(we,{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(K,{key:i,staticClass:"minHeight36"},[t(we,{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(S,{class:e.consoleDirection==="table"?"order-1":"order-0 mt-0"},[t(_,{class:e.consoleDirection==="table"?"col":"col pt-0"},[t(De,[t(q,{staticClass:"pa-0"},[t("overlay-scrollbars",{ref:"consoleScroll",staticClass:"consoleScrollContainer d-flex flex-column"},[t(nc,{ref:"console",attrs:{"is-mini":!1,events:e.events},on:{"command-click":e.commandClick}})],1)],1)],1)],1)],1)],1)},LF=[];const i1={};var kF=N(Nn,OF,LF,!1,AF,"546b63d4",null,null);function AF(e){for(let s in i1)this[s]=i1[s]}const FF=function(){return kF.exports}();var Ey={exports:{}};/**! * Sortable 1.10.2 * @author RubaXa * @author owenm * @license MIT */function Xa(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xa=function(s){return typeof s}:Xa=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Xa(e)}function RF(e,s,t){return s in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}function qt(){return qt=Object.assign||function(e){for(var s=1;s=0)&&(t[i]=e[i]);return t}function HF(e,s){if(e==null)return{};var t=IF(e,s),r,i;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}function jF(e){return NF(e)||VF(e)||UF()}function NF(e){if(Array.isArray(e)){for(var s=0,t=new Array(e.length);s"&&(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 GF(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ts(e,s,t,r){if(e){t=t||document;do{if(s!=null&&(s[0]===">"?e.parentNode===t&&Wo(e,s):Wo(e,s))||r&&e===t)return e;if(e===t)break}while(e=GF(e))}return null}var a1=/\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(a1," ").replace(" "+s+" "," ");e.className=(r+(t?" "+s:"")).replace(a1," ")}}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 Mr(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 ky(e,s,t){if(e){var r=e.getElementsByTagName(s),i=0,n=r.length;if(t)for(;i=n:a=i<=n,!a)return r;if(r===vs())break;r=er(r,!1)}return!1}function Go(e,s,t){for(var r=0,i=0,n=e.children;i2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,n=HF(r,["evt"]);ba.pluginEvent.bind(fe)(s,t,ur({dragEl:ie,parentEl:qe,ghostEl:_e,rootEl:je,nextEl:yr,lastDownEl:Ya,cloneEl:Be,cloneHidden:Ys,dragStarted:un,putSortable:ut,activeSortable:fe.active,originalEvent:i,oldIndex:ti,oldDraggableIndex:vn,newIndex:Ht,newDraggableIndex:Xs,hideGhostForTarget:jy,unhideGhostForTarget:Ny,cloneNowHidden:function(){Ys=!0},cloneNowShown:function(){Ys=!1},dispatchSortableEvent:function(o){bt({sortable:t,name:o,originalEvent:i})}},n))};function bt(e){cn(ur({putSortable:ut,cloneEl:Be,targetEl:ie,rootEl:je,oldIndex:ti,oldDraggableIndex:vn,newIndex:Ht,newDraggableIndex:Xs},e))}var ie,qe,_e,je,yr,Ya,Be,Ys,ti,Ht,vn,Xs,La,ut,Qr=!1,zo=!1,Zo=[],vr,Jt,gu,vu,u1,d1,un,Zr,_n,bn=!1,ka=!1,Ja,mt,_u=[],Fd=!1,qo=[],Tc=typeof document<"u",Aa=Oy,h1=_a||zs?"cssFloat":"float",KF=Tc&&!WF&&!Oy&&"draggable"in document.createElement("div"),Ry=function(){if(Tc){if(zs)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Iy=function(s,t){var r=ue(s),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),n=Go(s,0,t),a=Go(s,1,t),o=n&&ue(n),l=a&&ue(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+Ge(n).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Ge(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[h1]==="none"||a&&r[h1]==="none"&&c+u>i)?"vertical":"horizontal"},QF=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},e9=function(s,t){var r;return Zo.some(function(i){if(!rm(i)){var n=Ge(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},Hy=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 h=(a?o:l).options.group.name;return n===!0||typeof n=="string"&&n===h||n.join&&n.indexOf(h)>-1}}var r={},i=s.group;(!i||Xa(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},jy=function(){!Ry&&_e&&ue(_e,"display","none")},Ny=function(){!Ry&&_e&&ue(_e,"display","")};Tc&&document.addEventListener("click",function(e){if(zo)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),zo=!1,!1},!0);var _r=function(s){if(ie){s=s.touches?s.touches[0]:s;var t=e9(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)}}},t9=function(s){ie&&ie.parentNode[ft]._isOutsideThisEl(s.target)};function fe(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=qt({},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 Iy(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:fe.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};ba.initializePlugins(this,e,t);for(var r in t)!(r in s)&&(s[r]=t[r]);Hy(s);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=s.forceFallback?!1:KF,this.nativeDraggable&&(this.options.touchStartThreshold=1),s.supportPointer?Pe(e,"pointerdown",this._onTapStart):(Pe(e,"mousedown",this._onTapStart),Pe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Pe(e,"dragover",this),Pe(e,"dragenter",this)),Zo.push(this.el),s.store&&s.store.get&&this.sort(s.store.get(this)||[]),qt(this,XF())}fe.prototype={constructor:fe,_isOutsideThisEl:function(s){!this.el.contains(s)&&s!==this.el&&(Zr=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(l9(r),!ie&&!(/mousedown|pointerdown/.test(a)&&s.button!==0||i.disabled)&&!c.isContentEditable&&(l=ts(l,i.draggable,r,!1),!(l&&l.animated)&&Ya!==l)){if(ti=We(l),vn=We(l,i.draggable),typeof u=="function"){if(u.call(this,s,l,this)){bt({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=ts(c,d.trim(),r,!1),d)return bt({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&&!ts(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=Ge(r);if(je=n,ie=r,qe=ie.parentNode,yr=ie.nextSibling,Ya=r,La=a.group,fe.dragged=ie,vr={target:ie,clientX:(t||s).clientX,clientY:(t||s).clientY},u1=vr.clientX-c.left,d1=vr.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}),fe.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!n1&&i.nativeDraggable&&(ie.draggable=!0),i._triggerDragStart(s,t),bt({sortable:i,name:"choose",originalEvent:s}),Ne(ie,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){ky(ie,u.trim(),yu)}),Pe(o,"dragover",_r),Pe(o,"mousemove",_r),Pe(o,"touchmove",_r),Pe(o,"mouseup",i._onDrop),Pe(o,"touchend",i._onDrop),Pe(o,"touchcancel",i._onDrop),n1&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ie.draggable=!0),Mt("delayStart",this,{evt:s}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(_a||zs))){if(fe.eventCanceled){this._onDrop();return}Pe(o,"mouseup",i._disableDelayedDrag),Pe(o,"touchend",i._disableDelayedDrag),Pe(o,"touchcancel",i._disableDelayedDrag),Pe(o,"mousemove",i._delayedDragTouchMoveHandler),Pe(o,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&Pe(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&&yu(ie),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var s=this.el.ownerDocument;xe(s,"mouseup",this._disableDelayedDrag),xe(s,"touchend",this._disableDelayedDrag),xe(s,"touchcancel",this._disableDelayedDrag),xe(s,"mousemove",this._delayedDragTouchMoveHandler),xe(s,"touchmove",this._delayedDragTouchMoveHandler),xe(s,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(s,t){t=t||s.pointerType=="touch"&&s,!this.nativeDraggable||t?this.options.supportPointer?Pe(document,"pointermove",this._onTouchMove):t?Pe(document,"touchmove",this._onTouchMove):Pe(document,"mousemove",this._onTouchMove):(Pe(ie,"dragend",this),Pe(je,"dragstart",this._onDragStart));try{document.selection?Ka(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(s,t){if(Qr=!1,je&&ie){Mt("dragStarted",this,{evt:t}),this.nativeDraggable&&Pe(document,"dragover",t9);var r=this.options;!s&&Ne(ie,r.dragClass,!1),Ne(ie,r.ghostClass,!0),fe.active=this,s&&this._appendGhost(),bt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Jt){this._lastX=Jt.clientX,this._lastY=Jt.clientY,jy();for(var s=document.elementFromPoint(Jt.clientX,Jt.clientY),t=s;s&&s.shadowRoot&&(s=s.shadowRoot.elementFromPoint(Jt.clientX,Jt.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:Jt.clientX,clientY:Jt.clientY,target:s,rootEl:t}),r&&!this.options.dragoverBubble)break}s=t}while(t=t.parentNode);Ny()}},_onTouchMove:function(s){if(vr){var t=this.options,r=t.fallbackTolerance,i=t.fallbackOffset,n=s.touches?s.touches[0]:s,a=_e&&Mr(_e,!0),o=_e&&a&&a.a,l=_e&&a&&a.d,c=Aa&&mt&&l1(mt),u=(n.clientX-vr.clientX+i.x)/(o||1)+(c?c[0]-_u[0]:0)/(o||1),d=(n.clientY-vr.clientY+i.y)/(l||1)+(c?c[1]-_u[1]:0)/(l||1);if(!fe.active&&!Qr){if(r&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))=0&&(bt({rootEl:qe,name:"add",toEl:qe,fromEl:je,originalEvent:s}),bt({sortable:this,name:"remove",toEl:qe,originalEvent:s}),bt({rootEl:qe,name:"sort",toEl:qe,fromEl:je,originalEvent:s}),bt({sortable:this,name:"sort",toEl:qe,originalEvent:s})),ut&&ut.save()):Ht!==ti&&Ht>=0&&(bt({sortable:this,name:"update",toEl:qe,originalEvent:s}),bt({sortable:this,name:"sort",toEl:qe,originalEvent:s})),fe.active&&((Ht==null||Ht===-1)&&(Ht=ti,Xs=vn),bt({sortable:this,name:"end",toEl:qe,originalEvent:s}),this.save()))),this._nulling()},_nulling:function(){Mt("nulling",this),je=ie=qe=_e=yr=Be=Ya=Ys=vr=Jt=un=Ht=Xs=ti=vn=Zr=_n=ut=La=fe.dragged=fe.ghost=fe.clone=fe.active=null,qo.forEach(function(s){s.checked=!0}),qo.length=gu=vu=0},handleEvent:function(s){switch(s.type){case"drop":case"dragend":this._onDrop(s);break;case"dragenter":case"dragover":ie&&(this._onDragOver(s),s9(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;ir.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 n9(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,h=!1;if(!a){if(o&&Jau+c*n/2:ld-Ja)return-_n}else if(l>u+c*(1-i)/2&&ld-c*n/2)?l>u+c/2?1:-1:0}function a9(e){return We(ie)1&&(ve.forEach(function(o){n.addAnimationState({target:o,rect:Ft?Ge(o):a}),mu(o),o.fromRect=a,r.removeAnimationState(o)}),Ft=!1,p9(!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(),Ki=!1,c.animation&&ve.length>1&&(Ft||!i&&!a.options.sort&&!l)){var u=Ge(Re,!1,!0,!0);ve.forEach(function(h){h!==Re&&(c1(h,u),o.appendChild(h))}),Ft=!0}if(!i)if(Ft||Ra(),ve.length>1){var d=Fa;a._showClone(r),a.options.animation&&!Fa&&d&&It.forEach(function(h){a.addAnimationState({target:h,rect:Qi}),h.fromRect=Qi,h.thisAnimationDuration=null})}else a._showClone(r)}},dragOverAnimationCapture:function(t){var r=t.dragRect,i=t.isOwner,n=t.activeSortable;if(ve.forEach(function(o){o.thisAnimationDuration=null}),n.options.animation&&!i&&n.multiDrag.isMultiDrag){Qi=qt({},r);var a=Mr(Re,!0);Qi.top-=a.f,Qi.left-=a.e}},dragOverAnimationComplete:function(){Ft&&(Ft=!1,Ra())},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,h=n.children;if(!qr)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ne(Re,d.selectedClass,!~ve.indexOf(Re)),~ve.indexOf(Re))ve.splice(ve.indexOf(Re),1),Ji=null,cn({sortable:a,rootEl:i,name:"deselect",targetEl:Re,originalEvt:r});else{if(ve.push(Re),cn({sortable:a,rootEl:i,name:"select",targetEl:Re,originalEvt:r}),r.shiftKey&&Ji&&a.el.contains(Ji)){var p=We(Ji),m=We(Re);if(~p&&~m&&p!==m){var f,b;for(m>p?(b=p,f=m):(b=m,f=p+1);b1){var C=Ge(Re),w=We(Re,":not(."+this.options.selectedClass+")");if(!Ki&&d.animation&&(Re.thisAnimationDuration=null),u.captureAnimationState(),!Ki&&(d.animation&&(Re.fromRect=C,ve.forEach(function(H){if(H.thisAnimationDuration=null,H!==Re){var A=Ft?Ge(H):C;H.fromRect=A,u.addAnimationState({target:H,rect:A})}})),Ra(),ve.forEach(function(H){h[w]?n.insertBefore(H,h[w]):n.appendChild(H),w++}),l===We(Re))){var M=!1;ve.forEach(function(H){if(H.sortableIndex!==We(H)){M=!0;return}}),M&&o("update")}ve.forEach(function(H){mu(H)}),u.animateAll()}Kt=u}(i===n||c&&c.lastPutMode!=="clone")&&It.forEach(function(H){H.parentNode&&H.parentNode.removeChild(H)})}},nullingGlobal:function(){this.isMultiDrag=qr=!1,It.length=0},destroyGlobal:function(){this._deselectMultiDrag(),xe(document,"pointerup",this._deselectMultiDrag),xe(document,"mouseup",this._deselectMultiDrag),xe(document,"touchend",this._deselectMultiDrag),xe(document,"keydown",this._checkKeyDown),xe(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(typeof qr<"u"&&qr)&&Kt===this.sortable&&!(t&&ts(t.target,this.options.draggable,this.sortable.el,!1))&&!(t&&t.button!==0))for(;ve.length;){var r=ve[0];Ne(r,this.options.selectedClass,!1),ve.shift(),cn({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)}},qt(e,{pluginName:"multiDrag",utils:{select:function(t){var r=t.parentNode[ft];!r||!r.options.multiDrag||~ve.indexOf(t)||(Kt&&Kt!==r&&(Kt.multiDrag._deselectMultiDrag(),Kt=r),Ne(t,r.options.selectedClass,!0),ve.push(t))},deselect:function(t){var r=t.parentNode[ft],i=ve.indexOf(t);!r||!r.options.multiDrag||!~i||(Ne(t,r.options.selectedClass,!1),ve.splice(i,1))}},eventProperties:function(){var t=this,r=[],i=[];return ve.forEach(function(n){r.push({multiDragElement:n,index:n.sortableIndex});var a;Ft&&n!==Re?a=-1:Ft?a=We(n,":not(."+t.options.selectedClass+")"):a=We(n),i.push({multiDragElement:n,index:a})}),{items:jF(ve),clones:[].concat(It),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 p9(e,s){ve.forEach(function(t,r){var i=s.children[t.sortableIndex+(e?Number(r):0)];i?s.insertBefore(t,i):s.appendChild(t)})}function m1(e,s){It.forEach(function(t,r){var i=s.children[t.sortableIndex+(e?Number(r):0)];i?s.insertBefore(t,i):s.appendChild(t)})}function Ra(){ve.forEach(function(e){e!==Re&&e.parentNode&&e.parentNode.removeChild(e)})}fe.mount(new c9);fe.mount(am,nm);const m9=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:h9,Sortable:fe,Swap:u9,default:fe},Symbol.toStringTag,{value:"Module"})),f9=hp(m9);(function(e,s){(function(r,i){e.exports=i(f9)})(typeof self<"u"?self:xr,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"),h=n("7f20"),p=n("38fd"),m=n("2b4c")("iterator"),f=!([].keys&&"next"in[].keys()),b="@@iterator",C="keys",w="values",M=function(){return this};r.exports=function(H,A,$,T,I,R,W){d($,A,T);var B=function(L){if(!f&&L in X)return X[L];switch(L){case C:return function(){return new $(this,L)};case w:return function(){return new $(this,L)}}return function(){return new $(this,L)}},ee=A+" Iterator",D=I==w,z=!1,X=H.prototype,Q=X[m]||X[b]||I&&X[I],te=Q||B(I),se=I?D?B("entries"):te:void 0,F=A=="Array"&&X.entries||Q,G,x,P;if(F&&(P=p(F.call(new H)),P!==Object.prototype&&P.next&&(h(P,ee,!0),!a&&typeof P[m]!="function"&&c(P,m,M))),D&&Q&&Q.name!==w&&(z=!0,te=function(){return Q.call(this)}),(!a||W)&&(f||z||!X[m])&&c(X,m,te),u[A]=te,u[ee]=M,I)if(G={values:D?te:B(w),keys:R?te:B(C),entries:se},W)for(x in G)x in X||l(X,x,G[x]);else o(o.P+o.F*(f||z),A,G);return G}},"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)),h=a(u),p=d.length,m,f;return h<0||h>=p?l?"":void 0:(m=d.charCodeAt(h),m<55296||m>56319||h+1===p||(f=d.charCodeAt(h+1))<56320||f>57343?l?d.charAt(h):m:l?d.slice(h,h+2):(m-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 h=l(d),p=h.length,m=0,f;p>m;)a.f(u,f=h[m++],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"),h=u("species"),p=!l(function(){var f=/./;return f.exec=function(){var b=[];return b.groups={a:"7"},b},"".replace(f,"$")!=="7"}),m=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 w=u(f),M=!l(function(){var R={};return R[w]=function(){return 7},""[f](R)!=7}),H=M?!l(function(){var R=!1,W=/a/;return W.exec=function(){return R=!0,null},f==="split"&&(W.constructor={},W.constructor[h]=function(){return W}),W[w](""),!R}):void 0;if(!M||!H||f==="replace"&&!p||f==="split"&&!m){var A=/./[w],$=C(c,w,""[f],function(W,B,ee,D,z){return B.exec===d?M&&!z?{done:!0,value:A.call(B,ee,D)}:{done:!0,value:W.call(ee,B,D)}:{done:!1}}),T=$[0],I=$[1];a(String.prototype,f,T),o(RegExp.prototype,w,b==2?function(R,W){return I.call(R,this,W)}:function(R){return I.call(R,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,h,p;return u===void 0?"Undefined":u===null?"Null":typeof(h=c(d=Object(u),o))=="string"?h:l?a(d):(p=a(d))=="Object"&&typeof d.callee=="function"?"Arguments":p}},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",h=(""+u).split(d);n("8378").inspectSource=function(p){return u.call(p)},(r.exports=function(p,m,f,b){var C=typeof f=="function";C&&(l(f,"name")||o(f,"name",m)),p[m]!==f&&(C&&(l(f,c)||o(f,c,p[m]?""+p[m]:h.join(String(m)))),p===a?p[m]=f:b?p[m]?p[m]=f:o(p,m,f):(delete p[m],o(p,m,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",h=function(){var p=n("230e")("iframe"),m=l.length,f="<",b=">",C;for(p.style.display="none",n("fab2").appendChild(p),p.src="javascript:",C=p.contentWindow.document,C.open(),C.write(f+"script"+b+"document.F=Object"+f+"/script"+b),C.close(),h=C.F;m--;)delete h[d][l[m]];return h()};r.exports=Object.create||function(m,f){var b;return m!==null?(u[d]=a(m),b=new u,u[d]=null,b[c]=m):b=h(),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,h){u.prototype=a(c,{next:o(1,h)}),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 m=/a/,f=/b*/g;return o.call(m,"a"),o.call(f,"a"),m[u]!==0||f[u]!==0}(),h=/()??/.exec("")[1]!==void 0,p=d||h;p&&(c=function(f){var b=this,C,w,M,H;return h&&(w=new RegExp("^"+b.source+"$(?!\\s)",a.call(b))),d&&(C=b[u]),M=o.call(b,f),d&&M&&(b[u]=b.global?M.index+M[0].length:C),h&&M&&M.length>1&&l.call(M[0],w,function(){for(H=1;H1?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 h={},p={},m=Symbol(),f="abcdefghijklmnopqrst";return h[m]=7,f.split("").forEach(function(b){p[b]=b}),d({},h)[m]!=7||Object.keys(d({},p)).join("")!=f})?function(p,m){for(var f=c(p),b=arguments.length,C=1,w=o.f,M=l.f;b>C;)for(var H=u(arguments[C++]),A=w?a(H).concat(w(H)):a(H),$=A.length,T=0,I;$>T;)M.call(H,I=A[T++])&&(f[I]=H[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,h,p){if(a(d),h=l(h,!0),a(p),o)try{return c(d,h,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(d[h]=p.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,h){return o.call(l,u,d,h)}}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"),h=Math.max,p=Math.min,m=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,b=/\$([$&`']|\d\d?)/g,C=function(w){return w===void 0?w:String(w)};n("214f")("replace",2,function(w,M,H,A){return[function(I,R){var W=w(this),B=I==null?void 0:I[M];return B!==void 0?B.call(I,W,R):H.call(String(W),I,R)},function(T,I){var R=A(H,T,this,I);if(R.done)return R.value;var W=a(T),B=String(this),ee=typeof I=="function";ee||(I=String(I));var D=W.global;if(D){var z=W.unicode;W.lastIndex=0}for(var X=[];;){var Q=d(W,B);if(Q===null||(X.push(Q),!D))break;var te=String(Q[0]);te===""&&(W.lastIndex=u(B,l(W.lastIndex),z))}for(var se="",F=0,G=0;G=F&&(se+=B.slice(F,P)+ge,F=P+x.length)}return se+B.slice(F)}];function $(T,I,R,W,B,ee){var D=R+T.length,z=W.length,X=b;return B!==void 0&&(B=o(B),X=f),H.call(ee,X,function(Q,te){var se;switch(te.charAt(0)){case"$":return"$";case"&":return T;case"`":return I.slice(0,R);case"'":return I.slice(D);case"<":se=B[te.slice(1,-1)];break;default:var F=+te;if(F===0)return Q;if(F>z){var G=m(F/10);return G===0?Q:G<=z?W[G-1]===void 0?te.charAt(1):W[G-1]+te.charAt(1):Q}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"),h=n("2b4c"),p=h("iterator"),m=h("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),w=0;wf;)if(b=p[f++],b!=b)return!0}else for(;m>f;f++)if((c||f in p)&&p[f]===d)return c||f||0;return!c&&-1}}},c649:function(r,i,n){(function(a){n.d(i,"c",function(){return p}),n.d(i,"a",function(){return d}),n.d(i,"b",function(){return l}),n.d(i,"d",function(){return h}),n("a481");function o(){return typeof window<"u"?window.console:a.console}var l=o();function c(m){var f=Object.create(null);return function(C){var w=f[C];return w||(f[C]=m(C))}}var u=/-(\w)/g,d=c(function(m){return m.replace(u,function(f,b){return b?b.toUpperCase():""})});function h(m){m.parentElement!==null&&m.parentElement.removeChild(m)}function p(m,f,b){var C=b===0?m.children[0]:m.children[b-1].nextSibling;m.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,h=this._i++;return!u||h>=u.length?(this._t=void 0,o(1)):d=="keys"?o(0,h):d=="values"?o(0,u[h]):o(0,[h,u[h]])},"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 h=o(u),p=0,m=[],f;for(f in h)f!=c&&a(h,f)&&m.push(f);for(;d.length>p;)a(h,f=d[p++])&&(~l(m,f)||m.push(f));return m}},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(h){var p=l(this,h,c),m=o(Math.min(arguments.length>1?arguments[1]:void 0,p.length)),f=String(h);return u?u.call(p,f,m):p.slice(m,m+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(x){if(Array.isArray(x))return x}function l(x,P){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(x)))){var L=[],Y=!0,ae=!1,de=void 0;try{for(var ge=x[Symbol.iterator](),ye;!(Y=(ye=ge.next()).done)&&(L.push(ye.value),!(P&&L.length===P));Y=!0);}catch(tt){ae=!0,de=tt}finally{try{!Y&&ge.return!=null&&ge.return()}finally{if(ae)throw de}}return L}}function c(x,P){(P==null||P>x.length)&&(P=x.length);for(var L=0,Y=new Array(P);L=de?ae.length:ae.indexOf(ye)});return L?ge.filter(function(ye){return ye!==-1}):ge}function T(x,P){var L=this;this.$nextTick(function(){return L.$emit(x.toLowerCase(),P)})}function I(x){var P=this;return function(L){P.realList!==null&&P["onDrag"+x](L),T.call(P,x,L)}}function R(x){return["transition-group","TransitionGroup"].includes(x)}function W(x){if(!x||x.length!==1)return!1;var P=h(x,1),L=P[0].componentOptions;return L?R(L.tag):!1}function B(x,P,L){return x[L]||(P[L]?P[L]():void 0)}function ee(x,P,L){var Y=0,ae=0,de=B(P,L,"header");de&&(Y=de.length,x=x?[].concat(b(de),b(x)):b(de));var ge=B(P,L,"footer");return ge&&(ae=ge.length,x=x?[].concat(b(x),b(ge)):b(ge)),{children:x,headerOffset:Y,footerOffset:ae}}function D(x,P){var L=null,Y=function(lt,_t){L=H(L,lt,_t)},ae=Object.keys(x).filter(function(tt){return tt==="id"||tt.startsWith("data-")}).reduce(function(tt,lt){return tt[lt]=x[lt],tt},{});if(Y("attrs",ae),!P)return L;var de=P.on,ge=P.props,ye=P.attrs;return Y("on",de),Y("props",ge),Object.assign(L.attrs,ye),L}var z=["Start","Add","Remove","Update","End"],X=["Choose","Unchoose","Sort","Filter","Clone"],Q=["Move"].concat(z,X).map(function(x){return"on"+x}),te=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(P){return P}},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(P){var L=this.$slots.default;this.transitionMode=W(L);var Y=ee(L,this.$slots,this.$scopedSlots),ae=Y.children,de=Y.headerOffset,ge=Y.footerOffset;this.headerOffset=de,this.footerOffset=ge;var ye=D(this.$attrs,this.componentData);return P(this.getTag(),ye,ae)},created:function(){this.list!==null&&this.value!==null&&M.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&M.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&&M.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 P=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 L={};z.forEach(function(de){L["on"+de]=I.call(P,de)}),X.forEach(function(de){L["on"+de]=T.bind(P,de)});var Y=Object.keys(this.$attrs).reduce(function(de,ge){return de[Object(M.a)(ge)]=P.$attrs[ge],de},{}),ae=Object.assign({},this.options,Y,L,{onMove:function(ge,ye){return P.onDragMove(ge,ye)}});!("draggable"in ae)&&(ae.draggable=">*"),this._sortable=new w.a(this.rootContainer,ae),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(P){this.updateOptions(P)},deep:!0},$attrs:{handler:function(P){this.updateOptions(P)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var P=this._vnode.fnOptions;return P&&P.functional},getTag:function(){return this.tag||this.element},updateOptions:function(P){for(var L in P){var Y=Object(M.a)(L);Q.indexOf(Y)===-1&&this._sortable.option(Y,P[L])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var P=this.$slots.default;return this.transitionMode?P[0].child.$slots.default:P},computeIndexes:function(){var P=this;this.$nextTick(function(){P.visibleIndexes=$(P.getChildrenNodes(),P.rootContainer.children,P.transitionMode,P.footerOffset)})},getUnderlyingVm:function(P){var L=A(this.getChildrenNodes()||[],P);if(L===-1)return null;var Y=this.realList[L];return{index:L,element:Y}},getUnderlyingPotencialDraggableComponent:function(P){var L=P.__vue__;return!L||!L.$options||!R(L.$options._componentTag)?!("realList"in L)&&L.$children.length===1&&"realList"in L.$children[0]?L.$children[0]:L:L.$parent},emitChanges:function(P){var L=this;this.$nextTick(function(){L.$emit("change",P)})},alterList:function(P){if(this.list){P(this.list);return}var L=b(this.value);P(L),this.$emit("input",L)},spliceList:function(){var P=arguments,L=function(ae){return ae.splice.apply(ae,b(P))};this.alterList(L)},updatePosition:function(P,L){var Y=function(de){return de.splice(L,0,de.splice(P,1)[0])};this.alterList(Y)},getRelatedContextFromMoveEvent:function(P){var L=P.to,Y=P.related,ae=this.getUnderlyingPotencialDraggableComponent(L);if(!ae)return{component:ae};var de=ae.realList,ge={list:de,component:ae};if(L!==Y&&de&&ae.getUnderlyingVm){var ye=ae.getUnderlyingVm(Y);if(ye)return Object.assign(ye,ge)}return ge},getVmIndex:function(P){var L=this.visibleIndexes,Y=L.length;return P>Y-1?Y:L[P]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(P){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var L=this.getChildrenNodes();L[P].data=null;var Y=this.getComponent();Y.children=[],Y.kept=void 0}},onDragStart:function(P){this.context=this.getUnderlyingVm(P.item),P.item._underlying_vm_=this.clone(this.context.element),te=P.item},onDragAdd:function(P){var L=P.item._underlying_vm_;if(L!==void 0){Object(M.d)(P.item);var Y=this.getVmIndex(P.newIndex);this.spliceList(Y,0,L),this.computeIndexes();var ae={element:L,newIndex:Y};this.emitChanges({added:ae})}},onDragRemove:function(P){if(Object(M.c)(this.rootContainer,P.item,P.oldIndex),P.pullMode==="clone"){Object(M.d)(P.clone);return}var L=this.context.index;this.spliceList(L,1);var Y={element:this.context.element,oldIndex:L};this.resetTransitionData(L),this.emitChanges({removed:Y})},onDragUpdate:function(P){Object(M.d)(P.item),Object(M.c)(P.from,P.item,P.oldIndex);var L=this.context.index,Y=this.getVmIndex(P.newIndex);this.updatePosition(L,Y);var ae={element:this.context.element,oldIndex:L,newIndex:Y};this.emitChanges({moved:ae})},updateProperty:function(P,L){P.hasOwnProperty(L)&&(P[L]+=this.headerOffset)},computeFutureIndex:function(P,L){if(!P.element)return 0;var Y=b(L.to.children).filter(function(ye){return ye.style.display!=="none"}),ae=Y.indexOf(L.related),de=P.component.getVmIndex(ae),ge=Y.indexOf(te)!==-1;return ge||!L.willInsertAfter?de:de+1},onDragMove:function(P,L){var Y=this.move;if(!Y||!this.realList)return!0;var ae=this.getRelatedContextFromMoveEvent(P),de=this.context,ge=this.computeFutureIndex(ae,P);Object.assign(de,{futureIndex:ge});var ye=Object.assign({},P,{relatedContext:ae,draggedContext:de});return Y(ye,L)},onDragEnd:function(){this.computeIndexes(),te=null}}};typeof window<"u"&&"Vue"in window&&window.Vue.component("draggable",F);var G=F;i.default=G}}).default})})(Ey);var g9=Ey.exports;const Ui=Fi(g9);var v9=Object.defineProperty,_9=Object.getOwnPropertyDescriptor,Dc=(e,s,t,r)=>{for(var i=r>1?void 0:r?_9(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&&v9(s,t,i),i};let $i=class extends j(V){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])}};Dc([k({default:!1})],$i.prototype,"path",2);Dc([k({default:!1})],$i.prototype,"baseDirectoryLabel",2);Dc([k({default:!1})],$i.prototype,"onSegmentClick",2);$i=Dc([O],$i);var b9=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)},y9=[];const f1={};var C9=N($i,b9,y9,!1,$9,"4b5d1549",null,null);function $9(e){for(let s in f1)this[s]=f1[s]}const Bi=function(){return C9.exports}();var x9=Object.defineProperty,w9=Object.getOwnPropertyDescriptor,Uy=(e,s,t,r)=>{for(var i=r>1?void 0:r?w9(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&&x9(s,t,i),i};let Yo=class extends j(V,Je){constructor(){super(...arguments),this.mdiChevronDown=Vs,this.mdiChevronUp=la,this.mdiContentCopy=Bb,this.mdiFile=dr,this.mdiFileDocumentMultipleOutline=Zl,this.mdiMagnify=Jl,this.mdiUpload=XP,this.mdiFolderPlus=$p,this.mdiRefresh=Hi,this.mdiCog=Us,this.mdiFolderUpload=xp,this.mdiFolder=Cp,this.mdiPlay=Ii,this.mdiPlaylistPlus=a0,this.mdiFire=Ri,this.mdiVideo3d=ec,this.mdiCloudDownload=Pn,this.mdiRenameBox=Ql,this.mdiFileDocumentEditOutline=da,this.mdiDelete=Ye,this.mdiCloseThick=Ce,this.mdiCheckboxBlankOutline=mp,this.mdiCheckboxMarked=fp,this.mdiDragVertical=zl,this.formatFilesize=it,this.formatPrintTime=r5,this.sortFiles=Ap,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={show:!1,count:1,item:{...this.contextMenu.item}},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:zt}get bigThumbnailTooltipColor(){if(zt.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){e.filter(t=>!t.isDirectory&&!t.metadataRequested&&!t.metadataPulled).forEach(t=>{this.$store.dispatch("files/requestMetadata",{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){this.dialogAddBatchToQueue.show=!0,this.dialogAddBatchToQueue.count=1,this.dialogAddBatchToQueue.item=e}async addBatchToQueueAction(){let e=[this.currentPath,this.dialogAddBatchToQueue.item.filename].join("/");e.startsWith("/")&&(e=e.slice(1));const s=[];for(let t=0;t{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)switch(e.outputType){case"filesize":return it(t);case"date":return this.formatDateTime(t);case"time":return this.formatPrintTime(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}else return"--"}};Uy([me("hideMetadataColums")],Yo.prototype,"hideMetadataColumsCanged",1);Yo=Uy([O({components:{StartPrintDialog:_c,Panel:Z,SettingsRow:U,PathNavigation:Bi,draggable:Ui}})],Yo);var S9=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(Z,{attrs:{title:e.$t("Files.GCodeFiles"),icon:e.mdiFileDocumentMultipleOutline,"card-class":"gcode-files-panel"}},[t(q,[t(S,[t(_,{staticClass:"col-12 d-flex align-center"},[t(re,{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(le),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(K,{staticClass:"minHeight36",attrs:{link:""}},[t(S,[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(K,{staticClass:"minHeight36",attrs:{link:""}},[t(S,[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(E),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(K,{key:r.value,staticClass:"minHeight36"},[t(S,[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(S,[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(Bi,{attrs:{path:e.currentPath,"base-directory-label":"/gcodes","on-segment-click":e.clickPathNavGoToDirectory}})],1),t(le),e.disk_usage!==null?[t(pe,{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(E,{staticClass:"mb-3"}),t(Ns,{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(ai,{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(ai,{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(pe,{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(at,{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(pe,{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(_c,{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(K,{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(K,{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(K,{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(K,{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(K,{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(K,{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(K,{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(K,{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(K,{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(K,{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(K,{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(K,{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(K,{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(Z,{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(re,{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(le),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(Z,{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(re,{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(le),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(Z,{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(re,{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(le),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(Z,{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(re,{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(le),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(Z,{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(le),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(Z,{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(le),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(Z,{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(le),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(oe,{attrs:{"max-width":"400"},model:{value:e.dialogAddBatchToQueue.show,callback:function(r){e.$set(e.dialogAddBatchToQueue,"show",r)},expression:"dialogAddBatchToQueue.show"}},[t(Z,{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:function(r){e.dialogAddBatchToQueue.show=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[t(re,{ref:"inputFieldAddToQueueCount",attrs:{label:e.$t("Files.Count"),required:"","hide-spin-buttons":"",type:"number",rules:e.countInputRules},on:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.addBatchToQueueAction.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.dialogAddBatchToQueue.count++}}},[t(v,[e._v(e._s(e.mdiChevronUp))])],1),t(g,{staticClass:"mb-n3",attrs:{disabled:e.dialogAddBatchToQueue.count<=1,icon:"",plain:"",small:""},on:{click:function(r){e.dialogAddBatchToQueue.count--}}},[t(v,[e._v(e._s(e.mdiChevronDown))])],1)],1)]},proxy:!0}]),model:{value:e.dialogAddBatchToQueue.count,callback:function(r){e.$set(e.dialogAddBatchToQueue,"count",r)},expression:"dialogAddBatchToQueue.count"}})],1),t(ne,[t(le),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.dialogAddBatchToQueue.show=!1}}},[e._v(e._s(e.$t("Files.Cancel")))]),t(g,{attrs:{color:"primary",text:""},on:{click:e.addBatchToQueueAction}},[e._v(e._s(e.$t("Files.AddToQueue")))])],1)],1)],1)],1)},P9=[];const g1={};var T9=N(Yo,S9,P9,!1,D9,"622b678e",null,null);function D9(e){for(let s in g1)this[s]=g1[s]}const By=function(){return T9.exports}();var M9=Object.defineProperty,E9=Object.getOwnPropertyDescriptor,O9=(e,s,t,r)=>{for(var i=r>1?void 0:r?E9(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&&M9(s,t,i),i};let jd=class extends j(V){constructor(){super(...arguments),this.mdiPlay=Ii,this.mdiPause=Tp,this.mdiTrayFull=ZP,this.contentTdWidth=100}get jobs(){return this.$store.getters["server/jobQueue/getJobs"]}get queueState(){var e;return(e=this.$store.state.server.jobQueue.queue_state)!=null?e:""}get countPerPage(){return this.$store.state.gui.view.jobqueue.countPerPage}set countPerPage(e){this.$store.dispatch("gui/saveSetting",{name:"view.jobqueue.countPerPage",value:e})}startJobqueue(){this.$store.dispatch("server/jobQueue/start")}pauseJobqueue(){this.$store.dispatch("server/jobQueue/pause")}mounted(){this.calcContentTdWidth()}calcContentTdWidth(){var e,s;this.contentTdWidth=((s=(e=this.$refs.jobqueuePanel)==null?void 0:e.$el)==null?void 0:s.clientWidth)-48-32}handleResize(){this.$nextTick(()=>{this.calcContentTdWidth()})}};jd=O9([O({components:{JobqueueEntry:gc,Panel:Z}})],jd);var L9=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(Z,{ref:"jobqueuePanel",attrs:{icon:e.mdiTrayFull,title:e.$t("JobQueue.JobQueue").toString(),"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(pe,{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(pe,{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}])},[t(Ns,{staticClass:"jobqueue-table",attrs:{items:e.jobs,"sort-by":"time_added","items-per-page":e.countPerPage,"footer-props":{itemsPerPageText:e.$t("JobQueue.Jobs"),itemsPerPageAllText:e.$t("JobQueue.AllJobs"),itemsPerPageOptions:[10,25,50,100,-1]},"mobile-breakpoint":"0"},on:{"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("JobQueue.Empty")))])]},proxy:!0},{key:"item",fn:function(r){var i=r.item;return[t(gc,{key:i.job_id,attrs:{item:i,"content-td-width":e.contentTdWidth}})]}}])}),t("resize-observer",{on:{notify:e.handleResize}})],1)],1)},k9=[];const v1={};var A9=N(jd,L9,k9,!1,F9,"5e3c80e6",null,null);function F9(e){for(let s in v1)this[s]=v1[s]}const Wy=function(){return A9.exports}();var R9=Object.defineProperty,I9=Object.getOwnPropertyDescriptor,H9=(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&&R9(s,t,i),i};let Nd=class extends j(V){constructor(){super(...arguments),this.mdiLockOutline=Yl}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}};Nd=H9([O({components:{JobqueuePanel:Wy,GcodefilesPanel:By}})],Nd);var j9=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.existGcodesRootDirectory?t(S,[t(_,{class:e.showJobQueue?"col-12 col-md-8 pt-0 pt-md-3 order-1 order-md-0":"col-12"},[t(By)],1),e.showJobQueue?t(_,{staticClass:"col-12 col-md-4 pb-0 pb-sm-3 order-0 order-md-1"},[t(Wy)],1):e._e()],1):t(S,[t(dt,{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)},N9=[];const _1={};var V9=N(Nd,j9,N9,!1,U9,null,null,null);function U9(e){for(let s in _1)this[s]=_1[s]}const B9=function(){return V9.exports}();var W9=Object.defineProperty,G9=Object.getOwnPropertyDescriptor,z9=(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&&W9(s,t,i),i};let Vd=class extends j(V){constructor(){super(...arguments),this.mdiDatabaseExportOutline=KS,this.mdiDelete=Ye,this.mdiDatabaseArrowDownOutline=Wb,this.mdiCog=Us,this.mdiPrinter=l0,this.mdiFileDocumentMultipleOutline=Zl,this.mdiTextBoxSearch=UP,this.mdiFile=dr,this.mdiMagnify=Jl,this.mdiUpdate=pa,this.mdiCloseThick=Ce,this.mdiNotebookPlus=wP,this.mdiNotebookEdit=xP,this.mdiNotebook=$P,this.mdiFileCancel=rP,this.formatFilesize=it,this.search="",this.sortBy="start_time",this.sortDesc=!0,this.options={},this.contextMenu={shown:!1,touchTimer:void 0,x:0,y:0,item:{}},this.detailsDialog={item:{},boolShow:!1},this.noteDialog={item:null,note:"",boolShow:!1,type:"create"},this.deleteDialog=!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/getFilterdJobList"])!=null?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"),value:"filename",align:"left",configable:!1,visible:!0},{text:"",value:"status",align:"left",configable:!1,visible:!0,filterable:!1},{text:this.$t("History.Filesize"),value:"size",align:"left",configable:!0,visible:!0,outputType:"filesize"},{text:this.$t("History.LastModified"),value:"modified",align:"left",configable:!0,visible:!0,outputType:"date"},{text:this.$t("History.StartTime"),value:"start_time",align:"left",configable:!0,visible:!0,outputType:"date"},{text:this.$t("History.EndTime"),value:"end_time",align:"left",configable:!0,visible:!0,outputType:"date"},{text:this.$t("History.EstimatedTime"),value:"estimated_time",align:"left",configable:!0,visible:!0,outputType:"time"},{text:this.$t("History.PrintTime"),value:"print_duration",align:"left",configable:!0,visible:!0,outputType:"time"},{text:this.$t("History.TotalTime"),value:"total_duration",align:"left",configable:!0,visible:!0,outputType:"time"},{text:this.$t("History.FilamentCalc"),value:"filament_total",align:"left",configable:!0,visible:!0,outputType:"length"},{text:this.$t("History.FilamentUsed"),value:"filament_used",align:"left",configable:!0,visible:!0,outputType:"length"},{text:this.$t("History.FirstLayerExtTemp"),value:"first_layer_extr_temp",align:"left",configable:!0,visible:!0,outputType:"temp"},{text:this.$t("History.FirstLayerBedTemp"),value:"first_layer_bed_temp",align:"left",configable:!0,visible:!0,outputType:"temp"},{text:this.$t("History.FirstLayerHeight"),value:"first_layer_height",align:"left",configable:!0,visible:!0,outputType:"length"},{text:this.$t("History.LayerHeight"),value:"layer_height",align:"left",configable:!0,visible:!0,outputType:"length"},{text:this.$t("History.ObjectHeight"),value:"object_height",align:"left",configable:!0,visible:!0,outputType:"length"},{text:this.$t("History.Slicer"),value:"slicer",align:"left",configable:!0,visible:!0}];return 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","slicer"].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 $t((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 currentLanguage(){var e,s;return(s=(e=this.$store.state.gui.general)==null?void 0:e.language)!=null?s:"en"}refreshHistory(){this.$store.dispatch("socket/addLoading",{name:"historyLoadAll"}),this.$socket.emit("server.history.list",{start:0,limit:50},{action:"server/history/getHistory"})}formatPrintTime(e){if(e){let s="";const t=Math.floor(e/86400);t&&(e%=3600*24,s+=t+"d");const r=Math.floor(e/3600);e%=3600,r&&(s+=" "+r+"h");const i=Math.floor(e/60);i&&(s+=" "+i+"m");const n=e%60;return n&&(s+=" "+n.toFixed(0)+"s"),s}return"--"}clickRow(e){this.detailsDialog.item=e,this.detailsDialog.boolShow=!0}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}))}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}getSmallThumbnail(e){if("metadata"in e&&"thumbnails"in e.metadata&&e.metadata.thumbnails.length){const s=e.metadata.thumbnails.find(r=>r.width>=ms&&r.width<=fs&&r.height>=ms&&r.height<=fs);let t="";if(e.filename.lastIndexOf("/")!==-1&&(t=e.filename.substr(0,e.filename.lastIndexOf("/")+1)),s&&"relative_path"in s)return"".concat(this.apiUrl,"/server/files/gcodes/").concat(encodeURI(t+s.relative_path),"?timestamp=").concat(e.metadata.modified)}return!1}getBigThumbnail(e){if("metadata"in e&&"thumbnails"in e.metadata&&e.metadata.thumbnails.length){const s=e.metadata.thumbnails.find(r=>r.width>=Os);let t="";if(e.filename.lastIndexOf("/")!==-1&&(t=e.filename.substr(0,e.filename.lastIndexOf("/")+1)),s&&"relative_path"in s)return"".concat(this.apiUrl,"/server/files/gcodes/").concat(encodeURI(t+s.relative_path),"?timestamp=").concat(e.metadata.modified)}return!1}getThumbnailWidth(e){if(this.getBigThumbnail(e)){const s=e.metadata.thumbnails.find(t=>t.width>=Os);if(s)return s.width}return 400}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){e.showInTable?this.$store.dispatch("gui/hideStatusInHistoryList",e.name):this.$store.dispatch("gui/showStatusInHistoryList",e.name)}startPrint(e){e.exists&&this.$socket.emit("printer.print.start",{filename:e.filename},{action:"switchToDashboard"})}deleteJob(){this.$socket.emit("server.history.delete_job",{uid:this.contextMenu.item.job_id},{action:"server/history/getDeletedJobs"}),this.deleteDialog=!1}deleteSelectedJobs(){this.selectedJobs.forEach(e=>{this.$socket.emit("server.history.delete_job",{uid:e.job_id},{action:"server/history/getDeletedJobs"})}),this.selectedJobs=[],this.deleteSelectedDialog=!1}exportHistory(){var l;const t=(parseFloat("1.23").toLocaleString(this.browserLocale).indexOf(",")>=0?",":".")===","?";":",",r=[],i=[];i.push("filename"),i.push("status"),this.tableFields.forEach(c=>{i.push(c.value)}),(l=this.headers.find(c=>c.value==="slicer"))!=null&&l.visible&&i.push("slicer"),r.push(i);let n=[...this.jobs];this.selectedJobs.length&&(n=[...this.selectedJobs]),n.length&&n.forEach(c=>{var h;const u=[];let d=c.filename;if(d.includes(t)&&(d='"'+d+'"'),u.push(d),u.push(c.status),this.tableFields.forEach(p=>{u.push(this.outputValue(p,c,!1,t))}),(h=this.headers.find(p=>p.value==="slicer"))!=null&&h.visible){let p="slicer"in c.metadata&&c.metadata.slicer?c.metadata.slicer:"--";"slicer_version"in c.metadata&&c.metadata.slicer_version&&(p+=" "+c.metadata.slicer_version),u.push(p)}r.push(u)});const a="data:text/csv;charset=utf-8,"+r.map(c=>c.map(u=>u.indexOf(t)===-1?u:'"'.concat(u,'"')).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()}getStatusIcon(e){return this.$store.getters["server/history/getPrintStatusIcon"](e)}getStatusColor(e){return this.$store.getters["server/history/getPrintStatusIconColor"](e)}outputValue(e,s,t=!0,r=null){var n,a;let i=e.value in s?s[e.value]:null;if(i===null&&(i=e.value in s.metadata?s.metadata[e.value]:null),t)if(i>0)switch(e.outputType){case"filesize":return it(i);case"date":return this.formatDateTime(i*1e3);case"time":return this.formatPrintTime(i);case"temp":return(i==null?void 0:i.toFixed())+" °C";case"length":return i>1e3?(i/1e3).toFixed(2)+" m":(i==null?void 0:i.toFixed(2))+" mm";default:return i}else return"--";else switch(e.outputType){case"date":return this.formatDateTime(i*1e3);case"time":return(n=i==null?void 0:i.toFixed())!=null?n:"";default:switch(typeof i){case"number":return(a=i==null?void 0:i.toLocaleString(this.browserLocale,{useGrouping:!1}))!=null?a:0;case"string":return r!==null&&i.includes(r)&&(i='"'+i+'"'),i;default:return i}}}createNote(e){this.noteDialog.item=e,this.noteDialog.note="",this.noteDialog.type="create",this.noteDialog.boolShow=!0}editNote(e){var s;this.noteDialog.item=e,this.noteDialog.note=(s=e.note)!=null?s:"",this.noteDialog.type="edit",this.noteDialog.boolShow=!0}saveNote(){var e;this.$store.dispatch("server/history/saveHistoryNote",{job_id:(e=this.noteDialog.item)==null?void 0:e.job_id,note:this.noteDialog.note}),this.noteDialog.boolShow=!1}};Vd=z9([O({components:{Panel:Z}})],Vd);var Z9=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(Z,{attrs:{icon:e.mdiFileDocumentMultipleOutline,title:e.$t("History.PrintHistory"),"card-class":"history-list-panel"}},[t(q,[t(S,[t(_,{staticClass:"col-4 d-flex align-center"},[t(re,{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(),e.allLoaded?e._e():t(pe,{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(pe,{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,[e.allPrintStatusArray.length?[e._l(e.allPrintStatusArray,function(r){return t(K,{key:r.key,staticClass:"minHeight36"},[t(we,{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(E)]:e._e(),e._l(e.configHeaders,function(r){return t(K,{key:r.key,staticClass:"minHeight36"},[t(we,{staticClass:"mt-0",attrs:{"hide-details":"",label:r.text},on:{change:function(i){return e.changeColumnVisible(r.value)}},model:{value:r.visible,callback:function(i){e.$set(r,"visible",i)},expression:"header.visible"}})],1)})],2)],1)],2)],1)],1),t(E,{staticClass:"mb-3"}),t(Ns,{staticClass:"history-jobs-table",attrs:{items:e.jobs,headers:e.filteredHeaders,options:e.options,"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":"job_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:"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),class:"file-list-cursor user-select-none "+(n.exists?"":"text--disabled"),on:{contextmenu:function(l){return e.showContextMenu(l,n)},click:function(l){return e.clickRow(n)}}},[t("td",{staticClass:"pr-0"},[t(ai,{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.exists?e.getSmallThumbnail(n)&&e.getBigThumbnail(n)?[t(pe,{attrs:{top:""},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.getSmallThumbnail(n),width:"32",height:"32"},slot:"image"},"img",u,!1),c)),t(at,{attrs:{slot:"preloader",indeterminate:"",color:"primary"},slot:"preloader"}),t(v,{attrs:{slot:"error"},slot:"error"},[e._v(e._s(e.mdiFile))])],1)]}}],null,!0)},[t("span",[t("img",{attrs:{src:e.getBigThumbnail(n),width:"250"}})])])]:e.getSmallThumbnail(n)?[t("vue-load-image",[t("img",{attrs:{slot:"image",src:e.getSmallThumbnail(n),width:"32",height:"32"},slot:"image"}),t(at,{attrs:{slot:"preloader",indeterminate:"",color:"primary"},slot:"preloader"}),t(v,{attrs:{slot:"error"},slot:"error"},[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",{staticClass:""},[e._v(e._s(n.filename))]),t("td",{staticClass:"text-right text-no-wrap"},["note"in n&&n.note?[t(pe,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(l){var c=l.on,u=l.attrs;return[t(v,e._g(e._b({staticClass:"mr-2",attrs:{small:""}},"v-icon",u,!1),c),[e._v(" "+e._s(e.mdiNotebook)+" ")])]}}],null,!0)},[t("span",{domProps:{innerHTML:e._s(n.note.replaceAll("\n","
"))}})])]:e._e(),t(pe,{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),[t(v,{attrs:{small:"",color:e.getStatusColor(n.status),disabled:!n.exists}},[e._v(" "+e._s(e.getStatusIcon(n.status))+" ")])],1)]}}],null,!0)},[t("span",[e._v(" "+e._s(e.$te("History.StatusValues.".concat(n.status),"en")?e.$t("History.StatusValues.".concat(n.status)):n.status.replace(/_/g," "))+" ")])])],2),e._l(e.tableFields,function(l){return t("td",{key:l.value,class:l.outputType!=="date"?"text-no-wrap":""},[e._v(" "+e._s(e.outputValue(l,n))+" ")])}),e.headers.find(function(l){return l.value==="slicer"}).visible?t("td",{staticClass:""},[e._v(" "+e._s("slicer"in n.metadata&&n.metadata.slicer?n.metadata.slicer:"--")+" "),"slicer_version"in n.metadata&&n.metadata.slicer_version?t("small",[t("br"),e._v(" "+e._s(n.metadata.slicer_version)+" ")]):e._e()]):e._e()],2)]}}]),model:{value:e.selectedJobs,callback:function(r){e.selectedJobs=r},expression:"selectedJobs"}},[t("template",{slot:"no-data"},[t("div",{staticClass:"text-center"},[e._v(e._s(e.$t("History.Empty")))])])],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,[t(K,{on:{click:function(r){return e.clickRow(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiTextBoxSearch))]),e._v(" "+e._s(e.$t("History.Details"))+" ")],1),"note"in e.contextMenu.item&&e.contextMenu.item.note?t(K,{on:{click:function(r){return e.editNote(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiNotebookEdit))]),e._v(" "+e._s(e.$t("History.EditNote"))+" ")],1):t(K,{on:{click:function(r){return e.createNote(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiNotebookPlus))]),e._v(" "+e._s(e.$t("History.AddNote"))+" ")],1),e.contextMenu.item.exists?t(K,{attrs:{disabled:e.printerIsPrinting||!e.klipperReadyForGui},on:{click:function(r){return e.startPrint(e.contextMenu.item)}}},[t(v,{staticClass:"mr-1"},[e._v(e._s(e.mdiPrinter))]),e._v(" "+e._s(e.$t("History.Reprint"))+" ")],1):e._e(),t(K,{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("History.Delete"))+" ")],1)],1)],1),t(oe,{attrs:{"max-width":600,persistent:""},on:{keydown:function(r){if(!r.type.indexOf("key")&&e._k(r.keyCode,"esc",27,r.key,["Esc","Escape"]))return null;e.detailsDialog.boolShow=!1}},model:{value:e.detailsDialog.boolShow,callback:function(r){e.$set(e.detailsDialog,"boolShow",r)},expression:"detailsDialog.boolShow"}},[t(Z,{attrs:{title:e.$t("History.JobDetails"),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:function(r){e.detailsDialog.boolShow=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,{staticClass:"px-0"},[t("overlay-scrollbars",{staticClass:"px-6",staticStyle:{height:"350px"}},[t(S,[t(_,[e._v(e._s(e.$t("History.Filename")))]),t(_,{staticClass:"text-right"},[e._v(e._s(e.detailsDialog.item.filename))])],1),"metadata"in e.detailsDialog.item&&"size"in e.detailsDialog.item.metadata?[t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.Filesize")))]),t(_,{staticClass:"text-right"},[e._v(e._s(e.formatFilesize(e.detailsDialog.item.metadata.size)))])],1)]:e._e(),"metadata"in e.detailsDialog.item&&"modified"in e.detailsDialog.item.metadata?[t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.LastModified")))]),t(_,{staticClass:"text-right"},[e._v(" "+e._s(e.formatDateTime(e.detailsDialog.item.metadata.modified*1e3))+" ")])],1)]:e._e(),t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.Status")))]),t(_,{staticClass:"text-right"},[e._v(" "+e._s(e.$te("History.StatusValues.".concat(e.detailsDialog.item.status),"en")?e.$t("History.StatusValues.".concat(e.detailsDialog.item.status)):e.detailsDialog.item.status)+" ")])],1),t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.StartTime")))]),t(_,{staticClass:"text-right"},[e._v(e._s(e.formatDateTime(e.detailsDialog.item.start_time*1e3)))])],1),"end_time"in e.detailsDialog.item&&e.detailsDialog.item.end_time>0?[t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.EndTime")))]),t(_,{staticClass:"text-right"},[e._v(" "+e._s(e.formatDateTime(e.detailsDialog.item.end_time*1e3))+" ")])],1)]:e._e(),"metadata"in e.detailsDialog.item&&"estimated_time"in e.detailsDialog.item.metadata?[t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.EstimatedTime")))]),t(_,{staticClass:"text-right"},[e._v(" "+e._s(e.formatPrintTime(e.detailsDialog.item.metadata.estimated_time))+" ")])],1)]:e._e(),e.detailsDialog.item.print_duration>0?[t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.PrintDuration")))]),t(_,{staticClass:"text-right"},[e._v(" "+e._s(e.formatPrintTime(e.detailsDialog.item.print_duration))+" ")])],1)]:e._e(),e.detailsDialog.item.total_duration>0?[t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.TotalDuration")))]),t(_,{staticClass:"text-right"},[e._v(" "+e._s(e.formatPrintTime(e.detailsDialog.item.total_duration))+" ")])],1)]:e._e(),"metadata"in e.detailsDialog.item&&"filament_total"in e.detailsDialog.item.metadata?[t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.EstimatedFilamentWeight")))]),t(_,{staticClass:"text-right"},[e._v(" "+e._s(Math.round(e.detailsDialog.item.metadata.filament_weight_total*100)/100)+" g ")])],1)]:e._e(),"metadata"in e.detailsDialog.item&&"filament_total"in e.detailsDialog.item.metadata?[t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.EstimatedFilament")))]),t(_,{staticClass:"text-right"},[e._v(" "+e._s(Math.round(e.detailsDialog.item.metadata.filament_total))+" mm ")])],1)]:e._e(),e.detailsDialog.item.filament_used>0?[t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.FilamentUsed")))]),t(_,{staticClass:"text-right"},[e._v(e._s(Math.round(e.detailsDialog.item.filament_used))+" mm")])],1)]:e._e(),"metadata"in e.detailsDialog.item&&"first_layer_extr_temp"in e.detailsDialog.item.metadata?[t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.FirstLayerExtTemp")))]),t(_,{staticClass:"text-right"},[e._v(" "+e._s(e.detailsDialog.item.metadata.first_layer_extr_temp)+" °C ")])],1)]:e._e(),"metadata"in e.detailsDialog.item&&"first_layer_bed_temp"in e.detailsDialog.item.metadata?[t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.FirstLayerBedTemp")))]),t(_,{staticClass:"text-right"},[e._v(" "+e._s(e.detailsDialog.item.metadata.first_layer_bed_temp)+" °C ")])],1)]:e._e(),"metadata"in e.detailsDialog.item&&"first_layer_height"in e.detailsDialog.item.metadata?[t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.FirstLayerHeight")))]),t(_,{staticClass:"text-right"},[e._v(" "+e._s(e.detailsDialog.item.metadata.first_layer_height)+" mm ")])],1)]:e._e(),"metadata"in e.detailsDialog.item&&"layer_height"in e.detailsDialog.item.metadata?[t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.LayerHeight")))]),t(_,{staticClass:"text-right"},[e._v(e._s(e.detailsDialog.item.metadata.layer_height)+" mm")])],1)]:e._e(),"metadata"in e.detailsDialog.item&&"object_height"in e.detailsDialog.item.metadata?[t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.ObjectHeight")))]),t(_,{staticClass:"text-right"},[e._v(e._s(e.detailsDialog.item.metadata.object_height)+" mm")])],1)]:e._e(),"metadata"in e.detailsDialog.item&&"slicer"in e.detailsDialog.item.metadata?[t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.Slicer")))]),t(_,{staticClass:"text-right"},[e._v(e._s(e.detailsDialog.item.metadata.slicer))])],1)]:e._e(),"metadata"in e.detailsDialog.item&&"slicer_version"in e.detailsDialog.item.metadata?[t(E,{staticClass:"my-3"}),t(S,[t(_,[e._v(e._s(e.$t("History.SlicerVersion")))]),t(_,{staticClass:"text-right"},[e._v(e._s(e.detailsDialog.item.metadata.slicer_version))])],1)]:e._e()],2)],1)],1)],1),t(oe,{attrs:{"max-width":"400"},model:{value:e.deleteDialog,callback:function(r){e.deleteDialog=r},expression:"deleteDialog"}},[t(Z,{attrs:{title:e.$t("History.Delete"),"card-class":"history-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("History.DeleteSingleJobQuestion"))+" ")])]),t(ne,[t(le),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.deleteDialog=!1}}},[e._v(" "+e._s(e.$t("History.Cancel"))+" ")]),t(g,{attrs:{color:"error",text:""},on:{click:e.deleteJob}},[e._v(" "+e._s(e.$t("History.Delete"))+" ")])],1)],1)],1),t(oe,{attrs:{"max-width":"400"},model:{value:e.deleteSelectedDialog,callback:function(r){e.deleteSelectedDialog=r},expression:"deleteSelectedDialog"}},[t(Z,{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:function(r){e.deleteSelectedDialog=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[e.selectedJobs.length===1?t("p",{staticClass:"mb-0"},[e._v(" "+e._s(e.$t("History.DeleteSingleJobQuestion"))+" ")]):t("p",{staticClass:"mb-0"},[e._v(" "+e._s(e.$t("History.DeleteSelectedQuestion",{count:e.selectedJobs.length}))+" ")])]),t(ne,[t(le),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.deleteSelectedDialog=!1}}},[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),t(oe,{attrs:{"max-width":600,persistent:""},on:{keydown:function(r){if(!r.type.indexOf("key")&&e._k(r.keyCode,"esc",27,r.key,["Esc","Escape"]))return null;e.noteDialog.boolShow=!1}},model:{value:e.noteDialog.boolShow,callback:function(r){e.$set(e.noteDialog,"boolShow",r)},expression:"noteDialog.boolShow"}},[t(Z,{attrs:{title:e.noteDialog.type==="create"?e.$t("History.CreateNote"):e.$t("History.EditNote"),icon:e.noteDialog.type==="create"?e.mdiNotebookPlus:e.mdiNotebookEdit,"card-class":"history-note-dialog","margin-bottom":!1},scopedSlots:e._u([{key:"buttons",fn:function(){return[t(g,{attrs:{icon:"",tile:""},on:{click:function(r){e.noteDialog.boolShow=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,{staticClass:"pb-0"},[t(S,[t(_,[t(Ai,{attrs:{outlined:"","hide-details":"",label:e.$t("History.Note")},model:{value:e.noteDialog.note,callback:function(r){e.$set(e.noteDialog,"note",r)},expression:"noteDialog.note"}})],1)],1)],1),t(ne,[t(le),t(g,{attrs:{color:"",text:""},on:{click:function(r){e.noteDialog.boolShow=!1}}},[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)],1)},q9=[];const b1={};var X9=N(Vd,Z9,q9,!1,Y9,"bd1884ac",null,null);function Y9(e){for(let s in b1)this[s]=b1[s]}const Gy=function(){return X9.exports}();var J9=Object.defineProperty,K9=Object.getOwnPropertyDescriptor,zy=(e,s,t,r)=>{for(var i=r>1?void 0:r?K9(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&&J9(s,t,i),i};let Jo=class extends j(V,kt){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())}};zy([me("filamentUsageArray")],Jo.prototype,"filamentUsageArrayChanged",1);Jo=zy([O({})],Jo);var Q9=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"}}})},e7=[];const y1={};var t7=N(Jo,Q9,e7,!1,s7,null,null,null);function s7(e){for(let s in y1)this[s]=y1[s]}const Zy=function(){return t7.exports}();var r7=Object.defineProperty,i7=Object.getOwnPropertyDescriptor,qy=(e,s,t,r)=>{for(var i=r>1?void 0:r?i7(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&&r7(s,t,i),i};let Ko=class extends j(V,kt){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())}};qy([me("printtimeAvgArray")],Ko.prototype,"printtimeAvgArrayChanged",1);Ko=qy([O({components:{}})],Ko);var n7=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"}}})},a7=[];const C1={};var o7=N(Ko,n7,a7,!1,l7,null,null,null);function l7(e){for(let s in C1)this[s]=C1[s]}const Xy=function(){return o7.exports}();var c7=Object.defineProperty,u7=Object.getOwnPropertyDescriptor,Yy=(e,s,t,r)=>{for(var i=r>1?void 0:r?u7(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&&c7(s,t,i),i};let Qo=class extends j(V,kt){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(){var e;return(e=this.$store.state.gui.view.history.selectedJobs)!=null?e:[]}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())}};Yy([me("printStatusArray")],Qo.prototype,"printStatusArrayChanged",1);Qo=Yy([O({components:{}})],Qo);var d7=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"}}})},h7=[];const $1={};var p7=N(Qo,d7,h7,!1,m7,null,null,null);function m7(e){for(let s in $1)this[s]=$1[s]}const Jy=function(){return p7.exports}();var f7=Object.defineProperty,g7=Object.getOwnPropertyDescriptor,v7=(e,s,t,r)=>{for(var i=r>1?void 0:r?g7(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&&f7(s,t,i),i};let Ud=class extends j(V){constructor(){super(...arguments),this.mdiChartAreaspline=jS,this.mdiDatabaseArrowDownOutline=Wb}get selectedJobs(){var e;return(e=this.$store.state.gui.view.history.selectedJobs)!=null?e:[]}get existsSelectedJobs(){return this.selectedJobs.length>0}get totalPrintTime(){return"total_print_time"in this.$store.state.server.history.job_totals?this.$store.state.server.history.job_totals.total_print_time:0}get selectedPrintTime(){let e=0;return this.selectedJobs.forEach(s=>{e+=s.print_duration}),e}get longestPrintTime(){return"longest_print"in this.$store.state.server.history.job_totals?this.$store.state.server.history.job_totals.longest_print: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(){return"total_filament_used"in this.$store.state.server.history.job_totals?this.$store.state.server.history.job_totals.total_filament_used:0}get selectedFilamentUsed(){let e=0;return this.selectedJobs.forEach(s=>{e+=s.filament_used}),e}get totalJobsCount(){return"total_jobs"in this.$store.state.server.history.job_totals?this.$store.state.server.history.job_totals.total_jobs: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}refreshHistory(){this.$store.dispatch("socket/addLoading",{name:"historyLoadAll"}),this.$socket.emit("server.history.list",{start:0,limit:50},{action:"server/history/getHistory"})}formatPrintTime(e){if(e){let s="";const t=Math.floor(e/3600);e%=3600,t&&(s+=" "+t+"h");const r=Math.floor(e/60);r&&(s+=" "+r+"m");const i=e%60;return i&&(s+=" "+i.toFixed(0)+"s"),s}return"--"}};Ud=v7([O({components:{Panel:Z,HistoryFilamentUsage:Zy,HistoryPrinttimeAvg:Xy,HistoryAllPrintStatusChart:Jy}})],Ud);var _7=Object.defineProperty,b7=Object.getOwnPropertyDescriptor,y7=(e,s,t,r)=>{for(var i=r>1?void 0:r?b7(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&&_7(s,t,i),i};let Bd=class extends j(V){get selectedJobs(){var e;return(e=this.$store.state.gui.view.history.selectedJobs)!=null?e:[]}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}};Bd=y7([O({components:{}})],Bd);var C7=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)])},$7=[];const x1={};var x7=N(Bd,C7,$7,!1,w7,null,null,null);function w7(e){for(let s in x1)this[s]=x1[s]}const S7=function(){return x7.exports}();var P7=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Z,{attrs:{icon:e.mdiChartAreaspline,title:e.$t("History.Statistics"),"card-class":"history-statistics-panel",collapsible:!0}},[t(q,{staticClass:"pa-0"},[t(S,{attrs:{align:"center"}},[t(_,{staticClass:"col-12 col-sm-6 col-md-4"},[t(dp,[t("tbody",[e.existsSelectedJobs?[t("tr",[t("td",[e._v(e._s(e.$t("History.SelectedPrinttime")))]),t("td",{staticClass:"text-right"},[e._v(e._s(e.formatPrintTime(e.selectedPrintTime)))])]),t("tr",[t("td",[e._v(e._s(e.$t("History.LongestPrinttime")))]),t("td",{staticClass:"text-right"},[e._v(e._s(e.formatPrintTime(e.selectedLongestPrintTime)))])]),t("tr",[t("td",[e._v(e._s(e.$t("History.AvgPrinttime")))]),t("td",{staticClass:"text-right"},[e._v(e._s(e.formatPrintTime(e.selectedAvgPrintTime)))])]),t("tr",[t("td",[e._v(e._s(e.$t("History.SelectedFilamentUsed")))]),t("td",{staticClass:"text-right"},[e._v(e._s(Math.round(e.selectedFilamentUsed/100)/10)+" m")])]),t("tr",[t("td",[e._v(e._s(e.$t("History.SelectedJobs")))]),t("td",{staticClass:"text-right"},[e._v(e._s(e.selectedJobs.length))])])]:[t("tr",[t("td",[e._v(e._s(e.$t("History.TotalPrinttime")))]),t("td",{staticClass:"text-right"},[e._v(e._s(e.formatPrintTime(e.totalPrintTime)))])]),t("tr",[t("td",[e._v(e._s(e.$t("History.LongestPrinttime")))]),t("td",{staticClass:"text-right"},[e._v(e._s(e.formatPrintTime(e.longestPrintTime)))])]),t("tr",[t("td",[e._v(e._s(e.$t("History.AvgPrinttime")))]),t("td",{staticClass:"text-right"},[e._v(e._s(e.formatPrintTime(e.avgPrintTime)))])]),t("tr",[t("td",[e._v(e._s(e.$t("History.TotalFilamentUsed")))]),t("td",{staticClass:"text-right"},[e._v(e._s(Math.round(e.totalFilamentUsed/100)/10)+" m")])]),t("tr",[t("td",[e._v(e._s(e.$t("History.TotalJobs")))]),t("td",{staticClass:"text-right"},[e._v(e._s(e.totalJobsCount))])])]],2)])],1),t(_,{staticClass:"col-12 col-sm-6 col-md-4"},[e.togglePrintStatus==="chart"?t(Jy):t(S7),t("div",{staticClass:"text-center mb-3"},[t(ho,{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(pe,{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(Zy):e.toggleChart==="printtime_avg"?t(Xy):e._e(),t("div",{staticClass:"text-center mt-3"},[t(ho,{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)},T7=[];const w1={};var D7=N(Ud,P7,T7,!1,M7,null,null,null);function M7(e){for(let s in w1)this[s]=w1[s]}const Ky=function(){return D7.exports}();var E7=Object.defineProperty,O7=Object.getOwnPropertyDescriptor,L7=(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&&E7(s,t,i),i};let Wd=class extends j(V){};Wd=L7([O({components:{HistoryStatisticsPanel:Ky,HistoryListPanel:Gy}})],Wd);var k7=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(S,[t(_,[t(Ky)],1)],1),t(S,{staticClass:"mt-0"},[t(_,[t(Gy)],1)],1)],1)},A7=[];const S1={};var F7=N(Wd,k7,A7,!1,R7,null,null,null);function R7(e){for(let s in S1)this[s]=S1[s]}const I7=function(){return F7.exports}();var H7=Object.defineProperty,j7=Object.getOwnPropertyDescriptor,N7=(e,s,t,r)=>{for(var i=r>1?void 0:r?j7(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&&H7(s,t,i),i};let Gd=class extends j(V){constructor(){super(...arguments),this.formatFilesize=it,this.sortFiles=Ap,this.mdiFileVideo=lP,this.mdiCloseThick=Ce,this.mdiFileDocumentMultipleOutline=Zl,this.mdiMagnify=Jl,this.mdiFolderPlus=$p,this.mdiRefresh=Hi,this.mdiFolderUpload=xp,this.mdiFolder=Cp,this.mdiFolderZipOutline=dP,this.mdiFile=dr,this.mdiCloudDownload=Pn,this.mdiRenameBox=Ql,this.mdiDelete=Ye,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}};Gd=N7([O({components:{Panel:Z,PathNavigation:Bi}})],Gd);var V7=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(Z,{attrs:{title:e.$t("Timelapse.TimelapseFiles"),icon:e.mdiFileDocumentMultipleOutline,"card-class":"timelapse-files-panel"}},[t(q,[t(S,[t(_,{staticClass:"col-12 d-flex align-center"},[t(re,{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(le),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(S,[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(Bi,{attrs:{path:e.currentPathForNavigation,"base-directory-label":"/".concat(e.rootDirectory),"on-segment-click":e.clickPathNavGoToDirectory}})],1),t(le),e.disk_usage!==null?[t(pe,{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(E,{staticClass:"mb-3"}),t(Ns,{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(ai,{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(pe,{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(at,{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(K,{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(K,{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(K,{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(K,{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(K,{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(Z,{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(re,{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(le),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(Z,{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(re,{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(le),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(Z,{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(re,{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(le),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(Z,{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(le),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(Z,{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(S,[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(S,[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(Z,{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(le),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(Z,{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(le),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)},U7=[];const P1={};var B7=N(Gd,V7,U7,!1,W7,"45e836df",null,null);function W7(e){for(let s in P1)this[s]=P1[s]}const Qy=function(){return B7.exports}();var G7=Object.defineProperty,z7=Object.getOwnPropertyDescriptor,Z7=(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&&G7(s,t,i),i};let zd=class extends j(V,cr){constructor(){super(...arguments),this.mdiInformation=At,this.mdiFile=dr,this.mdiCloseThick=Ce,this.mdiTextBoxSearchOutline=g0,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),e60?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))}};zd=Z7([O({components:{Panel:Z,SettingsRow:U}})],zd);var q7=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(De,{staticClass:"mb-3"},[t(oa,{attrs:{flat:"",dense:""}},[t(ki,[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(S,{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(S,[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(at,{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(U,{attrs:{title:e.$t("Timelapse.Frames").toString()}},[e._v(" "+e._s(e.framesCount)+" ")]),t(E,{staticClass:"my-2"}),t(U,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Timelapse.Enabled").toString(),"dynamic-slot-width":!0}},[t(Te,{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(E,{staticClass:"my-2"}):e._e(),t(U,{attrs:{title:e.$t("Timelapse.Autorender").toString(),"dynamic-slot-width":!0}},[t(Te,{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(E,{staticClass:"mt-2 mb-4"}),t(S,[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(Z,{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(S,[t(_,{staticClass:"col-4"},[t(Le,{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(re,{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(re,{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(re,{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(re,{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(re,{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(re,{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(re,{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(le),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)},X7=[];const T1={};var Y7=N(zd,q7,X7,!1,J7,null,null,null);function J7(e){for(let s in T1)this[s]=T1[s]}const e2=function(){return Y7.exports}();var K7=Object.defineProperty,Q7=Object.getOwnPropertyDescriptor,e8=(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 Zd=class extends j(V){};Zd=e8([O({components:{TimelapseStatusPanel:e2,TimelapseFilesPanel:Qy}})],Zd);var t8=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(S,[t(_,{staticClass:"col-12 col-md-8 pt-0 pt-md-3",attrs:{order:e.$vuetify.breakpoint.mdAndUp?"":"2"}},[t(Qy)],1),t(_,{staticClass:"col-12 col-md-4",attrs:{order:e.$vuetify.breakpoint.mdAndUp?"":"1"}},[t(e2)],1)],1)},s8=[];const D1={};var r8=N(Zd,t8,s8,!1,i8,null,null,null);function i8(e){for(let s in D1)this[s]=D1[s]}const n8=function(){return r8.exports}();var qd={exports:{}};const a8="2.0.0",t2=256,o8=Number.MAX_SAFE_INTEGER||9007199254740991,l8=16,c8=t2-6,u8=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Mc={MAX_LENGTH:t2,MAX_SAFE_COMPONENT_LENGTH:l8,MAX_SAFE_BUILD_LENGTH:c8,MAX_SAFE_INTEGER:o8,RELEASE_TYPES:u8,SEMVER_SPEC_VERSION:a8,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const d8=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Ec=d8;(function(e,s){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Mc,n=Ec;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-]",h=[["\\s",1],["\\d",i],[d,r]],p=f=>{for(const[b,C]of h)f=f.split("".concat(b,"*")).join("".concat(b,"{0,").concat(C,"}")).split("".concat(b,"+")).join("".concat(b,"{1,").concat(C,"}"));return f},m=(f,b,C)=>{const w=p(b),M=u++;n(f,M,b),c[f]=M,l[M]=b,a[M]=new RegExp(b,C?"g":void 0),o[M]=new RegExp(w,C?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(d,"*")),m("MAINVERSION","(".concat(l[c.NUMERICIDENTIFIER],")\\.")+"(".concat(l[c.NUMERICIDENTIFIER],")\\.")+"(".concat(l[c.NUMERICIDENTIFIER],")")),m("MAINVERSIONLOOSE","(".concat(l[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[c.NUMERICIDENTIFIERLOOSE],")")),m("PRERELEASEIDENTIFIER","(?:".concat(l[c.NUMERICIDENTIFIER],"|").concat(l[c.NONNUMERICIDENTIFIER],")")),m("PRERELEASEIDENTIFIERLOOSE","(?:".concat(l[c.NUMERICIDENTIFIERLOOSE],"|").concat(l[c.NONNUMERICIDENTIFIER],")")),m("PRERELEASE","(?:-(".concat(l[c.PRERELEASEIDENTIFIER],"(?:\\.").concat(l[c.PRERELEASEIDENTIFIER],")*))")),m("PRERELEASELOOSE","(?:-?(".concat(l[c.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(l[c.PRERELEASEIDENTIFIERLOOSE],")*))")),m("BUILDIDENTIFIER","".concat(d,"+")),m("BUILD","(?:\\+(".concat(l[c.BUILDIDENTIFIER],"(?:\\.").concat(l[c.BUILDIDENTIFIER],")*))")),m("FULLPLAIN","v?".concat(l[c.MAINVERSION]).concat(l[c.PRERELEASE],"?").concat(l[c.BUILD],"?")),m("FULL","^".concat(l[c.FULLPLAIN],"$")),m("LOOSEPLAIN","[v=\\s]*".concat(l[c.MAINVERSIONLOOSE]).concat(l[c.PRERELEASELOOSE],"?").concat(l[c.BUILD],"?")),m("LOOSE","^".concat(l[c.LOOSEPLAIN],"$")),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE","".concat(l[c.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),m("XRANGEIDENTIFIER","".concat(l[c.NUMERICIDENTIFIER],"|x|X|\\*")),m("XRANGEPLAIN","[v=\\s]*(".concat(l[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[c.XRANGEIDENTIFIER],")")+"(?:".concat(l[c.PRERELEASE],")?").concat(l[c.BUILD],"?")+")?)?"),m("XRANGEPLAINLOOSE","[v=\\s]*(".concat(l[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[c.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(l[c.PRERELEASELOOSE],")?").concat(l[c.BUILD],"?")+")?)?"),m("XRANGE","^".concat(l[c.GTLT],"\\s*").concat(l[c.XRANGEPLAIN],"$")),m("XRANGELOOSE","^".concat(l[c.GTLT],"\\s*").concat(l[c.XRANGEPLAINLOOSE],"$")),m("COERCE","(^|[^\\d])(\\d{1,".concat(t,"})")+"(?:\\.(\\d{1,".concat(t,"}))?")+"(?:\\.(\\d{1,".concat(t,"}))?")+"(?:$|[^\\d])"),m("COERCERTL",l[c.COERCE],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM","(\\s*)".concat(l[c.LONETILDE],"\\s+"),!0),s.tildeTrimReplace="$1~",m("TILDE","^".concat(l[c.LONETILDE]).concat(l[c.XRANGEPLAIN],"$")),m("TILDELOOSE","^".concat(l[c.LONETILDE]).concat(l[c.XRANGEPLAINLOOSE],"$")),m("LONECARET","(?:\\^)"),m("CARETTRIM","(\\s*)".concat(l[c.LONECARET],"\\s+"),!0),s.caretTrimReplace="$1^",m("CARET","^".concat(l[c.LONECARET]).concat(l[c.XRANGEPLAIN],"$")),m("CARETLOOSE","^".concat(l[c.LONECARET]).concat(l[c.XRANGEPLAINLOOSE],"$")),m("COMPARATORLOOSE","^".concat(l[c.GTLT],"\\s*(").concat(l[c.LOOSEPLAIN],")$|^$")),m("COMPARATOR","^".concat(l[c.GTLT],"\\s*(").concat(l[c.FULLPLAIN],")$|^$")),m("COMPARATORTRIM","(\\s*)".concat(l[c.GTLT],"\\s*(").concat(l[c.LOOSEPLAIN],"|").concat(l[c.XRANGEPLAIN],")"),!0),s.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE","^\\s*(".concat(l[c.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(l[c.XRANGEPLAIN],")")+"\\s*$"),m("HYPHENRANGELOOSE","^\\s*(".concat(l[c.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(l[c.XRANGEPLAINLOOSE],")")+"\\s*$"),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(qd,qd.exports);var ya=qd.exports;const h8=Object.freeze({loose:!0}),p8=Object.freeze({}),m8=e=>e?typeof e!="object"?h8:e:p8;var om=m8;const M1=/^[0-9]+$/,s2=(e,s)=>{const t=M1.test(e),r=M1.test(s);return t&&r&&(e=+e,s=+s),e===s?0:t&&!r?-1:r&&!t?1:es2(s,e);var r2={compareIdentifiers:s2,rcompareIdentifiers:f8};const Ia=Ec,{MAX_LENGTH:E1,MAX_SAFE_INTEGER:Ha}=Mc,{safeRe:O1,t:L1}=ya,g8=om,{compareIdentifiers:Xr}=r2;let v8=class ps{constructor(s,t){if(t=g8(t),s instanceof ps){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>E1)throw new TypeError("version is longer than ".concat(E1," characters"));Ia("SemVer",s,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=s.trim().match(t.loose?O1[L1.LOOSE]:O1[L1.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>Ha||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ha||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ha||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=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]),Xr(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 Pt=v8;const k1=Pt,_8=(e,s,t=!1)=>{if(e instanceof k1)return e;try{return new k1(e,s)}catch(r){if(!t)return null;throw r}};var Wi=_8;const b8=Wi,y8=(e,s)=>{const t=b8(e,s);return t?t.version:null};var C8=y8;const $8=Wi,x8=(e,s)=>{const t=$8(e.trim().replace(/^[=v]+/,""),s);return t?t.version:null};var w8=x8;const A1=Pt,S8=(e,s,t,r,i)=>{typeof t=="string"&&(i=r,r=t,t=void 0);try{return new A1(e instanceof A1?e.version:e,t).inc(s,r,i).version}catch{return null}};var P8=S8;const F1=Wi,T8=(e,s)=>{const t=F1(e,null,!0),r=F1(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 D8=T8;const M8=Pt,E8=(e,s)=>new M8(e,s).major;var O8=E8;const L8=Pt,k8=(e,s)=>new L8(e,s).minor;var A8=k8;const F8=Pt,R8=(e,s)=>new F8(e,s).patch;var I8=R8;const H8=Wi,j8=(e,s)=>{const t=H8(e,s);return t&&t.prerelease.length?t.prerelease:null};var N8=j8;const R1=Pt,V8=(e,s,t)=>new R1(e,t).compare(new R1(s,t));var ls=V8;const U8=ls,B8=(e,s,t)=>U8(s,e,t);var W8=B8;const G8=ls,z8=(e,s)=>G8(e,s,!0);var Z8=z8;const I1=Pt,q8=(e,s,t)=>{const r=new I1(e,t),i=new I1(s,t);return r.compare(i)||r.compareBuild(i)};var lm=q8;const X8=lm,Y8=(e,s)=>e.sort((t,r)=>X8(t,r,s));var J8=Y8;const K8=lm,Q8=(e,s)=>e.sort((t,r)=>K8(r,t,s));var eR=Q8;const tR=ls,sR=(e,s,t)=>tR(e,s,t)>0;var Oc=sR;const rR=ls,iR=(e,s,t)=>rR(e,s,t)<0;var cm=iR;const nR=ls,aR=(e,s,t)=>nR(e,s,t)===0;var i2=aR;const oR=ls,lR=(e,s,t)=>oR(e,s,t)!==0;var n2=lR;const cR=ls,uR=(e,s,t)=>cR(e,s,t)>=0;var um=uR;const dR=ls,hR=(e,s,t)=>dR(e,s,t)<=0;var dm=hR;const pR=i2,mR=n2,fR=Oc,gR=um,vR=cm,_R=dm,bR=(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 pR(e,t,r);case"!=":return mR(e,t,r);case">":return fR(e,t,r);case">=":return gR(e,t,r);case"<":return vR(e,t,r);case"<=":return _R(e,t,r);default:throw new TypeError("Invalid operator: ".concat(s))}};var a2=bR;const yR=Pt,CR=Wi,{safeRe:ja,t:Na}=ya,$R=(e,s)=>{if(e instanceof yR)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(ja[Na.COERCE]);else{let r;for(;(r=ja[Na.COERCERTL].exec(e))&&(!t||t.index+t[0].length!==e.length);)(!t||r.index+r[0].length!==t.index+t[0].length)&&(t=r),ja[Na.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;ja[Na.COERCERTL].lastIndex=-1}return t===null?null:CR("".concat(t[2],".").concat(t[3]||"0",".").concat(t[4]||"0"),s)};var xR=$R,wu,H1;function wR(){return H1||(H1=1,wu=function(e){e.prototype[Symbol.iterator]=function*(){for(let s=this.head;s;s=s.next)yield s.value}}),wu}var SR=Ee;Ee.Node=Hr;Ee.create=Ee;function Ee(e){var s=this;if(s instanceof Ee||(s=new Ee),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;t1)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};Ee.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};Ee.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};Ee.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};Ee.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 Ee;if(sthis.length&&(s=this.length);for(var r=0,i=this.head;i!==null&&rthis.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};Ee.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&&r1;class ER{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[$r]=s.max||1/0;const t=s.length||Su;if(this[Yr]=typeof t!="function"?Su:t,this[yn]=s.stale||!1,s.maxAge&&typeof s.maxAge!="number")throw new TypeError("maxAge must be a number");this[Tr]=s.maxAge||0,this[Ts]=s.dispose,this[j1]=s.noDisposeOnSet||!1,this[o2]=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[$r]=s||1/0,en(this)}get max(){return this[$r]}set allowStale(s){this[yn]=!!s}get allowStale(){return this[yn]}set maxAge(s){if(typeof s!="number")throw new TypeError("maxAge must be a non-negative number");this[Tr]=s,en(this)}get maxAge(){return this[Tr]}set lengthCalculator(s){typeof s!="function"&&(s=Su),s!==this[Yr]&&(this[Yr]=s,this[Ms]=0,this[st].forEach(t=>{t.length=this[Yr](t.value,t.key),this[Ms]+=t.length})),en(this)}get lengthCalculator(){return this[Yr]}get length(){return this[Ms]}get itemCount(){return this[st].length}rforEach(s,t){t=t||this;for(let r=this[st].tail;r!==null;){const i=r.prev;N1(this,s,r,t),r=i}}forEach(s,t){t=t||this;for(let r=this[st].head;r!==null;){const i=r.next;N1(this,s,r,t),r=i}}keys(){return this[st].toArray().map(s=>s.key)}values(){return this[st].toArray().map(s=>s.value)}reset(){this[Ts]&&this[st]&&this[st].length&&this[st].forEach(s=>this[Ts](s.key,s.value)),this[es]=new Map,this[st]=new MR,this[Ms]=0}dump(){return this[st].map(s=>el(this,s)?!1:{k:s.key,v:s.value,e:s.now+(s.maxAge||0)}).toArray().filter(s=>s)}dumpLru(){return this[st]}set(s,t,r){if(r=r||this[Tr],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const i=r?Date.now():0,n=this[Yr](t,s);if(this[es].has(s)){if(n>this[$r])return ni(this,this[es].get(s)),!1;const l=this[es].get(s).value;return this[Ts]&&(this[j1]||this[Ts](s,l.value)),l.now=i,l.maxAge=r,l.value=t,this[Ms]+=n-l.length,l.length=n,this.get(s),en(this),!0}const a=new OR(s,t,n,i,r);return a.length>this[$r]?(this[Ts]&&this[Ts](s,t),!1):(this[Ms]+=a.length,this[st].unshift(a),this[es].set(s,this[st].head),en(this),!0)}has(s){if(!this[es].has(s))return!1;const t=this[es].get(s).value;return!el(this,t)}get(s){return Pu(this,s,!0)}peek(s){return Pu(this,s,!1)}pop(){const s=this[st].tail;return s?(ni(this,s),s.value):null}del(s){ni(this,this[es].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[es].forEach((s,t)=>Pu(this,t,!1))}}const Pu=(e,s,t)=>{const r=e[es].get(s);if(r){const i=r.value;if(el(e,i)){if(ni(e,r),!e[yn])return}else t&&(e[o2]&&(r.value.now=Date.now()),e[st].unshiftNode(r));return i.value}},el=(e,s)=>{if(!s||!s.maxAge&&!e[Tr])return!1;const t=Date.now()-s.now;return s.maxAge?t>s.maxAge:e[Tr]&&t>e[Tr]},en=e=>{if(e[Ms]>e[$r])for(let s=e[st].tail;e[Ms]>e[$r]&&s!==null;){const t=s.prev;ni(e,s),s=t}},ni=(e,s)=>{if(s){const t=s.value;e[Ts]&&e[Ts](t.key,t.value),e[Ms]-=t.length,e[es].delete(t.key),e[st].removeNode(s)}};class OR{constructor(s,t,r,i,n){this.key=s,this.value=t,this.length=r,this.now=i,this.maxAge=n||0}}const N1=(e,s,t,r)=>{let i=t.value;el(e,i)&&(ni(e,t),e[yn]||(i=void 0)),i&&s.call(r,i.value,i.key,e)};var LR=ER,Tu,V1;function cs(){if(V1)return Tu;V1=1;class e{constructor(z,X){if(X=r(X),z instanceof e)return z.loose===!!X.loose&&z.includePrerelease===!!X.includePrerelease?z:new e(z.raw,X);if(z instanceof i)return this.raw=z.value,this.set=[[z]],this.format(),this;if(this.options=X,this.loose=!!X.loose,this.includePrerelease=!!X.includePrerelease,this.raw=z.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(Q=>this.parseRange(Q.trim())).filter(Q=>Q.length),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const Q=this.set[0];if(this.set=this.set.filter(te=>!m(te[0])),this.set.length===0)this.set=[Q];else if(this.set.length>1){for(const te of this.set)if(te.length===1&&f(te[0])){this.set=[te];break}}}this.format()}format(){return this.range=this.set.map(z=>z.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(z){const Q=((this.options.includePrerelease&&h)|(this.options.loose&&p))+":"+z,te=t.get(Q);if(te)return te;const se=this.options.loose,F=se?o[l.HYPHENRANGELOOSE]:o[l.HYPHENRANGE];z=z.replace(F,B(this.options.includePrerelease)),n("hyphen replace",z),z=z.replace(o[l.COMPARATORTRIM],c),n("comparator trim",z),z=z.replace(o[l.TILDETRIM],u),n("tilde trim",z),z=z.replace(o[l.CARETTRIM],d),n("caret trim",z);let G=z.split(" ").map(Y=>C(Y,this.options)).join(" ").split(/\s+/).map(Y=>W(Y,this.options));se&&(G=G.filter(Y=>(n("loose invalid filter",Y,this.options),!!Y.match(o[l.COMPARATORLOOSE])))),n("range list",G);const x=new Map,P=G.map(Y=>new i(Y,this.options));for(const Y of P){if(m(Y))return[Y];x.set(Y.value,Y)}x.size>1&&x.has("")&&x.delete("");const L=[...x.values()];return t.set(Q,L),L}intersects(z,X){if(!(z instanceof e))throw new TypeError("a Range is required");return this.set.some(Q=>b(Q,X)&&z.set.some(te=>b(te,X)&&Q.every(se=>te.every(F=>se.intersects(F,X)))))}test(z){if(!z)return!1;if(typeof z=="string")try{z=new a(z,this.options)}catch{return!1}for(let X=0;XD.value==="<0.0.0-0",f=D=>D.value==="",b=(D,z)=>{let X=!0;const Q=D.slice();let te=Q.pop();for(;X&&Q.length;)X=Q.every(se=>te.intersects(se,z)),te=Q.pop();return X},C=(D,z)=>(n("comp",D,z),D=A(D,z),n("caret",D),D=M(D,z),n("tildes",D),D=T(D,z),n("xrange",D),D=R(D,z),n("stars",D),D),w=D=>!D||D.toLowerCase()==="x"||D==="*",M=(D,z)=>D.trim().split(/\s+/).map(X=>H(X,z)).join(" "),H=(D,z)=>{const X=z.loose?o[l.TILDELOOSE]:o[l.TILDE];return D.replace(X,(Q,te,se,F,G)=>{n("tilde",D,Q,te,se,F,G);let x;return w(te)?x="":w(se)?x=">=".concat(te,".0.0 <").concat(+te+1,".0.0-0"):w(F)?x=">=".concat(te,".").concat(se,".0 <").concat(te,".").concat(+se+1,".0-0"):G?(n("replaceTilde pr",G),x=">=".concat(te,".").concat(se,".").concat(F,"-").concat(G," <").concat(te,".").concat(+se+1,".0-0")):x=">=".concat(te,".").concat(se,".").concat(F," <").concat(te,".").concat(+se+1,".0-0"),n("tilde return",x),x})},A=(D,z)=>D.trim().split(/\s+/).map(X=>$(X,z)).join(" "),$=(D,z)=>{n("caret",D,z);const X=z.loose?o[l.CARETLOOSE]:o[l.CARET],Q=z.includePrerelease?"-0":"";return D.replace(X,(te,se,F,G,x)=>{n("caret",D,te,se,F,G,x);let P;return w(se)?P="":w(F)?P=">=".concat(se,".0.0").concat(Q," <").concat(+se+1,".0.0-0"):w(G)?se==="0"?P=">=".concat(se,".").concat(F,".0").concat(Q," <").concat(se,".").concat(+F+1,".0-0"):P=">=".concat(se,".").concat(F,".0").concat(Q," <").concat(+se+1,".0.0-0"):x?(n("replaceCaret pr",x),se==="0"?F==="0"?P=">=".concat(se,".").concat(F,".").concat(G,"-").concat(x," <").concat(se,".").concat(F,".").concat(+G+1,"-0"):P=">=".concat(se,".").concat(F,".").concat(G,"-").concat(x," <").concat(se,".").concat(+F+1,".0-0"):P=">=".concat(se,".").concat(F,".").concat(G,"-").concat(x," <").concat(+se+1,".0.0-0")):(n("no pr"),se==="0"?F==="0"?P=">=".concat(se,".").concat(F,".").concat(G).concat(Q," <").concat(se,".").concat(F,".").concat(+G+1,"-0"):P=">=".concat(se,".").concat(F,".").concat(G).concat(Q," <").concat(se,".").concat(+F+1,".0-0"):P=">=".concat(se,".").concat(F,".").concat(G," <").concat(+se+1,".0.0-0")),n("caret return",P),P})},T=(D,z)=>(n("replaceXRanges",D,z),D.split(/\s+/).map(X=>I(X,z)).join(" ")),I=(D,z)=>{D=D.trim();const X=z.loose?o[l.XRANGELOOSE]:o[l.XRANGE];return D.replace(X,(Q,te,se,F,G,x)=>{n("xRange",D,Q,te,se,F,G,x);const P=w(se),L=P||w(F),Y=L||w(G),ae=Y;return te==="="&&ae&&(te=""),x=z.includePrerelease?"-0":"",P?te===">"||te==="<"?Q="<0.0.0-0":Q="*":te&&ae?(L&&(F=0),G=0,te===">"?(te=">=",L?(se=+se+1,F=0,G=0):(F=+F+1,G=0)):te==="<="&&(te="<",L?se=+se+1:F=+F+1),te==="<"&&(x="-0"),Q="".concat(te+se,".").concat(F,".").concat(G).concat(x)):L?Q=">=".concat(se,".0.0").concat(x," <").concat(+se+1,".0.0-0"):Y&&(Q=">=".concat(se,".").concat(F,".0").concat(x," <").concat(se,".").concat(+F+1,".0-0")),n("xRange return",Q),Q})},R=(D,z)=>(n("replaceStars",D,z),D.trim().replace(o[l.STAR],"")),W=(D,z)=>(n("replaceGTE0",D,z),D.trim().replace(o[z.includePrerelease?l.GTE0PRE:l.GTE0],"")),B=D=>(z,X,Q,te,se,F,G,x,P,L,Y,ae,de)=>(w(Q)?X="":w(te)?X=">=".concat(Q,".0.0").concat(D?"-0":""):w(se)?X=">=".concat(Q,".").concat(te,".0").concat(D?"-0":""):F?X=">=".concat(X):X=">=".concat(X).concat(D?"-0":""),w(P)?x="":w(L)?x="<".concat(+P+1,".0.0-0"):w(Y)?x="<".concat(P,".").concat(+L+1,".0-0"):ae?x="<=".concat(P,".").concat(L,".").concat(Y,"-").concat(ae):D?x="<".concat(P,".").concat(L,".").concat(+Y+1,"-0"):x="<=".concat(x),"".concat(X," ").concat(x).trim()),ee=(D,z,X)=>{for(let Q=0;Q0){const te=D[Q].semver;if(te.major===z.major&&te.minor===z.minor&&te.patch===z.patch)return!0}return!1}return!0};return Tu}var Du,U1;function Lc(){if(U1)return Du;U1=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],h=u.match(d);if(!h)throw new TypeError("Invalid comparator: ".concat(u));this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new o(h[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(">")))}}Du=s;const t=om,{safeRe:r,t:i}=ya,n=a2,a=Ec,o=Pt,l=cs();return Du}const kR=cs(),AR=(e,s,t)=>{try{s=new kR(s,t)}catch{return!1}return s.test(e)};var kc=AR;const FR=cs(),RR=(e,s)=>new FR(e,s).set.map(t=>t.map(r=>r.value).join(" ").trim().split(" "));var IR=RR;const HR=Pt,jR=cs(),NR=(e,s,t)=>{let r=null,i=null,n=null;try{n=new jR(s,t)}catch{return null}return e.forEach(a=>{n.test(a)&&(!r||i.compare(a)===-1)&&(r=a,i=new HR(r,t))}),r};var VR=NR;const UR=Pt,BR=cs(),WR=(e,s,t)=>{let r=null,i=null,n=null;try{n=new BR(s,t)}catch{return null}return e.forEach(a=>{n.test(a)&&(!r||i.compare(a)===1)&&(r=a,i=new UR(r,t))}),r};var GR=WR;const Mu=Pt,zR=cs(),B1=Oc,ZR=(e,s)=>{e=new zR(e,s);let t=new Mu("0.0.0");if(e.test(t)||(t=new Mu("0.0.0-0"),e.test(t)))return t;t=null;for(let r=0;r{const o=new Mu(a.semver.version);switch(a.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!n||B1(o,n))&&(n=o);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: ".concat(a.operator))}}),n&&(!t||B1(t,n))&&(t=n)}return t&&e.test(t)?t:null};var qR=ZR;const XR=cs(),YR=(e,s)=>{try{return new XR(e,s).range||"*"}catch{return null}};var JR=YR;const KR=Pt,l2=Lc(),{ANY:QR}=l2,eI=cs(),tI=kc,W1=Oc,G1=cm,sI=dm,rI=um,iI=(e,s,t,r)=>{e=new KR(e,r),s=new eI(s,r);let i,n,a,o,l;switch(t){case">":i=W1,n=sI,a=G1,o=">",l=">=";break;case"<":i=G1,n=rI,a=W1,o="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(tI(e,s,r))return!1;for(let c=0;c{p.semver===QR&&(p=new l2(">=0.0.0")),d=d||p,h=h||p,i(p.semver,d.semver,r)?d=p:a(p.semver,h.semver,r)&&(h=p)}),d.operator===o||d.operator===l||(!h.operator||h.operator===o)&&n(e,h.semver))return!1;if(h.operator===l&&a(e,h.semver))return!1}return!0};var hm=iI;const nI=hm,aI=(e,s,t)=>nI(e,s,">",t);var oI=aI;const lI=hm,cI=(e,s,t)=>lI(e,s,"<",t);var uI=cI;const z1=cs(),dI=(e,s,t)=>(e=new z1(e,t),s=new z1(s,t),e.intersects(s,t));var hI=dI;const pI=kc,mI=ls;var fI=(e,s,t)=>{const r=[];let i=null,n=null;const a=e.sort((u,d)=>mI(u,d,t));for(const u of a)pI(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{if(e===s)return!0;e=new Z1(e,t),s=new Z1(s,t);let r=!1;e:for(const i of e.set){for(const n of s.set){const a=_I(i,n,t);if(r=r||a!==null,a)continue e}if(r)return!1}return!0},vI=[new pm(">=0.0.0-0")],q1=[new pm(">=0.0.0")],_I=(e,s,t)=>{if(e===s)return!0;if(e.length===1&&e[0].semver===Eu){if(s.length===1&&s[0].semver===Eu)return!0;t.includePrerelease?e=vI:e=q1}if(s.length===1&&s[0].semver===Eu){if(t.includePrerelease)return!0;s=q1}const r=new Set;let i,n;for(const p of e)p.operator===">"||p.operator===">="?i=X1(i,p,t):p.operator==="<"||p.operator==="<="?n=Y1(n,p,t):r.add(p.semver);if(r.size>1)return null;let a;if(i&&n){if(a=mm(i.semver,n.semver,t),a>0)return null;if(a===0&&(i.operator!==">="||n.operator!=="<="))return null}for(const p of r){if(i&&!tn(p,String(i),t)||n&&!tn(p,String(n),t))return null;for(const m of s)if(!tn(p,String(m),t))return!1;return!0}let o,l,c,u,d=n&&!t.includePrerelease&&n.semver.prerelease.length?n.semver:!1,h=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 p of s){if(u=u||p.operator===">"||p.operator===">=",c=c||p.operator==="<"||p.operator==="<=",i){if(h&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===h.major&&p.semver.minor===h.minor&&p.semver.patch===h.patch&&(h=!1),p.operator===">"||p.operator===">="){if(o=X1(i,p,t),o===p&&o!==i)return!1}else if(i.operator===">="&&!tn(i.semver,String(p),t))return!1}if(n){if(d&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===d.major&&p.semver.minor===d.minor&&p.semver.patch===d.patch&&(d=!1),p.operator==="<"||p.operator==="<="){if(l=Y1(n,p,t),l===p&&l!==n)return!1}else if(n.operator==="<="&&!tn(n.semver,String(p),t))return!1}if(!p.operator&&(n||i)&&a!==0)return!1}return!(i&&c&&!n&&a!==0||n&&u&&!i&&a!==0||h||d)},X1=(e,s,t)=>{if(!e)return s;const r=mm(e.semver,s.semver,t);return r>0?e:r<0||s.operator===">"&&e.operator===">="?s:e},Y1=(e,s,t)=>{if(!e)return s;const r=mm(e.semver,s.semver,t);return r<0?e:r>0||s.operator==="<"&&e.operator==="<="?s:e};var bI=gI;const Ou=ya,J1=Mc,yI=Pt,K1=r2,CI=Wi,$I=C8,xI=w8,wI=P8,SI=D8,PI=O8,TI=A8,DI=I8,MI=N8,EI=ls,OI=W8,LI=Z8,kI=lm,AI=J8,FI=eR,RI=Oc,II=cm,HI=i2,jI=n2,NI=um,VI=dm,UI=a2,BI=xR,WI=Lc(),GI=cs(),zI=kc,ZI=IR,qI=VR,XI=GR,YI=qR,JI=JR,KI=hm,QI=oI,eH=uI,tH=hI,sH=fI,rH=bI;var iH={parse:CI,valid:$I,clean:xI,inc:wI,diff:SI,major:PI,minor:TI,patch:DI,prerelease:MI,compare:EI,rcompare:OI,compareLoose:LI,compareBuild:kI,sort:AI,rsort:FI,gt:RI,lt:II,eq:HI,neq:jI,gte:NI,lte:VI,cmp:UI,coerce:BI,Comparator:WI,Range:GI,satisfies:zI,toComparators:ZI,maxSatisfying:qI,minSatisfying:XI,minVersion:YI,validRange:JI,outside:KI,gtr:QI,ltr:eH,intersects:tH,simplifyRange:sH,subset:rH,SemVer:yI,re:Ou.re,src:Ou.src,tokens:Ou.t,SEMVER_SPEC_VERSION:J1.SEMVER_SPEC_VERSION,RELEASE_TYPES:J1.RELEASE_TYPES,compareIdentifiers:K1.compareIdentifiers,rcompareIdentifiers:K1.rcompareIdentifiers};const Ve=Fi(iH);var nH=Object.defineProperty,aH=Object.getOwnPropertyDescriptor,fm=(e,s,t,r)=>{for(var i=r>1?void 0:r?aH(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 Vn=class extends j(V){constructor(){super(...arguments),this.mdiDotsHorizontal=tP,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)}};fm([k({required:!0})],Vn.prototype,"commit",2);fm([k({required:!0})],Vn.prototype,"repo",2);Vn=fm([O({components:{Panel:Z}})],Vn);var oH=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("li",{staticClass:"commit px-3 py-2"},[t(S,[t(_,[t("h4",{staticClass:"subtitle-2 text--white mb-0"},[e._v(" "+e._s(e.title)+" "),t(ns,{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-4"},[t(ns,{attrs:{outlined:"",label:"",small:"",href:e.commitHref,target:"_blank"}},[e._v(" "+e._s(e.commitShortSha)+" ")])],1)],1)],1)},lH=[];const Q1={};var cH=N(Vn,oH,lH,!1,uH,"84e7ff68",null,null);function uH(e){for(let s in Q1)this[s]=Q1[s]}const c2=function(){return cH.exports}();var dH=Object.defineProperty,hH=Object.getOwnPropertyDescriptor,gm=(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&&dH(s,t,i),i};let Un=class extends j(V){get groupedCommitsDate(){return new Date(this.groupedCommits.date).toLocaleDateString(this.browserLocale,{year:"numeric",month:"short",day:"numeric"})}};gm([k({required:!0})],Un.prototype,"groupedCommits",2);gm([k({required:!0})],Un.prototype,"repo",2);Un=gm([O({components:{Panel:Z,GitCommitsListDayCommit:c2}})],Un);var pH=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(xb,{staticClass:"git-commit-list-day",attrs:{small:""}},[t(S,{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(c2,{key:r.sha,attrs:{commit:r,repo:e.repo}})}),1)])],1)],1)],1)},mH=[];const ev={};var fH=N(Un,pH,mH,!1,gH,"0afc8caa",null,null);function gH(e){for(let s in ev)this[s]=ev[s]}const Ca=function(){return fH.exports}();var vH=Object.defineProperty,_H=Object.getOwnPropertyDescriptor,vm=(e,s,t,r)=>{for(var i=r>1?void 0:r?_H(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&&vH(s,t,i),i};let Bn=class extends j(V){constructor(){super(...arguments),this.mdiUpdate=pa,this.mdiCloseThick=Ce}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")}closeDialog(){this.$emit("close-dialog")}};vm([k({required:!0})],Bn.prototype,"boolShowDialog",2);vm([k({required:!0})],Bn.prototype,"repo",2);Bn=vm([O({components:{GitCommitsListDay:Ca,Panel:Z}})],Bn);var bH=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(Z,{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",{staticStyle:{"max-height":"400px"},attrs:{options:{overflowBehavior:{x:"hidden"}}}},[t(S,[t(_,[t(Qx,{staticClass:"groupedCommits",attrs:{"align-top":"",dense:""}},[e._l(e.groupedCommits,function(r){return t(Ca,{key:r.date.getTime(),attrs:{repo:e.repo,"grouped-commits":r}})}),e.displayFullHistoryWaring?t(xb,{staticClass:"git-commit-list-day git-commit-list-warning",attrs:{small:""}},[t(S,{staticClass:"pt-0"},[t(_,{staticClass:"pr-12"},[t(dt,{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)],1)],1)},yH=[];const tv={};var CH=N(Bn,bH,yH,!1,$H,"6e2f7877",null,null);function $H(e){for(let s in tv)this[s]=tv[s]}const _m=function(){return CH.exports}();var xH=Object.defineProperty,wH=Object.getOwnPropertyDescriptor,bm=(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&&xH(s,t,i),i};let Wn=class extends j(V){constructor(){super(...arguments),this.mdiCloseThick=Ce,this.mdiAlertCircle=Rb,this.mdiEye=sP,this.mdiOpenInNew=n0}get name(){var e,s;return(s=(e=this.repo)==null?void 0:e.name)!=null?s:"UNKNOWN"}get formatName(){return kr(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")}};bm([k({required:!0})],Wn.prototype,"repo",2);bm([k({required:!1,default:!1})],Wn.prototype,"boolTitle",2);Wn=bm([O({components:{GitCommitsListDay:Ca,Panel:Z}})],Wn);var SH=function(){var e,s=this,t=s.$createElement,r=s._self._c||t;return r(dt,{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)},PH=[];const sv={};var TH=N(Wn,SH,PH,!1,DH,null,null,null);function DH(e){for(let s in sv)this[s]=sv[s]}const Ac=function(){return TH.exports}();var MH=Object.defineProperty,EH=Object.getOwnPropertyDescriptor,ym=(e,s,t,r)=>{for(var i=r>1?void 0:r?EH(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 Gn=class extends j(V){constructor(){super(...arguments),this.mdiCloseThick=Ce,this.mdiProgressQuestion=u0,this.checkboxUpdateQuestion=!1}doUpdate(){this.$emit("do-update")}openCommitHistory(){this.$emit("open-commit-history")}closeDialog(){this.$emit("close-dialog")}};ym([k({required:!0})],Gn.prototype,"boolShowDialog",2);ym([k({required:!0})],Gn.prototype,"repo",2);Gn=ym([O({components:{GitCommitsListDay:Ca,Panel:Z,UpdateHintAlert:Ac}})],Gn);var OH=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(Z,{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(S,[t(_,[t(Ac,{attrs:{repo:e.repo},on:{"open-commit-history":e.openCommitHistory}}),t("div",[t(we,{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(E),t(ne,[t(le),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)},LH=[];const rv={};var kH=N(Gn,OH,LH,!1,AH,null,null,null);function AH(e){for(let s in rv)this[s]=rv[s]}const u2=function(){return kH.exports}();var FH=Object.defineProperty,RH=Object.getOwnPropertyDescriptor,d2=(e,s,t,r)=>{for(var i=r>1?void 0:r?RH(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 tl=class extends j(V){constructor(){super(...arguments),this.mdiInformation=At,this.mdiMenuDown=hr,this.mdiReload=kP,this.mdiCloseCircle=fo,this.mdiUpdate=pa,this.mdiInformationOutline=pP,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 Ve.valid(s)?s:null}get remoteVersion(){var t;const s=(t=this.repo.remote_version)!=null?t:"?";return Ve.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&&Ve.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.localVersion&&this.remoteVersion&&Ve.gt(this.remoteVersion,this.localVersion))}get btnIcon(){return this.isDetached||!this.isValid||this.isCorrupt||this.isDirty?fo:this.commitsBehind.length||this.localVersion&&this.remoteVersion&&Ve.gt(this.remoteVersion,this.localVersion)?Mp:this.localVersion===null||this.remoteVersion===null?Kb:Nb}get btnColor(){return this.isCorrupt||this.isDetached||this.isDirty||!this.isValid?"orange":this.commitsBehind.length||this.localVersion&&this.remoteVersion&&Ve.gt(this.remoteVersion,this.localVersion)?"primary":"green"}get btnText(){return this.isCorrupt?this.$t("Machine.UpdatePanel.Corrupt"):this.isDetached?this.$t("Machine.UpdatePanel.Detached"):this.isDirty?this.$t("Machine.UpdatePanel.Dirty"):this.isValid?this.commitsBehind.length||this.localVersion&&this.remoteVersion&&Ve.gt(this.remoteVersion,this.localVersion)?this.$t("Machine.UpdatePanel.Update"):this.localVersion===null||this.remoteVersion===null?this.$t("Machine.UpdatePanel.Unknown"):this.$t("Machine.UpdatePanel.UpToDate"):this.$t("Machine.UpdatePanel.Invalid")}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:Ve.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}};d2([k({required:!0})],tl.prototype,"repo",2);tl=d2([O({components:{GitCommitsList:_m,UpdateHint:u2}})],tl);var IH=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(S,{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(ns,{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(ns,{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(ns,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(K,{on:{click:function(r){return e.doRecovery(!1)}}},[t(Rs,{staticClass:"mr-0 pt-1"},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiReload))])],1),t(Gt,[t(rt,[e._v(e._s(e.$t("Machine.UpdatePanel.SoftRecovery")))])],1)],1),t(K,{attrs:{disabled:!e.existsRecoveryUrl},on:{click:function(r){return e.doRecovery(!0)}}},[t(Rs,{staticClass:"mr-0 pt-1"},[t(v,{attrs:{small:""}},[e._v(e._s(e.mdiReload))])],1),t(Gt,[t(rt,[e._v(e._s(e.$t("Machine.UpdatePanel.HardRecovery")))])],1)],1)],1)],1)]],2)],1),e.warnings.length?t(S,{staticClass:"mt-0"},[t(_,{staticClass:"px-6 pt-0"},e._l(e.warnings,function(r,i){return t(dt,{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(S,{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(dt,{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(_m,{attrs:{"bool-show-dialog":e.boolShowCommitList,repo:e.repo},on:{"close-dialog":e.closeCommitList}}):e._e(),t(u2,{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)},HH=[];const iv={};var jH=N(tl,IH,HH,!1,NH,null,null,null);function NH(e){for(let s in iv)this[s]=iv[s]}const VH=function(){return jH.exports}();var UH=Object.defineProperty,BH=Object.getOwnPropertyDescriptor,WH=(e,s,t,r)=>{for(var i=r>1?void 0:r?BH(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&&UH(s,t,i),i};let Xd=class extends j(V){constructor(){super(...arguments),this.mdiInformation=At,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?Mp:Nb}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}};Xd=WH([O],Xd);var GH=Object.defineProperty,zH=Object.getOwnPropertyDescriptor,Cm=(e,s,t,r)=>{for(var i=r>1?void 0:r?zH(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&&GH(s,t,i),i};let zn=class extends j(V){constructor(){super(...arguments),this.mdiCloseThick=Ce,this.mdiPackageVariantClosed=SP}closeDialog(){this.$emit("close-dialog")}};Cm([k({required:!0})],zn.prototype,"boolShowDialog",2);Cm([k({required:!0})],zn.prototype,"packagesList",2);zn=Cm([O({components:{Panel:Z}})],zn);var ZH=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(Z,{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(S,[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(le),t(g,{attrs:{text:"",color:"primary"},on:{click:e.closeDialog}},[e._v(e._s(e.$t("Machine.UpdatePanel.Close")))])],1)],1)],1)},qH=[];const nv={};var XH=N(zn,ZH,qH,!1,YH,"61fb1dc8",null,null);function YH(e){for(let s in nv)this[s]=nv[s]}const JH=function(){return XH.exports}();var KH=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(S,{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(ns,{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(JH,{attrs:{"bool-show-dialog":e.boolShowPackageList,"packages-list":e.package_list},on:{"close-dialog":e.closePackagesList}})],1)},QH=[];const av={};var ej=N(Xd,KH,QH,!1,tj,null,null,null);function tj(e){for(let s in av)this[s]=av[s]}const sj=function(){return ej.exports}();var rj=Object.defineProperty,ij=Object.getOwnPropertyDescriptor,h2=(e,s,t,r)=>{for(var i=r>1?void 0:r?ij(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&&rj(s,t,i),i};let sl=class extends j(V){constructor(){super(...arguments),this.mdiCloseThick=Ce,this.mdiProgressQuestion=u0,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"&&Ve.valid((r=e.data)==null?void 0:r.remote_version)&&Ve.valid((i=e.data)==null?void 0:i.version)&&Ve.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")}};h2([k({required:!0})],sl.prototype,"boolShowDialog",2);sl=h2([O({components:{GitCommitsListDay:Ca,Panel:Z,UpdateHintAlert:Ac}})],sl);var nj=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(Z,{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(S,[t(_,[e._l(e.filteredModules,function(r){return t(Ac,{key:r.name,attrs:{repo:r.data,"bool-title":!0},on:{"open-commit-history":function(i){return e.openCommitHistory(r.data)}}})}),t("div",[t(we,{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(E),t(ne,[t(le),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(_m,{attrs:{"bool-show-dialog":e.boolShowCommitHistory,repo:e.showCommitsRepo},on:{"close-dialog":function(r){e.boolShowCommitHistory=!1}}})],1)},aj=[];const ov={};var oj=N(sl,nj,aj,!1,lj,null,null,null);function lj(e){for(let s in ov)this[s]=ov[s]}const p2=function(){return oj.exports}();var cj=Object.defineProperty,uj=Object.getOwnPropertyDescriptor,dj=(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&&cj(s,t,i),i};let Yd=class extends j(V){constructor(){super(...arguments),this.mdiProgressUpload=Mp,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",{})}};Yd=dj([O({components:{UpdateHintAll:p2}})],Yd);var hj=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(S,{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(p2,{attrs:{"bool-show-dialog":e.boolShowDialog},on:{"close-dialog":function(r){e.boolShowDialog=!1},"update-all":e.updateAll}})],1)},pj=[];const lv={};var mj=N(Yd,hj,pj,!1,fj,null,null,null);function fj(e){for(let s in lv)this[s]=lv[s]}const gj=function(){return mj.exports}();var vj=Object.defineProperty,_j=Object.getOwnPropertyDescriptor,bj=(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 Jd=class extends j(V){constructor(){super(...arguments),this.mdiRefresh=Hi,this.mdiInformation=At,this.mdiCloseThick=Ce,this.mdiUpdate=pa}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"&&Ve.valid((i=s.data)==null?void 0:i.remote_version)&&Ve.valid((n=s.data)==null?void 0:n.version)&&Ve.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"})}};Jd=bj([O({components:{Panel:Z,UpdatePanelEntry:VH,UpdatePanelEntrySystem:sj,UpdatePanelEntryAll:gj}})],Jd);var yj=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.enableUpdateManager?t(Z,{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(pe,{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(E,{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(E,{staticClass:"my-0"}):e._e(),t("update-panel-entry-system")]:e._e(),e.showUpdateAll?[t(E,{staticClass:"mb-0 mt-2 border-top-2"}),t("update-panel-entry-all")]:e._e()]:[t(S,{staticClass:"mt-0 mb-0"},[t(_,{staticClass:"px-6"},[t(dt,{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)},Cj=[];const cv={};var $j=N(Jd,yj,Cj,!1,xj,"8e04f428",null,null);function xj(e){for(let s in cv)this[s]=cv[s]}const m2=function(){return $j.exports}();var wj=Object.defineProperty,Sj=Object.getOwnPropertyDescriptor,f2=(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&&wj(s,t,i),i};let rl=class extends j(V){constructor(){super(...arguments),this.mdiDownload=Gb}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)}};f2([k({type:String,required:!0})],rl.prototype,"name",2);rl=f2([O({components:{Panel:Z}})],rl);var Pj=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()},Tj=[];const uv={};var Dj=N(rl,Pj,Tj,!1,Mj,null,null,null);function Mj(e){for(let s in uv)this[s]=uv[s]}const $m=function(){return Dj.exports}();var Ej=Object.defineProperty,Oj=Object.getOwnPropertyDescriptor,Lj=(e,s,t,r)=>{for(var i=r>1?void 0:r?Oj(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&&Ej(s,t,i),i};let Kd=class extends j(V){constructor(){super(...arguments),this.mdiFileDocumentEdit=iP,this.mdiFileSyncOutline=Xb,this.genericLogfiles=SS,this.showRolloverDialog=!1}};Kd=Lj([O({components:{LogfilesPanelGenericLog:$m,Panel:Z}})],Kd);var kj=Object.defineProperty,Aj=Object.getOwnPropertyDescriptor,xm=(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&&kj(s,t,i),i};let Zn=class extends j(V){constructor(){super(...arguments),this.mdiCloseThick=Ce,this.mdiFileSyncOutline=Xb,this.rolloverLogfiles=PS,this.capitalize=kr,this.selectedRolloverLogs=[]}get loadingRolloverLogs(){return this.loadings.filter(e=>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")}};xm([k({type:Boolean,default:!1})],Zn.prototype,"show",2);xm([me("loadingRolloverLogs")],Zn.prototype,"loadingRolloverLogsChanged",1);Zn=xm([O({components:{LogfilesPanelGenericLog:$m,Panel:Z}})],Zn);var Fj=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(Z,{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(S,[t(_,[t("p",{staticClass:"mb-0"},[e._v(e._s(e.$t("Machine.LogfilesPanel.RolloverDescription")))])])],1),t(S,{staticClass:"mt-0"},[t(_,e._l(e.rolloverLogfiles,function(r){return t(we,{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(le),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)},Rj=[];const dv={};var Ij=N(Zn,Fj,Rj,!1,Hj,null,null,null);function Hj(e){for(let s in dv)this[s]=dv[s]}const jj=function(){return Ij.exports}();var Nj=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(Z,{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(pe,{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(S,{staticClass:"pt-3"},e._l(e.genericLogfiles,function(r){return t($m,{key:r,attrs:{name:r}})}),1)],1)],1),t(jj,{attrs:{show:e.showRolloverDialog},on:{"close-dialog":function(r){e.showRolloverDialog=!1}}})],1)},Vj=[];const hv={};var Uj=N(Kd,Nj,Vj,!1,Bj,null,null,null);function Bj(e){for(let s in hv)this[s]=hv[s]}const g2=function(){return Uj.exports}();var Wj=Object.defineProperty,Gj=Object.getOwnPropertyDescriptor,zj=(e,s,t,r)=>{for(var i=r>1?void 0:r?Gj(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&&Wj(s,t,i),i};let Qd=class extends j(V){constructor(){super(...arguments),this.mdiArrowExpandVertical=LS,this.mdiSync=f0,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"}))}};Qd=zj([O({components:{Panel:Z}})],Qd);var Zj=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Z,{attrs:{title:e.$t("Machine.EndstopPanel.Endstops"),icon:e.mdiArrowExpandVertical,"card-class":"machine-endstop-panel",collapsible:!0}},[t(q,{staticClass:"pb-0"},[t(ke,{attrs:{"px-0":"","py-0":""}},[Object.keys(e.endstops).length?[e._l(Object.keys(e.endstops),function(r){return t(S,{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(ns,{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(S,[t(_,{staticClass:"py-1"},[t("label",{staticClass:"mt-1 d-inline-block"},[e._v("Probe")]),t(ns,{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(S,[t(_,[t("p",[e._v(e._s(e.$t("Machine.EndstopPanel.EndstopInfo")))])])],1)]],2)],1),t(ne,{staticClass:"pt-3"},[t(le),t(g,{attrs:{icon:"",loading:e.loadings.includes("queryEndstops")},on:{click:e.syncEndstops}},[t(v,[e._v(e._s(e.mdiSync))])],1)],1)],1)},qj=[];const pv={};var Xj=N(Qd,Zj,qj,!1,Yj,null,null,null);function Yj(e){for(let s in pv)this[s]=pv[s]}const v2=function(){return Xj.exports}();function _2(e,s){return function(){return e.apply(s,arguments)}}const{toString:Jj}=Object.prototype,{getPrototypeOf:wm}=Object,Fc=(e=>s=>{const t=Jj.call(s);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),xs=e=>(e=e.toLowerCase(),s=>Fc(s)===e),Rc=e=>s=>typeof s===e,{isArray:Gi}=Array,qn=Rc("undefined");function Kj(e){return e!==null&&!qn(e)&&e.constructor!==null&&!qn(e.constructor)&&Wt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const b2=xs("ArrayBuffer");function Qj(e){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(e):s=e&&e.buffer&&b2(e.buffer),s}const eN=Rc("string"),Wt=Rc("function"),y2=Rc("number"),Ic=e=>e!==null&&typeof e=="object",tN=e=>e===!0||e===!1,eo=e=>{if(Fc(e)!=="object")return!1;const s=wm(e);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},sN=xs("Date"),rN=xs("File"),iN=xs("Blob"),nN=xs("FileList"),aN=e=>Ic(e)&&Wt(e.pipe),oN=e=>{let s;return e&&(typeof FormData=="function"&&e instanceof FormData||Wt(e.append)&&((s=Fc(e))==="formdata"||s==="object"&&Wt(e.toString)&&e.toString()==="[object FormData]"))},lN=xs("URLSearchParams"),cN=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $a(e,s,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Gi(e))for(r=0,i=e.length;r0;)if(i=t[r],s===i.toLowerCase())return i;return null}const $2=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),x2=e=>!qn(e)&&e!==$2;function eh(){const{caseless:e}=x2(this)&&this||{},s={},t=(r,i)=>{const n=e&&C2(s,i)||i;eo(s[n])&&eo(r)?s[n]=eh(s[n],r):eo(r)?s[n]=eh({},r):Gi(r)?s[n]=r.slice():s[n]=r};for(let r=0,i=arguments.length;r($a(s,(i,n)=>{t&&Wt(i)?e[n]=_2(i,t):e[n]=i},{allOwnKeys:r}),e),dN=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),hN=(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)},pN=(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&&wm(e)}while(e&&(!t||t(e,s))&&e!==Object.prototype);return s},mN=(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},fN=e=>{if(!e)return null;if(Gi(e))return e;let s=e.length;if(!y2(s))return null;const t=new Array(s);for(;s-- >0;)t[s]=e[s];return t},gN=(e=>s=>e&&s instanceof e)(typeof Uint8Array<"u"&&wm(Uint8Array)),vN=(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])}},_N=(e,s)=>{let t;const r=[];for(;(t=e.exec(s))!==null;)r.push(t);return r},bN=xs("HTMLFormElement"),yN=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,i){return r.toUpperCase()+i}),mv=(({hasOwnProperty:e})=>(s,t)=>e.call(s,t))(Object.prototype),CN=xs("RegExp"),w2=(e,s)=>{const t=Object.getOwnPropertyDescriptors(e),r={};$a(t,(i,n)=>{let a;(a=s(i,n,e))!==!1&&(r[n]=a||i)}),Object.defineProperties(e,r)},$N=e=>{w2(e,(s,t)=>{if(Wt(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=e[t];if(Wt(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+"'")})}})},xN=(e,s)=>{const t={},r=i=>{i.forEach(n=>{t[n]=!0})};return Gi(e)?r(e):r(String(e).split(s)),t},wN=()=>{},SN=(e,s)=>(e=+e,Number.isFinite(e)?e:s),Lu="abcdefghijklmnopqrstuvwxyz",fv="0123456789",S2={DIGIT:fv,ALPHA:Lu,ALPHA_DIGIT:Lu+Lu.toUpperCase()+fv},PN=(e=16,s=S2.ALPHA_DIGIT)=>{let t="";const{length:r}=s;for(;e--;)t+=s[Math.random()*r|0];return t};function TN(e){return!!(e&&Wt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const DN=e=>{const s=new Array(10),t=(r,i)=>{if(Ic(r)){if(s.indexOf(r)>=0)return;if(!("toJSON"in r)){s[i]=r;const n=Gi(r)?[]:{};return $a(r,(a,o)=>{const l=t(a,i+1);!qn(l)&&(n[o]=l)}),s[i]=void 0,n}}return r};return t(e,0)},MN=xs("AsyncFunction"),EN=e=>e&&(Ic(e)||Wt(e))&&Wt(e.then)&&Wt(e.catch),J={isArray:Gi,isArrayBuffer:b2,isBuffer:Kj,isFormData:oN,isArrayBufferView:Qj,isString:eN,isNumber:y2,isBoolean:tN,isObject:Ic,isPlainObject:eo,isUndefined:qn,isDate:sN,isFile:rN,isBlob:iN,isRegExp:CN,isFunction:Wt,isStream:aN,isURLSearchParams:lN,isTypedArray:gN,isFileList:nN,forEach:$a,merge:eh,extend:uN,trim:cN,stripBOM:dN,inherits:hN,toFlatObject:pN,kindOf:Fc,kindOfTest:xs,endsWith:mN,toArray:fN,forEachEntry:vN,matchAll:_N,isHTMLForm:bN,hasOwnProperty:mv,hasOwnProp:mv,reduceDescriptors:w2,freezeMethods:$N,toObjectSet:xN,toCamelCase:yN,noop:wN,toFiniteNumber:SN,findKey:C2,global:$2,isContextDefined:x2,ALPHABET:S2,generateString:PN,isSpecCompliantForm:TN,toJSONObject:DN,isAsyncFn:MN,isThenable:EN};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)}J.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:J.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const P2=Me.prototype,T2={};["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=>{T2[e]={value:e}});Object.defineProperties(Me,T2);Object.defineProperty(P2,"isAxiosError",{value:!0});Me.from=(e,s,t,r,i,n)=>{const a=Object.create(P2);return J.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 ON=null;function th(e){return J.isPlainObject(e)||J.isArray(e)}function D2(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function gv(e,s,t){return e?e.concat(s).map(function(i,n){return i=D2(i),!t&&n?"["+i+"]":i}).join(t?".":""):s}function LN(e){return J.isArray(e)&&!e.some(th)}const kN=J.toFlatObject(J,{},null,function(s){return/^is[A-Z]/.test(s)});function Hc(e,s,t){if(!J.isObject(e))throw new TypeError("target must be an object");s=s||new FormData,t=J.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,b){return!J.isUndefined(b[f])});const r=t.metaTokens,i=t.visitor||u,n=t.dots,a=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(s);if(!J.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(J.isDate(m))return m.toISOString();if(!l&&J.isBlob(m))throw new Me("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(m)||J.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,f,b){let C=m;if(m&&!b&&typeof m=="object"){if(J.endsWith(f,"{}"))f=r?f:f.slice(0,-2),m=JSON.stringify(m);else if(J.isArray(m)&&LN(m)||(J.isFileList(m)||J.endsWith(f,"[]"))&&(C=J.toArray(m)))return f=D2(f),C.forEach(function(M,H){!(J.isUndefined(M)||M===null)&&s.append(a===!0?gv([f],H,n):a===null?f:f+"[]",c(M))}),!1}return th(m)?!0:(s.append(gv(b,f,n),c(m)),!1)}const d=[],h=Object.assign(kN,{defaultVisitor:u,convertValue:c,isVisitable:th});function p(m,f){if(!J.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(m),J.forEach(m,function(C,w){(!(J.isUndefined(C)||C===null)&&i.call(s,C,J.isString(w)?w.trim():w,f,h))===!0&&p(C,f?f.concat(w):[w])}),d.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return p(e),s}function vv(e){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return s[r]})}function Sm(e,s){this._pairs=[],e&&Hc(e,this,s)}const M2=Sm.prototype;M2.append=function(s,t){this._pairs.push([s,t])};M2.toString=function(s){const t=s?function(r){return s.call(this,r,vv)}:vv;return this._pairs.map(function(i){return t(i[0])+"="+t(i[1])},"").join("&")};function AN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function E2(e,s,t){if(!s)return e;const r=t&&t.encode||AN,i=t&&t.serialize;let n;if(i?n=i(s,t):n=J.isURLSearchParams(s)?s.toString():new Sm(s,t).toString(r),n){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}class FN{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){J.forEach(this.handlers,function(r){r!==null&&s(r)})}}const _v=FN,O2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},RN=typeof URLSearchParams<"u"?URLSearchParams:Sm,IN=typeof FormData<"u"?FormData:null,HN=typeof Blob<"u"?Blob:null,jN=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),NN=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),gs={isBrowser:!0,classes:{URLSearchParams:RN,FormData:IN,Blob:HN},isStandardBrowserEnv:jN,isStandardBrowserWebWorkerEnv:NN,protocols:["http","https","file","blob","url","data"]};function VN(e,s){return Hc(e,new gs.classes.URLSearchParams,Object.assign({visitor:function(t,r,i,n){return gs.isNode&&J.isBuffer(t)?(this.append(r,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},s))}function UN(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(s=>s[0]==="[]"?"":s[1]||s[0])}function BN(e){const s={},t=Object.keys(e);let r;const i=t.length;let n;for(r=0;r=t.length;return a=!a&&J.isArray(i)?i.length:a,l?(J.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!o):((!i[a]||!J.isObject(i[a]))&&(i[a]=[]),s(t,r,i[a],n)&&J.isArray(i[a])&&(i[a]=BN(i[a])),!o)}if(J.isFormData(e)&&J.isFunction(e.entries)){const t={};return J.forEachEntry(e,(r,i)=>{s(UN(r),i,t,0)}),t}return null}function WN(e,s,t){if(J.isString(e))try{return(s||JSON.parse)(e),J.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(e)}const Pm={transitional:O2,adapter:["xhr","http"],transformRequest:[function(s,t){const r=t.getContentType()||"",i=r.indexOf("application/json")>-1,n=J.isObject(s);if(n&&J.isHTMLForm(s)&&(s=new FormData(s)),J.isFormData(s))return i&&i?JSON.stringify(L2(s)):s;if(J.isArrayBuffer(s)||J.isBuffer(s)||J.isStream(s)||J.isFile(s)||J.isBlob(s))return s;if(J.isArrayBufferView(s))return s.buffer;if(J.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 VN(s,this.formSerializer).toString();if((o=J.isFileList(s))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Hc(o?{"files[]":s}:s,l&&new l,this.formSerializer)}}return n||i?(t.setContentType("application/json",!1),WN(s)):s}],transformResponse:[function(s){const t=this.transitional||Pm.transitional,r=t&&t.forcedJSONParsing,i=this.responseType==="json";if(s&&J.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:gs.classes.FormData,Blob:gs.classes.Blob},validateStatus:function(s){return s>=200&&s<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{Pm.headers[e]={}});const Tm=Pm,GN=J.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"]),zN=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]&&GN[t])&&(t==="set-cookie"?s[t]?s[t].push(r):s[t]=[r]:s[t]=s[t]?s[t]+", "+r:r)}),s},bv=Symbol("internals");function sn(e){return e&&String(e).trim().toLowerCase()}function to(e){return e===!1||e==null?e:J.isArray(e)?e.map(to):String(e)}function ZN(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 qN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ku(e,s,t,r,i){if(J.isFunction(r))return r.call(this,s,t);if(i&&(s=t),!!J.isString(s)){if(J.isString(r))return s.indexOf(r)!==-1;if(J.isRegExp(r))return r.test(s)}}function XN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,t,r)=>t.toUpperCase()+r)}function YN(e,s){const t=J.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 jc{constructor(s){s&&this.set(s)}set(s,t,r){const i=this;function n(o,l,c){const u=sn(l);if(!u)throw new Error("header name must be a non-empty string");const d=J.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=to(o))}const a=(o,l)=>J.forEach(o,(c,u)=>n(c,u,l));return J.isPlainObject(s)||s instanceof this.constructor?a(s,t):J.isString(s)&&(s=s.trim())&&!qN(s)?a(zN(s),t):s!=null&&n(t,s,r),this}get(s,t){if(s=sn(s),s){const r=J.findKey(this,s);if(r){const i=this[r];if(!t)return i;if(t===!0)return ZN(i);if(J.isFunction(t))return t.call(this,i,r);if(J.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,t){if(s=sn(s),s){const r=J.findKey(this,s);return!!(r&&this[r]!==void 0&&(!t||ku(this,this[r],r,t)))}return!1}delete(s,t){const r=this;let i=!1;function n(a){if(a=sn(a),a){const o=J.findKey(r,a);o&&(!t||ku(r,r[o],o,t))&&(delete r[o],i=!0)}}return J.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||ku(this,this[n],n,s,!0))&&(delete this[n],i=!0)}return i}normalize(s){const t=this,r={};return J.forEach(this,(i,n)=>{const a=J.findKey(r,n);if(a){t[a]=to(i),delete t[n];return}const o=s?XN(n):String(n).trim();o!==n&&delete t[n],t[o]=to(i),r[o]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const t=Object.create(null);return J.forEach(this,(r,i)=>{r!=null&&r!==!1&&(t[i]=s&&J.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[bv]=this[bv]={accessors:{}}).accessors,i=this.prototype;function n(a){const o=sn(a);r[o]||(YN(i,a),r[o]=!0)}return J.isArray(s)?s.forEach(n):n(s),this}}jc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(jc.prototype,({value:e},s)=>{let t=s[0].toUpperCase()+s.slice(1);return{get:()=>e,set(r){this[t]=r}}});J.freezeMethods(jc);const ks=jc;function Au(e,s){const t=this||Tm,r=s||t,i=ks.from(r.headers);let n=r.data;return J.forEach(e,function(o){n=o.call(t,n,i.normalize(),s?s.status:void 0)}),i.normalize(),n}function k2(e){return!!(e&&e.__CANCEL__)}function xa(e,s,t){Me.call(this,e==null?"canceled":e,Me.ERR_CANCELED,s,t),this.name="CanceledError"}J.inherits(xa,Me,{__CANCEL__:!0});function JN(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 KN=gs.isStandardBrowserEnv?function(){return{write:function(t,r,i,n,a,o){const l=[];l.push(t+"="+encodeURIComponent(r)),J.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),J.isString(n)&&l.push("path="+n),J.isString(a)&&l.push("domain="+a),o===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(t){const r=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function QN(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function eV(e,s){return s?e.replace(/\/+$/,"")+"/"+s.replace(/^\/+/,""):e}function A2(e,s){return e&&!QN(s)?eV(e,s):s}const tV=gs.isStandardBrowserEnv?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=J.isString(a)?i(a):a;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}();function sV(e){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return s&&s[1]||""}function rV(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,h=0;for(;d!==i;)h+=t[d++],d=d%e;if(i=(i+1)%e,i===n&&(n=(n+1)%e),c-a{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 iV=typeof XMLHttpRequest<"u",nV=iV&&function(e){return new Promise(function(t,r){let i=e.data;const n=ks.from(e.headers).normalize(),a=e.responseType;let o;function l(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}let c;J.isFormData(i)&&(gs.isStandardBrowserEnv||gs.isStandardBrowserWebWorkerEnv?n.setContentType(!1):n.getContentType(/^\s*multipart\/form-data/)?J.isString(c=n.getContentType())&&n.setContentType(c.replace(/^\s*(multipart\/form-data);+/,"$1")):n.setContentType("multipart/form-data"));let u=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";n.set("Authorization","Basic "+btoa(m+":"+f))}const d=A2(e.baseURL,e.url);u.open(e.method.toUpperCase(),E2(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function h(){if(!u)return;const m=ks.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:m,config:e,request:u};JN(function(w){t(w),l()},function(w){r(w),l()},b),u=null}if("onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(h)},u.onabort=function(){u&&(r(new Me("Request aborted",Me.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new Me("Network Error",Me.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let f=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||O2;e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),r(new Me(f,b.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,e,u)),u=null},gs.isStandardBrowserEnv){const m=tV(d)&&e.xsrfCookieName&&KN.read(e.xsrfCookieName);m&&n.set(e.xsrfHeaderName,m)}i===void 0&&n.setContentType(null),"setRequestHeader"in u&&J.forEach(n.toJSON(),function(f,b){u.setRequestHeader(b,f)}),J.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",yv(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",yv(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=m=>{u&&(r(!m||m.type?new xa(null,e,u):m),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const p=sV(d);if(p&&gs.protocols.indexOf(p)===-1){r(new Me("Unsupported protocol "+p+":",Me.ERR_BAD_REQUEST,e));return}u.send(i||null)})},sh={http:ON,xhr:nV};J.forEach(sh,(e,s)=>{if(e){try{Object.defineProperty(e,"name",{value:s})}catch{}Object.defineProperty(e,"adapterName",{value:s})}});const Cv=e=>"- ".concat(e),aV=e=>J.isFunction(e)||e===null||e===!1,F2={getAdapter:e=>{e=J.isArray(e)?e:[e];const{length:s}=e;let t,r;const i={};for(let n=0;n"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(Cv).join("\n"):" "+Cv(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:sh};function Fu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xa(null,e)}function $v(e){return Fu(e),e.headers=ks.from(e.headers),e.data=Au.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),F2.getAdapter(e.adapter||Tm.adapter)(e).then(function(r){return Fu(e),r.data=Au.call(e,e.transformResponse,r),r.headers=ks.from(r.headers),r},function(r){return k2(r)||(Fu(e),r&&r.response&&(r.response.data=Au.call(e,e.transformResponse,r.response),r.response.headers=ks.from(r.response.headers))),Promise.reject(r)})}const xv=e=>e instanceof ks?e.toJSON():e;function xi(e,s){s=s||{};const t={};function r(c,u,d){return J.isPlainObject(c)&&J.isPlainObject(u)?J.merge.call({caseless:d},c,u):J.isPlainObject(u)?J.merge({},u):J.isArray(u)?u.slice():u}function i(c,u,d){if(J.isUndefined(u)){if(!J.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function n(c,u){if(!J.isUndefined(u))return r(void 0,u)}function a(c,u){if(J.isUndefined(u)){if(!J.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,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(xv(c),xv(u),!0)};return J.forEach(Object.keys(Object.assign({},e,s)),function(u){const d=l[u]||i,h=d(e[u],s[u],u);J.isUndefined(h)&&d!==o||(t[u]=h)}),t}const R2="1.6.0",Dm={};["object","boolean","number","function","string","symbol"].forEach((e,s)=>{Dm[e]=function(r){return typeof r===e||"a"+(s<1?"n ":" ")+e}});const wv={};Dm.transitional=function(s,t,r){function i(n,a){return"[Axios v"+R2+"] 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&&!wv[a]&&(wv[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 oV(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 rh={assertOptions:oV,validators:Dm},qs=rh.validators;class il{constructor(s){this.defaults=s,this.interceptors={request:new _v,response:new _v}}request(s,t){typeof s=="string"?(t=t||{},t.url=s):t=s||{},t=xi(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:n}=t;r!==void 0&&rh.assertOptions(r,{silentJSONParsing:qs.transitional(qs.boolean),forcedJSONParsing:qs.transitional(qs.boolean),clarifyTimeoutError:qs.transitional(qs.boolean)},!1),i!=null&&(J.isFunction(i)?t.paramsSerializer={serialize:i}:rh.assertOptions(i,{encode:qs.function,serialize:qs.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=n&&J.merge(n.common,n[t.method]);n&&J.forEach(["delete","get","head","post","put","patch","common"],m=>{delete n[m]}),t.headers=ks.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,h;if(!l){const m=[$v.bind(this),void 0];for(m.unshift.apply(m,o),m.push.apply(m,c),h=m.length,u=Promise.resolve(t);d{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 xa(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 Mm(function(i){s=i}),cancel:s}}}const lV=Mm;function cV(e){return function(t){return e.apply(null,t)}}function uV(e){return J.isObject(e)&&e.isAxiosError===!0}const ih={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(ih).forEach(([e,s])=>{ih[s]=e});const dV=ih;function I2(e){const s=new so(e),t=_2(so.prototype.request,s);return J.extend(t,so.prototype,s,{allOwnKeys:!0}),J.extend(t,s,null,{allOwnKeys:!0}),t.create=function(i){return I2(xi(e,i))},t}const Ke=I2(Tm);Ke.Axios=so;Ke.CanceledError=xa;Ke.CancelToken=lV;Ke.isCancel=k2;Ke.VERSION=R2;Ke.toFormData=Hc;Ke.AxiosError=Me;Ke.Cancel=Ke.CanceledError;Ke.all=function(s){return Promise.all(s)};Ke.spread=cV;Ke.isAxiosError=uV;Ke.mergeConfig=xi;Ke.AxiosHeaders=ks;Ke.formToJSON=e=>L2(J.isHTMLForm(e)?new FormData(e):e);Ke.getAdapter=F2.getAdapter;Ke.HttpStatusCode=dV;Ke.default=Ke;const Es=Ke;var hV=Object.defineProperty,pV=Object.getOwnPropertyDescriptor,mV=(e,s,t,r)=>{for(var i=r>1?void 0:r?pV(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&&hV(s,t,i),i};let nh=class extends j(V,kt){constructor(){super(...arguments),this.mdiInformation=At,this.mdiClose=ca,this.mdiCog=Us,this.mdiFolder=Cp,this.mdiFolderUpload=xp,this.mdiFileDocumentEditOutline=da,this.mdiFile=dr,this.mdiCloudDownload=Pn,this.mdiRenameBox=Ql,this.mdiDelete=Ye,this.mdiCloseThick=Ce,this.mdiLockOutline=Yl,this.mdiContentCopy=Bb,this.sortFiles=Ap,this.formatFilesize=it,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:{},lastProgress:{time:0,loaded:0}},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:Pn,loadingName:"configDownloadZip",onlyWriteable:!1,condition:this.selectedFiles.length>0,click:()=>{this.downloadSelectedFiles()}},{text:this.$t("Machine.ConfigFilesPanel.Delete"),color:"error",icon:Ye,loadingName:null,onlyWriteable:!0,condition:this.selectedFiles.length>0,click:()=>{this.deleteSelectedDialog=!0}},{text:this.$t("Machine.ConfigFilesPanel.UploadFile"),color:this.machineButtonCol,icon:Yb,loadingName:null,onlyWriteable:!0,condition:!0,click:this.uploadFileButton},{text:this.$t("Machine.ConfigFilesPanel.CreateFile"),color:this.machineButtonCol,icon:oP,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:Hi,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$/;e=e.filter(i=>!i.filename.match(r))}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=>!$S.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 h="".concat(c,"/").concat(d.filename);if(d.isDirectory&&d.childrens){await s(h,d.childrens);continue}e.push(h)}};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)),Es.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"})}}};nh=mV([O({components:{Panel:Z,PathNavigation:Bi}})],nh);var fV=function(){var e,s=this,t=s.$createElement,r=s._self._c||t;return r("div",[r(Z,{attrs:{title:s.$t("Machine.ConfigFilesPanel.ConfigFiles"),"card-class":"machine-configfiles-panel",icon:s.mdiInformation,collapsible:!0}},[r(q,[r(S,[r(_,{staticClass:"col-12 col-lg pr-lg-0"},[r(Le,{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(pe,{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(K,{staticClass:"minHeight36"},[r(we,{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(K,{staticClass:"minHeight36"},[r(we,{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(S,[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(Bi,{attrs:{path:s.currentPath,"base-directory-label":"/".concat(s.root),"on-segment-click":s.clickPathNavGoToDirectory}})],1),r(le),s.disk_usage!==null&&!s.showMissingConfigRootWarning?[r(pe,{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(E),s.showMissingConfigRootWarning?r(q,[r(S,[r(_,{staticClass:"col-12 col-lg pr-lg-0"},[r(dt,{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(Ns,{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(ai,{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(ai,{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(K,{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(K,{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(K,{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(K,{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(K,{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(K,{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(K,{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(Z,{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"},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(Z,{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(re,{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(le),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(Z,{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(re,{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(le),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(Z,{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(re,{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(le),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(Z,{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(re,{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(le),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(Z,{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(re,{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(le),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(Z,{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(le),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(Z,{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(le),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(Z,{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(le),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(oi,{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(bs,{staticClass:"mt-2",attrs:{value:s.uploadSnackbar.percent}})],1)],1)},gV=[];const Sv={};var vV=N(nh,fV,gV,!1,_V,null,null,null);function _V(e){for(let s in Sv)this[s]=Sv[s]}const H2=function(){return vV.exports}();var bV=Object.defineProperty,yV=Object.getOwnPropertyDescriptor,CV=(e,s,t,r)=>{for(var i=r>1?void 0:r?yV(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&&bV(s,t,i),i};let ah=class extends j(V){constructor(){super(...arguments),this.formatFilesize=it,this.mdiCloseThick=Ce,this.mdiTextBoxSearchOutline=g0,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}};ah=CV([O({components:{Panel:Z}})],ah);var $V=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(S,{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(pe,{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(pe,{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,2482253800)},[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(at,{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(at,{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(at,{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(Z,{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(S,{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(E,{staticClass:"my-3"}):e._e(),t(S,[t(_,[e._v(e._s(o))]),t(_,{staticClass:"text-right"},[e._v(e._s(a))])],1)],1)})]:e._e()],2)}):[t(S,{staticClass:"mt-5"},[t(_,[t("p",[e._v(e._s(e.$t("Machine.SystemPanel.NoMoreInfos")))])])],1)]],2)],1)],1)],1)],1)},xV=[];const Pv={};var wV=N(ah,$V,xV,!1,SV,"d23ebeea",null,null);function SV(e){for(let s in Pv)this[s]=Pv[s]}const j2=function(){return wV.exports}();var PV=Object.defineProperty,TV=Object.getOwnPropertyDescriptor,N2=(e,s,t,r)=>{for(var i=r>1?void 0:r?TV(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&&PV(s,t,i),i};let nl=class extends j(V){constructor(){super(...arguments),this.formatFilesize=it,this.mdiCloseThick=Ce,this.mcuDetailsDialog=!1}};N2([k({required:!0})],nl.prototype,"mcu",2);nl=N2([O({components:{Panel:Z}})],nl);var DV=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(S,{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(pe,{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(at,{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(Z,{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(S,[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(E,{staticClass:"my-3"}):e._e(),t(S,[t(_,[e._v(e._s(i))]),t(_,{staticClass:"text-right"},[e._v(e._s(r))])],1)],1)})]:e._e(),e.mcu.last_stats?[t(S,{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(E,{staticClass:"my-3"}):e._e(),t(S,[t(_,[e._v(e._s(i))]),t(_,{staticClass:"text-right"},[e._v(e._s(r))])],1)],1)})]:e._e()],2)],1)],1)],1)],1)},MV=[];const Tv={};var EV=N(nl,DV,MV,!1,OV,null,null,null);function OV(e){for(let s in Tv)this[s]=Tv[s]}const V2=function(){return EV.exports}();var LV=Object.defineProperty,kV=Object.getOwnPropertyDescriptor,AV=(e,s,t,r)=>{for(var i=r>1?void 0:r?kV(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&&LV(s,t,i),i};let oh=class extends j(V){constructor(){super(...arguments),this.mdiCloseThick=Ce,this.mdiMemory=r0}get mcus(){var s;const e=(s=this.$store.getters["printer/getMcus"])!=null?s:[];return $t(e,"name")}get hostStats(){var e;return(e=this.$store.getters["server/getHostStats"])!=null?e:null}};oh=AV([O({components:{SystemPanelMcu:V2,SystemPanelHost:j2,Panel:Z}})],oh);var FV=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Z,{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(E,{staticClass:"my-2"}):e._e(),t(V2,{attrs:{mcu:r}})],1)}),e.hostStats?t("div",[e.mcus.length?t(E,{staticClass:"my-2"}):e._e(),t(j2)],1):e._e()],2)],1)},RV=[];const Dv={};var IV=N(oh,FV,RV,!1,HV,"0449534b",null,null);function HV(e){for(let s in Dv)this[s]=Dv[s]}const U2=function(){return IV.exports}();var jV=Object.defineProperty,NV=Object.getOwnPropertyDescriptor,VV=(e,s,t,r)=>{for(var i=r>1?void 0:r?NV(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&&jV(s,t,i),i};let lh=class extends j(V){};lh=VV([O({components:{SystemPanel:U2,ConfigFilesPanel:H2,EndstopPanel:v2,LogfilesPanel:g2,UpdatePanel:m2,KlippyStatePanel:ma}})],lh);var UV=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(ke,{attrs:{fluid:"","py-0":"","px-0":""}},[t(S,[t(_,{staticClass:"col-12 col-md-6 pb-0 pb-md-3"},[t(H2)],1),t(_,{staticClass:"col-12 col-md-6 pt-0 pt-md-3"},[t(ma),t(U2),t(m2),t(S,[e.klipperState==="ready"?t(_,{staticClass:"col-12 col-sm-6 pb-0 pb-md-3"},[t(v2)],1):e._e(),t(_,{class:e.klipperState!=="ready"?"col-12":"col-12 col-sm-6 pt-0 pt-sm-3"},[t(g2)],1)],1)],1)],1)],1)},BV=[];const Mv={};var WV=N(lh,UV,BV,!1,GV,null,null,null);function GV(e){for(let s in Mv)this[s]=Mv[s]}const zV=function(){return WV.exports}(),B2=[{title:"Dashboard",path:"/",icon:Pp,component:aF,alwaysShow:!0,showInNavi:!0,position:10},{title:"Printers",path:"/allPrinters",component:DF,alwaysShow:!1,showInNavi:!1},{title:"Webcam",path:"/cam",icon:ji,component:mF,alwaysShow:!0,showInNavi:!0,position:20},{title:"Console",path:"/console",icon:ua,component:FF,alwaysShow:!0,showInNavi:!0,klipperIsConnected:!0,position:30},{title:"Heightmap",path:"/heightmap",icon:ql,component:()=>he(()=>import("./Heightmap-7418030f.js"),["assets/Heightmap-7418030f.js","assets/echarts-9bc570b0.js","assets/vuetify-52f40ce5.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/Heightmap-0ea0fb44.css"]),alwaysShow:!1,showInNavi:!0,klipperComponent:"bed_mesh",position:40},{title:"G-Code Files",path:"/files",icon:Zl,component:B9,alwaysShow:!0,showInNavi:!0,registeredDirectory:"gcodes",position:50},{title:"G-Code Viewer",path:"/viewer",icon:ec,component:()=>he(()=>import("./Viewer-8db94310.js"),["assets/Viewer-8db94310.js","assets/vuetify-52f40ce5.js","assets/vuetify-950d1cb0.css","assets/codemirror-0a1db0c7.js","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-9bc570b0.js","assets/Viewer-3e5b07dd.css"]),alwaysShow:!0,showInNavi:!0,position:60},{title:"History",path:"/history",icon:hP,component:I7,alwaysShow:!0,showInNavi:!0,moonrakerComponent:"history",position:70},{title:"Timelapse",path:"/timelapse",icon:_0,component:n8,alwaysShow:!0,showInNavi:!0,moonrakerComponent:"timelapse",position:80},{title:"Machine",path:"/config",icon:KP,component:zV,alwaysShow:!0,showInNavi:!0,position:90},{title:null,component:null,alwaysShow:!1,showInNavi:!1,path:"/settings/machine",redirect:"/config"}];var ZV=Object.defineProperty,qV=Object.getOwnPropertyDescriptor,W2=(e,s,t,r)=>{for(var i=r>1?void 0:r?qV(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&&ZV(s,t,i),i};let wi=class extends j(V){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:YP,to:"/allPrinters",position:0,visible:!0}),B2.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:t0,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]}};W2([me("sidebarNaviFile",{immediate:!0})],wi.prototype,"sidebarNaviFileChanged",1);wi=W2([O],wi);var XV=Object.defineProperty,YV=Object.getOwnPropertyDescriptor,JV=(e,s,t,r)=>{for(var i=r>1?void 0:r?YV(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&&XV(s,t,i),i};let ch=class extends j(wi,V,kt){constructor(){super(...arguments),this.navigationWidth=bS,this.topbarHeight=fn}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(fn,"px !important"),"padding-bottom":"".concat(fn,"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}};ch=JV([O({components:{SidebarItem:x0,TheSelectPrinterDialog:Op,AboutDialog:C0,MainsailLogo:Ni}})],ch);var KV=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(ew,{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(Vl,{attrs:{src:e.sidebarBackground,height:"100%"}})]},proxy:!0},{key:"append",fn:function(){return[t(K,{staticClass:"small-list-item mb-2"},[t(Rs,{staticClass:"menu-item-icon"},[t(C0)],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(tw,{attrs:{"active-class":"active-nav-item"}},[e.isMobile?t(K,{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(Ni,{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(x0,{key:i,attrs:{item:r}})})],2)],1)],1)],1)},QV=[];const Ev={};var eU=N(ch,KV,QV,!1,tU,"1a6ff80c",null,null);function tU(e){for(let s in Ev)this[s]=Ev[s]}const G2=function(){return eU.exports}();var sU=Object.defineProperty,rU=Object.getOwnPropertyDescriptor,iU=(e,s,t,r)=>{for(var i=r>1?void 0:r?rU(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&&sU(s,t,i),i};let uh=class extends j(V){constructor(){super(...arguments),this.mdiAlert=DS,this.mdiCloseThick=Ce,this.mdiPowerStandby=DP,this.mdiRestart=jr,this.mdiPlay=Ii,this.mdiPower=o0,this.mdiStop=m0,this.mdiToggleSwitch=Ep,this.mdiToggleSwitchOff=GP,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",{})}};uh=iU([O({components:{Panel:Z}})],uh);var nU=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(Js,{staticStyle:{height:"auto"}},[e._v(" "+e._s(e.$t("App.TopCornerMenu.KlipperControl"))+" ")]),t(K,{staticClass:"minheight30 pr-2",attrs:{link:""},on:{click:function(r){return e.checkDialog(e.klipperRestart,"klipper","restart")}}},[t(rt,[e._v(e._s(e.$t("App.TopCornerMenu.KlipperRestart")))]),t(Gr,{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(K,{staticClass:"minheight30 pr-2",attrs:{link:""},on:{click:function(r){return e.checkDialog(e.klipperFirmwareRestart,"klipper","firmwareRestart")}}},[t(rt,[e._v(e._s(e.$t("App.TopCornerMenu.KlipperFirmwareRestart")))]),t(Gr,{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(E,{staticClass:"mt-0"}):e._e(),t(Js,{staticClass:"pt-2",staticStyle:{height:"auto"}},[e._v(" "+e._s(e.$t("App.TopCornerMenu.ServiceControl"))+" ")]),e._l(e.services,function(r){return t(K,{key:r,staticClass:"minheight30 pr-2"},[t(rt,[t(pe,{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(Gr,{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(E,{staticClass:"mt-0"}),t(Js,{staticClass:"pt-2",staticStyle:{height:"auto"}},[e._v(" "+e._s(e.$t("App.TopCornerMenu.PowerDevices"))+" ")]),e._l(e.powerDevices,function(r,i){return t(K,{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(rt,[e._v(e._s(r.device))]),t(Gr,{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(E,{staticClass:"mt-0"}),t(Js,{staticClass:"pt-2",staticStyle:{height:"auto"}},[e._v(e._s(e.$t("App.TopCornerMenu.HostControl")))]),t(K,{staticClass:"minheight30 pr-2",attrs:{link:""},on:{click:function(r){return e.checkDialog(e.hostReboot,"host","reboot")}}},[t(rt,[e._v(e._s(e.$t("App.TopCornerMenu.Reboot")))]),t(Gr,{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(K,{staticClass:"minheight30 pr-2",attrs:{link:""},on:{click:function(r){return e.checkDialog(e.hostShutdown,"host","shutdown")}}},[t(rt,[e._v(e._s(e.$t("App.TopCornerMenu.Shutdown")))]),t(Gr,{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(De,[t(vt,{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(le),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(Z,{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(S,[t(_,[t("p",{staticClass:"body-2"},[e._v(e._s(e.dialogConfirmation.description))])])],1)],1),t(ne,[t(le),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)},aU=[];const Ov={};var oU=N(uh,nU,aU,!1,lU,"371c81fd",null,null);function lU(e){for(let s in Ov)this[s]=Ov[s]}const z2=function(){return oU.exports}();var cU=Object.defineProperty,uU=Object.getOwnPropertyDescriptor,Em=(e,s,t,r)=>{for(var i=r>1?void 0:r?uU(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&&cU(s,t,i),i};let Xn=class extends j(V){constructor(){super(...arguments),this.selectedCheckboxes=[],this.selectAllIndeterminate=!1,this.selectAllModel=br({get:this.getSelectAll,set:this.setSelectAll})}getSelectAll(){return this.selectAllIndeterminate=!1,0t.value);return}this.selectedCheckboxes=[]}};Em([k({required:!0})],Xn.prototype,"options",2);Em([k({type:Boolean,required:!1,default:!1})],Xn.prototype,"selectAll",2);Xn=Em([O],Xn);var dU=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(_,{staticClass:"pl-6"},[e.selectAll?[t(we,{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(E,{staticClass:"my-2"})]:e._e(),e._l(e.options,function(r){return[t(we,{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)},hU=[];const Lv={};var pU=N(Xn,dU,hU,!1,mU,null,null,null);function mU(e){for(let s in Lv)this[s]=Lv[s]}const Ur=function(){return pU.exports}();var fU=Object.defineProperty,gU=Object.getOwnPropertyDescriptor,vU=(e,s,t,r)=>{for(var i=r>1?void 0:r?gU(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&&fU(s,t,i),i};let Si=class extends V{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("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 tr?1:0}};Si=vU([O],Si);var _U=Object.defineProperty,bU=Object.getOwnPropertyDescriptor,yU=(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&&_U(s,t,i),i};let dh=class extends j(V,Si){constructor(){super(...arguments),this.mdiHelpCircle=Xl,this.mdiCloseThick=Ce,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}};dh=yU([O({components:{Panel:Z,SettingsRow:U,CheckboxList:Ur}})],dh);var CU=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(Z,{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(S,[t(_,[t("p",{staticClass:"mb-0"},[e._v(e._s(e.$t("Settings.GeneralTab.BackupDialog")))])])],1),t(S,[t(Ur,{attrs:{options:e.backupableNamespaces,"select-all":""},on:{"update:selectedCheckboxes":e.onSelectBackupCheckboxes}})],1),t(S,[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)},$U=[];const kv={};var xU=N(dh,CU,$U,!1,wU,null,null,null);function wU(e){for(let s in kv)this[s]=kv[s]}const Z2=function(){return xU.exports}();var SU=Object.defineProperty,PU=Object.getOwnPropertyDescriptor,TU=(e,s,t,r)=>{for(var i=r>1?void 0:r?PU(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&&SU(s,t,i),i};let hh=class extends j(V,Si){constructor(){super(...arguments),this.mdiHelpCircle=Xl,this.mdiCloseThick=Ce,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(h=>h.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=TU([O({components:{SettingsGeneralTabBackupDatabase:Z2,Panel:Z,SettingsRow:U,CheckboxList:Ur}})],hh);var DU=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(Z,{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(S,[t(_,[t("p",{staticClass:"mb-0"},[e._v(e._s(e.$t("Settings.GeneralTab.RestoreDialog")))])])],1),t(S,[t(Ur,{attrs:{options:e.restoreableNamespaces,"select-all":""},on:{"update:selectedCheckboxes":e.onSelectRestoreCheckboxes}})],1),t(S,[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)},MU=[];const Av={};var EU=N(hh,DU,MU,!1,OU,null,null,null);function OU(e){for(let s in Av)this[s]=Av[s]}const LU=function(){return EU.exports}();var kU=Object.defineProperty,AU=Object.getOwnPropertyDescriptor,FU=(e,s,t,r)=>{for(var i=r>1?void 0:r?AU(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&&kU(s,t,i),i};let ph=class extends j(V,Si){constructor(){super(...arguments),this.mdiHelpCircle=Xl,this.mdiCloseThick=Ce,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=FU([O({components:{Panel:Z,SettingsRow:U,CheckboxList:Ur}})],ph);var RU=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(Z,{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(S,[t(_,[t("p",{staticClass:"mb-0"},[e._v(e._s(e.$t("Settings.GeneralTab.FactoryDialog")))])])],1),t(S,[t(Ur,{attrs:{options:e.resetableNamespaces,"select-all":""},on:{"update:selectedCheckboxes":e.onSelectResetCheckboxes}})],1),t(S,[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)},IU=[];const Fv={};var HU=N(ph,RU,IU,!1,jU,null,null,null);function jU(e){for(let s in Fv)this[s]=Fv[s]}const NU=function(){return HU.exports}();var VU=Object.defineProperty,UU=Object.getOwnPropertyDescriptor,BU=(e,s,t,r)=>{for(var i=r>1?void 0:r?UU(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&&VU(s,t,i),i};let mh=class extends j(V,Si){constructor(){super(...arguments),this.availableLanguages=[]}async created(){const s=Object.assign({"../../locales/cz.json":()=>he(()=>import("./cz-285b76fb.js"),[]).then(r=>r.title),"../../locales/da.json":()=>he(()=>import("./da-6721996d.js"),[]).then(r=>r.title),"../../locales/de.json":()=>he(()=>import("./de-1c7e5778.js"),[]).then(r=>r.title),"../../locales/en.json":()=>he(()=>Promise.resolve().then(()=>T$),void 0).then(r=>r.title),"../../locales/es.json":()=>he(()=>import("./es-8a2d24bf.js"),[]).then(r=>r.title),"../../locales/fr.json":()=>he(()=>import("./fr-ab90ab77.js"),[]).then(r=>r.title),"../../locales/hu.json":()=>he(()=>import("./hu-a56cb065.js"),[]).then(r=>r.title),"../../locales/it.json":()=>he(()=>import("./it-85215c0c.js"),[]).then(r=>r.title),"../../locales/ja.json":()=>he(()=>import("./ja-a20a0276.js"),[]).then(r=>r.title),"../../locales/ko.json":()=>he(()=>import("./ko-0b8d811b.js"),[]).then(r=>r.title),"../../locales/nl.json":()=>he(()=>import("./nl-d64c7e44.js"),[]).then(r=>r.title),"../../locales/pl.json":()=>he(()=>import("./pl-d65989d8.js"),[]).then(r=>r.title),"../../locales/pt.json":()=>he(()=>import("./pt-880f8881.js"),[]).then(r=>r.title),"../../locales/ru.json":()=>he(()=>import("./ru-5f4aea5d.js"),[]).then(r=>r.title),"../../locales/se.json":()=>he(()=>import("./se-23883ae1.js"),[]).then(r=>r.title),"../../locales/tr.json":()=>he(()=>import("./tr-9777749c.js"),[]).then(r=>r.title),"../../locales/uk.json":()=>he(()=>import("./uk-644a4aa7.js"),[]).then(r=>r.title),"../../locales/zh.json":()=>he(()=>import("./zh-fcce6e53.js"),[]).then(r=>r.title),"../../locales/zh_TW.json":()=>he(()=>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})}};mh=BU([O({components:{Panel:Z,SettingsRow:U,CheckboxList:Ur,SettingsGeneralTabBackupDatabase:Z2,SettingsGeneralTabRestoreDatabase:LU,SettingsGeneralTabResetDatabase:NU}})],mh);var WU=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(De,{attrs:{flat:""}},[t(q,[t(U,{attrs:{title:e.$t("Settings.GeneralTab.PrinterName")}},[t(re,{attrs:{"hide-details":"",outlined:"",dense:""},model:{value:e.printerName,callback:function(r){e.printerName=r},expression:"printerName"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.GeneralTab.Language")}},[t(Le,{attrs:{items:e.availableLanguages,"hide-details":"",outlined:"",dense:""},model:{value:e.currentLanguage,callback:function(r){e.currentLanguage=r},expression:"currentLanguage"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.GeneralTab.DateFormat")}},[t(Le,{attrs:{items:e.dateFormatItems,"hide-details":"",outlined:"",dense:""},model:{value:e.dateFormat,callback:function(r){e.dateFormat=r},expression:"dateFormat"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.GeneralTab.TimeFormat")}},[t(Le,{attrs:{items:e.timeFormatItems,"hide-details":"",outlined:"",dense:""},model:{value:e.timeFormat,callback:function(r){e.timeFormat=r},expression:"timeFormat"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.GeneralTab.CalcPrintProgress"),"sub-title":e.$t("Settings.GeneralTab.CalcPrintProgressDescription")}},[t(Le,{attrs:{items:e.calcPrintProgressItems,"hide-details":"",dense:"",outlined:""},model:{value:e.calcPrintProgress,callback:function(r){e.calcPrintProgress=r},expression:"calcPrintProgress"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.GeneralTab.CalcEstimateTime"),"sub-title":e.$t("Settings.GeneralTab.CalcEstimateTimeDescription")}},[t(Le,{attrs:{items:e.calcEstimateItems,multiple:"","hide-details":"",dense:"",outlined:""},model:{value:e.calcEstimateTime,callback:function(r){e.calcEstimateTime=r},expression:"calcEstimateTime"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.GeneralTab.CalcEtaTime"),"sub-title":e.$t("Settings.GeneralTab.CalcEtaTimeDescription")}},[t(Le,{attrs:{items:e.calcEtaTimeItems,multiple:"","hide-details":"",dense:"",outlined:""},model:{value:e.calcEtaTime,callback:function(r){e.calcEtaTime=r},expression:"calcEtaTime"}})],1),t(E,{staticClass:"my-2"}),t(U,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.GeneralTab.FactoryReset"),"dynamic-slot-width":!0}},[t("settings-general-tab-reset-database")],1)],1)],1)],1)},GU=[];const Rv={};var zU=N(mh,WU,GU,!1,ZU,null,null,null);function ZU(e){for(let s in Rv)this[s]=Rv[s]}const qU=function(){return zU.exports}();var XU=Object.defineProperty,YU=Object.getOwnPropertyDescriptor,Om=(e,s,t,r)=>{for(var i=r>1?void 0:r?YU(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&&XU(s,t,i),i};let Yn=class extends j(V,cr){constructor(){super(...arguments),this.mdiPencil=xt,this.mdiDelete=Ye,this.mdiMenuDown=hr,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")}};Om([k({type:Object,required:!0})],Yn.prototype,"webcam",2);Om([k({type:String,default:"create"})],Yn.prototype,"type",2);Yn=Om([O({components:{SettingsRow:U}})],Yn);var JU=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(Lr,{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(vt,[e._v(e._s(e.title))]),t(q,[t(S,[t(_,{staticClass:"col-12 col-sm-6"},[t(S,[t(_,{staticClass:"d-flex"},[t(Nt,[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(K,{key:r.value,attrs:{link:""},on:{click:function(i){e.webcam.icon=r.value}}},[t(Rs,{staticClass:"mr-2"},[t(v,{staticClass:"mt-1",attrs:{small:""}},[e._v(" "+e._s(e.convertWebcamIcon(r.value))+" ")])],1),t(Gt,[t(rt,{domProps:{textContent:e._s(r.text)}})],1)],1)}),1)],1)],1),t(re,{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(S,[t(_,{staticClass:"py-2"},[t(re,{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(S,[t(_,{staticClass:"py-2"},[t(re,{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(S,[t(_,{staticClass:"py-2"},[t(Le,{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(S,[t(_,{staticClass:"py-2 col-6"},[t(re,{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(Le,{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(S,[t(_,{staticClass:"pt-1 pb-3"},[t(we,{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(S,[t(_,{staticClass:"pt-1 pb-3"},[t(we,{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(S,[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(S,{staticClass:"mt-0"},[t(_,{staticClass:"py-0"},[t(we,{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(we,{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(Sc,{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)},KU=[];const Iv={};var QU=N(Yn,JU,KU,!1,eB,"3a5b3bca",null,null);function eB(e){for(let s in Iv)this[s]=Iv[s]}const q2=function(){return QU.exports}();var tB=Object.defineProperty,sB=Object.getOwnPropertyDescriptor,Lm=(e,s,t,r)=>{for(var i=r>1?void 0:r?sB(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 Jn=class extends j(V,cr){constructor(){super(...arguments),this.mdiPencil=xt,this.mdiDelete=Ye,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)}};Lm([k({type:Object,default:()=>{}})],Jn.prototype,"webcam",2);Lm([k({type:Boolean,default:!1})],Jn.prototype,"boolBorderTop",2);Jn=Lm([O({components:{SettingsRow:U}})],Jn);var rB=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.boolBorderTop?t(E,{staticClass:"my-2"}):e._e(),t(U,{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)},iB=[];const Hv={};var nB=N(Jn,rB,iB,!1,aB,null,null,null);function aB(e){for(let s in Hv)this[s]=Hv[s]}const X2=function(){return nB.exports}();var oB=Object.defineProperty,lB=Object.getOwnPropertyDescriptor,cB=(e,s,t,r)=>{for(var i=r>1?void 0:r?lB(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&&oB(s,t,i),i};let fh=class extends j(V,cr){constructor(){super(...arguments),this.mdiPencil=xt,this.mdiDelete=Ye,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}};fh=cB([O({components:{SettingsRow:U,WebcamForm:q2,WebcamListEntry:X2}})],fh);var uB=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.boolForm?t(De,{attrs:{flat:""}},[t(q2,{attrs:{webcam:e.formWebcam,type:e.typeForm},on:{close:e.closeForm}})],1):t(De,{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(X2,{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(le),t(g,{attrs:{text:"",color:"primary"},on:{click:e.createWebcam}},[e._v(e._s(e.$t("Settings.WebcamsTab.AddWebcam")))])],1)],1)],1)},dB=[];const jv={};var hB=N(fh,uB,dB,!1,pB,null,null,null);function pB(e){for(let s in jv)this[s]=jv[s]}const mB=function(){return hB.exports}();var fB=Object.defineProperty,gB=Object.getOwnPropertyDescriptor,vB=(e,s,t,r)=>{for(var i=r>1?void 0:r?gB(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&&fB(s,t,i),i};let gh=class extends j(V){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})}};gh=vB([O({components:{SettingsRow:U}})],gh);var _B=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(E,{staticClass:"my-2"}):e._e(),t(U,{attrs:{title:r.name,"sub-title":r.description,"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"input-value":e.getMacroStatus(r.name),"hide-details":""},on:{change:function(n){return e.changeMacroStatus(r.name)}}})],1)],1)}):[t(S,[t(_,[t("p",{staticClass:"mb-0 text-center font-italic"},[e._v(e._s(e.$t("Settings.MacrosTab.NOMacros")))])])],1)]],2)},bB=[];const Nv={};var yB=N(gh,_B,bB,!1,CB,null,null,null);function CB(e){for(let s in Nv)this[s]=Nv[s]}const Y2=function(){return yB.exports}();var $B=Object.defineProperty,xB=Object.getOwnPropertyDescriptor,Nc=(e,s,t,r)=>{for(var i=r>1?void 0:r?xB(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&&$B(s,t,i),i};let Pi=class extends j(V,kt){constructor(){super(...arguments),this.mdiPencil=xt,this.mdiDelete=Ye,this.mdiSleep=HP,this.mdiPause=Tp,this.mdiPrinter3dNozzle=Bs,this.mdiPlus=Dp,this.mdiDragVertical=zl,this.mdiPalette=Kl,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")}};Nc([Ze(250)],Pi.prototype,"updateGroupOptionName",1);Nc([Ze(250)],Pi.prototype,"updateGroupOptionColorCustom",1);Nc([me("boolFormEdit")],Pi.prototype,"updatedBoolFormEdit",1);Pi=Nc([O({components:{SettingsRow:U,draggable:Ui}})],Pi);var wB=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(E,{staticClass:"my-2"}):i._e(),a(U,{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(S,[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(U,{attrs:{title:i.$t("Settings.MacrosTab.Name")}},[a(re,{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(E,{staticClass:"my-2"}),a(U,{attrs:{title:i.$t("Settings.MacrosTab.Color")}},[a(Le,{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(E,{staticClass:"my-2"}),a(U,{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(ss,{attrs:{value:i.editGroup.colorCustom,"hide-mode-switch":"",mode:"rgba"},on:{"update:color":i.updateGroupOptionColorCustom}})],1)],1)]:i._e(),a(E,{staticClass:"my-2"}),a(U,{attrs:{title:i.$t("Settings.MacrosTab.Status")}},[a(pe,{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 h;return i.updateGroupOptionShowInStandby(!((h=i.editGroup)!==null&&h!==void 0&&h.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(pe,{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 h;return i.updateGroupOptionShowInPause(!((h=i.editGroup)!==null&&h!==void 0&&h.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(pe,{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 h;return i.updateGroupOptionShowInPrinting(!((h=i.editGroup)!==null&&h!==void 0&&h.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(E,{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(S,{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(U,{key:"groupMacro_macro_"+l,attrs:{title:o.name,"sub-title":i.getMacroDescription(o.name),"dynamic-slot-width":!0}},[i.existsMacro(o.name)?[a(pe,{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(h){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(pe,{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(h){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(pe,{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(h){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(pe,{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(h){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(pe,{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(h){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(S,[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(E,{key:"availableMacro_deliver_"+l,staticClass:"my-2"}):i._e(),a(U,{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(S,[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)},SB=[];const Vv={};var PB=N(Pi,wB,SB,!1,TB,null,null,null);function TB(e){for(let s in Vv)this[s]=Vv[s]}const J2=function(){return PB.exports}();var DB=Object.defineProperty,MB=Object.getOwnPropertyDescriptor,EB=(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&&DB(s,t,i),i};let vh=class extends j(V){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")}};vh=EB([O({components:{SettingsMacrosTabExpert:J2,SettingsMacrosTabSimple:Y2,SettingsRow:U}})],vh);var OB=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(De,{attrs:{flat:""}},[e.showGeneral?t(q,[t("h3",{staticClass:"text-h5 mb-3"},[e._v(e._s(e.$t("Settings.MacrosTab.General")))]),t(U,{attrs:{title:e.$t("Settings.MacrosTab.Management")}},[t(Le,{attrs:{items:e.modes,outlined:"",dense:"","hide-details":"",attach:""},model:{value:e.mode,callback:function(r){e.mode=r},expression:"mode"}})],1),t(E,{staticClass:"my-2"})],1):e._e(),e.mode==="expert"?[t(J2,{on:{"update:showGeneral":e.updateShowGeneral,scrollToTop:e.scrollToTop}})]:[t(Y2)]],2)},LB=[];const Uv={};var kB=N(vh,OB,LB,!1,AB,null,null,null);function AB(e){for(let s in Uv)this[s]=Uv[s]}const FB=function(){return kB.exports}();var RB=Object.defineProperty,IB=Object.getOwnPropertyDescriptor,HB=(e,s,t,r)=>{for(var i=r>1?void 0:r?IB(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&&RB(s,t,i),i};let _h=class extends j(V,Je,Vo){constructor(){super(...arguments),this.mdiGamepad=wp,this.mdiPrinter3dNozzle=Bs}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()}};_h=HB([O({components:{SettingsRow:U}})],_h);var jB=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(De,{attrs:{flat:""}},[t(q,[t(Lr,{ref:"formControlExtruder"},[t("div",{staticClass:"d-flex align-center"},[t(v,{staticStyle:{opacity:"0.7"}},[e._v(e._s(e.mdiGamepad))]),t(vt,{staticClass:"mx-n2"},[e._v(" "+e._s(e.$t("Panels.ToolheadControlPanel.Headline"))+" ")]),t(E,{staticClass:"ml-3"})],1),t(U,{attrs:{title:e.$t("Settings.ControlTab.Style")}},[t(Le,{attrs:{items:e.controlStyles,outlined:"",dense:"","hide-details":"",attach:""},model:{value:e.controlStyle,callback:function(r){e.controlStyle=r},expression:"controlStyle"}})],1),t(E,{staticClass:"my-2"}),["circle","cross"].includes(e.controlStyle)&&e.actionOptions.length>1?[t(U,{attrs:{title:"Overwrite action button"}},[t(Le,{attrs:{items:e.actionOptions,outlined:"",dense:"","hide-details":"",attach:""},model:{value:e.actionButton,callback:function(r){e.actionButton=r},expression:"actionButton"}})],1),t(E,{staticClass:"my-2"})]:e._e(),t(U,{attrs:{title:e.$t("Settings.ControlTab.HideDuringPrint"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.hideDuringPrint,callback:function(r){e.hideDuringPrint=r},expression:"hideDuringPrint"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.ControlTab.EnableXYHoming"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.enableXYHoming,callback:function(r){e.enableXYHoming=r},expression:"enableXYHoming"}})],1),t(E,{staticClass:"my-2"}),["circle","cross"].includes(e.controlStyle)?[t(U,{attrs:{title:e.$t("Settings.ControlTab.InvertXMovement"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.reverseX,callback:function(r){e.reverseX=r},expression:"reverseX"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.ControlTab.InvertYMovement"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.reverseY,callback:function(r){e.reverseY=r},expression:"reverseY"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.ControlTab.InvertZMovement"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.reverseZ,callback:function(r){e.reverseZ=r},expression:"reverseZ"}})],1),t(E,{staticClass:"my-2"})]:e._e(),t(U,{attrs:{title:e.$t("Settings.ControlTab.SpeedXY")}},[t(re,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.ControlTab.SpeedZ")}},[t(re,{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(E,{staticClass:"my-2"}),e.controlStyle==="cross"?[t(U,{attrs:{title:e.$t("Settings.ControlTab.MoveDistancesInMm"),"mobile-second-row":!0}},[t(Zs,{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(E,{staticClass:"my-2"})]:e.controlStyle==="circle"?[t(U,{attrs:{title:e.$t("Settings.ControlTab.MoveDistancesXYInMm"),"mobile-second-row":!0}},[t(Zs,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.ControlTab.MoveDistancesZInMm"),"mobile-second-row":!0}},[t(Zs,{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(E,{staticClass:"my-2"})]:[t(U,{attrs:{title:e.$t("Settings.ControlTab.MoveDistancesXYInMm"),"mobile-second-row":!0}},[t(Zs,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.ControlTab.MoveDistancesZInMm"),"mobile-second-row":!0}},[t(Zs,{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(E,{staticClass:"my-2"})],t(U,{attrs:{title:e.$t("Settings.ControlTab.ZOffsetSaveOption"),"sub-title":e.$t("Settings.ControlTab.ZOffsetSaveOptionDescription")}},[t(Le,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.ControlTab.ZOffsetIncrements"),"mobile-second-row":!0}},[t(Zs,{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(vt,{staticClass:"mx-n2"},[e._v(" "+e._s(e.$t("Panels.ExtruderControlPanel.Headline"))+" ")]),t(E,{staticClass:"ml-3"})],1),t(U,{attrs:{title:e.$t("Settings.ControlTab.MoveDistancesEInMm"),"mobile-second-row":!0}},[t(Zs,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.ControlTab.SpeedEInMms"),"mobile-second-row":!0}},[t(Zs,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.ControlTab.EstimatedExtrusionInfo"),"sub-title":e.$t("Settings.ControlTab.EstimatedExtrusionInfoDescription"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.showEstimatedExtrusionInfo,callback:function(r){e.showEstimatedExtrusionInfo=r},expression:"showEstimatedExtrusionInfo"}})],1)],2)],1)],1)},NB=[];const Bv={};var VB=N(_h,jB,NB,!1,UB,null,null,null);function UB(e){for(let s in Bv)this[s]=Bv[s]}const BB=function(){return VB.exports}();var WB=Object.defineProperty,GB=Object.getOwnPropertyDescriptor,km=(e,s,t,r)=>{for(var i=r>1?void 0:r?GB(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&&WB(s,t,i),i};let Kn=class extends j(V){constructor(){super(...arguments),this.mdiFilter=cP,this.mdiFilterOff=uP,this.mdiPencil=xt,this.mdiDelete=Ye,this.mdiConsoleLine=ua,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)}};km([me("consoleHeight")],Kn.prototype,"consoleHeightChanged",1);km([Ze(500)],Kn.prototype,"updateConsoleHeight",1);Kn=km([O({components:{SettingsRow:U}})],Kn);var zB=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.form.bool?t(De,{attrs:{flat:""}},[t(Lr,{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(vt,[e._v(" "+e._s(e.form.id===null?e.$t("Settings.ConsoleTab.CreateHeadline"):e.$t("Settings.ConsoleTab.EditHeadline"))+" ")]),t(q,[t(U,{attrs:{title:e.$t("Settings.ConsoleTab.Name").toString()}},[t(re,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.ConsoleTab.Regex").toString()}},[t(Ai,{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(De,{attrs:{flat:""}},[t(q,[t("div",{staticClass:"d-flex align-center"},[t(v,{staticStyle:{opacity:"0.7"}},[e._v(e._s(e.mdiConsoleLine))]),t(vt,{staticClass:"mx-n2"},[e._v(" "+e._s(e.$t("Settings.ConsoleTab.Console"))+" ")]),t(E,{staticClass:"ml-3"})],1),t(U,{attrs:{title:e.$t("Settings.ConsoleTab.Direction").toString()}},[t(Le,{attrs:{items:e.availableDirections,"hide-details":"",outlined:"",dense:"",attach:""},model:{value:e.consoleDirection,callback:function(r){e.consoleDirection=r},expression:"consoleDirection"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.ConsoleTab.EntryStyle").toString()}},[t(Le,{attrs:{items:e.availableEntryStyles,"hide-details":"",outlined:"",dense:"",attach:""},model:{value:e.entryStyle,callback:function(r){e.entryStyle=r},expression:"entryStyle"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.ConsoleTab.Height").toString()}},[t(Nl,{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(vt,{staticClass:"mx-n2"},[e._v(" "+e._s(e.$t("Settings.ConsoleTab.Filters"))+" ")]),t(E,{staticClass:"ml-3"})],1),t(U,{attrs:{title:e.$t("Settings.ConsoleTab.HideTemperatures").toString(),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.hideWaitTemperatures,callback:function(r){e.hideWaitTemperatures=r},expression:"hideWaitTemperatures"}})],1),e.moonrakerComponents.includes("timelapse")?[t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.ConsoleTab.HideTimelapse").toString(),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.hideTimelapse,callback:function(r){e.hideTimelapse=r},expression:"hideTimelapse"}})],1)]:e._e(),t(E,{staticClass:"my-2"}),e._l(e.consoleFilters,function(r,i){return t("div",{key:i},[i?t(E,{staticClass:"my-2"}):e._e(),t(U,{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)},ZB=[];const Wv={};var qB=N(Kn,zB,ZB,!1,XB,null,null,null);function XB(e){for(let s in Wv)this[s]=Wv[s]}const YB=function(){return qB.exports}();var JB=Object.defineProperty,KB=Object.getOwnPropertyDescriptor,K2=(e,s,t,r)=>{for(var i=r>1?void 0:r?KB(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&&JB(s,t,i),i};let al=class extends j(V){constructor(){super(...arguments),this.mdiPencil=xt,this.mdiDelete=Ye}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(gt(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)}};K2([k({required:!0})],al.prototype,"preset",2);al=K2([O({components:{SettingsRow:U}})],al);var QB=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(U,{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)},eW=[];const Gv={};var tW=N(al,QB,eW,!1,sW,null,null,null);function sW(e){for(let s in Gv)this[s]=Gv[s]}const Q2=function(){return tW.exports}();var rW=Object.defineProperty,iW=Object.getOwnPropertyDescriptor,nW=(e,s,t,r)=>{for(var i=r>1?void 0:r?iW(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&&rW(s,t,i),i};let bh=class extends j(V){constructor(){super(...arguments),this.mdiPencil=xt}editCooldown(){this.$emit("edit")}};bh=nW([O({components:{SettingsRow:U}})],bh);var aW=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(U,{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)},oW=[];const zv={};var lW=N(bh,aW,oW,!1,cW,null,null,null);function cW(e){for(let s in zv)this[s]=zv[s]}const eC=function(){return lW.exports}();var uW=Object.defineProperty,dW=Object.getOwnPropertyDescriptor,tC=(e,s,t,r)=>{for(var i=r>1?void 0:r?dW(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&&uW(s,t,i),i};let ol=class extends j(V){constructor(){super(...arguments),this.mdiPencil=xt,this.mdiDelete=Ye,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 gt(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()}};tC([k({required:!0})],ol.prototype,"preset",2);ol=tC([O({components:{SettingsRow:U}})],ol);var hW=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(De,{attrs:{flat:""}},[t(Lr,{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(vt,[e._v(e._s(e.title))]),t(q,[e.boolInvalidMin?t(S,{staticClass:"mt-3"},[t(_,{staticClass:"py-0"},[t(dt,{attrs:{dense:"",text:"",type:"error"}},[e._v(e._s(e.$t("Settings.PresetsTab.PresetInfo")))])],1)],1):e._e(),t(U,{attrs:{title:e.$t("Settings.PresetsTab.Name")}},[t(re,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.converNameObject(i)}},[t(we,{staticClass:"shrink mt-0",attrs:{"hide-details":""},model:{value:r.bool,callback:function(n){e.$set(r,"bool",n)},expression:"value.bool"}}),t(re,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.PresetsTab.CustomGCode")}},[t(Ai,{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)},pW=[];const Zv={};var mW=N(ol,hW,pW,!1,fW,null,null,null);function fW(e){for(let s in Zv)this[s]=Zv[s]}const sC=function(){return mW.exports}();var gW=Object.defineProperty,vW=Object.getOwnPropertyDescriptor,_W=(e,s,t,r)=>{for(var i=r>1?void 0:r?vW(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&&gW(s,t,i),i};let yh=class extends j(V){constructor(){super(...arguments),this.mdiPencil=xt,this.mdiDelete=Ye,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}};yh=_W([O({components:{PresetsForm:sC,PresetsEntryCooldown:eC,PresetsEntry:Q2,SettingsRow:U}})],yh);var bW=Object.defineProperty,yW=Object.getOwnPropertyDescriptor,rC=(e,s,t,r)=>{for(var i=r>1?void 0:r?yW(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&&bW(s,t,i),i};let ll=class extends j(V){constructor(){super(...arguments),this.mdiPencil=xt,this.mdiDelete=Ye,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()}};rC([k({required:!0})],ll.prototype,"inputGcode",2);ll=rC([O({components:{SettingsRow:U}})],ll);var CW=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(De,{attrs:{flat:""}},[t(Lr,{on:{submit:function(r){return r.preventDefault(),e.saveCooldown.apply(null,arguments)}}},[t(vt,[e._v(e._s(e.$t("Settings.PresetsTab.EditCooldown")))]),t(q,[t(U,{attrs:{title:e.$t("Settings.PresetsTab.CustomGCode")}},[t(Ai,{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)},$W=[];const qv={};var xW=N(ll,CW,$W,!1,wW,null,null,null);function wW(e){for(let s in qv)this[s]=qv[s]}const SW=function(){return xW.exports}();var PW=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.boolForm?t(sC,{attrs:{preset:e.formPreset},on:{close:function(r){e.boolForm=!1}}}):e.boolFormCooldown?t(SW,{attrs:{"input-gcode":e.cooldownGcode},on:{close:function(r){e.boolFormCooldown=!1}}}):t(De,{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(E,{staticClass:"my-2"}):e._e(),t(Q2,{attrs:{preset:r},on:{edit:e.edit}})],1)}),e.presets.length?t(E,{staticClass:"my-2"}):e._e(),t(eC,{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)},TW=[];const Xv={};var DW=N(yh,PW,TW,!1,MW,null,null,null);function MW(e){for(let s in Xv)this[s]=Xv[s]}const EW=function(){return DW.exports}();var OW=Object.defineProperty,LW=Object.getOwnPropertyDescriptor,kW=(e,s,t,r)=>{for(var i=r>1?void 0:r?LW(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&&OW(s,t,i),i};let Ch=class extends j(V){constructor(){super(...arguments),this.mdiCheckboxMarkedCircle=Vb,this.mdiCancel=jb,this.mdiPencil=xt,this.mdiDelete=Ye,this.mdiAlertOutline=Sn,this.form={bool:!1,hostname:"",port:7125,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){return s.hostname+(s.port!==80?":"+s.port:"")}createPrinter(){this.form.hostname="",this.form.port=7125,this.form.id=null,this.form.namespace=null,this.form.bool=!0}storePrinter(){const s={hostname:this.form.hostname,port:this.form.port};this.$store.dispatch("gui/remoteprinters/store",{values:s}),this.form.hostname="",this.form.port=7125,this.form.id=null,this.form.bool=!1}editPrinter(s){var t;this.form.id=(t=s.id)!=null?t:null,this.form.hostname=s.hostname,this.form.port=s.port,this.form.bool=!0}updatePrinter(){const s={hostname:this.form.hostname,port:this.form.port};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.bool=!1}delPrinter(s){this.$store.dispatch("gui/remoteprinters/delete",s)}};Ch=kW([O({components:{SettingsRow:U}})],Ch);var AW=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.form.bool?t(De,{attrs:{flat:""}},[t(vt,[e._v(" "+e._s(e.form.id!==null?e.$t("Settings.RemotePrintersTab.EditPrinter"):e.$t("Settings.RemotePrintersTab.AddPrinter"))+" ")]),t(q,[t(U,{attrs:{title:e.$t("Settings.RemotePrintersTab.Hostname")}},[t(re,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.RemotePrintersTab.Port")}},[t(re,{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)],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")))]),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(De,{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(dt,{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(E,{staticClass:"my-2"}):e._e(),t(U,{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)},FW=[];const Yv={};var RW=N(Ch,AW,FW,!1,IW,null,null,null);function IW(e){for(let s in Yv)this[s]=Yv[s]}const HW=function(){return RW.exports}();var jW=Object.defineProperty,NW=Object.getOwnPropertyDescriptor,Vc=(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&&jW(s,t,i),i};let Ti=class extends j(V){constructor(){super(...arguments),this.mdiRestart=jr,this.mdiTimerOutline=WP,this.defaultLogoColor=$n,this.defaultPrimaryColor=pp,this.defaultBigThumbnailBackground=zt}get theme(){return this.$store.state.gui.uiSettings.theme}set theme(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.theme",value:s})}get themes(){return[{text:this.$t("Settings.UiSettingsTab.ThemeDark"),value:"dark"},{text:this.$t("Settings.UiSettingsTab.ThemeLight"),value:"light"}]}get logoColor(){return this.$store.state.gui.uiSettings.logo}set logoColor(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.logo",value:s})}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 confirmOnEmergencyStop(){return this.$store.state.gui.uiSettings.confirmOnEmergencyStop}set confirmOnEmergencyStop(s){this.$store.dispatch("gui/saveSetting",{name:"uiSettings.confirmOnEmergencyStop",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(){const s=this.powerDevices.findIndex(t=>t.device==="printer");return s===-1?"--":this.powerDevices[s].device}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 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)}};Vc([Ze(500)],Ti.prototype,"updateLogoColor",1);Vc([Ze(500)],Ti.prototype,"updatePrimaryColor",1);Vc([Ze(500)],Ti.prototype,"updateBigThumbnailBackground",1);Ti=Vc([O({components:{SettingsRow:U}})],Ti);var VW=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(De,{attrs:{flat:""}},[t(q,[t(U,{attrs:{title:e.$t("Settings.UiSettingsTab.Theme"),"sub-title":e.$t("Settings.UiSettingsTab.ThemeDescription")}},[t(Le,{staticClass:"mt-0",attrs:{items:e.themes,"hide-details":"",outlined:"",dense:""},model:{value:e.theme,callback:function(r){e.theme=r},expression:"theme"}})],1),t(E,{staticClass:"my-2"}),t(U,{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(ss,{attrs:{value:e.logoColor,"hide-mode-switch":"",mode:"rgba"},on:{"update:color":e.updateLogoColor}})],1)],1),t(E,{staticClass:"my-2"}),t(U,{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(ss,{attrs:{value:e.primaryColor,"hide-mode-switch":"",mode:"rgba"},on:{"update:color":e.updatePrimaryColor}})],1)],1),t(E,{staticClass:"my-2"}),t(U,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.UiSettingsTab.BoolBigThumbnail"),"sub-title":e.$t("Settings.UiSettingsTab.BoolBigThumbnailDescription"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.boolBigThumbnail,callback:function(r){e.boolBigThumbnail=r},expression:"boolBigThumbnail"}})],1),t(E,{staticClass:"my-2"}),t(U,{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))]}}])},[t(ss,{attrs:{value:e.bigThumbnailBackground,"hide-mode-switch":"",mode:"rgba"},on:{"update:color":e.updateBigThumbnailBackground}})],1)],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.UiSettingsTab.DisplayCANCEL_PRINT"),"sub-title":e.$t("Settings.UiSettingsTab.DisplayCANCEL_PRINTDescription"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.displayCancelPrint,callback:function(r){e.displayCancelPrint=r},expression:"displayCancelPrint"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.UiSettingsTab.LockSliders"),"sub-title":e.$t("Settings.UiSettingsTab.LockSlidersDescription"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.lockSliders,callback:function(r){e.lockSliders=r},expression:"lockSliders"}})],1),t(E,{staticClass:"my-2"}),t(jl,[t(U,{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(re,{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(E,{directives:[{name:"show",rawName:"v-show",value:e.lockSliders,expression:"lockSliders"}],staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.UiSettingsTab.ConfirmOnEmergencyStop"),"sub-title":e.$t("Settings.UiSettingsTab.ConfirmOnEmergencyStopDescription"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.confirmOnEmergencyStop,callback:function(r){e.confirmOnEmergencyStop=r},expression:"confirmOnEmergencyStop"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.UiSettingsTab.ConfirmOnPowerDeviceChange"),"sub-title":e.$t("Settings.UiSettingsTab.ConfirmOnPowerDeviceChangeDescription"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.confirmOnPowerDeviceChange,callback:function(r){e.confirmOnPowerDeviceChange=r},expression:"confirmOnPowerDeviceChange"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.UiSettingsTab.NavigationStyle"),"sub-title":e.$t("Settings.UiSettingsTab.NavigationStyleDescription")}},[t(Le,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.UiSettingsTab.DefaultNavigationState"),"sub-title":e.$t("Settings.UiSettingsTab.DefaultNavigationStateDescription")}},[t(Le,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.UiSettingsTab.BoolHideUploadAndPrintButton"),"sub-title":e.$t("Settings.UiSettingsTab.BoolHideUploadAndPrintButtonDescription"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.boolHideUploadAndPrintButton,callback:function(r){e.boolHideUploadAndPrintButton=r},expression:"boolHideUploadAndPrintButton"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.UiSettingsTab.PowerDeviceName"),"sub-title":e.$t("Settings.UiSettingsTab.PowerDeviceNameDescription"),"dynamic-slot-width":!0}},[t(Le,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.UiSettingsTab.HideSaveConfigButtonForBedMesh"),"sub-title":e.$t("Settings.UiSettingsTab.HideSaveConfigButtonForBedMeshDescription"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.hideSaveConfigForBedMash,callback:function(r){e.hideSaveConfigForBedMash=r},expression:"hideSaveConfigForBedMash"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.UiSettingsTab.DisableFanAnimation"),"sub-title":e.$t("Settings.UiSettingsTab.DisableFanAnimationDescription"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.disableFanAnimation,callback:function(r){e.disableFanAnimation=r},expression:"disableFanAnimation"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.UiSettingsTab.ManualProbeDialog"),"sub-title":e.$t("Settings.UiSettingsTab.ManualProbeDialogDescription"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.boolManualProbeDialog,callback:function(r){e.boolManualProbeDialog=r},expression:"boolManualProbeDialog"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.UiSettingsTab.BedScrewsDialog"),"sub-title":e.$t("Settings.UiSettingsTab.BedScrewsDialogDescription"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.boolBedScrewsDialog,callback:function(r){e.boolBedScrewsDialog=r},expression:"boolBedScrewsDialog"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.UiSettingsTab.ScrewsTiltAdjustDialog"),"sub-title":e.$t("Settings.UiSettingsTab.ScrewsTiltAdjustDialogDescription"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.boolScrewsTiltAdjustDialog,callback:function(r){e.boolScrewsTiltAdjustDialog=r},expression:"boolScrewsTiltAdjustDialog"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.UiSettingsTab.TempchartHeight"),"sub-title":e.$t("Settings.UiSettingsTab.TempchartHeightDescription")}},[t(Nl,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.UiSettingsTab.HideUpdateWarnings"),"sub-title":e.$t("Settings.UiSettingsTab.HideUpdateWarningsDescription"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.hideUpdateWarnings,callback:function(r){e.hideUpdateWarnings=r},expression:"hideUpdateWarnings"}})],1)],1)],1)],1)},UW=[];const Jv={};var BW=N(Ti,VW,UW,!1,WW,null,null,null);function WW(e){for(let s in Jv)this[s]=Jv[s]}const GW=function(){return BW.exports}();var zW=Object.defineProperty,ZW=Object.getOwnPropertyDescriptor,Am=(e,s,t,r)=>{for(var i=r>1?void 0:r?ZW(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&&zW(s,t,i),i};let Qn=class extends j(Is){constructor(){super(...arguments),this.mdiInformation=At,this.mdiDragVertical=zl}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?fp:mp}};Am([k({type:String,required:!0})],Qn.prototype,"name",2);Am([k({type:Boolean,required:!0})],Qn.prototype,"visible",2);Qn=Am([O({components:{draggable:Ui}})],Qn);var qW=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(K,[t(S,[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)},XW=[];const Kv={};var YW=N(Qn,qW,XW,!1,JW,"bd581aaa",null,null);function JW(e){for(let s in Kv)this[s]=Kv[s]}const KW=function(){return YW.exports}();var QW=Object.defineProperty,eG=Object.getOwnPropertyDescriptor,Fm=(e,s,t,r)=>{for(var i=r>1?void 0:r?eG(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&&QW(s,t,i),i};let ea=class extends j(Is){constructor(){super(...arguments),this.mdiInformation=At,this.mdiLock=fP}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}))}};Fm([k({type:String,required:!0})],ea.prototype,"viewportName",2);Fm([k({type:Number,required:!1,default:1})],ea.prototype,"column",2);ea=Fm([O({components:{SettingsDashboardSortableItem:KW,draggable:Ui}})],ea);var tG=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(De,{staticClass:"mx-auto fill-height",attrs:{"max-width":"300",tile:""}},[t(Oe,{staticClass:"fill-height",attrs:{dense:""}},[e.column<2?t(K,[t(S,[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)},sG=[];const Qv={};var rG=N(ea,tG,sG,!1,iG,"021a8703",null,null);function iG(e){for(let s in Qv)this[s]=Qv[s]}const Uc=function(){return rG.exports}();var nG=Object.defineProperty,aG=Object.getOwnPropertyDescriptor,oG=(e,s,t,r)=>{for(var i=r>1?void 0:r?aG(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&&nG(s,t,i),i};let $h=class extends j(Is){resetLayout(){this.$store.dispatch("gui/resetLayout","mobileLayout")}};$h=oG([O({components:{SettingsDashboardSortable:Uc}})],$h);var lG=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(De,{attrs:{flat:""}},[t(q,[t(S,[t(_,[t("settings-dashboard-sortable",{attrs:{"viewport-name":"mobile",column:0}})],1)],1),t(S,[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)},cG=[];const e_={};var uG=N($h,lG,cG,!1,dG,null,null,null);function dG(e){for(let s in e_)this[s]=e_[s]}const hG=function(){return uG.exports}();var pG=Object.defineProperty,mG=Object.getOwnPropertyDescriptor,fG=(e,s,t,r)=>{for(var i=r>1?void 0:r?mG(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&&pG(s,t,i),i};let xh=class extends j(Is){resetLayout(){this.$store.dispatch("gui/resetLayout","tabletLayout1"),this.$store.dispatch("gui/resetLayout","tabletLayout2")}};xh=fG([O({components:{SettingsDashboardSortable:Uc}})],xh);var gG=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(De,{attrs:{flat:""}},[t(q,[t(S,[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(S,[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)},vG=[];const t_={};var _G=N(xh,gG,vG,!1,bG,null,null,null);function bG(e){for(let s in t_)this[s]=t_[s]}const yG=function(){return _G.exports}();var CG=Object.defineProperty,$G=Object.getOwnPropertyDescriptor,xG=(e,s,t,r)=>{for(var i=r>1?void 0:r?$G(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&&CG(s,t,i),i};let wh=class extends j(Is){resetLayout(){this.$store.dispatch("gui/resetLayout","desktopLayout1"),this.$store.dispatch("gui/resetLayout","desktopLayout2")}};wh=xG([O({components:{SettingsDashboardSortable:Uc}})],wh);var wG=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(De,{attrs:{flat:""}},[t(q,[t(S,[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(S,[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)},SG=[];const s_={};var PG=N(wh,wG,SG,!1,TG,null,null,null);function TG(e){for(let s in s_)this[s]=s_[s]}const DG=function(){return PG.exports}();var MG=Object.defineProperty,EG=Object.getOwnPropertyDescriptor,OG=(e,s,t,r)=>{for(var i=r>1?void 0:r?EG(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&&MG(s,t,i),i};let Sh=class extends j(Is){resetLayout(){this.$store.dispatch("gui/resetLayout","widescreenLayout1"),this.$store.dispatch("gui/resetLayout","widescreenLayout2"),this.$store.dispatch("gui/resetLayout","widescreenLayout3")}};Sh=OG([O({components:{SettingsDashboardSortable:Uc}})],Sh);var LG=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(De,{attrs:{flat:""}},[t(q,[t(S,[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(S,[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)},kG=[];const r_={};var AG=N(Sh,LG,kG,!1,FG,null,null,null);function FG(e){for(let s in r_)this[s]=r_[s]}const RG=function(){return AG.exports}();var IG=Object.defineProperty,HG=Object.getOwnPropertyDescriptor,jG=(e,s,t,r)=>{for(var i=r>1?void 0:r?HG(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 Ph=class extends j(V){constructor(){super(...arguments),this.mdiCellphone=HS,this.mdiTablet=VP,this.mdiMonitorDashboard=Pp,this.mdiMonitorScreenshot=yP,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}};Ph=jG([O({components:{SettingsDashboardTabMobile:hG,SettingsDashboardTabTablet:yG,SettingsDashboardTabDesktop:DG,SettingsDashboardTabWidescreen:RG}})],Ph);var NG=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(De,{attrs:{flat:""}},[t(q,[t(S,[t(_,{staticClass:"text-center"},[t(ho,{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(S,[t(_,{staticClass:"dashboard-rows-container"},[t(e.currentTab,{tag:"component"})],1)],1)],1)],1)},VG=[];const i_={};var UG=N(Ph,NG,VG,!1,BG,"50943ad9",null,null);function BG(e){for(let s in i_)this[s]=i_[s]}const WG=function(){return UG.exports}();var GG=Object.defineProperty,zG=Object.getOwnPropertyDescriptor,Rm=(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&&GG(s,t,i),i};let ta=class extends j(V){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.maxFeed0||"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(E,{staticClass:"my-2"}),t(U,{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(ss,{attrs:{value:e.maxFeedColor,"hide-mode-switch":"",mode:"rgba"},on:{"update:color":function(r){return e.updateColorValue("maxFeedColor",r)}}})],1),t(re,{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)},qG=[];const n_={};var XG=N(ta,ZG,qG,!1,YG,null,null,null);function YG(e){for(let s in n_)this[s]=n_[s]}const JG=function(){return XG.exports}();var KG=Object.defineProperty,QG=Object.getOwnPropertyDescriptor,ez=(e,s,t,r)=>{for(var i=r>1?void 0:r?QG(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&&KG(s,t,i),i};let Th=class extends j(V){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=ez([O({components:{SettingsRow:U}})],Th);var tz=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(De,{attrs:{flat:""}},[t(q,[t(U,{attrs:{title:e.$t("Settings.EditorTab.UseEscToClose"),"sub-title":e.$t("Settings.EditorTab.UseEscToCloseDescription"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.escToClose,callback:function(r){e.escToClose=r},expression:"escToClose"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.EditorTab.ConfirmUnsavedChanges"),"sub-title":e.$t("Settings.EditorTab.ConfirmUnsavedChangesDescription"),"dynamic-slot-width":!0}},[t(Te,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.confirmUnsavedChanges,callback:function(r){e.confirmUnsavedChanges=r},expression:"confirmUnsavedChanges"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.EditorTab.TabSize"),"sub-title":e.$t("Settings.EditorTab.TabSizeDescription"),"dynamic-slot-width":!0}},[t(Le,{attrs:{items:e.tabSizes,"hide-details":"",outlined:"",dense:"",attached:""},model:{value:e.tabSize,callback:function(r){e.tabSize=r},expression:"tabSize"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.EditorTab.KlipperRestartMethod"),"sub-title":e.$t("Settings.EditorTab.KlipperRestartMethodDescription")}},[t(Le,{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)},sz=[];const a_={};var rz=N(Th,tz,sz,!1,iz,null,null,null);function iz(e){for(let s in a_)this[s]=a_[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 Dh=class extends j(V){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 cameraOptions(){const s=this.$store.getters["gui/webcams/getWebcams"],t=[];return s.filter(r=>r.snapshot_url!=="").forEach(r=>{t.push({text:r.name,value:r.name})}),$t(t,"text")}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){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){this.$store.dispatch("server/timelapse/saveSetting",{park_custom_pos_x:s})}get park_custom_pos_y(){return this.$store.state.server.timelapse.settings.park_custom_pos_y}set park_custom_pos_y(s){this.$store.dispatch("server/timelapse/saveSetting",{park_custom_pos_y:s})}get park_custom_pos_dz(){return this.$store.state.server.timelapse.settings.park_custom_pos_dz}set park_custom_pos_dz(s){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){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){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){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){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){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){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){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){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){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){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){this.$store.dispatch("server/timelapse/saveSetting",{variable_fps_max:s})}get duplicatelastframe(){return this.$store.state.server.timelapse.settings.duplicatelastframe}set duplicatelastframe(s){this.$store.dispatch("server/timelapse/saveSetting",{duplicatelastframe:s})}get camera(){return 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})}};Dh=lz([O({components:{SettingsRow:U}})],Dh);var cz=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(De,{attrs:{flat:""}},[t(q,[t("h3",{staticClass:"text-h5 mb-3"},[e._v(e._s(e.$t("Settings.TimelapseTab.General")))]),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.Enabled"),"sub-title":e.$t("Settings.TimelapseTab.EnabledDescription"),"dynamic-slot-width":!0}},[t(Te,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.Autorender"),"sub-title":e.$t("Settings.TimelapseTab.AutorenderDescription"),"dynamic-slot-width":!0}},[t(Te,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.Camera"),"sub-title":e.$t("Settings.TimelapseTab.CameraDescription")}},[t(Le,{attrs:{items:e.cameraOptions,"hide-details":"",outlined:"",dense:"",disabled:e.blockedsettings.includes("camera")||e.blockedsettings.includes("snapshoturl")},model:{value:e.camera,callback:function(r){e.camera=r},expression:"camera"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.Mode"),"sub-title":e.$t("Settings.TimelapseTab.ModeDescription")}},[t(Le,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.HyperlapseCycle"),"sub-title":e.$t("Settings.TimelapseTab.HyperlapseCycleDescription")}},[t(re,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.PreviewImage"),"sub-title":e.$t("Settings.TimelapseTab.PreviewImageDescription"),"dynamic-slot-width":!0}},[t(Te,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.SaveFrames"),"sub-title":e.$t("Settings.TimelapseTab.SaveFramesDescription"),"dynamic-slot-width":!0}},[t(Te,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.StreamDelayCompensation"),"sub-title":e.$t("Settings.TimelapseTab.StreamDelayCompensationDescription")}},[t(re,{attrs:{type:"number",suffix:"s",step:"0.01","hide-details":"auto",outlined:"",dense:"",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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.GcodeVerbose"),"sub-title":e.$t("Settings.TimelapseTab.GcodeVerboseDescription"),"dynamic-slot-width":!0}},[t(Te,{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(E,{staticClass:"my-2"}),t("h3",{staticClass:"text-h5 mt-6 mb-3"},[e._v(e._s(e.$t("Settings.TimelapseTab.Parkhead")))]),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.Parkhead"),"sub-title":e.$t("Settings.TimelapseTab.ParkheadDescription"),"dynamic-slot-width":!0}},[t(Te,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.Parkpos"),"sub-title":e.$t("Settings.TimelapseTab.ParkposDescription")}},[t(Le,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.PosX"),"sub-title":e.$t("Settings.TimelapseTab.PosXDescription")}},[t(re,{attrs:{type:"number",suffix:"mm","hide-details":"auto",outlined:"",dense:"",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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.PosY"),"sub-title":e.$t("Settings.TimelapseTab.PosYDescription")}},[t(re,{attrs:{type:"number",suffix:"mm","hide-details":"auto",outlined:"",dense:"",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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.PosDZ"),"sub-title":e.$t("Settings.TimelapseTab.PosDZDescription")}},[t(re,{attrs:{type:"number",suffix:"mm","hide-details":"auto",outlined:"",dense:"",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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.TravelSpeed"),"sub-title":e.$t("Settings.TimelapseTab.TravelSpeedDescription")}},[t(re,{attrs:{type:"number",suffix:"mm/s","hide-details":"auto",outlined:"",dense:"",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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.FwRetract"),"sub-title":e.$t("Settings.TimelapseTab.FwRetractDescription"),"dynamic-slot-width":!0}},[t(Te,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.RetractSpeed"),"sub-title":e.$t("Settings.TimelapseTab.RetractSpeedDescription")}},[t(re,{attrs:{type:"number",suffix:"mm/s","hide-details":"auto",outlined:"",dense:"",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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.RetractDistance"),"sub-title":e.$t("Settings.TimelapseTab.RetractDistanceDescription")}},[t(re,{attrs:{type:"number",suffix:"mm","hide-details":"auto",outlined:"",dense:"",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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.UnretractSpeed"),"sub-title":e.$t("Settings.TimelapseTab.UnretractSpeedDescription")}},[t(re,{attrs:{type:"number",suffix:"mm/s","hide-details":"auto",outlined:"",dense:"",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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.UnretractDistance"),"sub-title":e.$t("Settings.TimelapseTab.UnretractDistanceDescription")}},[t(re,{attrs:{type:"number",suffix:"mm","hide-details":"auto",outlined:"",dense:"",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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.ParkTime"),"sub-title":e.$t("Settings.TimelapseTab.ParkTimeDescription")}},[t(re,{attrs:{type:"number",suffix:"s","hide-details":"auto",step:"0.1",outlined:"",dense:"",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(E,{staticClass:"my-2"}),t("h3",{staticClass:"text-h5 mt-6 mb-3"},[e._v(e._s(e.$t("Settings.TimelapseTab.RenderingOptions")))]),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.VariableFps"),"sub-title":e.$t("Settings.TimelapseTab.VariableFpsDescription"),"dynamic-slot-width":!0}},[t(Te,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.Targetlength"),"sub-title":e.$t("Settings.TimelapseTab.TargetlengthDescription")}},[t(re,{attrs:{type:"number",suffix:"s","hide-details":"auto",outlined:"",dense:"",disabled:e.blockedsettings.includes("targetlength"),"hide-spin-buttons":""},model:{value:e.targetlength,callback:function(r){e.targetlength=r},expression:"targetlength"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.VariableFpsMin"),"sub-title":e.$t("Settings.TimelapseTab.VariableFpsMinDescription")}},[t(re,{attrs:{type:"number",suffix:"frames","hide-details":"auto",outlined:"",dense:"",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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.VariableFpsMax"),"sub-title":e.$t("Settings.TimelapseTab.VariableFpsMaxDescription")}},[t(re,{attrs:{type:"number",suffix:"frames","hide-details":"auto",outlined:"",dense:"",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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.OutputFramerate"),"sub-title":e.$t("Settings.TimelapseTab.OutputFramerateDescription")}},[t(re,{attrs:{type:"number",suffix:"frames","hide-details":"auto",outlined:"",dense:"",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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.duplicatelastframe"),"sub-title":e.$t("Settings.TimelapseTab.duplicatelastframeDescription")}},[t(re,{attrs:{type:"number","hide-details":"auto",outlined:"",dense:"",disabled:e.blockedsettings.includes("duplicatelastframe"),"hide-spin-buttons":""},model:{value:e.duplicatelastframe,callback:function(r){e.duplicatelastframe=r},expression:"duplicatelastframe"}})],1),t(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.ConstantRateFactor"),"sub-title":e.$t("Settings.TimelapseTab.ConstantRateFactorDescription")}},[t(re,{attrs:{type:"number","hide-details":"auto",outlined:"",dense:"",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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.Pixelformat"),"sub-title":e.$t("Settings.TimelapseTab.PixelformatDescription")}},[t(re,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.TimeFormatCode"),"sub-title":e.$t("Settings.TimelapseTab.TimeFormatCodeDescription")}},[t(re,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.TimelapseTab.Extraoutputparams"),"sub-title":e.$t("Settings.TimelapseTab.ExtraoutputparamsDescription")}},[t(re,{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)},uz=[];const o_={};var dz=N(Dh,cz,uz,!1,hz,null,null,null);function hz(e){for(let s in o_)this[s]=o_[s]}const pz=function(){return dz.exports}();var mz=Object.defineProperty,fz=Object.getOwnPropertyDescriptor,iC=(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&&mz(s,t,i),i};let cl=class extends j(wi,V,kt){constructor(){super(...arguments),this.mdiDragVertical=zl}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?fp:mp}changeVisibility(){this.$store.dispatch("gui/navigation/changeVisibility",this.naviPoint)}};iC([k({type:Object,required:!0})],cl.prototype,"naviPoint",2);cl=iC([O({components:{SettingsRow:U,draggable:Ui}})],cl);var gz=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(S,{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(U,{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)},vz=[];const l_={};var _z=N(cl,gz,vz,!1,bz,null,null,null);function bz(e){for(let s in l_)this[s]=l_[s]}const nC=function(){return _z.exports}();var yz=Object.defineProperty,Cz=Object.getOwnPropertyDescriptor,$z=(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 Mh=class extends j(wi,V,kt){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")}};Mh=$z([O({components:{SettingsNavigationTabItem:nC,SettingsRow:U,draggable:Ui}})],Mh);var xz=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(nC,{key:i,staticClass:"my-2 mx-0",style:e.draggableBgStyle,attrs:{"navi-point":r}})}),1)],1)],1)},wz=[];const c_={};var Sz=N(Mh,xz,wz,!1,Pz,null,null,null);function Pz(e){for(let s in c_)this[s]=c_[s]}const Tz=function(){return Sz.exports}();var Dz=Object.defineProperty,Mz=Object.getOwnPropertyDescriptor,aC=(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&&Dz(s,t,i),i};let ul=class extends j(V){constructor(){super(...arguments),this.mdiDelete=Ye,this.mdiPalette=Kl,this.mdiPencil=xt,this.convertName=gt,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),$t(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}};aC([k({type:Object,default:null})],ul.prototype,"light",2);ul=aC([O({components:{SettingsRow:U}})],ul);var Ez=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(U,{attrs:{title:e.$t("Settings.MiscellaneousTab.Name").toString()}},[t(re,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.MiscellaneousTab.Start").toString(),"sub-title":e.$t("Settings.MiscellaneousTab.StartDescription").toString()}},[t(re,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.MiscellaneousTab.End").toString(),"sub-title":e.$t("Settings.MiscellaneousTab.EndDescription").toString()}},[t(re,{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(E,{staticClass:"my-2"}):e._e(),t(U,{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(S,[t(_,[t("p",{staticClass:"mb-0 text-center font-italic"},[e._v(" "+e._s(e.$t("Settings.MiscellaneousTab.NoGroupFound"))+" ")])])],1)]]:[t(S,[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)},Oz=[];const u_={};var Lz=N(ul,Ez,Oz,!1,kz,null,null,null);function kz(e){for(let s in u_)this[s]=u_[s]}const oC=function(){return Lz.exports}();var Az=Object.defineProperty,Fz=Object.getOwnPropertyDescriptor,Bc=(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&&Az(s,t,i),i};let Di=class extends j(V){constructor(){super(...arguments),this.mdiDelete=Ye,this.mdiPencil=xt,this.convertName=gt,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),$t(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:jt.ui.Slider,options:{sliderType:"red"}})),this.existGreen&&(e==null||e.layout.push({component:jt.ui.Slider,options:{sliderType:"green"}})),this.existBlue&&(e==null||e.layout.push({component:jt.ui.Slider,options:{sliderType:"blue"}})),this.existRed&&this.existGreen&&this.existBlue&&(e.layout=[{component:jt.ui.Wheel},{component:jt.ui.Slider,options:{sliderType:"value"}}]),e}get colorPickerWhiteOptions(){return{width:200,margin:15,layout:[{component:jt.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}};Bc([k({type:Object,default:null})],Di.prototype,"light",2);Bc([Ze({time:250})],Di.prototype,"onColorRGBChanged",1);Bc([Ze({time:250})],Di.prototype,"onColorWhiteChanged",1);Di=Bc([O({components:{SettingsRow:U}})],Di);var Rz=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(U,{attrs:{title:e.$t("Settings.MiscellaneousTab.Name").toString()}},[t(re,{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(E,{staticClass:"my-2"}),t(U,{attrs:{title:e.$t("Settings.MiscellaneousTab.Color").toString()}},[t(S,[t(_,{staticClass:"text-center"},[t(Ln,{attrs:{color:e.colorRGB,options:e.colorPickerOptions},on:{"update:color":e.onColorRGBChanged}}),e.existWhite?t(Ln,{staticClass:"mt-3",attrs:{color:e.colorRGBW,options:e.colorPickerWhiteOptions},on:{"update:color":e.onColorWhiteChanged}}):e._e()],1),t(_,[e.existRed?t(S,[t(_,[t(Ie,{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(S,[t(_,[t(Ie,{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(S,[t(_,[t(Ie,{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(S,[t(_,[t(Ie,{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(E,{staticClass:"my-2"}):e._e(),t(U,{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(S,[t(_,[t("p",{staticClass:"mb-0 text-center font-italic"},[e._v(" "+e._s(e.$t("Settings.MiscellaneousTab.NoPresetFound"))+" ")])])],1)]]:[t(S,[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)},Iz=[];const d_={};var Hz=N(Di,Rz,Iz,!1,jz,null,null,null);function jz(e){for(let s in d_)this[s]=d_[s]}const lC=function(){return Hz.exports}();var Nz=Object.defineProperty,Vz=Object.getOwnPropertyDescriptor,Uz=(e,s,t,r)=>{for(var i=r>1?void 0:r?Vz(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 Eh=class extends j(V){constructor(){super(...arguments),this.mdiDelete=Ye,this.mdiPalette=Kl,this.mdiPencil=xt,this.convertName=gt,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)}};Eh=Uz([O({components:{SettingsRow:U,SettingsMiscellaneousTabLightGroups:oC,SettingsMiscellaneousTabLightPresets:lC}})],Eh);var Bz=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.editLightGroupObject?t(oC,{attrs:{light:e.editLightGroupObject},on:{close:function(r){e.editLightGroupObject=null}}}):e.editLightPresetObject?t(lC,{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(E,{staticClass:"my-2"}):e._e(),t(U,{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(S,[t(_,[t("p",{staticClass:"mb-0 text-center font-italic"},[e._v(e._s(e.$t("Settings.MiscellaneousTab.NoDevicesFound")))])])],1)]],2)],1)},Wz=[];const h_={};var Gz=N(Eh,Bz,Wz,!1,zz,null,null,null);function zz(e){for(let s in h_)this[s]=h_[s]}const Zz=function(){return Gz.exports}();var qz=Object.defineProperty,Xz=Object.getOwnPropertyDescriptor,cC=(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&&qz(s,t,i),i};let dl=class extends j(V){constructor(){super(...arguments),this.mdiGrid=ql}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}};cC([me("colorScheme")],dl.prototype,"colorSchemeChanged",1);dl=cC([O({components:{Panel:Z,SettingsRow:U}})],dl);var Yz=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(De,{attrs:{flat:""}},[t(q,[t("div",{staticClass:"d-flex align-center"},[t(v,{staticStyle:{opacity:"0.7"}},[e._v(e._s(e.mdiGrid))]),t(vt,{staticClass:"mx-n2"},[e._v(" "+e._s(e.$t("Settings.HeightmapTab.Heightmap"))+" ")]),t(E,{staticClass:"ml-3"})],1),t(U,{attrs:{title:e.$t("Settings.HeightmapTab.ColorSchemes")}},[t(Le,{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)},Jz=[];const p_={};var Kz=N(dl,Yz,Jz,!1,Qz,null,null,null);function Qz(e){for(let s in p_)this[s]=p_[s]}const eZ=function(){return Kz.exports}();var tZ=Object.defineProperty,sZ=Object.getOwnPropertyDescriptor,uC=(e,s,t,r)=>{for(var i=r>1?void 0:r?sZ(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 hl=class extends j(V){constructor(){super(...arguments),this.showSettings=!1,this.activeTab="general",this.mdiCloseThick=Ce,this.mdiCogs=qS}get tabTitles(){const e=[{icon:Us,name:"general",title:this.$t("Settings.GeneralTab.General")},{icon:Kl,name:"ui-settings",title:this.$t("Settings.UiSettingsTab.UiSettings")},{icon:Pp,name:"dashboard",title:this.$t("Settings.DashboardTab.Dashboard")},{icon:ji,name:"webcams",title:this.$t("Settings.WebcamsTab.Webcams")},{icon:Tn,name:"macros",title:this.$t("Settings.MacrosTab.Macros")},{icon:qP,name:"control",title:this.$t("Settings.ControlTab.Control")},{icon:ua,name:"console",title:this.$t("Settings.ConsoleTab.Console")},{icon:Ri,name:"presets",title:this.$t("Settings.PresetsTab.PreheatPresets")},{icon:ha,name:"remote-printers",title:this.$t("Settings.RemotePrintersTab.RemotePrinters")},{icon:ec,name:"g-code-viewer",title:this.$t("Settings.GCodeViewerTab.GCodeViewer")},{icon:da,name:"editor",title:this.$t("Settings.EditorTab.Editor")},{icon:_p,name:"miscellaneous",title:this.$t("Settings.MiscellaneousTab.Miscellaneous")},{icon:gP,name:"navigation",title:this.$t("Settings.NavigationTab.Navigation")},{icon:ql,name:"heightmap",title:this.$t("Settings.HeightmapTab.Heightmap")}];return this.moonrakerComponents.includes("timelapse")&&e.push({icon:_0,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 ri?1:0})}activeTabWatch(){this.scrollToTop()}scrollToTop(){if(this.$refs.settingsScroll){const e=this.$refs.settingsScroll.osInstance();e==null||e.scroll({y:"0%"})}}};uC([me("activeTab")],hl.prototype,"activeTabWatch",1);hl=uC([O({components:{Panel:Z,SettingsUiSettingsTab:GW,SettingsRemotePrintersTab:HW,SettingsPresetsTab:EW,SettingsConsoleTab:YB,SettingsControlTab:BB,SettingsMacrosTab:FB,SettingsWebcamsTab:mB,SettingsGeneralTab:qU,SettingsDashboardTab:WG,SettingsGCodeViewerTab:JG,SettingsEditorTab:nz,SettingsTimelapseTab:pz,SettingsMiscellaneousTab:Zz,SettingsNavigationTab:Tz,SettingsHeightmapTab:eZ}})],hl);var rZ=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(Z,{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(Bu,{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(mn,{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(S,{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(Bu,{attrs:{vertical:!0},model:{value:e.activeTab,callback:function(r){e.activeTab=r},expression:"activeTab"}},e._l(e.tabTitles,function(r,i){return t(mn,{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)},iZ=[];const m_={};var nZ=N(hl,rZ,iZ,!1,aZ,"0df340c4",null,null);function aZ(e){for(let s in m_)this[s]=m_[s]}const dC=function(){return nZ.exports}();/*! * vue-router v3.6.5 * (c) 2022 Evan You * @license MIT */function rs(e,s){for(var t in s)e[t]=s[t];return e}var oZ=/[!'()*]/g,lZ=function(e){return"%"+e.charCodeAt(0).toString(16)},cZ=/%2C/g,Jr=function(e){return encodeURIComponent(e).replace(oZ,lZ).replace(cZ,",")};function Oh(e){try{return decodeURIComponent(e)}catch{}return e}function uZ(e,s,t){s===void 0&&(s={});var r=t||dZ,i;try{i=r(e||"")}catch{i={}}for(var n in s){var a=s[n];i[n]=Array.isArray(a)?a.map(f_):f_(a)}return i}var f_=function(e){return e==null||typeof e=="object"?e:String(e)};function dZ(e){var s={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(t){var r=t.replace(/\+/g," ").split("="),i=Oh(r.shift()),n=r.length>0?Oh(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 hZ(e){var s=e?Object.keys(e).map(function(t){var r=e[t];if(r===void 0)return"";if(r===null)return Jr(t);if(Array.isArray(r)){var i=[];return r.forEach(function(n){n!==void 0&&(n===null?i.push(Jr(t)):i.push(Jr(t)+"="+Jr(n)))}),i.join("&")}return Jr(t)+"="+Jr(r)}).filter(function(t){return t.length>0}).join("&"):null;return s?"?"+s:""}var pl=/\/?$/;function ml(e,s,t,r){var i=r&&r.options.stringifyQuery,n=s.query||{};try{n=Lh(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:g_(s,i),matched:e?pZ(e):[]};return t&&(a.redirectedFrom=g_(t,i)),Object.freeze(a)}function Lh(e){if(Array.isArray(e))return e.map(Lh);if(e&&typeof e=="object"){var s={};for(var t in e)s[t]=Lh(e[t]);return s}else return e}var mr=ml(null,{path:"/"});function pZ(e){for(var s=[];e;)s.unshift(e),e=e.parent;return s}function g_(e,s){var t=e.path,r=e.query;r===void 0&&(r={});var i=e.hash;i===void 0&&(i="");var n=s||hZ;return(t||"/")+n(r)+i}function hC(e,s,t){return s===mr?e===s:s?e.path&&s.path?e.path.replace(pl,"")===s.path.replace(pl,"")&&(t||e.hash===s.hash&&ro(e.query,s.query)):e.name&&s.name?e.name===s.name&&(t||e.hash===s.hash&&ro(e.query,s.query)&&ro(e.params,s.params)):!1:!1}function ro(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"?ro(a,l):String(a)===String(l)})}function mZ(e,s){return e.path.replace(pl,"/").indexOf(s.path.replace(pl,"/"))===0&&(!s.hash||e.hash===s.hash)&&fZ(e.query,s.query)}function fZ(e,s){for(var t in s)if(!(t in e))return!1;return!0}function pC(e){for(var s=0;s=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 rr(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var fl=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},zi=vC,bZ=Im,yZ=wZ,CZ=fC,$Z=gC,xZ=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Im(e,s){for(var t=[],r=0,i=0,n="",a=s&&s.delimiter||"/",o;(o=xZ.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],h=o[2],p=o[3],m=o[4],f=o[5],b=o[6],C=o[7];n&&(t.push(n),n="");var w=h!=null&&d!=null&&d!==h,M=b==="+"||b==="*",H=b==="?"||b==="*",A=o[2]||a,$=m||f;t.push({name:p||r++,prefix:h||"",delimiter:A,optional:H,repeat:M,partial:w,asterisk:!!C,pattern:$?TZ($):C?".*":"[^"+io(A)+"]+?"})}return i1||!A.length)return A.length===0?s():s("span",{},A)}if(this.tag==="a")H.on=M,H.attrs={href:l,"aria-current":C};else{var $=_C(this.$slots.default);if($){$.isStatic=!1;var T=$.data=rs({},$.data);T.on=T.on||{};for(var I in T.on){var R=T.on[I];I in M&&(T.on[I]=Array.isArray(R)?R:[R])}for(var W in M)W in T.on?T.on[W].push(M[W]):T.on[W]=w;var B=$.data.attrs=rs({},$.data.attrs);B.href=l,B["aria-current"]=C}else H.on=M}return s(this.tag,H,this.$slots.default)}};function y_(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 _C(e){if(e){for(var s,t=0;t-1&&(b.params[H]=m.params[H]);return b.path=no(w.path,b.params),h(w,b,f)}else if(b.path){b.params={};for(var A=0;A-1}function zc(e,s){return _l(e)&&e._isRouter&&(s==null||e.type===s)}function P_(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 XZ(e){return function(s,t,r){var i=!1,n=0,a=null;SC(e,function(o,l,c,u){if(typeof o=="function"&&o.cid===void 0){i=!0,n++;var d=T_(function(f){JZ(f)&&(f=f.default),o.resolved=typeof f=="function"?f:gl.extend(f),c.components[u]=f,n--,n<=0&&r()}),h=T_(function(f){var b="Failed to resolve async component "+u+": "+f;a||(a=_l(f)?f:new Error(b),r(a))}),p;try{p=o(d,h)}catch(f){h(f)}if(p)if(typeof p.then=="function")p.then(d,h);else{var m=p.component;m&&typeof m.then=="function"&&m.then(d,h)}}}),i||r()}}function SC(e,s){return PC(e.map(function(t){return Object.keys(t.components).map(function(r){return s(t.components[r],t.instances[r],t,r)})}))}function PC(e){return Array.prototype.concat.apply([],e)}var YZ=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function JZ(e){return e.__esModule||YZ&&e[Symbol.toStringTag]==="Module"}function T_(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 us=function(s,t){this.router=s,this.base=KZ(t),this.current=mr,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};us.prototype.listen=function(s){this.cb=s};us.prototype.onReady=function(s,t){this.ready?s():(this.readyCbs.push(s),t&&this.readyErrorCbs.push(t))};us.prototype.onError=function(s){this.errorCbs.push(s)};us.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&&(!zc(o,Br.redirected)||a!==mr)&&(i.ready=!0,i.readyErrorCbs.forEach(function(l){l(o)}))})};us.prototype.confirmTransition=function(s,t,r){var i=this,n=this.current;this.pending=s;var a=function(f){!zc(f)&&_l(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(hC(s,n)&&o===l&&s.matched[o]===n.matched[l])return this.ensureURL(),s.hash&&ir(this.router,n,s,!1),a(GZ(n,s));var c=QZ(this.current.matched,s.matched),u=c.updated,d=c.deactivated,h=c.activated,p=[].concat(tq(d),this.router.beforeHooks,sq(u),h.map(function(f){return f.beforeEnter}),XZ(h)),m=function(f,b){if(i.pending!==s)return a(S_(n,s));try{f(s,n,function(C){C===!1?(i.ensureURL(!0),a(zZ(n,s))):_l(C)?(i.ensureURL(!0),a(C)):typeof C=="string"||typeof C=="object"&&(typeof C.path=="string"||typeof C.name=="string")?(a(WZ(n,s)),typeof C=="object"&&C.replace?i.replace(C):i.push(C)):b(C)})}catch(C){a(C)}};P_(p,m,function(){var f=rq(h),b=f.concat(i.router.resolveHooks);P_(b,m,function(){if(i.pending!==s)return a(S_(n,s));i.pending=null,t(s),i.router.app&&i.router.app.$nextTick(function(){pC(s)})})})};us.prototype.updateRoute=function(s){this.current=s,this.cb&&this.cb(s)};us.prototype.setupListeners=function(){};us.prototype.teardown=function(){this.listeners.forEach(function(s){s()}),this.listeners=[],this.current=mr,this.pending=null};function KZ(e){if(!e)if(wa){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 QZ(e,s){var t,r=Math.max(e.length,s.length);for(t=0;t0)){var i=this.router,n=i.options.scrollBehavior,a=nr&&n;a&&this.listeners.push(xC());var o=function(){var l=r.current,c=pn(r.base);r.current===mr&&c===r._startLocation||r.transitionTo(c,function(u){a&&ir(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){vl(rr(a.base+c.fullPath)),ir(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){Fh(rr(a.base+c.fullPath)),ir(a.router,c,l,!1),i&&i(c)},n)},s.prototype.ensureURL=function(r){if(pn(this.base)!==this.current.fullPath){var i=rr(this.base+this.current.fullPath);r?vl(i):Fh(i)}},s.prototype.getCurrentLocation=function(){return pn(this.base)},s}(us);function pn(e){var s=window.location.pathname,t=s.toLowerCase(),r=e.toLowerCase();return e&&(t===r||t.indexOf(rr(r+"/"))===0)&&(s=s.slice(e.length)),(s||"/")+window.location.search+window.location.hash}var MC=function(e){function s(t,r,i){e.call(this,t,r),!(i&&nq(this.base))&&D_()}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=nr&&n;a&&this.listeners.push(xC());var o=function(){var c=r.current;D_()&&r.transitionTo(ao(),function(u){a&&ir(r.router,u,c,!0),nr||oo(u.fullPath)})},l=nr?"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){M_(c.fullPath),ir(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){oo(c.fullPath),ir(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;ao()!==i&&(r?M_(i):oo(i))},s.prototype.getCurrentLocation=function(){return ao()},s}(us);function nq(e){var s=pn(e);if(!/^\/#/.test(s))return window.location.replace(rr(e+"/#"+s)),!0}function D_(){var e=ao();return e.charAt(0)==="/"?!0:(oo("/"+e),!1)}function ao(){var e=window.location.href,s=e.indexOf("#");return s<0?"":(e=e.slice(s+1),e)}function Rh(e){var s=window.location.href,t=s.indexOf("#"),r=t>=0?s.slice(0,t):s;return r+"#"+e}function M_(e){nr?vl(Rh(e)):window.location.hash=e}function oo(e){nr?Fh(Rh(e)):window.location.replace(Rh(e))}var aq=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){zc(o,Br.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}(us),He=function(s){s===void 0&&(s={}),this.app=null,this.apps=[],this.options=s,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=RZ(s.routes||[],this);var t=s.mode||"hash";switch(this.fallback=t==="history"&&!nr&&s.fallback!==!1,this.fallback&&(t="hash"),wa||(t="abstract"),this.mode=t,t){case"history":this.history=new DC(this,s.base);break;case"hash":this.history=new MC(this,s.base,this.fallback);break;case"abstract":this.history=new aq(this,s.base);break}},EC={currentRoute:{configurable:!0}};He.prototype.match=function(s,t,r){return this.matcher.match(s,t,r)};EC.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 DC||r instanceof MC){var i=function(a){var o=r.current,l=t.options.scrollBehavior,c=nr&&l;c&&"fullPath"in a&&ir(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 Um(this.beforeHooks,s)};He.prototype.beforeResolve=function(s){return Um(this.resolveHooks,s)};He.prototype.afterEach=function(s){return Um(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=Nm(s,t,r,this),n=this.match(i,t),a=n.redirectedFrom||n.fullPath,o=this.history.base,l=oq(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!==mr&&this.history.transitionTo(this.history.getCurrentLocation())};He.prototype.addRoutes=function(s){this.matcher.addRoutes(s),this.history.current!==mr&&this.history.transitionTo(this.history.getCurrentLocation())};Object.defineProperties(He.prototype,EC);var OC=He;function Um(e,s){return e.push(s),function(){var t=e.indexOf(s);t>-1&&e.splice(t,1)}}function oq(e,s,t){var r=t==="hash"?"#"+s:s;return e?rr(e+"/"+r):r}He.install=kh;He.version="3.6.5";He.isNavigationFailure=zc;He.NavigationFailureType=Br;He.START_LOCATION=mr;wa&&window.Vue&&window.Vue.use(He);y.use(OC);const sa=new OC({mode:"history",routes:B2});var lq=Object.defineProperty,cq=Object.getOwnPropertyDescriptor,uq=(e,s,t,r)=>{for(var i=r>1?void 0:r?cq(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 Ih=class extends j(V){constructor(){super(...arguments),this.mdiChevronDown=Vs}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})}};Ih=uq([O],Ih);var dq=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(K,{key:r._namespace,attrs:{"two-line":"",disabled:!r.socket.isConnected,link:""},on:{click:function(i){return e.changePrinter(r)}}},[t(Gt,[t(rt,[e._v(e._s(e.getPrinterName(r._namespace)))]),t(up,[e._v(e._s(e.getPrinterDescription(r)))])],1)],1)}),1)],1)},hq=[];const E_={};var pq=N(Ih,dq,hq,!1,mq,null,null,null);function mq(e){for(let s in E_)this[s]=E_[s]}const LC=function(){return pq.exports}();var fq=Object.defineProperty,gq=Object.getOwnPropertyDescriptor,Zc=(e,s,t,r)=>{for(var i=r>1?void 0:r?gq(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&&fq(s,t,i),i};let Ei=class extends j(V){constructor(){super(...arguments),this.mdiClose=ca,this.mdiLinkVariant=t0,this.mdiBellOffOutline=FS,this.expand=!1}get formatedText(){return this.entry.description.replace(/(\bhttps?:\/\/[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|])/gim,'
$1')}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)}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)}};Zc([k({required:!0})],Ei.prototype,"entry",2);Zc([k({default:!0})],Ei.prototype,"parentState",2);Zc([me("parentState")],Ei.prototype,"parentStateUpdate",1);Ei=Zc([O({components:{}})],Ei);var vq=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(dt,{class:"notification-menu-entry--priority-".concat(e.entry.priority),attrs:{text:"",color:e.alertColor,border:"left"}},[t(S,{attrs:{align:"start"}},[t(_,{staticClass:"grow"},[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))])]],2),t("p",{staticClass:"notification-menu-entry__description text-body-2 mb-0 text--disabled font-weight-light",domProps:{innerHTML:e._s(e.formatedText)}})]),e.entry.priority!=="critical"?t(_,{staticClass:"shrink pl-0 pb-0 pt-1 pr-2 d-flex flex-column align-self-stretch justify-space-between"},[e.entryType==="announcement"?t(g,{staticClass:"mb-2",attrs:{icon:"",plain:"",color:e.alertColor},on:{click:e.close}},[t(v,[e._v(e._s(e.mdiClose))])],1):t(g,{staticClass:"mb-2",attrs:{icon:"",plain:"",color:e.alertColor},on:{click:function(r){return e.dismiss("reboot",null)}}},[t(v,[e._v(e._s(e.mdiClose))])],1),t(le),t(g,{staticClass:"pb-1",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(S,[t(jl,[t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],staticClass:"pt-1",staticStyle:{width:"100%"}},[t(E,{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.entryType==="announcement"?[t(g,{staticClass:"mx-1",attrs:{color:e.alertColor,"x-small":"",plain:"",text:"",outlined:""},on:{click:function(r){return e.dismiss("time",60*60)}}},[e._v(" 1H ")]),t(g,{staticClass:"mx-1",attrs:{color:e.alertColor,"x-small":"",plain:"",text:"",outlined:""},on:{click:function(r){return e.dismiss("time",60*60*24)}}},[e._v(" 1D ")]),t(g,{staticClass:"mx-1",attrs:{color:e.alertColor,"x-small":"",plain:"",text:"",outlined:""},on:{click:function(r){return e.dismiss("time",60*60*24*7)}}},[e._v(" 7D ")])]:[t(g,{staticClass:"mx-1",attrs:{color:e.alertColor,"x-small":"",plain:"",text:"",outlined:""},on:{click:function(r){return e.dismiss("reboot",null)}}},[e._v(" "+e._s(e.$t("App.Notifications.NextReboot"))+" ")]),t(g,{staticClass:"mx-1",attrs:{color:e.alertColor,"x-small":"",plain:"",text:"",outlined:""},on:{click:e.close}},[e._v(" "+e._s(e.$t("App.Notifications.Never"))+" ")])]],2)],1)])],1):e._e()],1)},_q=[];const O_={};var bq=N(Ei,vq,_q,!1,yq,"43cc0975",null,null);function yq(e){for(let s in O_)this[s]=O_[s]}const kC=function(){return bq.exports}();var Cq=Object.defineProperty,$q=Object.getOwnPropertyDescriptor,xq=(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&&Cq(s,t,i),i};let Hh=class extends j(V){constructor(){super(...arguments),this.mdiBell=AS,this.mdiBellOutline=RS,this.mdiCloseBoxMultipleOutline=zS,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})})}};Hh=xq([O({components:{NotificationMenuEntry:kC}})],Hh);var wq=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($b,{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(De,{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(kC,{key:r.id,class:i1?[t(E),t(ne,[t(le),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)},Sq=[];const L_={};var Pq=N(Hh,wq,Sq,!1,Tq,"af5e252a",null,null);function Tq(e){for(let s in L_)this[s]=L_[s]}const AC=function(){return Pq.exports}();var Dq=Object.defineProperty,Mq=Object.getOwnPropertyDescriptor,Eq=(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 jh=class extends j(V){constructor(){super(...arguments),this.mdiAlertOctagonOutline=MS,this.mdiContentSave=vp,this.mdiFileUpload=Yb,this.mdiClose=ca,this.mdiCloseThick=Ce,this.topbarHeight=fn,this.showEmergencyStopDialog=!1,this.uploadSnackbar={status:!1,filename:"",percent:0,speed:0,total:0,cancelTokenSource:null,lastProgress:{time:0,loaded:0}},this.formatFilesize=it}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 boolWideNavDrawer(){var e;return(e=this.$store.state.gui.uiSettings.boolWideNavDrawer)!=null?e:!1}get countPrinters(){return this.$store.getters["farm/countPrinters"]}get boolHideUploadAndPrintButton(){var e;return(e=this.$store.state.gui.uiSettings.boolHideUploadAndPrintButton)!=null?e:!1}get sidebarLogo(){return this.$store.getters["files/getSidebarLogo"]}get logoColor(){return this.$store.state.gui.uiSettings.logo}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,this.uploadSnackbar.lastProgress.loaded=0,this.uploadSnackbar.lastProgress.time=0,s.append("file",e,t),s.append("print","true"),new Promise(r=>{this.uploadSnackbar.cancelTokenSource=Es.CancelToken.source(),Es.post(this.apiUrl+"/server/files/upload",s,{cancelToken:this.uploadSnackbar.cancelTokenSource.token,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:i=>{if(this.uploadSnackbar.percent=i.loaded*100/i.total,this.uploadSnackbar.lastProgress.time){const n=i.timeStamp-this.uploadSnackbar.lastProgress.time,a=i.loaded-this.uploadSnackbar.lastProgress.loaded;n&&(this.uploadSnackbar.speed=a/(n/1e3))}this.uploadSnackbar.lastProgress.time=i.timeStamp,this.uploadSnackbar.lastProgress.loaded=i.loaded,this.uploadSnackbar.total=i.total}}).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}};jh=Eq([O({components:{Panel:Z,TheSettingsMenu:dC,TheTopCornerMenu:z2,PrinterSelector:LC,MainsailLogo:Ni,TheNotificationMenu:AC}})],jh);var Oq=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(sw,{staticClass:"topbar pa-0",attrs:{app:"","elevate-on-scroll":"",height:e.topbarHeight,"clipped-left":""}},[t(rw,{attrs:{tile:""},on:{click:function(r){r.stopPropagation(),e.naviDrawer=!e.naviDrawer}}}),t("router-link",{attrs:{to:"/"}},[e.sidebarLogo?[t("img",{staticClass:"nav-logo ml-4 mr-1 d-none d-sm-flex",staticStyle:{height:"32px"},attrs:{src:e.sidebarLogo,alt:"Logo"}})]:[t(Ni,{staticClass:"nav-logo ml-4 mr-1 d-none d-sm-flex",staticStyle:{height:"32px"},attrs:{color:e.logoColor,router:"",to:"/",ripple:!1}})]],2),t(ki,{staticClass:"text-no-wrap ml-0 pl-2 mr-2"},[e._v(e._s(e.printerName))]),e.countPrinters?t(LC):e._e(),t(le),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(AC),t(dC),t(z2)],1),t(oi,{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)]}}]),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(bs,{staticClass:"mt-2",attrs:{value:e.uploadSnackbar.percent}})],1),t(oe,{attrs:{width:"400",fullscreen:e.isMobile},model:{value:e.showEmergencyStopDialog,callback:function(r){e.showEmergencyStopDialog=r},expression:"showEmergencyStopDialog"}},[t(Z,{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:function(r){e.showEmergencyStopDialog=!1}}},[t(v,[e._v(e._s(e.mdiCloseThick))])],1)]},proxy:!0}])},[t(q,[e._v(e._s(e.$t("EmergencyStopDialog.AreYouSure")))]),t(ne,[t(le),t(g,{attrs:{text:""},on:{click:function(r){e.showEmergencyStopDialog=!1}}},[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)],1)},Lq=[];const k_={};var kq=N(jh,Oq,Lq,!1,Aq,"569ec1a4",null,null);function Aq(e){for(let s in k_)this[s]=k_[s]}const FC=function(){return kq.exports}();var Fq=Object.defineProperty,Rq=Object.getOwnPropertyDescriptor,RC=(e,s,t,r)=>{for(var i=r>1?void 0:r?Rq(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&&Fq(s,t,i),i};let bl=class extends j(V){constructor(){super(...arguments),this.mdiUpdate=pa,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)}};RC([me("messages")],bl.prototype,"messagesChanged",1);bl=RC([O({components:{}})],bl);var Iq=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(De,{attrs:{loading:!e.complete}},[t("template",{slot:"progress"},[t(bs,{attrs:{color:"primary",indeterminate:""}})],1),t(oa,{attrs:{flat:"",dense:""}},[t(ki,[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(S,[t(_,{staticClass:"py-6 px-0"},[t("overlay-scrollbars",{ref:"updaterLogScroll",staticClass:"updaterLogScroll"},[t(Ns,{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(S,[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)},Hq=[];const A_={};var jq=N(bl,Iq,Hq,!1,Nq,"de6f962a",null,null);function Nq(e){for(let s in A_)this[s]=A_[s]}const IC=function(){return jq.exports}();var Vq=Object.defineProperty,Uq=Object.getOwnPropertyDescriptor,Bq=(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&&Vq(s,t,i),i};let Nh=class extends j(V,kt){constructor(){super(...arguments),this.mdiConnection=gp,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 formatHostname(){return parseInt(this.port)!==80&&this.port!==""?this.hostname+":"+this.port:this.hostname}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()}};Nh=Bq([O({components:{ConnectionStatus:ic}})],Nh);var Wq=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(De,[t(oa,{attrs:{flat:"",dense:""}},[t(ki,[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(ic,{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(E,{staticClass:"my-3"}),t("p",[e._v(e._s(e.$t("ConnectionDialog.CheckMoonrakerLog")))]),t("ul",[t("li",[e._v("~/klipper_logs/moonraker.log")]),t("li",[e._v("/tmp/moonraker.log")])]),t(E,{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(bs,{attrs:{color:e.progressBarColor,indeterminate:""}})],1)],1)],1)},Gq=[];const F_={};var zq=N(Nh,Wq,Gq,!1,Zq,null,null,null);function Zq(e){for(let s in F_)this[s]=F_[s]}const HC=function(){return zq.exports}(),qq=y.component("CodemirrorAsync",()=>he(()=>import("./Codemirror-d2702935.js"),["assets/Codemirror-d2702935.js","assets/codemirror-0a1db0c7.js","assets/vuetify-52f40ce5.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-9bc570b0.js"]));var Xq=Object.defineProperty,Yq=Object.getOwnPropertyDescriptor,jC=(e,s,t,r)=>{for(var i=r>1?void 0:r?Yq(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&&Xq(s,t,i),i};let yl=class extends j(V){constructor(){super(...arguments),this.dialogConfirmChange=!1,this.formatFilesize=it,this.mdiCloseThick=Ce,this.mdiHelp=Jb,this.mdiContentSave=vp,this.mdiRestart=jr,this.mdiClose=ca,this.mdiHelpCircle=Xl,this.mdiFileDocumentEditOutline=da,this.mdiFileDocumentOutline=nP,this.scrollbarOptions={scrollbars:{autoHide:"never"}}}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=kr(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=wS;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){this.confirmUnsavedChanges&&(e?window.addEventListener("beforeunload",rd):window.removeEventListener("beforeunload",rd))}};jC([me("changed")],yl.prototype,"changedChanged",1);yl=jC([O({components:{Panel:Z,CodemirrorAsync:qq}})],yl);var Jq=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)}},model:{value:e.show,callback:function(r){e.show=r},expression:"show"}},[t(Z,{attrs:{"card-class":"editor-dialog",icon:e.isWriteable?e.mdiFileDocumentEditOutline:e.mdiFileDocumentOutline,title:e.title},scopedSlots:e._u([{key:"buttons",fn:function(){return[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.isWriteable?t(g,{attrs:{text:"",tile:"",color:e.restartServiceName===null?"primary":""},on:{click:function(r){return e.save(null)}}},[t(v,{staticClass:"mr-1",attrs:{small:""}},[e._v(e._s(e.mdiContentSave))]),t("span",{staticClass:"d-none d-sm-inline"},[e._v(e._s(e.$t("Editor.SaveClose")))])],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(),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(oi,{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(bs,{staticClass:"mt-2",attrs:{value:100*e.loaderProgress.loaded/e.loaderProgress.total}})]:[t(bs,{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(Z,{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(S,[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(le),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)],1)},Kq=[];const R_={};var Qq=N(yl,Jq,Kq,!1,eX,"4d8cae4d",null,null);function eX(e){for(let s in R_)this[s]=R_[s]}const NC=function(){return Qq.exports}();var tX=Object.defineProperty,sX=Object.getOwnPropertyDescriptor,rX=(e,s,t,r)=>{for(var i=r>1?void 0:r?sX(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&&tX(s,t,i),i};let Vh=class extends j(V){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:""}};Vh=rX([O({components:{}})],Vh);var iX=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t(oi,{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(bs,{staticClass:"mt-2",attrs:{value:e.progress,indeterminate:""}}):e._e(),e.progress===0?t(bs,{staticClass:"mt-2",attrs:{indeterminate:""}}):e._e()],1),t(oi,{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)},nX=[];const I_={};var aX=N(Vh,iX,nX,!1,oX,null,null,null);function oX(e){for(let s in I_)this[s]=I_[s]}const VC=function(){return aX.exports}();var lX=Object.defineProperty,cX=Object.getOwnPropertyDescriptor,uX=(e,s,t,r)=>{for(var i=r>1?void 0:r?cX(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 Uh=class extends j(V){constructor(){super(...arguments),this.mdiTrayArrowDown=zP,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"})}}};Uh=uX([O],Uh);var dX=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)},hX=[];const H_={};var pX=N(Uh,dX,hX,!1,mX,null,null,null);function mX(e){for(let s in H_)this[s]=H_[s]}const UC=function(){return pX.exports}();var fX=Object.defineProperty,gX=Object.getOwnPropertyDescriptor,BC=(e,s,t,r)=>{for(var i=r>1?void 0:r?gX(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&&fX(s,t,i),i};let Cl=class extends j(V){constructor(){super(...arguments),this.mdiClose=ca,this.formatFilesize=it}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 it(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")}};BC([me("show")],Cl.prototype,"showChanged",1);Cl=BC([O({components:{}})],Cl);var vX=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.show?t(oi,{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(bs,{staticClass:"mt-2",attrs:{value:e.percent}})],1):e._e()},_X=[];const j_={};var bX=N(Cl,vX,_X,!1,yX,null,null,null);function yX(e){for(let s in j_)this[s]=j_[s]}const WC=function(){return bX.exports}();var CX=Object.defineProperty,$X=Object.getOwnPropertyDescriptor,xX=(e,s,t,r)=>{for(var i=r>1?void 0:r?$X(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&&CX(s,t,i),i};let Bh=class extends j(V){constructor(){super(...arguments),this.mdiArrowCollapseDown=Wl,this.mdiArrowExpandUp=Ib,this.mdiInformation=At,this.mdiPlusThick=TP,this.mdiMinusThick=bP,this.mdiChevronTripleLeft=BS,this.mdiChevronTripleRight=WS,this.mdiCloseThick=Ce}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"})}};Bh=xX([O({components:{Panel:Z,Responsive:Qe}})],Bh);var wX=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(Z,{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(ke,[t(S,[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(S,[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(k0,{staticClass:"mb-n2",attrs:{title:e.$t("ManualProbe.Advanced"),"sub-panel-class":"manual-probe-dialog-advanced"}},[t(ke,[t(Nt,{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(Nt,{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(le),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)},SX=[];const N_={};var PX=N(Bh,wX,SX,!1,TX,"01252f2e",null,null);function TX(e){for(let s in N_)this[s]=N_[s]}const GC=function(){return PX.exports}();var DX=Object.defineProperty,MX=Object.getOwnPropertyDescriptor,EX=(e,s,t,r)=>{for(var i=r>1?void 0:r?MX(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&&DX(s,t,i),i};let Wh=class extends j(V,Je){constructor(){super(...arguments),this.mdiArrowCollapseDown=Wl,this.mdiInformation=At,this.mdiCloseThick=Ce}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"})}};Wh=EX([O({components:{Panel:Z,Responsive:Qe}})],Wh);var OX=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(Z,{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(S,[t(_,[t(re,{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(S,[t(_,{attrs:{cols:"6"}},[t(re,{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(re,{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(S,[t(_,[t("p",{staticClass:"text-center mb-0",domProps:{innerHTML:e._s(e.$t("BedScrews.Description"))}})])],1)],1),t(ne,[t(le),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)},LX=[];const V_={};var kX=N(Wh,OX,LX,!1,AX,null,null,null);function AX(e){for(let s in V_)this[s]=V_[s]}const zC=function(){return kX.exports}();var FX=Object.defineProperty,RX=Object.getOwnPropertyDescriptor,Bm=(e,s,t,r)=>{for(var i=r>1?void 0:r?RX(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&&FX(s,t,i),i};let ra=class extends j(V,Je){constructor(){super(...arguments),this.mdiRotateLeft=RP,this.mdiCloseThick=Ce,this.mdiRotateRight=IP}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}};Bm([k({required:!0})],ra.prototype,"name",2);Bm([k({required:!0})],ra.prototype,"result",2);ra=Bm([O({components:{Panel:Z,Responsive:Qe,SettingsRow:U}})],ra);var IX=function(){var e,s=this,t=s.$createElement,r=s._self._c||t;return r(U,{attrs:{title:s.outputName,"sub-title":s.subTitle}},[(e=s.is_base)!==null&&e!==void 0&&e?r(ns,{attrs:{label:"",small:""}},[s._v(s._s(s.$t("ScrewsTiltAdjust.Base")))]):r(ns,{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)},HX=[];const U_={};var jX=N(ra,IX,HX,!1,NX,null,null,null);function NX(e){for(let s in U_)this[s]=U_[s]}const ZC=function(){return jX.exports}();var VX=Object.defineProperty,UX=Object.getOwnPropertyDescriptor,BX=(e,s,t,r)=>{for(var i=r>1?void 0:r?UX(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&&VX(s,t,i),i};let Gh=class extends j(V,Je){constructor(){super(...arguments),this.mdiArrowCollapseDown=Wl,this.mdiCloseThick=Ce}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(){await this.$store.dispatch("printer/clearScrewsTiltAdjust"),this.doSend("SCREWS_TILT_CALCULATE")}};Gh=BX([O({components:{TheScrewsTiltAdjustDialogEntry:ZC,Panel:Z,Responsive:Qe,SettingsRow:U}})],Gh);var WX=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(Z,{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(S,[t(_,[t(dt,{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(E,{key:"result-divider-".concat(i),staticClass:"my-1"}):e._e(),t(ZC,{key:"result-".concat(i,"-").concat(i),attrs:{name:i.toString(),result:r}})]})],2):e._e(),t(ne,[t(le),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)},GX=[];const B_={};var zX=N(Gh,WX,GX,!1,ZX,null,null,null);function ZX(e){for(let s in B_)this[s]=B_[s]}const qC=function(){return zX.exports}(),qX=(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 XC=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],XX=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Oi(e,s){typeof console<"u"&&(console.warn("[vue-i18n] "+e),s&&console.warn(s.stack))}function YX(e,s){typeof console<"u"&&(console.error("[vue-i18n] "+e),s&&console.error(s.stack))}var Cs=Array.isArray;function Xt(e){return e!==null&&typeof e=="object"}function JX(e){return typeof e=="boolean"}function ot(e){return typeof e=="string"}var KX=Object.prototype.toString,QX="[object Object]";function _s(e){return KX.call(e)===QX}function Lt(e){return e==null}function zh(e){return typeof e=="function"}function qc(){for(var e=[],s=arguments.length;s--;)e[s]=arguments[s];var t=null,r=null;return e.length===1?Xt(e[0])||Cs(e[0])?r=e[0]:typeof e[0]=="string"&&(t=e[0]):e.length===2&&(typeof e[0]=="string"&&(t=e[0]),(Xt(e[1])||Cs(e[1]))&&(r=e[1])),{locale:t,params:r}}function Zi(e){return JSON.parse(JSON.stringify(e))}function eY(e,s){if(e.delete(s))return e}function tY(e){var s=[];return e.forEach(function(t){return s.push(t)}),s}function Sa(e,s){return!!~e.indexOf(s)}var sY=Object.prototype.hasOwnProperty;function rY(e,s){return sY.call(e,s)}function Er(e){for(var s=arguments,t=Object(e),r=1;r/g,">").replace(/"/g,""").replace(/'/g,"'")}function nY(e){return e!=null&&Object.keys(e).forEach(function(s){typeof e[s]=="string"&&(e[s]=iY(e[s]))}),e}function aY(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 oY(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=Er(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(_s(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=Er(o,JSON.parse(d))}),r.i18n.messages=o}catch{}var c=r.i18n,u=c.sharedMessages;u&&_s(u)&&(r.i18n.messages=Er(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):_s(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 W_={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(),h=o.i(l,c,lY(d)||u?cY(d.default,u):d),p=n.tag&&n.tag!==!0||n.tag===!1?n.tag:"span";return p?s(p,r,h):h}}};function lY(e){var s;for(s in e)if(s!=="default")return!1;return!!s}function cY(e,s){var t=s?uY(s):{};if(!e)return t;e=e.filter(function(i){return i.tag||i.text.trim()!==""});var r=e.every(hY);return e.reduce(r?dY:YC,t)}function uY(e){return Array.isArray(e)?e.reduce(YC,{}):Object.assign({},e)}function dY(e,s){return s.data&&s.data.attrs&&s.data.attrs.place&&(e[s.data.attrs.place]=s),e}function YC(e,s,t){return e[t]=s,e}function hY(e){return!!(e.data&&e.data.attrs&&e.data.attrs.place)}var G_={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;ot(r.format)?o=r.format:Xt(r.format)&&(r.format.key&&(o=r.format.key),l=Object.keys(r.format).reduce(function(p,m){var f;return Sa(XC,m)?Object.assign({},p,(f={},f[m]=r.format[m],f)):p},null));var c=r.locale||a.locale,u=a._ntp(r.value,c,o,l),d=u.map(function(p,m){var f,b=n.scopedSlots&&n.scopedSlots[p.type];return b?b((f={},f[p.type]=p.value,f.index=m,f.parts=u,f)):p.value}),h=r.tag&&r.tag!==!0||r.tag===!1?r.tag:"span";return h?s(h,{attrs:n.attrs,class:n.class,staticClass:n.staticClass},d):d}};function pY(e,s,t){JC(e,t)&&KC(e,s,t)}function mY(e,s,t,r){if(JC(e,t)){var i=t.context.$i18n;gY(e,t)&&$l(s.value,s.oldValue)&&$l(e._localeMessage,i.getLocaleMessage(i.locale))||KC(e,s,t)}}function fY(e,s,t,r){var i=t.context;if(!i){Oi("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 JC(e,s){var t=s.context;return t?t.$i18n?!0:(Oi("VueI18n instance does not exists in Vue instance"),!1):(Oi("Vue instance does not exists in VNode context"),!1)}function gY(e,s){var t=s.context;return e._locale===t.$i18n.locale}function KC(e,s,t){var r,i,n=s.value,a=vY(n),o=a.path,l=a.locale,c=a.args,u=a.choice;if(!o&&!l&&!c){Oi("value type not supported");return}if(!o){Oi("`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(z_(l,c))):e._vt=e.textContent=(i=d.$i18n).t.apply(i,[o].concat(z_(l,c))),e._locale=d.$i18n.locale,e._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}function vY(e){var s,t,r,i;return ot(e)?s=e:_s(e)&&(s=e.path,t=e.locale,r=e.args,i=e.choice),{path:s,locale:t,args:r,choice:i}}function z_(e,s){var t=[];return e&&t.push(e),s&&(Array.isArray(s)||_s(s))&&t.push(s),t}var yt;function Wm(e,s){s===void 0&&(s={bridge:!1}),Wm.installed=!0,yt=e,yt.version&&Number(yt.version.split(".")[0]),aY(yt),yt.mixin(oY(s.bridge)),yt.directive("t",{bind:pY,update:mY,unbind:fY}),yt.component(W_.name,W_),yt.component(G_.name,G_);var t=yt.config.optionMergeStrategies;t.i18n=function(r,i){return i===void 0?r:i}}var QC=function(){this._caches=Object.create(null)};QC.prototype.interpolate=function(s,t){if(!t)return[s];var r=this._caches[s];return r||(r=yY(s),this._caches[s]=r),CY(r,t)};var _Y=/^(?:\d)+/,bY=/^(?:\w)+/;function yY(e){for(var s=[],t=0,r="";t0)i--,r=As,h[nt]();else{if(i=0,a===void 0||(a=PY(a),a===!1))return!1;h[si]()}};function p(){var m=e[t+1];if(r===Sl&&m==="'"||r===Pl&&m==='"')return t++,o="\\"+m,h[nt](),!0}for(;r!==null;)if(t++,n=e[t],!(n==="\\"&&p())){if(l=SY(n),d=fr[r],c=d[l]||d.else||ia,c===ia||(r=c[0],u=h[c[1]],u&&(o=c[2],o=o===void 0?n:o,u()===!1)))return;if(r===Xc)return s}}var Gm=function(){this._cache=Object.create(null)};Gm.prototype.parsePath=function(s){var t=this._cache[s];return t||(t=TY(s),t&&(this._cache[s]=t)),t||[]};Gm.prototype.getPathValue=function(s,t){if(!Xt(s))return null;var r=this.parsePath(t);if(r.length===0)return null;for(var i=r.length,n=s,a=0;a/,MY=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,EY=/^@(?:\.([a-zA-Z]+))?:/,OY=/[()]/g,Z_={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},qh=new QC,ce=function(s){var t=this;s===void 0&&(s={}),!yt&&typeof window<"u"&&window.Vue&&Wm(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||qh,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 Gm,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 h=function(p,m){return p=Math.abs(p),m===2?p?p>1?1:0:1:p?Math.min(p,2):0};return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[l,c]):h(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})},Ae={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(_s(l))Object.keys(l).forEach(function(h){var p=l[h];_s(p)?(c.push(h),c.push("."),n(a,o,p,c),c.pop(),c.pop()):(c.push(h),n(a,o,p,c),c.pop())});else if(Cs(l))l.forEach(function(h,p){_s(h)?(c.push("["+p+"]"),c.push("."),n(a,o,h,c),c.pop(),c.pop()):(c.push("["+p+"]"),n(a,o,h,c),c.pop())});else if(ot(l)){var u=DY.test(l);if(u){var d="Detected HTML in message '"+l+"' of keypath '"+c.join("")+"' at '"+o+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";a==="warn"?Oi(d):a==="error"&&YX(d)}}};n(t,s,r,i)};ce.prototype._initVM=function(s){var t=yt.config.silent;yt.config.silent=!0,this._vm=new yt({data:s,__VUE18N__INSTANCE__:!0}),yt.config.silent=t};ce.prototype.destroyVM=function(){this._vm.$destroy()};ce.prototype.subscribeDataChanging=function(s){this._dataListeners.add(s)};ce.prototype.unsubscribeDataChanging=function(s){eY(this._dataListeners,s)};ce.prototype.watchI18nData=function(){var s=this;return this._vm.$watch("$data",function(){for(var t=tY(s._dataListeners),r=t.length;r--;)yt.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)};Ae.vm.get=function(){return this._vm};Ae.messages.get=function(){return Zi(this._getMessages())};Ae.dateTimeFormats.get=function(){return Zi(this._getDateTimeFormats())};Ae.numberFormats.get=function(){return Zi(this._getNumberFormats())};Ae.availableLocales.get=function(){return Object.keys(this.messages).sort()};Ae.locale.get=function(){return this._vm.locale};Ae.locale.set=function(e){this._vm.$set(this._vm,"locale",e)};Ae.fallbackLocale.get=function(){return this._vm.fallbackLocale};Ae.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)};Ae.formatFallbackMessages.get=function(){return this._formatFallbackMessages};Ae.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e};Ae.missing.get=function(){return this._missing};Ae.missing.set=function(e){this._missing=e};Ae.formatter.get=function(){return this._formatter};Ae.formatter.set=function(e){this._formatter=e};Ae.silentTranslationWarn.get=function(){return this._silentTranslationWarn};Ae.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e};Ae.silentFallbackWarn.get=function(){return this._silentFallbackWarn};Ae.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e};Ae.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent};Ae.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e};Ae.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage};Ae.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])})}};Ae.postTranslation.get=function(){return this._postTranslation};Ae.postTranslation.set=function(e){this._postTranslation=e};Ae.sync.get=function(){return this._sync};Ae.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(ot(o))return o}if(this._formatFallbackMessages){var l=qc.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(Cs(l)||_s(l))return l;var c;if(Lt(l))if(_s(t)){if(c=t[r],!(ot(c)||zh(c)))return null}else return null;else if(ot(l)||zh(l))c=l;else return null;return ot(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(MY);for(var u in c)if(c.hasOwnProperty(u)){var d=c[u],h=d.match(EY),p=h[0],m=h[1],f=d.replace(p,"").replace(OY,"");if(Sa(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,Cs(a)?a:[a],n),this._modifiers.hasOwnProperty(m)?b=this._modifiers[m](b):Z_.hasOwnProperty(m)&&(b=Z_[m](b)),o.pop(),l=b?l.replace(d,b):l}return l};ce.prototype._createMessageContext=function(s,t,r,i){var n=this,a=Cs(s)?s:[],o=Xt(s)?s:{},l=function(h){return a[h]},c=function(h){return o[h]},u=this._getMessages(),d=this.locale;return{list:l,named:c,values:s,formatter:t,path:r,messages:u,locale:d,linked:function(h){return n._interpolate(d,u[d]||{},h,null,i,void 0,[h])}}};ce.prototype._render=function(s,t,r,i){if(zh(s))return s(this._createMessageContext(r,this._formatter||qh,i,t));var n=this._formatter.interpolate(s,r,i);return n||(n=qh.interpolate(s,r,i)),t==="string"&&!ot(n)?n.join(""):n};ce.prototype._appendItemToChain=function(s,t,r){var i=!1;return Sa(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;n0;)a[o]=arguments[o+4];if(!s)return"";var l=qc.apply(void 0,a);this._escapeParameterHtml&&(l.params=nY(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?(ot(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=qc.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||!ot(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=qc.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 Zi(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,Er(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 Zi(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,Er(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;u0;)t[r]=arguments[r+1];var i=this.locale,n=null,a=null;return t.length===1?(ot(t[0])?n=t[0]:Xt(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 Sa(XX,l)?Object.assign({},o,(c={},c[l]=t[0][l],c)):o},null)):t.length===2&&(ot(t[0])&&(n=t[0]),ot(t[1])&&(i=t[1])),this._d(s,i,n,a)};ce.prototype.getNumberFormat=function(s){return Zi(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,Er(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;u0;)t[r]=arguments[r+1];var i=this.locale,n=null,a=null;return t.length===1?ot(t[0])?n=t[0]:Xt(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 Sa(XC,l)?Object.assign({},o,(c={},c[l]=t[0][l],c)):o},null)):t.length===2&&(ot(t[0])&&(n=t[0]),ot(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,Ae);var Ru;Object.defineProperty(ce,"availabilities",{get:function(){if(!Ru){var s=typeof Intl<"u";Ru={dateTimeFormat:s&&typeof Intl.DateTimeFormat<"u",numberFormat:s&&typeof Intl.NumberFormat<"u"}}return Ru}});ce.install=Wm;ce.version="8.28.2";const s$=ce,r$={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",KlipperWarning:"Klipper warning"},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",Remind:"Remind:"},NumberInput:{GreaterOrEqualError:"Must be greater or equal than {min}!",MustBeBetweenError:"Must be between {min} and {max}!",NoEmptyAllowedError:"Input must not be empty!"},Printers:"Printers",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) where 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!"}},i$={Abort:"abort",Accept:"accept",Adjusted:"adjusted",Description:"Click on ADJUSTED if the current screw was adjusted. Click on ACCEPT to continue without adjustment.",Headline:"Bed Screws",ScrewAccepted:"Screws accepted",ScrewIndex:"Screw Index",ScrewName:"Screw Name",ScrewOutput:"{current} of {max}"},n$={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"},a$={CommandList:"Command list",Empty:"Empty",HideTemperatures:"Hide temperatures",HideTimelapse:"Hide Timelapse",SendCode:"Send code...",SetupConsole:"Setup Console"},o$={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"}},l$={ConfigReference:"Config Reference",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"},c$={AreYouSure:"Are you sure?",EmergencyStop:"Emergency Stop",No:"No",Yes:"Yes"},u$={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.",Filament:"Filament",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"},d$={CannotUploadFile:"Cannot upload file!",DropFilesToUploadFiles:"Drop files to upload"},h$={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)"},p$={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.",Later:"Later",Mesh:"Mesh",Name:"Name",NoBedMeshHasBeenLoadedYet:"No bed mesh has been loaded yet.",NoProfile:"No profile available",Ok:"OK",Probed:"Probed",Profiles:"Profiles",Remove:"delete",RemoveSaveDescription:"The bed_mesh profile has been registered as deleted. Click on SAVE_CONFIG to remove it from the printer.cfg and restart Klipper.",Rename:"rename",RenameBedMeshProfile:"Rename Bed Mesh Profile",SAVE_CONFIG:"SAVE_CONFIG",ScaleGradient:"Scale gradient",ScaleZMax:"Scale z-max.",TitleCalibrate:"Calibrate new bed mesh",TitleClear:"Clear bed mesh",TitleHomeAll:"Home all",Wireframe:"Wireframe"},m$={AddNote:"Add note",AllJobs:"All",AvgPrinttime:"Print Time - Ø",Cancel:"Cancel",Chart:"Chart",CreateNote:"Create Note",Delete:"Delete",DeleteSelectedQuestion:"Do you really want to delete {count} selected jobs?",DeleteSingleJobQuestion:"Do you really want to delete the job?",Details:"Details",EditNote:"Edit Note",Empty:"empty",EndTime:"End Time",EstimatedFilament:"Estimated Filament",EstimatedFilamentWeight:"Estimated Filament Weight",EstimatedTime:"Estimated Time",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",JobDetails:"Job Details",Jobs:"Jobs",LastModified:"Last Modified",LayerHeight:"Layer Height",LoadCompleteHistory:"Load complete history",LongestPrinttime:"Longest Print Time",Note:"Note",ObjectHeight:"Object Height",PrintDuration:"Print Time",PrintHistory:"Print History",PrintTime:"Print Time",PrinttimeAvg:"Print Time - Ø",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",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"},f$={AllJobs:"All Jobs",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",Jobs:"Jobs",Pause:"Pause",RemoveFromQueue:"Remove from Queue",Start:"Start"},g$={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."}},v$={Abort:"abort",Accept:"accept",Advanced:"Advanced",Headline:"Manual Probe"},_$={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",MoonrakerCannotConnect:"Moonraker can't connect to Klipper!",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"}},b$={AreYouSure:"Are you sure?",No:"No",TurnDeviceOff:"Turn {device} off",TurnDeviceOn:"Turn {device} on",Yes:"Yes"},y$={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"},C$={Accept:"accept",Base:"Base",ErrorText:"Something went wrong during the probing process.",Headline:"Screws tilt adjust",Retry:"retry"},$$={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",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"},x$={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",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",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",CameraDescription:"Select which camera should be used",ConstantRateFactor:"Constant Rate Factor",ConstantRateFactorDescription:"This configure quality vs file size of the rendered video. The range of the CRF scale is 0–51, 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 17–28. 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",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.",SaveFrames:"Save Frames",SaveFramesDescription:"Save the frames to a zip-file for external rendering",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:"",VariableFpsMin:"Variable FPS min",VariableFpsMinDescription:""},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.',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.",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",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:"Change the overall look and feel of the application",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)"}},w$={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"},S$="English",P$={App:r$,BedScrews:i$,ConnectionDialog:n$,Console:a$,Dialogs:o$,Editor:l$,EmergencyStopDialog:c$,Files:u$,FullscreenUpload:d$,GCodeViewer:h$,Heightmap:p$,History:m$,JobQueue:f$,Machine:g$,ManualProbe:v$,Panels:_$,PowerDeviceChangeDialog:b$,Router:y$,ScrewsTiltAdjust:C$,SelectPrinterDialog:$$,Settings:x$,Timelapse:w$,title:S$},T$=Object.freeze(Object.defineProperty({__proto__:null,App:r$,BedScrews:i$,ConnectionDialog:n$,Console:a$,Dialogs:o$,Editor:l$,EmergencyStopDialog:c$,Files:u$,FullscreenUpload:d$,GCodeViewer:h$,Heightmap:p$,History:m$,JobQueue:f$,Machine:g$,ManualProbe:v$,Panels:_$,PowerDeviceChangeDialog:b$,Router:y$,ScrewsTiltAdjust:C$,SelectPrinterDialog:$$,Settings:x$,Timelapse:w$,default:P$,title:S$},Symbol.toStringTag,{value:"Module"}));y.use(s$);const LY={}.VUE_APP_I18N_LOCALE||"en",be=new s$({locale:LY,fallbackLocale:{}.VUE_APP_I18N_FALLBACK_LOCALE||"en",messages:{en:P$}});async function D$(e){const s=await qX(Object.assign({"../locales/cz.json":()=>he(()=>import("./cz-285b76fb.js"),[]),"../locales/da.json":()=>he(()=>import("./da-6721996d.js"),[]),"../locales/de.json":()=>he(()=>import("./de-1c7e5778.js"),[]),"../locales/en.json":()=>he(()=>Promise.resolve().then(()=>T$),void 0),"../locales/es.json":()=>he(()=>import("./es-8a2d24bf.js"),[]),"../locales/fr.json":()=>he(()=>import("./fr-ab90ab77.js"),[]),"../locales/hu.json":()=>he(()=>import("./hu-a56cb065.js"),[]),"../locales/it.json":()=>he(()=>import("./it-85215c0c.js"),[]),"../locales/ja.json":()=>he(()=>import("./ja-a20a0276.js"),[]),"../locales/ko.json":()=>he(()=>import("./ko-0b8d811b.js"),[]),"../locales/nl.json":()=>he(()=>import("./nl-d64c7e44.js"),[]),"../locales/pl.json":()=>he(()=>import("./pl-d65989d8.js"),[]),"../locales/pt.json":()=>he(()=>import("./pt-880f8881.js"),[]),"../locales/ru.json":()=>he(()=>import("./ru-5f4aea5d.js"),[]),"../locales/se.json":()=>he(()=>import("./se-23883ae1.js"),[]),"../locales/tr.json":()=>he(()=>import("./tr-9777749c.js"),[]),"../locales/uk.json":()=>he(()=>import("./uk-644a4aa7.js"),[]),"../locales/zh.json":()=>he(()=>import("./zh-fcce6e53.js"),[]),"../locales/zh_TW.json":()=>he(()=>import("./zh_TW-7176daef.js"),[])}),"../locales/".concat(e,".json"));return be.setLocaleMessage(e,s),be.locale=e,s}var kY=Object.defineProperty,AY=Object.getOwnPropertyDescriptor,M$=(e,s,t,r)=>{for(var i=r>1?void 0:r?AY(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&&kY(s,t,i),i};let Tl=class extends j(V){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})}};M$([k({type:Object,required:!0})],Tl.prototype,"event",2);Tl=M$([O({})],Tl);var FY=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)+" ")])},RY=[];const q_={};var IY=N(Tl,FY,RY,!1,HY,null,null,null);function HY(e){for(let s in q_)this[s]=q_[s]}const E$=function(){return IY.exports}();var jY=Object.defineProperty,NY=Object.getOwnPropertyDescriptor,O$=(e,s,t,r)=>{for(var i=r>1?void 0:r?NY(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&&jY(s,t,i),i};let Dl=class extends j(V){get text(){return this.event.message}};O$([k({type:Object,required:!0})],Dl.prototype,"event",2);Dl=O$([O({})],Dl);var VY=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(S,[t(_,[t("p",{staticClass:"mb-0"},[e._v(e._s(e.text))])])],1)},UY=[];const X_={};var BY=N(Dl,VY,UY,!1,WY,null,null,null);function WY(e){for(let s in X_)this[s]=X_[s]}const L$=function(){return BY.exports}();var GY=Object.defineProperty,zY=Object.getOwnPropertyDescriptor,k$=(e,s,t,r)=>{for(var i=r>1?void 0:r?zY(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&&GY(s,t,i),i};let Ml=class extends j(V){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})}};k$([k({type:Object,required:!0})],Ml.prototype,"event",2);Ml=k$([O({})],Ml);var ZY=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))])},qY=[];const Y_={};var XY=N(Ml,ZY,qY,!1,YY,null,null,null);function YY(e){for(let s in Y_)this[s]=Y_[s]}const A$=function(){return XY.exports}();var JY=Object.defineProperty,KY=Object.getOwnPropertyDescriptor,zm=(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&&JY(s,t,i),i};let na=class extends j(V){};zm([k({type:Array,required:!0})],na.prototype,"children",2);zm([k({type:Number,required:!0})],na.prototype,"groupIndex",2);na=zm([O({})],na);var QY=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(S,[t(_,{staticClass:"text-center"},e._l(e.children,function(r,i){return t(A$,{key:"prompt_"+e.groupIndex+"_"+i,attrs:{event:r}})}),1)],1)},eJ=[];const J_={};var tJ=N(na,QY,eJ,!1,sJ,null,null,null);function sJ(e){for(let s in J_)this[s]=J_[s]}const Xh=function(){return tJ.exports}();var rJ=Object.defineProperty,iJ=Object.getOwnPropertyDescriptor,nJ=(e,s,t,r)=>{for(var i=r>1?void 0:r?iJ(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&&rJ(s,t,i),i};let Yh=class extends j(V){constructor(){super(...arguments),this.mdiInformation=At,this.mdiCloseThick=Ce,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(){return this.lastPromptBeginPos===-1||this.internalCloseCommand!==null&&this.internalCloseCommand==this.lastPromptBeginPos?!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(){this.internalCloseCommand=this.lastPromptBeginPos;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})}};Yh=nJ([O({components:{MacroPromptButtonGroup:Xh,MacroPromptButton:A$,MacroPromptText:L$,MacroPromptFooterButton:E$,Panel:Z}})],Yh);var aJ=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(Z,{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(L$,{key:"prompt_"+i,attrs:{event:r}}):e._e(),r.type==="button_group"?t(Xh,{key:"prompt_"+i,attrs:{"group-index":i,children:(n=r.children)!==null&&n!==void 0?n:[]}}):e._e(),r.type==="button"?t(Xh,{key:"prompt_"+i,attrs:{"group-index":i,children:[r]}}):e._e()]})],2),e.footerButtons.length?t(ne,[t(le),e._l(e.footerButtons,function(r,i){return t(E$,{key:"prompt_footer_"+i,attrs:{event:r}})})],2):e._e()],1)],1)},oJ=[];const K_={};var lJ=N(Yh,aJ,oJ,!1,cJ,null,null,null);function cJ(e){for(let s in K_)this[s]=K_[s]}const F$=function(){return lJ.exports}();var uJ=Object.defineProperty,dJ=Object.getOwnPropertyDescriptor,ws=(e,s,t,r)=>{for(var i=r>1?void 0:r?dJ(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&&uJ(s,t,i),i};O.registerHooks(["metaInfo"]);let Yt=class extends j(V,kt){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 mainBackground(){return this.$store.getters["files/getMainBackground"]}get naviDrawer(){return this.$store.state.naviDrawer}get navigationStyle(){return this.$store.state.gui.uiSettings.navigationStyle}get mainStyle(){let s={paddingLeft:"0"};return this.mainBackground!==null&&(s.backgroundImage="url("+this.mainBackground+")"),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 theme(){return this.$store.state.gui.uiSettings.theme}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-primary":this.primaryColor,"--color-warning":this.warningColor,"--panel-toolbar-icon-btn-width":zu+"px","--panel-toolbar-text-btn-height":zu+"px","--topbar-icon-btn-width":fn+"px","--sidebar-menu-item-height":yS+"px"}}get print_percent(){return Math.floor(this.$store.getters["printer/getPrintPercent"]*100)}async languageChanged(s){await D$(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})}themeChanged(s){const t=s!=="light";this.$vuetify.theme.dark=t;const r=document.documentElement;r.className=t?"theme--dark":"theme--light"}drawFavicon(s){const t=document.querySelector("link[rel*='icon'][sizes='16x16']"),r=document.querySelector("link[rel*='icon'][sizes='32x32']");if(t&&r)if(this.printerIsPrinting){let i=64,n=document.createElement("canvas");n.width=i,n.height=i;const a=n.getContext("2d"),o=n.width/2,l=n.height/2,c=32;if(a){a.beginPath(),a.moveTo(o,l),a.arc(o,l,c,0,2*Math.PI,!1),a.closePath(),a.fillStyle="#ddd",a.fill(),a.strokeStyle="rgba(200, 208, 218, 0.66)",a.stroke();let u=1.5*Math.PI,d=0,h=(Math.PI-.5*Math.PI)/25;(s>=0&&s<=25||s>25&&s<=50||s>50&&s<=75||s>75&&s<=100)&&(d=u+s*h),a.beginPath(),a.moveTo(o,l),a.arc(o,l,c,u,d,!1),a.closePath(),a.fillStyle=this.logoColor,a.fill(),t.href=n.toDataURL("image/png"),r.href=n.toDataURL("image/png")}}else if(this.customFavicons){const[i,n]=this.customFavicons;t.href=i,r.href=n}else{const i="data:image/svg+xml;base64,"+window.btoa('\n \n \n \n \n \n \n \n '));t.href=i,r.href=i}}customFaviconsChanged(){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)}};ws([me("language")],Yt.prototype,"languageChanged",1);ws([me("customStylesheet")],Yt.prototype,"customStylesheetChanged",1);ws([me("current_file")],Yt.prototype,"current_fileChanged",1);ws([me("primaryColor")],Yt.prototype,"primaryColorChanged",1);ws([me("theme")],Yt.prototype,"themeChanged",1);ws([me("customFavicons")],Yt.prototype,"customFaviconsChanged",1);ws([me("logoColor")],Yt.prototype,"logoColorChanged",1);ws([me("print_percent")],Yt.prototype,"print_percentChanged",1);ws([me("printerIsPrinting")],Yt.prototype,"printerIsPrintingChanged",1);Yt=ws([O({components:{TheMacroPrompt:F$,TheTimelapseRenderingSnackbar:VC,TheEditor:NC,TheSelectPrinterDialog:Op,TheConnectingDialog:HC,TheUpdateDialog:IC,TheTopbar:FC,TheSidebar:G2,TheFullscreenUpload:UC,TheUploadSnackbar:WC,TheManualProbeDialog:GC,TheBedScrewsDialog:zC,TheScrewsTiltAdjustDialog:qC}})],Yt);var hJ=Object.defineProperty,pJ=Object.getOwnPropertyDescriptor,mJ=(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 Jh=class extends j(V){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 he(()=>import("./virtual_pwa-register-990ff180.js"),["assets/virtual_pwa-register-990ff180.js","assets/vuetify-52f40ce5.js","assets/vuetify-950d1cb0.css","assets/overlayscrollbars-44d87bcf.js","assets/overlayscrollbars-a16bc3d3.css","assets/echarts-9bc570b0.js"]);this.updateSW=e({immediate:!0,onOfflineReady:this.onOfflineReady,onNeedRefresh:this.onNeedRefresh,onRegistered:this.onRegistered,onRegisterError:this.onRegisterError})}};Jh=mJ([O],Jh);var fJ=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(Z,{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(le),t(g,{attrs:{text:"",color:"primary"},on:{click:e.update}},[e._v(e._s(e.$t("App.TheServiceWorker.Update")))])],1)],1)],1)},gJ=[];const Q_={};var vJ=N(Jh,fJ,gJ,!1,_J,null,null,null);function _J(e){for(let s in Q_)this[s]=Q_[s]}const bJ=function(){return vJ.exports}();var yJ=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t(iw,{style:e.cssVars},[e.socketIsConnected&&e.guiIsReady?[t(G2),t(FC),t(nw,{style:e.mainStyle,attrs:{id:"content"}},[t(ke,{staticClass:"container px-3 px-sm-6 py-sm-6 mx-auto",attrs:{id:"page-container",fluid:""}},[t("router-view")],1)],1),t(bJ),t(IC),t(NC),t(VC),t(UC),t(WC),t(GC),t(zC),t(qC),t(F$)]:e.instancesDB!=="moonraker"?t(Op):t(HC)],2)},CJ=[];const eb={};var $J=N(Yt,yJ,CJ,!1,xJ,null,null,null);function xJ(e){for(let s in eb)this[s]=eb[s]}const wJ=function(){return $J.exports}();y.use(wb,{directives:{Touch:aw,Ripple:ow}});const R$=new wb({theme:{dark:!0,options:{customProperties:!0}},icons:{iconfont:"mdiSvg"},breakpoint:{mobileBreakpoint:768}});/*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */function SJ(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 PJ=typeof window<"u"?window:typeof global<"u"?global:{},Kr=PJ.__VUE_DEVTOOLS_GLOBAL_HOOK__;function TJ(e){Kr&&(e._devtoolHook=Kr,Kr.emit("vuex:init",e),Kr.on("vuex:travel-to-state",function(s){e.replaceState(s)}),e.subscribe(function(s,t){Kr.emit("vuex:mutation",s,t)},{prepend:!0}),e.subscribeAction(function(s,t){Kr.emit("vuex:action",s,t)},{prepend:!0}))}function DJ(e,s){return e.filter(s)[0]}function Kh(e,s){if(s===void 0&&(s=[]),e===null||typeof e!="object")return e;var t=DJ(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]=Kh(e[i],s)}),r}function qi(e,s){Object.keys(e).forEach(function(t){return s(e[t],t)})}function I$(e){return e!==null&&typeof e=="object"}function MJ(e){return e&&typeof e.then=="function"}function EJ(e,s){return function(){return e(s)}}var ds=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)||{}},H$={namespaced:{configurable:!0}};H$.namespaced.get=function(){return!!this._rawModule.namespaced};ds.prototype.addChild=function(s,t){this._children[s]=t};ds.prototype.removeChild=function(s){delete this._children[s]};ds.prototype.getChild=function(s){return this._children[s]};ds.prototype.hasChild=function(s){return s in this._children};ds.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)};ds.prototype.forEachChild=function(s){qi(this._children,s)};ds.prototype.forEachGetter=function(s){this._rawModule.getters&&qi(this._rawModule.getters,s)};ds.prototype.forEachAction=function(s){this._rawModule.actions&&qi(this._rawModule.actions,s)};ds.prototype.forEachMutation=function(s){this._rawModule.mutations&&qi(this._rawModule.mutations,s)};Object.defineProperties(ds.prototype,H$);var Wr=function(s){this.register([],s,!1)};Wr.prototype.get=function(s){return s.reduce(function(t,r){return t.getChild(r)},this.root)};Wr.prototype.getNamespace=function(s){var t=this.root;return s.reduce(function(r,i){return t=t.getChild(i),r+(t.namespaced?i+"/":"")},"")};Wr.prototype.update=function(s){j$([],this.root,s)};Wr.prototype.register=function(s,t,r){var i=this;r===void 0&&(r=!0);var n=new ds(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&&qi(t.modules,function(o,l){i.register(s.concat(l),o,r)})};Wr.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)};Wr.prototype.isRegistered=function(s){var t=this.get(s.slice(0,-1)),r=s[s.length-1];return t?t.hasChild(r):!1};function j$(e,s,t){if(s.update(t),t.modules)for(var r in t.modules){if(!s.getChild(r))return;j$(e.concat(r),s.getChild(r),t.modules[r])}}var Ot,Vt=function(s){var t=this;s===void 0&&(s={}),!Ot&&typeof window<"u"&&window.Vue&&U$(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 Wr(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(h,p){return o.call(n,h,p)},this.commit=function(h,p,m){return l.call(n,h,p,m)},this.strict=i;var c=this._modules.root.state;Yc(this,c,[],this._modules.root),qm(this,c),r.forEach(function(d){return d(t)});var u=s.devtools!==void 0?s.devtools:Ot.config.devtools;u&&TJ(this)},Zm={state:{configurable:!0}};Zm.state.get=function(){return this._vm._data.$$state};Zm.state.set=function(e){};Vt.prototype.commit=function(s,t,r){var i=this,n=El(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)}))};Vt.prototype.dispatch=function(s,t){var r=this,i=El(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(h){try{r._actionSubscribers.filter(function(p){return p.after}).forEach(function(p){return p.after(o,r.state)})}catch{}u(h)},function(h){try{r._actionSubscribers.filter(function(p){return p.error}).forEach(function(p){return p.error(o,r.state,h)})}catch{}d(h)})})}};Vt.prototype.subscribe=function(s,t){return N$(s,this._subscribers,t)};Vt.prototype.subscribeAction=function(s,t){var r=typeof s=="function"?{before:s}:s;return N$(r,this._actionSubscribers,t)};Vt.prototype.watch=function(s,t,r){var i=this;return this._watcherVM.$watch(function(){return s(i.state,i.getters)},t,r)};Vt.prototype.replaceState=function(s){var t=this;this._withCommit(function(){t._vm._data.$$state=s})};Vt.prototype.registerModule=function(s,t,r){r===void 0&&(r={}),typeof s=="string"&&(s=[s]),this._modules.register(s,t),Yc(this,this.state,s,this._modules.get(s),r.preserveState),qm(this,this.state)};Vt.prototype.unregisterModule=function(s){var t=this;typeof s=="string"&&(s=[s]),this._modules.unregister(s),this._withCommit(function(){var r=Xm(t.state,s.slice(0,-1));Ot.delete(r,s[s.length-1])}),V$(this)};Vt.prototype.hasModule=function(s){return typeof s=="string"&&(s=[s]),this._modules.isRegistered(s)};Vt.prototype.hotUpdate=function(s){this._modules.update(s),V$(this,!0)};Vt.prototype._withCommit=function(s){var t=this._committing;this._committing=!0,s(),this._committing=t};Object.defineProperties(Vt.prototype,Zm);function N$(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 V$(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;Yc(e,t,[],e._modules.root,!0),qm(e,t,s)}function qm(e,s,t){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,n={};qi(i,function(o,l){n[l]=EJ(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&&RJ(e),r&&(t&&e._withCommit(function(){r._data.$$state=null}),Ot.nextTick(function(){return r.$destroy()}))}function Yc(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=Xm(s,t.slice(0,-1)),l=t[t.length-1];e._withCommit(function(){Ot.set(o,l,r.state)})}var c=r.context=OJ(e,a,t);r.forEachMutation(function(u,d){var h=a+d;kJ(e,h,u,c)}),r.forEachAction(function(u,d){var h=u.root?d:a+d,p=u.handler||u;AJ(e,h,p,c)}),r.forEachGetter(function(u,d){var h=a+d;FJ(e,h,u,c)}),r.forEachChild(function(u,d){Yc(e,s,t.concat(d),u,i)})}function OJ(e,s,t){var r=s==="",i={dispatch:r?e.dispatch:function(n,a,o){var l=El(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=El(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 LJ(e,s)}},state:{get:function(){return Xm(e.state,t)}}}),i}function LJ(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 kJ(e,s,t,r){var i=e._mutations[s]||(e._mutations[s]=[]);i.push(function(a){t.call(e,r.state,a)})}function AJ(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 MJ(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):o})}function FJ(e,s,t,r){e._wrappedGetters[s]||(e._wrappedGetters[s]=function(n){return t(r.state,r.getters,n.state,n.getters)})}function RJ(e){e._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function Xm(e,s){return s.reduce(function(t,r){return t[r]},e)}function El(e,s,t){return I$(e)&&e.type&&(t=s,s=e,e=e.type),{type:e,payload:s,options:t}}function U$(e){Ot&&e===Ot||(Ot=e,SJ(Ot))}var B$=Kc(function(e,s){var t={};return Jc(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=Qc(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}),W$=Kc(function(e,s){var t={};return Jc(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=Qc(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}),G$=Kc(function(e,s){var t={};return Jc(s).forEach(function(r){var i=r.key,n=r.val;n=e+n,t[i]=function(){if(!(e&&!Qc(this.$store,"mapGetters",e)))return this.$store.getters[n]},t[i].vuex=!0}),t}),z$=Kc(function(e,s){var t={};return Jc(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=Qc(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}),IJ=function(e){return{mapState:B$.bind(null,e),mapGetters:G$.bind(null,e),mapMutations:W$.bind(null,e),mapActions:z$.bind(null,e)}};function Jc(e){return HJ(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 HJ(e){return Array.isArray(e)||I$(e)}function Kc(e){return function(s,t){return typeof s!="string"?(t=s,s=""):s.charAt(s.length-1)!=="/"&&(s+="/"),e(s,t)}}function Qc(e,s,t){var r=e._modulesNamespaceMap[t];return r}function jJ(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,h){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=Kh(u.state);typeof c>"u"||(o&&u.subscribe(function(h,p){var m=Kh(p);if(t(h,d,m)){var f=rb(),b=i(h),C="mutation "+h.type+f;tb(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(m)),sb(c)}d=m}),l&&u.subscribeAction(function(h,p){if(n(h,p)){var m=rb(),f=a(h),b="action "+h.type+m;tb(c,b,s),c.log("%c action","color: #03A9F4; font-weight: bold",f),sb(c)}}))}}function tb(e,s,t){var r=t?e.groupCollapsed:e.group;try{r.call(e,s)}catch{e.log(s)}}function sb(e){try{e.groupEnd()}catch{e.log("—— log end ——")}}function rb(){var e=new Date;return" @ "+Ua(e.getHours(),2)+":"+Ua(e.getMinutes(),2)+":"+Ua(e.getSeconds(),2)+"."+Ua(e.getMilliseconds(),3)}function NJ(e,s){return new Array(s+1).join(e)}function Ua(e,s){return NJ("0",s-e.toString().length)+e}var VJ={Store:Vt,install:U$,version:"3.6.2",mapState:B$,mapMutations:W$,mapGetters:G$,mapActions:z$,createNamespacedHelpers:IJ,createLogger:jJ};const Z$=VJ,UJ={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})},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())})}},BJ={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)}},WJ={getVersion:e=>e.packageVersion,getTitle:(e,s)=>{var r,i,n,a,o,l,c,u,d,h,p,m,f,b,C,w,M,H,A,$,T,I;if(!((r=e.socket)!=null&&r.isConnected))return"Mainsail";if(((i=e.server)==null?void 0:i.klippy_state)!=="ready")return be.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 be.t("App.Titles.Pause");if(((u=(c=e.printer)==null?void 0:c.print_stats)==null?void 0:u.state)==="complete"){let R=be.t("App.Titles.Complete",{filename:e.printer.print_stats.filename});return(d=e.gui)!=null&&d.general.printername&&(R+="- ".concat((h=e.gui)==null?void 0:h.general.printername)),R}if(t==="printing"){const R=s["printer/getEstimatedTimeETAFormat"],W=Math.floor(s["printer/getPrintPercent"]*100);if(R!=="--"){let ee=be.t("App.Titles.PrintingETA",{percent:W,filename:(m=(p=e.printer)==null?void 0:p.print_stats)==null?void 0:m.filename,eta:R});return(f=e.gui)!=null&&f.general.printername&&(ee+="- ".concat((b=e.gui)==null?void 0:b.general.printername)),ee}let B=be.t("App.Titles.Printing",{percent:W,filename:(w=(C=e.printer)==null?void 0:C.print_stats)==null?void 0:w.filename});return(M=e.gui)!=null&&M.general.printername&&(B+="- ".concat((H=e.gui)==null?void 0:H.general.printername)),B}return(I=(T=(A=e.gui)==null?void 0:A.general.printername)!=null?T:($=e.printer)==null?void 0:$.hostname)!=null?I:"Mainsail"},getDependencies:e=>{var b,C,w,M,H,A,$,T,I,R,W,B;const s=[],t=(C=(b=e.printer)==null?void 0:b.software_version)!=null?C:"",r=t.split("-"),i=(w=r[0])!=null?w:"",n=parseInt((M=r[1])!=null?M:0),a=df.split("-"),o=(H=a[0])!=null?H:"",l=parseInt((A=a[1])!=null?A:0);Ve.valid(i)&&(Ve.gt(o,i)||Ve.eq(o,i)&&n{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))}},ZJ={getUrl:e=>"//"+e.hostname+(e.port!==80?":"+e.port:""),getHostUrl:e=>(e.protocol==="wss"?"https":"http")+"://"+e.hostname+"/",getWebsocketUrl:(e,s)=>e.protocol+":"+s.getUrl+"/websocket"},q$=()=>{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);return{hostname:e,port:t,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}},qJ=q$(),XJ={namespaced:!0,state:qJ,getters:ZJ,actions:GJ,mutations:zJ},YJ={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("webcams")&&(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=t5(n),Ab.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{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=''+n+""),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)}},JJ={reset(e){Object.assign(e,sx())},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>=Ea&&(s=s.slice(s.length-Ea)),s.forEach(t=>{const r=new Date(t.time*1e3);let i=kp(t.message),n=t.type;n==="command"&&(i=''+i+""),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>=Ea&&(e.events=e.events.slice(e.events.length-Ea))},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))}},KJ={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 HELP 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:kp(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,h,p,m,f,b,C,w,M,H,A,$,T,I,R,W,B,ee,D,z,X,Q,te,se,F,G,x,P;let i=null;if("system_info"in e){let L=null;(n=t.printer)!=null&&n.software_version&&(L=(a=t.printer)==null?void 0:a.software_version.split("-").slice(0,4).join("-"));let Y=null;if((l=(o=e.system_info)==null?void 0:o.python)!=null&&l.version_string){const Gx=(u=(c=e.system_info)==null?void 0:c.python)==null?void 0:u.version_string.indexOf(" ");Y=(h=(d=e.system_info)==null?void 0:d.python)==null?void 0:h.version_string.slice(0,Gx+1)}const ae=(f=(m=(p=e.system_info)==null?void 0:p.cpu_info)==null?void 0:m.cpu_count)!=null?f:1,de=Math.round(((C=(b=t.printer.system_stats)==null?void 0:b.sysload)!=null?C:0)*100)/100,ge=Math.round(de/ae*100);let ye="primary";ge>95?ye="error":ge>80&&(ye="warning");let tt=null,lt=null;const _t=((M=(w=t.printer.system_stats)==null?void 0:w.memavail)!=null?M:0)*1024,Ss=(($=(A=(H=e.system_info)==null?void 0:H.cpu_info)==null?void 0:A.total_memory)!=null?$:0)*1024;_t>0&&Ss>0?(tt=it(Ss-_t)+" / "+it(Ss),lt=Math.round((Ss-_t)/Ss*100)):Ss&&(tt=it(Ss));let iu="primary";lt&<>95?iu="error":lt&<>80&&(iu="warning");let nu=r["printer/getHostTempSensor"];nu===null&&(nu={temperature:(T=e.cpu_temp)==null?void 0:T.toFixed(0),measured_min_temp:null,measured_max_temp:null}),i={cpuName:(W=(R=(I=e.system_info)==null?void 0:I.cpu_info)==null?void 0:R.processor)!=null?W:null,cpuDesc:(D=(ee=(B=e.system_info)==null?void 0:B.cpu_info)==null?void 0:ee.cpu_desc)!=null?D:null,bits:(Q=(X=(z=e.system_info)==null?void 0:z.cpu_info)==null?void 0:X.bits)!=null?Q:null,version:L,pythonVersion:Y,os:(F=(se=(te=e.system_info)==null?void 0:te.distribution)==null?void 0:se.name)!=null?F:null,release_info:(P=(x=(G=e.system_info)==null?void 0:G.distribution)==null?void 0:x.release_info)!=null?P:null,load:de,loadPercent:ge<100?ge:100,loadProgressColor:ye,memoryFormat:tt,memUsed:it(Ss-_t),memAvail:it(_t),memTotal:it(Ss),memUsage:lt,memUsageColor:iu,tempSensor:nu}}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}},QJ={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})}},eK={reset(e){Object.assign(e,X$())},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)}},tK={getDevices:e=>e.devices},X$=()=>({devices:[]}),sK=X$(),rK={namespaced:!0,state:sK,getters:tK,actions:QJ,mutations:eK},iK={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})}},nK={reset(e){Object.assign(e,Y$())},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:[]})}},aK={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}})}),$t(s,"name")}},Y$=()=>({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:[]}}),oK=Y$(),lK={namespaced:!0,state:oK,getters:aK,actions:iK,mutations:nK},cK={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){e("setTotals",s.job_totals)},async getHistory({commit:e,dispatch:s,state:t},r){var o,l,c,u,d,h,p,m,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(w=>{t.jobs.findIndex(M=>M.job_id===w.job_id)===-1&&e("addJob",w)});const i=(d=(u=r.requestParams)==null?void 0:u.start)!=null?d:0,n=(p=(h=r.requestParams)==null?void 0:h.limit)!=null?p:50,a=(f=(m=r.requestParams)==null?void 0:m.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){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})}},uK={reset(e){Object.assign(e,J$())},resetJobs(e){y.set(e,"jobs",[])},setTotals(e,s){y.set(e,"job_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)}},dK={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=be.te("History.StatusValues.".concat(i.status),"en")?be.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.value1){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:be.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 t.gui.view.history.selectedJobs.forEach(i=>{var a;const n=r.findIndex(o=>o.name===i.status);if(n!==-1)r[n].value+=1;else{const o=be.te("History.StatusValues.".concat(i.status),"en")?be.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,t){const r=[],i=new Date;i.setTime(i.getTime()-60*60*24*14*1e3),i.setHours(0,0,0,0);let n=[...e.jobs.filter(a=>new Date(a.start_time*1e3)>=i&&a.filament_used>0)];t.gui.view.history.selectedJobs.length&&(n=[...t.gui.view.history.selectedJobs.filter(a=>new Date(a.start_time*1e3)>=i&&a.filament_used>0)]);for(let a=0;a<=14;a++){const o=new Date;o.setTime(i.getTime()+60*60*24*a*1e3),r.push([new Date(o).setHours(0,0,0,0),0])}return n.length&&n.forEach(a=>{const o=new Date(a.start_time*1e3).setHours(0,0,0,0),l=r.findIndex(c=>c[0]===o);l!==-1&&(r[l][1]+=Math.round(a.filament_used)/1e3)}),r.sort((a,o)=>o[0]-a[0])},getPrinttimeAvgArray(e,s,t){const r=[0,0,0,0,0],i=new Date(new Date().getTime()-60*60*24*14*1e3);let n=[...e.jobs.filter(a=>new Date(a.start_time*1e3)>=i&&a.status==="completed")];return t.gui.view.history.selectedJobs.length&&(n=[...t.gui.view.history.selectedJobs.filter(a=>new Date(a.start_time*1e3)>=i&&a.status==="completed")]),n.length&&n.forEach(a=>{a.print_duration>0&&a.print_duration<=60*60*2?r[0]++:a.print_duration>60*60*2&&a.print_duration<=60*60*6?r[1]++:a.print_duration>60*60*6&&a.print_duration<=60*60*12?r[2]++:a.print_duration>60*60*12&&a.print_duration<=60*60*24?r[3]++:a.print_duration>60*60*24&&r[4]++}),r},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;return((l=o.metadata)==null?void 0:l.size)===r&&Math.round(((c=o.metadata)==null?void 0:c.modified)*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;return n.filename===s&&Math.round(((a=n.metadata)==null?void 0:a.modified)*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 EP;case"completed":return NS;case"cancelled":return ZS;default:return Sn}},getFilterdJobList:(e,s,t)=>{const r=t.gui.view.history.hidePrintStatus;return e.jobs.filter(i=>!r.includes(i.status))}},J$=()=>({jobs:[],job_totals:{total_jobs:0,total_time:0,total_print_time:0,total_filament_used:0,longest_job:0,longest_print:0},all_loaded:!1}),hK=J$(),pK={namespaced:!0,state:hK,getters:dK,actions:cK,mutations:uK},mK={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")}},fK={reset(e){Object.assign(e,K$())},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:""})}},gK={},K$=()=>({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:""}}),vK=K$(),_K={namespaced:!0,state:vK,getters:gK,actions:mK,mutations:fK},bK={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&&await e("setQueuedJobs",t.queued_jobs),"queue_state"in t&&await 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({getters:e},s){const t=[];e.getJobs.forEach(i=>{var a,o;if(i.job_id===s.job_id){for(let l=0;l{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>=ms&&d.width<=fs&&d.height>=ms&&d.height<=fs),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>=Os),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""}},Q$=()=>({queued_jobs:[],queue_state:""}),$K=Q$(),xK={namespaced:!0,state:$K,getters:CK,actions:bK,mutations:yK},wK={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})}},SK={reset(e){Object.assign(e,ex())},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)}},PK={getAnnouncements:e=>e.entries.filter(s=>!s.dismissed)},ex=()=>({entries:[],feeds:[]}),TK=ex(),DK={namespaced:!0,state:TK,getters:PK,actions:wK,mutations:SK},MK={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"},{action:"server/spoolman/getInfo"}),y.$socket.emit("server.spoolman.proxy",{request_method:"GET",path:"/v1/health"},{action:"server/spoolman/getHealth"}),y.$socket.emit("server.spoolman.proxy",{request_method:"GET",path:"/v1/vendor"},{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",path:"/v1/spool/".concat(t.spool_id)},{action:"server/spoolman/getActiveSpool"})},getActiveSpool({commit:e},s){"requestParams"in s&&delete s.requestParams,e("setActiveSpool",s)},getHealth({commit:e,dispatch:s},t){delete t.requestParams,e("setHealth",t.status),s("socket/removeInitModule","server/spoolman/getHealth",{root:!0})},getInfo({commit:e,dispatch:s},t){delete t.requestParams,e("setInfo",t),s("socket/removeInitModule","server/spoolman/getInfo",{root:!0})},getVendors({commit:e,dispatch:s},t){delete t.requestParams,e("setVendors",Object.entries(t).map(r=>r)),s("socket/removeInitModule","server/spoolman/getVendors",{root:!0})},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){"requestParams"in t&&delete t.requestParams;const r=Object.entries(t).map(i=>i[1]);e("setSpools",r),s("socket/removeLoading","refreshSpools",{root:!0})},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"})}},EK={reset(e){Object.assign(e,tx())},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)}},OK={},tx=()=>({health:"",info:{automatic_backups:!1,backups_dir:"",data_dir:"",debug_mode:!1,version:""},active_spool_id:null,active_spool:null,vendors:[],feeds:[]}),LK=tx(),kK={namespaced:!0,state:LK,getters:OK,actions:MK,mutations:EK},sx=()=>({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:""}),AK=sx(),FK={namespaced:!0,state:AK,getters:KJ,actions:YJ,mutations:JJ,modules:{power:rK,updateManager:lK,history:pK,timelapse:_K,jobQueue:xK,announcements:DK,spoolman:kK}},RK={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){e("server/setData",{klippy_state:t.state,klippy_message:t.state_message},{root:!0}),e("setData",{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,h,p;"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}),(h=r.toolhead)!=null&&h.axis_minimum&&s("gui/updateGcodeviewerCache",{axis_minimum:(p=r.toolhead)==null?void 0:p.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")}},IK={reset(e){const s=ix();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){rc(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",{})}},HK={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 i,n,a,o;const s=[],t=(n=(i=e.configfile)==null?void 0:i.config)!=null?n:{},r=(o=(a=e.configfile)==null?void 0:a.settings)!=null?o:null;return Object.keys(t).filter(l=>l.toLowerCase().startsWith("gcode_macro")).forEach(l=>{var p,m;const c=l.replace("gcode_macro ","");if(c.startsWith("_"))return;const u=l.toLowerCase(),d=r[u];if("rename_existing"in d)return;const h=(p=e[l])!=null?p:{};s.push({name:c,description:(m=r[u].description)!=null?m:null,prop:d,params:i5(d),variables:h})}),$t(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.controllableo.controllable)return-1;const l=a.name.toUpperCase(),c=o.name.toUpperCase();return lc?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 p,m,f,b,C,w,M,H,A,$,T,I;let a="RGB",o=null;const l=(p=n.state.color_data)!=null?p:[];"color_order"in n.settings&&(a=(m=n.settings.color_order[0])!=null?m:""),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 h=(w=n.settings.initial_white)!=null?w:null;if("initial_white"in n.config||(h=null),n.type==="led"&&a.length===1){const R=(M=l[0])!=null?M:[];switch(a){case"R":o=(H=R[0])!=null?H:0;break;case"G":o=(A=R[1])!=null?A:0;break;case"B":o=($=R[2])!=null?$:0;break;case"W":o=(T=R[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:h,colorData:l,singleChannelTarget:o})}),t.sort((n,a)=>{const o=n.name.toUpperCase(),l=a.name.toUpperCase();return ol?1:0})},getMiscellaneous:e=>{var i,n,a,o,l,c;const s=[],t=["controller_fan","heater_fan","fan_generic","fan","output_pin"],r=["fan_generic","fan"];for(const[u,d]of Object.entries(e)){const h=u.split(" ");if(t.includes(h[0])){const p=h.length>1?h[1]:h[0];if(!p.startsWith("_")){let m=r.includes(h[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 w=m,M=1;h[0].toLowerCase()==="fan"&&(M=255),h[0].toLowerCase()==="output_pin"&&(m=!0,w=!1,"pwm"in f&&(w=(a=f==null?void 0:f.pwm)!=null?a:!1),"scale"in f&&(M=(o=f==null?void 0:f.scale)!=null?o:1));const H={name:p,type:h[0],power:b,controllable:m,pwm:w,rpm:C,scale:M,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&&(H.off_below=(l=f==null?void 0:f.off_below)!=null?l:0),"max_power"in f&&(H.max_power=(c=f==null?void 0:f.max_power)!=null?c:1)),s.push(H)}}}return s.sort((u,d)=>{if(u.type==="fan")return-1;if(d.type==="fan"||u.pwmd.pwm)return-1;if(u.controllabled.controllable)return-1;const h=u.name.toUpperCase(),p=d.name.toUpperCase();return hp?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 $t(t,"name")},getMcus:(e,s)=>{const t=[];return Object.keys(e).forEach(r=>{var i,n,a,o,l,c,u,d,h,p,m,f;if(r==="mcu"||r.startsWith("mcu ")){const b=e[r],C=((i=b.mcu_version)!=null?i:"unknown").split("-").slice(0,4).join("-");let w=0;(n=b.last_stats)!=null&&n.mcu_task_avg&&((a=b.last_stats)!=null&&a.mcu_task_stddev)&&(w=b.last_stats.mcu_task_avg+3*((o=b.last_stats)==null?void 0:o.mcu_task_stddev)/.0025);let M="primary";w>.95?M="error":w>.8&&(M="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:s5((p=(h=b.last_stats)==null?void 0:h.freq)!=null?p:0),awake:(((f=(m=b.last_stats)==null?void 0:m.mcu_awake)!=null?f:0)/5).toFixed(2),load:w.toFixed(2),loadPercent:w<1?Math.round(w*100):100,loadProgressColor:M,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(h=>h.toLowerCase()===a.toLowerCase())||"";if("sensor_type"in o&&t.includes(o.sensor_type)&&l in e){const h=e[l];i={temperature:(c=h.temperature)==null?void 0:c.toFixed(0),measured_min_temp:(u=h.measured_min_temp)==null?void 0:u.toFixed(1),measured_max_temp:(d=h.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},getBedMeshProfiles:e=>{var r;const s=[];let t="";return e.bed_mesh&&(t=e.bed_mesh.profile_name),e.bed_mesh&&"profiles"in e.bed_mesh&&Object.keys((r=e.bed_mesh)==null?void 0:r.profiles).forEach(i=>{const n=e.bed_mesh.profiles[i];let a=[];n.points.forEach(c=>{a=a.concat(c)});const o=Math.min(...a),l=Math.max(...a);s.push({name:i,data:{...n.mesh_params,points:n.points},points:a,min:o,max:l,variance:Math.abs(o-l),is_active:t===i})}),$t(s,"name")},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 fS.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,h,p,m;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=(m=(p=(h=(d=t.gui)==null?void 0:d.general)==null?void 0:h.calcEstimateTime)==null?void 0:p.includes("filament"))!=null?m:!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,h,p,m,f,b,C,w,M;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=(m=(p=(h=t.gui)==null?void 0:h.general)==null?void 0:p.calcEtaTime)==null?void 0:m.includes("filament"))!=null?f:!1,o=(M=(w=(C=(b=t.gui)==null?void 0:b.general)==null?void 0:C.calcEtaTime)==null?void 0:w.includes("slicer"))!=null?M:!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 h;const i=(h=r["gui/getHours12Format"])!=null?h:!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}},jK={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 h=Object.keys(r),p={};h.forEach(A=>{let $=A;if($.indexOf(" ")!==-1&&($=$.substring($.indexOf(" ")+1)),!(a.includes(A)||o.includes(A))||$.startsWith("_")){delete r[A];return}const T=r[A];on.forEach(I=>{if(I+"s"in T){const R=l-T[I+"s"].length;T[I+"s"]=[...Array.from({length:R},()=>null),...T[I+"s"]]}}),p[A]={...T}}),a.concat(o).forEach(A=>{if(A in r)return;let $=A,T=A;const I=A.indexOf(" ");if(I!==-1&&($=A.substring(I+1),T=A.substring(0,I)),$.startsWith("_"))return;const R={temperatures:Array(l).fill(null)};n.includes(A)?(R.targets=Array(l).fill(null),R.powers=Array(l).fill(null)):["temperature_fan"].includes(T)&&(R.targets=Array(l).fill(null),R.speeds=Array(l).fill(null)),p[A]={...R}});const f=[];for(let A=0;A{on.forEach(I=>{const R="".concat(I,"s");R in p[T]&&($["".concat(T,"-").concat(I)]=p[T][R][A])})}),f.push($)}e("setInitSource",f);const b=Object.keys(f[0]).filter(A=>A!=="date"),C=b.filter(A=>A.endsWith("-temperature")).map(A=>A.slice(0,A.length-12)).sort(),w=[];let M=0;C.forEach(A=>{let $=s["gui/getDatasetValue"]({name:A,type:"color"});$||(A==="heater_bed"&&($=dS),A.endsWith(" chamber")&&($=hS),$||($=uS[M],M++,$===void 0&&($="#"+Math.floor(16777215*Math.random()).toString(16))));const T={id:w.length+1,color:$,type:"line",name:"".concat(A,"-temperature"),encode:{x:"date",y:"".concat(A,"-temperature")},animation:!1,yAxisIndex:0,lineStyle:{color:$,width:2,opacity:.9},showSymbol:!1,emphasis:{lineStyle:{color:$,width:2,opacity:.9}}};w.push(T),on.forEach(I=>{if(I==="temperature")return;const R=A+"-"+I;if(!b.includes(R))return;const W=JSON.parse(JSON.stringify(T));W.id=w.length+1,W.name=R,W.encode.y=R,I==="target"&&(W.lineStyle.width=0,W.emphasis.lineStyle.width=0,W.areaStyle={color:$,opacity:.1},W.emphasis.areaStyle={color:$,opacity:.1}),wn.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"),w.push(W)})}),e("setInitSeries",w);const H=setInterval(()=>{t("updateSource")},pS);e("setUpdateSourceInterval",H)}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],h=d.date.getSeconds(),p=c.getSeconds(),m=c.getTime()-d.date.getTime();if(h===p&&m<1e3)return}const u={date:c};a.forEach(d=>{if(!(s.printer&&d in s.printer))return;const h={...s.printer[d]};on.forEach(p=>{if(!(p in h))return;let m=h[p];m!==null&&(m=Math.round(h[p]*10)/10),wn.includes(p)&&(m=Math.round(h[p]*1e3)/1e3),u["".concat(d,"-").concat(p)]=m})}),e("addToSource",{data:u,maxHistory:t["printer/tempHistory/getTemperatureStoreSize"]})}},setColor({commit:e},s){e("setColor",s)}},NK={reset(e){Object.assign(e,rx())},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)}})}},VK={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&&wn.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,h,p,m;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((m=(p=(h=t.printer)==null?void 0:h.heaters)==null?void 0:p.available_sensors)!=null?m:[]).filter(f=>{var w;if(i.includes(f)||f.startsWith("temperature_fan"))return!1;const b=r[f.toLowerCase()];if(!b)return!1;const C=(w=b.sensor_type)!=null?w:"";return["temperature_mcu","temperature_host"].includes(C)})},getSelectedLegends:(e,s,t)=>{var l,c,u,d,h,p,m,f,b,C,w,M,H,A,$,T,I,R,W;const r={},i=(u=(c=(l=t.printer)==null?void 0:l.heaters)==null?void 0:c.available_sensors)!=null?u:[],n=(m=(p=(h=(d=t.gui)==null?void 0:d.view)==null?void 0:h.tempchart)==null?void 0:p.datasetSettings)!=null?m:{};if(Object.keys(n).forEach(B=>{i.includes(B)&&Object.keys(n[B]).forEach(ee=>{if(!on.includes(ee))return;const D="".concat(B,"-").concat(ee);e.series.findIndex(z=>z.name===D)!==-1&&(r[D]=n[B][ee])})}),e.series.forEach(B=>{if(Object.keys(r).includes(B.name))return;const ee=B.name.slice(B.name.lastIndexOf("-")+1);r[B.name]=!wn.includes(ee)}),(w=(C=(b=(f=t.gui)==null?void 0:f.view)==null?void 0:b.tempchart)==null?void 0:C.hideMcuHostSensors)!=null?w:!1){const B=(M=s.getHostMcuSensors)!=null?M:[];Object.keys(r).filter(ee=>{const D=ee.slice(0,ee.lastIndexOf("-"));return B.includes(D)}).forEach(ee=>{r[ee]=!1})}if((T=($=(A=(H=t.gui)==null?void 0:H.view)==null?void 0:A.tempchart)==null?void 0:$.hideMonitors)!=null?T:!1){const B=(W=(R=(I=t.printer)==null?void 0:I.heaters)==null?void 0:R.available_monitors)!=null?W:[];Object.keys(r).filter(ee=>{const D=ee.slice(0,ee.lastIndexOf("-"));return B.includes(D)}).forEach(ee=>{r[ee]=!1})}return r},getTemperatureStoreSize:(e,s,t,r)=>{const i=r["server/getConfig"]("data_store","temperature_store_size");return i!=null?i:1200}},rx=()=>({source:[],series:[],timeLastUpdate:null,updateSourceInterval:null}),UK=rx(),BK={namespaced:!0,state:UK,getters:VK,actions:jK,mutations:NK},ix=()=>({}),WK=ix(),GK={namespaced:!0,state:WK,getters:HK,actions:RK,mutations:IK,modules:{tempHistory:BK}},zK={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,h,p,m;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(w=>w.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(w=>w.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=>!xS.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(w=>!w.isDirectory&&w.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}})}),(h=r==null?void 0:r.root_info)!=null&&h.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!==((p=r.root_info)==null?void 0:p.permissions)&&s("setRootPermissions",r.root_info)}(m=r.requestParams)!=null&&m.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(be.t("Files.ScanMetaSuccess",{filename:t}).toString())}},requestMetadata({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.metadata",{filename:r},{action:"files/getMetadata"})}},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(be.t("Files.SuccessfullyRenamed",{filename:t})):y.$toast.success(be.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(be.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(be.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(be.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=Es.CancelToken.source();await e("uploadClearState"),await e("uploadSetCancelTokenSource",n),await e("uploadSetFilename",t.file.name),await e("uploadSetShow",!0);let a=0,o=0;return new Promise(l=>{Es.post(r+"/server/files/upload",i,{cancelToken:n.token,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:c=>{const u=c.loaded*100/c.total;if(e("uploadSetPercent",u),a===0){a=c.timeStamp,o=c.loaded;return}const d=c.timeStamp-a;if(d<1e3)return;const p=(c.loaded-o)/(d/1e3);e("uploadSetSpeed",p),a=c.timeStamp,o=c.loaded}}).then(c=>{e("uploadSetShow",!1);const u=c.data.item.path.lastIndexOf("/"),d=c.data.item.path.slice(u+1);l(d)}).catch(()=>{e("uploadSetShow",!1),y.$toast.error(be.t("FullscreenUpload.CannotUploadFile").toString()),l(!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(be.t("Machine.LogfilesPanel.RolloverToastSuccessful",{name:t}))}),Object.keys(s.failed).forEach(t=>{const r=s.failed[t];y.$toast.error(be.t("Machine.LogfilesPanel.RolloverToastFailed",{name:t,message:r}))}),setTimeout(()=>{y.$socket.emit("server.files.get_directory",{path:"logs"},{action:"files/getDirectory"})},500)}},ZK={reset(e){Object.assign(e,nx())},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=Rt(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=Rt(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]};gS.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=Rt(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=Rt(e.filetree,r.split("/")),c=l==null?void 0:l.findIndex(h=>h.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=Rt(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=Rt(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=Rt(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=Rt(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=Rt(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=Rt(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=Rt(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=Rt(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)}},qK={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 h=s.getDirectory("gcodes"+i);c=(d=h==null?void 0:h.childrens)!=null?d:[]}else{const h=(p,m)=>{var f,b;p.isDirectory&&((f=p.childrens)!=null&&f.length)&&((b=p.childrens)==null||b.forEach(C=>{if(C.isDirectory)h(C,m+C.filename+"/");else{const w={...C};w.filename=m+C.filename,c.push(w)}}))};h(o,"")}c=c.filter(h=>{if(!n&&(h.filename==="thumbs"||h.filename.startsWith(".")))return!1;if(h.isDirectory)return!0;const p=h.filename.lastIndexOf("."),m=h.filename.slice(p);return ci.includes(m)});const u=[];return c.forEach(h=>{var M,H;const p=typeof h.modified.getTime=="function"?h.modified.getTime():0,m={...h,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(A=>{A.name in h&&h[A.name]>1&&f.push("".concat(A.gcode," S").concat(h[A.name]))}),f.length&&(m.preheat_gcode=f.join("\n")),(M=h.thumbnails)!=null&&M.length){let A="";if(i===null){const I=h.filename.lastIndexOf("/");I>0&&(A="/"+h.filename.slice(0,I))}const $=h.thumbnails.find(I=>I.width>=ms&&I.width<=fs&&I.height>=ms&&I.height<=fs);$&&"relative_path"in $&&(m.small_thumbnail="".concat(l+A,"/").concat(encodeURI($.relative_path),"?timestamp=").concat(p));const T=h.thumbnails.find(I=>I.width>=Os);T&&"relative_path"in T&&(m.big_thumbnail="".concat(l+A,"/").concat(encodeURI(T.relative_path),"?timestamp=").concat(p),m.big_thumbnail_width=T.width)}const C=i&&i.length?i+"/"+h.filename:h.filename;let w=r["server/history/getPrintJobsForGcodes"](C,p,h.size,(H=h.uuid)!=null?H:null,h.job_id);if(w&&w.length){w=w.sort((T,I)=>I.start_time-T.start_time);const A=w.filter(T=>T.status==="completed"),$=[...w].shift();if(m.last_status=$.status,m.count_printed=A.length,m.last_start_time=new Date($.start_time*1e3),m.count_printed>0){const T=A[0];m.last_start_time=new Date(T.start_time*1e3),m.last_end_time=new Date(T.end_time*1e3),m.last_filament_used=T.filament_used,m.last_print_duration=T.print_duration,m.last_total_duration=T.total_duration}}(a||m.count_printed===0)&&u.push(m)}),u},getAllGcodes:(e,s)=>s.getGcodeFiles(null,!1,!0),getThemeFileUrl:(e,s,t,r)=>(i,n)=>{var l;const a=s.getDirectory("config/"+xn),o=(l=a==null?void 0:a.childrens)==null?void 0:l.find(c=>{var u,d,h,p;return((d=c.filename)==null?void 0:d.slice(0,(u=c.filename)==null?void 0:u.lastIndexOf(".")))===i&&n.includes((p=c.filename)==null?void 0:p.slice(((h=c.filename)==null?void 0:h.lastIndexOf("."))+1))});return o?"".concat(r["socket/getUrl"],"/server/files/config/").concat(xn,"/").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>=ms&&l.width<=fs&&l.height>=ms&&l.height<=fs);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>=Os);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""}},nx=()=>({filetree:[],upload:{show:!1,filename:"",currentNumber:0,maxNumber:0,cancelTokenSource:null,percent:0,speed:0}}),XK=nx(),YK={namespaced:!0,state:XK,getters:qK,actions:zK,mutations:ZK},JK={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,h;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"})),(h=(d=(u=i.value)==null?void 0:u.view)==null?void 0:d.configfiles)!=null&&h.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(p=>{s("presets/store",{values:p})}),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 p=i.value.dashboard;["mobileLayout","tabletLayout1","tabletLayout2","desktopLayout1","desktopLayout2","widescreenLayout1","widescreenLayout2","widescreenLayout3"].forEach(f=>{if(f in p){const b=p[f].findIndex(C=>C.name==="tools");b!==-1&&(p[f][b].name="temperature",s("saveSetting",{name:"dashboard."+f,value:p[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/"+xn+"/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 a,o,l;const t=e["socket/getUrl"]+"/server/database/item",r=e["socket/getUrl"]+"/server/files/config/"+xn+"/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 c of s)if(["webcams","timelapse"].includes(c)){const u=t+"?namespace="+c,h=await(await fetch(u)).json();if((o=h==null?void 0:h.result)!=null&&o.value)for(const p of Object.keys((l=h==null?void 0:h.result)==null?void 0:l.value))await fetch(u+"&key="+p,{method:"DELETE"});if(c in n)for(const p of n[c])await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({namespace:c,key:p,value:n[c][p]})})}else c==="history_jobs"?await fetch(e["socket/getUrl"]+"/server/history/job?all=true",{method:"DELETE"}):c==="history_totals"?await fetch(e["socket/getUrl"]+"/server/history/reset_totals",{method:"POST"}):(await fetch(e["socket/getUrl"]+"/server/database/item?namespace=mainsail&key="+c,{method:"DELETE"}),c in n&&await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({namespace:"mainsail",key:c,value:n[c]})}));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 h=e["socket/getUrl"]+"/server/database/item?namespace="+d,m=await(await fetch(h)).json();(c=m==null?void 0:m.result)!=null&&c.value&&(t[d]={...(u=m==null?void 0:m.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,h,p;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 m of s.dbCheckboxes)if(["timelapse","webcams"].includes(m)){if(a.includes(m)){const f=t+"?namespace="+m,C=await(await fetch(f)).json();if((h=C==null?void 0:C.result)!=null&&h.value)for(const w of Object.keys((p=C==null?void 0:C.result)==null?void 0:p.value))await fetch(f+"&key="+w,{method:"DELETE"})}for(const f of Object.keys(s.restoreObjects[m])){const b=s.restoreObjects[m][f];await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({namespace:m,key:f,value:b})})}}else o.includes(m)&&await fetch(r+"&key="+m,{method:"DELETE"}),await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({namespace:"mainsail",key:m,value:s.restoreObjects[m]})});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=eu().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})}},KK={reset(e){Object.assign(e,eu())},setData(e,s){rc(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)}},QK={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,h;let i=[..._S];return((c=e.macros)==null?void 0:c.mode)==="expert"&&(s["macros/getAllMacrogroups"].forEach(m=>{i.push("macrogroup_"+m.id)}),i=i.filter(m=>m!=="macros")),r["printer/getKinematics"]==="none"&&(i=i.filter(p=>!["toolhead-control","machine-settings"].includes(p))),r["printer/getExtruders"].length<1&&(i=i.filter(p=>p!=="extruder-control")),((h=(d=(u=t.printer)==null?void 0:u.heaters)==null?void 0:d.available_sensors)!=null?h:[]).length<1&&(i=i.filter(p=>p!=="temperature")),s["webcams/getWebcams"].length===0&&(i=i.filter(p=>p!=="webcam")),t.server.components.includes("spoolman")||(i=i.filter(p=>p!=="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),h=[];l.forEach(p=>{d.find(m=>m.name===p)||h.push({name:p,visible:!0})}),o=o.concat(h)}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(h=>h.name!=="macros");const d=s["macros/getAllMacrogroups"];d.length&&(o=o.filter(h=>{if(!h.name.startsWith("macrogroup_"))return!0;const p=h.name.slice(11);return d.findIndex(m=>m.id===p)!==-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}};let Ba;const eQ=new Uint8Array(16);function tQ(){if(!Ba&&(Ba=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ba))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ba(eQ)}const ct=[];for(let e=0;e<256;++e)ct.push((e+256).toString(16).slice(1));function sQ(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 rQ=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ib={randomUUID:rQ};function ar(e,s,t){if(ib.randomUUID&&!s&&!e)return ib.randomUUID();e=e||{};const r=e.random||(e.rng||tQ)();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 sQ(r)}const iQ={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=ar();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})}},nQ={reset(e){Object.assign(e,ax())},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)}},aQ={getConsolefilters:e=>{const s=[];return Object.keys(e.consolefilters).forEach(t=>{s.push({...e.consolefilters[t],id:t})}),$t(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&&CS.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},ax=()=>({hideWaitTemperatures:!0,hideTlCommands:!0,direction:"table",entryStyle:"default",height:300,autoscroll:!0,consolefilters:{}}),oQ=ax(),lQ={namespaced:!0,state:oQ,getters:aQ,actions:iQ,mutations:nQ},cQ={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>vS;)i.splice(0,1);await e("updateHistory",i),await s("upload")}},uQ={reset(e){Object.assign(e,ox())},updateHistory(e,s){y.set(e,"entries",s)}},dQ={},ox=()=>({entries:[]}),hQ=ox(),pQ={namespaced:!0,state:hQ,getters:dQ,actions:cQ,mutations:uQ},mQ={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=ar();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}))})}},fQ={reset(e){Object.assign(e,lx())},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)}},gQ={getAllMacrogroups:e=>{const s=[];return Object.keys(e.macrogroups).forEach(t=>{s.push({...e.macrogroups[t],id:t})}),$t(s,"name")},getMacrogroup:e=>s=>e.macrogroups[s]},lx=()=>({mode:"simple",hiddenMacros:[],macrogroups:{}}),vQ=lx(),_Q={namespaced:!0,state:vQ,getters:gQ,actions:mQ,mutations:fQ},bQ={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=ar();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=ar();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=ar();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))}},yQ={reset(e){Object.assign(e,cx())},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)}},CQ={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})}),$t(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})}),$t(i,"name")}},cx=()=>({entries:{}}),$Q=cx(),xQ={namespaced:!0,state:$Q,getters:CQ,actions:bQ,mutations:yQ},wQ={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")}},SQ={reset(e){Object.assign(e,ux())},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)}},PQ={},ux=()=>({entries:[]}),TQ=ux(),DQ={namespaced:!0,state:TQ,getters:PQ,actions:wQ,mutations:SQ},MQ={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")}},EQ={reset(e){Object.assign(e,hx())},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 dx={exports:{}};const OQ={},LQ=Object.freeze(Object.defineProperty({__proto__:null,default:OQ},Symbol.toStringTag,{value:"Module"})),nb=hp(LQ);/** * [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=xr: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],h=["hex","array","digest","arrayBuffer"],p=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function($){return Object.prototype.toString.call($)==="[object Array]"}),o&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function($){return typeof $=="object"&&$.buffer&&$.buffer.constructor===ArrayBuffer});var m=function($,T){return function(I){return new M(T,!0).update(I)[$]()}},f=function($){var T=m("hex",$);n&&(T=b(T,$)),T.create=function(){return new M($)},T.update=function(W){return T.create().update(W)};for(var I=0;I>2]|=$[W]<>2]|=R<>2]|=(192|R>>6)<>2]|=(128|R&63)<=57344?(D[B>>2]|=(224|R>>12)<>2]|=(128|R>>6&63)<>2]|=(128|R&63)<>2]|=(240|R>>18)<>2]|=(128|R>>12&63)<>2]|=(128|R>>6&63)<>2]|=(128|R&63)<=64?(this.block=D[16],this.start=B-64,this.hash(),this.hashed=!0):this.start=B}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},M.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var $=this.blocks,T=this.lastByteIndex;$[16]=this.block,$[T>>2]|=c[T&3],this.block=$[16],T>=56&&(this.hashed||this.hash(),$[0]=this.block,$[16]=$[1]=$[2]=$[3]=$[4]=$[5]=$[6]=$[7]=$[8]=$[9]=$[10]=$[11]=$[12]=$[13]=$[14]=$[15]=0),$[14]=this.hBytes<<3|this.bytes>>>29,$[15]=this.bytes<<3,this.hash()}},M.prototype.hash=function(){var $=this.h0,T=this.h1,I=this.h2,R=this.h3,W=this.h4,B=this.h5,ee=this.h6,D=this.h7,z=this.blocks,X,Q,te,se,F,G,x,P,L,Y,ae;for(X=16;X<64;++X)F=z[X-15],Q=(F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3,F=z[X-2],te=(F>>>17|F<<15)^(F>>>19|F<<13)^F>>>10,z[X]=z[X-16]+Q+z[X-7]+te<<0;for(ae=T&I,X=0;X<64;X+=4)this.first?(this.is224?(P=300032,F=z[0]-1413257819,D=F-150054599<<0,R=F+24177077<<0):(P=704751109,F=z[0]-210244248,D=F-1521486534<<0,R=F+143694565<<0),this.first=!1):(Q=($>>>2|$<<30)^($>>>13|$<<19)^($>>>22|$<<10),te=(W>>>6|W<<26)^(W>>>11|W<<21)^(W>>>25|W<<7),P=$&T,se=P^$&I^ae,x=W&B^~W&ee,F=D+te+x+d[X]+z[X],G=Q+se,D=R+F<<0,R=F+G<<0),Q=(R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10),te=(D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7),L=R&$,se=L^R&T^P,x=D&W^~D&B,F=ee+te+x+d[X+1]+z[X+1],G=Q+se,ee=I+F<<0,I=F+G<<0,Q=(I>>>2|I<<30)^(I>>>13|I<<19)^(I>>>22|I<<10),te=(ee>>>6|ee<<26)^(ee>>>11|ee<<21)^(ee>>>25|ee<<7),Y=I&R,se=Y^I&$^L,x=ee&D^~ee&W,F=B+te+x+d[X+2]+z[X+2],G=Q+se,B=T+F<<0,T=F+G<<0,Q=(T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10),te=(B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7),ae=T&I,se=ae^T&R^Y,x=B&ee^~B&D,F=W+te+x+d[X+3]+z[X+3],G=Q+se,W=$+F<<0,$=F+G<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+$<<0,this.h1=this.h1+T<<0,this.h2=this.h2+I<<0,this.h3=this.h3+R<<0,this.h4=this.h4+W<<0,this.h5=this.h5+B<<0,this.h6=this.h6+ee<<0,this.h7=this.h7+D<<0},M.prototype.hex=function(){this.finalize();var $=this.h0,T=this.h1,I=this.h2,R=this.h3,W=this.h4,B=this.h5,ee=this.h6,D=this.h7,z=l[$>>28&15]+l[$>>24&15]+l[$>>20&15]+l[$>>16&15]+l[$>>12&15]+l[$>>8&15]+l[$>>4&15]+l[$&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[R>>28&15]+l[R>>24&15]+l[R>>20&15]+l[R>>16&15]+l[R>>12&15]+l[R>>8&15]+l[R>>4&15]+l[R&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[B>>28&15]+l[B>>24&15]+l[B>>20&15]+l[B>>16&15]+l[B>>12&15]+l[B>>8&15]+l[B>>4&15]+l[B&15]+l[ee>>28&15]+l[ee>>24&15]+l[ee>>20&15]+l[ee>>16&15]+l[ee>>12&15]+l[ee>>8&15]+l[ee>>4&15]+l[ee&15];return this.is224||(z+=l[D>>28&15]+l[D>>24&15]+l[D>>20&15]+l[D>>16&15]+l[D>>12&15]+l[D>>8&15]+l[D>>4&15]+l[D&15]),z},M.prototype.toString=M.prototype.hex,M.prototype.digest=function(){this.finalize();var $=this.h0,T=this.h1,I=this.h2,R=this.h3,W=this.h4,B=this.h5,ee=this.h6,D=this.h7,z=[$>>24&255,$>>16&255,$>>8&255,$&255,T>>24&255,T>>16&255,T>>8&255,T&255,I>>24&255,I>>16&255,I>>8&255,I&255,R>>24&255,R>>16&255,R>>8&255,R&255,W>>24&255,W>>16&255,W>>8&255,W&255,B>>24&255,B>>16&255,B>>8&255,B&255,ee>>24&255,ee>>16&255,ee>>8&255,ee&255];return this.is224||z.push(D>>24&255,D>>16&255,D>>8&255,D&255),z},M.prototype.array=M.prototype.digest,M.prototype.arrayBuffer=function(){this.finalize();var $=new ArrayBuffer(this.is224?28:32),T=new DataView($);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),$};function H($,T,I){var R,W=typeof $;if(W==="string"){var B=[],ee=$.length,D=0,z;for(R=0;R>6,B[D++]=128|z&63):z<55296||z>=57344?(B[D++]=224|z>>12,B[D++]=128|z>>6&63,B[D++]=128|z&63):(z=65536+((z&1023)<<10|$.charCodeAt(++R)&1023),B[D++]=240|z>>18,B[D++]=128|z>>12&63,B[D++]=128|z>>6&63,B[D++]=128|z&63);$=B}else if(W==="object"){if($===null)throw new Error(s);if(o&&$.constructor===ArrayBuffer)$=new Uint8Array($);else if(!Array.isArray($)&&(!o||!ArrayBuffer.isView($)))throw new Error(s)}else throw new Error(s);$.length>64&&($=new M(T,!0).update($).array());var X=[],Q=[];for(R=0;R<64;++R){var te=$[R]||0;X[R]=92^te,Q[R]=54^te}M.call(this,T,I),this.update(Q),this.oKeyPad=X,this.inner=!0,this.sharedMemory=I}H.prototype=new M,H.prototype.finalize=function(){if(M.prototype.finalize.call(this),this.inner){this.inner=!1;var $=this.array();M.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update($),M.prototype.finalize.call(this)}};var A=f();A.sha256=A,A.sha224=f(!0),A.sha256.hmac=w(),A.sha224.hmac=w(!0),a?e.exports=A:(r.sha256=A.sha256,r.sha224=A.sha224)})()})(dx);var Dr=dx.exports,ab=globalThis&&globalThis.__spreadArray||function(e,s,t){if(t||arguments.length===2)for(var r=0,i=s.length,n;r"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new IQ:typeof navigator<"u"?cb(navigator.userAgent):WQ()}function UQ(e){return e!==""&&NQ.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 cb(e){var s=UQ(e);if(!s)return null;var t=s[0],r=s[1];if(t==="searchbot")return new RQ;var i=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);i?i.length{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.getNotificationsBrowserWarnings);const r={normal:2,high:1,critical:0};return t.sort((i,n)=>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:be.t("App.ThrottledStates.Title".concat(c)),description:be.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:be.t("App.Notifications.DependencyName",{name:c.serviceName}).toString(),description:be.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(Dr.sha256(u))),n.forEach(u=>{var h,p,m,f;let d=u;if(u.startsWith("Unparsed config option")){const C=(p=(h=RegExp(/'(?