Files
QIDI_PLUS4/fluidd/assets/index-CxlebU9W.js

274 lines
1.6 MiB
JavaScript
Raw Permalink Normal View History

2024-12-04 10:21:57 +08:00
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./setupMonaco-jNn_3G9H.js","./setupMonaco-qJs8Ougx.css"])))=>i.map(i=>d[i]);
var R9=Object.defineProperty;var I9=(r,e,t)=>e in r?R9(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var m=(r,e,t)=>I9(r,typeof e!="symbol"?e+"":e,t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function t(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(n){if(n.ep)return;n.ep=!0;const i=t(n);fetch(n.href,i)}})();const F9="modulepreload",H9=function(r,e){return new URL(r,e).href},M2={},Ye=function(e,t,s){let n=Promise.resolve();if(t&&t.length>0){const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),o=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));n=Promise.all(t.map(l=>{if(l=H9(l,s),l in M2)return;M2[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(!!s)for(let h=i.length-1;h>=0;h--){const f=i[h];if(f.href===l&&(!c||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":F9,c||(p.as="script",p.crossOrigin=""),p.href=l,o&&p.setAttribute("nonce",o),document.head.appendChild(p),c)return new Promise((h,f)=>{p.addEventListener("load",h),p.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}return n.then(()=>e()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};var j9={};/*!
* Vue.js v2.7.16
* (c) 2014-2023 Evan You
* Released under the MIT License.
*/var pr=Object.freeze({}),ze=Array.isArray;function Ie(r){return r==null}function z(r){return r!=null}function xt(r){return r===!0}function B9(r){return r===!1}function Uu(r){return typeof r=="string"||typeof r=="number"||typeof r=="symbol"||typeof r=="boolean"}function ot(r){return typeof r=="function"}function gr(r){return r!==null&&typeof r=="object"}var G0=Object.prototype.toString;function Cr(r){return G0.call(r)==="[object Object]"}function N9(r){return G0.call(r)==="[object RegExp]"}function wC(r){var e=parseFloat(String(r));return e>=0&&Math.floor(e)===e&&isFinite(r)}function k1(r){return z(r)&&typeof r.then=="function"&&typeof r.catch=="function"}function V9(r){return r==null?"":Array.isArray(r)||Cr(r)&&r.toString===G0?JSON.stringify(r,z9,2):String(r)}function z9(r,e){return e&&e.__v_isRef?e.value:e}function Yc(r){var e=parseFloat(r);return isNaN(e)?r:e}function Xs(r,e){for(var t=Object.create(null),s=r.split(","),n=0;n<s.length;n++)t[s[n]]=!0;return e?function(i){return t[i.toLowerCase()]}:function(i){return t[i]}}Xs("slot,component",!0);var U9=Xs("key,ref,slot,slot-scope,is");function Mi(r,e){var t=r.length;if(t){if(e===r[t-1]){r.length=t-1;return}var s=r.indexOf(e);if(s>-1)return r.splice(s,1)}}var W9=Object.prototype.hasOwnProperty;function Sr(r,e){return W9.call(r,e)}function Na(r){var e=Object.create(null);return function(s){var n=e[s];return n||(e[s]=r(s))}}var G9=/-(\w)/g,ya=Na(function(r){return r.replace(G9,function(e,t){return t?t.toUpperCase():""})}),q9=Na(function(r){return r.charAt(0).toUpperCase()+r.slice(1)}),Z9=/\B([A-Z])/g,Wu=Na(function(r){return r.replace(Z9,"-$1").toLowerCase()});function Y9(r,e){function t(s){var n=arguments.length;return n?n>1?r.apply(e,arguments):r.call(e,s):r.call(e)}return t._length=r.length,t}function K9(r,e){return r.bind(e)}var SC=Function.prototype.bind?K9:Y9;function D1(r,e){e=e||0;for(var t=r.length-e,s=new Array(t);t--;)s[t]=r[t+e];return s}function mt(r,e){for(var t in e)r[t]=e[t];return r}function xC(r){for(var e={},t=0;t<r.length;t++)r[t]&&mt(e,r[t]);return e}function bt(r,e,t){}var Wd=function(r,e,t){return!1},CC=function(r){return r};function ba(r,e){if(r===e)return!0;var t=gr(r),s=gr(e);if(t&&s)try{var n=Array.isArray(r),i=Array.isArray(e);if(n&&i)return r.length===e.length&&r.every(function(l,c){return ba(l,e[c])});if(r instanceof Date&&e instanceof Date)return r.getTime()===e.getTime();if(!n&&!i){var a=Object.keys(r),o=Object.keys(e);return a.length===o.length&&a.every(function(l){return ba(r[l],e[l])})}else return!1}catch{return!1}else return!t&&!s?String(r)===String(e):!1}function PC(r,e){for(var t=0;t<r.length;t++)if(ba(r[t],e))return t;return-1}function eh(r){var e=!1;return function(){e||(e=!0,r.apply(this,arguments))}}function M1(r,e){return r===e?r===0&&1/r!==1/e:r===r||e===e}var R2="data-server-rendered",Zf=["component","directive","filter"],AC=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],ys={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Wd,isReservedAttr:Wd,isUnknownElement:Wd,getTagNamespace:bt,parsePlatformTagName:CC,mustUseProp:Wd,async:!0,_lifecycleHooks:AC},X9=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function LC(r){var e=(r+"").charCodeAt(0);return e===36||e===95}function It(r,e,t,s){Object.defineProperty(r,e,{value:t,enumerable:!!s,writable:!0,configurable:!0})}var J9=new RegExp("[^".concat(X9.source,".$_\\d]"));function Q9(r){if(!J9.test(r)){var e=r.split(".");return function(t){for(var s=0;s<e.length;s++){if(!t)return;t=t[e[s]]}return t}}}var eA="__proto__"in{},Wr=typeof window<"u",$s=Wr&&window.navigator.userAgent.toLowerCase(),gl=$s&&/msie|trident/.test($s),vl=$s&&$s.indexOf("msie 9.0")>0,EC=$s&&$s.indexOf("edge/")>0;$s&&$s.i
* vue-class-component v7.2.6
* (c) 2015-present Evan You
* @license MIT
*/function kp(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kp=function(e){return typeof e}:kp=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kp(r)}function WO(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function GO(r){return qO(r)||ZO(r)||YO()}function qO(r){if(Array.isArray(r)){for(var e=0,t=new Array(r.length);e<r.length;e++)t[e]=r[e];return t}}function ZO(r){if(Symbol.iterator in Object(r)||Object.prototype.toString.call(r)==="[object Arguments]")return Array.from(r)}function YO(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function KO(){return typeof Reflect<"u"&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function XO(r,e){Og(r,e),Object.getOwnPropertyNames(e.prototype).forEach(function(t){Og(r.prototype,e.prototype,t)}),Object.getOwnPropertyNames(e).forEach(function(t){Og(r,e,t)})}function Og(r,e,t){var s=t?Reflect.getOwnMetadataKeys(e,t):Reflect.getOwnMetadataKeys(e);s.forEach(function(n){var i=t?Reflect.getOwnMetadata(n,e,t):Reflect.getOwnMetadata(n,e);t?Reflect.defineMetadata(n,i,r,t):Reflect.defineMetadata(n,i,r)})}var JO={__proto__:[]},QO=JO instanceof Array;function Yu(r){return function(e,t,s){var n=typeof e=="function"?e:e.constructor;n.__decorators__||(n.__decorators__=[]),typeof s!="number"&&(s=void 0),n.__decorators__.push(function(i){return r(i,t,s)})}}function Y(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return b.extend({mixins:e})}function eT(r){var e=kp(r);return r==null||e!=="object"&&e!=="function"}function tT(r,e){var t=e.prototype._init;e.prototype._init=function(){var i=this,a=Object.getOwnPropertyNames(r);if(r.$options.props)for(var o in r.$options.props)r.hasOwnProperty(o)||a.push(o);a.forEach(function(l){Object.defineProperty(i,l,{get:function(){return r[l]},set:function(u){r[l]=u},configurable:!0})})};var s=new e;e.prototype._init=t;var n={};return Object.keys(s).forEach(function(i){s[i]!==void 0&&(n[i]=s[i])}),n}var Q1=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function T$(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.name=e.name||r._componentTag||r.name;var t=r.prototype;Object.getOwnPropertyNames(t).forEach(function(o){if(o!=="constructor"){if(Q1.indexOf(o)>-1){e[o]=t[o];return}var l=Object.getOwnPropertyDescriptor(t,o);l.value!==void 0?typeof l.value=="function"?(e.methods||(e.methods={}))[o]=l.value:(e.mixins||(e.mixins=[])).push({data:function(){return WO({},o,l.value)}}):(l.get||l.set)&&((e.computed||(e.computed={}))[o]={get:l.get,set:l.set})}}),(e.mixins||(e.mixins=[])).push({data:function(){return tT(this,r)}});var s=r.__decorators__;s&&(s.forEach(function(o){return o(e)}),delete r.__decorators__);var n=Object.getPrototypeOf(r.prototype),i=n instanceof b?n.constructor:b,a=i.extend(e);return sT(a,r,i),KO()&&XO(a,r),a}var rT={prototype:!0,arguments:!0,callee:!0,caller:!0};function sT(r,e,t){Object.getOwnPropertyNames(e).forEach(function(s){if(!rT[s]){var n=Object.getOwnPropertyDescriptor(r,s);if(!(n&&!n.configurable)){var i=Object.getOwnPropertyDescriptor(e,s);if(!QO){if(s==="cid")return;var a=Object.getOwnPropertyDescriptor(t,s);if(!eT(i.value)&&a&&a.value===i.value)return}Object.defineProperty(r,s,i)}}})}function A(r){return typeof r=="function"?T$(r):function(e){return T$(e,r)}}A.registerHooks=function(e){Q1.push.apply(Q1,GO(e))};A.registerHooks(["beforeRouteEnter","beforeRouteUpdate"]);const Rr={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},k$={silent:{level:-1},fatal:{level:Rr.fatal},error:{level:Rr.error},warn:{level:Rr.warn},log:{level:Rr.log},info:{level:Rr.info},success:{level:Rr.success},fail:{level:Rr.fail},ready:{level:Rr.info},start:{level:Rr.info},box:{level:Rr.info},debug:{level:Rr.debu
`)),n.args.push(`
`+n.additional.join(`
`)),delete n.additional),n.type=typeof n.type=="string"?n.type.toLowerCase():"log",n.tag=typeof n.tag=="string"?n.tag:"";const i=(o=!1)=>{const l=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&l>0){const c=[...this._lastLog.object.args];l>1&&c.push(`(repeated ${l} times)`),this._log({...this._lastLog.object,args:c}),this._lastLog.count=1}o&&(this._lastLog.object=n,this._log(n))};clearTimeout(this._lastLog.timeout);const a=this._lastLog.time&&n.date?n.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=n.date,a<this.options.throttle)try{const o=JSON.stringify([n.type,n.tag,n.args]),l=this._lastLog.serialized===o;if(this._lastLog.serialized=o,l&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(i,this.options.throttle);return}}catch{}i(!0)}_log(e){for(const t of this.options.reporters)t.log(e,{options:this.options})}}function Dg(r,e={},t=3){return r===void 0?t:typeof r=="number"?r:e[r]&&e[r].level!==void 0?e[r].level:t}lr.prototype.add=lr.prototype.addReporter;lr.prototype.remove=lr.prototype.removeReporter;lr.prototype.clear=lr.prototype.removeReporter;lr.prototype.withScope=lr.prototype.withTag;lr.prototype.mock=lr.prototype.mockTypes;lr.prototype.pause=lr.prototype.pauseLogs;lr.prototype.resume=lr.prototype.resumeLogs;function lT(r={}){return new lr(r)}class cT{constructor(e){this.options={...e},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(e){return e<1?console.__error||console.error:e===1?console.__warn||console.warn:console.__log||console.log}log(e){const t=this._getLogFn(e.level),s=e.type==="log"?"":e.type,n=e.tag||"",a=`
background: ${this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor};
border-radius: 0.5em;
color: white;
font-weight: bold;
padding: 2px 0.5em;
`,o=`%c${[n,s].filter(Boolean).join(":")}`;typeof e.args[0]=="string"?t(`${o}%c ${e.args[0]}`,a,"",...e.args.slice(1)):t(o,a,...e.args)}}function uT(r={}){return lT({reporters:r.reporters||[new cT({})],prompt(t,s={}){return s.type==="confirm"?Promise.resolve(confirm(t)):Promise.resolve(prompt(t))},...r})}const ye=uT();ye.wrapAll();ye.level=Rr.warn;var dT="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",pT="M15,14C12.33,14 7,15.33 7,18V20H23V18C23,15.33 17.67,14 15,14M6,10V7H4V10H1V12H4V15H6V12H9V10M15,12A4,4 0 0,0 19,8A4,4 0 0,0 15,4A4,4 0 0,0 11,8A4,4 0 0,0 15,12Z",hT="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",fT="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",mT="M16,20H20V16H16M16,14H20V10H16M10,8H14V4H10M16,8H20V4H16M10,14H14V10H10M4,14H8V10H4M4,20H8V16H4M10,20H14V16H10M4,8H8V4H4V8Z",gT="M3,3H21V7H3V3M4,8H20V21H4V8M9.5,11A0.5,0.5 0 0,0 9,11.5V13H15V11.5A0.5,0.5 0 0,0 14.5,11H9.5Z",vT="M21 7H3V3H21V7M9.5 11H14.5C14.78 11 15 11.22 15 11.5V12.06C15.87 10.83 17.35 10 19 10C19.34 10 19.68 10.04 20 10.11V8H4V21H13.03C13 20.9 13 20.8 13 20.7V17.2C13 16.24 13.5 15.34 14.2 14.74V14.5C14.2 14 14.32 13.47 14.5 13H9V11.5C9 11.22 9.22 11 9.5 11M23 17.3V20.8C23 21.4 22.4 22 21.7 22H16.2C15.6 22 15 21.4 15 20.7V17.2C15 16.6 15.6 16 16.2 16V14.5C16.2 13.1 17.6 12 19 12S21.8 13.1 21.8 14.5V16C22.4 16 23 16.6 23 17.3M20.5 14.5C20.5 13.7 19.8 13.2 19 13.2S17.5 13.7 17.5 14.5V16H20.5V14.5Z",_T="M21 7H3V3H21V7M13 19C13 19.7 13.13 20.37 13.35 21H4V8H20V13.09C19.67 13.04 19.34 13 19 13C15.69 13 13 15.69 13 19M15 13V11.5C15 11.22 14.78 11 14.5 11H9.5C9.22 11 9 11.22 9 11.5V13H15M20 18V15H18V18H15V20H18V23H20V20H23V18H20Z",yT="M19.92,12.08L12,20L4.08,12.08L5.5,10.67L11,16.17V2H13V16.17L18.5,10.66L19.92,12.08M12,20H2V22H22V20H12Z",bT="M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z",$T="M9,11H15V8L19,12L15,16V13H9V16L5,12L9,8V11M2,20V4H4V20H2M20,20V4H22V20H20Z",wT="M2,20V22H22V20H13V5.83L18.5,11.33L19.92,9.92L12,2L4.08,9.92L5.5,11.33L11,5.83V20H2Z",ST="M13,9V15H16L12,19L8,15H11V9H8L12,5L16,9H13M4,2H20V4H4V2M4,20H20V22H4V20Z",xT="M14.8 7V5.5C14.8 4.1 13.4 3 12 3S9.2 4.1 9.2 5.5V7C8.6 7 8 7.6 8 8.2V11.7C8 12.4 8.6 13 9.2 13H14.7C15.4 13 16 12.4 16 11.8V8.3C16 7.6 15.4 7 14.8 7M13.5 7H10.5V5.5C10.5 4.7 11.2 4.2 12 4.2S13.5 4.7 13.5 5.5V7M6 17V20L2 16L6 12V15H18V12L22 16L18 20V17H6Z",CT="M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z",PT="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z",AT="M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",LT="M12,2L16,6H13V13.85L19.53,17.61L21,15.03L22.5,20.5L17,21.96L18.53,19.35L12,15.58L5.47,19.35L7,21.96L1.5,20.5L3,15.03L4.47,17.61L11,13.85V6H8L12,2Z",ET="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",OT="M10,21H14A2,2 0 0,1 12,23A2,2 0 0,1 10,21M21,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,19M15,9H9V11H12.24L9,13.7V16H15V14H11.76L15,11.3V9Z",TT="M4,4H7L9,2H15L17,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9Z",kT="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",DT="M11,15H13V17H11V15M11,7H13V13H11V7M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M12,19C8.14,19 5,15.86 5,12C5,8.14 8.14,5 12,5C15.86,5 19,8.14 19,12C19,15.86 15.86,19 12,19M20.5,20.5C22.66,18.31 24,15.31 24,12C24,8.69 22.66,5.69 20.5,3.5L19.42,4.58C21.32,6.5 22.5,9.11 22.5,12C22.5,14.9 21.32,17.5
* vue-i18n v8.28.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/var D5=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],nM=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function No(r,e){typeof console<"u"&&console.warn("[vue-i18n] "+r)}function iM(r,e){typeof console<"u"&&console.error("[vue-i18n] "+r)}var vn=Array.isArray;function ws(r){return r!==null&&typeof r=="object"}function aM(r){return typeof r=="boolean"}function Xt(r){return typeof r=="string"}var oM=Object.prototype.toString,lM="[object Object]";function fn(r){return oM.call(r)===lM}function Br(r){return r==null}function tv(r){return typeof r=="function"}function Qf(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=null,s=null;return r.length===1?ws(r[0])||vn(r[0])?s=r[0]:typeof r[0]=="string"&&(t=r[0]):r.length===2&&(typeof r[0]=="string"&&(t=r[0]),(ws(r[1])||vn(r[1]))&&(s=r[1])),{locale:t,params:s}}function bl(r){return JSON.parse(JSON.stringify(r))}function cM(r,e){if(r.delete(e))return r}function uM(r){var e=[];return r.forEach(function(t){return e.push(t)}),e}function Ku(r,e){return!!~r.indexOf(e)}var dM=Object.prototype.hasOwnProperty;function pM(r,e){return dM.call(r,e)}function ga(r){for(var e=arguments,t=Object(r),s=1;s<arguments.length;s++){var n=e[s];if(n!=null){var i=void 0;for(i in n)pM(n,i)&&(ws(n[i])?t[i]=ga(t[i],n[i]):t[i]=n[i])}}return t}function ph(r,e){if(r===e)return!0;var t=ws(r),s=ws(e);if(t&&s)try{var n=vn(r),i=vn(e);if(n&&i)return r.length===e.length&&r.every(function(l,c){return ph(l,e[c])});if(!n&&!i){var a=Object.keys(r),o=Object.keys(e);return a.length===o.length&&a.every(function(l){return ph(r[l],e[l])})}else return!1}catch{return!1}else return!t&&!s?String(r)===String(e):!1}function hM(r){return r.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function fM(r){return r!=null&&Object.keys(r).forEach(function(e){typeof r[e]=="string"&&(r[e]=hM(r[e]))}),r}function mM(r){r.prototype.hasOwnProperty("$i18n")||Object.defineProperty(r.prototype,"$i18n",{get:function(){return this._i18n}}),r.prototype.$t=function(e){for(var t=[],s=arguments.length-1;s-- >0;)t[s]=arguments[s+1];var n=this.$i18n;return n._t.apply(n,[e,n.locale,n._getMessages(),this].concat(t))},r.prototype.$tc=function(e,t){for(var s=[],n=arguments.length-2;n-- >0;)s[n]=arguments[n+2];var i=this.$i18n;return i._tc.apply(i,[e,i.locale,i._getMessages(),this,t].concat(s))},r.prototype.$te=function(e,t){var s=this.$i18n;return s._te(e,s.locale,s._getMessages(),t)},r.prototype.$d=function(e){for(var t,s=[],n=arguments.length-1;n-- >0;)s[n]=arguments[n+1];return(t=this.$i18n).d.apply(t,[e].concat(s))},r.prototype.$n=function(e){for(var t,s=[],n=arguments.length-1;n-- >0;)s[n]=arguments[n+1];return(t=this.$i18n).n.apply(t,[e].concat(s))}}function gM(r){r===void 0&&(r=!1);function e(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return r?{mounted:e}:{beforeCreate:function(){var s=this.$options;if(s.i18n=s.i18n||(s.__i18nBridge||s.__i18n?{}:null),s.i18n){if(s.i18n instanceof ve){if(s.__i18nBridge||s.__i18n)try{var n=s.i18n&&s.i18n.messages?s.i18n.messages:{},i=s.__i18nBridge||s.__i18n;i.forEach(function(d){n=ga(n,JSON.parse(d))}),Object.keys(n).forEach(function(d){s.i18n.mergeLocaleMessage(d,n[d])})}catch{}this._i18n=s.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(fn(s.i18n)){var a=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ve?this.$root.$i18n:null;if(a&&(s.i18n.root=this.$root,s.i18n.formatter=a.formatter,s.i18n.fallbackLocale=a.fallbackLocale,s.i18n.formatFallbackMessages=a.formatFallbackMessages,s.i18n.silentTranslationWarn=a.silentTranslationWarn,s.i18n.silentFallbackWarn=a.silentFallbackWarn,s.i18n.pluralizat
* vue-router v3.6.5
* (c) 2022 Evan You
* @license MIT
*/function js(r,e){for(var t in e)r[t]=e[t];return r}var nN=/[!'()*]/g,iN=function(r){return"%"+r.charCodeAt(0).toString(16)},aN=/%2C/g,vo=function(r){return encodeURIComponent(r).replace(nN,iN).replace(aN,",")};function vv(r){try{return decodeURIComponent(r)}catch{}return r}function oN(r,e,t){e===void 0&&(e={});var s=t||lN,n;try{n=s(r||"")}catch{n={}}for(var i in e){var a=e[i];n[i]=Array.isArray(a)?a.map($w):$w(a)}return n}var $w=function(r){return r==null||typeof r=="object"?r:String(r)};function lN(r){var e={};return r=r.trim().replace(/^(\?|#|&)/,""),r&&r.split("&").forEach(function(t){var s=t.replace(/\+/g," ").split("="),n=vv(s.shift()),i=s.length>0?vv(s.join("=")):null;e[n]===void 0?e[n]=i:Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]}),e}function cN(r){var e=r?Object.keys(r).map(function(t){var s=r[t];if(s===void 0)return"";if(s===null)return vo(t);if(Array.isArray(s)){var n=[];return s.forEach(function(i){i!==void 0&&(i===null?n.push(vo(t)):n.push(vo(t)+"="+vo(i)))}),n.join("&")}return vo(t)+"="+vo(s)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var $h=/\/?$/;function wh(r,e,t,s){var n=s&&s.options.stringifyQuery,i=e.query||{};try{i=_v(i)}catch{}var a={name:e.name||r&&r.name,meta:r&&r.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:ww(e,n),matched:r?uN(r):[]};return t&&(a.redirectedFrom=ww(t,n)),Object.freeze(a)}function _v(r){if(Array.isArray(r))return r.map(_v);if(r&&typeof r=="object"){var e={};for(var t in r)e[t]=_v(r[t]);return e}else return r}var Fi=wh(null,{path:"/"});function uN(r){for(var e=[];r;)e.unshift(r),r=r.parent;return e}function ww(r,e){var t=r.path,s=r.query;s===void 0&&(s={});var n=r.hash;n===void 0&&(n="");var i=e||cN;return(t||"/")+i(s)+n}function N3(r,e,t){return e===Fi?r===e:e?r.path&&e.path?r.path.replace($h,"")===e.path.replace($h,"")&&(t||r.hash===e.hash&&Dp(r.query,e.query)):r.name&&e.name?r.name===e.name&&(t||r.hash===e.hash&&Dp(r.query,e.query)&&Dp(r.params,e.params)):!1:!1}function Dp(r,e){if(r===void 0&&(r={}),e===void 0&&(e={}),!r||!e)return r===e;var t=Object.keys(r).sort(),s=Object.keys(e).sort();return t.length!==s.length?!1:t.every(function(n,i){var a=r[n],o=s[i];if(o!==n)return!1;var l=e[n];return a==null||l==null?a===l:typeof a=="object"&&typeof l=="object"?Dp(a,l):String(a)===String(l)})}function dN(r,e){return r.path.replace($h,"/").indexOf(e.path.replace($h,"/"))===0&&(!e.hash||r.hash===e.hash)&&pN(r.query,e.query)}function pN(r,e){for(var t in e)if(!(t in r))return!1;return!0}function V3(r){for(var e=0;e<r.matched.length;e++){var t=r.matched[e];for(var s in t.instances){var n=t.instances[s],i=t.enteredCbs[s];if(!(!n||!i)){delete t.enteredCbs[s];for(var a=0;a<i.length;a++)n._isBeingDestroyed||i[a](n)}}}}var hN={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var s=t.props,n=t.children,i=t.parent,a=t.data;a.routerView=!0;for(var o=i.$createElement,l=s.name,c=i.$route,u=i._routerViewCache||(i._routerViewCache={}),d=0,p=!1;i&&i._routerRoot!==i;){var h=i.$vnode?i.$vnode.data:{};h.routerView&&d++,h.keepAlive&&i._directInactive&&i._inactive&&(p=!0),i=i.$parent}if(a.routerViewDepth=d,p){var f=u[l],g=f&&f.component;return g?(f.configProps&&Sw(g,a,f.route,f.configProps),o(g,a,n)):o()}var v=c.matched[d],y=v&&v.components[l];if(!v||!y)return u[l]=null,o();u[l]={component:y},a.registerRouteInstance=function(x,$){var L=v.instances[l];($&&L!==x||!$&&L===x)&&(v.instances[l]=$)},(a.hook||(a.hook={})).prepatch=function(x,$){v.instances[l]=$.componentInstance},a.hook.init=function(x){x.data.keepAlive&&x.componentInstance&&x.componentInstance!==v.instances[l]&&(v.instances[l]=x.componentInstance),V3(c)};var C=v.props&&v.props[l];return C&&(js(u[l],{route:c,configProps:C}),Sw(y,a,c,C)),o(y,a,n)}};function Sw(r,e,t,s){var n=e.props=fN(t,s);if(n){n=e.props=js({},n);var i=e.attrs=e.attrs||{};for(var a in n)(!r.props||!(a in r.props))&&(i[a]=n[a],delete n[a])}}function fN(r,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(r);case"boolean":retu
* Sortable 1.15.2
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function Iw(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,s)}return t}function bn(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Iw(Object(t),!0).forEach(function(s){aV(r,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Iw(Object(t)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(t,s))})}return r}function Hp(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hp=function(e){return typeof e}:Hp=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hp(r)}function aV(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function jn(){return jn=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r},jn.apply(this,arguments)}function oV(r,e){if(r==null)return{};var t={},s=Object.keys(r),n,i;for(i=0;i<s.length;i++)n=s[i],!(e.indexOf(n)>=0)&&(t[n]=r[n]);return t}function lV(r,e){if(r==null)return{};var t=oV(r,e),s,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(n=0;n<i.length;n++)s=i[n],!(e.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(r,s)&&(t[s]=r[s])}return t}var cV="1.15.2";function Mn(r){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(r)}var Yn=Mn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),nd=Mn(/Edge/i),Fw=Mn(/firefox/i),Mc=Mn(/safari/i)&&!Mn(/chrome/i)&&!Mn(/android/i),l4=Mn(/iP(ad|od|hone)/i),c4=Mn(/chrome/i)&&Mn(/android/i),u4={capture:!1,passive:!1};function nt(r,e,t){r.addEventListener(e,t,!Yn&&u4)}function Je(r,e,t){r.removeEventListener(e,t,!Yn&&u4)}function Ah(r,e){if(e){if(e[0]===">"&&(e=e.substring(1)),r)try{if(r.matches)return r.matches(e);if(r.msMatchesSelector)return r.msMatchesSelector(e);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(e)}catch{return!1}return!1}}function uV(r){return r.host&&r!==document&&r.host.nodeType?r.host:r.parentNode}function Fs(r,e,t,s){if(r){t=t||document;do{if(e!=null&&(e[0]===">"?r.parentNode===t&&Ah(r,e):Ah(r,e))||s&&r===t)return r;if(r===t)break}while(r=uV(r))}return null}var Hw=/\s+/g;function Yr(r,e,t){if(r&&e)if(r.classList)r.classList[t?"add":"remove"](e);else{var s=(" "+r.className+" ").replace(Hw," ").replace(" "+e+" "," ");r.className=(s+(t?" "+e:"")).replace(Hw," ")}}function ke(r,e,t){var s=r&&r.style;if(s){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(r,""):r.currentStyle&&(t=r.currentStyle),e===void 0?t:t[e];!(e in s)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),s[e]=t+(typeof t=="string"?"":"px")}}function Fo(r,e){var t="";if(typeof r=="string")t=r;else do{var s=ke(r,"transform");s&&s!=="none"&&(t=s+" "+t)}while(!e&&(r=r.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(t)}function d4(r,e,t){if(r){var s=r.getElementsByTagName(e),n=0,i=s.length;if(t)for(;n<i;n++)t(s[n],n);return s}return[]}function mn(){var r=document.scrollingElement;return r||document.documentElement}function Nt(r,e,t,s,n){if(!(!r.getBoundingClientRect&&r!==window)){var i,a,o,l,c,u,d;if(r!==window&&r.parentNode&&r!==mn()?(i=r.getBoundingClientRect(),a=i.top,o=i.left,l=i.bottom,c=i.right,u=i.height,d=i.width):(a=0,o=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||t)&&r!==window&&(n=n||r.parentNode,!Yn))do if(n&&n.getBoundingClientRect&&(ke(n,"transform")!=="none"||t&&ke(n,"position")!=="static")){var p=n.getBoundingClientRect();a-=p.top+parseInt(ke(n,"border-top-width")),o-=p.left+parseInt(ke(n,"border-left-width")),l=a+i.height,c=o+i.width;break}while(n=n.parentNode);if(s&&r!==window){var h=Fo(n||r),
See https://github.com/vuetifyjs/vuetify/issues/4068
If you're seeing "$attrs is readonly", it's caused by this`);const t=e.components||{},s=e.directives||{};for(const n in s){const i=s[n];r.directive(n,i)}(function n(i){if(i){for(const a in i){const o=i[a];o&&!n(o.$_vuetify_subcomponents)&&r.component(a,o)}return!0}return!1})(t),!r.$_vuetify_installed&&(r.$_vuetify_installed=!0,r.mixin({beforeCreate(){const n=this.$options;n.vuetify?(n.vuetify.init(this,this.$ssrContext),this.$vuetify=r.observable(n.vuetify.framework)):this.$vuetify=n.parent&&n.parent.$vuetify||this},beforeMount(){this.$options.vuetify&&this.$el&&this.$el.hasAttribute("data-server-rendered")&&(this.$vuetify.isHydrating=!0,this.$vuetify.breakpoint.update(!0))},mounted(){this.$options.vuetify&&this.$vuetify.isHydrating&&(this.$vuetify.isHydrating=!1,this.$vuetify.breakpoint.update())}}))}class qa{constructor(){this.framework={}}init(e,t){}}class L4 extends qa{constructor(){super(...arguments),this.bar=0,this.top=0,this.left=0,this.insetFooter=0,this.right=0,this.bottom=0,this.footer=0,this.application={bar:{},top:{},left:{},insetFooter:{},right:{},bottom:{},footer:{}}}register(e,t,s){this.application[t][e]=s,this.update(t)}unregister(e,t){this.application[t][e]!=null&&(delete this.application[t][e],this.update(t))}update(e){this[e]=Object.values(this.application[e]).reduce((t,s)=>t+s,0)}}L4.property="application";class mm extends qa{constructor(e){super(),this.xs=!1,this.sm=!1,this.md=!1,this.lg=!1,this.xl=!1,this.xsOnly=!1,this.smOnly=!1,this.smAndDown=!1,this.smAndUp=!1,this.mdOnly=!1,this.mdAndDown=!1,this.mdAndUp=!1,this.lgOnly=!1,this.lgAndDown=!1,this.lgAndUp=!1,this.xlOnly=!1,this.name="xs",this.height=0,this.width=0,this.mobile=!0,this.resizeTimeout=0;const{mobileBreakpoint:t,scrollBarWidth:s,thresholds:n}=e[mm.property];this.mobileBreakpoint=t,this.scrollBarWidth=s,this.thresholds=n}init(){this.update(),!(typeof window>"u")&&window.addEventListener("resize",this.onResize.bind(this),{passive:!0})}update(e=!1){const t=e?0:this.getClientHeight(),s=e?0:this.getClientWidth(),n=s<this.thresholds.xs,i=s<this.thresholds.sm&&!n,a=s<this.thresholds.md-this.scrollBarWidth&&!(i||n),o=s<this.thresholds.lg-this.scrollBarWidth&&!(a||i||n),l=s>=this.thresholds.lg-this.scrollBarWidth;switch(this.height=t,this.width=s,this.xs=n,this.sm=i,this.md=a,this.lg=o,this.xl=l,this.xsOnly=n,this.smOnly=i,this.smAndDown=(n||i)&&!(a||o||l),this.smAndUp=!n&&(i||a||o||l),this.mdOnly=a,this.mdAndDown=(n||i||a)&&!(o||l),this.mdAndUp=!(n||i)&&(a||o||l),this.lgOnly=o,this.lgAndDown=(n||i||a||o)&&!l,this.lgAndUp=!(n||i||a)&&(o||l),this.xlOnly=l,!0){case n:this.name="xs";break;case i:this.name="sm";break;case a:this.name="md";break;case o:this.name="lg";break;default:this.name="xl";break}if(typeof this.mobileBreakpoint=="number"){this.mobile=s<parseInt(this.mobileBreakpoint,10);return}const c={xs:0,sm:1,md:2,lg:3,xl:4},u=c[this.name],d=c[this.mobileBreakpoint];this.mobile=u<=d}onResize(){clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.update.bind(this),200)}getClientWidth(){return typeof document>"u"?0:Math.max(document.documentElement.clientWidth,window.innerWidth||0)}getClientHeight(){return typeof document>"u"?0:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}mm.property="breakpoint";const GV=r=>r,qV=r=>r**2,ZV=r=>r*(2-r),YV=r=>r<.5?2*r**2:-1+(4-2*r)*r,KV=r=>r**3,XV=r=>--r**3+1,JV=r=>r<.5?4*r**3:(r-1)*(2*r-2)*(2*r-2)+1,QV=r=>r**4,ez=r=>1- --r**4,tz=r=>r<.5?8*r*r*r*r:1-8*--r*r*r*r,rz=r=>r**5,sz=r=>1+--r**5,nz=r=>r<.5?16*r**5:1+16*--r**5,iz=Object.freeze(Object.defineProperty({__proto__:null,easeInCubic:KV,easeInOutCubic:JV,easeInOutQuad:YV,easeInOutQuart:tz,easeInOutQuint:nz,easeInQuad:qV,easeInQuart:QV,easeInQuint:rz,easeOutCubic:XV,easeOutQuad:ZV,easeOutQuart:ez,easeOutQuint:sz,linear:GV},Symbol.toStringTag,{value:"Module"}));function Zg(r){if(typeof r=="number")return r;let e=O4(r);if(!e)throw typeof r=="string"?new Error(`Target element "${r}" not found.`):new TypeError(`Target must be a Number/Selector/HTMLElement/VueComponent, received ${E4(r)} instead.`);let t=0;for(;e;)t+=e.o
.v-application .${r} {
background-color: ${e} !important;
border-color: ${e} !important;
}
.v-application .${r}--text {
color: ${e} !important;
caret-color: ${e} !important;
}`,xz=(r,e,t)=>{const[s,n]=e.split(/(\d)/,2);return`
.v-application .${r}.${s}-${n} {
background-color: ${t} !important;
border-color: ${t} !important;
}
.v-application .${r}--text.text--${s}-${n} {
color: ${t} !important;
caret-color: ${t} !important;
}`},Up=(r,e="base")=>`--v-${r}-${e}`,Yg=(r,e="base")=>`var(${Up(r,e)})`;function Cz(r,e=!1){const{anchor:t,...s}=r,n=Object.keys(s);if(!n.length)return"";let i="",a="";const o=e?Yg("anchor"):t;a+=`.v-application a { color: ${o}; }`,e&&(i+=` ${Up("anchor")}: ${t};
`);for(let l=0;l<n.length;++l){const c=n[l],u=r[c];a+=Sz(c,e?Yg(c):u.base),e&&(i+=` ${Up(c)}: ${u.base};
`);const d=hm(u);for(let p=0;p<d.length;++p){const h=d[p],f=u[h];h!=="base"&&(a+=xz(c,h,e?Yg(c,h):f),e&&(i+=` ${Up(c,h)}: ${f};
`))}}return e&&(i=`:root {
${i}}
`),i+a}function Pz(r,e){const t={base:Vc(e)};for(let s=5;s>0;--s)t[`lighten${s}`]=Vc(Az(e,s));for(let s=1;s<=4;++s)t[`darken${s}`]=Vc(Lz(e,s));return t}function Az(r,e){const t=B4(j4(r));return t[0]=t[0]+e*10,H4(N4(t))}function Lz(r,e){const t=B4(j4(r));return t[0]=t[0]-e*10,H4(N4(t))}class vm extends qa{constructor(e){super(),this.disabled=!1,this.isDark=null,this.unwatch=null,this.vueMeta=null;const{dark:t,disable:s,options:n,themes:i}=e[vm.property];if(this.dark=!!t,this.defaults=this.themes=i,this.options=n,s){this.disabled=!0;return}this.themes={dark:this.fillVariant(i.dark,!0),light:this.fillVariant(i.light,!1)}}set css(e){if(this.vueMeta){this.isVueMeta23&&this.applyVueMeta23();return}this.checkOrCreateStyleElement()&&(this.styleEl.innerHTML=e)}set dark(e){const t=this.isDark;this.isDark=e,t!=null&&this.applyTheme()}get dark(){return!!this.isDark}applyTheme(){if(this.disabled)return this.clearCss();this.css=this.generatedStyles}clearCss(){this.css=""}init(e,t){this.disabled||(e.$meta?this.initVueMeta(e):t&&this.initSSR(t),this.initTheme(e))}setTheme(e,t){this.themes[e]=Object.assign(this.themes[e],t),this.applyTheme()}resetThemes(){this.themes.light=Object.assign({},this.defaults.light),this.themes.dark=Object.assign({},this.defaults.dark),this.applyTheme()}checkOrCreateStyleElement(){return this.styleEl=document.getElementById("vuetify-theme-stylesheet"),this.styleEl?!0:(this.genStyleElement(),!!this.styleEl)}fillVariant(e={},t){const s=this.themes[t?"dark":"light"];return Object.assign({},s,e)}genStyleElement(){typeof document>"u"||(this.styleEl=document.createElement("style"),this.styleEl.type="text/css",this.styleEl.id="vuetify-theme-stylesheet",this.options.cspNonce&&this.styleEl.setAttribute("nonce",this.options.cspNonce),document.head.appendChild(this.styleEl))}initVueMeta(e){if(this.vueMeta=e.$meta(),this.isVueMeta23){e.$nextTick(()=>{this.applyVueMeta23()});return}const t=typeof this.vueMeta.getOptions=="function"?this.vueMeta.getOptions().keyName:"metaInfo",s=e.$options[t]||{};e.$options[t]=()=>{s.style=s.style||[];const n=s.style.find(i=>i.id==="vuetify-theme-stylesheet");return n?n.cssText=this.generatedStyles:s.style.push({cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:(this.options||{}).cspNonce}),s}}applyVueMeta23(){const{set:e}=this.vueMeta.addApp("vuetify");e({style:[{cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:this.options.cspNonce}]})}initSSR(e){const t=this.options.cspNonce?` nonce="${this.options.cspNonce}"`:"";e.head=e.head||"",e.head+=`<style type="text/css" id="vuetify-theme-stylesheet"${t}>${this.generatedStyles}</style>`}initTheme(e){typeof document>"u"||(this.unwatch&&(this.unwatch(),this.unwatch=null),e.$once("hook:created",()=>{const t=b.observable({themes:this.themes});this.unwatch=e.$watch(()=>t.themes,()=>this.applyTheme(),{deep:!0})}),this.applyTheme())}get currentTheme(){const e=this.dark?"dark":"light";return this.themes[e]}get generatedStyles(){const e=this.parsedTheme,t=this.options||{};let s;return t.themeCache!=null&&(s=t.themeCache.get(e),s!=null)||(s=Cz(e,t.customProperties),t.minifyTheme!=null&&(s=t.minifyTheme(s)),t.themeCache!=null&&t.themeCache.set(e,s)),s}get parsedTheme(){return V4(this.currentTheme||{},void 0,Vy(this.options,["variations"],!0))}get isVueMeta23(){return typeof this.vueMeta.addApp=="function"}}vm.property="theme";class Za{constructor(e={}){this.framework={isHydrating:!1},this.installed=[],this.preset={},this.userPreset={},this.userPreset=e,this.use(F4),this.use(L4),this.use(mm),this.use(T4),this.use(D4),this.use(gm),this.use(vm)}init(e,t){this.installed.forEach(s=>{const n=this.framework[s];n.framework=this.framework,n.init(e,t)}),this.framework.rtl=!!this.preset.rtl}use(e){const t=e.property;this.installed.includes(t)||(this.framework[t]=new e(this.preset,this),this.installed.push(t))}}Za.install=Lv;Za.installed=!1;Za.version="2.7.2";Za.config={silent:!1};function z4(r,e,t){if(!Za.config.silent){if(e){if(e.$_alreadyWarned=e.$_alreadyWarned||[],e.$_alreadyWarned.includes(r))return;
found in
`+e.map((s,n)=>`${n===0?"---> ":" ".repeat(5+n*2)}${Array.isArray(s)?`${Kg(s[0])}... (${s[1]} recursive calls)`:Kg(s)}`).join(`
`)}else return`
(found in ${Kg(r)})`}const ut=b.extend({name:"colorable",props:{color:String},methods:{setBackgroundColor(r,e={}){return typeof e.style=="string"?(Ns("style must be an object",this),e):typeof e.class=="string"?(Ns("class must be an object",this),e):(Xw(r)?e.style={...e.style,"background-color":`${r}`,"border-color":`${r}`}:r&&(e.class={...e.class,[r]:!0}),e)},setTextColor(r,e={}){if(typeof e.style=="string")return Ns("style must be an object",this),e;if(typeof e.class=="string")return Ns("class must be an object",this),e;if(Xw(r))e.style={...e.style,color:`${r}`,"caret-color":`${r}`};else if(r){const[t,s]=r.toString().trim().split(" ",2);e.class={...e.class,[t+"--text"]:!0},s&&(e.class["text--"+s]=!0)}return e}}}),W4=b.extend({name:"elevatable",props:{elevation:[Number,String]},computed:{computedElevation(){return this.elevation},elevationClasses(){const r=this.computedElevation;return r==null?{}:isNaN(parseInt(r))?{}:{[`elevation-${this.elevation}`]:!0}}}}),zy=b.extend({name:"measurable",props:{height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},computed:{measurableStyles(){const r={},e=ge(this.height),t=ge(this.minHeight),s=ge(this.minWidth),n=ge(this.maxHeight),i=ge(this.maxWidth),a=ge(this.width);return e&&(r.height=e),t&&(r.minHeight=t),s&&(r.minWidth=s),n&&(r.maxHeight=n),i&&(r.maxWidth=i),a&&(r.width=a),r}}}),G4=b.extend({name:"roundable",props:{rounded:[Boolean,String],tile:Boolean},computed:{roundedClasses(){const r=[],e=typeof this.rounded=="string"?String(this.rounded):this.rounded===!0;if(this.tile)r.push("rounded-0");else if(typeof e=="string"){const t=e.split(" ");for(const s of t)r.push(`rounded-${s}`)}else e&&r.push("rounded");return r.length>0?{[r.join(" ")]:!0}:{}}}}),Tt=be(Sl,ut,W4,zy,G4,Ke).extend({name:"v-sheet",props:{outlined:Boolean,shaped:Boolean,tag:{type:String,default:"div"}},computed:{classes(){return{"v-sheet":!0,"v-sheet--outlined":this.outlined,"v-sheet--shaped":this.shaped,...this.themeClasses,...this.elevationClasses,...this.roundedClasses}},styles(){return this.measurableStyles}},render(r){const e={class:this.classes,style:this.styles,on:this.listeners$};return r(this.tag,this.setBackgroundColor(this.color,e),this.$slots.default)}});function kz(r,e,t){if(typeof window>"u"||!("IntersectionObserver"in window))return;const s=e.modifiers||{},n=e.value,{handler:i,options:a}=typeof n=="object"?n:{handler:n,options:{}},o=new IntersectionObserver((l=[],c)=>{var u;const d=(u=r._observe)===null||u===void 0?void 0:u[t.context._uid];if(!d)return;const p=l.some(h=>h.isIntersecting);i&&(!s.quiet||d.init)&&(!s.once||p||d.init)&&i(l,c,p),p&&s.once?q4(r,e,t):d.init=!0},a);r._observe=Object(r._observe),r._observe[t.context._uid]={init:!1,observer:o},o.observe(r)}function q4(r,e,t){var s;const n=(s=r._observe)===null||s===void 0?void 0:s[t.context._uid];n&&(n.observer.unobserve(r),delete r._observe[t.context._uid])}const ou={inserted:kz,unbind:q4},Xg=be(zy).extend({name:"v-responsive",props:{aspectRatio:[String,Number],contentClass:String},computed:{computedAspectRatio(){return Number(this.aspectRatio)},aspectStyle(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-responsive__content",class:this.contentClass},me(this))}},render(r){return r("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}}),Jw={styleList:/;(?![^(]*\))/g,styleProp:/:(.*)/};function Qw(r){const e={};for(const t of r.split(Jw.styleList)){let[s,n]=t.split(Jw.styleProp);s=s.trim(),s&&(typeof n=="string"&&(n=n.trim()),e[x4(s)]=n)}return e}function as(){const r={};let e=arguments.length,t;for(;e--;)for(t of Object.keys(arguments[e]))switch(t){case"class":case"directives":arguments[e][t]&&(r[t]=Y4(r[t],arguments[e][t]));break;case"style":a
src: ${this.normalisedSrc.src}`+(e.message?`
Original error: ${e.message}`:""),this)}).then(this.onLoad):this.onLoad()},r.onerror=this.onError,this.hasError=!1,this.sizes&&(r.sizes=this.sizes),this.normalisedSrc.srcset&&(r.srcset=this.normalisedSrc.srcset),r.src=this.normalisedSrc.src,this.$emit("loadstart",this.normalisedSrc.src),this.aspectRatio||this.pollForSize(r),this.getSrc()},pollForSize(r,e=100){const t=()=>{const{naturalHeight:s,naturalWidth:n}=r;s||n?(this.naturalWidth=n,this.calculatedAspectRatio=n/s):!r.complete&&this.isLoading&&!this.hasError&&e!=null&&setTimeout(t,e)};t()},genContent(){const r=Xg.options.methods.genContent.call(this);return this.naturalWidth&&this._b(r.data,"div",{style:{width:`${this.naturalWidth}px`}}),r},__genPlaceholder(){const r=me(this,"placeholder");if(r){const e=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},r)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},e):e[0]}}},render(r){const e=Xg.options.render.call(this,r),t=as(e.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:eS?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return e.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],r(e.tag,t,e.children)}}),Gt=Tt.extend({name:"v-toolbar",props:{absolute:Boolean,bottom:Boolean,collapse:Boolean,dense:Boolean,extended:Boolean,extensionHeight:{default:48,type:[Number,String]},flat:Boolean,floating:Boolean,prominent:Boolean,short:Boolean,src:{type:[String,Object],default:""},tag:{type:String,default:"header"}},data:()=>({isExtended:!1}),computed:{computedHeight(){const r=this.computedContentHeight;if(!this.isExtended)return r;const e=parseInt(this.extensionHeight);return this.isCollapsed?r:r+(isNaN(e)?0:e)},computedContentHeight(){return this.height?parseInt(this.height):this.isProminent&&this.dense?96:this.isProminent&&this.short?112:this.isProminent?128:this.dense?48:this.short||this.$vuetify.breakpoint.smAndDown?56:64},classes(){return{...Tt.options.computed.classes.call(this),"v-toolbar":!0,"v-toolbar--absolute":this.absolute,"v-toolbar--bottom":this.bottom,"v-toolbar--collapse":this.collapse,"v-toolbar--collapsed":this.isCollapsed,"v-toolbar--dense":this.dense,"v-toolbar--extended":this.isExtended,"v-toolbar--flat":this.flat,"v-toolbar--floating":this.floating,"v-toolbar--prominent":this.isProminent}},isCollapsed(){return this.collapse},isProminent(){return this.prominent},styles(){return{...this.measurableStyles,height:ge(this.computedHeight)}}},created(){[["app","<v-app-bar app>"],["manual-scroll",'<v-app-bar :value="false">'],["clipped-left","<v-app-bar clipped-left>"],["clipped-right","<v-app-bar clipped-right>"],["inverted-scroll","<v-app-bar inverted-scroll>"],["scroll-off-screen","<v-app-bar scroll-off-screen>"],["scroll-target","<v-app-bar scroll-target>"],["scroll-threshold","<v-app-bar scroll-threshold>"],["card","<v-app-bar flat>"]].forEach(([e,t])=>{this.$attrs.hasOwnProperty(e)&&qs(e,t,this)})},methods:{genBackground(){const r={height:ge(this.computedHeight),src:this.src},e=this.$scopedSlots.img?this.$scopedSlots.img({props:r}):this.$createElement(X4,{props:r});return this.$createElement("div",{staticClass:"v-toolbar__image"},[e])},genContent(){return this.$createElement("div",{staticClass:"v-toolbar__content",style:{height:ge(this.computedContentHeight)}},me(this))},genExtension(){return this.$createElement("div",{staticClass:"v-toolbar__extension",style:{height:ge(this.extensionHeight)}},me(this,"extension"))}},render(r){this.isExtended=this.extended||!!this.$scopedSlots.extension;const e=[this.genContent()],t=this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,on:this.$listeners});return this.isExtended&&e.push(this.genExtension()),(this.src||this.$scopedSlots.img)&&e.unshift(this.genBackground()),r(this.tag,t,e)}});function Dz(r,e,t){const{self:s=!1}=e.modifiers||{},n=e.value,i=typeof n=="object"&&n.options||{passive:!0},a=typeof n=="function"||"hand
`)),this.open=!1}mounted(){const{pause_at_layer:t,pause_next_layer:s}=this.printStatsMacroVariables;this.pauseNextLayer={...this.pauseNextLayer,...s},this.pauseAtLayer={...this.pauseAtLayer,...t}}};R6([Fe({type:Boolean})],jh.prototype,"open",2);jh=R6([A({})],jh);var JG=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.$t("app.general.label.pause_at_layer"),"max-width":"450","save-button-text":e.$t("app.general.btn.accept")},on:{save:e.sendAccept},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,{staticClass:"pa-0"},[e.setPauseNextLayerMacro?[t(H,{attrs:{title:e.$t("app.general.label.pause_at_next_layer")}},[t(Ce,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.pauseNextLayer.enable,callback:function(s){e.$set(e.pauseNextLayer,"enable",s)},expression:"pauseNextLayer.enable"}})],1),e.pauseNextLayer.enable?[t(R),t(H,{attrs:{title:e.$t("app.general.label.command")}},[t(ln,{attrs:{items:["PAUSE","M600"],"hide-details":"auto",filled:"",dense:""},model:{value:e.pauseNextLayer.call,callback:function(s){e.$set(e.pauseNextLayer,"call",s)},expression:"pauseNextLayer.call"}})],1)]:e._e()]:e._e(),e.setPauseNextLayerMacro&&e.setPauseAtLayerMacro?t(R):e._e(),e.setPauseAtLayerMacro?[t(H,{attrs:{title:e.$t("app.general.label.pause_at_layer_number")}},[t(Ce,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.pauseAtLayer.enable,callback:function(s){e.$set(e.pauseAtLayer,"enable",s)},expression:"pauseAtLayer.enable"}})],1),e.pauseAtLayer.enable?[t(R),t(H,{attrs:{title:e.$t("app.general.label.layer")}},[t(ae,{attrs:{type:"number",rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThan(e.currentLayer),e.$rules.numberLessThanOrEqual(e.totalLayers)],"hide-details":"auto",filled:"",dense:""},model:{value:e.pauseAtLayer.layer,callback:function(s){e.$set(e.pauseAtLayer,"layer",s)},expression:"pauseAtLayer.layer"}})],1),t(R),t(H,{attrs:{title:e.$t("app.general.label.command")}},[t(ln,{attrs:{items:["PAUSE","M600"],"hide-details":"auto",filled:"",dense:""},model:{value:e.pauseAtLayer.call,callback:function(s){e.$set(e.pauseAtLayer,"call",s)},expression:"pauseAtLayer.call"}})],1)]:e._e()]:e._e()],2)],1)},QG=[],eq=E(jh,JG,QG,!1,null,null);const tq=eq.exports;var rq=Object.defineProperty,sq=Object.getOwnPropertyDescriptor,nq=(r,e,t,s)=>{for(var n=s>1?void 0:s?sq(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&rq(e,t,n),n};let Bv=class extends Y(J){constructor(){super(...arguments);m(this,"showExcludeObjectDialog",!1);m(this,"showPauseAtLayerDialog",!1)}get filename(){return this.$store.state.printer.printer.print_stats.filename}get supportsHistoryComponent(){return this.$store.getters["server/componentSupport"]("history")}get hasParts(){return Object.keys(this.$store.getters["parts/getParts"]).length>0}resetFile(){this.sendGcode("SDCARD_RESET_FILE")}};Bv=nq([A({components:{PauseResumeBtn:UG,PauseAtLayerDialog:tq,JobHistoryItemStatus:db,ExcludeObjectsDialog:kG}})],Bv);var iq=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Sn,[e.printerPrinting||e.printerPaused?t(M,{staticClass:"ms-1 my-1",attrs:{loading:e.hasWait(e.$waits.onPrintCancel),disabled:e.hasWait([e.$waits.onPrintCancel,e.$waits.onPrintResume,e.$waits.onPrintPause]),small:""},on:{click:e.cancelPrint}},[t(S,{attrs:{small:"",left:""}},[e._v(" $cancelled ")]),t("span",[e._v(e._s(e.$t("app.general.btn.cancel")))])],1):e._e(),e.printerPrinting||e.printerPaused?t("pause-resume-btn",{on:{pause:e.pausePrint,resume:e.resumePrint,pauseAtLayer:function(s){e.showPauseAtLayerDialog=!0}}}):e._e(),!e.printerPrinting&&!e.printerPaused&&e.filename?t(M,{staticClass:"ms-1 my-1",attrs:{small:""},on:{click:function(s){return e.resetFile()}}},[t(S,{attrs:{small:"",left:""}},[e._v(" $refresh ")]),t("span",[e._v(e._s(e.$t("app.general.btn.reset_file")))])],1):e._e(),!e.supportsHistoryComponent&&!e.printerPrinting&&!e.printerPaused&&e.filename?t(M,{staticClass:"ms-1 my-1",attrs:{small:""},on:{click:function(s){return e.$emit("print",e.filename)}}},[t(S,{attrs:{smal
`).map(n=>{const i=n.match(/^\s+/);if(i===null)return n;const[a]=i;return a.length>=s.length?n.slice(s.length):n}).join(`
`)}class Bh{constructor(e){m(this,"options");m(this,"rules");m(this,"lexer");this.options=e||Xa}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const s=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?s:ac(s,`
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const s=t[0],n=wq(s,t[3]||"");return{type:"code",raw:s,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let s=t[2].trim();if(/#$/.test(s)){const n=ac(s,"#");(this.options.pedantic||!n||/ $/.test(n))&&(s=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ac(t[0],`
`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let s=ac(t[0],`
`).split(`
`),n="",i="";const a=[];for(;s.length>0;){let o=!1;const l=[];let c;for(c=0;c<s.length;c++)if(/^ {0,3}>/.test(s[c]))l.push(s[c]),o=!0;else if(!o)l.push(s[c]);else break;s=s.slice(c);const u=l.join(`
`),d=u.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
$1`).replace(/^ {0,3}>[ \t]?/gm,"");n=n?`${n}
${u}`:u,i=i?`${i}
${d}`:d;const p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,a,!0),this.lexer.state.top=p,s.length===0)break;const h=a[a.length-1];if((h==null?void 0:h.type)==="code")break;if((h==null?void 0:h.type)==="blockquote"){const f=h,g=f.raw+`
`+s.join(`
`),v=this.blockquote(g);a[a.length-1]=v,n=n.substring(0,n.length-f.raw.length)+v.raw,i=i.substring(0,i.length-f.text.length)+v.text;break}else if((h==null?void 0:h.type)==="list"){const f=h,g=f.raw+`
`+s.join(`
`),v=this.list(g);a[a.length-1]=v,n=n.substring(0,n.length-h.raw.length)+v.raw,i=i.substring(0,i.length-f.raw.length)+v.raw,s=g.substring(a[a.length-1].raw.length).split(`
`);continue}}return{type:"blockquote",raw:n,tokens:a,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let s=t[1].trim();const n=s.length>1,i={type:"list",raw:"",ordered:n,start:n?+s.slice(0,-1):"",loose:!1,items:[]};s=n?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=n?s:"[*+-]");const a=new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`);let o=!1;for(;e;){let l=!1,c="",u="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let d=t[2].split(`
`,1)[0].replace(/^\t+/,y=>" ".repeat(3*y.length)),p=e.split(`
`,1)[0],h=!d.trim(),f=0;if(this.options.pedantic?(f=2,u=d.trimStart()):h?f=t[1].length+1:(f=t[2].search(/[^ ]/),f=f>4?1:f,u=d.slice(f),f+=t[1].length),h&&/^ *$/.test(p)&&(c+=p+`
`,e=e.substring(p.length+1),l=!0),!l){const y=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),C=new RegExp(`^ {0,${Math.min(3,f-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),x=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:\`\`\`|~~~)`),$=new RegExp(`^ {0,${Math.min(3,f-1)}}#`);for(;e;){const L=e.split(`
`,1)[0];if(p=L,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),x.test(p)||$.test(p)||y.test(p)||C.test(e))break;if(p.search(/[^ ]/)>=f||!p.trim())u+=`
`+p.slice(f);else{if(h||d.search(/[^ ]/)>=4||x.test(d)||$.test(d)||C.test(d))break;u+=`
`+p}!h&&!p.trim()&&(h=!0),c+=L+`
`,e=e.substring(L.length+1),d=p.slice(f)}}i.loose||(o?i.loose=!0:/\n *\n *$/.test(c)&&(o=!0));let g=null,v;this.options.gfm&&(g=/^\[[ xX]\] /.exec(u),g&&(v=g[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:c,task:!!g,checked:v,loose:!1,text:u,tokens:[]}),i.raw+=c}i.items[i.items.length-1].raw=i.items[i.items.length-1].raw.trimEnd(),i.items[i.items.length-1].text=i.items[i.items.length-1].text.trimEnd(),i.raw=i.raw.trimEnd();for(let l=0;l<i.items.length;l++)if(this.lexer.state.top=!1,i.items[l].tokens=this.lexer.blockTokens(i.items[l].text,[]),!i.loose){const c=i.items[l].tokens.filter(d=>d.type==="space"),u=c.length>0&&c.some(d=>/\n.*\n/.test(d.raw));i.loose=u}if(i.loose)for(let l=0;l<i.items.length;l++)i.items[l].loose=!0;return i}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const s=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:s,raw:t[0],href:n,title:i}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const s=$S(t[1]),n=t[2].replace(/^\||\| *$/g,"").split("|"),i=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
`):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(s.length===n.length){for(const o of n)/^ *-+: *$/.test(o)?a.align.push("right"):/^ *:-+: *$/.test(o)?a.align.push("center"):/^ *:-+ *$/.test(o)?a.align.push("left"):a.align.push(null);for(let o=0;o<s.length;o++)a.header.push({text:s[o],tokens:this.lexer.inline(s[o]),header:!0,align:a.align[o]});for(const o of i)a.rows.push($S(o,a.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:a.align[c]})));return a}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const s=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:s,tokens:this.lexer.inline(s)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Qr(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const s=t[2].trim();if(!this.options.pedantic&&/^</.test(s)){if(!/>$/.test(s))return;const a=ac(s.slice(0,-1),"\\");if((s.length-a.length)%2===0)return}else{const a=$q(t[2],"()");if(a>-1){const l=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);a&&(n=a[1],i=a[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(this.options.pedantic&&!/>$/.test(s)?n=n.slice(1):n=n.slice(1,-1)),wS(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let s;if((s=this.rules.inline.reflink.exec(e))||(s=this.rules.inline.nolink.exec(e))){const n=(s[2]||s[1]).replace(/\s+/g," "),i=t[n.toLowerCase()];if(!i){const a=s[0].charAt(0);return{type:"text",raw:a,text:a}}return wS(s,i,s[0],this.lexer)}}emStrong(e,t,s=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!n||n[3]&&s.match(/[\p{L}\p{N}]/u))return;if(!(n[1]||n[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const a=[...n[0]].length-1;let o,l,c=a,u=0;const d=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+a);(n=d.exec(t))!=null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(l=[...o].length,n[3]||n[4]){c+=l;continue}else if((n[5]||n[6])&&a%3&&!((a+l)%3)){u+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+u);const p=[...n[0]][0].length,h=e.slice(0,a+n.index+p+l);if(Math.min(a,l)%2){const g=h.slice(1,-1);return{type:"em",raw:h,text:g,tokens:this.lexer.inlineTokens(g)}}const f=h.slice(2,-2);return{type:"strong",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let s=t[2].replace(/\n/g," ");const n=/[^ ]/.test(s),i=/^ /.test(s)&&/ $/.test(s);return n&&i&&(s=s.substring(1,s.length-1)),s=Qr(s,!0),{type:"codespan",raw:t[0],text:s}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let s,n;return t[2]==="@"?(s=Qr(t[1]),n="mailto:"+s):(s=Qr(t[1]),n=s),{type:"link",raw:t[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}url(e){var s;let t;if(t=this.rules.inline.url.exec(e)){let n,i;if(t[2]==="@")n=Qr(t[0]),i="mailto:"+n;else{let a;do a=t[0],t[0]=((s=this.rules.inline._backpedal.exec(t[0]))==null?void 0:s[0])??"";while(a!==t[0]);n=Qr(t[0]),t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let s;return this.lexer.state.inRawBlock?s=t[0]:s=Qr(t[0]),{type:"text",raw:t[0],text:s}}}}const Sq=/^(?: *(?:\n|$))+/,xq=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Cq=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,vd=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Pq=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,B6=/(?:[*+
]`).replace("lheading",N6).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},z6=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Mq=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,U6=/^( {2,}|\\)\n(?!\s*$)/,Rq=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,_d="\\p{P}\\p{S}",Iq=dt(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,_d).getRegex(),Fq=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Hq=dt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,_d).getRegex(),jq=dt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,_d).getRegex(),Bq=dt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,_d).getRegex(),Nq=dt(/\\([punct])/,"gu").replace(/punct/g,_d).getRegex(),Vq=dt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),zq=dt(gb).replace("(?:-->|$)","-->").getRegex(),Uq=dt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",zq).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Nh=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Wq=dt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Nh).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),W6=dt(/^!?\[(label)\]\[(ref)\]/).replace("label",Nh).replace("ref",mb).getRegex(),G6=dt(/^!?\[(ref)\](?:\[\])?/).replace("ref",mb).getRegex(),Gq=dt("reflink|nolink(?!\\()","g").replace("reflink",W6).replace("nolink",G6).getRegex(),_b={_backpedal:Gc,anyPunctuation:Nq,autolink:Vq,blockSkip:Fq,br:U6,code:Mq,del:Gc,emStrongLDelim:Hq,emStrongRDelimAst:jq,emStrongRDelimUnd:Bq,escape:z6,link:Wq,nolink:G6,punctuation:Iq,reflink:W6,reflinkSearch:Gq,tag:Uq,text:Rq,url:Gc},qq={..._b,link:dt(/^!?\[(label)\]\((.*?)\)/).replace("label",Nh).getRegex(),reflink:dt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Nh).getRegex()},Nv={..._b,escape:dt(z6).replace("])","~|])").getRegex(),url:dt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Zq={...Nv,br:dt(U6).replace("{2,}","*").getRegex(),text:dt(Nv.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ap={normal:vb,gfm:kq,pedantic:Dq},oc={normal:_b,gfm:Nv,breaks:Zq,pedantic:qq};class dn{constructor(e){m(this,"tokens");m(this,"options");m(this,"state");m(this,"tokenizer");m(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Xa,this.options.tokenizer=this.options.tokenizer||new Bh,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:ap.normal,inline:oc.normal};this.options.pedantic?(t.block=ap.pedantic,t.inline=oc.pedantic):this.
`),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const s=this.inlineQueue[t];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],s=!1){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(o,l,c)=>l+" ".repeat(c.length));let n,i,a;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(n=o.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&t.length>0?t[t.length-1].raw+=`
`:t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+n.raw,i.text+=`
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+n.raw,i.text+=`
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(a=e,this.options.extensions&&this.options.extensions.startBlock){let o=1/0;const l=e.slice(1);let c;this.options.extensions.startBlock.forEach(u=>{c=u.call({lexer:this},l),typeof c=="number"&&c>=0&&(o=Math.min(o,c))}),o<1/0&&o>=0&&(a=e.substring(0,o+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){i=t[t.length-1],s&&(i==null?void 0:i.type)==="paragraph"?(i.raw+=`
`+n.raw,i.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n),s=a.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&i.type==="text"?(i.raw+=`
`+n.raw,i.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);continue}if(e){const o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let s,n,i,a=e,o,l,c;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)u.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,o.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(s=u.call({lexer:this},e,t))?(e=e.substring(s.raw.length),t.push(s),!0):!1))){if(s=this.tokenizer.escape(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.tag(e)){e=e.substring(s.raw.length),n=t[t.length-1],n&&s.type==="text"&&n.type==="text"?(n.raw+=s.raw,n.text+=s.text):t.push(s);continue}if(s=this.tokenizer.link(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(s.raw.length),n=t[t.length-1],n&&s.type==="text"&&n.type==="text"?(n.raw+=s.raw,n.text+=s.text):t.push(s);continue}if(s=this.tokenizer.emStrong(e,a,c)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.codespan(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.br(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.del(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.autolink(e)){e=e.substring(s.raw.length),t.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(e))){e=e.substring(s.raw.length),t.push(s);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const d=e.slice(1);let p;this.options.extensions.startInline.forEach(h=>{p=h.call({lexer:this},d),typeof p=="number"&&p>=0&&(u=Math.min(u,p))}),u<1/0&&u>=0&&(i=e.substring(0,u+1))}if(s=this.tokenizer.inlineText(i)){e=e.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(c=s.raw.slice(-1)),l=!0,n=t[t.length-1],n&&n.type==="text"?(n.raw+=s.raw,n.text+=s.text):t.push(s);continue}if(e){const u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return t}}class Vh{constructor(e){m(this,"options");m(this,"parser");this.options=e||Xa}space(e){return""}code({text:e,lang:t,escaped:s}){var a;const n=(a=(t||"").match(/^\S*/))==null?void 0:a[0],i=e.replace(/\n$/,"")+`
`;return n?'<pre><code class="language-'+Qr(n)+'">'+(s?i:Qr(i,!0))+`</code></pre>
`:"<pre><code>"+(s?i:Qr(i,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return`<hr>
`}list(e){const t=e.ordered,s=e.start;let n="";for(let o=0;o<e.items.length;o++){const l=e.items[o];n+=this.listitem(l)}const i=t?"ol":"ul",a=t&&s!==1?' start="'+s+'"':"";return"<"+i+a+`>
`+n+"</"+i+`>
`}listitem(e){let t="";if(e.task){const s=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&e.tokens[0].type==="paragraph"?(e.tokens[0].text=s+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=s+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:s+" ",text:s+" "}):t+=s+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t="",s="";for(let i=0;i<e.header.length;i++)s+=this.tablecell(e.header[i]);t+=this.tablerow({text:s});let n="";for(let i=0;i<e.rows.length;i++){const a=e.rows[i];s="";for(let o=0;o<a.length;o++)s+=this.tablecell(a[o]);n+=this.tablerow({text:s})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+n+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){const t=this.parser.parseInline(e.tokens),s=e.header?"th":"td";return(e.align?`<${s} align="${e.align}">`:`<${s}>`)+t+`</${s}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:s}){const n=this.parser.parseInline(s),i=bS(e);if(i===null)return n;e=i;let a='<a href="'+e+'"';return t&&(a+=' title="'+t+'"'),a+=">"+n+"</a>",a}image({href:e,title:t,text:s}){const n=bS(e);if(n===null)return s;e=n;let i=`<img src="${e}" alt="${s}"`;return t&&(i+=` title="${t}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}}class yb{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class pn{constructor(e){m(this,"options");m(this,"renderer");m(this,"textRenderer");this.options=e||Xa,this.options.renderer=this.options.renderer||new Vh,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new yb}static parse(e,t){return new pn(t).parse(e)}static parseInline(e,t){return new pn(t).parseInline(e)}parse(e,t=!0){let s="";for(let n=0;n<e.length;n++){const i=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const o=i,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type)){s+=l||"";continue}}const a=i;switch(a.type){case"space":{s+=this.renderer.space(a);continue}case"hr":{s+=this.renderer.hr(a);continue}case"heading":{s+=this.renderer.heading(a);continue}case"code":{s+=this.renderer.code(a);continue}case"table":{s+=this.renderer.table(a);continue}case"blockquote":{s+=this.renderer.blockquote(a);continue}case"list":{s+=this.renderer.list(a);continue}case"html":{s+=this.renderer.html(a);continue}case"paragraph":{s+=this.renderer.paragraph(a);continue}case"text":{let o=a,l=this.renderer.text(o);for(;n+1<e.length&&e[n+1].type==="text";)o=e[++n],l+=`
`+this.renderer.text(o);t?s+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l}]}):s+=l;continue}default:{const o='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}parseInline(e,t){t=t||this.renderer;let s="";for(let n=0;n<e.length;n++){const i=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const o=this.options.extensions.renderers[i.type].call({parser:this},i);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){s+=o||"";continue}}const a=i;switch(a.type){case"escape":{s+=t.text(a);break}case"html":{s+=t.html(a);break}case"link":{s+=t.link(a);break}case"image":{s+=t.image(a);break}case"strong":{s+=t.strong(a);break}case"em":{s+=t.em(a);break}case"codespan":{s+=t.codespan(a);break}case"br":{s+=t.br(a);break}case"del":{s+=t.del(a);break}case"text":{s+=t.text(a);break}default:{const o='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}}class qc{constructor(e){m(this,"options");this.options=e||Xa}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}m(qc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class q6{constructor(...e){m(this,"defaults",hb());m(this,"options",this.setOptions);m(this,"parse",this.parseMarkdown(dn.lex,pn.parse));m(this,"parseInline",this.parseMarkdown(dn.lexInline,pn.parseInline));m(this,"Parser",pn);m(this,"Renderer",Vh);m(this,"TextRenderer",yb);m(this,"Lexer",dn);m(this,"Tokenizer",Bh);m(this,"Hooks",qc);this.use(...e)}walkTokens(e,t){var n,i;let s=[];for(const a of e)switch(s=s.concat(t.call(this,a)),a.type){case"table":{const o=a;for(const l of o.header)s=s.concat(this.walkTokens(l.tokens,t));for(const l of o.rows)for(const c of l)s=s.concat(this.walkTokens(c.tokens,t));break}case"list":{const o=a;s=s.concat(this.walkTokens(o.items,t));break}default:{const o=a;(i=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&i[o.type]?this.defaults.extensions.childTokens[o.type].forEach(l=>{const c=o[l].flat(1/0);s=s.concat(this.walkTokens(c,t))}):o.tokens&&(s=s.concat(this.walkTokens(o.tokens,t)))}}return s}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(s=>{const n={...s};if(n.async=this.defaults.async||n.async||!1,s.extensions&&(s.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const a=t.renderers[i.name];a?t.renderers[i.name]=function(...o){let l=i.renderer.apply(this,o);return l===!1&&(l=a.apply(this,o)),l}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const a=t[i.level];a?a.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),n.extensions=t),s.renderer){const i=this.defaults.renderer||new Vh(this.defaults);for(const a in s.renderer){if(!(a in i))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;const o=a,l=s.renderer[o],c=i[o];i[o]=(...u)=>{let d=l.apply(i,u);return d===!1&&(d=c.apply(i,u)),d||""}}n.renderer=i}if(s.tokenizer){const i=this.defaults.tokenizer||new Bh(this.defaults);for(const a in s.tokenizer){if(!(a in i))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;const o=a,l=s.tokenizer[o],c=i[o];i[o]=(...u)=>{let d=l.apply(i,u);return d===!1&&(d=c.apply(i,u)),d}}n.tokenizer=i}if(s.hooks){const i=this.defaults.hooks||new qc;for(const a in s.hooks){if(!(a in i))throw new Error(`hook '${a}' does not exist`);if(a==="options")continue;const o=a,l=s.hooks[o],c=i[o];qc.passThroughHooks.has(a
Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An error occurred:</p><pre>"+Qr(s.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(s);throw s}}}const Pa=new q6;function ct(r,e){return Pa.parse(r,e)}ct.options=ct.setOptions=function(r){return Pa.setOptions(r),ct.defaults=Pa.defaults,F6(ct.defaults),ct};ct.getDefaults=hb;ct.defaults=Xa;ct.use=function(...r){return Pa.use(...r),ct.defaults=Pa.defaults,F6(ct.defaults),ct};ct.walkTokens=function(r,e){return Pa.walkTokens(r,e)};ct.parseInline=Pa.parseInline;ct.Parser=pn;ct.parser=pn.parse;ct.Renderer=Vh;ct.TextRenderer=yb;ct.Lexer=dn;ct.lexer=dn.lex;ct.Tokenizer=Bh;ct.Hooks=qc;ct.parse=ct;ct.options;ct.setOptions;ct.use;ct.walkTokens;ct.parseInline;pn.parse;dn.lex;function Yq(r){r=r.trim().replace(/\/+$/,"/");const e=/^[\w+]+:\/\//,t=e.test(r),s="http://__dummy__",n=new URL(r,s),i=s.length+(r.startsWith("/")?0:1);return{walkTokens(a){if(["link","image"].includes(a.type)&&!e.test(a.href)&&!a.href.startsWith("#"))if(t)try{a.href=new URL(a.href,r).href}catch{}else{if(a.href.startsWith("/"))return;try{const o=new URL(a.href,n).href;a.href=o.slice(i)}catch{}}}}}var Kq=Object.defineProperty,Xq=Object.getOwnPropertyDescriptor,xn=(r,e,t,s)=>{for(var n=s>1?void 0:s?Xq(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Kq(e,t,n),n};let Ss=class extends Y(J){constructor(){super(...arguments);m(this,"open");m(this,"path");m(this,"file");m(this,"filename");m(this,"extension");m(this,"src");m(this,"type");m(this,"width");m(this,"readonly");m(this,"renderedMarkdown",null)}get calculatedWidth(){const t=window.innerWidth*(this.$vuetify.breakpoint.mdAndDown?1:.75);return Math.min(window.innerWidth*.9,Math.max(this.width??t,t/2))}get isVideo(){return this.type.startsWith("video/")}get isImage(){return this.type.startsWith("image/")}get isMarkdown(){return this.type.startsWith("text/markdown")}get apiUrl(){return this.$store.state.config.apiUrl}async LoadMarkdown(){if(!this.path){ye.error("[FilePreviewDialog] missing path property in markdown viewer");return}const s=await(await fetch(this.src)).text(),n=`${this.apiUrl}/server/files/${this.path}/`,i=Yq(n),a={renderer:{link(...l){return this.constructor.prototype.link.call(this,...l).replace(/^<a /,'<a target="_blank" ')}}},o=new q6(i,a);this.renderedMarkdown=await o.parse(s,{async:!0})}mounted(){this.isMarkdown&&this.LoadMarkdown()}};xn([Fe({type:Boolean})],Ss.prototype,"open",2);xn([w({type:String})],Ss.prototype,"path",2);xn([w({type:Object})],Ss.prototype,"file",2);xn([w({type:String,required:!0})],Ss.prototype,"filename",2);xn([w({type:String})],Ss.prototype,"extension",2);xn([w({type:String,required:!0})],Ss.prototype,"src",2);xn([w({type:String,required:!0})],Ss.prototype,"type",2);xn([w({type:Number})],Ss.prototype,"width",2);xn([w({type:Boolean})],Ss.prototype,"readonly",2);Ss=xn([A({})],Ss);var Jq=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.filename,width:e.calculatedWidth,"no-actions":""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,{staticClass:"py-4"},[e.isMarkdown?e.renderedMarkdown?t("div",{staticClass:"markdown-container",domProps:{innerHTML:e._s(e.renderedMarkdown)}}):e._e():t(Vr,{attrs:{"justify-center":""}},[e.isVideo?t("video",{attrs:{controls:""}},[t("source",{attrs:{src:e.src,type:e.type}})]):e.isImage?t("img",{attrs:{src:e.src}}):t("div",[e._v(" "+e._s(e.$t("app.general.simple_form.msg.no_file_preview",{name:e.extension?`.${e.extension} files`:e.filename}))+" ")])])],1),e.file?[t(R),t(pd,{staticClass:"pt-4"},[t($t),e.readonly?e._e():t(M,{attrs:{text:"",color:"error"},on:{click:function(s){return e.$emit("remove",e.file)}}},[t(S,[e._v("$delete")]),e._v(" "+e._s(e.$t("app.general.btn.remove"))+" ")],1),t(M,{attrs:{color:"primary"},on:{click:function(s){return e.$emit("download",e.file)}}},[t(S,[e._v("$download")]),e._v(" "+e._s(e.$t("app.general.btn.download"))+" ")],1)],1)]:e._e()],2)},Qq=[],eZ=E(Ss,Jq,Qq,!1,null,"28070096");const Z6=eZ.exports;var tZ=Object.definePropert
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var XY=function(r){return r!=null&&(nP(r)||JY(r)||!!r._isBuffer)};function nP(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function JY(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&nP(r.slice(0,0))}(function(){var r=KY,e=xS.utf8,t=XY,s=xS.bin,n=function(i,a){i.constructor==String?a&&a.encoding==="binary"?i=s.stringToBytes(i):i=e.stringToBytes(i):t(i)?i=Array.prototype.slice.call(i,0):!Array.isArray(i)&&i.constructor!==Uint8Array&&(i=i.toString());for(var o=r.bytesToWords(i),l=i.length*8,c=1732584193,u=-271733879,d=-1732584194,p=271733878,h=0;h<o.length;h++)o[h]=(o[h]<<8|o[h]>>>24)&16711935|(o[h]<<24|o[h]>>>8)&4278255360;o[l>>>5]|=128<<l%32,o[(l+64>>>9<<4)+14]=l;for(var f=n._ff,g=n._gg,v=n._hh,y=n._ii,h=0;h<o.length;h+=16){var C=c,x=u,$=d,L=p;c=f(c,u,d,p,o[h+0],7,-680876936),p=f(p,c,u,d,o[h+1],12,-389564586),d=f(d,p,c,u,o[h+2],17,606105819),u=f(u,d,p,c,o[h+3],22,-1044525330),c=f(c,u,d,p,o[h+4],7,-176418897),p=f(p,c,u,d,o[h+5],12,1200080426),d=f(d,p,c,u,o[h+6],17,-1473231341),u=f(u,d,p,c,o[h+7],22,-45705983),c=f(c,u,d,p,o[h+8],7,1770035416),p=f(p,c,u,d,o[h+9],12,-1958414417),d=f(d,p,c,u,o[h+10],17,-42063),u=f(u,d,p,c,o[h+11],22,-1990404162),c=f(c,u,d,p,o[h+12],7,1804603682),p=f(p,c,u,d,o[h+13],12,-40341101),d=f(d,p,c,u,o[h+14],17,-1502002290),u=f(u,d,p,c,o[h+15],22,1236535329),c=g(c,u,d,p,o[h+1],5,-165796510),p=g(p,c,u,d,o[h+6],9,-1069501632),d=g(d,p,c,u,o[h+11],14,643717713),u=g(u,d,p,c,o[h+0],20,-373897302),c=g(c,u,d,p,o[h+5],5,-701558691),p=g(p,c,u,d,o[h+10],9,38016083),d=g(d,p,c,u,o[h+15],14,-660478335),u=g(u,d,p,c,o[h+4],20,-405537848),c=g(c,u,d,p,o[h+9],5,568446438),p=g(p,c,u,d,o[h+14],9,-1019803690),d=g(d,p,c,u,o[h+3],14,-187363961),u=g(u,d,p,c,o[h+8],20,1163531501),c=g(c,u,d,p,o[h+13],5,-1444681467),p=g(p,c,u,d,o[h+2],9,-51403784),d=g(d,p,c,u,o[h+7],14,1735328473),u=g(u,d,p,c,o[h+12],20,-1926607734),c=v(c,u,d,p,o[h+5],4,-378558),p=v(p,c,u,d,o[h+8],11,-2022574463),d=v(d,p,c,u,o[h+11],16,1839030562),u=v(u,d,p,c,o[h+14],23,-35309556),c=v(c,u,d,p,o[h+1],4,-1530992060),p=v(p,c,u,d,o[h+4],11,1272893353),d=v(d,p,c,u,o[h+7],16,-155497632),u=v(u,d,p,c,o[h+10],23,-1094730640),c=v(c,u,d,p,o[h+13],4,681279174),p=v(p,c,u,d,o[h+0],11,-358537222),d=v(d,p,c,u,o[h+3],16,-722521979),u=v(u,d,p,c,o[h+6],23,76029189),c=v(c,u,d,p,o[h+9],4,-640364487),p=v(p,c,u,d,o[h+12],11,-421815835),d=v(d,p,c,u,o[h+15],16,530742520),u=v(u,d,p,c,o[h+2],23,-995338651),c=y(c,u,d,p,o[h+0],6,-198630844),p=y(p,c,u,d,o[h+7],10,1126891415),d=y(d,p,c,u,o[h+14],15,-1416354905),u=y(u,d,p,c,o[h+5],21,-57434055),c=y(c,u,d,p,o[h+12],6,1700485571),p=y(p,c,u,d,o[h+3],10,-1894986606),d=y(d,p,c,u,o[h+10],15,-1051523),u=y(u,d,p,c,o[h+1],21,-2054922799),c=y(c,u,d,p,o[h+8],6,1873313359),p=y(p,c,u,d,o[h+15],10,-30611744),d=y(d,p,c,u,o[h+6],15,-1560198380),u=y(u,d,p,c,o[h+13],21,1309151649),c=y(c,u,d,p,o[h+4],6,-145523070),p=y(p,c,u,d,o[h+11],10,-1120210379),d=y(d,p,c,u,o[h+2],15,718787259),u=y(u,d,p,c,o[h+9],21,-343485551),c=c+C>>>0,u=u+x>>>0,d=d+$>>>0,p=p+L>>>0}return r.endian([c,u,d,p])};n._ff=function(i,a,o,l,c,u,d){var p=i+(a&o|~a&l)+(c>>>0)+d;return(p<<u|p>>>32-u)+a},n._gg=function(i,a,o,l,c,u,d){var p=i+(a&l|o&~l)+(c>>>0)+d;return(p<<u|p>>>32-u)+a},n._hh=function(i,a,o,l,c,u,d){var p=i+(a^o^l)+(c>>>0)+d;return(p<<u|p>>>32-u)+a},n._ii=function(i,a,o,l,c,u,d){var p=i+(o^(a|~l))+(c>>>0)+d;return(p<<u|p>>>32-u)+a},n._blocksize=16,n._digestsize=16,rP.exports=function(i,a){if(i==null)throw new Error("Illegal argument "+i);var o=r.wordsToBytes(n(i,a));return a&&a.asBytes?o:a&&a.asString?s.bytesToString(o):r.bytesToHex(o)}})();var QY=rP.exports;const iP=Tl(QY),eK=r=>{const e=iP(r,{asString:!0});return btoa(e)};var tK=Object.defineProperty,rK=Object.getOwnPropertyDescriptor,Ja=(r,e,t,s)=>{for(var n=s>1?void 0:s?rK(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&tK(e,t,n),n};let Or,Bn=class extends Y(lt){constructor(){super(...arguments);m(this,"value");m(this,"filename");m(this,"readonly");m(this,"codeLens");m(this,"path");m(this,"monacoEditor");m(this,"viewStateHash
G1 ${t}${s} F${i*60}
G90`)}};qv=bX([A({})],qv);var $X=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(ie,{staticClass:"mb-2",attrs:{"no-gutters":"",justify:"start"}},[t(B,{staticClass:"ml-12 mr-12",attrs:{cols:"auto"}},[t(Ds,{attrs:{color:e.axisButtonColor(e.yHomed),disabled:e.axisButtonDisabled(e.yHomed,e.yHasMultipleSteppers),icon:"$up"},on:{click:function(s){return e.sendMoveGcode("Y",e.toolheadMoveLength)}}})],1),t(B,{staticClass:"ml-2",attrs:{cols:"auto"}},[t(Ds,{attrs:{color:e.axisButtonColor(e.zHomed),disabled:e.axisButtonDisabled(e.zHomed,e.zHasMultipleSteppers),icon:"$up"},on:{click:function(s){return e.sendMoveGcode("Z",e.toolheadMoveLength,!0)}}})],1),t(B,{staticClass:"ml-2"},[t(Ds,{attrs:{color:e.allHomed?void 0:"primary",loading:e.hasWait(e.$waits.onHomeAll),disabled:!e.klippyReady||e.printerPrinting,icon:"$home","small-icon":""},on:{click:e.homeAll}},[e._v(" "+e._s(e.$t("app.tool.btn.home_all"))+" ")])],1)],1),t(ie,{staticClass:"mb-2",attrs:{"no-gutters":"",justify:"start"}},[t(B,{class:{"mr-12":!e.canHomeXY},attrs:{cols:"auto"}},[t(Ds,{attrs:{color:e.axisButtonColor(e.xHomed),disabled:e.axisButtonDisabled(e.xHomed,e.xHasMultipleSteppers),icon:"$left"},on:{click:function(s){return e.sendMoveGcode("X",e.toolheadMoveLength,!0)}}})],1),e.canHomeXY?t(B,{staticClass:"ml-2",attrs:{cols:"auto"}},[t(Ds,{attrs:{color:e.xyHomed?void 0:"primary",loading:e.hasWait(e.$waits.onHomeXY),disabled:!e.klippyReady||e.printerPrinting,tooltip:e.$t("app.tool.tooltip.home_xy"),icon:"$home"},on:{click:function(s){return e.sendGcode("G28 X Y",e.$waits.onHomeXY)}}})],1):e._e(),t(B,{staticClass:"ml-2",attrs:{cols:"auto",justify:"end"}},[t(Ds,{attrs:{color:e.axisButtonColor(e.xHomed),disabled:e.axisButtonDisabled(e.xHomed,e.xHasMultipleSteppers),icon:"$right"},on:{click:function(s){return e.sendMoveGcode("X",e.toolheadMoveLength)}}})],1),e.canHomeXY?t(B,{staticClass:"ml-2",attrs:{cols:"auto"}},[t(Ds,{attrs:{color:e.zHomed?void 0:"primary",loading:e.hasWait(e.$waits.onHomeZ),disabled:!e.klippyReady||e.printerPrinting,tooltip:e.$t("app.tool.tooltip.home_z"),icon:"$home"},on:{click:function(s){return e.sendGcode("G28 Z",e.$waits.onHomeZ)}}})],1):e._e(),e.canHomeXY?t(B,{staticClass:"ml-2"},[t(Ds,{attrs:{color:e.xHomed?void 0:"primary",loading:e.hasWait(e.$waits.onHomeX),disabled:!e.klippyReady||e.printerPrinting,icon:"$home","small-icon":""},on:{click:function(s){return e.sendGcode("G28 X",e.$waits.onHomeX)}}},[e._v(" "+e._s(e.$t("app.tool.btn.home_x"))+" ")])],1):e._e()],1),t(ie,{staticClass:"mb-2",attrs:{"no-gutters":"",justify:"start"}},[t(B,{staticClass:"ml-12 mr-7",attrs:{cols:"auto"}},[t(Ds,{attrs:{color:e.axisButtonColor(e.yHomed),disabled:e.axisButtonDisabled(e.yHomed,e.yHasMultipleSteppers),icon:"$down"},on:{click:function(s){return e.sendMoveGcode("Y",e.toolheadMoveLength,!0)}}})],1),t(B,{staticClass:"ml-7",attrs:{cols:"auto"}},[t(Ds,{attrs:{color:e.axisButtonColor(e.zHomed),disabled:e.axisButtonDisabled(e.zHomed,e.zHasMultipleSteppers),icon:"$down"},on:{click:function(s){return e.sendMoveGcode("Z",e.toolheadMoveLength)}}})],1),e.canHomeXY?t(B,{staticClass:"ml-2"},[t(Ds,{attrs:{color:e.yHomed?void 0:"primary",loading:e.hasWait(e.$waits.onHomeY),disabled:!e.klippyReady||e.printerPrinting,icon:"$home","small-icon":""},on:{click:function(s){return e.sendGcode("G28 Y",e.$waits.onHomeY)}}},[e._v(" "+e._s(e.$t("app.tool.btn.home_y"))+" ")])],1):e._e()],1),t(ie,{staticClass:"mb-2",attrs:{"no-gutters":"",justify:"start"}},[t(B,[t(wm,{staticClass:"elevation-2",attrs:{mandatory:"",dense:""},model:{value:e.toolheadMoveLength,callback:function(s){e.toolheadMoveLength=e._n(s)},expression:"toolheadMoveLength"}},e._l(e.toolheadMoveDistances,function(s,n){return t(M,{key:n,attrs:{small:"","min-width":"40",value:s,disabled:!e.klippyReady}},[e._v(" "+e._s(s)+" ")])}),1)],1)],1)],1)},wX=[],SX=E(qv,$X,wX,!1,null,"881d031b");const xX=SX.exports;var CX=Object.defineProperty,PX=Object.getOwnPropertyDescriptor,Hm=(r,e,t,s)=>{for(var n=s>1?void 0:s?PX(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&CX(e,t,n),n};let rl=
G1 ${this.axis}${t} F${this.rate*60}
G90`)}sendHomeGcode(){this.sendGcode(`G28 ${this.axis}`,this.wait)}};cP([w({type:String})],qh.prototype,"axis",2);qh=cP([A({})],qh);var kX=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,{staticClass:"mb-2",attrs:{"no-gutters":""}},[t(B,[t(lP,{staticClass:"d-flex",attrs:{values:e.values,color:"primary",disabled:!e.klippyReady||e.printerPrinting||!e.homed},on:{click:function(s){return e.sendMoveGcode(s)}}},[t(M,{staticClass:"flex-grow-1",attrs:{color:e.homed?void 0:"primary",disabled:!e.klippyReady||e.printerPrinting,loading:e.hasWait(e.wait)},on:{click:e.sendHomeGcode}},[t(S,{staticClass:"mr-1",attrs:{"small-icon":""}},[e._v(" $home ")]),e._v(" "+e._s(e.axis)+" ")],1)],1)],1)],1)},DX=[],MX=E(qh,kX,DX,!1,null,null);const RX=MX.exports;var IX=Object.defineProperty,FX=Object.getOwnPropertyDescriptor,uP=(r,e,t,s)=>{for(var n=s>1?void 0:s?FX(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&IX(e,t,n),n};let Zh=class extends Y(J){constructor(){super(...arguments);m(this,"stepper")}get values(){return[1,10,50]}get rate(){return this.isStepperZ?this.$store.state.config.uiSettings.general.defaultToolheadZSpeed:this.$store.state.config.uiSettings.general.defaultToolheadXYSpeed}get accel(){return this.isStepperZ?this.$store.getters["printer/getPrinterSettings"]("printer.max_z_accel"):this.$store.state.printer.printer.toolhead.max_accel}get isStepperZ(){return this.stepper.key.startsWith("stepper_z")}sendForceMoveGcode(t){this.sendGcode(`FORCE_MOVE STEPPER="${this.stepper.key}" DISTANCE=${t} VELOCITY=${this.rate} ACCEL=${this.accel}`)}};uP([w({type:Object})],Zh.prototype,"stepper",2);Zh=uP([A({})],Zh);var HX=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,{staticClass:"mb-2",attrs:{"no-gutters":""}},[t(B,[t(lP,{staticClass:"d-flex",attrs:{values:e.values,color:"error"},on:{click:function(s){return e.sendForceMoveGcode(s)}}},[t("div",{staticClass:"v-btn v-size--default btncolor flex-grow-1"},[e._v(" "+e._s(e.stepper.prettyName)+" ")])])],1)],1)},jX=[],BX=E(Zh,HX,jX,!1,null,null);const NX=BX.exports;var VX=Object.defineProperty,zX=Object.getOwnPropertyDescriptor,UX=(r,e,t,s)=>{for(var n=s>1?void 0:s?zX(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&VX(e,t,n),n};let Zv=class extends Y(J,zt){get steppers(){return this.$store.getters["printer/getSteppers"].filter(t=>t.key.startsWith("stepper_"))}get forceMove(){return this.$store.state.config.uiSettings.toolhead.forceMove}};Zv=UX([A({components:{ToolheadControlBarsAxis:RX,ToolheadControlBarsStepper:NX}})],Zv);var WX=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.forceMove?t("div",e._l(e.steppers,function(s){return t("toolhead-control-bars-stepper",{key:s.key,attrs:{stepper:s}})}),1):t("div",[t("toolhead-control-bars-axis",{attrs:{axis:"X"}}),t("toolhead-control-bars-axis",{attrs:{axis:"Y"}}),t("toolhead-control-bars-axis",{attrs:{axis:"Z"}}),t(ie,{staticClass:"mb-2",attrs:{"no-gutters":""}},[t(B,{staticClass:"text-center"},[t(M,{staticClass:"px-2 mr-2",attrs:{disabled:!e.klippyReady||e.printerPrinting,loading:e.hasWait(e.$waits.onHomeAll),color:e.allHomed?void 0:"primary"},on:{click:e.homeAll}},[t(S,{staticClass:"mr-1",attrs:{small:""}},[e._v(" $home ")]),e._v(" "+e._s(e.$t("app.tool.btn.home_all"))+" ")],1),t(M,{staticClass:"px-2",attrs:{disabled:!e.klippyReady||e.printerPrinting,loading:e.hasWait(e.$waits.onHomeXY),color:e.xyHomed?void 0:"primary"},on:{click:function(s){return e.sendGcode("G28 X Y",e.$waits.onHomeXY)}}},[t(S,{staticClass:"mr-1",attrs:{small:""}},[e._v(" $home ")]),e._v(" XY ")],1)],1)],1)],1)},GX=[],qX=E(Zv,WX,GX,!1,null,null);const ZX=qX.exports;var YX=Object.defineProperty,KX=Object.getOwnPropertyDescriptor,XX=(r,e,t,s)=>{for(var n=s>1?void 0:s?KX(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&YX(e,t,n),n};let Yv=class extends Y(J,zt){get enableXYHoming(){return this.$store.state.config.uiSettings.general.toolheadCircleXYHomingEnabled}get stepsXY(){return this.$store.state.config.uiSettings.general.toolheadCircleXYMoveDi
G1 ${e}${t} F${n*60}
G90`)}get bedSize(){return this.$store.getters["printer/getBedSize"]??{minX:0,minY:0,maxX:0,maxY:0}}get bedCenter(){const e=this.bedSize;return{x:(e.maxX-e.minX)/2,y:(e.maxY-e.minY)/2}}sendMoveCenterGcode(){const e=this.bedCenter,t=this.$store.state.config.uiSettings.general.defaultToolheadXYSpeed;this.sendGcode(`G1 X${e.x} Y${e.y} F${t*60}`)}};Yv=XX([A({})],Yv);var JX=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(ie,[t(B,{staticClass:"pa-0 mt-1"},[t("svg",{staticClass:"app-circle-control",class:{[e.$vuetify.theme.dark?"theme--dark":"theme--light"]:!0},attrs:{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 426.5 347"}},[t("g",{staticClass:"cc-section"},[t("a",{staticClass:"cc-btn outer",class:e.zStepClasses,on:{click:function(s){return e.sendMoveGcode("Z",e.stepsZ[3],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m408.5,121.331V6.998c0-3.313-2.686-5.998-5.998-5.998h-38.003c-3.313,0-5.998,2.686-5.998,5.998v114.333h50Z"}})]),t("a",{staticClass:"cc-btn outer",class:e.zStepClasses,on:{click:function(s){return e.sendMoveGcode("Z",e.stepsZ[3],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m358.5,221.331v118.664c0,3.316,2.688,6.005,6.005,6.005h37.991c3.316,0,6.005-2.688,6.005-6.005v-118.664h-50Z"}})]),t("text",{staticClass:"cc-lbl",class:e.zStepClasses,attrs:{transform:"translate(382.5, 25.664)","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsZ[3])+" ")])]),t("g",{staticClass:"cc-section"},[t("a",{staticClass:"cc-btn outer-mid",class:e.zStepClasses,on:{click:function(s){return e.sendMoveGcode("Z",e.stepsZ[2],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m408.5,38.274c-8.108-1.489-16.462-2.274-25-2.274s-16.892.785-25,2.274v83.057h50V38.274Z"}})]),t("a",{staticClass:"cc-btn outer-mid",class:e.zStepClasses,on:{click:function(s){return e.sendMoveGcode("Z",e.stepsZ[2],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m358.5,308.726c8.108,1.489,16.462,2.274,25,2.274s16.892-.785,25-2.274v-87.395h-50v87.395Z"}})]),t("text",{staticClass:"cc-lbl",class:e.zStepClasses,attrs:{transform:"translate(382.5, 60.664)","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsZ[2])+" ")])]),t("g",{staticClass:"cc-section"},[t("a",{staticClass:"cc-btn inner-mid",class:e.zStepClasses,on:{click:function(s){return e.sendMoveGcode("Z",e.stepsZ[1],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m408.5,74.077c-8.002-2.006-16.376-3.077-25-3.077s-16.998,1.071-25,3.077v47.255h50v-47.255Z"}})]),t("a",{staticClass:"cc-btn inner-mid",class:e.zStepClasses,on:{click:function(s){return e.sendMoveGcode("Z",e.stepsZ[1],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m358.5,272.923c8.002,2.006,16.376,3.077,25,3.077s16.998-1.071,25-3.077v-51.592h-50v51.592Z"}})]),t("text",{staticClass:"cc-lbl",class:e.zStepClasses,attrs:{transform:"translate(382.5, 95.663)","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsZ[1])+" ")])]),t("g",{staticClass:"cc-section"},[t("a",{staticClass:"cc-btn inner",class:e.zStepClasses,on:{click:function(s){return e.sendMoveGcode("Z",e.stepsZ[0],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m383.5,106c-8.836,0-17.266,1.715-25,4.802v26.262c0,.531.211,1.04.586,1.416l6.262,6.262c.621.621,1.584.782,2.351.354,4.677-2.609,10.064-4.096,15.8-4.096s11.123,1.488,15.8,4.096c.767.428,1.73.267,2.351-.354l6.262-6.262c.375-.375.586-.885.586-1.416v-26.262c-7.734-3.087-16.164-4.802-25-4.802Z"}})]),t("a",{staticClass:"cc-btn inner",class:e.zStepClasses,on:{click:function(s){return e.sendMoveGcode("Z",e.stepsZ[0],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m383.5,206c-5.736,0-11.123-1.488-15.8-4.096-.767-.428-1.73-.267-2.351.354l-6.262,6.262c-.375.375-.586.885-.586,1.415v24.87c0,.838.513,1.6,1.298,1.895,7.376,2.77,15.358,4.3,23.702,4.3s16.326-1.53,23.702-4.3c.785-.295,1.298-1.057,1.298-1.895v-24.87c0-.531-.211-1.04-.586-1.415l-6.262-6.262c-.621-.621-1.584-.782-2.351-.354-4.677,2.609-10.064,4.096-15.8,4.096Z"}})]),t("text",{staticClass:"cc-lbl",class:e.zStepClasses,attrs:{transform:"translate(382.5, 130.664)","text-anchor":"middl
G1 E-${t} F${s*60}`;this.sendGcode(i,n)}}sendExtrudeGcode(t,s,n){if(this.valid){const i=`M83
G1 E${t} F${s*60}`;this.sendGcode(i,n)}}mounted(){this.form.validate()}};Eb([Te("form")],yu.prototype,"form",2);Eb([Ae("activeExtruder")],yu.prototype,"activeExtruderChanged",1);yu=Eb([A({})],yu);var nJ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Ll,{ref:"form",on:{submit:function(s){s.preventDefault()}},model:{value:e.valid,callback:function(s){e.valid=s},expression:"valid"}},[t(ie,{attrs:{justify:"end"}},[t(B,{staticClass:"text-right",attrs:{cols:"6"}},[t(ae,{attrs:{disabled:!e.klippyReady||!e.activeExtruder,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(.1),e.maxExtrudeLengthRule],type:"number","hide-details":"",outlined:"",dense:"",label:e.$t("app.general.label.extrude_length"),suffix:"mm"},on:{focus:function(s){return s.target.select()}},model:{value:e.extrudeLength,callback:function(s){e.extrudeLength=e._n(s)},expression:"extrudeLength"}})],1),t(B,{attrs:{cols:"6"}},[t(M,{attrs:{disabled:!e.klippyReady||!e.extruderReady||!e.valid,block:""},on:{click:function(s){return e.sendRetractGcode(e.extrudeLength,e.extrudeSpeed,e.$waits.onExtrude)}}},[e._v(" "+e._s(e.$t("app.general.btn.retract"))+" "),t(S,[e._v("$chevronUp")])],1)],1)],1),t(ie,{staticClass:"mt-0",attrs:{justify:"end"}},[t(B,{staticClass:"text-right",attrs:{cols:"6"}},[t(ae,{attrs:{disabled:!e.klippyReady||!e.activeExtruder,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(.1),e.maxExtrudeSpeedRule],type:"number","hide-details":"",outlined:"",dense:"",label:e.$t("app.general.label.extrude_speed"),suffix:"mm/s"},on:{focus:function(s){return s.target.select()}},model:{value:e.extrudeSpeed,callback:function(s){e.extrudeSpeed=e._n(s)},expression:"extrudeSpeed"}})],1),t(B,{attrs:{cols:"6"}},[t(M,{attrs:{disabled:!e.klippyReady||!e.extruderReady||!e.valid,block:""},on:{click:function(s){return e.sendExtrudeGcode(e.extrudeLength,e.extrudeSpeed,e.$waits.onExtrude)}}},[e._v(" "+e._s(e.$t("app.general.btn.extrude"))+" "),t(S,[e._v("$chevronDown")])],1)],1)],1)],1)},iJ=[],aJ=E(yu,nJ,iJ,!1,null,null);const oJ=aJ.exports;var lJ=Object.defineProperty,cJ=Object.getOwnPropertyDescriptor,uJ=(r,e,t,s)=>{for(var n=s>1?void 0:s?cJ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&lJ(e,t,n),n};let Kv=class extends Y(J){get extruders(){return this.$store.getters["printer/getExtruders"]}get extruder(){return this.$store.state.printer.printer.toolhead.extruder}set extruder(e){this.sendGcode(`ACTIVATE_EXTRUDER EXTRUDER=${e}`,this.$waits.onExtruderChange)}};Kv=uJ([A({})],Kv);var dJ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Re,{staticClass:"mb-2 v-input--x-dense",staticStyle:{"max-width":"256px"},attrs:{items:e.extruders,readonly:e.printerPrinting,disabled:!e.klippyReady||e.printerPrinting,"item-value":"key","item-text":"name","hide-details":"",outlined:"",dense:""},model:{value:e.extruder,callback:function(s){e.extruder=s},expression:"extruder"}})},pJ=[],hJ=E(Kv,dJ,pJ,!1,null,null);const fJ=hJ.exports;var mJ=Object.defineProperty,gJ=Object.getOwnPropertyDescriptor,vJ=(r,e,t,s)=>{for(var n=s>1?void 0:s?gJ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&mJ(e,t,n),n};let Xv=class extends Y(J,zt){get gcodePosition(){return this.$store.state.printer.printer.gcode_move.gcode_position}get toolheadPosition(){return this.$store.state.printer.printer.toolhead.position}get livePosition(){return this.$store.state.printer.printer.motion_report.live_position}get useGcodeCoords(){return this.$store.state.config.uiSettings.general.useGcodeCoords}get forceMove(){return this.$store.state.config.uiSettings.toolhead.forceMove}get xForceMove(){return this.forceMove&&!this.xHasMultipleSteppers}get yForceMove(){return this.forceMove&&!this.yHasMultipleSteppers}get zForceMove(){return this.forceMove&&!this.zHasMultipleSteppers}get usesAbsolutePositioning(){return this.$store.state.printer.printer.gcode_move.absolute_coordinates}get positioning(){return this.usesAbsolutePositioning?0:1}set positioning(e){this.sendGcode(`G9${e}`)}moveTo(e,t){const
G1 ${e}${t} F${i*60}`)}}};Xv=vJ([A({})],Xv);var _J=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"mb-2"},[t(ie,{attrs:{justify:"space-between","no-gutters":""}},[t(B,{staticClass:"pr-1",attrs:{cols:"3"}},[t(ae,{staticClass:"v-input--width-small",attrs:{color:e.forceMove?"error":"primary",label:`X [ ${e.livePosition[0].toFixed(2)} ]`,outlined:"","hide-details":"",dense:"",type:"number",disabled:!e.klippyReady||!e.xHomed&&!e.xForceMove,readonly:e.printerBusy,value:e.useGcodeCoords?e.gcodePosition[0].toFixed(2):e.toolheadPosition[0].toFixed(2)},on:{change:function(s){return e.moveTo("X",s)},focus:function(s){return s.target.select()}}})],1),t(B,{staticClass:"pr-1 pl-1",attrs:{cols:"3"}},[t(ae,{staticClass:"v-input--width-small",attrs:{color:e.forceMove?"error":"primary",label:`Y [ ${e.livePosition[1].toFixed(2)} ]`,outlined:"","hide-details":"",dense:"",type:"number",disabled:!e.klippyReady||!e.yHomed&&!e.yForceMove,readonly:e.printerBusy,value:e.useGcodeCoords?e.gcodePosition[1].toFixed(2):e.toolheadPosition[1].toFixed(2)},on:{change:function(s){return e.moveTo("Y",s)},focus:function(s){return s.target.select()}}})],1),t(B,{staticClass:"pr-1 pl-1",attrs:{cols:"3"}},[t(ae,{staticClass:"v-input--width-small",attrs:{color:e.forceMove?"error":"primary",label:`Z [ ${e.livePosition[2].toFixed(2)} ]`,outlined:"","hide-details":"",dense:"",type:"number",disabled:!e.klippyReady||!e.zHomed&&!e.zForceMove,readonly:e.printerBusy,value:e.useGcodeCoords?e.gcodePosition[2].toFixed(2):e.toolheadPosition[2].toFixed(2)},on:{change:function(s){return e.moveTo("Z",s)},focus:function(s){return s.target.select()}}})],1),t(B,{staticClass:"pl-1",attrs:{cols:"3"}},[t(wm,{staticClass:"elevation-2 d-flex",attrs:{mandatory:"",dense:""},model:{value:e.positioning,callback:function(s){e.positioning=s},expression:"positioning"}},[t(Oe,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"positioning-toggle-button",attrs:{disabled:!e.klippyReady||e.printerBusy}},"app-btn",n,!1),s),[t(S,{attrs:{small:""}},[e._v(" $absolutePositioning ")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.tool.tooltip.absolute_positioning")))])]),t(Oe,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"positioning-toggle-button",attrs:{disabled:!e.klippyReady||e.printerBusy}},"app-btn",n,!1),s),[t(S,{attrs:{small:""}},[e._v(" $relativePositioning ")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.tool.tooltip.relative_positioning")))])])],1)],1)],1)],1)},yJ=[],bJ=E(Xv,_J,yJ,!1,null,"34f6ec82");const $J=bJ.exports;var wJ=Object.defineProperty,SJ=Object.getOwnPropertyDescriptor,xJ=(r,e,t,s)=>{for(var n=s>1?void 0:s?SJ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&wJ(e,t,n),n};let Jv=class extends Y(J){constructor(){super(...arguments);m(this,"moveDistanceValue",null)}get zHomingOrigin(){const{homing_origin:t}=this.$store.state.printer.printer.gcode_move;return t&&t.length>=4?+t[2]:0}get zAdjustValues(){return this.$store.state.config.uiSettings.general.zAdjustDistances}get moveDistance(){return this.moveDistanceValue||this.zAdjustValues[0]}set moveDistance(t){this.moveDistanceValue=t}get availableCommands(){return this.$store.getters["printer/getAvailableCommands"]}get hasZOffsetApplyProbe(){return"Z_OFFSET_APPLY_PROBE"in this.availableCommands}get hasZOffsetApplyEndstop(){return"Z_OFFSET_APPLY_ENDSTOP"in this.availableCommands}sendZAdjustGcode(t){const s=this.$store.getters["printer/getHomedAxes"]("z"),n=`SET_GCODE_OFFSET Z_ADJUST=${t}${this.moveDistance} MOVE=${+s}`;this.sendGcode(n,this.$waits.onZAdjust)}handleZOffsetApply(){this.hasZOffsetApplyProbe&&!this.hasZOffsetApplyEndstop&&this.sendGcode("Z_OFFSET_APPLY_PROBE"),this.hasZOffsetApplyEndstop&&!this.hasZOffsetApplyProbe&&this.sendGcode("Z_OFFSET_APPLY_ENDSTOP")}};Jv=xJ([A({})],Jv);var CJ=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.hasZOffsetApplyEndstop||e.hasZOffsetApplyProbe?t(ie,{attrs:{align:"start",justify:"end"}},[t(
<div>
${g.marker}
<span style="font-size:${n}px;color:${s};font-weight:400;margin-left:2px">
${this.$filters.prettyCase(v)}:
</span>
<span style="float:right;margin-left:20px;font-size:${n}px;color:${s};font-weight:900">
${g.value[g.seriesName].toFixed(2)}<small>°C</small>`,g.seriesName+"Target"in g.value&&(f+=` / ${g.value[g.seriesName+"Target"].toFixed()}<small>°C</small>`),g.seriesName+"Power"in g.value&&(f+=` / ${(g.value[g.seriesName+"Power"]*100).toFixed()}<small>%</small>`),g.seriesName+"Speed"in g.value&&(f+=` / ${(g.value[g.seriesName+"Speed"]*100).toFixed()}<small>%</small>`),f+=`</span>
<div style="clear: both"></div>
</div>
<div style="clear: both"></div>`}}),f}},xAxis:{type:"time",boundaryGap:!1,max:"dataMax",min:h=>{const f=this.$store.getters["charts/getChartRetention"];return h.max-f*1e3},axisTick:{show:!1},splitLine:{show:!0,lineStyle:i},axisLabel:{interval:0,margin:14,color:c.textStyle.color,fontSize:n,formatter:"{H}:{mm}",rotate:this.isMobileViewport?45:0},axisPointer:{label:{show:!0,margin:9,formatter:this.xAxisPointerFormatter}}},yAxis:[{name:"Temperature °C",nameTextStyle:{fontSize:n,color:s,align:"left"},nameGap:8,show:!0,type:"value",position:"left",splitLine:{show:!0,lineStyle:i},minInterval:20,maxInterval:60,min:this.yAxisTempMin,max:this.yAxisTempMax,axisLabel:{interval:0,margin:8,color:s,fontSize:n,formatter:"{value}"},boundaryGap:[0,"100%"]},{name:"Power %",nameTextStyle:{fontSize:n,color:s,align:"right"},nameGap:8,show:this.showPowerAxis(this.initialSelected),type:"value",position:"right",splitLine:{show:!1,lineStyle:i},min:0,max:1,axisLabel:{interval:0,margin:8,color:s,fontSize:n,formatter:this.yAxisPowerFormatter},boundaryGap:[0,"100%"]}],dataZoom:[{type:"inside",zoomOnMouseWheel:"shift"}],series:this.series}}createSeries(t){const s=this.$colorset.next(Gp(t),t),n={name:t,type:"line",yAxisIndex:0,showSymbol:!1,animation:!1,color:s,emphasis:{lineStyle:{width:1.5}},lineStyle:{color:s,type:"solid",width:1.5,opacity:1},areaStyle:{opacity:.05},encode:{x:"date",y:t}};t.toLowerCase().endsWith("target")&&(n.yAxisIndex=0,n.emphasis.lineStyle.width=1,n.lineStyle.width=1,n.lineStyle.type="dashed",n.lineStyle.opacity=.8,n.areaStyle.opacity=0),(t.toLowerCase().endsWith("power")||t.toLowerCase().endsWith("speed"))&&(n.yAxisIndex=1,n.emphasis.lineStyle.width=1,n.lineStyle.width=1,n.lineStyle.type="dotted",n.lineStyle.opacity=1,n.areaStyle.opacity=0);const i=this.$store.getters["charts/getSelectedLegends"];return i[t]!==void 0?this.initialSelected[t]=i[t]:this.initialSelected[t]=!(t.toLowerCase().endsWith("power")||t.toLowerCase().endsWith("speed")),n}showPowerAxis(t){return Object.keys(t).filter(n=>n.toLowerCase().endsWith("power")||n.toLowerCase().endsWith("speed")).filter(n=>t[n]===!0).length>0}legendToggleSelect(t){this.chart&&this.chart.dispatchAction({type:"legendToggleSelect",name:t})}tooltipPosition(t,s,n,i,a){const o={top:-10};return o[["left","right"][+(t[0]<a.viewSize[0]/2)]]=10,o}xAxisPointerFormatter(t){return this.$filters.formatTimeWithSeconds(t.value)}yAxisPointerFormatter(t){return t.value.toFixed()+"°C"}yAxisPowerFormatter(t){return`${t*100}`}yAxisTempMin(t){let s=Math.floor(t.min/10)*10;return s=s===t.min&&s-10>=0?s-10:s,s}yAxisTempMax(t){let s=Math.ceil(t.max/10)*10;return s=s===t.max?s+10:s,s}};jm([w({type:String,default:"100%"})],sl.prototype,"height",2);jm([Te("chart")],sl.prototype,"chart",2);jm([Ae("chartData")],sl.prototype,"onDataChange",1);sl=jm([A({})],sl);var BQ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"chart",style:{height:e.height}},[t("e-chart",{ref:"chart",staticStyle:{overflow:"initial"},attrs:{option:e.options,"update-options":{notMerge:!0},"init-options":{renderer:"svg"},autoresize:""},on:{legendselectchanged:e.handleLegendSelectChanged}})],1)},NQ=[],VQ=E(sl,BQ,NQ,!1,null,"9038dc31");const zQ=VQ.exports;var UQ=Object.defineProperty,WQ=Object.getOwnPropertyDescriptor,Bm=(r,e,t,s)=>{for(var n=s>1?void 0:s?WQ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&UQ(e,t,n),n};let nl=class extends b{constructor(){super(...arguments);m(this,"inputValue");m(this,"form");m(this,"currentValue","");m(this,"hasFocus",!1)}onValue(e){this.hasFocus||(this.currentValue=e)}get filteredListeners(){const{focus:e,blur:t,...s}=this.$listeners;return s}handleSubmit(){this.form.validate()&&this.$emit("submit",this.currentValue)}handleFocus(e){this.hasFocus=!0,e.target instanceof HTMLInputElement&&(e.target.select(),this.$emit("focus",e))}handleBlur(e){this.currentValue=this.inputValue,this.hasFocus=!1,this.$emit("blur",e)}mounted(){this.currentValue=this.inputValue}};Bm([Fe()],nl.prototype,"inputValue",2);Bm([Te("form")],nl.prototype,"for
`).replace(/^\s+|\s+$/gm,"");this.$emit("click",s)}}};vP([w({type:Object,default:()=>{}})],Jh.prototype,"value",2);Jh=vP([A({})],Jh);var hte=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Vr,{staticClass:"console-item"},[e.value.time?t("span",{staticClass:"secondary--text mr-3 d-none d-sm-block text-no-wrap"},[e._v(" "+e._s(e.itemTime)+"  ")]):e._e(),t("span",{class:e.itemClass,domProps:{innerHTML:e._s(e.itemMessage)},on:{"!click":function(s){return e.itemClick.apply(null,arguments)}}})])},fte=[],mte=E(Jh,hte,fte,!1,null,"69726511");const gte=mte.exports;var vte=Object.defineProperty,_te=Object.getOwnPropertyDescriptor,to=(r,e,t,s)=>{for(var n=s>1?void 0:s?_te(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&vte(e,t,n),n};let zn=class extends Y(J){constructor(){super(...arguments);m(this,"items");m(this,"fullscreen");m(this,"readonly");m(this,"scrollingPausedModel");m(this,"dynamicScroller");m(this,"_pauseScroll",!1)}get currentCommand(){return this.$store.state.console.consoleCommand}set currentCommand(t){this.$store.commit("console/setConsoleCommand",t)}get flipLayout(){return this.$store.state.config.uiSettings.general.flipConsoleLayout}set flipLayout(t){this.scrollToLatest(!0)}mounted(){this.dynamicScroller.$el.addEventListener("scroll",this.onScroll)}beforeDestroy(){this.dynamicScroller.$el.removeEventListener("scroll",this.onScroll)}onItemsChange(t,s){if(this.dynamicScroller){const n=this.dynamicScroller.$el;if(this.flipLayout&&(this._pauseScroll||!this.$store.state.console.autoScroll)){const{scrollHeight:i,clientHeight:a}=n;i>a&&this.$nextTick(()=>{n.scrollTop+=n.scrollHeight-i})}else this.scrollToLatest((s==null?void 0:s.length)===0)}}updateScrollingPaused(){this.$nextTick(()=>{const{scrollTop:t,scrollHeight:s,clientHeight:n}=this.dynamicScroller.$el,i=this.flipLayout?t>1:s-t-n>1;this._pauseScroll!==i&&(this._pauseScroll=i,this.scrollingPausedModel=i)})}onScroll(){this.updateScrollingPaused()}scrollToLatest(t){this._pauseScroll&&!t||this.dynamicScroller&&((this.$store.state.console.autoScroll||this.readonly||t)&&(this.flipLayout?this.dynamicScroller.scrollToItem(0):this.dynamicScroller.scrollToBottom()),t&&this.updateScrollingPaused())}sendCommand(t){t&&t.length&&(t.trim().toLowerCase()==="m112"&&I.printerEmergencyStop(),this.sendGcode(t),this.currentCommand="")}handleEntryClick(t){this.currentCommand=t}};to([w({type:[Array,Array],default:()=>[]})],zn.prototype,"items",2);to([w({type:Boolean})],zn.prototype,"fullscreen",2);to([w({type:Boolean})],zn.prototype,"readonly",2);to([Hi("scrollingPaused",{type:Boolean})],zn.prototype,"scrollingPausedModel",2);to([Te("scroller")],zn.prototype,"dynamicScroller",2);to([Ae("items",{immediate:!0})],zn.prototype,"onItemsChange",1);zn=to([A({components:{ConsoleCommand:ute,ConsoleItem:gte}})],zn);var yte=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"console"},[!e.readonly&&e.flipLayout?t("console-command",{attrs:{disabled:!e.klippyConnected,autofocus:e.fullscreen},on:{send:e.sendCommand},model:{value:e.currentCommand,callback:function(s){e.currentCommand=s},expression:"currentCommand"}}):e._e(),t(He,{ref:"console-wrapper",staticClass:"console-wrapper",attrs:{flat:""}},[t("DynamicScroller",{ref:"scroller",staticClass:"console-scroller",class:{"console-scroller-fullscreen":e.fullscreen},attrs:{items:e.flipLayout?[...e.items].reverse():e.items,"min-item-size":24,"key-field":"id",buffer:600},on:{resize:function(s){return e.scrollToLatest()}},scopedSlots:e._u([{key:"default",fn:function({item:s,index:n,active:i}){return[t("DynamicScrollerItem",{attrs:{item:s,active:i,"size-dependencies":[s.message],"data-index":n}},[t("console-item",{key:s.id,staticClass:"console-item",attrs:{value:s},on:{click:e.handleEntryClick}})],1)]}}])})],1),!e.readonly&&!e.flipLayout?t("console-command",{attrs:{disabled:!e.klippyConnected,autofocus:e.fullscreen},on:{send:e.sendCommand},model:{value:e.currentCommand,callback:function(s){e.currentCommand=s},expression:"currentCommand"}}):e._e()],1)},bte=[],$te=E(zn,yte,bte,!1,
* iro.js v5.5.2
* 2016-2021 James Daniel
* Licensed under MPL 2.0
* github.com/jaames/iro.js
*/var Pt,tf,wP,u_,SP,$i={},Tb=[],jte=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;function gi(r,e){for(var t in e)r[t]=e[t];return r}function xP(r){var e=r.parentNode;e&&e.removeChild(r)}function ht(r,e,t){var s,n,i,a,o=arguments;if(e=gi({},e),arguments.length>3)for(t=[t],s=3;s<arguments.length;s++)t.push(o[s]);if(t!=null&&(e.children=t),r!=null&&r.defaultProps!=null)for(n in r.defaultProps)e[n]===void 0&&(e[n]=r.defaultProps[n]);return a=e.key,(i=e.ref)!=null&&delete e.ref,a!=null&&delete e.key,d_(r,e,a,i)}function d_(r,e,t,s){var n={type:r,props:e,key:t,ref:s,__k:null,__p:null,__b:0,__e:null,l:null,__c:null,constructor:void 0};return Pt.vnode&&Pt.vnode(n),n}function zm(r){return r.children}function Bte(r){if(r==null||typeof r=="boolean")return null;if(typeof r=="string"||typeof r=="number")return d_(null,r,null,null);if(r.__e!=null||r.__c!=null){var e=d_(r.type,r.props,r.key,null);return e.__e=r.__e,e}return r}function Ho(r,e){this.props=r,this.context=e}function rf(r,e){if(e==null)return r.__p?rf(r.__p,r.__p.__k.indexOf(r)+1):null;for(var t;e<r.__k.length;e++)if((t=r.__k[e])!=null&&t.__e!=null)return t.__e;return typeof r.type=="function"?rf(r):null}function CP(r){var e,t;if((r=r.__p)!=null&&r.__c!=null){for(r.__e=r.__c.base=null,e=0;e<r.__k.length;e++)if((t=r.__k[e])!=null&&t.__e!=null){r.__e=r.__c.base=t.__e;break}return CP(r)}}function t1(r){(!r.__d&&(r.__d=!0)&&tf.push(r)===1||u_!==Pt.debounceRendering)&&(u_=Pt.debounceRendering,(Pt.debounceRendering||wP)(Nte))}function Nte(){var r,e,t,s,n,i,a,o;for(tf.sort(function(l,c){return c.__v.__b-l.__v.__b});r=tf.pop();)r.__d&&(t=void 0,s=void 0,i=(n=(e=r).__v).__e,a=e.__P,o=e.u,e.u=!1,a&&(t=[],s=Db(a,n,gi({},n),e.__n,a.ownerSVGElement!==void 0,null,t,o,i??rf(n)),AP(t,n),s!=i&&CP(n)))}function PP(r,e,t,s,n,i,a,o,l){var c,u,d,p,h,f,g,v=t&&t.__k||Tb,y=v.length;if(o==$i&&(o=i!=null?i[0]:y?rf(t,0):null),c=0,e.__k=kb(e.__k,function(C){if(C!=null){if(C.__p=e,C.__b=e.__b+1,(d=v[c])===null||d&&C.key==d.key&&C.type===d.type)v[c]=void 0;else for(u=0;u<y;u++){if((d=v[u])&&C.key==d.key&&C.type===d.type){v[u]=void 0;break}d=null}if(p=Db(r,C,d=d||$i,s,n,i,a,null,o,l),(u=C.ref)&&d.ref!=u&&(g||(g=[])).push(u,C.__c||p,C),p!=null){if(f==null&&(f=p),C.l!=null)p=C.l,C.l=null;else if(i==d||p!=o||p.parentNode==null){e:if(o==null||o.parentNode!==r)r.appendChild(p);else{for(h=o,u=0;(h=h.nextSibling)&&u<y;u+=2)if(h==p)break e;r.insertBefore(p,o)}e.type=="option"&&(r.value="")}o=p.nextSibling,typeof e.type=="function"&&(e.l=p)}}return c++,C}),e.__e=f,i!=null&&typeof e.type!="function")for(c=i.length;c--;)i[c]!=null&&xP(i[c]);for(c=y;c--;)v[c]!=null&&EP(v[c],v[c]);if(g)for(c=0;c<g.length;c++)LP(g[c],g[++c],g[++c])}function kb(r,e,t){if(t==null&&(t=[]),r==null||typeof r=="boolean")e&&t.push(e(null));else if(Array.isArray(r))for(var s=0;s<r.length;s++)kb(r[s],e,t);else t.push(e?e(Bte(r)):r);return t}function Vte(r,e,t,s,n){var i;for(i in t)i in e||LS(r,i,null,t[i],s);for(i in e)n&&typeof e[i]!="function"||i==="value"||i==="checked"||t[i]===e[i]||LS(r,i,e[i],t[i],s)}function AS(r,e,t){e[0]==="-"?r.setProperty(e,t):r[e]=typeof t=="number"&&jte.test(e)===!1?t+"px":t??""}function LS(r,e,t,s,n){var i,a,o,l,c;if(!((e=n?e==="className"?"class":e:e==="class"?"className":e)==="key"||e==="children"))if(e==="style")if(i=r.style,typeof t=="string")i.cssText=t;else{if(typeof s=="string"&&(i.cssText="",s=null),s)for(a in s)t&&a in t||AS(i,a,"");if(t)for(o in t)s&&t[o]===s[o]||AS(i,o,t[o])}else e[0]==="o"&&e[1]==="n"?(l=e!==(e=e.replace(/Capture$/,"")),c=e.toLowerCase(),e=(c in r?c:e).slice(2),t?(s||r.addEventListener(e,ES,l),(r.t||(r.t={}))[e]=t):r.removeEventListener(e,ES,l)):e!=="list"&&e!=="tagName"&&e!=="form"&&!n&&e in r?r[e]=t??"":typeof t!="function"&&e!=="dangerouslySetInnerHTML"&&(e!==(e=e.replace(/^xlink:?/,""))?t==null||t===!1?r.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):r.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),t):t==null||t===!1?r.removeAttribute(e):r.setAttribute(e,t))}function ES(r){return this.t[r.type](Pt.event?Pt.event(r):r)}funct
<div>
<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:${v.color};"></span>
<span style="font-size:16px;color:${s};font-weight:400;margin-left:2px">
${this.$filters.prettyCase(v.seriesName)}
</span>
<div style="clear: both"></div>
<span style="font-size:16px;color:${s};font-weight:400;margin-left:2px">
x: ${v.value[0].toFixed(4)}
</span>
<div style="clear: both"></div>
<span style="font-size:16px;color:${s};font-weight:400;margin-left:2px">
y: ${v.value[1].toFixed(4)}
</span>
<div style="clear: both"></div>
<span style="font-size:16px;color:${s};font-weight:400;margin-left:2px">
z: ${v.value[2].toFixed(4)}
</span>
<div style="clear: both"></div>
</div>
`),y}},visualMap:{type:"continuous",textStyle:{color:s,fontSize:n},realtime:!0,calculable:!0,show:!0,top:0,right:"auto",bottom:"auto",left:0,dimension:2,precision:4,inRange:{color:["#313695","#4575b4","#74add1","#abd9e9","#e0f3f8","#ffffbf","#fee090","#fdae61","#f46d43","#d73027","#a50026"]},...l},xAxis3D:{type:"value",min:(p=this.bedSize)==null?void 0:p.minX,max:(h=this.bedSize)==null?void 0:h.maxX,...c},yAxis3D:{type:"value",min:(f=this.bedSize)==null?void 0:f.minY,max:(g=this.bedSize)==null?void 0:g.maxY,...c},zAxis3D:{type:"value",min:-.5,max:.5,...c},grid3D:{viewControl:{rotateSensitivity:1.8,zoomSensitivity:2,rotateMouseButton:"left",panMouseButton:"right"}},graphic:u,series:[...this.data]};return F3(d,this.options),d}async copyImage(){const s=await(await fetch(this.chart.getDataURL({type:"png",backgroundColor:"#262629"}))).blob(),n=[new ClipboardItem({"image/png":s})];await navigator.clipboard.write(n)}};ro([w({type:Array,required:!0})],Un.prototype,"data",2);ro([w({type:Array,default:()=>[]})],Un.prototype,"graphics",2);ro([w({type:Object,default:()=>{}})],Un.prototype,"options",2);ro([w({type:String,default:"100%"})],Un.prototype,"height",2);ro([Te("chart")],Un.prototype,"chart",2);ro([Ae("flatSurface")],Un.prototype,"onFlatSurfaceChange",1);Un=ro([A({})],Un);var Yse=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"chart",style:{height:e.height}},[t("e-chart",{ref:"chart",attrs:{option:e.opts,"update-options":{notMerge:!1},"init-options":{renderer:"canvas"},autoresize:""}})],1)},Kse=[],Xse=E(Un,Yse,Kse,!1,null,"be83c234");const Jse=Xse.exports;var Qse=Object.defineProperty,ene=Object.getOwnPropertyDescriptor,Fb=(r,e,t,s)=>{for(var n=s>1?void 0:s?ene(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Qse(e,t,n),n};let $u=class extends Y(J,zt,lt){constructor(){super(...arguments);m(this,"fullscreen");m(this,"bedMeshChart")}get hasMeshLoaded(){const t=this.mesh,s=this.matrix;return t&&t[s]&&t[s].coordinates&&t[s].coordinates.length>0}get options(){const t=this.scale/2,s=this.boxScale/2;let n=-Math.abs(t-this.mesh[this.matrix].min),i=t+this.mesh[this.matrix].max;this.scale===0&&(n=this.mesh[this.matrix].min,i=this.mesh[this.matrix].max);const a=-Math.abs(this.mesh[this.matrix].mid-s),o=this.mesh[this.matrix].mid+s;return{legend:{show:!1,selected:this.series.reduce((u,d)=>Object.assign(u,{[d.name]:!d.name.endsWith("_flat")||this.flatSurface&&d.name.startsWith(this.matrix)}),Object.assign({}))},visualMap:{min:n,max:i,dimension:2,seriesIndex:0},zAxis3D:{min:a,max:o}}}get series(){const t=this.matrix,s=this.wireframe;return[{type:"surface",name:t,shading:"color",wireframe:{show:s},data:this.mesh[t].coordinates,dataShape:this.mesh[t].dimensions},this.createFlatSeries("probed_matrix_flat"),this.createFlatSeries("mesh_matrix_flat")]}get graphics(){const{range:t}=this.mesh[this.matrix];return[{type:"text",right:10,top:0,z:100,silent:!0,style:{text:`Range: ${t.toFixed(4)}`}}]}createFlatSeries(t){const s=this.wireframe;return{type:"surface",name:t,itemStyle:{color:[.5,.5,.5,.25]},wireframe:{show:s,lineStyle:{opacity:.25,width:1,color:"#ffffff"}},data:this.mesh[t].coordinates,dataShape:this.mesh[t].dimensions}}calibrate(){this.sendGcode("BED_MESH_CALIBRATE",this.$waits.onMeshCalibrate)}get matrix(){return this.$store.state.mesh.matrix}get scale(){return this.$store.state.mesh.scale}get boxScale(){return this.$store.state.mesh.boxScale}get wireframe(){return this.$store.state.mesh.wireframe}get flatSurface(){return this.$store.state.mesh.flatSurface}get mesh(){return this.$store.getters["mesh/getCurrentMeshData"]}get canCopyImage(){return typeof navigator.clipboard=="object"&&typeof navigator.clipboard.write=="function"&&typeof ClipboardItem=="function"}copyImage(){this.bedMeshChart.copyImage()}};Fb([w({type:Boolean})],$u.prototype,"fullscreen",2);Fb([Te("chart")],$u.prototype,"bedMeshChart",2);$u=Fb([A({components:{BedMeshChart:Jse}})],$u);var tne=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.general.title
`))}function jo(){}function Gne(r){var e=typeof r;if(!(e==="undefined"||e==="boolean")){var t=Do(r.left)&&Do(r.top)&&Do(r.bottom)&&Do(r.right);if(!t)throw new Error("Bounds object is not valid. It can be: undefined, boolean (true|false) or an object {left, top, right, bottom}")}}function Do(r){return Number.isFinite(r)}function i1(r){return Number.isNaN?Number.isNaN(r):r!==r}function qne(){return{start:jo,stop:jo,cancel:jo}}function Zne(){if(typeof document>"u")return;var r=document.getElementsByTagName("script");if(!r)return;for(var e,t=0;t<r.length;++t){var s=r[t];if(s.src&&s.src.match(/\bpanzoom(\.min)?\.js/)){e=s;break}}if(!e)return;var n=e.getAttribute("query");if(!n)return;var i=e.getAttribute("name")||"pz",a=Date.now();o();function o(){var u=document.querySelector(n);if(!u){var d=Date.now(),p=d-a;if(p<2e3){setTimeout(o,100);return}console.error("Cannot find the panzoom element",i);return}var h=l(e);console.log(h),window[i]=XP(u,h)}function l(u){for(var d=u.attributes,p={},h=0;h<d.length;++h){var f=d[h],g=c(f);g&&(p[g.name]=g.value)}return p}function c(u){if(u.name){var d=u.name[0]==="p"&&u.name[1]==="z"&&u.name[2]==="-";if(d){var p=u.name.substr(3),h=JSON.parse(u.value);return{name:p,value:h}}}}}Zne();const Yne=Tl(Wne);var Kne=Object.defineProperty,Xne=Object.getOwnPropertyDescriptor,JP=(r,e,t,s)=>{for(var n=s>1?void 0:s?Xne(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Kne(e,t,n),n};let cf=class extends Y(J){constructor(){super(...arguments);m(this,"shapeRendering")}get parts(){const t=this.$store.getters["parts/getParts"];return Object.keys(t)}iconClasses(t){return this.isPartExcluded(t)?"partExcluded":this.isPartCurrent(t)?"partCurrent":"partIncluded"}partSVG(t){return this.$store.getters["parts/getPartSVG"](t)}get iconCancelled(){return ru.cancelled}get iconCircle(){return ru.circle}partPos(t){return this.$store.getters["parts/getPartPos"](t)}isPartCurrent(t){return this.$store.getters["parts/getIsPartCurrent"](t)}isPartExcluded(t){return this.$store.getters["parts/getIsPartExcluded"](t)}};JP([w({type:String})],cf.prototype,"shapeRendering",2);cf=JP([A({})],cf);var Jne=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("g",{attrs:{id:"parts"}},e._l(e.parts,function(s){return t("g",{key:s,staticClass:"layer",class:e.iconClasses(s)},[t("path",{staticClass:"partOutline",attrs:{d:e.partSVG(s),"shape-rendering":e.shapeRendering}}),t("svg",{staticClass:"partIcon",attrs:{width:"7",height:"7",viewBox:"0 0 24 24",x:e.partPos(s).x-7/2,y:e.partPos(s).y-7/2}},[t("path",{attrs:{d:e.iconCancelled}}),e.isPartExcluded(s)?e._e():t("path",{directives:[{name:"touch",rawName:"v-touch:tap",value:()=>e.$emit("cancel",s),expression:"() => $emit('cancel', name)",arg:"tap"}],staticClass:"hitarea",attrs:{d:e.iconCircle}})])])}),0)},Qne=[],eie=E(cf,Jne,Qne,!1,null,"1a2fb382");const tie=eie.exports;var rie=Object.defineProperty,sie=Object.getOwnPropertyDescriptor,xd=(r,e,t,s)=>{for(var n=s>1?void 0:s?sie(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&rie(e,t,n),n};let ka=class extends Y(lt){constructor(){super(...arguments);m(this,"name");m(this,"icon");m(this,"tooltip");m(this,"disabled")}get property(){return this.$store.getters["gcodePreview/getViewerOption"](this.name)}set property(t){this.$store.commit("gcodePreview/setViewerState",{[this.name]:t})}};xd([w({type:String,required:!0})],ka.prototype,"name",2);xd([w({type:String,required:!0})],ka.prototype,"icon",2);xd([w({type:String,required:!0})],ka.prototype,"tooltip",2);xd([w({type:Boolean})],ka.prototype,"disabled",2);ka=xd([A({})],ka);var nie=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Be,e._g(e._b({attrs:{icon:"",small:"",tabindex:"-1",disabled:e.disabled,color:e.property?"primary":void 0,"retain-focus-on-click":!e.isMobileViewport},on:{click:function(i){e.property=!e.property}}},"v-btn",n,!1),s),[t(S,[e._v(e._s(e.icon))])],1)]}}])},[t("span",[e._v(e._s(e.tooltip))])])},iie=[],aie=E(ka,nie
<div>
${v.marker}
<span style="font-size:${n}px;color:${s};font-weight:400;margin-left:2px">
${this.sanitize(v.seriesName)}:
</span>
<span style="float:right;margin-left:20px;font-size:${n}px;color:${s};font-weight:900">
${this.sanitize(C)} ${this.sanitize(y.unit)}
</span>
<div style="clear: both"></div>
</div>
<div style="clear: both"></div>`}),g}},xAxis:{type:"time",boundaryGap:!1,max:"dataMax",min:f=>{const g=this.$store.getters["charts/getChartRetention"];return f.max-g*1e3},axisTick:{show:!1},splitLine:{show:!0,lineStyle:i},axisLabel:{interval:0,margin:14,color:c.textStyle.color,fontSize:n,formatter:"{H}:{mm}",rotate:this.isMobileViewport?45:0},axisPointer:{label:{show:!0,margin:9,formatter:this.xAxisPointerFormatter}}},yAxis:this.config.axes.map((f,g)=>({name:f.enabled&&f.showLegend?f.unit:void 0,nameTextStyle:{fontSize:n,color:s,align:["left","right"][g]},nameGap:8,show:!0,type:"value",position:["left","right"][g],splitLine:{show:!0,lineStyle:i},min:[void 0,""].includes(f.min)?void 0:f.min,max:[void 0,""].includes(f.max)?void 0:f.max,axisLabel:f.showLegend?{color:s,fontSize:n,formatter:"{value}"}:void 0})),dataZoom:[{type:"inside",zoomOnMouseWheel:"shift"}],series:p}}sanitize(t){return t.toString().replace(/[^a-z0-9]/gi,s=>`&#${s.charCodeAt(0)};`)}get series(){const t=[];for(const[s,n]of Object.entries(this.config.axes))if(n.enabled)for(const i of n.metrics)t.push({name:i.name,unit:n.unit,displayLegend:i.style.displayLegend,type:"line",yAxisIndex:+s,showSymbol:!1,animation:!1,color:i.style.lineColor,emphasis:{lineStyle:{width:1.5}},lineStyle:{color:i.style.lineColor,type:i.style.lineStyle,width:1.5,opacity:1},areaStyle:{opacity:i.style.fillOpacity/100,color:i.style.fillColor??i.style.lineColor},encode:{x:"date",y:i.collector}});return t}xAxisPointerFormatter(t){return this.$filters.formatTimeWithSeconds(t.value)}};i8([w({type:Object,required:!0})],hf.prototype,"config",2);hf=i8([A({})],hf);var Yoe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.config.title,icon:`$${e.config.icon}`,draggable:"","layout-path":`diagnostics.${e.config.id}`},scopedSlots:e._u([{key:"menu",fn:function(){return[t(Sn,[t(M,{attrs:{small:""},on:{click:function(s){return e.$emit("edit",e.config)}}},[t(S,{attrs:{small:"",left:""}},[e._v(" $edit ")]),e._v(" "+e._s(e.$t("app.general.title.edit_chart"))+" ")],1)],1)]},proxy:!0}])},[t(Fl,{staticClass:"mt-2",attrs:{data:e.chartData,height:`${e.config.height}px`,options:e.options}})],1)},Koe=[],Xoe=E(hf,Yoe,Koe,!1,null,null);const Joe=Xoe.exports;var Qoe=Object.defineProperty,ele=Object.getOwnPropertyDescriptor,a8=(r,e,t,s)=>{for(var n=s>1?void 0:s?ele(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Qoe(e,t,n),n};let ff=class extends b{constructor(){super(...arguments);m(this,"config")}get icons(){return Object.keys(ru).sort().map(s=>({text:s,value:s}))}};a8([w({type:Object,required:!0})],ff.prototype,"config",2);ff=a8([A({})],ff);var tle=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(H,{attrs:{title:e.$t("app.setting.label.title")}},[t(ae,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",rules:[e.$rules.required]},model:{value:e.config.title,callback:function(s){e.$set(e.config,"title",s)},expression:"config.title"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.icon")}},[t(Re,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.icons},scopedSlots:e._u([{key:"item",fn:function({item:s}){return[t(S,{attrs:{dense:"",color:"primary"}},[e._v(" $"+e._s(s.text)+" ")]),t("span",{staticClass:"ml-2"},[e._v(e._s(s.text))])]}},{key:"selection",fn:function({item:s}){return[t(S,{attrs:{color:"primary"}},[e._v(" $"+e._s(s.text)+" ")]),t("span",{staticClass:"ml-2"},[e._v(e._s(s.text))])]}}]),model:{value:e.config.icon,callback:function(s){e.$set(e.config,"icon",s)},expression:"config.icon"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.height")}},[t(ae,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"px",rules:[e.$rules.required,e.$rules.numberGreaterThanOrEqual(1)]},model:{value:e.config.height,callback:function(s){e.$set(e.config,"height",s)},expression:"config.height"}})],1)],1)},rle=[],sle=E(ff,tle,rle,!1,null,null);const nle=sle.exports;var ile=Object.defineProperty,ale=Object.getOwnPropertyDescriptor,o8=(r,e,t,s)=>{for(var n=s>1?voi
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/var KS;function ple(){return KS||(KS=1,function(r,e){(function(s,n){r.exports=n()})(Sb,function(){return function(){var t={686:function(i,a,o){o.d(a,{default:function(){return X}});var l=o(279),c=o.n(l),u=o(370),d=o.n(u),p=o(817),h=o.n(p);function f(q){try{return document.execCommand(q)}catch{return!1}}var g=function(Z){var te=h()(Z);return f("cut"),te},v=g;function y(q){var Z=document.documentElement.getAttribute("dir")==="rtl",te=document.createElement("textarea");te.style.fontSize="12pt",te.style.border="0",te.style.padding="0",te.style.margin="0",te.style.position="absolute",te.style[Z?"right":"left"]="-9999px";var re=window.pageYOffset||document.documentElement.scrollTop;return te.style.top="".concat(re,"px"),te.setAttribute("readonly",""),te.value=q,te}var C=function(Z,te){var re=y(Z);te.container.appendChild(re);var _e=h()(re);return f("copy"),re.remove(),_e},x=function(Z){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},re="";return typeof Z=="string"?re=C(Z,te):Z instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(Z==null?void 0:Z.type)?re=C(Z.value,te):(re=h()(Z),f("copy")),re},$=x;function L(q){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?L=function(te){return typeof te}:L=function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},L(q)}var G=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=Z.action,re=te===void 0?"copy":te,_e=Z.container,Me=Z.target,wt=Z.text;if(re!=="copy"&&re!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Me!==void 0)if(Me&&L(Me)==="object"&&Me.nodeType===1){if(re==="copy"&&Me.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(re==="cut"&&(Me.hasAttribute("readonly")||Me.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(wt)return $(wt,{container:_e});if(Me)return re==="cut"?v(Me):$(Me,{container:_e})},K=G;function le(q){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?le=function(te){return typeof te}:le=function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},le(q)}function ue(q,Z){if(!(q instanceof Z))throw new TypeError("Cannot call a class as a function")}function ne(q,Z){for(var te=0;te<Z.length;te++){var re=Z[te];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(q,re.key,re)}}function fe(q,Z,te){return Z&&ne(q.prototype,Z),te&&ne(q,te),q}function k(q,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(Z&&Z.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Z&&T(q,Z)}function T(q,Z){return T=Object.setPrototypeOf||function(re,_e){return re.__proto__=_e,re},T(q,Z)}function P(q){var Z=N();return function(){var re=U(q),_e;if(Z){var Me=U(this).constructor;_e=Reflect.construct(re,arguments,Me)}else _e=re.apply(this,arguments);return O(this,_e)}}function O(q,Z){return Z&&(le(Z)==="object"||typeof Z=="function")?Z:j(q)}function j(q){if(q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q}function N(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function U(q){return U=Object.setPrototypeOf?Object.getPrototypeOf:function(te){return te.__proto__||Object.getPrototypeOf(te)},U(q)}function V(q,Z){var te="data-clipboard-".concat(q);if(Z.hasAttribute(te))return Z.getAttribute(te)}var Q=function(q){k(te,q);var Z=P(te);function te(re,_e){var Me;return ue(this
`+p._s(p.copied?p.copyText.copiedText:p.copyText.copyText)+`
`)]},{copied:p.copied})],2)]):p._e(),p._v(" "),h("div",{staticClass:"jv-code",class:{open:p.expandCode,boxed:p.boxed}},[h("json-box",{ref:"jsonBox",attrs:{value:p.value,sort:p.sort,"preview-mode":p.previewMode,"show-array-index":p.showArrayIndex,"show-double-quotes":p.showDoubleQuotes},on:{keyclick:p.onKeyclick}})],1),p._v(" "),p.expandableCode&&p.boxed?h("div",{staticClass:"jv-more",on:{click:p.toggleExpandCode}},[h("span",{staticClass:"jv-toggle",class:{open:!!p.expandCode}})]):p._e()])}var d=[];u._withStripped=!0,c.d(l,"a",function(){return u}),c.d(l,"b",function(){return d})},function(o,l,c){var u=c(39);typeof u=="string"&&(u=[[o.i,u,""]]);var d={hmr:!0,transform:void 0};c(25)(u,d),u.locals&&(o.exports=u.locals)},function(o,l,c){o.exports=function(u){var d=[];return d.toString=function(){return this.map(function(p){var h=function(f,g){var v=f[1]||"",y=f[3];return y?g&&typeof btoa=="function"?(f=function(C){return C=btoa(unescape(encodeURIComponent(JSON.stringify(C)))),C="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(C),"/*# ".concat(C," */")}(y),g=y.sources.map(function(C){return"/*# sourceURL=".concat(y.sourceRoot||"").concat(C," */")}),[v].concat(g).concat([f]).join(`
`)):[v].join(`
`):v}(p,u);return p[2]?"@media ".concat(p[2]," {").concat(h,"}"):h}).join("")},d.i=function(p,h,f){typeof p=="string"&&(p=[[null,p,""]]);var g={};if(f)for(var v=0;v<this.length;v++){var y=this[v][0];y!=null&&(g[y]=!0)}for(var C=0;C<p.length;C++){var x=[].concat(p[C]);f&&g[x[0]]||(h&&(x[2]?x[2]="".concat(h," and ").concat(x[2]):x[2]=h),d.push(x))}},d}},function(o,l,c){var u,d,p,h={},f=(u=function(){return window&&document&&document.all&&!window.atob},function(){return d=d===void 0?u.apply(this,arguments):d}),g=(p={},function(P){if(p[P]===void 0){var O=(function(j){return document.querySelector(j)}).call(this,P);if(O instanceof window.HTMLIFrameElement)try{O=O.contentDocument.head}catch{O=null}p[P]=O}return p[P]}),v=null,y=0,C=[],x=c(40);function $(P,O){for(var j=0;j<P.length;j++){var N=P[j],U=h[N.id];if(U){U.refs++;for(var V=0;V<U.parts.length;V++)U.parts[V](N.parts[V]);for(;V<N.parts.length;V++)U.parts.push(ne(N.parts[V],O))}else{for(var Q=[],V=0;V<N.parts.length;V++)Q.push(ne(N.parts[V],O));h[N.id]={id:N.id,refs:1,parts:Q}}}}function L(P,O){for(var j=[],N={},U=0;U<P.length;U++){var Q=P[U],V=O.base?Q[0]+O.base:Q[0],Q={css:Q[1],media:Q[2],sourceMap:Q[3]};N[V]?N[V].parts.push(Q):j.push(N[V]={id:V,parts:[Q]})}return j}function G(P,O){var j=g(P.insertInto);if(!j)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var N=C[C.length-1];if(P.insertAt==="top")N?N.nextSibling?j.insertBefore(O,N.nextSibling):j.appendChild(O):j.insertBefore(O,j.firstChild),C.push(O);else if(P.insertAt==="bottom")j.appendChild(O);else{if(typeof P.insertAt!="object"||!P.insertAt.before)throw new Error(`[Style Loader]
Invalid value for parameter 'insertAt' ('options.insertAt') found.
Must be 'top', 'bottom', or Object.
(https://github.com/webpack-contrib/style-loader#insertat)
`);P=g(P.insertInto+" "+P.insertAt.before),j.insertBefore(O,P)}}function K(P){P.parentNode!==null&&(P.parentNode.removeChild(P),0<=(P=C.indexOf(P))&&C.splice(P,1))}function le(P){var O=document.createElement("style");return P.attrs.type="text/css",ue(O,P.attrs),G(P,O),O}function ue(P,O){Object.keys(O).forEach(function(j){P.setAttribute(j,O[j])})}function ne(P,O){var j,N,U,V,Q;if(O.transform&&P.css){if(!(V=O.transform(P.css)))return function(){};P.css=V}return U=O.singleton?(Q=y++,j=v=v||le(O),N=T.bind(null,j,Q,!1),T.bind(null,j,Q,!0)):P.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(V=O,Q=document.createElement("link"),V.attrs.type="text/css",V.attrs.rel="stylesheet",ue(Q,V.attrs),G(V,Q),j=Q,N=(function(X,q,_e){var te=_e.css,re=_e.sourceMap,_e=q.convertToAbsoluteUrls===void 0&&re;(q.convertToAbsoluteUrls||_e)&&(te=x(te)),re&&(te+=`
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(re))))+" */"),re=new Blob([te],{type:"text/css"}),te=X.href,X.href=URL.createObjectURL(re),te&&URL.revokeObjectURL(te)}).bind(null,j,O),function(){K(j),j.href&&URL.revokeObjectURL(j.href)}):(j=le(O),N=(function(X,te){var Z=te.css,te=te.media;if(te&&X.setAttribute("media",te),X.styleSheet)X.styleSheet.cssText=Z;else{for(;X.firstChild;)X.removeChild(X.firstChild);X.appendChild(document.createTextNode(Z))}}).bind(null,j),function(){K(j)}),N(P),function(X){X?X.css===P.css&&X.media===P.media&&X.sourceMap===P.sourceMap||N(P=X):U()}}o.exports=function(P,O){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(O=O||{}).attrs=typeof O.attrs=="object"?O.attrs:{},O.singleton||typeof O.singleton=="boolean"||(O.singleton=f()),O.insertInto||(O.insertInto="head"),O.insertAt||(O.insertAt="bottom");var j=L(P,O);return $(j,O),function(N){for(var U=[],V=0;V<j.length;V++){var Q=j[V];(X=h[Q.id]).refs--,U.push(X)}N&&$(L(N,O),O);for(var X,V=0;V<U.length;V++)if((X=U[V]).refs===0){for(var q=0;q<X.parts.length;q++)X.parts[q]();delete h[X.id]}}};var fe,k=(fe=[],function(P,O){return fe[P]=O,fe.filter(Boolean).join(`
`)});function T(P,O,U,N){var U=U?"":N.css;P.styleSheet?P.styleSheet.cssText=k(O,U):(N=document.createTextNode(U),(U=P.childNodes)[O]&&P.removeChild(U[O]),U.length?P.insertBefore(N,U[O]):P.appendChild(N))}},function(o,l,c){var u=c(44);typeof u=="string"&&(u=[[o.i,u,""]]);var d={hmr:!0,transform:void 0};c(25)(u,d),u.locals&&(o.exports=u.locals)},function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0});var u=u(28),d=(u=u)&&u.__esModule?u:{default:u};l.default=Object.assign(d.default,{install:function(p){p.component("JsonViewer",d.default)}})},function(o,l,c){c.r(l);var u,h=c(22),d=c(1);for(u in d)u!=="default"&&function(f){c.d(l,f,function(){return d[f]})}(u);c(43);var p=c(0),h=Object(p.a)(d.default,h.a,h.b,!1,null,null,null);h.options.__file="lib/json-viewer.vue",l.default=h.exports},function(o,l){o.exports=t},function(o,l,c){c.r(l);var u,d=c(5);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/types/json-string.vue",l.default=p.exports},function(o,l,c){c.r(l);var u,d=c(7);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/types/json-undefined.vue",l.default=p.exports},function(o,l,c){c.r(l);var u,d=c(9);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/types/json-number.vue",l.default=p.exports},function(o,l,c){c.r(l);var u,d=c(11);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/types/json-boolean.vue",l.default=p.exports},function(o,l,c){c.r(l);var u,d=c(13);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/types/json-object.vue",l.default=p.exports},function(o,l,c){c.r(l);var u,d=c(15);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/types/json-array.vue",l.default=p.exports},function(o,l,c){c.r(l);var u,d=c(17);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/types/json-function.vue",l.default=p.exports},function(o,l,c){c.r(l);var u,d=c(19);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/types/json-date.vue",l.default=p.exports},function(o,l,c){c(23)},function(o,l,c){(l=c(24)(!1)).push([o.i,`.jv-node{position:relative}.jv-node:after{content:','}.jv-node:last-of-type:after{content:''}.jv-node.toggle{margin-left:13px !important}.jv-node .jv-node{margin-left:25px}
`,""]),o.exports=l},function(o,l){o.exports=function(c){var u=typeof window<"u"&&window.location;if(!u)throw new Error("fixUrls requires window.location");if(!c||typeof c!="string")return c;var d=u.protocol+"//"+u.host,p=d+u.pathname.replace(/\/[^\/]*$/,"/");return c.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(h,g){var g=g.trim().replace(/^"(.*)"$/,function(v,y){return y}).replace(/^'(.*)'$/,function(v,y){return y});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(g)?h:(g=g.indexOf("//")===0?g:g.indexOf("/")===0?d+g:p+g.replace(/^\.\//,""),"url("+JSON.stringify(g)+")")})}},function(o,l){o.exports=s},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.debounce=function(u,d){var p=Date.now(),h=void 0;return function(){for(var f=arguments.length,g=Array(f),v=0;v<f;v++)g[v]=arguments[v];Date.now()-p<d&&h&&clearTimeout(h),h=setTimeout(function(){u.apply(void 0,g)},d),p=Date.now()}}},function(o,l,c){c(26)},function(o,l,p){var u=p(24),d=p(45),p=p(46);l=u(!1),p=d(p),l.push([o.i,".jv-container{box-sizing:border-box;position:relative}.jv-container.boxed{border:1px solid #eee;border-radius:6px}.jv-container.boxed:hover{box-shadow:0 2px 7px rgba(0,0,0,0.15);border-color:transparent;position:relative}.jv-container.jv-light{background:#fff;white-space:nowrap;color:#525252;font-size:14px;font-family:Consolas, Menlo, Courier, monospace}.jv-container.jv-light .jv-ellipsis{color:#999;background-color:#eee;display:inline-block;line-height:0.9;font-size:0.9em;padding:0px 4px 2px 4px;margin:0 4px;border-radius:3px;vertical-align:2px;cursor:pointer;-webkit-user-select:none;user-select:none}.jv-container.jv-light .jv-button{color:#49b3ff}.jv-container.jv-light .jv-key{color:#111111;margin-right:4px}.jv-container.jv-light .jv-item.jv-array{color:#111111}.jv-container.jv-light .jv-item.jv-boolean{color:#fc1e70}.jv-container.jv-light .jv-item.jv-function{color:#067bca}.jv-container.jv-light .jv-item.jv-number{color:#fc1e70}.jv-container.jv-light .jv-item.jv-object{color:#111111}.jv-container.jv-light .jv-item.jv-undefined{color:#e08331}.jv-container.jv-light .jv-item.jv-string{color:#42b983;word-break:break-word;white-space:normal}.jv-container.jv-light .jv-item.jv-string .jv-link{color:#0366d6}.jv-container.jv-light .jv-code .jv-toggle:before{padding:0px 2px;border-radius:2px}.jv-container.jv-light .jv-code .jv-toggle:hover:before{background:#eee}.jv-container .jv-code{overflow:hidden;padding:30px 20px}.jv-container .jv-code.boxed{max-height:300px}.jv-container .jv-code.open{max-height:initial !important;overflow:visible;overflow-x:auto;padding-bottom:45px}.jv-container .jv-toggle{background-image:url("+p+`);background-repeat:no-repeat;background-size:contain;background-position:center center;cursor:pointer;width:10px;height:10px;margin-right:2px;display:inline-block;-webkit-transition:-webkit-transform 0.1s;transition:-webkit-transform 0.1s;transition:transform 0.1s;transition:transform 0.1s, -webkit-transform 0.1s}.jv-container .jv-toggle.open{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jv-container .jv-more{position:absolute;z-index:1;bottom:0;left:0;right:0;height:40px;width:100%;text-align:center;cursor:pointer}.jv-container .jv-more .jv-toggle{position:relative;top:40%;z-index:2;color:#888;-webkit-transition:all 0.1s;transition:all 0.1s;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jv-container .jv-more .jv-toggle.open{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.jv-container .jv-more:after{content:"";width:100%;height:100%;position:absolute;bottom:0;left:0;z-index:1;background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);-webkit-transition:all 0.1s;transition:all 0.1s}.jv-container .jv-more:hover .jv-toggle{top:50%;color:#111}.jv-container .jv-more:hover:after{background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%)}.jv-con
`,""]),o.exports=l},function(o,l,c){o.exports=function(u,d){return d=d||{},typeof(u=u&&u.__esModule?u.default:u)!="string"?u:(/^['"].*['"]$/.test(u)&&(u=u.slice(1,-1)),d.hash&&(u+=d.hash),/["'() \t\n]/.test(u)||d.needQuotes?'"'.concat(u.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):u)}},function(o,l){o.exports="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE2IiB3aWR0aD0iOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KIAo8cG9seWdvbiBwb2ludHM9IjAsMCA4LDggMCwxNiIKc3R5bGU9ImZpbGw6IzY2NjtzdHJva2U6cHVycGxlO3N0cm9rZS13aWR0aDowIiAvPgo8L3N2Zz4="}],n.c=a,n.d=function(o,l,c){n.o(o,l)||Object.defineProperty(o,l,{enumerable:!0,get:c})},n.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},n.t=function(o,l){if(1&l&&(o=n(o)),8&l||4&l&&typeof o=="object"&&o&&o.__esModule)return o;var c=Object.create(null);if(n.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:o}),2&l&&typeof o!="string")for(var u in o)n.d(c,u,(function(d){return o[d]}).bind(null,u));return c},n.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(l,"a",l),l},n.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},n.p="",n(n.s=27);function n(o){if(a[o])return a[o].exports;var l=a[o]={i:o,l:!1,exports:{}};return i[o].call(l.exports,l,l.exports,n),l.l=!0,l.exports}var i,a})})(c8);var hle=c8.exports;const fle=Tl(hle);var mle=Object.defineProperty,gle=Object.getOwnPropertyDescriptor,vle=(r,e,t,s)=>{for(var n=s>1?void 0:s?gle(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&mle(e,t,n),n};let E_=class extends Y(J){get state(){return{printer:this.$store.state.printer.printer}}handleClick(e){const t=e.replace("$.","").replace(/\.(\w*[^\w\S.]+\w*)/g,(s,n)=>isNaN(n)?`['${n}']`:`[${n}]`);this.$emit("input",t)}};E_=vle([A({components:{JsonViewer:fle}})],E_);var _le=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("json-viewer",{class:e.$vuetify.theme.dark?"jv-dark":"",attrs:{value:e.state,"expand-depth":2,sort:""},on:{keyclick:e.handleClick}})},yle=[],ble=E(E_,_le,yle,!1,null,null);const $le=ble.exports;var wle=Object.defineProperty,Sle=Object.getOwnPropertyDescriptor,Qm=(r,e,t,s)=>{for(var n=s>1?void 0:s?Sle(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&wle(e,t,n),n};let dl=class extends b{constructor(){super(...arguments);m(this,"metric");m(this,"unit");m(this,"textArea");m(this,"result","-");m(this,"browserOpen",!1)}runCollector(){let t;try{if(t=l8(`
const printer = ${JSON.stringify(this.$store.state.printer.printer)}
return JSON.stringify(eval(${JSON.stringify(this.metric.collector)}))
`),typeof t!="string")throw new Error("Metrics collector returned invalid data");t=JSON.parse(t)}catch(s){t=(s instanceof Error&&s.message)??"Unknown Error"}typeof t=="number"&&(t=Math.round(t*1e3)/1e3),this.result=t}handleExplorerClick(t){this.browserOpen=!1;const s=this.textArea.$el.querySelector("textarea");if(s){const n=s.selectionStart,i=s.selectionEnd;this.metric.collector=this.metric.collector.substring(0,n)+t+this.metric.collector.substring(i)}}};Qm([w({type:Object,required:!0})],dl.prototype,"metric",2);Qm([w({type:String,required:!0})],dl.prototype,"unit",2);Qm([Te("textarea")],dl.prototype,"textArea",2);dl=Qm([A({components:{StateExplorer:$le}})],dl);var xle=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(He,{attrs:{outlined:""}},[t(Lm,{ref:"textarea",staticClass:"px-4",attrs:{label:e.$t("app.setting.label.collector"),spellcheck:"false","auto-grow":"","hide-details":"auto"},scopedSlots:e._u([{key:"append",fn:function(){return[t(M,{attrs:{icon:"",small:"",color:"secondary",title:e.$t("app.general.tooltip.browse_metrics")},on:{click:function(s){e.browserOpen=!0}}},[t(S,[e._v(" $magnify ")])],1),t(M,{attrs:{icon:"",small:"",color:"primary",title:e.$t("app.general.tooltip.run_collector")},on:{click:e.runCollector}},[t(S,[e._v(" $play ")])],1)]},proxy:!0}]),model:{value:e.metric.collector,callback:function(s){e.$set(e.metric,"collector",s)},expression:"metric.collector"}}),t(H,{attrs:{title:e.$t("app.setting.label.last_result")}},[t(ae,{ref:"result",attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",disabled:"",suffix:e.unit,value:e.result}})],1),e.browserOpen?t(st,{attrs:{title:e.$t("app.general.title.metrics_explorer"),"max-width":"1200","no-actions":""},model:{value:e.browserOpen,callback:function(s){e.browserOpen=s},expression:"browserOpen"}},[t(Le,[t("state-explorer",{on:{input:e.handleExplorerClick}})],1)],1):e._e()],1)},Cle=[],Ple=E(dl,xle,Cle,!1,null,null);const Ale=Ple.exports,Ra=()=>({layouts:{dashboard:{container1:[{id:"printer-status-card",enabled:!0,collapsed:!1},{id:"spoolman-card",enabled:!0,collapsed:!1},{id:"camera-card",enabled:!0,collapsed:!1},{id:"toolhead-card",enabled:!0,collapsed:!1},{id:"macros-card",enabled:!0,collapsed:!1},{id:"outputs-card",enabled:!0,collapsed:!1},{id:"runout-sensors-card",enabled:!1,collapsed:!1},{id:"printer-limits-card",enabled:!0,collapsed:!1},{id:"retract-card",enabled:!0,collapsed:!1}],container2:[{id:"temperature-card",enabled:!0,collapsed:!1},{id:"sensors-card",enabled:!0,collapsed:!1},{id:"console-card",enabled:!0,collapsed:!1},{id:"jobs-card",enabled:!0,collapsed:!1},{id:"job-queue-card",enabled:!1,collapsed:!1},{id:"gcode-preview-card",enabled:!0,collapsed:!1},{id:"bed-mesh-card",enabled:!1,collapsed:!1}]},diagnostics:{container1:[{id:Rl(),enabled:!0,title:"Speeds",collapsed:!1,height:300,icon:"motion",axes:[{enabled:!0,unit:"mm/s",showLegend:!0,metrics:[{collector:"printer.motion_report.live_velocity",name:"Velocity",style:{lineStyle:"solid",lineColor:"#2196f3",fillColor:null,fillOpacity:0,displayLegend:!0}},{collector:"printer.toolhead.max_velocity",name:"Max Velocity",style:{lineStyle:"dotted",lineColor:"#0075d2",fillColor:null,fillOpacity:0,displayLegend:!1}}]},{enabled:!0,unit:"mm³/s",showLegend:!0,max:20,metrics:[{collector:"printer.motion_report.live_extruder_velocity * Math.PI * (printer.configfile.settings.extruder.filament_diameter / 2) ** 2",name:"Flow",style:{lineStyle:"solid",lineColor:"#b12f36",fillColor:null,fillOpacity:5,displayLegend:!0}},{collector:"12",name:"Max Flow",style:{lineStyle:"dashed",lineColor:"#820007",fillColor:null,fillOpacity:0,displayLegend:!1}}]}]}]}}}),Lle=Ra();var Ele=Object.defineProperty,Ole=Object.getOwnPropertyDescriptor,u8=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ole(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Ele(e,t,n),n};let gf=class extends b{constructor(){super(...arguments);m(this,"config");m(this,"currentStep",1);m(this,"steps",[this.$t("app.setting.label.left_y"),this.$t("app.setting.label.right_y")]);m(this,"lineStyles",[{text:this.$t("app.sett
* qrcode.vue v1.7.0
* A Vue component to generate QRCode.
* © 2017-2019 @scopewu(https://github.com/scopewu)
* MIT License.
*/var Kr={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8};function A8(r){this.mode=Kr.MODE_8BIT_BYTE,this.data=r}A8.prototype={getLength:function(r){return this.data.length},write:function(r){for(var e=0;e<this.data.length;e++)r.put(this.data.charCodeAt(e),8)}};var ohe=A8,Lc={L:1,M:0,Q:3,H:2};function cn(r,e){this.totalCount=r,this.dataCount=e}cn.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];cn.getRSBlocks=function(r,e){var t=cn.getRsBlockTable(r,e);if(t==null)throw new Error("bad rs block @ typeNumber:"+r+"/errorCorrectLevel:"+e);for(var s=t.length/3,n=new Array,i=0;i<s;i++)for(var a=t[i*3+0],o=t[i*3+1],l=t[i*3+2],c=0;c<a;c++)n.push(new cn(o,l));return n};cn.getRsBlockTable=function(r,e){switch(e){case Lc.L:return cn.RS_BLOCK_TABLE[(r-1)*4+0];case Lc.M:return cn.RS_BLOCK_TABLE[(r-1)*4+1];case Lc.Q:return cn.RS_BLOCK_TABLE[(r-1)*4+2];case Lc.H:return cn.RS_BLOCK_TABLE[(r-1)*4+3];default:return}};var L8=cn;function E8(){this.buffer=new Array,this.length=0}E8.prototype={get:function(r){var e=Math.floor(r/8);return(this.buffer[e]>>>7-r%8&1)==1},put:function(r,e){for(var t=0;t<e;t++)this.putBit((r>>>e-t-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(r){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffe
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/function ime(r){var e=Number(r.version.split(".")[0]);if(e>=2)r.mixin({beforeCreate:s});else{var t=r.prototype._init;r.prototype._init=function(n){n===void 0&&(n={}),n.init=n.init?[s].concat(n.init):s,t.call(this,n)}}function s(){var n=this.$options;n.store?this.$store=typeof n.store=="function"?n.store():n.store:n.parent&&n.parent.$store&&(this.$store=n.parent.$store)}}var ame=typeof window<"u"?window:typeof global<"u"?global:{},wo=ame.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ome(r){wo&&(r._devtoolHook=wo,wo.emit("vuex:init",r),wo.on("vuex:travel-to-state",function(e){r.replaceState(e)}),r.subscribe(function(e,t){wo.emit("vuex:mutation",e,t)},{prepend:!0}),r.subscribeAction(function(e,t){wo.emit("vuex:action",e,t)},{prepend:!0}))}function lme(r,e){return r.filter(e)[0]}function e0(r,e){if(e===void 0&&(e=[]),r===null||typeof r!="object")return r;var t=lme(e,function(n){return n.original===r});if(t)return t.copy;var s=Array.isArray(r)?[]:{};return e.push({original:r,copy:s}),Object.keys(r).forEach(function(n){s[n]=e0(r[n],e)}),s}function Bl(r,e){Object.keys(r).forEach(function(t){return e(r[t],t)})}function R8(r){return r!==null&&typeof r=="object"}function cme(r){return r&&typeof r.then=="function"}function ume(r,e){return function(){return r(e)}}var rn=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var s=e.state;this.state=(typeof s=="function"?s():s)||{}},I8={namespaced:{configurable:!0}};I8.namespaced.get=function(){return!!this._rawModule.namespaced};rn.prototype.addChild=function(e,t){this._children[e]=t};rn.prototype.removeChild=function(e){delete this._children[e]};rn.prototype.getChild=function(e){return this._children[e]};rn.prototype.hasChild=function(e){return e in this._children};rn.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)};rn.prototype.forEachChild=function(e){Bl(this._children,e)};rn.prototype.forEachGetter=function(e){this._rawModule.getters&&Bl(this._rawModule.getters,e)};rn.prototype.forEachAction=function(e){this._rawModule.actions&&Bl(this._rawModule.actions,e)};rn.prototype.forEachMutation=function(e){this._rawModule.mutations&&Bl(this._rawModule.mutations,e)};Object.defineProperties(rn.prototype,I8);var io=function(e){this.register([],e,!1)};io.prototype.get=function(e){return e.reduce(function(t,s){return t.getChild(s)},this.root)};io.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(s,n){return t=t.getChild(n),s+(t.namespaced?n+"/":"")},"")};io.prototype.update=function(e){F8([],this.root,e)};io.prototype.register=function(e,t,s){var n=this;s===void 0&&(s=!0);var i=new rn(t,s);if(e.length===0)this.root=i;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],i)}t.modules&&Bl(t.modules,function(o,l){n.register(e.concat(l),o,s)})};io.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),s=e[e.length-1],n=t.getChild(s);n&&n.runtime&&t.removeChild(s)};io.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),s=e[e.length-1];return t?t.hasChild(s):!1};function F8(r,e,t){if(e.update(t),t.modules)for(var s in t.modules){if(!e.getChild(s))return;F8(r.concat(s),e.getChild(s),t.modules[s])}}var jr,ps=function(e){var t=this;e===void 0&&(e={}),!jr&&typeof window<"u"&&window.Vue&&B8(window.Vue);var s=e.plugins;s===void 0&&(s=[]);var n=e.strict;n===void 0&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new io(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new jr,this._makeLocalGettersCache=Object.create(null);var i=this,a=this,o=a.dispatch,l=a.commit;this.dispatch=function(p,h){return o.call(i,p,h)},this.commit=function(p,h,f){return l.call(i,p,h,f)},this.strict=n;var c=this._modules.root.state;tg(this,c,[],this._modules.root),s2(this,c),s.forEach(function(d){return d(t)});var u=e.devtool
`);mr.$emit(t,{type:"error"})}else if(e!=null&&e.rolled_over&&e.rolled_over.length){const t=e.rolled_over.map(b.$filters.prettyCase).join(", "),s=rt.tc("app.general.msg.rolledover_logs",0,{applications:t});mr.$emit(s,{type:"success"})}},async onMachineProcStats({commit:r,dispatch:e},t){if(t&&t.throttled_state&&await e("onMachineThrottledState",t.throttled_state),r("setMoonrakerStats",t),t.moonraker_stats&&"cpu_usage"in t.moonraker_stats&&!Array.isArray(t.moonraker_stats)){const s=t.moonraker_stats;s.cpu_usage<=100&&r("charts/setChartEntry",{type:"moonraker",retention:600,data:{date:new Date(s.time*1e3),load:s.cpu_usage.toFixed(2)}},{root:!0})}},async onMachineSystemInfo({commit:r,dispatch:e},t){r("setSystemInfo",t),e("checkKlipperMinVersion")},async onMachinePeripherals({commit:r},e){r("setMachinePeripherals",e)},async onMachinePeripheralsCanbus({commit:r},e){const{interface:t}=e.__request__.params;r("setMachinePeripheralsCanbus",{canbusInterface:t,can_uuids:e.can_uuids})},async onServiceStateChanged({commit:r},e){r("setServiceState",e)},async onMachineThrottledState({commit:r,dispatch:e,state:t},s){s&&(s&&s.flags.length>0&&s.flags.forEach(n=>{if(t.throttled_state&&!t.throttled_state.flags.includes(n)){const i=n.toLowerCase().startsWith("previously");let a={id:n,title:n,description:"This may lead to a throttle condition and result in a failed print",to:"https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#frequency-management-and-thermal-control",type:i?"info":"error",snackbar:!i,merge:!0,clear:!i,noCount:i};(n==="Temperature Limit Active"||n==="Frequency Capped")&&t.cpu_temp&&(a={...a,suffix:`${t.cpu_temp.toFixed(0)}<small>°C</small>`,suffixIcon:"$tempError"}),i||(a={...a,description:"This may lead to a failed print"}),e("notifications/pushNotification",a,{root:!0})}}),r("setMoonrakerStats",{throttled_state:s}))}},Eve={setReset(r){Object.assign(r,t0())},setResetKlippy(r){const{klippy_retries:e,info:t}=t0();Object.assign(r,{klippy_retries:e,info:t})},setServerInfo(r,e){b.set(r,"info",e)},setSystemInfo(r,e){e.system_info&&b.set(r,"system_info",e.system_info)},setMachinePeripherals(r,e){r.peripherals={...r.peripherals,...e}},setMachinePeripheralsCanbus(r,e){r.can_uuids={...r.can_uuids,[e.canbusInterface]:e.canUuids}},setServiceState(r,e){var t;e&&((t=r.system_info)!=null&&t.service_state)&&Object.assign(r.system_info.service_state,e)},setServerConfig(r,e){r.config={...r.config,...e}},setMoonrakerStats(r,e){if(e.cpu_temp&&b.set(r,"cpu_temp",e.cpu_temp),e.throttled_state&&(r.throttled_state={...r.throttled_state,...e.throttled_state}),e.moonraker_stats&&Array.isArray(e.moonraker_stats))b.set(r,"moonraker_stats",e.moonraker_stats);else if(r.moonraker_stats)for(r.moonraker_stats.push(e.moonraker_stats);r.moonraker_stats.length>30;)r.moonraker_stats.splice(0,1)},setKlippyRetries(r,e){r.klippy_retries=e}},Ove=!0,Tve={namespaced:Ove,state:Rme,getters:Ave,actions:Lve,mutations:Eve},s0=()=>({printer:{endstops:{},bed_mesh:{profile_name:""},heaters:{available_heaters:[],available_sensors:[]},info:{state:"",state_message:""},configfile:{warnings:[],save_config_pending:!1,save_config_pending_items:{},config:{virtual_sdcard:{},pause_resume:{},display_status:{},"gcode_macro CANCEL_PRINT":{}},settings:{bed_mesh:{},fan:{},printer:{max_accel_to_decel:500,minimum_cruise_ratio:.5,max_accel:1e3,max_velocity:100,square_corner_velocity:3,kinematics:"none"},virtual_sdcard:{},pause_resume:{},display_status:{},"gcode_macro cancel_print":{},extruder:{max_extrude_only_velocity:100,max_extrude_only_distance:100}}},objects:[],idle_timeout:{state:""},print_stats:{state:"",print_duration:0,total_duration:0,filament_used:0,filename:""},display_status:{progress:0,message:""},virtual_sdcard:{file_position:0,is_active:!1,progress:0},toolhead:{estimated_print_time:0,homed_axes:"",max_accel:0,max_accel_to_decel:null,minimum_cruise_ratio:null,max_velocity:0,position:[0,0,0,0],axis_minimum:[],axis_maximum:[],print_time:0,square_corner_velocity:0,extruder:""},motion_report:{live_position:[0,0,0,0],live_velocity:0,live_extruder_velocity:0},firmw
const printer = ${JSON.stringify(r.printer.printer)}
const collectors = ${JSON.stringify(i)}
const result = { }
for (const collector of collectors) {
try {
result[collector] = eval(collector)
} catch (err) {
result[collector] = err.message
}
}
return JSON.stringify(result) // in order to only return serializable data
`,"metrics"),typeof a!="string")throw new Error("Metrics collector returned invalid data");a=JSON.parse(a)}catch(o){a=Object.fromEntries(i.map(l=>[l,(o instanceof Error&&o.message)??"Unknown Error"]))}a.date=new Date,e("charts/setChartEntry",{type:"diagnostics",retention:t["charts/getChartRetention"],data:a},{root:!0})}},Vve={setReset(r){Object.assign(r,s0())},setPrinterInfo(r,e){b.set(r.printer,"info",e)},setQueryEndstops(r,e){r.printer.endstops=e},setPrinterBusy(r,e){r.printer.busy=e},setPrinterObjectList(r,e){r.printer.objects.includes(e)||r.printer.objects.push(e)},setClearEndStops(r){r.printer.endstops={}},setClearScrewsTiltAdjust(r){r.printer.screws_tilt_adjust={}},setResetCurrentFile(r){const e=s0().printer.current_file;ye.debug("resetting current file",e),b.set(r.printer,"current_file",e)},setSocketNotify(r,e){if(typeof e.payload=="object"){const t=Io(r.printer,e.key);t===void 0?b.set(r.printer,e.key,e.payload):Object.keys(e.payload).forEach(s=>{t[s]!==e.payload[s]&&b.set(r.printer[e.key],s,e.payload[s])})}else Io(r.printer,e.key)!==e.payload&&b.set(r.printer,e.key,e.payload)}},zve=!0,Uve={namespaced:zve,state:kve,getters:Dve,actions:Nve,mutations:Vve},Wve={getCurrentInstance:r=>r.instances.find(e=>e.active),getInstances:r=>[...r.instances].sort((t,s)=>t.active?-1:s.active?1:t.name.localeCompare(s.name)),getHostConfig:r=>r.hostConfig,getTempPresets:(r,e,t,s)=>{const n=r.uiSettings.dashboard.tempPresets,i=[],a=s["printer/getHeaters"],o=s["printer/getOutputs"](["temperature_fan"]);return n.forEach(l=>{const c={...l,values:{}};a.forEach(u=>{l.values[u.name]?c.values[u.name]={...l.values[u.name]}:c.values[u.name]={value:0,type:"heater",active:!1}}),o.forEach(u=>{l.values[u.name]?c.values[u.name]={...l.values[u.name]}:c.values[u.name]={value:0,type:"fan",active:!1}}),i.push(c)}),i.sort((l,c)=>l.name.localeCompare(c.name))},getCustomThemeFile:(r,e,t,s)=>(n,i)=>{const a=s["files/getRootFiles"]("config");if(a)for(const o of i){const l=`.fluidd-theme/${n}${o}`;if(a.some(c=>c.path===l))return l}},getMergedTableHeaders:(r,e)=>(t,s)=>{const n=e.getConfiguredTableHeaders(s);if(!n)return t;const i=[];return t.forEach(a=>{const o=a.key?"key":"value",l={visible:!0,configurable:!1,...a,...n.find(c=>c[o]===a[o])};i.push(l)}),i},getConfiguredTableHeaders:r=>e=>r.uiSettings.tableHeaders[e],getTokenKeys:r=>{const e=r.apiUrl,t=e?iP(e):"";return{"user-token":`user-token-${t}`,"refresh-token":`refresh-token-${t}`}}};b.use(Za,{directives:{Ripple:os}});const fl=new Za({breakpoint:{mobileBreakpoint:"xs"},icons:{iconfont:"mdiSvg",values:ru},theme:{dark:!0,options:{customProperties:!0},themes:{dark:{primary:"#2196F3","primary-offset":"#2E75AE",secondary:"#888888","card-heading":"#333337",btncolor:"#4A4A4F",drawer:"#28282B",appbar:"#1E1E20",logo:"#2196F3"},light:{primary:"#2196F3","primary-offset":"#2E75AE",secondary:QU.grey.lighten1,"card-heading":"#E9E9E9",btncolor:"#E9E9E9",drawer:"#F4F4F4",appbar:"#FFFFFF",logo:"#2196F3"}}}});function or(r,e){Gve(r)&&(r="100%");const t=qve(r);return r=e===360?r:Math.min(e,Math.max(0,parseFloat(r))),t&&(r=parseInt(String(r*e),10)/100),Math.abs(r-e)<1e-6?1:(e===360?r=(r<0?r%e+e:r%e)/parseFloat(String(e)):r=r%e/parseFloat(String(e)),r)}function bp(r){return Math.min(1,Math.max(0,r))}function Gve(r){return typeof r=="string"&&r.indexOf(".")!==-1&&parseFloat(r)===1}function qve(r){return typeof r=="string"&&r.indexOf("%")!==-1}function t7(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function $p(r){return Number(r)<=1?`${Number(r)*100}%`:r}function ua(r){return r.length===1?"0"+r:String(r)}function Zve(r,e,t){return{r:or(r,255)*255,g:or(e,255)*255,b:or(t,255)*255}}function Cx(r,e,t){r=or(r,255),e=or(e,255),t=or(t,255);const s=Math.max(r,e,t),n=Math.min(r,e,t);let i=0,a=0;const o=(s+n)/2;if(s===n)a=0,i=0;else{const l=s-n;switch(a=o>.5?l/(2-s-n):l/(s+n),s){case r:i=(e-t)/l+(e<t?6:0);break;case e:i=(t-r)/l+2;break;case t:i=(r-e)/l+4;break}i/=6}return{h:i,s:a,l:o}}function f1(r,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?r+(e-r)*(6*t):t<1/2?e:t<2/3?r+(e-r)*(2/3-t)*6:r}function Yve(r,e,t){let s,n,i;if(
<span style="font-size:${o}px;color:${a};font-weight:400;margin-left:2px">
${b.$filters.formatTimeWithSeconds(y.value[C])}
</span>
`,g=!0),v+=`
<div style="white-space: nowrap;">
${y.marker}
<span style="font-size:${o}px;color:${a};font-weight:400;margin-left:2px">
${b.$filters.prettyCase(y.seriesName)}:
</span>
<span style="float:right;margin-left:20px;font-size:${o}px;color:${a};font-weight:900">
${y.value[x]}${$}
</span>
<div style="clear: both"></div>
</div>
<div style="clear: both"></div>
`)}),v+="</div>",v}},xAxis:{type:"time",boundaryGap:!1,min:f=>f.max-600*1e3,max:"dataMax",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1,formatter:"{value}%"},splitLine:{show:!0,lineStyle:l},axisPointer:{lineStyle:c}},yAxis:{type:"value",min:0,max:f=>f.max<=100?100:f.max,axisLabel:{show:!1,formatter:"{value}%"},splitLine:{show:!0,lineStyle:l}}}},getBaseSeries:()=>r=>({type:"line",smooth:!0,animation:!1,showSymbol:!1,symbol:"emptyCircle",areaStyle:{type:"solid",opacity:.3},lineStyle:{type:"solid",width:1.5,opacity:1},emphasis:{lineStyle:{width:1.5}},...r})},w_e={async reset({commit:r}){r("setReset")},async initTempStore({commit:r,rootGetters:e,rootState:t},s){const n=new Date,i=e["charts/getChartRetention"],a=["temperature_probe","temperature_sensor"];if(s&&Object.keys(s).length===0){r("setChartStore",[]);return}for(const c in s)a.some(u=>c.startsWith(u))&&delete s[c].targets,["temperatures","targets","powers","speeds"].forEach(u=>{const d=s[c][u];if(d&&d.length)if(d.length<i){const p=i-d.length,h=d[0];s[c][u]=[...Array.from({length:p},()=>h),...d]}else s[c][u]=d.splice(d.length-i)});const o=Object.keys(s),l=[];for(let c=0;c<i;c++){const d={date:new Date(n.getTime()-1e3*(i-c)-2e3)};o.forEach(p=>{t.printer.printer[p]&&(d[p]=s[p].temperatures[c],"targets"in s[p]&&(d[`${p}Target`]=s[p].targets[c]),"powers"in s[p]&&(d[`${p}Power`]=s[p].powers[c]),"speeds"in s[p]&&(d[`${p}Speed`]=s[p].speeds[c]))}),l.push(d)}r("setChartStore",l)},initCharts({commit:r},e){r("setInitCharts",e)},saveSelectedLegends({commit:r,state:e},t){XB(e.selectedLegends,t)||(r("setSelectedLegends",t),I.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.charts.name+".selectedLegends",t))}},S_e={setReset(r){const e=i0();Object.keys(r).forEach(t=>{Object.keys(e).includes(t)||delete r[t]}),Object.assign(r,i0())},setInitCharts(r,e){e&&Object.assign(r,e)},setChartStore(r,e){r.chart=e,r.ready=!0},setChartEntry(r,e){r[e.type]||b.set(r,e.type,[]),r[e.type].push(e.data);const t=r[e.type].findIndex(s=>(Date.now()-s.date.valueOf())/1e3<e.retention);t>0&&r[e.type].splice(0,t)},setSelectedLegends(r,e){r.selectedLegends=e}},x_e=!0,C_e={namespaced:x_e,state:b_e,getters:$_e,actions:w_e,mutations:S_e},a0=()=>({consoleCommand:"",consoleEntryCount:0,console:[],gcodeHelp:{},commandHistory:[],autoScroll:!0,lastCleared:0,promptDialog:{open:!1,items:[],footerButtons:[]},consoleFilters:[],consoleFiltersRegexp:[]}),P_e=a0(),A_e=/^(?:ok\s+)?(b|t\d+):\d+\.\d+ \/\d+\.+\d+/i,L_e={getConsoleEntries:(r,e,t)=>{const s=t.config.uiSettings.general.hideTempWaits||!0;return r.console.filter(i=>(!i.time||i.time*1e3>r.lastCleared)&&(!s||!A_e.test(i.message))&&!r.consoleFilters.some((a,o)=>a.enabled&&r.consoleFiltersRegexp[o].test(i.message)))},getFilters:r=>r.consoleFilters,getAllKnownCommands:r=>({TESTZ:"",ABORT:"",ACCEPT:"",ADJUSTED:"",...r.gcodeHelp})};/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:s7,setPrototypeOf:Ox,isFrozen:E_e,getPrototypeOf:O_e,getOwnPropertyDescriptor:T_e}=Object;let{freeze:Pr,seal:Ps,create:n7}=Object,{apply:o0,construct:l0}=typeof Reflect<"u"&&Reflect;Pr||(Pr=function(e){return e});Ps||(Ps=function(e){return e});o0||(o0=function(e,t,s){return e.apply(t,s)});l0||(l0=function(e,t){return new e(...t)});const xp=us(Array.prototype.forEach),Tx=us(Array.prototype.pop),pc=us(Array.prototype.push),Yp=us(String.prototype.toLowerCase),g1=us(String.prototype.toString),kx=us(String.prototype.match),hc=us(String.prototype.replace),k_e=us(String.prototype.indexOf),D_e=us(String.prototype.trim),Is=us(Object.prototype.hasOwnProperty),vr=us(RegExp.prototype.test),fc=M_e(TypeError);function us(r){return function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];return o0(r,e,s)}}function M_e(r){return function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return l0(r,t)}}function Ge(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Yp;Ox&&Ox
`+se),Jn&&xp([k,T,P],de=>{se=hc(se,de," ")}),$&&oo?$.createHTML(se):se},e.setConfig=function(){let we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fo(we),Wl=!0},e.clearConfig=function(){si=null,Wl=!1},e.isValidAttribute=function(we,D,oe){si||fo({});const $e=Rt(we),Xe=Rt(D);return Ud($e,Xe,oe)},e.addHook=function(we,D){typeof D=="function"&&(fe[we]=fe[we]||[],pc(fe[we],D))},e.removeHook=function(we){if(fe[we])return Tx(fe[we])},e.removeHooks=function(we){fe[we]&&(fe[we]=[])},e.removeAllHooks=function(){fe={}},e}var Hx=o7();const Z_e={async reset({commit:r}){r("setReset")},async initConsole({commit:r},e){r("setInitConsole",e)},async onUpdateCommandHistory({state:r,commit:e},t){e("setUpdateCommandHistory",t),I.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.console.name+".commandHistory",r.commandHistory)},async onGcodeScript({dispatch:r},e){e&&e.result&&e.result!=="ok"&&r("onAddConsoleEntry",{message:he.CONSOLE_RECEIVE_PREFIX+e.result})},async onAddConsoleEntry({commit:r,dispatch:e},t){t.message=Hx.sanitize(t.message).replace(/(?:\r\n|\r|\n)/g,"<br />"),(!t.time||t.time<=0)&&(t.time=Date.now()/1e3|0),t.type||(t.type="response"),t.type==="response"&&t.message.startsWith("// action:")&&(t.type="action"),r("setConsoleEntry",t),e("onUpdatePromptDialog",t)},async onGcodeStore({commit:r,dispatch:e},t){if(t&&t.gcode_store){const s=t.gcode_store.map((o,l)=>(o.message=he.CONSOLE_RECEIVE_PREFIX+o.message,o.message=Hx.sanitize(o.message).replace(/(?:\r\n|\r|\n)/g,"<br />"),o.id=l,o.type==="response"&&o.message.startsWith("// action:")&&(o.type="action"),o));r("setAllEntries",s);const n=s.filter(o=>o.type==="action"&&o.message.startsWith("// action:prompt_")),i=mv(n,o=>o.message!=="// action:prompt_end");mv(i,o=>o.message!=="// action:prompt_begin").forEach(o=>e("onUpdatePromptDialog",o))}},async onUpdatePromptDialog({commit:r},e){const t=e.type==="action"&&/^\/\/ action:prompt_([^ ]+)(?: (.+))?/.exec(e.message);if(t){const[,s,n]=t;switch(s){case"begin":r("setResetPromptDialog",n);break;case"text":{r("setPromptDialogItem",{type:"text",text:n});break}case"button":{const[i,a,o]=n.split("|");r("setPromptDialogItem",{type:"button",text:i,command:a,color:o});break}case"footer_button":{const[i,a,o]=n.split("|");r("setPromptDialogFooterButton",{text:i,command:a,color:o});break}case"show":case"end":r("setPromptDialogOpen",s==="show")}}},async onGcodeHelp({commit:r},e){r("setGcodeHelp",e)},async onUpdateAutoScroll({commit:r},e){r("setAutoScroll",e),I.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.console.name+".autoScroll",e)},async onRemoveFilter({commit:r,state:e},t){r("setRemoveFilter",t),I.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.console.name+".consoleFilters",e.consoleFilters)},async onSaveFilter({commit:r,state:e},t){r("setFilter",t),I.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.console.name+".consoleFilters",e.consoleFilters)},async onClear({commit:r,state:e}){r("setLastCleared"),I.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.console.name+".lastCleared",e.lastCleared)}},jx=r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),$1=r=>{switch(r.type){case"starts-with":return new RegExp(`^${jx(r.value)}.*`,"i");case"expression":return new RegExp(r.value);default:return new RegExp(`.*${jx(r.value)}.*`,"i")}},Y_e={setReset(r){Object.assign(r,a0())},setConsoleEntry(r,e){for(e.id===void 0&&(r.consoleEntryCount++,e.id=r.consoleEntryCount);r.console.length>=he.CONSOLE_HISTORY_RETENTION;)r.console.shift();r.console.push(e)},setAllEntries(r,e){r.consoleEntryCount=e.length,r.console=e},setResetPromptDialog(r,e){const{promptDialog:t}=a0();Object.assign(r,{promptDialog:{...t,title:e}})},setPromptDialogItem(r,e){r.promptDialog.items.push(e)},setPromptDialogFooterButton(r,e){r.promptDialog.footerButtons.push(e)},setPromptDialogOpen(r,e){r.promptDialog.open=e},setGcodeHelp(r,e){b.set(r,"gcodeHelp",e)},setInitConsole(r,e){e&&(e.consoleFilters&&(e.consoleFiltersRegexp=e.consoleFilters.map(t=>{if(typeof t.type=="number")switch(t.type){case 1:t.type="starts-with";break;case 2:t.type="expression";break;default:t.type="contains"}return $1(t)})),Object.assign(r,e))},setUpdateCo
`).filter(d=>d.length).map(d=>d.split(",").map(Number)),mesh_params:{algo:c.algo,max_x:+c.max_x,max_y:+c.max_y,mesh_x_pps:+c.mesh_x_pps,mesh_y_pps:+c.mesh_y_pps,min_x:+c.min_x,min_y:+c.min_y,tension:+c.tension,x_count:+c.x_count,y_count:+c.y_count}};n[l]=u}return n},getBedMeshProfiles:(r,e,t)=>{var a,o;const s=[],n=t.printer.printer.bed_mesh,i=n.profiles??e.getLegacyBedMeshProfiles;for(const[l,c]of Object.entries(i)){const u=c.points.flatMap(h=>h),d=Math.min(...u),p=Math.max(...u);s.push({name:l,active:l===n.profile_name,adaptive:!1,range:Math.abs(d-p)})}if(n.profile_name&&!(n.profile_name in i)){const l=Math.min(...((a=n.mesh_matrix)==null?void 0:a.flat())??[0]),c=Math.max(...((o=n.mesh_matrix)==null?void 0:o.flat())??[0]);s.push({name:n.profile_name,active:!0,adaptive:!0,range:c-l})}return s.sort((l,c)=>l.name==="default"?-1:c.name==="default"?1:l.name.localeCompare(c.name))},getCurrentMeshData:(r,e,t)=>{const s=t.printer.printer.bed_mesh;return{mesh_matrix:Pp(s,"mesh_matrix"),probed_matrix:Pp(s,"probed_matrix"),mesh_matrix_flat:Pp(s,"mesh_matrix",!0),probed_matrix_flat:Pp(s,"probed_matrix",!0)}}},x0e={async reset({commit:r}){r("setReset")},async onMatrix({commit:r},e){r("setMatrix",e)},async onScale({commit:r},e){r("setScale",e)},async onBoxScale({commit:r},e){r("setBoxScale",e)},async onWireframe({commit:r},e){r("setWireframe",e)},async onFlatSurface({commit:r},e){r("setFlatSurface",e)}},C0e={setReset(r){Object.assign(r,h7())},setMatrix(r,e){r.matrix=e},setScale(r,e){r.scale=e},setBoxScale(r,e){r.boxScale=e},setWireframe(r,e){r.wireframe=e},setFlatSurface(r,e){r.flatSurface=e}},P0e=!0,A0e={namespaced:P0e,state:w0e,getters:S0e,actions:x0e,mutations:C0e},f7=()=>({notifications:[]}),L0e=f7(),E0e={getNotifications:(r,e)=>{let t=[...r.notifications].sort((s,n)=>n.timestamp-s.timestamp);return t=t.concat(e.getAnnouncementsAsNotifications),[...t.filter(s=>s.type==="error"),...t.filter(s=>s.type!=="error")]},getAnnouncementsAsNotifications:(r,e,t,s)=>s["announcements/getAnnouncements"].map(i=>({id:i.entry_id,type:"announcement",to:i.url,title:i.title,description:i.description,timestamp:i.date,clear:!0,merge:!0}))},O0e={async reset({commit:r}){r("setReset")},async pushNotification({commit:r,state:e},t){const s={id:Rl(),type:"info",timestamp:Date.now()/1e3,clear:!0,merge:!1,...t};if(s.title&&s.title!=="?"&&s.id){const n=e.notifications.findIndex(i=>i.title===t.title);s.merge&&n>=0?r("setMergeNotification",{n:s,i:n}):r("setPushNotification",s),t.snackbar&&mr.$emit(s.title,{type:"error"})}},async clearNotification({commit:r,dispatch:e},t){if(typeof t=="object"&&t.type==="announcement"){e("announcements/dismiss",{entry_id:t.id},{root:!0});return}r("setClearNotification",t)},async clearAll({commit:r,dispatch:e}){r("setClearAllNotifications"),e("announcements/dismissAll",{},{root:!0})}},T0e={setReset(r){Object.assign(r,f7())},setPushNotification(r,e){r.notifications.push(e)},setMergeNotification(r,e){e&&e.n&&e.i>=0&&b.set(r.notifications,e.i,e.n)},setClearNotification(r,e){let t=-1;typeof e=="string"?t=r.notifications.findIndex(s=>s.id===e):t=r.notifications.findIndex(s=>s===e),t>=0&&r.notifications.splice(t,1)},setClearAllNotifications(r){b.set(r,"notifications",[...r.notifications.filter(e=>!e.clear)])}},k0e=!0,D0e={namespaced:k0e,state:L0e,getters:E0e,actions:O0e,mutations:T0e},m7=()=>({entries:[],feeds:[]}),M0e=m7(),R0e={getAnnouncements:r=>r.entries.filter(e=>!e.dismissed)},I0e={async reset({commit:r}){r("setReset")},async init(){I.serverAnnouncementsList()},async onAnnouncementsList({commit:r},e){e&&r("setAnnouncementsList",e)},async onAnnouncementUpdate({commit:r},e){e&&r("setAnnouncementsList",e)},async onAnnouncementDismissed({commit:r},e){e&&r("setAnnouncementDismissed",{entry_id:e.entry_id,dismissed:!0})},async onAnnouncementWake({commit:r},e){e&&r("setAnnouncementDismissed",{entry_id:e.entry_id,dismissed:!1})},async dismiss(r,e){I.serverAnnouncementsDismiss(e.entry_id,e.wake_time)},async dismissAll({state:r}){[...r.entries].forEach(async t=>await I.serverAnnouncementsDismiss(t.entry_id))}},F0e={setReset(r){Object.assig
`),e("socket/setApiConnected",t.apiConnected),[await r("config/initHost",t),await r("config/initLocal",t)]},void(r,e){ye.debug("void action",e)}}});var Bye=Object.defineProperty,Nye=Object.getOwnPropertyDescriptor,Vye=(r,e,t,s)=>{for(var n=s>1?void 0:s?Nye(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Bye(e,t,n),n};const zx=r=>{const e=r.params.categoryId,s=br.getters["macros/getCategories"].findIndex(n=>n.id===e);if(e!=="0"&&s===-1)return{path:"/settings",hash:"macros"}};let c0=class extends b{constructor(){super(...arguments);m(this,"search","");m(this,"categoryId");m(this,"dialogState",{open:!1,macro:null})}get macros(){const t=this.categoryId;return this.$store.getters["macros/getMacrosByCategory"](t).filter(n=>this.search?n.name.includes(this.search.toLowerCase()):!0)}set macros(t){this.$store.dispatch("macros/saveAllOrder",t)}get categories(){return this.$store.getters["macros/getCategories"]}get category(){return this.categoryId!=="0"&&this.categories.find(s=>s.id===this.categoryId)||{id:"0",name:this.$tc("app.general.label.uncategorized")}}beforeRouteEnter(t,s,n){n(zx(t))}beforeRouteUpdate(t,s,n){n(zx(t))}created(){this.search="",this.categoryId=this.$route.params.categoryId}handleBack(){this.$router.go(-1)}handleSettingsDialog(t){this.dialogState.macro=t,this.dialogState.open=!0}handleAllOn(){this.$store.dispatch("macros/saveAllOn",this.macros)}handleAllOff(){this.$store.dispatch("macros/saveAllOff",this.macros)}handleMacroVisible(t,s){const n={...t,visible:s};this.$store.dispatch("macros/saveMacro",n)}};c0=Vye([A({components:{MacroSettingsDialog:nme}})],c0);var zye=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{staticClass:"px-0"},[t(M,{staticClass:"mr-4",attrs:{fab:"",small:"",color:"",exact:""},on:{click:e.handleBack}},[t(S,{attrs:{small:""}},[e._v(" $left ")])],1),e._v(" "+e._s(e.category.name)+" "+e._s(e.$t("app.setting.title.macros"))+" "),t($t),t(ae,{attrs:{clearable:"",outlined:"",dense:"","single-line":"","hide-details":"","append-icon":"$magnify"},model:{value:e.search,callback:function(s){e.search=s},expression:"search"}})],1),t(He,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(H,[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleAllOff}},[e._v(" "+e._s(e.$t("app.setting.label.all_off"))+" ")]),t(M,{staticClass:"ml-2",attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleAllOn}},[e._v(" "+e._s(e.$t("app.setting.label.all_on"))+" ")])],1),t(pm,{attrs:{options:{animation:200,handle:".handle",group:`macro-settings-${e.category.name}`,ghostClass:"ghost"}},model:{value:e.macros,callback:function(s){e.macros=s},expression:"macros"}},e._l(e.macros,function(s){return t("section",{key:s.name},[t(R),t(H,{attrs:{"accent-color":s.color,"r-cols":2},on:{click:function(n){return e.handleSettingsDialog(s)}},scopedSlots:e._u([{key:"title",fn:function(){return[t(S,{staticClass:"handle",attrs:{left:""}},[e._v(" $drag ")]),e._v(" "+e._s(s.name.toUpperCase())+" ")]},proxy:!0},s.config.description&&s.config.description!=="G-Code macro"?{key:"sub-title",fn:function(){return[t("span",{staticClass:"ml-1 mr-2"},[e._v(" "+e._s(s.config.description)+" ")])]},proxy:!0}:null],null,!0)},[t(Ce,{staticClass:"mt-0 pt-0",attrs:{"input-value":s.visible,color:"primary","hide-details":""},on:{click:function(n){n.stopPropagation()},change:function(n){return e.handleMacroVisible(s,n)}}})],1)],1)}),0)],1),e.dialogState.open?t("macro-settings-dialog",{attrs:{macro:e.dialogState.macro},model:{value:e.dialogState.open,callback:function(s){e.$set(e.dialogState,"open",s)},expression:"dialogState.open"}}):e._e()],1)},Uye=[],Wye=E(c0,zye,Uye,!1,null,null);const Gye=Wye.exports;var qye=Object.defineProperty,Zye=Object.getOwnPropertyDescriptor,Yye=(r,e,t,s)=>{for(var n=s>1?void 0:s?Zye(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&qye(e,t,n),n};let u0=class extends b{constructor(){super(...arguments);m(this,"camera",null)}created(){const t=this.$route.params.cameraId,s=this.$store.getters["webcams/getWebcamById"](t);this.c
`).forEach(function(a){n=a.indexOf(":"),t=a.substring(0,n).trim().toLowerCase(),s=a.substring(n+1).trim(),!(!t||e[t]&&l2e[t])&&(t==="set-cookie"?e[t]?e[t].push(s):e[t]=[s]:e[t]=e[t]?e[t]+", "+s:s)}),e},Yx=Symbol("internals");function vc(r){return r&&String(r).trim().toLowerCase()}function Xp(r){return r===!1||r==null?r:W.isArray(r)?r.map(Xp):String(r)}function u2e(r){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=t.exec(r);)e[s[1]]=s[2];return e}const d2e=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function C1(r,e,t,s,n){if(W.isFunction(s))return s.call(this,e,t);if(n&&(e=t),!!W.isString(e)){if(W.isString(s))return e.indexOf(s)!==-1;if(W.isRegExp(s))return s.test(e)}}function p2e(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,s)=>t.toUpperCase()+s)}function h2e(r,e){const t=W.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(r,s+t,{value:function(n,i,a){return this[s].call(this,e,n,i,a)},configurable:!0})})}class Nr{constructor(e){e&&this.set(e)}set(e,t,s){const n=this;function i(o,l,c){const u=vc(l);if(!u)throw new Error("header name must be a non-empty string");const d=W.findKey(n,u);(!d||n[d]===void 0||c===!0||c===void 0&&n[d]!==!1)&&(n[d||l]=Xp(o))}const a=(o,l)=>W.forEach(o,(c,u)=>i(c,u,l));if(W.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(W.isString(e)&&(e=e.trim())&&!d2e(e))a(c2e(e),t);else if(W.isHeaders(e))for(const[o,l]of e.entries())i(l,o,s);else e!=null&&i(t,e,s);return this}get(e,t){if(e=vc(e),e){const s=W.findKey(this,e);if(s){const n=this[s];if(!t)return n;if(t===!0)return u2e(n);if(W.isFunction(t))return t.call(this,n,s);if(W.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=vc(e),e){const s=W.findKey(this,e);return!!(s&&this[s]!==void 0&&(!t||C1(this,this[s],s,t)))}return!1}delete(e,t){const s=this;let n=!1;function i(a){if(a=vc(a),a){const o=W.findKey(s,a);o&&(!t||C1(s,s[o],o,t))&&(delete s[o],n=!0)}}return W.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let s=t.length,n=!1;for(;s--;){const i=t[s];(!e||C1(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){const t=this,s={};return W.forEach(this,(n,i)=>{const a=W.findKey(s,i);if(a){t[a]=Xp(n),delete t[i];return}const o=e?p2e(i):String(i).trim();o!==i&&delete t[i],t[o]=Xp(n),s[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return W.forEach(this,(s,n)=>{s!=null&&s!==!1&&(t[n]=e&&W.isArray(s)?s.join(", "):s)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const s=new this(e);return t.forEach(n=>s.set(n)),s}static accessor(e){const s=(this[Yx]=this[Yx]={accessors:{}}).accessors,n=this.prototype;function i(a){const o=vc(a);s[o]||(h2e(n,a),s[o]=!0)}return W.isArray(e)?e.forEach(i):i(e),this}}Nr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);W.reduceDescriptors(Nr.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(s){this[t]=s}}});W.freezeMethods(Nr);function P1(r,e){const t=this||Td,s=e||t,n=Nr.from(s.headers);let i=s.data;return W.forEach(r,function(o){i=o.call(t,i,n.normalize(),e?e.status:void 0)}),n.normalize(),i}function H7(r){return!!(r&&r.__CANCEL__)}function zl(r,e,t){Ve.call(this,r??"canceled",Ve.ERR_CANCELED,e,t),this.name="CanceledError"}W.inherits(zl,Ve,{__CANCEL__:!0});function j7(r,e,t){const s=t.config.validateStatus;!t.status||!s||s(t.status)?r(t):e(new Ve("Request failed with status code "+t.status,[Ve.ERR_BAD_REQUEST,Ve.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function f2e(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function m2e(r,e){r=r||10;const t=new Array(r),s=new Array(r);let n=0,i=0,a;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),u=s[i];a||(a=c),t[n]=l,s[n]=c;let d=i,p=0;for(;d!==n;)p+=t[d++],d=d%r;if(n=(n+1)%r,n===i&&(i=(i+1)%r),c-a<e)return;const h=u&&c-u;return h?Math.round(p*1e3/h):void 0}}function g2e(r,e){let t=0,s=1e3/e,n,i;const a=(c,u=Date.now())=>{t=u,n=null,i&&(clearTimeout(i),i=null),r.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-t;d>=s?a(c,u):(n=c,i||(i=setTimeout(()=>{i=null,a(n)},s-d)))},()=>n&&a(n)]}const Tf=(r,e,t=3)=>{let s=0;const n=m2e(50,250);return g2e(i=>{const a=i.loaded,o=i.lengthComputable?i.total:void 0,l=a-s,c=n(l),u=a<=o;s=a;const d={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:c||void 0,estimated:c&&o&&u?(o-a)/c:void 0,event:i,lengthComputable:o!=null,[e?"download":"upload"]:!0};r(d)},t)},Kx=(r,e)=>{const t=r!=null;return[s=>e[0]({lengthComputable:t,total:r,loaded:s}),e[1]]},Xx=r=>(...e)=>W.asap(()=>r(...e)),v2e=Ws.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let s;function n(i){let a=i;return e&&(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 s=n(window.location.href),function(a){const o=W.isString(a)?n(a):a;return o.protocol===s.protocol&&o.host===s.host}}():function(){return function(){return!0}}(),_2e=Ws.hasStandardBrowserEnv?{write(r,e,t,s,n,i){const a=[r+"="+encodeURIComponent(e)];W.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),W.isString(s)&&a.push("path="+s),W.isString(n)&&a.push("domain="+n),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(r){const e=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function y2e(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function b2e(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function B7(r,e){return r&&!y2e(e)?b2e(r,e):e}const Jx=r=>r instanceof Nr?{...r}:r;function Ha(r,e){e=e||{};const t={};function s(c,u,d){return W.isPlainObject(c)&&W.isPlainObject(u)?W.merge.call({caseless:d},c,u):W.isPlainObject(u)?W.merge({},u):W.isArray(u)?u.slice():u}function n(c,u,d){if(W.isUndefined(u)){if(!W.isUndefined(c))return s(void 0,c,d)}else return s(c,u,d)}function i(c,u){if(!W.isUndefined(u))return s(void 0,u)}function a(c,u){if(W.isUndefined(u)){if(!W.isUndefined(c))return s(void 0,c)}else return s(void 0,u)}function o(c,u,d){if(d in e)return s(c,u);if(d in r)return s(void 0,c)}const
`+i.map(tC).join(`
`):" "+tC(i[0]):"as no adapter specified";throw new Ve("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s},adapters:g0};function A1(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new zl(null,r)}function rC(r){return A1(r),r.headers=Nr.from(r.headers),r.data=P1.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),U7.getAdapter(r.adapter||Td.adapter)(r).then(function(s){return A1(r),s.data=P1.call(r,r.transformResponse,s),s.headers=Nr.from(s.headers),s},function(s){return H7(s)||(A1(r),s&&s.response&&(s.response.data=P1.call(r,r.transformResponse,s.response),s.response.headers=Nr.from(s.response.headers))),Promise.reject(s)})}const W7="1.7.4",g2={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{g2[r]=function(s){return typeof s===r||"a"+(e<1?"n ":" ")+r}});const sC={};g2.transitional=function(e,t,s){function n(i,a){return"[Axios v"+W7+"] Transitional option '"+i+"'"+a+(s?". "+s:"")}return(i,a,o)=>{if(e===!1)throw new Ve(n(a," has been removed"+(t?" in "+t:"")),Ve.ERR_DEPRECATED);return t&&!sC[a]&&(sC[a]=!0,console.warn(n(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,a,o):!0}};function T2e(r,e,t){if(typeof r!="object")throw new Ve("options must be an object",Ve.ERR_BAD_OPTION_VALUE);const s=Object.keys(r);let n=s.length;for(;n-- >0;){const i=s[n],a=e[i];if(a){const o=r[i],l=o===void 0||a(o,i,r);if(l!==!0)throw new Ve("option "+i+" must be "+l,Ve.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Ve("Unknown option "+i,Ve.ERR_BAD_OPTION)}}const v0={assertOptions:T2e,validators:g2},oi=v0.validators;class va{constructor(e){this.defaults=e,this.interceptors={request:new Zx,response:new Zx}}async request(e,t){try{return await this._request(e,t)}catch(s){if(s instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;const i=n.stack?n.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+i):s.stack=i}catch{}}throw s}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Ha(this.defaults,t);const{transitional:s,paramsSerializer:n,headers:i}=t;s!==void 0&&v0.assertOptions(s,{silentJSONParsing:oi.transitional(oi.boolean),forcedJSONParsing:oi.transitional(oi.boolean),clarifyTimeoutError:oi.transitional(oi.boolean)},!1),n!=null&&(W.isFunction(n)?t.paramsSerializer={serialize:n}:v0.assertOptions(n,{encode:oi.function,serialize:oi.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&W.merge(i.common,i[t.method]);i&&W.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),t.headers=Nr.concat(a,i);const o=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(t)===!1||(l=l&&g.synchronous,o.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,p;if(!l){const f=[rC.bind(this),void 0];for(f.unshift.apply(f,o),f.push.apply(f,c),p=f.length,u=Promise.resolve(t);d<p;)u=u.then(f[d++],f[d++]);return u}p=o.length;let h=t;for(d=0;d<p;){const f=o[d++],g=o[d++];try{h=f(h)}catch(v){g.call(this,v);break}}try{u=rC.call(this,h)}catch(f){return Promise.reject(f)}for(d=0,p=c.length;d<p;)u=u.then(c[d++],c[d++]);return u}getUri(e){e=Ha(this.defaults,e);const t=B7(e.baseURL,e.url);return R7(t,e.params,e.paramsSerializer)}}W.forEach(["delete","get","head","options"],function(e){va.prototype[e]=function(t,s){return this.request(Ha(s||{},{method:e,url:t,data:(s||{}).data}))}});W.forEach(["post","put","patch"],function(e){function t(s){return function(i,a,o){return this.request(Ha(o||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}va.prototype[e]=t(),va.prototype[e+"Form"]=t(!0)});class v2{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const s=this;this.promise.then(n=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](n);s._listeners=null}),this.promise.then=n=>{let i;const a=new Promise(o=>{s.subscribe(o),i=o}).then(n);return a.cancel=function(){s.unsubscribe(i)},a},e(function(i,a,o){s.reason||(s.reason=new zl(i,a,o),t(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new v2(function(n){e=n}),cancel:e}}}function k2e(r){return function(t){return r.apply(null,t)}}function D2e(r){return W.isObject(r)&&r.isAxiosError===!0}const _0={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(_0).forEach(([r,e])=>{_0[e]=r});function G7(r){const e=new va(r),t=S7(va.prototype.request,e);return W.extend(t,v
* vue-meta v2.4.0
* (c) 2020
* - Declan de Wet
* - Sébastien Chopin (@Atinux)
* - Pim (@pimlie)
* - All the amazing contributors
* @license MIT
*/var ewe="2.4.0";function Zc(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zc=function(e){return typeof e}:Zc=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zc(r)}function C0(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function cC(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,s)}return t}function Ms(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?cC(Object(t),!0).forEach(function(s){C0(r,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):cC(Object(t)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(t,s))})}return r}function i9(r){return twe(r)||rwe(r)||a9(r)||swe()}function twe(r){if(Array.isArray(r))return P0(r)}function rwe(r){if(typeof Symbol<"u"&&Symbol.iterator in Object(r))return Array.from(r)}function a9(r,e){if(r){if(typeof r=="string")return P0(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return P0(r,e)}}function P0(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,s=new Array(e);t<e;t++)s[t]=r[t];return s}function swe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nwe(r,e){var t;if(typeof Symbol>"u"||r[Symbol.iterator]==null){if(Array.isArray(r)||(t=a9(r))||e){t&&(r=t);var s=0,n=function(){};return{s:n,n:function(){return s>=r.length?{done:!0}:{done:!1,value:r[s++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,o;return{s:function(){t=r[Symbol.iterator]()},n:function(){var l=t.next();return i=l.done,l},e:function(l){a=!0,o=l},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(a)throw o}}}}function If(r){return Array.isArray(r)}function In(r){return typeof r>"u"}function gg(r){return Zc(r)==="object"}function uC(r){return Zc(r)==="object"&&r!==null}function vg(r){return typeof r=="function"}function iwe(r){return typeof r=="string"}function awe(){try{return!In(window)}catch{return!1}}var owe=awe(),lwe=owe?window:global,L1=lwe.console||{};function Ff(r){!L1||!L1.warn||L1.warn(r)}var o9=function(){return Ff("This vue app/component has no vue-meta configuration")},y2={title:void 0,titleChunk:"",titleTemplate:"%s",htmlAttrs:{},bodyAttrs:{},headAttrs:{},base:[],link:[],meta:[],style:[],script:[],noscript:[],__dangerouslyDisableSanitizers:[],__dangerouslyDisableSanitizersByTagID:{}},Ze="_vueMeta",cwe="metaInfo",uwe="data-vue-meta",dwe="data-vue-meta-server-rendered",pwe="vmid",hwe="template",fwe="content",mwe="ssr",gwe=10,vwe=!0,On={keyName:cwe,attribute:uwe,ssrAttribute:dwe,tagIDKeyName:pwe,contentKeyName:fwe,metaTemplateKeyName:hwe,waitOnDestroyed:vwe,debounceWait:gwe,ssrAppId:mwe},_a=Object.keys(y2),Hf=[_a[12],_a[13]],b2=[_a[1],_a[2],"changed"].concat(Hf),_g=[_a[3],_a[4],_a[5]],_we=["link","style","script"],ywe=["base","meta","link"],bwe=["noscript","script","style"],$we=["innerHTML","cssText","json"],l9=["once","skip","template"],c9=["body","pbody"],kd=["allowfullscreen","amp","amp-boilerplate","async","autofocus","autoplay","checked","compact","controls","declare","default","defaultchecked","defaultmuted","defaultselected","defer","disabled","enabled","formnovalidate","hidden","indeterminate","inert","ismap","itemscope","loop","multiple","muted","nohref","noresize","noshade","novalidate","nowrap","open","pauseonexit","readonly","required","reversed","scoped","seamless","selected","sortable","truespeed","typemustmatch","visible"],E1=null;function _c(r,e,t){var s=r.debounceWait;!e[Ze].initialized&&(e[Ze].initializing||t==="watcher")&&(e[Ze].initialized=null),e[Ze].initialized&&!e[Ze].pausing&&wwe(function(){return void e.$meta().refresh()},s)}function wwe(r,e){if(e=e===void 0?10:e,!e){r();return}return clearTimeout(E1),E1=setTimeout(function(){r()},e),E1}function Swe(r,e,t){if(!Array.prototype.find){for(var s=0;s<r.length;s++)if(e.call(t,r[s],s,r))return r[s];return}return r.find(e,t)}function u9(r,e,t){if(!Array.prototype.findIndex){for(var s=0;s<r.length;s++)if(e.call(t,r[s],s,r))return s;return-1}return r.findIndex(e,t)}function $2(r){return Array.from?Array.from(r):Array.prototype.slice.call(r)}function Vs(r,e){if(!Array.prototype.includes){for(var t in r)if(r[t]===e)return!0;return!1}return r.includes(e)}var w2=function(e,t){return(t||document).querySelectorAll(e)};function Mo(r,e){return r[e]||(r[e]=document.getElementsByTagName(e)[0]),r[e]}function xwe(r){var e=r.body,t=r.pbody;return e?"body":t?"pbody":"head"}function O1(r,e,t){var s=e.appId,n=e.attribute,i=e.type,a=e.tagIDKeyName;t=t||{};var o=["".concat(i,"[").concat(n,'="').concat(s,'"]'),"".concat(i,"[data-").concat(a,"]")].map(function(l){for(var c in t){var u=t[c],d=u&&u!==!0?'="'.concat(u,'"'):"";l+="[data-".concat(c).concat(d,"]")}return l});return $2(w2(o.join(", "),r))}function Cwe(r,e){var t=r.attribute;$2(w2("[".concat(t,'="').concat(e,'"]'))).map(function(s){return s.remove()})}function jf(r,e){r.removeAttribute(e)}function A0(r){return r=r||this,r&&(r[Ze]===!0||gg(r[Ze]))}function Pwe(r){return r=r||this,r&&!In(r[Ze])}function d9(r,e){return r[Ze].pausing=!0,function(){return S2(r)}}function S2(r,e){return r[Ze].pausing=!1,r.$meta().refresh()}function L0(r){var e=r.$router;r[Ze].navGuards||!e||(r[Ze].navGuards=!0,e.beforeEach(function(t,s,n){d9(r),n()}),e.afterEach(function(){r.$nextTick(function(){var t=S2(r),s=t.metaInfo;s&&vg(s.afterNavigation)&&s.afterNavigation(s)})}))}var dC=1;function Awe(r,e){var t=["activated","deactivated","beforeMount"],s=!1;r
`:""):""}function mC(r,e,t,s){var n=r||{},i=n.ssrAppId,a=n.attribute,o=n.tagIDKeyName,l=s||{},c=l.appId,u=l.isSSR,d=u===void 0?!0:u,p=l.body,h=p===void 0?!1:p,f=l.pbody,g=f===void 0?!1:f,v=l.ln,y=v===void 0?!1:v,C=[o].concat(i9(c9));return!t||!t.length?"":t.reduce(function(x,$){if($.skip)return x;var L=Object.keys($);if(L.length===0||!!$.body!==h||!!$.pbody!==g)return x;var G=$.once?"":" ".concat(a,'="').concat(c||(d===!1?"1":i),'"');for(var K in $)if(!($we.includes(K)||l9.includes(K))){if(K==="callback"){G+=' onload="this.__vm_l=1"';continue}var le="";C.includes(K)&&(le="data-");var ue=!le&&kd.includes(K);ue&&!$[K]||(G+=" ".concat(le).concat(K)+(ue?"":'="'.concat($[K],'"')))}var ne="";$.json&&(ne=JSON.stringify($.json));var fe=$.innerHTML||$.cssText||ne,k=!ywe.includes(e),T=k&&bwe.includes(e);return"".concat(x,"<").concat(e).concat(G).concat(!T&&k?"/":"",">")+(T?"".concat(fe,"</").concat(e,">"):"")+(y?`
`:"")},"")}function y9(r,e,t){var s={data:e,extraData:void 0,addInfo:function(l,c){this.extraData=this.extraData||{},this.extraData[l]=c},callInjectors:function(l){var c=this.injectors;return(l.body||l.pbody?"":c.title.text(l))+c.meta.text(l)+c.base.text(l)+c.link.text(l)+c.style.text(l)+c.script.text(l)+c.noscript.text(l)},injectors:{head:function(l){return s.callInjectors(Ms(Ms({},t),{},{ln:l}))},bodyPrepend:function(l){return s.callInjectors(Ms(Ms({},t),{},{ln:l,pbody:!0}))},bodyAppend:function(l){return s.callInjectors(Ms(Ms({},t),{},{ln:l,body:!0}))}}},n=function(l){if(b2.includes(l))return"continue";s.injectors[l]={text:function(u){var d=u===!0;if(u=Ms(Ms({addSsrAttribute:d},t),u),l==="title")return Uwe(r,l,s.data[l],u);if(_g.includes(l)){var p={},h=s.data[l];if(h){var f=u.isSSR===!1?"1":r.ssrAppId;for(var g in h)p[g]=C0({},f,h[g])}if(s.extraData)for(var v in s.extraData){var y=s.extraData[v][l];if(y)for(var C in y)p[C]=Ms(Ms({},p[C]),{},C0({},v,y[C]))}return zwe(r,l,p,u)}var x=mC(r,l,s.data[l],u);if(s.extraData)for(var $ in s.extraData){var L=s.extraData[$][l],G=mC(r,l,L,Ms({appId:$},u));x="".concat(x).concat(G)}return x}}};for(var i in y2)var a=n(i);return s}function Wwe(r,e,t){if(!r[Ze])return o9(),{};var s=f9(e,r),n=C2(e,s,h9,r),i=y9(e,n,t),a=_9();if(a){for(var o in a)i.addInfo(o,a[o]),delete a[o];x2(!0)}return i.injectors}function Gwe(r){r=r||{};var e=this.$root;return{getOptions:function(){return Lwe(r)},setOptions:function(s){var n="refreshOnceOnNavigation";s&&s[n]&&(r.refreshOnceOnNavigation=!!s[n],L0(e));var i="debounceWait";if(s&&i in s){var a=parseInt(s[i]);isNaN(a)||(r.debounceWait=a)}var o="waitOnDestroyed";s&&o in s&&(r.waitOnDestroyed=!!s[o])},refresh:function(){return Vwe(e,r)},inject:function(s){return Wwe(e,r,s)},pause:function(){return d9(e)},resume:function(){return S2(e)},addApp:function(s){return jwe(e,s,r)}}}function qwe(r,e){e=p9(e);var t=C2(e,r,h9),s=y9(e,t);return s.injectors}function Zwe(r,e){r.__vuemeta_installed||(r.__vuemeta_installed=!0,e=p9(e),r.prototype.$meta=function(){return Gwe.call(this,e)},r.mixin(Awe(r,e)))}var Ywe={version:ewe,install:Zwe,generate:function(e,t){return qwe(e,t)},hasMetaInfo:A0},Kwe={render:function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("v-dialog",{attrs:{eager:"",value:"true","max-width":r.width,persistent:r.persistent},on:{input:r.change,keydown:function(s){if(!("button"in s)&&r._k(s.keyCode,"esc",27,s.key,"Escape"))return null;r.choose(!1)}}},[t("v-card",{attrs:{tile:""}},[r.title?t("v-toolbar",{attrs:{dark:"",color:r.color,dense:"",flat:""}},[r.icon?t("v-icon",{attrs:{left:""}},[r._v(r._s(r.icon))]):r._e(),r._v(" "),t("v-toolbar-title",{staticClass:"white--text",domProps:{textContent:r._s(r.title)}})],1):r._e(),r._v(" "),t("v-card-text",{staticClass:"body-1 text-body-1 py-3",domProps:{innerHTML:r._s(r.message)}}),r._v(" "),t("v-card-actions",[t("v-spacer"),r._v(" "),r.buttonFalseText?t("v-btn",{attrs:{color:r.buttonFalseColor,text:r.buttonFalseFlat},on:{click:function(s){r.choose(!1)}}},[r._v(" "+r._s(r.buttonFalseText)+" ")]):r._e(),r._v(" "),r.buttonTrueText?t("v-btn",{attrs:{color:r.buttonTrueColor,text:r.buttonTrueFlat},on:{click:function(s){r.choose(!0)}}},[r._v(" "+r._s(r.buttonTrueText)+" ")]):r._e()],1)],1)],1)},staticRenderFns:[],components:{VCard:He,VCardActions:pd,VCardText:Le,VDialog:Qy,VIcon:S,VToolbar:Gt,VToolbarTitle:md,VSpacer:$t,VBtn:Be},props:{buttonTrueText:{type:String,default:"Yes"},buttonFalseText:{type:String,default:"No"},buttonTrueColor:{type:String,default:"primary"},buttonFalseColor:{type:String,default:"grey"},buttonFalseFlat:{type:Boolean,default:!0},buttonTrueFlat:{type:Boolean,default:!0},color:{type:String,default:"warning"},icon:{type:String,default:function(){return this.$vuetify.icons.values.warning}},message:{type:String,required:!0},persistent:Boolean,title:{type:String},width:{type:Number,default:450}},data:function(){return{value:!1}},mounted:function(){document.addEventListener("keyup",this.onEnterPressed)},destroyed:function(){document.removeEventListener("keyup",this.onEnterPressed)},methods:{on
${c.join(`
`)}`)}return a},{changed:[],deleted:[]}),i=[...s];return n.length>0&&i.push(`# ${this.$t("app.general.msg.pending_configuration_sections_deleted")}
${n.join(`
`)}`),i.join(`
`)}handleSubmit(){this.open=!1,this.$emit("save")}};O9([Fe({type:Boolean})],zf.prototype,"open",2);zf=O9([A({})],zf);var _Ce=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.$t("app.general.title.pending_configuration_changes"),"save-button-text":e.$t("app.general.btn.save_config_and_restart"),"max-width":"600"},on:{save:e.handleSubmit},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,[t(Lm,{staticStyle:{width:"100%","font-family":"monospace","font-size":"1rem","font-weight":"100 !important"},attrs:{readonly:"","auto-grow":"",rows:"1",value:e.saveConfigPendingItems,spellcheck:"false"}})],1)],1)},yCe=[],bCe=E(zf,_Ce,yCe,!1,null,null);const $Ce=bCe.exports;var wCe=Object.defineProperty,SCe=Object.getOwnPropertyDescriptor,xCe=(r,e,t,s)=>{for(var n=s>1?void 0:s?SCe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&wCe(e,t,n),n};let z0=class extends Y(J,Xo,zr,lt){constructor(){super(...arguments);m(this,"menu",!1);m(this,"userPasswordDialogOpen",!1);m(this,"pendingChangesDialogOpen",!1)}get supportsAuth(){return this.$store.getters["server/componentSupport"]("authorization")}get instances(){return this.$store.state.config.instances}get instanceName(){return this.$store.state.config.uiSettings.general.instanceName}get currentFile(){return this.$store.state.printer.printer.print_stats.filename}get hasUpdates(){return this.$store.getters["version/hasUpdates"]}get saveConfigPending(){return this.$store.getters["printer/getSaveConfigPending"]}get saveConfigPendingItems(){return this.$store.getters["printer/getSaveConfigPendingItems"]}get showSaveConfigAndRestartForPendingChanges(){if(!this.showSaveConfigAndRestart||!this.saveConfigPending)return!1;const e=this.sectionsToIgnorePendingConfigurationChanges;return e.length===0||Object.keys(this.saveConfigPendingItems).filter(t=>!e.includes(t)).length>0}get devicePowerComponentEnabled(){return this.$store.getters["server/componentSupport"]("power")}get inLayout(){return this.$store.state.config.layoutMode}get showSaveConfigAndRestart(){return this.$store.state.config.uiSettings.general.showSaveConfigAndRestart}get sectionsToIgnorePendingConfigurationChanges(){return this.$store.state.config.uiSettings.general.sectionsToIgnorePendingConfigurationChanges}get showUploadAndPrint(){return this.$store.state.config.uiSettings.general.showUploadAndPrint}get topNavPowerToggle(){const e=this.$store.state.config.uiSettings.general.topNavPowerToggle;if(!e)return null;const[t,s]=e.split(":");switch(s){case"klipper":{const n=this.$store.getters["printer/getPinByName"](t);return{type:s,name:(n==null?void 0:n.prettyName)??t,device:n}}default:{const n=this.$store.getters["power/getDeviceByName"](e);return{type:"moonraker",name:e,device:n}}}}get topNavPowerDeviceOn(){const{type:e,device:t}=this.topNavPowerToggle||{};if(!t)return!1;switch(e){case"moonraker":return t.status==="on";case"klipper":return t.value!==0}return!1}get topNavPowerDeviceDisabled(){const{type:e,device:t}=this.topNavPowerToggle||{};if(!t)return!0;switch(e){case"moonraker":return this.printerPrinting&&t.locked_while_printing||["init","error"].includes(t.status)||!this.devicePowerComponentEnabled;case"klipper":return!this.klippyReady}return!0}get enableKeyboardShortcuts(){return this.$store.state.config.uiSettings.general.enableKeyboardShortcuts}handleExitLayout(){this.$store.commit("config/setLayoutMode",!1)}get isDashboard(){return this.$route.path==="/"}handleResetLayout(){const t={"/diagnostics":"diagnostics"}[this.$route.path];let s;t?s=Ra().layouts[t]:s=this.$store.getters["layout/getLayout"]("dashboard");const n=t??this.$store.getters["layout/getSpecificLayoutName"];this.$store.dispatch("layout/onLayoutChange",{name:n,value:s})}handleSetDefaultLayout(){const e=this.$store.getters["layout/getSpecificLayoutName"];this.$store.dispatch("layout/onLayoutChange",{name:"dashboard",value:this.$store.getters["layout/getLayout"](e)})}handleResetDefaultLayout(){this.$store.dispatch("layout/onLayoutChange",{name:"dashboard",value:Ra().layouts.dashboard
`));const c=this.$store.getters["macros/getMacroByName"](this.targetMacro.toLowerCase());c!=null&&c.variables.active&&await I.serverSpoolmanPostSpoolId(this.selectedSpool??void 0),this.open=!1;return}const t=this.availableSpools.find(o=>o.id===this.selectedSpool);if(t&&this.currentFileName&&(this.warnOnFilamentTypeMismatch||this.warnOnNotEnoughFilament)&&this.currentFile&&(this.filename||!["complete","cancelled"].includes(this.printerState))){if(this.warnOnFilamentTypeMismatch){const l=(s=this.currentFile.filament_type)==null?void 0:s.toLowerCase().split(";").map(u=>u.replace(/"/g,"")),c=(n=t.filament.material)==null?void 0:n.toLowerCase();if(c&&l&&!l.includes(c)&&!await this.$confirm(this.$tc("app.spoolman.msg.mismatched_filament"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$warning"}))return}let o=(i=this.currentFile)==null?void 0:i.filament_total;if(o&&["printing","paused"].includes(this.printerState)&&(o-=((a=this.$store.state.printer.printer.print_stats)==null?void 0:a.filament_used)??0,o=Math.max(o,0)),!o&&!await this.$confirm(this.$tc("app.spoolman.msg.no_required_length"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$warning"}))return;if(this.warnOnNotEnoughFilament){let l=t.remaining_length;if(!l&&t.remaining_weight&&(l=this.$filters.convertFilamentWeightToLength(t.remaining_weight,t.filament.density,t.filament.diameter)),typeof l=="number"&&o>=l&&!await this.$confirm(this.$tc("app.spoolman.msg.no_filament"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$warning"}))return}}await I.serverSpoolmanPostSpoolId(this.selectedSpool??void 0),this.filename&&(await I.printerPrintStart(this.filename),this.$router.currentRoute.path!=="/"&&this.$router.push({path:"/"})),this.open=!1}filterResults(t,s,n){var i;return s=s.toLowerCase(),[n.id,n.comment,n.filament.name,n.filament.material,(i=n.filament.vendor)==null?void 0:i.name].some(a=>a==null?void 0:a.toString().toLowerCase().includes(s))}get spoolmanURL(){var t;return(t=this.$store.state.server.config.spoolman)==null?void 0:t.server}get preferDeviceCamera(){return this.$store.state.config.uiSettings.spoolman.preferDeviceCamera}get autoOpenQRDetectionCamera(){return this.$store.state.config.uiSettings.spoolman.autoOpenQRDetectionCamera}get autoSelectSpoolOnMatch(){return this.$store.state.config.uiSettings.spoolman.autoSelectSpoolOnMatch}get warnOnNotEnoughFilament(){return this.$store.state.config.uiSettings.spoolman.warnOnNotEnoughFilament}get warnOnFilamentTypeMismatch(){return this.$store.state.config.uiSettings.spoolman.warnOnFilamentTypeMismatch}get sortOrder(){return this.$store.state.config.uiSettings.spoolman.selectionDialogSortOrder}handleSortOrderKeyChange(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.selectionDialogSortOrder.key",value:t??null,server:!0})}handleSortOrderDescChange(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.selectionDialogSortOrder.desc",value:t??null,server:!0})}};M9([Ae("open")],qf.prototype,"onOpen",1);qf=M9([A({components:{QRReader:v5e}})],qf);var b5e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{scrollable:"","max-width":e.isMobileViewport?"90vw":"75vw",title:e.$tc("app.spoolman.title.spool_selection",e.targetMacro?2:1,{macro:e.targetMacro}),"title-shadow":""},scopedSlots:e._u([{key:"menu",fn:function(){return[e.availableCameras.length>1?t(Dt,{attrs:{left:"","offset-y":"",transition:"slide-y-transition"},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n,value:i}){return[t(M,e._g(e._b({staticClass:"ms-1 my-1",attrs:{small:""}},"app-btn",n,!1),s),[t(S,{staticClass:"mr-1",attrs:{small:""}},[e._v(" $camera ")]),e._v(" "+e._s(e.$t("app.spoolman.btn.scan_code"))+" "),t(S,{staticClass:"ml-1",class:{"rotate-180":i},attrs:{small:""}},[e._v(" $chevronDown ")])],1)]}}],null,!1,1046628065)},[t(Mt,{attrs:{dense:""}},e._l(e.availableCameras,function(s){return t(Se,{key:s.uid,on:{click:function(n){e.cameraScanSource=s.uid}}},[t(qe,[t(S,[e._v(" $camera ")])],1),t(Ee,[t(xe,[e._v(" "+e._