mirror of
https://github.com/QIDITECH/QIDI_PLUS4.git
synced 2026-01-30 23:48:44 +03:00
274 lines
1.6 MiB
274 lines
1.6 MiB
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.indexOf("android")>0;var tA=$s&&/iphone|ipad|ipod|ios/.test($s),I2=$s&&$s.match(/firefox\/(\d+)/),R1={}.watch,OC=!1;if(Wr)try{var F2={};Object.defineProperty(F2,"passive",{get:function(){OC=!0}}),window.addEventListener("test-passive",null,F2)}catch{}var Gd,Ri=function(){return Gd===void 0&&(!Wr&&typeof global<"u"?Gd=global.process&&j9.VUE_ENV==="server":Gd=!1),Gd},th=Wr&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Ro(r){return typeof r=="function"&&/native code/.test(r.toString())}var Gu=typeof Symbol<"u"&&Ro(Symbol)&&typeof Reflect<"u"&&Ro(Reflect.ownKeys),Kc;typeof Set<"u"&&Ro(Set)?Kc=Set:Kc=function(){function r(){this.set=Object.create(null)}return r.prototype.has=function(e){return this.set[e]===!0},r.prototype.add=function(e){this.set[e]=!0},r.prototype.clear=function(){this.set=Object.create(null)},r}();var Ot=null;function rA(){return Ot&&{proxy:Ot}}function Si(r){r===void 0&&(r=null),r||Ot&&Ot._scope.off(),Ot=r,r&&r._scope.on()}var ns=function(){function r(e,t,s,n,i,a,o,l){this.tag=e,this.data=t,this.children=s,this.text=n,this.elm=i,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=l,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(r.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),r}(),pa=function(r){r===void 0&&(r="");var e=new ns;return e.text=r,e.isComment=!0,e};function Ao(r){return new ns(void 0,void 0,void 0,String(r))}function I1(r){var e=new ns(r.tag,r.data,r.children&&r.children.slice(),r.text,r.elm,r.context,r.componentOptions,r.asyncFactory);return e.ns=r.ns,e.isStatic=r.isStatic,e.key=r.key,e.isComment=r.isComment,e.fnContext=r.fnContext,e.fnOptions=r.fnOptions,e.fnScopeId=r.fnScopeId,e.asyncMeta=r.asyncMeta,e.isCloned=!0,e}var sA=0,Ap=[],nA=function(){for(var r=0;r<Ap.length;r++){var e=Ap[r];e.subs=e.subs.filter(function(t){return t}),e._pending=!1}Ap.length=0},gn=function(){function r(){this._pending=!1,this.id=sA++,this.subs=[]}return r.prototype.addSub=function(e){this.subs.push(e)},r.prototype.removeSub=function(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,Ap.push(this))},r.prototype.depend=function(e){r.target&&r.target.addDep(this)},r.prototype.notify=function(e){for(var t=this.subs.filter(function(a){return a}),s=0,n=t.length;s<n;s++){var i=t[s];i.update()}},r}();gn.target=null;var Lp=[];function _l(r){Lp.push(r),gn.target=r}function yl(){Lp.pop(),gn.target=Lp[Lp.length-1]}var TC=Array.prototype,rh=Object.create(TC),iA=["push","pop","shift","unshift","splice","sort","reverse"];iA.forEach(function(r){var e=TC[r];It(rh,r,function(){for(var s=[],n=0;n<arguments.length;n++)s[n]=arguments[n];var i=e.apply(this,s),a=this.__ob__,o;switch(r){case"push":case"unshift":o=s;break;case"splice":o=s.slice(2);break}return o&&a.observeArray(o),a.dep.notify(),i})});var H2=Object.getOwnPropertyNames(rh),kC={},q0=!0;function xi(r){q0=r}var aA={notify:bt,depend:bt,addSub:bt,removeSub:bt},j2=function(){function r(e,t,s){if(t===void 0&&(t=!1),s===void 0&&(s=!1),this.value=e,this.shallow=t,this.mock=s,this.dep=s?aA:new gn,this.vmCount=0,It(e,"__ob__",this),ze(e)){if(!s)if(eA)e.__proto__=rh;else for(var n=0,i=H2.length;n<i;n++){var a=H2[n];It(e,a,rh[a])}t||this.observeArray(e)}else for(var o=Object.keys(e),n=0;n<o.length;n++){var a=o[n];Ci(e,a,kC,void 0,t,s)}}return r.prototype.observeArray=function(e){for(var t=0,s=e.length;t<s;t++)Fn(e[t],!1,this.mock)},r}();function Fn(r,e,t){if(r&&Sr(r,"__ob__")&&r.__ob__ instanceof j2)return r.__ob__;if(q0&&(t||!Ri())&&(ze(r)||Cr(r))&&Object.isExtensible(r)&&!r.__v_skip&&!ar(r)&&!(r instanceof ns))return new j2(r,e,t)}function Ci(r,e,t,s,n,i,a){a===void 0&&(a=!1);var o=new gn,l=Object.getOwnPropertyDescriptor(r,e);if(!(l&&l.configurable===!1)){var c=l&&l.get,u=l&&l.set;(!c||u)&&(t===kC||arguments.length===2)&&(t=r[e]);var d=n?t&&t.__ob__:Fn(t,!1,i);return Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:function(){var h=c?c.call(r):t;return gn.target&&(o.depend(),d&&(d.dep.depend(),ze(h)&&DC(h))),ar(h)&&!n?h.value:h},set:function(h){var f=c?c.call(r):t;if(M1(f,h)){if(u)u.call(r,h);else{if(c)return;if(!n&&ar(f)&&!ar(h)){f.value=h;return}else t=h}d=n?h&&h.__ob__:Fn(h,!1,i),o.notify()}}}),o}}function Yf(r,e,t){if(!Va(r)){var s=r.__ob__;return ze(r)&&wC(e)?(r.length=Math.max(r.length,e),r.splice(e,1,t),s&&!s.shallow&&s.mock&&Fn(t,!1,!0),t):e in r&&!(e in Object.prototype)?(r[e]=t,t):r._isVue||s&&s.vmCount?t:s?(Ci(s.value,e,t,void 0,s.shallow,s.mock),s.dep.notify(),t):(r[e]=t,t)}}function Z0(r,e){if(ze(r)&&wC(e)){r.splice(e,1);return}var t=r.__ob__;r._isVue||t&&t.vmCount||Va(r)||Sr(r,e)&&(delete r[e],t&&t.dep.notify())}function DC(r){for(var e=void 0,t=0,s=r.length;t<s;t++)e=r[t],e&&e.__ob__&&e.__ob__.dep.depend(),ze(e)&&DC(e)}function oA(r){return MC(r,!1),r}function Y0(r){return MC(r,!0),It(r,"__v_isShallow",!0),r}function MC(r,e){Va(r)||Fn(r,e,Ri())}function ha(r){return Va(r)?ha(r.__v_raw):!!(r&&r.__ob__)}function sh(r){return!!(r&&r.__v_isShallow)}function Va(r){return!!(r&&r.__v_isReadonly)}function lA(r){return ha(r)||Va(r)}function RC(r){var e=r&&r.__v_raw;return e?RC(e):r}function cA(r){return Object.isExtensible(r)&&It(r,"__v_skip",!0),r}var qu="__v_isRef";function ar(r){return!!(r&&r.__v_isRef===!0)}function uA(r){return IC(r,!1)}function dA(r){return IC(r,!0)}function IC(r,e){if(ar(r))return r;var t={};return It(t,qu,!0),It(t,"__v_isShallow",e),It(t,"dep",Ci(t,"value",r,null,e,Ri())),t}function pA(r){r.dep&&r.dep.notify()}function hA(r){return ar(r)?r.value:r}function fA(r){if(ha(r))return r;for(var e={},t=Object.keys(r),s=0;s<t.length;s++)nh(e,r,t[s]);return e}function nh(r,e,t){Object.defineProperty(r,t,{enumerable:!0,configurable:!0,get:function(){var s=e[t];if(ar(s))return s.value;var n=s&&s.__ob__;return n&&n.dep.depend(),s},set:function(s){var n=e[t];ar(n)&&!ar(s)?n.value=s:e[t]=s}})}function mA(r){var e=new gn,t=r(function(){e.depend()},function(){e.notify()}),s=t.get,n=t.set,i={get value(){return s()},set value(a){n(a)}};return It(i,qu,!0),i}function gA(r){var e=ze(r)?new Array(r.length):{};for(var t in r)e[t]=FC(r,t);return e}function FC(r,e,t){var s=r[e];if(ar(s))return s;var n={get value(){var i=r[e];return i===void 0?t:i},set value(i){r[e]=i}};return It(n,qu,!0),n}var vA="__v_rawToReadonly",_A="__v_rawToShallowReadonly";function HC(r){return jC(r,!1)}function jC(r,e){if(!Cr(r)||Va(r))return r;var t=e?_A:vA,s=r[t];if(s)return s;var n=Object.create(Object.getPrototypeOf(r));It(r,t,n),It(n,"__v_isReadonly",!0),It(n,"__v_raw",r),ar(r)&&It(n,qu,!0),(e||sh(r))&&It(n,"__v_isShallow",!0);for(var i=Object.keys(r),a=0;a<i.length;a++)yA(n,r,i[a],e);return n}function yA(r,e,t,s){Object.defineProperty(r,t,{enumerable:!0,configurable:!0,get:function(){var n=e[t];return s||!Cr(n)?n:HC(n)},set:function(){}})}function bA(r){return jC(r,!0)}function $A(r,e){var t,s,n=ot(r);n?(t=r,s=bt):(t=r.get,s=r.set);var i=Ri()?null:new Zu(Ot,t,bt,{lazy:!0}),a={effect:i,get value(){return i?(i.dirty&&i.evaluate(),gn.target&&i.depend(),i.value):t()},set value(o){s(o)}};return It(a,qu,!0),It(a,"__v_isReadonly",n),a}var Kf="watcher",B2="".concat(Kf," callback"),N2="".concat(Kf," getter"),wA="".concat(Kf," cleanup");function SA(r,e){return Xf(r,null,e)}function BC(r,e){return Xf(r,null,{flush:"post"})}function xA(r,e){return Xf(r,null,{flush:"sync"})}var V2={};function CA(r,e,t){return Xf(r,e,t)}function Xf(r,e,t){var s=t===void 0?pr:t,n=s.immediate,i=s.deep,a=s.flush,o=a===void 0?"pre":a;s.onTrack,s.onTrigger;var l=Ot,c=function(C,x,$){$===void 0&&($=null);var L=Hn(C,null,$,l,x);return i&&L&&L.__ob__&&L.__ob__.dep.depend(),L},u,d=!1,p=!1;if(ar(r)?(u=function(){return r.value},d=sh(r)):ha(r)?(u=function(){return r.__ob__.dep.depend(),r},i=!0):ze(r)?(p=!0,d=r.some(function(C){return ha(C)||sh(C)}),u=function(){return r.map(function(C){if(ar(C))return C.value;if(ha(C))return C.__ob__.dep.depend(),Bo(C);if(ot(C))return c(C,N2)})}):ot(r)?e?u=function(){return c(r,N2)}:u=function(){if(!(l&&l._isDestroyed))return f&&f(),c(r,Kf,[g])}:u=bt,e&&i){var h=u;u=function(){return Bo(h())}}var f,g=function(C){f=v.onStop=function(){c(C,wA)}};if(Ri())return g=bt,e?n&&c(e,B2,[u(),p?[]:void 0,g]):u(),bt;var v=new Zu(Ot,u,bt,{lazy:!0});v.noRecurse=!e;var y=p?[]:V2;return v.run=function(){if(v.active)if(e){var C=v.get();(i||d||(p?C.some(function(x,$){return M1(x,y[$])}):M1(C,y)))&&(f&&f(),c(e,B2,[C,y===V2?void 0:y,g]),y=C)}else v.get()},o==="sync"?v.update=v.run:o==="post"?(v.post=!0,v.update=function(){return z1(v)}):v.update=function(){if(l&&l===Ot&&!l._isMounted){var C=l._preWatchers||(l._preWatchers=[]);C.indexOf(v)<0&&C.push(v)}else z1(v)},e?n?v.run():y=v.get():o==="post"&&l?l.$once("hook:mounted",function(){return v.get()}):v.get(),function(){v.teardown()}}var dr,K0=function(){function r(e){e===void 0&&(e=!1),this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=dr,!e&&dr&&(this.index=(dr.scopes||(dr.scopes=[])).push(this)-1)}return r.prototype.run=function(e){if(this.active){var t=dr;try{return dr=this,e()}finally{dr=t}}},r.prototype.on=function(){dr=this},r.prototype.off=function(){dr=this.parent},r.prototype.stop=function(e){if(this.active){var t=void 0,s=void 0;for(t=0,s=this.effects.length;t<s;t++)this.effects[t].teardown();for(t=0,s=this.cleanups.length;t<s;t++)this.cleanups[t]();if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){var n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0,this.active=!1}},r}();function PA(r){return new K0(r)}function AA(r,e){e===void 0&&(e=dr),e&&e.active&&e.effects.push(r)}function NC(){return dr}function LA(r){dr&&dr.cleanups.push(r)}function EA(r,e){Ot&&(VC(Ot)[r]=e)}function VC(r){var e=r._provided,t=r.$parent&&r.$parent._provided;return t===e?r._provided=Object.create(t):e}function OA(r,e,t){t===void 0&&(t=!1);var s=Ot;if(s){var n=s.$parent&&s.$parent._provided;if(n&&r in n)return n[r];if(arguments.length>1)return t&&ot(e)?e.call(s):e}}var z2=Na(function(r){var e=r.charAt(0)==="&";r=e?r.slice(1):r;var t=r.charAt(0)==="~";r=t?r.slice(1):r;var s=r.charAt(0)==="!";return r=s?r.slice(1):r,{name:r,once:t,capture:s,passive:e}});function F1(r,e){function t(){var s=t.fns;if(ze(s))for(var n=s.slice(),i=0;i<n.length;i++)Hn(n[i],null,arguments,e,"v-on handler");else return Hn(s,null,arguments,e,"v-on handler")}return t.fns=r,t}function zC(r,e,t,s,n,i){var a,o,l,c;for(a in r)o=r[a],l=e[a],c=z2(a),Ie(o)||(Ie(l)?(Ie(o.fns)&&(o=r[a]=F1(o,i)),xt(c.once)&&(o=r[a]=n(c.name,o,c.capture)),t(c.name,o,c.capture,c.passive,c.params)):o!==l&&(l.fns=o,r[a]=l));for(a in e)Ie(r[a])&&(c=z2(a),s(c.name,e[a],c.capture))}function pi(r,e,t){r instanceof ns&&(r=r.data.hook||(r.data.hook={}));var s,n=r[e];function i(){t.apply(this,arguments),Mi(s.fns,i)}Ie(n)?s=F1([i]):z(n.fns)&&xt(n.merged)?(s=n,s.fns.push(i)):s=F1([n,i]),s.merged=!0,r[e]=s}function TA(r,e,t){var s=e.options.props;if(!Ie(s)){var n={},i=r.attrs,a=r.props;if(z(i)||z(a))for(var o in s){var l=Wu(o);U2(n,a,o,l,!0)||U2(n,i,o,l,!1)}return n}}function U2(r,e,t,s,n){if(z(e)){if(Sr(e,t))return r[t]=e[t],n||delete e[t],!0;if(Sr(e,s))return r[t]=e[s],n||delete e[s],!0}return!1}function kA(r){for(var e=0;e<r.length;e++)if(ze(r[e]))return Array.prototype.concat.apply([],r);return r}function X0(r){return Uu(r)?[Ao(r)]:ze(r)?UC(r):void 0}function tc(r){return z(r)&&z(r.text)&&B9(r.isComment)}function UC(r,e){var t=[],s,n,i,a;for(s=0;s<r.length;s++)n=r[s],!(Ie(n)||typeof n=="boolean")&&(i=t.length-1,a=t[i],ze(n)?n.length>0&&(n=UC(n,"".concat(e||"","_").concat(s)),tc(n[0])&&tc(a)&&(t[i]=Ao(a.text+n[0].text),n.shift()),t.push.apply(t,n)):Uu(n)?tc(a)?t[i]=Ao(a.text+n):n!==""&&t.push(Ao(n)):tc(n)&&tc(a)?t[i]=Ao(a.text+n.text):(xt(r._isVList)&&z(n.tag)&&Ie(n.key)&&z(e)&&(n.key="__vlist".concat(e,"_").concat(s,"__")),t.push(n)));return t}function DA(r,e){var t=null,s,n,i,a;if(ze(r)||typeof r=="string")for(t=new Array(r.length),s=0,n=r.length;s<n;s++)t[s]=e(r[s],s);else if(typeof r=="number")for(t=new Array(r),s=0;s<r;s++)t[s]=e(s+1,s);else if(gr(r))if(Gu&&r[Symbol.iterator]){t=[];for(var o=r[Symbol.iterator](),l=o.next();!l.done;)t.push(e(l.value,t.length)),l=o.next()}else for(i=Object.keys(r),t=new Array(i.length),s=0,n=i.length;s<n;s++)a=i[s],t[s]=e(r[a],a,s);return z(t)||(t=[]),t._isVList=!0,t}function MA(r,e,t,s){var n=this.$scopedSlots[r],i;n?(t=t||{},s&&(t=mt(mt({},s),t)),i=n(t)||(ot(e)?e():e)):i=this.$slots[r]||(ot(e)?e():e);var a=t&&t.slot;return a?this.$createElement("template",{slot:a},i):i}function RA(r){return lh(this.$options,"filters",r)||CC}function W2(r,e){return ze(r)?r.indexOf(e)===-1:r!==e}function IA(r,e,t,s,n){var i=ys.keyCodes[e]||t;return n&&s&&!ys.keyCodes[e]?W2(n,s):i?W2(i,r):s?Wu(s)!==e:r===void 0}function FA(r,e,t,s,n){if(t&&gr(t)){ze(t)&&(t=xC(t));var i=void 0,a=function(l){if(l==="class"||l==="style"||U9(l))i=r;else{var c=r.attrs&&r.attrs.type;i=s||ys.mustUseProp(e,c,l)?r.domProps||(r.domProps={}):r.attrs||(r.attrs={})}var u=ya(l),d=Wu(l);if(!(u in i)&&!(d in i)&&(i[l]=t[l],n)){var p=r.on||(r.on={});p["update:".concat(l)]=function(h){t[l]=h}}};for(var o in t)a(o)}return r}function HA(r,e){var t=this._staticTrees||(this._staticTrees=[]),s=t[r];return s&&!e||(s=t[r]=this.$options.staticRenderFns[r].call(this._renderProxy,this._c,this),WC(s,"__static__".concat(r),!1)),s}function jA(r,e,t){return WC(r,"__once__".concat(e).concat(t?"_".concat(t):""),!0),r}function WC(r,e,t){if(ze(r))for(var s=0;s<r.length;s++)r[s]&&typeof r[s]!="string"&&G2(r[s],"".concat(e,"_").concat(s),t);else G2(r,e,t)}function G2(r,e,t){r.isStatic=!0,r.key=e,r.isOnce=t}function BA(r,e){if(e&&Cr(e)){var t=r.on=r.on?mt({},r.on):{};for(var s in e){var n=t[s],i=e[s];t[s]=n?[].concat(n,i):i}}return r}function GC(r,e,t,s){e=e||{$stable:!t};for(var n=0;n<r.length;n++){var i=r[n];ze(i)?GC(i,e,t):i&&(i.proxy&&(i.fn.proxy=!0),e[i.key]=i.fn)}return s&&(e.$key=s),e}function NA(r,e){for(var t=0;t<e.length;t+=2){var s=e[t];typeof s=="string"&&s&&(r[e[t]]=e[t+1])}return r}function VA(r,e){return typeof r=="string"?e+r:r}function qC(r){r._o=jA,r._n=Yc,r._s=V9,r._l=DA,r._t=MA,r._q=ba,r._i=PC,r._m=HA,r._f=RA,r._k=IA,r._b=FA,r._v=Ao,r._e=pa,r._u=GC,r._g=BA,r._d=NA,r._p=VA}function J0(r,e){if(!r||!r.length)return{};for(var t={},s=0,n=r.length;s<n;s++){var i=r[s],a=i.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,(i.context===e||i.fnContext===e)&&a&&a.slot!=null){var o=a.slot,l=t[o]||(t[o]=[]);i.tag==="template"?l.push.apply(l,i.children||[]):l.push(i)}else(t.default||(t.default=[])).push(i)}for(var c in t)t[c].every(zA)&&delete t[c];return t}function zA(r){return r.isComment&&!r.asyncFactory||r.text===" "}function Xc(r){return r.isComment&&r.asyncFactory}function Oc(r,e,t,s){var n,i=Object.keys(t).length>0,a=e?!!e.$stable:!i,o=e&&e.$key;if(!e)n={};else{if(e._normalized)return e._normalized;if(a&&s&&s!==pr&&o===s.$key&&!i&&!s.$hasNormal)return s;n={};for(var l in e)e[l]&&l[0]!=="$"&&(n[l]=UA(r,t,l,e[l]))}for(var c in t)c in n||(n[c]=WA(t,c));return e&&Object.isExtensible(e)&&(e._normalized=n),It(n,"$stable",a),It(n,"$key",o),It(n,"$hasNormal",i),n}function UA(r,e,t,s){var n=function(){var i=Ot;Si(r);var a=arguments.length?s.apply(null,arguments):s({});a=a&&typeof a=="object"&&!ze(a)?[a]:X0(a);var o=a&&a[0];return Si(i),a&&(!o||a.length===1&&o.isComment&&!Xc(o))?void 0:a};return s.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function WA(r,e){return function(){return r[e]}}function GA(r){var e=r.$options,t=e.setup;if(t){var s=r._setupContext=ZC(r);Si(r),_l();var n=Hn(t,null,[r._props||Y0({}),s],r,"setup");if(yl(),Si(),ot(n))e.render=n;else if(gr(n))if(r._setupState=n,n.__sfc){var a=r._setupProxy={};for(var i in n)i!=="__sfc"&&nh(a,n,i)}else for(var i in n)LC(i)||nh(r,n,i)}}function ZC(r){return{get attrs(){if(!r._attrsProxy){var e=r._attrsProxy={};It(e,"_v_attr_proxy",!0),ih(e,r.$attrs,pr,r,"$attrs")}return r._attrsProxy},get listeners(){if(!r._listenersProxy){var e=r._listenersProxy={};ih(e,r.$listeners,pr,r,"$listeners")}return r._listenersProxy},get slots(){return ZA(r)},emit:SC(r.$emit,r),expose:function(e){e&&Object.keys(e).forEach(function(t){return nh(r,e,t)})}}}function ih(r,e,t,s,n){var i=!1;for(var a in e)a in r?e[a]!==t[a]&&(i=!0):(i=!0,qA(r,a,s,n));for(var a in r)a in e||(i=!0,delete r[a]);return i}function qA(r,e,t,s){Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:function(){return t[s][e]}})}function ZA(r){return r._slotsProxy||YC(r._slotsProxy={},r.$scopedSlots),r._slotsProxy}function YC(r,e){for(var t in e)r[t]=e[t];for(var t in r)t in e||delete r[t]}function YA(){return Q0().slots}function KA(){return Q0().attrs}function XA(){return Q0().listeners}function Q0(){var r=Ot;return r._setupContext||(r._setupContext=ZC(r))}function JA(r,e){var t=ze(r)?r.reduce(function(i,a){return i[a]={},i},{}):r;for(var s in e){var n=t[s];n?ze(n)||ot(n)?t[s]={type:n,default:e[s]}:n.default=e[s]:n===null&&(t[s]={default:e[s]})}return t}function QA(r){r._vnode=null,r._staticTrees=null;var e=r.$options,t=r.$vnode=e._parentVnode,s=t&&t.context;r.$slots=J0(e._renderChildren,s),r.$scopedSlots=t?Oc(r.$parent,t.data.scopedSlots,r.$slots):pr,r._c=function(i,a,o,l){return Jc(r,i,a,o,l,!1)},r.$createElement=function(i,a,o,l){return Jc(r,i,a,o,l,!0)};var n=t&&t.data;Ci(r,"$attrs",n&&n.attrs||pr,null,!0),Ci(r,"$listeners",e._parentListeners||pr,null,!0)}var Ep=null;function eL(r){qC(r.prototype),r.prototype.$nextTick=function(e){return Jf(e,this)},r.prototype._render=function(){var e=this,t=e.$options,s=t.render,n=t._parentVnode;n&&e._isMounted&&(e.$scopedSlots=Oc(e.$parent,n.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&YC(e._slotsProxy,e.$scopedSlots)),e.$vnode=n;var i=Ot,a=Ep,o;try{Si(e),Ep=e,o=s.call(e._renderProxy,e.$createElement)}catch(l){$a(l,e,"render"),o=e._vnode}finally{Ep=a,Si(i)}return ze(o)&&o.length===1&&(o=o[0]),o instanceof ns||(o=pa()),o.parent=n,o}}function wg(r,e){return(r.__esModule||Gu&&r[Symbol.toStringTag]==="Module")&&(r=r.default),gr(r)?e.extend(r):r}function tL(r,e,t,s,n){var i=pa();return i.asyncFactory=r,i.asyncMeta={data:e,context:t,children:s,tag:n},i}function rL(r,e){if(xt(r.error)&&z(r.errorComp))return r.errorComp;if(z(r.resolved))return r.resolved;var t=Ep;if(t&&z(r.owners)&&r.owners.indexOf(t)===-1&&r.owners.push(t),xt(r.loading)&&z(r.loadingComp))return r.loadingComp;if(t&&!z(r.owners)){var s=r.owners=[t],n=!0,i=null,a=null;t.$on("hook:destroyed",function(){return Mi(s,t)});var o=function(d){for(var p=0,h=s.length;p<h;p++)s[p].$forceUpdate();d&&(s.length=0,i!==null&&(clearTimeout(i),i=null),a!==null&&(clearTimeout(a),a=null))},l=eh(function(d){r.resolved=wg(d,e),n?s.length=0:o(!0)}),c=eh(function(d){z(r.errorComp)&&(r.error=!0,o(!0))}),u=r(l,c);return gr(u)&&(k1(u)?Ie(r.resolved)&&u.then(l,c):k1(u.component)&&(u.component.then(l,c),z(u.error)&&(r.errorComp=wg(u.error,e)),z(u.loading)&&(r.loadingComp=wg(u.loading,e),u.delay===0?r.loading=!0:i=setTimeout(function(){i=null,Ie(r.resolved)&&Ie(r.error)&&(r.loading=!0,o(!1))},u.delay||200)),z(u.timeout)&&(a=setTimeout(function(){a=null,Ie(r.resolved)&&c(null)},u.timeout)))),n=!1,r.loading?r.loadingComp:r.resolved}}function KC(r){if(ze(r))for(var e=0;e<r.length;e++){var t=r[e];if(z(t)&&(z(t.componentOptions)||Xc(t)))return t}}var sL=1,XC=2;function Jc(r,e,t,s,n,i){return(ze(t)||Uu(t))&&(n=s,s=t,t=void 0),xt(i)&&(n=XC),nL(r,e,t,s,n)}function nL(r,e,t,s,n){if(z(t)&&z(t.__ob__)||(z(t)&&z(t.is)&&(e=t.is),!e))return pa();ze(s)&&ot(s[0])&&(t=t||{},t.scopedSlots={default:s[0]},s.length=0),n===XC?s=X0(s):n===sL&&(s=kA(s));var i,a;if(typeof e=="string"){var o=void 0;a=r.$vnode&&r.$vnode.ns||ys.getTagNamespace(e),ys.isReservedTag(e)?i=new ns(ys.parsePlatformTagName(e),t,s,void 0,void 0,r):(!t||!t.pre)&&z(o=lh(r.$options,"components",e))?i=e$(o,t,r,s,e):i=new ns(e,t,s,void 0,void 0,r)}else i=e$(e,t,r,s);return ze(i)?i:z(i)?(z(a)&&JC(i,a),z(t)&&iL(t),i):pa()}function JC(r,e,t){if(r.ns=e,r.tag==="foreignObject"&&(e=void 0,t=!0),z(r.children))for(var s=0,n=r.children.length;s<n;s++){var i=r.children[s];z(i.tag)&&(Ie(i.ns)||xt(t)&&i.tag!=="svg")&&JC(i,e,t)}}function iL(r){gr(r.style)&&Bo(r.style),gr(r.class)&&Bo(r.class)}function aL(r,e,t){return Jc(Ot,r,e,t,2,!0)}function $a(r,e,t){_l();try{if(e)for(var s=e;s=s.$parent;){var n=s.$options.errorCaptured;if(n)for(var i=0;i<n.length;i++)try{var a=n[i].call(s,r,e,t)===!1;if(a)return}catch(o){q2(o,s,"errorCaptured hook")}}q2(r,e,t)}finally{yl()}}function Hn(r,e,t,s,n){var i;try{i=t?r.apply(e,t):r.call(e),i&&!i._isVue&&k1(i)&&!i._handled&&(i.catch(function(a){return $a(a,s,n+" (Promise/async)")}),i._handled=!0)}catch(a){$a(a,s,n)}return i}function q2(r,e,t){if(ys.errorHandler)try{return ys.errorHandler.call(null,r,e,t)}catch(s){s!==r&&Z2(s)}Z2(r)}function Z2(r,e,t){if(Wr&&typeof console<"u")console.error(r);else throw r}var H1=!1,j1=[],B1=!1;function qd(){B1=!1;var r=j1.slice(0);j1.length=0;for(var e=0;e<r.length;e++)r[e]()}var bc;if(typeof Promise<"u"&&Ro(Promise)){var oL=Promise.resolve();bc=function(){oL.then(qd),tA&&setTimeout(bt)},H1=!0}else if(!gl&&typeof MutationObserver<"u"&&(Ro(MutationObserver)||MutationObserver.toString()==="[object MutationObserverConstructor]")){var Zd=1,lL=new MutationObserver(qd),Y2=document.createTextNode(String(Zd));lL.observe(Y2,{characterData:!0}),bc=function(){Zd=(Zd+1)%2,Y2.data=String(Zd)},H1=!0}else typeof setImmediate<"u"&&Ro(setImmediate)?bc=function(){setImmediate(qd)}:bc=function(){setTimeout(qd,0)};function Jf(r,e){var t;if(j1.push(function(){if(r)try{r.call(e)}catch(s){$a(s,e,"nextTick")}else t&&t(e)}),B1||(B1=!0,bc()),!r&&typeof Promise<"u")return new Promise(function(s){t=s})}function cL(r){r===void 0&&(r="$style");{if(!Ot)return pr;var e=Ot[r];return e||pr}}function uL(r){if(Wr){var e=Ot;e&&BC(function(){var t=e.$el,s=r(e,e._setupProxy);if(t&&t.nodeType===1){var n=t.style;for(var i in s)n.setProperty("--".concat(i),s[i])}})}}function dL(r){ot(r)&&(r={loader:r});var e=r.loader,t=r.loadingComponent,s=r.errorComponent,n=r.delay,i=n===void 0?200:n,a=r.timeout;r.suspensible;var o=r.onError,l=null,c=0,u=function(){return c++,l=null,d()},d=function(){var p;return l||(p=l=e().catch(function(h){if(h=h instanceof Error?h:new Error(String(h)),o)return new Promise(function(f,g){var v=function(){return f(u())},y=function(){return g(h)};o(h,v,y,c+1)});throw h}).then(function(h){return p!==l&&l?l:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),h)}))};return function(){var p=d();return{component:p,delay:i,timeout:a,error:s,loading:t}}}function As(r){return function(e,t){if(t===void 0&&(t=Ot),!!t)return pL(t,r,e)}}function pL(r,e,t){var s=r.$options;s[e]=a5(s[e],t)}var hL=As("beforeMount"),fL=As("mounted"),mL=As("beforeUpdate"),gL=As("updated"),vL=As("beforeDestroy"),_L=As("destroyed"),yL=As("activated"),bL=As("deactivated"),$L=As("serverPrefetch"),wL=As("renderTracked"),SL=As("renderTriggered"),xL=As("errorCaptured");function CL(r,e){e===void 0&&(e=Ot),xL(r,e)}var QC="2.7.16";function PL(r){return r}var K2=new Kc;function Bo(r){return Op(r,K2),K2.clear(),r}function Op(r,e){var t,s,n=ze(r);if(!(!n&&!gr(r)||r.__v_skip||Object.isFrozen(r)||r instanceof ns)){if(r.__ob__){var i=r.__ob__.dep.id;if(e.has(i))return;e.add(i)}if(n)for(t=r.length;t--;)Op(r[t],e);else if(ar(r))Op(r.value,e);else for(s=Object.keys(r),t=s.length;t--;)Op(r[s[t]],e)}}var AL=0,Zu=function(){function r(e,t,s,n,i){AA(this,dr&&!dr._vm?dr:e?e._scope:void 0),(this.vm=e)&&i&&(e._watcher=this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.before=n.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=s,this.id=++AL,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Kc,this.newDepIds=new Kc,this.expression="",ot(t)?this.getter=t:(this.getter=Q9(t),this.getter||(this.getter=bt)),this.value=this.lazy?void 0:this.get()}return r.prototype.get=function(){_l(this);var e,t=this.vm;try{e=this.getter.call(t,t)}catch(s){if(this.user)$a(s,t,'getter for watcher "'.concat(this.expression,'"'));else throw s}finally{this.deep&&Bo(e),yl(),this.cleanupDeps()}return e},r.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},r.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var s=this.depIds;this.depIds=this.newDepIds,this.newDepIds=s,this.newDepIds.clear(),s=this.deps,this.deps=this.newDeps,this.newDeps=s,this.newDeps.length=0},r.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():z1(this)},r.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||gr(e)||this.deep){var t=this.value;if(this.value=e,this.user){var s='callback for watcher "'.concat(this.expression,'"');Hn(this.cb,this.vm,[e,t],this.vm,s)}else this.cb.call(this.vm,e,t)}}},r.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},r.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},r.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&Mi(this.vm._scope.effects,this),this.active){for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},r}();function LL(r){r._events=Object.create(null),r._hasHookEvent=!1;var e=r.$options._parentListeners;e&&e5(r,e)}var Qc;function EL(r,e){Qc.$on(r,e)}function OL(r,e){Qc.$off(r,e)}function TL(r,e){var t=Qc;return function s(){var n=e.apply(null,arguments);n!==null&&t.$off(r,s)}}function e5(r,e,t){Qc=r,zC(e,t||{},EL,OL,TL,r),Qc=void 0}function kL(r){var e=/^hook:/;r.prototype.$on=function(t,s){var n=this;if(ze(t))for(var i=0,a=t.length;i<a;i++)n.$on(t[i],s);else(n._events[t]||(n._events[t]=[])).push(s),e.test(t)&&(n._hasHookEvent=!0);return n},r.prototype.$once=function(t,s){var n=this;function i(){n.$off(t,i),s.apply(n,arguments)}return i.fn=s,n.$on(t,i),n},r.prototype.$off=function(t,s){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(ze(t)){for(var i=0,a=t.length;i<a;i++)n.$off(t[i],s);return n}var o=n._events[t];if(!o)return n;if(!s)return n._events[t]=null,n;for(var l,c=o.length;c--;)if(l=o[c],l===s||l.fn===s){o.splice(c,1);break}return n},r.prototype.$emit=function(t){var s=this,n=s._events[t];if(n){n=n.length>1?D1(n):n;for(var i=D1(arguments,1),a='event handler for "'.concat(t,'"'),o=0,l=n.length;o<l;o++)Hn(n[o],s,i,s,a)}return s}}var fa=null;function t5(r){var e=fa;return fa=r,function(){fa=e}}function DL(r){var e=r.$options,t=e.parent;if(t&&!e.abstract){for(;t.$options.abstract&&t.$parent;)t=t.$parent;t.$children.push(r)}r.$parent=t,r.$root=t?t.$root:r,r.$children=[],r.$refs={},r._provided=t?t._provided:Object.create(null),r._watcher=null,r._inactive=null,r._directInactive=!1,r._isMounted=!1,r._isDestroyed=!1,r._isBeingDestroyed=!1}function ML(r){r.prototype._update=function(e,t){var s=this,n=s.$el,i=s._vnode,a=t5(s);s._vnode=e,i?s.$el=s.__patch__(i,e):s.$el=s.__patch__(s.$el,e,t,!1),a(),n&&(n.__vue__=null),s.$el&&(s.$el.__vue__=s);for(var o=s;o&&o.$vnode&&o.$parent&&o.$vnode===o.$parent._vnode;)o.$parent.$el=o.$el,o=o.$parent},r.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},r.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){zs(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;t&&!t._isBeingDestroyed&&!e.$options.abstract&&Mi(t.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),zs(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function RL(r,e,t){r.$el=e,r.$options.render||(r.$options.render=pa),zs(r,"beforeMount");var s;s=function(){r._update(r._render(),t)};var n={before:function(){r._isMounted&&!r._isDestroyed&&zs(r,"beforeUpdate")}};new Zu(r,s,bt,n,!0),t=!1;var i=r._preWatchers;if(i)for(var a=0;a<i.length;a++)i[a].run();return r.$vnode==null&&(r._isMounted=!0,zs(r,"mounted")),r}function IL(r,e,t,s,n){var i=s.data.scopedSlots,a=r.$scopedSlots,o=!!(i&&!i.$stable||a!==pr&&!a.$stable||i&&r.$scopedSlots.$key!==i.$key||!i&&r.$scopedSlots.$key),l=!!(n||r.$options._renderChildren||o),c=r.$vnode;r.$options._parentVnode=s,r.$vnode=s,r._vnode&&(r._vnode.parent=s),r.$options._renderChildren=n;var u=s.data.attrs||pr;r._attrsProxy&&ih(r._attrsProxy,u,c.data&&c.data.attrs||pr,r,"$attrs")&&(l=!0),r.$attrs=u,t=t||pr;var d=r.$options._parentListeners;if(r._listenersProxy&&ih(r._listenersProxy,t,d||pr,r,"$listeners"),r.$listeners=r.$options._parentListeners=t,e5(r,t,d),e&&r.$options.props){xi(!1);for(var p=r._props,h=r.$options._propKeys||[],f=0;f<h.length;f++){var g=h[f],v=r.$options.props;p[g]=iy(g,v,e,r)}xi(!0),r.$options.propsData=e}l&&(r.$slots=J0(n,s.context),r.$forceUpdate())}function r5(r){for(;r&&(r=r.$parent);)if(r._inactive)return!0;return!1}function ey(r,e){if(e){if(r._directInactive=!1,r5(r))return}else if(r._directInactive)return;if(r._inactive||r._inactive===null){r._inactive=!1;for(var t=0;t<r.$children.length;t++)ey(r.$children[t]);zs(r,"activated")}}function s5(r,e){if(!(e&&(r._directInactive=!0,r5(r)))&&!r._inactive){r._inactive=!0;for(var t=0;t<r.$children.length;t++)s5(r.$children[t]);zs(r,"deactivated")}}function zs(r,e,t,s){s===void 0&&(s=!0),_l();var n=Ot,i=NC();s&&Si(r);var a=r.$options[e],o="".concat(e," hook");if(a)for(var l=0,c=a.length;l<c;l++)Hn(a[l],r,null,r,o);r._hasHookEvent&&r.$emit("hook:"+e),s&&(Si(n),i&&i.on()),yl()}var Tn=[],ty=[],ah={},N1=!1,ry=!1,Lo=0;function FL(){Lo=Tn.length=ty.length=0,ah={},N1=ry=!1}var n5=0,V1=Date.now;if(Wr&&!gl){var Sg=window.performance;Sg&&typeof Sg.now=="function"&&V1()>document.createEvent("Event").timeStamp&&(V1=function(){return Sg.now()})}var HL=function(r,e){if(r.post){if(!e.post)return 1}else if(e.post)return-1;return r.id-e.id};function jL(){n5=V1(),ry=!0;var r,e;for(Tn.sort(HL),Lo=0;Lo<Tn.length;Lo++)r=Tn[Lo],r.before&&r.before(),e=r.id,ah[e]=null,r.run();var t=ty.slice(),s=Tn.slice();FL(),VL(t),BL(s),nA(),th&&ys.devtools&&th.emit("flush")}function BL(r){for(var e=r.length;e--;){var t=r[e],s=t.vm;s&&s._watcher===t&&s._isMounted&&!s._isDestroyed&&zs(s,"updated")}}function NL(r){r._inactive=!1,ty.push(r)}function VL(r){for(var e=0;e<r.length;e++)r[e]._inactive=!0,ey(r[e],!0)}function z1(r){var e=r.id;if(ah[e]==null&&!(r===gn.target&&r.noRecurse)){if(ah[e]=!0,!ry)Tn.push(r);else{for(var t=Tn.length-1;t>Lo&&Tn[t].id>r.id;)t--;Tn.splice(t+1,0,r)}N1||(N1=!0,Jf(jL))}}function zL(r){var e=r.$options.provide;if(e){var t=ot(e)?e.call(r):e;if(!gr(t))return;for(var s=VC(r),n=Gu?Reflect.ownKeys(t):Object.keys(t),i=0;i<n.length;i++){var a=n[i];Object.defineProperty(s,a,Object.getOwnPropertyDescriptor(t,a))}}}function UL(r){var e=i5(r.$options.inject,r);e&&(xi(!1),Object.keys(e).forEach(function(t){Ci(r,t,e[t])}),xi(!0))}function i5(r,e){if(r){for(var t=Object.create(null),s=Gu?Reflect.ownKeys(r):Object.keys(r),n=0;n<s.length;n++){var i=s[n];if(i!=="__ob__"){var a=r[i].from;if(a in e._provided)t[i]=e._provided[a];else if("default"in r[i]){var o=r[i].default;t[i]=ot(o)?o.call(e):o}}}return t}}function sy(r,e,t,s,n){var i=this,a=n.options,o;Sr(s,"_uid")?(o=Object.create(s),o._original=s):(o=s,s=s._original);var l=xt(a._compiled),c=!l;this.data=r,this.props=e,this.children=t,this.parent=s,this.listeners=r.on||pr,this.injections=i5(a.inject,s),this.slots=function(){return i.$slots||Oc(s,r.scopedSlots,i.$slots=J0(t,s)),i.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Oc(s,r.scopedSlots,this.slots())}}),l&&(this.$options=a,this.$slots=this.slots(),this.$scopedSlots=Oc(s,r.scopedSlots,this.$slots)),a._scopeId?this._c=function(u,d,p,h){var f=Jc(o,u,d,p,h,c);return f&&!ze(f)&&(f.fnScopeId=a._scopeId,f.fnContext=s),f}:this._c=function(u,d,p,h){return Jc(o,u,d,p,h,c)}}qC(sy.prototype);function WL(r,e,t,s,n){var i=r.options,a={},o=i.props;if(z(o))for(var l in o)a[l]=iy(l,o,e||pr);else z(t.attrs)&&J2(a,t.attrs),z(t.props)&&J2(a,t.props);var c=new sy(t,a,n,s,r),u=i.render.call(null,c._c,c);if(u instanceof ns)return X2(u,t,c.parent,i);if(ze(u)){for(var d=X0(u)||[],p=new Array(d.length),h=0;h<d.length;h++)p[h]=X2(d[h],t,c.parent,i);return p}}function X2(r,e,t,s,n){var i=I1(r);return i.fnContext=t,i.fnOptions=s,e.slot&&((i.data||(i.data={})).slot=e.slot),i}function J2(r,e){for(var t in e)r[ya(t)]=e[t]}function oh(r){return r.name||r.__name||r._componentTag}var ny={init:function(r,e){if(r.componentInstance&&!r.componentInstance._isDestroyed&&r.data.keepAlive){var t=r;ny.prepatch(t,t)}else{var s=r.componentInstance=GL(r,fa);s.$mount(e?r.elm:void 0,e)}},prepatch:function(r,e){var t=e.componentOptions,s=e.componentInstance=r.componentInstance;IL(s,t.propsData,t.listeners,e,t.children)},insert:function(r){var e=r.context,t=r.componentInstance;t._isMounted||(t._isMounted=!0,zs(t,"mounted")),r.data.keepAlive&&(e._isMounted?NL(t):ey(t,!0))},destroy:function(r){var e=r.componentInstance;e._isDestroyed||(r.data.keepAlive?s5(e,!0):e.$destroy())}},Q2=Object.keys(ny);function e$(r,e,t,s,n){if(!Ie(r)){var i=t.$options._base;if(gr(r)&&(r=i.extend(r)),typeof r=="function"){var a;if(Ie(r.cid)&&(a=r,r=rL(a,i),r===void 0))return tL(a,e,t,s,n);e=e||{},oy(r),z(e.model)&&YL(r.options,e);var o=TA(e,r);if(xt(r.options.functional))return WL(r,o,e,t,s);var l=e.on;if(e.on=e.nativeOn,xt(r.options.abstract)){var c=e.slot;e={},c&&(e.slot=c)}qL(e);var u=oh(r.options)||n,d=new ns("vue-component-".concat(r.cid).concat(u?"-".concat(u):""),e,void 0,void 0,void 0,t,{Ctor:r,propsData:o,listeners:l,tag:n,children:s},a);return d}}}function GL(r,e){var t={_isComponent:!0,_parentVnode:r,parent:e},s=r.data.inlineTemplate;return z(s)&&(t.render=s.render,t.staticRenderFns=s.staticRenderFns),new r.componentOptions.Ctor(t)}function qL(r){for(var e=r.hook||(r.hook={}),t=0;t<Q2.length;t++){var s=Q2[t],n=e[s],i=ny[s];n!==i&&!(n&&n._merged)&&(e[s]=n?ZL(i,n):i)}}function ZL(r,e){var t=function(s,n){r(s,n),e(s,n)};return t._merged=!0,t}function YL(r,e){var t=r.model&&r.model.prop||"value",s=r.model&&r.model.event||"input";(e.attrs||(e.attrs={}))[t]=e.model.value;var n=e.on||(e.on={}),i=n[s],a=e.model.callback;z(i)?(ze(i)?i.indexOf(a)===-1:i!==a)&&(n[s]=[a].concat(i)):n[s]=a}var KL=bt,un=ys.optionMergeStrategies;function eu(r,e,t){if(t===void 0&&(t=!0),!e)return r;for(var s,n,i,a=Gu?Reflect.ownKeys(e):Object.keys(e),o=0;o<a.length;o++)s=a[o],s!=="__ob__"&&(n=r[s],i=e[s],!t||!Sr(r,s)?Yf(r,s,i):n!==i&&Cr(n)&&Cr(i)&&eu(n,i));return r}function t$(r,e,t){return t?function(){var n=ot(e)?e.call(t,t):e,i=ot(r)?r.call(t,t):r;return n?eu(n,i):i}:e?r?function(){return eu(ot(e)?e.call(this,this):e,ot(r)?r.call(this,this):r)}:e:r}un.data=function(r,e,t){return t?t$(r,e,t):e&&typeof e!="function"?r:t$(r,e)};function a5(r,e){var t=e?r?r.concat(e):ze(e)?e:[e]:r;return t&&XL(t)}function XL(r){for(var e=[],t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t]);return e}AC.forEach(function(r){un[r]=a5});function JL(r,e,t,s){var n=Object.create(r||null);return e?mt(n,e):n}Zf.forEach(function(r){un[r+"s"]=JL});un.watch=function(r,e,t,s){if(r===R1&&(r=void 0),e===R1&&(e=void 0),!e)return Object.create(r||null);if(!r)return e;var n={};mt(n,r);for(var i in e){var a=n[i],o=e[i];a&&!ze(a)&&(a=[a]),n[i]=a?a.concat(o):ze(o)?o:[o]}return n};un.props=un.methods=un.inject=un.computed=function(r,e,t,s){if(!r)return e;var n=Object.create(null);return mt(n,r),e&&mt(n,e),n};un.provide=function(r,e){return r?function(){var t=Object.create(null);return eu(t,ot(r)?r.call(this):r),e&&eu(t,ot(e)?e.call(this):e,!1),t}:e};var QL=function(r,e){return e===void 0?r:e};function eE(r,e){var t=r.props;if(t){var s={},n,i,a;if(ze(t))for(n=t.length;n--;)i=t[n],typeof i=="string"&&(a=ya(i),s[a]={type:null});else if(Cr(t))for(var o in t)i=t[o],a=ya(o),s[a]=Cr(i)?i:{type:i};r.props=s}}function tE(r,e){var t=r.inject;if(t){var s=r.inject={};if(ze(t))for(var n=0;n<t.length;n++)s[t[n]]={from:t[n]};else if(Cr(t))for(var i in t){var a=t[i];s[i]=Cr(a)?mt({from:i},a):{from:a}}}}function rE(r){var e=r.directives;if(e)for(var t in e){var s=e[t];ot(s)&&(e[t]={bind:s,update:s})}}function wa(r,e,t){if(ot(e)&&(e=e.options),eE(e),tE(e),rE(e),!e._base&&(e.extends&&(r=wa(r,e.extends,t)),e.mixins))for(var s=0,n=e.mixins.length;s<n;s++)r=wa(r,e.mixins[s],t);var i={},a;for(a in r)o(a);for(a in e)Sr(r,a)||o(a);function o(l){var c=un[l]||QL;i[l]=c(r[l],e[l],t,l)}return i}function lh(r,e,t,s){if(typeof t=="string"){var n=r[e];if(Sr(n,t))return n[t];var i=ya(t);if(Sr(n,i))return n[i];var a=q9(i);if(Sr(n,a))return n[a];var o=n[t]||n[i]||n[a];return o}}function iy(r,e,t,s){var n=e[r],i=!Sr(t,r),a=t[r],o=s$(Boolean,n.type);if(o>-1){if(i&&!Sr(n,"default"))a=!1;else if(a===""||a===Wu(r)){var l=s$(String,n.type);(l<0||o<l)&&(a=!0)}}if(a===void 0){a=sE(s,n,r);var c=q0;xi(!0),Fn(a),xi(c)}return a}function sE(r,e,t){if(Sr(e,"default")){var s=e.default;return r&&r.$options.propsData&&r.$options.propsData[t]===void 0&&r._props[t]!==void 0?r._props[t]:ot(s)&&U1(e.type)!=="Function"?s.call(r):s}}var nE=/^\s*function (\w+)/;function U1(r){var e=r&&r.toString().match(nE);return e?e[1]:""}function r$(r,e){return U1(r)===U1(e)}function s$(r,e){if(!ze(e))return r$(e,r)?0:-1;for(var t=0,s=e.length;t<s;t++)if(r$(e[t],r))return t;return-1}var ui={enumerable:!0,configurable:!0,get:bt,set:bt};function ay(r,e,t){ui.get=function(){return this[e][t]},ui.set=function(n){this[e][t]=n},Object.defineProperty(r,t,ui)}function iE(r){var e=r.$options;if(e.props&&aE(r,e.props),GA(r),e.methods&&dE(r,e.methods),e.data)oE(r);else{var t=Fn(r._data={});t&&t.vmCount++}e.computed&&uE(r,e.computed),e.watch&&e.watch!==R1&&pE(r,e.watch)}function aE(r,e){var t=r.$options.propsData||{},s=r._props=Y0({}),n=r.$options._propKeys=[],i=!r.$parent;i||xi(!1);var a=function(l){n.push(l);var c=iy(l,e,t,r);Ci(s,l,c,void 0,!0),l in r||ay(r,"_props",l)};for(var o in e)a(o);xi(!0)}function oE(r){var e=r.$options.data;e=r._data=ot(e)?lE(e,r):e||{},Cr(e)||(e={});var t=Object.keys(e),s=r.$options.props;r.$options.methods;for(var n=t.length;n--;){var i=t[n];s&&Sr(s,i)||LC(i)||ay(r,"_data",i)}var a=Fn(e);a&&a.vmCount++}function lE(r,e){_l();try{return r.call(e,e)}catch(t){return $a(t,e,"data()"),{}}finally{yl()}}var cE={lazy:!0};function uE(r,e){var t=r._computedWatchers=Object.create(null),s=Ri();for(var n in e){var i=e[n],a=ot(i)?i:i.get;s||(t[n]=new Zu(r,a||bt,bt,cE)),n in r||o5(r,n,i)}}function o5(r,e,t){var s=!Ri();ot(t)?(ui.get=s?n$(e):i$(t),ui.set=bt):(ui.get=t.get?s&&t.cache!==!1?n$(e):i$(t.get):bt,ui.set=t.set||bt),Object.defineProperty(r,e,ui)}function n$(r){return function(){var t=this._computedWatchers&&this._computedWatchers[r];if(t)return t.dirty&&t.evaluate(),gn.target&&t.depend(),t.value}}function i$(r){return function(){return r.call(this,this)}}function dE(r,e){r.$options.props;for(var t in e)r[t]=typeof e[t]!="function"?bt:SC(e[t],r)}function pE(r,e){for(var t in e){var s=e[t];if(ze(s))for(var n=0;n<s.length;n++)W1(r,t,s[n]);else W1(r,t,s)}}function W1(r,e,t,s){return Cr(t)&&(s=t,t=t.handler),typeof t=="string"&&(t=r[t]),r.$watch(e,t,s)}function hE(r){var e={};e.get=function(){return this._data};var t={};t.get=function(){return this._props},Object.defineProperty(r.prototype,"$data",e),Object.defineProperty(r.prototype,"$props",t),r.prototype.$set=Yf,r.prototype.$delete=Z0,r.prototype.$watch=function(s,n,i){var a=this;if(Cr(n))return W1(a,s,n,i);i=i||{},i.user=!0;var o=new Zu(a,s,n,i);if(i.immediate){var l='callback for immediate watcher "'.concat(o.expression,'"');_l(),Hn(n,a,[o.value],a,l),yl()}return function(){o.teardown()}}}var fE=0;function mE(r){r.prototype._init=function(e){var t=this;t._uid=fE++,t._isVue=!0,t.__v_skip=!0,t._scope=new K0(!0),t._scope.parent=void 0,t._scope._vm=!0,e&&e._isComponent?gE(t,e):t.$options=wa(oy(t.constructor),e||{},t),t._renderProxy=t,t._self=t,DL(t),LL(t),QA(t),zs(t,"beforeCreate",void 0,!1),UL(t),iE(t),zL(t),zs(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function gE(r,e){var t=r.$options=Object.create(r.constructor.options),s=e._parentVnode;t.parent=e.parent,t._parentVnode=s;var n=s.componentOptions;t.propsData=n.propsData,t._parentListeners=n.listeners,t._renderChildren=n.children,t._componentTag=n.tag,e.render&&(t.render=e.render,t.staticRenderFns=e.staticRenderFns)}function oy(r){var e=r.options;if(r.super){var t=oy(r.super),s=r.superOptions;if(t!==s){r.superOptions=t;var n=vE(r);n&&mt(r.extendOptions,n),e=r.options=wa(t,r.extendOptions),e.name&&(e.components[e.name]=r)}}return e}function vE(r){var e,t=r.options,s=r.sealedOptions;for(var n in t)t[n]!==s[n]&&(e||(e={}),e[n]=t[n]);return e}function b(r){this._init(r)}mE(b);hE(b);kL(b);ML(b);eL(b);function _E(r){r.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var s=D1(arguments,1);return s.unshift(this),ot(e.install)?e.install.apply(e,s):ot(e)&&e.apply(null,s),t.push(e),this}}function yE(r){r.mixin=function(e){return this.options=wa(this.options,e),this}}function bE(r){r.cid=0;var e=1;r.extend=function(t){t=t||{};var s=this,n=s.cid,i=t._Ctor||(t._Ctor={});if(i[n])return i[n];var a=oh(t)||oh(s.options),o=function(c){this._init(c)};return o.prototype=Object.create(s.prototype),o.prototype.constructor=o,o.cid=e++,o.options=wa(s.options,t),o.super=s,o.options.props&&$E(o),o.options.computed&&wE(o),o.extend=s.extend,o.mixin=s.mixin,o.use=s.use,Zf.forEach(function(l){o[l]=s[l]}),a&&(o.options.components[a]=o),o.superOptions=s.options,o.extendOptions=t,o.sealedOptions=mt({},o.options),i[n]=o,o}}function $E(r){var e=r.options.props;for(var t in e)ay(r.prototype,"_props",t)}function wE(r){var e=r.options.computed;for(var t in e)o5(r.prototype,t,e[t])}function SE(r){Zf.forEach(function(e){r[e]=function(t,s){return s?(e==="component"&&Cr(s)&&(s.name=s.name||t,s=this.options._base.extend(s)),e==="directive"&&ot(s)&&(s={bind:s,update:s}),this.options[e+"s"][t]=s,s):this.options[e+"s"][t]}})}function a$(r){return r&&(oh(r.Ctor.options)||r.tag)}function Yd(r,e){return ze(r)?r.indexOf(e)>-1:typeof r=="string"?r.split(",").indexOf(e)>-1:N9(r)?r.test(e):!1}function o$(r,e){var t=r.cache,s=r.keys,n=r._vnode,i=r.$vnode;for(var a in t){var o=t[a];if(o){var l=o.name;l&&!e(l)&&G1(t,a,s,n)}}i.componentOptions.children=void 0}function G1(r,e,t,s){var n=r[e];n&&(!s||n.tag!==s.tag)&&n.componentInstance.$destroy(),r[e]=null,Mi(t,e)}var l$=[String,RegExp,Array],xE={name:"keep-alive",abstract:!0,props:{include:l$,exclude:l$,max:[String,Number]},methods:{cacheVNode:function(){var r=this,e=r.cache,t=r.keys,s=r.vnodeToCache,n=r.keyToCache;if(s){var i=s.tag,a=s.componentInstance,o=s.componentOptions;e[n]={name:a$(o),tag:i,componentInstance:a},t.push(n),this.max&&t.length>parseInt(this.max)&&G1(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var r in this.cache)G1(this.cache,r,this.keys)},mounted:function(){var r=this;this.cacheVNode(),this.$watch("include",function(e){o$(r,function(t){return Yd(e,t)})}),this.$watch("exclude",function(e){o$(r,function(t){return!Yd(e,t)})})},updated:function(){this.cacheVNode()},render:function(){var r=this.$slots.default,e=KC(r),t=e&&e.componentOptions;if(t){var s=a$(t),n=this,i=n.include,a=n.exclude;if(i&&(!s||!Yd(i,s))||a&&s&&Yd(a,s))return e;var o=this,l=o.cache,c=o.keys,u=e.key==null?t.Ctor.cid+(t.tag?"::".concat(t.tag):""):e.key;l[u]?(e.componentInstance=l[u].componentInstance,Mi(c,u),c.push(u)):(this.vnodeToCache=e,this.keyToCache=u),e.data.keepAlive=!0}return e||r&&r[0]}},CE={KeepAlive:xE};function PE(r){var e={};e.get=function(){return ys},Object.defineProperty(r,"config",e),r.util={warn:KL,extend:mt,mergeOptions:wa,defineReactive:Ci},r.set=Yf,r.delete=Z0,r.nextTick=Jf,r.observable=function(t){return Fn(t),t},r.options=Object.create(null),Zf.forEach(function(t){r.options[t+"s"]=Object.create(null)}),r.options._base=r,mt(r.options.components,CE),_E(r),yE(r),bE(r),SE(r)}PE(b);Object.defineProperty(b.prototype,"$isServer",{get:Ri});Object.defineProperty(b.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}});Object.defineProperty(b,"FunctionalRenderContext",{value:sy});b.version=QC;var AE=Xs("style,class"),LE=Xs("input,textarea,option,select,progress"),EE=function(r,e,t){return t==="value"&&LE(r)&&e!=="button"||t==="selected"&&r==="option"||t==="checked"&&r==="input"||t==="muted"&&r==="video"},l5=Xs("contenteditable,draggable,spellcheck"),OE=Xs("events,caret,typing,plaintext-only"),TE=function(r,e){return ch(e)||e==="false"?"false":r==="contenteditable"&&OE(e)?e:"true"},kE=Xs("allowfullscreen,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"),q1="http://www.w3.org/1999/xlink",ly=function(r){return r.charAt(5)===":"&&r.slice(0,5)==="xlink"},c5=function(r){return ly(r)?r.slice(6,r.length):""},ch=function(r){return r==null||r===!1};function DE(r){for(var e=r.data,t=r,s=r;z(s.componentInstance);)s=s.componentInstance._vnode,s&&s.data&&(e=c$(s.data,e));for(;z(t=t.parent);)t&&t.data&&(e=c$(e,t.data));return ME(e.staticClass,e.class)}function c$(r,e){return{staticClass:cy(r.staticClass,e.staticClass),class:z(r.class)?[r.class,e.class]:e.class}}function ME(r,e){return z(r)||z(e)?cy(r,uy(e)):""}function cy(r,e){return r?e?r+" "+e:r:e||""}function uy(r){return Array.isArray(r)?RE(r):gr(r)?IE(r):typeof r=="string"?r:""}function RE(r){for(var e="",t,s=0,n=r.length;s<n;s++)z(t=uy(r[s]))&&t!==""&&(e&&(e+=" "),e+=t);return e}function IE(r){var e="";for(var t in r)r[t]&&(e&&(e+=" "),e+=t);return e}var FE={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},HE=Xs("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),dy=Xs("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),u5=function(r){return HE(r)||dy(r)};function jE(r){if(dy(r))return"svg";if(r==="math")return"math"}var Kd=Object.create(null);function BE(r){if(!Wr)return!0;if(u5(r))return!1;if(r=r.toLowerCase(),Kd[r]!=null)return Kd[r];var e=document.createElement(r);return r.indexOf("-")>-1?Kd[r]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Kd[r]=/HTMLUnknownElement/.test(e.toString())}var Z1=Xs("text,number,password,search,email,tel,url");function NE(r){if(typeof r=="string"){var e=document.querySelector(r);return e||document.createElement("div")}else return r}function VE(r,e){var t=document.createElement(r);return r!=="select"||e.data&&e.data.attrs&&e.data.attrs.multiple!==void 0&&t.setAttribute("multiple","multiple"),t}function zE(r,e){return document.createElementNS(FE[r],e)}function UE(r){return document.createTextNode(r)}function WE(r){return document.createComment(r)}function GE(r,e,t){r.insertBefore(e,t)}function qE(r,e){r.removeChild(e)}function ZE(r,e){r.appendChild(e)}function YE(r){return r.parentNode}function KE(r){return r.nextSibling}function XE(r){return r.tagName}function JE(r,e){r.textContent=e}function QE(r,e){r.setAttribute(e,"")}var eO=Object.freeze({__proto__:null,createElement:VE,createElementNS:zE,createTextNode:UE,createComment:WE,insertBefore:GE,removeChild:qE,appendChild:ZE,parentNode:YE,nextSibling:KE,tagName:XE,setTextContent:JE,setStyleScope:QE}),tO={create:function(r,e){Eo(e)},update:function(r,e){r.data.ref!==e.data.ref&&(Eo(r,!0),Eo(e))},destroy:function(r){Eo(r,!0)}};function Eo(r,e){var t=r.data.ref;if(z(t)){var s=r.context,n=r.componentInstance||r.elm,i=e?null:n,a=e?void 0:n;if(ot(t)){Hn(t,s,[i],s,"template ref function");return}var o=r.data.refInFor,l=typeof t=="string"||typeof t=="number",c=ar(t),u=s.$refs;if(l||c){if(o){var d=l?u[t]:t.value;e?ze(d)&&Mi(d,n):ze(d)?d.includes(n)||d.push(n):l?(u[t]=[n],u$(s,t,u[t])):t.value=[n]}else if(l){if(e&&u[t]!==n)return;u[t]=a,u$(s,t,i)}else if(c){if(e&&t.value!==n)return;t.value=i}}}}function u$(r,e,t){var s=r._setupState;s&&Sr(s,e)&&(ar(s[e])?s[e].value=t:s[e]=t)}var hi=new ns("",{},[]),rc=["create","activate","update","remove","destroy"];function Yi(r,e){return r.key===e.key&&r.asyncFactory===e.asyncFactory&&(r.tag===e.tag&&r.isComment===e.isComment&&z(r.data)===z(e.data)&&rO(r,e)||xt(r.isAsyncPlaceholder)&&Ie(e.asyncFactory.error))}function rO(r,e){if(r.tag!=="input")return!0;var t,s=z(t=r.data)&&z(t=t.attrs)&&t.type,n=z(t=e.data)&&z(t=t.attrs)&&t.type;return s===n||Z1(s)&&Z1(n)}function sO(r,e,t){var s,n,i={};for(s=e;s<=t;++s)n=r[s].key,z(n)&&(i[n]=s);return i}function nO(r){var e,t,s={},n=r.modules,i=r.nodeOps;for(e=0;e<rc.length;++e)for(s[rc[e]]=[],t=0;t<n.length;++t)z(n[t][rc[e]])&&s[rc[e]].push(n[t][rc[e]]);function a(k){return new ns(i.tagName(k).toLowerCase(),{},[],void 0,k)}function o(k,T){function P(){--P.listeners===0&&l(k)}return P.listeners=T,P}function l(k){var T=i.parentNode(k);z(T)&&i.removeChild(T,k)}function c(k,T,P,O,j,N,U){if(z(k.elm)&&z(N)&&(k=N[U]=I1(k)),k.isRootInsert=!j,!u(k,T,P,O)){var V=k.data,Q=k.children,X=k.tag;z(X)?(k.elm=k.ns?i.createElementNS(k.ns,X):i.createElement(X,k),y(k),f(k,Q,T),z(V)&&v(k,T),h(P,k.elm,O)):xt(k.isComment)?(k.elm=i.createComment(k.text),h(P,k.elm,O)):(k.elm=i.createTextNode(k.text),h(P,k.elm,O))}}function u(k,T,P,O){var j=k.data;if(z(j)){var N=z(k.componentInstance)&&j.keepAlive;if(z(j=j.hook)&&z(j=j.init)&&j(k,!1),z(k.componentInstance))return d(k,T),h(P,k.elm,O),xt(N)&&p(k,T,P,O),!0}}function d(k,T){z(k.data.pendingInsert)&&(T.push.apply(T,k.data.pendingInsert),k.data.pendingInsert=null),k.elm=k.componentInstance.$el,g(k)?(v(k,T),y(k)):(Eo(k),T.push(k))}function p(k,T,P,O){for(var j,N=k;N.componentInstance;)if(N=N.componentInstance._vnode,z(j=N.data)&&z(j=j.transition)){for(j=0;j<s.activate.length;++j)s.activate[j](hi,N);T.push(N);break}h(P,k.elm,O)}function h(k,T,P){z(k)&&(z(P)?i.parentNode(P)===k&&i.insertBefore(k,T,P):i.appendChild(k,T))}function f(k,T,P){if(ze(T))for(var O=0;O<T.length;++O)c(T[O],P,k.elm,null,!0,T,O);else Uu(k.text)&&i.appendChild(k.elm,i.createTextNode(String(k.text)))}function g(k){for(;k.componentInstance;)k=k.componentInstance._vnode;return z(k.tag)}function v(k,T){for(var P=0;P<s.create.length;++P)s.create[P](hi,k);e=k.data.hook,z(e)&&(z(e.create)&&e.create(hi,k),z(e.insert)&&T.push(k))}function y(k){var T;if(z(T=k.fnScopeId))i.setStyleScope(k.elm,T);else for(var P=k;P;)z(T=P.context)&&z(T=T.$options._scopeId)&&i.setStyleScope(k.elm,T),P=P.parent;z(T=fa)&&T!==k.context&&T!==k.fnContext&&z(T=T.$options._scopeId)&&i.setStyleScope(k.elm,T)}function C(k,T,P,O,j,N){for(;O<=j;++O)c(P[O],N,k,T,!1,P,O)}function x(k){var T,P,O=k.data;if(z(O))for(z(T=O.hook)&&z(T=T.destroy)&&T(k),T=0;T<s.destroy.length;++T)s.destroy[T](k);if(z(T=k.children))for(P=0;P<k.children.length;++P)x(k.children[P])}function $(k,T,P){for(;T<=P;++T){var O=k[T];z(O)&&(z(O.tag)?(L(O),x(O)):l(O.elm))}}function L(k,T){if(z(T)||z(k.data)){var P,O=s.remove.length+1;for(z(T)?T.listeners+=O:T=o(k.elm,O),z(P=k.componentInstance)&&z(P=P._vnode)&&z(P.data)&&L(P,T),P=0;P<s.remove.length;++P)s.remove[P](k,T);z(P=k.data.hook)&&z(P=P.remove)?P(k,T):T()}else l(k.elm)}function G(k,T,P,O,j){for(var N=0,U=0,V=T.length-1,Q=T[0],X=T[V],q=P.length-1,Z=P[0],te=P[q],re,_e,Me,wt,Lr=!j;N<=V&&U<=q;)Ie(Q)?Q=T[++N]:Ie(X)?X=T[--V]:Yi(Q,Z)?(le(Q,Z,O,P,U),Q=T[++N],Z=P[++U]):Yi(X,te)?(le(X,te,O,P,q),X=T[--V],te=P[--q]):Yi(Q,te)?(le(Q,te,O,P,q),Lr&&i.insertBefore(k,Q.elm,i.nextSibling(X.elm)),Q=T[++N],te=P[--q]):Yi(X,Z)?(le(X,Z,O,P,U),Lr&&i.insertBefore(k,X.elm,Q.elm),X=T[--V],Z=P[++U]):(Ie(re)&&(re=sO(T,N,V)),_e=z(Z.key)?re[Z.key]:K(Z,T,N,V),Ie(_e)?c(Z,O,k,Q.elm,!1,P,U):(Me=T[_e],Yi(Me,Z)?(le(Me,Z,O,P,U),T[_e]=void 0,Lr&&i.insertBefore(k,Me.elm,Q.elm)):c(Z,O,k,Q.elm,!1,P,U)),Z=P[++U]);N>V?(wt=Ie(P[q+1])?null:P[q+1].elm,C(k,wt,P,U,q,O)):U>q&&$(T,N,V)}function K(k,T,P,O){for(var j=P;j<O;j++){var N=T[j];if(z(N)&&Yi(k,N))return j}}function le(k,T,P,O,j,N){if(k!==T){z(T.elm)&&z(O)&&(T=O[j]=I1(T));var U=T.elm=k.elm;if(xt(k.isAsyncPlaceholder)){z(T.asyncFactory.resolved)?fe(k.elm,T,P):T.isAsyncPlaceholder=!0;return}if(xt(T.isStatic)&&xt(k.isStatic)&&T.key===k.key&&(xt(T.isCloned)||xt(T.isOnce))){T.componentInstance=k.componentInstance;return}var V,Q=T.data;z(Q)&&z(V=Q.hook)&&z(V=V.prepatch)&&V(k,T);var X=k.children,q=T.children;if(z(Q)&&g(T)){for(V=0;V<s.update.length;++V)s.update[V](k,T);z(V=Q.hook)&&z(V=V.update)&&V(k,T)}Ie(T.text)?z(X)&&z(q)?X!==q&&G(U,X,q,P,N):z(q)?(z(k.text)&&i.setTextContent(U,""),C(U,null,q,0,q.length-1,P)):z(X)?$(X,0,X.length-1):z(k.text)&&i.setTextContent(U,""):k.text!==T.text&&i.setTextContent(U,T.text),z(Q)&&z(V=Q.hook)&&z(V=V.postpatch)&&V(k,T)}}function ue(k,T,P){if(xt(P)&&z(k.parent))k.parent.data.pendingInsert=T;else for(var O=0;O<T.length;++O)T[O].data.hook.insert(T[O])}var ne=Xs("attrs,class,staticClass,staticStyle,key");function fe(k,T,P,O){var j,N=T.tag,U=T.data,V=T.children;if(O=O||U&&U.pre,T.elm=k,xt(T.isComment)&&z(T.asyncFactory))return T.isAsyncPlaceholder=!0,!0;if(z(U)&&(z(j=U.hook)&&z(j=j.init)&&j(T,!0),z(j=T.componentInstance)))return d(T,P),!0;if(z(N)){if(z(V))if(!k.hasChildNodes())f(T,V,P);else if(z(j=U)&&z(j=j.domProps)&&z(j=j.innerHTML)){if(j!==k.innerHTML)return!1}else{for(var Q=!0,X=k.firstChild,q=0;q<V.length;q++){if(!X||!fe(X,V[q],P,O)){Q=!1;break}X=X.nextSibling}if(!Q||X)return!1}if(z(U)){var Z=!1;for(var te in U)if(!ne(te)){Z=!0,v(T,P);break}!Z&&U.class&&Bo(U.class)}}else k.data!==T.text&&(k.data=T.text);return!0}return function(T,P,O,j){if(Ie(P)){z(T)&&x(T);return}var N=!1,U=[];if(Ie(T))N=!0,c(P,U);else{var V=z(T.nodeType);if(!V&&Yi(T,P))le(T,P,U,null,null,j);else{if(V){if(T.nodeType===1&&T.hasAttribute(R2)&&(T.removeAttribute(R2),O=!0),xt(O)&&fe(T,P,U))return ue(P,U,!0),T;T=a(T)}var Q=T.elm,X=i.parentNode(Q);if(c(P,U,Q._leaveCb?null:X,i.nextSibling(Q)),z(P.parent))for(var q=P.parent,Z=g(P);q;){for(var te=0;te<s.destroy.length;++te)s.destroy[te](q);if(q.elm=P.elm,Z){for(var re=0;re<s.create.length;++re)s.create[re](hi,q);var _e=q.data.hook.insert;if(_e.merged)for(var Me=_e.fns.slice(1),wt=0;wt<Me.length;wt++)Me[wt]()}else Eo(q);q=q.parent}z(X)?$([T],0,0):z(T.tag)&&x(T)}}return ue(P,U,N),P.elm}}var iO={create:xg,update:xg,destroy:function(e){xg(e,hi)}};function xg(r,e){(r.data.directives||e.data.directives)&&aO(r,e)}function aO(r,e){var t=r===hi,s=e===hi,n=d$(r.data.directives,r.context),i=d$(e.data.directives,e.context),a=[],o=[],l,c,u;for(l in i)c=n[l],u=i[l],c?(u.oldValue=c.value,u.oldArg=c.arg,sc(u,"update",e,r),u.def&&u.def.componentUpdated&&o.push(u)):(sc(u,"bind",e,r),u.def&&u.def.inserted&&a.push(u));if(a.length){var d=function(){for(var p=0;p<a.length;p++)sc(a[p],"inserted",e,r)};t?pi(e,"insert",d):d()}if(o.length&&pi(e,"postpatch",function(){for(var p=0;p<o.length;p++)sc(o[p],"componentUpdated",e,r)}),!t)for(l in n)i[l]||sc(n[l],"unbind",r,r,s)}var oO=Object.create(null);function d$(r,e){var t=Object.create(null);if(!r)return t;var s,n;for(s=0;s<r.length;s++){if(n=r[s],n.modifiers||(n.modifiers=oO),t[lO(n)]=n,e._setupState&&e._setupState.__sfc){var i=n.def||lh(e,"_setupState","v-"+n.name);typeof i=="function"?n.def={bind:i,update:i}:n.def=i}n.def=n.def||lh(e.$options,"directives",n.name)}return t}function lO(r){return r.rawName||"".concat(r.name,".").concat(Object.keys(r.modifiers||{}).join("."))}function sc(r,e,t,s,n){var i=r.def&&r.def[e];if(i)try{i(t.elm,r,t,s,n)}catch(a){$a(a,t.context,"directive ".concat(r.name," ").concat(e," hook"))}}var cO=[tO,iO];function p$(r,e){var t=e.componentOptions;if(!(z(t)&&t.Ctor.options.inheritAttrs===!1)&&!(Ie(r.data.attrs)&&Ie(e.data.attrs))){var s,n,i,a=e.elm,o=r.data.attrs||{},l=e.data.attrs||{};(z(l.__ob__)||xt(l._v_attr_proxy))&&(l=e.data.attrs=mt({},l));for(s in l)n=l[s],i=o[s],i!==n&&h$(a,s,n,e.data.pre);(gl||EC)&&l.value!==o.value&&h$(a,"value",l.value);for(s in o)Ie(l[s])&&(ly(s)?a.removeAttributeNS(q1,c5(s)):l5(s)||a.removeAttribute(s))}}function h$(r,e,t,s){s||r.tagName.indexOf("-")>-1?f$(r,e,t):kE(e)?ch(t)?r.removeAttribute(e):(t=e==="allowfullscreen"&&r.tagName==="EMBED"?"true":e,r.setAttribute(e,t)):l5(e)?r.setAttribute(e,TE(e,t)):ly(e)?ch(t)?r.removeAttributeNS(q1,c5(e)):r.setAttributeNS(q1,e,t):f$(r,e,t)}function f$(r,e,t){if(ch(t))r.removeAttribute(e);else{if(gl&&!vl&&r.tagName==="TEXTAREA"&&e==="placeholder"&&t!==""&&!r.__ieph){var s=function(n){n.stopImmediatePropagation(),r.removeEventListener("input",s)};r.addEventListener("input",s),r.__ieph=!0}r.setAttribute(e,t)}}var uO={create:p$,update:p$};function m$(r,e){var t=e.elm,s=e.data,n=r.data;if(!(Ie(s.staticClass)&&Ie(s.class)&&(Ie(n)||Ie(n.staticClass)&&Ie(n.class)))){var i=DE(e),a=t._transitionClasses;z(a)&&(i=cy(i,uy(a))),i!==t._prevClass&&(t.setAttribute("class",i),t._prevClass=i)}}var dO={create:m$,update:m$},Cg="__r",Pg="__c";function pO(r){if(z(r[Cg])){var e=gl?"change":"input";r[e]=[].concat(r[Cg],r[e]||[]),delete r[Cg]}z(r[Pg])&&(r.change=[].concat(r[Pg],r.change||[]),delete r[Pg])}var tu;function hO(r,e,t){var s=tu;return function n(){var i=e.apply(null,arguments);i!==null&&d5(r,n,t,s)}}var fO=H1&&!(I2&&Number(I2[1])<=53);function mO(r,e,t,s){if(fO){var n=n5,i=e;e=i._wrapper=function(a){if(a.target===a.currentTarget||a.timeStamp>=n||a.timeStamp<=0||a.target.ownerDocument!==document)return i.apply(this,arguments)}}tu.addEventListener(r,e,OC?{capture:t,passive:s}:t)}function d5(r,e,t,s){(s||tu).removeEventListener(r,e._wrapper||e,t)}function Ag(r,e){if(!(Ie(r.data.on)&&Ie(e.data.on))){var t=e.data.on||{},s=r.data.on||{};tu=e.elm||r.elm,pO(t),zC(t,s,mO,d5,hO,e.context),tu=void 0}}var gO={create:Ag,update:Ag,destroy:function(r){return Ag(r,hi)}},Xd;function g$(r,e){if(!(Ie(r.data.domProps)&&Ie(e.data.domProps))){var t,s,n=e.elm,i=r.data.domProps||{},a=e.data.domProps||{};(z(a.__ob__)||xt(a._v_attr_proxy))&&(a=e.data.domProps=mt({},a));for(t in i)t in a||(n[t]="");for(t in a){if(s=a[t],t==="textContent"||t==="innerHTML"){if(e.children&&(e.children.length=0),s===i[t])continue;n.childNodes.length===1&&n.removeChild(n.childNodes[0])}if(t==="value"&&n.tagName!=="PROGRESS"){n._value=s;var o=Ie(s)?"":String(s);vO(n,o)&&(n.value=o)}else if(t==="innerHTML"&&dy(n.tagName)&&Ie(n.innerHTML)){Xd=Xd||document.createElement("div"),Xd.innerHTML="<svg>".concat(s,"</svg>");for(var l=Xd.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;l.firstChild;)n.appendChild(l.firstChild)}else if(s!==i[t])try{n[t]=s}catch{}}}}function vO(r,e){return!r.composing&&(r.tagName==="OPTION"||_O(r,e)||yO(r,e))}function _O(r,e){var t=!0;try{t=document.activeElement!==r}catch{}return t&&r.value!==e}function yO(r,e){var t=r.value,s=r._vModifiers;if(z(s)){if(s.number)return Yc(t)!==Yc(e);if(s.trim)return t.trim()!==e.trim()}return t!==e}var bO={create:g$,update:g$},$O=Na(function(r){var e={},t=/;(?![^(]*\))/g,s=/:(.+)/;return r.split(t).forEach(function(n){if(n){var i=n.split(s);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e});function Lg(r){var e=p5(r.style);return r.staticStyle?mt(r.staticStyle,e):e}function p5(r){return Array.isArray(r)?xC(r):typeof r=="string"?$O(r):r}function wO(r,e){for(var t={},s,n=r;n.componentInstance;)n=n.componentInstance._vnode,n&&n.data&&(s=Lg(n.data))&&mt(t,s);(s=Lg(r.data))&&mt(t,s);for(var i=r;i=i.parent;)i.data&&(s=Lg(i.data))&&mt(t,s);return t}var SO=/^--/,v$=/\s*!important$/,_$=function(r,e,t){if(SO.test(e))r.style.setProperty(e,t);else if(v$.test(t))r.style.setProperty(Wu(e),t.replace(v$,""),"important");else{var s=xO(e);if(Array.isArray(t))for(var n=0,i=t.length;n<i;n++)r.style[s]=t[n];else r.style[s]=t}},y$=["Webkit","Moz","ms"],Jd,xO=Na(function(r){if(Jd=Jd||document.createElement("div").style,r=ya(r),r!=="filter"&&r in Jd)return r;for(var e=r.charAt(0).toUpperCase()+r.slice(1),t=0;t<y$.length;t++){var s=y$[t]+e;if(s in Jd)return s}});function b$(r,e){var t=e.data,s=r.data;if(!(Ie(t.staticStyle)&&Ie(t.style)&&Ie(s.staticStyle)&&Ie(s.style))){var n,i,a=e.elm,o=s.staticStyle,l=s.normalizedStyle||s.style||{},c=o||l,u=p5(e.data.style)||{};e.data.normalizedStyle=z(u.__ob__)?mt({},u):u;var d=wO(e);for(i in c)Ie(d[i])&&_$(a,i,"");for(i in d)n=d[i],_$(a,i,n??"")}}var CO={create:b$,update:b$},h5=/\s+/;function f5(r,e){if(!(!e||!(e=e.trim())))if(r.classList)e.indexOf(" ")>-1?e.split(h5).forEach(function(s){return r.classList.add(s)}):r.classList.add(e);else{var t=" ".concat(r.getAttribute("class")||""," ");t.indexOf(" "+e+" ")<0&&r.setAttribute("class",(t+e).trim())}}function m5(r,e){if(!(!e||!(e=e.trim())))if(r.classList)e.indexOf(" ")>-1?e.split(h5).forEach(function(n){return r.classList.remove(n)}):r.classList.remove(e),r.classList.length||r.removeAttribute("class");else{for(var t=" ".concat(r.getAttribute("class")||""," "),s=" "+e+" ";t.indexOf(s)>=0;)t=t.replace(s," ");t=t.trim(),t?r.setAttribute("class",t):r.removeAttribute("class")}}function g5(r){if(r){if(typeof r=="object"){var e={};return r.css!==!1&&mt(e,$$(r.name||"v")),mt(e,r),e}else if(typeof r=="string")return $$(r)}}var $$=Na(function(r){return{enterClass:"".concat(r,"-enter"),enterToClass:"".concat(r,"-enter-to"),enterActiveClass:"".concat(r,"-enter-active"),leaveClass:"".concat(r,"-leave"),leaveToClass:"".concat(r,"-leave-to"),leaveActiveClass:"".concat(r,"-leave-active")}}),v5=Wr&&!vl,xo="transition",Eg="animation",Tp="transition",uh="transitionend",Y1="animation",_5="animationend";v5&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(Tp="WebkitTransition",uh="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(Y1="WebkitAnimation",_5="webkitAnimationEnd"));var w$=Wr?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(r){return r()};function y5(r){w$(function(){w$(r)})}function ma(r,e){var t=r._transitionClasses||(r._transitionClasses=[]);t.indexOf(e)<0&&(t.push(e),f5(r,e))}function kn(r,e){r._transitionClasses&&Mi(r._transitionClasses,e),m5(r,e)}function b5(r,e,t){var s=$5(r,e),n=s.type,i=s.timeout,a=s.propCount;if(!n)return t();var o=n===xo?uh:_5,l=0,c=function(){r.removeEventListener(o,u),t()},u=function(d){d.target===r&&++l>=a&&c()};setTimeout(function(){l<a&&c()},i+1),r.addEventListener(o,u)}var PO=/\b(transform|all)(,|$)/;function $5(r,e){var t=window.getComputedStyle(r),s=(t[Tp+"Delay"]||"").split(", "),n=(t[Tp+"Duration"]||"").split(", "),i=S$(s,n),a=(t[Y1+"Delay"]||"").split(", "),o=(t[Y1+"Duration"]||"").split(", "),l=S$(a,o),c,u=0,d=0;e===xo?i>0&&(c=xo,u=i,d=n.length):e===Eg?l>0&&(c=Eg,u=l,d=o.length):(u=Math.max(i,l),c=u>0?i>l?xo:Eg:null,d=c?c===xo?n.length:o.length:0);var p=c===xo&&PO.test(t[Tp+"Property"]);return{type:c,timeout:u,propCount:d,hasTransform:p}}function S$(r,e){for(;r.length<e.length;)r=r.concat(r);return Math.max.apply(null,e.map(function(t,s){return x$(t)+x$(r[s])}))}function x$(r){return Number(r.slice(0,-1).replace(",","."))*1e3}function K1(r,e){var t=r.elm;z(t._leaveCb)&&(t._leaveCb.cancelled=!0,t._leaveCb());var s=g5(r.data.transition);if(!Ie(s)&&!(z(t._enterCb)||t.nodeType!==1)){for(var n=s.css,i=s.type,a=s.enterClass,o=s.enterToClass,l=s.enterActiveClass,c=s.appearClass,u=s.appearToClass,d=s.appearActiveClass,p=s.beforeEnter,h=s.enter,f=s.afterEnter,g=s.enterCancelled,v=s.beforeAppear,y=s.appear,C=s.afterAppear,x=s.appearCancelled,$=s.duration,L=fa,G=fa.$vnode;G&&G.parent;)L=G.context,G=G.parent;var K=!L._isMounted||!r.isRootInsert;if(!(K&&!y&&y!=="")){var le=K&&c?c:a,ue=K&&d?d:l,ne=K&&u?u:o,fe=K&&v||p,k=K&&ot(y)?y:h,T=K&&C||f,P=K&&x||g,O=Yc(gr($)?$.enter:$),j=n!==!1&&!vl,N=py(k),U=t._enterCb=eh(function(){j&&(kn(t,ne),kn(t,ue)),U.cancelled?(j&&kn(t,le),P&&P(t)):T&&T(t),t._enterCb=null});r.data.show||pi(r,"insert",function(){var V=t.parentNode,Q=V&&V._pending&&V._pending[r.key];Q&&Q.tag===r.tag&&Q.elm._leaveCb&&Q.elm._leaveCb(),k&&k(t,U)}),fe&&fe(t),j&&(ma(t,le),ma(t,ue),y5(function(){kn(t,le),U.cancelled||(ma(t,ne),N||(S5(O)?setTimeout(U,O):b5(t,i,U)))})),r.data.show&&(e&&e(),k&&k(t,U)),!j&&!N&&U()}}}function w5(r,e){var t=r.elm;z(t._enterCb)&&(t._enterCb.cancelled=!0,t._enterCb());var s=g5(r.data.transition);if(Ie(s)||t.nodeType!==1)return e();if(z(t._leaveCb))return;var n=s.css,i=s.type,a=s.leaveClass,o=s.leaveToClass,l=s.leaveActiveClass,c=s.beforeLeave,u=s.leave,d=s.afterLeave,p=s.leaveCancelled,h=s.delayLeave,f=s.duration,g=n!==!1&&!vl,v=py(u),y=Yc(gr(f)?f.leave:f),C=t._leaveCb=eh(function(){t.parentNode&&t.parentNode._pending&&(t.parentNode._pending[r.key]=null),g&&(kn(t,o),kn(t,l)),C.cancelled?(g&&kn(t,a),p&&p(t)):(e(),d&&d(t)),t._leaveCb=null});h?h(x):x();function x(){C.cancelled||(!r.data.show&&t.parentNode&&((t.parentNode._pending||(t.parentNode._pending={}))[r.key]=r),c&&c(t),g&&(ma(t,a),ma(t,l),y5(function(){kn(t,a),C.cancelled||(ma(t,o),v||(S5(y)?setTimeout(C,y):b5(t,i,C)))})),u&&u(t,C),!g&&!v&&C())}}function S5(r){return typeof r=="number"&&!isNaN(r)}function py(r){if(Ie(r))return!1;var e=r.fns;return z(e)?py(Array.isArray(e)?e[0]:e):(r._length||r.length)>1}function C$(r,e){e.data.show!==!0&&K1(e)}var AO=Wr?{create:C$,activate:C$,remove:function(r,e){r.data.show!==!0?w5(r,e):e()}}:{},LO=[uO,dO,gO,bO,CO,AO],EO=LO.concat(cO),OO=nO({nodeOps:eO,modules:EO});vl&&document.addEventListener("selectionchange",function(){var r=document.activeElement;r&&r.vmodel&&hy(r,"input")});var x5={inserted:function(r,e,t,s){t.tag==="select"?(s.elm&&!s.elm._vOptions?pi(t,"postpatch",function(){x5.componentUpdated(r,e,t)}):P$(r,e,t.context),r._vOptions=[].map.call(r.options,dh)):(t.tag==="textarea"||Z1(r.type))&&(r._vModifiers=e.modifiers,e.modifiers.lazy||(r.addEventListener("compositionstart",TO),r.addEventListener("compositionend",E$),r.addEventListener("change",E$),vl&&(r.vmodel=!0)))},componentUpdated:function(r,e,t){if(t.tag==="select"){P$(r,e,t.context);var s=r._vOptions,n=r._vOptions=[].map.call(r.options,dh);if(n.some(function(a,o){return!ba(a,s[o])})){var i=r.multiple?e.value.some(function(a){return L$(a,n)}):e.value!==e.oldValue&&L$(e.value,n);i&&hy(r,"change")}}}};function P$(r,e,t){A$(r,e),(gl||EC)&&setTimeout(function(){A$(r,e)},0)}function A$(r,e,t){var s=e.value,n=r.multiple;if(!(n&&!Array.isArray(s))){for(var i,a,o=0,l=r.options.length;o<l;o++)if(a=r.options[o],n)i=PC(s,dh(a))>-1,a.selected!==i&&(a.selected=i);else if(ba(dh(a),s)){r.selectedIndex!==o&&(r.selectedIndex=o);return}n||(r.selectedIndex=-1)}}function L$(r,e){return e.every(function(t){return!ba(t,r)})}function dh(r){return"_value"in r?r._value:r.value}function TO(r){r.target.composing=!0}function E$(r){r.target.composing&&(r.target.composing=!1,hy(r.target,"input"))}function hy(r,e){var t=document.createEvent("HTMLEvents");t.initEvent(e,!0,!0),r.dispatchEvent(t)}function X1(r){return r.componentInstance&&(!r.data||!r.data.transition)?X1(r.componentInstance._vnode):r}var kO={bind:function(r,e,t){var s=e.value;t=X1(t);var n=t.data&&t.data.transition,i=r.__vOriginalDisplay=r.style.display==="none"?"":r.style.display;s&&n?(t.data.show=!0,K1(t,function(){r.style.display=i})):r.style.display=s?i:"none"},update:function(r,e,t){var s=e.value,n=e.oldValue;if(!s!=!n){t=X1(t);var i=t.data&&t.data.transition;i?(t.data.show=!0,s?K1(t,function(){r.style.display=r.__vOriginalDisplay}):w5(t,function(){r.style.display="none"})):r.style.display=s?r.__vOriginalDisplay:"none"}},unbind:function(r,e,t,s,n){n||(r.style.display=r.__vOriginalDisplay)}},DO={model:x5,show:kO},C5={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function J1(r){var e=r&&r.componentOptions;return e&&e.Ctor.options.abstract?J1(KC(e.children)):r}function P5(r){var e={},t=r.$options;for(var s in t.propsData)e[s]=r[s];var n=t._parentListeners;for(var s in n)e[ya(s)]=n[s];return e}function O$(r,e){if(/\d-keep-alive$/.test(e.tag))return r("keep-alive",{props:e.componentOptions.propsData})}function MO(r){for(;r=r.parent;)if(r.data.transition)return!0}function RO(r,e){return e.key===r.key&&e.tag===r.tag}var IO=function(r){return r.tag||Xc(r)},FO=function(r){return r.name==="show"},HO={name:"transition",props:C5,abstract:!0,render:function(r){var e=this,t=this.$slots.default;if(t&&(t=t.filter(IO),!!t.length)){var s=this.mode,n=t[0];if(MO(this.$vnode))return n;var i=J1(n);if(!i)return n;if(this._leaving)return O$(r,n);var a="__transition-".concat(this._uid,"-");i.key=i.key==null?i.isComment?a+"comment":a+i.tag:Uu(i.key)?String(i.key).indexOf(a)===0?i.key:a+i.key:i.key;var o=(i.data||(i.data={})).transition=P5(this),l=this._vnode,c=J1(l);if(i.data.directives&&i.data.directives.some(FO)&&(i.data.show=!0),c&&c.data&&!RO(i,c)&&!Xc(c)&&!(c.componentInstance&&c.componentInstance._vnode.isComment)){var u=c.data.transition=mt({},o);if(s==="out-in")return this._leaving=!0,pi(u,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),O$(r,n);if(s==="in-out"){if(Xc(i))return l;var d,p=function(){d()};pi(o,"afterEnter",p),pi(o,"enterCancelled",p),pi(u,"delayLeave",function(h){d=h})}}return n}}},A5=mt({tag:String,moveClass:String},C5);delete A5.mode;var jO={props:A5,beforeMount:function(){var r=this,e=this._update;this._update=function(t,s){var n=t5(r);r.__patch__(r._vnode,r.kept,!1,!0),r._vnode=r.kept,n(),e.call(r,t,s)}},render:function(r){for(var e=this.tag||this.$vnode.data.tag||"span",t=Object.create(null),s=this.prevChildren=this.children,n=this.$slots.default||[],i=this.children=[],a=P5(this),o=0;o<n.length;o++){var l=n[o];l.tag&&l.key!=null&&String(l.key).indexOf("__vlist")!==0&&(i.push(l),t[l.key]=l,(l.data||(l.data={})).transition=a)}if(s){for(var c=[],u=[],o=0;o<s.length;o++){var l=s[o];l.data.transition=a,l.data.pos=l.elm.getBoundingClientRect(),t[l.key]?c.push(l):u.push(l)}this.kept=r(e,null,c),this.removed=u}return r(e,null,i)},updated:function(){var r=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";!r.length||!this.hasMove(r[0].elm,e)||(r.forEach(BO),r.forEach(NO),r.forEach(VO),this._reflow=document.body.offsetHeight,r.forEach(function(t){if(t.data.moved){var s=t.elm,n=s.style;ma(s,e),n.transform=n.WebkitTransform=n.transitionDuration="",s.addEventListener(uh,s._moveCb=function i(a){a&&a.target!==s||(!a||/transform$/.test(a.propertyName))&&(s.removeEventListener(uh,i),s._moveCb=null,kn(s,e))})}}))},methods:{hasMove:function(r,e){if(!v5)return!1;if(this._hasMove)return this._hasMove;var t=r.cloneNode();r._transitionClasses&&r._transitionClasses.forEach(function(n){m5(t,n)}),f5(t,e),t.style.display="none",this.$el.appendChild(t);var s=$5(t);return this.$el.removeChild(t),this._hasMove=s.hasTransform}}};function BO(r){r.elm._moveCb&&r.elm._moveCb(),r.elm._enterCb&&r.elm._enterCb()}function NO(r){r.data.newPos=r.elm.getBoundingClientRect()}function VO(r){var e=r.data.pos,t=r.data.newPos,s=e.left-t.left,n=e.top-t.top;if(s||n){r.data.moved=!0;var i=r.elm.style;i.transform=i.WebkitTransform="translate(".concat(s,"px,").concat(n,"px)"),i.transitionDuration="0s"}}var zO={Transition:HO,TransitionGroup:jO};b.config.mustUseProp=EE;b.config.isReservedTag=u5;b.config.isReservedAttr=AE;b.config.getTagNamespace=jE;b.config.isUnknownElement=BE;mt(b.options.directives,DO);mt(b.options.components,zO);b.prototype.__patch__=Wr?OO:bt;b.prototype.$mount=function(r,e){return r=r&&Wr?NE(r):void 0,RL(this,r,e)};Wr&&setTimeout(function(){ys.devtools&&th&&th.emit("init",b)},0);const UO=Object.freeze(Object.defineProperty({__proto__:null,EffectScope:K0,computed:$A,customRef:mA,default:b,defineAsyncComponent:dL,defineComponent:PL,del:Z0,effectScope:PA,getCurrentInstance:rA,getCurrentScope:NC,h:aL,inject:OA,isProxy:lA,isReactive:ha,isReadonly:Va,isRef:ar,isShallow:sh,markRaw:cA,mergeDefaults:JA,nextTick:Jf,onActivated:yL,onBeforeMount:hL,onBeforeUnmount:vL,onBeforeUpdate:mL,onDeactivated:bL,onErrorCaptured:CL,onMounted:fL,onRenderTracked:wL,onRenderTriggered:SL,onScopeDispose:LA,onServerPrefetch:$L,onUnmounted:_L,onUpdated:gL,provide:EA,proxyRefs:fA,reactive:oA,readonly:HC,ref:uA,set:Yf,shallowReactive:Y0,shallowReadonly:bA,shallowRef:dA,toRaw:RC,toRef:FC,toRefs:gA,triggerRef:pA,unref:hA,useAttrs:KA,useCssModule:cL,useCssVars:uL,useListeners:XA,useSlots:YA,version:QC,watch:CA,watchEffect:SA,watchPostEffect:BC,watchSyncEffect:xA},Symbol.toStringTag,{value:"Module"}));/**
|
||
* 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.debug},trace:{level:Rr.trace},verbose:{level:Rr.verbose}};function Tg(r){return r!==null&&typeof r=="object"}function ev(r,e,t=".",s){if(!Tg(e))return ev(r,{},t);const n=Object.assign({},e);for(const i in r){if(i==="__proto__"||i==="constructor")continue;const a=r[i];a!=null&&(Array.isArray(a)&&Array.isArray(n[i])?n[i]=[...a,...n[i]]:Tg(a)&&Tg(n[i])?n[i]=ev(a,n[i],(t?`${t}.`:"")+i.toString()):n[i]=a)}return n}function nT(r){return(...e)=>e.reduce((t,s)=>ev(t,s,""),{})}const iT=nT();function aT(r){return Object.prototype.toString.call(r)==="[object Object]"}function oT(r){return!(!aT(r)||!r.message&&!r.args||r.stack)}let kg=!1;const D$=[];class lr{constructor(e={}){const t=e.types||k$;this.options=iT({...e,defaults:{...e.defaults},level:Dg(e.level,t),reporters:[...e.reporters||[]]},{types:k$,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const s in t){const n={type:s,...this.options.defaults,...t[s]};this[s]=this._wrapLogFn(n),this[s].raw=this._wrapLogFn(n,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(e){this.options.level=Dg(e,this.options.types,this.options.level)}prompt(e,t){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,t)}create(e){const t=new lr({...this.options,...e});return this._mockFn&&t.mockTypes(this._mockFn),t}withDefaults(e){return this.create({...this.options,defaults:{...this.options.defaults,...e}})}withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}addReporter(e){return this.options.reporters.push(e),this}removeReporter(e){if(e){const t=this.options.reporters.indexOf(e);if(t>=0)return this.options.reporters.splice(t,1)}else this.options.reporters.splice(0);return this}setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}restoreConsole(){for(const e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(e,t){e&&(e.__write||(e.__write=e.write),e.write=s=>{this[t].raw(String(s).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){kg=!0}resumeLogs(){kg=!1;const e=D$.splice(0);for(const t of e)t[0]._logFn(t[1],t[2])}mockTypes(e){const t=e||this.options.mockFn;if(this._mockFn=t,typeof t=="function")for(const s in this.options.types)this[s]=t(s,this.options.types[s])||this[s],this[s].raw=this[s]}_wrapLogFn(e,t){return(...s)=>{if(kg){D$.push([this,e,s,t]);return}return this._logFn(e,s,t)}}_logFn(e,t,s){if((e.level||0)>this.level)return!1;const n={date:new Date,args:[],...e,level:Dg(e.level,this.options.types)};!s&&t.length===1&&oT(t[0])?Object.assign(n,t[0]):n.args=[...t],n.message&&(n.args.unshift(n.message),delete n.message),n.additional&&(Array.isArray(n.additional)||(n.additional=n.additional.split(`
|
||
`)),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 19.42,19.42L20.5,20.5M4.58,19.42C2.68,17.5 1.5,14.9 1.5,12C1.5,9.11 2.68,6.5 4.58,4.58L3.5,3.5C1.34,5.69 0,8.69 0,12C0,15.31 1.34,18.31 3.5,20.5L4.58,19.42Z",MT="M3,14L3.5,14.07L8.07,9.5C7.89,8.85 8.06,8.11 8.59,7.59C9.37,6.8 10.63,6.8 11.41,7.59C11.94,8.11 12.11,8.85 11.93,9.5L14.5,12.07L15,12C15.18,12 15.35,12 15.5,12.07L19.07,8.5C19,8.35 19,8.18 19,8A2,2 0 0,1 21,6A2,2 0 0,1 23,8A2,2 0 0,1 21,10C20.82,10 20.65,10 20.5,9.93L16.93,13.5C17,13.65 17,13.82 17,14A2,2 0 0,1 15,16A2,2 0 0,1 13,14L13.07,13.5L10.5,10.93C10.18,11 9.82,11 9.5,10.93L4.93,15.5L5,16A2,2 0 0,1 3,18A2,2 0 0,1 1,16A2,2 0 0,1 3,14Z",RT="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",IT="M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z",FT="M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",HT="M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",jT="M19,19H5V5H15V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V11H19M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z",BT="M22,16A2,2 0 0,1 20,18H8C6.89,18 6,17.1 6,16V4C6,2.89 6.89,2 8,2H20A2,2 0 0,1 22,4V16M16,20V22H4A2,2 0 0,1 2,20V7H4V20H16Z",NT="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",VT="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",zT="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",UT="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",WT="M6,4H18V5H21V7H18V9H21V11H18V13H21V15H18V17H21V19H18V20H6V19H3V17H6V15H3V13H6V11H3V9H6V7H3V5H6V4M11,15V18H12V15H11M13,15V18H14V15H13M15,15V18H16V15H15Z",GT="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",qT="M12 2C17.5 2 22 6.5 22 12C22 17.5 17.5 22 12 22C6.5 22 2 17.5 2 12C2 6.5 6.5 2 12 2M12 4C7.58 4 4 7.58 4 12C4 16.42 7.58 20 12 20C16.42 20 20 16.42 20 12C20 7.58 16.42 4 12 4M12 5C15.87 5 19 8.13 19 12C19 13.93 18.22 15.68 16.95 16.95L12 12V5Z",ZT="M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z",YT="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",KT="M21.86 12.5C21.1 11.63 20.15 11.13 19 11C19 9.05 18.32 7.4 16.96 6.04C15.6 4.68 13.95 4 12 4C10.42 4 9 4.47 7.75 5.43S5.67 7.62 5.25 9.15C4 9.43 2.96 10.08 2.17 11.1S1 13.28 1 14.58C1 16.09 1.54 17.38 2.61 18.43C3.69 19.5 5 20 6.5 20H18.5C19.75 20 20.81 19.56 21.69 18.69C22.56 17.81 23 16.75 23 15.5C23 14.35 22.62 13.35 21.86 12.5M13 17H11V15H13V17M13 13H11V7H13V13Z",XT="M13 19C13 19.34 13.04 19.67 13.09 20H6.5C5 20 3.69 19.5 2.61 18.43C1.54 17.38 1 16.09 1 14.58C1 13.28 1.39 12.12 2.17 11.1S4 9.43 5.25 9.15C5.67 7.62 6.5 6.38 7.75 5.43S10.42 4 12 4C13.95 4 15.6 4.68 16.96 6.04C18.32 7.4 19 9.05 19 11C20.15 11.13 21.1 11.63 21.86 12.5C22.37 13.07 22.7 13.71 22.86 14.42C21.82 13.54 20.5 13 19 13C15.69 13 13 15.69 13 19M17.75 19.43L16.16 17.84L15 19L17.75 22L22.5 17.25L21.34 15.84L17.75 19.43Z",JT="M5,3H7V5H5V10A2,2 0 0,1 3,12A2,2 0 0,1 5,14V19H7V21H5C3.93,20.73 3,20.1 3,19V15A2,2 0 0,0 1,13H0V11H1A2,2 0 0,0 3,9V5A2,2 0 0,1 5,3M19,3A2,2 0 0,1 21,5V9A2,2 0 0,0 23,11H24V13H23A2,2 0 0,0 21,15V19A2,2 0 0,1 19,21H17V19H19V14A2,2 0 0,1 21,12A2,2 0 0,1 19,10V5H17V3H19M12,15A1,1 0 0,1 13,16A1,1 0 0,1 12,17A1,1 0 0,1 11,16A1,1 0 0,1 12,15M8,15A1,1 0 0,1 9,16A1,1 0 0,1 8,17A1,1 0 0,1 7,16A1,1 0 0,1 8,15M16,15A1,1 0 0,1 17,16A1,1 0 0,1 16,17A1,1 0 0,1 15,16A1,1 0 0,1 16,15Z",QT="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",ek="M15.9,18.45C17.25,18.45 18.35,17.35 18.35,16C18.35,14.65 17.25,13.55 15.9,13.55C14.54,13.55 13.45,14.65 13.45,16C13.45,17.35 14.54,18.45 15.9,18.45M21.1,16.68L22.58,17.84C22.71,17.95 22.75,18.13 22.66,18.29L21.26,20.71C21.17,20.86 21,20.92 20.83,20.86L19.09,20.16C18.73,20.44 18.33,20.67 17.91,20.85L17.64,22.7C17.62,22.87 17.47,23 17.3,23H14.5C14.32,23 14.18,22.87 14.15,22.7L13.89,20.85C13.46,20.67 13.07,20.44 12.71,20.16L10.96,20.86C10.81,20.92 10.62,20.86 10.54,20.71L9.14,18.29C9.05,18.13 9.09,17.95 9.22,17.84L10.7,16.68L10.65,16L10.7,15.31L9.22,14.16C9.09,14.05 9.05,13.86 9.14,13.71L10.54,11.29C10.62,11.13 10.81,11.07 10.96,11.13L12.71,11.84C13.07,11.56 13.46,11.32 13.89,11.15L14.15,9.29C14.18,9.13 14.32,9 14.5,9H17.3C17.47,9 17.62,9.13 17.64,9.29L17.91,11.15C18.33,11.32 18.73,11.56 19.09,11.84L20.83,11.13C21,11.07 21.17,11.13 21.26,11.29L22.66,13.71C22.75,13.86 22.71,14.05 22.58,14.16L21.1,15.31L21.15,16L21.1,16.68M6.69,8.07C7.56,8.07 8.26,7.37 8.26,6.5C8.26,5.63 7.56,4.92 6.69,4.92A1.58,1.58 0 0,0 5.11,6.5C5.11,7.37 5.82,8.07 6.69,8.07M10.03,6.94L11,7.68C11.07,7.75 11.09,7.87 11.03,7.97L10.13,9.53C10.08,9.63 9.96,9.67 9.86,9.63L8.74,9.18L8,9.62L7.81,10.81C7.79,10.92 7.7,11 7.59,11H5.79C5.67,11 5.58,10.92 5.56,10.81L5.4,9.62L4.64,9.18L3.5,9.63C3.41,9.67 3.3,9.63 3.24,9.53L2.34,7.97C2.28,7.87 2.31,7.75 2.39,7.68L3.34,6.94L3.31,6.5L3.34,6.06L2.39,5.32C2.31,5.25 2.28,5.13 2.34,5.03L3.24,3.47C3.3,3.37 3.41,3.33 3.5,3.37L4.63,3.82L5.4,3.38L5.56,2.19C5.58,2.08 5.67,2 5.79,2H7.59C7.7,2 7.79,2.08 7.81,2.19L8,3.38L8.74,3.82L9.86,3.37C9.96,3.33 10.08,3.37 10.13,3.47L11.03,5.03C11.09,5.13 11.07,5.25 11,5.32L10.03,6.06L10.06,6.5L10.03,6.94Z",tk="M20,19V7H4V19H20M20,3A2,2 0 0,1 22,5V19A2,2 0 0,1 20,21H4A2,2 0 0,1 2,19V5C2,3.89 2.9,3 4,3H20M13,17V15H18V17H13M9.58,13L5.57,9H8.4L11.7,12.3C12.09,12.69 12.09,13.33 11.7,13.72L8.42,17H5.59L9.58,13Z",rk="M13,19V16H21V19H13M8.5,13L2.47,7H6.71L11.67,11.95C12.25,12.54 12.25,13.5 11.67,14.07L6.74,19H2.5L8.5,13Z",sk="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z",nk="M11,17H4A2,2 0 0,1 2,15V3A2,2 0 0,1 4,1H16V3H4V15H11V13L15,16L11,19V17M19,21V7H8V13H6V7A2,2 0 0,1 8,5H19A2,2 0 0,1 21,7V21A2,2 0 0,1 19,23H8A2,2 0 0,1 6,21V19H8V21H19Z",ik="M17 3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V7L17 3M19 19H5V5H16.17L19 7.83V19M12 12C10.34 12 9 13.34 9 15S10.34 18 12 18 15 16.66 15 15 13.66 12 12 12M6 6H15V10H6V6Z",ak="M17,22V20H20V17H22V20.5C22,20.89 21.84,21.24 21.54,21.54C21.24,21.84 20.89,22 20.5,22H17M7,22H3.5C3.11,22 2.76,21.84 2.46,21.54C2.16,21.24 2,20.89 2,20.5V17H4V20H7V22M17,2H20.5C20.89,2 21.24,2.16 21.54,2.46C21.84,2.76 22,3.11 22,3.5V7H20V4H17V2M7,2V4H4V7H2V3.5C2,3.11 2.16,2.76 2.46,2.46C2.76,2.16 3.11,2 3.5,2H7M13,17.25L17,14.95V10.36L13,12.66V17.25M12,10.92L16,8.63L12,6.28L8,8.63L12,10.92M7,14.95L11,17.25V12.66L7,10.36V14.95M18.23,7.59C18.73,7.91 19,8.34 19,8.91V15.23C19,15.8 18.73,16.23 18.23,16.55L12.75,19.73C12.25,20.05 11.75,20.05 11.25,19.73L5.77,16.55C5.27,16.23 5,15.8 5,15.23V8.91C5,8.34 5.27,7.91 5.77,7.59L11.25,4.41C11.5,4.28 11.75,4.22 12,4.22C12.25,4.22 12.5,4.28 12.75,4.41L18.23,7.59Z",ok="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",M$="M8,2H16A2,2 0 0,1 18,4V20A2,2 0 0,1 16,22H8A2,2 0 0,1 6,20V4A2,2 0 0,1 8,2M8,4V6H16V4H8M16,8H8V10H16V8M16,18H14V20H16V18Z",lk="M12 16C13.1 16 14 16.9 14 18S13.1 20 12 20 10 19.1 10 18 10.9 16 12 16M12 10C13.1 10 14 10.9 14 12S13.1 14 12 14 10 13.1 10 12 10.9 10 12 10M12 4C13.1 4 14 4.9 14 6S13.1 8 12 8 10 7.1 10 6 10.9 4 12 4M6 16C7.1 16 8 16.9 8 18S7.1 20 6 20 4 19.1 4 18 4.9 16 6 16M6 10C7.1 10 8 10.9 8 12S7.1 14 6 14 4 13.1 4 12 4.9 10 6 10M6 4C7.1 4 8 4.9 8 6S7.1 8 6 8 4 7.1 4 6 4.9 4 6 4M18 16C19.1 16 20 16.9 20 18S19.1 20 18 20 16 19.1 16 18 16.9 16 18 16M18 10C19.1 10 20 10.9 20 12S19.1 14 18 14 16 13.1 16 12 16.9 10 18 10M18 4C19.1 4 20 4.9 20 6S19.1 8 18 8 16 7.1 16 6 16.9 4 18 4Z",ck="M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z",uk="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",dk="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",pk="M7,19V17H9V19H7M11,19V17H13V19H11M15,19V17H17V19H15M7,15V13H9V15H7M11,15V13H13V15H11M15,15V13H17V15H15M7,11V9H9V11H7M11,11V9H13V11H11M15,11V9H17V11H15M7,7V5H9V7H7M11,7V5H13V7H11M15,7V5H17V7H15Z",hk="M12,11A1,1 0 0,0 11,12A1,1 0 0,0 12,13A1,1 0 0,0 13,12A1,1 0 0,0 12,11M12.5,2C17,2 17.11,5.57 14.75,6.75C13.76,7.24 13.32,8.29 13.13,9.22C13.61,9.42 14.03,9.73 14.35,10.13C18.05,8.13 22.03,8.92 22.03,12.5C22.03,17 18.46,17.1 17.28,14.73C16.78,13.74 15.72,13.3 14.79,13.11C14.59,13.59 14.28,14 13.88,14.34C15.87,18.03 15.08,22 11.5,22C7,22 6.91,18.42 9.27,17.24C10.25,16.75 10.69,15.71 10.89,14.79C10.4,14.59 9.97,14.27 9.65,13.87C5.96,15.85 2,15.07 2,11.5C2,7 5.56,6.89 6.74,9.26C7.24,10.25 8.29,10.68 9.22,10.87C9.41,10.39 9.73,9.97 10.14,9.65C8.15,5.96 8.94,2 12.5,2Z",fk="M13,9V3.5L18.5,9M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6Z",mk="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M10.5,11C8,11 6,13 6,15.5C6,18 8,20 10.5,20C13,20 15,18 15,15.5C15,13 13,11 10.5,11M10.5,12.5A3,3 0 0,1 13.5,15.5C13.5,16.06 13.35,16.58 13.08,17L9,12.92C9.42,12.65 9.94,12.5 10.5,12.5M7.5,15.5C7.5,14.94 7.65,14.42 7.92,14L12,18.08C11.58,18.35 11.06,18.5 10.5,18.5A3,3 0 0,1 7.5,15.5Z",gk="M14 2H6C4.89 2 4 2.9 4 4V20C4 21.11 4.89 22 6 22H18C19.11 22 20 21.11 20 20V8L14 2M18 20H6V4H13V9H18V20M9.54 15.65L11.63 17.74L10.35 19L7 15.65L10.35 12.3L11.63 13.56L9.54 15.65M17 15.65L13.65 19L12.38 17.74L14.47 15.65L12.38 13.56L13.65 12.3L17 15.65Z",vk="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M6,20H15L18,20V12L14,16L12,14L6,20M8,9A2,2 0 0,0 6,11A2,2 0 0,0 8,13A2,2 0 0,0 10,11A2,2 0 0,0 8,9Z",_k="M18 13C16.6 13 15.2 14.1 15.2 15.5V17C14.6 17 14 17.6 14 18.2V21.7C14 22.4 14.6 23 15.2 23H20.7C21.4 23 22 22.4 22 21.8V18.3C22 17.6 21.4 17 20.8 17V15.5C20.8 14.1 19.4 13 18 13M18 14.2C18.8 14.2 19.5 14.7 19.5 15.5V17H16.5V15.5C16.5 14.7 17.2 14.2 18 14.2M6 2C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H12V18.2C12 17.2 12.4 16.5 13 16C13.1 15.9 13.2 15.9 13.2 15.8V15.5C13.2 12.8 15.6 11 18 11C18.7 11 19.4 11.2 20 11.4V8L14 2H6M13 3.5L18.5 9H13V3.5Z",yk="M14 2H6C4.89 2 4 2.89 4 4V20C4 21.11 4.89 22 6 22H13.81C13.28 21.09 13 20.05 13 19C13 15.69 15.69 13 19 13C19.34 13 19.67 13.03 20 13.08V8L14 2M13 9V3.5L18.5 9H13M23 20H20V23H18V20H15V18H18V15H20V18H23V20Z",bk="M18 14.5C19.11 14.5 20.11 14.95 20.83 15.67L22 14.5V18.5H18L19.77 16.73C19.32 16.28 18.69 16 18 16C16.62 16 15.5 17.12 15.5 18.5C15.5 19.88 16.62 21 18 21C18.82 21 19.54 20.61 20 20H21.71C21.12 21.47 19.68 22.5 18 22.5C15.79 22.5 14 20.71 14 18.5C14 16.29 15.79 14.5 18 14.5M14 2L20 8V12.17C19.5 12.06 19 12 18.5 12L18 12V9H13V4H6V20H12.17C12.34 20.72 12.63 21.39 13 22H6C4.9 22 4 21.1 4 20V4C4 2.9 4.9 2 6 2H14Z",$k="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M10,13H7V11H10V13M14,13H11V11H14V13M10,16H7V14H10V16M14,16H11V14H14V16M10,19H7V17H10V19M14,19H11V17H14V19Z",wk="M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M16,18L13.5,16.3V18H8V13H13.5V14.7L16,13V18Z",Sk="M15,19.88C15.04,20.18 14.94,20.5 14.71,20.71C14.32,21.1 13.69,21.1 13.3,20.71L9.29,16.7C9.06,16.47 8.96,16.16 9,15.87V10.75L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L15,10.75V19.88M7.04,5L11,10.06V15.58L13,17.58V10.05L16.96,5H7.04Z",xk="M17.66 11.2C17.43 10.9 17.15 10.64 16.89 10.38C16.22 9.78 15.46 9.35 14.82 8.72C13.33 7.26 13 4.85 13.95 3C13 3.23 12.17 3.75 11.46 4.32C8.87 6.4 7.85 10.07 9.07 13.22C9.11 13.32 9.15 13.42 9.15 13.55C9.15 13.77 9 13.97 8.8 14.05C8.57 14.15 8.33 14.09 8.14 13.93C8.08 13.88 8.04 13.83 8 13.76C6.87 12.33 6.69 10.28 7.45 8.64C5.78 10 4.87 12.3 5 14.47C5.06 14.97 5.12 15.47 5.29 15.97C5.43 16.57 5.7 17.17 6 17.7C7.08 19.43 8.95 20.67 10.96 20.92C13.1 21.19 15.39 20.8 17.03 19.32C18.86 17.66 19.5 15 18.56 12.72L18.43 12.46C18.22 12 17.66 11.2 17.66 11.2M14.5 17.5C14.22 17.74 13.76 18 13.4 18.1C12.28 18.5 11.16 17.94 10.5 17.28C11.69 17 12.4 16.12 12.61 15.23C12.78 14.43 12.46 13.77 12.33 13C12.21 12.26 12.23 11.63 12.5 10.94C12.69 11.32 12.89 11.7 13.13 12C13.9 13 15.11 13.44 15.37 14.8C15.41 14.94 15.43 15.08 15.43 15.23C15.46 16.05 15.1 16.95 14.5 17.5H14.5Z",Ck="M15.66 11.2C15.43 10.9 15.15 10.64 14.89 10.38C14.22 9.78 13.46 9.35 12.82 8.72C11.33 7.26 11 4.85 11.95 3C11 3.23 10.17 3.75 9.46 4.32C6.87 6.4 5.85 10.07 7.07 13.22C7.11 13.32 7.15 13.42 7.15 13.55C7.15 13.77 7 13.97 6.8 14.05C6.57 14.15 6.33 14.09 6.14 13.93C6.08 13.88 6.04 13.83 6 13.76C4.87 12.33 4.69 10.28 5.45 8.64C3.78 10 2.87 12.3 3 14.47C3.06 14.97 3.12 15.47 3.29 15.97C3.43 16.57 3.7 17.17 4 17.7C5.08 19.43 6.95 20.67 8.96 20.92C11.1 21.19 13.39 20.8 15.03 19.32C16.86 17.66 17.5 15 16.56 12.72L16.43 12.46C16.22 12 15.66 11.2 15.66 11.2M12.5 17.5C12.22 17.74 11.76 18 11.4 18.1C10.28 18.5 9.16 17.94 8.5 17.28C9.69 17 10.4 16.12 10.61 15.23C10.78 14.43 10.46 13.77 10.33 13C10.21 12.26 10.23 11.63 10.5 10.94C10.69 11.32 10.89 11.7 11.13 12C11.9 13 13.11 13.44 13.37 14.8C13.41 14.94 13.43 15.08 13.43 15.23C13.46 16.05 13.1 16.95 12.5 17.5H12.5M21 13H19V7H21V13M21 17H19V15H21V17Z",Pk="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",Ak="M22 8V13.81C21.12 13.3 20.1 13 19 13C15.69 13 13 15.69 13 19C13 19.34 13.04 19.67 13.09 20H4C2.9 20 2 19.11 2 18V6C2 4.89 2.89 4 4 4H10L12 6H20C21.1 6 22 6.89 22 8M16 18H18V22H20V18H22L19 15L16 18Z",Lk="M13 20H4C2.9 20 2 19.11 2 18V6C2 4.89 2.89 4 4 4H10L12 6H20C21.1 6 22 6.89 22 8V11.04C21.17 10.4 20.13 10 19 10C16.4 10 14.2 12.06 14.2 14.5V14.74C13.5 15.34 13 16.24 13 17.2V20M23 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",Ek="M14,18V15H10V11H14V8L19,13M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z",Ok="M19,20H4C2.89,20 2,19.1 2,18V6C2,4.89 2.89,4 4,4H10L12,6H19A2,2 0 0,1 21,8H21L4,8V18L6.14,10H23.21L20.93,18.5C20.7,19.37 19.92,20 19,20Z",Tk="M13 19C13 19.34 13.04 19.67 13.09 20H4C2.9 20 2 19.11 2 18V6C2 4.89 2.89 4 4 4H10L12 6H20C21.1 6 22 6.89 22 8V13.81C21.12 13.3 20.1 13 19 13C15.69 13 13 15.69 13 19M20 18V15H18V18H15V20H18V23H20V20H23V18H20Z",kk="M20,6A2,2 0 0,1 22,8V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4H10L12,6H20M10.75,13H14V17H16V13H19.25L15,8.75",Dk="M17,7H22V17H17V19A1,1 0 0,0 18,20H20V22H17.5C16.95,22 16,21.55 16,21C16,21.55 15.05,22 14.5,22H12V20H14A1,1 0 0,0 15,19V5A1,1 0 0,0 14,4H12V2H14.5C15.05,2 16,2.45 16,3C16,2.45 16.95,2 17.5,2H20V4H18A1,1 0 0,0 17,5V7M2,7H13V9H4V15H13V17H2V7M20,15V9H17V15H20Z",Mk="M10,13H22V11H10M10,19H22V17H10M10,7H22V5H10M6,7H8.5L5,3.5L1.5,7H4V17H1.5L5,20.5L8.5,17H6V7Z",Rk="M7,5H21V7H7V5M7,13V11H21V13H7M4,4.5A1.5,1.5 0 0,1 5.5,6A1.5,1.5 0 0,1 4,7.5A1.5,1.5 0 0,1 2.5,6A1.5,1.5 0 0,1 4,4.5M4,10.5A1.5,1.5 0 0,1 5.5,12A1.5,1.5 0 0,1 4,13.5A1.5,1.5 0 0,1 2.5,12A1.5,1.5 0 0,1 4,10.5M7,19V17H21V19H7M4,16.5A1.5,1.5 0 0,1 5.5,18A1.5,1.5 0 0,1 4,19.5A1.5,1.5 0 0,1 2.5,18A1.5,1.5 0 0,1 4,16.5Z",Ik="M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z",Fk="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4A8,8 0 0,1 20,12C20,14.4 19,16.5 17.3,18C15.9,16.7 14,16 12,16C10,16 8.2,16.7 6.7,18C5,16.5 4,14.4 4,12A8,8 0 0,1 12,4M14,5.89C13.62,5.9 13.26,6.15 13.1,6.54L11.81,9.77L11.71,10C11,10.13 10.41,10.6 10.14,11.26C9.73,12.29 10.23,13.45 11.26,13.86C12.29,14.27 13.45,13.77 13.86,12.74C14.12,12.08 14,11.32 13.57,10.76L13.67,10.5L14.96,7.29L14.97,7.26C15.17,6.75 14.92,6.17 14.41,5.96C14.28,5.91 14.15,5.89 14,5.89M10,6A1,1 0 0,0 9,7A1,1 0 0,0 10,8A1,1 0 0,0 11,7A1,1 0 0,0 10,6M7,9A1,1 0 0,0 6,10A1,1 0 0,0 7,11A1,1 0 0,0 8,10A1,1 0 0,0 7,9M17,9A1,1 0 0,0 16,10A1,1 0 0,0 17,11A1,1 0 0,0 18,10A1,1 0 0,0 17,9Z",Hk="M13.78 15.3L19.78 21.3L21.89 19.14L15.89 13.14L13.78 15.3M17.5 10.1C17.11 10.1 16.69 10.05 16.36 9.91L4.97 21.25L2.86 19.14L10.27 11.74L8.5 9.96L7.78 10.66L6.33 9.25V12.11L5.63 12.81L2.11 9.25L2.81 8.55H5.62L4.22 7.14L7.78 3.58C8.95 2.41 10.83 2.41 12 3.58L9.89 5.74L11.3 7.14L10.59 7.85L12.38 9.63L14.2 7.75C14.06 7.42 14 7 14 6.63C14 4.66 15.56 3.11 17.5 3.11C18.09 3.11 18.61 3.25 19.08 3.53L16.41 6.2L17.91 7.7L20.58 5.03C20.86 5.5 21 6 21 6.63C21 8.55 19.45 10.1 17.5 10.1Z",jk="M13 24C9.74 24 6.81 22 5.6 19L2.57 11.37C2.26 10.58 3 9.79 3.81 10.05L4.6 10.31C5.16 10.5 5.62 10.92 5.84 11.47L7.25 15H8V3.25C8 2.56 8.56 2 9.25 2S10.5 2.56 10.5 3.25V12H11.5V1.25C11.5 .56 12.06 0 12.75 0S14 .56 14 1.25V12H15V2.75C15 2.06 15.56 1.5 16.25 1.5C16.94 1.5 17.5 2.06 17.5 2.75V12H18.5V5.75C18.5 5.06 19.06 4.5 19.75 4.5S21 5.06 21 5.75V16C21 20.42 17.42 24 13 24Z",Bk="M6,2H18A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2M12,4A6,6 0 0,0 6,10C6,13.31 8.69,16 12.1,16L11.22,13.77C10.95,13.29 11.11,12.68 11.59,12.4L12.45,11.9C12.93,11.63 13.54,11.79 13.82,12.27L15.74,14.69C17.12,13.59 18,11.9 18,10A6,6 0 0,0 12,4M12,9A1,1 0 0,1 13,10A1,1 0 0,1 12,11A1,1 0 0,1 11,10A1,1 0 0,1 12,9M7,18A1,1 0 0,0 6,19A1,1 0 0,0 7,20A1,1 0 0,0 8,19A1,1 0 0,0 7,18M12.09,13.27L14.58,19.58L17.17,18.08L12.95,12.77L12.09,13.27Z",Nk="M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",Vk="M13.5,8H12V13L16.28,15.54L17,14.33L13.5,12.25V8M13,3A9,9 0 0,0 4,12H1L4.96,16.03L9,12H6A7,7 0 0,1 13,5A7,7 0 0,1 20,12A7,7 0 0,1 13,19C11.07,19 9.32,18.21 8.06,16.94L6.64,18.36C8.27,20 10.5,21 13,21A9,9 0 0,0 22,12A9,9 0 0,0 13,3",zk="M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z",Uk="M21,15H23V17H21V15M21,11H23V13H21V11M23,19H21V21C22,21 23,20 23,19M13,3H15V5H13V3M21,7H23V9H21V7M21,3V5H23C23,4 22,3 21,3M1,7H3V9H1V7M17,3H19V5H17V3M17,19H19V21H17V19M3,3C2,3 1,4 1,5H3V3M9,3H11V5H9V3M5,3H7V5H5V3M1,11V19A2,2 0 0,0 3,21H15V11H1M3,19L5.5,15.79L7.29,17.94L9.79,14.72L13,19H3Z",Wk="M12,16L19.36,10.27L21,9L12,2L3,9L4.63,10.27M12,18.54L4.62,12.81L3,14.07L12,21.07L21,14.07L19.37,12.8L12,18.54Z",Gk="M22,17V19H14V17H22M11,16L2,9L11,2L20,9L11,16M11,18.54L12,17.75V18C12,18.71 12.12,19.39 12.35,20L11,21.07L2,14.07L3.62,12.81L11,18.54Z",qk="M17,14H19V17H22V19H19V22H17V19H14V17H17V14M11,16L2,9L11,2L20,9L11,16M11,18.54L12,17.75V18C12,18.71 12.12,19.39 12.35,20L11,21.07L2,14.07L3.62,12.81L11,18.54Z",Zk="M12 16.54L19.37 10.8L21 12.07L12 19.07L3 12.07L4.62 10.81L12 16.54M12 14L3 7L12 0L21 7L12 14M12 2.53L6.26 7L12 11.47L17.74 7L12 2.53M12 21.47L19.37 15.73L21 17L12 24L3 17L4.62 15.74L12 21.47",Yk="M16.5 11L13 7.5L14.4 6.1L16.5 8.2L20.7 4L22.1 5.4L16.5 11M11 7H2V9H11V7M21 13.4L19.6 12L17 14.6L14.4 12L13 13.4L15.6 16L13 18.6L14.4 20L17 17.4L19.6 20L21 18.6L18.4 16L21 13.4M11 15H2V17H11V15Z",Kk="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",Xk="M18 1C15.24 1 13 3.24 13 6V8H4C2.9 8 2 8.89 2 10V20C2 21.11 2.9 22 4 22H16C17.11 22 18 21.11 18 20V10C18 8.9 17.11 8 16 8H15V6C15 4.34 16.34 3 18 3C19.66 3 21 4.34 21 6V8H23V6C23 3.24 20.76 1 18 1M10 13C11.1 13 12 13.89 12 15C12 16.11 11.11 17 10 17C8.9 17 8 16.11 8 15C8 13.9 8.9 13 10 13Z",Jk="M12.63,2C18.16,2 22.64,6.5 22.64,12C22.64,17.5 18.16,22 12.63,22C9.12,22 6.05,20.18 4.26,17.43L5.84,16.18C7.25,18.47 9.76,20 12.64,20A8,8 0 0,0 20.64,12A8,8 0 0,0 12.64,4C8.56,4 5.2,7.06 4.71,11H7.47L3.73,14.73L0,11H2.69C3.19,5.95 7.45,2 12.63,2M15.59,10.24C16.09,10.25 16.5,10.65 16.5,11.16V15.77C16.5,16.27 16.09,16.69 15.58,16.69H10.05C9.54,16.69 9.13,16.27 9.13,15.77V11.16C9.13,10.65 9.54,10.25 10.04,10.24V9.23C10.04,7.7 11.29,6.46 12.81,6.46C14.34,6.46 15.59,7.7 15.59,9.23V10.24M12.81,7.86C12.06,7.86 11.44,8.47 11.44,9.23V10.24H14.19V9.23C14.19,8.47 13.57,7.86 12.81,7.86Z",Qk="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",eD="M9,2A7,7 0 0,1 16,9C16,10.57 15.5,12 14.61,13.19L15.41,14H16L22,20L20,22L14,16V15.41L13.19,14.61C12,15.5 10.57,16 9,16A7,7 0 0,1 2,9A7,7 0 0,1 9,2M5,8V10H13V8H5Z",tD="M9,2A7,7 0 0,1 16,9C16,10.57 15.5,12 14.61,13.19L15.41,14H16L22,20L20,22L14,16V15.41L13.19,14.61C12,15.5 10.57,16 9,16A7,7 0 0,1 2,9A7,7 0 0,1 9,2M8,5V8H5V10H8V13H10V10H13V8H10V5H8Z",rD="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",sD="M20,2A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H6L2,22V4C2,2.89 2.9,2 4,2H20M4,4V17.17L5.17,16H20V4H4M6,7H18V9H6V7M6,11H15V13H6V11Z",nD="M19,13H5V11H19V13Z",iD="M9,6H5V10H7V8H9M19,10H17V12H15V14H19M21,16H3V4H21M21,2H3C1.89,2 1,2.89 1,4V16A2,2 0 0,0 3,18H10V20H8V22H16V20H14V18H21A2,2 0 0,0 23,16V4C23,2.89 22.1,2 21,2",aD="M7 13H3C2.45 13 2 12.55 2 12S2.45 11 3 11H7C7.55 11 8 11.45 8 12S7.55 13 7 13M6 8C6 7.45 5.55 7 5 7H4C3.45 7 3 7.45 3 8S3.45 9 4 9H5C5.55 9 6 8.55 6 8M22 12C22 14.76 19.76 17 17 17H4C3.45 17 3 16.55 3 16S3.45 15 4 15H13C12.58 14.42 12.25 13.74 12.1 13H10C9.45 13 9 12.55 9 12S9.45 11 10 11H12.1C12.25 10.26 12.58 9.58 13 9H8C7.45 9 7 8.55 7 8S7.45 7 8 7H17C19.76 7 22 9.24 22 12M20 12C20 10.35 18.65 9 17 9S14 10.35 14 12C14 13.65 15.35 15 17 15S20 13.65 20 12Z",oD="M12,10L8,14H11V20H13V14H16M19,4H5C3.89,4 3,4.9 3,6V18A2,2 0 0,0 5,20H9V18H5V8H19V18H15V20H19A2,2 0 0,0 21,18V6A2,2 0 0,0 19,4Z",lD="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",cD="M14,19H18V5H14M6,19H10V5H6V19Z",uD="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",dD="M5.5,2A2.5,2.5 0 0,0 3,4.5V5A1,1 0 0,0 2,6V10A1,1 0 0,0 3,11H8A1,1 0 0,0 9,10V6A1,1 0 0,0 8,5V4.5A2.5,2.5 0 0,0 5.5,2M5.5,3A1.5,1.5 0 0,1 7,4.5V5H4V4.5A1.5,1.5 0 0,1 5.5,3M19.66,3C19.4,3 19.16,3.09 18.97,3.28L17.13,5.13L20.88,8.88L22.72,7.03C23.11,6.64 23.11,6 22.72,5.63L20.38,3.28C20.18,3.09 19.91,3 19.66,3M16.06,6.19L5,17.25V21H8.75L19.81,9.94L16.06,6.19Z",R$="M8,5.14V19.14L19,12.14L8,5.14Z",pD="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",hD="M16.56,5.44L15.11,6.89C16.84,7.94 18,9.83 18,12A6,6 0 0,1 12,18A6,6 0 0,1 6,12C6,9.83 7.16,7.94 8.88,6.88L7.44,5.44C5.36,6.88 4,9.28 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12C20,9.28 18.64,6.88 16.56,5.44M13,3H11V13H13",fD="M12,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,19A7,7 0 0,1 5,12A7,7 0 0,1 12,5A7,7 0 0,1 19,12A7,7 0 0,1 12,19M13,17H11V7H13V17Z",I$="M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z",mD="M19,6A1,1 0 0,0 20,5A1,1 0 0,0 19,4A1,1 0 0,0 18,5A1,1 0 0,0 19,6M19,2A3,3 0 0,1 22,5V11H18V7H6V11H2V5A3,3 0 0,1 5,2H19M18,18.25C18,18.63 17.79,18.96 17.47,19.13L12.57,21.82C12.4,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L6.53,19.13C6.21,18.96 6,18.63 6,18.25V13C6,12.62 6.21,12.29 6.53,12.12L11.43,9.68C11.59,9.56 11.79,9.5 12,9.5C12.21,9.5 12.4,9.56 12.57,9.68L17.47,12.12C17.79,12.29 18,12.62 18,13V18.25M12,11.65L9.04,13L12,14.6L14.96,13L12,11.65M8,17.66L11,19.29V16.33L8,14.71V17.66M16,17.66V14.71L13,16.33V19.29L16,17.66Z",gD="M7,2H17V8H19V13H16.5L13,17H11L7.5,13H5V8H7V2M10,22H2V20H10A1,1 0 0,0 11,19V18H13V19A3,3 0 0,1 10,22Z",vD="M7 2H17V7H19V13H16.5L13 17H11L7.5 13H5V7H7V2M10 22H2V20H10C10.6 20 11 19.5 11 19V18H13V19C13 20.7 11.7 22 10 22M7 9V11H8.5L12 15L15.5 11H17V9H15V4H9V9H7M21 13V7H23V13H21M21 17V15H23V17H21Z",_D="M7,2H17V7H19V13H16.5L13,17H11L7.5,13H5V7H7V2M10,22H2V20H10A1,1 0 0,0 11,19V18H13V19A3,3 0 0,1 10,22M7,9V11H8.5L12,15L15.5,11H17V9H15V4H9V9H7Z",yD="M13 18H11V16H13V18M13 15H11C11 11.75 14 12 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 12.5 13 12.75 13 15M22 12C22 17.18 18.05 21.45 13 21.95V19.94C16.95 19.45 20 16.08 20 12C20 7.92 16.95 4.55 13 4.06V2.05C18.05 2.55 22 6.82 22 12M11 2.05V4.06C9.54 4.24 8.2 4.82 7.09 5.68L5.67 4.26C7.15 3.05 9 2.25 11 2.05M4.06 11H2.05C2.25 9 3.05 7.15 4.26 5.67L5.68 7.1C4.82 8.2 4.24 9.54 4.06 11M11 19.94V21.95C9 21.75 7.15 20.96 5.67 19.74L7.09 18.32C8.2 19.18 9.54 19.76 11 19.94M2.05 13H4.06C4.24 14.46 4.82 15.8 5.68 16.91L4.26 18.33C3.05 16.85 2.25 15 2.05 13Z",bD="M13,2.03C17.73,2.5 21.5,6.25 21.95,11C22.5,16.5 18.5,21.38 13,21.93V19.93C16.64,19.5 19.5,16.61 19.96,12.97C20.5,8.58 17.39,4.59 13,4.05V2.05L13,2.03M11,2.06V4.06C9.57,4.26 8.22,4.84 7.1,5.74L5.67,4.26C7.19,3 9.05,2.25 11,2.06M4.26,5.67L5.69,7.1C4.8,8.23 4.24,9.58 4.05,11H2.05C2.25,9.04 3,7.19 4.26,5.67M2.06,13H4.06C4.24,14.42 4.81,15.77 5.69,16.9L4.27,18.33C3.03,16.81 2.26,14.96 2.06,13M7.1,18.37C8.23,19.25 9.58,19.82 11,20V22C9.04,21.79 7.18,21 5.67,19.74L7.1,18.37M12,7.5L7.5,12H11V16H13V12H16.5L12,7.5Z",$D="M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z",wD="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",SD="M12,4C14.1,4 16.1,4.8 17.6,6.3C20.7,9.4 20.7,14.5 17.6,17.6C15.8,19.5 13.3,20.2 10.9,19.9L11.4,17.9C13.1,18.1 14.9,17.5 16.2,16.2C18.5,13.9 18.5,10.1 16.2,7.7C15.1,6.6 13.5,6 12,6V10.6L7,5.6L12,0.6V4M6.3,17.6C3.7,15 3.3,11 5.1,7.9L6.6,9.4C5.5,11.6 5.9,14.4 7.8,16.2C8.3,16.7 8.9,17.1 9.6,17.4L9,19.4C8,19 7.1,18.4 6.3,17.6Z",xD="M10 4.03V.633L5 5.63L10 10.63V6.03C11.5 6.03 13.11 6.63 14.21 7.73C16.5 10.13 16.5 13.93 14.21 16.23C12.91 17.53 11.11 18.13 9.4 17.93L8.9 19.93C11.31 20.23 13.81 19.53 15.61 17.63C18.7 14.53 18.7 9.43 15.61 6.33C14.11 4.83 12.11 4.03 10 4.03M4.31 17.63C5.11 18.43 6 19.03 7 19.43L7.61 17.43C6.91 17.13 6.31 16.73 5.81 16.23C3.91 14.43 3.5 11.63 4.61 9.43L3.11 7.93C1.31 11.03 1.71 15.03 4.31 17.63M20 13H22V7H20V13M20 17H22V15H20V17Z",CD="M13,3A9,9 0 0,0 4,12H1L4.89,15.89L4.96,16.03L9,12H6A7,7 0 0,1 13,5A7,7 0 0,1 20,12A7,7 0 0,1 13,19C11.07,19 9.32,18.21 8.06,16.94L6.64,18.36C8.27,20 10.5,21 13,21A9,9 0 0,0 22,12A9,9 0 0,0 13,3Z",PD="M13,4.07V1L8.45,5.55L13,10V6.09C15.84,6.57 18,9.03 18,12C18,14.97 15.84,17.43 13,17.91V19.93C16.95,19.44 20,16.08 20,12C20,7.92 16.95,4.56 13,4.07M7.1,18.32C8.26,19.22 9.61,19.76 11,19.93V17.9C10.13,17.75 9.29,17.41 8.54,16.87L7.1,18.32M6.09,13H4.07C4.24,14.39 4.79,15.73 5.69,16.89L7.1,15.47C6.58,14.72 6.23,13.88 6.09,13M7.11,8.53L5.7,7.11C4.8,8.27 4.24,9.61 4.07,11H6.09C6.23,10.13 6.58,9.28 7.11,8.53Z",AD="M16.89,15.5L18.31,16.89C19.21,15.73 19.76,14.39 19.93,13H17.91C17.77,13.87 17.43,14.72 16.89,15.5M13,17.9V19.92C14.39,19.75 15.74,19.21 16.9,18.31L15.46,16.87C14.71,17.41 13.87,17.76 13,17.9M19.93,11C19.76,9.61 19.21,8.27 18.31,7.11L16.89,8.53C17.43,9.28 17.77,10.13 17.91,11M15.55,5.55L11,1V4.07C7.06,4.56 4,7.92 4,12C4,16.08 7.05,19.44 11,19.93V17.91C8.16,17.43 6,14.97 6,12C6,9.03 8.16,6.57 11,6.09V10L15.55,5.55Z",LD="M2,21L23,12L2,3V10L17,12L2,14V21Z",ED="M11,13.5V21.5H3V13.5H11M12,2L17.5,11H6.5L12,2M17.5,13C20,13 22,15 22,17.5C22,20 20,22 17.5,22C15,22 13,20 13,17.5C13,15 15,13 17.5,13Z",OD="M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5L12,1M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M17.13,17C15.92,18.85 14.11,20.24 12,20.92C9.89,20.24 8.08,18.85 6.87,17C6.53,16.5 6.24,16 6,15.47C6,13.82 8.71,12.47 12,12.47C15.29,12.47 18,13.79 18,15.47C17.76,16 17.47,16.5 17.13,17Z",TD="M16.46,9.41L13,7.38V5.12L14.71,3.41L13.29,2L12,3.29L10.71,2L9.29,3.41L11,5.12V7.38L8.5,8.82L6.5,7.69L5.92,5.36L4,5.88L4.47,7.65L2.7,8.12L3.22,10.05L5.55,9.43L7.55,10.56V13.45L5.55,14.58L3.22,13.96L2.7,15.89L4.47,16.36L4,18.12L5.93,18.64L6.55,16.31L8.55,15.18L11,16.62V18.88L9.29,20.59L10.71,22L12,20.71L13.29,22L14.7,20.59L13,18.88V16.62L16.46,14.61M9.5,10.56L12,9.11L14.5,10.56V13.44L12,14.89L9.5,13.44M19,13V7H21V13H19M19,17V15H21V17H19Z",kD="M17,12C17,14.42 15.28,16.44 13,16.9V21H11V16.9C8.72,16.44 7,14.42 7,12C7,9.58 8.72,7.56 11,7.1V3H13V7.1C15.28,7.56 17,9.58 17,12M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9Z",DD="M18,18H6V6H18V18Z",F$="M9,3L5,7H8V14H10V7H13M16,17V10H14V17H11L15,21L19,17H16Z",MD="M12,18A6,6 0 0,1 6,12C6,11 6.25,10.03 6.7,9.2L5.24,7.74C4.46,8.97 4,10.43 4,12A8,8 0 0,0 12,20V23L16,19L12,15M12,4V1L8,5L12,9V6A6,6 0 0,1 18,12C18,13 17.75,13.97 17.3,14.8L18.76,16.26C19.54,15.03 20,13.57 20,12A8,8 0 0,0 12,4Z",RD="M8,2H16A2,2 0 0,1 18,4V20A2,2 0 0,1 16,22H8A2,2 0 0,1 6,20V4A2,2 0 0,1 8,2M8,10V14H16V10H8M8,16V20H16V16H8M8,4V8H16V4H8Z",ID="M17 13V7H19V13H17M17 17V15H19V17H17M13 13V5C13 3.3 11.7 2 10 2S7 3.3 7 5V13C4.8 14.7 4.3 17.8 6 20S10.8 22.7 13 21 15.7 16.2 14 14C13.7 13.6 13.4 13.3 13 13M10 4C10.6 4 11 4.4 11 5V8H9V5C9 4.4 9.4 4 10 4Z",FD="M15 13V5A3 3 0 0 0 9 5V13A5 5 0 1 0 15 13M12 4A1 1 0 0 1 13 5V12H11V5A1 1 0 0 1 12 4Z",HD="M6,2H18V8H18V8L14,12L18,16V16H18V22H6V16H6V16L10,12L6,8V8H6V2M16,16.5L12,12.5L8,16.5V20H16V16.5M12,11.5L16,7.5V4H8V7.5L12,11.5M10,6H14V6.75L12,8.75L10,6.75V6Z",jD="M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M17,15A3,3 0 0,1 14,12A3,3 0 0,1 17,9A3,3 0 0,1 20,12A3,3 0 0,1 17,15Z",BD="M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zM7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z",ND="M12.91 6.43L15.03 8.55L16.09 7.5L15.03 6.43L17.86 3.6L18.92 4.66L20 3.6L17.86 1.5M3 20.57L4.43 22L14.5 11.9L16.63 11.19L21.4 6.43C22.18 5.65 22.18 4.38 21.4 3.6L15.55 9.44L13.43 10.15Z",VD="M18 5H6V7H18M6 9H18V11H6M2 12H4V17H20V12H22V17A2 2 0 0 1 20 19H4A2 2 0 0 1 2 17M18 13H6V15H18Z",zD="M2 12H4V17H20V12H22V17A2 2 0 0 1 20 19H4A2 2 0 0 1 2 17M11 5H13V8H16V10H13V13H11V10H8V8H11Z",UD="M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z",WD="M21,10.12H14.22L16.96,7.3C14.23,4.6 9.81,4.5 7.08,7.2C4.35,9.91 4.35,14.28 7.08,17C9.81,19.7 14.23,19.7 16.96,17C18.32,15.65 19,14.08 19,12.1H21C21,14.08 20.12,16.65 18.36,18.39C14.85,21.87 9.15,21.87 5.64,18.39C2.14,14.92 2.11,9.28 5.62,5.81C9.13,2.34 14.76,2.34 18.27,5.81L21,3V10.12M12.5,8V12.25L16,14.33L15.28,15.54L11,13V8H12.5Z",GD="M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z",qD="M15,7V11H16V13H13V5H15L12,1L9,5H11V13H8V10.93C8.7,10.56 9.2,9.85 9.2,9C9.2,7.78 8.21,6.8 7,6.8C5.78,6.8 4.8,7.78 4.8,9C4.8,9.85 5.3,10.56 6,10.93V13A2,2 0 0,0 8,15H11V18.05C10.29,18.41 9.8,19.15 9.8,20A2.2,2.2 0 0,0 12,22.2A2.2,2.2 0 0,0 14.2,20C14.2,19.15 13.71,18.41 13,18.05V15H16A2,2 0 0,0 18,13V11H19V7H15Z",H$="M15,3V7.59L7.59,15H3V21H9V16.42L16.42,9H21V3M17,5H19V7H17M5,17H7V19H5",ZD="M19,5V7H15V5H19M9,5V11H5V5H9M19,13V19H15V13H19M9,17V19H5V17H9M21,3H13V9H21V3M11,3H3V13H11V3M21,11H13V21H21V11M11,15H3V21H11V15Z",YD="M3 11H11V3H3M5 5H9V9H5M13 21H21V13H13M15 15H19V19H15M3 21H11V13H3M5 15H9V19H5M13 3V11H21V3M19 9H15V5H19Z",KD="M4,5V7H21V5M4,11H21V9H4M4,19H21V17H4M4,15H21V13H4V15Z",XD="M13.46,12L19,17.54V19H17.54L12,13.46L6.46,19H5V17.54L10.54,12L5,6.46V5H6.46L12,10.54L17.54,5H19V6.46L13.46,12Z";const JD="M 12 2 C 11.811244 2.0027 11.62182 2.01009 11.433594 2.0234375 C 11.245368 2.0367892 11.058338 2.0560871 10.871094 2.0800781 C 10.528376 2.1223311 10.188076 2.1823072 9.8515625 2.2597656 C 9.4050859 2.3584685 8.9659029 2.4876777 8.5371094 2.6464844 C 8.2433457 2.7507726 7.9546177 2.8687402 7.671875 3 L 7.6699219 3 C 7.2200923 3.2179359 6.7872406 3.4692919 6.375 3.7519531 C 6.1149723 3.9281592 5.8633915 4.1165194 5.6210938 4.3164062 C 5.2734281 4.6063526 4.9458497 4.9195737 4.640625 5.2539062 C 4.4299712 5.4884886 4.2305306 5.7329027 4.0429688 5.9863281 C 4.0007188 6.0418801 3.9590487 6.0978726 3.9179688 6.1542969 C 3.7241339 6.4206091 3.543575 6.6963363 3.3769531 6.9804688 C 3.3651531 7.0019097 3.3534369 7.0233949 3.3417969 7.0449219 C 2.9828732 7.6642764 2.691488 8.3203821 2.4726562 9.0019531 C 2.3383154 9.4325109 2.233258 9.8716656 2.1582031 10.316406 C 2.1085032 10.625133 2.0733024 10.936022 2.0527344 11.248047 L 2.0527344 11.25 L 2.0527344 11.251953 L 2.0527344 11.253906 L 2.0527344 11.255859 C 2.0258944 11.502973 2.00832 11.751383 2 12 C 2.000879 12.252257 2.0113 12.504391 2.03125 12.755859 L 2.0332031 12.767578 C 2.0566631 13.076458 2.0944624 13.384082 2.1464844 13.689453 C 2.2214943 14.129536 2.3258985 14.564103 2.4589844 14.990234 C 2.5675343 15.334756 2.6946769 15.673142 2.8398438 16.003906 L 2.8457031 16.017578 L 2.8535156 16.03125 C 2.9986205 16.362102 3.1616911 16.684839 3.3417969 16.998047 L 3.34375 17 C 3.5265728 17.317394 3.7267926 17.624495 3.9433594 17.919922 C 4.1600882 18.215026 4.3928602 18.498004 4.640625 18.767578 C 4.9426097 19.096141 5.2662503 19.404121 5.609375 19.689453 C 5.8509948 19.889955 6.1019244 20.078968 6.3613281 20.255859 C 6.7778367 20.540458 7.2152833 20.793132 7.6699219 21.011719 L 7.671875 21.011719 C 7.9543247 21.147608 8.2431027 21.27014 8.5371094 21.378906 C 8.956542 21.533797 9.3858911 21.660384 9.8222656 21.757812 L 9.8242188 21.757812 C 10.165943 21.833832 10.511518 21.891861 10.859375 21.931641 C 10.885405 21.935041 10.91144 21.938206 10.9375 21.941406 C 11.290376 21.979776 11.645044 21.99934 12 22 C 12.188756 21.9973 12.37818 21.98991 12.566406 21.976562 C 12.754632 21.963215 12.941662 21.943912 13.128906 21.919922 C 13.471624 21.877672 13.811924 21.817693 14.148438 21.740234 C 14.594914 21.641534 15.034096 21.512323 15.462891 21.353516 C 15.756653 21.249229 16.045381 21.131261 16.328125 21 L 16.330078 21 C 16.779908 20.782064 17.21276 20.530708 17.625 20.248047 C 17.885029 20.07184 18.136608 19.883481 18.378906 19.683594 C 18.726573 19.393647 19.054149 19.080425 19.359375 18.746094 C 19.570029 18.511511 19.76947 18.267097 19.957031 18.013672 C 19.999281 17.958122 20.040951 17.902127 20.082031 17.845703 C 20.275866 17.57939 20.456425 17.303665 20.623047 17.019531 C 20.634847 16.998091 20.646563 16.976598 20.658203 16.955078 C 21.017127 16.335724 21.308511 15.679617 21.527344 14.998047 C 21.661685 14.567489 21.766742 14.128334 21.841797 13.683594 C 21.891497 13.374867 21.926698 13.063978 21.947266 12.751953 L 21.947266 12.75 L 21.947266 12.748047 L 21.947266 12.746094 L 21.947266 12.744141 C 21.974096 12.496824 21.99169 12.248617 22 12 C 21.999121 11.747743 21.9887 11.495609 21.96875 11.244141 L 21.966797 11.232422 C 21.943337 10.923542 21.905537 10.615918 21.853516 10.310547 C 21.778506 9.8704641 21.6741 9.4358974 21.541016 9.0097656 C 21.432464 8.6652447 21.305324 8.3268573 21.160156 7.9960938 L 21.154297 7.9824219 L 21.146484 7.96875 C 21.001384 7.6379017 20.838309 7.315161 20.658203 7.0019531 L 20.65625 7 C 20.47338 6.6826091 20.273207 6.375505 20.056641 6.0800781 C 19.839912 5.7849746 19.60714 5.5019958 19.359375 5.2324219 C 19.05739 4.903859 18.73375 4.5958783 18.390625 4.3105469 C 18.149005 4.1100449 17.898076 3.921033 17.638672 3.7441406 C 17.222163 3.459542 16.784717 3.2068671 16.330078 2.9882812 L 16.328125 2.9882812 C 16.045675 2.8523915 15.756897 2.72986 15.462891 2.6210938 C 15.043458 2.4662029 14.614109 2.3396166 14.177734 2.2421875 L 14.175781 2.2421875 C 13.834058 2.1661636 13.488482 2.1081404 13.140625 2.0683594 C 13.114595 2.0649994 13.08856 2.0617537 13.0625 2.0585938 C 12.709629 2.0202237 12.354956 2.0006604 12 2 z M 10.701172 4.25 L 10.957031 4.3984375 L 11.066406 4.4609375 L 11.132812 4.5 L 11.566406 4.75 L 11.566406 5.75 L 11.132812 6 L 10.875 6.1484375 C 10.874877 6.1490598 10.875123 6.1497684 10.875 6.1503906 L 10.701172 6.25 L 10.267578 6 L 9.8359375 5.75 L 9.8359375 4.75 L 10.103516 4.5957031 L 10.701172 4.25 z M 13.298828 4.25 L 14.164062 4.75 L 14.164062 5.75 L 13.298828 6.25 L 12.433594 5.75 L 12.433594 4.75 L 13.298828 4.25 z M 8.8398438 4.6757812 L 8.96875 4.75 L 8.96875 5.75 L 8.5371094 6 L 8.1035156 6.25 L 7.2382812 5.75 L 7.2382812 5.578125 C 7.7356888 5.2168041 8.2730923 4.9140239 8.8398438 4.6757812 z M 15.160156 4.6757812 C 15.726909 4.914025 16.264309 5.2168044 16.761719 5.578125 L 16.761719 5.75 L 16.103516 6.1308594 L 15.896484 6.25 L 15.03125 5.75 L 15.03125 4.75 L 15.160156 4.6757812 z M 6.8046875 6.5 L 7.6699219 7 L 7.6699219 8 L 6.8046875 8.5 L 6.7011719 8.4394531 L 5.9394531 8 L 5.9394531 7.75 L 5.9394531 7 L 6.8046875 6.5 z M 9.4023438 6.5 L 10.267578 7 L 10.267578 7.8398438 L 10.267578 8 L 10.140625 8.0742188 L 9.8339844 8.25 L 9.4023438 8.5 L 8.9707031 8.25 L 8.5371094 8 L 8.5371094 7 L 8.96875 6.75 L 9.4023438 6.5 z M 12 6.5 L 12.865234 7 L 12.865234 7.75 L 12.865234 8 L 12.744141 8.0703125 C 12.743508 8.0701923 12.74282 8.0704324 12.742188 8.0703125 C 12.497492 8.0239396 12.249054 8.0001594 12 8 C 11.754037 8.00282 11.508857 8.0283149 11.267578 8.0761719 L 11.134766 8 L 11.134766 7.25 L 11.134766 7 L 11.896484 6.5605469 L 12 6.5 z M 14.597656 6.5 L 15.029297 6.75 L 15.462891 7 L 15.462891 8 L 14.597656 8.5 L 14.166016 8.25 L 13.732422 8 L 13.732422 7 L 14.166016 6.75 L 14.597656 6.5 z M 17.195312 6.5 L 17.298828 6.5605469 L 18.060547 7 L 18.060547 7.25 L 18.060547 8 L 17.298828 8.4394531 L 17.195312 8.5 L 16.330078 8 L 16.330078 7 L 17.195312 6.5 z M 5.5058594 8.75 L 6.3710938 9.25 L 6.3710938 10.25 L 5.5058594 10.75 L 4.640625 10.25 L 4.640625 9.25 L 5.5058594 8.75 z M 8.1035156 8.75 L 8.96875 9.25 L 8.96875 9.390625 C 8.6470443 9.7691664 8.398667 10.204324 8.2363281 10.673828 L 8.1035156 10.75 L 7.5449219 10.427734 L 7.2382812 10.25 L 7.2382812 9.25 L 8.1035156 8.75 z M 15.896484 8.75 L 16.761719 9.25 L 16.761719 10.25 L 16.328125 10.5 L 15.896484 10.75 L 15.775391 10.679688 C 15.6258 10.253096 15.401287 9.8581752 15.119141 9.5058594 C 15.089259 9.4685462 15.062498 9.4288507 15.03125 9.3925781 L 15.03125 9.390625 L 15.03125 9.25 L 15.462891 9 L 15.896484 8.75 z M 18.494141 8.75 L 19.359375 9.25 L 19.359375 10.25 L 18.494141 10.75 L 18.287109 10.630859 L 17.628906 10.25 L 17.628906 9.25 L 18.494141 8.75 z M 12 10 C 13.104568 10 14 10.895432 14 12 C 14 13.035532 13.213589 13.887814 12.205078 13.990234 C 12.137844 13.997062 12.069035 14 12 14 C 11.792894 14 11.592174 13.968592 11.404297 13.910156 C 11.028542 13.793284 10.701584 13.567814 10.457031 13.271484 C 10.416272 13.222096 10.377738 13.172341 10.341797 13.119141 C 10.126148 12.799939 10 12.414213 10 12 C 10 11.930965 10.002938 11.862156 10.009766 11.794922 C 10.037078 11.525986 10.119032 11.273584 10.242188 11.046875 C 10.396132 10.763489 10.614858 10.521504 10.880859 10.341797 C 10.93406 10.305855 10.990198 10.272976 11.046875 10.242188 C 11.330261 10.088243 11.654823 10 12 10 z M 4.2070312 11 L 5.0722656 11.5 L 5.0722656 11.75 L 5.0722656 12.5 L 4.2070312 13 L 4.0722656 12.921875 C 4.0304257 12.616234 4.0063 12.308428 4 12 C 4.00315 11.845786 4.0113888 11.690819 4.0234375 11.537109 C 4.0354862 11.383399 4.0513406 11.230945 4.0722656 11.078125 L 4.2070312 11 z M 6.8046875 11 L 7.2363281 11.25 L 7.6699219 11.5 L 7.6699219 12.5 L 6.8046875 13 L 6.7011719 12.939453 L 5.9394531 12.5 L 5.9394531 11.5 L 6.7011719 11.060547 L 6.8046875 11 z M 17.195312 11 L 17.298828 11.060547 L 18.060547 11.5 L 18.060547 12.5 L 17.298828 12.939453 L 17.195312 13 L 16.763672 12.75 L 16.330078 12.5 L 16.330078 11.5 L 17.195312 11 z M 19.792969 11 L 19.927734 11.078125 C 19.969574 11.383766 19.9937 11.691572 20 12 C 19.9937 12.308428 19.969584 12.616234 19.927734 12.921875 L 19.792969 13 L 18.927734 12.5 L 18.927734 12.25 L 18.927734 11.5 L 19.792969 11 z M 5.5058594 13.25 L 5.7128906 13.369141 L 6.3710938 13.75 L 6.3710938 14.75 L 5.5058594 15.25 L 4.640625 14.75 L 4.640625 13.75 L 5.5058594 13.25 z M 8.1035156 13.25 L 8.2246094 13.320312 C 8.3742003 13.746904 8.5987134 14.141825 8.8808594 14.494141 C 8.9107409 14.531454 8.9375015 14.571149 8.96875 14.607422 C 8.9690848 14.607816 8.968415 14.608981 8.96875 14.609375 L 8.96875 14.75 L 8.5371094 15 L 8.1035156 15.25 L 7.2382812 14.75 L 7.2382812 13.75 L 7.671875 13.5 L 8.1035156 13.25 z M 15.896484 13.25 L 16.455078 13.572266 L 16.761719 13.75 L 16.761719 14.75 L 15.896484 15.25 L 15.03125 14.75 L 15.03125 14.609375 C 15.288819 14.306302 15.495308 13.965789 15.652344 13.601562 C 15.6928 13.511265 15.729958 13.419415 15.763672 13.326172 L 15.896484 13.25 z M 18.494141 13.25 L 19.359375 13.75 L 19.359375 14.75 L 18.494141 15.25 L 17.628906 14.75 L 17.628906 13.75 L 18.494141 13.25 z M 6.8046875 15.5 L 7.6699219 16 L 7.6699219 17 L 6.8046875 17.5 L 6.7011719 17.439453 L 5.9394531 17 L 5.9394531 16.75 L 5.9394531 16 L 6.7011719 15.560547 L 6.8046875 15.5 z M 9.4023438 15.5 L 9.8339844 15.75 L 10.267578 16 L 10.267578 17 L 9.8339844 17.25 L 9.4023438 17.5 L 8.9707031 17.25 L 8.5371094 17 L 8.5371094 16.25 L 8.5371094 16 L 8.96875 15.75 L 8.9707031 15.75 L 9.4023438 15.5 z M 14.597656 15.5 L 15.029297 15.75 L 15.462891 16 L 15.462891 17 L 15.03125 17.25 L 14.597656 17.5 L 13.732422 17 L 13.732422 16.160156 L 13.732422 16 L 13.859375 15.925781 L 14.166016 15.75 L 14.597656 15.5 z M 17.195312 15.5 L 17.298828 15.560547 L 18.060547 16 L 18.060547 16.25 L 18.060547 17 L 17.195312 17.5 L 16.330078 17 L 16.330078 16 L 17.195312 15.5 z M 12.732422 15.923828 L 12.865234 16 L 12.865234 16.75 L 12.865234 17 L 12.103516 17.439453 L 12 17.5 L 11.134766 17 L 11.134766 16 L 11.255859 15.929688 C 11.256492 15.929808 11.25718 15.929568 11.257812 15.929688 C 11.502508 15.976059 11.750946 15.99984 12 16 C 12.122981 15.9986 12.244987 15.991227 12.367188 15.978516 C 12.489388 15.965806 12.611782 15.947758 12.732422 15.923828 z M 8.1035156 17.75 L 8.96875 18.25 L 8.96875 19.25 L 8.8398438 19.324219 C 8.2730923 19.085975 7.7356888 18.783196 7.2382812 18.421875 L 7.2382812 18.25 L 7.8964844 17.869141 L 8.1035156 17.75 z M 10.701172 17.75 L 11.566406 18.25 L 11.566406 19.25 L 10.701172 19.75 L 9.8359375 19.25 L 9.8359375 18.25 L 10.701172 17.75 z M 13.298828 17.75 L 13.732422 18 L 14.164062 18.25 L 14.164062 19.25 L 13.896484 19.404297 L 13.298828 19.75 L 13.042969 19.601562 L 12.867188 19.5 L 12.433594 19.25 L 12.433594 18.25 L 12.867188 18 L 13.125 17.851562 C 13.125123 17.85094 13.124877 17.850232 13.125 17.849609 L 13.298828 17.75 z M 15.896484 17.75 L 16.761719 18.25 L 16.761719 18.421875 C 16.264309 18.783196 15.726909 19.085977 15.160156 19.324219 L 15.03125 19.25 L 15.03125 18.25 L 15.462891 18 L 15.896484 17.75 z",QD="M 12 2 A 10 10 0 0 0 10.871094 2.0800781 A 10 10 0 0 0 9.8515625 2.2597656 A 10 10 0 0 0 8.5371094 2.6464844 A 10 10 0 0 0 7.671875 3 A 10 10 0 0 0 7.6699219 3 A 10 10 0 0 0 6.375 3.7519531 A 10 10 0 0 0 5.6210938 4.3164062 A 10 10 0 0 0 4.640625 5.2539062 A 10 10 0 0 0 4.0429688 5.9863281 A 10 10 0 0 0 3.9179688 6.1542969 A 10 10 0 0 0 3.3769531 6.9804688 A 10 10 0 0 0 3.3417969 7.0449219 A 10 10 0 0 0 2.4726562 9.0019531 A 10 10 0 0 0 2.1582031 10.316406 A 10 10 0 0 0 2.0527344 11.248047 A 10 10 0 0 0 2.0527344 11.255859 A 10 10 0 0 0 2 12 A 10 10 0 0 0 2.0527344 12.742188 A 10 10 0 0 0 2.0527344 12.748047 A 10 10 0 0 0 2.1582031 13.683594 A 10 10 0 0 0 2.4726562 14.998047 A 10 10 0 0 0 3.3417969 16.955078 A 10 10 0 0 0 3.3769531 17.019531 A 10 10 0 0 0 3.9179688 17.845703 A 10 10 0 0 0 4.0429688 18.013672 A 10 10 0 0 0 4.640625 18.746094 A 10 10 0 0 0 5.6210938 19.683594 A 10 10 0 0 0 6.375 20.248047 A 10 10 0 0 0 7.6699219 21 A 10 10 0 0 0 7.671875 21 A 10 10 0 0 0 8.5371094 21.353516 A 10 10 0 0 0 9.8515625 21.740234 A 10 10 0 0 0 10.871094 21.919922 A 10 10 0 0 0 12 22 A 10 10 0 0 0 13.128906 21.919922 A 10 10 0 0 0 13.71875 21.816406 A 6 6 0 0 1 13.042969 19.601562 L 12.433594 19.25 L 12.433594 18.25 L 12.867188 18 L 13.125 17.851562 A 6 6 0 0 1 13.732422 16.160156 L 13.732422 16 L 13.859375 15.925781 A 6 6 0 0 1 15.201172 14.367188 A 4 4 0 0 0 15.763672 13.326172 L 15.896484 13.25 L 16.455078 13.572266 A 6 6 0 0 1 19 13 A 6 6 0 0 1 21.833984 13.712891 A 10 10 0 0 0 21.841797 13.683594 A 10 10 0 0 0 21.947266 12.751953 A 10 10 0 0 0 21.947266 12.75 A 10 10 0 0 0 21.947266 12.748047 A 10 10 0 0 0 21.947266 12.746094 A 10 10 0 0 0 21.947266 12.744141 A 10 10 0 0 0 22 12 A 10 10 0 0 0 21.96875 11.244141 A 10 10 0 0 0 21.966797 11.232422 A 10 10 0 0 0 21.853516 10.310547 A 10 10 0 0 0 21.541016 9.0097656 A 10 10 0 0 0 21.160156 7.9960938 A 10 10 0 0 0 21.154297 7.9824219 A 10 10 0 0 0 21.146484 7.96875 A 10 10 0 0 0 20.658203 7.0019531 A 10 10 0 0 0 20.65625 7 A 10 10 0 0 0 20.056641 6.0800781 A 10 10 0 0 0 19.359375 5.2324219 A 10 10 0 0 0 18.390625 4.3105469 A 10 10 0 0 0 17.638672 3.7441406 A 10 10 0 0 0 16.330078 2.9882812 A 10 10 0 0 0 16.328125 2.9882812 A 10 10 0 0 0 15.462891 2.6210938 A 10 10 0 0 0 14.177734 2.2421875 A 10 10 0 0 0 14.175781 2.2421875 A 10 10 0 0 0 13.140625 2.0683594 A 10 10 0 0 0 13.0625 2.0585938 A 10 10 0 0 0 12 2 z M 10.701172 4.25 L 11.132812 4.5 L 11.566406 4.75 L 11.566406 5.75 L 10.701172 6.25 L 10.267578 6 L 9.8359375 5.75 L 9.8359375 4.75 L 10.103516 4.5957031 L 10.701172 4.25 z M 13.298828 4.25 L 14.164062 4.75 L 14.164062 5.75 L 13.298828 6.25 L 12.433594 5.75 L 12.433594 4.75 L 13.298828 4.25 z M 15.181641 4.6640625 A 8 8 0 0 1 16.761719 5.5742188 L 16.761719 5.75 L 16.103516 6.1308594 L 15.896484 6.25 L 15.03125 5.75 L 15.03125 4.75 L 15.181641 4.6640625 z M 8.8398438 4.6757812 L 8.96875 4.75 L 8.96875 5.75 L 8.5371094 6 L 8.1035156 6.25 L 7.2382812 5.75 L 7.2382812 5.578125 A 8 8 0 0 1 8.8398438 4.6757812 z M 6.8046875 6.5 L 7.6699219 7 L 7.6699219 8 L 6.8046875 8.5 L 6.7011719 8.4394531 L 5.9394531 8 L 5.9394531 7.75 L 5.9394531 7 L 6.8046875 6.5 z M 9.4023438 6.5 L 10.267578 7 L 10.267578 8 L 9.8339844 8.25 L 9.4023438 8.5 L 8.9707031 8.25 L 8.5371094 8 L 8.5371094 7 L 8.96875 6.75 L 9.4023438 6.5 z M 12 6.5 L 12.865234 7 L 12.865234 7.75 L 12.865234 8 L 12.744141 8.0703125 A 4 4 0 0 0 12 8 A 4 4 0 0 0 11.267578 8.0761719 L 11.134766 8 L 11.134766 7 L 12 6.5 z M 14.597656 6.5 L 15.462891 7 L 15.462891 7.75 L 15.462891 8 L 14.597656 8.5 L 13.732422 8 L 13.732422 7.75 L 13.732422 7 L 14.597656 6.5 z M 17.195312 6.5 L 18.060547 7 L 18.060547 8 L 17.195312 8.5 L 16.330078 8 L 16.330078 7 L 17.195312 6.5 z M 5.5058594 8.75 L 6.3710938 9.25 L 6.3710938 10.25 L 5.5058594 10.75 L 4.640625 10.25 L 4.640625 9.25 L 5.5058594 8.75 z M 8.1035156 8.75 L 8.96875 9.25 L 8.96875 9.390625 A 4 4 0 0 0 8.2363281 10.673828 L 8.1035156 10.75 L 7.2382812 10.25 L 7.2382812 9.25 L 8.1035156 8.75 z M 15.896484 8.75 L 16.761719 9.25 L 16.761719 10.25 L 15.896484 10.75 L 15.775391 10.679688 A 4 4 0 0 0 15.03125 9.3925781 L 15.03125 9.25 L 15.896484 8.75 z M 18.494141 8.75 L 19.359375 9.25 L 19.359375 10.25 L 18.494141 10.75 L 18.287109 10.630859 L 17.628906 10.25 L 17.628906 9.25 L 18.494141 8.75 z M 12 10 A 2 2 0 0 1 14 12 A 2 2 0 0 1 12 14 A 2 2 0 0 1 10 12 A 2 2 0 0 1 12 10 z M 4.2070312 11 L 5.0722656 11.5 L 5.0722656 12.5 L 4.2070312 13 L 4.0722656 12.921875 A 8 8 0 0 1 4 12 A 8 8 0 0 1 4.0722656 11.078125 L 4.2070312 11 z M 6.8046875 11 L 7.6699219 11.5 L 7.6699219 12.5 L 6.8046875 13 L 6.7011719 12.939453 L 5.9394531 12.5 L 5.9394531 11.5 L 6.7011719 11.060547 L 6.8046875 11 z M 17.195312 11 L 18.060547 11.5 L 18.060547 12.5 L 17.195312 13 L 16.763672 12.75 L 16.330078 12.5 L 16.330078 11.5 L 17.195312 11 z M 19.792969 11 L 19.947266 11.089844 A 8 8 0 0 1 20 12 A 8 8 0 0 1 19.927734 12.921875 L 19.792969 13 L 18.927734 12.5 L 18.927734 12.25 L 18.927734 11.5 L 19.792969 11 z M 5.5058594 13.25 L 6.3710938 13.75 L 6.3710938 14.75 L 5.5058594 15.25 L 4.640625 14.75 L 4.640625 13.75 L 5.5058594 13.25 z M 8.1035156 13.25 L 8.2363281 13.326172 A 4 4 0 0 0 8.96875 14.609375 L 8.96875 14.75 L 8.5371094 15 L 8.1035156 15.25 L 7.2382812 14.75 L 7.2382812 13.75 L 7.671875 13.5 L 8.1035156 13.25 z M 6.8046875 15.5 L 7.6699219 16 L 7.6699219 17 L 6.8046875 17.5 L 6.7011719 17.439453 L 5.9394531 17 L 5.9394531 16.75 L 5.9394531 16 L 6.7011719 15.560547 L 6.8046875 15.5 z M 9.4023438 15.5 L 9.8339844 15.75 L 10.267578 16 L 10.267578 17 L 9.8339844 17.25 L 9.4023438 17.5 L 8.9707031 17.25 L 8.5371094 17 L 8.5371094 16 L 8.96875 15.75 L 8.9707031 15.75 L 9.4023438 15.5 z M 11.267578 15.923828 A 4 4 0 0 0 12 16 A 4 4 0 0 0 12.732422 15.923828 L 12.865234 16 L 12.865234 16.75 L 12.865234 17 L 12.103516 17.439453 L 12 17.5 L 11.134766 17 L 11.134766 16 L 11.267578 15.923828 z M 18 16 L 18 20 L 16 20 L 19 23 L 22 20 L 20 20 L 20 16 L 18 16 z M 8.1035156 17.75 L 8.96875 18.25 L 8.96875 19.25 L 8.8398438 19.324219 A 8 8 0 0 1 7.2382812 18.421875 L 7.2382812 18.25 L 8.1035156 17.75 z M 10.701172 17.75 L 11.566406 18.25 L 11.566406 19.25 L 10.701172 19.75 L 9.8359375 19.25 L 9.8359375 18.25 L 10.701172 17.75 z",eM="M 12 2 A 10 10 0 0 0 10.871094 2.0800781 A 10 10 0 0 0 9.8515625 2.2597656 A 10 10 0 0 0 8.5371094 2.6464844 A 10 10 0 0 0 7.671875 3 A 10 10 0 0 0 7.6699219 3 A 10 10 0 0 0 6.375 3.7519531 A 10 10 0 0 0 5.6210938 4.3164062 A 10 10 0 0 0 4.640625 5.2539062 A 10 10 0 0 0 4.0429688 5.9863281 A 10 10 0 0 0 3.9179688 6.1542969 A 10 10 0 0 0 3.3769531 6.9804688 A 10 10 0 0 0 3.3417969 7.0449219 A 10 10 0 0 0 2.4726562 9.0019531 A 10 10 0 0 0 2.1582031 10.316406 A 10 10 0 0 0 2.0527344 11.248047 A 10 10 0 0 0 2.0527344 11.255859 A 10 10 0 0 0 2 12 A 10 10 0 0 0 2.0527344 12.742188 A 10 10 0 0 0 2.0527344 12.748047 A 10 10 0 0 0 2.1582031 13.683594 A 10 10 0 0 0 2.4726562 14.998047 A 10 10 0 0 0 3.3417969 16.955078 A 10 10 0 0 0 3.3769531 17.019531 A 10 10 0 0 0 3.9179688 17.845703 A 10 10 0 0 0 4.0429688 18.013672 A 10 10 0 0 0 4.640625 18.746094 A 10 10 0 0 0 5.6210938 19.683594 A 10 10 0 0 0 6.375 20.248047 A 10 10 0 0 0 7.6699219 21 A 10 10 0 0 0 7.671875 21 A 10 10 0 0 0 8.5371094 21.353516 A 10 10 0 0 0 9.8515625 21.740234 A 10 10 0 0 0 10.871094 21.919922 A 10 10 0 0 0 12 22 A 10 10 0 0 0 13.128906 21.919922 A 10 10 0 0 0 13.71875 21.816406 A 6 6 0 0 1 13.042969 19.601562 L 12.433594 19.25 L 12.433594 18.25 L 12.867188 18 L 13.125 17.851562 A 6 6 0 0 1 13.732422 16.160156 L 13.732422 16 L 13.859375 15.925781 A 6 6 0 0 1 15.201172 14.367188 A 4 4 0 0 0 15.763672 13.326172 L 15.896484 13.25 L 16.455078 13.572266 A 6 6 0 0 1 19 13 A 6 6 0 0 1 21.833984 13.712891 A 10 10 0 0 0 21.841797 13.683594 A 10 10 0 0 0 21.947266 12.751953 A 10 10 0 0 0 21.947266 12.75 A 10 10 0 0 0 21.947266 12.748047 A 10 10 0 0 0 21.947266 12.746094 A 10 10 0 0 0 21.947266 12.744141 A 10 10 0 0 0 22 12 A 10 10 0 0 0 21.96875 11.244141 A 10 10 0 0 0 21.966797 11.232422 A 10 10 0 0 0 21.853516 10.310547 A 10 10 0 0 0 21.541016 9.0097656 A 10 10 0 0 0 21.160156 7.9960938 A 10 10 0 0 0 21.154297 7.9824219 A 10 10 0 0 0 21.146484 7.96875 A 10 10 0 0 0 20.658203 7.0019531 A 10 10 0 0 0 20.65625 7 A 10 10 0 0 0 20.056641 6.0800781 A 10 10 0 0 0 19.359375 5.2324219 A 10 10 0 0 0 18.390625 4.3105469 A 10 10 0 0 0 17.638672 3.7441406 A 10 10 0 0 0 16.330078 2.9882812 A 10 10 0 0 0 16.328125 2.9882812 A 10 10 0 0 0 15.462891 2.6210938 A 10 10 0 0 0 14.177734 2.2421875 A 10 10 0 0 0 14.175781 2.2421875 A 10 10 0 0 0 13.140625 2.0683594 A 10 10 0 0 0 13.0625 2.0585938 A 10 10 0 0 0 12 2 z M 10.701172 4.25 L 11.132812 4.5 L 11.566406 4.75 L 11.566406 5.75 L 10.701172 6.25 L 10.267578 6 L 9.8359375 5.75 L 9.8359375 4.75 L 10.103516 4.5957031 L 10.701172 4.25 z M 13.298828 4.25 L 14.164062 4.75 L 14.164062 5.75 L 13.298828 6.25 L 12.433594 5.75 L 12.433594 4.75 L 13.298828 4.25 z M 15.181641 4.6640625 A 8 8 0 0 1 16.761719 5.5742188 L 16.761719 5.75 L 16.103516 6.1308594 L 15.896484 6.25 L 15.03125 5.75 L 15.03125 4.75 L 15.181641 4.6640625 z M 8.8398438 4.6757812 L 8.96875 4.75 L 8.96875 5.75 L 8.5371094 6 L 8.1035156 6.25 L 7.2382812 5.75 L 7.2382812 5.578125 A 8 8 0 0 1 8.8398438 4.6757812 z M 6.8046875 6.5 L 7.6699219 7 L 7.6699219 8 L 6.8046875 8.5 L 6.7011719 8.4394531 L 5.9394531 8 L 5.9394531 7.75 L 5.9394531 7 L 6.8046875 6.5 z M 9.4023438 6.5 L 10.267578 7 L 10.267578 8 L 9.8339844 8.25 L 9.4023438 8.5 L 8.9707031 8.25 L 8.5371094 8 L 8.5371094 7 L 8.96875 6.75 L 9.4023438 6.5 z M 12 6.5 L 12.865234 7 L 12.865234 7.75 L 12.865234 8 L 12.744141 8.0703125 A 4 4 0 0 0 12 8 A 4 4 0 0 0 11.267578 8.0761719 L 11.134766 8 L 11.134766 7 L 12 6.5 z M 14.597656 6.5 L 15.462891 7 L 15.462891 7.75 L 15.462891 8 L 14.597656 8.5 L 13.732422 8 L 13.732422 7.75 L 13.732422 7 L 14.597656 6.5 z M 17.195312 6.5 L 18.060547 7 L 18.060547 8 L 17.195312 8.5 L 16.330078 8 L 16.330078 7 L 17.195312 6.5 z M 5.5058594 8.75 L 6.3710938 9.25 L 6.3710938 10.25 L 5.5058594 10.75 L 4.640625 10.25 L 4.640625 9.25 L 5.5058594 8.75 z M 8.1035156 8.75 L 8.96875 9.25 L 8.96875 9.390625 A 4 4 0 0 0 8.2363281 10.673828 L 8.1035156 10.75 L 7.2382812 10.25 L 7.2382812 9.25 L 8.1035156 8.75 z M 15.896484 8.75 L 16.761719 9.25 L 16.761719 10.25 L 15.896484 10.75 L 15.775391 10.679688 A 4 4 0 0 0 15.03125 9.3925781 L 15.03125 9.25 L 15.896484 8.75 z M 18.494141 8.75 L 19.359375 9.25 L 19.359375 10.25 L 18.494141 10.75 L 18.287109 10.630859 L 17.628906 10.25 L 17.628906 9.25 L 18.494141 8.75 z M 12 10 A 2 2 0 0 1 14 12 A 2 2 0 0 1 12 14 A 2 2 0 0 1 10 12 A 2 2 0 0 1 12 10 z M 4.2070312 11 L 5.0722656 11.5 L 5.0722656 12.5 L 4.2070312 13 L 4.0722656 12.921875 A 8 8 0 0 1 4 12 A 8 8 0 0 1 4.0722656 11.078125 L 4.2070312 11 z M 6.8046875 11 L 7.6699219 11.5 L 7.6699219 12.5 L 6.8046875 13 L 6.7011719 12.939453 L 5.9394531 12.5 L 5.9394531 11.5 L 6.7011719 11.060547 L 6.8046875 11 z M 17.195312 11 L 18.060547 11.5 L 18.060547 12.5 L 17.195312 13 L 16.763672 12.75 L 16.330078 12.5 L 16.330078 11.5 L 17.195312 11 z M 19.792969 11 L 19.947266 11.089844 A 8 8 0 0 1 20 12 A 8 8 0 0 1 19.927734 12.921875 L 19.792969 13 L 18.927734 12.5 L 18.927734 12.25 L 18.927734 11.5 L 19.792969 11 z M 5.5058594 13.25 L 6.3710938 13.75 L 6.3710938 14.75 L 5.5058594 15.25 L 4.640625 14.75 L 4.640625 13.75 L 5.5058594 13.25 z M 8.1035156 13.25 L 8.2363281 13.326172 A 4 4 0 0 0 8.96875 14.609375 L 8.96875 14.75 L 8.5371094 15 L 8.1035156 15.25 L 7.2382812 14.75 L 7.2382812 13.75 L 7.671875 13.5 L 8.1035156 13.25 z M 19 15 L 16 18 L 18 18 L 18 22 L 20 22 L 20 18 L 22 18 L 19 15 z M 6.8046875 15.5 L 7.6699219 16 L 7.6699219 17 L 6.8046875 17.5 L 6.7011719 17.439453 L 5.9394531 17 L 5.9394531 16.75 L 5.9394531 16 L 6.7011719 15.560547 L 6.8046875 15.5 z M 9.4023438 15.5 L 9.8339844 15.75 L 10.267578 16 L 10.267578 17 L 9.8339844 17.25 L 9.4023438 17.5 L 8.9707031 17.25 L 8.5371094 17 L 8.5371094 16 L 8.96875 15.75 L 8.9707031 15.75 L 9.4023438 15.5 z M 11.267578 15.923828 A 4 4 0 0 0 12 16 A 4 4 0 0 0 12.732422 15.923828 L 12.865234 16 L 12.865234 16.75 L 12.865234 17 L 12.103516 17.439453 L 12 17.5 L 11.134766 17 L 11.134766 16 L 11.267578 15.923828 z M 8.1035156 17.75 L 8.96875 18.25 L 8.96875 19.25 L 8.8398438 19.324219 A 8 8 0 0 1 7.2382812 18.421875 L 7.2382812 18.25 L 8.1035156 17.75 z M 10.701172 17.75 L 11.566406 18.25 L 11.566406 19.25 L 10.701172 19.75 L 9.8359375 19.25 L 9.8359375 18.25 L 10.701172 17.75 z",tM="m 23.5,18.5 -3,-3 v 2 h -4 v 2 h 4 v 2 z m -9,0 3,3 v -2 h 4 v -2 h -4 v -2 z M 12,2 C 11.622488,2.00536 11.245583,2.032096 10.871094,2.080078 10.528376,2.122331 10.188076,2.182307 9.8515625,2.2597655 9.4050853,2.3584681 8.9659036,2.4876776 8.5371094,2.6464844 8.2433456,2.7507727 7.9546188,2.8687401 7.671875,3 H 7.669925 C 7.2200951,3.2179361 6.7872412,3.4692916 6.375,3.7519531 6.1149725,3.9281594 5.8633915,4.1165192 5.6210938,4.3164062 5.2734271,4.6063528 4.9458507,4.9195733 4.640625,5.2539062 4.4299716,5.4884888 4.2305301,5.7329024 4.0429688,5.9863281 4.0007171,6.04188 3.9590482,6.0978726 3.9179688,6.1542969 3.7241339,6.4206094 3.5435752,6.6963361 3.3769531,6.9804688 3.3651555,7.0019101 3.3534367,7.0233946 3.3417969,7.0449219 2.9828723,7.664277 2.6914886,8.3203814 2.4726562,9.0019531 2.3383156,9.4325113 2.233258,9.871665 2.1582031,10.316406 2.1084999,10.625133 2.073305,10.936022 2.0527344,11.248047 v 0.0078 C 2.0259069,11.503164 2.0083166,11.751383 2,12 c 0.00836,0.247965 0.025955,0.495532 0.052734,0.742188 v 0.0059 c 0.020449,0.313332 0.055644,0.625527 0.1054687,0.935547 0.075055,0.444741 0.1801125,0.883895 0.3144531,1.314453 0.2188324,0.681572 0.5102161,1.337676 0.8691407,1.957031 0.01164,0.02153 0.023359,0.04301 0.035156,0.06445 0.1666221,0.284133 0.3471808,0.55986 0.5410157,0.826172 0.041079,0.05642 0.082748,0.112417 0.125,0.167969 0.1875613,0.253426 0.3870028,0.497839 0.5976562,0.732422 0.3052257,0.334333 0.6328021,0.647553 0.9804688,0.9375 C 5.8633915,19.883481 6.1149725,20.071841 6.375,20.248047 6.7872412,20.530708 7.2200951,20.782064 7.6699219,21 h 0.00195 c 0.2827438,0.13126 0.5714706,0.249228 0.8652344,0.353516 0.4287942,0.158807 0.8679759,0.288016 1.3144531,0.386718 0.3365136,0.07746 0.6768136,0.137435 1.0195316,0.179688 C 11.245583,21.967904 11.622488,21.99464 12,22 12.377512,21.9946 12.754417,21.9679 13.128906,21.91992 13.32651,21.89131 13.523213,21.85679 13.71875,21.816404 13.351809,21.12901 13.122274,20.37672 13.042969,19.601562 L 12.433594,19.25 v -1 L 12.867188,18 13.125,17.851562 c 0.11641,-0.5911 0.32118,-1.161297 0.607422,-1.691406 V 16 l 0.126953,-0.07422 c 0.354229,-0.592884 0.808162,-1.120159 1.341797,-1.558593 0.238072,-0.3172 0.427646,-0.668043 0.5625,-1.041016 L 15.896484,13.25 16.455078,13.572266 C 17.251154,13.197189 18.119991,13.001817 19,13 c 0.988977,4.37e-4 1.962512,0.24533 2.833984,0.712891 0.0026,-0.0098 0.0052,-0.01953 0.0078,-0.0293 0.0497,-0.308727 0.0849,-0.619616 0.105469,-0.931641 v -0.002 -0.002 -0.002 -0.002 C 21.974093,12.496836 21.991684,12.248617 22,12 21.999121,11.747743 21.9887,11.49561 21.96875,11.244141 l -0.002,-0.01172 C 21.94329,10.923541 21.90549,10.615917 21.853469,10.310546 21.778459,9.8704628 21.674054,9.4358968 21.540969,9.0097646 21.432417,8.6652433 21.305277,8.3268567 21.160109,7.9960928 l -0.0059,-0.013672 -0.0078,-0.013672 C 21.001308,7.6379002 20.838309,7.3151613 20.658203,7.0019531 L 20.65625,7 C 20.47338,6.6826088 20.273208,6.3755053 20.056641,6.0800781 19.839912,5.7849743 19.60714,5.5019961 19.359375,5.2324219 19.05739,4.9038587 18.73375,4.5958786 18.390625,4.3105469 18.149005,4.1100447 17.898076,3.9210332 17.638672,3.7441406 17.222163,3.4595417 16.784717,3.2068673 16.330078,2.9882812 h -0.002 C 16.045628,2.8523913 15.756898,2.7298602 15.462891,2.6210938 15.043458,2.4662028 14.614109,2.3396167 14.177734,2.2421875 h -0.002 C 13.83401,2.1661631 13.488482,2.1081405 13.140625,2.0683594 13.114596,2.0650017 13.088554,2.0617465 13.0625,2.0585938 12.709624,2.0202193 12.354956,2.0006604 12,2 Z m -1.298828,2.25 0.43164,0.25 0.433594,0.25 v 1 L 10.701172,6.25 10.267578,6 9.8359375,5.75 v -1 L 10.103516,4.5957031 Z m 2.597656,0 0.865234,0.5 v 1 l -0.865234,0.5 -0.865234,-0.5 v -1 z m 1.882813,0.4140625 c 0.55966,0.2421723 1.089796,0.5475408 1.580078,0.9101563 V 5.75 L 16.103516,6.1308594 15.896484,6.25 15.03125,5.75 v -1 z M 8.8398438,4.6757812 8.96875,4.75 v 1 L 8.5371094,6 8.1035156,6.25 7.2382812,5.75 V 5.578125 C 7.7356899,5.2168037 8.273091,4.9140241 8.8398438,4.6757812 Z M 6.8046875,6.5 7.6699219,7 V 8 L 6.8046875,8.5 6.7011719,8.4394531 5.9394531,8 V 7.75 7 Z M 9.4023438,6.5 10.267578,7 V 8 L 9.8339844,8.25 9.4023438,8.5 8.9707031,8.25 8.5371094,8 V 7 L 8.96875,6.75 Z M 12,6.5 12.865234,7 V 7.75 8 L 12.744141,8.070312 C 12.498832,8.0237001 12.249698,8.0001598 12,8 11.754037,8.00282 11.508857,8.028315 11.267578,8.076172 L 11.134766,8 V 7 Z m 2.597656,0 0.865235,0.5 V 7.75 8 L 14.597656,8.5 13.732422,8 V 7.75 7 Z m 2.597656,0 0.865235,0.5 V 8 L 17.195312,8.5 16.330078,8 V 7 Z M 5.5058594,8.75 6.3710938,9.25 v 1 l -0.8652344,0.5 -0.8652344,-0.5 v -1 z m 2.5976562,0 0.8652344,0.5 V 9.390625 C 8.6470442,9.7691668 8.3986671,10.204323 8.2363281,10.673828 L 8.1035156,10.75 7.2382812,10.25 v -1 z m 7.7929684,0 0.865235,0.5 v 1 l -0.865235,0.5 -0.121093,-0.07031 C 15.609957,10.207918 15.357551,9.7713421 15.03125,9.3925781 V 9.25 Z m 2.597657,0 0.865234,0.5 v 1 L 18.494141,10.75 18.287109,10.630859 17.628906,10.25 v -1 z M 12,10 c 1.104569,0 2,0.895431 2,2 0,1.104569 -0.895431,2 -2,2 -1.104569,0 -2,-0.895431 -2,-2 0,-1.104569 0.895431,-2 2,-2 z m -7.7929688,1 0.8652344,0.5 v 1 L 4.2070312,13 4.0722656,12.921875 C 4.0304228,12.616234 4.0062939,12.308428 4,12 4.00629,11.691572 4.030423,11.383766 4.072266,11.078125 Z m 2.5976563,0 0.8652344,0.5 v 1 L 6.8046875,13 6.7011719,12.939453 5.9394531,12.5 v -1 l 0.7617188,-0.439453 z m 10.3906245,0 0.865235,0.5 v 1 L 17.195312,13 16.763672,12.75 16.330078,12.5 v -1 z m 2.597657,0 0.154297,0.08984 C 19.982131,11.39198 19.999737,11.695859 20,12 c -0.0063,0.308428 -0.03042,0.616234 -0.07227,0.921875 L 19.792969,13 18.927734,12.5 V 12.25 11.5 Z m -14.2871096,2.25 0.8652344,0.5 v 1 l -0.8652344,0.5 -0.8652344,-0.5 v -1 z m 2.5976562,0 0.1328125,0.07617 c 0.162339,0.469505 0.4107161,0.904661 0.7324219,1.283203 V 14.75 L 8.5371094,15 8.1035156,15.25 7.2382812,14.75 v -1 L 7.671875,13.5 Z M 6.8046875,15.5 7.6699219,16 v 1 L 6.8046875,17.5 6.7011719,17.439453 5.9394531,17 V 16.75 16 l 0.7617188,-0.439453 z m 2.5976563,0 0.4316406,0.25 0.4335936,0.25 v 1 L 9.8339844,17.25 9.4023438,17.5 8.9707031,17.25 8.5371094,17 V 16 L 8.96875,15.75 H 8.9707 Z m 1.8652342,0.423828 C 11.508857,15.971685 11.754037,15.997183 12,16 c 0.245963,-0.0028 0.491143,-0.02831 0.732422,-0.07617 L 12.865234,16 V 16.75 17 L 12.103516,17.439453 12,17.5 11.134766,17 V 16 Z M 8.1035156,17.75 8.96875,18.25 v 1 L 8.8398438,19.32422 C 8.273091,19.085976 7.7356899,18.783196 7.2382812,18.421875 V 18.25 Z m 2.5976564,0 0.865234,0.5 v 1 l -0.865234,0.5 -0.8652345,-0.5 v -1 z",rM="M 6 2 C 4.8900033 2 4 2.8900033 4 4 L 4 20 C 4 21.099997 4.8900033 22 6 22 L 11.111328 22 L 12 22 L 12 20 L 6 20 L 12 14 L 13.210938 15.210938 C 13.375508 12.672702 15.686928 11 18 11 C 18.699997 11 19.400001 11.200391 20 11.400391 L 20 11 L 20 8 L 14 2 L 6 2 z M 13 3.5 L 18.5 9 L 13 9 L 13 3.5 z M 8 9 A 2 2 0 0 1 10 11 A 2 2 0 0 1 8 13 A 2 2 0 0 1 6 11 A 2 2 0 0 1 8 9 z M 18 13 C 16.600001 13 15.199219 14.100002 15.199219 15.5 L 15.199219 17 C 14.599219 17 14 17.599219 14 18.199219 L 14 21.699219 C 14 22.399217 14.599219 23 15.199219 23 L 20.699219 23 C 21.399218 23 22 22.400781 22 21.800781 L 22 18.300781 C 22 17.600783 21.400781 17 20.800781 17 L 20.800781 15.5 C 20.800781 14.100002 19.399998 13 18 13 z M 18 14.199219 C 18.799997 14.199219 19.5 14.700002 19.5 15.5 L 19.5 17 L 16.5 17 L 16.5 15.5 C 16.5 14.700002 17.200002 14.199219 18 14.199219 z",he=Object.freeze({APP_NAME:"fluidd",HEADER_HEIGHT:56,DEFAULTS:{CAMERA_URL_STREAM:"/webcam/?action=stream",CAMERA_URL_SNAPSHOT:"/webcam/?action=snapshot"},NETWORK_REQUEST_TIMEOUT:0,KLIPPY_RETRY_DELAY:1500,SOCKET_RETRY_DELAY:2e3,SOCKET_PING_INTERVAL:1e4,CONSOLE_HISTORY_RETENTION:1e3,CONSOLE_RECEIVE_PREFIX:"",CONSOLE_SEND_PREFIX:"$ ",CONSOLE_COMMAND_HISTORY:20,CHART_HISTORY_RETENTION:1200,JOB_HISTORY_LOAD:50,KLIPPY_DISCONNECTED_REDIRECT:"/configuration",LOCAL_CARDSTATE_STORAGE_KEY:"cardState",LOCAL_CARDLAYOUT_STORAGE_KEY:"cardLayout2",LOCAL_INSTANCES_STORAGE_KEY:"appInstances",KLIPPER_MIN_VERSION:"v0.11.0-257",MOONRAKER_MIN_VERSION:"v0.8.0-309",MOONRAKER_DB:{fluidd:{NAMESPACE:"fluidd",ROOTS:{uiSettings:{name:"uiSettings",dispatch:"config/initUiSettings"},macros:{name:"macros",dispatch:"macros/initMacros"},console:{name:"console",dispatch:"console/initConsole"},charts:{name:"charts",dispatch:"charts/initCharts"},cameras:{name:"cameras",dispatch:"webcams/initLegacyCameras",migrate_only:!0},webcams:{name:"webcams",dispatch:"webcams/initWebcams"},layout:{name:"layout",dispatch:"layout/initLayout"}}},webcams:{NAMESPACE:"webcams",ROOTS:[]}},MOONRAKER_COMPONENTS:{auth:{name:"authorization",dispatch:"auth/init"},power:{name:"power",dispatch:"power/init"},updateManager:{name:"update_manager",dispatch:"version/init"},history:{name:"history",dispatch:"history/init"},timelapse:{name:"timelapse",dispatch:"timelapse/init"},announcements:{name:"announcements",dispatch:"announcements/init"},webcams:{name:"webcam",dispatch:"webcams/init"},jobQueue:{name:"job_queue",dispatch:"jobQueue/init"},spoolman:{name:"spoolman",dispatch:"spoolman/init"},sensors:{name:"sensor",dispatch:"sensors/init"}},CONFIG_SERVICE_MAP:[{filename:"moonraker.conf",service:"moonraker",link:"https://moonraker.readthedocs.io/en/latest/configuration/"},{filename:"webcam.txt",service:"webcamd"},{filename:"crowsnest.conf",service:"crowsnest",link:"https://crowsnest.mainsail.xyz/configuration/sample-config"},{filename:"klipperscreen.conf",service:"KlipperScreen",link:"https://klipperscreen.readthedocs.io/en/latest/"},{filename:"sonar.conf",service:"sonar",link:"https://github.com/mainsail-crew/sonar"},{filename:"mooncord-webcam.json",service:"webcamd",link:"https://github.com/eliteSchwein/mooncord"},{prefix:"mooncord",service:"MoonCord",link:"https://github.com/eliteSchwein/mooncord"},{filename:"telegram.conf",service:"moonraker-telegram-bot",link:"https://github.com/nlef/moonraker-telegram-bot/wiki/Sample-config"},{suffix:".cfg",service:"klipper",link:"{klipperDomain}/Config_Reference.html"}],SUPPORTED_SERVICES:{klipper:{klipper:{domain:"https://www.klipper3d.org"},"danger-klipper":{domain:"https://dangerklipper.io"}}},FILE_DATA_TRANSFER_TYPES:{files:"x-fluidd-files",jobs:"x-fluidd-jobs"},FILTERED_FOLDER_NAMES:[".git"],FILTERED_FILES_PREFIX:[".thumbs","thumbs"],FILTERED_FILES_EXTENSION:[".ignoreme"],KEYBOARD_SHORTCUTS:{home:"h",console:"c",preview:"p",jobs:"j",history:"i",timelapse:"l",tune:"t",diagnostics:"g",configure:"x",system:"q",settings:"s"},DOCS_ROOT:"https://docs.fluidd.xyz",DOCS_REQUIRED_CONFIGURATION:"https://docs.fluidd.xyz/configuration/initial_setup",DOCS_MULTIPLE_INSTANCES:"https://docs.fluidd.xyz/configuration/multiple_printers",DOCS_MOONRAKER_COMPONENTS:"https://docs.fluidd.xyz/configuration/moonraker",DOCS_AUTH_LOST_PASSWORD:"https://docs.fluidd.xyz/authorization#lost-password",DOCS_AUTH:"https://docs.fluidd.xyz/authorization",GITHUB_REPO:"https://github.com/fluidd-core/fluidd"}),ru=Object.freeze({dash:ZD,account:dT,addAccount:pT,help:Nk,motion:aD,limits:xT,send:LD,open:oD,move:Ek,tabs:BT,menu:uk,menuAlt:rD,dots:ck,dotsGrid:lk,drag:pk,chart:MT,power:hD,powerCycle:fD,powerOn:jD,powerOff:BD,home:zk,close:YT,refresh:wD,restart:SD,restartAlert:xD,update:WD,warning:hT,error:jk,thermometer:FD,bell:ET,fireAlert:Ck,snowflakeAlert:TD,circle:GT,blankCircle:FT,markedCircle:$D,checkedCircle:IT,checkboxBlank:HT,checkboxMarked:jT,alertCircle:fT,folderAdd:Tk,folderUp:kk,folderUpload:Ak,folder:Pk,folderLock:Lk,fileUpload:GD,fileAdd:yk,inProgress:qT,progressUpload:bD,progressQuestion:yD,up:AT,down:bT,left:CT,right:PT,tune:UD,zUp:wT,zDown:yT,expandHorizontal:$T,expandVertical:ST,cog:QT,cogs:ek,save:ik,estop:DT,fire:xk,tools:Hk,minus:nD,plus:pD,check:RT,console:tk,clock:ZT,formatLineSpacing:Mk,layersTripleOutline:Zk,chevronUp:UT,chevronDown:NT,chevronRight:zT,chevronLeft:VT,timer:HD,fileCode:gk,fileRefresh:bk,files:$k,file:fk,fileLock:_k,fileCancel:mk,pause:cD,cancel:XD,cancelled:kT,play:R$,resume:R$,stop:DD,reprint:I$,printer:I$,download:dk,rename:Dk,duplicate:nk,sync:MD,delete:ok,camera:TT,fan:hk,pencil:uD,pencilLock:dD,magnify:Qk,magnifyPlus:tD,magnifyMinus:eD,printer3d:mD,printer3dNozzle:_D,printer3dNozzleAlert:vD,bedMesh:YD,host:M$,history:Vk,filter:Sk,commit:kD,cloudCheck:XT,cloudAlert:KT,cubeScan:ak,consoleLine:rk,lock:Kk,lockOpen:Xk,lockReset:Jk,reset:CD,tempError:ID,contentCopy:sk,apps:mT,shieldAccount:OD,retract:F$,codeJson:JT,desktopTower:M$,harddisk:Bk,message:sD,list:Rk,fullScreen:Ik,video:wk,snooze:OT,chip:WT,viewHeadline:KD,absolutePositioning:LT,relativePositioning:H$,openInNew:lD,imageSizeSelectLarge:Uk,listStatus:Yk,previousLayer:Gk,currentLayer:Wk,nextLayer:qk,moves:H$,extrusions:gD,retractions:F$,tableColumn:RD,parts:ED,folderOpen:Ok,fileImage:vk,fileImageLock:rM,fileZip:gT,fileZipLock:vT,fileZipAdd:_T,filament:JD,loadFilament:QD,unloadFilament:eM,changeFilament:tM,cleanNozzle:ND,jobQueue:VD,enqueueJob:zD,sensors:Fk,screenshot:iD,zRotateClockwise:AD,zRotateCounterclockwise:PD,devices:qD}),et=Object.freeze({onServiceRestart:"onServiceRestart",onServiceStop:"onServiceStop",onServiceStart:"onServiceStart",onDevicePowerToggle:"onDevicePowerToggle",onHomeAll:"onHomeAll",onHomeXY:"onHomeXY",onHomeX:"onHomeX",onHomeY:"onHomeY",onHomeZ:"onHomeZ",onQGL:"onQGL",onZTilt:"onZTilt",onBedScrewsAdjust:"onBedScrewAdjust",onBedScrewsCalculate:"onBedScrewsCalculate",onBedTiltCalibrate:"onBedTiltCalibrate",onDeltaCalibrate:"onDeltaCalibrate",onPrintPause:"onPrintPause",onPrintCancel:"onPrintCancel",onPrintResume:"onPrintResume",onMacro:"onMacro",onSetSpeed:"onSetSpeed",onSetFlow:"onSetFlow",onSetPressureAdvance:"onSetPressureAdvance",onSetFanSpeed:"onSetFanSpeed",onSetOutputPin:"onSetOutputPin",onZAdjust:"onZAdjust",onZApply:"onZApply",onSaveConfig:"onSaveConfig",onRetract:"onRetract",onExtrude:"onExtrude",onMeshCalibrate:"onMeshCalibrate",onKlipperRestart:"klipperRestart",onKlipperFirmwareRestart:"klipperFirmwareRestart",onSetVelocity:"onSetVelocity",onSetAcceleration:"onSetAcceleration",onSetAccelToDecel:"onSetAccelToDecel",onSetMinimumCruiseRatio:"onSetMinimumCruiseRatio",onSetSquareCornerVelocity:"onSetSquareCornerVelocity",onSetRetractLength:"onSetRetractLength",onSetRetractSpeed:"onSetRetractSpeed",onSetUnretractSpeed:"onSetUnretractSpeed",onSetUnretractExtraLength:"onSetUnretractExtraLength",onExtruderChange:"onExtruderChange",onLoadLanguage:"onLoadLanguage",onFileSystem:"onFileSystem",onJobQueue:"onJobQueue",onTimelapseSaveFrame:"onTimelapseSaveFrame",onManualProbe:"onManualProbe",onProbeCalibrate:"onProbeCalibrate",onProbeAccuracy:"onProbeAccuracy",onZEndstopCalibrate:"onZEndstopCalibrate",onQueryEndstops:"onQueryEndstops",onQueryProbe:"onQueryProbe",onVersionRefresh:"onVersionRefresh",onSyncExtruder:"onSyncExtruder",onStepperEnable:"onStepperEnable",onMachinePeripheralsUsb:"onMachinePeripheralsUsb",onMachinePeripheralsSerial:"onMachinePeripheralsSerial",onMachinePeripheralsVideo:"onMachinePeripheralsVideo",onMachinePeripheralsCanbus:"onMachinePeripheralsCanbus"}),L5=Object.freeze([{name:"English",code:"en"},{name:"Afrikaans",code:"af"},{name:"Čeština",code:"cs"},{name:"简体中文",code:"zh-CN"},{name:"繁體中文",code:"zh-TW"},{name:"Deutsch",code:"de"},{name:"Español",code:"es"},{name:"Français",code:"fr"},{name:"Italiano",code:"it"},{name:"Magyar",code:"hu"},{name:"Nederlands",code:"nl"},{name:"Polski",code:"pl"},{name:"Português",code:"pt"},{name:"Русский",code:"ru"},{name:"Slovenščina",code:"sl"},{name:"Türkçe",code:"tr"},{name:"Українська",code:"uk"},{name:"한국어",code:"ko"},{name:"العربية",code:"ar"},{name:"日本語",code:"ja"}]),E5=Object.freeze([".bmp",".gif",".jfif",".jpeg",".jpg",".png",".svg",".tif",".tiff",".webp"]),sM=Object.freeze([".markdown",".md",".mdown"]),O5=Object.freeze([".mp4",".mpeg",".mpg"]),T5=Object.freeze({iso:{locales:"lt",options:{day:"2-digit",month:"2-digit",year:"numeric"},suffix:" (ISO 8601)"},digits2:{options:{day:"2-digit",month:"2-digit",year:"numeric"}},short:{options:{day:"2-digit",month:"short",year:"numeric"}}}),k5=Object.freeze({iso:{locales:"lt",options:{hour:"2-digit",minute:"2-digit",hour12:!1},suffix:" (ISO 8601)"},hours12:{options:{hour:"2-digit",minute:"2-digit",hour12:!0}},hours24:{options:{hour:"2-digit",minute:"2-digit",hour12:!1}}});/*!
|
||
* 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,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}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.pluralizationRules=a.pluralizationRules,s.i18n.preserveDirectiveContent=a.preserveDirectiveContent),s.__i18nBridge||s.__i18n)try{var o=s.i18n&&s.i18n.messages?s.i18n.messages:{},l=s.__i18nBridge||s.__i18n;l.forEach(function(d){o=ga(o,JSON.parse(d))}),s.i18n.messages=o}catch{}var c=s.i18n,u=c.sharedMessages;u&&fn(u)&&(s.i18n.messages=ga(s.i18n.messages,u)),this._i18n=new ve(s.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(s.i18n.sync===void 0||s.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),a&&a.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ve?this._i18n=this.$root.$i18n:s.parent&&s.parent.$i18n&&s.parent.$i18n instanceof ve&&(this._i18n=s.parent.$i18n)},beforeMount:function(){var s=this.$options;s.i18n=s.i18n||(s.__i18nBridge||s.__i18n?{}:null),s.i18n?s.i18n instanceof ve?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):fn(s.i18n)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ve?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):s.parent&&s.parent.$i18n&&s.parent.$i18n instanceof ve&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:e,beforeDestroy:function(){if(this._i18n){var s=this;this.$nextTick(function(){s._subscribing&&(s._i18n.unsubscribeDataChanging(s),delete s._subscribing),s._i18nWatcher&&(s._i18nWatcher(),s._i18n.destroyVM(),delete s._i18nWatcher),s._localeWatcher&&(s._localeWatcher(),delete s._localeWatcher)})}}}}var j$={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var s=t.data,n=t.parent,i=t.props,a=t.slots,o=n.$i18n;if(o){var l=i.path,c=i.locale,u=i.places,d=a(),p=o.i(l,c,vM(d)||u?_M(d.default,u):d),h=i.tag&&i.tag!==!0||i.tag===!1?i.tag:"span";return h?e(h,s,p):p}}};function vM(r){var e;for(e in r)if(e!=="default")return!1;return!!e}function _M(r,e){var t=e?yM(e):{};if(!r)return t;r=r.filter(function(n){return n.tag||n.text.trim()!==""});var s=r.every($M);return r.reduce(s?bM:M5,t)}function yM(r){return Array.isArray(r)?r.reduce(M5,{}):Object.assign({},r)}function bM(r,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(r[e.data.attrs.place]=e),r}function M5(r,e,t){return r[t]=e,r}function $M(r){return!!(r.data&&r.data.attrs&&r.data.attrs.place)}var B$={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var s=t.props,n=t.parent,i=t.data,a=n.$i18n;if(!a)return null;var o=null,l=null;Xt(s.format)?o=s.format:ws(s.format)&&(s.format.key&&(o=s.format.key),l=Object.keys(s.format).reduce(function(h,f){var g;return Ku(D5,f)?Object.assign({},h,(g={},g[f]=s.format[f],g)):h},null));var c=s.locale||a.locale,u=a._ntp(s.value,c,o,l),d=u.map(function(h,f){var g,v=i.scopedSlots&&i.scopedSlots[h.type];return v?v((g={},g[h.type]=h.value,g.index=f,g.parts=u,g)):h.value}),p=s.tag&&s.tag!==!0||s.tag===!1?s.tag:"span";return p?e(p,{attrs:i.attrs,class:i.class,staticClass:i.staticClass},d):d}};function wM(r,e,t){R5(r,t)&&I5(r,e,t)}function SM(r,e,t,s){if(R5(r,t)){var n=t.context.$i18n;CM(r,t)&&ph(e.value,e.oldValue)&&ph(r._localeMessage,n.getLocaleMessage(n.locale))||I5(r,e,t)}}function xM(r,e,t,s){var n=t.context;if(!n){No("Vue instance does not exists in VNode context");return}var i=t.context.$i18n||{};!e.modifiers.preserve&&!i.preserveDirectiveContent&&(r.textContent=""),r._vt=void 0,delete r._vt,r._locale=void 0,delete r._locale,r._localeMessage=void 0,delete r._localeMessage}function R5(r,e){var t=e.context;return t?t.$i18n?!0:(No("VueI18n instance does not exists in Vue instance"),!1):(No("Vue instance does not exists in VNode context"),!1)}function CM(r,e){var t=e.context;return r._locale===t.$i18n.locale}function I5(r,e,t){var s,n,i=e.value,a=PM(i),o=a.path,l=a.locale,c=a.args,u=a.choice;if(!o&&!l&&!c){No("value type not supported");return}if(!o){No("`path` is required in v-t directive");return}var d=t.context;u!=null?r._vt=r.textContent=(s=d.$i18n).tc.apply(s,[o,u].concat(N$(l,c))):r._vt=r.textContent=(n=d.$i18n).t.apply(n,[o].concat(N$(l,c))),r._locale=d.$i18n.locale,r._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}function PM(r){var e,t,s,n;return Xt(r)?e=r:fn(r)&&(e=r.path,t=r.locale,s=r.args,n=r.choice),{path:e,locale:t,args:s,choice:n}}function N$(r,e){var t=[];return r&&t.push(r),e&&(Array.isArray(e)||fn(e))&&t.push(e),t}var yr;function fy(r,e){e===void 0&&(e={bridge:!1}),fy.installed=!0,yr=r,yr.version&&Number(yr.version.split(".")[0]),mM(yr),yr.mixin(gM(e.bridge)),yr.directive("t",{bind:wM,update:SM,unbind:xM}),yr.component(j$.name,j$),yr.component(B$.name,B$);var t=yr.config.optionMergeStrategies;t.i18n=function(s,n){return n===void 0?s:n}}var F5=function(){this._caches=Object.create(null)};F5.prototype.interpolate=function(e,t){if(!t)return[e];var s=this._caches[e];return s||(s=EM(e),this._caches[e]=s),OM(s,t)};var AM=/^(?:\d)+/,LM=/^(?:\w)+/;function EM(r){for(var e=[],t=0,s="";t<r.length;){var n=r[t++];if(n==="{"){s&&e.push({type:"text",value:s}),s="";var i="";for(n=r[t++];n!==void 0&&n!=="}";)i+=n,n=r[t++];var a=n==="}",o=AM.test(i)?"list":a&&LM.test(i)?"named":"unknown";e.push({value:i,type:o})}else n==="%"?r[t]!=="{"&&(s+=n):s+=n}return s&&e.push({type:"text",value:s}),e}function OM(r,e){var t=[],s=0,n=Array.isArray(e)?"list":ws(e)?"named":"unknown";if(n==="unknown")return t;for(;s<r.length;){var i=r[s];switch(i.type){case"text":t.push(i.value);break;case"list":t.push(e[parseInt(i.value,10)]);break;case"named":n==="named"&&t.push(e[i.value]);break}s++}return t}var Kt=0,Oo=1,H5=2,j5=3,rv=0,hh=1,fh=2,fi=3,Dn=4,mh=5,gh=6,em=7,su=8,Ii=[];Ii[rv]={ws:[rv],ident:[fi,Kt],"[":[Dn],eof:[em]};Ii[hh]={ws:[hh],".":[fh],"[":[Dn],eof:[em]};Ii[fh]={ws:[fh],ident:[fi,Kt],0:[fi,Kt],number:[fi,Kt]};Ii[fi]={ident:[fi,Kt],0:[fi,Kt],number:[fi,Kt],ws:[hh,Oo],".":[fh,Oo],"[":[Dn,Oo],eof:[em,Oo]};Ii[Dn]={"'":[mh,Kt],'"':[gh,Kt],"[":[Dn,H5],"]":[hh,j5],eof:su,else:[Dn,Kt]};Ii[mh]={"'":[Dn,Kt],eof:su,else:[mh,Kt]};Ii[gh]={'"':[Dn,Kt],eof:su,else:[gh,Kt]};var TM=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function kM(r){return TM.test(r)}function DM(r){var e=r.charCodeAt(0),t=r.charCodeAt(r.length-1);return e===t&&(e===34||e===39)?r.slice(1,-1):r}function MM(r){if(r==null)return"eof";var e=r.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:return r;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function RM(r){var e=r.trim();return r.charAt(0)==="0"&&isNaN(r)?!1:kM(e)?DM(e):"*"+e}function IM(r){var e=[],t=-1,s=rv,n=0,i,a,o,l,c,u,d,p=[];p[Oo]=function(){a!==void 0&&(e.push(a),a=void 0)},p[Kt]=function(){a===void 0?a=o:a+=o},p[H5]=function(){p[Kt](),n++},p[j5]=function(){if(n>0)n--,s=Dn,p[Kt]();else{if(n=0,a===void 0||(a=RM(a),a===!1))return!1;p[Oo]()}};function h(){var f=r[t+1];if(s===mh&&f==="'"||s===gh&&f==='"')return t++,o="\\"+f,p[Kt](),!0}for(;s!==null;)if(t++,i=r[t],!(i==="\\"&&h())){if(l=MM(i),d=Ii[s],c=d[l]||d.else||su,c===su||(s=c[0],u=p[c[1]],u&&(o=c[2],o=o===void 0?i:o,u()===!1)))return;if(s===em)return e}}var my=function(){this._cache=Object.create(null)};my.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=IM(e),t&&(this._cache[e]=t)),t||[]};my.prototype.getPathValue=function(e,t){if(!ws(e))return null;var s=this.parsePath(t);if(s.length===0)return null;for(var n=s.length,i=e,a=0;a<n;){var o=i[s[a]];if(o==null)return null;i=o,a++}return i};var FM=/<\/?[\w\s="/.':;#-\/]+>/,HM=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,jM=/^@(?:\.([a-zA-Z]+))?:/,BM=/[()]/g,V$={upper:function(r){return r.toLocaleUpperCase()},lower:function(r){return r.toLocaleLowerCase()},capitalize:function(r){return""+r.charAt(0).toLocaleUpperCase()+r.substr(1)}},sv=new F5,ve=function(e){var t=this;e===void 0&&(e={}),!yr&&typeof window<"u"&&window.Vue&&fy(window.Vue);var s=e.locale||"en-US",n=e.fallbackLocale===!1?!1:e.fallbackLocale||"en-US",i=e.messages||{},a=e.dateTimeFormats||e.datetimeFormats||{},o=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||sv,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=e.sync===void 0?!0:!!e.sync,this._fallbackRoot=e.fallbackRoot===void 0?!0:!!e.fallbackRoot,this._fallbackRootWithEmptyString=e.fallbackRootWithEmptyString===void 0?!0:!!e.fallbackRootWithEmptyString,this._formatFallbackMessages=e.formatFallbackMessages===void 0?!1:!!e.formatFallbackMessages,this._silentTranslationWarn=e.silentTranslationWarn===void 0?!1:e.silentTranslationWarn,this._silentFallbackWarn=e.silentFallbackWarn===void 0?!1:!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new my,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=e.preserveDirectiveContent===void 0?!1:!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in e&&(this.__VUE_I18N_BRIDGE__=e.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(l,c){var u=Object.getPrototypeOf(t);if(u&&u.getChoiceIndex){var d=u.getChoiceIndex;return d.call(t,l,c)}var p=function(h,f){return h=Math.abs(h),f===2?h?h>1?1:0:1:h?Math.min(h,2):0};return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[l,c]):p(l,c)},this._exist=function(l,c){return!l||!c?!1:!!(!Br(t._path.getPathValue(l,c))||l[c])},(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&Object.keys(i).forEach(function(l){t._checkLocaleMessage(l,t._warnHtmlInMessage,i[l])}),this._initVM({locale:s,fallbackLocale:n,messages:i,dateTimeFormats:a,numberFormats:o})},pt={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};ve.prototype._checkLocaleMessage=function(e,t,s){var n=[],i=function(a,o,l,c){if(fn(l))Object.keys(l).forEach(function(p){var h=l[p];fn(h)?(c.push(p),c.push("."),i(a,o,h,c),c.pop(),c.pop()):(c.push(p),i(a,o,h,c),c.pop())});else if(vn(l))l.forEach(function(p,h){fn(p)?(c.push("["+h+"]"),c.push("."),i(a,o,p,c),c.pop(),c.pop()):(c.push("["+h+"]"),i(a,o,p,c),c.pop())});else if(Xt(l)){var u=FM.test(l);if(u){var d="Detected HTML in message '"+l+"' of keypath '"+c.join("")+"' at '"+o+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";a==="warn"?No(d):a==="error"&&iM(d)}}};i(t,e,s,n)};ve.prototype._initVM=function(e){var t=yr.config.silent;yr.config.silent=!0,this._vm=new yr({data:e,__VUE18N__INSTANCE__:!0}),yr.config.silent=t};ve.prototype.destroyVM=function(){this._vm.$destroy()};ve.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)};ve.prototype.unsubscribeDataChanging=function(e){cM(this._dataListeners,e)};ve.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",function(){for(var t=uM(e._dataListeners),s=t.length;s--;)yr.nextTick(function(){t[s]&&t[s].$forceUpdate()})},{deep:!0})};ve.prototype.watchLocale=function(e){if(e){if(!this.__VUE_I18N_BRIDGE__)return null;var s=this,n=this._vm;return this.vm.$watch("locale",function(i){n.$set(n,"locale",i),s.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=i),n.$forceUpdate()},{immediate:!0})}else{if(!this._sync||!this._root)return null;var t=this._vm;return this._root.$i18n.vm.$watch("locale",function(i){t.$set(t,"locale",i),t.$forceUpdate()},{immediate:!0})}};ve.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)};pt.vm.get=function(){return this._vm};pt.messages.get=function(){return bl(this._getMessages())};pt.dateTimeFormats.get=function(){return bl(this._getDateTimeFormats())};pt.numberFormats.get=function(){return bl(this._getNumberFormats())};pt.availableLocales.get=function(){return Object.keys(this.messages).sort()};pt.locale.get=function(){return this._vm.locale};pt.locale.set=function(r){this._vm.$set(this._vm,"locale",r)};pt.fallbackLocale.get=function(){return this._vm.fallbackLocale};pt.fallbackLocale.set=function(r){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",r)};pt.formatFallbackMessages.get=function(){return this._formatFallbackMessages};pt.formatFallbackMessages.set=function(r){this._formatFallbackMessages=r};pt.missing.get=function(){return this._missing};pt.missing.set=function(r){this._missing=r};pt.formatter.get=function(){return this._formatter};pt.formatter.set=function(r){this._formatter=r};pt.silentTranslationWarn.get=function(){return this._silentTranslationWarn};pt.silentTranslationWarn.set=function(r){this._silentTranslationWarn=r};pt.silentFallbackWarn.get=function(){return this._silentFallbackWarn};pt.silentFallbackWarn.set=function(r){this._silentFallbackWarn=r};pt.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent};pt.preserveDirectiveContent.set=function(r){this._preserveDirectiveContent=r};pt.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage};pt.warnHtmlInMessage.set=function(r){var e=this,t=this._warnHtmlInMessage;if(this._warnHtmlInMessage=r,t!==r&&(r==="warn"||r==="error")){var s=this._getMessages();Object.keys(s).forEach(function(n){e._checkLocaleMessage(n,e._warnHtmlInMessage,s[n])})}};pt.postTranslation.get=function(){return this._postTranslation};pt.postTranslation.set=function(r){this._postTranslation=r};pt.sync.get=function(){return this._sync};pt.sync.set=function(r){this._sync=r};ve.prototype._getMessages=function(){return this._vm.messages};ve.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats};ve.prototype._getNumberFormats=function(){return this._vm.numberFormats};ve.prototype._warnDefault=function(e,t,s,n,i,a){if(!Br(s))return s;if(this._missing){var o=this._missing.apply(null,[e,t,n,i]);if(Xt(o))return o}if(this._formatFallbackMessages){var l=Qf.apply(void 0,i);return this._render(t,a,l.params,t)}else return t};ve.prototype._isFallbackRoot=function(e){return(this._fallbackRootWithEmptyString?!e:Br(e))&&!Br(this._root)&&this._fallbackRoot};ve.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn};ve.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)};ve.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn};ve.prototype._interpolate=function(e,t,s,n,i,a,o){if(!t)return null;var l=this._path.getPathValue(t,s);if(vn(l)||fn(l))return l;var c;if(Br(l))if(fn(t)){if(c=t[s],!(Xt(c)||tv(c)))return null}else return null;else if(Xt(l)||tv(l))c=l;else return null;return Xt(c)&&(c.indexOf("@:")>=0||c.indexOf("@.")>=0)&&(c=this._link(e,t,c,n,"raw",a,o)),this._render(c,i,a,s)};ve.prototype._link=function(e,t,s,n,i,a,o){var l=s,c=l.match(HM);for(var u in c)if(c.hasOwnProperty(u)){var d=c[u],p=d.match(jM),h=p[0],f=p[1],g=d.replace(h,"").replace(BM,"");if(Ku(o,g))return l;o.push(g);var v=this._interpolate(e,t,g,n,i==="raw"?"string":i,i==="raw"?void 0:a,o);if(this._isFallbackRoot(v)){if(!this._root)throw Error("unexpected error");var y=this._root.$i18n;v=y._translate(y._getMessages(),y.locale,y.fallbackLocale,g,n,i,a)}v=this._warnDefault(e,g,v,n,vn(a)?a:[a],i),this._modifiers.hasOwnProperty(f)?v=this._modifiers[f](v):V$.hasOwnProperty(f)&&(v=V$[f](v)),o.pop(),l=v?l.replace(d,v):l}return l};ve.prototype._createMessageContext=function(e,t,s,n){var i=this,a=vn(e)?e:[],o=ws(e)?e:{},l=function(p){return a[p]},c=function(p){return o[p]},u=this._getMessages(),d=this.locale;return{list:l,named:c,values:e,formatter:t,path:s,messages:u,locale:d,linked:function(p){return i._interpolate(d,u[d]||{},p,null,n,void 0,[p])}}};ve.prototype._render=function(e,t,s,n){if(tv(e))return e(this._createMessageContext(s,this._formatter||sv,n,t));var i=this._formatter.interpolate(e,s,n);return i||(i=sv.interpolate(e,s,n)),t==="string"&&!Xt(i)?i.join(""):i};ve.prototype._appendItemToChain=function(e,t,s){var n=!1;return Ku(e,t)||(n=!0,t&&(n=t[t.length-1]!=="!",t=t.replace(/!/g,""),e.push(t),s&&s[t]&&(n=s[t]))),n};ve.prototype._appendLocaleToChain=function(e,t,s){var n,i=t.split("-");do{var a=i.join("-");n=this._appendItemToChain(e,a,s),i.splice(-1,1)}while(i.length&&n===!0);return n};ve.prototype._appendBlockToChain=function(e,t,s){for(var n=!0,i=0;i<t.length&&aM(n);i++){var a=t[i];Xt(a)&&(n=this._appendLocaleToChain(e,a,s))}return n};ve.prototype._getLocaleChain=function(e,t){if(e==="")return[];this._localeChainCache||(this._localeChainCache={});var s=this._localeChainCache[e];if(!s){t||(t=this.fallbackLocale),s=[];for(var n=[e];vn(n);)n=this._appendBlockToChain(s,n,t);var i;vn(t)?i=t:ws(t)?t.default?i=t.default:i=null:i=t,Xt(i)?n=[i]:n=i,n&&this._appendBlockToChain(s,n,null),this._localeChainCache[e]=s}return s};ve.prototype._translate=function(e,t,s,n,i,a,o){for(var l=this._getLocaleChain(t,s),c,u=0;u<l.length;u++){var d=l[u];if(c=this._interpolate(d,e[d],n,i,a,o,[n]),!Br(c))return c}return null};ve.prototype._t=function(e,t,s,n){for(var i,a=[],o=arguments.length-4;o-- >0;)a[o]=arguments[o+4];if(!e)return"";var l=Qf.apply(void 0,a);this._escapeParameterHtml&&(l.params=fM(l.params));var c=l.locale||t,u=this._translate(s,c,this.fallbackLocale,e,n,"string",l.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[e].concat(a))}else return u=this._warnDefault(c,e,u,n,a,"string"),this._postTranslation&&u!==null&&u!==void 0&&(u=this._postTranslation(u,e)),u};ve.prototype.t=function(e){for(var t,s=[],n=arguments.length-1;n-- >0;)s[n]=arguments[n+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(s))};ve.prototype._i=function(e,t,s,n,i){var a=this._translate(s,t,this.fallbackLocale,e,n,"raw",i);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,i)}else return this._warnDefault(t,e,a,n,[i],"raw")};ve.prototype.i=function(e,t,s){return e?(Xt(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,s)):""};ve.prototype._tc=function(e,t,s,n,i){for(var a,o=[],l=arguments.length-5;l-- >0;)o[l]=arguments[l+5];if(!e)return"";i===void 0&&(i=1);var c={count:i,n:i},u=Qf.apply(void 0,o);return u.params=Object.assign(c,u.params),o=u.locale===null?[u.params]:[u.locale,u.params],this.fetchChoice((a=this)._t.apply(a,[e,t,s,n].concat(o)),i)};ve.prototype.fetchChoice=function(e,t){if(!e||!Xt(e))return null;var s=e.split("|");return t=this.getChoiceIndex(t,s.length),s[t]?s[t].trim():e};ve.prototype.tc=function(e,t){for(var s,n=[],i=arguments.length-2;i-- >0;)n[i]=arguments[i+2];return(s=this)._tc.apply(s,[e,this.locale,this._getMessages(),null,t].concat(n))};ve.prototype._te=function(e,t,s){for(var n=[],i=arguments.length-3;i-- >0;)n[i]=arguments[i+3];var a=Qf.apply(void 0,n).locale||t;return this._exist(s[a],e)};ve.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)};ve.prototype.getLocaleMessage=function(e){return bl(this._vm.messages[e]||{})};ve.prototype.setLocaleMessage=function(e,t){(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)};ve.prototype.mergeLocaleMessage=function(e,t){(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,ga(typeof this._vm.messages[e]<"u"&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))};ve.prototype.getDateTimeFormat=function(e){return bl(this._vm.dateTimeFormats[e]||{})};ve.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)};ve.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,ga(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)};ve.prototype._clearDateTimeFormat=function(e,t){for(var s in t){var n=e+"__"+s;this._dateTimeFormatters.hasOwnProperty(n)&&delete this._dateTimeFormatters[n]}};ve.prototype._localizeDateTime=function(e,t,s,n,i,a){for(var o=t,l=n[o],c=this._getLocaleChain(t,s),u=0;u<c.length;u++){var d=o,p=c[u];if(l=n[p],o=p,!(Br(l)||Br(l[i])))break}if(Br(l)||Br(l[i]))return null;var h=l[i],f;if(a)f=new Intl.DateTimeFormat(o,Object.assign({},h,a));else{var g=o+"__"+i;f=this._dateTimeFormatters[g],f||(f=this._dateTimeFormatters[g]=new Intl.DateTimeFormat(o,h))}return f.format(e)};ve.prototype._d=function(e,t,s,n){if(!s){var i=n?new Intl.DateTimeFormat(t,n):new Intl.DateTimeFormat(t);return i.format(e)}var a=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),s,n);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,s,t)}else return a||""};ve.prototype.d=function(e){for(var t=[],s=arguments.length-1;s-- >0;)t[s]=arguments[s+1];var n=this.locale,i=null,a=null;return t.length===1?(Xt(t[0])?i=t[0]:ws(t[0])&&(t[0].locale&&(n=t[0].locale),t[0].key&&(i=t[0].key)),a=Object.keys(t[0]).reduce(function(o,l){var c;return Ku(nM,l)?Object.assign({},o,(c={},c[l]=t[0][l],c)):o},null)):t.length===2&&(Xt(t[0])&&(i=t[0]),Xt(t[1])&&(n=t[1])),this._d(e,n,i,a)};ve.prototype.getNumberFormat=function(e){return bl(this._vm.numberFormats[e]||{})};ve.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)};ve.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,ga(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)};ve.prototype._clearNumberFormat=function(e,t){for(var s in t){var n=e+"__"+s;this._numberFormatters.hasOwnProperty(n)&&delete this._numberFormatters[n]}};ve.prototype._getNumberFormatter=function(e,t,s,n,i,a){for(var o=t,l=n[o],c=this._getLocaleChain(t,s),u=0;u<c.length;u++){var d=o,p=c[u];if(l=n[p],o=p,!(Br(l)||Br(l[i])))break}if(Br(l)||Br(l[i]))return null;var h=l[i],f;if(a)f=new Intl.NumberFormat(o,Object.assign({},h,a));else{var g=o+"__"+i;f=this._numberFormatters[g],f||(f=this._numberFormatters[g]=new Intl.NumberFormat(o,h))}return f};ve.prototype._n=function(e,t,s,n){if(!ve.availabilities.numberFormat)return"";if(!s){var i=n?new Intl.NumberFormat(t,n):new Intl.NumberFormat(t);return i.format(e)}var a=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),s,n),o=a&&a.format(e);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:s,locale:t},n))}else return o||""};ve.prototype.n=function(e){for(var t=[],s=arguments.length-1;s-- >0;)t[s]=arguments[s+1];var n=this.locale,i=null,a=null;return t.length===1?Xt(t[0])?i=t[0]:ws(t[0])&&(t[0].locale&&(n=t[0].locale),t[0].key&&(i=t[0].key),a=Object.keys(t[0]).reduce(function(o,l){var c;return Ku(D5,l)?Object.assign({},o,(c={},c[l]=t[0][l],c)):o},null)):t.length===2&&(Xt(t[0])&&(i=t[0]),Xt(t[1])&&(n=t[1])),this._n(e,n,i,a)};ve.prototype._ntp=function(e,t,s,n){if(!ve.availabilities.numberFormat)return[];if(!s){var i=n?new Intl.NumberFormat(t,n):new Intl.NumberFormat(t);return i.formatToParts(e)}var a=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),s,n),o=a&&a.formatToParts(e);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,s,n)}else return o||[]};Object.defineProperties(ve.prototype,pt);var Mg;Object.defineProperty(ve,"availabilities",{get:function(){if(!Mg){var e=typeof Intl<"u";Mg={dateTimeFormat:e&&typeof Intl.DateTimeFormat<"u",numberFormat:e&&typeof Intl.NumberFormat<"u"}}return Mg}});ve.install=fy;ve.version="8.28.2";const NM=(r={})=>{const t={...{countryCodeOnly:!1},...r},s=navigator.languages!==void 0?navigator.languages[0]:navigator.language;return s?s=="zh-CN"||s=="zh-TW"?s:t.countryCodeOnly?s.trim().split(/-|_/)[0]:s.trim():void 0};var B5={app:{bedmesh:{label:{active:"active",base:"base",box_scale:"Box scale",flat_surface:"Show flat plane",mesh_matrix:"Mesh matrix",probed_matrix:"Probed matrix",profile_name:"Profile Name",remove_profile:"Remove %{name} profile",scale:"Color scale",wireframe:"Wireframe"},msg:{hint:"If saving as something other than %{name}, you can choose to also remove the %{name} profile",not_found:"No existing bed meshes found.",not_loaded:"No mesh loaded"},tooltip:{calibrate:"Begins a new calibration, saving as profile 'default'",delete:"Delete Profile",load:"Load Profile",save:"Commits calibrated profile to printer.cfg",copy_image:"Copy bed mesh image"}},chart:{label:{current:"Actual",item:"Name",power:"Power",target:"Target",rate_of_change:"Change"},tooltip:{help:"Hold <kbd>Shift</kbd> to zoom.<br />Click an item to toggle in the graph.<br />Click a power to toggle in the graph."}},console:{label:{auto_scroll:"Auto scroll",flip_layout:"Flip layout",hide_temp_waits:"Hide temp waits"},tooltip:{help:'Enter "help" for commands<br />Use <kbd>Tab</kbd> for autocomplete<br />Use <kbd>↑</kbd> and <kbd>↓</kbd> for history'}},endpoint:{error:{cant_connect:"Something went wrong, and fluidd can't reach the destination. Are you sure this is the correct address?",cors_error:"blocked by CORS policy",cors_note:'This may mean you need to modify your moonraker configuration. Please see the documentation on multi printer setups <a href="%{url}" target="_blank">here</a>'},hint:{add_printer:"E.g., http://fluiddpi.local"},msg:{trouble:'Having trouble? <a href="%{url}" target="_blank">See here</a> for more information.'},tooltip:{endpoint_examples:"Enter your API URL.<br />Some examples might be;<br /><blockquote>fluidd.local, https://192.168.1.150</blockquote>"}},endstop:{label:{open:"OPEN",triggered:"TRIGGERED"},msg:{subtitle:"Use the refresh button to update endstop status."}},file_system:{filters:{label:{crowsnest_backup_files:"Filter Crowsnest backup files",print_start_time:"Filter printed",hidden_files_folders:"Filter hidden files and folders",klipper_backup_files:"Filter Klipper backup files",moonraker_backup_files:"Filter Moonraker backup files",rolled_log_files:"Filter rolled log files"}},label:{dir_name:"Directory name",disk_usage:"Disk Usage",diskinfo:"Disk Information",downloaded:"Downloaded",file_name:"Filename",transfer_rate:"Transfer rate",uploaded:"Uploaded",view_section_documentation:"View '%{section}' documentation"},msg:{not_found:"No files found",processing:"Processing"},overlay:{drag_files_folders_upload:"<strong>Drag</strong> files and folders here to upload",drag_files_enqueue:"<strong>Drag</strong> files here to enqueue"},title:{add_dir:"Add Directory",add_file:"Add File",command_palette:"Command Palette",devices:"Devices",download_file:"Retrieving file",duplicate_dir:"Duplicate Directory",duplicate_file:"Duplicate File",go_to_file:"Go to file",rename_dir:"Rename Directory",rename_file:"Rename File",upload_file:"Uploading file | Uploading files"},tooltip:{low_on_space:"Low on disk space",items_count:"{count} item | {count} items",root_disabled:"{root} root is not available. Please check your logs."},url:{klipper_config:"%{klipperDomain}/Config_Reference.html#%{hash}",moonraker_config:"https://moonraker.readthedocs.io/en/latest/configuration/#%{hash}",moonraker_telegram_bot_config:"https://github.com/nlef/moonraker-telegram-bot/wiki/Sample-config#%{hash}",crowsnest_config:"https://crowsnest.mainsail.xyz/configuration/%{hash}-section"}},gcode:{btn:{load_current_file:"Load Current File"},label:{current_layer_height:"Current Layer Height",exclude_object:"Exclude Object",follow_progress:"Follow progress",layer:"Layer",layers:"Layers",parsed:"Parsed",show_current_layer:"Show current layer",show_extrusions:"Show extrusions",show_moves:"Show moves",show_next_layer:"Show next layer",show_parts:"Show parts",show_previous_layer:"Show previous layer",show_retractions:"Show retractions",parsing_file:"Parsing file"},msg:{confirm:'The file "%{filename}" is %{size}, this might be resource intensive for your system. Are you sure?'},overlay:{drag_file_load:"<strong>Drag</strong> a gcode file here to load"}},general:{btn:{abort:"Abort",accept:"Accept",add:"Add",add_dir:"Add Directory",add_file:"Add File",add_printer:"Add printer",add_to_queue:"Add to Queue",adjust_layout:"Adjust dashboard layout",adjusted:"Adjusted",all:"All",auth_unsure:"Unsure why you're seeing this?",calibrate:"Calibrate",cancel:"Cancel",clear_profile:"Clear Profile",close:"Close",config_reference:"Config Reference",copied:"Copied",copy:"Copy",create_zip_archive:"Create ZIP Archive",delete:"Delete",download:"Download",duplicate:"Duplicate",edit:"Edit",exit_layout:"Exit layout mode",extrude:"Extrude",filter:"Filter",forgot_password:"Forgotten your password?",go_to_file:"Go to file",heaters_off:"Heaters off",job_queue:"Job Queue",load_all:"Load all",login:"Login",logout:"Logout",more_information:"More information",multiply:"Multiply",pause:"Pause",preheat:"Preheat",presets:"Presets",preview_gcode:"Preview Gcode",print:"Print",quad_gantry_level:"QGL",reboot:"Reboot",recover:"Recover",refresh:"Refresh",refresh_metadata:"Refresh Metadata",reload:"Reload",remove:"Remove",remove_all:"Remove all",rename:"Rename",reprint:"Re-Print",reset_file:"Clear File",reset_layout:"Reset to Default Layout",reset_default_layout:"Reset Default Layout",restart_firmware:"Firmware Restart",restart_service:"Restart %{service}",restart_service_klipper:"Restart Klipper",restart_service_moonraker:"Restart Moonraker",resume:"Resume",retract:"Retract",retry:"Retry",return_dashboard:"Return to the dashboard",save:"Save",save_as:"Save As",save_restart:"Save & Restart",save_config_and_restart:"Save config & restart",select_columns:"Select columns",send:"Send",set_color:"Set Color",set_default_layout:"Set as Default Layout",shutdown:"Shutdown",snooze:"Snooze",socket_reconnect:"Re-Connect",socket_refresh:"Force refresh",thumbnail_size:"Thumbnail size",upload:"Upload",upload_files:"Upload Files",upload_folder:"Upload Folder",upload_print:"Upload & Print",view:"View",reset_stats:"Reset Stats"},error:{app_setup_link:'Fluidd setup requirements can be found <a target="_blank" href="%{url}">here.</a>',app_warnings_found:"%{appName} warnings found.",components_config:'Moonraker plugin configuration can be found <a target="_blank" href="%{url}">here.</a>',failed_components:"Moonraker has failed plugins, please check your logs, update your configuration and restart moonraker."},label:{accel_to_decel:"Accel to Decel",acceleration:"Acceleration",accepted_screws:"Accepted screws",actual_time:"Actual",add_camera:"Add Camera",add_filter:"Add Filter",add_preset:"Add Preset",add_user:"Add user",all:"All",api_key:"Api Key",api_url:"API URL",auth_source:"Authentication Source",bars:"Bars",category:"Category",change_password:"Change password",clear_all:"Clear all",color:"Color",command:"Command",confirm:"Confirm",cross:"Cross",circle:"Circle",compact:"Compact",current_password:"Current password",current_user:"Current user",default:"Default",disabled_while_printing:"Disabled while printing",edit_camera:"Edit Camera",edit_filter:"Edit Filter",edit_preset:"Edit Preset",edit_user:"Edit user",extrude_length:"Extrude Length",extrude_speed:"Extrude Speed",filament:"Filament",file:"File",finish_time:"Finish",flow:"Flow",free:"free",heaters_busy:"The printer is currently busy. Turning off the heaters may result in a failed print.",high:"High",host:"Host",layer:"Layer",layout:"Layout",ldap:"LDAP",longest_job:"Longest job",low:"Low",manage_accounts:"Manage Accounts",minimum_cruise_ratio:"Minimum Cruise Ratio",user_managed_source:"User managed by %{source} authentication",m117:"M117",moonraker:"Moonraker",name:"Name",new_password:"New password",no_notifications:"No notifications",on:"On",off:"Off",numeric_prefix_sort:"Numeric Prefix sort",password:"Password",partial_of_total:"%{partial} of %{total}",pause_at_layer:"Pause at Layer",pause_at_next_layer:"Pause at next layer",pause_at_layer_number:"Pause at layer number",power:"Power",pressure_advance:"Pressure Advance",printers:"Printers",progress:"Progress",range:"Range",requested_speed:"Speed",retract_length:"Retract Length",retract_speed:"Retract Speed",save_as:"Save As",screw_index:"Screw index",screw_name:"Screw name",screw_number:"Screw %{index}",services:"Services",slicer:"Slicer",smooth_time:"Smooth Time",speed:"Speed",sqv:"Square Corner Velocity",stepper_enabled:"Stepper Enabled",synced_extruder:"Synced Extruder",thumbnail_size:"Thumbnail Size",total:"Total",total_filament:"Total filament used",total_filament_avg:"Avg per print",total_jobs:"Total print jobs",total_print_time:"Total print time",total_print_time_avg:"Avg per print",total_time:"Total time",total_time_avg:"Avg per print",turn_device_on:"Turn %{device} on",turn_device_off:"Turn %{device} off",uncategorized:"Uncategorized",unknown:"Unknown",unretract_extra_length:"Unretract Extra Length",unretract_speed:"Unretract Speed",upload_and_print:"Upload and Print",used:"used",username:"Username",velocity:"Velocity",version_sort:"Version sort",visible:"Visible",z_offset:"Z Offset",unsaved_changes:"Unsaved Changes",alias:"Alias",apply_z_offset:"Apply and Save Z_Offset",edit_category:"Edit category",add_category:"Add category",file_time:"File",stepper_driver:"%{name} Driver"},msg:{password_changed:"Password changed",wrong_password:"Oops, something went wrong. Is your password correct?",bed_screws_adjust:"Click <b>Adjusted</b> if a significant adjustment is necessary on the current screw; otherwise, click <b>Accept</b> to continue.",welcome_back:"Welcome back.<br>Sign in below to stay in touch with your printer.",offline_ready:"Fluidd is now ready to work offline.",needs_refresh:"New content available, please click the <b>Reload</b> button to update.",pending_configuration_sections_deleted:"The following sections are marked for deletion",rolledover_logs:"The following application logs have been rolled over: %{applications}",not_valid_fluidd_backup_file:"Not a valid Fluidd backup file!",fluidd_settings_backup_failed:"Failed to backup Fluidd settings!",fluidd_settings_restore_failed:"Failed to restore Fluidd settings!"},simple_form:{error:{arrayofnums:"Only numbers",credentials:"Invalid credentials",exists:"Already exists",invalid_number:"Invalid Number",invalid_url:"Invalid URL",invalid_expression:"Invalid Expression",max:"Max %{max}",min:"Min %{min}",min_or_0:"Min %{min} or 0",password_username:"Cannot match username",required:"Required",invalid_aspect:"Invalid Aspect Ratio"},msg:{confirm:"Are you sure?",confirm_cancel_print:"Are you sure you want to cancel the current print?",confirm_clear_mesh:"The printer is currently busy. Are you sure you want to clear the bed mesh?",confirm_delete:"Are you sure? This will delete the selected item. | Are you sure? This will delete the {count} selected items.",confirm_emergency_stop:"Are you sure you want to emergency stop the printer?",confirm_exclude_object:"Are you sure you want to exclude this object from printing?",confirm_forcemove_toggle:"Are you sure? This can damage the printer.",confirm_load_bedmesh_profile:"The printer is currently busy. Are you sure you want to load profile %{name}?",confirm_reboot_host:"Are you sure? This will reboot your host system.",confirm_remove_user:"Are you sure you want to remove user %{username}?",confirm_shutdown_host:"Are you sure? This will shutdown your host system.",confirm_service_start:"Are you sure you want to start the %{name} service?",confirm_service_restart:"Are you sure you want to restart the %{name} service?",confirm_service_stop:"Are you sure you want to stop the %{name} service?",confirm_power_device_toggle:"Are you sure? This will toggle the power of this device.",unsaved_changes:"You have unsaved changes. Are you sure you want to close this file?",no_file_preview:"%{name} cannot currently be previewed."}},table:{header:{actions:"Actions",chamber_temp:"Chamber temp",end_time:"Ended",estimated_time:"Estimated time",filament:"Filament",filament_name:"Filament name",filament_type:"Filament type",filament_used:"Used filament",filament_weight_total:"Filament weight",first_layer_bed_temp:"First layer bed temp",first_layer_extr_temp:"First layer extruder temp",first_layer_height:"First layer height",height:"Height",last_printed:"Last printed",layer_height:"Layer height",modified:"Modified",name:"Name",nozzle_diameter:"Nozzle diameter",print_duration:"Print duration",time_added:"Time Added",time_in_queue:"Time In Queue",size:"Size",slicer:"Slicer",slicer_version:"Slicer version",start_time:"Started",status:"Status",total_duration:"Total duration"}},title:{add_chart:"Add Chart",add_printer:"Add Printer",bedmesh:"Bed Mesh",bedmesh_controls:"Bed Mesh Controls",camera:"Camera | Cameras",config_files:"Configuration Files",configure:"Configuration",console:"Console",diagnostics:"Diagnostics",edit_chart:"Edit Chart",endstops:"Endstops",fans_outputs:"Fans & Outputs",gcode_preview:"Gcode Preview",history:"History",home:"Home",jobs:"Jobs",job_queue:"Job Queue",limits:"Printer Limits",macros:"Macros",metrics_explorer:"Metrics Explorer",not_found:"404 Not Found",other_files:"Other Files",pending_configuration_changes:"Pending Configuration Changes",retract:"Firmware Retraction",rollover_logs:"Rollover logs",runout_sensors:"Runout Sensors",settings:"Settings",stats:"Printer Stats",system:"System",system_overview:"System Information",temperature:"Thermals",timelapse:"Timelapse",tool:"Tool",tune:"Tune"},tooltip:{browse_metrics:"Browse available metrics",estop:"Emergency Stop",managed_by_moonraker:"Managed by your moonraker configuration",notifications:"Notifications",reload_klipper:"Reloads klipper configuration.",reload_restart_klipper:"Reloads klipper configuration and restarts MCU's.",restart_klipper:"Restarts the klipper system service.",run_collector:"Run collector",rollover_logs:"Rollover logs",file_browser_help:'Drag and drop files or folders from outside the browser to upload them here<br>Move files and folders by dragging and dropping them onto sub-folders or ".."',file_browser_configuration_help:"Copy files and folders to the Configuration Files by dragging them from here and dropping them there"}},history:{msg:{confirm:"Are you sure? This will clear all history, and printer statistics",confirm_jobs:"Are you sure? This will clear all jobs.",confirm_stats:"Are you sure? This will clear all stats."}},job_queue:{msg:{confirm:"Are you sure? This will clear the entire printer queue"},label:{number_of_copies:"Number of copies"},title:{multiply_job:"Multiply Job | Multiply Jobs"},tooltip:{help:"Queue jobs by dragging files from the Jobs and dropping them here<br>Adjust the order of queued jobs by dragging them up or down"}},printer:{state:{busy:"Busy",cancelled:"Cancelled",complete:"Complete",idle:"Idle",loading:"Loading",paused:"Paused",printing:"Printing",ready:"Ready",standby:"Standby"},title:{printer_status:"Printer Status",stepper_driver_overheating:"Stepper driver '%{name}' is over-heating"},msg:{possible_print_failure:"This may lead to a failed print"},url:{stepper_driver_overheating:"%{klipperDomain}/TMC_Drivers.html#tmc-reports-error-ot1overtemperror"}},setting:{btn:{add_camera:"Add Camera",add_category:"Add Category",add_filter:"Add Filter",add_metric:"Add Metric",add_thermal_preset:"Add Preset",add_user:"Add user",backup:"Backup",reset:"Reset",restore:"Restore",select_theme:"Select Theme"},camera_type_options:{mjpegadaptive:"MJPEG Adaptive",mjpegstream:"MJPEG Stream",hlsstream:"HLS Stream",webrtc_camera_streamer:"WebRTC (camera-streamer)",video:"IP Camera",iframe:"HTTP page",webrtc_go2rtc:"WebRTC (go2rtc)",webrtc_mediamtx:"WebRTC (MediaMTX)"},camera_rotate_options:{90:"90°",180:"180°",270:"270°",none:"None"},label:{all_off:"All off",all_on:"All on",aspect_ratio:"Aspect Ratio",aspect_ratio_format:"[width : height]",auto_edit_extensions:"Extensions to automatically open in edit mode",auto_follow_on_file_load:"Automatically follow progress on file load",auto_load_on_print_start:"Automatically load file on print start",auto_load_mobile_on_print_start:"Automatically load file on mobile devices",axes:"Axes",camera_flip_x:"Flip horizontally",camera_flip_y:"Flip vertically",camera_fullscreen_action:{title:"Fullscreen action",embed:"Embed",rawstream:"Raw stream"},camera_rotate_by:"Rotate by",camera_stream_type:"Stream type",camera_url_snapshot:"Camera Url Snapshot",camera_url_stream:"Camera Url Stream",card:"Card",collector:"Collector",confirm_on_estop:"Require confirm on Emergency Stop",confirm_on_power_device_change:"Require confirm on Device Power changes",confirm_on_save_config_and_restart:"Review Pending Configuration Changes before Save and Restart",confirm_dirty_editor_close:"Require confirm when closing the editor with unsaved changes",contains:"Contains",dark_mode:"Dark mode",dashed:"Dashed",default_extrude_length:"Default extrude length",default_extrude_speed:"Default extrude speed",default_min_layer_height:"Default minimum layer height",default_toolhead_move_length:"Default toolhead move length",default_toolhead_xy_speed:"Default toolhead XY speed",default_toolhead_z_speed:"Default toolhead Z speed",dotted:"Dotted",draw_background:"Draw Background",draw_origin:"Draw origin",enable:"Enable",enable_diagnostics:"Enable diagnostics",enable_notifications:"Enable notifications",enable_xy_homing:"Enable XY Homing",expression:"Expression",extrusion_line_width:"Extrusion Line Width",flip_horizontal:"Horizontal Flip",flip_vertical:"Vertical Flip",fill_color:"Fill color",fill_opacity:"Fill opacity",filter:"Filter | Filters",fluidd_settings_in_moonraker_db:"Fluidd settings in Moonraker database",fps_target:"FPS Target",fps_idle_target:"FPS Target when not in focus",height:"Height",hide_single_part_bounding_box:"Hide part bounding box when printing a single part",gcode_coords:"Use GCode Coordinates",icon:"Icon",invert_x_control:"Invert X control",invert_y_control:"Invert Y control",invert_z_control:"Invert Z control",keyboard_shortcuts:"Keyboard shortcuts",language:"Display Language",last_result:"Last result",left_y:"Left Y-Axis",line_color:"Line color",line_style:"Line style",min:"Minimum",max:"Maximum",metrics:"Metrics",move_line_width:"Move Line Width",name:"Name",never:"Never",none:"None",optional:"Optional",power_toggle_in_top_nav:"Power toggle in top navigation",primary_color:"Primary color",print_eta_calculation:"Print ETA calculation",print_in_progress_layout:"Print in Progress layout",print_progress_calculation:"Print Progress calculation",printer_name:"Printer Name",reset:"Reset settings",retraction_icon_size:"Retraction Icon Size",right_y:"Right Y-Axis",save_and_restore_view_state:"Save and restore view state",sections_to_ignore_pending_configuration_changes:"Sections to ignore Pending Configuration Changes",show_animations:"Show animations",show_barometric_pressure:"Show barometric pressure",show_chart:"Show chart",show_code_lens:"Show CodeLens",show_gas_resistance:"Show gas resistance",show_legend:"Show legend",show_logo_on_background:"Show logo on background",show_rate_of_change:"Show temperature rate of change",show_relative_humidity:"Show relative humidity",show_save_config_and_restart:"Save Config and Restart button in top navigation",show_upload_and_print:"Show Upload and Print button in top navigation",solid:"Solid",starts_with:"Starts with",theme_preset:"Community preset",thermal_preset_gcode:"GCode",thermal_preset_name:"Preset Name",title:"Title",to_browser_local_storage:"To browser local storage",to_browser_session_storage:"To browser session storage",toolhead_control_style:"Toolhead control style",toolhead_move_distances:"Toolhead distance values",toolhead_xy_move_distances:"Toolhead XY distance values",toolhead_z_move_distances:"Toolhead Z distance values",type:"Type",unit:"Unit",z_adjust_values:"Z Adjust values",date_format:"Date format",time_format:"Time format",text_sort_order:"Text sort order",force_move_toggle_warning:"Require confirm when activating FORCE_MOVE",show_manual_probe_dialog_automatically:"Show Manual Probe dialog automatically",show_bed_screws_adjust_dialog_automatically:"Show Bed Screws Adjust dialog automatically",show_screws_tilt_adjust_dialog_automatically:"Show Screws Tilt Adjust dialog automatically"},timer_options:{absolute_file_position:"Absolute file position",duration:"Duration only",filament:"Filament",file:"File",relative_file_position:"Relative file position",slicer:"Slicer",slicer_m73:"Slicer (M73)"},title:{authentication:"Authentication",console:"Console",camera:"Camera | Cameras",file_browser:"File Browser",file_editor:"File Editor",gcode_preview:"Gcode Preview",general:"General",macros:"Macros",theme:"Theme",thermal_presets:"Thermal Presets",tool:"Tool"},tooltip:{average_calculation:"If more than one option is select, an average will be calculated",diagnostics_performance:"[BETA] Logging diagnostics info may impact performance",gcode_coords:"Use GCode position instead of toolhead position on dashboard",keyboard_shortcuts:"[BETA] Enable and press '?' to view the list of available keyboard shortcuts",show_manual_probe_dialog_automatically:"Automatically shows helper dialog if running a Manual Probe tool",show_bed_screws_adjust_dialog_automatically:"Automatically shows helper dialog if running BED_SCREWS_ADJUST tool",show_screws_tilt_adjust_dialog_automatically:"Automatically shows helper dialog if running SCREWS_TILT_CALCULATE tool",theme_disclaimer:"These themes feature brand names and logos that are the intellectual property of their respective owners.<br> The inclusion of these names and logos is done with permission from the brands.<br> However, please note that these themes are not officially maintained by the respective brands.<br> Any issues or inquiries related to the themes should be directed to the Fluidd team.<br> The use of brand names and logos is for decorative and aesthetic purposes only, and no official association with or endorsement by the brands is implied."}},socket:{msg:{connecting:"Connecting to moonraker...",no_connection:"No moonraker connection. Please check moonraker status and / or refresh."}},system_info:{label:{awake_time:"awake time",capacity:"Capacity",constants:"Constants",cpu_desc:"CPU Description",devices:"Devices",distribution_codename:"Codename",distribution_like:"Distribution Like",distribution_name:"Distribution",frequency:"Frequency",hardware_desc:"Hardware Description",hostname:"Hostname",klipper_load:"Klipper Load",load:"load",manufactured:"Manufactured",manufacturer:"Manufacturer",memory_used:"memory used",mcu_awake:"{mcu} Awake Time",mcu_bandwidth:"{mcu} Bandwidth",mcu_information:"{mcu} Information",mcu_load:"{mcu} Load",micro_controller:"Micro-Controller",model:"CPU Model",moonraker_load:"Moonraker Load",last_stats:"Last Stats",network:"Network",processor_desc:"Processor",product_name:"Product Name",serial_number:"Serial Number",system_load:"System Load",system_memory:"System Memory",system_utilization:"System Utilization",total_memory:"Total Memory",operating_system:"Operating System",version:"Version",virtualization:"Virtualization"},msg:{canbus_warning:'Only unassigned CAN bus nodes can be detected.<br> It is recommended to have only one unassigned device connected to the CAN bus to avoid communication issues.<br> More information can be found <a target="_blank" href="https://moonraker.readthedocs.io/en/latest/web_api/#query-unassigned-canbus-uuids">here.</a>',no_devices_found:"No devices found",no_devices_searched:"Use the refresh button to search for devices"}},tool:{btn:{home_x:"X",home_y:"Y",home_all:"All"},title:{bed_screws_adjust:"Bed Screws Adjust",manual_probe:"Manual Probe",screws_tilt_adjust:"Screws Tilt Adjust"},tooltip:{absolute_positioning:"Absolute Positioning",extruder_disabled:"extruder disabled, below min_extrude_temp (%{min}<small>°C</small>)",home_xy:"Home XY",home_z:"Home Z",manual_probe:"Manual Probe",motors_off:"Motors Off",relative_positioning:"Relative Positioning",select_tool:"Select tool %{tool}",tools:"Tools"},label:{stats_active_extruder:'<span class="secondary--text">The active extruder configuration is set for</span> %{filamentDiameter} mm diameter filament <span class="secondary--text">and</span> %{nozzleDiameter} mm nozzle',stats_volumetric_flow:'Extruding at %{extrudeSpeed} mm/s<span class="secondary--text">, the extruder should be able to provide an</span> estimated volumetric flow of %{estimatedVolumetricFlow} mm³/s',stats_extruded_length:'Extruding %{extrudeLength} mm of filament at %{extrudeFactor} % flow<span class="secondary--text">, will provide an</span> estimated output length of %{estimatedExtrudedLength} mm',stats_max_speed:'<span class="secondary--text">Assuming a</span> %{layerHeight} mm layer height<span class="secondary--text">, the</span> estimated maximum print speed is %{estimatedMaxSpeed} mm/s'}},version:{btn:{check_for_updates:"Check for updates",finish:"Finish",update:"Update",update_all:"Update all",view_versions:"View versions"},label:{commit_history:"Commit History",commits_on:"commits on",committed:"Committed",dirty:"DIRTY",invalid:"INVALID",os_packages:"OS Packages",package_list:"Package List",up_to_date:"UP TO DATE",updates_available:"Updates are available",old_component_version:"You are using an old version of %{name} that does not support all features of Fluidd.<br>Update %{name} to at least %{version}."},status:{finished:"Updates finished",updating:"Updating..."},title:"Software Updates",tooltip:{commit_history:"Commit history",dirty:"indicates a detached head, not on master or an invalid origin",invalid:"indicates local changes to the repo",packages:"Packages",release_notes:"Release notes"}},timelapse:{btn:{render:"Render",save_frames:"Save Frames"},error:{newframe:"Error taking timelapse frame"},label:{frames:"%{frames} frame | %{frames} frames",length:"Estimated length: %{length}",frame:"Frame | Frames"},title:{timelapse_settings:"Timelapse Settings",timelapse_status:"Timelapse Status",render_settings:"Render Settings"},setting:{enable:"Enabled",auto_render:"Auto Render",crf:"Constant Rate Factor",duplicatelastframe:"Duplicate last frames",fw_retract:"Use Firmware Retraction",gcode_verbose:"Verbose Gcode",mode:"Mode",mode_layermacro:"Layer Macro",mode_hyperlapse:"Hyperlapse",hyperlapse_cycle:"Hyperlapse Cycle",output_framerate:"Output Framerate",park_retract_distance:"Park Retraction Distance",park_retract_speed:"Park Retraction Speed",park_extrude_distance:"Park Extrude Distance",park_extrude_speed:"Park Extrude Speed",parkhead:"Park Head",park_time:"Park Time",park_travel_speed:"Park Travel Speed",park_custom_pos_x:"Park Position X",park_custom_pos_y:"Park Position Y",park_custom_pos_dz:"Park Position Z-Hop",parkpos:{label:"Park Position",custom:"Custom",front_left:"Front Left",front_right:"Front Right",center:"Center",back_left:"Back Left",back_right:"Back Right",x_only:"Move X only",y_only:"Move Y only"},previewimage:"Generate Thumbnail",saveframes:"Save Frames",stream_delay_compensation:"Delay Compensation",targetlength:"Target Length",variable_fps:"Variable FPS",variable_fps_min:"Minimum Framerate",variable_fps_max:"Maximum Framerate"}},spoolman:{btn:{manage_spools:"Manage Spools",scan_code:"Scan Code",select:"Select | Select for {macro}"},title:{spoolman:"Spoolman",spool_selection:"Spool Selection | Spool Selection for macro {macro}",scan_spool:"Scan Spool"},label:{active_spool:"Active Spool",change_spool:"Change Spool",comment:"Comment",device_camera:"Device",filament_name:"Filament",first_used:"First Used",id:"ID",last_used:"Last Used",location:"Location",lot_nr:"Lot Nr",material:"Material",remaining_weight:"Remaining",vendor:"Vendor",weight:"Weight",length:"Length"},msg:{no_spool:"You haven't selected a spool. Are you sure you want to print without filament tracking?",no_filament:"The spool you selected may not have enough filament left on it to successfully finish the print job. Are you sure you want to continue?",no_required_length:"The amount of filament required to print the selected file is unknown. Do you wish to continue?",mismatched_filament:"The material of the selected filament does not match the selected material in the slicer. Are you sure you want to continue?",tracking_inactive:"Filament tracking is inactive. To get started, please select a spool.",not_connected:"Spoolman server not available.",info:{howto:"Show your spool's QR code to the camera. This window will close as soon as a spool is detected."},warning:{code_not_recognized:"This code doesn't look like a compatible QR code.",invalid_spool_id:"The spool ID contained in this QR code is invalid."},error:{cors:"There was an error accessing the cameras feed. Please make sure your webcam server allows CORS access.",spool_not_existant:"The spool you scanned doesn't exist in the database.",no_image_data:"There was an error accessing the cameras feed. Please check your camera configuration or try another camera source."}},setting:{auto_open_qr_camera:"Automatically open camera for QR code detection",auto_select_spool_on_match:"Automatically commit spool selection on QR code match",prefer_device_camera:"Use device camera for QR code detection if available",show_spool_selection_dialog_on_print_start:"Show spool selection dialog on print start",warn_on_not_enough_filament:"Show a warning when the selected spool doesn't have enough filament left on it to finish the print",warn_on_filament_type_mismatch:"Show a warning when the spool's filament type and the one selected in the slicer don't match",remaining_filament_unit:"Show remaining filament as"}},sensors:{title:{sensors:"Sensors"}},keyboard_shortcuts:{title:{keyboard_shortcuts:"Keyboard Shortcuts"},label:{actions:"Actions",cancel:"Cancel",emergency_stop:"Emergency stop",home_all:"Home all",navigation:"Navigation",open_keyboard_shortcut_help:"Open keyboard shortcut help",pause:"Pause",printing:"Printing",tool:"Tool"}}}};const VM=Object.freeze(Object.defineProperty({__proto__:null,default:B5},Symbol.toStringTag,{value:"Module"}));var N5=typeof global=="object"&&global&&global.Object===Object&&global,zM=typeof self=="object"&&self&&self.Object===Object&&self,Js=N5||zM||Function("return this")(),_n=Js.Symbol,V5=Object.prototype,UM=V5.hasOwnProperty,WM=V5.toString,nc=_n?_n.toStringTag:void 0;function GM(r){var e=UM.call(r,nc),t=r[nc];try{r[nc]=void 0;var s=!0}catch{}var n=WM.call(r);return s&&(e?r[nc]=t:delete r[nc]),n}var qM=Object.prototype,ZM=qM.toString;function YM(r){return ZM.call(r)}var KM="[object Null]",XM="[object Undefined]",z$=_n?_n.toStringTag:void 0;function za(r){return r==null?r===void 0?XM:KM:z$&&z$ in Object(r)?GM(r):YM(r)}function yn(r){return r!=null&&typeof r=="object"}var JM="[object Symbol]";function gy(r){return typeof r=="symbol"||yn(r)&&za(r)==JM}function QM(r,e){for(var t=-1,s=r==null?0:r.length,n=Array(s);++t<s;)n[t]=e(r[t],t,r);return n}var is=Array.isArray,eR=1/0,U$=_n?_n.prototype:void 0,W$=U$?U$.toString:void 0;function z5(r){if(typeof r=="string")return r;if(is(r))return QM(r,z5)+"";if(gy(r))return W$?W$.call(r):"";var e=r+"";return e=="0"&&1/r==-eR?"-0":e}function Gs(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function vy(r){return r}var tR="[object AsyncFunction]",rR="[object Function]",sR="[object GeneratorFunction]",nR="[object Proxy]";function _y(r){if(!Gs(r))return!1;var e=za(r);return e==rR||e==sR||e==tR||e==nR}var Rg=Js["__core-js_shared__"],G$=function(){var r=/[^.]+$/.exec(Rg&&Rg.keys&&Rg.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function iR(r){return!!G$&&G$ in r}var aR=Function.prototype,oR=aR.toString;function Ua(r){if(r!=null){try{return oR.call(r)}catch{}try{return r+""}catch{}}return""}var lR=/[\\^$.*+?()[\]{}|]/g,cR=/^\[object .+?Constructor\]$/,uR=Function.prototype,dR=Object.prototype,pR=uR.toString,hR=dR.hasOwnProperty,fR=RegExp("^"+pR.call(hR).replace(lR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mR(r){if(!Gs(r)||iR(r))return!1;var e=_y(r)?fR:cR;return e.test(Ua(r))}function gR(r,e){return r==null?void 0:r[e]}function Wa(r,e){var t=gR(r,e);return mR(t)?t:void 0}var nv=Wa(Js,"WeakMap"),q$=Object.create,vR=function(){function r(){}return function(e){if(!Gs(e))return{};if(q$)return q$(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();function _R(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}function U5(r,e){var t=-1,s=r.length;for(e||(e=Array(s));++t<s;)e[t]=r[t];return e}var yR=800,bR=16,$R=Date.now;function wR(r){var e=0,t=0;return function(){var s=$R(),n=bR-(s-t);if(t=s,n>0){if(++e>=yR)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function SR(r){return function(){return r}}var vh=function(){try{var r=Wa(Object,"defineProperty");return r({},"",{}),r}catch{}}(),xR=vh?function(r,e){return vh(r,"toString",{configurable:!0,enumerable:!1,value:SR(e),writable:!0})}:vy,CR=wR(xR);function PR(r,e){for(var t=-1,s=r==null?0:r.length;++t<s&&e(r[t],t,r)!==!1;);return r}var AR=9007199254740991,LR=/^(?:0|[1-9]\d*)$/;function tm(r,e){var t=typeof r;return e=e??AR,!!e&&(t=="number"||t!="symbol"&&LR.test(r))&&r>-1&&r%1==0&&r<e}function rm(r,e,t){e=="__proto__"&&vh?vh(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}function Xu(r,e){return r===e||r!==r&&e!==e}var ER=Object.prototype,OR=ER.hasOwnProperty;function yy(r,e,t){var s=r[e];(!(OR.call(r,e)&&Xu(s,t))||t===void 0&&!(e in r))&&rm(r,e,t)}function Ju(r,e,t,s){var n=!t;t||(t={});for(var i=-1,a=e.length;++i<a;){var o=e[i],l=void 0;l===void 0&&(l=r[o]),n?rm(t,o,l):yy(t,o,l)}return t}var Z$=Math.max;function TR(r,e,t){return e=Z$(e===void 0?r.length-1:e,0),function(){for(var s=arguments,n=-1,i=Z$(s.length-e,0),a=Array(i);++n<i;)a[n]=s[e+n];n=-1;for(var o=Array(e+1);++n<e;)o[n]=s[n];return o[e]=t(a),_R(r,this,o)}}function kR(r,e){return CR(TR(r,e,vy),r+"")}var DR=9007199254740991;function by(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=DR}function sm(r){return r!=null&&by(r.length)&&!_y(r)}function MR(r,e,t){if(!Gs(t))return!1;var s=typeof e;return(s=="number"?sm(t)&&tm(e,t.length):s=="string"&&e in t)?Xu(t[e],r):!1}function W5(r){return kR(function(e,t){var s=-1,n=t.length,i=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(i=r.length>3&&typeof i=="function"?(n--,i):void 0,a&&MR(t[0],t[1],a)&&(i=n<3?void 0:i,n=1),e=Object(e);++s<n;){var o=t[s];o&&r(e,o,s,i)}return e})}var RR=Object.prototype;function $y(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||RR;return r===t}function IR(r,e){for(var t=-1,s=Array(r);++t<r;)s[t]=e(t);return s}var FR="[object Arguments]";function Y$(r){return yn(r)&&za(r)==FR}var G5=Object.prototype,HR=G5.hasOwnProperty,jR=G5.propertyIsEnumerable,_h=Y$(function(){return arguments}())?Y$:function(r){return yn(r)&&HR.call(r,"callee")&&!jR.call(r,"callee")};function BR(){return!1}var q5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,K$=q5&&typeof module=="object"&&module&&!module.nodeType&&module,NR=K$&&K$.exports===q5,X$=NR?Js.Buffer:void 0,VR=X$?X$.isBuffer:void 0,nu=VR||BR,zR="[object Arguments]",UR="[object Array]",WR="[object Boolean]",GR="[object Date]",qR="[object Error]",ZR="[object Function]",YR="[object Map]",KR="[object Number]",XR="[object Object]",JR="[object RegExp]",QR="[object Set]",eI="[object String]",tI="[object WeakMap]",rI="[object ArrayBuffer]",sI="[object DataView]",nI="[object Float32Array]",iI="[object Float64Array]",aI="[object Int8Array]",oI="[object Int16Array]",lI="[object Int32Array]",cI="[object Uint8Array]",uI="[object Uint8ClampedArray]",dI="[object Uint16Array]",pI="[object Uint32Array]",gt={};gt[nI]=gt[iI]=gt[aI]=gt[oI]=gt[lI]=gt[cI]=gt[uI]=gt[dI]=gt[pI]=!0;gt[zR]=gt[UR]=gt[rI]=gt[WR]=gt[sI]=gt[GR]=gt[qR]=gt[ZR]=gt[YR]=gt[KR]=gt[XR]=gt[JR]=gt[QR]=gt[eI]=gt[tI]=!1;function hI(r){return yn(r)&&by(r.length)&&!!gt[za(r)]}function wy(r){return function(e){return r(e)}}var Z5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Tc=Z5&&typeof module=="object"&&module&&!module.nodeType&&module,fI=Tc&&Tc.exports===Z5,Ig=fI&&N5.process,Vo=function(){try{var r=Tc&&Tc.require&&Tc.require("util").types;return r||Ig&&Ig.binding&&Ig.binding("util")}catch{}}(),J$=Vo&&Vo.isTypedArray,Sy=J$?wy(J$):hI,mI=Object.prototype,gI=mI.hasOwnProperty;function Y5(r,e){var t=is(r),s=!t&&_h(r),n=!t&&!s&&nu(r),i=!t&&!s&&!n&&Sy(r),a=t||s||n||i,o=a?IR(r.length,String):[],l=o.length;for(var c in r)(e||gI.call(r,c))&&!(a&&(c=="length"||n&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||tm(c,l)))&&o.push(c);return o}function K5(r,e){return function(t){return r(e(t))}}var vI=K5(Object.keys,Object),_I=Object.prototype,yI=_I.hasOwnProperty;function bI(r){if(!$y(r))return vI(r);var e=[];for(var t in Object(r))yI.call(r,t)&&t!="constructor"&&e.push(t);return e}function Qu(r){return sm(r)?Y5(r):bI(r)}function $I(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var wI=Object.prototype,SI=wI.hasOwnProperty;function xI(r){if(!Gs(r))return $I(r);var e=$y(r),t=[];for(var s in r)s=="constructor"&&(e||!SI.call(r,s))||t.push(s);return t}function ed(r){return sm(r)?Y5(r,!0):xI(r)}var CI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,PI=/^\w*$/;function xy(r,e){if(is(r))return!1;var t=typeof r;return t=="number"||t=="symbol"||t=="boolean"||r==null||gy(r)?!0:PI.test(r)||!CI.test(r)||e!=null&&r in Object(e)}var iu=Wa(Object,"create");function AI(){this.__data__=iu?iu(null):{},this.size=0}function LI(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var EI="__lodash_hash_undefined__",OI=Object.prototype,TI=OI.hasOwnProperty;function kI(r){var e=this.__data__;if(iu){var t=e[r];return t===EI?void 0:t}return TI.call(e,r)?e[r]:void 0}var DI=Object.prototype,MI=DI.hasOwnProperty;function RI(r){var e=this.__data__;return iu?e[r]!==void 0:MI.call(e,r)}var II="__lodash_hash_undefined__";function FI(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=iu&&e===void 0?II:e,this}function Sa(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var s=r[e];this.set(s[0],s[1])}}Sa.prototype.clear=AI;Sa.prototype.delete=LI;Sa.prototype.get=kI;Sa.prototype.has=RI;Sa.prototype.set=FI;function HI(){this.__data__=[],this.size=0}function nm(r,e){for(var t=r.length;t--;)if(Xu(r[t][0],e))return t;return-1}var jI=Array.prototype,BI=jI.splice;function NI(r){var e=this.__data__,t=nm(e,r);if(t<0)return!1;var s=e.length-1;return t==s?e.pop():BI.call(e,t,1),--this.size,!0}function VI(r){var e=this.__data__,t=nm(e,r);return t<0?void 0:e[t][1]}function zI(r){return nm(this.__data__,r)>-1}function UI(r,e){var t=this.__data__,s=nm(t,r);return s<0?(++this.size,t.push([r,e])):t[s][1]=e,this}function qn(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var s=r[e];this.set(s[0],s[1])}}qn.prototype.clear=HI;qn.prototype.delete=NI;qn.prototype.get=VI;qn.prototype.has=zI;qn.prototype.set=UI;var au=Wa(Js,"Map");function WI(){this.size=0,this.__data__={hash:new Sa,map:new(au||qn),string:new Sa}}function GI(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}function im(r,e){var t=r.__data__;return GI(e)?t[typeof e=="string"?"string":"hash"]:t.map}function qI(r){var e=im(this,r).delete(r);return this.size-=e?1:0,e}function ZI(r){return im(this,r).get(r)}function YI(r){return im(this,r).has(r)}function KI(r,e){var t=im(this,r),s=t.size;return t.set(r,e),this.size+=t.size==s?0:1,this}function Zn(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var s=r[e];this.set(s[0],s[1])}}Zn.prototype.clear=WI;Zn.prototype.delete=qI;Zn.prototype.get=ZI;Zn.prototype.has=YI;Zn.prototype.set=KI;var XI="Expected a function";function Cy(r,e){if(typeof r!="function"||e!=null&&typeof e!="function")throw new TypeError(XI);var t=function(){var s=arguments,n=e?e.apply(this,s):s[0],i=t.cache;if(i.has(n))return i.get(n);var a=r.apply(this,s);return t.cache=i.set(n,a)||i,a};return t.cache=new(Cy.Cache||Zn),t}Cy.Cache=Zn;var JI=500;function QI(r){var e=Cy(r,function(s){return t.size===JI&&t.clear(),s}),t=e.cache;return e}var eF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tF=/\\(\\)?/g,rF=QI(function(r){var e=[];return r.charCodeAt(0)===46&&e.push(""),r.replace(eF,function(t,s,n,i){e.push(n?i.replace(tF,"$1"):s||t)}),e});function td(r){return r==null?"":z5(r)}function Py(r,e){return is(r)?r:xy(r,e)?[r]:rF(td(r))}var sF=1/0;function rd(r){if(typeof r=="string"||gy(r))return r;var e=r+"";return e=="0"&&1/r==-sF?"-0":e}function X5(r,e){e=Py(e,r);for(var t=0,s=e.length;r!=null&&t<s;)r=r[rd(e[t++])];return t&&t==s?r:void 0}function Io(r,e,t){var s=r==null?void 0:X5(r,e);return s===void 0?t:s}function J5(r,e){for(var t=-1,s=e.length,n=r.length;++t<s;)r[n+t]=e[t];return r}var Ay=K5(Object.getPrototypeOf,Object),nF="[object Object]",iF=Function.prototype,aF=Object.prototype,Q5=iF.toString,oF=aF.hasOwnProperty,lF=Q5.call(Object);function cF(r){if(!yn(r)||za(r)!=nF)return!1;var e=Ay(r);if(e===null)return!0;var t=oF.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Q5.call(t)==lF}function iv(r,e,t){var s=-1,n=r.length;e<0&&(e=-e>n?0:n+e),t=t>n?n:t,t<0&&(t+=n),n=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(n);++s<n;)i[s]=r[s+e];return i}function uF(r,e,t){var s=r.length;return t=t===void 0?s:t,!e&&t>=s?r:iv(r,e,t)}var dF="\\ud800-\\udfff",pF="\\u0300-\\u036f",hF="\\ufe20-\\ufe2f",fF="\\u20d0-\\u20ff",mF=pF+hF+fF,gF="\\ufe0e\\ufe0f",vF="\\u200d",_F=RegExp("["+vF+dF+mF+gF+"]");function e3(r){return _F.test(r)}function yF(r){return r.split("")}var t3="\\ud800-\\udfff",bF="\\u0300-\\u036f",$F="\\ufe20-\\ufe2f",wF="\\u20d0-\\u20ff",SF=bF+$F+wF,xF="\\ufe0e\\ufe0f",CF="["+t3+"]",av="["+SF+"]",ov="\\ud83c[\\udffb-\\udfff]",PF="(?:"+av+"|"+ov+")",r3="[^"+t3+"]",s3="(?:\\ud83c[\\udde6-\\uddff]){2}",n3="[\\ud800-\\udbff][\\udc00-\\udfff]",AF="\\u200d",i3=PF+"?",a3="["+xF+"]?",LF="(?:"+AF+"(?:"+[r3,s3,n3].join("|")+")"+a3+i3+")*",EF=a3+i3+LF,OF="(?:"+[r3+av+"?",av,s3,n3,CF].join("|")+")",TF=RegExp(ov+"(?="+ov+")|"+OF+EF,"g");function kF(r){return r.match(TF)||[]}function DF(r){return e3(r)?kF(r):yF(r)}function MF(r){return function(e){e=td(e);var t=e3(e)?DF(e):void 0,s=t?t[0]:e.charAt(0),n=t?uF(t,1).join(""):e.slice(1);return s[r]()+n}}var am=MF("toUpperCase");function Ly(r){return am(td(r).toLowerCase())}function RF(r,e,t,s){for(var n=-1,i=r==null?0:r.length;++n<i;)t=e(t,r[n],n,r);return t}function IF(r){return function(e){return r==null?void 0:r[e]}}var FF={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},HF=IF(FF),jF=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,BF="\\u0300-\\u036f",NF="\\ufe20-\\ufe2f",VF="\\u20d0-\\u20ff",zF=BF+NF+VF,UF="["+zF+"]",WF=RegExp(UF,"g");function GF(r){return r=td(r),r&&r.replace(jF,HF).replace(WF,"")}var qF=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function ZF(r){return r.match(qF)||[]}var YF=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function KF(r){return YF.test(r)}var o3="\\ud800-\\udfff",XF="\\u0300-\\u036f",JF="\\ufe20-\\ufe2f",QF="\\u20d0-\\u20ff",eH=XF+JF+QF,l3="\\u2700-\\u27bf",c3="a-z\\xdf-\\xf6\\xf8-\\xff",tH="\\xac\\xb1\\xd7\\xf7",rH="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sH="\\u2000-\\u206f",nH=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",u3="A-Z\\xc0-\\xd6\\xd8-\\xde",iH="\\ufe0e\\ufe0f",d3=tH+rH+sH+nH,p3="['’]",Q$="["+d3+"]",aH="["+eH+"]",h3="\\d+",oH="["+l3+"]",f3="["+c3+"]",m3="[^"+o3+d3+h3+l3+c3+u3+"]",lH="\\ud83c[\\udffb-\\udfff]",cH="(?:"+aH+"|"+lH+")",uH="[^"+o3+"]",g3="(?:\\ud83c[\\udde6-\\uddff]){2}",v3="[\\ud800-\\udbff][\\udc00-\\udfff]",Co="["+u3+"]",dH="\\u200d",ew="(?:"+f3+"|"+m3+")",pH="(?:"+Co+"|"+m3+")",tw="(?:"+p3+"(?:d|ll|m|re|s|t|ve))?",rw="(?:"+p3+"(?:D|LL|M|RE|S|T|VE))?",_3=cH+"?",y3="["+iH+"]?",hH="(?:"+dH+"(?:"+[uH,g3,v3].join("|")+")"+y3+_3+")*",fH="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mH="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gH=y3+_3+hH,vH="(?:"+[oH,g3,v3].join("|")+")"+gH,_H=RegExp([Co+"?"+f3+"+"+tw+"(?="+[Q$,Co,"$"].join("|")+")",pH+"+"+rw+"(?="+[Q$,Co+ew,"$"].join("|")+")",Co+"?"+ew+"+"+tw,Co+"+"+rw,mH,fH,h3,vH].join("|"),"g");function yH(r){return r.match(_H)||[]}function bH(r,e,t){return r=td(r),e=e,e===void 0?KF(r)?yH(r):ZF(r):r.match(e)||[]}var $H="['’]",wH=RegExp($H,"g");function b3(r){return function(e){return RF(bH(GF(e).replace(wH,"")),r,"")}}var kc=b3(function(r,e,t){return e=e.toLowerCase(),r+(t?Ly(e):e)});function SH(){this.__data__=new qn,this.size=0}function xH(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}function CH(r){return this.__data__.get(r)}function PH(r){return this.__data__.has(r)}var AH=200;function LH(r,e){var t=this.__data__;if(t instanceof qn){var s=t.__data__;if(!au||s.length<AH-1)return s.push([r,e]),this.size=++t.size,this;t=this.__data__=new Zn(s)}return t.set(r,e),this.size=t.size,this}function Us(r){var e=this.__data__=new qn(r);this.size=e.size}Us.prototype.clear=SH;Us.prototype.delete=xH;Us.prototype.get=CH;Us.prototype.has=PH;Us.prototype.set=LH;function EH(r,e){return r&&Ju(e,Qu(e),r)}function OH(r,e){return r&&Ju(e,ed(e),r)}var $3=typeof exports=="object"&&exports&&!exports.nodeType&&exports,sw=$3&&typeof module=="object"&&module&&!module.nodeType&&module,TH=sw&&sw.exports===$3,nw=TH?Js.Buffer:void 0,iw=nw?nw.allocUnsafe:void 0;function w3(r,e){if(e)return r.slice();var t=r.length,s=iw?iw(t):new r.constructor(t);return r.copy(s),s}function kH(r,e){for(var t=-1,s=r==null?0:r.length,n=0,i=[];++t<s;){var a=r[t];e(a,t,r)&&(i[n++]=a)}return i}function S3(){return[]}var DH=Object.prototype,MH=DH.propertyIsEnumerable,aw=Object.getOwnPropertySymbols,Ey=aw?function(r){return r==null?[]:(r=Object(r),kH(aw(r),function(e){return MH.call(r,e)}))}:S3;function RH(r,e){return Ju(r,Ey(r),e)}var IH=Object.getOwnPropertySymbols,x3=IH?function(r){for(var e=[];r;)J5(e,Ey(r)),r=Ay(r);return e}:S3;function FH(r,e){return Ju(r,x3(r),e)}function C3(r,e,t){var s=e(r);return is(r)?s:J5(s,t(r))}function lv(r){return C3(r,Qu,Ey)}function HH(r){return C3(r,ed,x3)}var cv=Wa(Js,"DataView"),uv=Wa(Js,"Promise"),dv=Wa(Js,"Set"),ow="[object Map]",jH="[object Object]",lw="[object Promise]",cw="[object Set]",uw="[object WeakMap]",dw="[object DataView]",BH=Ua(cv),NH=Ua(au),VH=Ua(uv),zH=Ua(dv),UH=Ua(nv),Hs=za;(cv&&Hs(new cv(new ArrayBuffer(1)))!=dw||au&&Hs(new au)!=ow||uv&&Hs(uv.resolve())!=lw||dv&&Hs(new dv)!=cw||nv&&Hs(new nv)!=uw)&&(Hs=function(r){var e=za(r),t=e==jH?r.constructor:void 0,s=t?Ua(t):"";if(s)switch(s){case BH:return dw;case NH:return ow;case VH:return lw;case zH:return cw;case UH:return uw}return e});var WH=Object.prototype,GH=WH.hasOwnProperty;function qH(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&GH.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var yh=Js.Uint8Array;function Oy(r){var e=new r.constructor(r.byteLength);return new yh(e).set(new yh(r)),e}function ZH(r,e){var t=e?Oy(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}var YH=/\w*$/;function KH(r){var e=new r.constructor(r.source,YH.exec(r));return e.lastIndex=r.lastIndex,e}var pw=_n?_n.prototype:void 0,hw=pw?pw.valueOf:void 0;function XH(r){return hw?Object(hw.call(r)):{}}function P3(r,e){var t=e?Oy(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var JH="[object Boolean]",QH="[object Date]",ej="[object Map]",tj="[object Number]",rj="[object RegExp]",sj="[object Set]",nj="[object String]",ij="[object Symbol]",aj="[object ArrayBuffer]",oj="[object DataView]",lj="[object Float32Array]",cj="[object Float64Array]",uj="[object Int8Array]",dj="[object Int16Array]",pj="[object Int32Array]",hj="[object Uint8Array]",fj="[object Uint8ClampedArray]",mj="[object Uint16Array]",gj="[object Uint32Array]";function vj(r,e,t){var s=r.constructor;switch(e){case aj:return Oy(r);case JH:case QH:return new s(+r);case oj:return ZH(r,t);case lj:case cj:case uj:case dj:case pj:case hj:case fj:case mj:case gj:return P3(r,t);case ej:return new s;case tj:case nj:return new s(r);case rj:return KH(r);case sj:return new s;case ij:return XH(r)}}function A3(r){return typeof r.constructor=="function"&&!$y(r)?vR(Ay(r)):{}}var _j="[object Map]";function yj(r){return yn(r)&&Hs(r)==_j}var fw=Vo&&Vo.isMap,bj=fw?wy(fw):yj,$j="[object Set]";function wj(r){return yn(r)&&Hs(r)==$j}var mw=Vo&&Vo.isSet,Sj=mw?wy(mw):wj,xj=1,Cj=2,Pj=4,L3="[object Arguments]",Aj="[object Array]",Lj="[object Boolean]",Ej="[object Date]",Oj="[object Error]",E3="[object Function]",Tj="[object GeneratorFunction]",kj="[object Map]",Dj="[object Number]",O3="[object Object]",Mj="[object RegExp]",Rj="[object Set]",Ij="[object String]",Fj="[object Symbol]",Hj="[object WeakMap]",jj="[object ArrayBuffer]",Bj="[object DataView]",Nj="[object Float32Array]",Vj="[object Float64Array]",zj="[object Int8Array]",Uj="[object Int16Array]",Wj="[object Int32Array]",Gj="[object Uint8Array]",qj="[object Uint8ClampedArray]",Zj="[object Uint16Array]",Yj="[object Uint32Array]",ft={};ft[L3]=ft[Aj]=ft[jj]=ft[Bj]=ft[Lj]=ft[Ej]=ft[Nj]=ft[Vj]=ft[zj]=ft[Uj]=ft[Wj]=ft[kj]=ft[Dj]=ft[O3]=ft[Mj]=ft[Rj]=ft[Ij]=ft[Fj]=ft[Gj]=ft[qj]=ft[Zj]=ft[Yj]=!0;ft[Oj]=ft[E3]=ft[Hj]=!1;function Dc(r,e,t,s,n,i){var a,o=e&xj,l=e&Cj,c=e&Pj;if(t&&(a=n?t(r,s,n,i):t(r)),a!==void 0)return a;if(!Gs(r))return r;var u=is(r);if(u){if(a=qH(r),!o)return U5(r,a)}else{var d=Hs(r),p=d==E3||d==Tj;if(nu(r))return w3(r,o);if(d==O3||d==L3||p&&!n){if(a=l||p?{}:A3(r),!o)return l?FH(r,OH(a,r)):RH(r,EH(a,r))}else{if(!ft[d])return n?r:{};a=vj(r,d,o)}}i||(i=new Us);var h=i.get(r);if(h)return h;i.set(r,a),Sj(r)?r.forEach(function(v){a.add(Dc(v,e,t,v,r,i))}):bj(r)&&r.forEach(function(v,y){a.set(y,Dc(v,e,t,y,r,i))});var f=c?l?HH:lv:l?ed:Qu,g=u?void 0:f(r);return PR(g||r,function(v,y){g&&(y=v,v=r[y]),yy(a,y,Dc(v,e,t,y,r,i))}),a}var Kj=1,Xj=4;function pv(r){return Dc(r,Kj|Xj)}var Jj=1,Qj=4;function eB(r,e){return e=typeof e=="function"?e:void 0,Dc(r,Jj|Qj,e)}var tB="__lodash_hash_undefined__";function rB(r){return this.__data__.set(r,tB),this}function sB(r){return this.__data__.has(r)}function bh(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new Zn;++e<t;)this.add(r[e])}bh.prototype.add=bh.prototype.push=rB;bh.prototype.has=sB;function nB(r,e){for(var t=-1,s=r==null?0:r.length;++t<s;)if(e(r[t],t,r))return!0;return!1}function iB(r,e){return r.has(e)}var aB=1,oB=2;function T3(r,e,t,s,n,i){var a=t&aB,o=r.length,l=e.length;if(o!=l&&!(a&&l>o))return!1;var c=i.get(r),u=i.get(e);if(c&&u)return c==e&&u==r;var d=-1,p=!0,h=t&oB?new bh:void 0;for(i.set(r,e),i.set(e,r);++d<o;){var f=r[d],g=e[d];if(s)var v=a?s(g,f,d,e,r,i):s(f,g,d,r,e,i);if(v!==void 0){if(v)continue;p=!1;break}if(h){if(!nB(e,function(y,C){if(!iB(h,C)&&(f===y||n(f,y,t,s,i)))return h.push(C)})){p=!1;break}}else if(!(f===g||n(f,g,t,s,i))){p=!1;break}}return i.delete(r),i.delete(e),p}function lB(r){var e=-1,t=Array(r.size);return r.forEach(function(s,n){t[++e]=[n,s]}),t}function cB(r){var e=-1,t=Array(r.size);return r.forEach(function(s){t[++e]=s}),t}var uB=1,dB=2,pB="[object Boolean]",hB="[object Date]",fB="[object Error]",mB="[object Map]",gB="[object Number]",vB="[object RegExp]",_B="[object Set]",yB="[object String]",bB="[object Symbol]",$B="[object ArrayBuffer]",wB="[object DataView]",gw=_n?_n.prototype:void 0,Fg=gw?gw.valueOf:void 0;function SB(r,e,t,s,n,i,a){switch(t){case wB:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case $B:return!(r.byteLength!=e.byteLength||!i(new yh(r),new yh(e)));case pB:case hB:case gB:return Xu(+r,+e);case fB:return r.name==e.name&&r.message==e.message;case vB:case yB:return r==e+"";case mB:var o=lB;case _B:var l=s&uB;if(o||(o=cB),r.size!=e.size&&!l)return!1;var c=a.get(r);if(c)return c==e;s|=dB,a.set(r,e);var u=T3(o(r),o(e),s,n,i,a);return a.delete(r),u;case bB:if(Fg)return Fg.call(r)==Fg.call(e)}return!1}var xB=1,CB=Object.prototype,PB=CB.hasOwnProperty;function AB(r,e,t,s,n,i){var a=t&xB,o=lv(r),l=o.length,c=lv(e),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var p=o[d];if(!(a?p in e:PB.call(e,p)))return!1}var h=i.get(r),f=i.get(e);if(h&&f)return h==e&&f==r;var g=!0;i.set(r,e),i.set(e,r);for(var v=a;++d<l;){p=o[d];var y=r[p],C=e[p];if(s)var x=a?s(C,y,p,e,r,i):s(y,C,p,r,e,i);if(!(x===void 0?y===C||n(y,C,t,s,i):x)){g=!1;break}v||(v=p=="constructor")}if(g&&!v){var $=r.constructor,L=e.constructor;$!=L&&"constructor"in r&&"constructor"in e&&!(typeof $=="function"&&$ instanceof $&&typeof L=="function"&&L instanceof L)&&(g=!1)}return i.delete(r),i.delete(e),g}var LB=1,vw="[object Arguments]",_w="[object Array]",Qd="[object Object]",EB=Object.prototype,yw=EB.hasOwnProperty;function OB(r,e,t,s,n,i){var a=is(r),o=is(e),l=a?_w:Hs(r),c=o?_w:Hs(e);l=l==vw?Qd:l,c=c==vw?Qd:c;var u=l==Qd,d=c==Qd,p=l==c;if(p&&nu(r)){if(!nu(e))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new Us),a||Sy(r)?T3(r,e,t,s,n,i):SB(r,e,l,t,s,n,i);if(!(t&LB)){var h=u&&yw.call(r,"__wrapped__"),f=d&&yw.call(e,"__wrapped__");if(h||f){var g=h?r.value():r,v=f?e.value():e;return i||(i=new Us),n(g,v,t,s,i)}}return p?(i||(i=new Us),AB(r,e,t,s,n,i)):!1}function om(r,e,t,s,n){return r===e?!0:r==null||e==null||!yn(r)&&!yn(e)?r!==r&&e!==e:OB(r,e,t,s,om,n)}var TB=1,kB=2;function DB(r,e,t,s){var n=t.length,i=n;if(r==null)return!i;for(r=Object(r);n--;){var a=t[n];if(a[2]?a[1]!==r[a[0]]:!(a[0]in r))return!1}for(;++n<i;){a=t[n];var o=a[0],l=r[o],c=a[1];if(a[2]){if(l===void 0&&!(o in r))return!1}else{var u=new Us,d;if(!(d===void 0?om(c,l,TB|kB,s,u):d))return!1}}return!0}function k3(r){return r===r&&!Gs(r)}function MB(r){for(var e=Qu(r),t=e.length;t--;){var s=e[t],n=r[s];e[t]=[s,n,k3(n)]}return e}function D3(r,e){return function(t){return t==null?!1:t[r]===e&&(e!==void 0||r in Object(t))}}function RB(r){var e=MB(r);return e.length==1&&e[0][2]?D3(e[0][0],e[0][1]):function(t){return t===r||DB(t,r,e)}}function IB(r,e){return r!=null&&e in Object(r)}function FB(r,e,t){e=Py(e,r);for(var s=-1,n=e.length,i=!1;++s<n;){var a=rd(e[s]);if(!(i=r!=null&&t(r,a)))break;r=r[a]}return i||++s!=n?i:(n=r==null?0:r.length,!!n&&by(n)&&tm(a,n)&&(is(r)||_h(r)))}function HB(r,e){return r!=null&&FB(r,e,IB)}var jB=1,BB=2;function NB(r,e){return xy(r)&&k3(e)?D3(rd(r),e):function(t){var s=Io(t,r);return s===void 0&&s===e?HB(t,r):om(e,s,jB|BB)}}function VB(r){return function(e){return e==null?void 0:e[r]}}function zB(r){return function(e){return X5(e,r)}}function UB(r){return xy(r)?VB(rd(r)):zB(r)}function M3(r){return typeof r=="function"?r:r==null?vy:typeof r=="object"?is(r)?NB(r[0],r[1]):RB(r):UB(r)}function WB(r){return function(e,t,s){for(var n=-1,i=Object(e),a=s(e),o=a.length;o--;){var l=a[++n];if(t(i[l],l,i)===!1)break}return e}}var R3=WB();function GB(r,e){return r&&R3(r,e,Qu)}function hv(r,e,t){(t!==void 0&&!Xu(r[e],t)||t===void 0&&!(e in r))&&rm(r,e,t)}function qB(r){return yn(r)&&sm(r)}function fv(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function ZB(r){return Ju(r,ed(r))}function YB(r,e,t,s,n,i,a){var o=fv(r,t),l=fv(e,t),c=a.get(l);if(c){hv(r,t,c);return}var u=i?i(o,l,t+"",r,e,a):void 0,d=u===void 0;if(d){var p=is(l),h=!p&&nu(l),f=!p&&!h&&Sy(l);u=l,p||h||f?is(o)?u=o:qB(o)?u=U5(o):h?(d=!1,u=w3(l,!0)):f?(d=!1,u=P3(l,!0)):u=[]:cF(l)||_h(l)?(u=o,_h(o)?u=ZB(o):(!Gs(o)||_y(o))&&(u=A3(l))):d=!1}d&&(a.set(l,u),n(u,l,s,i,a),a.delete(l)),hv(r,t,u)}function Ty(r,e,t,s,n){r!==e&&R3(e,function(i,a){if(n||(n=new Us),Gs(i))YB(r,e,a,t,Ty,s,n);else{var o=s?s(fv(r,a),i,a+"",r,e,n):void 0;o===void 0&&(o=i),hv(r,a,o)}},ed)}var I3=W5(function(r,e,t,s){Ty(r,e,t,s)});function KB(r,e,t,s){for(var n=r.length,i=n;i--&&e(r[i],i,r););return t?iv(r,0,i+1):iv(r,i+1,n)}function XB(r,e){return om(r,e)}var JB=Js.isFinite;function QB(r){return typeof r=="number"&&JB(r)}function eN(r,e){var t={};return e=M3(e),GB(r,function(s,n,i){rm(t,e(s,n,i),s)}),t}var F3=W5(function(r,e,t){Ty(r,e,t)});function tN(r,e,t,s){if(!Gs(r))return r;e=Py(e,r);for(var n=-1,i=e.length,a=i-1,o=r;o!=null&&++n<i;){var l=rd(e[n]),c=t;if(l==="__proto__"||l==="constructor"||l==="prototype")return r;if(n!=a){var u=o[l];c=void 0,c===void 0&&(c=Gs(u)?u:tm(e[n+1])?[]:{})}yy(o,l,c),o=o[l]}return r}function rN(r,e,t){return r==null?r:tN(r,e,t)}var H3=b3(function(r,e,t){return r+(t?" ":"")+am(e)});function mv(r,e){return r&&r.length?KB(r,M3(e),!1):[]}const ky=r=>eN(r,(e,t)=>{var s;return(s=t.split("/").pop())==null?void 0:s.split(".")[0]}),k5e=Object.freeze(ky(Object.assign({"/src/monaco/language/gcode.tmLanguage.json":()=>Ye(()=>import("./gcode.tmLanguage-CxxTzjZ-.js"),[],import.meta.url).then(r=>r.default),"/src/monaco/language/klipper-config.tmLanguage.json":()=>Ye(()=>import("./klipper-config.tmLanguage-DHe00u4k.js"),[],import.meta.url).then(r=>r.default),"/src/monaco/language/log.tmLanguage.json":()=>Ye(()=>import("./log.tmLanguage-DH-qwE--.js"),[],import.meta.url).then(r=>r.default)}))),sN=Object.freeze(ky(Object.assign({"/src/locales/af.yaml":()=>Ye(()=>import("./af-B7tmR8zz.js"),[],import.meta.url).then(r=>r.default),"/src/locales/ar.yaml":()=>Ye(()=>import("./ar-D8jgiXiO.js"),[],import.meta.url).then(r=>r.default),"/src/locales/cs.yaml":()=>Ye(()=>import("./cs-C5qHYNqo.js"),[],import.meta.url).then(r=>r.default),"/src/locales/de.yaml":()=>Ye(()=>import("./de-Cv8RHXfN.js"),[],import.meta.url).then(r=>r.default),"/src/locales/en.yaml":()=>Ye(()=>Promise.resolve().then(()=>VM),void 0,import.meta.url).then(r=>r.default),"/src/locales/es.yaml":()=>Ye(()=>import("./es-CD_mARN1.js"),[],import.meta.url).then(r=>r.default),"/src/locales/fr.yaml":()=>Ye(()=>import("./fr-DqmNfaNz.js"),[],import.meta.url).then(r=>r.default),"/src/locales/hu.yaml":()=>Ye(()=>import("./hu-CnylCR0k.js"),[],import.meta.url).then(r=>r.default),"/src/locales/it.yaml":()=>Ye(()=>import("./it-DCuJnOpP.js"),[],import.meta.url).then(r=>r.default),"/src/locales/ja.yaml":()=>Ye(()=>import("./ja-ZjrfT5Qd.js"),[],import.meta.url).then(r=>r.default),"/src/locales/ko.yaml":()=>Ye(()=>import("./ko-C5tJ747g.js"),[],import.meta.url).then(r=>r.default),"/src/locales/nl.yaml":()=>Ye(()=>import("./nl-DzKIjvWI.js"),[],import.meta.url).then(r=>r.default),"/src/locales/pl.yaml":()=>Ye(()=>import("./pl-Cz38OJGc.js"),[],import.meta.url).then(r=>r.default),"/src/locales/pt.yaml":()=>Ye(()=>import("./pt--ULNyXef.js"),[],import.meta.url).then(r=>r.default),"/src/locales/ru.yaml":()=>Ye(()=>import("./ru-CwWgM7Fq.js"),[],import.meta.url).then(r=>r.default),"/src/locales/sl.yaml":()=>Ye(()=>import("./sl-CMt3vT9G.js"),[],import.meta.url).then(r=>r.default),"/src/locales/tr.yaml":()=>Ye(()=>import("./tr-B5wW61g0.js"),[],import.meta.url).then(r=>r.default),"/src/locales/uk.yaml":()=>Ye(()=>import("./uk-CEjhvAHl.js"),[],import.meta.url).then(r=>r.default),"/src/locales/zh-CN.yaml":()=>Ye(()=>import("./zh-CN-C44FMo2U.js"),[],import.meta.url).then(r=>r.default),"/src/locales/zh-TW.yaml":()=>Ye(()=>import("./zh-TW-DTpiQJ3C.js"),[],import.meta.url).then(r=>r.default)}))),bw=Object.freeze(ky(Object.assign({"/src/components/widgets/camera/services/DeviceCamera.vue":()=>Ye(()=>import("./DeviceCamera-p52LJVGh.js"),[],import.meta.url),"/src/components/widgets/camera/services/HlsstreamCamera.vue":()=>Ye(()=>import("./HlsstreamCamera-D-pqxMdE.js"),[],import.meta.url),"/src/components/widgets/camera/services/IframeCamera.vue":()=>Ye(()=>import("./IframeCamera-BvfWXgDw.js"),[],import.meta.url),"/src/components/widgets/camera/services/IpstreamCamera.vue":()=>Ye(()=>import("./IpstreamCamera-DxUryTvr.js"),[],import.meta.url),"/src/components/widgets/camera/services/MjpegstreamerAdaptiveCamera.vue":()=>Ye(()=>import("./MjpegstreamerAdaptiveCamera-D-xq3ZEL.js"),[],import.meta.url),"/src/components/widgets/camera/services/MjpegstreamerCamera.vue":()=>Ye(()=>import("./MjpegstreamerCamera-vdr0deIL.js"),[],import.meta.url),"/src/components/widgets/camera/services/WebrtcCamerastreamerCamera.vue":()=>Ye(()=>import("./WebrtcCamerastreamerCamera-Dr8Zx8vN.js"),[],import.meta.url),"/src/components/widgets/camera/services/WebrtcGo2RtcCamera.vue":()=>Ye(()=>import("./WebrtcGo2RtcCamera-DRtKvtSA.js"),[],import.meta.url),"/src/components/widgets/camera/services/WebrtcMediamtxCamera.vue":()=>Ye(()=>import("./WebrtcMediamtxCamera-DJ5reARf.js"),[],import.meta.url)})));b.use(ve);const j3=()=>{const r=NM({countryCodeOnly:!0});return r&&L5.findIndex(e=>e.code===r)>=0?r:"en"},B3=j3(),rt=new ve({locale:B3,fallbackLocale:"en",messages:{}});rt.setLocaleMessage("en",B5);const Hg=[],gv=async r=>{if(Hg.length>0&&rt.locale===r)return r;if(Hg.includes(r))return rt.locale=r,r;try{const e=await sN[r]();return rt.setLocaleMessage(r,e),Hg.push(r),rt.locale=r,r}catch{return rt.locale}};gv(B3);/*!
|
||
* 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":return e?r.params:void 0}}function z3(r,e,t){var s=r.charAt(0);if(s==="/")return r;if(s==="?"||s==="#")return e+r;var n=e.split("/");(!t||!n[n.length-1])&&n.pop();for(var i=r.replace(/^\//,"").split("/"),a=0;a<i.length;a++){var o=i[a];o===".."?n.pop():o!=="."&&n.push(o)}return n[0]!==""&&n.unshift(""),n.join("/")}function mN(r){var e="",t="",s=r.indexOf("#");s>=0&&(e=r.slice(s),r=r.slice(0,s));var n=r.indexOf("?");return n>=0&&(t=r.slice(n+1),r=r.slice(0,n)),{path:r,query:t,hash:e}}function _i(r){return r.replace(/\/(?:\s*\/)+/g,"/")}var Sh=Array.isArray||function(r){return Object.prototype.toString.call(r)=="[object Array]"},$l=G3,gN=Dy,vN=$N,_N=U3,yN=W3,bN=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Dy(r,e){for(var t=[],s=0,n=0,i="",a=e&&e.delimiter||"/",o;(o=bN.exec(r))!=null;){var l=o[0],c=o[1],u=o.index;if(i+=r.slice(n,u),n=u+l.length,c){i+=c[1];continue}var d=r[n],p=o[2],h=o[3],f=o[4],g=o[5],v=o[6],y=o[7];i&&(t.push(i),i="");var C=p!=null&&d!=null&&d!==p,x=v==="+"||v==="*",$=v==="?"||v==="*",L=o[2]||a,G=f||g;t.push({name:h||s++,prefix:p||"",delimiter:L,optional:$,repeat:x,partial:C,asterisk:!!y,pattern:G?xN(G):y?".*":"[^"+Mp(L)+"]+?"})}return n<r.length&&(i+=r.substr(n)),i&&t.push(i),t}function $N(r,e){return U3(Dy(r,e),e)}function wN(r){return encodeURI(r).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function SN(r){return encodeURI(r).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function U3(r,e){for(var t=new Array(r.length),s=0;s<r.length;s++)typeof r[s]=="object"&&(t[s]=new RegExp("^(?:"+r[s].pattern+")$",Ry(e)));return function(n,i){for(var a="",o=n||{},l=i||{},c=l.pretty?wN:encodeURIComponent,u=0;u<r.length;u++){var d=r[u];if(typeof d=="string"){a+=d;continue}var p=o[d.name],h;if(p==null)if(d.optional){d.partial&&(a+=d.prefix);continue}else throw new TypeError('Expected "'+d.name+'" to be defined');if(Sh(p)){if(!d.repeat)throw new TypeError('Expected "'+d.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(p.length===0){if(d.optional)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(h=c(p[f]),!t[u].test(h))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(h)+"`");a+=(f===0?d.prefix:d.delimiter)+h}continue}if(h=d.asterisk?SN(p):c(p),!t[u].test(h))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+h+'"');a+=d.prefix+h}return a}}function Mp(r){return r.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function xN(r){return r.replace(/([=!:$\/()])/g,"\\$1")}function My(r,e){return r.keys=e,r}function Ry(r){return r&&r.sensitive?"":"i"}function CN(r,e){var t=r.source.match(/\((?!\?)/g);if(t)for(var s=0;s<t.length;s++)e.push({name:s,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return My(r,e)}function PN(r,e,t){for(var s=[],n=0;n<r.length;n++)s.push(G3(r[n],e,t).source);var i=new RegExp("(?:"+s.join("|")+")",Ry(t));return My(i,e)}function AN(r,e,t){return W3(Dy(r,t),e,t)}function W3(r,e,t){Sh(e)||(t=e||t,e=[]),t=t||{};for(var s=t.strict,n=t.end!==!1,i="",a=0;a<r.length;a++){var o=r[a];if(typeof o=="string")i+=Mp(o);else{var l=Mp(o.prefix),c="(?:"+o.pattern+")";e.push(o),o.repeat&&(c+="(?:"+l+c+")*"),o.optional?o.partial?c=l+"("+c+")?":c="(?:"+l+"("+c+"))?":c=l+"("+c+")",i+=c}}var u=Mp(t.delimiter||"/"),d=i.slice(-u.length)===u;return s||(i=(d?i.slice(0,-u.length):i)+"(?:"+u+"(?=$))?"),n?i+="$":i+=s&&d?"":"(?="+u+"|$)",My(new RegExp("^"+i,Ry(t)),e)}function G3(r,e,t){return Sh(e)||(t=e||t,e=[]),t=t||{},r instanceof RegExp?CN(r,e):Sh(r)?PN(r,e,t):AN(r,e,t)}$l.parse=gN;$l.compile=vN;$l.tokensToFunction=_N;$l.tokensToRegExp=yN;var xw=Object.create(null);function Rp(r,e,t){e=e||{};try{var s=xw[r]||(xw[r]=$l.compile(r));return typeof e.pathMatch=="string"&&(e[0]=e.pathMatch),s(e,{pretty:!0})}catch{return""}finally{delete e[0]}}function Iy(r,e,t,s){var n=typeof r=="string"?{path:r}:r;if(n._normalized)return n;if(n.name){n=js({},r);var i=n.params;return i&&typeof i=="object"&&(n.params=js({},i)),n}if(!n.path&&n.params&&e){n=js({},n),n._normalized=!0;var a=js(js({},e.params),n.params);if(e.name)n.name=e.name,n.params=a;else if(e.matched.length){var o=e.matched[e.matched.length-1].path;n.path=Rp(o,a,"path "+e.path)}return n}var l=mN(n.path||""),c=e&&e.path||"/",u=l.path?z3(l.path,c,t||n.append):c,d=oN(l.query,n.query,s&&s.options.parseQuery),p=n.hash||l.hash;return p&&p.charAt(0)!=="#"&&(p="#"+p),{_normalized:!0,path:u,query:d,hash:p}}var LN=[String,Object],EN=[String,Array],Cw=function(){},ON={name:"RouterLink",props:{to:{type:LN,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:EN,default:"click"}},render:function(e){var t=this,s=this.$router,n=this.$route,i=s.resolve(this.to,n,this.append),a=i.location,o=i.route,l=i.href,c={},u=s.options.linkActiveClass,d=s.options.linkExactActiveClass,p=u??"router-link-active",h=d??"router-link-exact-active",f=this.activeClass==null?p:this.activeClass,g=this.exactActiveClass==null?h:this.exactActiveClass,v=o.redirectedFrom?wh(null,Iy(o.redirectedFrom),null,s):o;c[g]=N3(n,v,this.exactPath),c[f]=this.exact||this.exactPath?c[g]:dN(n,v);var y=c[g]?this.ariaCurrentValue:null,C=function(k){Pw(k)&&(t.replace?s.replace(a,Cw):s.push(a,Cw))},x={click:Pw};Array.isArray(this.event)?this.event.forEach(function(k){x[k]=C}):x[this.event]=C;var $={class:c},L=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:o,navigate:C,isActive:c[f],isExactActive:c[g]});if(L){if(L.length===1)return L[0];if(L.length>1||!L.length)return L.length===0?e():e("span",{},L)}if(this.tag==="a")$.on=x,$.attrs={href:l,"aria-current":y};else{var G=q3(this.$slots.default);if(G){G.isStatic=!1;var K=G.data=js({},G.data);K.on=K.on||{};for(var le in K.on){var ue=K.on[le];le in x&&(K.on[le]=Array.isArray(ue)?ue:[ue])}for(var ne in x)ne in K.on?K.on[ne].push(x[ne]):K.on[ne]=C;var fe=G.data.attrs=js({},G.data.attrs);fe.href=l,fe["aria-current"]=y}else $.on=x}return e(this.tag,$,this.$slots.default)}};function Pw(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){var e=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return r.preventDefault&&r.preventDefault(),!0}}function q3(r){if(r){for(var e,t=0;t<r.length;t++)if(e=r[t],e.tag==="a"||e.children&&(e=q3(e.children)))return e}}var xh;function yv(r){if(!(yv.installed&&xh===r)){yv.installed=!0,xh=r;var e=function(n){return n!==void 0},t=function(n,i){var a=n.$options._parentVnode;e(a)&&e(a=a.data)&&e(a=a.registerRouteInstance)&&a(n,i)};r.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),r.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,t(this,this)},destroyed:function(){t(this)}}),Object.defineProperty(r.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(r.prototype,"$route",{get:function(){return this._routerRoot._route}}),r.component("RouterView",hN),r.component("RouterLink",ON);var s=r.config.optionMergeStrategies;s.beforeRouteEnter=s.beforeRouteLeave=s.beforeRouteUpdate=s.created}}var sd=typeof window<"u";function ep(r,e,t,s,n){var i=e||[],a=t||Object.create(null),o=s||Object.create(null);r.forEach(function(u){bv(i,a,o,u,n)});for(var l=0,c=i.length;l<c;l++)i[l]==="*"&&(i.push(i.splice(l,1)[0]),c--,l--);return{pathList:i,pathMap:a,nameMap:o}}function bv(r,e,t,s,n,i){var a=s.path,o=s.name,l=s.pathToRegexpOptions||{},c=kN(a,n,l.strict);typeof s.caseSensitive=="boolean"&&(l.sensitive=s.caseSensitive);var u={path:c,regex:TN(c,l),components:s.components||{default:s.component},alias:s.alias?typeof s.alias=="string"?[s.alias]:s.alias:[],instances:{},enteredCbs:{},name:o,parent:n,matchAs:i,redirect:s.redirect,beforeEnter:s.beforeEnter,meta:s.meta||{},props:s.props==null?{}:s.components?s.props:{default:s.props}};if(s.children&&s.children.forEach(function(g){var v=i?_i(i+"/"+g.path):void 0;bv(r,e,t,g,u,v)}),e[u.path]||(r.push(u.path),e[u.path]=u),s.alias!==void 0)for(var d=Array.isArray(s.alias)?s.alias:[s.alias],p=0;p<d.length;++p){var h=d[p],f={path:h,children:s.children};bv(r,e,t,f,n,u.path||"/")}o&&(t[o]||(t[o]=u))}function TN(r,e){var t=$l(r,[],e);return t}function kN(r,e,t){return t||(r=r.replace(/\/$/,"")),r[0]==="/"||e==null?r:_i(e.path+"/"+r)}function DN(r,e){var t=ep(r),s=t.pathList,n=t.pathMap,i=t.nameMap;function a(h){ep(h,s,n,i)}function o(h,f){var g=typeof h!="object"?i[h]:void 0;ep([f||h],s,n,i,g),g&&g.alias.length&&ep(g.alias.map(function(v){return{path:v,children:[f]}}),s,n,i,g)}function l(){return s.map(function(h){return n[h]})}function c(h,f,g){var v=Iy(h,f,!1,e),y=v.name;if(y){var C=i[y];if(!C)return p(null,v);var x=C.regex.keys.filter(function(le){return!le.optional}).map(function(le){return le.name});if(typeof v.params!="object"&&(v.params={}),f&&typeof f.params=="object")for(var $ in f.params)!($ in v.params)&&x.indexOf($)>-1&&(v.params[$]=f.params[$]);return v.path=Rp(C.path,v.params),p(C,v,g)}else if(v.path){v.params={};for(var L=0;L<s.length;L++){var G=s[L],K=n[G];if(MN(K.regex,v.path,v.params))return p(K,v,g)}}return p(null,v)}function u(h,f){var g=h.redirect,v=typeof g=="function"?g(wh(h,f,null,e)):g;if(typeof v=="string"&&(v={path:v}),!v||typeof v!="object")return p(null,f);var y=v,C=y.name,x=y.path,$=f.query,L=f.hash,G=f.params;if($=y.hasOwnProperty("query")?y.query:$,L=y.hasOwnProperty("hash")?y.hash:L,G=y.hasOwnProperty("params")?y.params:G,C)return i[C],c({_normalized:!0,name:C,query:$,hash:L,params:G},void 0,f);if(x){var K=RN(x,h),le=Rp(K,G);return c({_normalized:!0,path:le,query:$,hash:L},void 0,f)}else return p(null,f)}function d(h,f,g){var v=Rp(g,f.params),y=c({_normalized:!0,path:v});if(y){var C=y.matched,x=C[C.length-1];return f.params=y.params,p(x,f)}return p(null,f)}function p(h,f,g){return h&&h.redirect?u(h,g||f):h&&h.matchAs?d(h,f,h.matchAs):wh(h,f,g,e)}return{match:c,addRoute:o,getRoutes:l,addRoutes:a}}function MN(r,e,t){var s=e.match(r);if(s){if(!t)return!0}else return!1;for(var n=1,i=s.length;n<i;++n){var a=r.keys[n-1];a&&(t[a.name||"pathMatch"]=typeof s[n]=="string"?vv(s[n]):s[n])}return!0}function RN(r,e){return z3(r,e.parent?e.parent.path:"/",!0)}var IN=sd&&window.performance&&window.performance.now?window.performance:Date;function Z3(){return IN.now().toFixed(3)}var Y3=Z3();function lm(){return Y3}function K3(r){return Y3=r}var X3=Object.create(null);function J3(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var r=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(r,""),t=js({},window.history.state);return t.key=lm(),window.history.replaceState(t,"",e),window.addEventListener("popstate",Aw),function(){window.removeEventListener("popstate",Aw)}}function yi(r,e,t,s){if(r.app){var n=r.options.scrollBehavior;n&&r.app.$nextTick(function(){var i=FN(),a=n.call(r,e,t,s?i:null);a&&(typeof a.then=="function"?a.then(function(o){Ow(o,i)}).catch(function(o){}):Ow(a,i))})}}function Q3(){var r=lm();r&&(X3[r]={x:window.pageXOffset,y:window.pageYOffset})}function Aw(r){Q3(),r.state&&r.state.key&&K3(r.state.key)}function FN(){var r=lm();if(r)return X3[r]}function HN(r,e){var t=document.documentElement,s=t.getBoundingClientRect(),n=r.getBoundingClientRect();return{x:n.left-s.left-e.x,y:n.top-s.top-e.y}}function Lw(r){return zo(r.x)||zo(r.y)}function Ew(r){return{x:zo(r.x)?r.x:window.pageXOffset,y:zo(r.y)?r.y:window.pageYOffset}}function jN(r){return{x:zo(r.x)?r.x:0,y:zo(r.y)?r.y:0}}function zo(r){return typeof r=="number"}var BN=/^#\d/;function Ow(r,e){var t=typeof r=="object";if(t&&typeof r.selector=="string"){var s=BN.test(r.selector)?document.getElementById(r.selector.slice(1)):document.querySelector(r.selector);if(s){var n=r.offset&&typeof r.offset=="object"?r.offset:{};n=jN(n),e=HN(s,n)}else Lw(r)&&(e=Ew(r))}else t&&Lw(r)&&(e=Ew(r));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:r.behavior}):window.scrollTo(e.x,e.y))}var bi=sd&&function(){var r=window.navigator.userAgent;return(r.indexOf("Android 2.")!==-1||r.indexOf("Android 4.0")!==-1)&&r.indexOf("Mobile Safari")!==-1&&r.indexOf("Chrome")===-1&&r.indexOf("Windows Phone")===-1?!1:window.history&&typeof window.history.pushState=="function"}();function Ch(r,e){Q3();var t=window.history;try{if(e){var s=js({},t.state);s.key=lm(),t.replaceState(s,"",r)}else t.pushState({key:K3(Z3())},"",r)}catch{window.location[e?"replace":"assign"](r)}}function $v(r){Ch(r,!0)}var Ga={redirected:2,aborted:4,cancelled:8,duplicated:16};function NN(r,e){return cm(r,e,Ga.redirected,'Redirected when going from "'+r.fullPath+'" to "'+WN(e)+'" via a navigation guard.')}function VN(r,e){var t=cm(r,e,Ga.duplicated,'Avoided redundant navigation to current location: "'+r.fullPath+'".');return t.name="NavigationDuplicated",t}function Tw(r,e){return cm(r,e,Ga.cancelled,'Navigation cancelled from "'+r.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function zN(r,e){return cm(r,e,Ga.aborted,'Navigation aborted from "'+r.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}function cm(r,e,t,s){var n=new Error(s);return n._isRouter=!0,n.from=r,n.to=e,n.type=t,n}var UN=["params","query","hash"];function WN(r){if(typeof r=="string")return r;if("path"in r)return r.path;var e={};return UN.forEach(function(t){t in r&&(e[t]=r[t])}),JSON.stringify(e,null,2)}function Ph(r){return Object.prototype.toString.call(r).indexOf("Error")>-1}function um(r,e){return Ph(r)&&r._isRouter&&(e==null||r.type===e)}function kw(r,e,t){var s=function(n){n>=r.length?t():r[n]?e(r[n],function(){s(n+1)}):s(n+1)};s(0)}function GN(r){return function(e,t,s){var n=!1,i=0,a=null;e4(r,function(o,l,c,u){if(typeof o=="function"&&o.cid===void 0){n=!0,i++;var d=Dw(function(g){ZN(g)&&(g=g.default),o.resolved=typeof g=="function"?g:xh.extend(g),c.components[u]=g,i--,i<=0&&s()}),p=Dw(function(g){var v="Failed to resolve async component "+u+": "+g;a||(a=Ph(g)?g:new Error(v),s(a))}),h;try{h=o(d,p)}catch(g){p(g)}if(h)if(typeof h.then=="function")h.then(d,p);else{var f=h.component;f&&typeof f.then=="function"&&f.then(d,p)}}}),n||s()}}function e4(r,e){return t4(r.map(function(t){return Object.keys(t.components).map(function(s){return e(t.components[s],t.instances[s],t,s)})}))}function t4(r){return Array.prototype.concat.apply([],r)}var qN=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ZN(r){return r.__esModule||qN&&r[Symbol.toStringTag]==="Module"}function Dw(r){var e=!1;return function(){for(var t=[],s=arguments.length;s--;)t[s]=arguments[s];if(!e)return e=!0,r.apply(this,t)}}var Qs=function(e,t){this.router=e,this.base=YN(t),this.current=Fi,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};Qs.prototype.listen=function(e){this.cb=e};Qs.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))};Qs.prototype.onError=function(e){this.errorCbs.push(e)};Qs.prototype.transitionTo=function(e,t,s){var n=this,i;try{i=this.router.match(e,this.current)}catch(o){throw this.errorCbs.forEach(function(l){l(o)}),o}var a=this.current;this.confirmTransition(i,function(){n.updateRoute(i),t&&t(i),n.ensureURL(),n.router.afterHooks.forEach(function(o){o&&o(i,a)}),n.ready||(n.ready=!0,n.readyCbs.forEach(function(o){o(i)}))},function(o){s&&s(o),o&&!n.ready&&(!um(o,Ga.redirected)||a!==Fi)&&(n.ready=!0,n.readyErrorCbs.forEach(function(l){l(o)}))})};Qs.prototype.confirmTransition=function(e,t,s){var n=this,i=this.current;this.pending=e;var a=function(g){!um(g)&&Ph(g)&&(n.errorCbs.length?n.errorCbs.forEach(function(v){v(g)}):console.error(g)),s&&s(g)},o=e.matched.length-1,l=i.matched.length-1;if(N3(e,i)&&o===l&&e.matched[o]===i.matched[l])return this.ensureURL(),e.hash&&yi(this.router,i,e,!1),a(VN(i,e));var c=KN(this.current.matched,e.matched),u=c.updated,d=c.deactivated,p=c.activated,h=[].concat(JN(d),this.router.beforeHooks,QN(u),p.map(function(g){return g.beforeEnter}),GN(p)),f=function(g,v){if(n.pending!==e)return a(Tw(i,e));try{g(e,i,function(y){y===!1?(n.ensureURL(!0),a(zN(i,e))):Ph(y)?(n.ensureURL(!0),a(y)):typeof y=="string"||typeof y=="object"&&(typeof y.path=="string"||typeof y.name=="string")?(a(NN(i,e)),typeof y=="object"&&y.replace?n.replace(y):n.push(y)):v(y)})}catch(y){a(y)}};kw(h,f,function(){var g=eV(p),v=g.concat(n.router.resolveHooks);kw(v,f,function(){if(n.pending!==e)return a(Tw(i,e));n.pending=null,t(e),n.router.app&&n.router.app.$nextTick(function(){V3(e)})})})};Qs.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)};Qs.prototype.setupListeners=function(){};Qs.prototype.teardown=function(){this.listeners.forEach(function(e){e()}),this.listeners=[],this.current=Fi,this.pending=null};function YN(r){if(!r)if(sd){var e=document.querySelector("base");r=e&&e.getAttribute("href")||"/",r=r.replace(/^https?:\/\/[^\/]+/,"")}else r="/";return r.charAt(0)!=="/"&&(r="/"+r),r.replace(/\/$/,"")}function KN(r,e){var t,s=Math.max(r.length,e.length);for(t=0;t<s&&r[t]===e[t];t++);return{updated:e.slice(0,t),activated:e.slice(t),deactivated:r.slice(t)}}function Fy(r,e,t,s){var n=e4(r,function(i,a,o,l){var c=XN(i,e);if(c)return Array.isArray(c)?c.map(function(u){return t(u,a,o,l)}):t(c,a,o,l)});return t4(s?n.reverse():n)}function XN(r,e){return typeof r!="function"&&(r=xh.extend(r)),r.options[e]}function JN(r){return Fy(r,"beforeRouteLeave",r4,!0)}function QN(r){return Fy(r,"beforeRouteUpdate",r4)}function r4(r,e){if(e)return function(){return r.apply(e,arguments)}}function eV(r){return Fy(r,"beforeRouteEnter",function(e,t,s,n){return tV(e,s,n)})}function tV(r,e,t){return function(n,i,a){return r(n,i,function(o){typeof o=="function"&&(e.enteredCbs[t]||(e.enteredCbs[t]=[]),e.enteredCbs[t].push(o)),a(o)})}}var s4=function(r){function e(t,s){r.call(this,t,s),this._startLocation=$c(this.base)}return r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var s=this;if(!(this.listeners.length>0)){var n=this.router,i=n.options.scrollBehavior,a=bi&&i;a&&this.listeners.push(J3());var o=function(){var l=s.current,c=$c(s.base);s.current===Fi&&c===s._startLocation||s.transitionTo(c,function(u){a&&yi(n,u,l,!0)})};window.addEventListener("popstate",o),this.listeners.push(function(){window.removeEventListener("popstate",o)})}},e.prototype.go=function(s){window.history.go(s)},e.prototype.push=function(s,n,i){var a=this,o=this,l=o.current;this.transitionTo(s,function(c){Ch(_i(a.base+c.fullPath)),yi(a.router,c,l,!1),n&&n(c)},i)},e.prototype.replace=function(s,n,i){var a=this,o=this,l=o.current;this.transitionTo(s,function(c){$v(_i(a.base+c.fullPath)),yi(a.router,c,l,!1),n&&n(c)},i)},e.prototype.ensureURL=function(s){if($c(this.base)!==this.current.fullPath){var n=_i(this.base+this.current.fullPath);s?Ch(n):$v(n)}},e.prototype.getCurrentLocation=function(){return $c(this.base)},e}(Qs);function $c(r){var e=window.location.pathname,t=e.toLowerCase(),s=r.toLowerCase();return r&&(t===s||t.indexOf(_i(s+"/"))===0)&&(e=e.slice(r.length)),(e||"/")+window.location.search+window.location.hash}var n4=function(r){function e(t,s,n){r.call(this,t,s),!(n&&rV(this.base))&&Mw()}return r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var s=this;if(!(this.listeners.length>0)){var n=this.router,i=n.options.scrollBehavior,a=bi&&i;a&&this.listeners.push(J3());var o=function(){var c=s.current;Mw()&&s.transitionTo(Ip(),function(u){a&&yi(s.router,u,c,!0),bi||Fp(u.fullPath)})},l=bi?"popstate":"hashchange";window.addEventListener(l,o),this.listeners.push(function(){window.removeEventListener(l,o)})}},e.prototype.push=function(s,n,i){var a=this,o=this,l=o.current;this.transitionTo(s,function(c){Rw(c.fullPath),yi(a.router,c,l,!1),n&&n(c)},i)},e.prototype.replace=function(s,n,i){var a=this,o=this,l=o.current;this.transitionTo(s,function(c){Fp(c.fullPath),yi(a.router,c,l,!1),n&&n(c)},i)},e.prototype.go=function(s){window.history.go(s)},e.prototype.ensureURL=function(s){var n=this.current.fullPath;Ip()!==n&&(s?Rw(n):Fp(n))},e.prototype.getCurrentLocation=function(){return Ip()},e}(Qs);function rV(r){var e=$c(r);if(!/^\/#/.test(e))return window.location.replace(_i(r+"/#"+e)),!0}function Mw(){var r=Ip();return r.charAt(0)==="/"?!0:(Fp("/"+r),!1)}function Ip(){var r=window.location.href,e=r.indexOf("#");return e<0?"":(r=r.slice(e+1),r)}function wv(r){var e=window.location.href,t=e.indexOf("#"),s=t>=0?e.slice(0,t):e;return s+"#"+r}function Rw(r){bi?Ch(wv(r)):window.location.hash=r}function Fp(r){bi?$v(wv(r)):window.location.replace(wv(r))}var sV=function(r){function e(t,s){r.call(this,t,s),this.stack=[],this.index=-1}return r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e,e.prototype.push=function(s,n,i){var a=this;this.transitionTo(s,function(o){a.stack=a.stack.slice(0,a.index+1).concat(o),a.index++,n&&n(o)},i)},e.prototype.replace=function(s,n,i){var a=this;this.transitionTo(s,function(o){a.stack=a.stack.slice(0,a.index).concat(o),n&&n(o)},i)},e.prototype.go=function(s){var n=this,i=this.index+s;if(!(i<0||i>=this.stack.length)){var a=this.stack[i];this.confirmTransition(a,function(){var o=n.current;n.index=i,n.updateRoute(a),n.router.afterHooks.forEach(function(l){l&&l(a,o)})},function(o){um(o,Ga.duplicated)&&(n.index=i)})}},e.prototype.getCurrentLocation=function(){var s=this.stack[this.stack.length-1];return s?s.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Qs),vt=function(e){e===void 0&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=DN(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback=t==="history"&&!bi&&e.fallback!==!1,this.fallback&&(t="hash"),sd||(t="abstract"),this.mode=t,t){case"history":this.history=new s4(this,e.base);break;case"hash":this.history=new n4(this,e.base,this.fallback);break;case"abstract":this.history=new sV(this,e.base);break}},i4={currentRoute:{configurable:!0}};vt.prototype.match=function(e,t,s){return this.matcher.match(e,t,s)};i4.currentRoute.get=function(){return this.history&&this.history.current};vt.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",function(){var a=t.apps.indexOf(e);a>-1&&t.apps.splice(a,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()}),!this.app){this.app=e;var s=this.history;if(s instanceof s4||s instanceof n4){var n=function(a){var o=s.current,l=t.options.scrollBehavior,c=bi&&l;c&&"fullPath"in a&&yi(t,a,o,!1)},i=function(a){s.setupListeners(),n(a)};s.transitionTo(s.getCurrentLocation(),i,i)}s.listen(function(a){t.apps.forEach(function(o){o._route=a})})}};vt.prototype.beforeEach=function(e){return Hy(this.beforeHooks,e)};vt.prototype.beforeResolve=function(e){return Hy(this.resolveHooks,e)};vt.prototype.afterEach=function(e){return Hy(this.afterHooks,e)};vt.prototype.onReady=function(e,t){this.history.onReady(e,t)};vt.prototype.onError=function(e){this.history.onError(e)};vt.prototype.push=function(e,t,s){var n=this;if(!t&&!s&&typeof Promise<"u")return new Promise(function(i,a){n.history.push(e,i,a)});this.history.push(e,t,s)};vt.prototype.replace=function(e,t,s){var n=this;if(!t&&!s&&typeof Promise<"u")return new Promise(function(i,a){n.history.replace(e,i,a)});this.history.replace(e,t,s)};vt.prototype.go=function(e){this.history.go(e)};vt.prototype.back=function(){this.go(-1)};vt.prototype.forward=function(){this.go(1)};vt.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map(function(s){return Object.keys(s.components).map(function(n){return s.components[n]})})):[]};vt.prototype.resolve=function(e,t,s){t=t||this.history.current;var n=Iy(e,t,s,this),i=this.match(n,t),a=i.redirectedFrom||i.fullPath,o=this.history.base,l=nV(o,a,this.mode);return{location:n,route:i,href:l,normalizedTo:n,resolved:i}};vt.prototype.getRoutes=function(){return this.matcher.getRoutes()};vt.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==Fi&&this.history.transitionTo(this.history.getCurrentLocation())};vt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Fi&&this.history.transitionTo(this.history.getCurrentLocation())};Object.defineProperties(vt.prototype,i4);var a4=vt;function Hy(r,e){return r.push(e),function(){var t=r.indexOf(e);t>-1&&r.splice(t,1)}}function nV(r,e,t){var s=t==="hash"?"#"+e:e;return r?_i(r+"/"+s):s}vt.install=yv;vt.version="3.6.5";vt.isNavigationFailure=um;vt.NavigationFailureType=Ga;vt.START_LOCATION=Fi;sd&&window.Vue&&window.Vue.use(vt);var iV=typeof Reflect<"u"&&typeof Reflect.getMetadata<"u";function o4(r,e,t){if(iV&&!Array.isArray(r)&&typeof r!="function"&&!r.hasOwnProperty("type")&&typeof r.type>"u"){var s=Reflect.getMetadata("design:type",e,t);s!==Object&&(r.type=s)}}function w(r){return r===void 0&&(r={}),function(e,t){o4(r,e,t),Yu(function(s,n){(s.props||(s.props={}))[n]=r})(e,t)}}function Hi(r,e){return e===void 0&&(e={}),function(t,s){o4(e,t,s),Yu(function(n,i){(n.props||(n.props={}))[r]=e,(n.computed||(n.computed={}))[i]={get:function(){return this[r]},set:function(a){this.$emit("update:"+r,a)}}})(t,s)}}function Te(r){return Yu(function(e,t){e.computed=e.computed||{},e.computed[t]={cache:!1,get:function(){return this.$refs[r||t]}}})}function Fe(r){r===void 0&&(r={});var e="value";return Yu(function(t,s){(t.props||(t.props={}))[e]=r,(t.computed||(t.computed={}))[s]={get:function(){return this[e]},set:function(n){this.$emit("input",n)}}})}function Ae(r,e){e===void 0&&(e={});var t=e.deep,s=t===void 0?!1:t,n=e.immediate,i=n===void 0?!1:n;return Yu(function(a,o){typeof a.watch!="object"&&(a.watch=Object.create(null));var l=a.watch;typeof l[r]=="object"&&!Array.isArray(l[r])?l[r]=[l[r]]:typeof l[r]>"u"&&(l[r]=[]),l[r].push({handler:o,deep:s,immediate:i})})}/**!
|
||
* 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),f=h&&h.a,g=h&&h.d;h&&(a/=g,o/=f,d/=f,u/=g,l=a+u,c=o+d)}return{top:a,left:o,bottom:l,right:c,width:d,height:u}}}function jw(r,e,t){for(var s=mi(r,!0),n=Nt(r)[e];s;){var i=Nt(s)[t],a=void 0;if(a=n>=i,!a)return s;if(s===mn())break;s=mi(s,!1)}return!1}function Uo(r,e,t,s){for(var n=0,i=0,a=r.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==De.ghost&&(s||a[i]!==De.dragged)&&Fs(a[i],t.draggable,r,!1)){if(n===e)return a[i];n++}i++}return null}function jy(r,e){for(var t=r.lastElementChild;t&&(t===De.ghost||ke(t,"display")==="none"||e&&!Ah(t,e));)t=t.previousElementSibling;return t||null}function vs(r,e){var t=0;if(!r||!r.parentNode)return-1;for(;r=r.previousElementSibling;)r.nodeName.toUpperCase()!=="TEMPLATE"&&r!==De.clone&&(!e||Ah(r,e))&&t++;return t}function Bw(r){var e=0,t=0,s=mn();if(r)do{var n=Fo(r),i=n.a,a=n.d;e+=r.scrollLeft*i,t+=r.scrollTop*a}while(r!==s&&(r=r.parentNode));return[e,t]}function dV(r,e){for(var t in r)if(r.hasOwnProperty(t)){for(var s in e)if(e.hasOwnProperty(s)&&e[s]===r[t][s])return Number(t)}return-1}function mi(r,e){if(!r||!r.getBoundingClientRect)return mn();var t=r,s=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var n=ke(t);if(t.clientWidth<t.scrollWidth&&(n.overflowX=="auto"||n.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(n.overflowY=="auto"||n.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return mn();if(s||e)return t;s=!0}}while(t=t.parentNode);return mn()}function pV(r,e){if(r&&e)for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r}function jg(r,e){return Math.round(r.top)===Math.round(e.top)&&Math.round(r.left)===Math.round(e.left)&&Math.round(r.height)===Math.round(e.height)&&Math.round(r.width)===Math.round(e.width)}var Rc;function p4(r,e){return function(){if(!Rc){var t=arguments,s=this;t.length===1?r.call(s,t[0]):r.apply(s,t),Rc=setTimeout(function(){Rc=void 0},e)}}}function hV(){clearTimeout(Rc),Rc=void 0}function h4(r,e,t){r.scrollLeft+=e,r.scrollTop+=t}function f4(r){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(r).cloneNode(!0):t?t(r).clone(!0)[0]:r.cloneNode(!0)}function m4(r,e,t){var s={};return Array.from(r.children).forEach(function(n){var i,a,o,l;if(!(!Fs(n,e.draggable,r,!1)||n.animated||n===t)){var c=Nt(n);s.left=Math.min((i=s.left)!==null&&i!==void 0?i:1/0,c.left),s.top=Math.min((a=s.top)!==null&&a!==void 0?a:1/0,c.top),s.right=Math.max((o=s.right)!==null&&o!==void 0?o:-1/0,c.right),s.bottom=Math.max((l=s.bottom)!==null&&l!==void 0?l:-1/0,c.bottom)}}),s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}var ts="Sortable"+new Date().getTime();function fV(){var r=[],e;return{captureAnimationState:function(){if(r=[],!!this.options.animation){var s=[].slice.call(this.el.children);s.forEach(function(n){if(!(ke(n,"display")==="none"||n===De.ghost)){r.push({target:n,rect:Nt(n)});var i=bn({},r[r.length-1].rect);if(n.thisAnimationDuration){var a=Fo(n,!0);a&&(i.top-=a.f,i.left-=a.e)}n.fromRect=i}})}},addAnimationState:function(s){r.push(s)},removeAnimationState:function(s){r.splice(dV(r,{target:s}),1)},animateAll:function(s){var n=this;if(!this.options.animation){clearTimeout(e),typeof s=="function"&&s();return}var i=!1,a=0;r.forEach(function(o){var l=0,c=o.target,u=c.fromRect,d=Nt(c),p=c.prevFromRect,h=c.prevToRect,f=o.rect,g=Fo(c,!0);g&&(d.top-=g.f,d.left-=g.e),c.toRect=d,c.thisAnimationDuration&&jg(p,d)&&!jg(u,d)&&(f.top-d.top)/(f.left-d.left)===(u.top-d.top)/(u.left-d.left)&&(l=gV(f,p,h,n.options)),jg(d,u)||(c.prevFromRect=u,c.prevToRect=d,l||(l=n.options.animation),n.animate(c,f,d,l)),l&&(i=!0,a=Math.max(a,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(e),i?e=setTimeout(function(){typeof s=="function"&&s()},a):typeof s=="function"&&s(),r=[]},animate:function(s,n,i,a){if(a){ke(s,"transition",""),ke(s,"transform","");var o=Fo(this.el),l=o&&o.a,c=o&&o.d,u=(n.left-i.left)/(l||1),d=(n.top-i.top)/(c||1);s.animatingX=!!u,s.animatingY=!!d,ke(s,"transform","translate3d("+u+"px,"+d+"px,0)"),this.forRepaintDummy=mV(s),ke(s,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),ke(s,"transform","translate3d(0,0,0)"),typeof s.animated=="number"&&clearTimeout(s.animated),s.animated=setTimeout(function(){ke(s,"transition",""),ke(s,"transform",""),s.animated=!1,s.animatingX=!1,s.animatingY=!1},a)}}}}function mV(r){return r.offsetWidth}function gV(r,e,t,s){return Math.sqrt(Math.pow(e.top-r.top,2)+Math.pow(e.left-r.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*s.animation}var _o=[],Bg={initializeByDefault:!0},id={mount:function(e){for(var t in Bg)Bg.hasOwnProperty(t)&&!(t in e)&&(e[t]=Bg[t]);_o.forEach(function(s){if(s.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),_o.push(e)},pluginEvent:function(e,t,s){var n=this;this.eventCanceled=!1,s.cancel=function(){n.eventCanceled=!0};var i=e+"Global";_o.forEach(function(a){t[a.pluginName]&&(t[a.pluginName][i]&&t[a.pluginName][i](bn({sortable:t},s)),t.options[a.pluginName]&&t[a.pluginName][e]&&t[a.pluginName][e](bn({sortable:t},s)))})},initializePlugins:function(e,t,s,n){_o.forEach(function(o){var l=o.pluginName;if(!(!e.options[l]&&!o.initializeByDefault)){var c=new o(e,t,e.options);c.sortable=e,c.options=e.options,e[l]=c,jn(s,c.defaults)}});for(var i in e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);typeof a<"u"&&(e.options[i]=a)}},getEventProperties:function(e,t){var s={};return _o.forEach(function(n){typeof n.eventProperties=="function"&&jn(s,n.eventProperties.call(t[n.pluginName],e))}),s},modifyOption:function(e,t,s){var n;return _o.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]=="function"&&(n=i.optionListeners[t].call(e[i.pluginName],s))}),n}};function vV(r){var e=r.sortable,t=r.rootEl,s=r.name,n=r.targetEl,i=r.cloneEl,a=r.toEl,o=r.fromEl,l=r.oldIndex,c=r.newIndex,u=r.oldDraggableIndex,d=r.newDraggableIndex,p=r.originalEvent,h=r.putSortable,f=r.extraEventProperties;if(e=e||t&&t[ts],!!e){var g,v=e.options,y="on"+s.charAt(0).toUpperCase()+s.substr(1);window.CustomEvent&&!Yn&&!nd?g=new CustomEvent(s,{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent(s,!0,!0)),g.to=a||t,g.from=o||t,g.item=n||t,g.clone=i,g.oldIndex=l,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=p,g.pullMode=h?h.lastPutMode:void 0;var C=bn(bn({},f),id.getEventProperties(s,e));for(var x in C)g[x]=C[x];t&&t.dispatchEvent(g),v[y]&&v[y].call(e,g)}}var _V=["evt"],Er=function(e,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=s.evt,i=lV(s,_V);id.pluginEvent.bind(De)(e,t,bn({dragEl:ce,parentEl:Lt,ghostEl:je,rootEl:_t,nextEl:ea,lastDownEl:jp,cloneEl:St,cloneHidden:di,dragStarted:wc,putSortable:rr,activeSortable:De.active,originalEvent:n,oldIndex:To,oldDraggableIndex:Ic,newIndex:Jr,newDraggableIndex:ci,hideGhostForTarget:y4,unhideGhostForTarget:b4,cloneNowHidden:function(){di=!0},cloneNowShown:function(){di=!1},dispatchSortableEvent:function(o){_r({sortable:t,name:o,originalEvent:n})}},i))};function _r(r){vV(bn({putSortable:rr,cloneEl:St,targetEl:ce,rootEl:_t,oldIndex:To,oldDraggableIndex:Ic,newIndex:Jr,newDraggableIndex:ci},r))}var ce,Lt,je,_t,ea,jp,St,di,To,Jr,Ic,ci,tp,rr,Po=!1,Lh=!1,Eh=[],Ki,ks,Ng,Vg,Nw,Vw,wc,yo,Fc,Hc=!1,rp=!1,Bp,ur,zg=[],Sv=!1,Oh=[],dm=typeof document<"u",sp=l4,zw=nd||Yn?"cssFloat":"float",yV=dm&&!c4&&!l4&&"draggable"in document.createElement("div"),g4=function(){if(dm){if(Yn)return!1;var r=document.createElement("x");return r.style.cssText="pointer-events:auto",r.style.pointerEvents==="auto"}}(),v4=function(e,t){var s=ke(e),n=parseInt(s.width)-parseInt(s.paddingLeft)-parseInt(s.paddingRight)-parseInt(s.borderLeftWidth)-parseInt(s.borderRightWidth),i=Uo(e,0,t),a=Uo(e,1,t),o=i&&ke(i),l=a&&ke(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+Nt(i).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Nt(a).width;if(s.display==="flex")return s.flexDirection==="column"||s.flexDirection==="column-reverse"?"vertical":"horizontal";if(s.display==="grid")return s.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&o.float&&o.float!=="none"){var d=o.float==="left"?"left":"right";return a&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return i&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||c>=n&&s[zw]==="none"||a&&s[zw]==="none"&&c+u>n)?"vertical":"horizontal"},bV=function(e,t,s){var n=s?e.left:e.top,i=s?e.right:e.bottom,a=s?e.width:e.height,o=s?t.left:t.top,l=s?t.right:t.bottom,c=s?t.width:t.height;return n===o||i===l||n+a/2===o+c/2},$V=function(e,t){var s;return Eh.some(function(n){var i=n[ts].options.emptyInsertThreshold;if(!(!i||jy(n))){var a=Nt(n),o=e>=a.left-i&&e<=a.right+i,l=t>=a.top-i&&t<=a.bottom+i;if(o&&l)return s=n}}),s},_4=function(e){function t(i,a){return function(o,l,c,u){var d=o.options.group.name&&l.options.group.name&&o.options.group.name===l.options.group.name;if(i==null&&(a||d))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return t(i(o,l,c,u),a)(o,l,c,u);var p=(a?o:l).options.group.name;return i===!0||typeof i=="string"&&i===p||i.join&&i.indexOf(p)>-1}}var s={},n=e.group;(!n||Hp(n)!="object")&&(n={name:n}),s.name=n.name,s.checkPull=t(n.pull,!0),s.checkPut=t(n.put),s.revertClone=n.revertClone,e.group=s},y4=function(){!g4&&je&&ke(je,"display","none")},b4=function(){!g4&&je&&ke(je,"display","")};dm&&!c4&&document.addEventListener("click",function(r){if(Lh)return r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.stopImmediatePropagation&&r.stopImmediatePropagation(),Lh=!1,!1},!0);var Xi=function(e){if(ce){e=e.touches?e.touches[0]:e;var t=$V(e.clientX,e.clientY);if(t){var s={};for(var n in e)e.hasOwnProperty(n)&&(s[n]=e[n]);s.target=s.rootEl=t,s.preventDefault=void 0,s.stopPropagation=void 0,t[ts]._onDragOver(s)}}},wV=function(e){ce&&ce.parentNode[ts]._isOutsideThisEl(e.target)};function De(r,e){if(!(r&&r.nodeType&&r.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(r));this.el=r,this.options=e=jn({},e),r[ts]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(r.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return v4(r,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,o){a.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:De.supportPointer!==!1&&"PointerEvent"in window&&!Mc,emptyInsertThreshold:5};id.initializePlugins(this,r,t);for(var s in t)!(s in e)&&(e[s]=t[s]);_4(e);for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));this.nativeDraggable=e.forceFallback?!1:yV,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?nt(r,"pointerdown",this._onTapStart):(nt(r,"mousedown",this._onTapStart),nt(r,"touchstart",this._onTapStart)),this.nativeDraggable&&(nt(r,"dragover",this),nt(r,"dragenter",this)),Eh.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),jn(this,fV())}De.prototype={constructor:De,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(yo=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,ce):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,s=this.el,n=this.options,i=n.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(o||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=n.filter;if(OV(s),!ce&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||n.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Mc&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Fs(l,n.draggable,s,!1),!(l&&l.animated)&&jp!==l)){if(To=vs(l),Ic=vs(l,n.draggable),typeof u=="function"){if(u.call(this,e,l,this)){_r({sortable:t,rootEl:c,name:"filter",targetEl:l,toEl:s,fromEl:s}),Er("filter",t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(d){if(d=Fs(c,d.trim(),s,!1),d)return _r({sortable:t,rootEl:d,name:"filter",targetEl:l,fromEl:s,toEl:s}),Er("filter",t,{evt:e}),!0}),u)){i&&e.cancelable&&e.preventDefault();return}n.handle&&!Fs(c,n.handle,s,!1)||this._prepareDragStart(e,o,l)}}},_prepareDragStart:function(e,t,s){var n=this,i=n.el,a=n.options,o=i.ownerDocument,l;if(s&&!ce&&s.parentNode===i){var c=Nt(s);if(_t=i,ce=s,Lt=ce.parentNode,ea=ce.nextSibling,jp=s,tp=a.group,De.dragged=ce,Ki={target:ce,clientX:(t||e).clientX,clientY:(t||e).clientY},Nw=Ki.clientX-c.left,Vw=Ki.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ce.style["will-change"]="all",l=function(){if(Er("delayEnded",n,{evt:e}),De.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!Fw&&n.nativeDraggable&&(ce.draggable=!0),n._triggerDragStart(e,t),_r({sortable:n,name:"choose",originalEvent:e}),Yr(ce,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){d4(ce,u.trim(),Ug)}),nt(o,"dragover",Xi),nt(o,"mousemove",Xi),nt(o,"touchmove",Xi),nt(o,"mouseup",n._onDrop),nt(o,"touchend",n._onDrop),nt(o,"touchcancel",n._onDrop),Fw&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ce.draggable=!0),Er("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(nd||Yn))){if(De.eventCanceled){this._onDrop();return}nt(o,"mouseup",n._disableDelayedDrag),nt(o,"touchend",n._disableDelayedDrag),nt(o,"touchcancel",n._disableDelayedDrag),nt(o,"mousemove",n._delayedDragTouchMoveHandler),nt(o,"touchmove",n._delayedDragTouchMoveHandler),a.supportPointer&&nt(o,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(l,a.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ce&&Ug(ce),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Je(e,"mouseup",this._disableDelayedDrag),Je(e,"touchend",this._disableDelayedDrag),Je(e,"touchcancel",this._disableDelayedDrag),Je(e,"mousemove",this._delayedDragTouchMoveHandler),Je(e,"touchmove",this._delayedDragTouchMoveHandler),Je(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?nt(document,"pointermove",this._onTouchMove):t?nt(document,"touchmove",this._onTouchMove):nt(document,"mousemove",this._onTouchMove):(nt(ce,"dragend",this),nt(_t,"dragstart",this._onDragStart));try{document.selection?Np(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Po=!1,_t&&ce){Er("dragStarted",this,{evt:t}),this.nativeDraggable&&nt(document,"dragover",wV);var s=this.options;!e&&Yr(ce,s.dragClass,!1),Yr(ce,s.ghostClass,!0),De.active=this,e&&this._appendGhost(),_r({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ks){this._lastX=ks.clientX,this._lastY=ks.clientY,y4();for(var e=document.elementFromPoint(ks.clientX,ks.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ks.clientX,ks.clientY),e!==t);)t=e;if(ce.parentNode[ts]._isOutsideThisEl(e),t)do{if(t[ts]){var s=void 0;if(s=t[ts]._onDragOver({clientX:ks.clientX,clientY:ks.clientY,target:e,rootEl:t}),s&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);b4()}},_onTouchMove:function(e){if(Ki){var t=this.options,s=t.fallbackTolerance,n=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=je&&Fo(je,!0),o=je&&a&&a.a,l=je&&a&&a.d,c=sp&&ur&&Bw(ur),u=(i.clientX-Ki.clientX+n.x)/(o||1)+(c?c[0]-zg[0]:0)/(o||1),d=(i.clientY-Ki.clientY+n.y)/(l||1)+(c?c[1]-zg[1]:0)/(l||1);if(!De.active&&!Po){if(s&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<s)return;this._onDragStart(e,!0)}if(je){a?(a.e+=u-(Ng||0),a.f+=d-(Vg||0)):a={a:1,b:0,c:0,d:1,e:u,f:d};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");ke(je,"webkitTransform",p),ke(je,"mozTransform",p),ke(je,"msTransform",p),ke(je,"transform",p),Ng=u,Vg=d,ks=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!je){var e=this.options.fallbackOnBody?document.body:_t,t=Nt(ce,!0,sp,!0,e),s=this.options;if(sp){for(ur=e;ke(ur,"position")==="static"&&ke(ur,"transform")==="none"&&ur!==document;)ur=ur.parentNode;ur!==document.body&&ur!==document.documentElement?(ur===document&&(ur=mn()),t.top+=ur.scrollTop,t.left+=ur.scrollLeft):ur=mn(),zg=Bw(ur)}je=ce.cloneNode(!0),Yr(je,s.ghostClass,!1),Yr(je,s.fallbackClass,!0),Yr(je,s.dragClass,!0),ke(je,"transition",""),ke(je,"transform",""),ke(je,"box-sizing","border-box"),ke(je,"margin",0),ke(je,"top",t.top),ke(je,"left",t.left),ke(je,"width",t.width),ke(je,"height",t.height),ke(je,"opacity","0.8"),ke(je,"position",sp?"absolute":"fixed"),ke(je,"zIndex","100000"),ke(je,"pointerEvents","none"),De.ghost=je,e.appendChild(je),ke(je,"transform-origin",Nw/parseInt(je.style.width)*100+"% "+Vw/parseInt(je.style.height)*100+"%")}},_onDragStart:function(e,t){var s=this,n=e.dataTransfer,i=s.options;if(Er("dragStart",this,{evt:e}),De.eventCanceled){this._onDrop();return}Er("setupClone",this),De.eventCanceled||(St=f4(ce),St.removeAttribute("id"),St.draggable=!1,St.style["will-change"]="",this._hideClone(),Yr(St,this.options.chosenClass,!1),De.clone=St),s.cloneId=Np(function(){Er("clone",s),!De.eventCanceled&&(s.options.removeCloneOnHide||_t.insertBefore(St,ce),s._hideClone(),_r({sortable:s,name:"clone"}))}),!t&&Yr(ce,i.dragClass,!0),t?(Lh=!0,s._loopId=setInterval(s._emulateDragOver,50)):(Je(document,"mouseup",s._onDrop),Je(document,"touchend",s._onDrop),Je(document,"touchcancel",s._onDrop),n&&(n.effectAllowed="move",i.setData&&i.setData.call(s,n,ce)),nt(document,"drop",s),ke(ce,"transform","translateZ(0)")),Po=!0,s._dragStartId=Np(s._dragStarted.bind(s,t,e)),nt(document,"selectstart",s),wc=!0,Mc&&ke(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,s=e.target,n,i,a,o=this.options,l=o.group,c=De.active,u=tp===l,d=o.sort,p=rr||c,h,f=this,g=!1;if(Sv)return;function v(U,V){Er(U,f,bn({evt:e,isOwner:u,axis:h?"vertical":"horizontal",revert:a,dragRect:n,targetRect:i,canSort:d,fromSortable:p,target:s,completed:C,onMove:function(X,q){return np(_t,t,ce,n,X,Nt(X),e,q)},changed:x},V))}function y(){v("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function C(U){return v("dragOverCompleted",{insertion:U}),U&&(u?c._hideClone():c._showClone(f),f!==p&&(Yr(ce,rr?rr.options.ghostClass:c.options.ghostClass,!1),Yr(ce,o.ghostClass,!0)),rr!==f&&f!==De.active?rr=f:f===De.active&&rr&&(rr=null),p===f&&(f._ignoreWhileAnimating=s),f.animateAll(function(){v("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(s===ce&&!ce.animated||s===t&&!s.animated)&&(yo=null),!o.dragoverBubble&&!e.rootEl&&s!==document&&(ce.parentNode[ts]._isOutsideThisEl(e.target),!U&&Xi(e)),!o.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function x(){Jr=vs(ce),ci=vs(ce,o.draggable),_r({sortable:f,name:"change",toEl:t,newIndex:Jr,newDraggableIndex:ci,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),s=Fs(s,o.draggable,t,!0),v("dragOver"),De.eventCanceled)return g;if(ce.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||f._ignoreWhileAnimating===s)return C(!1);if(Lh=!1,c&&!o.disabled&&(u?d||(a=Lt!==_t):rr===this||(this.lastPutMode=tp.checkPull(this,c,ce,e))&&l.checkPut(this,c,ce,e))){if(h=this._getDirection(e,s)==="vertical",n=Nt(ce),v("dragOverValid"),De.eventCanceled)return g;if(a)return Lt=_t,y(),this._hideClone(),v("revert"),De.eventCanceled||(ea?_t.insertBefore(ce,ea):_t.appendChild(ce)),C(!0);var $=jy(t,o.draggable);if(!$||PV(e,h,this)&&!$.animated){if($===ce)return C(!1);if($&&t===e.target&&(s=$),s&&(i=Nt(s)),np(_t,t,ce,n,s,i,e,!!s)!==!1)return y(),$&&$.nextSibling?t.insertBefore(ce,$.nextSibling):t.appendChild(ce),Lt=t,x(),C(!0)}else if($&&CV(e,h,this)){var L=Uo(t,0,o,!0);if(L===ce)return C(!1);if(s=L,i=Nt(s),np(_t,t,ce,n,s,i,e,!1)!==!1)return y(),t.insertBefore(ce,L),Lt=t,x(),C(!0)}else if(s.parentNode===t){i=Nt(s);var G=0,K,le=ce.parentNode!==t,ue=!bV(ce.animated&&ce.toRect||n,s.animated&&s.toRect||i,h),ne=h?"top":"left",fe=jw(s,"top","top")||jw(ce,"top","top"),k=fe?fe.scrollTop:void 0;yo!==s&&(K=i[ne],Hc=!1,rp=!ue&&o.invertSwap||le),G=AV(e,s,i,h,ue?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,rp,yo===s);var T;if(G!==0){var P=vs(ce);do P-=G,T=Lt.children[P];while(T&&(ke(T,"display")==="none"||T===je))}if(G===0||T===s)return C(!1);yo=s,Fc=G;var O=s.nextElementSibling,j=!1;j=G===1;var N=np(_t,t,ce,n,s,i,e,j);if(N!==!1)return(N===1||N===-1)&&(j=N===1),Sv=!0,setTimeout(xV,30),y(),j&&!O?t.appendChild(ce):s.parentNode.insertBefore(ce,j?O:s),fe&&h4(fe,0,k-fe.scrollTop),Lt=ce.parentNode,K!==void 0&&!rp&&(Bp=Math.abs(K-Nt(s)[ne])),x(),C(!0)}if(t.contains(ce))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Je(document,"mousemove",this._onTouchMove),Je(document,"touchmove",this._onTouchMove),Je(document,"pointermove",this._onTouchMove),Je(document,"dragover",Xi),Je(document,"mousemove",Xi),Je(document,"touchmove",Xi)},_offUpEvents:function(){var e=this.el.ownerDocument;Je(e,"mouseup",this._onDrop),Je(e,"touchend",this._onDrop),Je(e,"pointerup",this._onDrop),Je(e,"touchcancel",this._onDrop),Je(document,"selectstart",this)},_onDrop:function(e){var t=this.el,s=this.options;if(Jr=vs(ce),ci=vs(ce,s.draggable),Er("drop",this,{evt:e}),Lt=ce&&ce.parentNode,Jr=vs(ce),ci=vs(ce,s.draggable),De.eventCanceled){this._nulling();return}Po=!1,rp=!1,Hc=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),xv(this.cloneId),xv(this._dragStartId),this.nativeDraggable&&(Je(document,"drop",this),Je(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Mc&&ke(document.body,"user-select",""),ke(ce,"transform",""),e&&(wc&&(e.cancelable&&e.preventDefault(),!s.dropBubble&&e.stopPropagation()),je&&je.parentNode&&je.parentNode.removeChild(je),(_t===Lt||rr&&rr.lastPutMode!=="clone")&&St&&St.parentNode&&St.parentNode.removeChild(St),ce&&(this.nativeDraggable&&Je(ce,"dragend",this),Ug(ce),ce.style["will-change"]="",wc&&!Po&&Yr(ce,rr?rr.options.ghostClass:this.options.ghostClass,!1),Yr(ce,this.options.chosenClass,!1),_r({sortable:this,name:"unchoose",toEl:Lt,newIndex:null,newDraggableIndex:null,originalEvent:e}),_t!==Lt?(Jr>=0&&(_r({rootEl:Lt,name:"add",toEl:Lt,fromEl:_t,originalEvent:e}),_r({sortable:this,name:"remove",toEl:Lt,originalEvent:e}),_r({rootEl:Lt,name:"sort",toEl:Lt,fromEl:_t,originalEvent:e}),_r({sortable:this,name:"sort",toEl:Lt,originalEvent:e})),rr&&rr.save()):Jr!==To&&Jr>=0&&(_r({sortable:this,name:"update",toEl:Lt,originalEvent:e}),_r({sortable:this,name:"sort",toEl:Lt,originalEvent:e})),De.active&&((Jr==null||Jr===-1)&&(Jr=To,ci=Ic),_r({sortable:this,name:"end",toEl:Lt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Er("nulling",this),_t=ce=Lt=je=ea=St=jp=di=Ki=ks=wc=Jr=ci=To=Ic=yo=Fc=rr=tp=De.dragged=De.ghost=De.clone=De.active=null,Oh.forEach(function(e){e.checked=!0}),Oh.length=Ng=Vg=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ce&&(this._onDragOver(e),SV(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,s=this.el.children,n=0,i=s.length,a=this.options;n<i;n++)t=s[n],Fs(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||EV(t));return e},sort:function(e,t){var s={},n=this.el;this.toArray().forEach(function(i,a){var o=n.children[a];Fs(o,this.options.draggable,n,!1)&&(s[i]=o)},this),t&&this.captureAnimationState(),e.forEach(function(i){s[i]&&(n.removeChild(s[i]),n.appendChild(s[i]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Fs(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var s=this.options;if(t===void 0)return s[e];var n=id.modifyOption(this,e,t);typeof n<"u"?s[e]=n:s[e]=t,e==="group"&&_4(s)},destroy:function(){Er("destroy",this);var e=this.el;e[ts]=null,Je(e,"mousedown",this._onTapStart),Je(e,"touchstart",this._onTapStart),Je(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Je(e,"dragover",this),Je(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Eh.splice(Eh.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!di){if(Er("hideClone",this),De.eventCanceled)return;ke(St,"display","none"),this.options.removeCloneOnHide&&St.parentNode&&St.parentNode.removeChild(St),di=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(di){if(Er("showClone",this),De.eventCanceled)return;ce.parentNode==_t&&!this.options.group.revertClone?_t.insertBefore(St,ce):ea?_t.insertBefore(St,ea):_t.appendChild(St),this.options.group.revertClone&&this.animate(ce,St),ke(St,"display",""),di=!1}}};function SV(r){r.dataTransfer&&(r.dataTransfer.dropEffect="move"),r.cancelable&&r.preventDefault()}function np(r,e,t,s,n,i,a,o){var l,c=r[ts],u=c.options.onMove,d;return window.CustomEvent&&!Yn&&!nd?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=r,l.dragged=t,l.draggedRect=s,l.related=n||e,l.relatedRect=i||Nt(e),l.willInsertAfter=o,l.originalEvent=a,r.dispatchEvent(l),u&&(d=u.call(c,l,a)),d}function Ug(r){r.draggable=!1}function xV(){Sv=!1}function CV(r,e,t){var s=Nt(Uo(t.el,0,t.options,!0)),n=m4(t.el,t.options,je),i=10;return e?r.clientX<n.left-i||r.clientY<s.top&&r.clientX<s.right:r.clientY<n.top-i||r.clientY<s.bottom&&r.clientX<s.left}function PV(r,e,t){var s=Nt(jy(t.el,t.options.draggable)),n=m4(t.el,t.options,je),i=10;return e?r.clientX>n.right+i||r.clientY>s.bottom&&r.clientX>s.left:r.clientY>n.bottom+i||r.clientX>s.right&&r.clientY>s.top}function AV(r,e,t,s,n,i,a,o){var l=s?r.clientY:r.clientX,c=s?t.height:t.width,u=s?t.top:t.left,d=s?t.bottom:t.right,p=!1;if(!a){if(o&&Bp<c*n){if(!Hc&&(Fc===1?l>u+c*i/2:l<d-c*i/2)&&(Hc=!0),Hc)p=!0;else if(Fc===1?l<u+Bp:l>d-Bp)return-Fc}else if(l>u+c*(1-n)/2&&l<d-c*(1-n)/2)return LV(e)}return p=p||a,p&&(l<u+c*i/2||l>d-c*i/2)?l>u+c/2?1:-1:0}function LV(r){return vs(ce)<vs(r)?1:-1}function EV(r){for(var e=r.tagName+r.className+r.src+r.href+r.textContent,t=e.length,s=0;t--;)s+=e.charCodeAt(t);return s.toString(36)}function OV(r){Oh.length=0;for(var e=r.getElementsByTagName("input"),t=e.length;t--;){var s=e[t];s.checked&&Oh.push(s)}}function Np(r){return setTimeout(r,0)}function xv(r){return clearTimeout(r)}dm&&nt(document,"touchmove",function(r){(De.active||Po)&&r.cancelable&&r.preventDefault()});De.utils={on:nt,off:Je,css:ke,find:d4,is:function(e,t){return!!Fs(e,t,e,!1)},extend:pV,throttle:p4,closest:Fs,toggleClass:Yr,clone:f4,index:vs,nextTick:Np,cancelNextTick:xv,detectDirection:v4,getChild:Uo};De.get=function(r){return r[ts]};De.mount=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(s){if(!s.prototype||!s.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(s));s.utils&&(De.utils=bn(bn({},De.utils),s.utils)),id.mount(s)})};De.create=function(r,e){return new De(r,e)};De.version=cV;var Bt=[],Sc,Cv,Pv=!1,Wg,Gg,Th,xc;function TV(){function r(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return r.prototype={dragStarted:function(t){var s=t.originalEvent;this.sortable.nativeDraggable?nt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?nt(document,"pointermove",this._handleFallbackAutoScroll):s.touches?nt(document,"touchmove",this._handleFallbackAutoScroll):nt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var s=t.originalEvent;!this.options.dragOverBubble&&!s.rootEl&&this._handleAutoScroll(s)},drop:function(){this.sortable.nativeDraggable?Je(document,"dragover",this._handleAutoScroll):(Je(document,"pointermove",this._handleFallbackAutoScroll),Je(document,"touchmove",this._handleFallbackAutoScroll),Je(document,"mousemove",this._handleFallbackAutoScroll)),Uw(),Vp(),hV()},nulling:function(){Th=Cv=Sc=Pv=xc=Wg=Gg=null,Bt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,s){var n=this,i=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(i,a);if(Th=t,s||this.options.forceAutoScrollFallback||nd||Yn||Mc){qg(t,this.options,o,s);var l=mi(o,!0);Pv&&(!xc||i!==Wg||a!==Gg)&&(xc&&Uw(),xc=setInterval(function(){var c=mi(document.elementFromPoint(i,a),!0);c!==l&&(l=c,Vp()),qg(t,n.options,c,s)},10),Wg=i,Gg=a)}else{if(!this.options.bubbleScroll||mi(o,!0)===mn()){Vp();return}qg(t,this.options,mi(o,!1),!1)}}},jn(r,{pluginName:"scroll",initializeByDefault:!0})}function Vp(){Bt.forEach(function(r){clearInterval(r.pid)}),Bt=[]}function Uw(){clearInterval(xc)}var qg=p4(function(r,e,t,s){if(e.scroll){var n=(r.touches?r.touches[0]:r).clientX,i=(r.touches?r.touches[0]:r).clientY,a=e.scrollSensitivity,o=e.scrollSpeed,l=mn(),c=!1,u;Cv!==t&&(Cv=t,Vp(),Sc=e.scroll,u=e.scrollFn,Sc===!0&&(Sc=mi(t,!0)));var d=0,p=Sc;do{var h=p,f=Nt(h),g=f.top,v=f.bottom,y=f.left,C=f.right,x=f.width,$=f.height,L=void 0,G=void 0,K=h.scrollWidth,le=h.scrollHeight,ue=ke(h),ne=h.scrollLeft,fe=h.scrollTop;h===l?(L=x<K&&(ue.overflowX==="auto"||ue.overflowX==="scroll"||ue.overflowX==="visible"),G=$<le&&(ue.overflowY==="auto"||ue.overflowY==="scroll"||ue.overflowY==="visible")):(L=x<K&&(ue.overflowX==="auto"||ue.overflowX==="scroll"),G=$<le&&(ue.overflowY==="auto"||ue.overflowY==="scroll"));var k=L&&(Math.abs(C-n)<=a&&ne+x<K)-(Math.abs(y-n)<=a&&!!ne),T=G&&(Math.abs(v-i)<=a&&fe+$<le)-(Math.abs(g-i)<=a&&!!fe);if(!Bt[d])for(var P=0;P<=d;P++)Bt[P]||(Bt[P]={});(Bt[d].vx!=k||Bt[d].vy!=T||Bt[d].el!==h)&&(Bt[d].el=h,Bt[d].vx=k,Bt[d].vy=T,clearInterval(Bt[d].pid),(k!=0||T!=0)&&(c=!0,Bt[d].pid=setInterval((function(){s&&this.layer===0&&De.active._onTouchMove(Th);var O=Bt[this.layer].vy?Bt[this.layer].vy*o:0,j=Bt[this.layer].vx?Bt[this.layer].vx*o:0;typeof u=="function"&&u.call(De.dragged.parentNode[ts],j,O,r,Th,Bt[this.layer].el)!=="continue"||h4(Bt[this.layer].el,j,O)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==l&&(p=mi(p,!1)));Pv=c}},30),$4=function(e){var t=e.originalEvent,s=e.putSortable,n=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,o=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var c=s||i;o();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(u.clientX,u.clientY);l(),c&&!c.el.contains(d)&&(a("spill"),this.onSpill({dragEl:n,putSortable:s}))}};function By(){}By.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,s=e.putSortable;this.sortable.captureAnimationState(),s&&s.captureAnimationState();var n=Uo(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(t,n):this.sortable.el.appendChild(t),this.sortable.animateAll(),s&&s.animateAll()},drop:$4};jn(By,{pluginName:"revertOnSpill"});function Ny(){}Ny.prototype={onSpill:function(e){var t=e.dragEl,s=e.putSortable,n=s||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:$4};jn(Ny,{pluginName:"removeOnSpill"});De.mount(new TV);De.mount(Ny,By);var kV=Object.defineProperty,DV=Object.getOwnPropertyDescriptor,wl=(r,e,t,s)=>{for(var n=s>1?void 0:s?DV(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&&kV(e,t,n),n};const Cc=Symbol("instanceKey"),Ww=r=>Cc in r;let Pi=class extends b{constructor(){super(...arguments);m(this,"items");m(this,"options");m(this,"target");m(this,"sortable",null)}onOptions(e){if(this.sortable)for(const t in e){const s=t;this.sortable.option(s,e[s])}}onTarget(){this.dettach(),this.attach()}handleStart(e){this.$emit("start",e)}handleAdd(e){const{oldIndex:t,newIndex:s,from:n}=e;if(t===void 0||s===void 0||!Ww(n)||n[Cc]===null)return;const i=n[Cc],a=[...this.items];a.splice(s,0,i.items[t]),this.items=a,this.$emit("add",e)}handleRemove(e){const{oldIndex:t}=e;if(t===void 0)return;const s=[...this.items];s.splice(t,1),this.items=s,this.$emit("remove",e)}handleUpdate(e){const{oldIndex:t,newIndex:s}=e;if(t===void 0||s===void 0)return;const n=[...this.items],i=n.splice(t,1)[0];n.splice(s,0,i),this.items=n,this.$emit("update",e)}handleEnd(e){this.$emit("end",e)}attach(){const e=this.target&&this.$el.querySelector(this.target)||this.$el;e[Cc]=this;const t={...this.options,onStart:this.handleStart,onAdd:this.handleAdd,onRemove:this.handleRemove,onUpdate:this.handleUpdate,onEnd:this.handleEnd};this.sortable=De.create(e,t)}dettach(){var t,s;const e=(t=this.sortable)==null?void 0:t.el;e&&Ww(e)&&(e[Cc]=null),(s=this.sortable)==null||s.destroy(),this.sortable=null}mounted(){this.attach()}unmounted(){this.dettach()}};wl([Fe({type:Array,default:()=>[]})],Pi.prototype,"items",2);wl([w({type:Object})],Pi.prototype,"options",2);wl([w({type:String})],Pi.prototype,"target",2);wl([Ae("options")],Pi.prototype,"onOptions",1);wl([Ae("target")],Pi.prototype,"onTarget",1);Pi=wl([A({})],Pi);function E(r,e,t,s,n,i,a,o){var l=typeof r=="function"?r.options:r;return e&&(l.render=e,l.staticRenderFns=t,l._compiled=!0),i&&(l._scopeId="data-v-"+i),{exports:r,options:l}}var MV=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e._t("default")],2)},RV=[],IV=E(Pi,MV,RV,!1,null,null);const pm=IV.exports,Ke=b.extend().extend({name:"themeable",provide(){return{theme:this.themeableProvide}},inject:{theme:{default:{isDark:!1}}},props:{dark:{type:Boolean,default:null},light:{type:Boolean,default:null}},data(){return{themeableProvide:{isDark:!1}}},computed:{appIsDark(){return this.$vuetify.theme.dark||!1},isDark(){return this.dark===!0?!0:this.light===!0?!1:this.theme.isDark},themeClasses(){return{"theme--dark":this.isDark,"theme--light":!this.isDark}},rootIsDark(){return this.dark===!0?!0:this.light===!0?!1:this.appIsDark},rootThemeClasses(){return{"theme--dark":this.rootIsDark,"theme--light":!this.rootIsDark}}},watch:{isDark:{handler(r,e){r!==e&&(this.themeableProvide.isDark=this.isDark)},immediate:!0}}});function w4(r){const e={...r.props,...r.injections},t=Ke.options.computed.isDark.call(e);return Ke.options.computed.themeClasses.call({isDark:t})}function be(...r){return b.extend({mixins:r})}function Gr(r,e="div",t){return b.extend({name:t||r.replace(/__/g,"-"),functional:!0,props:{tag:{type:String,default:e}},render(s,{data:n,props:i,children:a}){return n.staticClass=`${r} ${n.staticClass||""}`.trim(),s(i.tag,n,a)}})}function S4(r,e,t,s=!1){const n=i=>{t(i),r.removeEventListener(e,n,s)};r.addEventListener(e,n,s)}let jc=!1;try{if(typeof window<"u"){const r=Object.defineProperty({},"passive",{get:()=>{jc=!0}});window.addEventListener("testListener",r,r),window.removeEventListener("testListener",r,r)}}catch(r){console.warn(r)}function FV(r,e,t,s){r.addEventListener(e,t,jc?s:!1)}function Vy(r,e,t){const s=e.length-1;if(s<0)return r===void 0?t:r;for(let n=0;n<s;n++){if(r==null)return t;r=r[e[n]]}return r==null||r[e[s]]===void 0?t:r[e[s]]}function Wt(r,e){if(r===e)return!0;if(r instanceof Date&&e instanceof Date&&r.getTime()!==e.getTime()||r!==Object(r)||e!==Object(e))return!1;const t=Object.keys(r);return t.length!==Object.keys(e).length?!1:t.every(s=>Wt(r[s],e[s]))}function at(r,e,t){return r==null||!e||typeof e!="string"?t:r[e]!==void 0?r[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),Vy(r,e.split("."),t))}function Rn(r,e,t){if(e==null)return r===void 0?t:r;if(r!==Object(r))return t===void 0?r:t;if(typeof e=="string")return at(r,e,t);if(Array.isArray(e))return Vy(r,e,t);if(typeof e!="function")return t;const s=e(r,t);return typeof s>"u"?t:s}function HV(r){return Array.from({length:r},(e,t)=>t)}function Bc(r){if(!r||r.nodeType!==Node.ELEMENT_NODE)return 0;const e=+window.getComputedStyle(r).getPropertyValue("z-index");return e||Bc(r.parentNode)}function jV(r,e){const t={};for(let s=0;s<e.length;s++){const n=e[s];typeof r[n]<"u"&&(t[n]=r[n])}return t}function ge(r,e="px"){if(!(r==null||r===""))return isNaN(+r)?String(r):`${Number(r)}${e}`}function Av(r){return(r||"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Gw(r){return r!==null&&typeof r=="object"}const Pe=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16});function BV(r,e){const t=r.$vuetify.icons.component;if(e.startsWith("$")){const s=`$vuetify.icons.values.${e.split("$").pop().split(".").pop()}`,n=at(r,s,e);if(typeof n=="string")e=n;else return n}return t==null?e:{component:t,props:{icon:e}}}function hm(r){return Object.keys(r)}const NV=/-(\w)/g,x4=r=>r.replace(NV,(e,t)=>t?t.toUpperCase():"");function fm(r){return r.charAt(0).toUpperCase()+r.slice(1)}function VV(r,e,t){const s=e[0],n=[];let i;for(let a=0;a<r.length;a++){const o=r[a],l=at(o,s,null);i!==l&&(i=l,n.push({name:l??"",items:[]})),n[n.length-1].items.push(o)}return n}function $r(r){return r!=null?Array.isArray(r)?r:[r]:[]}function zV(r,e,t,s,n){if(e===null||!e.length)return r;const i=new Intl.Collator(s,{sensitivity:"accent",usage:"sort"});return r.sort((a,o)=>{for(let l=0;l<e.length;l++){const c=e[l];let u=at(a,c),d=at(o,c);if(t[l]&&([u,d]=[d,u]),n&&n[c]){const p=n[c](u,d);if(!p)continue;return p}if(!(u===null&&d===null)){if(u instanceof Date&&d instanceof Date)return u.getTime()-d.getTime();if([u,d]=[u,d].map(p=>(p||"").toString().toLocaleLowerCase()),u!==d)return!isNaN(u)&&!isNaN(d)?Number(u)-Number(d):i.compare(u,d)}}return 0})}function kh(r,e,t){return r!=null&&e!=null&&typeof r!="boolean"&&r.toString().toLocaleLowerCase().indexOf(e.toLocaleLowerCase())!==-1}function UV(r,e){return!e||(e=e.toString().toLowerCase(),e.trim()==="")?r:r.filter(t=>Object.keys(t).some(s=>kh(at(t,s),e)))}function C4(r,e,t){if(r.$slots.hasOwnProperty(e)&&r.$scopedSlots.hasOwnProperty(e)&&r.$scopedSlots[e].name)return"v-slot";if(r.$slots.hasOwnProperty(e))return"normal";if(r.$scopedSlots.hasOwnProperty(e))return"scoped"}function zp(r,e){return Object.keys(e).filter(t=>t.startsWith(r)).reduce((t,s)=>(t[s.replace(r,"")]=e[s],t),{})}function me(r,e="default",t,s=!1){const n=Av(e);if(r.$scopedSlots.hasOwnProperty(e))return r.$scopedSlots[e](t instanceof Function?t():t);if(r.$scopedSlots.hasOwnProperty(n))return r.$scopedSlots[n](t instanceof Function?t():t);if(r.$slots.hasOwnProperty(e)&&(!t||s))return r.$slots[e];if(r.$slots.hasOwnProperty(n)&&(!t||s))return r.$slots[n]}function WV(r,e=0,t=1){return Math.max(e,Math.min(t,r))}function P4(r){return r?Object.keys(r).reduce((e,t)=>(e[x4(t)]=r[t],e),{}):{}}function Nc(r={},e={}){for(const t in e){const s=r[t],n=e[t];if(Gw(s)&&Gw(n)){r[t]=Nc(s,n);continue}r[t]=n}return r}function qw(r,e){return Array(r).fill(e)}function A4(r){if(r.composedPath)return r.composedPath();const e=[];let t=r.target;for(;t;){if(e.push(t),t.tagName==="HTML")return e.push(document),e.push(window),e;t=t.parentElement}return e}const Zw=be(Ke).extend({name:"v-app",props:{dark:{type:Boolean,default:void 0},id:{type:String,default:"app"},light:{type:Boolean,default:void 0}},computed:{isDark(){return this.$vuetify.theme.dark}},beforeCreate(){if(!this.$vuetify||this.$vuetify===this.$root)throw new Error("Vuetify is not properly initialized, see https://v2.vuetifyjs.com/getting-started/quick-start#bootstrapping-the-vuetify-object")},render(r){const e=r("div",{staticClass:"v-application--wrap"},me(this));return r("div",{staticClass:"v-application",class:{"v-application--is-rtl":this.$vuetify.rtl,"v-application--is-ltr":!this.$vuetify.rtl,...this.themeClasses},attrs:{"data-app":!0},domProps:{id:this.id}},[e])}});function Yw(r){return function(e,t){for(const s in t)Object.prototype.hasOwnProperty.call(e,s)||this.$delete(this.$data[r],s);for(const s in e)this.$set(this.$data[r],s,e[s])}}const Sl=b.extend({data:()=>({attrs$:{},listeners$:{}}),created(){this.$watch("$attrs",Yw("attrs$"),{immediate:!0}),this.$watch("$listeners",Yw("listeners$"),{immediate:!0})}});function Lv(r,e={}){if(Lv.installed)return;Lv.installed=!0,b!==r&&Ns(`Multiple instances of Vue detected
|
||
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.offsetTop,e=e.offsetParent;return t}function az(r){const e=O4(r);if(e)return e;throw typeof r=="string"?new Error(`Container element "${r}" not found.`):new TypeError(`Container must be a Selector/HTMLElement/VueComponent, received ${E4(r)} instead.`)}function E4(r){return r==null?r:r.constructor.name}function O4(r){return typeof r=="string"?document.querySelector(r):r&&r._isVue?r.$el:r instanceof HTMLElement?r:null}function xa(r,e={}){const t={container:document.scrollingElement||document.body||document.documentElement,duration:500,offset:0,easing:"easeInOutCubic",appOffset:!0,...e},s=az(t.container);if(t.appOffset&&xa.framework.application){const l=s.classList.contains("v-navigation-drawer"),c=s.classList.contains("v-navigation-drawer--clipped"),{bar:u,top:d}=xa.framework.application;t.offset+=u,(!l||c)&&(t.offset+=d)}const n=performance.now();let i;typeof r=="number"?i=Zg(r)-t.offset:i=Zg(r)-Zg(s)-t.offset;const a=s.scrollTop;if(i===a)return Promise.resolve(i);const o=typeof t.easing=="function"?t.easing:iz[t.easing];if(!o)throw new TypeError(`Easing function "${t.easing}" not found.`);return new Promise(l=>requestAnimationFrame(function c(u){const d=u-n,p=Math.abs(t.duration?Math.min(d/t.duration,1):1);s.scrollTop=Math.floor(a+(i-a)*o(p));const f=(s===document.body?document.documentElement.clientHeight:s.clientHeight)+s.scrollTop>=s.scrollHeight;if(p===1||i>s.scrollTop&&f)return l(i);requestAnimationFrame(c)}))}xa.framework={};xa.init=()=>{};class T4 extends qa{constructor(){return super(),xa}}T4.property="goTo";const oz={complete:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",cancel:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",close:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",delete:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",clear:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",success:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",info:"M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2ZM13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",warning:"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",error:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",prev:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",next:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",checkboxOn:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",checkboxOff:"M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",checkboxIndeterminate:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",delimiter:"M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",sort:"M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",expand:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",menu:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",subgroup:"M7,10L12,15L17,10H7Z",dropdown:"M7,10L12,15L17,10H7Z",radioOn:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z",radioOff:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",edit:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",ratingEmpty:"M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",ratingFull:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",ratingHalf:"M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",loading:"M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12",first:"M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z",last:"M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z",unfold:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",file:"M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z",plus:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",minus:"M19,13H5V11H19V13Z"},lz={complete:"check",cancel:"cancel",close:"close",delete:"cancel",clear:"clear",success:"check_circle",info:"info",warning:"priority_high",error:"warning",prev:"chevron_left",next:"chevron_right",checkboxOn:"check_box",checkboxOff:"check_box_outline_blank",checkboxIndeterminate:"indeterminate_check_box",delimiter:"fiber_manual_record",sort:"arrow_upward",expand:"keyboard_arrow_down",menu:"menu",subgroup:"arrow_drop_down",dropdown:"arrow_drop_down",radioOn:"radio_button_checked",radioOff:"radio_button_unchecked",edit:"edit",ratingEmpty:"star_border",ratingFull:"star",ratingHalf:"star_half",loading:"cached",first:"first_page",last:"last_page",unfold:"unfold_more",file:"attach_file",plus:"add",minus:"remove"},cz={complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-exclamation",error:"mdi-alert",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sort:"mdi-arrow-up",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus"},k4={complete:"fas fa-check",cancel:"fas fa-times-circle",close:"fas fa-times",delete:"fas fa-times-circle",clear:"fas fa-times-circle",success:"fas fa-check-circle",info:"fas fa-info-circle",warning:"fas fa-exclamation-circle",error:"fas fa-exclamation-triangle",prev:"fas fa-chevron-left",next:"fas fa-chevron-right",checkboxOn:"fas fa-check-square",checkboxOff:"far fa-square",checkboxIndeterminate:"fas fa-minus-square",delimiter:"fas fa-circle",sort:"fas fa-sort-up",expand:"fas fa-chevron-down",menu:"fas fa-bars",subgroup:"fas fa-caret-down",dropdown:"fas fa-caret-down",radioOn:"far fa-dot-circle",radioOff:"far fa-circle",edit:"fas fa-edit",ratingEmpty:"far fa-star",ratingFull:"fas fa-star",ratingHalf:"fas fa-star-half",loading:"fas fa-sync",first:"fas fa-step-backward",last:"fas fa-step-forward",unfold:"fas fa-arrows-alt-v",file:"fas fa-paperclip",plus:"fas fa-plus",minus:"fas fa-minus"},uz={complete:"fa fa-check",cancel:"fa fa-times-circle",close:"fa fa-times",delete:"fa fa-times-circle",clear:"fa fa-times-circle",success:"fa fa-check-circle",info:"fa fa-info-circle",warning:"fa fa-exclamation",error:"fa fa-exclamation-triangle",prev:"fa fa-chevron-left",next:"fa fa-chevron-right",checkboxOn:"fa fa-check-square",checkboxOff:"fa fa-square-o",checkboxIndeterminate:"fa fa-minus-square",delimiter:"fa fa-circle",sort:"fa fa-sort-up",expand:"fa fa-chevron-down",menu:"fa fa-bars",subgroup:"fa fa-caret-down",dropdown:"fa fa-caret-down",radioOn:"fa fa-dot-circle-o",radioOff:"fa fa-circle-o",edit:"fa fa-pencil",ratingEmpty:"fa fa-star-o",ratingFull:"fa fa-star",ratingHalf:"fa fa-star-half-o",loading:"fa fa-refresh",first:"fa fa-step-backward",last:"fa fa-step-forward",unfold:"fa fa-angle-double-down",file:"fa fa-paperclip",plus:"fa fa-plus",minus:"fa fa-minus"};function dz(r,e){const t={};for(const s in e)t[s]={component:r,props:{icon:e[s].split(" fa-")}};return t}const pz=dz("font-awesome-icon",k4),hz=Object.freeze({mdiSvg:oz,md:lz,mdi:cz,fa:k4,fa4:uz,faSvg:pz});let D4=class M4 extends qa{constructor(e){super();const{iconfont:t,values:s,component:n}=e[M4.property];this.component=n,this.iconfont=t,this.values=Nc(hz[t],s)}};D4.property="icons";const R4="$vuetify.",Kw=Symbol("Lang fallback");function I4(r,e,t=!1,s){const n=e.replace(R4,"");let i=at(r,n,Kw);return i===Kw&&(t?(Ns(`Translation key "${n}" not found in fallback`),i=e):(xr(`Translation key "${n}" not found, falling back to default`),i=I4(s,e,!0,s))),i}class gm extends qa{constructor(e){super(),this.defaultLocale="en";const{current:t,locales:s,t:n}=e[gm.property];this.current=t,this.locales=s,this.translator=n||this.defaultTranslator}currentLocale(e){const t=this.locales[this.current],s=this.locales[this.defaultLocale];return I4(t,e,!1,s)}t(e,...t){return e.startsWith(R4)?this.translator(e,...t):this.replace(e,t)}defaultTranslator(e,...t){return this.replace(this.currentLocale(e),t)}replace(e,t){return e.replace(/\{(\d+)\}/g,(s,n)=>String(t[+n]))}}gm.property="lang";const fz={badge:"Badge",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},datePicker:{itemsSelected:"{0} selected",nextMonthAriaLabel:"Next month",nextYearAriaLabel:"Next year",prevMonthAriaLabel:"Previous month",prevYearAriaLabel:"Previous year"},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{wrapper:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Goto Page {0}",currentPage:"Current Page, Page {0}"}},rating:{ariaLabel:{icon:"Rating {0} of {1}"}},loading:"Loading..."},mz={breakpoint:{mobileBreakpoint:1264,scrollBarWidth:16,thresholds:{xs:600,sm:960,md:1280,lg:1920}},icons:{iconfont:"mdi",values:{}},lang:{current:"en",locales:{en:fz},t:void 0},rtl:!1,theme:{dark:!1,default:"light",disable:!1,options:{cspNonce:void 0,customProperties:void 0,minifyTheme:void 0,themeCache:void 0,variations:!0},themes:{light:{primary:"#1976D2",secondary:"#424242",accent:"#82B1FF",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},dark:{primary:"#2196F3",secondary:"#424242",accent:"#FF4081",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"}}}};class F4 extends qa{constructor(e,t){super();const s=Nc({},mz),{userPreset:n}=t,{preset:i={},...a}=n;i.preset!=null&&xr("Global presets do not support the **preset** option, it can be safely omitted"),t.preset=Nc(Nc(s,i),a)}}F4.property="presets";const gz=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],vz=r=>r<=.0031308?r*12.92:1.055*r**(1/2.4)-.055,_z=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],yz=r=>r<=.04045?r/12.92:((r+.055)/1.055)**2.4;function H4(r){const e=Array(3),t=vz,s=gz;for(let n=0;n<3;++n)e[n]=Math.round(WV(t(s[n][0]*r[0]+s[n][1]*r[1]+s[n][2]*r[2]))*255);return(e[0]<<16)+(e[1]<<8)+(e[2]<<0)}function j4(r){const e=[0,0,0],t=yz,s=_z,n=t((r>>16&255)/255),i=t((r>>8&255)/255),a=t((r>>0&255)/255);for(let o=0;o<3;++o)e[o]=s[o][0]*n+s[o][1]*i+s[o][2]*a;return e}function Xw(r){return!!r&&!!r.match(/^(#|var\(--|(rgb|hsl)a?\()/)}function Ev(r){let e;if(typeof r=="number")e=r;else if(typeof r=="string"){let t=r[0]==="#"?r.substring(1):r;t.length===3&&(t=t.split("").map(s=>s+s).join("")),t.length!==6&&xr(`'${r}' is not a valid rgb color`),e=parseInt(t,16)}else throw new TypeError(`Colors can only be numbers or strings, recieved ${r==null?r:r.constructor.name} instead`);return e<0?(xr(`Colors cannot be negative: '${r}'`),e=0):(e>16777215||isNaN(e))&&(xr(`'${r}' is not a valid rgb color`),e=16777215),e}function Vc(r){let e=r.toString(16);return e.length<6&&(e="0".repeat(6-e.length)+e),"#"+e}function bz(r){return Vc(Ev(r))}const Dh=.20689655172413793,$z=r=>r>Dh**3?Math.cbrt(r):r/(3*Dh**2)+4/29,wz=r=>r>Dh?r**3:3*Dh**2*(r-4/29);function B4(r){const e=$z,t=e(r[1]);return[116*t-16,500*(e(r[0]/.95047)-t),200*(t-e(r[2]/1.08883))]}function N4(r){const e=wz,t=(r[0]+16)/116;return[e(t+r[1]/500)*.95047,e(t),e(t-r[2]/200)*1.08883]}function V4(r,e=!1,t=!0){const{anchor:s,...n}=r,i=Object.keys(n),a={};for(let o=0;o<i.length;++o){const l=i[o],c=r[l];c!=null&&(t?e?(l==="base"||l.startsWith("lighten")||l.startsWith("darken"))&&(a[l]=bz(c)):typeof c=="object"?a[l]=V4(c,!0,t):a[l]=Pz(l,Ev(c)):a[l]={base:Vc(Ev(c))})}return e||(a.anchor=s||a.base||a.primary.base),a}const Sz=(r,e)=>`
|
||
.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;e.$_alreadyWarned.push(r)}return`[Vuetify] ${r}`+(e?Tz(e):"")}}function xr(r,e,t){const s=z4(r,e);s!=null&&console.warn(s)}function Ns(r,e,t){const s=z4(r,e);s!=null&&console.error(s)}function U4(r,e,t,s){xr(`[UPGRADE] '${r}' is deprecated, use '${e}' instead.`,t)}function qs(r,e,t,s){Ns(`[BREAKING] '${r}' has been removed, use '${e}' instead. For more information, see the upgrade guide https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0#user-content-upgrade-guide`,t)}function xl(r,e,t){xr(`[REMOVED] '${r}' has been removed. You can safely omit it.`,e)}const Ez=/(?:^|[-_])(\w)/g,Oz=r=>r.replace(Ez,e=>e.toUpperCase()).replace(/[-_]/g,"");function Kg(r,e){if(r.$root===r)return"<Root>";const t=typeof r=="function"&&r.cid!=null?r.options:r._isVue?r.$options||r.constructor.options:r||{};let s=t.name||t._componentTag;const n=t.__file;if(!s&&n){const i=n.match(/([^/\\]+)\.vue$/);s=i&&i[1]}return(s?`<${Oz(s)}>`:"<Anonymous>")+(n&&e!==!1?` at ${n}`:"")}function Tz(r){if(r._isVue&&r.$parent){const e=[];let t=0;for(;r;){if(e.length>0){const s=e[e.length-1];if(s.constructor===r.constructor){t++,r=r.$parent;continue}else t>0&&(e[e.length-1]=[s,t],t=0)}e.push(r),r=r.$parent}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":arguments[e][t]&&(r[t]=Z4(r[t],arguments[e][t]));break;case"staticClass":if(!arguments[e][t])break;r[t]===void 0&&(r[t]=""),r[t]&&(r[t]+=" "),r[t]+=arguments[e][t].trim();break;case"on":case"nativeOn":arguments[e][t]&&(r[t]=K4(r[t],arguments[e][t]));break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":if(!arguments[e][t])break;r[t]||(r[t]={}),r[t]={...arguments[e][t],...r[t]};break;default:r[t]||(r[t]=arguments[e][t])}return r}function Z4(r,e){return r?e?(r=$r(typeof r=="string"?Qw(r):r),r.concat(typeof e=="string"?Qw(e):e)):r:e}function Y4(r,e){return e?r&&r?$r(r).concat(e):e:r}function K4(...r){if(!r[0])return r[1];if(!r[1])return r[0];const e={};for(let t=2;t--;){const s=r[t];for(const n in s)s[n]&&(e[n]?e[n]=[].concat(s[n],e[n]):e[n]=s[n])}return e}const eS=typeof window<"u"&&"IntersectionObserver"in window,X4=be(Xg,Ke).extend({name:"v-img",directives:{intersect:ou},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc(){return this.src&&typeof this.src=="object"?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];const r=[],e=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&r.push(`linear-gradient(${this.gradient})`),e&&r.push(`url("${e}")`);const t=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:r.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[t]):t}},watch:{src(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted(){this.init()},methods:{init(r,e,t){if(!(eS&&!t&&!this.eager)){if(this.normalisedSrc.lazySrc){const s=new Image;s.src=this.normalisedSrc.lazySrc,this.pollForSize(s,null)}this.normalisedSrc.src&&this.loadImage()}},onLoad(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src),this.image&&(this.normalisedSrc.src.endsWith(".svg")||this.normalisedSrc.src.startsWith("data:image/svg+xml"))&&(this.image.naturalHeight&&this.image.naturalWidth?(this.naturalWidth=this.image.naturalWidth,this.calculatedAspectRatio=this.image.naturalWidth/this.image.naturalHeight):this.calculatedAspectRatio=1)},onError(){this.hasError=!0,this.$emit("error",this.src)},getSrc(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage(){const r=new Image;this.image=r,r.onload=()=>{r.decode?r.decode().catch(e=>{xr(`Failed to decode image, trying to render anyway
|
||
|
||
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"||"handleEvent"in n?n:n.handler,o=s?r:e.arg?document.querySelector(e.arg):window;o&&(o.addEventListener("scroll",a,i),r._onScroll=Object(r._onScroll),r._onScroll[t.context._uid]={handler:a,options:i,target:s?void 0:o})}function Mz(r,e,t){var s;if(!(!((s=r._onScroll)===null||s===void 0)&&s[t.context._uid]))return;const{handler:n,options:i,target:a=r}=r._onScroll[t.context._uid];a.removeEventListener("scroll",n,i),delete r._onScroll[t.context._uid]}const Uy={inserted:Dz,unbind:Mz},tS={absolute:Boolean,bottom:Boolean,fixed:Boolean,left:Boolean,right:Boolean,top:Boolean};function Cl(r=[]){return b.extend({name:"positionable",props:r.length?jV(tS,r):tS})}const Rz=Cl();function Wy(r,e=[]){return be(Cl(["absolute","fixed"])).extend({name:"applicationable",props:{app:Boolean},computed:{applicationProperty(){return r}},watch:{app(t,s){s?this.removeApplication(!0):this.callUpdate()},applicationProperty(t,s){this.$vuetify.application.unregister(this._uid,s)}},activated(){this.callUpdate()},created(){for(let t=0,s=e.length;t<s;t++)this.$watch(e[t],this.callUpdate);this.callUpdate()},mounted(){this.callUpdate()},deactivated(){this.removeApplication()},destroyed(){this.removeApplication()},methods:{callUpdate(){this.app&&this.$vuetify.application.register(this._uid,this.applicationProperty,this.updateApplication())},removeApplication(t=!1){!t&&!this.app||this.$vuetify.application.unregister(this._uid,this.applicationProperty)},updateApplication:()=>0}})}function Mh(r){if(typeof r.getRootNode!="function"){for(;r.parentNode;)r=r.parentNode;return r!==document?null:document}const e=r.getRootNode();return e!==document&&e.getRootNode({composed:!0})!==document?null:e}function Iz(){return!0}function J4(r,e,t){if(!r||Q4(r,t)===!1)return!1;const s=Mh(e);if(typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&s.host===r.target)return!1;const n=(typeof t.value=="object"&&t.value.include||(()=>[]))();return n.push(e),!n.some(i=>i.contains(r.target))}function Q4(r,e){return(typeof e.value=="object"&&e.value.closeConditional||Iz)(r)}function Fz(r,e,t){const s=typeof t.value=="function"?t.value:t.value.handler;e._clickOutside.lastMousedownWasOutside&&J4(r,e,t)&&setTimeout(()=>{Q4(r,t)&&s&&s(r)},0)}function rS(r,e){const t=Mh(r);e(document),typeof ShadowRoot<"u"&&t instanceof ShadowRoot&&e(t)}const ad={inserted(r,e,t){const s=i=>Fz(i,r,e),n=i=>{r._clickOutside.lastMousedownWasOutside=J4(i,r,e)};rS(r,i=>{i.addEventListener("click",s,!0),i.addEventListener("mousedown",n,!0)}),r._clickOutside||(r._clickOutside={lastMousedownWasOutside:!0}),r._clickOutside[t.context._uid]={onClick:s,onMousedown:n}},unbind(r,e,t){r._clickOutside&&(rS(r,s=>{var n;if(!s||!(!((n=r._clickOutside)===null||n===void 0)&&n[t.context._uid]))return;const{onClick:i,onMousedown:a}=r._clickOutside[t.context._uid];s.removeEventListener("click",i,!0),s.removeEventListener("mousedown",a,!0)}),delete r._clickOutside[t.context._uid])}};function Hz(r,e,t){const s=e.value,n=e.options||{passive:!0};window.addEventListener("resize",s,n),r._onResize=Object(r._onResize),r._onResize[t.context._uid]={callback:s,options:n},(!e.modifiers||!e.modifiers.quiet)&&s()}function jz(r,e,t){var s;if(!(!((s=r._onResize)===null||s===void 0)&&s[t.context._uid]))return;const{callback:n,options:i}=r._onResize[t.context._uid];window.removeEventListener("resize",n,i),delete r._onResize[t.context._uid]}const od={inserted:Hz,unbind:jz},Bz=80;function sS(r,e){r.style.transform=e,r.style.webkitTransform=e}function Ov(r){return r.constructor.name==="TouchEvent"}function e6(r){return r.constructor.name==="KeyboardEvent"}const Nz=(r,e,t={})=>{let s=0,n=0;if(!e6(r)){const d=e.getBoundingClientRect(),p=Ov(r)?r.touches[r.touches.length-1]:r;s=p.clientX-d.left,n=p.clientY-d.top}let i=0,a=.3;e._ripple&&e._ripple.circle?(a=.15,i=e.clientWidth/2,i=t.center?i:i+Math.sqrt((s-i)**2+(n-i)**2)/4):i=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const o=`${(e.clientWidth-i*2)/2}px`,l=`${(e.clientHeight-i*2)/2}px`,c=t.center?o:`${s-i}px`,u=t.center?l:`${n-i}px`;return{radius:i,scale:a,x:c,y:u,centerX:o,centerY:l}},Rh={show(r,e,t={}){if(!e._ripple||!e._ripple.enabled)return;const s=document.createElement("span"),n=document.createElement("span");s.appendChild(n),s.className="v-ripple__container",t.class&&(s.className+=` ${t.class}`);const{radius:i,scale:a,x:o,y:l,centerX:c,centerY:u}=Nz(r,e,t),d=`${i*2}px`;n.className="v-ripple__animation",n.style.width=d,n.style.height=d,e.appendChild(s);const p=window.getComputedStyle(e);p&&p.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),n.classList.add("v-ripple__animation--enter"),n.classList.add("v-ripple__animation--visible"),sS(n,`translate(${o}, ${l}) scale3d(${a},${a},${a})`),n.dataset.activated=String(performance.now()),setTimeout(()=>{n.classList.remove("v-ripple__animation--enter"),n.classList.add("v-ripple__animation--in"),sS(n,`translate(${c}, ${u}) scale3d(1,1,1)`)},0)},hide(r){if(!r||!r._ripple||!r._ripple.enabled)return;const e=r.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const t=e[e.length-1];if(t.dataset.isHiding)return;t.dataset.isHiding="true";const s=performance.now()-Number(t.dataset.activated),n=Math.max(250-s,0);setTimeout(()=>{t.classList.remove("v-ripple__animation--in"),t.classList.add("v-ripple__animation--out"),setTimeout(()=>{var i;r.getElementsByClassName("v-ripple__animation").length===1&&r.dataset.previousPosition&&(r.style.position=r.dataset.previousPosition,delete r.dataset.previousPosition),((i=t.parentNode)===null||i===void 0?void 0:i.parentNode)===r&&r.removeChild(t.parentNode)},300)},n)}};function t6(r){return typeof r>"u"||!!r}function lu(r){const e={},t=r.currentTarget;if(!(!t||!t._ripple||t._ripple.touched||r.rippleStop)){if(r.rippleStop=!0,Ov(r))t._ripple.touched=!0,t._ripple.isTouch=!0;else if(t._ripple.isTouch)return;if(e.center=t._ripple.centered||e6(r),t._ripple.class&&(e.class=t._ripple.class),Ov(r)){if(t._ripple.showTimerCommit)return;t._ripple.showTimerCommit=()=>{Rh.show(r,t,e)},t._ripple.showTimer=window.setTimeout(()=>{t&&t._ripple&&t._ripple.showTimerCommit&&(t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null)},Bz)}else Rh.show(r,t,e)}}function rs(r){const e=r.currentTarget;if(!(!e||!e._ripple)){if(window.clearTimeout(e._ripple.showTimer),r.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=setTimeout(()=>{rs(r)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),Rh.hide(e)}}function r6(r){const e=r.currentTarget;!e||!e._ripple||(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let cu=!1;function s6(r){!cu&&(r.keyCode===Pe.enter||r.keyCode===Pe.space)&&(cu=!0,lu(r))}function n6(r){cu=!1,rs(r)}function i6(r){cu===!0&&(cu=!1,rs(r))}function a6(r,e,t){const s=t6(e.value);s||Rh.hide(r),r._ripple=r._ripple||{},r._ripple.enabled=s;const n=e.value||{};n.center&&(r._ripple.centered=!0),n.class&&(r._ripple.class=e.value.class),n.circle&&(r._ripple.circle=n.circle),s&&!t?(r.addEventListener("touchstart",lu,{passive:!0}),r.addEventListener("touchend",rs,{passive:!0}),r.addEventListener("touchmove",r6,{passive:!0}),r.addEventListener("touchcancel",rs),r.addEventListener("mousedown",lu),r.addEventListener("mouseup",rs),r.addEventListener("mouseleave",rs),r.addEventListener("keydown",s6),r.addEventListener("keyup",n6),r.addEventListener("blur",i6),r.addEventListener("dragstart",rs,{passive:!0})):!s&&t&&o6(r)}function o6(r){r.removeEventListener("mousedown",lu),r.removeEventListener("touchstart",lu),r.removeEventListener("touchend",rs),r.removeEventListener("touchmove",r6),r.removeEventListener("touchcancel",rs),r.removeEventListener("mouseup",rs),r.removeEventListener("mouseleave",rs),r.removeEventListener("keydown",s6),r.removeEventListener("keyup",n6),r.removeEventListener("dragstart",rs),r.removeEventListener("blur",i6)}function Vz(r,e,t){a6(r,e,!1)}function zz(r){delete r._ripple,o6(r)}function Uz(r,e){if(e.value===e.oldValue)return;const t=t6(e.oldValue);a6(r,e,t)}const os={bind:Vz,unbind:zz,update:Uz},Wz=r=>{const{touchstartX:e,touchendX:t,touchstartY:s,touchendY:n}=r,i=.5,a=16;r.offsetX=t-e,r.offsetY=n-s,Math.abs(r.offsetY)<i*Math.abs(r.offsetX)&&(r.left&&t<e-a&&r.left(r),r.right&&t>e+a&&r.right(r)),Math.abs(r.offsetX)<i*Math.abs(r.offsetY)&&(r.up&&n<s-a&&r.up(r),r.down&&n>s+a&&r.down(r))};function Gz(r,e){const t=r.changedTouches[0];e.touchstartX=t.clientX,e.touchstartY=t.clientY,e.start&&e.start(Object.assign(r,e))}function qz(r,e){const t=r.changedTouches[0];e.touchendX=t.clientX,e.touchendY=t.clientY,e.end&&e.end(Object.assign(r,e)),Wz(e)}function Zz(r,e){const t=r.changedTouches[0];e.touchmoveX=t.clientX,e.touchmoveY=t.clientY,e.move&&e.move(Object.assign(r,e))}function Yz(r){const e={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:r.left,right:r.right,up:r.up,down:r.down,start:r.start,move:r.move,end:r.end};return{touchstart:t=>Gz(t,e),touchend:t=>qz(t,e),touchmove:t=>Zz(t,e)}}function Kz(r,e,t){const s=e.value,n=s.parent?r.parentElement:r,i=s.options||{passive:!0};if(!n)return;const a=Yz(e.value);n._touchHandlers=Object(n._touchHandlers),n._touchHandlers[t.context._uid]=a,hm(a).forEach(o=>{n.addEventListener(o,a[o],i)})}function Xz(r,e,t){const s=e.value.parent?r.parentElement:r;if(!s||!s._touchHandlers)return;const n=s._touchHandlers[t.context._uid];hm(n).forEach(i=>{s.removeEventListener(i,n[i])}),delete s._touchHandlers[t.context._uid]}const ld={inserted:Kz,unbind:Xz},l6=b.extend({name:"scrollable",directives:{Scroll:Uy},props:{scrollTarget:String,scrollThreshold:[String,Number]},data:()=>({currentScroll:0,currentThreshold:0,isActive:!1,isScrollingUp:!1,previousScroll:0,savedScroll:0,target:null}),computed:{canScroll(){return typeof window<"u"},computedScrollThreshold(){return this.scrollThreshold?Number(this.scrollThreshold):300}},watch:{isScrollingUp(){this.savedScroll=this.savedScroll||this.currentScroll},isActive(){this.savedScroll=0}},mounted(){this.scrollTarget&&(this.target=document.querySelector(this.scrollTarget),this.target||xr(`Unable to locate element with identifier ${this.scrollTarget}`,this))},methods:{onScroll(){this.canScroll&&(this.previousScroll=this.currentScroll,this.currentScroll=this.target?this.target.scrollTop:window.pageYOffset,this.isScrollingUp=this.currentScroll<this.previousScroll,this.currentThreshold=Math.abs(this.currentScroll-this.computedScrollThreshold),this.$nextTick(()=>{Math.abs(this.currentScroll-this.savedScroll)>this.computedScrollThreshold&&this.thresholdMet()}))},thresholdMet(){}}}),cd=b.extend({name:"ssr-bootable",data:()=>({isBooted:!1}),mounted(){window.requestAnimationFrame(()=>{this.$el.setAttribute("data-booted","true"),this.isBooted=!0})}});function _m(r="value",e="input"){return b.extend({name:"toggleable",model:{prop:r,event:e},props:{[r]:{required:!1}},data(){return{isActive:!!this[r]}},watch:{[r](t){this.isActive=!!t},isActive(t){!!t!==this[r]&&this.$emit(e,t)}}})}const Jz=_m(),Ya=Jz,Qz=be(Gt,l6,cd,Ya,Wy("top",["clippedLeft","clippedRight","computedHeight","invertedScroll","isExtended","isProminent","value"])),eU=Qz.extend({name:"v-app-bar",directives:{Scroll:Uy},provide(){return{VAppBar:this}},props:{clippedLeft:Boolean,clippedRight:Boolean,collapseOnScroll:Boolean,elevateOnScroll:Boolean,fadeImgOnScroll:Boolean,hideOnScroll:Boolean,invertedScroll:Boolean,scrollOffScreen:Boolean,shrinkOnScroll:Boolean,value:{type:Boolean,default:!0}},data(){return{isActive:this.value}},computed:{applicationProperty(){return this.bottom?"bottom":"top"},canScroll(){return l6.options.computed.canScroll.call(this)&&(this.invertedScroll||this.elevateOnScroll||this.hideOnScroll||this.collapseOnScroll||this.isBooted||!this.value)},classes(){return{...Gt.options.computed.classes.call(this),"v-toolbar--collapse":this.collapse||this.collapseOnScroll,"v-app-bar":!0,"v-app-bar--clipped":this.clippedLeft||this.clippedRight,"v-app-bar--fade-img-on-scroll":this.fadeImgOnScroll,"v-app-bar--elevate-on-scroll":this.elevateOnScroll,"v-app-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-app-bar--hide-shadow":this.hideShadow,"v-app-bar--is-scrolled":this.currentScroll>0,"v-app-bar--shrink-on-scroll":this.shrinkOnScroll}},scrollRatio(){const r=this.computedScrollThreshold;return Math.max((r-this.currentScroll)/r,0)},computedContentHeight(){if(!this.shrinkOnScroll)return Gt.options.computed.computedContentHeight.call(this);const r=this.dense?48:56,e=this.computedOriginalHeight;return r+(e-r)*this.scrollRatio},computedFontSize(){if(!this.isProminent)return;const r=1.25;return r+(1.5-r)*this.scrollRatio},computedLeft(){return!this.app||this.clippedLeft?0:this.$vuetify.application.left},computedMarginTop(){return this.app?this.$vuetify.application.bar:0},computedOpacity(){if(this.fadeImgOnScroll)return this.scrollRatio},computedOriginalHeight(){let r=Gt.options.computed.computedContentHeight.call(this);return this.isExtended&&(r+=parseInt(this.extensionHeight)),r},computedRight(){return!this.app||this.clippedRight?0:this.$vuetify.application.right},computedScrollThreshold(){return this.scrollThreshold?Number(this.scrollThreshold):this.computedOriginalHeight-(this.dense?48:56)},computedTransform(){if(!this.canScroll||this.elevateOnScroll&&this.currentScroll===0&&this.isActive||this.isActive)return 0;const r=this.scrollOffScreen?this.computedHeight:this.computedContentHeight;return this.bottom?r:-r},hideShadow(){return this.elevateOnScroll&&this.isExtended?this.currentScroll<this.computedScrollThreshold:this.elevateOnScroll?this.currentScroll===0||this.computedTransform<0:(!this.isExtended||this.scrollOffScreen)&&this.computedTransform!==0},isCollapsed(){return this.collapseOnScroll?this.currentScroll>0:Gt.options.computed.isCollapsed.call(this)},isProminent(){return Gt.options.computed.isProminent.call(this)||this.shrinkOnScroll},styles(){return{...Gt.options.computed.styles.call(this),fontSize:ge(this.computedFontSize,"rem"),marginTop:ge(this.computedMarginTop),transform:`translateY(${ge(this.computedTransform)})`,left:ge(this.computedLeft),right:ge(this.computedRight)}}},watch:{canScroll:"onScroll",computedTransform(){!this.canScroll||!this.clippedLeft&&!this.clippedRight||this.callUpdate()},invertedScroll(r){this.isActive=!r||this.currentScroll!==0},hideOnScroll(r){this.isActive=!r||this.currentScroll<this.computedScrollThreshold}},created(){this.invertedScroll&&(this.isActive=!1)},methods:{genBackground(){const r=Gt.options.methods.genBackground.call(this);return r.data=this._b(r.data||{},r.tag,{style:{opacity:this.computedOpacity}}),r},updateApplication(){return this.invertedScroll?0:this.computedHeight+this.computedTransform},thresholdMet(){if(this.invertedScroll){this.isActive=this.currentScroll>this.computedScrollThreshold;return}this.hideOnScroll&&(this.isActive=this.isScrollingUp||this.currentScroll<this.computedScrollThreshold),!(this.currentThreshold<this.computedScrollThreshold)&&(this.savedScroll=this.currentScroll)}},render(r){const e=Gt.options.render.call(this,r);return e.data=e.data||{},this.canScroll&&(e.data.directives=e.data.directives||[],e.data.directives.push({arg:this.scrollTarget,name:"scroll",value:this.onScroll})),e}}),Gy=b.extend({name:"sizeable",props:{large:Boolean,small:Boolean,xLarge:Boolean,xSmall:Boolean},computed:{medium(){return!this.xSmall&&!this.small&&!this.large&&!this.xLarge},sizeableClasses(){return{"v-size--x-small":this.xSmall,"v-size--small":this.small,"v-size--default":this.medium,"v-size--large":this.large,"v-size--x-large":this.xLarge}}}});var Tv;(function(r){r.xSmall="12px",r.small="16px",r.default="24px",r.medium="28px",r.large="36px",r.xLarge="40px"})(Tv||(Tv={}));function tU(r){return["fas","far","fal","fab","fad","fak"].some(e=>r.includes(e))}function rU(r){return/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(r)&&/[\dz]$/i.test(r)&&r.length>4}const nS=be(Sl,ut,Gy,Ke).extend({name:"v-icon",props:{dense:Boolean,disabled:Boolean,left:Boolean,right:Boolean,size:[Number,String],tag:{type:String,required:!1,default:"i"}},computed:{medium(){return!1},hasClickListener(){return!!(this.listeners$.click||this.listeners$["!click"])}},methods:{getIcon(){let r="";return this.$slots.default&&(r=this.$slots.default[0].text.trim()),BV(this,r)},getSize(){const r={xSmall:this.xSmall,small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},e=hm(r).find(t=>r[t]);return e&&Tv[e]||ge(this.size)},getDefaultData(){return{staticClass:"v-icon notranslate",class:{"v-icon--disabled":this.disabled,"v-icon--left":this.left,"v-icon--link":this.hasClickListener,"v-icon--right":this.right,"v-icon--dense":this.dense},attrs:{"aria-hidden":!this.hasClickListener,disabled:this.hasClickListener&&this.disabled,type:this.hasClickListener?"button":void 0,...this.attrs$},on:this.listeners$}},getSvgWrapperData(){const r=this.getSize(),e={...this.getDefaultData(),style:r?{fontSize:r,height:r,width:r}:void 0};return this.applyColors(e),e},applyColors(r){r.class={...r.class,...this.themeClasses},this.setTextColor(this.color,r)},renderFontIcon(r,e){const t=[],s=this.getDefaultData();let n="material-icons";const i=r.indexOf("-"),a=i<=-1;a?t.push(r):(n=r.slice(0,i),tU(n)&&(n="")),s.class[n]=!0,s.class[r]=!a;const o=this.getSize();return o&&(s.style={fontSize:o}),this.applyColors(s),e(this.hasClickListener?"button":this.tag,s,t)},renderSvgIcon(r,e){const t={class:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":!0}},s=this.getSize();return s&&(t.style={fontSize:s,height:s,width:s}),e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e("svg",t,[e("path",{attrs:{d:r}})])])},renderSvgIconComponent(r,e){const t={class:{"v-icon__component":!0}},s=this.getSize();s&&(t.style={fontSize:s,height:s,width:s}),this.applyColors(t);const n=r.component;return t.props=r.props,t.nativeOn=t.on,e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e(n,t)])}},render(r){const e=this.getIcon();return typeof e=="string"?rU(e)?this.renderSvgIcon(e,r):this.renderFontIcon(e,r):this.renderSvgIconComponent(e,r)}}),S=b.extend({name:"v-icon",$_wrapperFor:nS,functional:!0,render(r,{data:e,children:t}){let s="";return e.domProps&&(s=e.domProps.textContent||e.domProps.innerHTML||s,delete e.domProps.textContent,delete e.domProps.innerHTML),r(nS,e,s?[s]:t)}}),Wo=ut.extend({name:"v-progress-circular",directives:{intersect:ou},props:{button:Boolean,indeterminate:Boolean,rotate:{type:[Number,String],default:0},size:{type:[Number,String],default:32},width:{type:[Number,String],default:4},value:{type:[Number,String],default:0}},data:()=>({radius:20,isVisible:!0}),computed:{calculatedSize(){return Number(this.size)+(this.button?8:0)},circumference(){return 2*Math.PI*this.radius},classes(){return{"v-progress-circular--visible":this.isVisible,"v-progress-circular--indeterminate":this.indeterminate,"v-progress-circular--button":this.button}},normalizedValue(){return this.value<0?0:this.value>100?100:parseFloat(this.value)},strokeDashArray(){return Math.round(this.circumference*1e3)/1e3},strokeDashOffset(){return(100-this.normalizedValue)/100*this.circumference+"px"},strokeWidth(){return Number(this.width)/+this.size*this.viewBoxSize*2},styles(){return{height:ge(this.calculatedSize),width:ge(this.calculatedSize)}},svgStyles(){return{transform:`rotate(${Number(this.rotate)}deg)`}},viewBoxSize(){return this.radius/(1-Number(this.width)/+this.size)}},methods:{genCircle(r,e){return this.$createElement("circle",{class:`v-progress-circular__${r}`,attrs:{fill:"transparent",cx:2*this.viewBoxSize,cy:2*this.viewBoxSize,r:this.radius,"stroke-width":this.strokeWidth,"stroke-dasharray":this.strokeDashArray,"stroke-dashoffset":e}})},genSvg(){const r=[this.indeterminate||this.genCircle("underlay",0),this.genCircle("overlay",this.strokeDashOffset)];return this.$createElement("svg",{style:this.svgStyles,attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:`${this.viewBoxSize} ${this.viewBoxSize} ${2*this.viewBoxSize} ${2*this.viewBoxSize}`}},r)},genInfo(){return this.$createElement("div",{staticClass:"v-progress-circular__info"},me(this))},onObserve(r,e,t){this.isVisible=t}},render(r){return r("div",this.setTextColor(this.color,{staticClass:"v-progress-circular",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:this.styles,on:this.$listeners}),[this.genSvg(),this.genInfo()])}});function iS(r,e){return()=>xr(`The ${r} component must be used inside a ${e}`)}function Ka(r,e,t){const s=e&&t?{register:iS(e,t),unregister:iS(e,t)}:null;return b.extend({name:"registrable-inject",inject:{[r]:{default:s}}})}function qy(r,e=!1){return b.extend({name:"registrable-provide",provide(){return{[r]:e?this:{register:this.register,unregister:this.unregister}}}})}function ji(r,e,t){return Ka(r,e,t).extend({name:"groupable",props:{activeClass:{type:String,default(){if(this[r])return this[r].activeClass}},disabled:Boolean},data(){return{isActive:!1}},computed:{groupClasses(){return this.activeClass?{[this.activeClass]:this.isActive}:{}}},created(){this[r]&&this[r].register(this)},beforeDestroy(){this[r]&&this[r].unregister(this)},methods:{toggle(s){if(this.disabled&&s){s.preventDefault();return}this.$emit("change")}}})}ji("itemGroup");const bs=b.extend({name:"routable",directives:{Ripple:os},props:{activeClass:String,append:Boolean,disabled:Boolean,exact:{type:Boolean,default:void 0},exactPath:Boolean,exactActiveClass:String,link:Boolean,href:[String,Object],to:[String,Object],nuxt:Boolean,replace:Boolean,ripple:{type:[Boolean,Object],default:null},tag:String,target:String},data:()=>({isActive:!1,proxyClass:""}),computed:{classes(){const r={};return this.to||(this.activeClass&&(r[this.activeClass]=this.isActive),this.proxyClass&&(r[this.proxyClass]=this.isActive)),r},computedRipple(){var r;return(r=this.ripple)!==null&&r!==void 0?r:!this.disabled&&this.isClickable},isClickable(){return this.disabled?!1:!!(this.isLink||this.$listeners.click||this.$listeners["!click"]||this.$attrs.tabindex)},isLink(){return this.to||this.href||this.link},styles:()=>({})},watch:{$route:"onRouteChange"},mounted(){this.onRouteChange()},methods:{generateRouteLink(){let r=this.exact,e;const t={attrs:{tabindex:"tabindex"in this.$attrs?this.$attrs.tabindex:void 0},class:this.classes,style:this.styles,props:{},directives:[{name:"ripple",value:this.computedRipple}],[this.to?"nativeOn":"on"]:{...this.$listeners,..."click"in this?{click:this.click}:void 0},ref:"link"};if(typeof this.exact>"u"&&(r=this.to==="/"||this.to===Object(this.to)&&this.to.path==="/"),this.to){let s=this.activeClass,n=this.exactActiveClass||s;this.proxyClass&&(s=`${s} ${this.proxyClass}`.trim(),n=`${n} ${this.proxyClass}`.trim()),e=this.nuxt?"nuxt-link":"router-link",Object.assign(t.props,{to:this.to,exact:r,exactPath:this.exactPath,activeClass:s,exactActiveClass:n,append:this.append,replace:this.replace})}else e=this.href&&"a"||this.tag||"div",e==="a"&&this.href&&(t.attrs.href=this.href);return this.target&&(t.attrs.target=this.target),{tag:e,data:t}},onRouteChange(){if(!this.to||!this.$refs.link||!this.$route)return;const r=`${this.activeClass||""} ${this.proxyClass||""}`.trim(),e=`${this.exactActiveClass||""} ${this.proxyClass||""}`.trim()||r,t="_vnode.data.class."+(this.exact?e:r);this.$nextTick(()=>{!at(this.$refs.link,t)===this.isActive&&this.toggle()})},toggle(){this.isActive=!this.isActive}}}),sU=be(Tt,bs,Rz,Gy,ji("btnToggle"),_m("inputValue")),Be=sU.extend().extend({name:"v-btn",props:{activeClass:{type:String,default(){return this.btnToggle?this.btnToggle.activeClass:""}},block:Boolean,depressed:Boolean,fab:Boolean,icon:Boolean,loading:Boolean,outlined:Boolean,plain:Boolean,retainFocusOnClick:Boolean,rounded:Boolean,tag:{type:String,default:"button"},text:Boolean,tile:Boolean,type:{type:String,default:"button"},value:null},data:()=>({proxyClass:"v-btn--active"}),computed:{classes(){return{"v-btn":!0,...bs.options.computed.classes.call(this),"v-btn--absolute":this.absolute,"v-btn--block":this.block,"v-btn--bottom":this.bottom,"v-btn--disabled":this.disabled,"v-btn--is-elevated":this.isElevated,"v-btn--fab":this.fab,"v-btn--fixed":this.fixed,"v-btn--has-bg":this.hasBg,"v-btn--icon":this.icon,"v-btn--left":this.left,"v-btn--loading":this.loading,"v-btn--outlined":this.outlined,"v-btn--plain":this.plain,"v-btn--right":this.right,"v-btn--round":this.isRound,"v-btn--rounded":this.rounded,"v-btn--router":this.to,"v-btn--text":this.text,"v-btn--tile":this.tile,"v-btn--top":this.top,...this.themeClasses,...this.groupClasses,...this.elevationClasses,...this.sizeableClasses}},computedElevation(){if(!this.disabled)return W4.options.computed.computedElevation.call(this)},computedRipple(){var r;const e=this.icon||this.fab?{circle:!0}:!0;return this.disabled?!1:(r=this.ripple)!==null&&r!==void 0?r:e},hasBg(){return!this.text&&!this.plain&&!this.outlined&&!this.icon},isElevated(){return!this.icon&&!this.text&&!this.outlined&&!this.depressed&&!this.disabled&&!this.plain&&(this.elevation==null||Number(this.elevation)>0)},isRound(){return!!(this.icon||this.fab)},styles(){return{...this.measurableStyles}}},created(){[["flat","text"],["outline","outlined"],["round","rounded"]].forEach(([e,t])=>{this.$attrs.hasOwnProperty(e)&&qs(e,t,this)})},methods:{click(r){!this.retainFocusOnClick&&!this.fab&&r.detail&&this.$el.blur(),this.$emit("click",r),this.btnToggle&&this.toggle()},genContent(){return this.$createElement("span",{staticClass:"v-btn__content"},me(this))},genLoader(){return this.$createElement("span",{class:"v-btn__loader"},me(this,"loader")||[this.$createElement(Wo,{props:{indeterminate:!0,size:23,width:2}})])}},render(r){const e=[this.genContent(),this.loading&&this.genLoader()],{tag:t,data:s}=this.generateRouteLink(),n=this.hasBg?this.setBackgroundColor:this.setTextColor;return t==="button"&&(s.attrs.type=this.type,s.attrs.disabled=this.disabled),s.attrs.value=["string","number"].includes(typeof this.value)?this.value:JSON.stringify(this.value),r(t,this.disabled?s:n(this.color,s),e)}}),c6=b.extend({name:"transitionable",props:{mode:String,origin:String,transition:String}}),Ai=be(Tt,Ya,c6).extend({name:"v-alert",props:{border:{type:String,validator(r){return["top","right","bottom","left"].includes(r)}},closeLabel:{type:String,default:"$vuetify.close"},coloredBorder:Boolean,dense:Boolean,dismissible:Boolean,closeIcon:{type:String,default:"$cancel"},icon:{default:"",type:[Boolean,String],validator(r){return typeof r=="string"||r===!1}},outlined:Boolean,prominent:Boolean,text:Boolean,type:{type:String,validator(r){return["info","error","success","warning"].includes(r)}},value:{type:Boolean,default:!0}},computed:{__cachedBorder(){if(!this.border)return null;let r={staticClass:"v-alert__border",class:{[`v-alert__border--${this.border}`]:!0}};return this.coloredBorder&&(r=this.setBackgroundColor(this.computedColor,r),r.class["v-alert__border--has-color"]=!0),this.$createElement("div",r)},__cachedDismissible(){if(!this.dismissible)return null;const r=this.iconColor;return this.$createElement(Be,{staticClass:"v-alert__dismissible",props:{color:r,icon:!0,small:!0},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:()=>this.isActive=!1}},[this.$createElement(S,{props:{color:r}},this.closeIcon)])},__cachedIcon(){return this.computedIcon?this.$createElement(S,{staticClass:"v-alert__icon",props:{color:this.iconColor}},this.computedIcon):null},classes(){const r={...Tt.options.computed.classes.call(this),"v-alert--border":!!this.border,"v-alert--dense":this.dense,"v-alert--outlined":this.outlined,"v-alert--prominent":this.prominent,"v-alert--text":this.text};return this.border&&(r[`v-alert--border-${this.border}`]=!0),r},computedColor(){return this.color||this.type},computedIcon(){return this.icon===!1?!1:typeof this.icon=="string"&&this.icon?this.icon:["error","info","success","warning"].includes(this.type)?`$${this.type}`:!1},hasColoredIcon(){return this.hasText||!!this.border&&this.coloredBorder},hasText(){return this.text||this.outlined},iconColor(){return this.hasColoredIcon?this.computedColor:void 0},isDark(){return this.type&&!this.coloredBorder&&!this.outlined?!0:Ke.options.computed.isDark.call(this)}},created(){this.$attrs.hasOwnProperty("outline")&&qs("outline","outlined",this)},methods:{genWrapper(){const r=[me(this,"prepend")||this.__cachedIcon,this.genContent(),this.__cachedBorder,me(this,"append"),this.$scopedSlots.close?this.$scopedSlots.close({toggle:this.toggle}):this.__cachedDismissible],e={staticClass:"v-alert__wrapper"};return this.$createElement("div",e,r)},genContent(){return this.$createElement("div",{staticClass:"v-alert__content"},me(this))},genAlert(){let r={staticClass:"v-alert",attrs:{role:"alert"},on:this.listeners$,class:this.classes,style:this.styles,directives:[{name:"show",value:this.isActive}]};return this.coloredBorder||(r=(this.hasText?this.setTextColor:this.setBackgroundColor)(this.computedColor,r)),this.$createElement("div",r,[this.genWrapper()])},toggle(){this.isActive=!this.isActive}},render(r){const e=this.genAlert();return this.transition?r("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},[e]):e}});function Jg(r=[],...e){return Array().concat(r,...e)}function Pl(r,e="top center 0",t){return{name:r,functional:!0,props:{group:{type:Boolean,default:!1},hideOnLeave:{type:Boolean,default:!1},leaveAbsolute:{type:Boolean,default:!1},mode:{type:String,default:t},origin:{type:String,default:e}},render(s,n){const i=`transition${n.props.group?"-group":""}`,a={props:{name:r,mode:n.props.mode},on:{beforeEnter(o){o.style.transformOrigin=n.props.origin,o.style.webkitTransformOrigin=n.props.origin}}};return n.props.leaveAbsolute&&(a.on.leave=Jg(a.on.leave,o=>{const{offsetTop:l,offsetLeft:c,offsetWidth:u,offsetHeight:d}=o;o._transitionInitialStyles={position:o.style.position,top:o.style.top,left:o.style.left,width:o.style.width,height:o.style.height},o.style.position="absolute",o.style.top=l+"px",o.style.left=c+"px",o.style.width=u+"px",o.style.height=d+"px"}),a.on.afterLeave=Jg(a.on.afterLeave,o=>{if(o&&o._transitionInitialStyles){const{position:l,top:c,left:u,width:d,height:p}=o._transitionInitialStyles;delete o._transitionInitialStyles,o.style.position=l||"",o.style.top=c||"",o.style.left=u||"",o.style.width=d||"",o.style.height=p||""}})),n.props.hideOnLeave&&(a.on.leave=Jg(a.on.leave,o=>{o.style.setProperty("display","none","important")})),s(i,as(n.data,a),n.children)}}}function u6(r,e,t="in-out"){return{name:r,functional:!0,props:{mode:{type:String,default:t}},render(s,n){return s("transition",as(n.data,{props:{name:r},on:e}),n.children)}}}function d6(r="",e=!1){const t=e?"width":"height",s=`offset${fm(t)}`;return{beforeEnter(a){a._parent=a.parentNode,a._initialStyle={transition:a.style.transition,overflow:a.style.overflow,[t]:a.style[t]}},enter(a){const o=a._initialStyle;a.style.setProperty("transition","none","important"),a.style.overflow="hidden";const l=`${a[s]}px`;a.style[t]="0",a.offsetHeight,a.style.transition=o.transition,r&&a._parent&&a._parent.classList.add(r),requestAnimationFrame(()=>{a.style[t]=l})},afterEnter:i,enterCancelled:i,leave(a){a._initialStyle={transition:"",overflow:a.style.overflow,[t]:a.style[t]},a.style.overflow="hidden",a.style[t]=`${a[s]}px`,a.offsetHeight,requestAnimationFrame(()=>a.style[t]="0")},afterLeave:n,leaveCancelled:n};function n(a){r&&a._parent&&a._parent.classList.remove(r),i(a)}function i(a){const o=a._initialStyle[t];a.style.overflow=a._initialStyle.overflow,o!=null&&(a.style[t]=o),delete a._initialStyle}}const nU=Pl("tab-transition"),iU=Pl("tab-reverse-transition"),aU=Pl("fab-transition","center center","out-in"),Al=Pl("fade-transition"),oU=Pl("scale-transition"),lU=Pl("slide-x-transition"),zc=u6("expand-transition",d6()),cU=u6("expand-x-transition",d6("",!0)),hr=be(ut,Gy,bs,Ke,ji("chipGroup"),_m("inputValue")).extend({name:"v-chip",props:{active:{type:Boolean,default:!0},activeClass:{type:String,default(){return this.chipGroup?this.chipGroup.activeClass:""}},close:Boolean,closeIcon:{type:String,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},disabled:Boolean,draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:Boolean,outlined:Boolean,pill:Boolean,tag:{type:String,default:"span"},textColor:String,value:null},data:()=>({proxyClass:"v-chip--active"}),computed:{classes(){return{"v-chip":!0,...bs.options.computed.classes.call(this),"v-chip--clickable":this.isClickable,"v-chip--disabled":this.disabled,"v-chip--draggable":this.draggable,"v-chip--label":this.label,"v-chip--link":this.isLink,"v-chip--no-color":!this.color,"v-chip--outlined":this.outlined,"v-chip--pill":this.pill,"v-chip--removable":this.hasClose,...this.themeClasses,...this.sizeableClasses,...this.groupClasses}},hasClose(){return!!this.close},isClickable(){return!!(bs.options.computed.isClickable.call(this)||this.chipGroup)}},created(){[["outline","outlined"],["selected","input-value"],["value","active"],["@input","@active.sync"]].forEach(([e,t])=>{this.$attrs.hasOwnProperty(e)&&qs(e,t,this)})},methods:{click(r){this.$emit("click",r),this.chipGroup&&this.toggle()},genFilter(){const r=[];return this.isActive&&r.push(this.$createElement(S,{staticClass:"v-chip__filter",props:{left:!0}},this.filterIcon)),this.$createElement(cU,r)},genClose(){return this.$createElement(S,{staticClass:"v-chip__close",props:{right:!0,size:18},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:r=>{r.stopPropagation(),r.preventDefault(),this.$emit("click:close"),this.$emit("update:active",!1)}}},this.closeIcon)},genContent(){return this.$createElement("span",{staticClass:"v-chip__content"},[this.filter&&this.genFilter(),me(this),this.hasClose&&this.genClose()])}},render(r){const e=[this.genContent()];let{tag:t,data:s}=this.generateRouteLink();s.attrs={...s.attrs,draggable:this.draggable?"true":void 0,tabindex:this.chipGroup&&!this.disabled?0:s.attrs.tabindex},s.directives.push({name:"show",value:this.active}),s=this.setBackgroundColor(this.color,s);const n=this.textColor||this.outlined&&this.color;return r(t,this.setTextColor(n,s),e)}}),p6=Ke.extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark(){return this.root?this.rootIsDark:Ke.options.computed.isDark.call(this)}},render(){return this.$slots.default&&this.$slots.default.find(r=>!r.isComment&&r.text!==" ")}}),Zy=b.extend().extend({name:"delayable",props:{openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0}},data:()=>({openTimeout:void 0,closeTimeout:void 0}),methods:{clearDelay(){clearTimeout(this.openTimeout),clearTimeout(this.closeTimeout)},runDelay(r,e){this.clearDelay();const t=parseInt(this[`${r}Delay`],10);this[`${r}Timeout`]=setTimeout(e||(()=>{this.isActive={open:!0,close:!1}[r]}),t)}}}),uU=be(Zy,Ya),ud=uU.extend({name:"activatable",props:{activator:{default:null,validator:r=>["string","object"].includes(typeof r)},disabled:Boolean,internalActivator:Boolean,openOnClick:{type:Boolean,default:!0},openOnHover:Boolean,openOnFocus:Boolean},data:()=>({activatorElement:null,activatorNode:[],events:["click","mouseenter","mouseleave","focus"],listeners:{}}),watch:{activator:"resetActivator",openOnFocus:"resetActivator",openOnHover:"resetActivator"},mounted(){const r=C4(this,"activator");r&&["v-slot","normal"].includes(r)&&Ns(`The activator slot must be bound, try '<template v-slot:activator="{ on }"><v-btn v-on="on">'`,this),this.addActivatorEvents()},beforeDestroy(){this.removeActivatorEvents()},methods:{addActivatorEvents(){if(!this.activator||this.disabled||!this.getActivator())return;this.listeners=this.genActivatorListeners();const r=Object.keys(this.listeners);for(const e of r)this.getActivator().addEventListener(e,this.listeners[e])},genActivator(){const r=me(this,"activator",Object.assign(this.getValueProxy(),{on:this.genActivatorListeners(),attrs:this.genActivatorAttributes()}))||[];return this.activatorNode=r,r},genActivatorAttributes(){return{role:this.openOnClick&&!this.openOnHover?"button":void 0,"aria-haspopup":!0,"aria-expanded":String(this.isActive)}},genActivatorListeners(){if(this.disabled)return{};const r={};return this.openOnHover?(r.mouseenter=e=>{this.getActivator(e),this.runDelay("open")},r.mouseleave=e=>{this.getActivator(e),this.runDelay("close")}):this.openOnClick&&(r.click=e=>{const t=this.getActivator(e);t&&t.focus(),e.stopPropagation(),this.isActive=!this.isActive}),this.openOnFocus&&(r.focus=e=>{this.getActivator(e),e.stopPropagation(),this.isActive=!this.isActive}),r},getActivator(r){if(this.activatorElement)return this.activatorElement;let e=null;if(this.activator){const t=this.internalActivator?this.$el:document;typeof this.activator=="string"?e=t.querySelector(this.activator):this.activator.$el?e=this.activator.$el:e=this.activator}else if(this.activatorNode.length===1||this.activatorNode.length&&!r){const t=this.activatorNode[0].componentInstance;t&&t.$options.mixins&&t.$options.mixins.some(s=>s.options&&["activatable","menuable"].includes(s.options.name))?e=t.getActivator():e=this.activatorNode[0].elm}else r&&(e=r.currentTarget||r.target);return this.activatorElement=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,this.activatorElement},getContentSlot(){return me(this,"default",this.getValueProxy(),!0)},getValueProxy(){const r=this;return{get value(){return r.isActive},set value(e){r.isActive=e}}},removeActivatorEvents(){if(!this.activator||!this.activatorElement)return;const r=Object.keys(this.listeners);for(const e of r)this.activatorElement.removeEventListener(e,this.listeners[e]);this.listeners={}},resetActivator(){this.removeActivatorEvents(),this.activatorElement=null,this.getActivator(),this.addActivatorEvents()}}});function h6(r){const e=[];for(let t=0;t<r.length;t++){const s=r[t];s.isActive&&s.isDependent?e.push(s):e.push(...h6(s.$children))}return e}const dd=be().extend({name:"dependent",data(){return{closeDependents:!0,isActive:!1,isDependent:!0}},watch:{isActive(r){if(r)return;const e=this.getOpenDependents();for(let t=0;t<e.length;t++)e[t].isActive=!1}},methods:{getOpenDependents(){return this.closeDependents?h6(this.$children):[]},getOpenDependentElements(){const r=[],e=this.getOpenDependents();for(let t=0;t<e.length;t++)r.push(...e[t].getClickableDependentElements());return r},getClickableDependentElements(){const r=[this.$el];return this.$refs.content&&r.push(this.$refs.content),this.overlay&&r.push(this.overlay.$el),r.push(...this.getOpenDependentElements()),r}}}),f6=b.extend().extend({name:"stackable",data(){return{stackElement:null,stackExclude:null,stackMinZIndex:0,isActive:!1}},computed:{activeZIndex(){if(typeof window>"u")return 0;const r=this.stackElement||this.$refs.content,e=this.isActive?this.getMaxZIndex(this.stackExclude||[r])+2:Bc(r);return e==null?e:parseInt(e)}},methods:{getMaxZIndex(r=[]){const e=this.$el,t=[this.stackMinZIndex,Bc(e)],s=[...document.getElementsByClassName("v-menu__content--active"),...document.getElementsByClassName("v-dialog__content--active")];for(let n=0;n<s.length;n++)r.includes(s[n])||t.push(Bc(s[n]));return Math.max(...t)}}}),ym=b.extend().extend({name:"bootable",props:{eager:Boolean},data:()=>({isBooted:!1}),computed:{hasContent(){return this.isBooted||this.eager||this.isActive}},watch:{isActive(){this.isBooted=!0}},created(){"lazy"in this.$attrs&&xl("lazy",this)},methods:{showLazyContent(r){return this.hasContent&&r?r():[this.$createElement()]}}});function dU(r){const e=typeof r;return e==="boolean"||e==="string"?!0:r.nodeType===Node.ELEMENT_NODE}function aS(r){r.forEach(e=>{e.elm&&e.elm.parentNode&&e.elm.parentNode.removeChild(e.elm)})}const m6=be(ym).extend({name:"detachable",props:{attach:{default:!1,validator:dU},contentClass:{type:String,default:""}},data:()=>({activatorNode:null,hasDetached:!1}),watch:{attach(){this.hasDetached=!1,this.initDetach()},hasContent(){this.$nextTick(this.initDetach)}},beforeMount(){this.$nextTick(()=>{this.activatorNode&&(Array.isArray(this.activatorNode)?this.activatorNode:[this.activatorNode]).forEach(e=>{if(!e.elm||!this.$el.parentNode)return;const t=this.$el===this.$el.parentNode.firstChild?this.$el:this.$el.nextSibling;this.$el.parentNode.insertBefore(e.elm,t)})})},mounted(){this.hasContent&&this.initDetach()},deactivated(){this.isActive=!1},beforeDestroy(){this.$refs.content&&this.$refs.content.parentNode&&this.$refs.content.parentNode.removeChild(this.$refs.content)},destroyed(){if(this.activatorNode){const r=Array.isArray(this.activatorNode)?this.activatorNode:[this.activatorNode];if(this.$el.isConnected){const e=new MutationObserver(t=>{t.some(s=>Array.from(s.removedNodes).includes(this.$el))&&(e.disconnect(),aS(r))});e.observe(this.$el.parentNode,{subtree:!1,childList:!0})}else aS(r)}},methods:{getScopeIdAttrs(){const r=at(this.$vnode,"context.$options._scopeId");return r&&{[r]:""}},initDetach(){if(this._isDestroyed||!this.$refs.content||this.hasDetached||this.attach===""||this.attach===!0||this.attach==="attach")return;let r;if(this.attach===!1?r=document.querySelector("[data-app]"):typeof this.attach=="string"?r=document.querySelector(this.attach):r=this.attach,!r){xr(`Unable to locate target ${this.attach||"[data-app]"}`,this);return}r.appendChild(this.$refs.content),this.hasDetached=!0}}}),pU=be(f6,Cl(["top","right","bottom","left","absolute"]),ud,m6),Yy=pU.extend().extend({name:"menuable",props:{allowOverflow:Boolean,light:Boolean,dark:Boolean,maxWidth:{type:[Number,String],default:"auto"},minWidth:[Number,String],nudgeBottom:{type:[Number,String],default:0},nudgeLeft:{type:[Number,String],default:0},nudgeRight:{type:[Number,String],default:0},nudgeTop:{type:[Number,String],default:0},nudgeWidth:{type:[Number,String],default:0},offsetOverflow:Boolean,positionX:{type:Number,default:null},positionY:{type:Number,default:null},zIndex:{type:[Number,String],default:null}},data:()=>({activatorNode:[],absoluteX:0,absoluteY:0,activatedBy:null,activatorFixed:!1,dimensions:{activator:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0,offsetLeft:0},content:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0}},relativeYOffset:0,hasJustFocused:!1,hasWindow:!1,inputActivator:!1,isContentActive:!1,pageWidth:0,pageYOffset:0,stackClass:"v-menu__content--active",stackMinZIndex:6}),computed:{computedLeft(){const r=this.dimensions.activator,e=this.dimensions.content,t=(this.attach!==!1?r.offsetLeft:r.left)||0,s=Math.max(r.width,e.width);let n=0;if(n+=t,(this.left||this.$vuetify.rtl&&!this.right)&&(n-=s-r.width),this.offsetX){const i=isNaN(Number(this.maxWidth))?r.width:Math.min(r.width,Number(this.maxWidth));n+=this.left?-i:r.width}return this.nudgeLeft&&(n-=parseInt(this.nudgeLeft)),this.nudgeRight&&(n+=parseInt(this.nudgeRight)),n},computedTop(){const r=this.dimensions.activator,e=this.dimensions.content;let t=0;return this.top&&(t+=r.height-e.height),this.attach!==!1?t+=r.offsetTop:t+=r.top+this.pageYOffset,this.offsetY&&(t+=this.top?-r.height:r.height),this.nudgeTop&&(t-=parseInt(this.nudgeTop)),this.nudgeBottom&&(t+=parseInt(this.nudgeBottom)),t},hasActivator(){return!!this.$slots.activator||!!this.$scopedSlots.activator||!!this.activator||!!this.inputActivator},absoluteYOffset(){return this.pageYOffset-this.relativeYOffset}},watch:{disabled(r){r&&this.callDeactivate()},isActive(r){this.disabled||(r?this.callActivate():this.callDeactivate())},positionX:"updateDimensions",positionY:"updateDimensions"},beforeMount(){this.hasWindow=typeof window<"u",this.hasWindow&&window.addEventListener("resize",this.updateDimensions,!1)},beforeDestroy(){this.hasWindow&&window.removeEventListener("resize",this.updateDimensions,!1)},methods:{absolutePosition(){return{offsetTop:this.positionY||this.absoluteY,offsetLeft:this.positionX||this.absoluteX,scrollHeight:0,top:this.positionY||this.absoluteY,bottom:this.positionY||this.absoluteY,left:this.positionX||this.absoluteX,right:this.positionX||this.absoluteX,height:0,width:0}},activate(){},calcLeft(r){return ge(this.attach!==!1?this.computedLeft:this.calcXOverflow(this.computedLeft,r))},calcTop(){return ge(this.attach!==!1?this.computedTop:this.calcYOverflow(this.computedTop))},calcXOverflow(r,e){const t=r+e-this.pageWidth+12;return(!this.left||this.right)&&t>0?r=Math.max(r-t,0):r=Math.max(r,12),r+this.getOffsetLeft()},calcYOverflow(r){const e=this.getInnerHeight(),t=this.absoluteYOffset+e,s=this.dimensions.activator,n=this.dimensions.content.height,i=r+n,a=t<i;return a&&this.offsetOverflow&&s.top>n?r=this.pageYOffset+(s.top-n):a&&!this.allowOverflow?r=t-n-12:r<this.absoluteYOffset&&!this.allowOverflow&&(r=this.absoluteYOffset+12),r<12?12:r},callActivate(){this.hasWindow&&this.activate()},callDeactivate(){this.isContentActive=!1,this.deactivate()},checkForPageYOffset(){this.hasWindow&&(this.pageYOffset=this.activatorFixed?0:this.getOffsetTop())},checkActivatorFixed(){if(this.attach!==!1){this.activatorFixed=!1;return}let r=this.getActivator();for(;r;){if(window.getComputedStyle(r).position==="fixed"){this.activatorFixed=!0;return}r=r.offsetParent}this.activatorFixed=!1},deactivate(){},genActivatorListeners(){const r=ud.options.methods.genActivatorListeners.call(this),e=r.click;return e&&(r.click=t=>{this.openOnClick&&e&&e(t),this.absoluteX=t.clientX,this.absoluteY=t.clientY}),r},getInnerHeight(){return this.hasWindow?window.innerHeight||document.documentElement.clientHeight:0},getOffsetLeft(){return this.hasWindow?window.pageXOffset||document.documentElement.scrollLeft:0},getOffsetTop(){return this.hasWindow?window.pageYOffset||document.documentElement.scrollTop:0},getRoundedBoundedClientRect(r){const e=r.getBoundingClientRect();return{top:Math.round(e.top),left:Math.round(e.left),bottom:Math.round(e.bottom),right:Math.round(e.right),width:Math.round(e.width),height:Math.round(e.height)}},measure(r){if(!r||!this.hasWindow)return null;const e=this.getRoundedBoundedClientRect(r);if(this.attach!==!1){const t=window.getComputedStyle(r);e.left=parseInt(t.marginLeft),e.top=parseInt(t.marginTop)}return e},sneakPeek(r){requestAnimationFrame(()=>{const e=this.$refs.content;if(!e||e.style.display!=="none"){r();return}e.style.display="inline-block",r(),e.style.display="none"})},startTransition(){return new Promise(r=>requestAnimationFrame(()=>{this.isContentActive=this.hasJustFocused=this.isActive,r()}))},updateDimensions(){this.hasWindow=typeof window<"u",this.checkActivatorFixed(),this.checkForPageYOffset(),this.pageWidth=document.documentElement.clientWidth;const r={activator:{...this.dimensions.activator},content:{...this.dimensions.content}};if(!this.hasActivator||this.absolute)r.activator=this.absolutePosition();else{const e=this.getActivator();if(!e)return;r.activator=this.measure(e),r.activator.offsetLeft=e.offsetLeft,this.attach!==!1?r.activator.offsetTop=e.offsetTop:r.activator.offsetTop=0}this.sneakPeek(()=>{if(this.$refs.content){if(this.$refs.content.offsetParent){const e=this.getRoundedBoundedClientRect(this.$refs.content.offsetParent);this.relativeYOffset=window.pageYOffset+e.top,r.activator.top-=this.relativeYOffset,r.activator.left-=window.pageXOffset+e.left}r.content=this.measure(this.$refs.content)}this.dimensions=r})}}}),g6=b.extend({name:"returnable",props:{returnValue:null},data:()=>({isActive:!1,originalValue:null}),watch:{isActive(r){r?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save(r){this.originalValue=r,setTimeout(()=>{this.isActive=!1})}}}),hU=be(dd,Zy,g6,G4,Ke,Yy),Dt=hU.extend({name:"v-menu",directives:{ClickOutside:ad,Resize:od},provide(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"},contentProps:{type:Object,default:()=>({})}},data(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile(){return this.tiles[this.listIndex]},calculatedLeft(){const r=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?ge(this.calcXOverflow(this.calcLeftAuto(),r))||"0":this.calcLeft(r)||"0"},calculatedMaxHeight(){return(this.auto?"200px":ge(this.maxHeight))||"0"},calculatedMaxWidth(){return ge(this.maxWidth)||"0"},calculatedMinWidth(){if(this.minWidth)return ge(this.minWidth)||"0";const r=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?r:parseInt(this.calculatedMaxWidth);return ge(Math.min(e,r))||"0"},calculatedTop(){return(this.auto?ge(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop())||"0"},hasClickableTiles(){return!!this.tiles.find(r=>r.tabIndex>-1)},styles(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive(r){r||(this.listIndex=-1)},isContentActive(r){this.hasJustFocused=r},listIndex(r,e){if(r in this.tiles){const t=this.tiles[r];t.classList.add("v-list-item--highlighted");const s=this.$refs.content.scrollTop,n=this.$refs.content.clientHeight;s>t.offsetTop-8?xa(t.offsetTop-t.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content}):s+n<t.offsetTop+t.clientHeight+8&&xa(t.offsetTop-n+t.clientHeight*2,{appOffset:!1,duration:300,container:this.$refs.content})}e in this.tiles&&this.tiles[e].classList.remove("v-list-item--highlighted")}},created(){this.$attrs.hasOwnProperty("full-width")&&xl("full-width",this)},mounted(){this.isActive&&this.callActivate()},methods:{activate(){this.updateDimensions(),requestAnimationFrame(()=>{this.startTransition().then(()=>{this.$refs.content&&(this.calculatedTopAuto=this.calcTopAuto(),this.auto&&(this.$refs.content.scrollTop=this.calcScrollPosition()))})})},calcScrollPosition(){const r=this.$refs.content,e=r.querySelector(".v-list-item--active"),t=r.scrollHeight-r.offsetHeight;return e?Math.min(t,Math.max(0,e.offsetTop-r.offsetHeight/2+e.offsetHeight/2)):r.scrollTop},calcLeftAuto(){return parseInt(this.dimensions.activator.left-this.defaultOffset*2)},calcTopAuto(){const r=this.$refs.content,e=r.querySelector(".v-list-item--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);const t=e.offsetTop-this.calcScrollPosition(),s=r.querySelector(".v-list-item").offsetTop;return this.computedTop-t-s-1},changeListIndex(r){if(this.getTiles(),!(!this.isActive||!this.hasClickableTiles)){if(r.keyCode===Pe.tab){this.isActive=!1;return}else if(r.keyCode===Pe.down)this.nextTile();else if(r.keyCode===Pe.up)this.prevTile();else if(r.keyCode===Pe.end)this.lastTile();else if(r.keyCode===Pe.home)this.firstTile();else if(r.keyCode===Pe.enter&&this.listIndex!==-1)this.tiles[this.listIndex].click();else return;r.preventDefault()}},closeConditional(r){const e=r.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(e)},genActivatorAttributes(){const r=ud.options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?{...r,"aria-activedescendant":this.activeTile.id}:r},genActivatorListeners(){const r=Yy.options.methods.genActivatorListeners.call(this);return this.disableKeys||(r.keydown=this.onKeyDown),r},genTransition(){const r=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[r]):r},genDirectives(){const r=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&r.push({name:"click-outside",value:{handler:()=>{this.isActive=!1},closeConditional:this.closeConditional,include:()=>[this.$el,...this.getOpenDependentElements()]}}),r},genContent(){const r={attrs:{...this.getScopeIdAttrs(),...this.contentProps,role:"role"in this.$attrs?this.$attrs.role:"menu"},staticClass:"v-menu__content",class:{...this.rootThemeClasses,...this.roundedClasses,"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive,[this.contentClass.trim()]:!0},style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:e=>{e.target.getAttribute("disabled")||this.closeOnContentClick&&(this.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(r.on=r.on||{},r.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(r.on=r.on||{},r.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(r.on=r.on||{},r.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",r,this.getContentSlot())},getTiles(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item, .v-divider, .v-subheader")))},mouseEnterHandler(){this.runDelay("open",()=>{this.hasJustFocused||(this.hasJustFocused=!0)})},mouseLeaveHandler(r){this.runDelay("close",()=>{var e;!((e=this.$refs.content)===null||e===void 0)&&e.contains(r.relatedTarget)||requestAnimationFrame(()=>{this.isActive=!1,this.callDeactivate()})})},nextTile(){const r=this.tiles[this.listIndex+1];if(!r){if(!this.tiles.length)return;this.listIndex=-1,this.nextTile();return}this.listIndex++,r.tabIndex===-1&&this.nextTile()},prevTile(){const r=this.tiles[this.listIndex-1];if(!r){if(!this.tiles.length)return;this.listIndex=this.tiles.length,this.prevTile();return}this.listIndex--,r.tabIndex===-1&&this.prevTile()},lastTile(){const r=this.tiles[this.tiles.length-1];r&&(this.listIndex=this.tiles.length-1,r.tabIndex===-1&&this.prevTile())},firstTile(){const r=this.tiles[0];r&&(this.listIndex=0,r.tabIndex===-1&&this.nextTile())},onKeyDown(r){if(!this.disableKeys){if(r.keyCode===Pe.esc){setTimeout(()=>{this.isActive=!1});const e=this.getActivator();this.$nextTick(()=>e&&e.focus())}else!this.isActive&&[Pe.up,Pe.down].includes(r.keyCode)&&(this.isActive=!0);this.$nextTick(()=>this.changeListIndex(r))}},onResize(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render(r){const e={staticClass:"v-menu",class:{"v-menu--attached":this.attach===""||this.attach===!0||this.attach==="attach"},directives:[{arg:"500",name:"resize",value:this.onResize}]};return r("div",e,[!this.activator&&this.genActivator(),this.showLazyContent(()=>[this.$createElement(p6,{props:{root:!0,light:this.light,dark:this.dark}},[this.genTransition()])])])}}),bm=b.extend({name:"v-simple-checkbox",functional:!0,directives:{Ripple:os},props:{...ut.options.props,...Ke.options.props,disabled:Boolean,ripple:{type:Boolean,default:!0},value:Boolean,indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},onIcon:{type:String,default:"$checkboxOn"},offIcon:{type:String,default:"$checkboxOff"}},render(r,{props:e,data:t,listeners:s}){const n=[];let i=e.offIcon;if(e.indeterminate?i=e.indeterminateIcon:e.value&&(i=e.onIcon),n.push(r(S,ut.options.methods.setTextColor(e.value&&e.color,{props:{disabled:e.disabled,dark:e.dark,light:e.light}}),i)),e.ripple&&!e.disabled){const a=r("div",ut.options.methods.setTextColor(e.color,{staticClass:"v-input--selection-controls__ripple",directives:[{def:os,name:"ripple",value:{center:!0}}]}));n.push(a)}return r("div",as(t,{class:{"v-simple-checkbox":!0,"v-simple-checkbox--disabled":e.disabled},on:{click:a=>{a.stopPropagation(),t.on&&t.on.input&&!e.disabled&&$r(t.on.input).forEach(o=>o(!e.value))}}}),[r("div",{staticClass:"v-input--selection-controls__input"},n)])}}),R=Ke.extend({name:"v-divider",props:{inset:Boolean,vertical:Boolean},render(r){let e;return(!this.$attrs.role||this.$attrs.role==="separator")&&(e=this.vertical?"vertical":"horizontal"),r("hr",{class:{"v-divider":!0,"v-divider--inset":this.inset,"v-divider--vertical":this.vertical,...this.themeClasses},attrs:{role:"separator","aria-orientation":e,...this.$attrs},on:this.$listeners})}}),Jt=be(Ke).extend({name:"v-subheader",props:{inset:Boolean},render(r){return r("div",{staticClass:"v-subheader",class:{"v-subheader--inset":this.inset,...this.themeClasses},attrs:this.$attrs,on:this.$listeners},me(this))}}),Mt=Tt.extend().extend({name:"v-list",provide(){return{isInList:!0,list:this}},inject:{isInMenu:{default:!1},isInNav:{default:!1}},props:{dense:Boolean,disabled:Boolean,expand:Boolean,flat:Boolean,nav:Boolean,rounded:Boolean,subheader:Boolean,threeLine:Boolean,twoLine:Boolean},data:()=>({groups:[]}),computed:{classes(){return{...Tt.options.computed.classes.call(this),"v-list--dense":this.dense,"v-list--disabled":this.disabled,"v-list--flat":this.flat,"v-list--nav":this.nav,"v-list--rounded":this.rounded,"v-list--subheader":this.subheader,"v-list--two-line":this.twoLine,"v-list--three-line":this.threeLine}}},methods:{register(r){this.groups.push(r)},unregister(r){const e=this.groups.findIndex(t=>t._uid===r._uid);e>-1&&this.groups.splice(e,1)},listClick(r){if(!this.expand)for(const e of this.groups)e.toggle(r)}},render(r){const e={staticClass:"v-list",class:this.classes,style:this.styles,attrs:{role:this.isInNav||this.isInMenu?void 0:"list",...this.attrs$},on:this.listeners$};return r(this.tag,this.setBackgroundColor(this.color,e),me(this))}}),fU=be(ut,bs,Ke,ji("listItemGroup"),_m("inputValue")),Se=fU.extend().extend({name:"v-list-item",directives:{Ripple:os},inject:{isInGroup:{default:!1},isInList:{default:!1},isInMenu:{default:!1},isInNav:{default:!1}},inheritAttrs:!1,props:{activeClass:{type:String,default(){return this.listItemGroup?this.listItemGroup.activeClass:""}},dense:Boolean,inactive:Boolean,link:Boolean,selectable:{type:Boolean},tag:{type:String,default:"div"},threeLine:Boolean,twoLine:Boolean,value:null},data:()=>({proxyClass:"v-list-item--active"}),computed:{classes(){return{"v-list-item":!0,...bs.options.computed.classes.call(this),"v-list-item--dense":this.dense,"v-list-item--disabled":this.disabled,"v-list-item--link":this.isClickable&&!this.inactive,"v-list-item--selectable":this.selectable,"v-list-item--three-line":this.threeLine,"v-list-item--two-line":this.twoLine,...this.themeClasses}},isClickable(){return!!(bs.options.computed.isClickable.call(this)||this.listItemGroup)}},created(){this.$attrs.hasOwnProperty("avatar")&&xl("avatar",this)},methods:{click(r){r.detail&&this.$el.blur(),this.$emit("click",r),this.to||this.toggle()},genAttrs(){const r={"aria-disabled":this.disabled?!0:void 0,tabindex:this.isClickable&&!this.disabled?0:-1,...this.$attrs};return this.$attrs.hasOwnProperty("role")||this.isInNav||(this.isInGroup?(r.role="option",r["aria-selected"]=String(this.isActive)):this.isInMenu?(r.role=this.isClickable?"menuitem":void 0,r.id=r.id||`list-item-${this._uid}`):this.isInList&&(r.role="listitem")),r},toggle(){this.to&&this.inputValue===void 0&&(this.isActive=!this.isActive),this.$emit("change")}},render(r){let{tag:e,data:t}=this.generateRouteLink();t.attrs={...t.attrs,...this.genAttrs()},t[this.to?"nativeOn":"on"]={...t[this.to?"nativeOn":"on"],keydown:n=>{this.disabled||(n.keyCode===Pe.enter&&this.click(n),this.$emit("keydown",n))}},this.inactive&&(e="div"),this.inactive&&this.to&&(t.on=t.nativeOn,delete t.nativeOn);const s=me(this,"default",{active:this.isActive,toggle:this.toggle});return r(e,this.isActive?this.setTextColor(this.color,t):t,s)}}),qe=b.extend({name:"v-list-item-icon",functional:!0,render(r,{data:e,children:t}){return e.staticClass=`v-list-item__icon ${e.staticClass||""}`.trim(),r("div",e,t)}}),mU=be(Sl,ym,ut,Ka("list"),Ya),Qg=mU.extend().extend({name:"v-list-group",directives:{ripple:os},props:{activeClass:{type:String,default:""},appendIcon:{type:String,default:"$expand"},color:{type:String,default:"primary"},disabled:Boolean,group:[String,RegExp],noAction:Boolean,prependIcon:String,ripple:{type:[Boolean,Object],default:!0},subGroup:Boolean},computed:{classes(){return{"v-list-group--active":this.isActive,"v-list-group--disabled":this.disabled,"v-list-group--no-action":this.noAction,"v-list-group--sub-group":this.subGroup}}},watch:{isActive(r){!this.subGroup&&r&&this.list&&this.list.listClick(this._uid)},$route:"onRouteChange"},created(){this.list&&this.list.register(this),this.group&&this.$route&&this.value==null&&(this.isActive=this.matchRoute(this.$route.path))},beforeDestroy(){this.list&&this.list.unregister(this)},methods:{click(r){this.disabled||(this.isBooted=!0,this.$emit("click",r),this.$nextTick(()=>this.isActive=!this.isActive))},genIcon(r){return this.$createElement(S,r)},genAppendIcon(){const r=this.subGroup?!1:this.appendIcon,e=me(this,"appendIcon");return!r&&!e?null:this.$createElement(qe,{staticClass:"v-list-group__header__append-icon"},[e||this.genIcon(r)])},genHeader(){return this.$createElement(Se,{staticClass:"v-list-group__header",attrs:{"aria-expanded":String(this.isActive),role:"button"},class:{[this.activeClass]:this.isActive},props:{inputValue:this.isActive},directives:[{name:"ripple",value:this.ripple}],on:{...this.listeners$,click:this.click}},[this.genPrependIcon(),me(this,"activator"),this.genAppendIcon()])},genItems(){return this.showLazyContent(()=>[this.$createElement("div",{staticClass:"v-list-group__items",directives:[{name:"show",value:this.isActive}]},me(this))])},genPrependIcon(){const r=this.subGroup&&this.prependIcon==null?"$subgroup":this.prependIcon,e=me(this,"prependIcon");return!r&&!e?null:this.$createElement(qe,{staticClass:"v-list-group__header__prepend-icon"},[e||this.genIcon(r)])},onRouteChange(r){if(!this.group)return;const e=this.matchRoute(r.path);e&&this.isActive!==e&&this.list&&this.list.listClick(this._uid),this.isActive=e},toggle(r){const e=this._uid===r;e&&(this.isBooted=!0),this.$nextTick(()=>this.isActive=e)},matchRoute(r){return r.match(this.group)!==null}},render(r){return r("div",this.setTextColor(this.isActive&&this.color,{staticClass:"v-list-group",class:this.classes}),[this.genHeader(),r(zc,this.genItems())])}}),Ky=b.extend({name:"comparable",props:{valueComparator:{type:Function,default:Wt}}});function gU(r="value",e="change"){return b.extend({name:"proxyable",model:{prop:r,event:e},props:{[r]:{required:!1}},data(){return{internalLazyValue:this[r]}},computed:{internalValue:{get(){return this.internalLazyValue},set(t){t!==this.internalLazyValue&&(this.internalLazyValue=t,this.$emit(e,t))}}},watch:{[r](t){this.internalLazyValue=t}}})}const $m=gU(),fr=be(Ky,$m,Ke).extend({name:"base-item-group",props:{activeClass:{type:String,default:"v-item--active"},mandatory:Boolean,max:{type:[Number,String],default:null},multiple:Boolean,tag:{type:String,default:"div"}},data(){return{internalLazyValue:this.value!==void 0?this.value:this.multiple?[]:void 0,items:[]}},computed:{classes(){return{"v-item-group":!0,...this.themeClasses}},selectedIndex(){return this.selectedItem&&this.items.indexOf(this.selectedItem)||-1},selectedItem(){if(!this.multiple)return this.selectedItems[0]},selectedItems(){return this.items.filter((r,e)=>this.toggleMethod(this.getValue(r,e)))},selectedValues(){return this.internalValue==null?[]:Array.isArray(this.internalValue)?this.internalValue:[this.internalValue]},toggleMethod(){if(!this.multiple)return e=>this.valueComparator(this.internalValue,e);const r=this.internalValue;return Array.isArray(r)?e=>r.some(t=>this.valueComparator(t,e)):()=>!1}},watch:{internalValue:"updateItemsState",items:"updateItemsState"},created(){this.multiple&&!Array.isArray(this.internalValue)&&xr("Model must be bound to an array if the multiple property is true.",this)},methods:{genData(){return{class:this.classes}},getValue(r,e){return r.value===void 0?e:r.value},onClick(r){this.updateInternalValue(this.getValue(r,this.items.indexOf(r)))},register(r){const e=this.items.push(r)-1;r.$on("change",()=>this.onClick(r)),this.mandatory&&!this.selectedValues.length&&this.updateMandatory(),this.updateItem(r,e)},unregister(r){if(this._isDestroyed)return;const e=this.items.indexOf(r),t=this.getValue(r,e);if(this.items.splice(e,1),!(this.selectedValues.indexOf(t)<0)){if(!this.mandatory)return this.updateInternalValue(t);this.multiple&&Array.isArray(this.internalValue)?this.internalValue=this.internalValue.filter(n=>n!==t):this.internalValue=void 0,this.selectedItems.length||this.updateMandatory(!0)}},updateItem(r,e){const t=this.getValue(r,e);r.isActive=this.toggleMethod(t)},updateItemsState(){this.$nextTick(()=>{if(this.mandatory&&!this.selectedItems.length)return this.updateMandatory();this.items.forEach(this.updateItem)})},updateInternalValue(r){this.multiple?this.updateMultiple(r):this.updateSingle(r)},updateMandatory(r){if(!this.items.length)return;const e=this.items.slice();r&&e.reverse();const t=e.find(n=>!n.disabled);if(!t)return;const s=this.items.indexOf(t);this.updateInternalValue(this.getValue(t,s))},updateMultiple(r){const t=(Array.isArray(this.internalValue)?this.internalValue:[]).slice(),s=t.findIndex(n=>this.valueComparator(n,r));this.mandatory&&s>-1&&t.length-1<1||this.max!=null&&s<0&&t.length+1>this.max||(s>-1?t.splice(s,1):t.push(r),this.internalValue=t)},updateSingle(r){const e=this.valueComparator(this.internalValue,r);this.mandatory&&e||(this.internalValue=e?void 0:r)}},render(r){return r(this.tag,this.genData(),me(this))}}),vU=fr.extend({name:"v-item-group",provide(){return{itemGroup:this}}}),_U=be(fr,ut).extend({name:"v-list-item-group",provide(){return{isInGroup:!0,listItemGroup:this}},computed:{classes(){return{...fr.options.computed.classes.call(this),"v-list-item-group":!0}}},methods:{genData(){return this.setTextColor(this.color,{...fr.options.methods.genData.call(this),attrs:{role:"listbox"}})}}}),nr=b.extend({name:"v-list-item-action",functional:!0,render(r,{data:e,children:t=[]}){return e.staticClass=e.staticClass?`v-list-item__action ${e.staticClass}`:"v-list-item__action",t.filter(n=>n.isComment===!1&&n.text!==" ").length>1&&(e.staticClass+=" v-list-item__action--stack"),r("div",e,t)}});Gr("v-list-item__action-text","span");const Ee=Gr("v-list-item__content","div"),xe=Gr("v-list-item__title","div"),Wp=Gr("v-list-item__subtitle","div"),oS=be(ut,Ke).extend({name:"v-select-list",directives:{ripple:os},props:{action:Boolean,dense:Boolean,hideSelected:Boolean,items:{type:Array,default:()=>[]},itemDisabled:{type:[String,Array,Function],default:"disabled"},itemText:{type:[String,Array,Function],default:"text"},itemValue:{type:[String,Array,Function],default:"value"},noDataText:String,noFilter:Boolean,searchInput:null,selectedItems:{type:Array,default:()=>[]}},computed:{parsedItems(){return this.selectedItems.map(r=>this.getValue(r))},tileActiveClass(){return Object.keys(this.setTextColor(this.color).class||{}).join(" ")},staticNoDataTile(){const r={attrs:{role:void 0},on:{mousedown:e=>e.preventDefault()}};return this.$createElement(Se,r,[this.genTileContent(this.noDataText)])}},methods:{genAction(r,e){return this.$createElement(nr,[this.$createElement(bm,{props:{color:this.color,value:e,ripple:!1},on:{input:()=>this.$emit("select",r)}})])},genDivider(r){return this.$createElement(R,{props:r})},genFilteredText(r){if(r=r||"",!this.searchInput||this.noFilter)return r;const{start:e,middle:t,end:s}=this.getMaskedCharacters(r);return[e,this.genHighlight(t),s]},genHeader(r){return this.$createElement(Jt,{props:r},r.header)},genHighlight(r){return this.$createElement("span",{staticClass:"v-list-item__mask"},r)},getMaskedCharacters(r){const e=(this.searchInput||"").toString().toLocaleLowerCase(),t=r.toLocaleLowerCase().indexOf(e);if(t<0)return{start:r,middle:"",end:""};const s=r.slice(0,t),n=r.slice(t,t+e.length),i=r.slice(t+e.length);return{start:s,middle:n,end:i}},genTile({item:r,index:e,disabled:t=null,value:s=!1}){s||(s=this.hasItem(r)),r===Object(r)&&(t=t!==null?t:this.getDisabled(r));const n={attrs:{"aria-selected":String(s),id:`list-item-${this._uid}-${e}`,role:"option"},on:{mousedown:o=>{o.preventDefault()},click:()=>t||this.$emit("select",r)},props:{activeClass:this.tileActiveClass,disabled:t,ripple:!0,inputValue:s}};if(!this.$scopedSlots.item)return this.$createElement(Se,n,[this.action&&!this.hideSelected&&this.items.length>0?this.genAction(r,s):null,this.genTileContent(r,e)]);const i=this,a=this.$scopedSlots.item({parent:i,item:r,attrs:{...n.attrs,...n.props},on:n.on});return this.needsTile(a)?this.$createElement(Se,n,a):a},genTileContent(r,e=0){return this.$createElement(Ee,[this.$createElement(xe,[this.genFilteredText(this.getText(r))])])},hasItem(r){return this.parsedItems.indexOf(this.getValue(r))>-1},needsTile(r){return r.length!==1||r[0].componentOptions==null||r[0].componentOptions.Ctor.options.name!=="v-list-item"},getDisabled(r){return!!Rn(r,this.itemDisabled,!1)},getText(r){return String(Rn(r,this.itemText,r))},getValue(r){return Rn(r,this.itemValue,this.getText(r))}},render(){const r=[],e=this.items.length;for(let t=0;t<e;t++){const s=this.items[t];this.hideSelected&&this.hasItem(s)||(s==null?r.push(this.genTile({item:s,index:t})):s.header?r.push(this.genHeader(s)):s.divider?r.push(this.genDivider(s)):r.push(this.genTile({item:s,index:t})))}return r.length||r.push(this.$slots["no-data"]||this.staticNoDataTile),this.$slots["prepend-item"]&&r.unshift(this.$slots["prepend-item"]),this.$slots["append-item"]&&r.push(this.$slots["append-item"]),this.$createElement(Mt,{staticClass:"v-select-list",class:this.themeClasses,attrs:{role:"listbox",tabindex:-1},on:{mousedown:t=>{t.preventDefault()}},props:{dense:this.dense}},r)}}),Xy=be(Ke).extend({name:"v-label",functional:!0,props:{absolute:Boolean,color:{type:String,default:"primary"},disabled:Boolean,focused:Boolean,for:String,left:{type:[Number,String],default:0},right:{type:[Number,String],default:"auto"},value:Boolean},render(r,e){const{children:t,listeners:s,props:n,data:i}=e,a=as({staticClass:"v-label",class:{"v-label--active":n.value,"v-label--is-disabled":n.disabled,...w4(e)},attrs:{for:n.for,"aria-hidden":!n.for},on:s,style:{left:ge(n.left),right:ge(n.right),position:n.absolute?"absolute":"relative"},ref:"label"},i);return r("label",ut.options.methods.setTextColor(n.focused&&n.color,a),t)}}),yU=be(ut,Ke).extend({name:"v-messages",props:{value:{type:Array,default:()=>[]}},methods:{genChildren(){return this.$createElement("transition-group",{staticClass:"v-messages__wrapper",attrs:{name:"message-transition",tag:"div"}},this.value.map(this.genMessage))},genMessage(r,e){return this.$createElement("div",{staticClass:"v-messages__message",key:e},me(this,"default",{message:r,key:e})||[r])}},render(r){return r("div",this.setTextColor(this.color,{staticClass:"v-messages",class:this.themeClasses}),[this.genChildren()])}}),bU=be(ut,Ka("form"),Ke),v6=bU.extend({name:"validatable",props:{disabled:{type:Boolean,default:null},error:Boolean,errorCount:{type:[Number,String],default:1},errorMessages:{type:[String,Array],default:()=>[]},messages:{type:[String,Array],default:()=>[]},readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},success:Boolean,successMessages:{type:[String,Array],default:()=>[]},validateOnBlur:Boolean,value:{required:!1}},data(){return{errorBucket:[],hasColor:!1,hasFocused:!1,hasInput:!1,isFocused:!1,isResetting:!1,lazyValue:this.value,valid:!1}},computed:{computedColor(){if(!this.isDisabled)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},hasError(){return this.internalErrorMessages.length>0||this.errorBucket.length>0||this.error},hasSuccess(){return this.internalSuccessMessages.length>0||this.success},externalError(){return this.internalErrorMessages.length>0||this.error},hasMessages(){return this.validationTarget.length>0},hasState(){return this.isDisabled?!1:this.hasSuccess||this.shouldValidate&&this.hasError},internalErrorMessages(){return this.genInternalMessages(this.errorMessages)},internalMessages(){return this.genInternalMessages(this.messages)},internalSuccessMessages(){return this.genInternalMessages(this.successMessages)},internalValue:{get(){return this.lazyValue},set(r){this.lazyValue=r,this.$emit("input",r)}},isDisabled(){var r;return(r=this.disabled)!==null&&r!==void 0?r:!!this.form&&this.form.disabled},isInteractive(){return!this.isDisabled&&!this.isReadonly},isReadonly(){var r;return(r=this.readonly)!==null&&r!==void 0?r:!!this.form&&this.form.readonly},shouldValidate(){return this.externalError?!0:this.isResetting?!1:this.validateOnBlur?this.hasFocused&&!this.isFocused:this.hasInput||this.hasFocused},validations(){return this.validationTarget.slice(0,Number(this.errorCount))},validationState(){if(!this.isDisabled){if(this.hasError&&this.shouldValidate)return"error";if(this.hasSuccess)return"success";if(this.hasColor)return this.computedColor}},validationTarget(){return this.internalErrorMessages.length>0?this.internalErrorMessages:this.successMessages&&this.successMessages.length>0?this.internalSuccessMessages:this.messages&&this.messages.length>0?this.internalMessages:this.shouldValidate?this.errorBucket:[]}},watch:{rules:{handler(r,e){Wt(r,e)||this.validate()},deep:!0},internalValue(){this.hasInput=!0,this.validateOnBlur||this.$nextTick(this.validate)},isFocused(r){!r&&!this.isDisabled&&(this.hasFocused=!0,this.validateOnBlur&&this.$nextTick(this.validate))},isResetting(){setTimeout(()=>{this.hasInput=!1,this.hasFocused=!1,this.isResetting=!1,this.validate()},0)},hasError(r){this.shouldValidate&&this.$emit("update:error",r)},value(r){this.lazyValue=r}},beforeMount(){this.validate()},created(){this.form&&this.form.register(this)},beforeDestroy(){this.form&&this.form.unregister(this)},methods:{genInternalMessages(r){return r?Array.isArray(r)?r:[r]:[]},reset(){this.isResetting=!0,this.internalValue=Array.isArray(this.internalValue)?[]:null},resetValidation(){this.isResetting=!0},validate(r=!1,e){const t=[];e=e||this.internalValue,r&&(this.hasInput=this.hasFocused=!0);for(let s=0;s<this.rules.length;s++){const n=this.rules[s],i=typeof n=="function"?n(e):n;i===!1||typeof i=="string"?t.push(i||""):typeof i!="boolean"&&Ns(`Rules should return a string or boolean, received '${typeof i}' instead`,this)}return this.errorBucket=t,this.valid=t.length===0,this.valid}}}),$U=be(Sl,v6),Ct=$U.extend().extend({name:"v-input",inheritAttrs:!1,props:{appendIcon:String,backgroundColor:{type:String,default:""},dense:Boolean,height:[Number,String],hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,id:String,label:String,loading:Boolean,persistentHint:Boolean,prependIcon:String,value:null},data(){return{lazyValue:this.value,hasMouseDown:!1}},computed:{classes(){return{"v-input--has-state":this.hasState,"v-input--hide-details":!this.showDetails,"v-input--is-label-active":this.isLabelActive,"v-input--is-dirty":this.isDirty,"v-input--is-disabled":this.isDisabled,"v-input--is-focused":this.isFocused,"v-input--is-loading":this.loading!==!1&&this.loading!=null,"v-input--is-readonly":this.isReadonly,"v-input--dense":this.dense,"v-input--hide-spin-buttons":this.hideSpinButtons,...this.themeClasses}},computedId(){return this.id||`input-${this._uid}`},hasDetails(){return this.messagesToDisplay.length>0},hasHint(){return!this.hasMessages&&!!this.hint&&(this.persistentHint||this.isFocused)},hasLabel(){return!!(this.$slots.label||this.label)},internalValue:{get(){return this.lazyValue},set(r){this.lazyValue=r,this.$emit(this.$_modelEvent,r)}},isDirty(){return!!this.lazyValue},isLabelActive(){return this.isDirty},messagesToDisplay(){return this.hasHint?[this.hint]:this.hasMessages?this.validations.map(r=>{if(typeof r=="string")return r;const e=r(this.internalValue);return typeof e=="string"?e:""}).filter(r=>r!==""):[]},showDetails(){return this.hideDetails===!1||this.hideDetails==="auto"&&this.hasDetails}},watch:{value(r){this.lazyValue=r}},beforeCreate(){this.$_modelEvent=this.$options.model&&this.$options.model.event||"input"},methods:{genContent(){return[this.genPrependSlot(),this.genControl(),this.genAppendSlot()]},genControl(){return this.$createElement("div",{staticClass:"v-input__control",attrs:{title:this.attrs$.title}},[this.genInputSlot(),this.genMessages()])},genDefaultSlot(){return[this.genLabel(),me(this)]},genIcon(r,e,t={}){var s;const n=this[`${r}Icon`],i=`click:${Av(r)}`,a=!!(this.listeners$[i]||e),o={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendOuter:"appendAction",clear:"clear"}[r],l=a&&o?this.$vuetify.lang.t(`$vuetify.input.${o}`,(s=this.label)!==null&&s!==void 0?s:""):void 0,c=as({attrs:{"aria-label":l,color:this.validationState,dark:this.dark,disabled:this.isDisabled,light:this.light,tabindex:r==="clear"?-1:void 0},on:a?{click:u=>{u.preventDefault(),u.stopPropagation(),this.$emit(i,u),e&&e(u)},mouseup:u=>{u.preventDefault(),u.stopPropagation()}}:void 0},t);return this.$createElement("div",{staticClass:"v-input__icon",class:r?`v-input__icon--${Av(r)}`:void 0},[this.$createElement(S,c,n)])},genInputSlot(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor,{staticClass:"v-input__slot",style:{height:ge(this.height)},on:{click:this.onClick,mousedown:this.onMouseDown,mouseup:this.onMouseUp},ref:"input-slot"}),[this.genDefaultSlot()])},genLabel(){return this.hasLabel?this.$createElement(Xy,{props:{color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:this.hasState,for:this.computedId,light:this.light}},me(this,"label")||this.label):null},genMessages(){return this.showDetails?this.$createElement(yU,{props:{color:this.hasHint?"":this.validationState,dark:this.dark,light:this.light,value:this.messagesToDisplay},attrs:{role:this.hasMessages?"alert":null},scopedSlots:{default:r=>me(this,"message",r)}}):null},genSlot(r,e,t){if(!t.length)return null;const s=`${r}-${e}`;return this.$createElement("div",{staticClass:`v-input__${s}`,ref:s},t)},genPrependSlot(){const r=[];return this.$slots.prepend?r.push(this.$slots.prepend):this.prependIcon&&r.push(this.genIcon("prepend")),this.genSlot("prepend","outer",r)},genAppendSlot(){const r=[];return this.$slots.append?r.push(this.$slots.append):this.appendIcon&&r.push(this.genIcon("append")),this.genSlot("append","outer",r)},onClick(r){this.$emit("click",r)},onMouseDown(r){this.hasMouseDown=!0,this.$emit("mousedown",r)},onMouseUp(r){this.hasMouseDown=!1,this.$emit("mouseup",r)}},render(r){return r("div",this.setTextColor(this.validationState,{staticClass:"v-input",class:this.classes}),this.genContent())}}),wU=be(Ke).extend({name:"v-counter",functional:!0,props:{value:{type:[Number,String],default:""},max:[Number,String]},render(r,e){const{props:t}=e,s=parseInt(t.max,10),n=parseInt(t.value,10),i=s?`${n} / ${s}`:String(t.value),a=s&&n>s;return r("div",{staticClass:"v-counter",class:{"error--text":a,...w4(e)}},i)}});function SU(r){return b.extend({name:"intersectable",data:()=>({isIntersecting:!1}),mounted(){ou.inserted(this.$el,{name:"intersect",value:this.onObserve},this.$vnode)},destroyed(){ou.unbind(this.$el,{name:"intersect",value:this.onObserve},this.$vnode)},methods:{onObserve(e,t,s){if(this.isIntersecting=s,!!s)for(let n=0,i=r.onVisible.length;n<i;n++){const a=this[r.onVisible[n]];if(typeof a=="function"){a();continue}xr(r.onVisible[n]+" method is not available on the instance but referenced in intersectable mixin options")}}}})}const xU=be(ut,Cl(["absolute","fixed","top","bottom"]),$m,Ke),Zs=xU.extend({name:"v-progress-linear",directives:{intersect:ou},props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data(){return{internalLazyValue:this.value||0,isVisible:!0}},computed:{__cachedBackground(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:ge(this.normalizedValue,"%")}}))},__cachedIndeterminate(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:ge(100-this.normalizedBuffer,"%")}})):null},backgroundStyle(){return{opacity:this.backgroundOpacity==null?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity),[this.isReversed?"right":"left"]:ge(this.normalizedValue,"%"),width:ge(Math.max(0,this.normalizedBuffer-this.normalizedValue),"%")}},classes(){return{"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped,"v-progress-linear--visible":this.isVisible,...this.themeClasses}},computedTransition(){return this.indeterminate?Al:lU},isReversed(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer(){return this.normalize(this.bufferValue)},normalizedValue(){return this.normalize(this.internalLazyValue)},reactive(){return!!this.$listeners.change},styles(){const r={};return this.active||(r.height=0),!this.indeterminate&&parseFloat(this.normalizedBuffer)!==100&&(r.width=ge(this.normalizedBuffer,"%")),r}},methods:{genContent(){const r=me(this,"default",{value:this.internalLazyValue});return r?this.$createElement("div",{staticClass:"v-progress-linear__content"},r):null},genListeners(){const r=this.$listeners;return this.reactive&&(r.click=this.onClick),r},genProgressBar(r){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:{[r]:!0}}))},onClick(r){if(!this.reactive)return;const{width:e}=this.$el.getBoundingClientRect();this.internalValue=r.offsetX/e*100},onObserve(r,e,t){this.isVisible=t},normalize(r){return r<0?0:r>100?100:parseFloat(r)}},render(r){const e={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:{bottom:this.bottom?0:void 0,height:this.active?ge(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return r("div",e,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}}),Go=b.extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress(){return this.loading===!1?null:me(this,"progress")||this.$createElement(Zs,{props:{absolute:!0,color:this.loading===!0||this.loading===""?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}}),CU=be(Ct,SU({onVisible:["onResize","tryAutofocus"]}),Go),PU=["color","file","time","date","datetime-local","week","month"],ae=CU.extend().extend({name:"v-text-field",directives:{resize:od,ripple:os},inheritAttrs:!1,props:{appendOuterIcon:String,autofocus:Boolean,clearable:Boolean,clearIcon:{type:String,default:"$clear"},counter:[Boolean,Number,String],counterValue:Function,filled:Boolean,flat:Boolean,fullWidth:Boolean,label:String,outlined:Boolean,placeholder:String,prefix:String,prependInnerIcon:String,persistentPlaceholder:Boolean,reverse:Boolean,rounded:Boolean,shaped:Boolean,singleLine:Boolean,solo:Boolean,soloInverted:Boolean,suffix:String,type:{type:String,default:"text"}},data:()=>({badInput:!1,labelWidth:0,prefixWidth:0,prependWidth:0,initialValue:null,isBooted:!1,isClearing:!1}),computed:{classes(){return{...Ct.options.computed.classes.call(this),"v-text-field":!0,"v-text-field--full-width":this.fullWidth,"v-text-field--prefix":this.prefix,"v-text-field--single-line":this.isSingle,"v-text-field--solo":this.isSolo,"v-text-field--solo-inverted":this.soloInverted,"v-text-field--solo-flat":this.flat,"v-text-field--filled":this.filled,"v-text-field--is-booted":this.isBooted,"v-text-field--enclosed":this.isEnclosed,"v-text-field--reverse":this.reverse,"v-text-field--outlined":this.outlined,"v-text-field--placeholder":this.placeholder,"v-text-field--rounded":this.rounded,"v-text-field--shaped":this.shaped}},computedColor(){const r=v6.options.computed.computedColor.call(this);return!this.soloInverted||!this.isFocused?r:this.color||"primary"},computedCounterValue(){return typeof this.counterValue=="function"?this.counterValue(this.internalValue):[...(this.internalValue||"").toString()].length},hasCounter(){return this.counter!==!1&&this.counter!=null},hasDetails(){return Ct.options.computed.hasDetails.call(this)||this.hasCounter},internalValue:{get(){return this.lazyValue},set(r){this.lazyValue=r,this.$emit("input",this.lazyValue)}},isDirty(){var r;return((r=this.lazyValue)===null||r===void 0?void 0:r.toString().length)>0||this.badInput},isEnclosed(){return this.filled||this.isSolo||this.outlined},isLabelActive(){return this.isDirty||PU.includes(this.type)},isSingle(){return this.isSolo||this.singleLine||this.fullWidth||this.filled&&!this.hasLabel},isSolo(){return this.solo||this.soloInverted},labelPosition(){let r=this.prefix&&!this.labelValue?this.prefixWidth:0;return this.labelValue&&this.prependWidth&&(r-=this.prependWidth),this.$vuetify.rtl===this.reverse?{left:r,right:"auto"}:{left:"auto",right:r}},showLabel(){return this.hasLabel&&!(this.isSingle&&this.labelValue)},labelValue(){return this.isFocused||this.isLabelActive||this.persistentPlaceholder}},watch:{outlined:"setLabelWidth",label(){this.$nextTick(this.setLabelWidth)},prefix(){this.$nextTick(this.setPrefixWidth)},isFocused:"updateValue",value(r){this.lazyValue=r}},created(){this.$attrs.hasOwnProperty("box")&&qs("box","filled",this),this.$attrs.hasOwnProperty("browser-autocomplete")&&qs("browser-autocomplete","autocomplete",this),this.shaped&&!(this.filled||this.outlined||this.isSolo)&&xr("shaped should be used with either filled or outlined",this)},mounted(){this.$watch(()=>this.labelValue,this.setLabelWidth),this.autofocus&&this.tryAutofocus(),requestAnimationFrame(()=>{this.isBooted=!0,requestAnimationFrame(()=>{this.isIntersecting||this.onResize()})})},methods:{focus(){this.onFocus()},blur(r){window.requestAnimationFrame(()=>{this.$refs.input&&this.$refs.input.blur()})},clearableCallback(){this.$refs.input&&this.$refs.input.focus(),this.$nextTick(()=>this.internalValue=null)},genAppendSlot(){const r=[];return this.$slots["append-outer"]?r.push(this.$slots["append-outer"]):this.appendOuterIcon&&r.push(this.genIcon("appendOuter")),this.genSlot("append","outer",r)},genPrependInnerSlot(){const r=[];return this.$slots["prepend-inner"]?r.push(this.$slots["prepend-inner"]):this.prependInnerIcon&&r.push(this.genIcon("prependInner")),this.genSlot("prepend","inner",r)},genIconSlot(){const r=[];return this.$slots.append?r.push(this.$slots.append):this.appendIcon&&r.push(this.genIcon("append")),this.genSlot("append","inner",r)},genInputSlot(){const r=Ct.options.methods.genInputSlot.call(this),e=this.genPrependInnerSlot();return e&&(r.children=r.children||[],r.children.unshift(e)),r},genClearIcon(){return this.clearable?this.isDirty?this.genSlot("append","inner",[this.genIcon("clear",this.clearableCallback)]):this.genSlot("append","inner",[this.$createElement("div")]):null},genCounter(){var r,e,t;if(!this.hasCounter)return null;const s=this.counter===!0?this.attrs$.maxlength:this.counter,n={dark:this.dark,light:this.light,max:s,value:this.computedCounterValue};return(t=(e=(r=this.$scopedSlots).counter)===null||e===void 0?void 0:e.call(r,{props:n}))!==null&&t!==void 0?t:this.$createElement(wU,{props:n})},genControl(){return Ct.options.methods.genControl.call(this)},genDefaultSlot(){return[this.genFieldset(),this.genTextFieldSlot(),this.genClearIcon(),this.genIconSlot(),this.genProgress()]},genFieldset(){return this.outlined?this.$createElement("fieldset",{attrs:{"aria-hidden":!0}},[this.genLegend()]):null},genLabel(){if(!this.showLabel)return null;const r={props:{absolute:!0,color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:!this.isSingle&&(this.isFocused||!!this.validationState),for:this.computedId,left:this.labelPosition.left,light:this.light,right:this.labelPosition.right,value:this.labelValue}};return this.$createElement(Xy,r,me(this,"label")||this.label)},genLegend(){const r=!this.singleLine&&(this.labelValue||this.isDirty)?this.labelWidth:0,e=this.$createElement("span",{domProps:{innerHTML:"​"},staticClass:"notranslate"});return this.$createElement("legend",{style:{width:this.isSingle?void 0:ge(r)}},[e])},genInput(){const r=Object.assign({},this.listeners$);delete r.change;const{title:e,...t}=this.attrs$;return this.$createElement("input",{style:{},domProps:{value:this.type==="number"&&Object.is(this.lazyValue,-0)?"-0":this.lazyValue},attrs:{...t,autofocus:this.autofocus,disabled:this.isDisabled,id:this.computedId,placeholder:this.persistentPlaceholder||this.isFocused||!this.hasLabel?this.placeholder:void 0,readonly:this.isReadonly,type:this.type},on:Object.assign(r,{blur:this.onBlur,input:this.onInput,focus:this.onFocus,keydown:this.onKeyDown}),ref:"input",directives:[{name:"resize",modifiers:{quiet:!0},value:this.onResize}]})},genMessages(){if(!this.showDetails)return null;const r=Ct.options.methods.genMessages.call(this),e=this.genCounter();return this.$createElement("div",{staticClass:"v-text-field__details"},[r,e])},genTextFieldSlot(){return this.$createElement("div",{staticClass:"v-text-field__slot"},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,this.genInput(),this.suffix?this.genAffix("suffix"):null])},genAffix(r){return this.$createElement("div",{class:`v-text-field__${r}`,ref:r},this[r])},onBlur(r){this.isFocused=!1,r&&this.$nextTick(()=>this.$emit("blur",r))},onClick(){this.isFocused||this.isDisabled||!this.$refs.input||this.$refs.input.focus()},onFocus(r){if(!this.$refs.input)return;const e=Mh(this.$el);if(e){if(e.activeElement!==this.$refs.input)return this.$refs.input.focus();this.isFocused||(this.isFocused=!0,r&&this.$emit("focus",r))}},onInput(r){const e=r.target;this.internalValue=e.value,this.badInput=e.validity&&e.validity.badInput},onKeyDown(r){r.keyCode===Pe.enter&&this.lazyValue!==this.initialValue&&(this.initialValue=this.lazyValue,this.$emit("change",this.initialValue)),this.$emit("keydown",r)},onMouseDown(r){r.target!==this.$refs.input&&(r.preventDefault(),r.stopPropagation()),Ct.options.methods.onMouseDown.call(this,r)},onMouseUp(r){this.hasMouseDown&&this.focus(),Ct.options.methods.onMouseUp.call(this,r)},setLabelWidth(){this.outlined&&(this.labelWidth=this.$refs.label?Math.min(this.$refs.label.scrollWidth*.75+6,this.$el.offsetWidth-24):0)},setPrefixWidth(){this.$refs.prefix&&(this.prefixWidth=this.$refs.prefix.offsetWidth)},setPrependWidth(){!this.outlined||!this.$refs["prepend-inner"]||(this.prependWidth=this.$refs["prepend-inner"].offsetWidth)},tryAutofocus(){if(!this.autofocus||typeof document>"u"||!this.$refs.input)return!1;const r=Mh(this.$el);return!r||r.activeElement===this.$refs.input?!1:(this.$refs.input.focus(),!0)},updateValue(r){this.hasColor=r,r?this.initialValue=this.lazyValue:this.initialValue!==this.lazyValue&&this.$emit("change",this.lazyValue)},onResize(){this.setLabelWidth(),this.setPrefixWidth(),this.setPrependWidth()}}}),AU=b.extend({name:"filterable",props:{noDataText:{type:String,default:"$vuetify.noDataText"}}}),kv={closeOnClick:!1,closeOnContentClick:!1,disableKeys:!0,openOnClick:!1,maxHeight:304},LU=be(ae,Ky,dd,AU),Re=LU.extend().extend({name:"v-select",directives:{ClickOutside:ad},props:{appendIcon:{type:String,default:"$dropdown"},attach:{type:null,default:!1},cacheItems:Boolean,chips:Boolean,clearable:Boolean,deletableChips:Boolean,disableLookup:Boolean,eager:Boolean,hideSelected:Boolean,items:{type:Array,default:()=>[]},itemColor:{type:String,default:"primary"},itemDisabled:{type:[String,Array,Function],default:"disabled"},itemText:{type:[String,Array,Function],default:"text"},itemValue:{type:[String,Array,Function],default:"value"},menuProps:{type:[String,Array,Object],default:()=>kv},multiple:Boolean,openOnClear:Boolean,returnObject:Boolean,smallChips:Boolean},data(){return{cachedItems:this.cacheItems?this.items:[],menuIsBooted:!1,isMenuActive:!1,lastItem:20,lazyValue:this.value!==void 0?this.value:this.multiple?[]:void 0,selectedIndex:-1,selectedItems:[],keyboardLookupPrefix:"",keyboardLookupLastTime:0}},computed:{allItems(){return this.filterDuplicates(this.cachedItems.concat(this.items))},classes(){return{...ae.options.computed.classes.call(this),"v-select":!0,"v-select--chips":this.hasChips,"v-select--chips--small":this.smallChips,"v-select--is-menu-active":this.isMenuActive,"v-select--is-multi":this.multiple}},computedItems(){return this.allItems},computedOwns(){return`list-${this._uid}`},computedCounterValue(){var r;const e=this.multiple?this.selectedItems:((r=this.getText(this.selectedItems[0]))!==null&&r!==void 0?r:"").toString();return typeof this.counterValue=="function"?this.counterValue(e):e.length},directives(){return this.isFocused?[{name:"click-outside",value:{handler:this.blur,closeConditional:this.closeConditional,include:()=>this.getOpenDependentElements()}}]:void 0},dynamicHeight(){return"auto"},hasChips(){return this.chips||this.smallChips},hasSlot(){return!!(this.hasChips||this.$scopedSlots.selection)},isDirty(){return this.selectedItems.length>0},listData(){const r=this.$vnode&&this.$vnode.context.$options._scopeId;return{attrs:{...r?{[r]:!0}:{},id:this.computedOwns},props:{action:this.multiple,color:this.itemColor,dense:this.dense,hideSelected:this.hideSelected,items:this.virtualizedItems,itemDisabled:this.itemDisabled,itemText:this.itemText,itemValue:this.itemValue,noDataText:this.$vuetify.lang.t(this.noDataText),selectedItems:this.selectedItems},on:{select:this.selectItem},scopedSlots:{item:this.$scopedSlots.item}}},staticList(){return(this.$slots["no-data"]||this.$slots["prepend-item"]||this.$slots["append-item"])&&Ns("assert: staticList should not be called if slots are used"),this.$createElement(oS,this.listData)},virtualizedItems(){return this.$_menuProps.auto?this.computedItems:this.computedItems.slice(0,this.lastItem)},menuCanShow:()=>!0,$_menuProps(){let r=typeof this.menuProps=="string"?this.menuProps.split(","):this.menuProps;return Array.isArray(r)&&(r=r.reduce((e,t)=>(e[t.trim()]=!0,e),{})),{...kv,eager:this.eager,value:this.menuCanShow&&this.isMenuActive,nudgeBottom:r.offsetY?1:0,...r}}},watch:{internalValue(r){this.initialValue=r,this.setSelectedItems(),this.multiple&&this.$nextTick(()=>{var e;(e=this.$refs.menu)===null||e===void 0||e.updateDimensions()}),this.hideSelected&&this.$nextTick(()=>{this.onScroll()})},isMenuActive(r){window.setTimeout(()=>this.onMenuActiveChange(r))},items:{immediate:!0,handler(r){this.cacheItems&&this.$nextTick(()=>{this.cachedItems=this.filterDuplicates(this.cachedItems.concat(r))}),this.setSelectedItems()}}},methods:{blur(r){ae.options.methods.blur.call(this,r),this.isMenuActive=!1,this.isFocused=!1,this.selectedIndex=-1,this.setMenuIndex(-1)},activateMenu(){!this.isInteractive||this.isMenuActive||(this.isMenuActive=!0)},clearableCallback(){this.setValue(this.multiple?[]:null),this.setMenuIndex(-1),this.$nextTick(()=>this.$refs.input&&this.$refs.input.focus()),this.openOnClear&&(this.isMenuActive=!0)},closeConditional(r){return this.isMenuActive?!this._isDestroyed&&(!this.getContent()||!this.getContent().contains(r.target))&&this.$el&&!this.$el.contains(r.target)&&r.target!==this.$el:!0},filterDuplicates(r){const e=new Map;for(let t=0;t<r.length;++t){const s=r[t];if(s==null)continue;if(s.header||s.divider){e.set(s,s);continue}const n=this.getValue(s);!e.has(n)&&e.set(n,s)}return Array.from(e.values())},findExistingIndex(r){const e=this.getValue(r);return(this.internalValue||[]).findIndex(t=>this.valueComparator(this.getValue(t),e))},getContent(){return this.$refs.menu&&this.$refs.menu.$refs.content},genChipSelection(r,e){const t=this.isDisabled||this.getDisabled(r),s=!t&&this.isInteractive;return this.$createElement(hr,{staticClass:"v-chip--select",attrs:{tabindex:-1},props:{close:this.deletableChips&&s,disabled:t,inputValue:e===this.selectedIndex,small:this.smallChips},on:{click:n=>{s&&(n.stopPropagation(),this.selectedIndex=e)},"click:close":()=>this.onChipInput(r)},key:JSON.stringify(this.getValue(r))},this.getText(r))},genCommaSelection(r,e,t){const s=e===this.selectedIndex&&this.computedColor,n=this.isDisabled||this.getDisabled(r);return this.$createElement("div",this.setTextColor(s,{staticClass:"v-select__selection v-select__selection--comma",class:{"v-select__selection--disabled":n},key:JSON.stringify(this.getValue(r))}),`${this.getText(r)}${t?"":", "}`)},genDefaultSlot(){const r=this.genSelections(),e=this.genInput();return Array.isArray(r)?r.push(e):(r.children=r.children||[],r.children.push(e)),[this.genFieldset(),this.$createElement("div",{staticClass:"v-select__slot",directives:this.directives},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,r,this.suffix?this.genAffix("suffix"):null,this.genClearIcon(),this.genIconSlot(),this.genHiddenInput()]),this.genMenu(),this.genProgress()]},genIcon(r,e,t){const s=Ct.options.methods.genIcon.call(this,r,e,t);return r==="append"&&(s.children[0].data=as(s.children[0].data,{attrs:{tabindex:s.children[0].componentOptions.listeners&&"-1","aria-hidden":"true","aria-label":void 0}})),s},genInput(){const r=ae.options.methods.genInput.call(this);return delete r.data.attrs.name,r.data=as(r.data,{domProps:{value:null},attrs:{readonly:!0,type:"text","aria-readonly":String(this.isReadonly),"aria-activedescendant":at(this.$refs.menu,"activeTile.id"),autocomplete:at(r.data,"attrs.autocomplete","off"),placeholder:!this.isDirty&&(this.persistentPlaceholder||this.isFocused||!this.hasLabel)?this.placeholder:void 0},on:{keypress:this.onKeyPress}}),r},genHiddenInput(){return this.$createElement("input",{domProps:{value:this.lazyValue},attrs:{type:"hidden",name:this.attrs$.name}})},genInputSlot(){const r=ae.options.methods.genInputSlot.call(this);return r.data.attrs={...r.data.attrs,role:"button","aria-haspopup":"listbox","aria-expanded":String(this.isMenuActive),"aria-owns":this.computedOwns},r},genList(){return this.$slots["no-data"]||this.$slots["prepend-item"]||this.$slots["append-item"]?this.genListWithSlot():this.staticList},genListWithSlot(){const r=["prepend-item","no-data","append-item"].filter(e=>this.$slots[e]).map(e=>this.$createElement("template",{slot:e},this.$slots[e]));return this.$createElement(oS,{...this.listData},r)},genMenu(){const r=this.$_menuProps;return r.activator=this.$refs["input-slot"],"attach"in r||(this.attach===""||this.attach===!0||this.attach==="attach"?r.attach=this.$el:r.attach=this.attach),this.$createElement(Dt,{attrs:{role:void 0},props:r,on:{input:e=>{this.isMenuActive=e,this.isFocused=e},scroll:this.onScroll},ref:"menu"},[this.genList()])},genSelections(){let r=this.selectedItems.length;const e=new Array(r);let t;for(this.$scopedSlots.selection?t=this.genSlotSelection:this.hasChips?t=this.genChipSelection:t=this.genCommaSelection;r--;)e[r]=t(this.selectedItems[r],r,r===e.length-1);return this.$createElement("div",{staticClass:"v-select__selections"},e)},genSlotSelection(r,e){return this.$scopedSlots.selection({attrs:{class:"v-chip--select"},parent:this,item:r,index:e,select:t=>{t.stopPropagation(),this.selectedIndex=e},selected:e===this.selectedIndex,disabled:!this.isInteractive})},getMenuIndex(){return this.$refs.menu?this.$refs.menu.listIndex:-1},getDisabled(r){return Rn(r,this.itemDisabled,!1)},getText(r){return Rn(r,this.itemText,r)},getValue(r){return Rn(r,this.itemValue,this.getText(r))},onBlur(r){r&&this.$emit("blur",r)},onChipInput(r){this.multiple?this.selectItem(r):this.setValue(null),this.selectedItems.length===0?this.isMenuActive=!0:this.isMenuActive=!1,this.selectedIndex=-1},onClick(r){this.isInteractive&&(this.isAppendInner(r.target)||(this.isMenuActive=!0),this.isFocused||(this.isFocused=!0,this.$emit("focus")),this.$emit("click",r))},onEscDown(r){r.preventDefault(),this.isMenuActive&&(r.stopPropagation(),this.isMenuActive=!1)},onKeyPress(r){if(this.multiple||!this.isInteractive||this.disableLookup||r.key.length>1||r.ctrlKey||r.metaKey||r.altKey)return;const e=1e3,t=performance.now();t-this.keyboardLookupLastTime>e&&(this.keyboardLookupPrefix=""),this.keyboardLookupPrefix+=r.key.toLowerCase(),this.keyboardLookupLastTime=t;const s=this.allItems.findIndex(i=>{var a;return((a=this.getText(i))!==null&&a!==void 0?a:"").toString().toLowerCase().startsWith(this.keyboardLookupPrefix)}),n=this.allItems[s];s!==-1&&(this.lastItem=Math.max(this.lastItem,s+5),this.setValue(this.returnObject?n:this.getValue(n)),this.$nextTick(()=>this.$refs.menu.getTiles()),setTimeout(()=>this.setMenuIndex(s)))},onKeyDown(r){if(this.isReadonly&&r.keyCode!==Pe.tab)return;const e=r.keyCode,t=this.$refs.menu;if(this.$emit("keydown",r),!!t){if(this.isMenuActive&&[Pe.up,Pe.down,Pe.home,Pe.end,Pe.enter].includes(e)&&this.$nextTick(()=>{t.changeListIndex(r),this.$emit("update:list-index",t.listIndex)}),[Pe.enter,Pe.space].includes(e)&&this.activateMenu(),!this.isMenuActive&&[Pe.up,Pe.down,Pe.home,Pe.end].includes(e))return this.onUpDown(r);if(e===Pe.esc)return this.onEscDown(r);if(e===Pe.tab)return this.onTabDown(r);if(e===Pe.space)return this.onSpaceDown(r)}},onMenuActiveChange(r){if(this.multiple&&!r||this.getMenuIndex()>-1)return;const e=this.$refs.menu;if(!(!e||!this.isDirty)){this.$refs.menu.getTiles();for(let t=0;t<e.tiles.length;t++)if(e.tiles[t].getAttribute("aria-selected")==="true"){this.setMenuIndex(t);break}}},onMouseUp(r){this.hasMouseDown&&r.which!==3&&this.isInteractive&&this.isAppendInner(r.target)&&this.$nextTick(()=>this.isMenuActive=!this.isMenuActive),ae.options.methods.onMouseUp.call(this,r)},onScroll(){if(!this.isMenuActive)requestAnimationFrame(()=>{const r=this.getContent();r&&(r.scrollTop=0)});else{if(this.lastItem>this.computedItems.length)return;this.getContent().scrollHeight-(this.getContent().scrollTop+this.getContent().clientHeight)<200&&(this.lastItem+=20)}},onSpaceDown(r){r.preventDefault()},onTabDown(r){const e=this.$refs.menu;if(!e)return;const t=e.activeTile;!this.multiple&&t&&this.isMenuActive?(r.preventDefault(),r.stopPropagation(),t.click()):this.blur(r)},onUpDown(r){const e=this.$refs.menu;if(!e)return;if(r.preventDefault(),this.multiple)return this.activateMenu();const t=r.keyCode;e.isBooted=!0,window.requestAnimationFrame(()=>{if(e.getTiles(),!e.hasClickableTiles)return this.activateMenu();switch(t){case Pe.up:e.prevTile();break;case Pe.down:e.nextTile();break;case Pe.home:e.firstTile();break;case Pe.end:e.lastTile();break}this.selectItem(this.allItems[this.getMenuIndex()])})},selectItem(r){if(!this.multiple)this.setValue(this.returnObject?r:this.getValue(r)),this.isMenuActive=!1;else{const e=(this.internalValue||[]).slice(),t=this.findExistingIndex(r);if(t!==-1?e.splice(t,1):e.push(r),this.setValue(e.map(s=>this.returnObject?s:this.getValue(s))),this.hideSelected)this.setMenuIndex(-1);else{const s=this.computedItems.indexOf(r);~s&&(this.$nextTick(()=>this.$refs.menu.getTiles()),setTimeout(()=>this.setMenuIndex(s)))}}},setMenuIndex(r){this.$refs.menu&&(this.$refs.menu.listIndex=r)},setSelectedItems(){const r=[],e=!this.multiple||!Array.isArray(this.internalValue)?[this.internalValue]:this.internalValue;for(const t of e){const s=this.allItems.findIndex(n=>this.valueComparator(this.getValue(n),this.getValue(t)));s>-1&&r.push(this.allItems[s])}this.selectedItems=r},setValue(r){this.valueComparator(r,this.internalValue)||(this.internalValue=r,this.$emit("change",r))},isAppendInner(r){const e=this.$refs["append-inner"];return e&&(e===r||e.contains(r))}}}),lS={...kv,offsetY:!0,offsetOverflow:!0,transition:!1},ic=Re.extend({name:"v-autocomplete",props:{autoSelectFirst:{type:Boolean,default:!1},filter:{type:Function,default:(r,e,t)=>t.toLocaleLowerCase().indexOf(e.toLocaleLowerCase())>-1},hideNoData:Boolean,menuProps:{type:Re.options.props.menuProps.type,default:()=>lS},noFilter:Boolean,searchInput:{type:String}},data(){return{lazySearch:this.searchInput}},computed:{classes(){return{...Re.options.computed.classes.call(this),"v-autocomplete":!0,"v-autocomplete--is-selecting-index":this.selectedIndex>-1}},computedItems(){return this.filteredItems},selectedValues(){return this.selectedItems.map(r=>this.getValue(r))},hasDisplayedItems(){return this.hideSelected?this.filteredItems.some(r=>!this.hasItem(r)):this.filteredItems.length>0},currentRange(){return this.selectedItem==null?0:String(this.getText(this.selectedItem)).length},filteredItems(){return!this.isSearching||this.noFilter||this.internalSearch==null?this.allItems:this.allItems.filter(r=>{const e=Rn(r,this.itemText),t=e!=null?String(e):"";return this.filter(r,String(this.internalSearch),t)})},internalSearch:{get(){return this.lazySearch},set(r){this.lazySearch!==r&&(this.lazySearch=r,this.$emit("update:search-input",r))}},isAnyValueAllowed(){return!1},isDirty(){return this.searchIsDirty||this.selectedItems.length>0},isSearching(){return this.multiple&&this.searchIsDirty||this.searchIsDirty&&this.internalSearch!==this.getText(this.selectedItem)},menuCanShow(){return this.isFocused?this.hasDisplayedItems||!this.hideNoData:!1},$_menuProps(){const r=Re.options.computed.$_menuProps.call(this);return r.contentClass=`v-autocomplete__content ${r.contentClass||""}`.trim(),{...lS,...r}},searchIsDirty(){return this.internalSearch!=null&&this.internalSearch!==""},selectedItem(){return this.multiple?null:this.selectedItems.find(r=>this.valueComparator(this.getValue(r),this.getValue(this.internalValue)))},listData(){const r=Re.options.computed.listData.call(this);return r.props={...r.props,items:this.virtualizedItems,noFilter:this.noFilter||!this.isSearching||!this.filteredItems.length,searchInput:this.internalSearch},r}},watch:{filteredItems:"onFilteredItemsChanged",internalValue:"setSearch",isFocused(r){r?(document.addEventListener("copy",this.onCopy),this.$refs.input&&this.$refs.input.select()):(document.removeEventListener("copy",this.onCopy),this.blur(),this.updateSelf())},isMenuActive(r){r||!this.hasSlot||(this.lazySearch=null)},items(r,e){!(e&&e.length)&&this.hideNoData&&this.isFocused&&!this.isMenuActive&&r.length&&this.activateMenu()},searchInput(r){this.lazySearch=r},internalSearch:"onInternalSearchChanged",itemText:"updateSelf"},created(){this.setSearch()},destroyed(){document.removeEventListener("copy",this.onCopy)},methods:{onFilteredItemsChanged(r,e){if(r!==e){if(!this.autoSelectFirst){const t=e[this.$refs.menu.listIndex];t?this.setMenuIndex(r.findIndex(s=>s===t)):this.setMenuIndex(-1),this.$emit("update:list-index",this.$refs.menu.listIndex)}this.$nextTick(()=>{!this.internalSearch||r.length!==1&&!this.autoSelectFirst||(this.$refs.menu.getTiles(),this.autoSelectFirst&&r.length&&(this.setMenuIndex(0),this.$emit("update:list-index",this.$refs.menu.listIndex)))})}},onInternalSearchChanged(){this.updateMenuDimensions()},updateMenuDimensions(){this.isMenuActive&&this.$refs.menu&&this.$refs.menu.updateDimensions()},changeSelectedIndex(r){this.searchIsDirty||(this.multiple&&r===Pe.left?this.selectedIndex===-1?this.selectedIndex=this.selectedItems.length-1:this.selectedIndex--:this.multiple&&r===Pe.right?this.selectedIndex>=this.selectedItems.length-1?this.selectedIndex=-1:this.selectedIndex++:(r===Pe.backspace||r===Pe.delete)&&this.deleteCurrentItem())},deleteCurrentItem(){const r=this.selectedIndex,e=this.selectedItems[r];if(!this.isInteractive||this.getDisabled(e))return;const t=this.selectedItems.length-1;if(this.selectedIndex===-1&&t!==0){this.selectedIndex=t;return}const s=this.selectedItems.length,n=r!==s-1?r:r-1;this.selectedItems[n]?this.selectItem(e):this.setValue(this.multiple?[]:null),this.selectedIndex=n},clearableCallback(){this.internalSearch=null,Re.options.methods.clearableCallback.call(this)},genInput(){const r=ae.options.methods.genInput.call(this);return r.data=as(r.data,{attrs:{"aria-activedescendant":at(this.$refs.menu,"activeTile.id"),autocomplete:at(r.data,"attrs.autocomplete","off")},domProps:{value:this.internalSearch}}),r},genInputSlot(){const r=Re.options.methods.genInputSlot.call(this);return r.data.attrs.role="combobox",r},genSelections(){return this.hasSlot||this.multiple?Re.options.methods.genSelections.call(this):[]},onClick(r){this.isInteractive&&(this.selectedIndex>-1?this.selectedIndex=-1:this.onFocus(),this.isAppendInner(r.target)||this.activateMenu())},onInput(r){if(this.selectedIndex>-1||!r.target)return;const e=r.target,t=e.value;e.value&&this.activateMenu(),!this.multiple&&t===""&&this.deleteCurrentItem(),this.internalSearch=t,this.badInput=e.validity&&e.validity.badInput},onKeyDown(r){const e=r.keyCode;(r.ctrlKey||![Pe.home,Pe.end].includes(e))&&Re.options.methods.onKeyDown.call(this,r),this.changeSelectedIndex(e)},onSpaceDown(r){},onTabDown(r){Re.options.methods.onTabDown.call(this,r),this.updateSelf()},onUpDown(r){r.preventDefault(),this.activateMenu()},selectItem(r){Re.options.methods.selectItem.call(this,r),this.setSearch()},setSelectedItems(){Re.options.methods.setSelectedItems.call(this),this.isFocused||this.setSearch()},setSearch(){this.$nextTick(()=>{(!this.multiple||!this.internalSearch||!this.isMenuActive)&&(this.internalSearch=!this.selectedItems.length||this.multiple||this.hasSlot?null:this.getText(this.selectedItem))})},updateSelf(){!this.searchIsDirty&&!this.internalValue||!this.multiple&&!this.valueComparator(this.internalSearch,this.getValue(this.internalValue))&&this.setSearch()},hasItem(r){return this.selectedValues.indexOf(this.getValue(r))>-1},onCopy(r){var e,t;if(this.selectedIndex===-1)return;const s=this.selectedItems[this.selectedIndex],n=this.getText(s);(e=r.clipboardData)===null||e===void 0||e.setData("text/plain",n),(t=r.clipboardData)===null||t===void 0||t.setData("text/vnd.vuetify.autocomplete.item+plain",n),r.preventDefault()}}}),_6=be(ut,Cl(["left","bottom"]),Ke,Ya,c6).extend({name:"v-badge",props:{avatar:Boolean,bordered:Boolean,color:{type:String,default:"primary"},content:{required:!1},dot:Boolean,label:{type:String,default:"$vuetify.badge"},icon:String,inline:Boolean,offsetX:[Number,String],offsetY:[Number,String],overlap:Boolean,tile:Boolean,transition:{type:String,default:"scale-rotate-transition"},value:{default:!0}},computed:{classes(){return{"v-badge--avatar":this.avatar,"v-badge--bordered":this.bordered,"v-badge--bottom":this.bottom,"v-badge--dot":this.dot,"v-badge--icon":this.icon!=null,"v-badge--inline":this.inline,"v-badge--left":this.left,"v-badge--overlap":this.overlap,"v-badge--tile":this.tile,...this.themeClasses}},computedBottom(){return this.bottom?"auto":this.computedYOffset},computedLeft(){return this.isRtl?this.left?this.computedXOffset:"auto":this.left?"auto":this.computedXOffset},computedRight(){return this.isRtl?this.left?"auto":this.computedXOffset:this.left?this.computedXOffset:"auto"},computedTop(){return this.bottom?this.computedYOffset:"auto"},computedXOffset(){return this.calcPosition(this.offsetX)},computedYOffset(){return this.calcPosition(this.offsetY)},isRtl(){return this.$vuetify.rtl},offset(){return this.overlap?this.dot?8:12:this.dot?2:4},styles(){return this.inline?{}:{bottom:this.computedBottom,left:this.computedLeft,right:this.computedRight,top:this.computedTop}}},methods:{calcPosition(r){return`calc(100% - ${ge(r||this.offset)})`},genBadge(){const r=this.$vuetify.lang,e=this.$attrs["aria-label"]||r.t(this.label),t=this.setBackgroundColor(this.color,{staticClass:"v-badge__badge",style:this.styles,attrs:{"aria-atomic":this.$attrs["aria-atomic"]||"true","aria-label":e,"aria-live":this.$attrs["aria-live"]||"polite",title:this.$attrs.title,role:this.$attrs.role||"status"},directives:[{name:"show",value:this.isActive}]}),s=this.$createElement("span",t,[this.genBadgeContent()]);return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},[s]):s},genBadgeContent(){if(this.dot)return;const r=me(this,"badge");if(r)return r;if(this.content)return String(this.content);if(this.icon)return this.$createElement(S,this.icon)},genBadgeWrapper(){return this.$createElement("span",{staticClass:"v-badge__wrapper"},[this.genBadge()])}},render(r){const e=[this.genBadgeWrapper()],t=[me(this)],{"aria-atomic":s,"aria-label":n,"aria-live":i,role:a,title:o,...l}=this.$attrs;return this.inline&&this.left?t.unshift(e):t.push(e),r("span",{staticClass:"v-badge",attrs:l,class:this.classes},t)}}),uu=b.extend({name:"mobile",props:{mobileBreakpoint:{type:[Number,String],default(){return this.$vuetify?this.$vuetify.breakpoint.mobileBreakpoint:void 0},validator:r=>!isNaN(Number(r))||["xs","sm","md","lg","xl"].includes(String(r))}},computed:{isMobile(){const{mobile:r,width:e,name:t,mobileBreakpoint:s}=this.$vuetify.breakpoint;if(s===this.mobileBreakpoint)return r;const n=parseInt(this.mobileBreakpoint,10);return!isNaN(n)?e<n:t===this.mobileBreakpoint}},created(){this.$attrs.hasOwnProperty("mobile-break-point")&&U4("mobile-break-point","mobile-breakpoint",this)}}),e1=fr.extend({name:"button-group",provide(){return{btnToggle:this}},computed:{classes(){return fr.options.computed.classes.call(this)}},methods:{genData:fr.options.methods.genData}}),y6=be(ut,Ke,Ya).extend({name:"v-overlay",props:{absolute:Boolean,color:{type:String,default:"#212121"},dark:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.46},value:{default:!0},zIndex:{type:[Number,String],default:5}},computed:{__scrim(){const r=this.setBackgroundColor(this.color,{staticClass:"v-overlay__scrim",style:{opacity:this.computedOpacity}});return this.$createElement("div",r)},classes(){return{"v-overlay--absolute":this.absolute,"v-overlay--active":this.isActive,...this.themeClasses}},computedOpacity(){return Number(this.isActive?this.opacity:0)},styles(){return{zIndex:this.zIndex}}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-overlay__content"},me(this))}},render(r){const e=[this.__scrim];return this.isActive&&e.push(this.genContent()),r("div",{staticClass:"v-overlay",on:this.$listeners,class:this.classes,style:this.styles},e)}}),Jy=b.extend().extend({name:"overlayable",props:{hideOverlay:Boolean,overlayColor:String,overlayOpacity:[Number,String]},data(){return{animationFrame:0,overlay:null}},watch:{hideOverlay(r){this.isActive&&(r?this.removeOverlay():this.genOverlay())}},beforeDestroy(){this.removeOverlay()},methods:{createOverlay(){const r=new y6({propsData:{absolute:this.absolute,value:!1,color:this.overlayColor,opacity:this.overlayOpacity}});r.$mount();const e=this.absolute?this.$el.parentNode:document.querySelector("[data-app]");e&&e.insertBefore(r.$el,e.firstChild),this.overlay=r},genOverlay(){if(this.hideScroll(),!this.hideOverlay)return this.overlay||this.createOverlay(),this.animationFrame=requestAnimationFrame(()=>{this.overlay&&(this.activeZIndex!==void 0?this.overlay.zIndex=String(this.activeZIndex-1):this.$el&&(this.overlay.zIndex=Bc(this.$el)),this.overlay.value=!0)}),!0},removeOverlay(r=!0){this.overlay&&(S4(this.overlay.$el,"transitionend",()=>{!this.overlay||!this.overlay.$el||!this.overlay.$el.parentNode||this.overlay.value||this.isActive||(this.overlay.$el.parentNode.removeChild(this.overlay.$el),this.overlay.$destroy(),this.overlay=null)}),cancelAnimationFrame(this.animationFrame),this.overlay.value=!1),r&&this.showScroll()},scrollListener(r){if("key"in r){if(["INPUT","TEXTAREA","SELECT"].includes(r.target.tagName)||r.target.isContentEditable)return;const e=[Pe.up,Pe.pageup],t=[Pe.down,Pe.pagedown];if(e.includes(r.keyCode))r.deltaY=-1;else if(t.includes(r.keyCode))r.deltaY=1;else return}(r.target===this.overlay||r.type!=="keydown"&&r.target===document.body||this.checkPath(r))&&r.preventDefault()},hasScrollbar(r){if(!r||r.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(r);return(["auto","scroll"].includes(e.overflowY)||r.tagName==="SELECT")&&r.scrollHeight>r.clientHeight||["auto","scroll"].includes(e.overflowX)&&r.scrollWidth>r.clientWidth},shouldScroll(r,e){if(r.hasAttribute("data-app"))return!1;const t=e.shiftKey||e.deltaX?"x":"y",s=t==="y"?e.deltaY:e.deltaX||e.deltaY;let n,i;t==="y"?(n=r.scrollTop===0,i=r.scrollTop+r.clientHeight===r.scrollHeight):(n=r.scrollLeft===0,i=r.scrollLeft+r.clientWidth===r.scrollWidth);const a=s<0,o=s>0;return!n&&a||!i&&o?!0:(n||i)&&r.parentNode?this.shouldScroll(r.parentNode,e):!1},isInside(r,e){return r===e?!0:r===null||r===document.body?!1:this.isInside(r.parentNode,e)},checkPath(r){const e=A4(r);if(r.type==="keydown"&&e[0]===document.body){const t=this.$refs.dialog,s=window.getSelection().anchorNode;return t&&this.hasScrollbar(t)&&this.isInside(s,t)?!this.shouldScroll(t,r):!0}for(let t=0;t<e.length;t++){const s=e[t];if(s===document||s===document.documentElement||s===this.$refs.content)return!0;if(this.hasScrollbar(s))return!this.shouldScroll(s,r)}return!0},hideScroll(){this.$vuetify.breakpoint.smAndDown?document.documentElement.classList.add("overflow-y-hidden"):(FV(window,"wheel",this.scrollListener,{passive:!1}),window.addEventListener("keydown",this.scrollListener))},showScroll(){document.documentElement.classList.remove("overflow-y-hidden"),window.removeEventListener("wheel",this.scrollListener),window.removeEventListener("keydown",this.scrollListener)}}}),EU=be(dd,m6,Jy,g6,f6,ud),Qy=EU.extend({name:"v-dialog",directives:{ClickOutside:ad},props:{dark:Boolean,disabled:Boolean,fullscreen:Boolean,light:Boolean,maxWidth:[String,Number],noClickAnimation:Boolean,origin:{type:String,default:"center center"},persistent:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,transition:{type:[String,Boolean],default:"dialog-transition"},width:[String,Number]},data(){return{activatedBy:null,animate:!1,animateTimeout:-1,stackMinZIndex:200,previousActiveElement:null}},computed:{classes(){return{[`v-dialog ${this.contentClass}`.trim()]:!0,"v-dialog--active":this.isActive,"v-dialog--persistent":this.persistent,"v-dialog--fullscreen":this.fullscreen,"v-dialog--scrollable":this.scrollable,"v-dialog--animated":this.animate}},contentClasses(){return{"v-dialog__content":!0,"v-dialog__content--active":this.isActive}},hasActivator(){return!!(this.$slots.activator||this.$scopedSlots.activator)}},watch:{isActive(r){var e;r?(this.show(),this.hideScroll()):(this.removeOverlay(),this.unbind(),(e=this.previousActiveElement)===null||e===void 0||e.focus())},fullscreen(r){this.isActive&&(r?(this.hideScroll(),this.removeOverlay(!1)):(this.showScroll(),this.genOverlay()))}},created(){this.$attrs.hasOwnProperty("full-width")&&xl("full-width",this)},beforeMount(){this.$nextTick(()=>{this.isBooted=this.isActive,this.isActive&&this.show()})},beforeDestroy(){typeof window<"u"&&this.unbind()},methods:{animateClick(){this.animate=!1,this.$nextTick(()=>{this.animate=!0,window.clearTimeout(this.animateTimeout),this.animateTimeout=window.setTimeout(()=>this.animate=!1,150)})},closeConditional(r){const e=r.target;return!(this._isDestroyed||!this.isActive||this.$refs.content.contains(e)||this.overlay&&e&&!this.overlay.$el.contains(e))&&this.activeZIndex>=this.getMaxZIndex()},hideScroll(){this.fullscreen?document.documentElement.classList.add("overflow-y-hidden"):Jy.options.methods.hideScroll.call(this)},show(){!this.fullscreen&&!this.hideOverlay&&this.genOverlay(),this.$nextTick(()=>{this.$nextTick(()=>{var r,e;!((r=this.$refs.dialog)===null||r===void 0)&&r.contains(document.activeElement)||(this.previousActiveElement=document.activeElement,(e=this.$refs.dialog)===null||e===void 0||e.focus()),this.bind()})})},bind(){window.addEventListener("focusin",this.onFocusin)},unbind(){window.removeEventListener("focusin",this.onFocusin)},onClickOutside(r){this.$emit("click:outside",r),this.persistent?this.noClickAnimation||this.animateClick():this.isActive=!1},onKeydown(r){if(r.keyCode===Pe.esc&&!this.getOpenDependents().length)if(this.persistent)this.noClickAnimation||this.animateClick();else{this.isActive=!1;const e=this.getActivator();this.$nextTick(()=>e&&e.focus())}this.$emit("keydown",r)},onFocusin(r){if(!r||!this.retainFocus)return;const e=r.target;if(e&&this.$refs.dialog&&![document,this.$refs.dialog].includes(e)&&!this.$refs.dialog.contains(e)&&this.activeZIndex>=this.getMaxZIndex()&&!this.getOpenDependentElements().some(t=>t.contains(e))){const s=[...this.$refs.dialog.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])')].find(n=>!n.hasAttribute("disabled")&&!n.matches('[tabindex="-1"]'));s&&s.focus()}},genContent(){return this.showLazyContent(()=>[this.$createElement(p6,{props:{root:!0,light:this.light,dark:this.dark}},[this.$createElement("div",{class:this.contentClasses,attrs:{role:"dialog","aria-modal":this.hideOverlay?void 0:"true",...this.getScopeIdAttrs()},on:{keydown:this.onKeydown},style:{zIndex:this.activeZIndex},ref:"content"},[this.genTransition()])])])},genTransition(){const r=this.genInnerContent();return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,appear:!0}},[r]):r},genInnerContent(){const r={class:this.classes,attrs:{tabindex:this.isActive?0:void 0},ref:"dialog",directives:[{name:"click-outside",value:{handler:this.onClickOutside,closeConditional:this.closeConditional,include:this.getOpenDependentElements}},{name:"show",value:this.isActive}],style:{transformOrigin:this.origin}};return this.fullscreen||(r.style={...r.style,maxWidth:ge(this.maxWidth),width:ge(this.width)}),this.$createElement("div",r,this.getContentSlot())}},render(r){return r("div",{staticClass:"v-dialog__container",class:{"v-dialog__container--attached":this.attach===""||this.attach===!0||this.attach==="attach"}},[this.genActivator(),this.genContent()])}}),wm=be(e1,ut).extend({name:"v-btn-toggle",props:{backgroundColor:String,borderless:Boolean,dense:Boolean,group:Boolean,rounded:Boolean,shaped:Boolean,tile:Boolean},computed:{classes(){return{...e1.options.computed.classes.call(this),"v-btn-toggle":!0,"v-btn-toggle--borderless":this.borderless,"v-btn-toggle--dense":this.dense,"v-btn-toggle--group":this.group,"v-btn-toggle--rounded":this.rounded,"v-btn-toggle--shaped":this.shaped,"v-btn-toggle--tile":this.tile,...this.themeClasses}}},methods:{genData(){const r=this.setTextColor(this.color,{...e1.options.methods.genData.call(this)});return this.group?r:this.setBackgroundColor(this.backgroundColor,r)}}}),OU=b.extend({name:"mouse",methods:{getDefaultMouseEventHandlers(r,e,t=!1){const s=Object.keys(this.$listeners).filter(n=>n.endsWith(r)).reduce((n,i)=>(n[i]={event:i.slice(0,-r.length)},n),{});return this.getMouseEventHandlers({...s,["contextmenu"+r]:{event:"contextmenu",prevent:!0,result:!1}},e,t)},getMouseEventHandlers(r,e,t=!1){const s={};for(const n in r){const i=r[n];if(!this.$listeners[n])continue;const o=(i.passive?"&":(i.once?"~":"")+(i.capture?"!":""))+i.event,l=c=>{var u,d;const p=c;if(i.button===void 0||p.buttons>0&&p.button===i.button){if(i.prevent&&c.preventDefault(),i.stop&&c.stopPropagation(),c&&"touches"in c){const h=" ",f=(u=c.currentTarget)===null||u===void 0?void 0:u.className.split(h),v=document.elementsFromPoint(c.changedTouches[0].clientX,c.changedTouches[0].clientY).find(y=>y.className.split(h).some(C=>f.includes(C)));if(v&&!(!((d=c.target)===null||d===void 0)&&d.isSameNode(v))){v.dispatchEvent(new TouchEvent(c.type,{changedTouches:c.changedTouches,targetTouches:c.targetTouches,touches:c.touches}));return}}t?this.$emit(n,c,e(c)):this.$emit(n,e(c),c)}return i.result};o in s?Array.isArray(s[o])?s[o].push(l):s[o]=[s[o],l]:s[o]=l}return s}}}),He=be(Go,bs,Tt).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes(){return{"v-card":!0,...bs.options.computed.classes.call(this),"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised,...Tt.options.computed.classes.call(this)}},styles(){const r={...Tt.options.computed.styles.call(this)};return this.img&&(r.background=`url("${this.img}") center center / cover no-repeat`),r}},methods:{genProgress(){const r=Go.options.methods.genProgress.call(this);return r?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[r]):null}},render(r){const{tag:e,data:t}=this.generateRouteLink();return t.style=this.styles,this.isClickable&&(t.attrs=t.attrs||{},t.attrs.tabindex=0),r(e,this.setBackgroundColor(this.color,t),[this.genProgress(),me(this)])}}),pd=Gr("v-card__actions"),sa=Gr("v-card__subtitle"),Le=Gr("v-card__text"),Hr=Gr("v-card__title"),cS=fr.extend({name:"v-window",directives:{Touch:ld},provide(){return{windowGroup:this}},props:{activeClass:{type:String,default:"v-window-item--active"},continuous:Boolean,mandatory:{type:Boolean,default:!0},nextIcon:{type:[Boolean,String],default:"$next"},prevIcon:{type:[Boolean,String],default:"$prev"},reverse:Boolean,showArrows:Boolean,showArrowsOnHover:Boolean,touch:Object,touchless:Boolean,value:{required:!1},vertical:Boolean},data(){return{changedByDelimiters:!1,internalHeight:void 0,transitionHeight:void 0,transitionCount:0,isBooted:!1,isReverse:!1}},computed:{isActive(){return this.transitionCount>0},classes(){return{...fr.options.computed.classes.call(this),"v-window--show-arrows-on-hover":this.showArrowsOnHover}},computedTransition(){if(!this.isBooted)return"";const r=this.vertical?"y":"x",t=(this.internalReverse?!this.isReverse:this.isReverse)?"-reverse":"";return`v-window-${r}${t}-transition`},hasActiveItems(){return!!this.items.find(r=>!r.disabled)},hasNext(){return this.continuous||this.internalIndex<this.items.length-1},hasPrev(){return this.continuous||this.internalIndex>0},internalIndex(){return this.items.findIndex((r,e)=>this.internalValue===this.getValue(r,e))},internalReverse(){return this.$vuetify.rtl?!this.reverse:this.reverse}},watch:{internalIndex(r,e){this.isReverse=this.updateReverse(r,e)}},mounted(){window.requestAnimationFrame(()=>this.isBooted=!0)},methods:{genDefaultSlot(){return me(this)},genContainer(){const r=[this.genDefaultSlot()];return this.showArrows&&r.push(this.genControlIcons()),this.$createElement("div",{staticClass:"v-window__container",class:{"v-window__container--is-active":this.isActive},style:{height:this.internalHeight||this.transitionHeight}},r)},genIcon(r,e,t){var s,n,i;const a={click:c=>{c.stopPropagation(),this.changedByDelimiters=!0,t()}},o={"aria-label":this.$vuetify.lang.t(`$vuetify.carousel.${r}`)},l=(i=(n=(s=this.$scopedSlots)[r])===null||n===void 0?void 0:n.call(s,{on:a,attrs:o}))!==null&&i!==void 0?i:[this.$createElement(Be,{props:{icon:!0},attrs:o,on:a},[this.$createElement(S,{props:{large:!0}},e)])];return this.$createElement("div",{staticClass:`v-window__${r}`},l)},genControlIcons(){const r=[],e=this.$vuetify.rtl?this.nextIcon:this.prevIcon;if(this.hasPrev&&e&&typeof e=="string"){const s=this.genIcon("prev",e,this.prev);s&&r.push(s)}const t=this.$vuetify.rtl?this.prevIcon:this.nextIcon;if(this.hasNext&&t&&typeof t=="string"){const s=this.genIcon("next",t,this.next);s&&r.push(s)}return r},getNextIndex(r){const e=(r+1)%this.items.length;return this.items[e].disabled?this.getNextIndex(e):e},getPrevIndex(r){const e=(r+this.items.length-1)%this.items.length;return this.items[e].disabled?this.getPrevIndex(e):e},next(){if(!this.hasActiveItems||!this.hasNext)return;const r=this.getNextIndex(this.internalIndex),e=this.items[r];this.internalValue=this.getValue(e,r)},prev(){if(!this.hasActiveItems||!this.hasPrev)return;const r=this.getPrevIndex(this.internalIndex),e=this.items[r];this.internalValue=this.getValue(e,r)},updateReverse(r,e){const t=this.items.length,s=t-1;return t<=2?r<e:r===s&&e===0?!0:r===0&&e===s?!1:r<e}},render(r){const e={staticClass:"v-window",class:this.classes,directives:[]};if(!this.touchless){const t=this.touch||{left:()=>{this.$vuetify.rtl?this.prev():this.next()},right:()=>{this.$vuetify.rtl?this.next():this.prev()},end:s=>{s.stopPropagation()},start:s=>{s.stopPropagation()}};e.directives.push({name:"touch",value:t})}return r("div",e,[this.genContainer()])}}),TU=be(ym,ji("windowGroup","v-window-item","v-window")),uS=TU.extend().extend().extend({name:"v-window-item",directives:{Touch:ld},props:{disabled:Boolean,reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},value:{required:!1}},data(){return{isActive:!1,inTransition:!1}},computed:{classes(){return this.groupClasses},computedTransition(){return this.windowGroup.internalReverse?typeof this.reverseTransition<"u"?this.reverseTransition||"":this.windowGroup.computedTransition:typeof this.transition<"u"?this.transition||"":this.windowGroup.computedTransition}},methods:{genDefaultSlot(){return me(this)},genWindowItem(){return this.$createElement("div",{staticClass:"v-window-item",class:this.classes,directives:[{name:"show",value:this.isActive}],on:this.$listeners},this.genDefaultSlot())},onAfterTransition(){this.inTransition&&(this.inTransition=!1,this.windowGroup.transitionCount>0&&(this.windowGroup.transitionCount--,this.windowGroup.transitionCount===0&&(this.windowGroup.transitionHeight=void 0)))},onBeforeTransition(){this.inTransition||(this.inTransition=!0,this.windowGroup.transitionCount===0&&(this.windowGroup.transitionHeight=ge(this.windowGroup.$el.clientHeight)),this.windowGroup.transitionCount++)},onTransitionCancelled(){this.onAfterTransition()},onEnter(r){this.inTransition&&this.$nextTick(()=>{!this.computedTransition||!this.inTransition||(this.windowGroup.transitionHeight=ge(r.clientHeight))})}},render(r){return r("transition",{props:{name:this.computedTransition},on:{beforeEnter:this.onBeforeTransition,afterEnter:this.onAfterTransition,enterCancelled:this.onTransitionCancelled,beforeLeave:this.onBeforeTransition,afterLeave:this.onAfterTransition,leaveCancelled:this.onTransitionCancelled,enter:this.onEnter}},this.showLazyContent(()=>[this.genWindowItem()]))}}),b6=b.extend({name:"rippleable",directives:{ripple:os},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple(r={}){return this.ripple?(r.staticClass="v-input--selection-controls__ripple",r.directives=r.directives||[],r.directives.push({name:"ripple",value:{center:!0}}),this.$createElement("div",r)):null}}});function Dv(r){r.preventDefault()}const Uc=be(Ct,b6,Ky).extend({name:"selectable",model:{prop:"inputValue",event:"change"},props:{id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data(){return{hasColor:this.inputValue,lazyValue:this.inputValue}},computed:{computedColor(){if(this.isActive)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},isMultiple(){return this.multiple===!0||this.multiple===null&&Array.isArray(this.internalValue)},isActive(){const r=this.value,e=this.internalValue;return this.isMultiple?Array.isArray(e)?e.some(t=>this.valueComparator(t,r)):!1:this.trueValue===void 0||this.falseValue===void 0?r?this.valueComparator(r,e):!!e:this.valueComparator(e,this.trueValue)},isDirty(){return this.isActive},rippleState(){return!this.isDisabled&&!this.validationState?void 0:this.validationState}},watch:{inputValue(r){this.lazyValue=r,this.hasColor=r}},methods:{genLabel(){const r=Ct.options.methods.genLabel.call(this);return r&&(r.data.on={click:Dv},r)},genInput(r,e){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:r,type:r},e),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown,click:Dv},ref:"input"})},onClick(r){this.onChange(),this.$emit("click",r)},onChange(){if(!this.isInteractive)return;const r=this.value;let e=this.internalValue;if(this.isMultiple){Array.isArray(e)||(e=[]);const t=e.length;e=e.filter(s=>!this.valueComparator(s,r)),e.length===t&&e.push(r)}else this.trueValue!==void 0&&this.falseValue!==void 0?e=this.valueComparator(e,this.trueValue)?this.falseValue:this.trueValue:r?e=this.valueComparator(e,r)?null:r:e=!e;this.validate(!0,e),this.internalValue=e,this.hasColor=e},onFocus(r){this.isFocused=!0,this.$emit("focus",r)},onBlur(r){this.isFocused=!1,this.$emit("blur",r)},onKeydown(r){}}}),ir=Uc.extend({name:"v-checkbox",props:{indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},offIcon:{type:String,default:"$checkboxOff"},onIcon:{type:String,default:"$checkboxOn"}},data(){return{inputIndeterminate:this.indeterminate}},computed:{classes(){return{...Ct.options.computed.classes.call(this),"v-input--selection-controls":!0,"v-input--checkbox":!0,"v-input--indeterminate":this.inputIndeterminate}},computedIcon(){return this.inputIndeterminate?this.indeterminateIcon:this.isActive?this.onIcon:this.offIcon},validationState(){if(!(this.isDisabled&&!this.inputIndeterminate)){if(this.hasError&&this.shouldValidate)return"error";if(this.hasSuccess)return"success";if(this.hasColor!==null)return this.computedColor}}},watch:{indeterminate(r){this.$nextTick(()=>this.inputIndeterminate=r)},inputIndeterminate(r){this.$emit("update:indeterminate",r)},isActive(){this.indeterminate&&(this.inputIndeterminate=!1)}},methods:{genCheckbox(){const{title:r,...e}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(S,this.setTextColor(this.validationState,{props:{dense:this.dense,dark:this.dark,light:this.light}}),this.computedIcon),this.genInput("checkbox",{...e,"aria-checked":this.inputIndeterminate?"mixed":this.isActive.toString()}),this.genRipple(this.setTextColor(this.rippleState))])},genDefaultSlot(){return[this.genCheckbox(),this.genLabel()]}}});function dS(r){const t=Math.abs(r);return Math.sign(r)*(t/((1/.501-2)*(1-t)+1))}function pS(r,e,t,s){const n=r.clientWidth,i=t?e.content-r.offsetLeft-n:r.offsetLeft;t&&(s=-s);const a=e.wrapper+s,o=n+i,l=n*.4;return i<=s?s=Math.max(i-l,0):a<=o&&(s=Math.min(s-(a-o-l),e.content-e.wrapper)),t?-s:s}function kU(r,e,t){const{offsetLeft:s,clientWidth:n}=r;if(t){const i=e.content-s-n/2-e.wrapper/2;return-Math.min(e.content-e.wrapper,Math.max(0,i))}else{const i=s+n/2-e.wrapper/2;return Math.min(e.content-e.wrapper,Math.max(0,i))}}const Pc=be(fr,uu).extend({name:"base-slide-group",directives:{Resize:od,Touch:ld},props:{activeClass:{type:String,default:"v-slide-item--active"},centerActive:Boolean,nextIcon:{type:String,default:"$next"},prevIcon:{type:String,default:"$prev"},showArrows:{type:[Boolean,String],validator:r=>typeof r=="boolean"||["always","never","desktop","mobile"].includes(r)}},data:()=>({isOverflowing:!1,resizeTimeout:0,startX:0,isSwipingHorizontal:!1,isSwiping:!1,scrollOffset:0,widths:{content:0,wrapper:0}}),computed:{canTouch(){return typeof window<"u"},__cachedNext(){return this.genTransition("next")},__cachedPrev(){return this.genTransition("prev")},classes(){return{...fr.options.computed.classes.call(this),"v-slide-group":!0,"v-slide-group--has-affixes":this.hasAffixes,"v-slide-group--is-overflowing":this.isOverflowing}},hasAffixes(){switch(this.showArrows){case"always":return!0;case"desktop":return!this.isMobile;case!0:return this.isOverflowing||Math.abs(this.scrollOffset)>0;case"mobile":return this.isMobile||this.isOverflowing||Math.abs(this.scrollOffset)>0;case"never":return!1;default:return!this.isMobile&&(this.isOverflowing||Math.abs(this.scrollOffset)>0)}},hasNext(){if(!this.hasAffixes)return!1;const{content:r,wrapper:e}=this.widths;return r>Math.abs(this.scrollOffset)+e},hasPrev(){return this.hasAffixes&&this.scrollOffset!==0}},watch:{internalValue:"setWidths",isOverflowing:"setWidths",scrollOffset(r){this.$vuetify.rtl&&(r=-r);let e=r<=0?dS(-r):r>this.widths.content-this.widths.wrapper?-(this.widths.content-this.widths.wrapper)+dS(this.widths.content-this.widths.wrapper-r):-r;this.$vuetify.rtl&&(e=-e),this.$refs.content.style.transform=`translateX(${e}px)`}},mounted(){if(typeof ResizeObserver<"u"){const r=new ResizeObserver(()=>{this.onResize()});r.observe(this.$el),r.observe(this.$refs.content),this.$on("hook:destroyed",()=>{r.disconnect()})}else{let r=0;this.$on("hook:beforeUpdate",()=>{var e;r=(((e=this.$refs.content)===null||e===void 0?void 0:e.children)||[]).length}),this.$on("hook:updated",()=>{var e;r!==(((e=this.$refs.content)===null||e===void 0?void 0:e.children)||[]).length&&this.setWidths()})}},methods:{onScroll(){this.$refs.wrapper.scrollLeft=0},onFocusin(r){if(this.isOverflowing){for(const e of A4(r))for(const t of this.items)if(t.$el===e){this.scrollOffset=pS(t.$el,this.widths,this.$vuetify.rtl,this.scrollOffset);return}}},genNext(){const r=this.$scopedSlots.next?this.$scopedSlots.next({}):me(this,"next")||this.__cachedNext;return this.$createElement("div",{staticClass:"v-slide-group__next",class:{"v-slide-group__next--disabled":!this.hasNext},on:{click:()=>this.onAffixClick("next")},key:"next"},[r])},genContent(){return this.$createElement("div",{staticClass:"v-slide-group__content",ref:"content",on:{focusin:this.onFocusin}},me(this))},genData(){return{class:this.classes,directives:[{name:"resize",value:this.onResize}]}},genIcon(r){let e=r;this.$vuetify.rtl&&r==="prev"?e="next":this.$vuetify.rtl&&r==="next"&&(e="prev");const t=`${r[0].toUpperCase()}${r.slice(1)}`,s=this[`has${t}`];return!this.showArrows&&!s?null:this.$createElement(S,{props:{disabled:!s}},this[`${e}Icon`])},genPrev(){const r=this.$scopedSlots.prev?this.$scopedSlots.prev({}):me(this,"prev")||this.__cachedPrev;return this.$createElement("div",{staticClass:"v-slide-group__prev",class:{"v-slide-group__prev--disabled":!this.hasPrev},on:{click:()=>this.onAffixClick("prev")},key:"prev"},[r])},genTransition(r){return this.$createElement(Al,[this.genIcon(r)])},genWrapper(){return this.$createElement("div",{staticClass:"v-slide-group__wrapper",directives:[{name:"touch",value:{start:r=>this.overflowCheck(r,this.onTouchStart),move:r=>this.overflowCheck(r,this.onTouchMove),end:r=>this.overflowCheck(r,this.onTouchEnd)}}],ref:"wrapper",on:{scroll:this.onScroll}},[this.genContent()])},calculateNewOffset(r,e,t,s){const n=t?-1:1,i=n*s+(r==="prev"?-1:1)*e.wrapper;return n*Math.max(Math.min(i,e.content-e.wrapper),0)},onAffixClick(r){this.$emit(`click:${r}`),this.scrollTo(r)},onResize(){this._isDestroyed||this.setWidths()},onTouchStart(r){const{content:e}=this.$refs;this.startX=this.scrollOffset+r.touchstartX,e.style.setProperty("transition","none"),e.style.setProperty("willChange","transform")},onTouchMove(r){if(this.canTouch){if(!this.isSwiping){const e=r.touchmoveX-r.touchstartX,t=r.touchmoveY-r.touchstartY;this.isSwipingHorizontal=Math.abs(e)>Math.abs(t),this.isSwiping=!0}this.isSwipingHorizontal&&(this.scrollOffset=this.startX-r.touchmoveX,document.documentElement.style.overflowY="hidden")}},onTouchEnd(){if(!this.canTouch)return;const{content:r,wrapper:e}=this.$refs,t=r.clientWidth-e.clientWidth;r.style.setProperty("transition",null),r.style.setProperty("willChange",null),this.$vuetify.rtl?this.scrollOffset>0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset<=-t&&(this.scrollOffset=-t):this.scrollOffset<0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset>=t&&(this.scrollOffset=t),this.isSwiping=!1,document.documentElement.style.removeProperty("overflow-y")},overflowCheck(r,e){r.stopPropagation(),this.isOverflowing&&e(r)},scrollIntoView(){if(!this.selectedItem&&this.items.length){const r=this.items[this.items.length-1].$el.getBoundingClientRect(),e=this.$refs.wrapper.getBoundingClientRect();(this.$vuetify.rtl&&e.right<r.right||!this.$vuetify.rtl&&e.left>r.left)&&this.scrollTo("prev")}this.selectedItem&&(this.selectedIndex===0||!this.centerActive&&!this.isOverflowing?this.scrollOffset=0:this.centerActive?this.scrollOffset=kU(this.selectedItem.$el,this.widths,this.$vuetify.rtl):this.isOverflowing&&(this.scrollOffset=pS(this.selectedItem.$el,this.widths,this.$vuetify.rtl,this.scrollOffset)))},scrollTo(r){this.scrollOffset=this.calculateNewOffset(r,{content:this.$refs.content?this.$refs.content.clientWidth:0,wrapper:this.$refs.wrapper?this.$refs.wrapper.clientWidth:0},this.$vuetify.rtl,this.scrollOffset)},setWidths(){window.requestAnimationFrame(()=>{if(this._isDestroyed)return;const{content:r,wrapper:e}=this.$refs;this.widths={content:r?r.clientWidth:0,wrapper:e?e.clientWidth:0},this.isOverflowing=this.widths.wrapper+1<this.widths.content,this.scrollIntoView()})}},render(r){return r("div",this.genData(),[this.genPrev(),this.genWrapper(),this.genNext()])}});Pc.extend({name:"v-slide-group",provide(){return{slideGroup:this}}});const Mv=be(Ct,Go).extend({name:"v-slider",directives:{ClickOutside:ad},mixins:[Go],props:{disabled:Boolean,inverseLabel:Boolean,max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:1},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:r=>typeof r=="boolean"||r==="always"},thumbSize:{type:[Number,String],default:32},tickLabels:{type:Array,default:()=>[]},ticks:{type:[Boolean,String],default:!1,validator:r=>typeof r=="boolean"||r==="always"},tickSize:{type:[Number,String],default:2},trackColor:String,trackFillColor:String,value:[Number,String],vertical:Boolean},data:()=>({app:null,oldValue:null,thumbPressed:!1,mouseTimeout:-1,isFocused:!1,isActive:!1,noClick:!1,startOffset:0}),computed:{classes(){return{...Ct.options.computed.classes.call(this),"v-input__slider":!0,"v-input__slider--vertical":this.vertical,"v-input__slider--inverse-label":this.inverseLabel}},internalValue:{get(){return this.lazyValue},set(r){r=isNaN(r)?this.minValue:r;const e=this.roundValue(Math.min(Math.max(r,this.minValue),this.maxValue));e!==this.lazyValue&&(this.lazyValue=e,this.$emit("input",e))}},trackTransition(){return this.thumbPressed?this.showTicks||this.stepNumeric?"0.1s cubic-bezier(0.25, 0.8, 0.5, 1)":"none":""},minValue(){return parseFloat(this.min)},maxValue(){return parseFloat(this.max)},stepNumeric(){return this.step>0?parseFloat(this.step):0},inputWidth(){const r=(this.roundValue(this.internalValue)-this.minValue)/(this.maxValue-this.minValue)*100;return isNaN(r)?0:r},trackFillStyles(){const r=this.vertical?"bottom":"left",e=this.vertical?"top":"right",t=this.vertical?"height":"width",s=this.$vuetify.rtl?"auto":"0",n=this.$vuetify.rtl?"0":"auto",i=this.isDisabled?`calc(${this.inputWidth}% - 10px)`:`${this.inputWidth}%`;return{transition:this.trackTransition,[r]:s,[e]:n,[t]:i}},trackStyles(){const r=this.vertical?this.$vuetify.rtl?"bottom":"top":this.$vuetify.rtl?"left":"right",e=this.vertical?"height":"width",t="0px",s=this.isDisabled?`calc(${100-this.inputWidth}% - 10px)`:`calc(${100-this.inputWidth}%)`;return{transition:this.trackTransition,[r]:t,[e]:s}},showTicks(){return this.tickLabels.length>0||!!(!this.isDisabled&&this.stepNumeric&&this.ticks)},numTicks(){return Math.ceil((this.maxValue-this.minValue)/this.stepNumeric)},showThumbLabel(){return!this.isDisabled&&!!(this.thumbLabel||this.$scopedSlots["thumb-label"])},computedTrackColor(){if(!this.isDisabled)return this.trackColor?this.trackColor:this.isDark?this.validationState:this.validationState||"primary lighten-3"},computedTrackFillColor(){if(!this.isDisabled)return this.trackFillColor?this.trackFillColor:this.validationState||this.computedColor},computedThumbColor(){return this.thumbColor?this.thumbColor:this.validationState||this.computedColor}},watch:{min(r){const e=parseFloat(r);e>this.internalValue&&this.$emit("input",e)},max(r){const e=parseFloat(r);e<this.internalValue&&this.$emit("input",e)},value:{handler(r){this.internalValue=r},immediate:!0}},mounted(){this.app=document.querySelector("[data-app]")||xr("Missing v-app or a non-body wrapping element with the [data-app] attribute",this)},methods:{genDefaultSlot(){const r=[this.genLabel()],e=this.genSlider();return this.inverseLabel?r.unshift(e):r.push(e),r.push(this.genProgress()),r},genSlider(){return this.$createElement("div",{class:{"v-slider":!0,"v-slider--horizontal":!this.vertical,"v-slider--vertical":this.vertical,"v-slider--focused":this.isFocused,"v-slider--active":this.isActive,"v-slider--disabled":this.isDisabled,"v-slider--readonly":this.isReadonly,...this.themeClasses},directives:[{name:"click-outside",value:this.onBlur}],on:{click:this.onSliderClick,mousedown:this.onSliderMouseDown,touchstart:this.onSliderMouseDown}},this.genChildren())},genChildren(){return[this.genInput(),this.genTrackContainer(),this.genSteps(),this.genThumbContainer(this.internalValue,this.inputWidth,this.isActive,this.isFocused,this.onFocus,this.onBlur)]},genInput(){return this.$createElement("input",{attrs:{value:this.internalValue,id:this.computedId,disabled:!0,readonly:!0,tabindex:-1,...this.$attrs}})},genTrackContainer(){const r=[this.$createElement("div",this.setBackgroundColor(this.computedTrackColor,{staticClass:"v-slider__track-background",style:this.trackStyles})),this.$createElement("div",this.setBackgroundColor(this.computedTrackFillColor,{staticClass:"v-slider__track-fill",style:this.trackFillStyles}))];return this.$createElement("div",{staticClass:"v-slider__track-container",ref:"track"},r)},genSteps(){if(!this.step||!this.showTicks)return null;const r=parseFloat(this.tickSize),e=HV(this.numTicks+1),t=this.vertical?"bottom":this.$vuetify.rtl?"right":"left",s=this.vertical?this.$vuetify.rtl?"left":"right":"top";this.vertical&&e.reverse();const n=e.map(i=>{const a=[];this.tickLabels[i]&&a.push(this.$createElement("div",{staticClass:"v-slider__tick-label"},this.tickLabels[i]));const o=i*(100/this.numTicks),l=this.$vuetify.rtl?100-this.inputWidth<o:o<this.inputWidth;return this.$createElement("span",{key:i,staticClass:"v-slider__tick",class:{"v-slider__tick--filled":l},style:{width:`${r}px`,height:`${r}px`,[t]:`calc(${o}% - ${r/2}px)`,[s]:`calc(50% - ${r/2}px)`}},a)});return this.$createElement("div",{staticClass:"v-slider__ticks-container",class:{"v-slider__ticks-container--always-show":this.ticks==="always"||this.tickLabels.length>0}},n)},genThumbContainer(r,e,t,s,n,i,a="thumb"){const o=[this.genThumb()],l=this.genThumbLabelContent(r);return this.showThumbLabel&&o.push(this.genThumbLabel(l)),this.$createElement("div",this.setTextColor(this.computedThumbColor,{ref:a,key:a,staticClass:"v-slider__thumb-container",class:{"v-slider__thumb-container--active":t,"v-slider__thumb-container--focused":s,"v-slider__thumb-container--show-label":this.showThumbLabel},style:this.getThumbContainerStyles(e),attrs:{role:"slider",tabindex:this.isDisabled?-1:this.$attrs.tabindex?this.$attrs.tabindex:0,"aria-label":this.$attrs["aria-label"]||this.label,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this.internalValue,"aria-readonly":String(this.isReadonly),"aria-orientation":this.vertical?"vertical":"horizontal"},on:{focus:n,blur:i,keydown:this.onKeyDown}}),o)},genThumbLabelContent(r){return this.$scopedSlots["thumb-label"]?this.$scopedSlots["thumb-label"]({value:r}):[this.$createElement("span",[String(r)])]},genThumbLabel(r){const e=ge(this.thumbSize),t=this.vertical?`translateY(20%) translateY(${Number(this.thumbSize)/3-1}px) translateX(55%) rotate(135deg)`:"translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg)";return this.$createElement(oU,{props:{origin:"bottom center"}},[this.$createElement("div",{staticClass:"v-slider__thumb-label-container",directives:[{name:"show",value:this.isFocused||this.isActive||this.thumbLabel==="always"}]},[this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb-label",style:{height:e,width:e,transform:t}}),[this.$createElement("div",r)])])])},genThumb(){return this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb"}))},getThumbContainerStyles(r){const e=this.vertical?"top":"left";let t=this.$vuetify.rtl?100-r:r;return t=this.vertical?100-t:t,{transition:this.trackTransition,[e]:`${t}%`}},onSliderMouseDown(r){var e;if(r.preventDefault(),this.oldValue=this.internalValue,this.isActive=!0,!((e=r.target)===null||e===void 0)&&e.matches(".v-slider__thumb-container, .v-slider__thumb-container *")){this.thumbPressed=!0;const i=r.target.getBoundingClientRect(),a="touches"in r?r.touches[0]:r;this.startOffset=this.vertical?a.clientY-(i.top+i.height/2):a.clientX-(i.left+i.width/2)}else this.startOffset=0,window.clearTimeout(this.mouseTimeout),this.mouseTimeout=window.setTimeout(()=>{this.thumbPressed=!0},300);const t=jc?{passive:!0,capture:!0}:!0,s=jc?{passive:!0}:!1,n="touches"in r;this.onMouseMove(r),this.app.addEventListener(n?"touchmove":"mousemove",this.onMouseMove,s),S4(this.app,n?"touchend":"mouseup",this.onSliderMouseUp,t),this.$emit("start",this.internalValue)},onSliderMouseUp(r){r.stopPropagation(),window.clearTimeout(this.mouseTimeout),this.thumbPressed=!1;const e=jc?{passive:!0}:!1;this.app.removeEventListener("touchmove",this.onMouseMove,e),this.app.removeEventListener("mousemove",this.onMouseMove,e),this.$emit("mouseup",r),this.$emit("end",this.internalValue),Wt(this.oldValue,this.internalValue)||(this.$emit("change",this.internalValue),this.noClick=!0),this.isActive=!1},onMouseMove(r){r.type==="mousemove"&&(this.thumbPressed=!0),this.internalValue=this.parseMouseMove(r)},onKeyDown(r){if(!this.isInteractive)return;const e=this.parseKeyDown(r,this.internalValue);e==null||e<this.minValue||e>this.maxValue||(this.internalValue=e,this.$emit("change",e))},onSliderClick(r){if(this.noClick){this.noClick=!1;return}this.$refs.thumb.focus(),this.onMouseMove(r),this.$emit("change",this.internalValue)},onBlur(r){this.isFocused=!1,this.$emit("blur",r)},onFocus(r){this.isFocused=!0,this.$emit("focus",r)},parseMouseMove(r){const e=this.vertical?"top":"left",t=this.vertical?"height":"width",s=this.vertical?"clientY":"clientX",{[e]:n,[t]:i}=this.$refs.track.getBoundingClientRect(),a="touches"in r?r.touches[0][s]:r[s];let o=Math.min(Math.max((a-n-this.startOffset)/i,0),1)||0;return this.vertical&&(o=1-o),this.$vuetify.rtl&&(o=1-o),parseFloat(this.min)+o*(this.maxValue-this.minValue)},parseKeyDown(r,e){if(!this.isInteractive)return;const{pageup:t,pagedown:s,end:n,home:i,left:a,right:o,down:l,up:c}=Pe;if(![t,s,n,i,a,o,l,c].includes(r.keyCode))return;r.preventDefault();const u=this.stepNumeric||1,d=(this.maxValue-this.minValue)/u;if([a,o,l,c].includes(r.keyCode)){const h=(this.$vuetify.rtl?[a,c]:[o,c]).includes(r.keyCode)?1:-1,f=r.shiftKey?3:r.ctrlKey?2:1;e=e+h*u*f}else if(r.keyCode===i)e=this.minValue;else if(r.keyCode===n)e=this.maxValue;else{const p=r.keyCode===s?1:-1;e=e-p*u*(d>100?d/10:10)}return e},roundValue(r){if(!this.stepNumeric)return r;const e=this.step.toString().trim(),t=e.indexOf(".")>-1?e.length-e.indexOf(".")-1:0,s=this.minValue%this.stepNumeric,n=Math.round((r-s)/this.stepNumeric)*this.stepNumeric+s;return parseFloat(Math.min(n,this.maxValue).toFixed(t))}}}),DU=Object.freeze({base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"}),MU=Object.freeze({base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"}),RU=Object.freeze({base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",darken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"}),IU=Object.freeze({base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"}),FU=Object.freeze({base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"}),HU=Object.freeze({base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"}),jU=Object.freeze({base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"}),BU=Object.freeze({base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"}),NU=Object.freeze({base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"}),VU=Object.freeze({base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"}),zU=Object.freeze({base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"}),UU=Object.freeze({base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"}),WU=Object.freeze({base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"}),GU=Object.freeze({base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"}),qU=Object.freeze({base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"}),ZU=Object.freeze({base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"}),YU=Object.freeze({base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"}),KU=Object.freeze({base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"}),XU=Object.freeze({base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"}),JU=Object.freeze({black:"#000000",white:"#ffffff",transparent:"transparent"}),QU=Object.freeze({red:DU,pink:MU,purple:RU,deepPurple:IU,indigo:FU,blue:HU,lightBlue:jU,cyan:BU,teal:NU,green:VU,lightGreen:zU,lime:UU,yellow:WU,amber:GU,orange:qU,deepOrange:ZU,brown:YU,blueGrey:KU,grey:XU,shades:JU}),eW=cd.extend({name:"v-main",props:{tag:{type:String,default:"main"}},computed:{styles(){const{bar:r,top:e,right:t,footer:s,insetFooter:n,bottom:i,left:a}=this.$vuetify.application;return{paddingTop:`${e+r}px`,paddingRight:`${t}px`,paddingBottom:`${s+n+i}px`,paddingLeft:`${a}px`}}},render(r){const e={staticClass:"v-main",style:this.styles,ref:"main"};return r(this.tag,e,[r("div",{staticClass:"v-main__wrap"},me(this))])}}),ln=ic.extend({name:"v-combobox",props:{delimiters:{type:Array,default:()=>[]},returnObject:{type:Boolean,default:!0}},data:()=>({editingIndex:-1}),computed:{computedCounterValue(){return this.multiple?this.selectedItems.length:(this.internalSearch||"").toString().length},hasSlot(){return Re.options.computed.hasSlot.call(this)||this.multiple},isAnyValueAllowed(){return!0},menuCanShow(){return this.isFocused?this.hasDisplayedItems||!!this.$slots["no-data"]&&!this.hideNoData:!1},searchIsDirty(){return this.internalSearch!=null}},methods:{onInternalSearchChanged(r){if(r&&this.multiple&&this.delimiters.length){const e=this.delimiters.find(t=>r.endsWith(t));e!=null&&(this.internalSearch=r.slice(0,r.length-e.length),this.updateTags())}this.updateMenuDimensions()},genInput(){const r=ic.options.methods.genInput.call(this);return delete r.data.attrs.name,r.data.on.paste=this.onPaste,r},genChipSelection(r,e){const t=Re.options.methods.genChipSelection.call(this,r,e);return this.multiple&&(t.componentOptions.listeners={...t.componentOptions.listeners,dblclick:()=>{this.editingIndex=e,this.internalSearch=this.getText(r),this.selectedIndex=-1}}),t},onChipInput(r){Re.options.methods.onChipInput.call(this,r),this.editingIndex=-1},onEnterDown(r){r.preventDefault(),!(this.getMenuIndex()>-1)&&this.$nextTick(this.updateSelf)},onKeyDown(r){const e=r.keyCode;(r.ctrlKey||![Pe.home,Pe.end].includes(e))&&Re.options.methods.onKeyDown.call(this,r),this.multiple&&e===Pe.left&&this.$refs.input.selectionStart===0?this.updateSelf():e===Pe.enter&&this.onEnterDown(r),this.changeSelectedIndex(e)},onTabDown(r){if(this.multiple&&this.internalSearch&&this.getMenuIndex()===-1)return r.preventDefault(),r.stopPropagation(),this.updateTags();ic.options.methods.onTabDown.call(this,r)},selectItem(r){this.editingIndex>-1?this.updateEditing():(ic.options.methods.selectItem.call(this,r),this.internalSearch&&this.multiple&&this.getText(r).toLocaleLowerCase().includes(this.internalSearch.toLocaleLowerCase())&&(this.internalSearch=null))},setSelectedItems(){this.internalValue==null||this.internalValue===""?this.selectedItems=[]:this.selectedItems=this.multiple?this.internalValue:[this.internalValue]},setValue(r){Re.options.methods.setValue.call(this,r===void 0?this.internalSearch:r)},updateEditing(){const r=this.internalValue.slice(),e=this.selectedItems.findIndex(t=>this.getText(t)===this.internalSearch);if(e>-1){const t=typeof r[e]=="object"?Object.assign({},r[e]):r[e];r.splice(e,1),r.push(t)}else r[this.editingIndex]=this.internalSearch;this.setValue(r),this.editingIndex=-1,this.internalSearch=null},updateCombobox(){if(!this.searchIsDirty)return;this.internalSearch!==this.getText(this.internalValue)&&this.setValue(),(!!this.$scopedSlots.selection||this.hasChips)&&(this.internalSearch=null)},updateSelf(){this.multiple?this.updateTags():this.updateCombobox()},updateTags(){const r=this.getMenuIndex();if(r<0&&!this.searchIsDirty||!this.internalSearch)return;if(this.editingIndex>-1)return this.updateEditing();const e=this.selectedItems.findIndex(s=>this.internalSearch===this.getText(s)),t=e>-1&&typeof this.selectedItems[e]=="object"?Object.assign({},this.selectedItems[e]):this.internalSearch;if(e>-1){const s=this.internalValue.slice();s.splice(e,1),this.setValue(s)}if(r>-1)return this.internalSearch=null;this.selectItem(t),this.internalSearch=null},onPaste(r){var e;if(this.$emit("paste",r),!this.multiple||this.searchIsDirty)return;const t=(e=r.clipboardData)===null||e===void 0?void 0:e.getData("text/vnd.vuetify.autocomplete.item+plain");t&&this.findExistingIndex(t)===-1&&(r.preventDefault(),Re.options.methods.selectItem.call(this,t))},clearableCallback(){this.editingIndex=-1,ic.options.methods.clearableCallback.call(this)}}}),Rv=b.extend({name:"v-data",inheritAttrs:!1,props:{items:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},sortBy:{type:[String,Array]},sortDesc:{type:[Boolean,Array]},customSort:{type:Function,default:zV},mustSort:Boolean,multiSort:Boolean,page:{type:Number,default:1},itemsPerPage:{type:Number,default:10},groupBy:{type:[String,Array],default:()=>[]},groupDesc:{type:[Boolean,Array],default:()=>[]},customGroup:{type:Function,default:VV},locale:{type:String,default:"en-US"},disableSort:Boolean,disablePagination:Boolean,disableFiltering:Boolean,search:String,customFilter:{type:Function,default:UV},serverItemsLength:{type:Number,default:-1}},data(){let r={page:this.page,itemsPerPage:this.itemsPerPage,sortBy:$r(this.sortBy),sortDesc:$r(this.sortDesc),groupBy:$r(this.groupBy),groupDesc:$r(this.groupDesc),mustSort:this.mustSort,multiSort:this.multiSort};this.options&&(r=Object.assign(r,this.options));const{sortBy:e,sortDesc:t,groupBy:s,groupDesc:n}=r,i=e.length-t.length,a=s.length-n.length;return i>0&&r.sortDesc.push(...qw(i,!1)),a>0&&r.groupDesc.push(...qw(a,!1)),{internalOptions:r}},computed:{itemsLength(){return this.serverItemsLength>=0?this.serverItemsLength:this.filteredItems.length},pageCount(){return this.internalOptions.itemsPerPage<=0?1:Math.ceil(this.itemsLength/this.internalOptions.itemsPerPage)},pageStart(){return this.internalOptions.itemsPerPage===-1||!this.items.length?0:(this.internalOptions.page-1)*this.internalOptions.itemsPerPage},pageStop(){return this.internalOptions.itemsPerPage===-1?this.itemsLength:this.items.length?Math.min(this.itemsLength,this.internalOptions.page*this.internalOptions.itemsPerPage):0},isGrouped(){return!!this.internalOptions.groupBy.length},pagination(){return{page:this.internalOptions.page,itemsPerPage:this.internalOptions.itemsPerPage,pageStart:this.pageStart,pageStop:this.pageStop,pageCount:this.pageCount,itemsLength:this.itemsLength}},filteredItems(){let r=this.items.slice();return!this.disableFiltering&&this.serverItemsLength<=0&&(r=this.customFilter(r,this.search)),r},computedItems(){let r=this.filteredItems.slice();return(!this.disableSort||this.internalOptions.groupBy.length)&&this.serverItemsLength<=0&&(r=this.sortItems(r)),!this.disablePagination&&this.serverItemsLength<=0&&(r=this.paginateItems(r)),r},groupedItems(){return this.isGrouped?this.groupItems(this.computedItems):null},scopedProps(){return{sort:this.sort,sortArray:this.sortArray,group:this.group,items:this.computedItems,options:this.internalOptions,updateOptions:this.updateOptions,pagination:this.pagination,groupedItems:this.groupedItems,originalItemsLength:this.items.length}},computedOptions(){return{...this.options}}},watch:{computedOptions:{handler(r,e){Wt(r,e)||this.updateOptions(r)},deep:!0,immediate:!0},internalOptions:{handler(r,e){Wt(r,e)||this.$emit("update:options",r)},deep:!0,immediate:!0},page(r){this.updateOptions({page:r})},"internalOptions.page"(r){this.$emit("update:page",r)},itemsPerPage(r){this.updateOptions({itemsPerPage:r})},"internalOptions.itemsPerPage"(r){this.$emit("update:items-per-page",r)},sortBy(r){this.updateOptions({sortBy:$r(r)})},"internalOptions.sortBy"(r,e){!Wt(r,e)&&this.$emit("update:sort-by",Array.isArray(this.sortBy)?r:r[0])},sortDesc(r){this.updateOptions({sortDesc:$r(r)})},"internalOptions.sortDesc"(r,e){!Wt(r,e)&&this.$emit("update:sort-desc",Array.isArray(this.sortDesc)?r:r[0])},groupBy(r){this.updateOptions({groupBy:$r(r)})},"internalOptions.groupBy"(r,e){!Wt(r,e)&&this.$emit("update:group-by",Array.isArray(this.groupBy)?r:r[0])},groupDesc(r){this.updateOptions({groupDesc:$r(r)})},"internalOptions.groupDesc"(r,e){!Wt(r,e)&&this.$emit("update:group-desc",Array.isArray(this.groupDesc)?r:r[0])},multiSort(r){this.updateOptions({multiSort:r})},"internalOptions.multiSort"(r){this.$emit("update:multi-sort",r)},mustSort(r){this.updateOptions({mustSort:r})},"internalOptions.mustSort"(r){this.$emit("update:must-sort",r)},pageCount:{handler(r){this.$emit("page-count",r)},immediate:!0},computedItems:{handler(r){this.$emit("current-items",r)},immediate:!0},pagination:{handler(r,e){Wt(r,e)||this.$emit("pagination",this.pagination)},immediate:!0}},methods:{toggle(r,e,t,s,n,i){let a=e.slice(),o=t.slice();const l=a.findIndex(c=>c===r);return l<0?(i||(a=[],o=[]),a.push(r),o.push(!1)):l>=0&&!o[l]?o[l]=!0:n?o[l]=!1:(a.splice(l,1),o.splice(l,1)),(!Wt(a,e)||!Wt(o,t))&&(s=1),{by:a,desc:o,page:s}},group(r){const{by:e,desc:t,page:s}=this.toggle(r,this.internalOptions.groupBy,this.internalOptions.groupDesc,this.internalOptions.page,!0,!1);this.updateOptions({groupBy:e,groupDesc:t,page:s})},sort(r){if(Array.isArray(r))return this.sortArray(r);const{by:e,desc:t,page:s}=this.toggle(r,this.internalOptions.sortBy,this.internalOptions.sortDesc,this.internalOptions.page,this.internalOptions.mustSort,this.internalOptions.multiSort);this.updateOptions({sortBy:e,sortDesc:t,page:s})},sortArray(r){const e=r.map(t=>{const s=this.internalOptions.sortBy.findIndex(n=>n===t);return s>-1?this.internalOptions.sortDesc[s]:!1});this.updateOptions({sortBy:r,sortDesc:e})},updateOptions(r){this.internalOptions={...this.internalOptions,...r,page:this.serverItemsLength<0?Math.max(1,Math.min(r.page||this.internalOptions.page,this.pageCount)):r.page||this.internalOptions.page}},sortItems(r){let e=[],t=[];return this.disableSort||(e=this.internalOptions.sortBy,t=this.internalOptions.sortDesc),this.internalOptions.groupBy.length&&(e=[...this.internalOptions.groupBy,...e],t=[...this.internalOptions.groupDesc,...t]),this.customSort(r,e,t,this.locale)},groupItems(r){return this.customGroup(r,this.internalOptions.groupBy,this.internalOptions.groupDesc)},paginateItems(r){return this.serverItemsLength===-1&&r.length<=this.pageStart&&(this.internalOptions.page=Math.max(1,Math.ceil(r.length/this.internalOptions.itemsPerPage))||1),r.slice(this.pageStart,this.pageStop)}},render(){return this.$scopedSlots.default&&this.$scopedSlots.default(this.scopedProps)}}),$6=b.extend({name:"v-data-footer",props:{options:{type:Object,required:!0},pagination:{type:Object,required:!0},itemsPerPageOptions:{type:Array,default:()=>[5,10,15,-1]},prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},itemsPerPageAllText:{type:String,default:"$vuetify.dataFooter.itemsPerPageAll"},showFirstLastPage:Boolean,showCurrentPage:Boolean,disablePagination:Boolean,disableItemsPerPage:Boolean,pageText:{type:String,default:"$vuetify.dataFooter.pageText"}},computed:{disableNextPageIcon(){return this.options.itemsPerPage<=0||this.options.page*this.options.itemsPerPage>=this.pagination.itemsLength||this.pagination.pageStop<0},computedDataItemsPerPageOptions(){return this.itemsPerPageOptions.map(r=>typeof r=="object"?r:this.genDataItemsPerPageOption(r))}},methods:{updateOptions(r){this.$emit("update:options",Object.assign({},this.options,r))},onFirstPage(){this.updateOptions({page:1})},onPreviousPage(){this.updateOptions({page:this.options.page-1})},onNextPage(){this.updateOptions({page:this.options.page+1})},onLastPage(){this.updateOptions({page:this.pagination.pageCount})},onChangeItemsPerPage(r){this.updateOptions({itemsPerPage:r,page:1})},genDataItemsPerPageOption(r){return{text:r===-1?this.$vuetify.lang.t(this.itemsPerPageAllText):String(r),value:r}},genItemsPerPageSelect(){let r=this.options.itemsPerPage;const e=this.computedDataItemsPerPageOptions;return e.length<=1?null:(e.find(t=>t.value===r)||(r=e[0]),this.$createElement("div",{staticClass:"v-data-footer__select"},[this.$vuetify.lang.t(this.itemsPerPageText),this.$createElement(Re,{attrs:{"aria-label":this.$vuetify.lang.t(this.itemsPerPageText)},props:{disabled:this.disableItemsPerPage,items:e,value:r,hideDetails:!0,auto:!0,minWidth:"75px"},on:{input:this.onChangeItemsPerPage}})]))},genPaginationInfo(){let r=["–"];const e=this.pagination.itemsLength;let t=this.pagination.pageStart,s=this.pagination.pageStop;return this.pagination.itemsLength&&this.pagination.itemsPerPage?(t=this.pagination.pageStart+1,s=e<this.pagination.pageStop||this.pagination.pageStop<0?e:this.pagination.pageStop,r=this.$scopedSlots["page-text"]?[this.$scopedSlots["page-text"]({pageStart:t,pageStop:s,itemsLength:e})]:[this.$vuetify.lang.t(this.pageText,t,s,e)]):this.$scopedSlots["page-text"]&&(r=[this.$scopedSlots["page-text"]({pageStart:t,pageStop:s,itemsLength:e})]),this.$createElement("div",{class:"v-data-footer__pagination"},r)},genIcon(r,e,t,s){return this.$createElement(Be,{props:{disabled:e||this.disablePagination,icon:!0,text:!0},on:{click:r},attrs:{"aria-label":t}},[this.$createElement(S,s)])},genIcons(){const r=[],e=[];return r.push(this.genIcon(this.onPreviousPage,this.options.page===1,this.$vuetify.lang.t("$vuetify.dataFooter.prevPage"),this.$vuetify.rtl?this.nextIcon:this.prevIcon)),e.push(this.genIcon(this.onNextPage,this.disableNextPageIcon,this.$vuetify.lang.t("$vuetify.dataFooter.nextPage"),this.$vuetify.rtl?this.prevIcon:this.nextIcon)),this.showFirstLastPage&&(r.unshift(this.genIcon(this.onFirstPage,this.options.page===1,this.$vuetify.lang.t("$vuetify.dataFooter.firstPage"),this.$vuetify.rtl?this.lastIcon:this.firstIcon)),e.push(this.genIcon(this.onLastPage,this.options.page>=this.pagination.pageCount||this.options.itemsPerPage===-1,this.$vuetify.lang.t("$vuetify.dataFooter.lastPage"),this.$vuetify.rtl?this.firstIcon:this.lastIcon))),[this.$createElement("div",{staticClass:"v-data-footer__icons-before"},r),this.showCurrentPage&&this.$createElement("span",[this.options.page.toString()]),this.$createElement("div",{staticClass:"v-data-footer__icons-after"},e)]}},render(){return this.$createElement("div",{staticClass:"v-data-footer"},[me(this,"prepend"),this.genItemsPerPageSelect(),this.genPaginationInfo(),this.genIcons()])}}),hS=be(uu,Ke).extend({name:"v-data-iterator",props:{...Rv.options.props,itemKey:{type:String,default:"id"},value:{type:Array,default:()=>[]},singleSelect:Boolean,expanded:{type:Array,default:()=>[]},mobileBreakpoint:{...uu.options.props.mobileBreakpoint,default:600},singleExpand:Boolean,loading:[Boolean,String],noResultsText:{type:String,default:"$vuetify.dataIterator.noResultsText"},noDataText:{type:String,default:"$vuetify.noDataText"},loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideDefaultFooter:Boolean,footerProps:Object,selectableKey:{type:String,default:"isSelectable"}},data:()=>({selection:{},expansion:{},internalCurrentItems:[],shiftKeyDown:!1,lastEntry:-1}),computed:{everyItem(){return!!this.selectableItems.length&&this.selectableItems.every(r=>this.isSelected(r))},someItems(){return this.selectableItems.some(r=>this.isSelected(r))},sanitizedFooterProps(){return P4(this.footerProps)},selectableItems(){return this.internalCurrentItems.filter(r=>this.isSelectable(r))}},watch:{value:{handler(r){this.selection=r.reduce((e,t)=>(e[at(t,this.itemKey)]=t,e),{})},immediate:!0},selection(r,e){Wt(Object.keys(r),Object.keys(e))||this.$emit("input",Object.values(r))},expanded:{handler(r){this.expansion=r.reduce((e,t)=>(e[at(t,this.itemKey)]=!0,e),{})},immediate:!0},expansion(r,e){if(Wt(r,e))return;const t=Object.keys(r).filter(n=>r[n]),s=t.length?this.items.filter(n=>t.includes(String(at(n,this.itemKey)))):[];this.$emit("update:expanded",s)}},created(){[["disable-initial-sort","sort-by"],["filter","custom-filter"],["pagination","options"],["total-items","server-items-length"],["hide-actions","hide-default-footer"],["rows-per-page-items","footer-props.items-per-page-options"],["rows-per-page-text","footer-props.items-per-page-text"],["prev-icon","footer-props.prev-icon"],["next-icon","footer-props.next-icon"]].forEach(([t,s])=>{this.$attrs.hasOwnProperty(t)&&qs(t,s,this)}),["expand","content-class","content-props","content-tag"].forEach(t=>{this.$attrs.hasOwnProperty(t)&&xl(t)})},mounted(){window.addEventListener("keydown",this.onKeyDown),window.addEventListener("keyup",this.onKeyUp)},beforeDestroy(){window.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("keyup",this.onKeyUp)},methods:{onKeyDown(r){this.shiftKeyDown=r.keyCode===Pe.shift||r.shiftKey},onKeyUp(r){(r.keyCode===Pe.shift||!r.shiftKey)&&(this.shiftKeyDown=!1)},toggleSelectAll(r){const e=Object.assign({},this.selection);for(let t=0;t<this.selectableItems.length;t++){const s=this.selectableItems[t];if(!this.isSelectable(s))continue;const n=at(s,this.itemKey);r?e[n]=s:delete e[n]}this.selection=e,this.$emit("toggle-select-all",{items:this.internalCurrentItems,value:r})},isSelectable(r){return at(r,this.selectableKey)!==!1},isSelected(r){return!!this.selection[at(r,this.itemKey)]||!1},select(r,e=!0,t=!0){if(!this.isSelectable(r))return;const s=this.singleSelect?{}:Object.assign({},this.selection),n=at(r,this.itemKey);e?s[n]=r:delete s[n];const i=this.selectableItems.findIndex(a=>at(a,this.itemKey)===n);if(this.lastEntry===-1)this.lastEntry=i;else if(this.shiftKeyDown&&!this.singleSelect&&t){const a=at(this.selectableItems[this.lastEntry],this.itemKey),o=Object.keys(this.selection).includes(String(a));this.multipleSelect(o,t,s,i)}if(this.lastEntry=i,this.singleSelect&&t){const a=Object.keys(this.selection),o=a.length&&at(this.selection[a[0]],this.itemKey);o&&o!==n&&this.$emit("item-selected",{item:this.selection[o],value:!1})}this.selection=s,t&&this.$emit("item-selected",{item:r,value:e})},multipleSelect(r=!0,e=!0,t,s){const n=s<this.lastEntry?s:this.lastEntry,i=s<this.lastEntry?this.lastEntry:s;for(let a=n;a<=i;a++){const o=this.selectableItems[a],l=at(o,this.itemKey);r?t[l]=o:delete t[l],e&&this.$emit("item-selected",{currentItem:o,value:r})}},isExpanded(r){return this.expansion[at(r,this.itemKey)]||!1},expand(r,e=!0){const t=this.singleExpand?{}:Object.assign({},this.expansion),s=at(r,this.itemKey);e?t[s]=!0:delete t[s],this.expansion=t,this.$emit("item-expanded",{item:r,value:e})},createItemProps(r,e){return{item:r,index:e,select:t=>this.select(r,t),isSelected:this.isSelected(r),expand:t=>this.expand(r,t),isExpanded:this.isExpanded(r),isMobile:this.isMobile}},genEmptyWrapper(r){return this.$createElement("div",r)},genEmpty(r,e){if(r===0&&this.loading){const t=me(this,"loading")||this.$vuetify.lang.t(this.loadingText);return this.genEmptyWrapper(t)}else if(r===0){const t=me(this,"noData")||this.$vuetify.lang.t(this.noDataText);return this.genEmptyWrapper(t)}else if(e===0){const t=me(this,"noResults")||this.$vuetify.lang.t(this.noResultsText);return this.genEmptyWrapper(t)}return null},genItems(r){const e=this.genEmpty(r.originalItemsLength,r.pagination.itemsLength);return e?[e]:this.$scopedSlots.default?this.$scopedSlots.default({...r,isSelected:this.isSelected,select:this.select,isExpanded:this.isExpanded,isMobile:this.isMobile,expand:this.expand}):this.$scopedSlots.item?r.items.map((t,s)=>this.$scopedSlots.item(this.createItemProps(t,s))):[]},genFooter(r){if(this.hideDefaultFooter)return null;const e={props:{...this.sanitizedFooterProps,options:r.options,pagination:r.pagination},on:{"update:options":s=>r.updateOptions(s)}},t=zp("footer.",this.$scopedSlots);return this.$createElement($6,{scopedSlots:t,...e})},genDefaultScopedSlot(r){const e={...r,someItems:this.someItems,everyItem:this.everyItem,toggleSelectAll:this.toggleSelectAll};return this.$createElement("div",{staticClass:"v-data-iterator"},[me(this,"header",e,!0),this.genItems(r),this.genFooter(r),me(this,"footer",e,!0)])}},render(){return this.$createElement(Rv,{props:this.$props,on:{"update:options":(r,e)=>!Wt(r,e)&&this.$emit("update:options",r),"update:page":r=>this.$emit("update:page",r),"update:items-per-page":r=>this.$emit("update:items-per-page",r),"update:sort-by":r=>this.$emit("update:sort-by",r),"update:sort-desc":r=>this.$emit("update:sort-desc",r),"update:group-by":r=>this.$emit("update:group-by",r),"update:group-desc":r=>this.$emit("update:group-desc",r),pagination:(r,e)=>!Wt(r,e)&&this.$emit("pagination",r),"current-items":r=>{this.internalCurrentItems=r,this.$emit("current-items",r)},"page-count":r=>this.$emit("page-count",r)},scopedSlots:{default:this.genDefaultScopedSlot}})}}),eb=be().extend({directives:{ripple:os},props:{headers:{type:Array,default:()=>[]},options:{type:Object,default:()=>({page:1,itemsPerPage:10,sortBy:[],sortDesc:[],groupBy:[],groupDesc:[],multiSort:!1,mustSort:!1})},checkboxColor:String,sortIcon:{type:String,default:"$sort"},everyItem:Boolean,someItems:Boolean,showGroupBy:Boolean,singleSelect:Boolean,disableSort:Boolean},methods:{genSelectAll(){var r;const e={props:{value:this.everyItem,indeterminate:!this.everyItem&&this.someItems,color:(r=this.checkboxColor)!==null&&r!==void 0?r:""},on:{input:t=>this.$emit("toggle-select-all",t)}};return this.$scopedSlots["data-table-select"]?this.$scopedSlots["data-table-select"](e):this.$createElement(bm,{staticClass:"v-data-table__checkbox",...e})},genSortIcon(){return this.$createElement(S,{staticClass:"v-data-table-header__icon",props:{size:18}},[this.sortIcon])}}}),tW=be(eb).extend({name:"v-data-table-header-mobile",props:{sortByText:{type:String,default:"$vuetify.dataTable.sortBy"}},methods:{genSortChip(r){const e=[r.item.text],t=this.options.sortBy.findIndex(i=>i===r.item.value),s=t>=0,n=this.options.sortDesc[t];return e.push(this.$createElement("div",{staticClass:"v-chip__close",class:{sortable:!0,active:s,asc:s&&!n,desc:s&&n}},[this.genSortIcon()])),this.$createElement(hr,{staticClass:"sortable",on:{click:i=>{i.stopPropagation(),this.$emit("sort",r.item.value)}}},e)},genSortSelect(r){return this.$createElement(Re,{props:{label:this.$vuetify.lang.t(this.sortByText),items:r,hideDetails:!0,multiple:this.options.multiSort,value:this.options.multiSort?this.options.sortBy:this.options.sortBy[0],menuProps:{closeOnContentClick:!0}},on:{change:e=>this.$emit("sort",e)},scopedSlots:{selection:e=>this.genSortChip(e)}})}},render(r){const e=[],t=this.headers.find(a=>a.value==="data-table-select");t&&!this.singleSelect&&e.push(this.$createElement("div",{class:["v-data-table-header-mobile__select",...$r(t.class)],attrs:{width:t.width}},[this.genSelectAll()]));const s=this.headers.filter(a=>a.sortable!==!1&&a.value!=="data-table-select").map(a=>({text:a.text,value:a.value}));!this.disableSort&&s.length&&e.push(this.genSortSelect(s));const n=e.length?r("th",[r("div",{staticClass:"v-data-table-header-mobile__wrapper"},e)]):void 0,i=r("tr",[n]);return r("thead",{staticClass:"v-data-table-header v-data-table-header-mobile"},[i])}}),rW=be(eb).extend({name:"v-data-table-header-desktop",methods:{genGroupByToggle(r){return this.$createElement("span",{on:{click:e=>{e.stopPropagation(),this.$emit("group",r.value)}}},["group"])},getAria(r,e){const t=i=>this.$vuetify.lang.t(`$vuetify.dataTable.ariaLabel.${i}`);let s="none",n=[t("sortNone"),t("activateAscending")];return r?(e?(s="descending",n=[t("sortDescending"),t(this.options.mustSort?"activateAscending":"activateNone")]):(s="ascending",n=[t("sortAscending"),t("activateDescending")]),{ariaSort:s,ariaLabel:n.join(" ")}):{ariaSort:s,ariaLabel:n.join(" ")}},genHeader(r){const e={attrs:{role:"columnheader",scope:"col","aria-label":r.text||""},style:{width:ge(r.width),minWidth:ge(r.width)},class:[`text-${r.align||"start"}`,...$r(r.class),r.divider&&"v-data-table__divider"],on:{}},t=[];if(r.value==="data-table-select"&&!this.singleSelect)return this.$createElement("th",e,[this.genSelectAll()]);if(t.push(this.$scopedSlots.hasOwnProperty(r.value)?this.$scopedSlots[r.value]({header:r}):this.$createElement("span",[r.text])),!this.disableSort&&(r.sortable||!r.hasOwnProperty("sortable"))){e.on.click=()=>this.$emit("sort",r.value);const s=this.options.sortBy.findIndex(l=>l===r.value),n=s>=0,i=this.options.sortDesc[s];e.class.push("sortable");const{ariaLabel:a,ariaSort:o}=this.getAria(n,i);e.attrs["aria-label"]+=`${r.text?": ":""}${a}`,e.attrs["aria-sort"]=o,n&&(e.class.push("active"),e.class.push(i?"desc":"asc")),r.align==="end"?t.unshift(this.genSortIcon()):t.push(this.genSortIcon()),this.options.multiSort&&n&&t.push(this.$createElement("span",{class:"v-data-table-header__sort-badge"},[String(s+1)]))}return this.showGroupBy&&r.groupable!==!1&&t.push(this.genGroupByToggle(r)),this.$createElement("th",e,t)}},render(){return this.$createElement("thead",{staticClass:"v-data-table-header"},[this.$createElement("tr",this.headers.map(r=>this.genHeader(r)))])}});function sW(r){if(r.model&&r.on&&r.on.input)if(Array.isArray(r.on.input)){const e=r.on.input.indexOf(r.model.callback);e>-1&&r.on.input.splice(e,1)}else delete r.on.input}function nW(r,e){const t=[];for(const s in r)r.hasOwnProperty(s)&&t.push(e("template",{slot:s},r[s]));return t}const iW=b.extend({name:"v-data-table-header",functional:!0,props:{...eb.options.props,mobile:Boolean},render(r,{props:e,data:t,slots:s}){sW(t);const n=nW(s(),r);return t=as(t,{props:e}),e.mobile?r(tW,t,n):r(rW,t,n)}});function aW(r){var e;return r.length!==1||!["td","th"].includes((e=r[0])===null||e===void 0?void 0:e.tag)}const oW=b.extend({name:"row",functional:!0,props:{headers:Array,index:Number,item:Object,rtl:Boolean},render(r,{props:e,slots:t,data:s}){const n=t(),i=e.headers.map(a=>{const o=[],l=at(e.item,a.value),c=a.value,u=s.scopedSlots&&s.scopedSlots.hasOwnProperty(c)&&s.scopedSlots[c],d=n.hasOwnProperty(c)&&n[c];u?o.push(...$r(u({item:e.item,isMobile:!1,header:a,index:e.index,value:l}))):d?o.push(...$r(d)):o.push(l==null?l:String(l));const p=`text-${a.align||"start"}`;return aW(o)?r("td",{class:[p,a.cellClass,{"v-data-table__divider":a.divider}]},o):o});return r("tr",s,i)}}),fS=b.extend({name:"row-group",functional:!0,props:{value:{type:Boolean,default:!0},headerClass:{type:String,default:"v-row-group__header"},contentClass:String,summaryClass:{type:String,default:"v-row-group__summary"}},render(r,{slots:e,props:t}){const s=e(),n=[];return s["column.header"]?n.push(r("tr",{staticClass:t.headerClass},s["column.header"])):s["row.header"]&&n.push(...s["row.header"]),s["row.content"]&&t.value&&n.push(...s["row.content"]),s["column.summary"]?n.push(r("tr",{staticClass:t.summaryClass},s["column.summary"])):s["row.summary"]&&n.push(...s["row.summary"]),n}}),qt=be(Ke).extend({name:"v-simple-table",props:{dense:Boolean,fixedHeader:Boolean,height:[Number,String]},computed:{classes(){return{"v-data-table--dense":this.dense,"v-data-table--fixed-height":!!this.height&&!this.fixedHeader,"v-data-table--fixed-header":this.fixedHeader,"v-data-table--has-top":!!this.$slots.top,"v-data-table--has-bottom":!!this.$slots.bottom,...this.themeClasses}}},methods:{genWrapper(){return this.$slots.wrapper||this.$createElement("div",{staticClass:"v-data-table__wrapper",style:{height:ge(this.height)}},[this.$createElement("table",me(this))])}},render(r){return r("div",{staticClass:"v-data-table",class:this.classes},[me(this,"top"),this.genWrapper(),me(this,"bottom")])}}),lW=b.extend({name:"row",functional:!0,props:{headers:Array,hideDefaultHeader:Boolean,index:Number,item:Object,rtl:Boolean},render(r,{props:e,slots:t,data:s}){const n=t(),i=e.headers.map(a=>{const o={"v-data-table__mobile-row":!0},l=[],c=at(e.item,a.value),u=a.value,d=s.scopedSlots&&s.scopedSlots.hasOwnProperty(u)&&s.scopedSlots[u],p=n.hasOwnProperty(u)&&n[u];d?l.push(d({item:e.item,isMobile:!0,header:a,index:e.index,value:c})):p?l.push(p):l.push(c==null?c:String(c));const h=[r("div",{staticClass:"v-data-table__mobile-row__cell"},l)];return a.value!=="dataTableSelect"&&!e.hideDefaultHeader&&h.unshift(r("div",{staticClass:"v-data-table__mobile-row__header"},[a.text])),r("td",{class:o},h)});return r("tr",{...s,staticClass:"v-data-table__mobile-table-row"},i)}});function ip(r,e,t){return s=>{const n=at(r,s.value);return s.filter?s.filter(n,e,r):t(n,e,r)}}function cW(r,e,t,s,n,i){return e=typeof e=="string"?e.trim():null,i==="union"?!(e&&s.length)&&!t.length?r:r.filter(a=>t.length&&t.every(ip(a,e,kh))?!0:e&&s.some(ip(a,e,n))):i==="intersection"?r.filter(a=>{const o=t.every(ip(a,e,kh)),l=!e||s.some(ip(a,e,n));return o&&l}):r}const hd=be(hS,Go,OU).extend({name:"v-data-table",directives:{ripple:os},props:{headers:{type:Array,default:()=>[]},showSelect:Boolean,checkboxColor:String,showExpand:Boolean,showGroupBy:Boolean,height:[Number,String],hideDefaultHeader:Boolean,caption:String,dense:Boolean,headerProps:Object,calculateWidths:Boolean,fixedHeader:Boolean,headersLength:Number,expandIcon:{type:String,default:"$expand"},customFilter:{type:Function,default:kh},filterMode:{type:String,default:"intersection"},itemClass:{type:[String,Function],default:()=>""},itemStyle:{type:[String,Function],default:()=>""},loaderHeight:{type:[Number,String],default:4}},data(){return{internalGroupBy:[],openCache:{},widths:[]}},computed:{computedHeaders(){if(!this.headers)return[];const r=this.headers.filter(t=>t.value===void 0||!this.internalGroupBy.find(s=>s===t.value)),e={text:"",sortable:!1,width:"1px"};if(this.showSelect){const t=r.findIndex(s=>s.value==="data-table-select");t<0?r.unshift({...e,value:"data-table-select"}):r.splice(t,1,{...e,...r[t]})}if(this.showExpand){const t=r.findIndex(s=>s.value==="data-table-expand");t<0?r.unshift({...e,value:"data-table-expand"}):r.splice(t,1,{...e,...r[t]})}return r},colspanAttrs(){return this.isMobile?void 0:{colspan:this.headersLength||this.computedHeaders.length}},columnSorters(){return this.computedHeaders.reduce((r,e)=>(e.sort&&(r[e.value]=e.sort),r),{})},headersWithCustomFilters(){return this.headers.filter(r=>r.filter&&(!r.hasOwnProperty("filterable")||r.filterable===!0))},headersWithoutCustomFilters(){return this.headers.filter(r=>!r.filter&&(!r.hasOwnProperty("filterable")||r.filterable===!0))},sanitizedHeaderProps(){return P4(this.headerProps)},computedItemsPerPage(){const r=this.options&&this.options.itemsPerPage?this.options.itemsPerPage:this.itemsPerPage,e=this.sanitizedFooterProps.itemsPerPageOptions;if(e&&!e.find(t=>typeof t=="number"?t===r:t.value===r)){const t=e[0];return typeof t=="object"?t.value:t}return r},groupByText(){var r,e,t;return(t=(e=(r=this.headers)===null||r===void 0?void 0:r.find(s=>{var n;return s.value===((n=this.internalGroupBy)===null||n===void 0?void 0:n[0])}))===null||e===void 0?void 0:e.text)!==null&&t!==void 0?t:""}},created(){[["sort-icon","header-props.sort-icon"],["hide-headers","hide-default-header"],["select-all","show-select"]].forEach(([e,t])=>{this.$attrs.hasOwnProperty(e)&&qs(e,t,this)})},mounted(){this.calculateWidths&&(window.addEventListener("resize",this.calcWidths),this.calcWidths())},beforeDestroy(){this.calculateWidths&&window.removeEventListener("resize",this.calcWidths)},methods:{calcWidths(){this.widths=Array.from(this.$el.querySelectorAll("th")).map(r=>r.clientWidth)},customFilterWithColumns(r,e){return cW(r,e,this.headersWithCustomFilters,this.headersWithoutCustomFilters,this.customFilter,this.filterMode)},customSortWithHeaders(r,e,t,s){return this.customSort(r,e,t,s,this.columnSorters)},createItemProps(r,e){const t={...hS.options.methods.createItemProps.call(this,r,e),headers:this.computedHeaders};return{...t,attrs:{class:{"v-data-table__selected":t.isSelected}},on:{...this.getDefaultMouseEventHandlers(":row",()=>t,!0),click:s=>this.$emit("click:row",r,t,s)}}},genCaption(r){return this.caption?[this.$createElement("caption",[this.caption])]:me(this,"caption",r,!0)},genColgroup(r){return this.$createElement("colgroup",this.computedHeaders.map(e=>this.$createElement("col",{class:{divider:e.divider}})))},genLoading(){const r=this.$createElement("th",{staticClass:"column",attrs:this.colspanAttrs},[this.genProgress()]),e=this.$createElement("tr",{staticClass:"v-data-table__progress"},[r]);return this.$createElement("thead",[e])},genHeaders(r){const e={props:{...this.sanitizedHeaderProps,headers:this.computedHeaders,options:r.options,mobile:this.isMobile,showGroupBy:this.showGroupBy,checkboxColor:this.checkboxColor,someItems:this.someItems,everyItem:this.everyItem,singleSelect:this.singleSelect,disableSort:this.disableSort},on:{sort:r.sort,group:r.group,"toggle-select-all":this.toggleSelectAll}},t=[me(this,"header",{...e,isMobile:this.isMobile})];if(!this.hideDefaultHeader){const s=zp("header.",this.$scopedSlots);t.push(this.$createElement(iW,{...e,scopedSlots:s}))}return this.loading&&t.push(this.genLoading()),t},genEmptyWrapper(r){return this.$createElement("tr",{staticClass:"v-data-table__empty-wrapper"},[this.$createElement("td",{attrs:this.colspanAttrs},r)])},genItems(r,e){const t=this.genEmpty(e.originalItemsLength,e.pagination.itemsLength);return t?[t]:e.groupedItems?this.genGroupedRows(e.groupedItems,e):this.genRows(r,e)},genGroupedRows(r,e){return r.map(t=>(this.openCache.hasOwnProperty(t.name)||this.$set(this.openCache,t.name,!0),this.$scopedSlots.group?this.$scopedSlots.group({group:t.name,options:e.options,isMobile:this.isMobile,items:t.items,headers:this.computedHeaders}):this.genDefaultGroupedRow(t.name,t.items,e)))},genDefaultGroupedRow(r,e,t){const s=!!this.openCache[r],n=[this.$createElement("template",{slot:"row.content"},this.genRows(e,t))],i=()=>this.$set(this.openCache,r,!this.openCache[r]),a=()=>t.updateOptions({groupBy:[],groupDesc:[]});if(this.$scopedSlots["group.header"])n.unshift(this.$createElement("template",{slot:"column.header"},[this.$scopedSlots["group.header"]({group:r,groupBy:t.options.groupBy,isMobile:this.isMobile,items:e,headers:this.computedHeaders,isOpen:s,toggle:i,remove:a})]));else{const o=this.$createElement(Be,{staticClass:"ma-0",props:{icon:!0,small:!0},on:{click:i}},[this.$createElement(S,[s?"$minus":"$plus"])]),l=this.$createElement(Be,{staticClass:"ma-0",props:{icon:!0,small:!0},on:{click:a}},[this.$createElement(S,["$close"])]),c=this.$createElement("td",{staticClass:"text-start",attrs:this.colspanAttrs},[o,`${this.groupByText}: ${r}`,l]);n.unshift(this.$createElement("template",{slot:"column.header"},[c]))}return this.$scopedSlots["group.summary"]&&n.push(this.$createElement("template",{slot:"column.summary"},[this.$scopedSlots["group.summary"]({group:r,groupBy:t.options.groupBy,isMobile:this.isMobile,items:e,headers:this.computedHeaders,isOpen:s,toggle:i})])),this.$createElement(fS,{key:r,props:{value:s}},n)},genRows(r,e){return this.$scopedSlots.item?this.genScopedRows(r,e):this.genDefaultRows(r,e)},genScopedRows(r,e){const t=[];for(let s=0;s<r.length;s++){const n=r[s];t.push(this.$scopedSlots.item({...this.createItemProps(n,s),isMobile:this.isMobile})),this.isExpanded(n)&&t.push(this.$scopedSlots["expanded-item"]({headers:this.computedHeaders,isMobile:this.isMobile,index:s,item:n}))}return t},genDefaultRows(r,e){return this.$scopedSlots["expanded-item"]?r.map((t,s)=>this.genDefaultExpandedRow(t,s)):r.map((t,s)=>this.genDefaultSimpleRow(t,s))},genDefaultExpandedRow(r,e){const t=this.isExpanded(r),s={"v-data-table__expanded v-data-table__expanded__row":t},n=this.genDefaultSimpleRow(r,e,s),i=this.$createElement("tr",{staticClass:"v-data-table__expanded v-data-table__expanded__content"},[this.$scopedSlots["expanded-item"]({headers:this.computedHeaders,isMobile:this.isMobile,item:r})]);return this.$createElement(fS,{props:{value:t}},[this.$createElement("template",{slot:"row.header"},[n]),this.$createElement("template",{slot:"row.content"},[i])])},genDefaultSimpleRow(r,e,t={}){const s=zp("item.",this.$scopedSlots),n=this.createItemProps(r,e);if(this.showSelect){const i=s["data-table-select"];s["data-table-select"]=i?()=>i({...n,isMobile:this.isMobile}):()=>{var a;return this.$createElement(bm,{staticClass:"v-data-table__checkbox",props:{value:n.isSelected,disabled:!this.isSelectable(r),color:(a=this.checkboxColor)!==null&&a!==void 0?a:""},on:{input:o=>n.select(o)}})}}if(this.showExpand){const i=s["data-table-expand"];s["data-table-expand"]=i?()=>i(n):()=>this.$createElement(S,{staticClass:"v-data-table__expand-icon",class:{"v-data-table__expand-icon--active":n.isExpanded},on:{click:a=>{a.stopPropagation(),n.expand(!n.isExpanded)}}},[this.expandIcon])}return this.$createElement(this.isMobile?lW:oW,{key:at(r,this.itemKey),class:Y4({...t,"v-data-table__selected":n.isSelected},Rn(r,this.itemClass)),style:Z4({},Rn(r,this.itemStyle)),props:{headers:this.computedHeaders,hideDefaultHeader:this.hideDefaultHeader,index:e,item:r,rtl:this.$vuetify.rtl},scopedSlots:s,on:n.on})},genBody(r){const e={...r,expand:this.expand,headers:this.computedHeaders,isExpanded:this.isExpanded,isMobile:this.isMobile,isSelected:this.isSelected,select:this.select};return this.$scopedSlots.body?this.$scopedSlots.body(e):this.$createElement("tbody",[me(this,"body.prepend",e,!0),this.genItems(r.items,r),me(this,"body.append",e,!0)])},genFoot(r){var e,t;return(t=(e=this.$scopedSlots).foot)===null||t===void 0?void 0:t.call(e,r)},genFooters(r){const e={props:{options:r.options,pagination:r.pagination,itemsPerPageText:"$vuetify.dataTable.itemsPerPageText",...this.sanitizedFooterProps},on:{"update:options":s=>r.updateOptions(s)},widths:this.widths,headers:this.computedHeaders},t=[me(this,"footer",e,!0)];return this.hideDefaultFooter||t.push(this.$createElement($6,{...e,scopedSlots:zp("footer.",this.$scopedSlots)})),t},genDefaultScopedSlot(r){const e={height:this.height,fixedHeader:this.fixedHeader,dense:this.dense};return this.$createElement(qt,{props:e,class:{"v-data-table--mobile":this.isMobile,"v-data-table--selectable":this.showSelect}},[this.proxySlot("top",me(this,"top",{...r,isMobile:this.isMobile},!0)),this.genCaption(r),this.genColgroup(r),this.genHeaders(r),this.genBody(r),this.genFoot(r),this.proxySlot("bottom",this.genFooters(r))])},proxySlot(r,e){return this.$createElement("template",{slot:r},e)}},render(){return this.$createElement(Rv,{props:{...this.$props,customFilter:this.customFilterWithColumns,customSort:this.customSortWithHeaders,itemsPerPage:this.computedItemsPerPage},on:{"update:options":(r,e)=>{this.internalGroupBy=r.groupBy||[],!Wt(r,e)&&this.$emit("update:options",r)},"update:page":r=>this.$emit("update:page",r),"update:items-per-page":r=>this.$emit("update:items-per-page",r),"update:sort-by":r=>this.$emit("update:sort-by",r),"update:sort-desc":r=>this.$emit("update:sort-desc",r),"update:group-by":r=>this.$emit("update:group-by",r),"update:group-desc":r=>this.$emit("update:group-desc",r),pagination:(r,e)=>!Wt(r,e)&&this.$emit("pagination",r),"current-items":r=>{this.internalCurrentItems=r,this.$emit("current-items",r)},"page-count":r=>this.$emit("page-count",r)},scopedSlots:{default:this.genDefaultScopedSlot}})}});Gr("v-table__overflow");const Sm=fr.extend({name:"v-expansion-panels",provide(){return{expansionPanels:this}},props:{accordion:Boolean,disabled:Boolean,flat:Boolean,hover:Boolean,focusable:Boolean,inset:Boolean,popout:Boolean,readonly:Boolean,tile:Boolean},computed:{classes(){return{...fr.options.computed.classes.call(this),"v-expansion-panels":!0,"v-expansion-panels--accordion":this.accordion,"v-expansion-panels--flat":this.flat,"v-expansion-panels--hover":this.hover,"v-expansion-panels--focusable":this.focusable,"v-expansion-panels--inset":this.inset,"v-expansion-panels--popout":this.popout,"v-expansion-panels--tile":this.tile}}},created(){this.$attrs.hasOwnProperty("expand")&&qs("expand","multiple",this),Array.isArray(this.value)&&this.value.length>0&&typeof this.value[0]=="boolean"&&qs(':value="[true, false, true]"',':value="[0, 2]"',this)},methods:{updateItem(r,e){const t=this.getValue(r,e),s=this.getValue(r,e+1);r.isActive=this.toggleMethod(t),r.nextIsActive=this.toggleMethod(s)}}}),xm=be(ji("expansionPanels","v-expansion-panel","v-expansion-panels"),qy("expansionPanel",!0)).extend({name:"v-expansion-panel",props:{disabled:Boolean,readonly:Boolean},data(){return{content:null,header:null,nextIsActive:!1}},computed:{classes(){return{"v-expansion-panel--active":this.isActive,"v-expansion-panel--next-active":this.nextIsActive,"v-expansion-panel--disabled":this.isDisabled,...this.groupClasses}},isDisabled(){return this.expansionPanels.disabled||this.disabled},isReadonly(){return this.expansionPanels.readonly||this.readonly}},methods:{registerContent(r){this.content=r},unregisterContent(){this.content=null},registerHeader(r){this.header=r,r.$on("click",this.onClick)},unregisterHeader(){this.header=null},onClick(r){r.detail&&this.header.$el.blur(),this.$emit("click",r),this.isReadonly||this.isDisabled||this.toggle()},toggle(){this.$nextTick(()=>this.$emit("change"))}},render(r){return r("div",{staticClass:"v-expansion-panel",class:this.classes,attrs:{"aria-expanded":String(this.isActive)}},me(this))}}),uW=be(ym,ut,Ka("expansionPanel","v-expansion-panel-content","v-expansion-panel")),Cm=uW.extend().extend({name:"v-expansion-panel-content",data:()=>({isActive:!1}),computed:{parentIsActive(){return this.expansionPanel.isActive}},watch:{parentIsActive:{immediate:!0,handler(r,e){r&&(this.isBooted=!0),e==null?this.isActive=r:this.$nextTick(()=>this.isActive=r)}}},created(){this.expansionPanel.registerContent(this)},beforeDestroy(){this.expansionPanel.unregisterContent()},render(r){return r(zc,this.showLazyContent(()=>[r("div",this.setBackgroundColor(this.color,{staticClass:"v-expansion-panel-content",directives:[{name:"show",value:this.isActive}]}),[r("div",{class:"v-expansion-panel-content__wrap"},me(this,"default",{open:this.isActive}))])]))}}),dW=be(ut,Ka("expansionPanel","v-expansion-panel-header","v-expansion-panel")),Pm=dW.extend().extend({name:"v-expansion-panel-header",directives:{ripple:os},props:{disableIconRotate:Boolean,expandIcon:{type:String,default:"$expand"},hideActions:Boolean,ripple:{type:[Boolean,Object],default:!1}},data:()=>({hasMousedown:!1}),computed:{classes(){return{"v-expansion-panel-header--active":this.isActive,"v-expansion-panel-header--mousedown":this.hasMousedown}},isActive(){return this.expansionPanel.isActive},isDisabled(){return this.expansionPanel.isDisabled},isReadonly(){return this.expansionPanel.isReadonly}},created(){this.expansionPanel.registerHeader(this)},beforeDestroy(){this.expansionPanel.unregisterHeader()},methods:{onClick(r){this.$emit("click",r)},genIcon(){const r=me(this,"actions",{open:this.isActive})||[this.$createElement(S,this.expandIcon)];return this.$createElement(Al,[this.$createElement("div",{staticClass:"v-expansion-panel-header__icon",class:{"v-expansion-panel-header__icon--disable-rotate":this.disableIconRotate},directives:[{name:"show",value:!this.isDisabled}]},r)])}},render(r){return r("button",this.setBackgroundColor(this.color,{staticClass:"v-expansion-panel-header",class:this.classes,attrs:{tabindex:this.isDisabled?-1:null,type:"button","aria-expanded":this.isActive},directives:[{name:"ripple",value:this.ripple}],on:{...this.$listeners,click:this.onClick,mousedown:()=>this.hasMousedown=!0,mouseup:()=>this.hasMousedown=!1}}),[me(this,"default",{open:this.isActive},!0),this.hideActions||this.genIcon()])}}),pW=be(Tt,Wy("footer",["height","inset"]),cd).extend({name:"v-footer",props:{height:{default:"auto",type:[Number,String]},inset:Boolean,padless:Boolean,tag:{type:String,default:"footer"}},computed:{applicationProperty(){return this.inset?"insetFooter":"footer"},classes(){return{...Tt.options.computed.classes.call(this),"v-footer--absolute":this.absolute,"v-footer--fixed":!this.absolute&&(this.app||this.fixed),"v-footer--padless":this.padless,"v-footer--inset":this.inset}},computedBottom(){if(this.isPositioned)return this.app?this.$vuetify.application.bottom:0},computedLeft(){if(this.isPositioned)return this.app&&this.inset?this.$vuetify.application.left:0},computedRight(){if(this.isPositioned)return this.app&&this.inset?this.$vuetify.application.right:0},isPositioned(){return!!(this.absolute||this.fixed||this.app)},styles(){const r=parseInt(this.height);return{...Tt.options.computed.styles.call(this),height:isNaN(r)?r:ge(r),left:ge(this.computedLeft),right:ge(this.computedRight),bottom:ge(this.computedBottom)}}},methods:{updateApplication(){const r=parseInt(this.height);return isNaN(r)?this.$el?this.$el.clientHeight:0:r}},render(r){const e=this.setBackgroundColor(this.color,{staticClass:"v-footer",class:this.classes,style:this.styles});return r(this.tag,e,me(this))}}),Ll=be(Sl,qy("form")).extend({name:"v-form",provide(){return{form:this}},inheritAttrs:!1,props:{disabled:Boolean,lazyValidation:Boolean,readonly:Boolean,value:Boolean},data:()=>({inputs:[],watchers:[],errorBag:{}}),watch:{errorBag:{handler(r){const e=Object.values(r).includes(!0);this.$emit("input",!e)},deep:!0,immediate:!0}},methods:{watchInput(r){const e=s=>s.$watch("hasError",n=>{this.$set(this.errorBag,s._uid,n)},{immediate:!0}),t={_uid:r._uid,valid:()=>{},shouldValidate:()=>{}};return this.lazyValidation?t.shouldValidate=r.$watch("shouldValidate",s=>{s&&(this.errorBag.hasOwnProperty(r._uid)||(t.valid=e(r)))}):t.valid=e(r),t},validate(){return this.inputs.filter(r=>!r.validate(!0)).length===0},reset(){this.inputs.forEach(r=>r.reset()),this.resetErrorBag()},resetErrorBag(){this.lazyValidation&&setTimeout(()=>{this.errorBag={}},0)},resetValidation(){this.inputs.forEach(r=>r.resetValidation()),this.resetErrorBag()},register(r){this.inputs.push(r),this.watchers.push(this.watchInput(r))},unregister(r){const e=this.inputs.find(s=>s._uid===r._uid);if(!e)return;const t=this.watchers.find(s=>s._uid===e._uid);t&&(t.valid(),t.shouldValidate()),this.watchers=this.watchers.filter(s=>s._uid!==e._uid),this.inputs=this.inputs.filter(s=>s._uid!==e._uid),this.$delete(this.errorBag,e._uid)}},render(r){return r("form",{staticClass:"v-form",attrs:{novalidate:!0,...this.attrs$},on:{submit:e=>this.$emit("submit",e)}},me(this))}});function w6(r){return b.extend({name:`v-${r}`,functional:!0,props:{id:String,tag:{type:String,default:"div"}},render(e,{props:t,data:s,children:n}){s.staticClass=`${r} ${s.staticClass||""}`.trim();const{attrs:i}=s;if(i){s.attrs={};const a=Object.keys(i).filter(o=>{if(o==="slot")return!1;const l=i[o];return o.startsWith("data-")?(s.attrs[o]=l,!1):l||typeof l=="string"});a.length&&(s.staticClass+=` ${a.join(" ")}`)}return t.id&&(s.domProps=s.domProps||{},s.domProps.id=t.id),e(t.tag,s,n)}})}const fd=w6("container").extend({name:"v-container",functional:!0,props:{id:String,tag:{type:String,default:"div"},fluid:{type:Boolean,default:!1}},render(r,{props:e,data:t,children:s}){let n;const{attrs:i}=t;return i&&(t.attrs={},n=Object.keys(i).filter(a=>{if(a==="slot")return!1;const o=i[a];return a.startsWith("data-")?(t.attrs[a]=o,!1):o||typeof o=="string"})),e.id&&(t.domProps=t.domProps||{},t.domProps.id=e.id),r(e.tag,as(t,{staticClass:"container",class:Array({"container--fluid":e.fluid}).concat(n||[])}),s)}}),tb=["sm","md","lg","xl"],S6=tb.reduce((r,e)=>(r[e]={type:[Boolean,String,Number],default:!1},r),{}),x6=tb.reduce((r,e)=>(r["offset"+fm(e)]={type:[String,Number],default:null},r),{}),C6=tb.reduce((r,e)=>(r["order"+fm(e)]={type:[String,Number],default:null},r),{}),mS={col:Object.keys(S6),offset:Object.keys(x6),order:Object.keys(C6)};function hW(r,e,t){let s=r;if(!(t==null||t===!1)){if(e){const n=e.replace(r,"");s+=`-${n}`}return r==="col"&&(t===""||t===!0)||(s+=`-${t}`),s.toLowerCase()}}const gS=new Map,B=b.extend({name:"v-col",functional:!0,props:{cols:{type:[Boolean,String,Number],default:!1},...S6,offset:{type:[String,Number],default:null},...x6,order:{type:[String,Number],default:null},...C6,alignSelf:{type:String,default:null,validator:r=>["auto","start","end","center","baseline","stretch"].includes(r)},tag:{type:String,default:"div"}},render(r,{props:e,data:t,children:s,parent:n}){let i="";for(const o in e)i+=String(e[o]);let a=gS.get(i);if(!a){a=[];let o;for(o in mS)mS[o].forEach(c=>{const u=e[c],d=hW(o,c,u);d&&a.push(d)});const l=a.some(c=>c.startsWith("col-"));a.push({col:!l||!e.cols,[`col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),gS.set(i,a)}return r(e.tag,as(t,{class:a}),s)}}),fW=["sm","md","lg","xl"],rb=["start","end","center"];function sb(r,e){return fW.reduce((t,s)=>(t[r+fm(s)]=e(),t),{})}const P6=r=>[...rb,"baseline","stretch"].includes(r),A6=sb("align",()=>({type:String,default:null,validator:P6})),L6=r=>[...rb,"space-between","space-around"].includes(r),E6=sb("justify",()=>({type:String,default:null,validator:L6})),O6=r=>[...rb,"space-between","space-around","stretch"].includes(r),T6=sb("alignContent",()=>({type:String,default:null,validator:O6})),vS={align:Object.keys(A6),justify:Object.keys(E6),alignContent:Object.keys(T6)},mW={align:"align",justify:"justify",alignContent:"align-content"};function gW(r,e,t){let s=mW[r];if(t!=null){if(e){const n=e.replace(r,"");s+=`-${n}`}return s+=`-${t}`,s.toLowerCase()}}const _S=new Map,ie=b.extend({name:"v-row",functional:!0,props:{tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:P6},...A6,justify:{type:String,default:null,validator:L6},...E6,alignContent:{type:String,default:null,validator:O6},...T6},render(r,{props:e,data:t,children:s}){let n="";for(const a in e)n+=String(e[a]);let i=_S.get(n);if(!i){i=[];let a;for(a in vS)vS[a].forEach(o=>{const l=e[o],c=gW(a,o,l);c&&i.push(c)});i.push({"no-gutters":e.noGutters,"row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),_S.set(n,i)}return r(e.tag,as(t,{staticClass:"row",class:i}),s)}}),$t=Gr("spacer","div","v-spacer"),Vr=w6("layout"),vW=be(Wy("left",["isActive","isMobile","miniVariant","expandOnHover","permanent","right","temporary","width"]),ut,dd,uu,Jy,cd,Ke),Iv=vW.extend({name:"v-navigation-drawer",directives:{ClickOutside:ad,Resize:od,Touch:ld},provide(){return{isInNav:this.tag==="nav"}},props:{bottom:Boolean,clipped:Boolean,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,height:{type:[Number,String],default(){return this.app?"100vh":"100%"}},miniVariant:Boolean,miniVariantWidth:{type:[Number,String],default:56},permanent:Boolean,right:Boolean,src:{type:[String,Object],default:""},stateless:Boolean,tag:{type:String,default(){return this.app?"nav":"aside"}},temporary:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},value:null},data:()=>({isMouseover:!1,touchArea:{left:0,right:0},stackMinZIndex:6}),computed:{applicationProperty(){return this.right?"right":"left"},classes(){return{"v-navigation-drawer":!0,"v-navigation-drawer--absolute":this.absolute,"v-navigation-drawer--bottom":this.bottom,"v-navigation-drawer--clipped":this.clipped,"v-navigation-drawer--close":!this.isActive,"v-navigation-drawer--fixed":!this.absolute&&(this.app||this.fixed),"v-navigation-drawer--floating":this.floating,"v-navigation-drawer--is-mobile":this.isMobile,"v-navigation-drawer--is-mouseover":this.isMouseover,"v-navigation-drawer--mini-variant":this.isMiniVariant,"v-navigation-drawer--custom-mini-variant":Number(this.miniVariantWidth)!==56,"v-navigation-drawer--open":this.isActive,"v-navigation-drawer--open-on-hover":this.expandOnHover,"v-navigation-drawer--right":this.right,"v-navigation-drawer--temporary":this.temporary,...this.themeClasses}},computedMaxHeight(){if(!this.hasApp)return null;const r=this.$vuetify.application.bottom+this.$vuetify.application.footer+this.$vuetify.application.bar;return this.clipped?r+this.$vuetify.application.top:r},computedTop(){if(!this.hasApp)return 0;let r=this.$vuetify.application.bar;return r+=this.clipped?this.$vuetify.application.top:0,r},computedTransform(){return this.isActive?0:this.isBottom||this.right?100:-100},computedWidth(){return this.isMiniVariant?this.miniVariantWidth:this.width},hasApp(){return this.app&&!this.isMobile&&!this.temporary},isBottom(){return this.bottom&&this.isMobile},isMiniVariant(){return!this.expandOnHover&&this.miniVariant||this.expandOnHover&&!this.isMouseover},isMobile(){return!this.stateless&&!this.permanent&&uu.options.computed.isMobile.call(this)},reactsToClick(){return!this.stateless&&!this.permanent&&(this.isMobile||this.temporary)},reactsToMobile(){return this.app&&!this.disableResizeWatcher&&!this.permanent&&!this.stateless&&!this.temporary},reactsToResize(){return!this.disableResizeWatcher&&!this.stateless},reactsToRoute(){return!this.disableRouteWatcher&&!this.stateless&&(this.temporary||this.isMobile)},showOverlay(){return!this.hideOverlay&&this.isActive&&(this.isMobile||this.temporary)},styles(){const r=this.isBottom?"translateY":"translateX";return{height:ge(this.height),top:this.isBottom?"auto":ge(this.computedTop),maxHeight:this.computedMaxHeight!=null?`calc(100% - ${ge(this.computedMaxHeight)})`:void 0,transform:`${r}(${ge(this.computedTransform,"%")})`,width:ge(this.computedWidth)}}},watch:{$route:"onRouteChange",isActive(r){this.$emit("input",r)},isMobile(r,e){!r&&this.isActive&&!this.temporary&&this.removeOverlay(),!(e==null||!this.reactsToResize||!this.reactsToMobile)&&(this.isActive=!r)},permanent(r){r&&(this.isActive=!0)},showOverlay(r){r?this.genOverlay():this.removeOverlay()},value(r){if(!this.permanent){if(r==null){this.init();return}r!==this.isActive&&(this.isActive=r)}},expandOnHover:"updateMiniVariant",isMouseover(r){this.updateMiniVariant(!r)}},beforeMount(){this.init()},methods:{calculateTouchArea(){const r=this.$el.parentNode;if(!r)return;const e=r.getBoundingClientRect();this.touchArea={left:e.left+50,right:e.right-50}},closeConditional(){return this.isActive&&!this._isDestroyed&&this.reactsToClick},genAppend(){return this.genPosition("append")},genBackground(){const r={height:"100%",width:"100%",src:this.src},e=this.$scopedSlots.img?this.$scopedSlots.img(r):this.$createElement(X4,{props:r});return this.$createElement("div",{staticClass:"v-navigation-drawer__image"},[e])},genDirectives(){const r=[{name:"click-outside",value:{handler:()=>{this.isActive=!1},closeConditional:this.closeConditional,include:this.getOpenDependentElements}}];return!this.touchless&&!this.stateless&&r.push({name:"touch",value:{parent:!0,left:this.swipeLeft,right:this.swipeRight}}),r},genListeners(){const r={mouseenter:()=>this.isMouseover=!0,mouseleave:()=>this.isMouseover=!1,transitionend:e=>{if(e.target!==e.currentTarget)return;this.$emit("transitionend",e);const t=document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}};return this.miniVariant&&(r.click=()=>this.$emit("update:mini-variant",!1)),r},genPosition(r){const e=me(this,r);return e&&this.$createElement("div",{staticClass:`v-navigation-drawer__${r}`},e)},genPrepend(){return this.genPosition("prepend")},genContent(){return this.$createElement("div",{staticClass:"v-navigation-drawer__content"},me(this))},genBorder(){return this.$createElement("div",{staticClass:"v-navigation-drawer__border"})},init(){this.permanent?this.isActive=!0:this.stateless||this.value!=null?this.isActive=this.value:this.temporary||(this.isActive=!this.isMobile)},onRouteChange(){this.reactsToRoute&&this.closeConditional()&&(this.isActive=!1)},swipeLeft(r){this.isActive&&this.right||(this.calculateTouchArea(),!(Math.abs(r.touchendX-r.touchstartX)<100)&&(this.right&&r.touchstartX>=this.touchArea.right?this.isActive=!0:!this.right&&this.isActive&&(this.isActive=!1)))},swipeRight(r){this.isActive&&!this.right||(this.calculateTouchArea(),!(Math.abs(r.touchendX-r.touchstartX)<100)&&(!this.right&&r.touchstartX<=this.touchArea.left?this.isActive=!0:this.right&&this.isActive&&(this.isActive=!1)))},updateApplication(){if(!this.isActive||this.isMobile||this.temporary||!this.$el)return 0;const r=Number(this.miniVariant?this.miniVariantWidth:this.width);return isNaN(r)?this.$el.clientWidth:r},updateMiniVariant(r){this.expandOnHover&&this.miniVariant!==r&&this.$emit("update:mini-variant",r)}},render(r){const e=[this.genPrepend(),this.genContent(),this.genAppend(),this.genBorder()];return(this.src||me(this,"img"))&&e.unshift(this.genBackground()),r(this.tag,this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,directives:this.genDirectives(),on:this.genListeners()}),e)}}),_W=be(fr,Ct),k6=_W.extend({name:"v-radio-group",provide(){return{radioGroup:this}},props:{column:{type:Boolean,default:!0},height:{type:[Number,String],default:"auto"},name:String,row:Boolean,value:null},computed:{classes(){return{...Ct.options.computed.classes.call(this),"v-input--selection-controls v-input--radio-group":!0,"v-input--radio-group--column":this.column&&!this.row,"v-input--radio-group--row":this.row}}},methods:{genDefaultSlot(){return this.$createElement("div",{staticClass:"v-input--radio-group__input",attrs:{id:this.id,role:"radiogroup","aria-labelledby":this.computedId}},Ct.options.methods.genDefaultSlot.call(this))},genInputSlot(){const r=Ct.options.methods.genInputSlot.call(this);return delete r.data.on.click,r},genLabel(){const r=Ct.options.methods.genLabel.call(this);return r?(r.data.attrs.id=this.computedId,delete r.data.attrs.for,r.tag="legend",r):null},onClick:fr.options.methods.onClick},render(r){const e=Ct.options.render.call(this,r);return this._b(e.data,"div",this.attrs$),e}}),yW=be(Sl,ut,b6,ji("radioGroup"),Ke),Wc=yW.extend().extend({name:"v-radio",inheritAttrs:!1,props:{disabled:{type:Boolean,default:null},id:String,label:String,name:String,offIcon:{type:String,default:"$radioOff"},onIcon:{type:String,default:"$radioOn"},readonly:{type:Boolean,default:null},value:{default:null}},data:()=>({isFocused:!1}),computed:{classes(){return{"v-radio--is-disabled":this.isDisabled,"v-radio--is-focused":this.isFocused,...this.themeClasses,...this.groupClasses}},computedColor(){if(!this.isDisabled)return Uc.options.computed.computedColor.call(this)},computedIcon(){return this.isActive?this.onIcon:this.offIcon},computedId(){return Ct.options.computed.computedId.call(this)},hasLabel:Ct.options.computed.hasLabel,hasState(){return(this.radioGroup||{}).hasState},isDisabled(){var r;return(r=this.disabled)!==null&&r!==void 0?r:!!this.radioGroup&&this.radioGroup.isDisabled},isReadonly(){var r;return(r=this.readonly)!==null&&r!==void 0?r:!!this.radioGroup&&this.radioGroup.isReadonly},computedName(){return this.name||!this.radioGroup?this.name:this.radioGroup.name||`radio-${this.radioGroup._uid}`},rippleState(){return Uc.options.computed.rippleState.call(this)},validationState(){return(this.radioGroup||{}).validationState||this.computedColor}},methods:{genInput(r){return Uc.options.methods.genInput.call(this,"radio",r)},genLabel(){return this.hasLabel?this.$createElement(Xy,{on:{click:Dv},attrs:{for:this.computedId},props:{color:this.validationState,focused:this.hasState}},me(this,"label")||this.label):null},genRadio(){const{title:r,...e}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(S,this.setTextColor(this.validationState,{props:{dense:this.radioGroup&&this.radioGroup.dense}}),this.computedIcon),this.genInput({name:this.computedName,value:this.value,...e}),this.genRipple(this.setTextColor(this.rippleState))])},onFocus(r){this.isFocused=!0,this.$emit("focus",r)},onBlur(r){this.isFocused=!1,this.$emit("blur",r)},onChange(){this.isDisabled||this.isReadonly||this.isActive||this.toggle()},onKeydown:()=>{}},render(r){const e={staticClass:"v-radio",class:this.classes,on:K4({click:this.onChange},this.listeners$),attrs:{title:this.attrs$.title}};return r("div",e,[this.genRadio(),this.genLabel()])}}),Am=be(Tt,ut,Ya,Cl(["absolute","bottom","left","right","top"])).extend({name:"v-snackbar",props:{app:Boolean,centered:Boolean,contentClass:{type:String,default:""},multiLine:Boolean,text:Boolean,timeout:{type:[Number,String],default:5e3},transition:{type:[Boolean,String],default:"v-snack-transition",validator:r=>typeof r=="string"||r===!1},vertical:Boolean},data:()=>({activeTimeout:-1}),computed:{classes(){return{"v-snack--absolute":this.absolute,"v-snack--active":this.isActive,"v-snack--bottom":this.bottom||!this.top,"v-snack--centered":this.centered,"v-snack--has-background":this.hasBackground,"v-snack--left":this.left,"v-snack--multi-line":this.multiLine&&!this.vertical,"v-snack--right":this.right,"v-snack--text":this.text,"v-snack--top":this.top,"v-snack--vertical":this.vertical}},hasBackground(){return!this.text&&!this.outlined},isDark(){return this.hasBackground?!this.light:Ke.options.computed.isDark.call(this)},styles(){if(this.absolute||!this.app)return{};const{bar:r,bottom:e,footer:t,insetFooter:s,left:n,right:i,top:a}=this.$vuetify.application;return{paddingBottom:ge(e+t+s),paddingLeft:ge(n),paddingRight:ge(i),paddingTop:ge(r+a)}}},watch:{isActive:"setTimeout",timeout:"setTimeout"},mounted(){this.isActive&&this.setTimeout()},created(){this.$attrs.hasOwnProperty("auto-height")&&xl("auto-height",this),this.timeout==0&&U4('timeout="0"',"-1",this)},methods:{genActions(){return this.$createElement("div",{staticClass:"v-snack__action "},[me(this,"action",{attrs:{class:"v-snack__btn"}})])},genContent(){return this.$createElement("div",{staticClass:"v-snack__content",class:{[this.contentClass]:!0},attrs:{role:"status","aria-live":"polite"}},[me(this)])},genWrapper(){const e=(this.hasBackground?this.setBackgroundColor:this.setTextColor)(this.color,{staticClass:"v-snack__wrapper",class:Tt.options.computed.classes.call(this),style:Tt.options.computed.styles.call(this),directives:[{name:"show",value:this.isActive}],on:{pointerenter:()=>window.clearTimeout(this.activeTimeout),pointerleave:this.setTimeout}});return this.$createElement("div",e,[this.genContent(),this.genActions()])},genTransition(){return this.$createElement("transition",{props:{name:this.transition}},[this.genWrapper()])},setTimeout(){window.clearTimeout(this.activeTimeout);const r=Number(this.timeout);!this.isActive||[0,-1].includes(r)||(this.activeTimeout=window.setTimeout(()=>{this.isActive=!1},r))}},render(r){return r("div",{staticClass:"v-snack",class:this.classes,style:this.styles},[this.transition!==!1?this.genTransition():this.genWrapper()])}}),bW=be(Tt,qy("stepper"),$m),nb=bW.extend({name:"v-stepper",provide(){return{stepClick:this.stepClick,isVertical:this.vertical}},props:{altLabels:Boolean,nonLinear:Boolean,flat:Boolean,vertical:Boolean},data(){const r={isBooted:!1,steps:[],content:[],isReverse:!1};return r.internalLazyValue=this.value!=null?this.value:(r[0]||{}).step||1,r},computed:{classes(){return{"v-stepper--flat":this.flat,"v-stepper--is-booted":this.isBooted,"v-stepper--vertical":this.vertical,"v-stepper--alt-labels":this.altLabels,"v-stepper--non-linear":this.nonLinear,...Tt.options.computed.classes.call(this)}},styles(){return{...Tt.options.computed.styles.call(this)}}},watch:{internalValue(r,e){this.isReverse=Number(r)<Number(e),e&&(this.isBooted=!0),this.updateView()}},created(){this.$listeners.input&&qs("@input","@change",this)},mounted(){this.updateView()},methods:{register(r){r.$options.name==="v-stepper-step"?this.steps.push(r):r.$options.name==="v-stepper-content"&&(r.isVertical=this.vertical,this.content.push(r))},unregister(r){r.$options.name==="v-stepper-step"?this.steps=this.steps.filter(e=>e!==r):r.$options.name==="v-stepper-content"&&(r.isVertical=this.vertical,this.content=this.content.filter(e=>e!==r))},stepClick(r){this.$nextTick(()=>this.internalValue=r)},updateView(){for(let r=this.steps.length;--r>=0;)this.steps[r].toggle(this.internalValue);for(let r=this.content.length;--r>=0;)this.content[r].toggle(this.internalValue,this.isReverse)}},render(r){return r(this.tag,{staticClass:"v-stepper",class:this.classes,style:this.styles},me(this))}}),$W=be(ut,Ka("stepper","v-stepper-step","v-stepper")),ib=$W.extend().extend({name:"v-stepper-step",directives:{ripple:os},inject:["stepClick"],props:{color:{type:String,default:"primary"},complete:Boolean,completeIcon:{type:String,default:"$complete"},editable:Boolean,editIcon:{type:String,default:"$edit"},errorIcon:{type:String,default:"$error"},rules:{type:Array,default:()=>[]},step:[Number,String]},data(){return{isActive:!1,isInactive:!0}},computed:{classes(){return{"v-stepper__step--active":this.isActive,"v-stepper__step--editable":this.editable,"v-stepper__step--inactive":this.isInactive,"v-stepper__step--error error--text":this.hasError,"v-stepper__step--complete":this.complete}},hasError(){return this.rules.some(r=>r()!==!0)}},mounted(){this.stepper&&this.stepper.register(this)},beforeDestroy(){this.stepper&&this.stepper.unregister(this)},methods:{click(r){r.stopPropagation(),this.$emit("click",r),this.editable&&this.stepClick(this.step)},genIcon(r){return this.$createElement(S,r)},genLabel(){return this.$createElement("div",{staticClass:"v-stepper__label"},me(this))},genStep(){const r=!this.hasError&&(this.complete||this.isActive)?this.color:!1;return this.$createElement("span",this.setBackgroundColor(r,{staticClass:"v-stepper__step__step"}),this.genStepContent())},genStepContent(){const r=[];return this.hasError?r.push(this.genIcon(this.errorIcon)):this.complete?this.editable?r.push(this.genIcon(this.editIcon)):r.push(this.genIcon(this.completeIcon)):r.push(String(this.step)),r},keyboardClick(r){r.keyCode===Pe.space&&this.click(r)},toggle(r){this.isActive=r.toString()===this.step.toString(),this.isInactive=Number(r)<Number(this.step)}},render(r){return r("div",{attrs:{tabindex:this.editable?0:-1},staticClass:"v-stepper__step",class:this.classes,directives:[{name:"ripple",value:this.editable}],on:{click:this.click,keydown:this.keyboardClick}},[this.genStep(),this.genLabel()])}}),wW=be(Ka("stepper","v-stepper-content","v-stepper")),ab=wW.extend().extend({name:"v-stepper-content",inject:{isVerticalProvided:{from:"isVertical"}},props:{step:{type:[Number,String],required:!0}},data(){return{height:0,isActive:null,isReverse:!1,isVertical:this.isVerticalProvided}},computed:{computedTransition(){return(this.$vuetify.rtl?!this.isReverse:this.isReverse)?iU:nU},styles(){return this.isVertical?{height:ge(this.height)}:{}}},watch:{isActive(r,e){if(r&&e==null){this.height="auto";return}this.isVertical&&(this.isActive?this.enter():this.leave())}},mounted(){this.$refs.wrapper.addEventListener("transitionend",this.onTransition,!1),this.stepper&&this.stepper.register(this)},beforeDestroy(){this.$refs.wrapper.removeEventListener("transitionend",this.onTransition,!1),this.stepper&&this.stepper.unregister(this)},methods:{onTransition(r){!this.isActive||r.propertyName!=="height"||(this.height="auto")},enter(){let r=0;requestAnimationFrame(()=>{r=this.$refs.wrapper.scrollHeight}),this.height=0,setTimeout(()=>this.isActive&&(this.height=r||"auto"),450)},leave(){this.height=this.$refs.wrapper.clientHeight,setTimeout(()=>this.height=0,10)},toggle(r,e){this.isActive=r.toString()===this.step.toString(),this.isReverse=e}},render(r){const e={staticClass:"v-stepper__content"},t={staticClass:"v-stepper__wrapper",style:this.styles,ref:"wrapper"};this.isVertical||(e.directives=[{name:"show",value:this.isActive}]);const s=r("div",t,me(this)),n=r("div",e,[s]);return r(this.computedTransition,{on:this.$listeners},[n])}}),ob=Gr("v-stepper__header"),SW=Gr("v-stepper__items"),Ce=Uc.extend({name:"v-switch",directives:{Touch:ld},props:{inset:Boolean,loading:{type:[Boolean,String],default:!1},flat:{type:Boolean,default:!1}},computed:{classes(){return{...Ct.options.computed.classes.call(this),"v-input--selection-controls v-input--switch":!0,"v-input--switch--flat":this.flat,"v-input--switch--inset":this.inset}},attrs(){return{"aria-checked":String(this.isActive),"aria-disabled":String(this.isDisabled),role:"switch"}},validationState(){if(this.hasError&&this.shouldValidate)return"error";if(this.hasSuccess)return"success";if(this.hasColor!==null)return this.computedColor},switchData(){return this.setTextColor(this.loading?void 0:this.validationState,{class:this.themeClasses})}},methods:{genDefaultSlot(){return[this.genSwitch(),this.genLabel()]},genSwitch(){const{title:r,...e}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.genInput("checkbox",{...this.attrs,...e}),this.genRipple(this.setTextColor(this.validationState,{directives:[{name:"touch",value:{left:this.onSwipeLeft,right:this.onSwipeRight}}]})),this.$createElement("div",{staticClass:"v-input--switch__track",...this.switchData}),this.$createElement("div",{staticClass:"v-input--switch__thumb",...this.switchData},[this.genProgress()])])},genProgress(){return this.$createElement(aU,{},[this.loading===!1?null:me(this,"progress")||this.$createElement(Wo,{props:{color:this.loading===!0||this.loading===""?this.color||"primary":this.loading,size:16,width:2,indeterminate:!0}})])},onSwipeLeft(){this.isActive&&this.onChange()},onSwipeRight(){this.isActive||this.onChange()},onKeydown(r){(r.keyCode===Pe.left&&this.isActive||r.keyCode===Pe.right&&!this.isActive)&&this.onChange()}}}),xW=be(Pc,cd,Ke).extend({name:"v-tabs-bar",provide(){return{tabsBar:this}},computed:{classes(){return{...Pc.options.computed.classes.call(this),"v-tabs-bar":!0,"v-tabs-bar--is-mobile":this.isMobile,"v-tabs-bar--show-arrows":this.showArrows,...this.themeClasses}}},watch:{items:"callSlider",internalValue:"callSlider",$route:"onRouteChange"},methods:{callSlider(){this.isBooted&&this.$emit("call:slider")},genContent(){const r=Pc.options.methods.genContent.call(this);return r.data=r.data||{},r.data.staticClass+=" v-tabs-bar__content",r},onRouteChange(r,e){if(this.mandatory)return;const t=this.items,s=r.path,n=e.path;let i=!1,a=!1;for(const o of t)if(o.to===n?a=!0:o.to===s&&(i=!0),i&&a)break;!i&&a&&(this.internalValue=void 0)}},render(r){const e=Pc.options.render.call(this,r);return e.data.attrs={role:"tablist"},e}}),lb=cS.extend({name:"v-tabs-items",props:{mandatory:{type:Boolean,default:!1}},computed:{classes(){return{...cS.options.computed.classes.call(this),"v-tabs-items":!0}},isDark(){return this.rootIsDark}},methods:{getValue(r,e){return r.id||fr.options.methods.getValue.call(this,r,e)}}}),CW=be(ut).extend({name:"v-tabs-slider",render(r){return r("div",this.setBackgroundColor(this.color,{staticClass:"v-tabs-slider"}))}}),PW=be(ut,$m,Ke),cb=PW.extend().extend({name:"v-tabs",directives:{Resize:od},props:{activeClass:{type:String,default:""},alignWithTitle:Boolean,backgroundColor:String,centerActive:Boolean,centered:Boolean,fixedTabs:Boolean,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,iconsAndText:Boolean,mobileBreakpoint:[String,Number],nextIcon:{type:String,default:"$next"},optional:Boolean,prevIcon:{type:String,default:"$prev"},right:Boolean,showArrows:[Boolean,String],sliderColor:String,sliderSize:{type:[Number,String],default:2},vertical:Boolean},data(){return{resizeTimeout:0,slider:{height:null,left:null,right:null,top:null,width:null},transitionTime:300}},computed:{classes(){return{"v-tabs--align-with-title":this.alignWithTitle,"v-tabs--centered":this.centered,"v-tabs--fixed-tabs":this.fixedTabs,"v-tabs--grow":this.grow,"v-tabs--icons-and-text":this.iconsAndText,"v-tabs--right":this.right,"v-tabs--vertical":this.vertical,...this.themeClasses}},isReversed(){return this.$vuetify.rtl&&this.vertical},sliderStyles(){return{height:ge(this.slider.height),left:this.isReversed?void 0:ge(this.slider.left),right:this.isReversed?ge(this.slider.right):void 0,top:this.vertical?ge(this.slider.top):void 0,transition:this.slider.left!=null?null:"none",width:ge(this.slider.width)}},computedColor(){return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"}},watch:{alignWithTitle:"callSlider",centered:"callSlider",centerActive:"callSlider",fixedTabs:"callSlider",grow:"callSlider",iconsAndText:"callSlider",right:"callSlider",showArrows:"callSlider",vertical:"callSlider","$vuetify.application.left":"onResize","$vuetify.application.right":"onResize","$vuetify.rtl":"onResize"},mounted(){if(typeof ResizeObserver<"u"){const r=new ResizeObserver(()=>{this.onResize()});r.observe(this.$el),this.$on("hook:destroyed",()=>{r.disconnect()})}this.$nextTick(()=>{window.setTimeout(this.callSlider,30)})},methods:{callSlider(){return this.hideSlider||!this.$refs.items||!this.$refs.items.selectedItems.length?(this.slider.width=0,!1):(this.$nextTick(()=>{const r=this.$refs.items.selectedItems[0];if(!r||!r.$el){this.slider.width=0,this.slider.left=0;return}const e=r.$el;this.slider={height:this.vertical?e.scrollHeight:Number(this.sliderSize),left:this.vertical?0:e.offsetLeft,right:this.vertical?0:e.offsetLeft+e.offsetWidth,top:e.offsetTop,width:this.vertical?Number(this.sliderSize):e.scrollWidth}}),!0)},genBar(r,e){const t={style:{height:ge(this.height)},props:{activeClass:this.activeClass,centerActive:this.centerActive,dark:this.dark,light:this.light,mandatory:!this.optional,mobileBreakpoint:this.mobileBreakpoint,nextIcon:this.nextIcon,prevIcon:this.prevIcon,showArrows:this.showArrows,value:this.internalValue},on:{"call:slider":this.callSlider,change:s=>{this.internalValue=s}},ref:"items"};return this.setTextColor(this.computedColor,t),this.setBackgroundColor(this.backgroundColor,t),this.$createElement(xW,t,[this.genSlider(e),r])},genItems(r,e){return r||(e.length?this.$createElement(lb,{props:{value:this.internalValue},on:{change:t=>{this.internalValue=t}}},e):null)},genSlider(r){return this.hideSlider?null:(r||(r=this.$createElement(CW,{props:{color:this.sliderColor}})),this.$createElement("div",{staticClass:"v-tabs-slider-wrapper",style:this.sliderStyles},[r]))},onResize(){this._isDestroyed||(clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.callSlider,0))},parseNodes(){let r=null,e=null;const t=[],s=[],n=me(this)||[],i=n.length;for(let a=0;a<i;a++){const o=n[a];if(o.componentOptions)switch(o.componentOptions.Ctor.options.name){case"v-tabs-slider":e=o;break;case"v-tabs-items":r=o;break;case"v-tab-item":t.push(o);break;default:s.push(o)}else s.push(o)}return{tab:s,slider:e,items:r,item:t}}},render(r){const{tab:e,slider:t,items:s,item:n}=this.parseNodes();return r("div",{staticClass:"v-tabs",class:this.classes,directives:[{name:"resize",modifiers:{quiet:!0},value:this.onResize}]},[this.genBar(e,t),this.genItems(s,n)])}}),AW=be(bs,ji("tabsBar"),Ke),Ih=AW.extend().extend().extend({name:"v-tab",props:{ripple:{type:[Boolean,Object],default:!0},tabValue:{required:!1}},data:()=>({proxyClass:"v-tab--active"}),computed:{classes(){return{"v-tab":!0,...bs.options.computed.classes.call(this),"v-tab--disabled":this.disabled,...this.groupClasses}},value(){if(this.tabValue!=null)return this.tabValue;let r=this.to||this.href;return r==null?r:(this.$router&&this.to===Object(this.to)&&(r=this.$router.resolve(this.to,this.$route,this.append).href),r.replace("#",""))}},methods:{click(r){if(this.disabled){r.preventDefault();return}this.href&&this.href.indexOf("#")>-1&&r.preventDefault(),r.detail&&this.$el.blur(),this.$emit("click",r),this.to||this.toggle()},toggle(){(!this.isActive||!this.tabsBar.mandatory&&!this.to)&&this.$emit("change")}},render(r){const{tag:e,data:t}=this.generateRouteLink();return t.attrs={...t.attrs,"aria-selected":String(this.isActive),role:"tab",tabindex:this.disabled?-1:0},t.on={...t.on,keydown:s=>{s.keyCode===Pe.enter&&this.click(s),this.$emit("keydown",s)}},r(e,t,me(this))}}),Fv=uS.extend({name:"v-tab-item",props:{id:String},methods:{genWindowItem(){const r=uS.options.methods.genWindowItem.call(this);return r.data.domProps=r.data.domProps||{},r.data.domProps.id=this.id||this.value,r}}}),LW=be(ae),Lm=LW.extend({name:"v-textarea",props:{autoGrow:Boolean,noResize:Boolean,rowHeight:{type:[Number,String],default:24,validator:r=>!isNaN(parseFloat(r))},rows:{type:[Number,String],default:5,validator:r=>!isNaN(parseInt(r,10))}},computed:{classes(){return{"v-textarea":!0,"v-textarea--auto-grow":this.autoGrow,"v-textarea--no-resize":this.noResizeHandle,...ae.options.computed.classes.call(this)}},noResizeHandle(){return this.noResize||this.autoGrow}},watch:{autoGrow(r){this.$nextTick(()=>{var e;r?this.calculateInputHeight():(e=this.$refs.input)===null||e===void 0||e.style.removeProperty("height")})},lazyValue(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)},rowHeight(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)}},mounted(){setTimeout(()=>{this.autoGrow&&this.calculateInputHeight()},0)},methods:{calculateInputHeight(){const r=this.$refs.input;if(!r)return;r.style.height="0";const e=r.scrollHeight,t=parseInt(this.rows,10)*parseFloat(this.rowHeight);r.style.height=Math.max(t,e)+"px"},genInput(){const r=ae.options.methods.genInput.call(this);return r.tag="textarea",delete r.data.attrs.type,r.data.attrs.rows=this.rows,r},onInput(r){ae.options.methods.onInput.call(this,r),this.autoGrow&&this.calculateInputHeight()},onKeyDown(r){this.isFocused&&r.keyCode===13&&r.stopPropagation(),this.$emit("keydown",r)}}}),EW=be(Ke).extend({name:"v-timeline",provide(){return{timeline:this}},props:{alignTop:Boolean,dense:Boolean,reverse:Boolean},computed:{classes(){return{"v-timeline--align-top":this.alignTop,"v-timeline--dense":this.dense,"v-timeline--reverse":this.reverse,...this.themeClasses}}},render(r){return r("div",{staticClass:"v-timeline",class:this.classes},me(this))}}),OW=be(ut,Ke),TW=OW.extend().extend({name:"v-timeline-item",inject:["timeline"],props:{color:{type:String,default:"primary"},fillDot:Boolean,hideDot:Boolean,icon:String,iconColor:String,large:Boolean,left:Boolean,right:Boolean,small:Boolean},computed:{hasIcon(){return!!this.icon||!!this.$slots.icon}},methods:{genBody(){return this.$createElement("div",{staticClass:"v-timeline-item__body"},me(this))},genIcon(){return me(this,"icon")||this.$createElement(S,{props:{color:this.iconColor,dark:!this.theme.isDark,small:this.small}},this.icon)},genInnerDot(){const r=this.setBackgroundColor(this.color);return this.$createElement("div",{staticClass:"v-timeline-item__inner-dot",...r},[this.hasIcon&&this.genIcon()])},genDot(){return this.$createElement("div",{staticClass:"v-timeline-item__dot",class:{"v-timeline-item__dot--small":this.small,"v-timeline-item__dot--large":this.large}},[this.genInnerDot()])},genDivider(){const r=[];return this.hideDot||r.push(this.genDot()),this.$createElement("div",{staticClass:"v-timeline-item__divider"},r)},genOpposite(){return this.$createElement("div",{staticClass:"v-timeline-item__opposite"},me(this,"opposite"))}},render(r){const e=[this.genBody(),this.genDivider()];return this.$slots.opposite&&e.push(this.genOpposite()),r("div",{staticClass:"v-timeline-item",class:{"v-timeline-item--fill-dot":this.fillDot,"v-timeline-item--before":this.timeline.reverse?this.right:this.left,"v-timeline-item--after":this.timeline.reverse?this.left:this.right,...this.themeClasses}},e)}}),md=Gr("v-toolbar__title"),kW=Gr("v-toolbar__items"),Oe=be(ut,Zy,dd,Yy).extend({name:"v-tooltip",props:{closeDelay:{type:[Number,String],default:0},disabled:Boolean,openDelay:{type:[Number,String],default:0},openOnHover:{type:Boolean,default:!0},openOnFocus:{type:Boolean,default:!0},tag:{type:String,default:"span"},transition:String},data:()=>({calculatedMinWidth:0,closeDependents:!1}),computed:{calculatedLeft(){const{activator:r,content:e}=this.dimensions,t=!this.bottom&&!this.left&&!this.top&&!this.right,s=this.attach!==!1?r.offsetLeft:r.left;let n=0;return this.top||this.bottom||t?n=s+r.width/2-e.width/2:(this.left||this.right)&&(n=s+(this.right?r.width:-e.width)+(this.right?10:-10)),this.nudgeLeft&&(n-=parseInt(this.nudgeLeft)),this.nudgeRight&&(n+=parseInt(this.nudgeRight)),`${this.calcXOverflow(n,this.dimensions.content.width)}px`},calculatedTop(){const{activator:r,content:e}=this.dimensions,t=this.attach!==!1?r.offsetTop:r.top;let s=0;return this.top||this.bottom?s=t+(this.bottom?r.height:-e.height)+(this.bottom?10:-10):(this.left||this.right)&&(s=t+r.height/2-e.height/2),this.nudgeTop&&(s-=parseInt(this.nudgeTop)),this.nudgeBottom&&(s+=parseInt(this.nudgeBottom)),this.attach===!1&&(s+=this.pageYOffset),`${this.calcYOverflow(s)}px`},classes(){return{"v-tooltip--top":this.top,"v-tooltip--right":this.right,"v-tooltip--bottom":this.bottom,"v-tooltip--left":this.left,"v-tooltip--attached":this.attach===""||this.attach===!0||this.attach==="attach"}},computedTransition(){return this.transition?this.transition:this.isActive?"scale-transition":"fade-transition"},offsetY(){return this.top||this.bottom},offsetX(){return this.left||this.right},styles(){return{left:this.calculatedLeft,maxWidth:ge(this.maxWidth),minWidth:ge(this.minWidth),top:this.calculatedTop,zIndex:this.zIndex||this.activeZIndex}}},beforeMount(){this.$nextTick(()=>{this.value&&this.callActivate()})},mounted(){C4(this,"activator")==="v-slot"&&Ns(`v-tooltip's activator slot must be bound, try '<template #activator="data"><v-btn v-on="data.on>'`,this)},methods:{activate(){this.updateDimensions(),requestAnimationFrame(this.startTransition)},deactivate(){this.runDelay("close")},genActivatorListeners(){const r=ud.options.methods.genActivatorListeners.call(this);return this.openOnFocus&&(r.focus=e=>{this.getActivator(e),this.runDelay("open")},r.blur=e=>{this.getActivator(e),this.runDelay("close")}),r.keydown=e=>{e.keyCode===Pe.esc&&(this.getActivator(e),this.runDelay("close"))},r},genActivatorAttributes(){return{"aria-haspopup":!0,"aria-expanded":String(this.isActive)}},genTransition(){const r=this.genContent();return this.computedTransition?this.$createElement("transition",{props:{name:this.computedTransition}},[r]):r},genContent(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-tooltip__content",class:{[this.contentClass]:!0,menuable__content__active:this.isActive,"v-tooltip__content--fixed":this.activatorFixed},style:this.styles,attrs:this.getScopeIdAttrs(),directives:[{name:"show",value:this.isContentActive}],ref:"content"}),this.getContentSlot())}},render(r){return r(this.tag,{staticClass:"v-tooltip",class:this.classes},[this.showLazyContent(()=>[this.genTransition()]),this.genActivator()])}}),DW=zy.extend({name:"v-virtual-scroll",directives:{Scroll:Uy},props:{bench:{type:[Number,String],default:0},itemHeight:{type:[Number,String],required:!0},items:{type:Array,default:()=>[]}},data:()=>({first:0,last:0,scrollTop:0}),computed:{__bench(){return parseInt(this.bench,10)},__itemHeight(){return parseInt(this.itemHeight,10)},firstToRender(){return Math.max(0,this.first-this.__bench)},lastToRender(){return Math.min(this.items.length,this.last+this.__bench)}},watch:{height:"onScroll",itemHeight:"onScroll"},mounted(){this.last=this.getLast(0)},methods:{getChildren(){return this.items.slice(this.firstToRender,this.lastToRender).map(this.genChild)},genChild(r,e){e+=this.firstToRender;const t=ge(e*this.__itemHeight);return this.$createElement("div",{staticClass:"v-virtual-scroll__item",style:{top:t},key:e},me(this,"default",{index:e,item:r}))},getFirst(){return Math.floor(this.scrollTop/this.__itemHeight)},getLast(r){const e=parseInt(this.height||0,10)||this.$el.clientHeight;return r+Math.ceil(e/this.__itemHeight)},onScroll(){this.scrollTop=this.$el.scrollTop,this.first=this.getFirst(),this.last=this.getLast(this.first)}},render(r){const e=r("div",{staticClass:"v-virtual-scroll__container",style:{height:ge(this.items.length*this.__itemHeight)}},this.getChildren());return r("div",{staticClass:"v-virtual-scroll",style:this.measurableStyles,directives:[{name:"scroll",modifiers:{self:!0},value:this.onScroll}],on:this.$listeners},[e])}}),pe=(r,e)=>{if(!b.$socket){ye.warn("Socket emit denied, socket not ready.",r,e);return}b.$socket.emit(r,e)},I={async machineServicesRestart(r){const e=et.onServiceRestart;pe("machine.services.restart",{dispatch:"void",params:{service:r},wait:e})},async machineServicesStart(r){const e=et.onServiceStart;pe("machine.services.start",{dispatch:"void",params:{service:r},wait:e})},async machineServicesStop(r){const e=et.onServiceStop;pe("machine.services.stop",{dispatch:"void",params:{service:r},wait:e})},async machineReboot(){pe("machine.reboot",{dispatch:"void"})},async machineShutdown(){pe("machine.shutdown",{dispatch:"void"})},async machineUpdateStatus(r=!1){pe("machine.update.status",{dispatch:"version/onUpdateStatus",params:{refresh:r},wait:et.onVersionRefresh})},async machineUpdateRefresh(r){pe("machine.update.refresh",{dispatch:"version/onUpdateStatus",params:{name:r},wait:et.onVersionRefresh})},async machineUpdateRecover(r,e=!1){pe("machine.update.recover",{dispatch:r==="moonraker"?"version/onUpdatedMoonraker":r==="klipper"?"version/onUpdatedKlipper":"version/onUpdatedClient",params:{name:r,hard:e}})},async machineUpdateMoonraker(){pe("machine.update.moonraker",{dispatch:"version/onUpdatedMoonraker"})},async machineUpdateKlipper(){pe("machine.update.klipper",{dispatch:"version/onUpdatedKlipper",params:{include_deps:!0}})},async machineUpdateClient(r){pe("machine.update.client",{dispatch:r==="fluidd"?"version/onUpdatedFluidd":"version/onUpdatedClient",params:{name:r}})},async machineUpdateSystem(){pe("machine.update.system",{dispatch:"version/onUpdatedSystem"})},async machineUpdateAll(){pe("machine.update.full",{dispatch:"version/onUpdatedAll"})},async machineProcStats(){pe("machine.proc_stats",{dispatch:"server/onMachineProcStats"})},async machineSystemInfo(){pe("machine.system_info",{dispatch:"server/onMachineSystemInfo"})},async machineDevicePowerDevices(){pe("machine.device_power.devices",{dispatch:"power/onInit"})},async machineDevicePowerStatus(r){pe("machine.device_power.status",{dispatch:"power/onStatus",params:{[r]:null}})},async machineDevicePowerToggle(r,e,t){pe(e==="on"?"machine.device_power.on":"machine.device_power.off",{dispatch:"power/onToggle",params:{[r]:null},wait:t})},async machinePeripheralsUsb(){pe("machine.peripherals.usb",{dispatch:"server/onMachinePeripherals",wait:et.onMachinePeripheralsUsb})},async machinePeripheralsSerial(){pe("machine.peripherals.serial",{dispatch:"server/onMachinePeripherals",wait:et.onMachinePeripheralsSerial})},async machinePeripheralsVideo(){pe("machine.peripherals.video",{dispatch:"server/onMachinePeripherals",wait:et.onMachinePeripheralsVideo})},async machinePeripheralsCanbus(r){const e=`${et.onMachinePeripheralsCanbus}/${r}`;pe("machine.peripherals.canbus",{dispatch:"server/onMachinePeripheralsCanbus",params:{interface:r},wait:e})},async machineTimelapseSetSettings(r,e){pe("machine.timelapse.post_settings",{dispatch:"timelapse/onSettings",params:r,wait:e})},async machineTimelapseSaveFrames(r){pe("machine.timelapse.saveframes",{wait:r})},async machineTimelapseRender(){pe("machine.timelapse.render",{})},async printerInfo(){pe("printer.info",{dispatch:"printer/onPrinterInfo"})},async printerRestart(){pe("printer.restart",{dispatch:"void",wait:et.onKlipperRestart})},async printerFirmwareRestart(){pe("printer.firmware_restart",{dispatch:"void",wait:et.onKlipperFirmwareRestart})},async printerQueryEndstops(){pe("printer.query_endstops.status",{dispatch:"printer/onQueryEndstops",wait:et.onQueryEndstops})},async printerObjectsList(){pe("printer.objects.list",{dispatch:"printer/onPrinterObjectsList"})},async printerObjectsSubscribe(r){pe("printer.objects.subscribe",{dispatch:"printer/onPrinterObjectsSubscribe",params:{objects:r}})},async printerPrintStart(r){pe("printer.print.start",{dispatch:"void",params:{filename:r}})},async printerPrintCancel(){pe("printer.print.cancel",{dispatch:"printer/onPrintCancel",wait:et.onPrintCancel})},async printerPrintPause(){pe("printer.print.pause",{dispatch:"printer/onPrintPause",wait:et.onPrintPause})},async printerPrintResume(){pe("printer.print.resume",{dispatch:"printer/onPrintResume",wait:et.onPrintResume})},async printerGcodeScript(r,e){pe("printer.gcode.script",{dispatch:"console/onGcodeScript",params:{script:r},wait:e})},async printerGcodeHelp(){pe("printer.gcode.help",{dispatch:"console/onGcodeHelp"})},async printerEmergencyStop(){pe("printer.emergency_stop",{dispatch:"void"})},async serverInfo(){pe("server.info",{dispatch:"server/onServerInfo"})},async identify(r){pe("server.connection.identify",{dispatch:"socket/onConnectionId",params:r})},async timelapseState(){pe("machine.timelapse.get_settings",{dispatch:"timelapse/onSettings"}),pe("machine.timelapse.lastframeinfo",{dispatch:"timelapse/onLastFrame"})},async serverConfig(){pe("server.config",{dispatch:"server/onServerConfig"})},async serverWrite(r,e,t=he.MOONRAKER_DB.fluidd.NAMESPACE){pe("server.database.post_item",{params:{namespace:t,key:r,value:e}})},async serverDelete(r,e=he.MOONRAKER_DB.fluidd.NAMESPACE){pe("server.database.delete_item",{params:{namespace:e,key:r}})},async serverRead(r,e=he.MOONRAKER_DB.fluidd.NAMESPACE){pe("server.database.get_item",{dispatch:"socket/onServerRead",params:{namespace:e,key:r}})},async serverRestart(){pe("server.restart",{dispatch:"void"})},async serverTemperatureStore(){pe("server.temperature_store",{dispatch:"charts/initTempStore",params:{include_monitors:!0}})},async serverGcodeStore(){pe("server.gcode_store",{dispatch:"console/onGcodeStore"})},async serverHistoryList(r){pe("server.history.list",{dispatch:"history/onHistoryList",params:r})},async serverHistoryTotals(){pe("server.history.totals",{dispatch:"history/onHistoryTotals"})},async serverHistoryDeleteJob(r){pe("server.history.delete_job",{dispatch:"history/onDelete",params:r==="all"?{all:!0}:{uid:r}})},async serverHistoryResetTotals(){pe("server.history.reset_totals",{dispatch:"history/onHistoryChange"})},async serverJobQueueStatus(){pe("server.job_queue.status",{dispatch:"jobQueue/onJobQueueStatus",wait:et.onJobQueue})},async serverJobQueuePostJob(r,e){pe("server.job_queue.post_job",{dispatch:"jobQueue/onJobQueueStatus",params:{filenames:r,reset:e},wait:et.onJobQueue})},async serverJobQueueDeleteJobs(r){const e=r.length>0&&r[0]==="all"?{all:!0}:{job_ids:r};pe("server.job_queue.delete_job",{dispatch:"jobQueue/onJobQueueStatus",params:e,wait:et.onJobQueue})},async serverJobQueuePause(){pe("server.job_queue.pause",{dispatch:"jobQueue/onJobQueueStatus",wait:et.onJobQueue})},async serverJobQueueStart(){pe("server.job_queue.start",{dispatch:"jobQueue/onJobQueueStatus",wait:et.onJobQueue})},async serverFilesMetadata(r){pe("server.files.metadata",{dispatch:"files/onFileMetaData",params:{filename:r}})},async serverFilesMetascan(r){pe("server.files.metascan",{dispatch:"files/onFileMetaData",params:{filename:r}})},async serverFilesGetDirectory(r,e){const t=`${et.onFileSystem}/${r}/${e}/`;pe("server.files.get_directory",{dispatch:"files/onServerFilesGetDirectory",wait:t,params:{root:r,path:e,extended:!0}})},async serverFilesListRoot(r){const e=`${et.onFileSystem}/${r}/`;pe("server.files.list",{dispatch:"files/onServerFilesListRoot",wait:e,params:{root:r}})},async serverFilesMove(r,e){const t=`${et.onFileSystem}/${r}/`;pe("server.files.move",{dispatch:"void",wait:t,params:{source:r,dest:e}})},async serverFilesCopy(r,e){const t=`${et.onFileSystem}/${r}/`;pe("server.files.copy",{dispatch:"void",wait:t,params:{source:r,dest:e}})},async serverFilesZip(r,e,t){const s=`${et.onFileSystem}/${r}/`;pe("server.files.zip",{dispatch:"void",wait:s,params:{dest:r,items:e,store_only:t}})},async serverFilesPostDirectory(r){const e=`${et.onFileSystem}/${r}/`;pe("server.files.post_directory",{dispatch:"void",wait:e,params:{path:r}})},async serverFilesDeleteFile(r){const e=`${et.onFileSystem}/${r}/`;pe("server.files.delete_file",{dispatch:"void",wait:e,params:{path:r}})},async serverFilesDeleteDirectory(r,e=!1){const t=`${et.onFileSystem}/${r}/`;pe("server.files.delete_directory",{dispatch:"void",wait:t,params:{path:r,force:e}})},async serverAnnouncementsList(){pe("server.announcements.list",{dispatch:"announcements/onAnnouncementsList"})},async serverAnnouncementsDismiss(r,e){pe("server.announcements.dismiss",{dispatch:"void",params:{entry_id:r,wake_time:e}})},async serverLogsRollover(r){pe("server.logs.rollover",{dispatch:"server/onLogsRollOver",params:{application:r}})},async serverWebcamsList(){pe("server.webcams.list",{dispatch:"webcams/onWebcamsList"})},async serverWebcamsWrite(r){pe("server.webcams.post_item",{params:r})},async serverWebcamsDelete(r){pe("server.webcams.delete_item",{params:{uid:r}})},async serverSensorsList(){pe("server.sensors.list",{dispatch:"sensors/onSensorsList"})},async serverSpoolmanGetSpoolId(){pe("server.spoolman.get_spool_id",{dispatch:"spoolman/onActiveSpool"})},async serverSpoolmanPostSpoolId(r){pe("server.spoolman.post_spool_id",{params:{spool_id:r},dispatch:"spoolman/onActiveSpool"})},async serverSpoolmanProxyGetAvailableSpools(){pe("server.spoolman.proxy",{params:{request_method:"GET",path:"/v1/spool",use_v2_response:!0},dispatch:"spoolman/onAvailableSpools"})}};var MW=Object.defineProperty,RW=Object.getOwnPropertyDescriptor,IW=(r,e,t,s)=>{for(var n=s>1?void 0:s?RW(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&&MW(e,t,n),n};let J=class extends b{get authenticated(){return this.$store.getters["auth/getAuthenticated"]}get socketConnected(){return this.$store.getters["socket/getConnectionState"]}get apiConnected(){return this.$store.getters["socket/getApiConnected"]}get socketConnecting(){return this.$store.getters["socket/getConnectingState"]}get klippyReady(){return this.$store.getters["printer/getKlippyReady"]}get klippyConnected(){return this.$store.getters["printer/getKlippyConnected"]}get hasWarnings(){return this.$store.getters["printer/getHasWarnings"]}get klippyState(){return this.$store.getters["printer/getKlippyState"]}get klippyStateMessage(){return this.$store.getters["printer/getKlippyStateMessage"]}get printerState(){return this.$store.getters["printer/getPrinterState"]}get printerBusy(){const r=this.printerState.toLowerCase();return r==="printing"||r==="paused"||r==="busy"}get printerPaused(){return this.printerState.toLowerCase()==="paused"}get printerPrinting(){return this.printerState.toLowerCase()==="printing"}hasWait(r){return this.$store.getters["wait/hasWait"](r)}get hasWaits(){return this.$store.getters["wait/hasWaits"]}hasWaitsBy(r){return this.$store.getters["wait/hasWaitsBy"](r)}sendGcode(r,e){I.printerGcodeScript(r,e),this.addConsoleEntry(r)}addConsoleEntry(r){this.$store.dispatch("console/onAddConsoleEntry",{message:r,type:"command"})}async emergencyStop(){(!this.$store.state.config.uiSettings.general.confirmOnEstop||await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_emergency_stop"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"}))&&I.printerEmergencyStop()}async cancelPrint(){await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_cancel_print"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})&&(I.printerPrintCancel(),this.addConsoleEntry("CANCEL_PRINT"))}pausePrint(){I.printerPrintPause(),this.addConsoleEntry("PAUSE")}resumePrint(){I.printerPrintResume(),this.addConsoleEntry("RESUME")}homeAll(){this.sendGcode("G28",this.$waits.onHomeAll)}};J=IW([A],J);var FW=Object.defineProperty,HW=Object.getOwnPropertyDescriptor,jW=(r,e,t,s)=>{for(var n=s>1?void 0:s?HW(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&&FW(e,t,n),n};let Hv=class extends b{get classes(){if(this.$attrs.fab===void 0&&this.$attrs.icon===void 0&&this.$attrs.outlined===void 0&&this.$attrs.text===void 0&&this.$attrs.color==="primary")return{"grey--text text--darken-3":!this.colorIsDark}}get colorIsDark(){var e;const r=((e=this.$vuetify.theme.currentTheme[this.$attrs.color])==null?void 0:e.toString())??"";return this.$filters.isColorDark(r)}get attrs(){let r=this.$attrs;return r.color===void 0&&(r={...r,color:"btncolor"}),r}};Hv=jW([A({})],Hv);var BW=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Be,e._g(e._b({class:e.classes},"v-btn",e.attrs,!1),e.$listeners),[e._t("default")],2)},NW=[],VW=E(Hv,BW,NW,!1,null,null);const M=VW.exports;var zW=Object.defineProperty,UW=Object.getOwnPropertyDescriptor,Em=(r,e,t,s)=>{for(var n=s>1?void 0:s?UW(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&&zW(e,t,n),n};let qo=class extends b{constructor(){super(...arguments);m(this,"collapsedModel");m(this,"enabledModel");m(this,"inLayout")}};Em([Hi("collapsed",{type:Boolean})],qo.prototype,"collapsedModel",2);Em([Hi("enabled",{type:Boolean,default:!0})],qo.prototype,"enabledModel",2);Em([w({type:Boolean})],qo.prototype,"inLayout",2);qo=Em([A({})],qo);var WW=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.inLayout?e._e():t(M,{staticClass:"ml-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(s){e.collapsedModel=!e.collapsedModel}}},[t(S,{class:{"rotate-180":e.collapsedModel}},[e._v(" $chevronUp ")])],1),t(Vr,[e.inLayout?t(ir,{staticClass:"mt-0 pt-0",attrs:{"hide-details":""},model:{value:e.enabledModel,callback:function(s){e.enabledModel=s},expression:"enabledModel"}}):e._e(),e.inLayout?t(S,{staticClass:"handle",attrs:{left:""}},[e._v(" $drag ")]):e._e()],1)],1)},GW=[],qW=E(qo,WW,GW,!1,null,"46c53106");const ZW=qW.exports;var YW=Object.defineProperty,KW=Object.getOwnPropertyDescriptor,Bi=(r,e,t,s)=>{for(var n=s>1?void 0:s?KW(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&&YW(e,t,n),n};let $n=class extends b{constructor(){super(...arguments);m(this,"tooltip");m(this,"type");m(this,"top");m(this,"bottom");m(this,"left");m(this,"right");m(this,"small")}};Bi([w({type:String})],$n.prototype,"tooltip",2);Bi([w({type:String,default:"primary"})],$n.prototype,"type",2);Bi([w({type:Boolean})],$n.prototype,"top",2);Bi([w({type:Boolean})],$n.prototype,"bottom",2);Bi([w({type:Boolean})],$n.prototype,"left",2);Bi([w({type:Boolean})],$n.prototype,"right",2);Bi([w({type:Boolean})],$n.prototype,"small",2);$n=Bi([A({})],$n);var XW=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Oe,{attrs:{bottom:e.bottom,top:e.top,left:e.left,right:e.right},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(S,e._g(e._b({staticClass:"ml-2",attrs:{color:e.type,small:e.small}},"v-icon",n,!1),s),[e._v(" "+e._s(e.type==="error"||e.type==="warning"?"$warning":"$help")+" ")])]}}])},[e._t("default",function(){return[t("span",{domProps:{innerHTML:e._s(e.tooltip)}})]})],2)},JW=[],QW=E($n,XW,JW,!1,null,null);const ub=QW.exports;var eG=Object.defineProperty,tG=Object.getOwnPropertyDescriptor,cr=(r,e,t,s)=>{for(var n=s>1?void 0:s?tG(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&&eG(e,t,n),n};let Zt=class extends b{constructor(){super(...arguments);m(this,"title");m(this,"helpTooltip");m(this,"color");m(this,"subTitle");m(this,"layoutPath");m(this,"lazy");m(this,"icon");m(this,"loading");m(this,"draggable");m(this,"collapsable");m(this,"rounded");m(this,"height");m(this,"menuBreakpoint");m(this,"cardClasses");m(this,"contentClasses");m(this,"baseCardClasses",{"collapsable-card":!0});m(this,"baseContentClasses",{"overflow-hidden":!0})}get _cardClasses(){const e={};return this.cardClasses&&this.cardClasses.split(" ").forEach(t=>{e[t]=!0}),{...e,...this.baseCardClasses,collapsed:(this.isCollapsed||!this.hasDefaultSlot)&&!this.hasCollapsedContentSlot}}get _contentClasses(){const e={};return this.contentClasses&&this.contentClasses.split(" ").forEach(t=>{e[t]=!0}),{...e,...this.baseContentClasses}}get _contentStyles(){return this.height?`height: calc(${this.height}px - 49px);`:""}get _collapsable(){return this.collapsable&&this.layout?this.collapsable:!1}get _layoutPath(){if(this.layoutPath)if(this.layoutPath.includes(".")){const e=this.layoutPath.split(".");let t=e[0];return t==="dashboard"&&(t=this.$store.getters["layout/getSpecificLayoutName"]),{name:t,id:e[1]}}else throw new Error("invalid layout path")}get layout(){if(this._layoutPath)return this.$store.getters["layout/getConfig"](this._layoutPath.name,this._layoutPath.id)}get menuClasses(){return`d-none d-${this.menuBreakpoint}-flex`}get isLoading(){return this.loading?"primary":!1}get isCollapsed(){return this.collapsable&&this.layout?this.layout.collapsed:!1}set isCollapsed(e){const t=this.layout;t&&this._layoutPath&&(t.collapsed=e,this.$store.dispatch("layout/onUpdateConfig",{name:this._layoutPath.name,value:t}))}isCollapsedChange(e){this.$emit("collapsed",e)}get isEnabled(){return this.layout?this.layout.enabled:!0}set isEnabled(e){const t=this.layout;t&&this._layoutPath&&(t.enabled=e,this.$store.dispatch("layout/onUpdateConfig",{name:this._layoutPath.name,value:t}))}get inLayout(){return this.$store.state.config.layoutMode&&!!this.draggable}get hasDefaultSlot(){return!!this.$slots.default||!!this.$scopedSlots.default}get hasTitleSlot(){return!!this.$slots.title||!!this.$scopedSlots.title}get hasSubTitleSlot(){return!!this.$slots["sub-title"]||!!this.$scopedSlots["sub-title"]}get hasCollapseButtonSlot(){return!!this.$slots["collapse-button"]||!!this.$scopedSlots["collapse-button"]}get hasCollapsedContentSlot(){var e;return this.$scopedSlots["collapse-button"]?!0:!!((e=this.$slots["collapsed-content"])!=null&&e.length)}mounted(){this.$emit("collapsed",this.isCollapsed),this.hasCollapseButtonSlot}onCollapseChange(e){this.isCollapsed=e}onLayoutEnabled(e){this.$emit("enabled",e)}transitionEvent(e){e.target instanceof HTMLElement&&e.target.id==="card-content"&&this.$emit("transition-end")}};cr([w({type:String,required:!0})],Zt.prototype,"title",2);cr([w({type:String})],Zt.prototype,"helpTooltip",2);cr([w({type:String})],Zt.prototype,"color",2);cr([w({type:String})],Zt.prototype,"subTitle",2);cr([w({type:String})],Zt.prototype,"layoutPath",2);cr([w({type:Boolean,default:!0})],Zt.prototype,"lazy",2);cr([w({type:String,required:!0})],Zt.prototype,"icon",2);cr([w({type:Boolean})],Zt.prototype,"loading",2);cr([w({type:Boolean})],Zt.prototype,"draggable",2);cr([w({type:Boolean,default:!0})],Zt.prototype,"collapsable",2);cr([w({type:String,default:"md"})],Zt.prototype,"rounded",2);cr([w({type:[Number,String]})],Zt.prototype,"height",2);cr([w({type:String,default:"lg"})],Zt.prototype,"menuBreakpoint",2);cr([w({type:String})],Zt.prototype,"cardClasses",2);cr([w({type:String})],Zt.prototype,"contentClasses",2);cr([Ae("isCollapsed")],Zt.prototype,"isCollapsedChange",1);Zt=cr([A({})],Zt);var rG=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(He,{class:e._cardClasses,attrs:{rounded:e.rounded,loading:e.isLoading,color:e.color}},[t(Hr,{staticClass:"collapsable-card-title card-heading",class:{draggable:e.inLayout}},[t(ie,{staticClass:"flex-nowrap",attrs:{"no-gutters":""}},[t(B,{staticClass:"text-no-wrap",attrs:{"align-self":"center"}},[e._t("title",function(){return[t(S,{attrs:{left:""}},[e._v(" "+e._s(e.icon)+" ")]),t("span",{staticClass:"font-weight-light"},[e._v(e._s(e.title))]),!e.inLayout&&e.helpTooltip?t(ub,{attrs:{bottom:"",small:"",tooltip:e.helpTooltip}}):e._e()]},{inLayout:e.inLayout})],2),e.inLayout?e._e():t(B,{attrs:{cols:"auto","align-self":"center"}},[e._t("menu")],2),t(B,{attrs:{cols:"auto","align-self":"center"}},[e._t("collapse-button",function(){return[e._collapsable||e.inLayout?t(ZW,{attrs:{collapsed:e.isCollapsed,enabled:e.isEnabled,"in-layout":e.inLayout},on:{"update:collapsed":function(s){e.isCollapsed=s},"update:enabled":function(s){e.isEnabled=s}}}):e._e()]})],2)],1)],1),t(zc,[t("div",{directives:[{name:"show",rawName:"v-show",value:e.isCollapsed&&!e.inLayout,expression:"isCollapsed && !inLayout"}]},[e._t("collapsed-content")],2)]),e.lazy?t(zc,[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isCollapsed&&!e.inLayout,expression:"!isCollapsed && !inLayout"}],class:e._contentClasses,style:e._contentStyles,attrs:{id:"card-content"},on:{transitionend:e.transitionEvent}},[e.subTitle||e.hasSubTitleSlot?[t(sa,{staticClass:"py-2"},[e._t("subTitle",function(){return[t("span",{domProps:{innerHTML:e._s(e.subTitle)}})]})],2),t(R)]:e._e(),e._t("default")],2)]):t(zc,[!e.isCollapsed&&!e.inLayout?t("div",{class:e._contentClasses,style:e._contentStyles,attrs:{id:"card-content"},on:{transitionend:e.transitionEvent}},[e.subTitle||e.hasSubTitleSlot?[t(sa,{staticClass:"py-2"},[e._t("sub-title",function(){return[t("span",{domProps:{innerHTML:e._s(e.subTitle)}})]})],2),t(R)]:e._e(),e._t("default")],2):e._e()])],1)},sG=[],nG=E(Zt,rG,sG,!1,null,"5854496c");const Qe=nG.exports;var iG=Object.defineProperty,aG=Object.getOwnPropertyDescriptor,gd=(r,e,t,s)=>{for(var n=s>1?void 0:s?aG(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&&iG(e,t,n),n};let Ca=class extends b{constructor(){super(...arguments);m(this,"collapsed");m(this,"menuIcon");m(this,"size");m(this,"disabled")}get isCollapsed(){return this.collapsed?!0:this.$vuetify.breakpoint.mdAndDown}get hasDefaultSlot(){return!!this.$slots.default}};gd([w({type:Boolean})],Ca.prototype,"collapsed",2);gd([w({type:String,default:"$menu"})],Ca.prototype,"menuIcon",2);gd([w({type:String,default:"x-small"})],Ca.prototype,"size",2);gd([w({type:Boolean})],Ca.prototype,"disabled",2);Ca=gd([A({})],Ca);var oG=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.isCollapsed?t(Dt,{attrs:{transition:"slide-y-transition",left:"","offset-y":"",disabled:e.disabled,"close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"ms-1 my-1",attrs:{fab:"","x-small":e.size==="x-small",small:e.size==="small",disabled:e.disabled,text:"",color:""}},"app-btn",n,!1),s),[t(S,[e._v(e._s(e.menuIcon))])],1)]}}])},[t(Tt,{staticClass:"pa-2",attrs:{elevation:"0"}},[e._t("default")],2)],1):t("div",{staticClass:"d-inline-block"},[e._t("default")],2)},lG=[],cG=E(Ca,oG,lG,!1,null,"3d2fcecd");const Sn=cG.exports,tt={get(r,e){return b.$httpClient.get(r,e)},post(r,e,t){return b.$httpClient.post(r,e,t)},postForm(r,e,t){return b.$httpClient.postForm(r,e,t)},delete(r,e){return b.$httpClient.delete(r,e)},get defaults(){return b.$httpClient.defaults},accessInfoGet(r){return this.get("/access/info",r)},accessRefreshJwtPost(r,e){return this.post("/access/refresh_jwt",{refresh_token:r},e)},accessLoginPost(r,e,t="moonraker",s){return this.post("/access/login",{username:r,password:e,source:t},s)},accessLogoutPost(r){return this.post("access/logout",void 0,r)},accessOneshotTokenGet(r){return this.get("/access/oneshot_token",r)},accessCurrentUserGet(r){return this.get("/access/user",r)},accessUsersListGet(r){return this.get("/access/users/list",r)},accessUserPost(r,e,t){return this.post("/access/user",{username:r,password:e},t)},accessUserDelete(r,e){return this.delete("/access/user",{...e,params:{username:r}})},accessUserPasswordPost(r,e,t){return this.post("/access/user/password",{password:r,new_password:e},t)},accessApiKeyGet(r){return this.get("/access/api_key",r)},accessApiKeyPost(r){return this.post("/access/api_key",void 0,r)},serverDatabaseItemGet(r,e){return this.get(`/server/database/item?namespace=${r}`,e)},serverDatabaseItemPost(r,e,t,s){return this.post("/server/database/item",{namespace:r,key:e,value:t},s)},serverDatabaseItemDelete(r,e,t){return this.delete(`/server/database/item?namespace=${r}&key=${e}`,t)},serverFilesUploadPost(r,e,t,s,n){const i=new FormData;return i.append("file",r,r.name),i.append("path",e),i.append("root",t),s&&i.append("print","true"),this.postForm("/server/files/upload",i,n)},serverFilesGet(r,e){return this.get(`/server/files/${encodeURI(r)}?date=${Date.now()}`,e)}};var uG=Object.defineProperty,dG=Object.getOwnPropertyDescriptor,pG=(r,e,t,s)=>{for(var n=s>1?void 0:s?dG(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&&uG(e,t,n),n};let zr=class extends b{get apiUrl(){return this.$store.state.config.apiUrl}get isTrustedUser(){var r;return((r=this.$store.getters["auth/getCurrentUser"])==null?void 0:r.username)==="_TRUSTED_USER_"}getThumbUrl(r,e,t,s,n){const i=this.getThumb(r,e,t,s,n);return(i==null?void 0:i.url)??""}getThumb(r,e,t,s=!0,n){var i;if((i=r.thumbnails)!=null&&i.length){const a=r.thumbnails.reduce((o,l)=>o.size>l.size===s?o:l);if(a.relative_path){const o=t?`${e}/${t}`:e;return{...a,url:this.createFileUrl(a.relative_path,o,n)}}}}async getGcode(r){if(r.size/1024/1024<100||await this.$confirm(this.$t("app.gcode.msg.confirm",{filename:r.filename,size:this.$filters.getReadableFileSizeString(r.size)}).toString(),{title:this.$tc("app.general.title.gcode_preview"),color:"card-heading",icon:"$error"})){const s=r.path?`gcodes/${r.path}`:"gcodes";return await this.getFile(r.filename,s,r.size,{responseType:"text",transformResponse:[n=>n]})}}async getFile(r,e,t=0,s){const n=e?`${e}/${r}`:r;try{const i=new AbortController;this.$store.dispatch("files/updateFileDownload",{filepath:n,size:t,loaded:0,percent:0,speed:0,abortController:i});const a=await tt.serverFilesGet(n,{...s,signal:i.signal,onDownloadProgress:o=>{if(i.signal.aborted)return;const l=o.progress??(t>0?o.loaded/t:0),c={filepath:n,loaded:o.loaded,percent:Math.round(l*100),speed:o.rate??0};o.total&&(t=c.size=o.total),this.$store.dispatch("files/updateFileDownload",c)}});return i.abort(),a}finally{this.$store.dispatch("files/removeFileDownload")}}async downloadFile(r,e){try{const t=await this.createFileUrlWithToken(r,e),s=document.createElement("a");s.href=t,s.setAttribute("download",r),s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),document.body.removeChild(s)}catch{}}createFileUrl(r,e,t){const s=e?`${e}/${r}`:`${r}`;return`${this.apiUrl}/server/files/${encodeURI(s)}?date=${t||Date.now()}`}async createFileUrlWithToken(r,e,t){const s=this.createFileUrl(r,e,t);return this.isTrustedUser?s:`${s}&token=${(await tt.accessOneshotTokenGet()).data.result}`}async uploadFile(r,e,t,s,n){const i=e?`${e}/${r.name}`:r.name;try{const a=new AbortController;this.$store.dispatch("files/updateFileUpload",{filepath:i,size:r.size,loaded:0,percent:0,speed:0,cancelled:!1,abortController:a});const o=await tt.serverFilesUploadPost(r,e,t,s,{...n,signal:a.signal,onUploadProgress:l=>{a.signal.aborted||this.$store.dispatch("files/updateFileUpload",{filepath:i,loaded:l.loaded,percent:l.progress?Math.round(l.progress*100):0,speed:l.rate??0})}});return a.abort(),o}finally{this.$store.dispatch("files/removeFileUpload",i)}}getFullPathAndFile(r,e){return"path"in e?[[r,e.path].filter(t=>!!t).join("/"),e.file]:[r,e]}async uploadFiles(r,e,t,s){for(const n of r){const[i,a]=this.getFullPathAndFile(e,n),o=i?`${i}/${a.name}`:a.name;this.$store.dispatch("files/updateFileUpload",{filepath:o,size:a.size,loaded:0,percent:0,speed:0,unit:"kB",cancelled:!1})}r.length>1&&(s=!1);for(const n of r){const[i,a]=this.getFullPathAndFile(e,n),o=i?`${i}/${a.name}`:a.name,l=this.$store.state.files.uploads.find(c=>c.filepath===o);if(l&&!(l!=null&&l.cancelled))try{await this.uploadFile(a,i,t,s)}catch(c){ye.error("[FileUpload] file",c)}else this.$store.dispatch("files/removeFileUpload",o)}}};zr=pG([A],zr);var hG=Object.defineProperty,fG=Object.getOwnPropertyDescriptor,D6=(r,e,t,s)=>{for(var n=s>1?void 0:s?fG(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&&hG(e,t,n),n};let Fh=class extends Y(zr){constructor(){super(...arguments);m(this,"job")}get icon(){return{completed:"$checkedCircle",printing:"$inProgress",in_progress:"$inProgress",standby:"$inProgress",cancelled:"$cancelled",interrupted:"$cancelled"}[this.job.status]||"$warning"}get state(){switch(this.job.status){case"cancelled":case"error":case"interrupted":case"server_exit":return"error";case"klippy_shutdown":case"klippy_disconnect":return"warning";case"completed":case"in_progress":case"printing":return"success";default:return"success"}}get inError(){return this.job.status!=="completed"&&this.job.status!=="in_progress"}};D6([w({type:Object,required:!0})],Fh.prototype,"job",2);Fh=D6([A({})],Fh);var mG=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("span",[t(Oe,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(S,e._g(e._b({staticClass:"mr-1",attrs:{small:"",color:e.job.exists?e.state:"secondary"}},"v-icon",n,!1),s),[e._v(" "+e._s(e.icon)+" ")])]}}])},[t("span",[e._v(e._s(e.job.status))])])],1)},gG=[],vG=E(Fh,mG,gG,!1,null,null);const db=vG.exports,_G=r=>r.userAgentData!=null&&"mobile"in r.userAgentData&&typeof r.userAgentData.mobile=="boolean";var yG=Object.defineProperty,bG=Object.getOwnPropertyDescriptor,$G=(r,e,t,s)=>{for(var n=s>1?void 0:s?bG(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&&yG(e,t,n),n};let lt=class extends b{get isMobileViewport(){return this.$vuetify.breakpoint.mobile}get isMobileUserAgent(){return _G(navigator)?navigator.userAgentData.mobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}};lt=$G([A],lt);var wG=Object.defineProperty,SG=Object.getOwnPropertyDescriptor,Qt=(r,e,t,s)=>{for(var n=s>1?void 0:s?SG(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&&wG(e,t,n),n};let Vt=class extends Y(lt){constructor(){super(...arguments);m(this,"open");m(this,"disabled");m(this,"title");m(this,"helpTooltip");m(this,"subTitle");m(this,"closeButtonDisabled");m(this,"cancelButtonText");m(this,"cancelButtonLoading");m(this,"saveButtonText");m(this,"saveButtonDisabled");m(this,"saveButtonLoading");m(this,"scrollable");m(this,"noActions");m(this,"loading");m(this,"titleShadow");m(this,"validModel");m(this,"form")}get hasSubTitleSlot(){return!!this.$slots["sub-title"]||!!this.$scopedSlots["sub-title"]}validate(){return this.form.validate()}handleCancel(){this.$listeners.cancel?this.$emit("cancel"):this.open=!1}handleSave(){this.validate()&&this.$emit("save")}};Qt([Fe({type:Boolean})],Vt.prototype,"open",2);Qt([w({type:Boolean})],Vt.prototype,"disabled",2);Qt([w({type:String})],Vt.prototype,"title",2);Qt([w({type:String})],Vt.prototype,"helpTooltip",2);Qt([w({type:String})],Vt.prototype,"subTitle",2);Qt([w({type:Boolean})],Vt.prototype,"closeButtonDisabled",2);Qt([w({type:String})],Vt.prototype,"cancelButtonText",2);Qt([w({type:Boolean})],Vt.prototype,"cancelButtonLoading",2);Qt([w({type:String})],Vt.prototype,"saveButtonText",2);Qt([w({type:Boolean})],Vt.prototype,"saveButtonDisabled",2);Qt([w({type:Boolean})],Vt.prototype,"saveButtonLoading",2);Qt([w({type:Boolean,default:!0})],Vt.prototype,"scrollable",2);Qt([w({type:Boolean})],Vt.prototype,"noActions",2);Qt([w({type:[Boolean,String]})],Vt.prototype,"loading",2);Qt([w({type:Boolean})],Vt.prototype,"titleShadow",2);Qt([Hi("valid",{type:Boolean})],Vt.prototype,"validModel",2);Qt([Te("form")],Vt.prototype,"form",2);Vt=Qt([A({})],Vt);var xG=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qy,e._b({attrs:{scrollable:e.scrollable,fullscreen:e.isMobileViewport,transition:e.isMobileViewport?"dialog-bottom-transition":void 0},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},"v-dialog",e.$attrs,!1),[t(Ll,{ref:"form",attrs:{disabled:e.disabled},on:{submit:function(s){return s.preventDefault(),e.handleSave.apply(null,arguments)}},model:{value:e.validModel,callback:function(s){e.validModel=s},expression:"validModel"}},[t(He,{class:{"collapsable-card":e.titleShadow},attrs:{loading:e.loading}},[t(Hr,{staticClass:"card-heading py-2",class:{"collapsable-card-title":e.titleShadow}},[t(ie,{staticClass:"flex-nowrap",attrs:{"no-gutters":""}},[t(B,{staticClass:"text-no-wrap",attrs:{"align-self":"center"}},[e._t("title",function(){return[t("span",{staticClass:"focus--text"},[e._v(e._s(e.title))]),e.helpTooltip?t(ub,{attrs:{bottom:"",small:"",tooltip:e.helpTooltip}}):e._e()]})],2),t(B,{attrs:{cols:"auto","align-self":"center"}},[e._t("menu")],2),t(B,{attrs:{cols:"auto","align-self":"center"}},[t(Be,{staticClass:"ml-1",attrs:{fab:"",text:"","x-small":"",disabled:e.closeButtonDisabled},on:{click:function(s){e.open=!1}}},[t(S,[e._v(" $close ")])],1)],1)],1)],1),e.subTitle||e.hasSubTitleSlot?t(sa,{staticClass:"card-heading pb-2 secondary--text"},[e._t("sub-title",function(){return[e._v(" "+e._s(e.subTitle)+" ")]})],2):e._e(),t(R),e._t("default"),e.noActions?e._e():[t(R),t(pd,[e._t("actions",function(){return[t($t),t(M,{attrs:{color:"warning",text:"",type:"button",loading:e.cancelButtonLoading},on:{click:e.handleCancel}},[e._v(" "+e._s(e.cancelButtonText||e.$t("app.general.btn.cancel"))+" ")]),t(M,{attrs:{color:"primary",type:"submit",loading:e.saveButtonLoading,disabled:e.saveButtonDisabled}},[e._v(" "+e._s(e.saveButtonText||e.$t("app.general.btn.save"))+" ")])]})],2)]],2)],1)],1)},CG=[],PG=E(Vt,xG,CG,!1,null,null);const st=PG.exports;var AG=Object.defineProperty,LG=Object.getOwnPropertyDescriptor,M6=(r,e,t,s)=>{for(var n=s>1?void 0:s?LG(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&&AG(e,t,n),n};let Hh=class extends Y(J){constructor(){super(...arguments);m(this,"open")}get parts(){const e=this.$store.getters["parts/getParts"];return Object.keys(e)}isPartExcluded(e){return this.$store.getters["parts/getIsPartExcluded"](e)}isPartCurrent(e){return this.$store.getters["parts/getIsPartCurrent"](e)}async cancelObject(e){if(await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_exclude_object"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})){const s=e.toUpperCase().replace(/\s/g,"_");this.sendGcode(`EXCLUDE_OBJECT NAME=${s}`)}}};M6([Fe({type:Boolean})],Hh.prototype,"open",2);Hh=M6([A({})],Hh);var EG=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.$t("app.gcode.label.exclude_object"),"max-width":"500","no-actions":""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,[t(qt,[t("tbody",e._l(e.parts,function(s){return t("tr",{key:s},[t("td",{staticClass:"partName",class:{"text--disabled":e.isPartExcluded(s),"info--text":e.isPartCurrent(s)}},[e._v(" "+e._s(s)+" ")]),t("td",{staticClass:"actions"},[t(M,{attrs:{color:"","x-small":"",fab:"",text:"",disabled:e.isPartExcluded(s)},on:{click:function(n){return e.cancelObject(s)}}},[t(S,{attrs:{color:"error"}},[e._v(" $cancelled ")])],1)],1)])}),0)])],1)],1)},OG=[],TG=E(Hh,EG,OG,!1,null,"1d621943");const kG=TG.exports;var DG=Object.defineProperty,MG=Object.getOwnPropertyDescriptor,Om=(r,e,t,s)=>{for(var n=s>1?void 0:s?MG(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&&DG(e,t,n),n};let Zo=class extends b{constructor(){super(...arguments);m(this,"vertical");m(this,"divided");m(this,"elevation")}};Om([w({type:Boolean})],Zo.prototype,"vertical",2);Om([w({type:Boolean})],Zo.prototype,"divided",2);Om([w({type:Number})],Zo.prototype,"elevation",2);Zo=Om([A({})],Zo);var RG=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(vU,{staticClass:"app-btn-group",class:{"app-btn-group--vertical":e.vertical,"app-btn-group--divided":e.divided,[`elevation-${e.elevation??2}`]:e.divided||e.elevation}},[e._t("default")],2)},IG=[],FG=E(Zo,RG,IG,!1,null,"9ae06053");const Yo=FG.exports;var HG=Object.defineProperty,jG=Object.getOwnPropertyDescriptor,BG=(r,e,t,s)=>{for(var n=s>1?void 0:s?jG(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&&HG(e,t,n),n};let jv=class extends Y(J){get hasLayersFromPrintStats(){const e=this.$store.state.printer.printer.print_stats.info,t=e==null?void 0:e.total_layer,s=e==null?void 0:e.current_layer;return typeof t=="number"&&typeof s=="number"}get hasPauseAtLayerMacros(){return this.$store.getters["macros/getMacroByName"]("set_pause_next_layer","set_pause_at_layer")!=null}get setPrintStatsInfoMacro(){return this.$store.getters["macros/getMacroByName"]("set_print_stats_info")}get hasPrintAtLayerMacros(){var t;if(!this.hasPauseAtLayerMacros)return!1;const e=((t=this.setPrintStatsInfoMacro)==null?void 0:t.variables)??{};return"pause_next_layer"in e&&"pause_at_layer"in e}};jv=BG([A({})],jv);var NG=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Yo,{staticClass:"ms-1 my-1",attrs:{divided:""}},[e.printerPaused?t(M,{attrs:{loading:e.hasWait(e.$waits.onPrintResume),disabled:e.hasWait([e.$waits.onPrintCancel,e.$waits.onPrintResume,e.$waits.onPrintPause]),small:""},on:{click:function(s){return e.$emit("resume")}}},[t(S,{attrs:{small:"",left:""}},[e._v(" $resume ")]),t("span",[e._v(e._s(e.$t("app.general.btn.resume")))])],1):t(M,{attrs:{loading:e.hasWait(e.$waits.onPrintPause),disabled:e.hasWait([e.$waits.onPrintCancel,e.$waits.onPrintResume,e.$waits.onPrintPause]),small:""},on:{click:function(s){return e.$emit("pause")}}},[t(S,{attrs:{small:"",left:""}},[e._v(" $pause ")]),t("span",[e._v(e._s(e.$t("app.general.btn.pause")))])],1),e.hasLayersFromPrintStats&&e.hasPrintAtLayerMacros?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:"px-0",attrs:{small:"","min-width":"24"}},"app-btn",n,!1),s),[t(S,{class:{"rotate-180":i},attrs:{small:""}},[e._v(" $chevronDown ")])],1)]}}],null,!1,3929495187)},[t(Mt,{attrs:{dense:""}},[t(Se,{on:{click:function(s){return e.$emit("pauseAtLayer")}}},[t(qe,[t(S,[e._v(" $pause ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.general.label.pause_at_layer"))+" ")])],1)],1)],1)],1):e._e()],1)},VG=[],zG=E(jv,NG,VG,!1,null,null);const UG=zG.exports;var WG=Object.defineProperty,GG=Object.getOwnPropertyDescriptor,El=(r,e,t,s)=>{for(var n=s>1?void 0:s?GG(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&&WG(e,t,n),n};let Li=class extends b{constructor(){super(...arguments);m(this,"title");m(this,"subTitle");m(this,"help");m(this,"accentColor");m(this,"rCols")}get cols(){return[12-this.rCols,this.rCols]}get hasClick(){return this.$listeners&&this.$listeners.click}get hasSubTitle(){return this.$slots["sub-title"]||this.$scopedSlots["sub-title"]||this.subTitle}};El([w({type:String,default:""})],Li.prototype,"title",2);El([w({type:String})],Li.prototype,"subTitle",2);El([w({type:String})],Li.prototype,"help",2);El([w({type:String})],Li.prototype,"accentColor",2);El([w({type:Number,default:6})],Li.prototype,"rCols",2);Li=El([A({})],Li);var qG=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,e._g(e._b({staticClass:"app-setting-control",class:{"sc-link":e.hasClick},attrs:{"no-gutters":""}},"v-row",e.$attrs,!1),e.$listeners),[e.accentColor?t("div",{staticClass:"sc-color",style:{"background-color":e.accentColor}}):e._e(),t(B,{staticClass:"sc-label text-body-1 pr-0 pr-sm-3 pb-0 pb-sm-3",attrs:{cols:"12",sm:e.cols[0],"align-self":"center"}},[e._t("title",function(){return[e._v(" "+e._s(e.title)+" ")]}),e.hasSubTitle?t("div",{staticClass:"text-body-2 secondary--text"},[e._t("sub-title",function(){return[e._v(" "+e._s(e.subTitle)+" ")]})],2):e._e()],2),t(B,{staticClass:"sc-content py-3",attrs:{cols:"12",sm:e.cols[1],"align-self":"center"}},[e._t("default")],2)],1)},ZG=[],YG=E(Li,qG,ZG,!1,null,"f2ce9030");const H=YG.exports;var KG=Object.defineProperty,XG=Object.getOwnPropertyDescriptor,R6=(r,e,t,s)=>{for(var n=s>1?void 0:s?XG(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&&KG(e,t,n),n};let jh=class extends Y(J){constructor(){super(...arguments);m(this,"open");m(this,"pauseNextLayer",{enable:!1,call:"PAUSE"});m(this,"pauseAtLayer",{enable:!1,call:"PAUSE",layer:0})}get setPauseNextLayerMacro(){return this.$store.getters["macros/getMacroByName"]("set_pause_next_layer")}get setPauseAtLayerMacro(){return this.$store.getters["macros/getMacroByName"]("set_pause_at_layer")}get setPrintStatsInfoMacro(){return this.$store.getters["macros/getMacroByName"]("set_print_stats_info")}get printStatsMacroVariables(){var s;return((s=this.setPrintStatsInfoMacro)==null?void 0:s.variables)??{}}get currentLayer(){var t;return((t=this.$store.state.printer.printer.print_stats.info)==null?void 0:t.current_layer)??0}get totalLayers(){var t;return((t=this.$store.state.printer.printer.print_stats.info)==null?void 0:t.total_layer)??0}sendAccept(){const t=[];this.setPauseNextLayerMacro&&(this.pauseNextLayer.enable?t.push(`SET_PAUSE_NEXT_LAYER ENABLE=1 MACRO="${this.pauseNextLayer.call}"`):t.push("SET_PAUSE_NEXT_LAYER ENABLE=0")),this.setPauseAtLayerMacro&&(this.pauseAtLayer.enable?t.push(`SET_PAUSE_AT_LAYER ENABLE=1 LAYER=${this.pauseAtLayer.layer} MACRO="${this.pauseAtLayer.call}"`):t.push("SET_PAUSE_AT_LAYER ENABLE=0")),this.sendGcode(t.join(`
|
||
`)),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:{small:"",left:""}},[e._v(" $reprint ")]),t("span",[e._v(e._s(e.$t("app.general.btn.reprint")))])],1):e._e()],1),e.printerPrinting||e.printerPaused?t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"ms-1 my-1",attrs:{disabled:!e.hasParts,color:"",fab:"","x-small":"",text:""},on:{click:function(i){e.showExcludeObjectDialog=!0}}},"app-btn",n,!1),s),[t(S,[e._v("$listStatus")])],1)]}}],null,!1,1862450976)},[t("span",[e._v(e._s(e.$t("app.gcode.label.exclude_object")))])]):e._e(),e.showExcludeObjectDialog?t("exclude-objects-dialog",{model:{value:e.showExcludeObjectDialog,callback:function(s){e.showExcludeObjectDialog=s},expression:"showExcludeObjectDialog"}}):e._e(),e.showPauseAtLayerDialog?t("pause-at-layer-dialog",{model:{value:e.showPauseAtLayerDialog,callback:function(s){e.showPauseAtLayerDialog=s},expression:"showPauseAtLayerDialog"}}):e._e()],1)},aq=[],oq=E(Bv,iq,aq,!1,null,null);const lq=oq.exports;var cq=Object.defineProperty,uq=Object.getOwnPropertyDescriptor,pb=(r,e,t,s)=>{for(var n=s>1?void 0:s?uq(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&&cq(e,t,n),n};let du=class extends Y(J){constructor(){super(...arguments);m(this,"label");m(this,"labelWidth")}};pb([w({type:String,required:!0})],du.prototype,"label",2);pb([w({type:[String,Number],default:"70px"})],du.prototype,"labelWidth",2);du=pb([A({})],du);var dq=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Vr,{attrs:{"align-center":""}},[t("span",{staticClass:"label body-2 secondary--text",style:`width: ${e.labelWidth}; min-width: ${e.labelWidth};`,domProps:{innerHTML:e._s(e.label)}}),t("span",{staticClass:"value"},[e._t("default")],2),e.$slots.default?e._e():t("span",{staticClass:"value"},[e._v("--")])])},pq=[],hq=E(du,dq,pq,!1,null,"984c6540");const I6=hq.exports;var fq=Object.defineProperty,mq=Object.getOwnPropertyDescriptor,gq=(r,e,t,s)=>{for(var n=s>1?void 0:s?mq(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&&fq(e,t,n),n};let zt=class extends b{get hasExtruder(){return this.$store.getters["printer/getHasExtruder"]}get hasMultipleExtruders(){return this.$store.getters["printer/getHasMultipleExtruders"]}get activeExtruder(){return this.$store.getters["printer/getActiveExtruder"]}get extruderReady(){const r=this.activeExtruder;return(r==null?void 0:r.can_extrude)??(r!==void 0&&r.temperature>=0&&r.min_extrude_temp>=0&&r.temperature>=r.min_extrude_temp)}get filamentDiameter(){var r,e;return((e=(r=this.activeExtruder)==null?void 0:r.config)==null?void 0:e.filament_diameter)||1.75}get nozzleDiameter(){var r,e;return((e=(r=this.activeExtruder)==null?void 0:r.config)==null?void 0:e.nozzle_diameter)||.4}get maxExtrudeSpeed(){var r,e;return((e=(r=this.activeExtruder)==null?void 0:r.config)==null?void 0:e.max_extrude_only_velocity)||500}get maxExtrudeLength(){var r,e;return((e=(r=this.activeExtruder)==null?void 0:r.config)==null?void 0:e.max_extrude_only_distance)||50}get allHomed(){return this.$store.getters["printer/getHomedAxes"]("xyz")}get xyHomed(){return this.$store.getters["printer/getHomedAxes"]("xy")}get xHomed(){return this.$store.getters["printer/getHomedAxes"]("x")}get yHomed(){return this.$store.getters["printer/getHomedAxes"]("y")}get zHomed(){return this.$store.getters["printer/getHomedAxes"]("z")}get xHasMultipleSteppers(){return!!this.$store.getters["printer/getPrinterSettings"]("stepper_x1")}get yHasMultipleSteppers(){return!!this.$store.getters["printer/getPrinterSettings"]("stepper_y1")}get zHasMultipleSteppers(){return!!this.$store.getters["printer/getPrinterSettings"]("stepper_z1")}get hasHomingOverride(){return this.$store.getters["printer/getHasHomingOverride"]}get isManualProbeActive(){return this.$store.getters["printer/getIsManualProbeActive"]}get isBedScrewsAdjustActive(){return this.$store.getters["printer/getIsBedScrewsAdjustActive"]}get hasScrewsTiltAdjustResults(){return this.$store.getters["printer/getHasScrewsTiltAdjustResults"]}};zt=gq([A],zt);function hb(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Xa=hb();function F6(r){Xa=r}const H6=/[&<>"']/,vq=new RegExp(H6.source,"g"),j6=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,_q=new RegExp(j6.source,"g"),yq={"&":"&","<":"<",">":">",'"':""","'":"'"},yS=r=>yq[r];function Qr(r,e){if(e){if(H6.test(r))return r.replace(vq,yS)}else if(j6.test(r))return r.replace(_q,yS);return r}const bq=/(^|[^\[])\^/g;function dt(r,e){let t=typeof r=="string"?r:r.source;e=e||"";const s={replace:(n,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(bq,"$1"),t=t.replace(n,a),s},getRegex:()=>new RegExp(t,e)};return s}function bS(r){try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}const Gc={exec:()=>null};function $S(r,e){const t=r.replace(/\|/g,(i,a,o)=>{let l=!1,c=a;for(;--c>=0&&o[c]==="\\";)l=!l;return l?"|":" |"}),s=t.split(/ \|/);let n=0;if(s[0].trim()||s.shift(),s.length>0&&!s[s.length-1].trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;n<s.length;n++)s[n]=s[n].trim().replace(/\\\|/g,"|");return s}function ac(r,e,t){const s=r.length;if(s===0)return"";let n=0;for(;n<s;){const i=r.charAt(s-n-1);if(i===e&&!t)n++;else if(i!==e&&t)n++;else break}return r.slice(0,s-n)}function $q(r,e){if(r.indexOf(e[1])===-1)return-1;let t=0;for(let s=0;s<r.length;s++)if(r[s]==="\\")s++;else if(r[s]===e[0])t++;else if(r[s]===e[1]&&(t--,t<0))return s;return-1}function wS(r,e,t,s){const n=e.href,i=e.title?Qr(e.title):null,a=r[1].replace(/\\([\[\]])/g,"$1");if(r[0].charAt(0)!=="!"){s.state.inLink=!0;const o={type:"link",raw:t,href:n,title:i,text:a,tokens:s.inlineTokens(a)};return s.state.inLink=!1,o}return{type:"image",raw:t,href:n,title:i,text:Qr(a)}}function wq(r,e){const t=r.match(/^(\s+)(?:```)/);if(t===null)return e;const s=t[1];return e.split(`
|
||
`).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=/(?:[*+-]|\d{1,9}[.)])/,N6=dt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,B6).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),fb=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Aq=/^[^\n]+/,mb=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Lq=dt(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",mb).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Eq=dt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,B6).getRegex(),Tm="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",gb=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Oq=dt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",gb).replace("tag",Tm).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),V6=dt(fb).replace("hr",vd).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Tm).getRegex(),Tq=dt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",V6).getRegex(),vb={blockquote:Tq,code:xq,def:Lq,fences:Cq,heading:Pq,hr:vd,html:Oq,lheading:N6,list:Eq,newline:Sq,paragraph:V6,table:Gc,text:Aq},SS=dt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",vd).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Tm).getRegex(),kq={...vb,table:SS,paragraph:dt(fb).replace("hr",vd).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",SS).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Tm).getRegex()},Dq={...vb,html:dt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",gb).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Gc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:dt(fb).replace("hr",vd).replace("heading",` *#{1,6} *[^
|
||
]`).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.options.gfm&&(t.block=ap.gfm,this.options.breaks?t.inline=oc.breaks:t.inline=oc.gfm),this.tokenizer.rules=t}static get rules(){return{block:ap,inline:oc}}static lex(e,t){return new dn(t).lex(e)}static lexInline(e,t){return new dn(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
|
||
`),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)?i[o]=u=>{if(this.defaults.async)return Promise.resolve(l.call(i,u)).then(p=>c.call(i,p));const d=l.call(i,u);return c.call(i,d)}:i[o]=(...u)=>{let d=l.apply(i,u);return d===!1&&(d=c.apply(i,u)),d}}n.hooks=i}if(s.walkTokens){const i=this.defaults.walkTokens,a=s.walkTokens;n.walkTokens=function(o){let l=[];return l.push(a.call(this,o)),i&&(l=l.concat(i.call(this,o))),l}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return dn.lex(e,t??this.defaults)}parser(e,t){return pn.parse(e,t??this.defaults)}parseMarkdown(e,t){return(n,i)=>{const a={...i},o={...this.defaults,...a},l=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&a.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(n):n).then(c=>e(c,o)).then(c=>o.hooks?o.hooks.processAllTokens(c):c).then(c=>o.walkTokens?Promise.all(this.walkTokens(c,o.walkTokens)).then(()=>c):c).then(c=>t(c,o)).then(c=>o.hooks?o.hooks.postprocess(c):c).catch(l);try{o.hooks&&(n=o.hooks.preprocess(n));let c=e(n,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let u=t(c,o);return o.hooks&&(u=o.hooks.postprocess(u)),u}catch(c){return l(c)}}}onError(e,t){return s=>{if(s.message+=`
|
||
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.defineProperty,rZ=Object.getOwnPropertyDescriptor,sZ=(r,e,t,s)=>{for(var n=s>1?void 0:s?rZ(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&&tZ(e,t,n),n};let Vv=class extends Y(J,zr,zt){constructor(){super(...arguments);m(this,"filePreviewState",{open:!1,filename:"",src:""})}get visible(){return this.printerPrinting||this.message||this.current_file&&this.current_file.filename||this.thumbVisible||this.progressVisible&&this.$vuetify.breakpoint.mdAndDown}get progressVisible(){return this.printerPrinting||this.filename!==""}get overviewVisible(){return!this.printerPrinting&&this.current_file&&this.current_file.filename}get thumbVisible(){return this.current_file&&this.current_file.filename&&this.thumbnail&&this.$vuetify.breakpoint.lgAndUp}get printInProgressLayout(){return this.$store.state.config.uiSettings.general.printInProgressLayout}get current_file(){let t=this.$store.state.printer.printer.current_file;if(t.job_id){const s=this.$store.getters["history/getHistoryById"](t.job_id);s&&(t={...t,history:s})}return t}get filename(){return this.$store.state.printer.printer.print_stats.filename||""}get message(){return this.$store.state.printer.printer.display_status.message}get thumbnail(){if(this.current_file&&this.current_file.thumbnails)return this.getThumbUrl(this.current_file,"gcodes",this.current_file.path,!0,this.current_file.modified)}get liveVelocity(){return this.$store.state.printer.printer.motion_report.live_velocity}get liveExtruderVelocity(){return this.$store.state.printer.printer.motion_report.live_extruder_velocity}get liveFlow(){return Math.PI/4*this.filamentDiameter**2*this.liveExtruderVelocity}get estimates(){return this.$store.getters["printer/getTimeEstimates"]}get supportsHistoryComponent(){return this.$store.getters["server/componentSupport"]("history")}get history(){return this.$store.getters["history/getUniqueHistory"](3)}get layers(){return this.$store.getters["printer/getPrintLayers"]}get layer(){return this.$store.getters["printer/getPrintLayer"]}get filamentUsed(){return this.$store.state.printer.printer.print_stats.filament_used??0}get filamentTotal(){return this.$store.state.printer.printer.current_file.filament_total||0}async handleViewThumbnail(){const t=this.current_file,s=this.getThumb(t,"gcodes",t.path,!0,t.modified);s&&(this.filePreviewState={open:!0,filename:t.filename,src:s.url,width:s.width})}};Vv=sZ([A({components:{StatusLabel:I6,FilePreviewDialog:Z6}})],Vv);var nZ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.progressVisible&&e.$vuetify.breakpoint.smAndDown?t(Zs,{attrs:{height:6,value:e.estimates.progress,color:"primary"}}):e._e(),e.visible?t(Le,[t(ie,[e.progressVisible?[e.printInProgressLayout==="default"&&e.$vuetify.breakpoint.lgAndUp?t(B,{attrs:{cols:"auto","align-self":"center"}},[t(Wo,{attrs:{rotate:-90,size:90,width:7,value:e.estimates.progress,color:"primary"}},[t("span",{staticClass:"percentComplete focus--text"},[e._v(e._s(e.estimates.progress)+"%")])])],1):e.printInProgressLayout==="compact"&&e.$vuetify.breakpoint.mdAndUp?t(B,{attrs:{cols:"auto","align-self":"center"}},[t(ie,[t(Be,{staticClass:"progress-button mx-2",attrs:{text:""},on:{click:e.handleViewThumbnail}},[t(Wo,{attrs:{rotate:-90,size:90,width:7,value:e.estimates.progress,color:"primary"}},[t("img",{staticClass:"progress-button-image",attrs:{src:e.thumbnail}})])],1)],1),t(ie,{attrs:{justify:"center"}},[t("span",{staticClass:"primary--text"},[e._v(e._s(e.estimates.progress)+"%")])])],1):e._e()]:e._e(),t(B,{attrs:{"align-self":"center"}},[e.message||e.filename!==""||e.progressVisible&&e.$vuetify.breakpoint.mdAndDown?t(ie,{attrs:{"no-gutters":""}},[t(B,[e.progressVisible&&e.$vuetify.breakpoint.mdAndDown?t("status-label",{attrs:{label:e.$t("app.general.label.progress")}},[t("span",[e._v(e._s(e.estimates.progress)+"%")])]):e._e(),e.message?t("status-label",{attrs:{label:e.$t("app.general.label.m117")}},[t("span",[e._v(e._s(e.message))])]):e._e(),e.filename!==""?t("status-label",{attrs:{label:e.$t("app.general.label.file")}},[t("span",{staticStyle:{"word-break":"break-all"}},[e._v(e._s(e.filename))])]):e._e()],1)],1):e._e(),e.printerPrinting?t(ie,{attrs:{"no-gutters":""}},[t(B,{attrs:{cols:"12",sm:"6"}},[t("status-label",{attrs:{label:e.$t("app.general.label.requested_speed")}},[e.liveVelocity>0?t("span",[e._v(e._s(e.liveVelocity.toFixed(1))+" mm/s")]):e._e()]),t("status-label",{attrs:{label:e.$t("app.general.label.flow")}},[e.liveFlow>0?t("span",[e._v(e._s(e.liveFlow.toFixed(1))+" mm³/s")]):e._e()]),t("status-label",{attrs:{label:e.$t("app.general.label.filament")}},[e.filamentUsed>0?t("span",[e._v(e._s(e.$filters.getReadableLengthString(e.filamentUsed)))]):e._e()]),t("status-label",{attrs:{label:e.$t("app.general.label.layer")}},[e.layers>0?t("span",[e._v(e._s(e.layer)+" / "+e._s(e.layers))]):e._e()])],1),t(B,{attrs:{cols:"12",sm:"6"}},[e.estimates.actualLeft>0?t("status-label",{attrs:{label:e.$t("app.general.label.actual_time")}},[t("span",[e._v(e._s(e.$filters.formatCounterSeconds(e.estimates.actualLeft)))])]):t("status-label",{attrs:{label:e.$t("app.general.label.file_time")}},[e.estimates.fileLeft>0?t("span",[e._v(e._s(e.$filters.formatCounterSeconds(e.estimates.fileLeft)))]):e._e()]),t("status-label",{attrs:{label:e.$t("app.general.label.slicer")}},[e.estimates.slicerLeft>0?t("span",[e._v(e._s(e.$filters.formatCounterSeconds(e.estimates.slicerLeft)))]):e._e()]),t("status-label",{attrs:{label:e.$t("app.general.label.total")}},[e.estimates.printDuration>0?t("span",[e._v(e._s(e.$filters.formatCounterSeconds(e.estimates.printDuration)))]):e._e()]),t("status-label",{attrs:{label:e.$t("app.general.label.finish_time")}},[e.estimates.eta>0?t("span",[e._v(e._s(e.$filters.formatAbsoluteDateTime(e.estimates.eta)))]):e._e()])],1)],1):e._e(),e.overviewVisible?t(ie,{attrs:{"no-gutters":""}},[t(B,[e.current_file.history&&e.current_file.history.filament_used?t("status-label",{attrs:{label:e.$t("app.general.label.filament")}},[t("span",[e._v(e._s(e.$filters.getReadableLengthString(e.current_file.history.filament_used)))])]):e.current_file.filament_total?t("status-label",{attrs:{label:e.$t("app.general.label.filament")}},[t("span",[e._v(e._s(e.$filters.getReadableLengthString(e.current_file.filament_total)))])]):e._e(),e.current_file.estimated_time?t("status-label",{attrs:{label:e.$t("app.general.label.slicer")}},[t("span",[e._v(e._s(e.$filters.formatCounterSeconds(e.current_file.estimated_time)))])]):e._e(),e.current_file.history&&e.current_file.history.print_duration>0?t("status-label",{attrs:{label:e.$t("app.general.label.actual_time")}},[t("span",[e._v(e._s(e.$filters.formatCounterSeconds(e.current_file.history.print_duration)))])]):e._e(),e.current_file.history&&e.current_file.history.total_duration>0?t("status-label",{attrs:{label:e.$t("app.general.label.total")}},[t("span",[e._v(e._s(e.$filters.formatCounterSeconds(e.current_file.history.total_duration)))])]):e._e()],1)],1):e._e()],1),e.thumbVisible&&e.printInProgressLayout==="default"?t(B,{staticClass:"pa-0",attrs:{cols:"auto","align-self":"center"}},[t(Be,{attrs:{text:"",height:"100%"},on:{click:e.handleViewThumbnail}},[t("img",{staticClass:"print-thumb",attrs:{src:e.thumbnail}})])],1):e._e()],2)],1):e._e(),e.filePreviewState.open?t("file-preview-dialog",{attrs:{filename:e.filePreviewState.filename,src:e.filePreviewState.src,type:"image/any",width:e.filePreviewState.width},model:{value:e.filePreviewState.open,callback:function(s){e.$set(e.filePreviewState,"open",s)},expression:"filePreviewState.open"}}):e._e()],1)},iZ=[],aZ=E(Vv,nZ,iZ,!1,null,"cf91844d");const oZ=aZ.exports,Yt=(r,e)=>{const t=r.split("/"),s=he.FILTERED_FOLDER_NAMES.some(a=>t.includes(a)),n=t.pop()??"",i=t.join("/");return{filename:n,path:i,rootPath:i?`${e}/${i}`:e,filtered:s}};var lZ=Object.defineProperty,cZ=Object.getOwnPropertyDescriptor,uZ=(r,e,t,s)=>{for(var n=s>1?void 0:s?cZ(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&&lZ(e,t,n),n};let zv=class extends Y(J,zr){get history(){return this.$store.getters["history/getUniqueHistory"](3)}getFilePaths(e){return Yt(e,"gcodes")}get headers(){return[{text:"",value:"data-table-icons",sortable:!1,width:"24px"},{text:this.$tc("app.general.table.header.name"),value:"filename",sortable:!1},{text:this.$tc("app.general.table.header.status"),value:"status",sortable:!1},{text:this.$tc("app.general.table.header.print_duration"),value:"print_duration",sortable:!1}]}handleJobThumbnailError(e){this.$store.dispatch("history/clearHistoryThumbnails",e.job_id)}};zv=uZ([A({components:{JobHistoryItemStatus:db}})],zv);var dZ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"file-system"},[t(hd,{staticStyle:{"background-color":"transparent"},attrs:{items:e.history,headers:e.headers,"items-per-page":5,"mobile-breakpoint":"0","hide-default-footer":"","item-key":"job_id","sort-by":"start_time","sort-desc":""},scopedSlots:e._u([{key:"item",fn:function({item:s}){var n;return[t("tr",{staticClass:"px-1"},[t("td",[s.exists?(n=s.metadata.thumbnails)!=null&&n.length?t("img",{staticClass:"mr-2 file-icon-thumb",attrs:{src:e.getThumbUrl(s.metadata,"gcodes",e.getFilePaths(s.filename).path,!1,s.metadata.modified),width:24},on:{error:function(i){return e.handleJobThumbnailError(s)}}}):t(S,{staticClass:"mr-2",attrs:{color:"secondary"}},[e._v(" $file ")]):t(S,{staticClass:"mr-2",attrs:{color:"secondary"}},[e._v(" $fileCancel ")])],1),t("td",[t("span",{},[e._v(" "+e._s(e.getFilePaths(s.filename).filename)+" ")])]),t("td",[t("job-history-item-status",{attrs:{job:s}})],1),t("td",[s.print_duration>0?t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(s.print_duration))+" ")]):t("span",[e._v("--")])]),e.printerPrinting?e._e():t("td",{staticClass:"actions"},[t("div",[t(M,{attrs:{color:"",icon:""},on:{click:function(i){return e.$emit("print",s.filename)}}},[t(S,[e._v("$printer")])],1)],1)])])]}}])})],1)},pZ=[],hZ=E(zv,dZ,pZ,!1,null,null);const fZ=hZ.exports;var mZ=Object.defineProperty,gZ=Object.getOwnPropertyDescriptor,Y6=(r,e,t,s)=>{for(var n=s>1?void 0:s?gZ(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&&mZ(e,t,n),n};let zh=class extends Y(J){constructor(){super(...arguments);m(this,"tab",0)}get supportsHistoryComponent(){return this.$store.getters["server/componentSupport"]("history")}get collapsable(){const t=this.$store.state.printer.printer.print_stats.filename;return this.printerPrinting||this.supportsHistoryComponent||t!==""}get filename(){return this.$store.state.printer.printer.print_stats.filename}get estimates(){return this.$store.getters["printer/getTimeEstimates"]}onPrinterPrinting(t){this.init(t)}mounted(){this.init(this.filename)}init(t){t!==""?this.tab=0:this.tab=1}handlePrint(t){const s=this.$store.getters["spoolman/getAvailable"],n=this.$store.state.config.uiSettings.spoolman.autoSpoolSelectionDialog;if(s&&n){this.$store.commit("spoolman/setDialogState",{show:!0,filename:t});return}I.printerPrintStart(t)}};Y6([Ae("filename")],zh.prototype,"onPrinterPrinting",1);zh=Y6([A({components:{StatusControls:lq,StatusTab:oZ,ReprintTab:fZ}})],zh);var vZ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.printer.title.printer_status"),icon:"$printer3d",draggable:"",collapsable:e.collapsable,"layout-path":"dashboard.printer-status-card"},scopedSlots:e._u([{key:"title",fn:function({inLayout:s}){return[s?e._e():t(cb,{attrs:{"background-color":"transparent","mobile-breakpoint":"0",height:"41","hide-slider":""},model:{value:e.tab,callback:function(n){e.tab=n},expression:"tab"}},[t(Ih,{key:"status"},[t(S,{attrs:{left:""}},[e._v(" $printer3d ")]),e._v(" "+e._s(e.$t("app.printer.state."+e.printerState)||e.printerState)+" ")],1),e.supportsHistoryComponent&&!(e.printerPrinting||e.printerPaused)?t(Ih,{key:"reprint"},[e._v(" "+e._s(e.$t("app.general.btn.reprint"))+" ")]):e._e()],1)]}},{key:"menu",fn:function(){return[e.printerPrinting||e.printerPaused||e.filename?t("status-controls",{on:{print:function(s){return e.handlePrint(s)}}}):e._e()]},proxy:!0},{key:"collapsed-content",fn:function(){return[e.printerPrinting||e.printerPaused||e.filename?t(Zs,{attrs:{height:6,value:e.estimates.progress,color:"primary"}}):e._e()]},proxy:!0}])},[t(lb,{attrs:{touchless:""},model:{value:e.tab,callback:function(s){e.tab=s},expression:"tab"}},[t(Fv,{key:"status"},[t("status-tab")],1),e.supportsHistoryComponent?t(Fv,{key:"reprint"},[t("reprint-tab",{on:{print:function(s){return e.handlePrint(s)}}})],1):e._e()],1)],1)},_Z=[],yZ=E(zh,vZ,_Z,!1,null,"e39cf3de");const bZ=yZ.exports;var $Z=Object.defineProperty,wZ=Object.getOwnPropertyDescriptor,km=(r,e,t,s)=>{for(var n=s>1?void 0:s?wZ(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&&$Z(e,t,n),n};let Ko=class extends b{constructor(){super(...arguments);m(this,"value");m(this,"message");m(this,"icon")}};km([w({type:Boolean})],Ko.prototype,"value",2);km([w({type:String,required:!0})],Ko.prototype,"message",2);km([w({type:String,required:!0})],Ko.prototype,"icon",2);Ko=km([A({})],Ko);var SZ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(y6,e._b({staticClass:"dragOverlay",attrs:{value:e.value,opacity:.85}},"v-overlay",e.$attrs,!1),[t(fd,[t(ie,{staticClass:"fill-height",attrs:{"align-content":"center",justify:"center","no-gutters":""}},[t(B,{staticClass:"text-h6 font-weight-light text-center",attrs:{cols:"12",sm:"6"}},[t(S,{staticClass:"mr-1",attrs:{"x-large":""}},[e._v(" "+e._s(e.icon)+" ")]),t("span",{domProps:{innerHTML:e._s(e.message)}})],1)],1)],1)],1)},xZ=[],CZ=E(Ko,SZ,xZ,!1,null,"4d322fac");const Dm=CZ.exports;var PZ=Object.defineProperty,AZ=Object.getOwnPropertyDescriptor,LZ=(r,e,t,s)=>{for(var n=s>1?void 0:s?AZ(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&&PZ(e,t,n),n};let Xo=class extends b{get moonrakerServiceName(){var r,e;return((e=(r=this.$store.state.server.system_info)==null?void 0:r.instance_ids)==null?void 0:e.moonraker)||"moonraker"}async _klipperReset(){this.$store.commit("socket/setAcceptNotifications",!1),await this.$store.dispatch("server/resetKlippy",void 0,{root:!0}),await this.$store.dispatch("reset",["printer","charts","wait"],{root:!0})}hostReboot(){I.machineReboot()}hostShutdown(){I.machineShutdown()}async serviceRestartKlipper(){this.serviceRestartByName("klipper")}serviceRestartMoonraker(){this.serviceRestartByName(this.moonrakerServiceName)}async serviceRestartByName(r){r===this.moonrakerServiceName?(I.serverRestart(),this.$store.commit("socket/setSocketDisconnecting",!0)):(r==="klipper"&&await this._klipperReset(),I.machineServicesRestart(r))}async serviceStartByName(r){I.machineServicesStart(r)}async serviceStopByName(r){if(r===this.moonrakerServiceName)throw new Error("Stopping the moonraker service is not supported");r==="klipper"&&await this._klipperReset(),I.machineServicesStop(r)}async restartKlippy(){await this._klipperReset(),I.printerRestart()}async firmwareRestartKlippy(){await this._klipperReset(),I.printerFirmwareRestart()}};Xo=LZ([A],Xo);var EZ=Object.defineProperty,OZ=Object.getOwnPropertyDescriptor,Mm=(r,e,t,s)=>{for(var n=s>1?void 0:s?OZ(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&&EZ(e,t,n),n};let Jo=class extends Y(J){constructor(){super(...arguments);m(this,"keyName");m(this,"headers");m(this,"disabled")}handleToggleHeader(e){e.visible=!e.visible,this.$store.dispatch("config/updateHeader",{name:this.keyName,header:e})}};Mm([w({type:String,required:!0})],Jo.prototype,"keyName",2);Mm([w({type:Array,required:!0})],Jo.prototype,"headers",2);Mm([w({type:Boolean})],Jo.prototype,"disabled",2);Jo=Mm([A({})],Jo);var TZ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Dt,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","min-width":"150","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:i}){return[t(Be,e._g(e._b({attrs:{disabled:e.disabled,fab:"",small:"",text:""}},"v-btn",n,!1),{...i,...s}),[t(S,[e._v(" $tableColumn ")])],1)]}}],null,!0)},[t("span",[e._v(e._s(e.$t("app.general.btn.select_columns")))])])]}}])},[t(Mt,{staticClass:"overflow-y-auto",attrs:{dense:""}},[e._l(e.headers,function(s){return[s.text!==""&&s.configurable?t(Se,{key:s.value,on:{click:function(n){return e.handleToggleHeader(s)}}},[t(nr,{staticClass:"my-0"},[t(ir,{attrs:{"input-value":s.visible}})],1),t(Ee,[t(xe,[e._v(e._s(s.text))])],1)],1):e._e()]})],2)],1)},kZ=[],DZ=E(Jo,TZ,kZ,!1,null,null);const Rm=DZ.exports;var MZ=Object.defineProperty,RZ=Object.getOwnPropertyDescriptor,Ht=(r,e,t,s)=>{for(var n=s>1?void 0:s?RZ(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&&MZ(e,t,n),n};let At=class extends Y(lt){constructor(){super(...arguments);m(this,"inputValue");m(this,"resetValue");m(this,"label");m(this,"rules");m(this,"disabled");m(this,"locked");m(this,"loading");m(this,"min");m(this,"max");m(this,"overridable");m(this,"step");m(this,"prefix");m(this,"suffix");m(this,"fullWidth");m(this,"form");m(this,"currentValue","");m(this,"sliderValue",0);m(this,"internalLocked",!1);m(this,"internalMax",0);m(this,"overridden",!1);m(this,"hasFocus",!1)}onValue(e){this.hasFocus||(this.currentValue=e.toString())}onCurrentValue(e){const t=+e;isNaN(t)||(this.checkOverride(t),this.sliderValue=t)}onSliderValue(e){this.hasFocus||(this.currentValue=e.toString()),this.$emit("input",e)}onLocked(e){this.internalLocked=e}onMax(){this.checkOverride(this.sliderValue)}get textRules(){const e=[...this.rules||[],this.$rules.numberValid,this.$rules.numberGreaterThanOrEqual(this.min)];return this.overridable||e.push(this.$rules.numberLessThanOrEqual(this.max)),e}checkOverride(e){e>this.max&&this.overridable?(this.overridden=!0,this.internalMax=e):(this.overridden=!1,this.internalMax=this.max)}submitValue(e){this.form.validate()&&(this.currentValue=e.toString(),this.internalLocked=this.locked,this.$emit("submit",e))}handleReset(){this.resetValue!==void 0&&(this.$emit("change",this.resetValue),this.submitValue(this.resetValue))}handleFocus(e){this.hasFocus=!0,e.target instanceof HTMLInputElement&&e.target.select()}handleBlur(){this.hasFocus&&(this.$emit("change",this.currentValue),this.currentValue=this.inputValue.toString(),this.hasFocus=!1)}handleSubmit(e){this.submitValue(e)}handleStart(e){this.hasFocus=!1,this.$emit("start",e)}handleEnd(e){this.$emit("end",e)}handleChange(e){this.$emit("change",e),this.submitValue(e)}created(){this.currentValue=this.inputValue.toString(),this.sliderValue=this.inputValue,this.internalLocked=this.locked,this.internalMax=this.max}};Ht([Fe({type:Number,required:!0})],At.prototype,"inputValue",2);Ht([w({type:Number})],At.prototype,"resetValue",2);Ht([w({type:String,required:!0})],At.prototype,"label",2);Ht([w({type:Array})],At.prototype,"rules",2);Ht([w({type:Boolean})],At.prototype,"disabled",2);Ht([w({type:Boolean})],At.prototype,"locked",2);Ht([w({type:Boolean})],At.prototype,"loading",2);Ht([w({type:Number,default:0})],At.prototype,"min",2);Ht([w({type:Number,default:100})],At.prototype,"max",2);Ht([w({type:Boolean})],At.prototype,"overridable",2);Ht([w({type:Number,default:1})],At.prototype,"step",2);Ht([w({type:String})],At.prototype,"prefix",2);Ht([w({type:String})],At.prototype,"suffix",2);Ht([w({type:Boolean})],At.prototype,"fullWidth",2);Ht([Te("form")],At.prototype,"form",2);Ht([Ae("value")],At.prototype,"onValue",1);Ht([Ae("currentValue")],At.prototype,"onCurrentValue",1);Ht([Ae("sliderValue")],At.prototype,"onSliderValue",1);Ht([Ae("locked")],At.prototype,"onLocked",1);Ht([Ae("max")],At.prototype,"onMax",1);At=Ht([A({})],At);var IZ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Ll,{ref:"form",class:{"full-width-slider":e.fullWidth},on:{submit:function(s){s.preventDefault()}}},[t(ie,{attrs:{"no-gutters":""}},[t(B,{staticClass:"text-body-1 py-0",class:{"text--disabled":e.disabled},attrs:{cols:"12",sm:"5","align-self":"center"},domProps:{innerHTML:e._s(e.label)}}),t(B,{staticClass:"py-0"},[t(ae,{staticClass:"v-input--text-right",attrs:{prefix:e.prefix,suffix:e.suffix,rules:e.textRules,disabled:e.disabled||e.loading||e.internalLocked,step:e.step,type:"number",dense:"","single-line":"",outlined:"","hide-details":""},on:{focus:e.handleFocus,blur:e.handleBlur,keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey?null:e.handleSubmit(+e.currentValue)}},scopedSlots:e._u([{key:"prepend",fn:function(){return[e.locked&&e.isMobileViewport?t(Be,{staticStyle:{"margin-top":"-4px"},attrs:{icon:"",small:"",disabled:e.disabled},on:{click:function(s){e.internalLocked=!e.internalLocked}}},[e.internalLocked?t(S,{attrs:{small:""}},[e._v(" $pencil ")]):t(S,{attrs:{small:""}},[e._v(" $lockReset ")])],1):e._e(),e.resetValue!==void 0?t(M,{staticStyle:{"margin-top":"-4px"},attrs:{disabled:e.disabled||e.loading,color:"",icon:"",small:""},on:{click:e.handleReset}},[t(S,{attrs:{small:""}},[e._v(" $reset ")])],1):e._e()]},proxy:!0}]),model:{value:e.currentValue,callback:function(s){e.currentValue=s},expression:"currentValue"}})],1)],1),t(Mv,{attrs:{min:e.min,max:e.internalMax,step:e.step,disabled:e.disabled||e.loading||e.internalLocked||e.overridden,dense:"","hide-details":""},on:{start:e.handleStart,end:e.handleEnd,change:e.handleChange},model:{value:e.sliderValue,callback:function(s){e.sliderValue=s},expression:"sliderValue"}})],1)},FZ=[],HZ=E(At,IZ,FZ,!1,null,"431ab3a9");const Ft=HZ.exports;var jZ=Object.defineProperty,BZ=Object.getOwnPropertyDescriptor,bb=(r,e,t,s)=>{for(var n=s>1?void 0:s?BZ(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&&jZ(e,t,n),n};let pu=class extends b{constructor(){super(...arguments);m(this,"thumbnailSize");m(this,"disabled")}};bb([Fe({type:Number,required:!0})],pu.prototype,"thumbnailSize",2);bb([w({type:Boolean})],pu.prototype,"disabled",2);pu=bb([A({})],pu);var NZ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Dt,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","min-width":"150","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:i}){return[t(Be,e._g(e._b({attrs:{disabled:e.disabled,fab:"",small:"",text:""}},"v-btn",n,!1),{...i,...s}),[t(S,[e._v(" $imageSizeSelectLarge ")])],1)]}}],null,!0)},[t("span",[e._v(e._s(e.$t("app.general.btn.thumbnail_size")))])])]}}])},[t(Tt,{staticClass:"pa-2"},[t(Ft,{staticClass:"ma-1",attrs:{label:e.$t("app.general.label.thumbnail_size"),min:32,max:192,step:16,"reset-value":32,suffix:"px"},model:{value:e.thumbnailSize,callback:function(s){e.thumbnailSize=s},expression:"thumbnailSize"}})],1)],1)},VZ=[],zZ=E(pu,NZ,VZ,!1,null,null);const UZ=zZ.exports,WZ=r=>r.isFile,GZ=r=>r.isDirectory,qZ=async r=>{try{return new Promise((e,t)=>r.file(e,t))}catch(e){ye.error("[FileSystemFileEntry] file",e)}},ZZ=async r=>{try{return new Promise((e,t)=>r.readEntries(e,t))}catch(e){ye.error("[FileSystemDirectoryReader] readEntries",e)}},Uv=r=>r.items.length?[...r.items].every(e=>e.kind==="file"):r.files.length>0,K6=async r=>{if(r.items.length){const e=[...r.items].map(t=>t.webkitGetAsEntry()).filter(t=>!!t);return await J6(e)}else if(r.files.length)return X6(r.files)},YZ=async r=>{var e;if(r.webkitEntries.length)return await J6(r.webkitEntries);if((e=r.files)!=null&&e.length)return X6(r.files)},X6=r=>[...r].map(e=>({file:e,path:e.webkitRelativePath===e.name?"":e.webkitRelativePath.slice(0,-e.name.length-1)})),J6=async r=>{const e=[],t=r.map(n=>({entry:n,path:""}));let s=t.pop();for(;s;){if(WZ(s.entry)){const n=await qZ(s.entry);n&&e.push({file:n,path:s.path})}else if(GZ(s.entry)){const n=await ZZ(s.entry.createReader());if(n)for(const i of n)t.push({entry:i,path:s.path?`${s.path}/${s.entry.name}`:s.entry.name})}s=t.pop()}return e},KZ=r=>new Promise((e,t)=>{const s=new FileReader;s.onload=()=>e(s.result),s.onerror=n=>t(n),s.readAsText(r,"UTF8")});var XZ=Object.defineProperty,JZ=Object.getOwnPropertyDescriptor,Im=(r,e,t,s)=>{for(var n=s>1?void 0:s?JZ(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&&XZ(e,t,n),n};let Qo=class extends Y(J){constructor(){super(...arguments);m(this,"root");m(this,"disabled");m(this,"uploadFile");m(this,"andPrint",!1)}get rootProperties(){return this.$store.getters["files/getRootProperties"](this.root)}get accepts(){return this.rootProperties.accepts.join(",")}get printerReady(){return!this.printerPrinting&&!this.printerPaused&&this.klippyReady}emulateClick(t,s=!1){this.andPrint=t,this.uploadFile.multiple=!t,this.uploadFile.webkitdirectory=s,this.uploadFile.click()}async fileChanged(t){if(t.target instanceof HTMLInputElement){const s=await YZ(t.target);s&&this.$emit("upload",s,this.andPrint),t.target.value=""}}};Im([w({type:String,required:!0})],Qo.prototype,"root",2);Im([w({type:Boolean})],Qo.prototype,"disabled",2);Im([Te("uploadFile")],Qo.prototype,"uploadFile",2);Qo=Im([A({})],Qo);var QZ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Dt,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition"},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:i}){return[t(Be,e._g(e._b({attrs:{disabled:e.disabled,fab:"",small:"",text:""}},"v-btn",n,!1),{...s,...i}),[t(S,[e._v(" $plus ")])],1)]}}],null,!0)},[t("span",[e._v(e._s(e.$t("app.general.btn.add")))])])]}}])},[t(Mt,{attrs:{dense:""}},[t(Se,{attrs:{disabled:e.disabled},on:{click:function(s){return e.emulateClick(!1)}}},[t(qe,[t(S,[e._v(" $fileUpload ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.general.btn.upload_files"))+" ")])],1)],1),t(Se,{attrs:{disabled:e.disabled},on:{click:function(s){return e.emulateClick(!1,!0)}}},[t(qe,[t(S,[e._v(" $folderUpload ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.general.btn.upload_folder"))+" ")])],1)],1),e.root==="gcodes"?t(Se,{attrs:{disabled:e.disabled||!e.printerReady},on:{click:function(s){return e.emulateClick(!0)}}},[t(qe,[t(S,[e._v(" $progressUpload ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.general.btn.upload_print"))+" ")])],1)],1):e._e(),t(Se,{attrs:{disabled:e.disabled},on:{click:function(s){return e.$emit("add-file")}}},[t(qe,[t(S,[e._v(" $fileAdd ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.general.btn.add_file"))+" ")])],1)],1),t(Se,{attrs:{disabled:e.disabled},on:{click:function(s){return e.$emit("add-dir")}}},[t(qe,[t(S,[e._v(" $folderAdd ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.general.btn.add_dir"))+" ")])],1)],1)],1),t("input",{ref:"uploadFile",staticStyle:{display:"none"},attrs:{type:"file",accept:e.accepts,multiple:""},on:{change:e.fileChanged}})],1)},eY=[],tY=E(Qo,QZ,eY,!1,null,null);const rY=tY.exports;var sY=Object.defineProperty,nY=Object.getOwnPropertyDescriptor,$b=(r,e,t,s)=>{for(var n=s>1?void 0:s?nY(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&&sY(e,t,n),n};let hu=class extends b{constructor(){super(...arguments);m(this,"root");m(this,"disabled")}get rootProperties(){return this.$store.getters["files/getRootProperties"](this.root)}get filters(){const t=[],s=this.rootProperties.filterTypes;return s.includes("print_start_time")&&this.supportsHistoryComponent&&t.push({type:"print_start_time",text:this.$tc("app.file_system.filters.label.print_start_time")}),s.includes("hidden_files")&&t.push({type:"hidden_files",text:this.$tc("app.file_system.filters.label.hidden_files_folders")}),s.includes("klipper_backup_files")&&t.push({type:"klipper_backup_files",text:this.$tc("app.file_system.filters.label.klipper_backup_files")}),s.includes("moonraker_backup_files")&&t.push({type:"moonraker_backup_files",text:this.$tc("app.file_system.filters.label.moonraker_backup_files")}),s.includes("rolled_log_files")&&t.push({type:"rolled_log_files",text:this.$tc("app.file_system.filters.label.rolled_log_files")}),s.includes("crowsnest_backup_files")&&t.push({type:"crowsnest_backup_files",text:this.$tc("app.file_system.filters.label.crowsnest_backup_files")}),t}get selectedFilterTypes(){const t=this.$store.state.config.uiSettings.fileSystem.activeFilters[this.root]??[],s=new Set(this.filters.map(n=>n.type));return t.filter(n=>s.has(n))}set selectedFilterTypes(t){this.$emit("change",t)}get supportsHistoryComponent(){return this.$store.getters["server/componentSupport"]("history")}};$b([w({type:String,required:!0})],hu.prototype,"root",2);$b([w({type:Boolean})],hu.prototype,"disabled",2);hu=$b([A({})],hu);var iY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Dt,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:i}){return[t(_6,{attrs:{bordered:"",color:"warning",dot:"",overlap:"",value:e.selectedFilterTypes.length>0,"offset-y":15,"offset-x":15}},[t(Be,e._g(e._b({attrs:{disabled:e.disabled,fab:"",small:"",text:""}},"v-btn",n,!1),{...s,...i}),[t(S,[e._v(" $filter ")])],1)],1)]}}],null,!0)},[t("span",[e._v(e._s(e.$t("app.general.btn.filter")))])])]}}])},[t(Mt,{attrs:{dense:""}},[t(_U,{attrs:{multiple:""},model:{value:e.selectedFilterTypes,callback:function(s){e.selectedFilterTypes=s},expression:"selectedFilterTypes"}},e._l(e.filters,function(s){return t(Se,{key:`filter-${s.type}`,attrs:{value:s.type},scopedSlots:e._u([{key:"default",fn:function({active:n}){return[t(nr,{staticClass:"my-0"},[t(ir,{attrs:{"input-value":n}})],1),t(Ee,[t(xe,[e._v(" "+e._s(s.text)+" ")]),s.desc!==void 0?t(Wp,[e._v(" "+e._s(s.desc)+" ")]):e._e()],1)]}}],null,!0)})}),1)],1)],1)},aY=[],oY=E(hu,iY,aY,!1,null,"b7e48b62");const lY=oY.exports;var cY=Object.defineProperty,uY=Object.getOwnPropertyDescriptor,Kn=(r,e,t,s)=>{for(var n=s>1?void 0:s?uY(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&&cY(e,t,n),n};let Ys=class extends Y(J){constructor(){super(...arguments);m(this,"root");m(this,"name");m(this,"roots");m(this,"headers");m(this,"path");m(this,"disabled");m(this,"loading");m(this,"searchModel")}get readonly(){return this.rootProperties.readonly}get canConfigure(){return this.rootProperties.canConfigure}get hasFilterTypes(){return this.rootProperties.filterTypes.length>0}get lowOnSpace(){return this.klippyReady?this.$store.getters["files/getLowOnSpace"]:!1}get rootProperties(){return this.$store.getters["files/getRootProperties"](this.root)}get thumbnailSize(){return this.$store.state.config.uiSettings.general.thumbnailSize}set thumbnailSize(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.thumbnailSize",value:t,server:!0})}handleUpload(t,s){this.$emit("upload",t,s)}};Kn([w({type:String,required:!0})],Ys.prototype,"root",2);Kn([w({type:String,required:!0})],Ys.prototype,"name",2);Kn([w({type:Array})],Ys.prototype,"roots",2);Kn([w({type:Array})],Ys.prototype,"headers",2);Kn([w({type:String})],Ys.prototype,"path",2);Kn([w({type:Boolean})],Ys.prototype,"disabled",2);Kn([w({type:Boolean})],Ys.prototype,"loading",2);Kn([Hi("search",{type:String,default:""})],Ys.prototype,"searchModel",2);Ys=Kn([A({components:{FileSystemAddMenu:rY,FileSystemFilterMenu:lY}})],Ys);var dY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Gt,{attrs:{dense:""},scopedSlots:e._u([e.roots&&e.roots.length>1?{key:"extension",fn:function(){return[t(cb,{attrs:{"show-arrows":""}},e._l(e.roots,function(s,n){return t(Ih,{key:n,on:{change:function(i){return e.$emit("root-change",s)}}},[e._v(" "+e._s(s)+" ")])}),1)]},proxy:!0}:null],null,!0)},[t(md,{staticClass:"d-none d-sm-block"},[t("div",{staticClass:"file-path"},[e._v(" /"+e._s(e.path)+" ")])]),t($t),e.lowOnSpace&&!e.loading?t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Be,e._g(e._b({attrs:{fab:"",text:"",small:"",color:"warning"}},"v-btn",n,!1),s),[t(S,{attrs:{color:"warning"}},[e._v(" $error ")])],1)]}}],null,!1,965673122)},[e._t("default",function(){return[t("span",[e._v(e._s(e.$t("app.file_system.tooltip.low_on_space")))])]})],2):e._e(),e.disabled&&!e.loading?t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Be,e._g(e._b({attrs:{fab:"",text:"",small:"",color:"error"}},"v-btn",n,!1),s),[t(S,{attrs:{color:"error"}},[e._v(" $warning ")])],1)]}}],null,!1,189610928)},[e._t("default",function(){return[t("span",[e._v(e._s(e.$t("app.file_system.tooltip.root_disabled",{root:e.root})))])]})],2):e._e(),["gcodes","timelapse"].includes(e.root)?t(UZ,{model:{value:e.thumbnailSize,callback:function(s){e.thumbnailSize=s},expression:"thumbnailSize"}}):e._e(),e.headers&&e.canConfigure?t(Rm,{attrs:{"key-name":`${e.root}_${e.name}`,headers:e.headers}}):e._e(),t("div",[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Be,e._g(e._b({attrs:{disabled:e.disabled,fab:"",small:"",text:""},on:{click:function(i){return e.$emit("go-to-file")}}},"v-btn",n,!1),s),[t(S,[e._v("$magnify")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.go_to_file")))])])],1),e.hasFilterTypes?t("file-system-filter-menu",{attrs:{root:e.root,disabled:e.disabled},on:{change:function(s){return e.$emit("filter",s)}}}):e._e(),e.readonly?e._e():t("file-system-add-menu",{attrs:{root:e.root,disabled:e.disabled},on:{"add-file":function(s){return e.$emit("add-file")},"add-dir":function(s){return e.$emit("add-dir")},upload:e.handleUpload}}),t("div",[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Be,e._g(e._b({attrs:{disabled:e.disabled,fab:"",small:"",text:""},on:{click:function(i){return e.$emit("refresh")}}},"v-btn",n,!1),s),[t(S,[e._v("$refresh")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.refresh")))])])],1),t("div",{staticClass:"ml-1",staticStyle:{"max-width":"160px"}},[t(ae,{attrs:{disabled:e.disabled,outlined:"",dense:"","single-line":"","hide-details":"","append-icon":"$magnify"},model:{value:e.searchModel,callback:function(s){e.searchModel=s},expression:"searchModel"}})],1)],1)},pY=[],hY=E(Ys,dY,pY,!1,null,null);const fY=hY.exports;var mY=Object.defineProperty,gY=Object.getOwnPropertyDescriptor,wb=(r,e,t,s)=>{for(var n=s>1?void 0:s?gY(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&&mY(e,t,n),n};let fu=class extends Y(J){constructor(){super(...arguments);m(this,"root");m(this,"path")}};wb([w({type:String,required:!0})],fu.prototype,"root",2);wb([w({type:String})],fu.prototype,"path",2);fu=wb([A({})],fu);var vY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Gt,{attrs:{dense:""}},[t(md,{staticClass:"d-none d-sm-block"},[t("div",{staticClass:"file-path"},[e._v(" /"+e._s(e.path)+" ")])]),t($t),e.root==="gcodes"?t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Be,e._g(e._b({attrs:{fab:"",small:"",text:""},on:{click:function(i){return e.$emit("enqueue")}}},"v-btn",n,!1),s),[t(S,[e._v(" $enqueueJob ")])],1)]}}],null,!1,1008745685)},[t("span",[e._v(e._s(e.$t("app.general.btn.add_to_queue")))])]):e._e(),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Be,e._g(e._b({attrs:{fab:"",small:"",text:""},on:{click:function(i){return e.$emit("create-zip")}}},"v-btn",n,!1),s),[t(S,[e._v(" $fileZipAdd ")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.create_zip_archive")))])]),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Be,e._g(e._b({attrs:{fab:"",small:"",text:""},on:{click:function(i){return e.$emit("remove")}}},"v-btn",n,!1),s),[t(S,[e._v(" $delete ")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.delete")))])])],1)},_Y=[],yY=E(fu,vY,_Y,!1,null,null);const bY=yY.exports;var $Y=Object.defineProperty,wY=Object.getOwnPropertyDescriptor,yd=(r,e,t,s)=>{for(var n=s>1?void 0:s?wY(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&&$Y(e,t,n),n};let Aa=class extends b{constructor(){super(...arguments);m(this,"itemValue");m(this,"headers");m(this,"nowrap");m(this,"right")}get isVisible(){return this.headers!==void 0&&this.itemValue!==void 0?this.headers.findIndex(s=>{const n=s.key?s.key:s.value;return this.itemValue===n})>=0:!0}};yd([w({type:String})],Aa.prototype,"itemValue",2);yd([w({type:Array})],Aa.prototype,"headers",2);yd([w({type:Boolean,default:!0})],Aa.prototype,"nowrap",2);yd([w({type:Boolean})],Aa.prototype,"right",2);Aa=yd([A({})],Aa);var SY=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.isVisible?t("td",{class:{"text-end":e.right},attrs:{nowrap:e.nowrap}},[e._t("default"),e.$slots.default?e._e():t("span",[e._v("--")])],2):e._e()},xY=[],CY=E(Aa,SY,xY,!1,null,null);const PY=CY.exports;var AY=Object.defineProperty,LY=Object.getOwnPropertyDescriptor,en=(r,e,t,s)=>{for(var n=s>1?void 0:s?LY(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&&AY(e,t,n),n};let ls=class extends Y(zr){constructor(){super(...arguments);m(this,"selected");m(this,"root");m(this,"files");m(this,"dense");m(this,"loading");m(this,"headers");m(this,"search");m(this,"dragStateModel");m(this,"disabled");m(this,"bulkActions");m(this,"dragItem",null);m(this,"ghost")}get showHistory(){return this.$store.getters["server/componentSupport"]("history")&&this.root==="gcodes"}get rootProperties(){return this.$store.getters["files/getRootProperties"](this.root)}get readonly(){return this.rootProperties.readonly}get thumbnailSize(){const t=this.$store.state.config.uiSettings.general.thumbnailSize;return this.dense?t/2:t}get textSortOrder(){return this.$store.state.config.uiSettings.general.textSortOrder}get draggedItems(){if(this.dragItem){const t=this.selected.filter(n=>n.name!=="..");return t.length>0?t:[this.dragItem]}return[]}get sortBy(){return this.$store.state.config.uiSettings.fileSystem.sortBy[this.root]??"modified"}set sortBy(t){this.$store.dispatch("config/updateFileSystemSortBy",{root:this.root,value:t??null})}get sortDesc(){return this.$store.state.config.uiSettings.fileSystem.sortDesc[this.root]??!0}set sortDesc(t){this.$store.dispatch("config/updateFileSystemSortDesc",{root:this.root,value:t??null})}customSort(t,s,n,i){return this.$filters.fileSystemSort(t,s,n,i,this.textSortOrder)}handleSelected(t){t.length===1&&(t[0].name===".."?t=[]:t=this.files.filter(s=>s.name===t[0].name||s.name==="..")),this.$emit("input",t)}getItemIcon(t){const s=!this.isItemWriteable(t);return t.type==="file"?t.extension==="zip"?s?"$fileZipLock":"$fileZip":E5.includes(`.${t.extension}`)||O5.includes(`.${t.extension}`)?s?"$fileImageLock":"$fileImage":s?"$fileLock":"$file":t.name===".."?"$folderUp":s?"$folderLock":"$folder"}isItemDraggable(t){return t.name!==".."&&this.files.length>0&&(this.selected.length===0||this.selected.includes(t))}isItemWriteable(t){return!this.readonly&&(t.permissions===void 0||t.permissions.includes("w"))}handleDragStart(t,s){if(this.dragStateModel!==!0&&(this.dragItem=t,this.dragStateModel=!0),s.dataTransfer){const n=this.draggedItems;this.ghost=document.createElement("div"),this.ghost.classList.add("bulk-drag"),this.ghost.classList.add(this.$vuetify.theme.dark?"theme--dark":"theme--light"),this.ghost.innerHTML=n.length>1?this.$tc("app.file_system.tooltip.items_count",n.length):t.name,document.body.appendChild(this.ghost),s.dataTransfer.effectAllowed="all",s.dataTransfer.setDragImage(this.ghost,0,0),this.$emit("drag-start",t,n,s.dataTransfer)}}handleDrop(t,s){if(this.handleDragLeave(s),t.type==="directory"&&this.isItemWriteable(t)&&s.dataTransfer&&this.dragItem&&this.dragItem!==t){const n=this.draggedItems;n.includes(t)||this.$emit("move",n,t)}}handleDragOver(t,s){if(t.type==="directory"&&this.isItemWriteable(t)&&s.dataTransfer&&this.dragItem&&this.dragItem!==t&&!this.draggedItems.includes(t)&&(s.preventDefault(),s.dataTransfer.dropEffect="move",s.target instanceof HTMLElement)){let n=s.target;for(;n;){if(n.tagName==="TR"){n.classList.add("active");return}n=n.parentElement}}}handleDragLeave(t){if(t.target instanceof HTMLElement){let s=t.target;for(;s;){if(s.tagName==="TR"){s.classList.remove("active");return}s=s.parentElement}}}handleDragEnd(){const t=this.ghost;t&&(document.body.removeChild(t),this.ghost=void 0),this.dragItem=null,this.dragStateModel=!1}};en([Fe({type:Array,required:!0})],ls.prototype,"selected",2);en([w({type:String,required:!0})],ls.prototype,"root",2);en([w({type:Array,required:!0})],ls.prototype,"files",2);en([w({type:Boolean})],ls.prototype,"dense",2);en([w({type:Boolean})],ls.prototype,"loading",2);en([w({type:Array,required:!0})],ls.prototype,"headers",2);en([w({type:String})],ls.prototype,"search",2);en([Hi("dragState",{type:Boolean,required:!0})],ls.prototype,"dragStateModel",2);en([w({type:Boolean})],ls.prototype,"disabled",2);en([w({type:Boolean})],ls.prototype,"bulkActions",2);ls=en([A({components:{FileRowItem:PY}})],ls);var EY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"file-system"},[t(hd,{staticClass:"rounded-0",attrs:{value:e.selected,headers:e.headers,items:e.files,dense:e.dense,"disable-pagination":"",loading:e.loading,"custom-sort":e.customSort,search:e.search,"show-select":e.bulkActions,"no-data-text":e.$t("app.file_system.msg.not_found"),"no-results-text":e.$t("app.file_system.msg.not_found"),"item-key":"name",height:"100%","mobile-breakpoint":"0","must-sort":"","sort-by":e.sortBy,"sort-desc":e.sortDesc,"hide-default-footer":"","fixed-header":""},on:{"update:sortBy":function(s){e.sortBy=s},"update:sort-by":function(s){e.sortBy=s},"update:sortDesc":function(s){e.sortDesc=s},"update:sort-desc":function(s){e.sortDesc=s},input:e.handleSelected},scopedSlots:e._u([{key:"item",fn:function({item:s,isSelected:n,select:i}){return[t("tr",{staticClass:"row-select px-1",class:{"is-disabled":e.disabled,"v-data-table__selected":n&&s.name!==".."},attrs:{draggable:e.isItemDraggable(s)},on:{click:function(a){return a.preventDefault(),e.$emit("row-click",s,a)},contextmenu:function(a){return a.preventDefault(),e.$emit("row-click",s,a)},dragstart:function(a){return e.handleDragStart(s,a)},dragend:e.handleDragEnd,dragover:function(a){return e.handleDragOver(s,a)},dragenter:function(a){a.preventDefault()},dragleave:function(a){return a.preventDefault(),e.handleDragLeave.apply(null,arguments)},drop:function(a){return a.preventDefault(),e.handleDrop(s,a)}}},[e.bulkActions?t("td",[s.name!==".."?t(bm,{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"mt-1",attrs:{value:n,color:""},on:{click:function(a){return a.stopPropagation(),i(!n)}}}):e._e()],1):e._e(),t("td",[t(Vr,{attrs:{"justify-center":""}},[!s.thumbnails||!s.thumbnails.length?t(S,{attrs:{small:e.dense,color:s.type==="file"?"grey":"primary"}},[e._v(" "+e._s(e.getItemIcon(s))+" ")]):t("img",{style:{"max-width":`${e.thumbnailSize}px`,"max-height":`${e.thumbnailSize}px`},attrs:{src:e.getThumbUrl(s,e.root,s.path,e.thumbnailSize>16,s.modified)}})],1)],1),t("file-row-item",{attrs:{nowrap:!1}},[e._v(" "+e._s(s.name)+" ")]),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"object_height"}},[s.object_height!==void 0?t("span",[e._v(" "+e._s(e.$filters.getReadableLengthString(s.object_height))+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"first_layer_height"}},[s.first_layer_height!==void 0?t("span",[e._v(" "+e._s(s.first_layer_height)+" mm ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"layer_height"}},[s.layer_height!==void 0?t("span",[e._v(" "+e._s(s.layer_height)+" mm ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"filament_name"}},[s.filament_name!==void 0?t("span",[e._v(" "+e._s(s.filament_name)+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"filament_type"}},[s.filament_type!==void 0?t("span",[e._v(" "+e._s(s.filament_type)+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"filament_total"}},[s.filament_total!==void 0?t("span",[e._v(" "+e._s(e.$filters.getReadableLengthString(s.filament_total))+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"filament_weight_total"}},[s.filament_weight_total!==void 0?t("span",[e._v(" "+e._s(e.$filters.getReadableWeightString(s.filament_weight_total))+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"history.filament_used"}},[s.history&&s.history.filament_used!==void 0?t("span",[e._v(" "+e._s(e.$filters.getReadableLengthString(s.history.filament_used))+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"nozzle_diameter"}},[s.nozzle_diameter!==void 0?t("span",[e._v(" "+e._s(s.nozzle_diameter)+" mm ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"slicer"}},[s.slicer!==void 0?t("span",[e._v(" "+e._s(s.slicer)+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"slicer_version"}},[s.slicer_version!==void 0?t("span",[e._v(" "+e._s(s.slicer_version)+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"estimated_time"}},[s.estimated_time!==void 0?t("span",[e._v(" "+e._s(e.$filters.formatCounterSeconds(s.estimated_time))+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"history.print_duration"}},[s.history&&s.history.print_duration!==void 0?t("span",[e._v(" "+e._s(e.$filters.formatCounterSeconds(s.history.print_duration))+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"history.total_duration"}},[s.history&&s.history.total_duration!==void 0?t("span",[e._v(" "+e._s(e.$filters.formatCounterSeconds(s.history.total_duration))+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"first_layer_bed_temp"}},[s.first_layer_bed_temp!==void 0?t("span",[e._v(" "+e._s(s.first_layer_bed_temp)),t("small",[e._v("°C")])]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"first_layer_extr_temp"}},[s.first_layer_extr_temp!==void 0?t("span",[e._v(" "+e._s(s.first_layer_extr_temp)),t("small",[e._v("°C")])]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"chamber_temp"}},[s.chamber_temp!==void 0?t("span",[e._v(" "+e._s(s.chamber_temp)),t("small",[e._v("°C")])]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"print_start_time"}},[s.print_start_time!==void 0&&s.print_start_time!==null?t("span",[e._v(" "+e._s(e.$filters.formatDateTime(s.print_start_time*1e3))+" ")]):e._e()]):e._e(),t("file-row-item",{attrs:{headers:e.headers,"item-value":"modified"}},[s.modified!==void 0&&s.name!==".."?t("span",[e._v(" "+e._s(e.$filters.formatDateTime(s.modified*1e3))+" ")]):e._e()]),t("file-row-item",{attrs:{headers:e.headers,"item-value":"size"}},[s.size!==void 0&&s.name!==".."?t("span",[e._v(" "+e._s(e.$filters.getReadableFileSizeString(s.size))+" ")]):e._e()])],1)]}}])})],1)},OY=[],TY=E(ls,EY,OY,!1,null,"97cf8f8c");const kY=TY.exports;var DY=Object.defineProperty,MY=Object.getOwnPropertyDescriptor,Ol=(r,e,t,s)=>{for(var n=s>1?void 0:s?MY(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&&DY(e,t,n),n};let Ei=class extends Y(J,zr){constructor(){super(...arguments);m(this,"open");m(this,"root");m(this,"file");m(this,"positionX");m(this,"positionY")}get rootProperties(){return this.$store.getters["files/getRootProperties"](this.root)}get canPrint(){return this.root==="gcodes"&&!Array.isArray(this.file)&&this.file.type!=="directory"&&this.rootProperties.accepts.includes(`.${this.file.extension}`)}get canEdit(){return!Array.isArray(this.file)&&this.file.type!=="directory"&&(this.file.permissions===void 0||this.file.permissions.includes("r"))}get canView(){return!Array.isArray(this.file)&&this.file.type!=="directory"&&this.rootProperties.canView.includes(`.${this.file.extension}`)&&(this.file.permissions===void 0||this.file.permissions.includes("r"))}get canPreheat(){return this.root==="gcodes"&&!Array.isArray(this.file)&&"first_layer_extr_temp"in this.file&&"first_layer_bed_temp"in this.file}get printerReady(){return!this.printerPrinting&&!this.printerPaused&&this.klippyReady}get canPreviewGcode(){return this.root==="gcodes"&&!Array.isArray(this.file)&&this.file.type==="file"&&this.file.extension==="gcode"}get canCreateZip(){return(Array.isArray(this.file)||this.file.type!=="file"||this.file.extension!=="zip")&&!this.rootProperties.readonly&&this.$store.getters["server/getIsMinApiVersion"]("1.1.0")}get canAddToQueue(){const t=Array.isArray(this.file)?this.file:[this.file];return this.root==="gcodes"&&t.some(s=>s.type!=="directory"&&this.rootProperties.accepts.includes("."+s.extension))&&this.$store.getters["server/componentSupport"]("job_queue")}};Ol([Fe({type:Boolean})],Ei.prototype,"open",2);Ol([w({type:String,required:!0})],Ei.prototype,"root",2);Ol([w({type:[Object,Array],required:!0})],Ei.prototype,"file",2);Ol([w({type:Number,required:!0})],Ei.prototype,"positionX",2);Ol([w({type:Number,required:!0})],Ei.prototype,"positionY",2);Ei=Ol([A({})],Ei);var RY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Dt,{attrs:{transition:"slide-y-transition","position-x":e.positionX,"position-y":e.positionY,"min-width":"180",absolute:"",right:""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(He,[t(ie,{attrs:{align:"center",justify:"center","no-gutters":""}},[t(B,[t(Mt,{attrs:{dense:""}},[e.canPrint?t(Se,{attrs:{disabled:!e.printerReady},on:{click:function(s){return e.$emit("print",e.file)}}},[t(qe,[t(S,[e._v(" $printer ")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.print")))])],1)],1):e._e(),e.canAddToQueue?t(Se,{on:{click:function(s){return e.$emit("enqueue",e.file)}}},[t(qe,[t(S,[e._v("$enqueueJob")])],1),t(xe,[e._v(e._s(e.$t("app.general.btn.add_to_queue")))])],1):e._e(),e.canPreheat?t(Se,{attrs:{disabled:!e.printerReady},on:{click:function(s){return e.$emit("preheat",e.file)}}},[t(qe,[t(S,[e._v(" $fire ")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.preheat")))])],1)],1):e._e(),e.canView?t(Se,{on:{click:function(s){return e.$emit("view",e.file)}}},[t(qe,[t(S,[e._v("$open")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.view")))])],1)],1):e._e(),e.canEdit?t(Se,{on:{click:function(s){return e.$emit("edit",e.file)}}},[t(qe,[t(S,[e._v("$pencil")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.edit")))])],1)],1):e._e(),e.canPrint?t(Se,{on:{click:function(s){return e.$emit("refresh-metadata",e.file)}}},[t(qe,[t(S,[e._v("$sync")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.refresh_metadata")))])],1)],1):e._e(),e.canPreviewGcode?t(Se,{on:{click:function(s){return e.$emit("preview-gcode",e.file)}}},[t(qe,[t(S,[e._v("$cubeScan")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.preview_gcode")))])],1)],1):e._e(),e.canCreateZip?t(Se,{on:{click:function(s){return e.$emit("create-zip",e.file)}}},[t(qe,[t(S,[e._v("$fileZipAdd")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.create_zip_archive")))])],1)],1):e._e(),!Array.isArray(e.file)&&e.file.type!=="directory"?t(Se,{on:{click:function(s){return e.$emit("download",e.file)}}},[t(qe,[t(S,[e._v("$download")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.download")))])],1)],1):e._e(),!Array.isArray(e.file)&&!e.rootProperties.readonly?t(Se,{on:{click:function(s){return e.$emit("rename",e.file)}}},[t(qe,[t(S,[e._v("$rename")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.rename")))])],1)],1):e._e(),!Array.isArray(e.file)&&!e.rootProperties.readonly?t(Se,{on:{click:function(s){return e.$emit("duplicate",e.file)}}},[t(qe,[t(S,[e._v("$duplicate")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.duplicate")))])],1)],1):e._e(),e.rootProperties.readonly?e._e():t(Se,{on:{click:function(s){return e.$emit("remove",e.file)}}},[t(qe,[t(S,[e._v("$delete")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.remove")))])],1)],1)],1)],1),"thumbnails"in e.file&&e.file.thumbnails&&e.file.thumbnails.length?t(B,{staticClass:"px-2 d-none d-sm-flex"},[t(Be,{attrs:{text:"",height:"100%"},on:{click:function(s){return e.$emit("view-thumbnail",e.file)}}},[t("img",{staticClass:"mx-2",attrs:{src:e.getThumbUrl(e.file,e.root,e.file.path,!0,e.file.modified),height:150}})])],1):e._e()],1)],1)],1)},IY=[],FY=E(Ei,RY,IY,!1,null,null);const HY=FY.exports;var jY=Object.defineProperty,BY=Object.getOwnPropertyDescriptor,Q6=(r,e,t,s)=>{for(var n=s>1?void 0:s?BY(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&&jY(e,t,n),n};let Uh=class extends b{constructor(){super(...arguments);m(this,"inputValue");m(this,"hasCopied",!1)}handleCopy(){this.inputValue&&navigator.clipboard&&(navigator.clipboard.writeText(this.inputValue.toString()),this.hasCopied=!0,setTimeout(()=>{this.hasCopied=!1},2e3))}};Q6([Fe()],Uh.prototype,"inputValue",2);Uh=Q6([A({})],Uh);var NY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ae,e._g(e._b({staticClass:"app-text-field",scopedSlots:e._u([{key:"append-outer",fn:function(){return[t(Oe,{attrs:{"close-delay":e.hasCopied?2e3:void 0,"open-on-focus":!1,bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Be,e._g(e._b({staticClass:"btn-copy",attrs:{icon:"",text:""},on:{click:e.handleCopy}},"v-btn",n,!1),s),[t(Al,{attrs:{"leave-absolute":""}},[t(S,{key:e.hasCopied,staticClass:"icon-copy"},[e._v(" "+e._s(e.hasCopied?"$check":"$contentCopy")+" ")])],1)],1)]}}])},[t("span",[e._v(e._s(e.hasCopied?e.$t("app.general.btn.copied"):e.$t("app.general.btn.copy")))])])]},proxy:!0}]),model:{value:e.inputValue,callback:function(s){e.inputValue=s},expression:"inputValue"}},"v-text-field",e.$attrs,!1),e.$listeners))},VY=[],zY=E(Uh,NY,VY,!1,null,"0443802c");const op=zY.exports;var UY=Object.defineProperty,WY=Object.getOwnPropertyDescriptor,eP=(r,e,t,s)=>{for(var n=s>1?void 0:s?WY(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&&UY(e,t,n),n};let Wh=class extends Y(J){constructor(){super(...arguments);m(this,"open");m(this,"tab",null)}get peripherals(){return this.$store.state.server.peripherals}get canbusUuids(){return this.$store.state.server.can_uuids}get systemInfo(){return this.$store.state.server.system_info}get canbusInterfaces(){var t;return Object.keys(((t=this.systemInfo)==null?void 0:t.canbus)??{})}get peripheralGroups(){var s,n;const t=[{type:"serial",count:(s=this.peripherals.serial_devices)==null?void 0:s.length},{type:"usb",count:(n=this.peripherals.usb_devices)==null?void 0:n.length},{type:"video",count:this.peripherals.v4l2_devices&&this.peripherals.libcamera_devices?this.peripherals.v4l2_devices.length+this.peripherals.libcamera_devices.length:void 0}];return this.canbusInterfaces.length>0&&t.push({type:"can",count:this.canbusUuids?Object.values(this.canbusUuids).reduce((i,a)=>i+a.length,0):void 0}),t}get currentPeripheralGroup(){return this.tab!=null&&this.peripheralGroups[this.tab]}hasWaitFor(t){switch(t.type){case"serial":return this.hasWait(this.$waits.onMachinePeripheralsSerial);case"usb":return this.hasWait(this.$waits.onMachinePeripheralsUsb);case"video":return this.hasWait(this.$waits.onMachinePeripheralsVideo);case"can":return this.hasWaitsBy(`${this.$waits.onMachinePeripheralsCanbus}/`)}}handleRefresh(){const t=this.currentPeripheralGroup;if(t)switch(t.type){case"serial":I.machinePeripheralsSerial();break;case"usb":I.machinePeripheralsUsb();break;case"video":I.machinePeripheralsVideo();break;case"can":for(const s in this.canbusInterfaces)I.machinePeripheralsCanbus(s);break}}};eP([Fe({type:Boolean})],Wh.prototype,"open",2);Wh=eP([A({})],Wh);var GY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.$t("app.system_info.label.devices"),"max-width":"550","no-actions":""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Gt,{attrs:{dense:""}},[t(cb,{attrs:{"show-arrows":""},model:{value:e.tab,callback:function(s){e.tab=s},expression:"tab"}},e._l(e.peripheralGroups,function(s){return t(Ih,{key:s.type},[t("div",[e._v(" "+e._s(e.$filters.prettyCase(s.type))+" "),t(hr,{staticClass:"ml-2",attrs:{small:"",link:""}},[e._v(" "+e._s(s.count??"?")+" ")])],1)])}),1),t($t),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Be,e._g(e._b({attrs:{fab:"",text:"",small:"",disabled:!e.currentPeripheralGroup||e.hasWaitFor(e.currentPeripheralGroup)},on:{click:function(i){return i.preventDefault(),i.stopPropagation(),e.handleRefresh()}}},"v-btn",n,!1),s),[t(S,{class:{"spin-alt":e.currentPeripheralGroup&&e.hasWaitFor(e.currentPeripheralGroup)}},[e._v(" $refresh ")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.refresh")))])])],1),t(Le,{staticClass:"fill-height"},[t(lb,{attrs:{touchless:""},model:{value:e.tab,callback:function(s){e.tab=s},expression:"tab"}},e._l(e.peripheralGroups,function(s){return t(Fv,{key:s.type},[s.count==null?[e._v(" "+e._s(e.$t("app.system_info.msg.no_devices_searched"))+" ")]:s.count==0?[e._v(" "+e._s(e.$t("app.system_info.msg.no_devices_found"))+" "),s.type==="can"?t(Ai,{staticClass:"mt-4 mb-0",attrs:{type:"info",text:""}},[t("span",{domProps:{innerHTML:e._s(e.$t("app.system_info.msg.canbus_warning"))}})]):e._e()]:s.type==="serial"?e._l(e.peripherals.serial_devices,function(n,i){return t(ie,{key:i},[t(B,[t(He,{attrs:{outlined:""}},[t(Hr,[e._v(e._s(n.device_name))]),t(sa,[e._v(e._s(e.$filters.prettyCase(n.device_type)))]),t(Le,[t(ie,[t(B,[t(op,{attrs:{value:n.device_path,label:"device_path",outlined:"",dense:"",readonly:"","hide-details":""}})],1)],1),n.path_by_id?t(ie,[t(B,[t(op,{attrs:{value:n.path_by_id,label:"path_by_id",outlined:"",dense:"",readonly:"","hide-details":""}})],1)],1):e._e(),n.path_by_hardware?t(ie,[t(B,[t(op,{attrs:{value:n.path_by_hardware,label:"path_by_hardware",outlined:"",dense:"",readonly:"","hide-details":""}})],1)],1):e._e()],1),t(R),t(qt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v("driver_name")]),t("td",[e._v(e._s(n.driver_name))])]),n.usb_location?t("tr",[t("th",[e._v("usb_location")]),t("td",[e._v(e._s(n.usb_location))])]):e._e()])])],1)],1)],1)}):s.type==="usb"?e._l(e.peripherals.usb_devices,function(n,i){return t(ie,{key:i},[t(B,[t(He,{attrs:{outlined:""}},[t(Hr,[e._v(e._s(n.product??e.$t("app.general.label.unknown"))+" ("+e._s(n.vendor_id)+":"+e._s(n.product_id)+")")]),t(sa,[e._v(e._s(n.description??e.$t("app.general.label.unknown")))]),t(R),t(qt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v("usb_location")]),t("td",[e._v(e._s(n.usb_location))])]),n.manufacturer?t("tr",[t("th",[e._v("manufacturer")]),t("td",[e._v(e._s(n.manufacturer))])]):e._e(),n.protocol?t("tr",[t("th",[e._v("protocol")]),t("td",[e._v(e._s(n.protocol))])]):e._e(),n.serial?t("tr",[t("th",[e._v("serial")]),t("td",[e._v(e._s(n.serial))])]):e._e(),n.class?t("tr",[t("th",[e._v("class")]),t("td",[e._v(e._s(n.subclass?`${n.class}, ${n.subclass}`:n.class))])]):e._e()])])],1)],1)],1)}):s.type==="video"?[e._l(e.peripherals.v4l2_devices,function(n,i){return t(ie,{key:i},[t(B,[t(He,{attrs:{outlined:""}},[t(Hr,[e._v(e._s(n.camera_name))]),t(sa,[e._v(e._s(n.hardware_bus))]),t(R),t(qt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v("device_name")]),t("td",[e._v(e._s(n.device_name))])]),t("tr",[t("th",[e._v("device_path")]),t("td",[e._v(e._s(n.device_path))])]),n.path_by_id?t("tr",[t("th",[e._v("path_by_id")]),t("td",[e._v(e._s(n.path_by_id))])]):e._e(),n.path_by_hardware?t("tr",[t("th",[e._v("path_by_hardware")]),t("td",[e._v(e._s(n.path_by_hardware))])]):e._e(),n.usb_location?t("tr",[t("th",[e._v("usb_location")]),t("td",[e._v(e._s(n.usb_location))])]):e._e(),e._l(n.modes,function(a){return t("tr",{key:a.format},[t("th",[e._v(e._s(a.format)+" resoulutions")]),t("td",[e._v(e._s(a.resolutions.join(", ")))])])})],2)])],1)],1)],1)}),e._l(e.peripherals.libcamera_devices,function(n,i){return t(ie,{key:i},[t(B,[t(He,{attrs:{outlined:""}},[t(Hr,[e._v(e._s(n.model))]),t(sa,[e._v("Libcamera")]),t(R),t(qt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v("libcamera_id")]),t("td",[e._v(e._s(n.libcamera_id))])]),e._l(n.modes,function(a){return t("tr",{key:a.format},[t("th",[e._v(e._s(a.format)+" resoulutions")]),t("td",[e._v(e._s(a.resolutions.join(", ")))])])})],2)])],1)],1)],1)})]:s.type==="can"?e._l(e.canbusUuids,function(n,i,a){return t(ie,{key:a},[t(B,[t(He,{attrs:{outlined:""}},[t(Hr,[e._v(e._s(i))]),t(R),t(Le,e._l(n,function(o,l){return t(ie,{key:l},[t(B,[t(op,{attrs:{value:o.uuid,label:o.application,outlined:"",dense:"",readonly:"","hide-details":""}})],1)],1)}),1)],1)],1)],1)}):e._e()],2)}),1)],1)],1)},qY=[],ZY=E(Wh,GY,qY,!1,null,"8648246c");const tP=ZY.exports;var Sb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tl(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function YY(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(s){var n=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return r[s]}})}),t}var rP={exports:{}},sP={exports:{}};(function(){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(t,s){return t<<s|t>>>32-s},rotr:function(t,s){return t<<32-s|t>>>s},endian:function(t){if(t.constructor==Number)return e.rotl(t,8)&16711935|e.rotl(t,24)&4278255360;for(var s=0;s<t.length;s++)t[s]=e.endian(t[s]);return t},randomBytes:function(t){for(var s=[];t>0;t--)s.push(Math.floor(Math.random()*256));return s},bytesToWords:function(t){for(var s=[],n=0,i=0;n<t.length;n++,i+=8)s[i>>>5]|=t[n]<<24-i%32;return s},wordsToBytes:function(t){for(var s=[],n=0;n<t.length*32;n+=8)s.push(t[n>>>5]>>>24-n%32&255);return s},bytesToHex:function(t){for(var s=[],n=0;n<t.length;n++)s.push((t[n]>>>4).toString(16)),s.push((t[n]&15).toString(16));return s.join("")},hexToBytes:function(t){for(var s=[],n=0;n<t.length;n+=2)s.push(parseInt(t.substr(n,2),16));return s},bytesToBase64:function(t){for(var s=[],n=0;n<t.length;n+=3)for(var i=t[n]<<16|t[n+1]<<8|t[n+2],a=0;a<4;a++)n*8+a*6<=t.length*8?s.push(r.charAt(i>>>6*(3-a)&63)):s.push("=");return s.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/ig,"");for(var s=[],n=0,i=0;n<t.length;i=++n%4)i!=0&&s.push((r.indexOf(t.charAt(n-1))&Math.pow(2,-2*i+8)-1)<<i*2|r.indexOf(t.charAt(n))>>>6-i*2);return s}};sP.exports=e})();var KY=sP.exports,Wv={utf8:{stringToBytes:function(r){return Wv.bin.stringToBytes(unescape(encodeURIComponent(r)))},bytesToString:function(r){return decodeURIComponent(escape(Wv.bin.bytesToString(r)))}},bin:{stringToBytes:function(r){for(var e=[],t=0;t<r.length;t++)e.push(r.charCodeAt(t)&255);return e},bytesToString:function(r){for(var e=[],t=0;t<r.length;t++)e.push(String.fromCharCode(r[t]));return e.join("")}}},xS=Wv;/*!
|
||
* 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",null);m(this,"editor",null)}get restoreViewState(){return this.$store.state.config.uiSettings.editor.restoreViewState}get activeInstance(){return this.$store.getters["config/getCurrentInstance"]}get restoreViewStateStorage(){switch(this.restoreViewState){case"local":return localStorage;case"session":return sessionStorage}}async mounted(){await this.initEditor()}async initEditor(){if(!Or){const{default:a}=await Ye(async()=>{const{default:o}=await import("./setupMonaco-jNn_3G9H.js").then(l=>l.hm);return{default:o}},__vite__mapDeps([0,1]),import.meta.url);Or=await a}this.$vuetify.theme.dark?Or.editor.setTheme("dark-converted"):Or.editor.setTheme("light-converted"),this.editor=Or.editor.create(this.monacoEditor,{contextmenu:!0,readOnly:this.readonly,codeLens:this.codeLens,automaticLayout:!0,fontSize:16,scrollbar:{useShadows:!1},minimap:{enabled:!this.isMobileViewport},rulers:this.isMobileViewport?[80,120]:[]}),this.editor.addAction({id:"action-save-file",label:this.$tc("app.general.btn.save"),keybindings:[Or.KeyMod.CtrlCmd|Or.KeyCode.KeyS],run:()=>{this.$emit("save")}}),this.editor.addAction({id:"action-emergency-stop",label:this.$tc("app.general.tooltip.estop"),keybindings:[Or.KeyMod.CtrlCmd|Or.KeyMod.Shift|Or.KeyCode.KeyE],run:()=>{this.$emit("emergency-stop")}});const t=this.path?`${this.path}/${this.filename}`:this.filename,s=`${this.activeInstance.apiUrl}/server/files/${t}`,n=Or.editor.createModel(this.value,void 0,Or.Uri.file(t));this.editor.setModel(n);const i=this.restoreViewStateStorage;if(i){this.viewStateHash="monaco."+eK(s);const a=i.getItem(this.viewStateHash);a&&this.editor.restoreViewState(JSON.parse(a))}this.$nextTick(()=>{focus()}),this.$emit("ready"),this.editor.onDidChangeModelContent(()=>{var o;const a=(o=this.editor)==null?void 0:o.getValue();this.$emit("input",a)})}focus(){var t;(t=this.editor)==null||t.focus()}showCommandPalette(){this.editor&&(this.editor.focus(),this.editor.trigger(null,"editor.action.quickCommand",null))}destroyed(){var s;const t=this.restoreViewStateStorage;if(t&&this.viewStateHash){const n=(s=this.editor)==null?void 0:s.saveViewState();if(n)try{t.setItem(this.viewStateHash,JSON.stringify(n))}catch(i){ye.error("[Storage] setItem",i)}}Or&&Or.editor.getModels().forEach(n=>n.dispose()),this.editor&&this.editor.dispose()}};Ja([w({type:String,required:!0})],Bn.prototype,"value",2);Ja([w({type:String,required:!0})],Bn.prototype,"filename",2);Ja([w({type:Boolean})],Bn.prototype,"readonly",2);Ja([w({type:Boolean,default:!0})],Bn.prototype,"codeLens",2);Ja([w({type:String,required:!0})],Bn.prototype,"path",2);Ja([Te("monaco-editor")],Bn.prototype,"monacoEditor",2);Bn=Ja([A({})],Bn);var sK=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{ref:"monaco-editor"},[e.editor?e._e():t("div",{staticClass:"spinner"},[t(Wo,{attrs:{indeterminate:"",size:"100",color:"primary"}})],1)])},nK=[],iK=E(Bn,sK,nK,!1,null,"7f1bfafd");const aK=iK.exports;var oK=Object.defineProperty,lK=Object.getOwnPropertyDescriptor,xb=(r,e,t,s)=>{for(var n=s>1?void 0:s?lK(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&&oK(e,t,n),n};let mu=class extends b{constructor(){super(...arguments);m(this,"content");m(this,"readonly")}mounted(){this.$emit("ready")}};xb([Fe({type:String})],mu.prototype,"content",2);xb([w({type:Boolean})],mu.prototype,"readonly",2);mu=xb([A({})],mu);var cK=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"v-input v-textarea px-2",class:{[e.$vuetify.theme.dark?"theme--dark":"theme--light"]:!0},attrs:{readonly:e.readonly,spellcheck:"false"},domProps:{value:e.content},on:{input:function(s){s.target.composing||(e.content=s.target.value)}}})},uK=[],dK=E(mu,cK,uK,!1,null,"d09007e1");const pK=dK.exports,hK=()=>{try{if(typeof WebAssembly=="object"&&typeof WebAssembly.instantiate=="function"){const r=new WebAssembly.Module(Uint8Array.of(0,97,115,109,1,0,0,0));if(r instanceof WebAssembly.Module)return new WebAssembly.Instance(r)instanceof WebAssembly.Instance}}catch{}return!1};var fK=Object.defineProperty,mK=Object.getOwnPropertyDescriptor,Cn=(r,e,t,s)=>{for(var n=s>1?void 0:s?mK(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&&fK(e,t,n),n};let xs=class extends Y(J,lt){constructor(){super(...arguments);m(this,"open");m(this,"root");m(this,"path");m(this,"filename");m(this,"contents");m(this,"loading");m(this,"readonly");m(this,"editor");m(this,"updatedContent",null);m(this,"lastSavedContent",null);m(this,"editorReady",!1);m(this,"peripheralsDialogOpen",!1)}get ready(){return!this.loading&&this.editorReady&&!this.isUploading}onReady(t){var s;t&&((s=this.editor)==null||s.focus())}get isWebAssemblySupported(){return hK()}get useTextOnlyEditor(){return this.isMobileUserAgent||!this.isWebAssemblySupported}get isUploading(){return this.$store.state.files.uploads.length>0}get configMap(){return this.$store.getters["server/getConfigMapByFilename"](this.filename)}get codeLens(){return this.$store.state.config.uiSettings.editor.codeLens}created(){this.updatedContent=this.contents,this.lastSavedContent=this.contents}mounted(){window.addEventListener("beforeunload",this.handleBeforeUnload)}beforeDestroy(){window.removeEventListener("beforeunload",this.handleBeforeUnload)}get showDirtyEditorWarning(){return this.$store.state.config.uiSettings.editor.confirmDirtyEditorClose&&this.updatedContent!==this.lastSavedContent}async emitClose(){(!this.showDirtyEditorWarning||await this.$confirm(this.$tc("app.general.simple_form.msg.unsaved_changes"),{title:this.$tc("app.general.label.unsaved_changes"),color:"card-heading",icon:"$error"}))&&(this.open=!1)}handleBeforeUnload(t){if(this.showDirtyEditorWarning)return t.preventDefault(),(t||window.event).returnValue=!0}emitSave(t){this.editorReady&&(this.configMap.serviceSupported&&t?(this.$emit("save",this.updatedContent,this.configMap.service),this.open=!1):this.$emit("save",this.updatedContent),this.lastSavedContent=this.updatedContent)}handleCommandPalette(){var t;(t=this.editor)==null||t.showCommandPalette()}};Cn([Fe({type:Boolean})],xs.prototype,"open",2);Cn([w({type:String,required:!0})],xs.prototype,"root",2);Cn([w({type:String,required:!0})],xs.prototype,"path",2);Cn([w({type:String,required:!0})],xs.prototype,"filename",2);Cn([w({type:String,required:!0})],xs.prototype,"contents",2);Cn([w({type:Boolean})],xs.prototype,"loading",2);Cn([w({type:Boolean})],xs.prototype,"readonly",2);Cn([Te("editor")],xs.prototype,"editor",2);Cn([Ae("ready")],xs.prototype,"onReady",1);xs=Cn([A({components:{FileEditor:aK,FileEditorTextOnly:pK}})],xs);var gK=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qy,{attrs:{loading:e.loading,"hide-overlay":"",fullscreen:"",persistent:"",transition:"dialog-bottom-transition","content-class":"config-editor-overlay"},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(He,{staticClass:"fill-height",staticStyle:{overflow:"hidden"},attrs:{"d-flex":""}},[t(Gt,{staticStyle:{"z-index":"1"},attrs:{dense:"",elevation:6}},[e.$vuetify.breakpoint.smAndDown?e._e():t(M,{attrs:{icon:"",disabled:!e.ready,color:""},on:{click:function(s){return e.emitClose()}}},[t(S,[e._v("$close")])],1),t(md,[e._v(" "+e._s(e.filename)+" "),e.readonly?t(S,{staticClass:"ml-1",attrs:{small:""}},[e._v(" $lock ")]):e.updatedContent!==e.lastSavedContent?t(S,{staticClass:"ml-1",attrs:{small:""}},[e._v(" $circle ")]):e._e()],1),t($t),t(kW,[e.$vuetify.breakpoint.smAndDown?e._e():t(M,{on:{click:function(s){e.peripheralsDialogOpen=!0}}},[t(S,{attrs:{small:"",left:""}},[e._v(" $devices ")]),t("span",[e._v(e._s(e.$t("app.file_system.title.devices")))])],1),e.useTextOnlyEditor?e._e():t(M,{on:{click:e.handleCommandPalette}},[t(S,{attrs:{small:"",left:!e.$vuetify.breakpoint.smAndDown}},[e._v(" $consoleLine ")]),e.$vuetify.breakpoint.smAndDown?e._e():t("span",[e._v(e._s(e.$t("app.file_system.title.command_palette")))])],1),!e.printerPrinting&&e.configMap.link?t(M,{attrs:{href:e.configMap.link,target:"_blank"}},[t(S,{attrs:{small:"",left:!e.$vuetify.breakpoint.smAndDown}},[e._v(" $help ")]),e.$vuetify.breakpoint.smAndDown?e._e():t("span",[e._v(e._s(e.$t("app.general.btn.config_reference")))])],1):e._e(),!e.readonly&&!e.printerPrinting&&e.configMap.serviceSupported?t(M,{attrs:{disabled:!e.ready},on:{click:function(s){return e.emitSave(!0)}}},[t(S,{attrs:{small:"",left:!e.$vuetify.breakpoint.smAndDown}},[e._v(" $restart ")]),e.$vuetify.breakpoint.smAndDown?e._e():t("span",[e._v(e._s(e.$t("app.general.btn.save_restart")))])],1):e._e(),e.readonly?e._e():t(M,{attrs:{disabled:!e.ready},on:{click:function(s){return e.emitSave(!1)}}},[t(S,{attrs:{small:"",left:!e.$vuetify.breakpoint.smAndDown}},[e._v(" $save ")]),e.$vuetify.breakpoint.smAndDown?e._e():t("span",[e._v(e._s(e.$t("app.general.btn.save")))])],1),t(M,{on:{click:function(s){return e.emitClose()}}},[t(S,{attrs:{small:"",left:!e.$vuetify.breakpoint.smAndDown}},[e._v(" $close ")]),e.$vuetify.breakpoint.smAndDown?e._e():t("span",[e._v(e._s(e.$t("app.general.btn.close")))])],1)],1)],1),e.contents!==void 0&&!e.useTextOnlyEditor?t("file-editor",{ref:"editor",attrs:{path:e.path,filename:e.filename,readonly:e.readonly,"code-lens":e.codeLens},on:{ready:function(s){e.editorReady=!0},save:function(s){return e.emitSave(!1)},"emergency-stop":e.emergencyStop},model:{value:e.updatedContent,callback:function(s){e.updatedContent=s},expression:"updatedContent"}}):e._e(),e.contents!==void 0&&e.useTextOnlyEditor?t("file-editor-text-only",{attrs:{filename:e.filename,readonly:e.readonly},on:{ready:function(s){e.editorReady=!0}},model:{value:e.updatedContent,callback:function(s){e.updatedContent=s},expression:"updatedContent"}}):e._e(),e.peripheralsDialogOpen?t(tP,{model:{value:e.peripheralsDialogOpen,callback:function(s){e.peripheralsDialogOpen=s},expression:"peripheralsDialogOpen"}}):e._e()],1)],1)},vK=[],_K=E(xs,gK,vK,!1,null,null);const yK=_K.exports;var bK=Object.defineProperty,$K=Object.getOwnPropertyDescriptor,bd=(r,e,t,s)=>{for(var n=s>1?void 0:s?$K(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&&bK(e,t,n),n};let La=class extends Y(J){constructor(){super(...arguments);m(this,"open");m(this,"title");m(this,"label");m(this,"name");m(this,"newName","")}mounted(){this.newName=this.name}handleSave(){this.$emit("save",this.newName),this.open=!1}};bd([Fe({type:Boolean})],La.prototype,"open",2);bd([w({type:String,required:!0})],La.prototype,"title",2);bd([w({type:String,required:!0})],La.prototype,"label",2);bd([w({type:String,required:!0})],La.prototype,"name",2);La=bd([A({})],La);var wK=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.title,"max-width":"320"},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,[t(ae,{attrs:{autofocus:"",outlined:"",label:e.label,rules:[e.$rules.required],required:""},model:{value:e.newName,callback:function(s){e.newName=s},expression:"newName"}})],1)],1)},SK=[],xK=E(La,wK,SK,!1,null,null);const CK=xK.exports;var PK=Object.defineProperty,AK=Object.getOwnPropertyDescriptor,Cb=(r,e,t,s)=>{for(var n=s>1?void 0:s?AK(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&&PK(e,t,n),n};let gu=class extends Y(J){constructor(){super(...arguments);m(this,"value");m(this,"files")}};Cb([w({type:Boolean})],gu.prototype,"value",2);Cb([w({type:Array,required:!0})],gu.prototype,"files",2);gu=Cb([A({})],gu);var LK=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.$tc("app.file_system.title.upload_file",e.files.length),"max-width":"500",persistent:"","no-actions":""},model:{value:e.value,callback:function(s){e.value=s},expression:"value"}},[t(Le,[e._l(e.files,function(s,n){return[(s.percent!==100||!s.complete)&&!s.cancelled?t(ie,{key:s.filepath,staticClass:"py-2"},[t(B,[t("div",{staticClass:"mb-2 filename"},[e._v(" "+e._s(s.filepath)+" ")]),s.percent===100&&!s.complete?t(Zs,{staticClass:"mb-2",attrs:{indeterminate:"",color:"primary"}}):t(Zs,{staticClass:"mb-2",attrs:{value:s.percent,color:"primary"}}),!s.complete&&s.percent===100?t("div",[e._v(" "+e._s(e.$t("app.file_system.msg.processing"))+" ")]):e._e(),s.percent>0&&s.percent!==100?t("table",[t("tr",[t("td",{staticClass:"pr-2"},[e._v(" "+e._s(e.$t("app.file_system.label.uploaded"))+": ")]),t("td",[e._v(e._s(s.percent)+"% ("+e._s(e.$filters.getReadableFileSizeString(s.loaded))+" / "+e._s(e.$filters.getReadableFileSizeString(s.size))+")")])]),t("tr",[t("td",{staticClass:"pr-2"},[e._v(" "+e._s(e.$t("app.file_system.label.transfer_rate"))+": ")]),t("td",[e._v(e._s(e.$filters.getReadableDataRateString(s.speed)))])])]):e._e()],1),t(B,{attrs:{cols:"auto"}},[t(M,{attrs:{color:"error",icon:"",text:"",disabled:s.complete||s.percent===100||s.cancelled},on:{click:function(i){return e.$emit("cancel",s)}}},[t(S,[e._v("$close")])],1)],1)],1):e._e(),(s.percent!==100||!s.complete)&&n<e.files.length-1?t(R,{key:`divider-${s.filepath}`}):e._e()]})],2)],1)},EK=[],OK=E(gu,LK,EK,!1,null,"c3d1c628");const TK=OK.exports;var kK=Object.defineProperty,DK=Object.getOwnPropertyDescriptor,Fm=(r,e,t,s)=>{for(var n=s>1?void 0:s?DK(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&&kK(e,t,n),n};let el=class extends Y(J){constructor(){super(...arguments);m(this,"open");m(this,"root");m(this,"search","");m(this,"loaded",!1)}get rootFiles(){return this.$store.getters["files/getRootFiles"](this.root)}get matchedFiles(){if(!this.loaded)return[];const t=this.search.split("").join(".*"),s=new RegExp(t,"i");return this.rootFiles.filter(n=>s.exec(n.path)).map(n=>{const{filename:i,rootPath:a,path:o}=Yt(n.path,this.root);return{...n,filename:i,filepath:o,rootPath:a}})}get loading(){return this.hasWait(`${this.$waits.onFileSystem}/${this.root}/`)}onLoading(t){this.loaded=!t}handleFileClick(t){this.$emit("path-change",t.rootPath),this.open=!1}mounted(){this.loaded=!1,I.serverFilesListRoot(this.root)}};Fm([Fe({type:Boolean})],el.prototype,"open",2);Fm([w({type:String,required:!0})],el.prototype,"root",2);Fm([Ae("loading")],el.prototype,"onLoading",1);el=Fm([A({})],el);var MK=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.$t("app.file_system.title.go_to_file"),"no-actions":"","max-width":"800"},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Gt,{attrs:{dense:""}},[t(ae,{attrs:{loading:e.loading,outlined:"","hide-details":"",dense:"",autofocus:""},model:{value:e.search,callback:function(s){e.search=s},expression:"search"}})],1),t(DW,{attrs:{items:e.matchedFiles,bench:"30","item-height":"40"},scopedSlots:e._u([{key:"default",fn:function({index:s,item:n}){return[t(Se,{key:n.path,staticClass:"v-list-item--link",attrs:{dense:""},on:{click:function(i){return e.handleFileClick(n)}}},[t(Ee,[t(xe,{staticClass:"text-body-2 font-weight-regular"},[e._v(" "+e._s(n.path)+" ")])],1)],1),s!==e.matchedFiles.length-1?t(R):e._e()]}}])})],1)},RK=[],IK=E(el,MK,RK,!1,null,null);const FK=IK.exports,tl=(r,e)=>r.types.includes(he.FILE_DATA_TRANSFER_TYPES[e]),CS=(r,e,t)=>{r.setData(he.FILE_DATA_TRANSFER_TYPES[e],JSON.stringify(t))},Pb=(r,e)=>{const t=r.getData(he.FILE_DATA_TRANSFER_TYPES[e]);return JSON.parse(t)};var HK=Object.defineProperty,jK=Object.getOwnPropertyDescriptor,Pn=(r,e,t,s)=>{for(var n=s>1?void 0:s?jK(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&&HK(e,t,n),n};let Cs=class extends Y(J,zr,Xo){constructor(){super(...arguments);m(this,"roots");m(this,"name");m(this,"dense");m(this,"height");m(this,"maxHeight");m(this,"bulkActions");m(this,"currentRoot","");m(this,"search","");m(this,"contextMenuState",{open:!1,x:0,y:0,file:null});m(this,"dragState",{browserState:!1,overlay:!1});m(this,"selected",[]);m(this,"fileEditorDialogState",{open:!1,contents:"",filename:"",loading:!1,readonly:!1});m(this,"fileNameDialogState",{open:!1,title:"",value:"",label:"",handler:""});m(this,"filePreviewState",{open:!1,filename:"",src:"",type:""});m(this,"goToFileDialogOpen",!1)}get filters(){return this.$store.state.config.uiSettings.fileSystem.activeFilters[this.currentRoot]??[]}set filters(t){this.$store.dispatch("config/updateFileSystemActiveFilters",{root:this.currentRoot,value:t})}onFilePreviewStateChanged(t){!t&&this.filePreviewState.src.startsWith("blob:")&&URL.revokeObjectURL(this.filePreviewState.src)}get availableRoots(){const t=Array.isArray(this.roots)?this.roots:[this.roots];return t.length>0&&!t.includes(this.currentRoot)&&(this.currentRoot=t[0]),t}get rootProperties(){return this.$store.getters["files/getRootProperties"](this.currentRoot)}get disabled(){return!this.$store.getters["files/isRootAvailable"](this.currentRoot)}onDisabledChange(t){t||this.loadFiles(this.currentPath)}get headers(){let t=[{text:"",value:"data-table-icons",sortable:!1,width:"24px"},{text:this.$t("app.general.table.header.name"),value:"name"}];this.currentRoot==="gcodes"&&(t=[...t,{text:this.$t("app.general.table.header.height"),value:"object_height",configurable:!0},{text:this.$t("app.general.table.header.first_layer_height"),value:"first_layer_height",configurable:!0},{text:this.$t("app.general.table.header.layer_height"),value:"layer_height",configurable:!0},{text:this.$t("app.general.table.header.filament_name"),value:"filament_name",configurable:!0},{text:this.$t("app.general.table.header.filament_type"),value:"filament_type",configurable:!0},{text:this.$t("app.general.table.header.filament"),value:"filament_total",configurable:!0},{text:this.$t("app.general.table.header.filament_weight_total"),value:"filament_weight_total",configurable:!0},{text:this.$t("app.general.table.header.filament_used"),value:"history.filament_used",configurable:!0},{text:this.$t("app.general.table.header.nozzle_diameter"),value:"nozzle_diameter",configurable:!0},{text:this.$t("app.general.table.header.slicer"),value:"slicer",configurable:!0},{text:this.$t("app.general.table.header.slicer_version"),value:"slicer_version",configurable:!0},{text:this.$t("app.general.table.header.estimated_time"),value:"estimated_time",configurable:!0},{text:this.$t("app.general.table.header.print_duration"),value:"history.print_duration",configurable:!0},{text:this.$t("app.general.table.header.total_duration"),value:"history.total_duration",configurable:!0},{text:this.$t("app.general.table.header.first_layer_bed_temp"),value:"first_layer_bed_temp",configurable:!0},{text:this.$t("app.general.table.header.first_layer_extr_temp"),value:"first_layer_extr_temp",configurable:!0},{text:this.$t("app.general.table.header.chamber_temp"),value:"chamber_temp",configurable:!0},{text:this.$t("app.general.table.header.last_printed"),value:"print_start_time",configurable:!0}]),t=[...t,{text:this.$t("app.general.table.header.modified"),value:"modified",width:"1%",configurable:!0},{text:this.$t("app.general.table.header.size"),value:"size",width:"1%",configurable:!0}];const s=`${this.currentRoot}_${this.name}`;return this.$store.getters["config/getMergedTableHeaders"](t,s)}get visibleHeaders(){return this.headers.filter(t=>t.visible||t.visible===void 0)}get currentPath(){return this.$store.getters["files/getCurrentPathByRoot"](this.currentRoot)||this.currentRoot}set currentPath(t){this.$store.dispatch("files/updateCurrentPathByRoot",{root:this.currentRoot,path:t})}get visiblePath(){if(this.currentPath&&this.currentPath.startsWith(`${this.currentRoot}`)){const t=this.currentPath.split("/");return t.shift(),t?t.join("/"):""}return this.currentPath}get files(){return this.getAllFiles().filter(n=>{if(this.currentRoot==="timelapse"&&n.type==="file"&&n.extension==="jpg")return!1;for(const i of this.filters)switch(i){case"hidden_files":if(n.name.match(/^\.(?!\.$)/))return!1;break;case"moonraker_backup_files":if(n.type==="file"&&n.filename===".moonraker.conf.bkp")return!1;break;case"klipper_backup_files":if(n.type==="file"&&n.filename.match(/^printer-\d{8}_\d{6}\.cfg$/))return!1;break;case"print_start_time":if(n.type==="file"&&n.print_start_time!==null)return!1;break;case"rolled_log_files":if(n.type==="file"&&(n.filename.match(/\.\d{4}-\d{2}-\d{2}(_\d{2}-\d{2}-\d{2})?$/)||n.filename.match(/\.log\.\d+$/)))return!1;break;case"crowsnest_backup_files":if(n.type==="file"&&n.filename.match(/^crowsnest\.conf\.\d{4}-\d{2}-\d{2}-\d{4}$/))return!1;break}return!0})}getAllFiles(){return this.$store.getters["files/getDirectory"](this.currentPath)??[]}onFilesChange(){this.selected=[]}get filesLoading(){return this.hasWaitsBy(`${this.$waits.onFileSystem}/${this.currentRoot}/`)}get currentUploads(){return this.$store.state.files.uploads}get fileDropRoot(){var t;return(t=this.$route.meta)==null?void 0:t.fileDropRoot}includeTimelapseThumbnailFiles(t){const s=new Set(t.filter(i=>i.type==="file"&&i.extension!=="jpg"&&"thumbnails"in i).flatMap(i=>i.thumbnails?i.thumbnails.map(a=>a.relative_path):[])),n=this.getAllFiles().filter(i=>i.type==="file"&&s.has(i.filename));t.push(...n)}handleRootChange(t){t.length&&(this.currentRoot=t,this.loadFiles(t))}loadFiles(t){this.disabled||(this.currentPath=t,this.files.length<=0&&this.refreshPath(t))}refreshPath(t){t&&!this.disabled&&I.serverFilesGetDirectory(this.currentRoot,t)}handleFilter(t){this.filters=t}handleRowClick(t,s){if(!this.disabled&&!(this.contextMenuState.open&&(this.contextMenuState.open=!1,s.type!=="contextmenu"))){if(t.type==="directory"){if(s.type==="click"){if(t.dirname===".."){const i=this.currentPath.split("/").slice(0,-1).join("/");this.loadFiles(i)}else this.loadFiles(`${this.currentPath}/${t.dirname}`);this.selected=[];return}else if(t.dirname===".."||t.permissions==="r"||this.rootProperties.readonly)return}if(!(this.selected.length!==0&&!this.selected.some(n=>n.name===t.name))){if(t.type==="file"&&s.type==="click"){if(this.$store.state.config.uiSettings.editor.autoEditExtensions.includes(`.${t.extension}`)){this.handleFileOpenDialog(t,"edit");return}else if(this.rootProperties.canView.includes(`.${t.extension}`)){this.handleFileOpenDialog(t,"view");return}}this.contextMenuState.x=s.clientX,this.contextMenuState.y=s.clientY,this.contextMenuState.file=this.selected.length>1?this.selected:t,this.$nextTick(()=>{this.contextMenuState.open=!0})}}}handleRenameDialog(t){if(this.disabled)return;const[s,n]=t.type==="file"?[this.$t("app.file_system.title.rename_file"),this.$t("app.file_system.label.file_name")]:[this.$t("app.file_system.title.rename_dir"),this.$t("app.file_system.label.dir_name")];this.fileNameDialogState={open:!0,title:s,label:n,value:t.name,handler:this.handleRename}}handleDuplicateDialog(t){if(this.disabled)return;const[s,n]=t.type==="file"?[this.$t("app.file_system.title.duplicate_file"),this.$t("app.file_system.label.file_name")]:[this.$t("app.file_system.title.duplicate_dir"),this.$t("app.file_system.label.dir_name")];this.fileNameDialogState={open:!0,title:s,label:n,value:t.name,handler:this.handleDuplicate}}handleAddFileDialog(){this.disabled||(this.fileNameDialogState={open:!0,title:this.$t("app.file_system.title.add_file"),label:this.$t("app.file_system.label.file_name"),value:"",handler:this.handleAddFile})}handleAddDirDialog(){this.disabled||(this.fileNameDialogState={open:!0,title:this.$t("app.file_system.title.add_dir"),label:this.$t("app.file_system.label.dir_name"),value:"",handler:this.handleAddDir})}handleGoToFileDialog(){this.disabled||(this.goToFileDialogOpen=!0)}async handleFileOpenDialog(t,s=void 0){try{const n=s?s==="view":this.rootProperties.canView.includes(`.${t.extension}`),i=await this.getFile(t.filename,this.currentPath,t.size,{responseType:n?"arraybuffer":"text",transformResponse:[a=>a]});if(n){const a=i.headers["content-type"],o=new Blob([i.data],{type:a});this.filePreviewState={open:!0,file:t,filename:t.filename,extension:t.extension,src:URL.createObjectURL(o),type:a,readonly:t.permissions==="r"||this.rootProperties.readonly}}else this.fileEditorDialogState={open:!0,contents:i.data,filename:t.filename,loading:!1,readonly:t.permissions==="r"||this.rootProperties.readonly}}catch(n){ye.error("[FileSystem] open file",n)}}async handlePreviewGcode(t){try{const s=await this.getGcode(t),n=s==null?void 0:s.data;if(!n)return;(this.$router.currentRoute.path!=="/"||!this.$store.getters["layout/isEnabledInCurrentLayout"]("gcode-preview-card"))&&this.$router.push({path:"/preview"}),this.$store.dispatch("gcodePreview/loadGcode",{file:t,gcode:n})}catch(s){ye.error("[FileSystem] preview gcode",s)}}handleRefreshMetadata(t){const s=t.path?`${t.path}/${t.filename}`:t.filename;I.serverFilesMetadata(s)}async handleViewThumbnail(t){const s=this.getThumb(t,this.currentRoot,t.path,!0);s&&(this.filePreviewState={open:!0,filename:t.filename,src:s.url,type:"image/any",width:s.width})}handlePrint(t){if(this.disabled)return;const s=t.path?`${t.path}/${t.filename}`:t.filename,n=this.$store.getters["spoolman/getAvailable"],i=this.$store.state.config.uiSettings.spoolman.autoSpoolSelectionDialog;if(n&&i){this.$store.commit("spoolman/setDialogState",{show:!0,filename:s});return}I.printerPrintStart(s),this.$router.currentRoute.path!=="/"&&this.$router.push({path:"/"})}async handleSaveFileChanges(t,s){if(t.length>0){const n=new File([t],this.fileEditorDialogState.filename);if(!s&&this.fileEditorDialogState.open&&(this.fileEditorDialogState.loading=!0),await this.uploadFile(n,this.visiblePath,this.currentRoot,!1),this.fileEditorDialogState.loading=!1,s){if(s==="moonraker"){this.serviceRestartMoonraker();return}if(s==="klipper"){this.firmwareRestartKlippy();return}this.serviceRestartByName(s)}}}handleMove(t,s){let n=`${this.currentPath}/${s.dirname}`;if(s.dirname===".."){const a=this.currentPath.split("/");a.pop(),n=a.join("/")}const i=Array.isArray(t)?t.filter(a=>a.name!==".."):[t];this.currentRoot==="timelapse"&&this.includeTimelapseThumbnailFiles(i),i.forEach(a=>{const o=`${this.currentPath}/${a.name}`,l=n?`${n}/${a.name}`:`${a.name}`;I.serverFilesMove(o,l)})}handleDragStart(t,s,n){if(t.type==="file"){const i=this.createFileUrl(t.name,this.currentPath);n.setData("text/html",`<A HREF="${encodeURI(i)}">${t.filename}</A>`),n.setData("text/plain",i),n.setData("text/uri-list",i)}if(CS(n,"files",{path:this.currentPath,items:s.map(i=>i.name)}),this.currentRoot==="gcodes"){const i=s.filter(a=>a.type==="file"&&this.rootProperties.accepts.includes(`.${a.extension}`));i.length>0&&CS(n,"jobs",{path:i[0].path,items:i.map(a=>a.name)})}}handleRename(t){const s=`${this.currentPath}/${this.fileNameDialogState.value}`,n=`${this.currentPath}/${t}`;I.serverFilesMove(s,n)}handleDuplicate(t){const s=`${this.currentPath}/${this.fileNameDialogState.value}`,n=`${this.currentPath}/${t}`;I.serverFilesCopy(s,n)}async handleRemove(t){if(this.disabled)return;const s=Array.isArray(t)?t.filter(i=>i.name!==".."):[t];await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_delete",s.length),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})&&(this.filePreviewState.open=!1,this.currentRoot==="timelapse"&&this.includeTimelapseThumbnailFiles(s),s.forEach(i=>{i.type==="directory"&&I.serverFilesDeleteDirectory(`${this.currentPath}/${i.dirname}`,!0),i.type==="file"&&I.serverFilesDeleteFile(`${this.currentPath}/${i.filename}`)}))}async handleUpload(t,s){const n=`${this.$waits.onFileSystem}/${this.currentPath}/`;this.$store.dispatch("wait/addWait",n),await this.uploadFiles(t,this.visiblePath,this.currentRoot,s),this.$store.dispatch("wait/removeWait",n)}handleCancelUpload(t){t.complete||(t.loaded===0&&this.$store.dispatch("files/updateFileUpload",{filepath:t.filepath,cancelled:!0}),t.loaded>0&&t.loaded<t.size&&t.abortController.abort())}handleAddDir(t){I.serverFilesPostDirectory(`${this.currentPath}/${t}`)}handleAddFile(t){const s=new File([],t);this.uploadFile(s,this.visiblePath,this.currentRoot,!1)}handleDownload(t){this.downloadFile(t.filename,this.currentPath)}handlePreheat(t){this.disabled||t.first_layer_extr_temp&&t.first_layer_bed_temp&&!this.printerPrinting&&!this.printerPaused&&this.klippyReady&&(t.first_layer_extr_temp>0&&this.sendGcode(`M104 S${t.first_layer_extr_temp}`),t.first_layer_bed_temp>0&&this.sendGcode(`M140 S${t.first_layer_bed_temp}`),t.chamber_temp&&t.chamber_temp>0&&this.sendGcode(`M141 S${t.chamber_temp}`))}handleEnqueue(t){if(this.disabled)return;const n=(Array.isArray(t)?t:[t]).filter(i=>i.type==="file"&&this.rootProperties.accepts.includes(`.${i.extension}`)).map(i=>i.path?`${i.path}/${i.filename}`:i.filename);n.length>0&&I.serverJobQueuePostJob(n)}handleCreateZip(t){const s=new Date,n=s.getFullYear().toString(),i=(s.getMonth()+1).toString().padStart(2,"0"),a=s.getDate().toString().padStart(2,"0"),o=s.getHours().toString().padStart(2,"0"),l=s.getMinutes().toString().padStart(2,"0"),c=s.getSeconds().toString().padStart(2,"0"),u=`${n}${i}${a}-${o}${l}${c}`,d=Array.isArray(t)?`${this.currentPath}/${u}.zip`:`${this.currentPath}/${t.name}-${u}.zip`,p=(Array.isArray(t)?t:[t]).map(h=>`${this.currentPath}/${h.name}`);I.serverFilesZip(d,p)}handleDragOver(t){!this.fileDropRoot&&!this.rootProperties.readonly&&!this.dragState.browserState&&t.dataTransfer&&(Uv(t.dataTransfer)||tl(t.dataTransfer,"files"))&&(t.preventDefault(),this.dragState.overlay=!0,t.dataTransfer.dropEffect="copy")}handleDragLeave(){this.dragState.overlay=!1}async handleDrop(t){if(this.dragState.overlay=!1,!this.fileDropRoot&&!this.rootProperties.readonly&&t.dataTransfer){if(tl(t.dataTransfer,"files")){const s=Pb(t.dataTransfer,"files");for(const n of s.items){const i=`${s.path}/${n}`,a=`${this.currentPath}/${n}`;I.serverFilesCopy(i,a)}}else if(Uv(t.dataTransfer)){const s=await K6(t.dataTransfer);s&&this.handleUpload(s,!1)}}}};Pn([w({type:[String,Array],required:!0})],Cs.prototype,"roots",2);Pn([w({type:String,required:!0})],Cs.prototype,"name",2);Pn([w({type:Boolean})],Cs.prototype,"dense",2);Pn([w({type:[Number,String]})],Cs.prototype,"height",2);Pn([w({type:[Number,String]})],Cs.prototype,"maxHeight",2);Pn([w({type:Boolean})],Cs.prototype,"bulkActions",2);Pn([Ae("filePreviewState.open")],Cs.prototype,"onFilePreviewStateChanged",1);Pn([Ae("disabled")],Cs.prototype,"onDisabledChange",1);Pn([Ae("files")],Cs.prototype,"onFilesChange",1);Cs=Pn([A({components:{FileSystemToolbar:fY,FileSystemBulkActions:bY,FileSystemBrowser:kY,FileSystemContextMenu:HY,FileEditorDialog:yK,FileNameDialog:CK,FileSystemUploadDialog:TK,FileSystemGoToFileDialog:FK,FilePreviewDialog:Z6}})],Cs);var BK=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(He,{staticClass:"filesystem-wrapper",class:{"no-pointer-events":e.dragState.overlay},attrs:{height:e.height,"max-height":e.maxHeight,flat:""},on:{dragover:e.handleDragOver,dragenter:function(s){if(s.target!==s.currentTarget)return null;s.preventDefault()},dragleave:function(s){return s.target!==s.currentTarget?null:(s.preventDefault(),e.handleDragLeave.apply(null,arguments))},drop:function(s){return s.target!==s.currentTarget?null:(s.preventDefault(),e.handleDrop.apply(null,arguments))}}},[e.selected.length<=0?t("file-system-toolbar",{attrs:{roots:e.availableRoots,root:e.currentRoot,name:e.name,search:e.search,path:e.visiblePath,disabled:e.disabled,loading:e.filesLoading,headers:e.headers},on:{"update:search":function(s){e.search=s},"root-change":e.handleRootChange,refresh:function(s){return e.refreshPath(e.currentPath)},"add-file":e.handleAddFileDialog,"add-dir":e.handleAddDirDialog,upload:e.handleUpload,filter:e.handleFilter,"go-to-file":e.handleGoToFileDialog}}):e._e(),e.selected.length>0?t("file-system-bulk-actions",{attrs:{root:e.currentRoot,path:e.visiblePath},on:{remove:function(s){return e.handleRemove(e.selected)},"create-zip":function(s){return e.handleCreateZip(e.selected)},enqueue:function(s){return e.handleEnqueue(e.selected)}}}):e._e(),e.headers?t("file-system-browser",{attrs:{headers:e.visibleHeaders,root:e.currentRoot,dense:e.dense,loading:e.filesLoading,disabled:e.disabled,search:e.search,files:e.files,"drag-state":e.dragState.browserState,"bulk-actions":e.bulkActions,"large-thumbnails":e.currentRoot==="timelapse"},on:{"update:dragState":function(s){return e.$set(e.dragState,"browserState",s)},"update:drag-state":function(s){return e.$set(e.dragState,"browserState",s)},"row-click":e.handleRowClick,move:e.handleMove,"drag-start":e.handleDragStart},model:{value:e.selected,callback:function(s){e.selected=s},expression:"selected"}}):e._e(),e.contextMenuState.open?t("file-system-context-menu",{attrs:{root:e.currentRoot,file:e.contextMenuState.file,"position-x":e.contextMenuState.x,"position-y":e.contextMenuState.y},on:{print:e.handlePrint,view:function(s){return e.handleFileOpenDialog(s,"view")},edit:function(s){return e.handleFileOpenDialog(s,"edit")},rename:e.handleRenameDialog,duplicate:e.handleDuplicateDialog,remove:e.handleRemove,download:e.handleDownload,preheat:e.handlePreheat,"preview-gcode":e.handlePreviewGcode,"refresh-metadata":e.handleRefreshMetadata,"view-thumbnail":e.handleViewThumbnail,enqueue:e.handleEnqueue,"create-zip":e.handleCreateZip},model:{value:e.contextMenuState.open,callback:function(s){e.$set(e.contextMenuState,"open",s)},expression:"contextMenuState.open"}}):e._e(),e.fileEditorDialogState.open?t("file-editor-dialog",{attrs:{contents:e.fileEditorDialogState.contents,filename:e.fileEditorDialogState.filename,loading:e.fileEditorDialogState.loading,readonly:e.fileEditorDialogState.readonly,path:e.currentPath,root:e.currentRoot},on:{save:e.handleSaveFileChanges},model:{value:e.fileEditorDialogState.open,callback:function(s){e.$set(e.fileEditorDialogState,"open",s)},expression:"fileEditorDialogState.open"}}):e._e(),e.fileNameDialogState.open?t("file-name-dialog",{attrs:{name:e.fileNameDialogState.value,title:e.fileNameDialogState.title,label:e.fileNameDialogState.label},on:{save:e.fileNameDialogState.handler},model:{value:e.fileNameDialogState.open,callback:function(s){e.$set(e.fileNameDialogState,"open",s)},expression:"fileNameDialogState.open"}}):e._e(),t(Dm,{attrs:{message:e.$t("app.file_system.overlay.drag_files_folders_upload"),icon:"$fileUpload",absolute:""},model:{value:e.dragState.overlay,callback:function(s){e.$set(e.dragState,"overlay",s)},expression:"dragState.overlay"}}),e.currentUploads.length>0?t("file-system-upload-dialog",{attrs:{value:e.currentUploads.length>0,files:e.currentUploads},on:{cancel:e.handleCancelUpload}}):e._e(),e.filePreviewState.open?t("file-preview-dialog",{attrs:{file:e.filePreviewState.file,filename:e.filePreviewState.filename,extension:e.filePreviewState.extension,src:e.filePreviewState.src,type:e.filePreviewState.type,width:e.filePreviewState.width,readonly:e.filePreviewState.readonly,path:e.currentPath},on:{remove:e.handleRemove,download:e.handleDownload},model:{value:e.filePreviewState.open,callback:function(s){e.$set(e.filePreviewState,"open",s)},expression:"filePreviewState.open"}}):e._e(),e.goToFileDialogOpen?t("file-system-go-to-file-dialog",{attrs:{root:e.currentRoot},on:{"path-change":e.loadFiles},model:{value:e.goToFileDialogOpen,callback:function(s){e.goToFileDialogOpen=s},expression:"goToFileDialogOpen"}}):e._e()],1)},NK=[],VK=E(Cs,BK,NK,!1,null,"40bb7acf");const kl=VK.exports;var zK=Object.defineProperty,UK=Object.getOwnPropertyDescriptor,WK=(r,e,t,s)=>{for(var n=s>1?void 0:s?UK(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&&zK(e,t,n),n};let Gv=class extends b{};Gv=WK([A({components:{FileSystem:kl}})],Gv);var GK=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.general.title.jobs"),icon:"$files",draggable:"","layout-path":"dashboard.jobs-card","help-tooltip":e.$t("app.general.tooltip.file_browser_help")},scopedSlots:e._u([{key:"menu",fn:function(){return[t(M,{attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(s){return e.$filters.routeTo(e.$router,"/jobs")}}},[t(S,[e._v("$fullScreen")])],1)]},proxy:!0}])},[t("file-system",{attrs:{roots:"gcodes",name:"dashboard",dense:"",height:400}})],1)},qK=[],ZK=E(Gv,GK,qK,!1,null,null);const YK=ZK.exports;var KK=Object.defineProperty,XK=Object.getOwnPropertyDescriptor,aP=(r,e,t,s)=>{for(var n=s>1?void 0:s?XK(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&&KK(e,t,n),n};let Gh=class extends Y(J,zt){constructor(){super(...arguments);m(this,"open")}get screwsTiltAdjust(){return this.$store.getters["printer/getScrewsTiltAdjust"]}retry(){this.sendGcode("SCREWS_TILT_CALCULATE",this.$waits.onBedScrewsCalculate),this.open=!1}destroyed(){this.$store.commit("printer/setClearScrewsTiltAdjust")}};aP([Fe({type:Boolean})],Gh.prototype,"open",2);Gh=aP([A({})],Gh);var JK=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.$t("app.tool.title.screws_tilt_adjust"),"max-width":"500"},on:{save:e.retry},scopedSlots:e._u([{key:"actions",fn:function(){return[t($t),t(M,{attrs:{color:"primary",type:"submit"}},[e._v(" "+e._s(e.$t("app.general.btn.retry"))+" ")])]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,{staticClass:"pa-0"},[t(qt,[t("thead",[t("tr",[t("th",[e._v(e._s(e.$t("app.general.label.name")))]),t("th",{staticClass:"text-right"},[e._v(" Z ")]),t("th",[e._v(" ")])])]),t("tbody",e._l(e.screwsTiltAdjust.screws,function(s){return t("tr",{key:s.name},[t("td",[e._v(" "+e._s(s.prettyName)),t("br"),t("small",{staticClass:"secondary--text"},[e._v(e._s(`X = ${s.x}, Y = ${s.y}`))])]),t("td",{staticClass:"focus--text text-right"},[e._v(" "+e._s(s.z.toFixed(4))+" ")]),t("td",{staticClass:"text-right"},[s.is_base?t(hr,{attrs:{small:"",label:""}},[e._v(" "+e._s(e.$t("app.bedmesh.label.base"))+" ")]):t(hr,{attrs:{color:s.adjustMinutes<6?"success":"error",small:"",label:""}},[t(S,{attrs:{left:"",small:""}},[e._v(" "+e._s(s.adjustMinutes===0?"$success":s.sign==="CW"?"$zRotateClockwise":"$zRotateCounterclockwise")+" ")]),e._v(" "+e._s(s.adjust)+" ")],1)],1)])}),0)])],1)],1)},QK=[],eX=E(Gh,JK,QK,!1,null,null);const tX=eX.exports;var rX=Object.defineProperty,sX=Object.getOwnPropertyDescriptor,Ab=(r,e,t,s)=>{for(var n=s>1?void 0:s?sX(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&&rX(e,t,n),n};let vu=class extends Y(J,zt){constructor(){super(...arguments);m(this,"open")}get bedScrews(){return this.$store.getters["printer/getBedScrews"]}get bedScrewsAdjust(){return this.$store.state.printer.printer.bed_screws}get currentState(){return this.bedScrewsAdjust.state||" "}get currentScrewIndex(){return this.bedScrewsAdjust.current_screw}get currentScrewName(){return this.bedScrews[this.currentScrewIndex].prettyName}get acceptedScrews(){return this.bedScrewsAdjust.accepted_screws}onBedScrewsAdjustActive(e){e||(this.open=!1)}sendAbort(){this.sendGcode("ABORT",this.$waits.onBedScrewsAdjust),this.open=!1}sendAdjusted(){this.sendGcode("ADJUSTED",this.$waits.onBedScrewsAdjust)}sendAccept(){this.sendGcode("ACCEPT",this.$waits.onBedScrewsAdjust)}};Ab([Fe({type:Boolean})],vu.prototype,"open",2);Ab([Ae("isBedScrewsAdjustActive")],vu.prototype,"onBedScrewsAdjustActive",1);vu=Ab([A({})],vu);var nX=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.$t("app.tool.title.bed_screws_adjust"),"max-width":"450"},on:{save:e.sendAccept},scopedSlots:e._u([{key:"actions",fn:function(){return[t($t),t(M,{attrs:{color:"warning",text:"",type:"button"},on:{click:e.sendAbort}},[e._v(" "+e._s(e.$t("app.general.btn.abort"))+" ")]),t(M,{attrs:{loading:e.hasWait(e.$waits.onBedScrewsAdjust),color:"primary",text:"",type:"button"},on:{click:e.sendAdjusted}},[e._v(" "+e._s(e.$t("app.general.btn.adjusted"))+" ")]),t(M,{attrs:{loading:e.hasWait(e.$waits.onBedScrewsAdjust),color:"primary",type:"submit"}},[e._v(" "+e._s(e.$t("app.general.btn.accept"))+" ")])]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,[t(ie,[t(B,[t(ae,{attrs:{label:e.$t("app.general.label.screw_name"),outlined:"","hide-details":"",dense:"",disabled:"",value:e.currentScrewName}})],1)],1),t(ie,[t(B,[t(ae,{attrs:{label:e.$t("app.general.label.screw_index"),outlined:"","hide-details":"",dense:"",disabled:"",value:e.$t("app.general.label.partial_of_total",{partial:e.currentScrewIndex+1,total:e.bedScrews.length})}})],1)],1),t(ie,[t(B,[t(ae,{attrs:{label:e.$t("app.general.label.accepted_screws"),outlined:"","hide-details":"",dense:"",disabled:"",value:e.$t("app.general.label.partial_of_total",{partial:e.acceptedScrews,total:e.bedScrews.length})}})],1)],1),t(ie,[t(B,{staticClass:"text-subtitle-1 text-center"},[t("span",{domProps:{innerHTML:e._s(e.$t("app.general.msg.bed_screws_adjust"))}})])],1),t(Zs,{staticClass:"mt-2",attrs:{value:e.acceptedScrews/e.bedScrews.length*100}})],1)],1)},iX=[],aX=E(vu,nX,iX,!1,null,null);const oX=aX.exports;var lX=Object.defineProperty,cX=Object.getOwnPropertyDescriptor,Lb=(r,e,t,s)=>{for(var n=s>1?void 0:s?cX(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&&lX(e,t,n),n};let _u=class extends Y(J,zt){constructor(){super(...arguments);m(this,"open")}get offsets(){return[1,.1,...this.$store.state.config.uiSettings.general.zAdjustDistances].sort((e,t)=>t-e)}get manualProbe(){return this.$store.state.printer.printer.manual_probe}get zPositionLower(){var e;return((e=this.manualProbe.z_position_lower)==null?void 0:e.toFixed(3))||" "}get zPosition(){var e;return((e=this.manualProbe.z_position)==null?void 0:e.toFixed(3))||" "}get zPositionUpper(){var e;return((e=this.manualProbe.z_position_upper)==null?void 0:e.toFixed(3))||" "}onIsManualProbeActive(e){e||(this.open=!1)}sendTestZ(e){this.sendGcode(`TESTZ Z=${e}`)}sendAbort(){this.sendGcode("ABORT",this.$waits.onManualProbe),this.open=!1}sendAccept(){this.sendGcode("ACCEPT",this.$waits.onManualProbe)}};Lb([Fe({type:Boolean})],_u.prototype,"open",2);Lb([Ae("isManualProbeActive")],_u.prototype,"onIsManualProbeActive",1);_u=Lb([A({})],_u);var uX=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.$t("app.tool.title.manual_probe"),"cancel-button-text":e.$t("app.general.btn.abort"),"save-button-text":e.$t("app.general.btn.accept"),"save-button-loading":e.hasWait(e.$waits.onManualProbe),"max-width":"450"},on:{cancel:e.sendAbort,save:e.sendAccept},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,[t(ie,[t(B,[t(ae,{attrs:{label:"Z Min",outlined:"","hide-details":"",dense:"",disabled:"",value:e.zPositionLower}})],1),t(B,[t(ae,{attrs:{label:"Z",outlined:"","hide-details":"",dense:"",disabled:"",value:e.zPosition}})],1),t(B,[t(ae,{attrs:{label:"Z Max",outlined:"","hide-details":"",dense:"",disabled:"",value:e.zPositionUpper}})],1)],1),t(ie,{staticClass:"bysect-row"},[t(B,{attrs:{cols:"3",offset:"1"}},[t(Yo,{staticClass:"d-flex"},[t(M,{attrs:{disabled:!e.klippyReady||e.printerPrinting,color:"primary"},on:{click:function(s){return e.sendTestZ("--")}}},[e._v(" -- ")]),t(M,{attrs:{disabled:!e.klippyReady||e.printerPrinting,color:"primary"},on:{click:function(s){return e.sendTestZ("-")}}},[e._v(" - ")])],1)],1),t(B,{attrs:{cols:"3",offset:"4"}},[t(Yo,{staticClass:"d-flex"},[t(M,{attrs:{disabled:!e.klippyReady||e.printerPrinting,color:"primary"},on:{click:function(s){return e.sendTestZ("+")}}},[e._v(" + ")]),t(M,{attrs:{disabled:!e.klippyReady||e.printerPrinting,color:"primary"},on:{click:function(s){return e.sendTestZ("++")}}},[e._v(" ++ ")])],1)],1)],1),e._l(e.offsets,function(s){return t(ie,{key:s,staticClass:"offset-row"},[t(B,{attrs:{cols:"3",offset:"1"}},[t(M,{attrs:{disabled:!e.klippyReady||e.printerPrinting,color:"primary"},on:{click:function(n){return e.sendTestZ(`-${s}`)}}},[t(S,[e._v(" $minus ")])],1)],1),t(B,{attrs:{cols:"4"}},[t("div",{staticClass:"v-btn v-size--default btncolor"},[e._v(" "+e._s(s)+" ")])]),t(B,{attrs:{cols:"3"}},[t(M,{attrs:{disabled:!e.klippyReady||e.printerPrinting,color:"primary"},on:{click:function(n){return e.sendTestZ(`+${s}`)}}},[t(S,[e._v(" $plus ")])],1)],1)],1)})],2)],1)},dX=[],pX=E(_u,uX,dX,!1,null,"a69ab9d1");const oP=pX.exports;var hX=Object.defineProperty,fX=Object.getOwnPropertyDescriptor,Qa=(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&&hX(e,t,n),n};let Nn=class extends b{constructor(){super(...arguments);m(this,"icon");m(this,"disabled");m(this,"color");m(this,"loading");m(this,"tooltip");m(this,"smallIcon")}get hasDefaultSlot(){return!!this.$slots.default||!!this.$scopedSlots.default}};Qa([w({type:String,required:!0})],Nn.prototype,"icon",2);Qa([w({type:Boolean})],Nn.prototype,"disabled",2);Qa([w({type:String,default:"btncolor"})],Nn.prototype,"color",2);Qa([w({type:Boolean})],Nn.prototype,"loading",2);Qa([w({type:String,default:""})],Nn.prototype,"tooltip",2);Qa([w({type:Boolean})],Nn.prototype,"smallIcon",2);Nn=Qa([A({})],Nn);var mX=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Oe,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"px-2",attrs:{disabled:e.disabled,"min-width":"40",loading:e.loading,color:e.color},on:{click:function(i){return e.$emit("click")}}},"app-btn",e.tooltip!==""?n:void 0,!1),e.tooltip!==""?s:void 0),[e.icon?t(S,{class:{"mr-1":e.hasDefaultSlot},attrs:{small:e.smallIcon}},[e._v(" "+e._s(e.icon)+" ")]):e._e(),e._t("default")],2)]}}],null,!0)},[t("span",[e._v(e._s(e.tooltip))])])},gX=[],vX=E(Nn,mX,gX,!1,null,null);const Ds=vX.exports;var _X=Object.defineProperty,yX=Object.getOwnPropertyDescriptor,bX=(r,e,t,s)=>{for(var n=s>1?void 0:s?yX(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&&_X(e,t,n),n};let qv=class extends Y(J,zt){constructor(){super(...arguments);m(this,"moveLength",null)}get forceMove(){return this.$store.state.config.uiSettings.toolhead.forceMove}get hasRoundBed(){return this.$store.getters["printer/getHasRoundBed"]}get canHomeXY(){return!this.hasRoundBed}get toolheadMoveDistances(){return this.$store.state.config.uiSettings.general.toolheadMoveDistances}get toolheadMoveLength(){if(this.moveLength==null){const t=this.$store.state.config.uiSettings.general.defaultToolheadMoveLength;this.moveLength=this.toolheadMoveDistances.includes(t)?t:this.toolheadMoveDistances[0]}return this.moveLength}set toolheadMoveLength(t){this.moveLength=t}axisButtonColor(t){return this.forceMove?"error":t?"primary":void 0}axisButtonDisabled(t,s){return!this.klippyReady||!t&&!(this.forceMove&&!s)}sendMoveGcode(t,s,n=!1){const i=t==="Z"?this.$store.state.config.uiSettings.general.defaultToolheadZSpeed:this.$store.state.config.uiSettings.general.defaultToolheadXYSpeed,a=this.$store.state.config.uiSettings.general.axis[t.toLowerCase()].inverted||!1;if(s=n!==a?-s:s,this.forceMove){const o=t==="Z"?this.$store.getters["printer/getPrinterSettings"]("printer.max_z_accel"):this.$store.state.printer.printer.toolhead.max_accel;this.sendGcode(`FORCE_MOVE STEPPER=stepper_${t.toLowerCase()} DISTANCE=${s} VELOCITY=${i} ACCEL=${o}`)}else this.sendGcode(`G91
|
||
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=class extends b{constructor(){super(...arguments);m(this,"values");m(this,"color");m(this,"disabled")}get valuesDown(){return[...this.values].sort((e,t)=>t-e)}get valuesUp(){return[...this.values].sort((e,t)=>e-t)}};Hm([w({type:Array,required:!0})],rl.prototype,"values",2);Hm([w({type:String})],rl.prototype,"color",2);Hm([w({type:Boolean})],rl.prototype,"disabled",2);rl=Hm([A({})],rl);var AX=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Yo,[e._l(e.valuesDown,function(s){return t(M,{key:`l${s}`,staticClass:"value",attrs:{color:e.color,disabled:e.disabled},on:{click:function(n){return e.$emit("click",-s)}}},[e._v(" -"+e._s(s)+" ")])}),e._t("default"),e._l(e.valuesUp,function(s){return t(M,{key:`r${s}`,staticClass:"value",attrs:{color:e.color,disabled:e.disabled},on:{click:function(n){return e.$emit("click",s)}}},[e._v(" +"+e._s(s)+" ")])})],2)},LX=[],EX=E(rl,AX,LX,!1,null,"2a246693");const lP=EX.exports;var OX=Object.defineProperty,TX=Object.getOwnPropertyDescriptor,cP=(r,e,t,s)=>{for(var n=s>1?void 0:s?TX(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&&OX(e,t,n),n};let qh=class extends Y(J,zt){constructor(){super(...arguments);m(this,"axis")}get values(){return this.axis==="Z"?this.$store.state.config.uiSettings.general.toolheadZMoveDistances:this.$store.state.config.uiSettings.general.toolheadXYMoveDistances}get homed(){switch(this.axis){case"X":return this.xHomed;case"Y":return this.yHomed;case"Z":return this.zHomed}}get wait(){switch(this.axis){case"X":return this.$waits.onHomeX;case"Y":return this.$waits.onHomeY;case"Z":return this.$waits.onHomeZ}}get rate(){return this.axis==="Z"?this.$store.state.config.uiSettings.general.defaultToolheadZSpeed:this.$store.state.config.uiSettings.general.defaultToolheadXYSpeed}sendMoveGcode(t){this.sendGcode(`G91
|
||
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.toolheadCircleXYMoveDistances}get stepsZ(){return this.$store.state.config.uiSettings.general.toolheadCircleZMoveDistances}get forceMove(){return this.$store.state.config.uiSettings.toolhead.forceMove}get hasSteppersEnabled(){return this.$store.getters["printer/getHasSteppersEnabled"]}get printerSettings(){return this.$store.getters["printer/getPrinterSettings"]()}get printerSupportsQuadGantryLevel(){return"quad_gantry_level"in this.printerSettings}get printerSupportsZTiltAdjust(){return"z_tilt"in this.printerSettings}get printerSupportsLeveling(){return this.printerSupportsQuadGantryLevel||this.printerSupportsZTiltAdjust}get xStepClasses(){return{disabled:!this.klippyReady||this.printerPrinting||!this.xHomed}}get yStepClasses(){return{disabled:!this.klippyReady||this.printerPrinting||!this.yHomed}}get zStepClasses(){return{disabled:!this.klippyReady||this.printerPrinting||!this.zHomed}}get xyStepClasses(){return{disabled:!this.klippyReady||this.printerPrinting||!(this.xHomed||this.yHomed)}}get xHomeClasses(){return{disabled:!this.klippyReady||this.printerPrinting||this.hasWait([this.$waits.onHomeX,this.$waits.onHomeXY,this.$waits.onHomeAll]),primary:!this.xHomed}}get yHomeClasses(){return{disabled:!this.klippyReady||this.printerPrinting||this.hasWait([this.$waits.onHomeY,this.$waits.onHomeXY,this.$waits.onHomeAll]),primary:!this.yHomed}}get zHomeClasses(){return{disabled:!this.klippyReady||this.printerPrinting||this.hasWait([this.$waits.onHomeZ,this.$waits.onHomeAll]),primary:!this.zHomed}}get xyHomeClasses(){return{disabled:!this.klippyReady||this.printerPrinting||this.hasWait([this.$waits.onHomeX,this.$waits.onHomeY,this.$waits.onHomeXY,this.$waits.onHomeAll]),primary:!this.xyHomed}}get xyzHomeClasses(){return{disabled:!this.klippyReady||this.printerPrinting||this.hasWait([this.$waits.onHomeX,this.$waits.onHomeY,this.$waits.onHomeZ,this.$waits.onHomeXY,this.$waits.onHomeAll]),primary:!this.allHomed}}get centerToolheadClasses(){const e=this.$store.state.printer.printer.toolhead.position,t=this.bedCenter;return{disabled:!this.klippyReady||this.printerPrinting||!this.xyHomed,primary:!(e[0]===t.x&&e[1]===t.y)}}get levelingClasses(){var s,n;const[e,t]=this.printerSupportsQuadGantryLevel?[!((s=this.$store.state.printer.printer.quad_gantry_level)!=null&&s.applied),this.hasWait(this.$waits.onQGL)]:this.printerSupportsZTiltAdjust?[!((n=this.$store.state.printer.printer.z_tilt)!=null&&n.applied),this.hasWait(this.$waits.onZTilt)]:[];return{disabled:!this.klippyReady||this.printerPrinting||!this.allHomed||t,primary:e}}get motorsOffClasses(){return{disabled:!this.klippyReady||this.printerPrinting||!this.hasSteppersEnabled}}sendLevelingGcode(){this.printerSupportsQuadGantryLevel?this.sendGcode("QUAD_GANTRY_LEVEL",this.$waits.onQGL):this.printerSupportsZTiltAdjust&&this.sendGcode("Z_TILT_ADJUST",this.$waits.onZTilt)}sendMoveGcode(e,t,s=!1){const n=e==="Z"?this.$store.state.config.uiSettings.general.defaultToolheadZSpeed:this.$store.state.config.uiSettings.general.defaultToolheadXYSpeed,i=this.$store.state.config.uiSettings.general.axis[e.toLowerCase()].inverted||!1;if(t=s!==i?-t:t,this.forceMove){const a=e==="Z"?this.$store.getters["printer/getPrinterSettings"]("printer.max_z_accel"):this.$store.state.printer.printer.toolhead.max_accel;this.sendGcode(`FORCE_MOVE STEPPER=stepper_${e.toLowerCase()} DISTANCE=${t} VELOCITY=${n} ACCEL=${a}`)}else this.sendGcode(`G91
|
||
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":"middle"}},[e._v(" "+e._s(e.stepsZ[0])+" ")])]),t("g",[e.printerSupportsLeveling?t("a",{staticClass:"cc-btn",class:e.levelingClasses,on:{click:e.sendLevelingGcode}},[t("circle",{staticClass:"cc-btn-container",attrs:{cx:"383.5",cy:"173.5",r:"25"}}),t("path",{attrs:{d:"m396.25,169.25v2.833h-25.5v-2.833h25.5Zm-17.657,12.75h9.815l-4.907-8.5-4.907,8.5Z"}})]):t("a",{staticClass:"cc-btn primary",class:e.motorsOffClasses,on:{click:function(s){return e.sendGcode("M84")}}},[t("circle",{staticClass:"cc-btn-container",attrs:{cx:"383.5",cy:"173.5",r:"25"}}),t("path",{attrs:{d:"m374.356,160.75h19.771c.829.829,1.294,1.294,2.123,2.123v19.771l-2.833-2.833v-15.764l-.463-.463h-15.764l-2.833-2.833Zm15.613,15.613c.389-.877.614-1.842.614-2.863,0-3.912-3.171-7.083-7.083-7.083-1.021,0-1.986.225-2.863.614l2.278,2.278c.193-.027.384-.059.585-.059,2.344,0,4.25,1.906,4.25,4.25,0,.2-.032.392-.059.585l2.278,2.278Zm-3.81-3.81c-.285-.799-.913-1.427-1.712-1.712l1.712,1.712Zm9.03,12.636l1.334,1.334-1.803,1.803-2.076-2.076h-19.771c-.829-.829-1.294-1.294-2.123-2.123v-19.771l-2.076-2.076,1.803-1.803,1.334,1.334,5.607,5.607,1.073,1.073,2.005,2.005,1,1,3.42,3.42,1.587,1.587,2.005,2.005,1.073,1.073,5.607,5.607Zm-15.939-11.689c0,2.343,1.906,4.25,4.25,4.25.2,0,.392-.032.585-.059l-1.532-1.532c-.799-.285-1.427-.913-1.712-1.712l-1.532-1.532c-.027.193-.059.385-.059.585Zm10.56,9.917l-3.448-3.447c-.877.389-1.842.614-2.863.614-3.912,0-7.083-3.171-7.083-7.083,0-1.021.225-1.986.614-2.863l-3.447-3.447v15.764l.463.463h15.764Zm-13.394-4.25c-.782,0-1.417.634-1.417,1.417s.634,1.417,1.417,1.417,1.417-.634,1.417-1.417-.634-1.417-1.417-1.417Zm15.583-12.75c0-.782-.634-1.417-1.417-1.417s-1.417.634-1.417,1.417.634,1.417,1.417,1.417,1.417-.634,1.417-1.417Z"}})])]),t("g",{staticClass:"cc-section"},[t("a",{staticClass:"cc-btn outer",class:e.xStepClasses,on:{click:function(s){return e.sendMoveGcode("X",e.stepsXY[3],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m132.727,143.333L49.329,59.936c-1.641-1.641-4.325-1.538-5.85.21C17.028,90.461,1,130.107,1,173.5s16.028,83.039,42.479,113.354c1.525,1.748,4.209,1.85,5.85.21l83.841-83.841c-6.389-8.398-10.188-18.874-10.188-30.24,0-11.101,3.623-21.353,9.744-29.649Z"}})]),t("a",{staticClass:"cc-btn outer",class:e.xStepClasses,on:{click:function(s){return e.sendMoveGcode("X",e.stepsXY[3],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m213.239,202.632l84.427,84.427c1.643,1.643,4.332,1.541,5.859-.21,26.449-30.314,42.475-69.958,42.475-113.349s-16.026-83.035-42.475-113.349c-1.528-1.751-4.216-1.853-5.859-.21l-83.997,83.997c5.856,8.189,9.314,18.21,9.314,29.045,0,11.101-3.623,21.353-9.744,29.65Z"}})]),t("a",{staticClass:"cc-btn outer",class:e.yStepClasses,on:{click:function(s){return e.sendMoveGcode("Y",e.stepsXY[3],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m143.333,132.727c8.297-6.121,18.548-9.744,29.65-9.744,11.366,0,21.842,3.799,30.24,10.188l83.834-83.834c1.644-1.644,1.542-4.335-.21-5.863C256.533,17.025,216.89,1,173.5,1S90.467,17.025,60.153,43.473c-1.752,1.529-1.855,4.219-.21,5.863l83.39,83.39Z"}})]),t("a",{staticClass:"cc-btn outer",class:e.yStepClasses,on:{click:function(s){return e.sendMoveGcode("Y",e.stepsXY[3],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m204.986,215.593c-1.345-1.345-3.435-1.534-5.036-.506-7.781,4.995-17.034,7.896-26.967,7.896-9.684,0-18.718-2.762-26.374-7.53-1.597-.995-3.66-.795-4.991.536l-81.674,81.674c-1.644,1.644-1.542,4.335.21,5.864,30.314,26.448,69.957,42.473,113.346,42.473s83.032-16.025,113.346-42.473c1.752-1.529,1.855-4.22.21-5.864l-82.071-82.071Z"}})]),t("text",{staticClass:"cc-lbl",class:e.xyStepClasses,attrs:{transform:"translate(173.5, 25.664)","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsXY[3])+" ")])]),t("g",{staticClass:"cc-section"},[t("a",{staticClass:"cc-btn outer-mid",class:e.xStepClasses,on:{click:function(s){return e.sendMoveGcode("X",e.stepsXY[2],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m132.727,143.333l-61.608-61.608c-21.833,24.34-35.119,56.504-35.119,91.774s13.286,67.435,35.119,91.774l62.052-62.052c-6.389-8.398-10.188-18.874-10.188-30.24,0-11.101,3.623-21.353,9.744-29.649Z"}})]),t("a",{staticClass:"cc-btn outer-mid",class:e.xStepClasses,on:{click:function(s){return e.sendMoveGcode("X",e.stepsXY[2],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m213.239,202.632l62.642,62.642c21.833-24.34,35.119-56.504,35.119-91.774s-13.286-67.435-35.119-91.774l-62.212,62.212c5.856,8.189,9.314,18.21,9.314,29.045,0,11.101-3.623,21.353-9.744,29.65Z"}})]),t("a",{staticClass:"cc-btn outer-mid",class:e.yStepClasses,on:{click:function(s){return e.sendMoveGcode("Y",e.stepsXY[2],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m143.333,132.727c8.297-6.121,18.548-9.744,29.65-9.744,11.366,0,21.842,3.799,30.24,10.188l62.052-62.052c-24.34-21.833-56.504-35.119-91.774-35.119s-67.435,13.286-91.774,35.119l61.608,61.608Z"}})]),t("a",{staticClass:"cc-btn outer-mid",class:e.yStepClasses,on:{click:function(s){return e.sendMoveGcode("Y",e.stepsXY[2],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m202.632,213.239c-8.296,6.121-18.548,9.744-29.65,9.744-10.835,0-20.856-3.458-29.045-9.314l-62.212,62.212c24.34,21.833,56.504,35.119,91.774,35.119s67.435-13.286,91.775-35.119l-62.642-62.642Z"}})]),t("text",{staticClass:"cc-lbl",class:e.xyStepClasses,attrs:{transform:"translate(173.5, 60.664)","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsXY[2])+" ")])]),t("g",{staticClass:"cc-section"},[t("a",{staticClass:"cc-btn inner-mid",class:e.xStepClasses,on:{click:function(s){return e.sendMoveGcode("X",e.stepsXY[1],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m132.727,143.333l-36.814-36.814c-15.523,17.965-24.912,41.376-24.912,66.981s9.39,49.016,24.912,66.981l37.258-37.258c-6.389-8.398-10.188-18.874-10.188-30.24,0-11.101,3.623-21.353,9.744-29.649Z"}})]),t("a",{staticClass:"cc-btn inner-mid",class:e.xStepClasses,on:{click:function(s){return e.sendMoveGcode("X",e.stepsXY[1],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m213.239,202.632l37.849,37.849c15.523-17.965,24.912-41.376,24.912-66.981s-9.39-49.016-24.912-66.981l-37.419,37.419c5.856,8.189,9.314,18.21,9.314,29.045,0,11.101-3.623,21.353-9.744,29.65Z"}})]),t("a",{staticClass:"cc-btn inner-mid",class:e.yStepClasses,on:{click:function(s){return e.sendMoveGcode("Y",e.stepsXY[1],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m143.333,132.727c8.297-6.121,18.548-9.744,29.65-9.744,11.366,0,21.842,3.799,30.24,10.188l37.258-37.258c-17.965-15.523-41.376-24.912-66.981-24.912s-49.016,9.39-66.981,24.912l36.814,36.814Z"}})]),t("a",{staticClass:"cc-btn inner-mid",class:e.yStepClasses,on:{click:function(s){return e.sendMoveGcode("Y",e.stepsXY[1],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m202.632,213.239c-8.296,6.121-18.548,9.744-29.65,9.744-10.835,0-20.856-3.458-29.045-9.314l-37.419,37.419c17.965,15.523,41.376,24.912,66.981,24.912s49.016-9.39,66.981-24.912l-37.849-37.849Z"}})]),t("text",{staticClass:"cc-lbl",class:e.xyStepClasses,attrs:{transform:"translate(173.5, 95.664)","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsXY[1])+" ")])]),t("g",{staticClass:"cc-section"},[t("a",{staticClass:"cc-btn inner",class:e.xStepClasses,on:{click:function(s){return e.sendMoveGcode("X",e.stepsXY[0],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m144.743,155.35l-23.97-23.97c-9.237,11.547-14.773,26.184-14.773,42.121s5.536,30.573,14.773,42.121l23.97-23.97c.621-.621.782-1.584.354-2.351-2.608-4.677-4.097-10.064-4.097-15.799s1.489-11.122,4.098-15.799c.428-.767.267-1.73-.354-2.351Z"}})]),t("a",{staticClass:"cc-btn inner",class:e.xStepClasses,on:{click:function(s){return e.sendMoveGcode("X",e.stepsXY[0],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m202.257,191.65l23.97,23.97c9.237-11.547,14.773-26.184,14.773-42.121s-5.536-30.573-14.773-42.121l-23.97,23.97c-.621.621-.782,1.584-.354,2.351,2.608,4.677,4.097,10.064,4.097,15.799s-1.489,11.122-4.097,15.799c-.428.767-.267,1.73.354,2.351Z"}})]),t("a",{staticClass:"cc-btn inner",class:e.yStepClasses,on:{click:function(s){return e.sendMoveGcode("Y",e.stepsXY[0],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m155.35,144.743c.621.621,1.584.782,2.351.354,4.677-2.608,10.064-4.097,15.799-4.097s11.122,1.489,15.799,4.097c.767.428,1.73.267,2.351-.354l23.97-23.97c-11.547-9.237-26.184-14.773-42.121-14.773s-30.573,5.536-42.121,14.773l23.97,23.97Z"}})]),t("a",{staticClass:"cc-btn inner",class:e.yStepClasses,on:{click:function(s){return e.sendMoveGcode("Y",e.stepsXY[0],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m191.65,202.257c-.621-.621-1.584-.782-2.351-.354-4.677,2.608-10.064,4.098-15.799,4.098s-11.122-1.489-15.799-4.098c-.767-.428-1.73-.267-2.351.354l-23.97,23.97c11.547,9.237,26.184,14.773,42.121,14.773s30.573-5.536,42.121-14.773l-23.97-23.97Z"}})]),t("text",{staticClass:"cc-lbl",class:e.xyStepClasses,attrs:{transform:"translate(173.5, 130.664)","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsXY[0])+" ")])]),t("g",[e.enableXYHoming?t("a",{staticClass:"cc-btn",class:e.xyzHomeClasses,on:{click:e.homeAll}},[t("circle",{staticClass:"cc-btn-container",attrs:{cx:"173.5",cy:"173.5",r:"25"}}),t("path",{attrs:{d:"m170.667,184.833v-8.5h5.667v8.5h7.083v-11.333h4.25l-14.167-12.75-14.167,12.75h4.25v11.333h7.083Z"}})]):t("a",{staticClass:"cc-btn",class:e.centerToolheadClasses,on:{click:function(s){return e.sendMoveCenterGcode()}}},[t("circle",{staticClass:"cc-btn-container",attrs:{cx:"173.5",cy:"173.5",r:"25"}}),t("path",{attrs:{d:"m174.917,174.917v4.25h-2.833v-4.25h-4.25v-2.833h4.25v-4.25h2.833v4.25h4.25v2.833h-4.25Zm-11.333-11.333h5.667v-2.833h-5.664c-1.566,0-2.836,1.27-2.836,2.836v5.664h2.833v-5.667Zm19.831-2.833h-5.664v2.833h5.667v5.667h2.833v-5.664c0-1.566-1.27-2.836-2.836-2.836Zm.002,22.667h-5.667v2.833h5.664c1.566,0,2.836-1.27,2.836-2.836v-5.664h-2.833v5.667Zm-19.833-5.667h-2.833v5.664c0,1.566,1.27,2.836,2.836,2.836h5.664v-2.833h-5.667v-5.667Z"}})])]),t("g",[t("a",{staticClass:"cc-btn large",class:e.xHomeClasses,on:{click:function(s){return e.sendGcode("G28 X",e.$waits.onHomeX)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m63.219,8.5H14.495c-3.311,0-5.995,2.684-5.995,5.995v48.724c0,5.851,7.555,8.259,10.892,3.454,12.807-18.441,28.839-34.473,47.28-47.28,4.805-3.337,2.397-10.892-3.454-10.892Z"}}),t("path",{attrs:{d:"m19.833,28.167v-5h3.333v5h4.167v-6.667h2.5l-8.333-7.5-8.333,7.5h2.5v6.667h4.167Z"}}),t("text",{attrs:{transform:"translate(31.671 28.167)"}},[e._v("X")])]),t("a",{staticClass:"cc-btn large",class:e.yHomeClasses,on:{click:function(s){return e.sendGcode("G28 Y",e.$waits.onHomeX)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m338.5,63.219V14.495c0-3.311-2.684-5.995-5.995-5.995h-48.724c-5.851,0-8.259,7.555-3.454,10.892,18.441,12.807,34.473,28.839,47.28,47.28,3.337,4.805,10.892,2.397,10.892-3.454Z"}}),t("path",{attrs:{d:"m323.833,28.167v-5h3.333v5h4.167v-6.667h2.5l-8.333-7.5-8.333,7.5h2.5v6.667h4.167Z"}}),t("text",{attrs:{"text-anchor":"end",transform:"translate(315.329 28.167)"}},[e._v("Y")])]),t("a",{staticClass:"cc-btn large",class:e.zHomeClasses,on:{click:function(s){return e.sendGcode("G28 Z",e.$waits.onHomeZ)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m283.781,338.5h48.724c3.311,0,5.995-2.684,5.995-5.995v-48.724c0-5.851-7.555-8.259-10.892-3.454-12.807,18.441-28.839,34.473-47.28,47.28-4.805,3.337-2.397,10.892,3.454,10.892Z"}}),t("path",{attrs:{d:"m323.833,332.167v-5h3.333v5h4.167v-6.667h2.5l-8.333-7.5-8.333,7.5h2.5v6.667h4.167Z"}}),t("text",{attrs:{transform:"translate(315.329 332.167)","text-anchor":"end"}},[e._v("Z")])]),e.enableXYHoming?t("a",{staticClass:"cc-btn large",class:e.xyHomeClasses,on:{click:function(s){return e.sendGcode("G28 X Y",e.$waits.onHomeXY)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m8.5,283.781v48.724c0,3.311,2.684,5.995,5.995,5.995h48.724c5.851,0,8.259-7.555,3.454-10.892-18.441-12.807-34.473-28.839-47.28-47.28-3.337-4.805-10.892-2.397-10.892,3.454Z"}}),t("path",{attrs:{d:"m19.833,332.167v-5h3.333v5h4.167v-6.667h2.5l-8.333-7.5-8.333,7.5h2.5v6.667h4.167Z"}}),t("text",{attrs:{transform:"translate(31.671 332.167)"}},[e._v("XY")])]):t("a",{staticClass:"cc-btn large",class:e.xyzHomeClasses,on:{click:e.homeAll}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m8.5,283.781v48.724c0,3.311,2.684,5.995,5.995,5.995h48.724c5.851,0,8.259-7.555,3.454-10.892-18.441-12.807-34.473-28.839-47.28-47.28-3.337-4.805-10.892-2.397-10.892,3.454Z"}}),t("path",{attrs:{d:"m23.167,330.833v-7h4.667v7h5.833v-9.333h3.5l-11.667-10.5-11.667,10.5h3.5v9.333h5.833Z"}})])])])])],1)],1)},QX=[],eJ=E(Yv,JX,QX,!1,null,"496a0c44");const tJ=eJ.exports;var rJ=Object.defineProperty,sJ=Object.getOwnPropertyDescriptor,Eb=(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&&rJ(e,t,n),n};let yu=class extends Y(J,zt){constructor(){super(...arguments);m(this,"form");m(this,"valid",!0)}get extrudeSpeed(){const t=this.$store.state.config.uiSettings.toolhead.extrudeSpeed;return t===-1?this.$store.state.config.uiSettings.general.defaultExtrudeSpeed:t}set extrudeSpeed(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.toolhead.extrudeSpeed",value:t,server:!1})}get extrudeLength(){const t=this.$store.state.config.uiSettings.toolhead.extrudeLength;return t===-1?this.$store.state.config.uiSettings.general.defaultExtrudeLength:t}set extrudeLength(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.toolhead.extrudeLength",value:t,server:!1})}activeExtruderChanged(){this.form.validate()}maxExtrudeLengthRule(t){return this.$rules.numberLessThanOrEqual(this.maxExtrudeLength)(t)}maxExtrudeSpeedRule(t){return this.$rules.numberLessThanOrEqual(this.maxExtrudeSpeed)(t)}sendRetractGcode(t,s,n){if(this.valid){const i=`M83
|
||
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 s={X:0,Y:1,Z:2},n=this.useGcodeCoords?this.gcodePosition[s[e]]:this.toolheadPosition[s[e]];if(parseInt(n)!==parseInt(t)){const i=e.toLowerCase()==="z"?this.$store.state.config.uiSettings.general.defaultToolheadZSpeed:this.$store.state.config.uiSettings.general.defaultToolheadXYSpeed;if(this.forceMove){const a=e.toLowerCase()==="z"?this.$store.getters["printer/getPrinterSettings"]("printer.max_z_accel"):this.$store.state.printer.printer.toolhead.max_accel;this.sendGcode(`FORCE_MOVE STEPPER=stepper_${e.toLowerCase()} DISTANCE=${t} VELOCITY=${i} ACCEL=${a}`)}else this.sendGcode(`G90
|
||
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(B,{staticClass:"text-right",attrs:{cols:"6"}},[t(wm,{staticClass:"elevation-2",attrs:{mandatory:"",dense:""},model:{value:e.moveDistance,callback:function(s){e.moveDistance=s},expression:"moveDistance"}},e._l(e.zAdjustValues,function(s,n){return t(M,{key:n,staticClass:"px-1",attrs:{small:"",disabled:!e.klippyReady,"min-width":"36",value:s}},[e._v(" "+e._s(s)+" ")])}),1),t("div",{staticClass:"mt-1",class:{"text--disabled":!e.klippyReady}},[t("span",{staticClass:"secondary--text"},[e._v(e._s(e.$t("app.general.label.z_offset"))+" ")]),t("span",[e._v(e._s(e.zHomingOrigin.toFixed(3))+"mm")])])],1),t(B,{attrs:{cols:"6"}},[t(ie,{staticClass:"mr-n1",attrs:{justify:"space-between","no-gutters":""}},[t(B,{staticClass:"pr-1",attrs:{cols:"4"}},[t(M,{attrs:{loading:e.hasWait(e.$waits.onZAdjust),disabled:!e.klippyReady,small:"",block:""},on:{click:function(s){return e.sendZAdjustGcode("-")}}},[t(S,{attrs:{small:""}},[e._v(" $zUp ")])],1)],1),t(B,{staticClass:"pr-1",attrs:{cols:"4"}},[t(M,{attrs:{loading:e.hasWait(e.$waits.onZAdjust),disabled:!e.klippyReady,small:"",block:""},on:{click:function(s){return e.sendZAdjustGcode("+")}}},[t(S,{attrs:{small:""}},[e._v(" $zDown ")])],1)],1),t(B,{staticClass:"pr-1",attrs:{cols:"4"}},[e.hasZOffsetApplyEndstop!==e.hasZOffsetApplyProbe?t(M,{attrs:{disabled:!e.klippyReady||e.printerPrinting||e.zHomingOrigin===0,small:"",block:""},on:{click:e.handleZOffsetApply}},[t(S,{attrs:{small:""}},[e._v(" $save ")])],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({attrs:{disabled:!e.klippyReady||e.printerPrinting||e.zHomingOrigin===0,small:"",block:""}},"app-btn",n,!1),s),[t(S,{attrs:{small:""}},[e._v(" $save ")]),t(S,{staticClass:"ml-1",class:{"rotate-180":i},attrs:{small:""}},[e._v(" $chevronDown ")])],1)]}}],null,!1,3320269989)},[t(Mt,{attrs:{dense:""}},[e._l(["Z_OFFSET_APPLY_ENDSTOP","Z_OFFSET_APPLY_PROBE"],function(s){return[t(Se,{key:s,on:{click:function(n){return e.sendGcode(s)}}},[t(qe,[t(S,[e._v(" $expandVertical ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(s)+" ")])],1)],1)]})],2)],1)],1)],1)],1)],1):e._e()},PJ=[],AJ=E(Jv,CJ,PJ,!1,null,null);const LJ=AJ.exports;var EJ=Object.defineProperty,OJ=Object.getOwnPropertyDescriptor,TJ=(r,e,t,s)=>{for(var n=s>1?void 0:s?OJ(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&&EJ(e,t,n),n};let Qv=class extends Y(J,lt){get flow(){return Math.round(this.$store.state.printer.printer.gcode_move.extrude_factor*100)||100}handleSetFlow(e){this.sendGcode(`M221 S${e}`,this.$waits.onSetFlow)}get speed(){return Math.round(this.$store.state.printer.printer.gcode_move.speed_factor*100)||100}handleSetSpeed(e){this.sendGcode(`M220 S${e}`,this.$waits.onSetSpeed)}};Qv=TJ([A({})],Qv);var kJ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,[t(B,{attrs:{cols:"12",sm:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.speed"),suffix:"%",value:e.speed,overridable:"","reset-value":100,disabled:!e.klippyReady,loading:e.hasWait(e.$waits.onSetSpeed),locked:e.isMobileViewport,min:1,max:200},on:{submit:e.handleSetSpeed}})],1),t(B,{attrs:{cols:"12",sm:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.flow"),suffix:"%",value:e.flow,overridable:"","reset-value":100,disabled:!e.klippyReady,loading:e.hasWait(e.$waits.onSetFlow),locked:e.isMobileViewport,min:1,max:200},on:{submit:e.handleSetFlow}})],1)],1)},DJ=[],MJ=E(Qv,kJ,DJ,!1,null,null);const RJ=MJ.exports;var IJ=Object.defineProperty,FJ=Object.getOwnPropertyDescriptor,dP=(r,e,t,s)=>{for(var n=s>1?void 0:s?FJ(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&&IJ(e,t,n),n};let Yh=class extends Y(J,zt,lt){constructor(){super(...arguments);m(this,"extruderStepper")}get selectedExtruderStepper(){return this.extruderStepper??this.activeExtruder}handleSetPressureAdvance(t){this.sendSetPressureAdvance("ADVANCE",t)}handleSetSmoothTime(t){this.sendSetPressureAdvance("SMOOTH_TIME",t)}sendSetPressureAdvance(t,s){if(this.extruderStepper){const{name:n}=this.extruderStepper;this.sendGcode(`SET_PRESSURE_ADVANCE ${t}=${s} EXTRUDER=${n}`,`${this.$waits.onSetPressureAdvance}${n}`)}else this.sendGcode(`SET_PRESSURE_ADVANCE ${t}=${s}`,this.$waits.onSetPressureAdvance)}};dP([w({type:Object})],Yh.prototype,"extruderStepper",2);Yh=dP([A({})],Yh);var HJ=function(){var s,n,i,a,o,l,c,u;var e=this,t=e._self._c;return e._self._setupProxy,t(ie,[t(B,{attrs:{cols:"12",sm:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.pressure_advance"),suffix:"s",value:((s=e.selectedExtruderStepper)==null?void 0:s.pressure_advance)||0,overridable:"","reset-value":((i=(n=e.selectedExtruderStepper)==null?void 0:n.config)==null?void 0:i.pressure_advance)||0,disabled:!e.klippyReady,locked:e.isMobileViewport,loading:e.hasWait(`${e.$waits.onSetPressureAdvance}${((a=e.extruderStepper)==null?void 0:a.name)??""}`),min:0,max:2,step:1e-4},on:{submit:e.handleSetPressureAdvance}})],1),t(B,{attrs:{cols:"12",sm:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.smooth_time"),suffix:"s",value:((o=e.selectedExtruderStepper)==null?void 0:o.smooth_time)||0,"reset-value":((c=(l=e.selectedExtruderStepper)==null?void 0:l.config)==null?void 0:c.pressure_advance_smooth_time)||0,disabled:!e.klippyReady,locked:e.isMobileViewport,loading:e.hasWait(`${e.$waits.onSetPressureAdvance}${((u=e.extruderStepper)==null?void 0:u.name)??""}`),min:0,max:.2,step:.001},on:{submit:e.handleSetSmoothTime}})],1)],1)},jJ=[],BJ=E(Yh,HJ,jJ,!1,null,null);const pP=BJ.exports;var NJ=Object.defineProperty,VJ=Object.getOwnPropertyDescriptor,zJ=(r,e,t,s)=>{for(var n=s>1?void 0:s?VJ(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&&NJ(e,t,n),n};let e_=class extends Y(J,zt){get extrudeFactor(){return this.$store.state.printer.printer.gcode_move.extrude_factor||1}get layerHeight(){return .2}get extrudeLength(){const r=this.$store.state.config.uiSettings.toolhead.extrudeLength;return isNaN(+r)?0:r===-1?this.$store.state.config.uiSettings.general.defaultExtrudeLength:r}get extrudeSpeed(){const r=this.$store.state.config.uiSettings.toolhead.extrudeSpeed;return isNaN(+r)?0:r===-1?this.$store.state.config.uiSettings.general.defaultExtrudeSpeed:r}get estimatedExtrudedLength(){return Math.round(this.extrudeLength*this.extrudeFactor*(this.filamentDiameter**2/this.nozzleDiameter**2)*10)/10}get estimatedVolumetricFlow(){return Math.round(Math.PI/4*this.filamentDiameter**2*this.extrudeSpeed*10)/10}get estimatedMaxSpeed(){const r=this.layerHeight*(this.nozzleDiameter+this.layerHeight*(Math.PI/4-1));return Math.round(this.estimatedVolumetricFlow/r*10)/10}};e_=zJ([A({})],e_);var UJ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Sm,{attrs:{accordion:"",multiple:"",flat:""}},[t(xm,[t(Pm,{scopedSlots:e._u([{key:"actions",fn:function(){return[t(S,{staticClass:"my-1 mr-2",attrs:{small:""}},[e._v(" $expand ")])]},proxy:!0},{key:"default",fn:function({open:s}){return[t(ie,{attrs:{"no-gutters":""}},[t(B,{staticClass:"text--secondary text-center",class:{"text--disabled":!e.klippyReady}},[t(Al,[s?e._e():t("span",[e._v("~ "+e._s(e.estimatedExtrudedLength)+" mm @ "+e._s(e.estimatedVolumetricFlow)+" mm³/s, "+e._s(e.estimatedMaxSpeed)+" mm/s")])])],1)],1)]}}])}),t(Cm,[t("div",{staticClass:"text-center",class:{"text--disabled":!e.klippyReady}},[t("p",{domProps:{innerHTML:e._s(e.$t("app.tool.label.stats_active_extruder",{filamentDiameter:e.filamentDiameter,nozzleDiameter:e.nozzleDiameter}))}}),t("p",{domProps:{innerHTML:e._s(e.$t("app.tool.label.stats_volumetric_flow",{extrudeSpeed:e.extrudeSpeed,estimatedVolumetricFlow:e.estimatedVolumetricFlow}))}}),t("p",{domProps:{innerHTML:e._s(e.$t("app.tool.label.stats_extruded_length",{extrudeLength:e.extrudeLength,extrudeFactor:(e.extrudeFactor*100).toFixed(),estimatedExtrudedLength:e.estimatedExtrudedLength}))}}),t("p",{domProps:{innerHTML:e._s(e.$t("app.tool.label.stats_max_speed",{layerHeight:e.layerHeight,estimatedMaxSpeed:e.estimatedMaxSpeed}))}})])])],1)],1)},WJ=[],GJ=E(e_,UJ,WJ,!1,null,null);const qJ=GJ.exports;var ZJ=Object.defineProperty,YJ=Object.getOwnPropertyDescriptor,eo=(r,e,t,s)=>{for(var n=s>1?void 0:s?YJ(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&&ZJ(e,t,n),n};let Vn=class extends b{constructor(){super(...arguments);m(this,"inputValue");m(this,"label");m(this,"disabled");m(this,"loading");m(this,"trueValue");m(this,"falseValue")}};eo([Fe({type:Boolean})],Vn.prototype,"inputValue",2);eo([w({type:String,required:!0})],Vn.prototype,"label",2);eo([w({type:Boolean})],Vn.prototype,"disabled",2);eo([w({type:Boolean})],Vn.prototype,"loading",2);eo([w({})],Vn.prototype,"trueValue",2);eo([w({})],Vn.prototype,"falseValue",2);Vn=eo([A({})],Vn);var KJ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Vr,{attrs:{"justify-space-between":"","align-center":""}},[t("div",{staticClass:"text-body-1",class:{"text--disabled":e.disabled},domProps:{innerHTML:e._s(e.label)}}),t(Ce,e._g({staticClass:"mt-0",attrs:{disabled:e.disabled||e.loading,"true-value":e.trueValue,"false-value":e.falseValue,"hide-details":""},model:{value:e.inputValue,callback:function(s){e.inputValue=s},expression:"inputValue"}},e.$listeners))],1)},XJ=[],JJ=E(Vn,KJ,XJ,!1,null,null);const hP=JJ.exports;var QJ=Object.defineProperty,eQ=Object.getOwnPropertyDescriptor,Ls=(r,e,t,s)=>{for(var n=s>1?void 0:s?eQ(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&&QJ(e,t,n),n};let Ur=class extends b{constructor(){super(...arguments);m(this,"inputValue");m(this,"resetValue");m(this,"items");m(this,"label");m(this,"disabled");m(this,"loading");m(this,"prefix");m(this,"suffix");m(this,"itemValue");m(this,"itemText");m(this,"returnObject")}handleReset(){this.resetValue!==void 0&&this.$emit("change",this.resetValue)}};Ls([Fe({})],Ur.prototype,"inputValue",2);Ls([w({})],Ur.prototype,"resetValue",2);Ls([w({type:Array})],Ur.prototype,"items",2);Ls([w({type:String,required:!0})],Ur.prototype,"label",2);Ls([w({type:Boolean})],Ur.prototype,"disabled",2);Ls([w({type:Boolean})],Ur.prototype,"loading",2);Ls([w({type:String})],Ur.prototype,"prefix",2);Ls([w({type:String})],Ur.prototype,"suffix",2);Ls([w({type:String})],Ur.prototype,"itemValue",2);Ls([w({type:String})],Ur.prototype,"itemText",2);Ls([w({type:Boolean})],Ur.prototype,"returnObject",2);Ur=Ls([A({})],Ur);var tQ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,{attrs:{"no-gutters":""}},[t(B,{staticClass:"text-body-1 py-0",class:{"text--disabled":e.disabled},attrs:{cols:"12",sm:"5","align-self":"center"},domProps:{innerHTML:e._s(e.label)}}),t(B,{staticClass:"py-0"},[t(Re,e._g({staticClass:"mt-0",attrs:{items:e.items,disabled:e.disabled||e.loading,prefix:e.prefix,suffix:e.suffix,"item-value":e.itemValue,"item-text":e.itemText,"return-object":e.returnObject,dense:"","single-line":"",outlined:"","hide-details":""},scopedSlots:e._u([{key:"prepend",fn:function(){return[e.resetValue!==void 0?t(M,{staticStyle:{"margin-top":"-4px"},attrs:{disabled:e.disabled,color:"",icon:"",small:""},on:{click:e.handleReset}},[t(S,{attrs:{small:""}},[e._v(" $reset ")])],1):e._e()]},proxy:!0}]),model:{value:e.inputValue,callback:function(s){e.inputValue=s},expression:"inputValue"}},e.$listeners))],1)],1)},rQ=[],sQ=E(Ur,tQ,rQ,!1,null,null);const nQ=sQ.exports;var iQ=Object.defineProperty,aQ=Object.getOwnPropertyDescriptor,fP=(r,e,t,s)=>{for(var n=s>1?void 0:s?aQ(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&&iQ(e,t,n),n};let Kh=class extends Y(J){constructor(){super(...arguments);m(this,"extruderStepper")}get availableExtruders(){return this.$store.getters["printer/getExtruders"]}sendSyncExtruderMotion(t){this.sendGcode(`SYNC_EXTRUDER_MOTION EXTRUDER=${this.extruderStepper.name} MOTION_QUEUE=${t??""}`,`${this.$waits.onSyncExtruder}${this.extruderStepper.name}`)}sendSetStepperEnable(t){this.sendGcode(`SET_STEPPER_ENABLE STEPPER="${this.extruderStepper.key}" ENABLE=${+t}`,`${this.$waits.onStepperEnable}${this.extruderStepper.name}`)}};fP([w({type:Object,required:!0})],Kh.prototype,"extruderStepper",2);Kh=fP([A({})],Kh);var oQ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,[t(B,{attrs:{cols:"12",sm:"6"}},[t(nQ,{attrs:{value:e.extruderStepper.motion_queue,label:e.$t("app.general.label.synced_extruder"),items:[{name:e.$t("app.setting.label.none"),key:null},...e.availableExtruders],disabled:!e.klippyReady||e.printerPrinting,loading:e.hasWait(`${e.$waits.onSyncExtruder}${e.extruderStepper.name}`),"reset-value":e.extruderStepper.config.extruder,"item-value":"key","item-text":"name"},on:{change:e.sendSyncExtruderMotion}})],1),e.extruderStepper.enabled!==void 0?t(B,{attrs:{cols:"12",sm:"6"}},[t(hP,{attrs:{value:e.extruderStepper.enabled,label:e.$t("app.general.label.stepper_enabled"),disabled:!e.klippyReady||e.printerPrinting,loading:e.hasWait(`${e.$waits.onStepperEnable}${e.extruderStepper.name}`)},on:{change:e.sendSetStepperEnable}})],1):e._e()],1)},lQ=[],cQ=E(Kh,oQ,lQ,!1,null,null);const uQ=cQ.exports;var dQ=Object.defineProperty,pQ=Object.getOwnPropertyDescriptor,hQ=(r,e,t,s)=>{for(var n=s>1?void 0:s?pQ(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&&dQ(e,t,n),n};let t_=class extends b{get extruderSteppers(){const e=this.$store.getters["printer/getExtruders"];return this.$store.getters["printer/getExtruderSteppers"].map(s=>{var o;const n=(s.motion_queue&&((o=e.find(l=>l.key===s.motion_queue))==null?void 0:o.name))??this.$t("app.setting.label.none"),i=s.enabled!==void 0&&this.$t(`app.general.label.${s.enabled?"on":"off"}`),a=i?`${n}, ${i}`:n;return{...s,description:a}})}};t_=hQ([A({components:{ExtruderStepperSync:uQ,PressureAdvanceAdjust:pP}})],t_);var fQ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Sm,{attrs:{accordion:"",multiple:"",flat:""}},e._l(e.extruderSteppers,function(s){return t(xm,{key:`extruderStepper-${s.name}`},[t(R),t(Pm,{scopedSlots:e._u([{key:"actions",fn:function(){return[t(S,{staticClass:"my-1 mr-2",attrs:{small:""}},[e._v(" $expand ")])]},proxy:!0},{key:"default",fn:function({open:n}){return[t(Al,{attrs:{"leave-absolute":""}},[n?t("span",{key:"0"},[e._v(" "+e._s(s.prettyName)+" ")]):t("span",{key:"1"},[e._v(" "+e._s(s.prettyName)+" "),t("span",{staticClass:"secondary--text"},[e._v("[ "+e._s(s.description)+" ]")])])])]}}],null,!0)}),t(Cm,[t("extruder-stepper-sync",{attrs:{"extruder-stepper":s}}),s.pressure_advance!==void 0?t("pressure-advance-adjust",{attrs:{"extruder-stepper":s}}):e._e()],1)],1)}),1)},mQ=[],gQ=E(t_,fQ,mQ,!1,null,null);const vQ=gQ.exports;var _Q=Object.defineProperty,yQ=Object.getOwnPropertyDescriptor,bQ=(r,e,t,s)=>{for(var n=s>1?void 0:s?yQ(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&&_Q(e,t,n),n};let r_=class extends Y(J){get availableCommands(){return this.$store.getters["printer/getAvailableCommands"]}get toolChangeCommands(){const e=this.availableCommands;return Object.keys(e).filter(t=>/^t\d+$/i.test(t)).map(t=>{var a,o,l;const{help:s}=e[t],n=s&&s!=="G-Code macro"?s:this.$t("app.tool.tooltip.select_tool",{tool:t.substring(1)}),i=this.$store.getters["macros/getMacroByName"](t.toLowerCase());return{name:t,description:n,color:(a=i==null?void 0:i.variables)!=null&&a.color?`#${i.variables.color}`:void 0,active:((o=i==null?void 0:i.variables)==null?void 0:o.active)??!1,spoolId:(l=i==null?void 0:i.variables)==null?void 0:l.spool_id}}).sort((t,s)=>{const n=parseInt(t.name.substring(1)),i=parseInt(s.name.substring(1));return n-i})}getSpoolById(e){return this.$store.getters["spoolman/getSpoolById"](e)}getSpoolColor(e){return`#${(e==null?void 0:e.filament.color_hex)??(this.$vuetify.theme.dark?"fff":"000")}`}};r_=bQ([A({})],r_);var $Q=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.toolChangeCommands.length>0?t(ie,[t(B,[t(Yo,{staticClass:"app-toolchanger-control d-flex",class:{[e.$vuetify.theme.dark?"theme--dark":"theme--light"]:!0}},e._l(e.toolChangeCommands,function(s,n){return t(Oe,{key:n,attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:a}){return[t(M,e._g(e._b({staticClass:"px-0 flex-grow-1",attrs:{"min-width":"10",color:s.active?"primary":void 0,disabled:!e.klippyReady||e.printerPrinting},on:{click:function(o){return e.sendGcode(s.name)}}},"app-btn",a,!1),i),[s.spoolId&&e.getSpoolById(s.spoolId)?t(S,{staticClass:"mr-1 spool-icon",attrs:{color:e.getSpoolColor(e.getSpoolById(s.spoolId))}},[e._v(" $filament ")]):s.color?t("span",{staticClass:"extruder-color mr-1",class:{active:s.active},style:{background:s.color}}):e._e(),e._v(" "+e._s(s.name)+" ")],1)]}}],null,!0)},[e._v(" "+e._s(s.description)+" ")])}),1)],1)],1):e._e()},wQ=[],SQ=E(r_,$Q,wQ,!1,null,"a65307b5");const xQ=SQ.exports;var CQ=Object.defineProperty,PQ=Object.getOwnPropertyDescriptor,AQ=(r,e,t,s)=>{for(var n=s>1?void 0:s?PQ(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&&CQ(e,t,n),n};let s_=class extends Y(J,zt){get showPressureAdvance(){var e;return((e=this.activeExtruder)==null?void 0:e.pressure_advance)!==void 0}get toolheadControlStyle(){return this.$store.state.config.uiSettings.general.toolheadControlStyle}};s_=AQ([A({components:{ToolheadControlCross:xX,ToolheadControlBars:ZX,ToolheadControlCircle:tJ,ExtruderMoves:oJ,ExtruderSelection:fJ,ToolheadPosition:$J,ZHeightAdjust:LJ,SpeedAndFlowAdjust:RJ,PressureAdvanceAdjust:pP,ExtruderStats:qJ,ExtruderSteppers:vQ,ToolChangeCommands:xQ}})],s_);var LQ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Le,[t("tool-change-commands"),t(ie,{attrs:{justify:"space-between",align:"start"}},[t(B,{staticClass:"controls-wrapper"},[e.hasMultipleExtruders?t("extruder-selection"):e._e(),e.printerPrinting?t("z-height-adjust"):[e.toolheadControlStyle==="cross"?t("toolhead-control-cross"):e.toolheadControlStyle==="bars"?t("toolhead-control-bars"):e.toolheadControlStyle==="circle"?t("toolhead-control-circle"):e._e()]],2),t(B,{staticClass:"controls-wrapper"},[t("toolhead-position"),!e.printerPrinting&&e.hasExtruder?t("extruder-moves"):e._e(),e.printerPrinting?e._e():t("z-height-adjust")],1)],1)],1),e.printerPrinting?e._e():[t(R),t("extruder-stats"),t(R)],t(Le,[t("speed-and-flow-adjust"),e.showPressureAdvance?t("pressure-advance-adjust"):e._e()],1),t("extruder-steppers")],2)},EQ=[],OQ=E(s_,LQ,EQ,!1,null,"8f90519e");const TQ=OQ.exports;var kQ=Object.defineProperty,DQ=Object.getOwnPropertyDescriptor,$d=(r,e,t,s)=>{for(var n=s>1?void 0:s?DQ(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 Ea=class extends Y(J,zt){constructor(){super(...arguments);m(this,"manualProbeDialogOpen",!1);m(this,"bedScrewsAdjustDialogOpen",!1);m(this,"screwsTiltAdjustDialogOpen",!1);m(this,"menuCollapsed")}get printerSettings(){return this.$store.getters["printer/getPrinterSettings"]()}get printerSupportsQuadGantryLevel(){return"quad_gantry_level"in this.printerSettings}get printerSupportsZTiltAdjust(){return"z_tilt"in this.printerSettings}get printerSupportsBedScrewsAdjust(){return"bed_screws"in this.printerSettings}get printerSupportsBedScrewsCalculate(){return"screws_tilt_adjust"in this.printerSettings}get printerSupportsBedTiltCalibrate(){return"bed_tilt"in this.printerSettings}get printerSupportsDeltaCalibrate(){return"delta_calibrate"in this.printerSettings}get printerSupportsProbeCalibrate(){return"probe"in this.printerSettings||"bltouch"in this.printerSettings}get printerSupportsZEndstopCalibrate(){return"stepper_z"in this.printerSettings&&"z_position_endstop"in this.printerSettings.stepper_z}get loadFilamentMacro(){return this.$store.getters["macros/getMacroByName"]("load_filament","filament_load","m701")}get unloadFilamentMacro(){return this.$store.getters["macros/getMacroByName"]("unload_filament","filament_unload","m702")}get cleanNozzleMacro(){return this.$store.getters["macros/getMacroByName"]("clean_nozzle","nozzle_clean","wipe_nozzle","nozzle_wipe","g12")}get availableTools(){var a,o;const t=[],s=this.loadFilamentMacro;if(s){const l=((a=s.variables)==null?void 0:a.ignore_min_extrude_temp)??!1;t.push({name:s.name.toUpperCase(),label:s.name==="m701"?"M701 (Load Filament)":void 0,icon:"$loadFilament",disabled:!(l||this.extruderReady)})}const n=this.unloadFilamentMacro;if(n){const l=((o=n.variables)==null?void 0:o.ignore_min_extrude_temp)??!1;t.push({name:n.name.toUpperCase(),label:n.name==="m702"?"M702 (Unload Filament)":void 0,icon:"$unloadFilament",disabled:!(l||this.extruderReady)})}const i=this.cleanNozzleMacro;return i&&t.push({name:i.name.toUpperCase(),label:i.name==="g12"?"G12 (Clean the Nozzle)":void 0,icon:"$cleanNozzle"}),t.length>0&&t.push({name:"-"}),this.printerSupportsBedScrewsAdjust&&t.push({name:"BED_SCREWS_ADJUST",disabled:!this.allHomed||this.isBedScrewsAdjustActive,wait:this.$waits.onBedScrewsAdjust}),this.printerSupportsBedTiltCalibrate&&t.push({name:"BED_TILT_CALIBRATE",disabled:!this.allHomed||this.isManualProbeActive,wait:this.$waits.onBedTiltCalibrate}),this.printerSupportsDeltaCalibrate&&t.push({name:"DELTA_CALIBRATE",disabled:!this.allHomed||this.isManualProbeActive,wait:this.$waits.onDeltaCalibrate}),t.push({name:"MANUAL_PROBE",disabled:!this.allHomed||this.isManualProbeActive,wait:this.$waits.onManualProbe}),this.printerSupportsProbeCalibrate&&(t.push({name:"PROBE_ACCURACY",disabled:!this.allHomed,wait:this.$waits.onProbeAccuracy}),t.push({name:"PROBE_CALIBRATE",disabled:!this.allHomed,wait:this.$waits.onProbeCalibrate})),this.printerSupportsQuadGantryLevel&&t.push({name:"QUAD_GANTRY_LEVEL",disabled:!this.allHomed||this.isManualProbeActive,wait:this.$waits.onQGL}),this.printerSupportsBedScrewsCalculate&&t.push({name:"SCREWS_TILT_CALCULATE",disabled:!this.allHomed||this.isManualProbeActive,wait:this.$waits.onBedScrewsCalculate}),this.printerSupportsZEndstopCalibrate&&t.push({name:"Z_ENDSTOP_CALIBRATE",disabled:!this.allHomed||this.isManualProbeActive,wait:this.$waits.onZEndstopCalibrate}),this.printerSupportsZTiltAdjust&&t.push({name:"Z_TILT_ADJUST",disabled:!this.allHomed||this.isManualProbeActive,wait:this.$waits.onZTilt}),t}get printerSupportsForceMove(){var t;return(((t=this.printerSettings.force_move)==null?void 0:t.enable_force_move)??!1)&&!this.hasRoundBed}get hasSteppersEnabled(){return this.$store.getters["printer/getHasSteppersEnabled"]}get hasRoundBed(){return this.$store.getters["printer/getHasRoundBed"]}get showManualProbeDialogAutomatically(){return this.$store.state.config.uiSettings.general.showManualProbeDialogAutomatically}get showBedScrewsAdjustDialogAutomatically(){return this.$store.state.config.uiSettings.general.showBedScrewsAdjustDialogAutomatically}get showScrewsTiltAdjustDialogAutomatically(){return this.$store.state.config.uiSettings.general.showScrewsTiltAdjustDialogAutomatically}get forceMove(){return this.$store.state.config.uiSettings.toolhead.forceMove}onIsManualProbeActive(t){t&&this.showManualProbeDialogAutomatically&&this.klippyReady&&!this.printerPrinting&&(this.manualProbeDialogOpen=!0)}onIsBedScrewsAdjustActive(t){t&&this.showBedScrewsAdjustDialogAutomatically&&this.klippyReady&&!this.printerPrinting&&(this.bedScrewsAdjustDialogOpen=!0)}onHasScrewsTiltAdjustResults(t){this.screwsTiltAdjustDialogOpen=t&&this.showScrewsTiltAdjustDialogAutomatically&&this.klippyReady&&!this.printerPrinting}async toggleForceMove(){(this.forceMove||!this.$store.state.config.uiSettings.general.forceMoveToggleWarning||await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_forcemove_toggle"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$warning"}))&&this.$store.dispatch("config/saveByPath",{path:"uiSettings.toolhead.forceMove",value:!this.forceMove,server:!1})}};$d([w({type:Boolean})],Ea.prototype,"menuCollapsed",2);$d([Ae("isManualProbeActive")],Ea.prototype,"onIsManualProbeActive",1);$d([Ae("isBedScrewsAdjustActive")],Ea.prototype,"onIsBedScrewsAdjustActive",1);$d([Ae("hasScrewsTiltAdjustResults")],Ea.prototype,"onHasScrewsTiltAdjustResults",1);Ea=$d([A({components:{Toolhead:TQ}})],Ea);var MQ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.general.title.tool"),icon:"$printer3dNozzle",draggable:"","layout-path":"dashboard.toolhead-card","menu-breakpoint":"lg"},scopedSlots:e._u([{key:"title",fn:function(){var s;return[t(S,{attrs:{left:""}},[e._v(" $printer3dNozzle ")]),t("span",{staticClass:"font-weight-light"},[e._v(e._s(e.$t("app.general.title.tool")))]),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t(S,e._g(e._b({directives:[{name:"show",rawName:"v-show",value:e.hasExtruder&&!e.extruderReady,expression:"hasExtruder && !extruderReady"}],staticClass:"ml-3",attrs:{color:"info"}},"v-icon",i,!1),n),[e._v(" $snowflakeAlert ")])]}}])},[t("span",{domProps:{innerHTML:e._s(e.$t("app.tool.tooltip.extruder_disabled",{min:(s=e.activeExtruder)==null?void 0:s.min_extrude_temp}))}})])]},proxy:!0},{key:"menu",fn:function(){return[t(Sn,{attrs:{collapsed:e.menuCollapsed}},[e.isManualProbeActive?t(M,{staticClass:"ms-1 my-1",attrs:{disabled:!e.klippyReady||e.printerPrinting,small:""},on:{click:function(s){e.manualProbeDialogOpen=!0}}},[e._v(" "+e._s(e.$t("app.tool.tooltip.manual_probe"))+" ")]):e._e(),e.isBedScrewsAdjustActive?t(M,{staticClass:"ms-1 my-1",attrs:{disabled:!e.klippyReady||e.printerPrinting||!e.allHomed,small:""},on:{click:function(s){e.bedScrewsAdjustDialogOpen=!0}}},[e._v(" BED_SCREWS_ADJUST ")]):e._e(),e.printerSupportsForceMove?t(M,{staticClass:"ms-1 my-1",attrs:{disabled:!e.klippyReady||e.printerPrinting,small:"",color:e.forceMove?"error":void 0},on:{click:e.toggleForceMove}},[e._v(" FORCE_MOVE ")]):e._e(),e.hasSteppersEnabled?t(M,{staticClass:"ms-1 my-1",attrs:{disabled:!e.klippyReady||e.printerPrinting,small:""},on:{click:function(s){return e.sendGcode("M84")}}},[e._v(" "+e._s(e.$t("app.tool.tooltip.motors_off"))+" ")]):e._e(),e.availableTools.length?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:"",disabled:!e.klippyReady||e.printerPrinting}},"app-btn",n,!1),s),[t(S,{staticClass:"mr-1",attrs:{small:""}},[e._v(" $tools ")]),e._v(" "+e._s(e.$t("app.tool.tooltip.tools"))+" "),t(S,{staticClass:"ml-1",class:{"rotate-180":i},attrs:{small:""}},[e._v(" $chevronDown ")])],1)]}}],null,!1,1323930593)},[t(Mt,{attrs:{dense:""}},[e._l(e.availableTools,function(s,n){return[s.name!=="-"?t(Se,{key:s.name,attrs:{disabled:s.disabled||s.wait&&e.hasWait(s.wait)},on:{click:function(i){return e.sendGcode(s.name,s.wait)}}},[t(qe,[t(S,[e._v(" "+e._s(s.icon||"$tools")+" ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(s.label||s.name)+" ")])],1)],1):t(R,{key:`sep=${n}`})]})],2)],1):e._e()],1)]},proxy:!0}])},[t("toolhead"),e.manualProbeDialogOpen?t(oP,{model:{value:e.manualProbeDialogOpen,callback:function(s){e.manualProbeDialogOpen=s},expression:"manualProbeDialogOpen"}}):e._e(),e.bedScrewsAdjustDialogOpen?t(oX,{model:{value:e.bedScrewsAdjustDialogOpen,callback:function(s){e.bedScrewsAdjustDialogOpen=s},expression:"bedScrewsAdjustDialogOpen"}}):e._e(),e.screwsTiltAdjustDialogOpen?t(tX,{model:{value:e.screwsTiltAdjustDialogOpen,callback:function(s){e.screwsTiltAdjustDialogOpen=s},expression:"screwsTiltAdjustDialogOpen"}}):e._e()],1)},RQ=[],IQ=E(Ea,MQ,RQ,!1,null,null);const FQ=IQ.exports,Gp=r=>{const e=["temperature_fan","controller_fan","heater_fan","fan_generic","fan"],t=["temperature_sensor","temperature_probe","tmc2240","z_thermal_adjust"],s=["heater_generic","extruder"],n=["heater_bed"];return e.some(i=>r.startsWith(i))?"fan":t.some(i=>r.startsWith(i))?"sensor":s.some(i=>r.startsWith(i))?"heater":n.some(i=>r.startsWith(i))?"bed":""};var HQ=Object.defineProperty,jQ=Object.getOwnPropertyDescriptor,jm=(r,e,t,s)=>{for(var n=s>1?void 0:s?jQ(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&&HQ(e,t,n),n};let sl=class extends Y(lt){constructor(){super(...arguments);m(this,"height");m(this,"chart");m(this,"loading",!1);m(this,"series",[]);m(this,"initialSelected",{})}handleLegendSelectChanged(t){this.$store.dispatch("charts/saveSelectedLegends",t.selected);let s=this.isMobileViewport?15:20;this.showPowerAxis(t.selected)&&(s=this.isMobileViewport?25:45),this.chart&&!this.loading&&this.chart.setOption({grid:{right:s},yAxis:[{},{show:this.showPowerAxis(t.selected)}]})}get chartData(){return this.$store.getters["charts/getChartData"]}onDataChange(t){this.chart&&!this.loading&&this.chart.setOption({dataset:{source:t}})}mounted(){this.init(),this.loading=!1}beforeDestroy(){typeof window>"u"||this.chart&&this.chart.dispose()}init(){const t=Object.keys(this.chartData[0]);this.$store.getters["printer/getChartableSensors"].forEach(n=>{this.series.push(this.createSeries(n)),t.includes(`${n}Target`)&&this.series.push(this.createSeries(`${n}Target`)),t.includes(`${n}Power`)&&this.series.push(this.createSeries(`${n}Power`)),t.includes(`${n}Speed`)&&this.series.push(this.createSeries(`${n}Speed`))})}get options(){const t=this.$store.state.config.uiSettings.theme.isDark,s=t?"rgba(255,255,255,0.65)":"rgba(0,0,0,0.45)",n=this.isMobileViewport?13:14,i={color:t?"#ffffff":"#000000",opacity:.05},a={color:t?"#ffffff":"#000000",opacity:.5};let o=this.isMobileViewport?15:20;this.showPowerAxis(this.initialSelected)&&(o=this.isMobileViewport?35:45);const l={top:20,left:this.isMobileViewport?35:45,right:o,bottom:this.isMobileViewport?52:38},c={backgroundColor:t?"rgba(15,15,15,0.75)":"rgba(255,255,255,0.75)",borderColor:t?"rgba(0,0,0,0.85)":"rgba(255,255,255,0.85)",textStyle:{color:s,fontSize:n}},u=this.$vuetify.theme.currentTheme,d=[u.primary,u.secondary];return{grid:l,textStyle:{fontFamily:"Roboto"},color:d,legend:{show:!1,selected:this.initialSelected},tooltip:{...c,trigger:"axis",confine:!1,axisPointer:{type:"line",lineStyle:a,label:{color:s,fontSize:n,backgroundColor:c.backgroundColor}},position:this.tooltipPosition,formatter:h=>{let f="";return h.forEach(g=>{if(!g.seriesName.toLowerCase().endsWith("target")&&!g.seriesName.toLowerCase().endsWith("power")&&!g.seriesName.toLowerCase().endsWith("speed")&&g.seriesName&&g.value[g.seriesName]!=null){const v=g.seriesName.split(" ",2).pop();f+=`
|
||
<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,"form",2);Bm([Ae("value")],nl.prototype,"onValue",1);nl=Bm([A({})],nl);var GQ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Ll,{ref:"form",on:{submit:function(s){return s.preventDefault(),e.handleSubmit.apply(null,arguments)}}},[t(ae,e._g(e._b({on:{focus:e.handleFocus,blur:e.handleBlur},model:{value:e.currentValue,callback:function(s){e.currentValue=s},expression:"currentValue"}},"v-text-field",e.$attrs,!1),e.filteredListeners),[e._l(Object.keys(e.$slots),function(s){return e._t(s,null,{slot:s})})],2)],1)},qQ=[],ZQ=E(nl,GQ,qQ,!1,null,null);const PS=ZQ.exports;var YQ=Object.defineProperty,KQ=Object.getOwnPropertyDescriptor,XQ=(r,e,t,s)=>{for(var n=s>1?void 0:s?KQ(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&&YQ(e,t,n),n};let n_=class extends Y(J){get presets(){return this.$store.getters["config/getTempPresets"]}};n_=XQ([A({})],n_);var JQ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Dt,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","min-width":"150"},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:{disabled:!e.klippyReady,small:""}},"app-btn",n,!1),s),[t(S,{staticClass:"mr-1",attrs:{small:""}},[e._v(" $fire ")]),e._v(" "+e._s(e.$t("app.general.btn.presets"))+" "),t(S,{staticClass:"ml-1",class:{"rotate-180":i},attrs:{small:""}},[e._v(" $chevronDown ")])],1)]}}])},[t(Mt,{attrs:{dense:""}},[t(Se,{on:{click:function(s){return e.$emit("applyOff")}}},[t(qe,[t(S,{attrs:{color:"info"}},[e._v(" $snowflakeAlert ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.general.btn.heaters_off"))+" ")])],1)],1),e._l(e.presets,function(s){return[t(Se,{key:s.index,on:{click:function(n){return e.$emit("applyPreset",s)}}},[t(qe,[t(S,{attrs:{color:"error"}},[e._v(" $fire ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(s.name)+" ")])],1)],1)]})],2)],1)},QQ=[],eee=E(n_,JQ,QQ,!1,null,null);const mP=eee.exports;var tee=Object.defineProperty,ree=Object.getOwnPropertyDescriptor,see=(r,e,t,s)=>{for(var n=s>1?void 0:s?ree(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&&tee(e,t,n),n};let i_=class extends Y(J){get colors(){return this.$colorset.colorList}get extruder(){return this.$store.state.printer.printer.extruder}get heaters(){return this.$store.getters["printer/getHeaters"]}get fans(){return this.$store.getters["printer/getOutputs"](["temperature_fan"])}get sensors(){return this.$store.getters["printer/getSensors"]}get chartSelectedLegends(){return this.$store.getters["charts/getSelectedLegends"]}get chartData(){return this.$store.getters["charts/getChartData"]}get showRateOfChange(){return this.$store.state.config.uiSettings.general.showRateOfChange}get showRelativeHumidity(){return this.$store.state.config.uiSettings.general.showRelativeHumidity}get showBarometricPressure(){return this.$store.state.config.uiSettings.general.showBarometricPressure}get showGasResistance(){return this.$store.state.config.uiSettings.general.showGasResistance}setHeaterTargetTemp(e,t){this.sendGcode(`SET_HEATER_TEMPERATURE HEATER=${e} TARGET=${t}`)}setFanTargetTemp(e,t){this.sendGcode(`SET_TEMPERATURE_FAN_TARGET TEMPERATURE_FAN=${e} TARGET=${t}`)}getRateOfChange(e){const t=this.chartData.slice(-5),s=mv(t,i=>i[e.key]!=null);let n=0;if(s.length>=2){const i=s[s.length-1],a=s[0];n=(+i[e.key]-+a[e.key])/(+i.date-+a.date)*1e3,Math.abs(n)<.05&&(n=0)}return`${n<0?"":"+"}${n.toFixed(1)}`}};i_=see([A({components:{TemperaturePresetsMenu:mP}})],i_);var nee=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(qt,{staticClass:"temperature-table"},[t("thead",[t("tr",[t("th"),t("th",{attrs:{width:"100%"}},[e._v(" "+e._s(e.$t("app.chart.label.item"))+" ")]),t("th",[e._v(" "+e._s(e.$t("app.chart.label.power"))+" ")]),e.showRateOfChange?t("th",[e._v(" "+e._s(e.$t("app.chart.label.rate_of_change"))+" ")]):e._e(),t("th",[e._v(" "+e._s(e.$t("app.chart.label.current"))+" ")]),t("th"),t("th",[e._v(" "+e._s(e.$t("app.chart.label.target"))+" ")])])]),e.klippyReady?t("tbody",[e._l(e.heaters,function(s){return t("tr",{key:s.key},[t("td",[t(S,{attrs:{small:"",color:s.color}},[e._v(" $fire ")])],1),t("td",{staticClass:"temp-name"},[t("span",{staticClass:"legend-item toggle",class:{active:!(s.key in e.chartSelectedLegends)||e.chartSelectedLegends[s.key]},on:{click:function(n){return e.$emit("legendClick",s)}}},[e._v(" "+e._s(s.prettyName)+" ")])]),t("td",{staticClass:"temp-power"},[t("span",{staticClass:"legend-item toggle",class:{active:e.chartSelectedLegends[s.key+"Power"]},on:{click:function(n){return e.$emit("legendPowerClick",s)}}},[s.power<=0&&s.target<=0?t("span",[e._v("off")]):e._e(),s.target>0?t("span",[e._v(" "+e._s(s.power?(s.power*100).toFixed():0)),t("small",[e._v("%")])]):e._e()])]),e.showRateOfChange?t("td",{staticClass:"text-no-wrap"},[t("span",{staticClass:"legend-item toggle",class:{active:e.chartSelectedLegends[s.key+"Power"]},on:{click:function(n){return e.$emit("legendPowerClick",s)}}},[t("span",[e._v(e._s(e.getRateOfChange(s))),t("small",[e._v("°C/s")])])])]):e._e(),t("td",{staticClass:"temp-actual"},[e._v(" "+e._s(s.temperature?s.temperature.toFixed(1):0)),t("small",[e._v("°C")])]),t("td",[e._v("/")]),t("td",[e.klippyReady?t(PS,{staticClass:"v-input--width-x-small",attrs:{value:s.target,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqualOrZero(s.targetMinTemp?Math.max(s.targetMinTemp,s.minTemp):s.minTemp),e.$rules.numberLessThanOrEqualOrZero(s.targetMaxTemp?Math.min(s.targetMaxTemp,s.maxTemp):s.maxTemp)],type:"number",outlined:"",dense:"","single-line":"","hide-details":"auto",suffix:"°C"},on:{submit:function(n){return e.setHeaterTargetTemp(s.name,+n)}}}):e._e()],1)])}),e._l(e.fans,function(s){return t("tr",{key:s.key},[t("td",[t(S,{class:{spin:s.speed>0&&s.target>0},attrs:{small:"",color:s.color}},[e._v(" $fan ")])],1),t("td",{staticClass:"temp-name"},[t("span",{staticClass:"legend-item toggle",class:{active:!(s.key in e.chartSelectedLegends)||e.chartSelectedLegends[s.key]},on:{click:function(n){return e.$emit("legendClick",s)}}},[e._v(" "+e._s(s.prettyName)+" ")])]),t("td",{staticClass:"temp-power"},[s.speed?t("span",{staticClass:"legend-item toggle",class:{active:e.chartSelectedLegends[s.key+"Speed"]},on:{click:function(n){return e.$emit("legendPowerClick",s)}}},[s.speed>0&&(s.target>0||!s.target)?t("span",[e._v(" "+e._s((s.speed*100).toFixed(0))),t("small",[e._v("%")])]):e._e(),s.speed<=0&&s.target&&s.target>0?t("span",[e._v(" "+e._s(e.$t("app.printer.state.standby"))+" ")]):e._e(),s.speed<=0&&(s.target&&s.target<=0||!s.target)?t("span",[e._v("off")]):e._e()]):e._e()]),e.showRateOfChange?t("td",{staticClass:"text-no-wrap"},[t("span",{staticClass:"legend-item toggle",class:{active:e.chartSelectedLegends[s.key+"Power"]},on:{click:function(n){return e.$emit("legendPowerClick",s)}}},[t("span",[e._v(e._s(e.getRateOfChange(s))),t("small",[e._v("°C/s")])])])]):e._e(),t("td",{staticClass:"temp-actual"},[s.temperature?t("span",[e._v(" "+e._s(s.temperature.toFixed(1))),t("small",[e._v("°C")]),s.humidity!=null&&e.showRelativeHumidity?t("small",[t("br"),e._v(e._s(s.humidity.toFixed(1))+" %")]):e._e(),s.pressure!=null&&e.showBarometricPressure?t("small",[t("br"),e._v(e._s(e.$filters.getReadableAtmosphericPressureString(s.pressure)))]):e._e(),s.gas!=null&&e.showGasResistance?t("small",[t("br"),e._v(e._s(e.$filters.getReadableResistanceString(s.gas)))]):e._e()]):t("span",[e._v(" - ")])]),t("td",[e._v("/")]),t("td",[e.klippyReady&&s.type==="temperature_fan"?t(PS,{staticClass:"v-input--width-x-small",attrs:{value:s.target,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqualOrZero(s.minTemp),e.$rules.numberLessThanOrEqualOrZero(s.maxTemp)],type:"number",outlined:"",dense:"","single-line":"","hide-details":"auto",suffix:"°C"},on:{submit:function(n){return e.setFanTargetTemp(s.name,+n)}}}):e._e()],1)])}),e._l(e.sensors,function(s){return t("tr",{key:s.key},[t("td",[t(S,{attrs:{small:"",color:s.color}},[e._v(" $thermometer ")])],1),t("td",{staticClass:"temp-name"},[t("span",{staticClass:"legend-item toggle",class:{active:!(s.key in e.chartSelectedLegends)||e.chartSelectedLegends[s.key]},on:{click:function(n){return e.$emit("legendClick",s)}}},[e._v(" "+e._s(s.prettyName)+" ")])]),t("td",{staticClass:"temp-power"},[e._v(" ")]),e.showRateOfChange?t("td",{staticClass:"text-no-wrap"},[t("span",{staticClass:"legend-item"},[e._v(" "+e._s(e.getRateOfChange(s))),t("small",[e._v("°C/s")])])]):e._e(),t("td",{staticClass:"temp-actual"},[t(Oe,{attrs:{left:"",disabled:[s.measured_max_temp,s.measured_min_temp].every(n=>n===void 0)},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[s.temperature!=null?t("span",[e._v(" "+e._s(s.temperature.toFixed(1))),t("small",[e._v("°C")]),s.humidity!=null&&e.showRelativeHumidity?t("small",[t("br"),e._v(e._s(s.humidity.toFixed(1))+" %")]):e._e(),s.pressure!=null&&e.showBarometricPressure?t("small",[t("br"),e._v(e._s(e.$filters.getReadableAtmosphericPressureString(s.pressure)))]):e._e(),s.gas!=null&&e.showGasResistance?t("small",[t("br"),e._v(e._s(e.$filters.getReadableResistanceString(s.gas)))]):e._e(),s.current_z_adjust!=null?t("small",[t("br"),e._v(e._s(e.$filters.getReadableLengthString(s.current_z_adjust,!0)))]):e._e()]):t("span",[e._v(" - ")])])]}}],null,!0)},[[s.measured_max_temp,s.measured_min_temp].every(n=>n!==void 0)?t("span",[t("span",[e._v(e._s(e.$t("app.general.label.high"))+": "+e._s(s.measured_max_temp.toFixed(1))+"°C")]),t("br"),t("span",[e._v(e._s(e.$t("app.general.label.low"))+": "+e._s(s.measured_min_temp.toFixed(1))+"°C")])]):e._e()])],1),t("td",[e._v(" ")]),t("td",[e._v(" ")])])})],2):e._e()])],1)},iee=[],aee=E(i_,nee,iee,!1,null,"77bc9721");const oee=aee.exports;var lee=Object.defineProperty,cee=Object.getOwnPropertyDescriptor,Ob=(r,e,t,s)=>{for(var n=s>1?void 0:s?cee(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&&lee(e,t,n),n};let bu=class extends Y(J,lt){constructor(){super(...arguments);m(this,"menuCollapsed");m(this,"thermalChartElement")}get chartReady(){return this.$store.state.socket.acceptingNotifications&&this.$store.state.socket.ready&&this.$store.state.charts.ready&&this.klippyReady}legendToggleSelect(t){this.chartVisible&&("target"in t&&this.thermalChartElement.legendToggleSelect(t.key+"Target"),this.thermalChartElement.legendToggleSelect(t.key))}legendTogglePowerSelect(t){if(this.chartVisible){const s="speed"in t?t.key+"Speed":t.key+"Power";this.thermalChartElement.legendToggleSelect(s)}}get chartVisible(){return this.$store.state.config.uiSettings.general.chartVisible}set chartVisible(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.chartVisible",value:t,server:!0})}get showRateOfChange(){return this.$store.state.config.uiSettings.general.showRateOfChange}set showRateOfChange(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showRateOfChange",value:t,server:!0})}get showRelativeHumidity(){return this.$store.state.config.uiSettings.general.showRelativeHumidity}set showRelativeHumidity(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showRelativeHumidity",value:t,server:!0})}get showBarometricPressure(){return this.$store.state.config.uiSettings.general.showBarometricPressure}set showBarometricPressure(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showBarometricPressure",value:t,server:!0})}get showGasResistance(){return this.$store.state.config.uiSettings.general.showGasResistance}set showGasResistance(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showGasResistance",value:t,server:!0})}handleApplyPreset(t){if(t){if(t.values)for(const s in t.values){const n=t.values[s];n.type==="heater"&&n.active&&n.value>-1&&this.sendGcode(`SET_HEATER_TEMPERATURE HEATER=${s} TARGET=${n.value}`),n.type==="fan"&&n.active&&n.value>-1&&this.sendGcode(`SET_TEMPERATURE_FAN_TARGET TEMPERATURE_FAN=${s} TARGET=${n.value}`)}t.gcode&&this.sendGcode(t.gcode)}}async handleApplyOff(){(!["printing","busy","paused"].includes(this.$store.getters["printer/getPrinterState"])||await this.$confirm(this.$tc("app.general.label.heaters_busy"),{title:this.$tc("app.general.simple_form.msg.confirm"),color:"card-heading",icon:"$error"}))&&this.sendGcode("TURN_OFF_HEATERS")}};Ob([w({type:Boolean})],bu.prototype,"menuCollapsed",2);Ob([Te("thermalchart")],bu.prototype,"thermalChartElement",2);bu=Ob([A({components:{ThermalChart:zQ,TemperatureTargets:oee,TemperaturePresetsMenu:mP}})],bu);var uee=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.general.title.temperature"),icon:"$fire","help-tooltip":e.$t("app.chart.tooltip.help"),lazy:!1,draggable:"","layout-path":"dashboard.temperature-card"},scopedSlots:e._u([{key:"menu",fn:function(){return[t(Sn,{attrs:{collapsed:e.menuCollapsed}},[t("temperature-presets-menu",{on:{applyOff:e.handleApplyOff,applyPreset:e.handleApplyPreset}})],1),t(Dt,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Be,e._g(e._b({staticClass:"ms-1 my-1",attrs:{fab:"","x-small":"",text:""}},"v-btn",n,!1),s),[t(S,[e._v(" $cog ")])],1)]}}])},[t(Mt,{attrs:{dense:""}},[t(Se,{on:{click:function(s){e.chartVisible=!e.chartVisible}}},[t(nr,{staticClass:"my-0"},[t(ir,{attrs:{"input-value":e.chartVisible}})],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.setting.label.show_chart"))+" ")])],1)],1),t(Se,{on:{click:function(s){e.showRateOfChange=!e.showRateOfChange}}},[t(nr,{staticClass:"my-0"},[t(ir,{attrs:{"input-value":e.showRateOfChange}})],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.setting.label.show_rate_of_change"))+" ")])],1)],1),t(Se,{on:{click:function(s){e.showRelativeHumidity=!e.showRelativeHumidity}}},[t(nr,{staticClass:"my-0"},[t(ir,{attrs:{"input-value":e.showRelativeHumidity}})],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.setting.label.show_relative_humidity"))+" ")])],1)],1),t(Se,{on:{click:function(s){e.showBarometricPressure=!e.showBarometricPressure}}},[t(nr,{staticClass:"my-0"},[t(ir,{attrs:{"input-value":e.showBarometricPressure}})],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.setting.label.show_barometric_pressure"))+" ")])],1)],1),t(Se,{on:{click:function(s){e.showGasResistance=!e.showGasResistance}}},[t(nr,{staticClass:"my-0"},[t(ir,{attrs:{"input-value":e.showGasResistance}})],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.setting.label.show_gas_resistance"))+" ")])],1)],1)],1)],1)]},proxy:!0}])},[t("temperature-targets",{on:{legendClick:e.legendToggleSelect,legendPowerClick:e.legendTogglePowerSelect}}),e.chartReady&&e.chartVisible?[t(R),t("thermal-chart",{ref:"thermalchart",attrs:{height:e.isMobileViewport?"180px":"260px"}})]:e._e()],2)},dee=[],pee=E(bu,uee,dee,!1,null,null);const hee=pee.exports;var fee=Object.defineProperty,mee=Object.getOwnPropertyDescriptor,wd=(r,e,t,s)=>{for(var n=s>1?void 0:s?mee(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&&fee(e,t,n),n};let il=class extends b{constructor(){super(...arguments);m(this,"camera");m(this,"crossorigin");m(this,"streamingElement");m(this,"cameraTransformStyle","");m(this,"animating",!1)}onCamera(){this.stopPlayback(),this.checkPlayback()}get apiUrl(){return this.$store.state.config.apiUrl}get cameraStyle(){return{transform:this.cameraTransformStyle||void 0}}createTransform(){const e=this.streamingElement,{rotation:t,flip_horizontal:s,flip_vertical:n}=this.camera,i=[],{clientWidth:a,clientHeight:o}=e,l=t===0||t===180||o===0||a===0?1:o<a?o/a:a/o;return(l!==1||s)&&i.push(`scaleX(${s?-l:l})`),(l!==1||n)&&i.push(`scaleY(${n?-l:l})`),t!==0&&i.push(`rotate(${t}deg`),i.join(" ")}updateCameraTransformStyle(){requestAnimationFrame(()=>{this.animating&&(this.streamingElement&&(this.cameraTransformStyle=this.createTransform()),this.updateCameraTransformStyle())})}created(){this.animating=!0,this.updateCameraTransformStyle()}mounted(){document.addEventListener("visibilitychange",this.checkPlayback,!1),this.checkPlayback()}beforeDestroy(){this.animating=!1,document.removeEventListener("visibilitychange",this.checkPlayback),this.stopPlayback()}checkPlayback(){document.hidden?this.stopPlayback():this.startPlayback()}buildAbsoluteUrl(e){const{origin:t}=new URL(document.URL);return new URL(e,t)}startPlayback(){}stopPlayback(){}};wd([w({type:Object,required:!0})],il.prototype,"camera",2);wd([w({type:String})],il.prototype,"crossorigin",2);wd([Te("streamingElement")],il.prototype,"streamingElement",2);wd([Ae("camera")],il.prototype,"onCamera",1);il=wd([A],il);var gee=Object.defineProperty,vee=Object.getOwnPropertyDescriptor,Dl=(r,e,t,s)=>{for(var n=s>1?void 0:s?vee(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&&gee(e,t,n),n};let Oi=class extends b{constructor(){super(...arguments);m(this,"camera");m(this,"fullscreen");m(this,"crossorigin");m(this,"componentInstance");m(this,"rawCameraUrl",null);m(this,"framesPerSecond",null)}mounted(){this.setupFrameEvents()}setupFrameEvents(){var t;(t=this.$listeners)!=null&&t.frame&&this.componentInstance&&(this.componentInstance.streamingElement instanceof HTMLImageElement?this.componentInstance.streamingElement.addEventListener("load",()=>this.handleFrame()):this.componentInstance.streamingElement instanceof HTMLVideoElement&&this.handleFrame(!0))}handleFrame(t=!1){var n;const s=(n=this.componentInstance)==null?void 0:n.streamingElement;s&&this.$emit("frame",s),t&&requestAnimationFrame(()=>this.handleFrame(this.componentInstance.animating))}onCamera(){this.rawCameraUrl="",this.framesPerSecond=""}get fullscreenMode(){return this.$store.state.config.uiSettings.general.cameraFullscreenAction}get cameraComponent(){if(this.camera.service){const t=`${this.$filters.startCase(this.camera.service).replace(/ /g,"")}Camera`;if(t in bw)return bw[t]}}};Dl([w({type:Object,required:!0})],Oi.prototype,"camera",2);Dl([w({type:Boolean})],Oi.prototype,"fullscreen",2);Dl([w({type:String})],Oi.prototype,"crossorigin",2);Dl([Te("component-instance")],Oi.prototype,"componentInstance",2);Dl([Ae("camera")],Oi.prototype,"onCamera",1);Oi=Dl([A({})],Oi);var _ee=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Tt,e._g({staticClass:"camera-container",attrs:{elevation:0}},e.$listeners),[e.cameraComponent?[t(e.cameraComponent,{ref:"component-instance",tag:"component",staticClass:"camera-image",attrs:{camera:e.camera,crossorigin:e.crossorigin},on:{"raw-camera-url":function(s){e.rawCameraUrl=s},"frames-per-second":function(s){e.framesPerSecond=s},playback:function(s){return e.setupFrameEvents()}}})]:t("div",[e._v(" Camera service not supported! ")]),e.camera.name?t("div",{staticClass:"camera-name"},[e._v(" "+e._s(e.camera.name)+" ")]):e._e(),e.framesPerSecond?t("div",{staticClass:"camera-frames"},[e._v(" fps: "+e._s(e.framesPerSecond)+" ")]):e._e(),!e.fullscreen&&(e.fullscreenMode==="embed"||!e.rawCameraUrl)&&e.camera.service!=="device"?t("div",{staticClass:"camera-fullscreen"},[t("a",{attrs:{href:`/#/camera/${encodeURI(e.camera.uid)}`}},[t(S,[e._v("$fullScreen")])],1)]):e.rawCameraUrl?t("div",{staticClass:"camera-fullscreen"},[t("a",{attrs:{href:e.rawCameraUrl,target:"_blank"}},[t(S,[e._v("$openInNew")])],1)]):e._e()],2)},yee=[],bee=E(Oi,_ee,yee,!1,null,"81f09182");const Nm=bee.exports;var $ee=Object.defineProperty,wee=Object.getOwnPropertyDescriptor,See=(r,e,t,s)=>{for(var n=s>1?void 0:s?wee(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&&$ee(e,t,n),n};let a_=class extends Y(J){get activeCamera(){const r=this.$store.state.webcams.activeWebcam,e=this.$store.getters["webcams/getWebcamById"](r);return e?e.name:this.$t("app.general.btn.all")}get enabledWebcams(){return this.$store.getters["webcams/getEnabledWebcams"]}get availableCameras(){return[{uid:"all",name:this.$t("app.general.btn.all").toString()},...this.enabledWebcams]}};a_=See([A({})],a_);var xee=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Dt,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","min-width":"150"},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.activeCamera)+" "),t(S,{staticClass:"ml-1",class:{"rotate-180":i},attrs:{small:""}},[e._v(" $chevronDown ")])],1)]}}])},[t(Mt,{attrs:{dense:""}},e._l(e.availableCameras,function(s){return t(Se,{key:s.uid,on:{click:function(n){return e.$emit("select",s.uid)}}},[t(qe,[t(S,[e._v(" $camera ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(s.name)+" ")])],1)],1)}),1)],1)},Cee=[],Pee=E(a_,xee,Cee,!1,null,null);const Aee=Pee.exports;var Lee=Object.defineProperty,Eee=Object.getOwnPropertyDescriptor,Oee=(r,e,t,s)=>{for(var n=s>1?void 0:s?Eee(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&&Lee(e,t,n),n};let o_=class extends Y(J){constructor(){super(...arguments);m(this,"collapsed",!1)}get cols(){if(this.cameras.length===1)return 12;if(this.cameras.length<=2)return 6;if(this.cameras.length>2)return 4}get cameras(){return this.$store.getters["webcams/getVisibleWebcams"]}handleCameraSelect(t){this.$store.dispatch("webcams/updateActiveWebcam",t)}};o_=Oee([A({components:{CameraItem:Nm,CameraMenu:Aee}})],o_);var Tee=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$tc("app.general.title.camera",2),icon:"$camera",lazy:!1,draggable:"","layout-path":"dashboard.camera-card"},on:{collapsed:function(s){e.collapsed=s}},scopedSlots:e._u([{key:"menu",fn:function(){return[t("camera-menu",{on:{select:e.handleCameraSelect}})]},proxy:!0}])},[e.cameras.length>1?t(ie,{staticClass:"ma-2",attrs:{justify:"space-around"}},[e._l(e.cameras,function(s){return[e.collapsed?e._e():t(B,{key:s.uid,attrs:{cols:"12",sm:e.cols}},[t("camera-item",{attrs:{camera:s}})],1)]})],2):e._e(),!e.collapsed&&e.cameras.length===1?t("camera-item",{attrs:{camera:e.cameras[0]}}):e._e()],1)},kee=[],Dee=E(o_,Tee,kee,!1,null,null);const Mee=Dee.exports,Ree=/params\.(\w+)(.*)/gi,Iee=/\|\s*default\s*\(\s*((["'])(?:\\\2|.)*?\2|-?[0-9][^,)]*)/i,Fee=r=>{const e=Iee.exec(r);return(e&&e[1]||"").trim()},Hee=r=>[...r.matchAll(Ree)].map(([,e,t])=>({name:e,value:Fee(t)}));var jee=Object.defineProperty,Bee=Object.getOwnPropertyDescriptor,gP=(r,e,t,s)=>{for(var n=s>1?void 0:s?Bee(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&&jee(e,t,n),n};let Xh=class extends Y(J){constructor(){super(...arguments);m(this,"macro");m(this,"params",{})}get isMacroWithRawParam(){return["m117","m118"].includes(this.macro.name)}get isMacroForGcodeCommand(){return/^[gm]\d+$/i.test(this.macro.name)}get filteredListeners(){const{click:t,...s}=this.$listeners;return s}get paramList(){return Object.keys(this.params)}get runCommand(){const t=this.macro.name.toUpperCase(),s=this.isMacroForGcodeCommand?"":"=";if(this.params){const n=this.isMacroWithRawParam?this.params.message.value.toString():Object.entries(this.params).map(([i,a])=>`${i.toUpperCase()}${s}${a.value}`).join(" ");if(n)return`${t} ${n}`}return t}get borderStyle(){return this.macro&&this.macro.color!==""?`border-color: ${this.macro.color} !important; border-left: solid 4px ${this.macro.color} !important;`:""}handleClick(){this.$emit("click",this.macro.name.toUpperCase())}mounted(){if(!this.macro.config||!this.macro.config.gcode)return[];if(this.isMacroWithRawParam)this.$set(this.params,"message",{value:"",reset:""});else for(const{name:t,value:s}of Hee(this.macro.config.gcode))this.params[t]||this.$set(this.params,t,{value:s,reset:s})}};gP([w({type:Object,required:!0})],Xh.prototype,"macro",2);Xh=gP([A({})],Xh);var Nee=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Yo,{attrs:{divided:""}},[t(M,e._g({style:e.borderStyle,attrs:{disabled:e.macro.disabledWhilePrinting&&e.printerPrinting||!e.klippyReady},on:{click:e.handleClick}},e.filteredListeners),[e._t("default")],2),e.paramList.length>0?t(Dt,{attrs:{left:"","offset-y":"",transition:"slide-y-transition","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n,value:i}){return[t(M,e._g(e._b({staticClass:"px-0",attrs:{"min-width":"24",disabled:e.macro.disabledWhilePrinting&&e.printerPrinting||!e.klippyReady}},"app-btn",n,!1),s),[t(S,{class:{"rotate-180":i},attrs:{small:""}},[e._v(" $chevronDown ")])],1)]}}],null,!1,3485934805)},[t(Ll,{on:{submit:function(s){return s.preventDefault(),e.$emit("click",e.runCommand)}}},[t(He,[t(Le,{staticClass:"pb-3 px-3"},[t(Vr,{staticStyle:{"max-width":"150px"},attrs:{wrap:""}},e._l(e.paramList,function(s,n){return t(ae,{key:s,staticClass:"console-command",class:{"mb-3":n<e.paramList.length-1},attrs:{label:s,outlined:"",dense:"","hide-details":"auto",spellcheck:"false"},scopedSlots:e._u([{key:"append",fn:function(){return[t(M,{staticStyle:{"margin-top":"-4px","margin-right":"-6px"},attrs:{color:"",icon:"",small:""},on:{click:function(i){e.params[s].value=e.params[s].reset}}},[t(S,{attrs:{small:""}},[e._v(" $reset ")])],1)]},proxy:!0}],null,!0),model:{value:e.params[s].value,callback:function(i){e.$set(e.params[s],"value",i)},expression:"params[param].value"}})}),1)],1),t(R),t(pd,{staticClass:"px-3 py-3"},[t(M,{attrs:{block:"",type:"submit"}},[e._v(" "+e._s(e.$t("app.general.btn.send"))+" ")])],1)],1)],1)],1):e._e()],1)},Vee=[],zee=E(Xh,Nee,Vee,!1,null,"66683a69");const Uee=zee.exports;var Wee=Object.defineProperty,Gee=Object.getOwnPropertyDescriptor,qee=(r,e,t,s)=>{for(var n=s>1?void 0:s?Gee(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&&Wee(e,t,n),n};let l_=class extends Y(J){get macros(){return this.$store.getters["macros/getVisibleMacros"]}get expanded(){let e=this.$store.state.macros.expanded;return e=e.filter(t=>t<=this.macros.length),e}set expanded(e){this.$store.dispatch("macros/saveExpanded",e)}handleEditCategory(){this.$router.push("/settings/#macros")}};l_=qee([A({components:{MacroBtn:Uee}})],l_);var Zee=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Sm,{attrs:{accordion:"",multiple:""},model:{value:e.expanded,callback:function(s){e.expanded=s},expression:"expanded"}},e._l(e.macros,function(s){return t(xm,{key:`category-${s.id}`},[t(Pm,{scopedSlots:e._u([{key:"actions",fn:function(){return[t(S,{staticClass:"mr-2",attrs:{small:""}},[e._v(" $expand ")])]},proxy:!0}],null,!0)},[t("div",[e._v(" "+e._s(s.name??e.$t("app.general.label.uncategorized"))+" "),t(hr,{staticClass:"ml-2",attrs:{small:""}},[e._v(" "+e._s(s.macros.length)+" ")]),t(M,{staticClass:"ml-2",attrs:{icon:"",text:"",small:"",color:""},on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.handleEditCategory.apply(null,arguments)}}},[t(S,{attrs:{small:""}},[e._v(" $cog ")])],1)],1)]),t(Cm,e._l(s.macros,function(n){return t(Oe,{key:`category-${n.name}`,attrs:{top:"",disabled:!n.config.description||n.config.description==="G-Code macro"},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:a}){return[t("macro-btn",e._g(e._b({staticClass:"me-2 mb-2 d-inline-block",attrs:{macro:n,loading:e.hasWait(`${e.$waits.onMacro}${n.name}`)},on:{click:function(o){return e.sendGcode(o,`${e.$waits.onMacro}${n.name}`)}}},"macro-btn",a,!1),i),[e._v(" "+e._s(n.alias||n.name)+" ")])]}}],null,!0)},[t("span",[e._v(e._s(n.config.description))])])}),1)],1)}),1)],1)},Yee=[],Kee=E(l_,Zee,Yee,!1,null,"ee45ed90");const Xee=Kee.exports;var Jee=Object.defineProperty,Qee=Object.getOwnPropertyDescriptor,ete=(r,e,t,s)=>{for(var n=s>1?void 0:s?Qee(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&&Jee(e,t,n),n};let c_=class extends b{};c_=ete([A({components:{Macros:Xee}})],c_);var tte=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.general.title.macros"),icon:"$fileCode",draggable:"","layout-path":"dashboard.macros-card"}},[t("macros")],1)},rte=[],ste=E(c_,tte,rte,!1,null,null);const nte=ste.exports;var ite=Object.defineProperty,ate=Object.getOwnPropertyDescriptor,Ml=(r,e,t,s)=>{for(var n=s>1?void 0:s?ate(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&&ite(e,t,n),n};let Ti=class extends b{constructor(){super(...arguments);m(this,"value");m(this,"input");m(this,"disabled");m(this,"autofocus");m(this,"newValue","");m(this,"commandHistoryCount",he.CONSOLE_COMMAND_HISTORY);m(this,"history",[]);m(this,"originalHistory",[]);m(this,"isFirst",!0)}onValueChange(t){t?(this.newValue=t,this.input.focus()):this.newValue=""}mounted(){this.newValue=this.value;const t=this.$store.state.console.commandHistory;this.history=[...t],this.originalHistory=[...t]}emitChange(t){this.newValue=t,this.$emit("input",t)}emitSend(t){t&&t.length>0&&(this.history.length>=this.commandHistoryCount&&this.originalHistory.pop(),this.originalHistory.unshift(t),this.$store.dispatch("console/onUpdateCommandHistory",[...this.originalHistory]),this.history=[...this.originalHistory],this.isFirst=!0,this.$emit("send",t))}historyUp(){if(this.history.length>=1){if(!this.isFirst){const t=this.history.shift();this.history.push(t)}this.emitChange(this.history[0]),this.isFirst=!1}}historyDown(){if(this.history.length>=1){if(!this.isFirst){const t=this.history.pop();this.history.unshift(t)}this.emitChange(this.history[0]),this.isFirst=!1}}get availableCommands(){return this.$store.getters["printer/getAvailableCommands"]}autoComplete(){const t=this.availableCommands;if(this.newValue.length){const s=Object.keys(t).filter(n=>n.startsWith(this.newValue.toUpperCase()));s.length===1?this.emitChange(s[0]):s.forEach(n=>{const i=`// ${n}: ${t[n].help??""}`;this.$store.dispatch("console/onAddConsoleEntry",{message:i,type:"response"})})}}};Ml([w({type:String})],Ti.prototype,"value",2);Ml([Te("input")],Ti.prototype,"input",2);Ml([w({type:Boolean})],Ti.prototype,"disabled",2);Ml([w({type:Boolean})],Ti.prototype,"autofocus",2);Ml([Ae("value")],Ti.prototype,"onValueChange",1);Ti=Ml([A({})],Ti);var ote=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(fd,[t(ie,{attrs:{align:"center"}},[t(B,[t(Lm,{ref:"input",staticClass:"console-command",attrs:{rows:1,value:e.newValue,items:e.history,disabled:e.disabled,autofocus:e.autofocus,"auto-grow":"",clearable:"",outlined:"","single-line":"",dense:"","hide-details":"",spellcheck:"false"},on:{input:e.emitChange,keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey?null:e.emitSend(e.newValue)},keydown:[function(s){if(!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey)return null;s.preventDefault()},function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"up",38,s.key,["Up","ArrowUp"])||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey?null:(s.preventDefault(),e.historyUp())},function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"down",40,s.key,["Down","ArrowDown"])||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey?null:(s.preventDefault(),e.historyDown())},function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"tab",9,s.key,"Tab")?null:(s.preventDefault(),e.autoComplete())}]}})],1),t(B,{attrs:{cols:"auto"}},[t(M,{attrs:{disabled:e.disabled},on:{click:function(s){return e.emitSend(e.newValue)}}},[e._v(" "+e._s(e.$t("app.general.btn.send"))+" ")])],1)],1)],1)},lte=[],cte=E(Ti,ote,lte,!1,null,"53e7b92a");const ute=cte.exports;var dte=Object.defineProperty,pte=Object.getOwnPropertyDescriptor,vP=(r,e,t,s)=>{for(var n=s>1?void 0:s?pte(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&&dte(e,t,n),n};let Jh=class extends b{constructor(){super(...arguments);m(this,"value")}get knownCommands(){return this.$store.getters["console/getAllKnownCommands"]}get itemMessage(){let t=this.value.message;return this.value.type==="response"&&(t=this.value.message.replace(/([A-Z0-9_]{2,})/gm,(s,n)=>n in this.knownCommands?`<a class="primary--text text--lighten-1">${n.toUpperCase()}</a>`:s)),this.value.type==="command"?`${he.CONSOLE_SEND_PREFIX}<a class="primary--text text--lighten-1">${t}</a>`:t}get itemTime(){return this.value.time?this.$filters.formatTimeWithSeconds(this.value.time*1e3):""}get itemClass(){return this.value.message.startsWith("!!")?{"error--text":!0}:this.value.type==="command"?{"primary--text":!0}:{"secondary--text":!0}}itemClick(t){if(t.target instanceof HTMLAnchorElement){const s=t.target.innerHTML.replace(/<br>/g,`
|
||
`).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,null,"68bd3bca");const _P=$te.exports;var wte=Object.defineProperty,Ste=Object.getOwnPropertyDescriptor,Vm=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ste(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&&wte(e,t,n),n};let al=class extends b{constructor(){super(...arguments);m(this,"fullscreen");m(this,"consoleElement");m(this,"scrollingPaused",!1)}get filters(){return this.$store.getters["console/getFilters"]}get hideTempWaits(){return this.$store.state.config.uiSettings.general.hideTempWaits}set hideTempWaits(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.hideTempWaits",value:t,server:!0})}get flipLayout(){return this.$store.state.config.uiSettings.general.flipConsoleLayout}set flipLayout(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.flipConsoleLayout",value:t,server:!0}),this.consoleElement.flipLayout=t}get items(){return this.$store.getters["console/getConsoleEntries"]}get inLayout(){return this.$store.state.config.layoutMode}get autoScroll(){return this.$store.state.console.autoScroll}set autoScroll(t){this.$store.dispatch("console/onUpdateAutoScroll",t),t&&this.consoleElement.scrollToLatest(!0)}inLayoutChange(t){t||this.consoleElement.scrollToLatest()}handleCollapseChange(t){t||this.consoleElement.scrollToLatest()}handleClear(){this.$store.dispatch("console/onClear")}handleToggleFilter(t){this.$store.dispatch("console/onSaveFilter",{...t,enabled:!t.enabled})}};Vm([w({type:Boolean})],al.prototype,"fullscreen",2);Vm([Te("console")],al.prototype,"consoleElement",2);Vm([Ae("inLayout")],al.prototype,"inLayoutChange",1);al=Vm([A({components:{Console:_P}})],al);var xte=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.general.title.console"),icon:"$console","help-tooltip":e.$t("app.console.tooltip.help"),"card-classes":"d-flex flex-column","content-classes":"flex-grow-1 flow-shrink-0","menu-breakpoint":"none","menu-icon":"$cog",draggable:!e.fullscreen,collapsable:!e.fullscreen,"layout-path":"dashboard.console-card"},on:{collapsed:e.handleCollapseChange},scopedSlots:e._u([{key:"menu",fn:function(){return[e.scrollingPaused?t(M,{staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(s){return e.consoleElement.scrollToLatest(!0)}}},[t(S,[e._v(e._s(e.flipLayout?"$up":"$down"))])],1):e._e(),e.fullscreen?e._e():t(M,{staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(s){return e.$filters.routeTo(e.$router,"/console")}}},[t(S,[e._v("$fullScreen")])],1),t(M,{staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:e.handleClear}},[t(S,[e._v("$delete")])],1),t(Dt,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Be,e._g(e._b({staticClass:"ms-1 my-1",attrs:{fab:"","x-small":"",text:""}},"v-btn",n,!1),s),[t(S,[e._v(" $cog ")])],1)]}}])},[t(Mt,{attrs:{dense:""}},[t(Se,{on:{click:function(s){e.hideTempWaits=!e.hideTempWaits}}},[t(nr,{staticClass:"my-0"},[t(ir,{attrs:{"input-value":e.hideTempWaits}})],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.console.label.hide_temp_waits"))+" ")])],1)],1),t(Se,{on:{click:function(s){e.autoScroll=!e.autoScroll}}},[t(nr,{staticClass:"my-0"},[t(ir,{attrs:{"input-value":e.autoScroll}})],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.console.label.auto_scroll"))+" ")])],1)],1),t(Se,{on:{click:function(s){e.flipLayout=!e.flipLayout}}},[t(nr,{staticClass:"my-0"},[t(ir,{attrs:{"input-value":e.flipLayout}})],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.console.label.flip_layout"))+" ")])],1)],1),e.filters&&e.filters.length?[t(R),e._l(e.filters,function(s){return t(Se,{key:s.id,on:{click:function(n){return e.handleToggleFilter(s)}}},[t(nr,{staticClass:"my-0"},[t(ir,{attrs:{"input-value":s.enabled}})],1),t(Ee,[t(xe,[e._v(" "+e._s(s.name)+" ")])],1)],1)})]:e._e()],2)],1)]},proxy:!0}])},[t("console",{ref:"console",attrs:{"scrolling-paused":e.scrollingPaused,items:e.items,fullscreen:e.fullscreen},on:{"update:scrollingPaused":function(s){e.scrollingPaused=s},"update:scrolling-paused":function(s){e.scrollingPaused=s}}})],1)},Cte=[],Pte=E(al,xte,Cte,!1,null,null);const yP=Pte.exports;var Ate=Object.defineProperty,Lte=Object.getOwnPropertyDescriptor,bP=(r,e,t,s)=>{for(var n=s>1?void 0:s?Lte(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&&Ate(e,t,n),n};let Qh=class extends Y(J,lt){constructor(){super(...arguments);m(this,"fan")}get prettyValue(){return this.value===0?this.$t("app.general.label.off"):`${this.value} %`}get value(){if(!this.fan.speed)return 0;const t=this.fan.speed/(this.fan.config.max_power||1);return Math.round(t*100)}handleChange(t){this.fan.type==="fan"&&(t=Math.ceil(t*2.55),this.sendGcode(`M106 S${t}`,`${this.$waits.onSetFanSpeed}${this.fan.name}`)),this.fan.type==="fan_generic"&&(t=t/100,this.sendGcode(`SET_FAN_SPEED FAN=${this.fan.name} SPEED=${t}`,`${this.$waits.onSetFanSpeed}${this.fan.name}`))}get rpm(){return this.fan.rpm?this.fan.rpm.toFixed()+" rpm":void 0}get customRules(){return{minFan:t=>{var n;const s=(((n=this.fan.config)==null?void 0:n.off_below)||0)*100;return s?(t=+t,t>=s||t===0||this.$t("app.general.simple_form.error.min_or_0",{min:s})):!0}}}};bP([w({type:Object,required:!0})],Qh.prototype,"fan",2);Qh=bP([A({})],Qh);var Ete=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.fan.controllable?t(Ft,{attrs:{suffix:"%",value:e.value,"reset-value":0,label:e.rpm?`${e.fan.prettyName} <small>${e.rpm}</small>`:e.fan.prettyName,rules:[e.customRules.minFan],disabled:!e.klippyReady,locked:e.isMobileViewport,loading:e.hasWait(`${e.$waits.onSetFanSpeed}${e.fan.name}`)},on:{submit:e.handleChange}}):t(Vr,{class:{"text--disabled":!e.klippyReady},attrs:{"align-center":"","justify-space-between":""}},[t("div",{staticClass:"text-body-1"},[e._v(" "+e._s(e.fan.prettyName)+" ")]),t("div",{staticClass:"ml-auto"},[e.rpm?t("small",{staticClass:"mr-2"},[e._v(e._s(e.rpm))]):e._e(),t("span",{staticClass:"focus--text",domProps:{innerHTML:e._s(e.prettyValue)}})])])],1)},Ote=[],Tte=E(Qh,Ete,Ote,!1,null,null);const kte=Tte.exports;var Dte=Object.defineProperty,Mte=Object.getOwnPropertyDescriptor,$P=(r,e,t,s)=>{for(var n=s>1?void 0:s?Mte(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&&Dte(e,t,n),n};let ef=class extends Y(J,lt){constructor(){super(...arguments);m(this,"pin")}get pwm(){return this.pin.pwm||this.pwmTypes.includes(this.pin.type)}get pwmTypes(){return["pwm_cycle_time","pwm_tool"]}get value(){return Math.round(this.pin.value*100)}get resetValue(){return Math.round(this.pin.resetValue/this.pin.scale*100)}handleChange(t){typeof t=="boolean"?t=t?this.pin.scale:0:t=Math.round(t*this.pin.scale)/100,this.sendGcode(`SET_PIN PIN=${this.pin.name} VALUE=${t}`,`${this.$waits.onSetOutputPin}${this.pin.name}`)}};$P([w({type:Object,required:!0})],ef.prototype,"pin",2);ef=$P([A({})],ef);var Rte=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.pwm?t(Ft,{attrs:{suffix:"%",label:e.pin.prettyName,min:0,max:100,value:e.value,"reset-value":e.resetValue,disabled:!e.klippyReady,locked:e.isMobileViewport,loading:e.hasWait(`${e.$waits.onSetOutputPin}${e.pin.name}`)},on:{submit:e.handleChange}}):t(hP,{attrs:{disabled:!e.klippyReady,label:e.pin.prettyName,value:e.pin.value>0,loading:e.hasWait(`${e.$waits.onSetOutputPin}${e.pin.name}`)},on:{input:e.handleChange}})],1)},Ite=[],Fte=E(ef,Rte,Ite,!1,null,null);const Hte=Fte.exports;/*!
|
||
* 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)}function Db(r,e,t,s,n,i,a,o,l,c){var u,d,p,h,f,g,v,y,C,x,$=e.type;if(e.constructor!==void 0)return null;(u=Pt.__b)&&u(e);try{e:if(typeof $=="function"){if(y=e.props,C=(u=$.contextType)&&s[u.__c],x=u?C?C.props.value:u.__p:s,t.__c?v=(d=e.__c=t.__c).__p=d.__E:("prototype"in $&&$.prototype.render?e.__c=d=new $(y,x):(e.__c=d=new Ho(y,x),d.constructor=$,d.render=Ute),C&&C.sub(d),d.props=y,d.state||(d.state={}),d.context=x,d.__n=s,p=d.__d=!0,d.__h=[]),d.__s==null&&(d.__s=d.state),$.getDerivedStateFromProps!=null&&gi(d.__s==d.state?d.__s=gi({},d.__s):d.__s,$.getDerivedStateFromProps(y,d.__s)),p)$.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&a.push(d);else{if($.getDerivedStateFromProps==null&&o==null&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(y,x),!o&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(y,d.__s,x)===!1){for(d.props=y,d.state=d.__s,d.__d=!1,d.__v=e,e.__e=l!=null?l!==t.__e?l:t.__e:null,e.__k=t.__k,u=0;u<e.__k.length;u++)e.__k[u]&&(e.__k[u].__p=e);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(y,d.__s,x)}for(h=d.props,f=d.state,d.context=x,d.props=y,d.state=d.__s,(u=Pt.__r)&&u(e),d.__d=!1,d.__v=e,d.__P=r,u=d.render(d.props,d.state,d.context),e.__k=kb(u!=null&&u.type==zm&&u.key==null?u.props.children:u),d.getChildContext!=null&&(s=gi(gi({},s),d.getChildContext())),p||d.getSnapshotBeforeUpdate==null||(g=d.getSnapshotBeforeUpdate(h,f)),PP(r,e,t,s,n,i,a,l,c),d.base=e.__e;u=d.__h.pop();)d.__s&&(d.state=d.__s),u.call(d);p||h==null||d.componentDidUpdate==null||d.componentDidUpdate(h,f,g),v&&(d.__E=d.__p=null)}else e.__e=zte(t.__e,e,t,s,n,i,a,c);(u=Pt.diffed)&&u(e)}catch(L){Pt.__e(L,e,t)}return e.__e}function AP(r,e){for(var t;t=r.pop();)try{t.componentDidMount()}catch(s){Pt.__e(s,t.__v)}Pt.__c&&Pt.__c(e)}function zte(r,e,t,s,n,i,a,o){var l,c,u,d,p=t.props,h=e.props;if(n=e.type==="svg"||n,r==null&&i!=null){for(l=0;l<i.length;l++)if((c=i[l])!=null&&(e.type===null?c.nodeType===3:c.localName===e.type)){r=c,i[l]=null;break}}if(r==null){if(e.type===null)return document.createTextNode(h);r=n?document.createElementNS("http://www.w3.org/2000/svg",e.type):document.createElement(e.type),i=null}return e.type===null?p!==h&&(i!=null&&(i[i.indexOf(r)]=null),r.data=h):e!==t&&(i!=null&&(i=Tb.slice.call(r.childNodes)),u=(p=t.props||$i).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,o||(d||u)&&(d&&u&&d.__html==u.__html||(r.innerHTML=d&&d.__html||"")),Vte(r,h,p,n,o),e.__k=e.props.children,d||PP(r,e,t,s,e.type!=="foreignObject"&&n,i,a,$i,o),o||("value"in h&&h.value!==void 0&&h.value!==r.value&&(r.value=h.value==null?"":h.value),"checked"in h&&h.checked!==void 0&&h.checked!==r.checked&&(r.checked=h.checked))),r}function LP(r,e,t){try{typeof r=="function"?r(e):r.current=e}catch(s){Pt.__e(s,t)}}function EP(r,e,t){var s,n,i;if(Pt.unmount&&Pt.unmount(r),(s=r.ref)&&LP(s,null,e),t||typeof r.type=="function"||(t=(n=r.__e)!=null),r.__e=r.l=null,(s=r.__c)!=null){if(s.componentWillUnmount)try{s.componentWillUnmount()}catch(a){Pt.__e(a,e)}s.base=s.__P=null}if(s=r.__k)for(i=0;i<s.length;i++)s[i]&&EP(s[i],e,t);n!=null&&xP(n)}function Ute(r,e,t){return this.constructor(r,t)}function Wte(r,e,t){var s,n,i;Pt.__p&&Pt.__p(r,e),n=(s=t===SP)?null:e.__k,r=ht(zm,null,[r]),i=[],Db(e,e.__k=r,n||$i,$i,e.ownerSVGElement!==void 0,n?null:Tb.slice.call(e.childNodes),i,!1,$i,s),AP(i,r)}Pt={},Ho.prototype.setState=function(r,e){var t=this.__s!==this.state&&this.__s||(this.__s=gi({},this.state));(typeof r!="function"||(r=r(t,this.props)))&&gi(t,r),r!=null&&this.__v&&(this.u=!1,e&&this.__h.push(e),t1(this))},Ho.prototype.forceUpdate=function(r){this.__v&&(r&&this.__h.push(r),this.u=!0,t1(this))},Ho.prototype.render=zm,tf=[],wP=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u_=Pt.debounceRendering,Pt.__e=function(r,e,t){for(var s;e=e.__p;)if((s=e.__c)&&!s.__p)try{if(s.constructor&&s.constructor.getDerivedStateFromError!=null)s.setState(s.constructor.getDerivedStateFromError(r));else{if(s.componentDidCatch==null)continue;s.componentDidCatch(r)}return t1(s.__E=s)}catch(n){r=n}throw r},SP=$i;function Gte(r,e){for(var t=0;t<e.length;t++){var s=e[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}function qte(r,e,t){return e&&Gte(r.prototype,e),r}function Ir(){return Ir=Object.assign||function(r){for(var e=arguments,t=1;t<arguments.length;t++){var s=e[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(r[n]=s[n])}return r},Ir.apply(this,arguments)}var Zte="[-\\+]?\\d+%?",Yte="[-\\+]?\\d*\\.\\d+%?",na="(?:"+Yte+")|(?:"+Zte+")",OP="[\\s|\\(]+("+na+")[,|\\s]+("+na+")[,|\\s]+("+na+")\\s*\\)?",TP="[\\s|\\(]+("+na+")[,|\\s]+("+na+")[,|\\s]+("+na+")[,|\\s]+("+na+")\\s*\\)?",Kte=new RegExp("rgb"+OP),Xte=new RegExp("rgba"+TP),Jte=new RegExp("hsl"+OP),Qte=new RegExp("hsla"+TP),Um="^(?:#?|0x?)",ia="([0-9a-fA-F]{1})",aa="([0-9a-fA-F]{2})",ere=new RegExp(Um+ia+ia+ia+"$"),tre=new RegExp(Um+ia+ia+ia+ia+"$"),rre=new RegExp(Um+aa+aa+aa+"$"),sre=new RegExp(Um+aa+aa+aa+aa+"$"),nre=2e3,ire=4e4,lp=Math.log,bo=Math.round,lc=Math.floor;function hs(r,e,t){return Math.min(Math.max(r,e),t)}function Tr(r,e){var t=r.indexOf("%")>-1,s=parseFloat(r);return t?e/100*s:s}function kr(r){return parseInt(r,16)}function Ji(r){return r.toString(16).padStart(2,"0")}var ko=function(){function r(t,s){this.$={h:0,s:0,v:0,a:1},t&&this.set(t),this.onChange=s,this.initialValue=Ir({},this.$)}var e=r.prototype;return e.set=function(s){if(typeof s=="string")/^(?:#?|0x?)[0-9a-fA-F]{3,8}$/.test(s)?this.hexString=s:/^rgba?/.test(s)?this.rgbString=s:/^hsla?/.test(s)&&(this.hslString=s);else if(typeof s=="object")s instanceof r?this.hsva=s.hsva:"r"in s&&"g"in s&&"b"in s?this.rgb=s:"h"in s&&"s"in s&&"v"in s?this.hsv=s:"h"in s&&"s"in s&&"l"in s?this.hsl=s:"kelvin"in s&&(this.kelvin=s.kelvin);else throw new Error("Invalid color value")},e.setChannel=function(s,n,i){var a;this[s]=Ir({},this[s],(a={},a[n]=i,a))},e.reset=function(){this.hsva=this.initialValue},e.clone=function(){return new r(this)},e.unbind=function(){this.onChange=void 0},r.hsvToRgb=function(s){var n=s.h/60,i=s.s/100,a=s.v/100,o=lc(n),l=n-o,c=a*(1-i),u=a*(1-l*i),d=a*(1-(1-l)*i),p=o%6,h=[a,u,c,c,d,a][p],f=[d,a,a,u,c,c][p],g=[c,c,d,a,a,u][p];return{r:hs(h*255,0,255),g:hs(f*255,0,255),b:hs(g*255,0,255)}},r.rgbToHsv=function(s){var n=s.r/255,i=s.g/255,a=s.b/255,o=Math.max(n,i,a),l=Math.min(n,i,a),c=o-l,u=0,d=o,p=o===0?0:c/o;switch(o){case l:u=0;break;case n:u=(i-a)/c+(i<a?6:0);break;case i:u=(a-n)/c+2;break;case a:u=(n-i)/c+4;break}return{h:u*60%360,s:hs(p*100,0,100),v:hs(d*100,0,100)}},r.hsvToHsl=function(s){var n=s.s/100,i=s.v/100,a=(2-n)*i,o=a<=1?a:2-a,l=o<1e-9?0:n*i/o;return{h:s.h,s:hs(l*100,0,100),l:hs(a*50,0,100)}},r.hslToHsv=function(s){var n=s.l*2,i=s.s*(n<=100?n:200-n)/100,a=n+i<1e-9?0:2*i/(n+i);return{h:s.h,s:hs(a*100,0,100),v:hs((n+i)/2,0,100)}},r.kelvinToRgb=function(s){var n=s/100,i,a,o;return n<66?(i=255,a=-155.25485562709179-.44596950469579133*(a=n-2)+104.49216199393888*lp(a),o=n<20?0:-254.76935184120902+.8274096064007395*(o=n-10)+115.67994401066147*lp(o)):(i=351.97690566805693+.114206453784165*(i=n-55)-40.25366309332127*lp(i),a=325.4494125711974+.07943456536662342*(a=n-50)-28.0852963507957*lp(a),o=255),{r:hs(lc(i),0,255),g:hs(lc(a),0,255),b:hs(lc(o),0,255)}},r.rgbToKelvin=function(s){for(var n=s.r,i=s.b,a=.4,o=nre,l=ire,c;l-o>a;){c=(l+o)*.5;var u=r.kelvinToRgb(c);u.b/u.r>=i/n?l=c:o=c}return c},qte(r,[{key:"hsv",get:function(){var s=this.$;return{h:s.h,s:s.s,v:s.v}},set:function(s){var n=this.$;if(s=Ir({},n,s),this.onChange){var i={h:!1,v:!1,s:!1,a:!1};for(var a in n)i[a]=s[a]!=n[a];this.$=s,(i.h||i.s||i.v||i.a)&&this.onChange(this,i)}else this.$=s}},{key:"hsva",get:function(){return Ir({},this.$)},set:function(s){this.hsv=s}},{key:"hue",get:function(){return this.$.h},set:function(s){this.hsv={h:s}}},{key:"saturation",get:function(){return this.$.s},set:function(s){this.hsv={s}}},{key:"value",get:function(){return this.$.v},set:function(s){this.hsv={v:s}}},{key:"alpha",get:function(){return this.$.a},set:function(s){this.hsv=Ir({},this.hsv,{a:s})}},{key:"kelvin",get:function(){return r.rgbToKelvin(this.rgb)},set:function(s){this.rgb=r.kelvinToRgb(s)}},{key:"red",get:function(){var s=this.rgb;return s.r},set:function(s){this.rgb=Ir({},this.rgb,{r:s})}},{key:"green",get:function(){var s=this.rgb;return s.g},set:function(s){this.rgb=Ir({},this.rgb,{g:s})}},{key:"blue",get:function(){var s=this.rgb;return s.b},set:function(s){this.rgb=Ir({},this.rgb,{b:s})}},{key:"rgb",get:function(){var s=r.hsvToRgb(this.$),n=s.r,i=s.g,a=s.b;return{r:bo(n),g:bo(i),b:bo(a)}},set:function(s){this.hsv=Ir({},r.rgbToHsv(s),{a:s.a===void 0?1:s.a})}},{key:"rgba",get:function(){return Ir({},this.rgb,{a:this.alpha})},set:function(s){this.rgb=s}},{key:"hsl",get:function(){var s=r.hsvToHsl(this.$),n=s.h,i=s.s,a=s.l;return{h:bo(n),s:bo(i),l:bo(a)}},set:function(s){this.hsv=Ir({},r.hslToHsv(s),{a:s.a===void 0?1:s.a})}},{key:"hsla",get:function(){return Ir({},this.hsl,{a:this.alpha})},set:function(s){this.hsl=s}},{key:"rgbString",get:function(){var s=this.rgb;return"rgb("+s.r+", "+s.g+", "+s.b+")"},set:function(s){var n,i,a,o,l=1;if((n=Kte.exec(s))?(i=Tr(n[1],255),a=Tr(n[2],255),o=Tr(n[3],255)):(n=Xte.exec(s))&&(i=Tr(n[1],255),a=Tr(n[2],255),o=Tr(n[3],255),l=Tr(n[4],1)),n)this.rgb={r:i,g:a,b:o,a:l};else throw new Error("Invalid rgb string")}},{key:"rgbaString",get:function(){var s=this.rgba;return"rgba("+s.r+", "+s.g+", "+s.b+", "+s.a+")"},set:function(s){this.rgbString=s}},{key:"hexString",get:function(){var s=this.rgb;return"#"+Ji(s.r)+Ji(s.g)+Ji(s.b)},set:function(s){var n,i,a,o,l=255;if((n=ere.exec(s))?(i=kr(n[1])*17,a=kr(n[2])*17,o=kr(n[3])*17):(n=tre.exec(s))?(i=kr(n[1])*17,a=kr(n[2])*17,o=kr(n[3])*17,l=kr(n[4])*17):(n=rre.exec(s))?(i=kr(n[1]),a=kr(n[2]),o=kr(n[3])):(n=sre.exec(s))&&(i=kr(n[1]),a=kr(n[2]),o=kr(n[3]),l=kr(n[4])),n)this.rgb={r:i,g:a,b:o,a:l/255};else throw new Error("Invalid hex string")}},{key:"hex8String",get:function(){var s=this.rgba;return"#"+Ji(s.r)+Ji(s.g)+Ji(s.b)+Ji(lc(s.a*255))},set:function(s){this.hexString=s}},{key:"hslString",get:function(){var s=this.hsl;return"hsl("+s.h+", "+s.s+"%, "+s.l+"%)"},set:function(s){var n,i,a,o,l=1;if((n=Jte.exec(s))?(i=Tr(n[1],360),a=Tr(n[2],100),o=Tr(n[3],100)):(n=Qte.exec(s))&&(i=Tr(n[1],360),a=Tr(n[2],100),o=Tr(n[3],100),l=Tr(n[4],1)),n)this.hsl={h:i,s:a,l:o,a:l};else throw new Error("Invalid hsl string")}},{key:"hslaString",get:function(){var s=this.hsla;return"hsla("+s.h+", "+s.s+"%, "+s.l+"%, "+s.a+")"},set:function(s){this.hslString=s}}]),r}(),are={sliderShape:"bar",sliderType:"value",minTemperature:2200,maxTemperature:11e3};function Mb(r){var e,t=r.width,s=r.sliderSize,n=r.borderWidth,i=r.handleRadius,a=r.padding,o=r.sliderShape,l=r.layoutDirection==="horizontal";return s=(e=s)!=null?e:a*2+i*2,o==="circle"?{handleStart:r.padding+r.handleRadius,handleRange:t-a*2-i*2,width:t,height:t,cx:t/2,cy:t/2,radius:t/2-n/2}:{handleStart:s/2,handleRange:t-s,radius:s/2,x:0,y:0,width:l?s:t,height:l?t:s}}function ore(r,e){var t=e.hsva,s=e.rgb;switch(r.sliderType){case"red":return s.r/2.55;case"green":return s.g/2.55;case"blue":return s.b/2.55;case"alpha":return t.a*100;case"kelvin":var n=r.minTemperature,i=r.maxTemperature,a=i-n,o=(e.kelvin-n)/a*100;return Math.max(0,Math.min(o,100));case"hue":return t.h/=3.6;case"saturation":return t.s;case"value":default:return t.v}}function lre(r,e,t){var s=Mb(r),n=s.handleRange,i=s.handleStart,a;r.layoutDirection==="horizontal"?a=-1*t+n+i:a=e-i,a=Math.max(Math.min(a,n),0);var o=Math.round(100/n*a);switch(r.sliderType){case"kelvin":var l=r.minTemperature,c=r.maxTemperature,u=c-l;return l+u*(o/100);case"alpha":return o/100;case"hue":return o*3.6;case"red":case"blue":case"green":return o*2.55;default:return o}}function cre(r,e){var t=Mb(r),s=t.width,n=t.height,i=t.handleRange,a=t.handleStart,o=r.layoutDirection==="horizontal",l=ore(r,e),c=o?s/2:n/2,u=a+l/100*i;return o&&(u=-1*u+i+a*2),{x:o?c:u,y:o?u:c}}function ure(r,e){var t=e.hsv,s=e.rgb;switch(r.sliderType){case"red":return[[0,"rgb(0,"+s.g+","+s.b+")"],[100,"rgb(255,"+s.g+","+s.b+")"]];case"green":return[[0,"rgb("+s.r+",0,"+s.b+")"],[100,"rgb("+s.r+",255,"+s.b+")"]];case"blue":return[[0,"rgb("+s.r+","+s.g+",0)"],[100,"rgb("+s.r+","+s.g+",255)"]];case"alpha":return[[0,"rgba("+s.r+","+s.g+","+s.b+",0)"],[100,"rgb("+s.r+","+s.g+","+s.b+")"]];case"kelvin":for(var n=[],i=r.minTemperature,a=r.maxTemperature,o=8,l=a-i,c=i,u=0;c<a;c+=l/o,u+=1){var d=ko.kelvinToRgb(c),p=d.r,h=d.g,f=d.b;n.push([100/o*u,"rgb("+p+","+h+","+f+")"])}return n;case"hue":return[[0,"#f00"],[16.666,"#ff0"],[33.333,"#0f0"],[50,"#0ff"],[66.666,"#00f"],[83.333,"#f0f"],[100,"#f00"]];case"saturation":var g=ko.hsvToHsl({h:t.h,s:0,v:t.v}),v=ko.hsvToHsl({h:t.h,s:100,v:t.v});return[[0,"hsl("+g.h+","+g.s+"%,"+g.l+"%)"],[100,"hsl("+v.h+","+v.s+"%,"+v.l+"%)"]];case"value":default:var y=ko.hsvToHsl({h:t.h,s:t.s,v:100});return[[0,"#000"],[100,"hsl("+y.h+","+y.s+"%,"+y.l+"%)"]]}}var kP=Math.PI*2,dre=function(e,t){return(e%t+t)%t},DP=function(e,t){return Math.sqrt(e*e+t*t)};function MP(r){return r.width/2-r.padding-r.handleRadius-r.borderWidth}function pre(r,e,t){var s=Wm(r),n=s.cx,i=s.cy,a=r.width/2;return DP(n-e,i-t)<a}function Wm(r){var e=r.width/2;return{width:r.width,radius:e-r.borderWidth,cx:e,cy:e}}function RP(r,e,t){var s=r.wheelAngle,n=r.wheelDirection;return t&&n==="clockwise"?e=s+e:n==="clockwise"?e=360-s+e:t&&n==="anticlockwise"?e=s+180-e:n==="anticlockwise"&&(e=s-e),dre(e,360)}function hre(r,e){var t=e.hsv,s=Wm(r),n=s.cx,i=s.cy,a=MP(r),o=(180+RP(r,t.h,!0))*(kP/360),l=t.s/100*a,c=r.wheelDirection==="clockwise"?-1:1;return{x:n+l*Math.cos(o)*c,y:i+l*Math.sin(o)*c}}function OS(r,e,t){var s=Wm(r),n=s.cx,i=s.cy,a=MP(r);e=n-e,t=i-t;var o=RP(r,Math.atan2(-t,-e)*(360/kP)),l=Math.min(DP(e,t),a);return{h:Math.round(o),s:Math.round(100/a*l)}}function Rb(r){var e=r.width,t=r.boxHeight,s=r.padding,n=r.handleRadius;return{width:e,height:t??e,radius:s+n}}function TS(r,e,t){var s=Rb(r),n=s.width,i=s.height,a=s.radius,o=a,l=n-a*2,c=i-a*2,u=(e-o)/l*100,d=(t-o)/c*100;return{s:Math.max(0,Math.min(u,100)),v:Math.max(0,Math.min(100-d,100))}}function fre(r,e){var t=Rb(r),s=t.width,n=t.height,i=t.radius,a=e.hsv,o=i,l=s-i*2,c=n-i*2;return{x:o+a.s/100*l,y:o+(c-a.v/100*c)}}function mre(r,e){var t=e.hue;return[[[0,"#fff"],[100,"hsl("+t+",100%,50%)"]],[[0,"rgba(0,0,0,0)"],[100,"#000"]]]}var r1;function gre(r){r1||(r1=document.getElementsByTagName("base"));var e=window.navigator.userAgent,t=/^((?!chrome|android).)*safari/i.test(e),s=/iPhone|iPod|iPad/i.test(e),n=window.location;return(t||s)&&r1.length>0?n.protocol+"//"+n.host+n.pathname+n.search+r:r}function IP(r,e,t,s){for(var n=0;n<s.length;n++){var i=s[n].x-e,a=s[n].y-t,o=Math.sqrt(i*i+a*a);if(o<r.handleRadius)return n}return null}function Ib(r){return{boxSizing:"border-box",border:r.borderWidth+"px solid "+r.borderColor}}function p_(r,e,t){return r+"-gradient("+e+", "+t.map(function(s){var n=s[0],i=s[1];return i+" "+n+"%"}).join(",")+")"}function wr(r){return typeof r=="string"?r:r+"px"}var vre={width:300,height:300,color:"#fff",colors:[],padding:6,layoutDirection:"vertical",borderColor:"#fff",borderWidth:0,handleRadius:8,activeHandleRadius:null,handleSvg:null,handleProps:{x:0,y:0},wheelLightness:!0,wheelAngle:0,wheelDirection:"anticlockwise",sliderSize:null,sliderMargin:12,boxHeight:null},kS=["mousemove","touchmove","mouseup","touchend"],Gm=function(r){function e(t){r.call(this,t),this.uid=(Math.random()+1).toString(36).substring(5)}return r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e,e.prototype.render=function(s){var n=this.handleEvent.bind(this),i={onMouseDown:n,ontouchstart:n},a=s.layoutDirection==="horizontal",o=s.margin===null?s.sliderMargin:s.margin,l={overflow:"visible",display:a?"inline-block":"block"};return s.index>0&&(l[a?"marginLeft":"marginTop"]=o),ht(zm,null,s.children(this.uid,i,l))},e.prototype.handleEvent=function(s){var n=this,i=this.props.onInput,a=this.base.getBoundingClientRect();s.preventDefault();var o=s.touches?s.changedTouches[0]:s,l=o.clientX-a.left,c=o.clientY-a.top;switch(s.type){case"mousedown":case"touchstart":var u=i(l,c,0);u!==!1&&kS.forEach(function(d){document.addEventListener(d,n,{passive:!1})});break;case"mousemove":case"touchmove":i(l,c,1);break;case"mouseup":case"touchend":i(l,c,2),kS.forEach(function(d){document.removeEventListener(d,n,{passive:!1})});break}},e}(Ho);function Oa(r){var e=r.r,t=r.url,s=e,n=e;return ht("svg",{className:"IroHandle IroHandle--"+r.index+" "+(r.isActive?"IroHandle--isActive":""),style:{"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0);",transform:"translate("+wr(r.x)+", "+wr(r.y)+")",willChange:"transform",top:wr(-e),left:wr(-e),width:wr(e*2),height:wr(e*2),position:"absolute",overflow:"visible"}},t&&ht("use",Object.assign({xlinkHref:gre(t)},r.props)),!t&&ht("circle",{cx:s,cy:n,r:e,fill:"none","stroke-width":2,stroke:"#000"}),!t&&ht("circle",{cx:s,cy:n,r:e-2,fill:r.fill,"stroke-width":2,stroke:"#fff"}))}Oa.defaultProps={fill:"none",x:0,y:0,r:8,url:null,props:{x:0,y:0}};function sf(r){var e=r.activeIndex,t=e!==void 0&&e<r.colors.length?r.colors[e]:r.color,s=Mb(r),n=s.width,i=s.height,a=s.radius,o=cre(r,t),l=ure(r,t);function c(u,d,p){var h=lre(r,u,d);r.parent.inputActive=!0,t[r.sliderType]=h,r.onInput(p,r.id)}return ht(Gm,Object.assign({},r,{onInput:c}),function(u,d,p){return ht("div",Object.assign({},d,{className:"IroSlider",style:Object.assign({},{position:"relative",width:wr(n),height:wr(i),borderRadius:wr(a),background:"conic-gradient(#ccc 25%, #fff 0 50%, #ccc 0 75%, #fff 0)",backgroundSize:"8px 8px"},p)}),ht("div",{className:"IroSliderGradient",style:Object.assign({},{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:wr(a),background:p_("linear",r.layoutDirection==="horizontal"?"to top":"to right",l)},Ib(r))}),ht(Oa,{isActive:!0,index:t.index,r:r.handleRadius,url:r.handleSvg,props:r.handleProps,x:o.x,y:o.y}))})}sf.defaultProps=Object.assign({},are);function _re(r){var e=Rb(r),t=e.width,s=e.height,n=e.radius,i=r.colors,a=r.parent,o=r.activeIndex,l=o!==void 0&&o<r.colors.length?r.colors[o]:r.color,c=mre(r,l),u=i.map(function(p){return fre(r,p)});function d(p,h,f){if(f===0){var g=IP(r,p,h,u);g!==null?a.setActiveColor(g):(a.inputActive=!0,l.hsv=TS(r,p,h),r.onInput(f,r.id))}else f===1&&(a.inputActive=!0,l.hsv=TS(r,p,h));r.onInput(f,r.id)}return ht(Gm,Object.assign({},r,{onInput:d}),function(p,h,f){return ht("div",Object.assign({},h,{className:"IroBox",style:Object.assign({},{width:wr(t),height:wr(s),position:"relative"},f)}),ht("div",{className:"IroBox",style:Object.assign({},{width:"100%",height:"100%",borderRadius:wr(n)},Ib(r),{background:p_("linear","to bottom",c[1])+","+p_("linear","to right",c[0])})}),i.filter(function(g){return g!==l}).map(function(g){return ht(Oa,{isActive:!1,index:g.index,fill:g.hslString,r:r.handleRadius,url:r.handleSvg,props:r.handleProps,x:u[g.index].x,y:u[g.index].y})}),ht(Oa,{isActive:!0,index:l.index,fill:l.hslString,r:r.activeHandleRadius||r.handleRadius,url:r.handleSvg,props:r.handleProps,x:u[l.index].x,y:u[l.index].y}))})}var yre="conic-gradient(red, yellow, lime, aqua, blue, magenta, red)",bre="conic-gradient(red, magenta, blue, aqua, lime, yellow, red)";function FP(r){var e=Wm(r),t=e.width,s=r.colors;r.borderWidth;var n=r.parent,i=r.color,a=i.hsv,o=s.map(function(u){return hre(r,u)}),l={position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",boxSizing:"border-box"};function c(u,d,p){if(p===0){if(!pre(r,u,d))return!1;var h=IP(r,u,d,o);h!==null?n.setActiveColor(h):(n.inputActive=!0,i.hsv=OS(r,u,d),r.onInput(p,r.id))}else p===1&&(n.inputActive=!0,i.hsv=OS(r,u,d));r.onInput(p,r.id)}return ht(Gm,Object.assign({},r,{onInput:c}),function(u,d,p){return ht("div",Object.assign({},d,{className:"IroWheel",style:Object.assign({},{width:wr(t),height:wr(t),position:"relative"},p)}),ht("div",{className:"IroWheelHue",style:Object.assign({},l,{transform:"rotateZ("+(r.wheelAngle+90)+"deg)",background:r.wheelDirection==="clockwise"?yre:bre})}),ht("div",{className:"IroWheelSaturation",style:Object.assign({},l,{background:"radial-gradient(circle closest-side, #fff, transparent)"})}),r.wheelLightness&&ht("div",{className:"IroWheelLightness",style:Object.assign({},l,{background:"#000",opacity:1-a.v/100})}),ht("div",{className:"IroWheelBorder",style:Object.assign({},l,Ib(r))}),s.filter(function(h){return h!==i}).map(function(h){return ht(Oa,{isActive:!1,index:h.index,fill:h.hslString,r:r.handleRadius,url:r.handleSvg,props:r.handleProps,x:o[h.index].x,y:o[h.index].y})}),ht(Oa,{isActive:!0,index:i.index,fill:i.hslString,r:r.activeHandleRadius||r.handleRadius,url:r.handleSvg,props:r.handleProps,x:o[i.index].x,y:o[i.index].y}))})}function $re(r){var e=function(t,s){var n,i=document.createElement("div");Wte(ht(r,Object.assign({},{ref:function(o){return n=o}},s)),i);function a(){var o=t instanceof Element?t:document.querySelector(t);o.appendChild(n.base),n.onMount(o)}return document.readyState!=="loading"?a():document.addEventListener("DOMContentLoaded",a),n};return e.prototype=r.prototype,Object.assign(e,r),e.__component=r,e}var HP=function(r){function e(t){var s=this;r.call(this,t),this.colors=[],this.inputActive=!1,this.events={},this.activeEvents={},this.deferredEvents={},this.id=t.id;var n=t.colors.length>0?t.colors:[t.color];n.forEach(function(i){return s.addColor(i)}),this.setActiveColor(0),this.state=Object.assign({},t,{color:this.color,colors:this.colors,layout:t.layout})}return r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e,e.prototype.addColor=function(s,n){n===void 0&&(n=this.colors.length);var i=new ko(s,this.onColorChange.bind(this));this.colors.splice(n,0,i),this.colors.forEach(function(a,o){return a.index=o}),this.state&&this.setState({colors:this.colors}),this.deferredEmit("color:init",i)},e.prototype.removeColor=function(s){var n=this.colors.splice(s,1)[0];n.unbind(),this.colors.forEach(function(i,a){return i.index=a}),this.state&&this.setState({colors:this.colors}),n.index===this.color.index&&this.setActiveColor(0),this.emit("color:remove",n)},e.prototype.setActiveColor=function(s){this.color=this.colors[s],this.state&&this.setState({color:this.color}),this.emit("color:setActive",this.color)},e.prototype.setColors=function(s,n){var i=this;n===void 0&&(n=0),this.colors.forEach(function(a){return a.unbind()}),this.colors=[],s.forEach(function(a){return i.addColor(a)}),this.setActiveColor(n),this.emit("color:setAll",this.colors)},e.prototype.on=function(s,n){var i=this,a=this.events;(Array.isArray(s)?s:[s]).forEach(function(o){(a[o]||(a[o]=[])).push(n),i.deferredEvents[o]&&(i.deferredEvents[o].forEach(function(l){n.apply(null,l)}),i.deferredEvents[o]=[])})},e.prototype.off=function(s,n){var i=this;(Array.isArray(s)?s:[s]).forEach(function(a){var o=i.events[a];o&&o.splice(o.indexOf(n),1)})},e.prototype.emit=function(s){for(var n=this,i=[],a=arguments.length-1;a-- >0;)i[a]=arguments[a+1];var o=this.activeEvents,l=o.hasOwnProperty(s)?o[s]:!1;if(!l){o[s]=!0;var c=this.events[s]||[];c.forEach(function(u){return u.apply(n,i)}),o[s]=!1}},e.prototype.deferredEmit=function(s){for(var n,i=[],a=arguments.length-1;a-- >0;)i[a]=arguments[a+1];var o=this.deferredEvents;(n=this).emit.apply(n,[s].concat(i)),(o[s]||(o[s]=[])).push(i)},e.prototype.setOptions=function(s){this.setState(s)},e.prototype.resize=function(s){this.setOptions({width:s})},e.prototype.reset=function(){this.colors.forEach(function(s){return s.reset()}),this.setState({colors:this.colors})},e.prototype.onMount=function(s){this.el=s,this.deferredEmit("mount",this)},e.prototype.onColorChange=function(s,n){this.setState({color:this.color}),this.inputActive&&(this.inputActive=!1,this.emit("input:change",s,n)),this.emit("color:change",s,n)},e.prototype.emitInputEvent=function(s,n){s===0?this.emit("input:start",this.color,n):s===1?this.emit("input:move",this.color,n):s===2&&this.emit("input:end",this.color,n)},e.prototype.render=function(s,n){var i=this,a=n.layout;if(!Array.isArray(a)){switch(a){default:a=[{component:FP},{component:sf}]}n.transparency&&a.push({component:sf,options:{sliderType:"alpha"}})}return ht("div",{class:"IroColorPicker",id:n.id,style:{display:n.display}},a.map(function(o,l){var c=o.component,u=o.options;return ht(c,Object.assign({},n,u,{ref:void 0,onInput:i.emitInputEvent.bind(i),parent:i,index:l}))}))},e}(Ho);HP.defaultProps=Object.assign({},vre,{colors:[],display:"block",id:null,layout:"default",margin:null});var wre=$re(HP),h_;(function(r){r.version="5.5.2",r.Color=ko,r.ColorPicker=wre,function(e){e.h=ht,e.ComponentBase=Gm,e.Handle=Oa,e.Slider=sf,e.Wheel=FP,e.Box=_re}(r.ui||(r.ui={}))})(h_||(h_={}));var qp=h_;function Sre(r,e){for(var t=0;t<e.length;t++){var s=e[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}function xre(r,e,t){return e&&Sre(r.prototype,e),r}function Fr(){return Fr=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},Fr.apply(this,arguments)}var Cre="[-\\+]?\\d+%?",Pre="[-\\+]?\\d*\\.\\d+%?",oa="(?:"+Pre+")|(?:"+Cre+")",jP="[\\s|\\(]+("+oa+")[,|\\s]+("+oa+")[,|\\s]+("+oa+")\\s*\\)?",BP="[\\s|\\(]+("+oa+")[,|\\s]+("+oa+")[,|\\s]+("+oa+")[,|\\s]+("+oa+")\\s*\\)?",Are=new RegExp("rgb"+jP),Lre=new RegExp("rgba"+BP),Ere=new RegExp("hsl"+jP),Ore=new RegExp("hsla"+BP),qm="^(?:#?|0x?)",la="([0-9a-fA-F]{1})",ca="([0-9a-fA-F]{2})",Tre=new RegExp(qm+la+la+la+"$"),kre=new RegExp(qm+la+la+la+la+"$"),Dre=new RegExp(qm+ca+ca+ca+"$"),Mre=new RegExp(qm+ca+ca+ca+ca+"$"),Rre=2e3,Ire=4e4,cp=Math.log,$o=Math.round,cc=Math.floor;function fs(r,e,t){return Math.min(Math.max(r,e),t)}function Dr(r,e){var t=r.indexOf("%")>-1,s=parseFloat(r);return t?e/100*s:s}function Mr(r){return parseInt(r,16)}function Qi(r){return r.toString(16).padStart(2,"0")}var nf=function(){function r(t,s){this.$={h:0,s:0,v:0,a:1},t&&this.set(t),this.onChange=s,this.initialValue=Fr({},this.$)}var e=r.prototype;return e.set=function(s){if(typeof s=="string")/^(?:#?|0x?)[0-9a-fA-F]{3,8}$/.test(s)?this.hexString=s:/^rgba?/.test(s)?this.rgbString=s:/^hsla?/.test(s)&&(this.hslString=s);else if(typeof s=="object")s instanceof r?this.hsva=s.hsva:"r"in s&&"g"in s&&"b"in s?this.rgb=s:"h"in s&&"s"in s&&"v"in s?this.hsv=s:"h"in s&&"s"in s&&"l"in s?this.hsl=s:"kelvin"in s&&(this.kelvin=s.kelvin);else throw new Error("Invalid color value")},e.setChannel=function(s,n,i){var a;this[s]=Fr({},this[s],(a={},a[n]=i,a))},e.reset=function(){this.hsva=this.initialValue},e.clone=function(){return new r(this)},e.unbind=function(){this.onChange=void 0},r.hsvToRgb=function(s){var n=s.h/60,i=s.s/100,a=s.v/100,o=cc(n),l=n-o,c=a*(1-i),u=a*(1-l*i),d=a*(1-(1-l)*i),p=o%6,h=[a,u,c,c,d,a][p],f=[d,a,a,u,c,c][p],g=[c,c,d,a,a,u][p];return{r:fs(h*255,0,255),g:fs(f*255,0,255),b:fs(g*255,0,255)}},r.rgbToHsv=function(s){var n=s.r/255,i=s.g/255,a=s.b/255,o=Math.max(n,i,a),l=Math.min(n,i,a),c=o-l,u=0,d=o,p=o===0?0:c/o;switch(o){case l:u=0;break;case n:u=(i-a)/c+(i<a?6:0);break;case i:u=(a-n)/c+2;break;case a:u=(n-i)/c+4;break}return{h:u*60%360,s:fs(p*100,0,100),v:fs(d*100,0,100)}},r.hsvToHsl=function(s){var n=s.s/100,i=s.v/100,a=(2-n)*i,o=a<=1?a:2-a,l=o<1e-9?0:n*i/o;return{h:s.h,s:fs(l*100,0,100),l:fs(a*50,0,100)}},r.hslToHsv=function(s){var n=s.l*2,i=s.s*(n<=100?n:200-n)/100,a=n+i<1e-9?0:2*i/(n+i);return{h:s.h,s:fs(a*100,0,100),v:fs((n+i)/2,0,100)}},r.kelvinToRgb=function(s){var n=s/100,i,a,o;return n<66?(i=255,a=-155.25485562709179-.44596950469579133*(a=n-2)+104.49216199393888*cp(a),o=n<20?0:-254.76935184120902+.8274096064007395*(o=n-10)+115.67994401066147*cp(o)):(i=351.97690566805693+.114206453784165*(i=n-55)-40.25366309332127*cp(i),a=325.4494125711974+.07943456536662342*(a=n-50)-28.0852963507957*cp(a),o=255),{r:fs(cc(i),0,255),g:fs(cc(a),0,255),b:fs(cc(o),0,255)}},r.rgbToKelvin=function(s){for(var n=s.r,i=s.b,a=.4,o=Rre,l=Ire,c;l-o>a;){c=(l+o)*.5;var u=r.kelvinToRgb(c);u.b/u.r>=i/n?l=c:o=c}return c},xre(r,[{key:"hsv",get:function(){var s=this.$;return{h:s.h,s:s.s,v:s.v}},set:function(s){var n=this.$;if(s=Fr({},n,s),this.onChange){var i={h:!1,v:!1,s:!1,a:!1};for(var a in n)i[a]=s[a]!=n[a];this.$=s,(i.h||i.s||i.v||i.a)&&this.onChange(this,i)}else this.$=s}},{key:"hsva",get:function(){return Fr({},this.$)},set:function(s){this.hsv=s}},{key:"hue",get:function(){return this.$.h},set:function(s){this.hsv={h:s}}},{key:"saturation",get:function(){return this.$.s},set:function(s){this.hsv={s}}},{key:"value",get:function(){return this.$.v},set:function(s){this.hsv={v:s}}},{key:"alpha",get:function(){return this.$.a},set:function(s){this.hsv=Fr({},this.hsv,{a:s})}},{key:"kelvin",get:function(){return r.rgbToKelvin(this.rgb)},set:function(s){this.rgb=r.kelvinToRgb(s)}},{key:"red",get:function(){var s=this.rgb;return s.r},set:function(s){this.rgb=Fr({},this.rgb,{r:s})}},{key:"green",get:function(){var s=this.rgb;return s.g},set:function(s){this.rgb=Fr({},this.rgb,{g:s})}},{key:"blue",get:function(){var s=this.rgb;return s.b},set:function(s){this.rgb=Fr({},this.rgb,{b:s})}},{key:"rgb",get:function(){var s=r.hsvToRgb(this.$),n=s.r,i=s.g,a=s.b;return{r:$o(n),g:$o(i),b:$o(a)}},set:function(s){this.hsv=Fr({},r.rgbToHsv(s),{a:s.a===void 0?1:s.a})}},{key:"rgba",get:function(){return Fr({},this.rgb,{a:this.alpha})},set:function(s){this.rgb=s}},{key:"hsl",get:function(){var s=r.hsvToHsl(this.$),n=s.h,i=s.s,a=s.l;return{h:$o(n),s:$o(i),l:$o(a)}},set:function(s){this.hsv=Fr({},r.hslToHsv(s),{a:s.a===void 0?1:s.a})}},{key:"hsla",get:function(){return Fr({},this.hsl,{a:this.alpha})},set:function(s){this.hsl=s}},{key:"rgbString",get:function(){var s=this.rgb;return"rgb("+s.r+", "+s.g+", "+s.b+")"},set:function(s){var n,i,a,o,l=1;if((n=Are.exec(s))?(i=Dr(n[1],255),a=Dr(n[2],255),o=Dr(n[3],255)):(n=Lre.exec(s))&&(i=Dr(n[1],255),a=Dr(n[2],255),o=Dr(n[3],255),l=Dr(n[4],1)),n)this.rgb={r:i,g:a,b:o,a:l};else throw new Error("Invalid rgb string")}},{key:"rgbaString",get:function(){var s=this.rgba;return"rgba("+s.r+", "+s.g+", "+s.b+", "+s.a+")"},set:function(s){this.rgbString=s}},{key:"hexString",get:function(){var s=this.rgb;return"#"+Qi(s.r)+Qi(s.g)+Qi(s.b)},set:function(s){var n,i,a,o,l=255;if((n=Tre.exec(s))?(i=Mr(n[1])*17,a=Mr(n[2])*17,o=Mr(n[3])*17):(n=kre.exec(s))?(i=Mr(n[1])*17,a=Mr(n[2])*17,o=Mr(n[3])*17,l=Mr(n[4])*17):(n=Dre.exec(s))?(i=Mr(n[1]),a=Mr(n[2]),o=Mr(n[3])):(n=Mre.exec(s))&&(i=Mr(n[1]),a=Mr(n[2]),o=Mr(n[3]),l=Mr(n[4])),n)this.rgb={r:i,g:a,b:o,a:l/255};else throw new Error("Invalid hex string")}},{key:"hex8String",get:function(){var s=this.rgba;return"#"+Qi(s.r)+Qi(s.g)+Qi(s.b)+Qi(cc(s.a*255))},set:function(s){this.hexString=s}},{key:"hslString",get:function(){var s=this.hsl;return"hsl("+s.h+", "+s.s+"%, "+s.l+"%)"},set:function(s){var n,i,a,o,l=1;if((n=Ere.exec(s))?(i=Dr(n[1],360),a=Dr(n[2],100),o=Dr(n[3],100)):(n=Ore.exec(s))&&(i=Dr(n[1],360),a=Dr(n[2],100),o=Dr(n[3],100),l=Dr(n[4],1)),n)this.hsl={h:i,s:a,l:o,a:l};else throw new Error("Invalid hsl string")}},{key:"hslaString",get:function(){var s=this.hsla;return"hsla("+s.h+", "+s.s+"%, "+s.l+"%, "+s.a+")"},set:function(s){this.hslString=s}}]),r}(),Fre=Object.defineProperty,Hre=Object.getOwnPropertyDescriptor,Sd=(r,e,t,s)=>{for(var n=s>1?void 0:s?Hre(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&&Fre(e,t,n),n};let Ta=class extends b{constructor(){super(...arguments);m(this,"inputValue");m(this,"options");m(this,"picker");m(this,"colorPicker",null)}onValue(t){t&&this.colorPicker&&this.colorPicker.color.set(t)}mounted(){const t={...this.options,color:this.inputValue,sliderSize:14};this.colorPicker=qp.ColorPicker(this.picker,t),this.colorPicker.on("input:end",this.handleColorChange)}beforeUnmount(){this.colorPicker&&this.colorPicker.off("input:end",this.handleColorChange)}handleColorChange(t){this.inputValue=t.hexString}};Sd([Fe({type:String,default:"#ffffff"})],Ta.prototype,"inputValue",2);Sd([w({type:Object})],Ta.prototype,"options",2);Sd([Te("picker")],Ta.prototype,"picker",2);Sd([Ae("value")],Ta.prototype,"onValue",1);Ta=Sd([A({})],Ta);var jre=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t("div",{ref:"picker"})])},Bre=[],Nre=E(Ta,jre,Bre,!1,null,null);const DS=Nre.exports;var Vre=Object.defineProperty,zre=Object.getOwnPropertyDescriptor,Xn=(r,e,t,s)=>{for(var n=s>1?void 0:s?zre(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&&Vre(e,t,n),n};let Ks=class extends b{constructor(){super(...arguments);m(this,"inputPrimaryColor");m(this,"inputWhiteValue");m(this,"title");m(this,"dot");m(this,"supportedChannels");m(this,"card");m(this,"lastPointerPosition",{x:0,y:0});m(this,"currentPrimaryColor",new nf);m(this,"currentWhiteColor",new nf)}get primaryOptions(){return{color:this.inputPrimaryColor,width:208,layout:[{component:qp.ui.Wheel,options:{wheelLightness:!1,wheelAngle:270,wheelDirection:"clockwise"}},{component:qp.ui.Slider,options:{sliderType:"value"}}]}}get whiteOptions(){return{color:this.inputWhiteColor,width:208,layout:[{component:qp.ui.Slider,options:{sliderType:"value"}}]}}onValue(e){this.currentPrimaryColor.set(e)}onWhite(e){this.currentWhiteColor.set(this.valueToHexColor(e))}get currentRed(){return this.convertValueRange(this.currentPrimaryColor.red,"out")}set currentRed(e){this.currentPrimaryColor.red=this.convertValueRange(e,"in")}get currentGreen(){return this.convertValueRange(this.currentPrimaryColor.green,"out")}set currentGreen(e){this.currentPrimaryColor.green=this.convertValueRange(e,"in")}get currentBlue(){return this.convertValueRange(this.currentPrimaryColor.blue,"out")}set currentBlue(e){this.currentPrimaryColor.blue=this.convertValueRange(e,"in")}get currentWhite(){return this.convertValueRange(this.currentWhiteColor.red,"out")}set currentWhite(e){this.currentWhiteColor.set(this.valueToHexColor(this.convertValueRange(e,"in")))}get inputWhiteColor(){return this.valueToHexColor(this.inputWhiteValue)}get controlColor(){return this.supportedChannels==="W"?this.inputWhiteColor:this.inputPrimaryColor}get valueRange(){return this.$store.state.config.uiSettings.general.colorPickerValueRange}set valueRange(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.colorPickerValueRange",value:e,server:!0})}handleSubmitPrimary(){this.inputPrimaryColor=this.currentPrimaryColor.hexString}handleSubmitWhite(){this.inputWhiteValue=this.currentWhiteColor.red}handleReset(){this.currentPrimaryColor.set(this.inputPrimaryColor),this.currentWhiteColor.set(this.inputWhiteColor)}valueToHexColor(e){return e=Math.round(Math.min(Math.max(e,0),255)),`#${e.toString(16).padStart(2,"0").repeat(3)}`}created(){this.handleReset()}startMouseDrag(e){this.lastPointerPosition={x:e.clientX,y:e.clientY},window.addEventListener("mousemove",this.mouseMove),window.addEventListener("mouseup",this.stopMouseDrag)}stopMouseDrag(){window.removeEventListener("mousemove",this.mouseMove),window.removeEventListener("mouseup",this.stopMouseDrag)}startTouchDrag(e){this.lastPointerPosition={x:e.touches[0].clientX,y:e.touches[0].clientY}}relativeMove(e){const t=this.card.$el.parentElement;t&&(t.style.left=parseFloat(t.style.left)+(e.x-this.lastPointerPosition.x)+"px",t.style.top=parseFloat(t.style.top)+(e.y-this.lastPointerPosition.y)+"px")}mouseMove(e){const t={x:e.clientX,y:e.clientY};this.relativeMove(t),this.lastPointerPosition=t}touchMove(e){e.preventDefault();const t={x:e.touches[0].clientX,y:e.touches[0].clientY};this.relativeMove(t),this.lastPointerPosition=t}convertValueRange(e,t){if(this.valueRange==="absolute")return e;let s=1;return this.valueRange==="percentage"&&(s=255),t==="out"&&(s=1/s),Math.round(e*s*1e3)/1e3}};Xn([Fe({type:String,required:!0})],Ks.prototype,"inputPrimaryColor",2);Xn([Hi("white",{type:Number,default:0})],Ks.prototype,"inputWhiteValue",2);Xn([w({type:String,default:""})],Ks.prototype,"title",2);Xn([w({type:Boolean})],Ks.prototype,"dot",2);Xn([w({type:String,default:"RGB"})],Ks.prototype,"supportedChannels",2);Xn([Te("card")],Ks.prototype,"card",2);Xn([Ae("value")],Ks.prototype,"onValue",1);Xn([Ae("white")],Ks.prototype,"onWhite",1);Ks=Xn([A({})],Ks);var Ure=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Dt,{attrs:{bottom:"",left:"","max-width":"260","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[e.dot?t(S,e._g(e._b({attrs:{color:e.controlColor}},"v-icon",n,!1),s),[e._v(" $circle ")]):t(Be,e._g(e._b({attrs:{color:e.controlColor,outlined:"",small:""}},"v-btn",n,!1),s),[e._v(" "+e._s(e.title)+" ")])]}}])},[t(He,{ref:"card"},[e.title?t(Hr,{staticClass:"card-heading mb-2",staticStyle:{cursor:"move","user-select":"none"},on:{mousedown:e.startMouseDrag,touchstart:e.startTouchDrag,touchmove:e.touchMove}},[e._v(" "+e._s(e.title)+" ")]):e._e(),t(Le,[e.supportedChannels!=="W"?t(S,{attrs:{color:e.currentPrimaryColor.hexString,large:""}},[e._v(" $circle ")]):e._e(),e.supportedChannels.includes("W")?t(S,{attrs:{color:e.currentWhiteColor.hexString,large:""}},[e._v(" $circle ")]):e._e(),t(Vr,{attrs:{"align-center":"",column:""}},[e.supportedChannels!=="W"?t(DS,{attrs:{options:e.primaryOptions},on:{input:e.handleSubmitPrimary},model:{value:e.currentPrimaryColor.hexString,callback:function(s){e.$set(e.currentPrimaryColor,"hexString",s)},expression:"currentPrimaryColor.hexString"}}):e._e(),e.supportedChannels.includes("W")?t(DS,{staticClass:"mt-4",attrs:{options:e.whiteOptions},on:{input:e.handleSubmitWhite},model:{value:e.currentWhiteColor.hexString,callback:function(s){e.$set(e.currentWhiteColor,"hexString",s)},expression:"currentWhiteColor.hexString"}}):e._e()],1),t("div",{staticClass:"text-right mt-4 mr-1"},[t(wm,{attrs:{mandatory:""},model:{value:e.valueRange,callback:function(s){e.valueRange=s},expression:"valueRange"}},[t(M,{attrs:{"x-small":"",value:"absolute"}},[e._v(" 0..255 ")]),t(M,{attrs:{"x-small":"",value:"percentage"}},[e._v(" 0..1 ")])],1)],1),t(Vr,{staticClass:"mt-2",attrs:{"justify-space-between":""}},[e.supportedChannels!=="W"?t("div",{staticClass:"color-input"},[t(ae,{attrs:{dense:"","hide-details":"",outlined:""},on:{blur:e.handleReset,keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey?null:e.handleSubmitPrimary.apply(null,arguments)}},model:{value:e.currentRed,callback:function(s){e.currentRed=e._n(s)},expression:"currentRed"}}),t("div",[e._v("R")])],1):e._e(),e.supportedChannels!=="W"?t("div",{staticClass:"color-input"},[t(ae,{attrs:{dense:"","hide-details":"",outlined:""},on:{blur:e.handleReset,keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey?null:e.handleSubmitPrimary.apply(null,arguments)}},model:{value:e.currentGreen,callback:function(s){e.currentGreen=e._n(s)},expression:"currentGreen"}}),t("div",[e._v("G")])],1):e._e(),e.supportedChannels!=="W"?t("div",{staticClass:"color-input"},[t(ae,{attrs:{dense:"","hide-details":"",outlined:""},on:{blur:e.handleReset,keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey?null:e.handleSubmitPrimary.apply(null,arguments)}},model:{value:e.currentBlue,callback:function(s){e.currentBlue=e._n(s)},expression:"currentBlue"}}),t("div",[e._v("B")])],1):e._e(),e.supportedChannels.includes("W")?t("div",{staticClass:"color-input"},[t(ae,{attrs:{dense:"","hide-details":"",outlined:""},on:{blur:e.handleReset,keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey?null:e.handleSubmitWhite.apply(null,arguments)}},model:{value:e.currentWhite,callback:function(s){e.currentWhite=e._n(s)},expression:"currentWhite"}}),t("div",[e._v("W")])],1):e._e()])],1)],1)],1)},Wre=[],Gre=E(Ks,Ure,Wre,!1,null,"c68b6077");const ol=Gre.exports;var qre=Object.defineProperty,Zre=Object.getOwnPropertyDescriptor,NP=(r,e,t,s)=>{for(var n=s>1?void 0:s?Zre(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&&qre(e,t,n),n};let af=class extends Y(J){constructor(){super(...arguments);m(this,"led");m(this,"channelLookup",{r:"RED",g:"GREEN",b:"BLUE",w:"WHITE"})}get supportedChannels(){const{type:t,config:s}=this.led;if("color_order"in s)return s.color_order[0];switch(t){case"dotstar":return"RGB";case"led":{const n=[];return"red_pin"in s&&n.push("R"),"green_pin"in s&&n.push("G"),"blue_pin"in s&&n.push("B"),"white_pin"in s&&n.push("W"),n.join("")}}return"RBGW"}get color(){const[t,s,n,i]=this.led.color_data[0].map(a=>Math.round(a*255));return{r:t,g:s,b:n,w:i}}get primaryColor(){return new nf(this.color).hexString}set primaryColor(t){const{r:s,g:n,b:i}=new nf(t).rgb,a={...this.color,r:s,g:n,b:i};this.sendColor(a)}get whiteValue(){return this.color.w}set whiteValue(t){const s={...this.color,w:t};this.sendColor(s)}sendColor(t){const n=this.supportedChannels.toLowerCase().split("").map(i=>` ${this.channelLookup[i]}=${Math.round(t[i]*1e3/255)/1e3}`).join("");this.sendGcode(`SET_LED LED=${this.led.name}${n}`)}};NP([w({type:Object,required:!0})],af.prototype,"led",2);af=NP([A({})],af);var Yre=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,{attrs:{"no-gutters":"","justify-space-between":""}},[t(B,{staticClass:"text-body-1 py-0",attrs:{"align-self":"center",cols:"5"}},[e._v(" "+e._s(e.led.prettyName)+" ")]),t(B,{staticClass:"ml-auto py-0 text-right"},[t(ol,{attrs:{white:e.whiteValue,title:e.led.prettyName,"supported-channels":e.supportedChannels,dot:""},on:{"update:white":function(s){e.whiteValue=s}},model:{value:e.primaryColor,callback:function(s){e.primaryColor=s},expression:"primaryColor"}})],1)],1)},Kre=[],Xre=E(af,Yre,Kre,!1,null,null);const Jre=Xre.exports;var Qre=Object.defineProperty,ese=Object.getOwnPropertyDescriptor,VP=(r,e,t,s)=>{for(var n=s>1?void 0:s?ese(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&&Qre(e,t,n),n};let of=class extends b{constructor(){super(...arguments);m(this,"item")}get pinTypes(){return["output_pin","pwm_tool","pwm_cycle_time"]}get fanTypes(){return["temperature_fan","controller_fan","heater_fan","fan_generic","fan"]}get ledTypes(){return["led","neopixel","dotstar"]}};VP([w({type:Object,required:!0})],of.prototype,"item",2);of=VP([A({components:{OutputFan:kte,OutputPin:Hte,OutputLed:Jre}})],of);var tse=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.pinTypes.includes(e.item.type)?t("output-pin",{key:e.item.key,attrs:{pin:e.item}}):e._e(),e.fanTypes.includes(e.item.type)?t("output-fan",{key:e.item.key,attrs:{fan:e.item}}):e._e(),e.ledTypes.includes(e.item.type)?t("output-led",{key:e.item.key,attrs:{led:e.item}}):e._e()],1)},rse=[],sse=E(of,tse,rse,!1,null,null);const nse=sse.exports;var ise=Object.defineProperty,ase=Object.getOwnPropertyDescriptor,ose=(r,e,t,s)=>{for(var n=s>1?void 0:s?ase(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&&ise(e,t,n),n};let f_=class extends Y(J){get all(){const e=[...this.$store.getters["printer/getAllFans"],...this.$store.getters["printer/getPins"],...this.$store.getters["printer/getAllLeds"]];let t=[],s=[];if(e.length>1){const n=Math.ceil(e.length/2);t=e.splice(0,n),s=e}else t=e;return{col1:t,col2:s}}};f_=ose([A({components:{OutputItem:nse}})],f_);var lse=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Le,[t(ie,[t(B,{attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[e._l(e.all.col1,function(s,n){return[t("OutputItem",{key:s.key,attrs:{item:s}}),n<e.all.col1.length-1||e.$vuetify.breakpoint.mdAndDown?t(R,{key:`divider-0${n}`,staticClass:"my-2"}):e._e()]})],2),t(B,{attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[e._l(e.all.col2,function(s,n){return[t("OutputItem",{key:s.key,attrs:{item:s}}),n<e.all.col2.length-1?t(R,{key:`divider-1${n}`,staticClass:"my-2"}):e._e()]})],2)],1)],1)},cse=[],use=E(f_,lse,cse,!1,null,null);const dse=use.exports;var pse=Object.defineProperty,hse=Object.getOwnPropertyDescriptor,fse=(r,e,t,s)=>{for(var n=s>1?void 0:s?hse(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&&pse(e,t,n),n};let m_=class extends b{};m_=fse([A({components:{Outputs:dse}})],m_);var mse=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.general.title.fans_outputs"),icon:"$motion",draggable:"","layout-path":"dashboard.outputs-card","menu-breakpoint":"lg"}},[t("outputs")],1)},gse=[],vse=E(m_,mse,gse,!1,null,null);const _se=vse.exports;var yse=Object.defineProperty,bse=Object.getOwnPropertyDescriptor,$se=(r,e,t,s)=>{for(var n=s>1?void 0:s?bse(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&&yse(e,t,n),n};let g_=class extends Y(J,lt){get defaultVelocity(){return this.$store.getters["printer/getPrinterSettings"]("printer.max_velocity")}get velocity(){return this.$store.state.printer.printer.toolhead.max_velocity}get defaultAccel(){return this.$store.getters["printer/getPrinterSettings"]("printer.max_accel")}get accel(){return this.$store.state.printer.printer.toolhead.max_accel}get defaultAccelToDecel(){return this.$store.getters["printer/getPrinterSettings"]("printer.max_accel_to_decel")??this.defaultAccel/2}get accelToDecel(){return this.$store.state.printer.printer.toolhead.max_accel_to_decel}get defaultMinimumCruiseRatio(){return this.$store.getters["printer/getPrinterSettings"]("printer.minimum_cruise_ratio")??.5}get minimumCruiseRatio(){return this.$store.state.printer.printer.toolhead.minimum_cruise_ratio}get defaultSquareCornerVelocity(){return this.$store.getters["printer/getPrinterSettings"]("printer.square_corner_velocity")||5}get squareCornerVelocity(){return this.$store.state.printer.printer.toolhead.square_corner_velocity}setVelocity(e){this.sendGcode(`SET_VELOCITY_LIMIT VELOCITY=${e}`,this.$waits.onSetVelocity)}setAccel(e){this.sendGcode(`SET_VELOCITY_LIMIT ACCEL=${e}`,this.$waits.onSetAcceleration)}setAccelToDecel(e){this.sendGcode(`SET_VELOCITY_LIMIT ACCEL_TO_DECEL=${e}`,this.$waits.onSetAccelToDecel)}setMinimumCruiseRatio(e){this.sendGcode(`SET_VELOCITY_LIMIT MINIMUM_CRUISE_RATIO=${e}`,this.$waits.onSetMinimumCruiseRatio)}setSquareCornerVelocity(e){this.sendGcode(`SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=${e}`,this.$waits.onSetSquareCornerVelocity)}};g_=$se([A({})],g_);var wse=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Le,{staticClass:"mb-0"},[t(ie,[t(B,{attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.velocity"),value:e.velocity,"reset-value":e.defaultVelocity,min:1,max:e.defaultVelocity,disabled:!e.klippyReady,overridable:"",locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetVelocity),suffix:"mm/s"},on:{submit:e.setVelocity}})],1),t(B,{attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.sqv"),value:e.squareCornerVelocity,"reset-value":e.defaultSquareCornerVelocity,min:0,max:e.defaultSquareCornerVelocity,step:.1,disabled:!e.klippyReady,overridable:"",locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetSquareCornerVelocity),suffix:"mm/s"},on:{submit:e.setSquareCornerVelocity}})],1)],1),t(ie,[t(B,{attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.acceleration"),value:e.accel,"reset-value":e.defaultAccel,min:1,max:e.defaultAccel,disabled:!e.klippyReady,overridable:"",locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetAcceleration),suffix:"mm/s²"},on:{submit:e.setAccel}})],1),t(B,{attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[e.minimumCruiseRatio!=null?t(Ft,{attrs:{label:e.$t("app.general.label.minimum_cruise_ratio"),value:e.minimumCruiseRatio,"reset-value":e.defaultMinimumCruiseRatio,min:0,max:.99,step:.01,disabled:!e.klippyReady,overridable:"",locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetMinimumCruiseRatio)},on:{submit:e.setMinimumCruiseRatio}}):e.accelToDecel!=null?t(Ft,{attrs:{label:e.$t("app.general.label.accel_to_decel"),value:e.accelToDecel,"reset-value":e.defaultAccelToDecel,min:1,max:e.defaultAccelToDecel,disabled:!e.klippyReady,overridable:"",locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetAccelToDecel),suffix:"mm/s²"},on:{submit:e.setAccelToDecel}}):e._e()],1)],1)],1)],1)},Sse=[],xse=E(g_,wse,Sse,!1,null,null);const Cse=xse.exports;var Pse=Object.defineProperty,Ase=Object.getOwnPropertyDescriptor,Lse=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ase(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&&Pse(e,t,n),n};let v_=class extends b{};v_=Lse([A({components:{PrinterLimits:Cse}})],v_);var Ese=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.general.title.limits"),icon:"$limits",draggable:"","layout-path":"dashboard.printer-limits-card"}},[t("printer-limits")],1)},Ose=[],Tse=E(v_,Ese,Ose,!1,null,null);const kse=Tse.exports;var Dse=Object.defineProperty,Mse=Object.getOwnPropertyDescriptor,Rse=(r,e,t,s)=>{for(var n=s>1?void 0:s?Mse(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&&Dse(e,t,n),n};let __=class extends Y(J,lt){get retract_length(){return this.$store.state.printer.printer.firmware_retraction.retract_length}get retract_length_max(){return this.defaults.retract_length<=0?15:Math.round(this.defaults.retract_length*2*100)/100}get retract_speed(){return this.$store.state.printer.printer.firmware_retraction.retract_speed}get retract_speed_max(){return this.defaults.retract_speed<=0?100:Math.round(this.defaults.retract_speed*2)}get unretract_speed(){return this.$store.state.printer.printer.firmware_retraction.unretract_speed}get unretract_speed_max(){return this.defaults.unretract_speed<=0?100:Math.round(this.defaults.unretract_speed*2)}get unretract_extra_length(){return this.$store.state.printer.printer.firmware_retraction.unretract_extra_length}get unretract_extra_length_max(){return this.defaults.unretract_extra_length<=0?15:Math.round(this.defaults.unretract_extra_length*2*100)/100}get defaults(){return this.$store.getters["printer/getPrinterSettings"]("firmware_retraction")||{}}setRetractLength(e){this.sendGcode(`SET_RETRACTION RETRACT_LENGTH=${e}`,this.$waits.onSetRetractLength)}setRetractSpeed(e){this.sendGcode(`SET_RETRACTION RETRACT_SPEED=${e}`,this.$waits.onSetRetractSpeed)}setUnretractSpeed(e){this.sendGcode(`SET_RETRACTION UNRETRACT_SPEED=${e}`,this.$waits.onSetUnretractSpeed)}setUnRetractExtraLength(e){this.sendGcode(`SET_RETRACTION UNRETRACT_EXTRA_LENGTH=${e}`,this.$waits.onSetUnretractExtraLength)}};__=Rse([A({})],__);var Ise=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Le,[t(ie,{staticClass:"my-0 mb-4"},[t(B,{staticClass:"py-0",attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.retract_length"),suffix:"mm",value:e.retract_length,"reset-value":e.defaults.retract_length,min:0,max:e.retract_length_max,step:.01,overridable:"",disabled:!e.klippyReady,locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetRetractLength)},on:{submit:e.setRetractLength}})],1),t(B,{staticClass:"py-0",attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.unretract_extra_length"),suffix:"mm",value:e.unretract_extra_length,"reset-value":e.defaults.unretract_extra_length,min:0,max:e.unretract_extra_length_max,step:.01,overridable:"",disabled:!e.klippyReady,locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetUnretractExtraLength)},on:{submit:e.setUnRetractExtraLength}})],1)],1),t(ie,{staticClass:"my-0 mb-4"},[t(B,{staticClass:"py-0",attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.retract_speed"),suffix:"mm/s",value:e.retract_speed,"reset-value":e.defaults.retract_speed,min:0,step:1,max:e.retract_speed_max,overridable:"",disabled:!e.klippyReady,locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetRetractSpeed)},on:{submit:e.setRetractSpeed}})],1),t(B,{staticClass:"py-0",attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.unretract_speed"),suffix:"mm/s",value:e.unretract_speed,"reset-value":e.defaults.unretract_speed,min:0,step:1,max:e.unretract_speed_max,overridable:"",disabled:!e.klippyReady,locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetUnretractSpeed)},on:{submit:e.setUnretractSpeed}})],1)],1)],1)},Fse=[],Hse=E(__,Ise,Fse,!1,null,null);const jse=Hse.exports;var Bse=Object.defineProperty,Nse=Object.getOwnPropertyDescriptor,Vse=(r,e,t,s)=>{for(var n=s>1?void 0:s?Nse(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&&Bse(e,t,n),n};let y_=class extends b{};y_=Vse([A({components:{Retract:jse}})],y_);var zse=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.general.title.retract"),icon:"$retract",draggable:"","layout-path":"dashboard.retract-card"}},[t("retract")],1)},Use=[],Wse=E(y_,zse,Use,!1,null,null);const Gse=Wse.exports;var qse=Object.defineProperty,Zse=Object.getOwnPropertyDescriptor,ro=(r,e,t,s)=>{for(var n=s>1?void 0:s?Zse(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 Un=class extends Y(lt){constructor(){super(...arguments);m(this,"data");m(this,"graphics");m(this,"options");m(this,"height");m(this,"chart")}get flatSurface(){return this.$store.state.mesh.flatSurface}get bedSize(){return this.$store.getters["printer/getBedSize"]}onFlatSurfaceChange(t){const s=t?"legendSelect":"legendUnSelect";this.chart.dispatchAction({type:s,name:"mesh_matrix_flat"}),this.chart.dispatchAction({type:s,name:"probed_matrix_flat"})}beforeDestroy(){typeof window>"u"||this.chart.dispose()}get opts(){var p,h,f,g;const t=this.$store.state.config.uiSettings.theme.isDark,s=t?"rgba(255,255,255,0.65)":"rgba(0,0,0,0.45)",n=this.isMobileViewport?14:16,i=t?"rgba(10,10,10,0.90)":"rgba(255,255,255,0.90)",a=.1,o=t?"#ffffff":"#000000",l={itemWidth:this.isMobileViewport?15:25,itemHeight:this.isMobileViewport?140:280},c={nameTextStyle:{color:s},axisPointer:{lineStyle:{color:o,opacity:.65},label:{margin:16,color:s,fontSize:n}},axisTick:{lineStyle:{color:o,opacity:a}},axisLine:{lineStyle:{color:o,opacity:a,width:2}},axisLabel:{textStyle:{color:s,fontSize:n}},splitLine:{lineStyle:{color:o,opacity:a}}},u=eB(this.graphics,v=>{switch(v.type){case"text":return{...v,style:{...v.style,fill:s,fontSize:n}};default:return}}),d={legend:{show:!1},textStyle:{fontFamily:"Roboto"},darkMode:t,tooltip:{backgroundColor:i,borderColor:i,textStyle:{color:s,fontSize:18},formatter:v=>{let y="";return v.value&&Array.isArray(v.value)&&(y+=`
|
||
<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.bedmesh"),lazy:!1,icon:"$bedMesh",draggable:!e.fullscreen,collapsable:!e.fullscreen,"layout-path":"dashboard.bed-mesh-card"},scopedSlots:e._u([{key:"menu",fn:function(){return[e.fullscreen?e._e():t(M,{staticClass:"ms-1 my-1",attrs:{small:"",loading:e.hasWait(e.$waits.onMeshCalibrate),disabled:e.printerBusy||!e.allHomed},on:{click:function(s){return e.calibrate()}}},[e._v(" "+e._s(e.$t("app.general.btn.calibrate"))+" ")]),e.canCopyImage?t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:"",disabled:!e.hasMeshLoaded},on:{click:function(i){return e.copyImage()}}},"app-btn",n,!1),s),[t(S,[e._v("$screenshot")])],1)]}}],null,!1,2634604368)},[t("span",[e._v(e._s(e.$t("app.bedmesh.tooltip.copy_image")))])]):e._e(),e.fullscreen?e._e():t(M,{staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(s){return e.$filters.routeTo(e.$router,"/tune")}}},[t(S,[e._v("$fullScreen")])],1)]},proxy:!0}])},[t(Le,[e.hasMeshLoaded?t("bed-mesh-chart",{ref:"chart",attrs:{options:e.options,data:e.series,graphics:e.graphics,height:e.isMobileViewport?"225px":"525px"}}):t("span",[e._v(e._s(e.$t("app.bedmesh.msg.not_loaded")))])],1)],1)},rne=[],sne=E($u,tne,rne,!1,null,null);const zP=sne.exports;var nne=Object.defineProperty,ine=Object.getOwnPropertyDescriptor,Zm=(r,e,t,s)=>{for(var n=s>1?void 0:s?ine(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&&nne(e,t,n),n};let ll=class extends b{constructor(){super(...arguments);m(this,"disabled");m(this,"inputSlot");m(this,"hasFocus",!1)}onHasFocusChanged(e){e?this.$emit("focus"):this.$emit("blur")}focus(){this.inputSlot.focus()}};Zm([w({type:Boolean})],ll.prototype,"disabled",2);Zm([Te("input-slot")],ll.prototype,"inputSlot",2);Zm([Ae("hasFocus")],ll.prototype,"onHasFocusChanged",1);ll=Zm([A({})],ll);var ane=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{on:{focusin:function(s){e.hasFocus=!0},focusout:function(s){e.hasFocus=!1}}},[t("div",{staticClass:"v-input v-input--hide-details v-text-field v-text-field--enclosed v-text-field--outlined",class:{"v-input--is-focused":e.hasFocus,"v-input--is-disabled":e.disabled,[e.$vuetify.theme.dark?"theme--dark":"theme--light"]:!0}},[t("div",{staticClass:"v-input__control"},[t("div",{ref:"input-slot",staticClass:"v-input__slot",attrs:{tabindex:e.disabled?void 0:0}},[e._t("default"),t("fieldset",{class:{"primary--text":e.hasFocus},attrs:{"aria-hidden":"true"}})],2)])])])},one=[],lne=E(ll,ane,one,!1,null,"56210b9f");const cne=lne.exports;var Ym={exports:{}};Ym.exports=UP;Ym.exports.addWheelListener=UP;Ym.exports.removeWheelListener=une;function UP(r,e,t){r.addEventListener("wheel",e,t)}function une(r,e,t){r.removeEventListener("wheel",e,t)}var dne=Ym.exports,Km={exports:{}},pne=4,hne=.001,fne=1e-7,mne=10,Ac=11,up=1/(Ac-1),gne=typeof Float32Array=="function";function WP(r,e){return 1-3*e+3*r}function GP(r,e){return 3*e-6*r}function qP(r){return 3*r}function lf(r,e,t){return((WP(e,t)*r+GP(e,t))*r+qP(e))*r}function ZP(r,e,t){return 3*WP(e,t)*r*r+2*GP(e,t)*r+qP(e)}function vne(r,e,t,s,n){var i,a,o=0;do a=e+(t-e)/2,i=lf(a,s,n)-r,i>0?t=a:e=a;while(Math.abs(i)>fne&&++o<mne);return a}function _ne(r,e,t,s){for(var n=0;n<pne;++n){var i=ZP(e,t,s);if(i===0)return e;var a=lf(e,t,s)-r;e-=a/i}return e}function yne(r){return r}var bne=function(e,t,s,n){if(!(0<=e&&e<=1&&0<=s&&s<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===t&&s===n)return yne;for(var i=gne?new Float32Array(Ac):new Array(Ac),a=0;a<Ac;++a)i[a]=lf(a*up,e,s);function o(l){for(var c=0,u=1,d=Ac-1;u!==d&&i[u]<=l;++u)c+=up;--u;var p=(l-i[u])/(i[u+1]-i[u]),h=c+p*up,f=ZP(h,e,s);return f>=hne?_ne(l,h,e,s):f===0?h:vne(l,c,c+up,e,s)}return function(c){return c===0?0:c===1?1:lf(o(c),t,n)}},uc=bne,MS={ease:uc(.25,.1,.25,1),easeIn:uc(.42,0,1,1),easeOut:uc(0,0,.58,1),easeInOut:uc(.42,0,.58,1),linear:uc(0,0,1,1)};Km.exports=$ne;Km.exports.makeAggregateRaf=YP;Km.exports.sharedScheduler=YP();function $ne(r,e,t){var s=Object.create(null),n=Object.create(null);t=t||{};var i=typeof t.easing=="function"?t.easing:MS[t.easing];i||(t.easing&&console.warn("Unknown easing function in amator: "+t.easing),i=MS.ease);var a=typeof t.step=="function"?t.step:RS,o=typeof t.done=="function"?t.done:RS,l=wne(t.scheduler),c=Object.keys(e);c.forEach(function(y){s[y]=r[y],n[y]=e[y]-r[y]});var u=typeof t.duration=="number"?t.duration:400,d=Math.max(1,u*.06),p,h=0;return p=l.next(g),{cancel:f};function f(){l.cancel(p),p=0}function g(){var y=i(h/d);h+=1,v(y),h<=d?(p=l.next(g),a(r)):(p=0,setTimeout(function(){o(r)},0))}function v(y){c.forEach(function(C){r[C]=n[C]*y+s[C]})}}function RS(){}function wne(r){if(!r){var e=typeof window<"u"&&window.requestAnimationFrame;return e?Sne():xne()}if(typeof r.next!="function")throw new Error("Scheduler is supposed to have next(cb) function");if(typeof r.cancel!="function")throw new Error("Scheduler is supposed to have cancel(handle) function");return r}function Sne(){return{next:window.requestAnimationFrame.bind(window),cancel:window.cancelAnimationFrame.bind(window)}}function xne(){return{next:function(r){return setTimeout(r,1e3/60)},cancel:function(r){return clearTimeout(r)}}}function YP(){var r=new Set,e=new Set,t=0;return{next:n,cancel:n,clearAll:s};function s(){r.clear(),e.clear(),cancelAnimationFrame(t),t=0}function n(o){e.add(o),i()}function i(){t||(t=requestAnimationFrame(a))}function a(){t=0;var o=e;e=r,r=o,r.forEach(function(l){l()}),r.clear()}}var Cne=Km.exports,Pne=function(e){Lne(e);var t=Ane(e);return e.on=t.on,e.off=t.off,e.fire=t.fire,e};function Ane(r){var e=Object.create(null);return{on:function(t,s,n){if(typeof s!="function")throw new Error("callback is expected to be a function");var i=e[t];return i||(i=e[t]=[]),i.push({callback:s,ctx:n}),r},off:function(t,s){var n=typeof t>"u";if(n)return e=Object.create(null),r;if(e[t]){var i=typeof s!="function";if(i)delete e[t];else for(var a=e[t],o=0;o<a.length;++o)a[o].callback===s&&a.splice(o,1)}return r},fire:function(t){var s=e[t];if(!s)return r;var n;arguments.length>1&&(n=Array.prototype.splice.call(arguments,1));for(var i=0;i<s.length;++i){var a=s[i];a.callback.apply(a.ctx,n)}return r}}}function Lne(r){if(!r)throw new Error("Eventify cannot use falsy object as events subject");for(var e=["on","fire","off"],t=0;t<e.length;++t)if(r.hasOwnProperty(e[t]))throw new Error("Subject cannot be eventified, since it already has property '"+e[t]+"'")}var Ene=One;function One(r,e,t){typeof t!="object"&&(t={});var s=typeof t.minVelocity=="number"?t.minVelocity:5,n=typeof t.amplitude=="number"?t.amplitude:.25,i=typeof t.cancelAnimationFrame=="function"?t.cancelAnimationFrame:Tne(),a=typeof t.requestAnimationFrame=="function"?t.requestAnimationFrame:kne(),o,l,c=342,u,d,p,h,f,g,v,y;return{start:x,stop:L,cancel:C};function C(){i(u),i(y)}function x(){o=r(),h=v=d=f=0,l=new Date,i(u),i(y),u=a($)}function $(){var K=Date.now(),le=K-l;l=K;var ue=r(),ne=ue.x-o.x,fe=ue.y-o.y;o=ue;var k=1e3/(1+le);d=.8*ne*k+.2*d,f=.8*fe*k+.2*f,u=a($)}function L(){i(u),i(y);var K=r();p=K.x,g=K.y,l=Date.now(),(d<-s||d>s)&&(h=n*d,p+=h),(f<-s||f>s)&&(v=n*f,g+=v),y=a(G)}function G(){var K=Date.now()-l,le=!1,ue=0,ne=0;h&&(ue=-h*Math.exp(-K/c),ue>.5||ue<-.5?le=!0:ue=h=0),v&&(ne=-v*Math.exp(-K/c),ne>.5||ne<-.5?le=!0:ne=v=0),le&&(e(p+ue,g+ne),y=a(G))}}function Tne(){return typeof cancelAnimationFrame=="function"?cancelAnimationFrame:clearTimeout}function kne(){return typeof requestAnimationFrame=="function"?requestAnimationFrame:function(r){return setTimeout(r,16)}}var Dne=Mne;function Mne(r){if(r)return{capture:FS,release:FS};var e,t,s,n=!1;return{capture:i,release:a};function i(o){n=!0,t=window.document.onselectstart,s=window.document.ondragstart,window.document.onselectstart=IS,e=o,e.ondragstart=IS}function a(){n&&(n=!1,window.document.onselectstart=t,e&&(e.ondragstart=s))}}function IS(r){return r.stopPropagation(),!1}function FS(){}var s1,HS;function Rne(){if(HS)return s1;HS=1,s1=r;function r(){this.x=0,this.y=0,this.scale=1}return s1}var dp={exports:{}},jS;function Ine(){if(jS)return dp.exports;jS=1,dp.exports=r,dp.exports.canAttach=e;function r(t,s){if(!e(t))throw new Error("svg element is required for svg.panzoom to work");var n=t.ownerSVGElement;if(!n)throw new Error("Do not apply panzoom to the root <svg> element. Use its child instead (e.g. <g></g>). As of March 2016 only FireFox supported transform on the root element");s.disableKeyboardInteraction||n.setAttribute("tabindex",0);var i={getBBox:o,getScreenCTM:l,getOwner:a,applyTransform:u,initTransform:c};return i;function a(){return n}function o(){var d=t.getBBox();return{left:d.x,top:d.y,width:d.width,height:d.height}}function l(){var d=n.getCTM();return d||n.getScreenCTM()}function c(d){var p=t.getCTM();p===null&&(p=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGMatrix()),d.x=p.e,d.y=p.f,d.scale=p.a,n.removeAttributeNS(null,"viewBox")}function u(d){t.setAttribute("transform","matrix("+d.scale+" 0 0 "+d.scale+" "+d.x+" "+d.y+")")}}function e(t){return t&&t.ownerSVGElement&&t.getCTM}return dp.exports}var pp={exports:{}},BS;function Fne(){if(BS)return pp.exports;BS=1,pp.exports=r,pp.exports.canAttach=e;function r(t,s){var n=e(t);if(!n)throw new Error("panzoom requires DOM element to be attached to the DOM tree");var i=t.parentElement;t.scrollTop=0,s.disableKeyboardInteraction||i.setAttribute("tabindex",0);var a={getBBox:l,getOwner:o,applyTransform:c};return a;function o(){return i}function l(){return{left:0,top:0,width:t.clientWidth,height:t.clientHeight}}function c(u){t.style.transformOrigin="0 0 0",t.style.transform="matrix("+u.scale+", 0, 0, "+u.scale+", "+u.x+", "+u.y+")"}}function e(t){return t&&t.parentElement&&t.style}return pp.exports}var NS=dne,n1=Cne,Hne=Pne,jne=Ene,KP=Dne,Bne=KP(),Nne=KP(!0),Vne=Rne(),VS=Ine(),zS=Fne(),zne=1,Une=1.75,US=300,WS=200,Wne=XP;function XP(r,e){e=e||{};var t=e.controller;if(t||(VS.canAttach(r)?t=VS(r,e):zS.canAttach(r)&&(t=zS(r,e))),!t)throw new Error("Cannot create panzoom for the current type of dom element");var s=t.getOwner(),n={x:0,y:0},i=!1,a=new Vne;t.initTransform&&t.initTransform(a);var o=typeof e.filterKey=="function"?e.filterKey:jo,l=typeof e.pinchSpeed=="number"?e.pinchSpeed:1,c=e.bounds,u=typeof e.maxZoom=="number"?e.maxZoom:Number.POSITIVE_INFINITY,d=typeof e.minZoom=="number"?e.minZoom:0,p=typeof e.boundsPadding=="number"?e.boundsPadding:.05,h=typeof e.zoomDoubleClickSpeed=="number"?e.zoomDoubleClickSpeed:Une,f=e.beforeWheel||jo,g=e.beforeMouseDown||jo,v=typeof e.zoomSpeed=="number"?e.zoomSpeed:zne,y=GS(e.transformOrigin),C=e.enableTextSelection?Nne:Bne;Gne(c),e.autocenter&&Rd();var x,$=0,L=0,G=0,K=null,le=new Date,ue,ne=!1,fe=!1,k,T,P,O,j,N;"smoothScroll"in e&&!e.smoothScroll?N=qne():N=jne(Fd,Ts,e.smoothScroll);var U,V,Q,X=!1;po();var q={dispose:ri,moveBy:Os,moveTo:ql,smoothMoveTo:uo,centerOn:jd,zoomTo:qi,zoomAbs:ti,smoothZoom:Gi,smoothZoomAbs:Ud,showRectangle:Lr,pause:_e,resume:Me,isPaused:wt,getTransform:Jn,getMinZoom:Ul,setMinZoom:An,getMaxZoom:Wl,setMaxZoom:Gl,getTransformOrigin:Qn,setTransformOrigin:ao,getZoomSpeed:oo,setZoomSpeed:Id};Hne(q);var Z=typeof e.initialX=="number"?e.initialX:a.x,te=typeof e.initialY=="number"?e.initialY:a.y,re=typeof e.initialZoom=="number"?e.initialZoom:a.scale;return(Z!=a.x||te!=a.y||re!=a.scale)&&ti(Z,te,re),q;function _e(){ho(),X=!0}function Me(){X&&(po(),X=!1)}function wt(){return X}function Lr(F){var ee=s.getBoundingClientRect(),se=Es(ee.width,ee.height),de=F.right-F.left,Ue=F.bottom-F.top;if(!Number.isFinite(de)||!Number.isFinite(Ue))throw new Error("Invalid rectangle");var Ne=se.x/de,it=se.y/Ue,jt=Math.min(Ne,it);a.x=-(F.left+de/2)*jt+se.x/2,a.y=-(F.top+Ue/2)*jt+se.y/2,a.scale=jt}function Es(F,ee){if(t.getScreenCTM){var se=t.getScreenCTM(),de=se.a,Ue=se.d,Ne=se.e,it=se.f;n.x=F*de-Ne,n.y=ee*Ue-it}else n.x=F,n.y=ee;return n}function Rd(){var F,ee,se=0,de=0,Ue=En();if(Ue)se=Ue.left,de=Ue.top,F=Ue.right-Ue.left,ee=Ue.bottom-Ue.top;else{var Ne=s.getBoundingClientRect();F=Ne.width,ee=Ne.height}var it=t.getBBox();if(!(it.width===0||it.height===0)){var jt=ee/it.height,go=F/it.width,Zi=Math.min(go,jt);a.x=-(it.left+it.width/2)*Zi+F/2+se,a.y=-(it.top+it.height/2)*Zi+ee/2+de,a.scale=Zi}}function Jn(){return a}function Ul(){return d}function An(F){d=F}function Wl(){return u}function Gl(F){u=F}function Qn(){return y}function ao(F){y=GS(F)}function oo(){return v}function Id(F){if(!Number.isFinite(F))throw new Error("Zoom speed should be a number");v=F}function Fd(){return{x:a.x,y:a.y}}function ql(F,ee){a.x=F,a.y=ee,Ln(),Xe("pan"),co()}function lo(F,ee){ql(a.x+F,a.y+ee)}function Ln(){var F=En();if(F){var ee=!1,se=ei(),de=F.left-se.right;return de>0&&(a.x+=de,ee=!0),de=F.right-se.left,de<0&&(a.x+=de,ee=!0),de=F.top-se.bottom,de>0&&(a.y+=de,ee=!0),de=F.bottom-se.top,de<0&&(a.y+=de,ee=!0),ee}}function En(){if(c){if(typeof c=="boolean"){var F=s.getBoundingClientRect(),ee=F.width,se=F.height;return{left:ee*p,top:se*p,right:ee*(1-p),bottom:se*(1-p)}}return c}}function ei(){var F=t.getBBox(),ee=Hd(F.left,F.top);return{left:ee.x,top:ee.y,right:F.width*a.scale+ee.x,bottom:F.height*a.scale+ee.y}}function Hd(F,ee){return{x:F*a.scale+a.x,y:ee*a.scale+a.y}}function co(){i=!0,x=window.requestAnimationFrame(yg)}function Zl(F,ee,se){if(i1(F)||i1(ee)||i1(se))throw new Error("zoom requires valid numbers");var de=a.scale*se;if(de<d){if(a.scale===d)return;se=d/a.scale}if(de>u){if(a.scale===u)return;se=u/a.scale}var Ue=Es(F,ee);if(a.x=Ue.x-se*(Ue.x-a.x),a.y=Ue.y-se*(Ue.y-a.y),c&&p===1&&d===1)a.scale*=se,Ln();else{var Ne=Ln();Ne||(a.scale*=se)}Xe("zoom"),co()}function ti(F,ee,se){var de=se/a.scale;Zl(F,ee,de)}function jd(F){var ee=F.ownerSVGElement;if(!ee)throw new Error("ui element is required to be within the scene");var se=F.getBoundingClientRect(),de=se.left+se.width/2,Ue=se.top+se.height/2,Ne=ee.getBoundingClientRect(),it=Ne.width/2-de,jt=Ne.height/2-Ue;Os(it,jt,!0)}function uo(F,ee){Os(F-a.x,ee-a.y,!0)}function Os(F,ee,se){if(!se)return lo(F,ee);U&&U.cancel();var de={x:0,y:0},Ue={x:F,y:ee},Ne=0,it=0;U=n1(de,Ue,{step:function(jt){lo(jt.x-Ne,jt.y-it),Ne=jt.x,it=jt.y}})}function Ts(F,ee){mo(),ql(F,ee)}function ri(){ho()}function po(){s.addEventListener("mousedown",qr,{passive:!1}),s.addEventListener("dblclick",zd,{passive:!1}),s.addEventListener("touchstart",Rt,{passive:!1}),s.addEventListener("keydown",Bd,{passive:!1}),NS.addWheelListener(s,ec,{passive:!1}),co()}function ho(){NS.removeWheelListener(s,ec),s.removeEventListener("mousedown",qr),s.removeEventListener("keydown",Bd),s.removeEventListener("dblclick",zd),s.removeEventListener("touchstart",Rt),x&&(window.cancelAnimationFrame(x),x=0),N.cancel(),Jl(),Ql(),C.release(),oe()}function yg(){i&&zi()}function zi(){i=!1,t.applyTransform(a),Xe("transform"),x=0}function Bd(F){var ee=0,se=0,de=0;if(F.keyCode===38?se=1:F.keyCode===40?se=-1:F.keyCode===37?ee=1:F.keyCode===39?ee=-1:F.keyCode===189||F.keyCode===109?de=1:(F.keyCode===187||F.keyCode===107)&&(de=-1),!o(F,ee,se,de)){if(ee||se){F.preventDefault(),F.stopPropagation();var Ue=s.getBoundingClientRect(),Ne=Math.min(Ue.width,Ue.height),it=.05,jt=Ne*it*ee,go=Ne*it*se;Os(jt,go)}if(de){var Zi=we(de*100),Ne=y?ii():bg();qi(Ne.x,Ne.y,Zi)}}}function bg(){var F=s.getBoundingClientRect();return{x:F.width/2,y:F.height/2}}function Rt(F){if(si(F),ni(),F.touches.length===1)return Nd(F,F.touches[0]);F.touches.length===2&&(j=Kl(F.touches[0],F.touches[1]),Q=!0,fo())}function si(F){e.onTouch&&!e.onTouch(F)||(F.stopPropagation(),F.preventDefault())}function $g(F){ni(),!(e.onDoubleClick&&!e.onDoubleClick(F))&&(F.preventDefault(),F.stopPropagation())}function Nd(F){L=new Date;var ee=F.touches[0],se=Ut(ee);ue=se;var de=Es(se.x,se.y);k=de.x,T=de.y,P=k,O=T,N.cancel(),fo()}function fo(){ne||(ne=!0,document.addEventListener("touchmove",Yl),document.addEventListener("touchend",Ui),document.addEventListener("touchcancel",Ui))}function Yl(F){if(F.touches.length===1){F.stopPropagation();var ee=F.touches[0],se=Ut(ee),de=Es(se.x,se.y),Ue=de.x-k,Ne=de.y-T;Ue!==0&&Ne!==0&&D(),k=de.x,T=de.y,Os(Ue,Ne)}else if(F.touches.length===2){Q=!0;var it=F.touches[0],jt=F.touches[1],go=Kl(it,jt),Zi=1+(go/j-1)*l,k2=Ut(it),D2=Ut(jt);if(k=(k2.x+D2.x)/2,T=(k2.y+D2.y)/2,y){var se=ii();k=se.x,T=se.y}qi(k,T,Zi),j=go,F.stopPropagation(),F.preventDefault()}}function ni(){G&&(clearTimeout(G),G=0)}function Vd(F){if(e.onClick){ni();var ee=k-P,se=T-O,de=Math.sqrt(ee*ee+se*se);de>5||(G=setTimeout(function(){G=0,e.onClick(F)},US))}}function Ui(F){if(ni(),F.touches.length>0){var ee=Ut(F.touches[0]),se=Es(ee.x,ee.y);k=se.x,T=se.y}else{var de=new Date;if(de-$<US)if(y){var ee=ii();Gi(ee.x,ee.y,h)}else Gi(ue.x,ue.y,h);else de-L<WS&&Vd(F);$=de,oe(),Ql()}}function Kl(F,ee){var se=F.clientX-ee.clientX,de=F.clientY-ee.clientY;return Math.sqrt(se*se+de*de)}function zd(F){$g(F);var ee=Ut(F);y&&(ee=ii()),Gi(ee.x,ee.y,h)}function qr(F){if(ni(),!g(F)){if(K=F,le=new Date,ne)return F.stopPropagation(),!1;var ee=F.button===1&&window.event!==null||F.button===0;if(ee){N.cancel();var se=Ut(F),de=Es(se.x,se.y);return P=k=de.x,O=T=de.y,document.addEventListener("mousemove",Wi),document.addEventListener("mouseup",Xl),C.capture(F.target||F.srcElement),!1}}}function Wi(F){if(!ne){D();var ee=Ut(F),se=Es(ee.x,ee.y),de=se.x-k,Ue=se.y-T;k=se.x,T=se.y,Os(de,Ue)}}function Xl(){var F=new Date;F-le<WS&&Vd(K),C.release(),oe(),Jl()}function Jl(){document.removeEventListener("mousemove",Wi),document.removeEventListener("mouseup",Xl),fe=!1}function Ql(){document.removeEventListener("touchmove",Yl),document.removeEventListener("touchend",Ui),document.removeEventListener("touchcancel",Ui),fe=!1,Q=!1,ne=!1}function ec(F){if(!f(F)){N.cancel();var ee=F.deltaY;F.deltaMode>0&&(ee*=100);var se=we(ee);if(se!==1){var de=y?ii():Ut(F);qi(de.x,de.y,se),F.preventDefault()}}}function Ut(F){var ee,se,de=s.getBoundingClientRect();return ee=F.clientX-de.left,se=F.clientY-de.top,{x:ee,y:se}}function Gi(F,ee,se){var de=a.scale,Ue={scale:de},Ne={scale:se*de};N.cancel(),mo(),V=n1(Ue,Ne,{step:function(it){ti(F,ee,it.scale)},done:$e})}function Ud(F,ee,se){var de=a.scale,Ue={scale:de},Ne={scale:se};N.cancel(),mo(),V=n1(Ue,Ne,{step:function(it){ti(F,ee,it.scale)}})}function ii(){var F=s.getBoundingClientRect();return{x:F.width*y.x,y:F.height*y.y}}function qi(F,ee,se){return N.cancel(),mo(),Zl(F,ee,se)}function mo(){V&&(V.cancel(),V=null)}function we(F){var ee=Math.sign(F),se=Math.min(.25,Math.abs(v*F/128));return 1-ee*se}function D(){fe||(Xe("panstart"),fe=!0,N.start())}function oe(){fe&&(Q||N.stop(),Xe("panend"))}function $e(){Xe("zoomend")}function Xe(F){q.fire(F,q)}}function GS(r){if(r){if(typeof r=="object")return(!Do(r.x)||!Do(r.y))&&qS(r),r;qS()}}function qS(r){throw console.error(r),new Error(["Cannot parse transform origin.","Some good examples:",' "center center" can be achieved with {x: 0.5, y: 0.5}',' "top center" can be achieved with {x: 0.5, y: 0}',' "bottom right" can be achieved with {x: 1, y: 1}'].join(`
|
||
`))}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,iie,!1,null,null);const oie=aie.exports;var lie=Object.defineProperty,cie=Object.getOwnPropertyDescriptor,so=(r,e,t,s)=>{for(var n=s>1?void 0:s?cie(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&&lie(e,t,n),n};let Wn=class extends Y(J,lt){constructor(){super(...arguments);m(this,"disabled");m(this,"progress");m(this,"layer");m(this,"container");m(this,"svg");m(this,"focused",!1);m(this,"panzoom");m(this,"panning",!1)}get themeIsDark(){return this.$store.state.config.uiSettings.theme.isDark}get filePosition(){return this.$store.state.printer.printer.virtual_sdcard.file_position}get extrusionLineWidth(){return this.getUiSetting("extrusionLineWidth")}get moveLineWidth(){return this.getUiSetting("moveLineWidth")}get retractionIconSize(){return this.getUiSetting("retractionIconSize")}get drawBackground(){return this.getUiSetting("drawBackground")}get drawOrigin(){return this.getUiSetting("drawOrigin")}get showAnimations(){return this.getUiSetting("showAnimations")}get autoZoom(){return this.getUiSetting("autoZoom")}set autoZoom(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.autoZoom",value:t,server:!0}),this.reset()}get shapeRendering(){return this.panning?"optimizeSpeed":"geometricPrecision"}get showExcludeObjects(){if(!this.klippyReady||!(this.printerPrinting||this.printerPaused))return!1;const t=this.$store.getters["gcodePreview/getFile"];if(!t)return!0;const s=this.$store.state.printer.printer.current_file;return s.filename?`${t.path}/${t.filename}`==`${s.path}/${s.filename}`:!1}get flipX(){return this.$store.state.config.uiSettings.gcodePreview.flip.horizontal}get flipY(){return this.$store.state.config.uiSettings.gcodePreview.flip.vertical}get flipTransform(){const{x:t,y:s}=this.viewBox,n=[this.flipX?-1:1,this.flipY?-1:1],i=[this.flipX?-(t.max+t.min):0,this.flipY?-(s.max+s.min):0];return`scale(${n.join()}) translate(${i.join()})`}get hasRoundBed(){return this.$store.getters["printer/getHasRoundBed"]}get bedSize(){return this.$store.getters["printer/getBedSize"]??{minX:0,minY:0,maxX:100,maxY:100}}get viewBox(){const t=this.bounds;if(this.autoZoom){const n=Math.min(t.x.max-t.x.min,t.y.max-t.y.min)*.05;return{x:{min:t.x.min-n,max:t.x.max+n},y:{min:t.y.min-n,max:t.y.max+n}}}const s=this.bedSize;return{x:{min:Math.min(s.minX,t.x.min)-2,max:Math.max(s.maxX,t.x.max)+2},y:{min:Math.min(s.minY,t.y.min)-2,max:Math.max(s.maxY,t.y.max)+2}}}get svgViewBox(){const{x:t,y:s}=this.viewBox;return`${t.min} ${s.min} ${t.max-t.min} ${s.max-s.min}`}get defaultLayerPaths(){return{extrusions:"",moves:"",retractions:[],extrusionStarts:[],toolhead:{x:0,y:0}}}get svgPathCurrent(){if(this.disabled)return this.defaultLayerPaths;const t=this.$store.getters["gcodePreview/getLayers"][this.layer];if(this.getViewerOption("followProgress")){const s=this.$store.getters["gcodePreview/getMoveIndexByFilePosition"](this.filePosition);return this.$store.getters["gcodePreview/getPaths"]((t==null?void 0:t.move)??0,s)}return this.$store.getters["gcodePreview/getPaths"]((t==null?void 0:t.move)??0,this.progress)}get svgPathActive(){return this.disabled?this.defaultLayerPaths:this.$store.getters["gcodePreview/getLayerPaths"](this.layer)}get svgPathPrevious(){return this.disabled||this.layer<=0?this.defaultLayerPaths:this.$store.getters["gcodePreview/getLayerPaths"](this.layer-1)}get svgPathNext(){const t=this.$store.getters["gcodePreview/getLayers"];return this.disabled||this.layer>=t.length?this.defaultLayerPaths:this.$store.getters["gcodePreview/getLayerPaths"](this.layer+1)}get svgPathParts(){return this.$store.getters["gcodePreview/getPartPaths"]}get file(){return this.$store.getters["gcodePreview/getFile"]}get bounds(){return this.$store.getters["gcodePreview/getBounds"]}onFocusedChanged(t){this.panzoom&&!this.isMobileViewport&&(t?this.panzoom.resume():this.panzoom.pause())}mounted(){this.panzoom=Yne(this.svg,{maxZoom:20,minZoom:.95,smoothScroll:this.showAnimations,beforeMouseDown:()=>this.disabled,beforeWheel:()=>!this.focused||this.disabled,onClick:()=>this.disabled,onDoubleClick:()=>this.disabled}),this.panzoom.on("panstart",()=>{this.panning=!0}),this.panzoom.on("panend",()=>{this.panning=!1})}beforeDestroy(){var t;(t=this.panzoom)==null||t.dispose()}reset(){var t,s;(t=this.panzoom)==null||t.moveTo(0,0),(s=this.panzoom)==null||s.zoomAbs(0,0,1)}keepFocus(){this.isMobileViewport||this.container.focus()}getViewerOption(t){return this.$store.getters["gcodePreview/getViewerOption"](t)}getUiSetting(t){return this.$store.state.config.uiSettings.gcodePreview[t]}};so([w({type:Boolean})],Wn.prototype,"disabled",2);so([w({type:Number,default:1/0})],Wn.prototype,"progress",2);so([w({type:Number,default:0})],Wn.prototype,"layer",2);so([Te("container")],Wn.prototype,"container",2);so([Te("svg")],Wn.prototype,"svg",2);so([Ae("focused")],Wn.prototype,"onFocusedChanged",1);Wn=so([A({components:{ExcludeObjects:tie,GcodePreviewButton:oie}})],Wn);var uie=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(cne,{ref:"container",attrs:{disabled:e.disabled},on:{focus:function(s){e.focused=!0},blur:function(s){e.focused=!1}}},[t("svg",{ref:"svg",attrs:{viewBox:e.svgViewBox,height:"100%",width:"100%",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[t("defs",[t("pattern",{attrs:{id:"backgroundPattern",patternUnits:"userSpaceOnUse",width:"10",height:"10"}},[t("rect",{attrs:{width:"10",height:"10","stroke-width":".1",stroke:e.themeIsDark?"black":"white",fill:e.themeIsDark?"#555":"lightgrey","fill-opacity":e.disabled?.6:void 0}})]),e.hasRoundBed?t("clipPath",{attrs:{id:"clipCircle"}},[t("circle",{attrs:{r:e.bedSize.maxX,cx:"0",cy:"0"}})]):e._e(),t("svg",{attrs:{id:"retraction",width:e.retractionIconSize,height:e.retractionIconSize,viewBox:"0 0 10 10"}},[e.flipY?t("path",{attrs:{d:"M 0,0 L 5,10 L 10,0 Z",fill:"red","fill-opacity":"0.9","shape-rendering":e.shapeRendering}}):t("path",{attrs:{d:"M 10,10 L 5,0 L 0,10 Z",fill:"red","fill-opacity":"0.9","shape-rendering":e.shapeRendering}})]),t("svg",{attrs:{id:"extrusionStart",width:e.retractionIconSize,height:e.retractionIconSize,viewBox:"0 0 10 10"}},[e.flipY?t("path",{attrs:{d:"M 10,10 L 5,0 L 0,10 Z",fill:"green","fill-opacity":"0.9","shape-rendering":e.shapeRendering}}):t("path",{attrs:{d:"M 0,0 L 5,10 L 10,0 Z",fill:"green","fill-opacity":"0.9","shape-rendering":e.shapeRendering}})]),t("svg",{attrs:{id:"origin",width:"12",height:"12",viewBox:"-2 -2 12 12"}},[t("path",{attrs:{fill:"#ff0000","fill-opacity":"0.4",d:"M 8.5859375 -1.4140625 L 8.2324219 -1.0605469 L 9.0429688 -0.25 L 0.96875 -0.25 A 1 1 0 0 1 1 0 A 1 1 0 0 1 0.96679688 0.25 L 9.0429688 0.25 L 8.2324219 1.0605469 L 8.5859375 1.4140625 L 10 0 L 8.5859375 -1.4140625 z ","shape-rendering":e.shapeRendering}}),t("path",{attrs:{fill:"#00ff00","fill-opacity":"0.4",d:"M -0.25 0.96679688 L -0.25 9.0429688 L -1.0605469 8.2324219 L -1.4140625 8.5859375 L 0 10 L 1.4140625 8.5859375 L 1.0605469 8.2324219 L 0.25 9.0429688 L 0.25 0.96679688 A 1 1 0 0 1 0 1 A 1 1 0 0 1 -0.25 0.96679688 z ","shape-rendering":e.shapeRendering}}),t("circle",{attrs:{fill:"#0000ff","fill-opacity":"0.4",cx:"0",cy:"0",r:"1","shape-rendering":e.shapeRendering}})])]),t("g",{attrs:{transform:e.flipTransform}},[e.drawBackground?t("g",{attrs:{id:"background"}},[t("rect",{attrs:{height:e.bedSize.maxY-e.bedSize.minY,width:e.bedSize.maxX-e.bedSize.minX,fill:"url(#backgroundPattern)","clip-path":e.hasRoundBed?"url(#clipCircle)":void 0,x:e.bedSize.minX,y:e.bedSize.minY}})]):e._e(),e.drawOrigin?t("g",[t("use",{attrs:{"xlink:href":"#origin",x:"-2",y:"-2"}})]):e._e(),e.getViewerOption("showParts")&&!e.showExcludeObjects&&e.svgPathParts.length>0?t("g",{attrs:{id:"parts"}},e._l(e.svgPathParts,function(s,n){return t("path",{key:`part-${n+1}`,attrs:{"fill-opacity":"0.2",d:s,"shape-rendering":e.shapeRendering}})}),0):e._e(),e.getViewerOption("showPreviousLayer")?t("g",{staticClass:"layer",attrs:{id:"previousLayer"}},[t("path",{attrs:{stroke:e.themeIsDark?"lightgrey":"#555","stroke-width":e.extrusionLineWidth,"stroke-opacity":"0.6",d:e.svgPathPrevious.extrusions,"shape-rendering":e.shapeRendering}})]):e._e(),e.getViewerOption("showCurrentLayer")?t("g",{staticClass:"layer",attrs:{id:"activeLayer"}},[t("path",{attrs:{stroke:e.themeIsDark?"lightgrey":"#555","stroke-width":e.extrusionLineWidth,"stroke-opacity":"0.6",d:e.svgPathActive.extrusions,"shape-rendering":e.shapeRendering}})]):e._e(),t("g",{staticClass:"layer",attrs:{id:"currentLayer"}},[e.getViewerOption("showExtrusions")?t("path",{attrs:{d:e.svgPathCurrent.extrusions,stroke:e.themeIsDark?"white":"black","stroke-width":e.extrusionLineWidth,"shape-rendering":e.shapeRendering}}):e._e(),e.getViewerOption("showMoves")?t("path",{attrs:{d:e.svgPathCurrent.moves,stroke:"gray","stroke-width":e.moveLineWidth,"shape-rendering":e.shapeRendering}}):e._e(),t("circle",{attrs:{id:"toolhead",fill:"green",r:".6",cx:e.svgPathCurrent.toolhead.x,cy:e.svgPathCurrent.toolhead.y}}),e.getViewerOption("showRetractions")&&e.svgPathCurrent.retractions.length>0?t("g",{attrs:{id:"retractions"}},e._l(e.svgPathCurrent.retractions,function({x:s,y:n},i){return t("use",{key:`retraction-${i+1}`,attrs:{"xlink:href":"#retraction",x:s-e.retractionIconSize/2,y:e.flipY?n:n-e.retractionIconSize}})}),0):e._e(),e.getViewerOption("showRetractions")&&e.svgPathCurrent.extrusionStarts.length>0?t("g",{attrs:{id:"extrusionStarts"}},e._l(e.svgPathCurrent.extrusionStarts,function({x:s,y:n},i){return t("use",{key:`extrusion-start-${i+1}`,attrs:{"xlink:href":"#extrusionStart",x:s-e.retractionIconSize/2,y:e.flipY?n:n-e.retractionIconSize}})}),0):e._e()]),e.getViewerOption("showNextLayer")?t("g",{staticClass:"layer",attrs:{id:"nextLayer"}},[t("path",{attrs:{stroke:"lightgrey","stroke-opacity":"0.6",d:e.svgPathNext.extrusions,"stroke-width":e.extrusionLineWidth,"shape-rendering":e.shapeRendering}})]):e._e(),e.getViewerOption("showParts")&&e.showExcludeObjects?t("exclude-objects",{attrs:{"shape-rendering":e.shapeRendering},on:{cancel:function(s){return e.$emit("cancelObject",s)}}}):e._e()],1)]),e.file?t("div",{staticClass:"preview-options",on:{mousedown:function(s){s.stopPropagation()},mouseup:e.keepFocus,dblclick:function(s){s.stopPropagation()},touchstart:function(s){var n;(n=e.panzoom)==null||n.pause()},touchend:function(s){var n;(n=e.panzoom)==null||n.resume()}}},[t("gcode-preview-button",{attrs:{name:"followProgress",icon:"$play",tooltip:e.$t("app.gcode.label.follow_progress")}}),t("gcode-preview-button",{attrs:{name:"showPreviousLayer",icon:"$previousLayer",tooltip:e.$t("app.gcode.label.show_previous_layer")}}),t("gcode-preview-button",{attrs:{name:"showCurrentLayer",icon:"$currentLayer",tooltip:e.$t("app.gcode.label.show_current_layer")}}),t("gcode-preview-button",{attrs:{name:"showNextLayer",icon:"$nextLayer",tooltip:e.$t("app.gcode.label.show_next_layer")}}),t("gcode-preview-button",{attrs:{name:"showMoves",icon:"$moves",tooltip:e.$t("app.gcode.label.show_moves")}}),t("gcode-preview-button",{attrs:{name:"showExtrusions",icon:"$extrusions",tooltip:e.$t("app.gcode.label.show_extrusions")}}),t("gcode-preview-button",{attrs:{name:"showRetractions",icon:"$retractions",tooltip:e.$t("app.gcode.label.show_retractions")}}),t("gcode-preview-button",{attrs:{name:"showParts",icon:"$parts",tooltip:e.$t("app.gcode.label.show_parts")}}),t(Be,{attrs:{icon:"",small:""},on:{click:function(s){e.autoZoom=!e.autoZoom}}},[t(S,[e._v(e._s(e.autoZoom?"$magnifyMinus":"$magnifyPlus"))])],1)],1):e._e(),e.file?t("div",{staticClass:"preview-name"},[e._v(" "+e._s(e.file.filename)+" ")]):e._e()])},die=[],pie=E(Wn,uie,die,!1,null,"568b684f");const hie=pie.exports;var fie=Object.defineProperty,mie=Object.getOwnPropertyDescriptor,Xm=(r,e,t,s)=>{for(var n=s>1?void 0:s?mie(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&&fie(e,t,n),n};let cl=class extends Y(J){constructor(){super(...arguments);m(this,"open");m(this,"progress");m(this,"file")}get percent(){return Math.floor(this.progress/this.file.size*100)}};Xm([Fe({type:Boolean})],cl.prototype,"open",2);Xm([w({type:Number})],cl.prototype,"progress",2);Xm([w({type:Object})],cl.prototype,"file",2);cl=Xm([A({})],cl);var gie=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Am,{attrs:{timeout:"-1","multi-line":"",elevation:"24",bottom:"",right:"",vertical:e.$vuetify.breakpoint.smAndDown},scopedSlots:e._u([{key:"action",fn:function({attrs:s}){return[t(M,e._b({on:{click:function(n){e.$emit("cancel"),e.open=!1}}},"app-btn",s,!1),[e._v(" "+e._s(e.$t("app.general.btn.cancel"))+" ")])]}}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[e.file?[t("div",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("app.gcode.label.parsing_file"))+": "+e._s(e.file.filename)+" ")]),t(Zs,{staticClass:"mb-2",attrs:{value:e.percent,color:"primary"}}),t("table",[t("tr",[t("td",{staticClass:"pr-2"},[e._v(" "+e._s(e.$t("app.gcode.label.parsed"))+": ")]),t("td",[e._v(" "+e._s(e.percent)+"% ("+e._s(e.$filters.getReadableFileSizeString(e.progress))+" / "+e._s(e.$filters.getReadableFileSizeString(e.file.size))+") ")])])])]:e._e()],2)},vie=[],_ie=E(cl,gie,vie,!1,null,null);const yie=_ie.exports;var bie=Object.defineProperty,$ie=Object.getOwnPropertyDescriptor,tn=(r,e,t,s)=>{for(var n=s>1?void 0:s?$ie(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&&bie(e,t,n),n};let cs=class extends Y(J,zr,lt){constructor(){super(...arguments);m(this,"menuCollapsed");m(this,"fullscreen");m(this,"preview");m(this,"currentLayer",0);m(this,"moveProgress",0);m(this,"overlay",!1)}onLayerCountChanged(){this.currentLayer=0}onFollowProgressChanged(){this.followProgress&&(this.currentLayer=this.fileProgressLayerNr,this.syncMoveProgress())}onCurrentLayerChanged(){this.followProgress&&this.currentLayer!==this.fileProgressLayerNr&&(this.followProgress=!1),this.followProgress||(this.moveProgress=this.currentLayerMoveRange.max)}onFilePositionChanged(){if(this.followProgress){this.syncMoveProgress();const t=this.$store.getters["gcodePreview/getMoves"],{min:s,max:n}=this.currentLayerMoveRange;(this.filePosition<t[s].filePosition||this.filePosition>t[n].filePosition)&&(this.currentLayer=this.fileProgressLayerNr)}}onMoveProgressChanged(){this.followProgress&&this.$store.getters["gcodePreview/getMoveIndexByFilePosition"](this.filePosition)!==this.moveProgress&&this.syncMoveProgress()}onPrintFileChanged(){this.autoLoadOnPrintStart&&this.printerFile&&["paused","printing"].includes(this.printerState)&&!this.printerFileLoaded&&this.loadCurrent()}onFileLoaded(){this.fileLoaded&&this.$store.state.config.uiSettings.gcodePreview.autoFollowOnFileLoad&&this.printerFileLoaded&&this.$store.commit("gcodePreview/setViewerState",{followProgress:!0},{root:!0})}get file(){return this.$store.getters["gcodePreview/getFile"]}get fileLoaded(){return this.$store.getters["gcodePreview/getMoves"].length>0}get parserProgress(){return this.$store.getters["gcodePreview/getParserProgress"]}get showParserProgressDialog(){return this.file!==void 0&&this.parserProgress!==this.file.size}get filePosition(){return this.$store.state.printer.printer.virtual_sdcard.file_position}get fileProgressLayerNr(){return this.$store.getters["gcodePreview/getLayerNrByFilePosition"](this.filePosition)}get layerCount(){return this.$store.getters["gcodePreview/getLayers"].length}get currentLayerHeight(){var t;return((t=this.$store.getters["gcodePreview/getLayers"][this.currentLayer])==null?void 0:t.z)??0}get followProgress(){return this.$store.getters["gcodePreview/getViewerOption"]("followProgress")}set followProgress(t){this.$store.commit("gcodePreview/setViewerState",{followProgress:t})}get currentLayerMoveRange(){var n;const t=this.$store.getters["gcodePreview/getMoves"];if(t.length===0)return{min:0,max:0};const s=this.$store.getters["gcodePreview/getLayers"];return{min:s[this.currentLayer].move,max:((n=s[this.currentLayer+1])==null?void 0:n.move)??t.length-1}}setCurrentLayer(t){t>=0&&(this.currentLayer=t)}setMoveProgress(t){t>=0&&(this.moveProgress=t)}syncMoveProgress(){this.moveProgress=this.$store.getters["gcodePreview/getMoveIndexByFilePosition"](this.filePosition)}abortParser(){this.$store.dispatch("gcodePreview/terminateParserWorker")}resetFile(){this.$store.dispatch("gcodePreview/reset")}async loadCurrent(){const t=this.printerFile;t&&this.loadFile(t)}async loadFile(t){try{const s=await this.getGcode(t),n=s==null?void 0:s.data;if(!n)return;this.$store.dispatch("gcodePreview/loadGcode",{file:t,gcode:n})}catch(s){ye.error("[GcodePreview] load",s)}}get printerFile(){const t=this.$store.state.printer.printer.current_file;if(t.filename)return t}get printerFileLoaded(){const t=this.$store.getters["gcodePreview/getFile"],s=this.printerFile;return!t||!s||t.path+"/"+t.filename!=s.path+"/"+s.filename?(this.$store.commit("gcodePreview/setViewerState",{followProgress:!1}),!1):!0}get autoLoadOnPrintStart(){return this.isMobileViewport?this.$store.state.config.uiSettings.gcodePreview.autoLoadMobileOnPrintStart:this.$store.state.config.uiSettings.gcodePreview.autoLoadOnPrintStart}async cancelObject(t){if(await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_exclude_object"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})){const n=t.toUpperCase().replace(/\s/g,"_");this.sendGcode(`EXCLUDE_OBJECT NAME=${n}`)}}get parts(){return Object.values(this.$store.getters["parts/getParts"])}handleDragOver(t){t.dataTransfer&&tl(t.dataTransfer,"jobs")&&(t.preventDefault(),t.dataTransfer.dropEffect="link",this.overlay=!0)}handleDragLeave(){this.overlay=!1}handleDrop(t){if(this.overlay=!1,t.dataTransfer&&tl(t.dataTransfer,"jobs")){const s=Pb(t.dataTransfer,"jobs"),n=s.path?`gcodes/${s.path}`:"gcodes",i=this.$store.getters["files/getFile"](n,s.items[0]);i&&this.loadFile(i)}}created(){this.followProgress?(this.currentLayer=this.fileProgressLayerNr,this.syncMoveProgress()):this.moveProgress=this.currentLayerMoveRange.min}};tn([w({type:Boolean})],cs.prototype,"menuCollapsed",2);tn([w({type:Boolean})],cs.prototype,"fullscreen",2);tn([Te("preview")],cs.prototype,"preview",2);tn([Ae("layerCount")],cs.prototype,"onLayerCountChanged",1);tn([Ae("followProgress")],cs.prototype,"onFollowProgressChanged",1);tn([Ae("currentLayer")],cs.prototype,"onCurrentLayerChanged",1);tn([Ae("filePosition")],cs.prototype,"onFilePositionChanged",1);tn([Ae("moveProgress")],cs.prototype,"onMoveProgressChanged",1);tn([Ae("printerFile")],cs.prototype,"onPrintFileChanged",1);tn([Ae("fileLoaded")],cs.prototype,"onFileLoaded",1);cs=tn([A({components:{GcodePreviewParserProgressDialog:yie,GcodePreview:hie}})],cs);var wie=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$tc("app.general.title.gcode_preview"),icon:"$cubeScan",draggable:!e.fullscreen,collapsable:!e.fullscreen,"layout-path":"dashboard.gcode-preview-card"},scopedSlots:e._u([{key:"menu",fn:function(){return[t(Sn,{attrs:{collapsed:e.menuCollapsed}},[t(M,{staticClass:"ms-1 my-1",attrs:{disabled:!e.printerFile||e.printerFileLoaded,small:""},on:{click:e.loadCurrent}},[e._v(" "+e._s(e.$t("app.gcode.btn.load_current_file"))+" ")]),e.fullscreen?e._e():t(M,{staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(s){return e.$filters.routeTo(e.$router,"/preview")}}},[t(S,[e._v("$fullScreen")])],1)],1)]},proxy:!0}])},[t(Le,{class:{"no-pointer-events":e.overlay},on:{dragover:e.handleDragOver,dragenter:function(s){if(s.target!==s.currentTarget)return null;s.preventDefault()},dragleave:function(s){return s.target!==s.currentTarget?null:(s.preventDefault(),e.handleDragLeave.apply(null,arguments))},drop:function(s){return s.target!==s.currentTarget?null:(s.preventDefault(),e.handleDrop.apply(null,arguments))}}},[e.showParserProgressDialog?t("gcode-preview-parser-progress-dialog",{attrs:{value:e.showParserProgressDialog,progress:e.parserProgress,file:e.file},on:{cancel:e.abortParser}}):e._e(),t(ie,[t(B,{attrs:{cols:"12",md:"8"}},[t(ie,[t(B,[t(Ft,{attrs:{label:e.$t("app.gcode.label.layer"),value:e.fileLoaded?e.currentLayer+1:0,min:e.fileLoaded?1:0,max:e.layerCount,disabled:!e.fileLoaded},on:{input:function(s){return e.setCurrentLayer(s-1)}}})],1)],1),t(ie,[t(B,[t(Ft,{attrs:{label:e.$t("app.general.label.progress"),value:e.moveProgress-e.currentLayerMoveRange.min,min:0,max:e.currentLayerMoveRange.max-e.currentLayerMoveRange.min,disabled:!e.fileLoaded},on:{input:function(s){return e.setMoveProgress(s+e.currentLayerMoveRange.min)}}})],1)],1)],1),t(B,{attrs:{cols:"12",md:"4"}},[t(ie,[t(B,[t(He,{staticClass:"px-2 py-1 text-center stat-square justify-center",class:{"text--disabled":!e.fileLoaded},attrs:{outlined:""}},[t("div",{},[e._v(" "+e._s(e.$t("app.gcode.label.layers"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.layerCount)+" ")]),t("div",{},[e._v(" "+e._s(e.$t("app.gcode.label.current_layer_height"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.currentLayerHeight)+" ")])])],1)],1),t(ie,[t(B,[t(M,{attrs:{disabled:!e.fileLoaded,block:""},on:{click:e.resetFile}},[e._v(" "+e._s(e.$t("app.general.btn.reset_file"))+" ")])],1)],1)],1)],1),t(ie,[t(B,[t("gcode-preview",{ref:"preview",attrs:{layer:e.currentLayer,progress:e.moveProgress,disabled:!e.fileLoaded},on:{cancelObject:function(s){return e.cancelObject(s)}}})],1)],1),t(Dm,{attrs:{message:e.$t("app.gcode.overlay.drag_file_load"),icon:"$cubeScan",absolute:""},model:{value:e.overlay,callback:function(s){e.overlay=s},expression:"overlay"}})],1)],1)},Sie=[],xie=E(cs,wie,Sie,!1,null,null);const QP=xie.exports;var Cie=Object.defineProperty,Pie=Object.getOwnPropertyDescriptor,e8=(r,e,t,s)=>{for(var n=s>1?void 0:s?Pie(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&&Cie(e,t,n),n};let uf=class extends b{constructor(){super(...arguments);m(this,"headers")}};e8([w({type:Array})],uf.prototype,"headers",2);uf=e8([A({})],uf);var Aie=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Gt,{attrs:{dense:""}},[t($t),e.headers?t(Rm,{attrs:{"key-name":"job_queue",headers:e.headers}}):e._e(),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Be,e._g(e._b({attrs:{fab:"",small:"",text:""},on:{click:function(i){return e.$emit("remove-all")}}},"v-btn",n,!1),s),[t(S,[e._v("$delete")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.remove_all")))])]),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Be,e._g(e._b({attrs:{fab:"",small:"",text:""},on:{click:function(i){return e.$emit("refresh")}}},"v-btn",n,!1),s),[t(S,[e._v("$refresh")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.refresh")))])])],1)},Lie=[],Eie=E(uf,Aie,Lie,!1,null,null);const Oie=Eie.exports;var Tie=Object.defineProperty,kie=Object.getOwnPropertyDescriptor,Die=(r,e,t,s)=>{for(var n=s>1?void 0:s?kie(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&&Tie(e,t,n),n};let b_=class extends b{};b_=Die([A({})],b_);var Mie=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Gt,{attrs:{dense:""}},[t($t),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Be,e._g(e._b({attrs:{fab:"",small:"",text:""},on:{click:function(i){return e.$emit("multiply")}}},"v-btn",n,!1),s),[t(S,[e._v("$duplicate")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.multiply")))])]),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Be,e._g(e._b({attrs:{fab:"",small:"",text:""},on:{click:function(i){return e.$emit("remove")}}},"v-btn",n,!1),s),[t(S,[e._v("$delete")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.remove")))])])],1)},Rie=[],Iie=E(b_,Mie,Rie,!1,null,null);const Fie=Iie.exports;var Hie=Object.defineProperty,jie=Object.getOwnPropertyDescriptor,Cd=(r,e,t,s)=>{for(var n=s>1?void 0:s?jie(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&&Hie(e,t,n),n};let Da=class extends Y(J){constructor(){super(...arguments);m(this,"selected");m(this,"dense");m(this,"bulkActions");m(this,"headers")}get jobs(){return this.selected=[],this.$store.state.jobQueue.queued_jobs}set jobs(t){const s=t.map(n=>n.filename);this.$store.getters["server/getIsMinApiVersion"]("1.1.0")?I.serverJobQueuePostJob(s,!0):(I.serverJobQueueDeleteJobs(["all"]),I.serverJobQueuePostJob(s))}get jobsWithKey(){const t=Date.now();return this.jobs.map(s=>({...s,key:`${s.job_id}-${t}`}))}handleRowClick(t,s,n){this.$emit("row-click",s.item,n)}handleContextMenu(t,s){this.$emit("row-click",s.item,t)}};Cd([Fe({type:Array,default:()=>[]})],Da.prototype,"selected",2);Cd([w({type:Boolean})],Da.prototype,"dense",2);Cd([w({type:Boolean})],Da.prototype,"bulkActions",2);Cd([w({type:Array,required:!0})],Da.prototype,"headers",2);Da=Cd([A({})],Da);var Bie=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"file-system"},[t(pm,{attrs:{options:{animation:"200",handle:".handle",group:"jobQueue",ghostClass:"ghost"},target:"tbody"},model:{value:e.jobs,callback:function(s){e.jobs=s},expression:"jobs"}},[t(hd,{attrs:{"item-key":"key",headers:e.headers,items:e.jobsWithKey,dense:e.dense,loading:e.hasWait(e.$waits.onJobQueue),"show-select":e.bulkActions,"no-data-text":e.$t("app.file_system.msg.not_found"),"no-results-text":e.$t("app.file_system.msg.not_found"),"mobile-breakpoint":"0","hide-default-footer":"","disable-pagination":"","disable-sort":"","fixed-header":""},on:{"click:row":e.handleRowClick,"contextmenu:row":function(s){return s.preventDefault(),e.handleContextMenu.apply(null,arguments)}},scopedSlots:e._u([{key:"item.handle",fn:function(){return[t(S,{staticClass:"handle",attrs:{left:""}},[e._v(" $drag ")])]},proxy:!0},{key:"item.filename",fn:function({item:s}){return[t("span",[e._v(" "+e._s(s.filename)+" ")])]}},{key:"item.time_added",fn:function({item:s}){return[t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.formatAbsoluteDateTime(s.time_added*1e3))+" ")])]}},{key:"item.time_in_queue",fn:function({item:s}){return[t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(s.time_in_queue))+" ")])]}}],null,!0),model:{value:e.selected,callback:function(s){e.selected=s},expression:"selected"}})],1)],1)},Nie=[],Vie=E(Da,Bie,Nie,!1,null,"76f51027");const zie=Vie.exports;var Uie=Object.defineProperty,Wie=Object.getOwnPropertyDescriptor,Pd=(r,e,t,s)=>{for(var n=s>1?void 0:s?Wie(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&&Uie(e,t,n),n};let Ma=class extends b{constructor(){super(...arguments);m(this,"open");m(this,"positionX");m(this,"positionY");m(this,"job")}};Pd([Fe({type:Boolean})],Ma.prototype,"open",2);Pd([w({type:Number,required:!0})],Ma.prototype,"positionX",2);Pd([w({type:Number,required:!0})],Ma.prototype,"positionY",2);Pd([w({type:[Object,Array],required:!0})],Ma.prototype,"job",2);Ma=Pd([A({})],Ma);var Gie=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Dt,{attrs:{transition:"slide-y-transition","position-x":e.positionX,"position-y":e.positionY,"min-width":"180",absolute:"",right:""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Mt,{attrs:{dense:""}},[t(Se,{on:{click:function(s){return e.$emit("multiply",e.job)}}},[t(qe,[t(S,[e._v(" $duplicate ")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.multiply")))])],1)],1),t(Se,{on:{click:function(s){return e.$emit("remove",e.job)}}},[t(qe,[t(S,[e._v(" $delete ")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.remove")))])],1)],1)],1)],1)},qie=[],Zie=E(Ma,Gie,qie,!1,null,null);const Yie=Zie.exports;var Kie=Object.defineProperty,Xie=Object.getOwnPropertyDescriptor,Hb=(r,e,t,s)=>{for(var n=s>1?void 0:s?Xie(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&&Kie(e,t,n),n};let wu=class extends b{constructor(){super(...arguments);m(this,"copies",1);m(this,"open");m(this,"job")}get jobCount(){return is(this.job)?this.job.length:1}handleSave(){this.$emit("save",this.job,this.copies),this.open=!1}};Hb([Fe({type:Boolean})],wu.prototype,"open",2);Hb([w({type:[Object,Array],required:!0})],wu.prototype,"job",2);wu=Hb([A({})],wu);var Jie=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.$tc("app.job_queue.title.multiply_job",e.jobCount),"max-width":"320"},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,[t(ae,{attrs:{autofocus:"",outlined:"",label:e.$t("app.job_queue.label.number_of_copies"),rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(1)],required:""},model:{value:e.copies,callback:function(s){e.copies=e._n(s)},expression:"copies"}})],1)],1)},Qie=[],eae=E(wu,Jie,Qie,!1,null,null);const tae=eae.exports;var rae=Object.defineProperty,sae=Object.getOwnPropertyDescriptor,jb=(r,e,t,s)=>{for(var n=s>1?void 0:s?sae(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&&rae(e,t,n),n};let Su=class extends b{constructor(){super(...arguments);m(this,"contextMenuState",{open:!1,x:0,y:0,job:null});m(this,"multiplyJobDialogState",{open:!1,job:null});m(this,"selected",[]);m(this,"overlay",!1);m(this,"dense");m(this,"bulkActions")}get headers(){const t=[{text:"",value:"handle",sortable:!1,width:"24px"},{text:this.$tc("app.general.table.header.name"),value:"filename",sortable:!1},{text:this.$tc("app.general.table.header.time_added"),value:"time_added",configurable:!0,sortable:!1},{text:this.$tc("app.general.table.header.time_in_queue"),value:"time_in_queue",configurable:!0,sortable:!1}];return this.$store.getters["config/getMergedTableHeaders"](t,"job_queue")}get visibleHeaders(){return this.headers.filter(t=>t.visible||t.visible===void 0)}handleRowClick(t,s){this.contextMenuState.open&&(this.contextMenuState.open=!1,s.type!=="contextmenu")||this.selected.length!==0&&!this.selected.some(n=>n.filename===t.filename)||(this.contextMenuState.x=s.clientX,this.contextMenuState.y=s.clientY,this.contextMenuState.job=this.selected.length>1?this.selected:t,this.$nextTick(()=>{this.contextMenuState.open=!0}))}async handleRemoveAll(){await this.$confirm(this.$tc("app.job_queue.msg.confirm"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})&&I.serverJobQueueDeleteJobs(["all"])}handleRefresh(){I.serverJobQueueStatus()}handleRemove(t){const s=Array.isArray(t)?t.map(n=>n.job_id):[t.job_id];I.serverJobQueueDeleteJobs(s)}handleMultiplyDialog(t){this.multiplyJobDialogState={open:!0,job:t}}handleMultiply(t,s){const n=Array.isArray(t)?t.map(a=>a.filename):[t.filename],i=Array.from({length:s}).map(()=>n).flat();I.serverJobQueuePostJob(i)}handleDragOver(t){t.dataTransfer&&tl(t.dataTransfer,"jobs")&&(t.preventDefault(),t.dataTransfer.dropEffect="link",this.overlay=!0)}handleDragLeave(){this.overlay=!1}handleDrop(t){if(this.overlay=!1,t.dataTransfer&&tl(t.dataTransfer,"jobs")){const s=Pb(t.dataTransfer,"jobs"),n=s.path?`${s.path}/`:"",i=s.items.map(a=>`${n}${a}`);I.serverJobQueuePostJob(i)}}};jb([w({type:Boolean})],Su.prototype,"dense",2);jb([w({type:Boolean})],Su.prototype,"bulkActions",2);Su=jb([A({components:{JobQueueToolbar:Oie,JobQueueBulkActions:Fie,JobQueueBrowser:zie,JobQueueMultiplyJobDialog:tae,JobQueueContextMenu:Yie}})],Su);var nae=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(He,{class:{"no-pointer-events":e.overlay},on:{dragover:e.handleDragOver,dragenter:function(s){if(s.target!==s.currentTarget)return null;s.preventDefault()},dragleave:function(s){return s.target!==s.currentTarget?null:(s.preventDefault(),e.handleDragLeave.apply(null,arguments))},drop:function(s){return s.target!==s.currentTarget?null:(s.preventDefault(),e.handleDrop.apply(null,arguments))}}},[e.selected.length===0?t("job-queue-toolbar",{attrs:{headers:e.headers},on:{"remove-all":e.handleRemoveAll,refresh:e.handleRefresh}}):t("job-queue-bulk-actions",{on:{remove:function(s){return e.handleRemove(e.selected)},multiply:function(s){return e.handleMultiplyDialog(e.selected)}}}),t("job-queue-browser",{attrs:{headers:e.visibleHeaders,dense:e.dense,"bulk-actions":e.bulkActions},on:{"row-click":e.handleRowClick},model:{value:e.selected,callback:function(s){e.selected=s},expression:"selected"}}),t(Dm,{attrs:{message:e.$t("app.file_system.overlay.drag_files_enqueue"),icon:"$enqueueJob",absolute:""},model:{value:e.overlay,callback:function(s){e.overlay=s},expression:"overlay"}}),e.contextMenuState.open?t("job-queue-context-menu",{attrs:{job:e.contextMenuState.job,"position-x":e.contextMenuState.x,"position-y":e.contextMenuState.y},on:{remove:e.handleRemove,multiply:e.handleMultiplyDialog},model:{value:e.contextMenuState.open,callback:function(s){e.$set(e.contextMenuState,"open",s)},expression:"contextMenuState.open"}}):e._e(),e.multiplyJobDialogState.open?t("job-queue-multiply-job-dialog",{attrs:{job:e.multiplyJobDialogState.job},on:{save:e.handleMultiply},model:{value:e.multiplyJobDialogState.open,callback:function(s){e.$set(e.multiplyJobDialogState,"open",s)},expression:"multiplyJobDialogState.open"}}):e._e()],1)},iae=[],aae=E(Su,nae,iae,!1,null,null);const oae=aae.exports;var lae=Object.defineProperty,cae=Object.getOwnPropertyDescriptor,Bb=(r,e,t,s)=>{for(var n=s>1?void 0:s?cae(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&&lae(e,t,n),n};let xu=class extends b{constructor(){super(...arguments);m(this,"menuCollapsed");m(this,"fullscreen")}get queueStatus(){return this.$store.state.jobQueue.queue_state}handlePause(){I.serverJobQueuePause()}handleResume(){I.serverJobQueueStart()}};Bb([w({type:Boolean})],xu.prototype,"menuCollapsed",2);Bb([w({type:Boolean})],xu.prototype,"fullscreen",2);xu=Bb([A({components:{JobQueue:oae}})],xu);var uae=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.general.title.job_queue"),icon:"$jobQueue",draggable:!e.fullscreen,collapsable:!e.fullscreen,"layout-path":"dashboard.job-queue-card","help-tooltip":e.$t("app.job_queue.tooltip.help")},scopedSlots:e._u([{key:"menu",fn:function(){return[t(Sn,{attrs:{collapsed:e.menuCollapsed}},[["ready","loading","starting"].includes(e.queueStatus)?t(M,{staticClass:"ms-1 my-1",attrs:{small:""},on:{click:e.handlePause}},[t(S,{attrs:{small:"",left:""}},[e._v(" $pause ")]),t("span",[e._v(e._s(e.$t("app.general.btn.pause")))])],1):e.queueStatus==="paused"?t(M,{staticClass:"ms-1 my-1",attrs:{small:""},on:{click:e.handleResume}},[t(S,{attrs:{small:"",left:""}},[e._v(" $resume ")]),t("span",[e._v(e._s(e.$t("app.general.btn.resume")))])],1):e._e()],1),e.fullscreen?e._e():t(M,{staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(s){return e.$filters.routeTo(e.$router,"/jobs")}}},[t(S,[e._v("$fullScreen")])],1)]},proxy:!0}])},[t("job-queue",{attrs:{dense:!e.fullscreen,"bulk-actions":e.fullscreen}})],1)},dae=[],pae=E(xu,uae,dae,!1,null,null);const t8=pae.exports;var hae=Object.defineProperty,fae=Object.getOwnPropertyDescriptor,mae=(r,e,t,s)=>{for(var n=s>1?void 0:s?fae(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&&hae(e,t,n),n};let $_=class extends Y(J){constructor(){super(...arguments);m(this,"labelWidth","86px")}handleSelectSpool(t){this.$store.commit("spoolman/setDialogState",{show:!0,targetMacro:t==null?void 0:t.name})}get activeSpool(){return this.isConnected?this.$store.getters["spoolman/getActiveSpool"]:null}get isConnected(){return this.$store.getters["spoolman/getConnected"]}get targetableMacros(){return this.$store.getters["macros/getMacros"].filter(s=>s.variables!=null&&"spool_id"in s.variables).map(s=>({...s,name:s.name.toUpperCase()})).sort((s,n)=>s.name.localeCompare(n.name))}get remainingFilamentUnit(){return this.$store.state.config.uiSettings.spoolman.remainingFilamentUnit}getSpoolById(t){return this.$store.getters["spoolman/getSpoolById"](t)}getSpoolColor(t){return`#${(t==null?void 0:t.filament.color_hex)??(this.$vuetify.theme.dark?"fff":"000")}`}};$_=mae([A({components:{StatusLabel:I6}})],$_);var gae=function(){var s;var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$tc("app.spoolman.title.spoolman"),icon:"$filament",draggable:"","layout-path":"dashboard.spoolman-card"},scopedSlots:e._u([{key:"menu",fn:function(){return[e.targetableMacros.length?t(Dt,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","min-width":"150"},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i,value:a}){return[t(M,e._g(e._b({staticClass:"ms-1 my-1",attrs:{small:"",disabled:!e.isConnected}},"app-btn",i,!1),n),[e._v(" "+e._s(e.$t("app.spoolman.label.change_spool"))+" "),t(S,{staticClass:"ml-1",class:{"rotate-180":a},attrs:{small:""}},[e._v(" $chevronDown ")])],1)]}}])},[t(Mt,{attrs:{dense:""}},[t(Se,{on:{click:()=>e.handleSelectSpool()}},[t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.spoolman.label.active_spool"))+" ")])],1),e.activeSpool?t(qe,[t(S,{staticClass:"spool-icon",attrs:{color:e.getSpoolColor(e.activeSpool)}},[e._v(" $filament ")])],1):e._e()],1),e._l(e.targetableMacros,function(n){var i;return[t(Se,{key:n.name,class:{primary:(i=n.variables)==null?void 0:i.active},on:{click:()=>e.handleSelectSpool(n)}},[t(Ee,[t(xe,[e._v(" "+e._s(n.name)+" ")])],1),n.variables.spool_id?t(qe,[t(S,{staticClass:"spool-icon",attrs:{color:e.getSpoolColor(e.getSpoolById(n.variables.spool_id))}},[e._v(" $filament ")])],1):e._e()],1)]})],2)],1):t(M,{staticClass:"ms-1 my-1",attrs:{small:"",disabled:!e.isConnected},on:{click:()=>e.handleSelectSpool()}},[e._v(" "+e._s(e.$t("app.spoolman.label.change_spool"))+" ")])]},proxy:!0}])},[e.activeSpool&&e.$vuetify.breakpoint.lgAndDown?t(Zs,{attrs:{value:"100",height:6,color:`#${e.activeSpool.filament.color_hex??(e.$vuetify.theme.dark?"fff":"000")}`}}):e._e(),t(Le,[t(ie,[e.activeSpool?[t(B,{attrs:{"align-self":"center"}},[t("status-label",{attrs:{label:e.$t("app.spoolman.label.vendor"),"label-width":e.labelWidth}},[t("span",[e._v(e._s(((s=e.activeSpool.filament.vendor)==null?void 0:s.name)||"-"))])]),t("status-label",{attrs:{label:e.$t("app.spoolman.label.filament_name"),"label-width":e.labelWidth}},[t("span",[e._v(e._s(e.activeSpool.filament.name))])]),t("status-label",{attrs:{label:e.$t("app.spoolman.label.remaining_weight"),"label-width":e.labelWidth}},[e.remainingFilamentUnit==="weight"?t("span",[e._v(" "+e._s(e.$filters.getReadableWeightString(e.activeSpool.remaining_weight))+" "),t("small",[e._v("/ "+e._s(e.$filters.getReadableWeightString(e.activeSpool.filament.weight)))])]):e.remainingFilamentUnit==="length"?t("span",[e._v(" "+e._s(e.$filters.getReadableLengthString(e.activeSpool.remaining_length))+" "),t("small",[e._v("/ "+e._s(e.$filters.getReadableLengthString(e.$filters.convertFilamentWeightToLength(e.activeSpool.filament.weight??0,e.activeSpool.filament.density,e.activeSpool.filament.diameter))))])]):e._e()]),t("status-label",{attrs:{label:e.$t("app.spoolman.label.location"),"label-width":e.labelWidth}},[t("span",[e._v(e._s(e.activeSpool.location||"-"))])])],1),t(B,{attrs:{"align-self":"center"}},[t("status-label",{attrs:{label:e.$t("app.spoolman.label.material"),"label-width":e.labelWidth}},[t("span",[e._v(e._s(e.activeSpool.filament.material||"-"))])]),t("status-label",{attrs:{label:e.$t("app.spoolman.label.lot_nr"),"label-width":e.labelWidth}},[t("span",[e._v(e._s(e.activeSpool.lot_nr||"-"))])]),t("status-label",{attrs:{label:e.$t("app.spoolman.label.first_used"),"label-width":e.labelWidth}},[t("span",[e._v(e._s(e.activeSpool.first_used?e.$filters.formatRelativeTimeToNow(e.activeSpool.first_used):e.$tc("app.setting.label.never")))])]),t("status-label",{attrs:{label:e.$t("app.spoolman.label.comment"),"label-width":e.labelWidth}},[t("span",[e._v(e._s(e.activeSpool.comment||"-"))])])],1)]:e.isConnected?t(B,{attrs:{"align-self":"center"}},[e._v(" "+e._s(e.$t("app.spoolman.msg.tracking_inactive"))+" ")]):t(B,{attrs:{"align-self":"center"}},[e._v(" "+e._s(e.$t("app.spoolman.msg.not_connected"))+" ")]),e.$vuetify.breakpoint.xl?t(B,{staticClass:"pa-0",attrs:{cols:"auto","align-self":"center"}},[e.activeSpool?t(S,{staticClass:"spool-icon",attrs:{color:e.getSpoolColor(e.activeSpool),size:"110px"}},[e._v(" $filament ")]):e.isConnected?t(S,{attrs:{size:"55px"}},[e._v(" $progressQuestion ")]):t(S,{attrs:{color:"warning",size:"55px"}},[e._v(" $warning ")])],1):e._e()],2)],1)],1)},vae=[],_ae=E($_,gae,vae,!1,null,null);const yae=_ae.exports;var bae=Object.defineProperty,$ae=Object.getOwnPropertyDescriptor,wae=(r,e,t,s)=>{for(var n=s>1?void 0:s?$ae(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&&bae(e,t,n),n};let w_=class extends b{get sensors(){return this.$store.getters["sensors/getSensors"]}};w_=wae([A({})],w_);var Sae=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(fd,e._l(e.sensors,function(s){return t(ie,{key:s.id},[t(B,[e._v(" "+e._s(e.$filters.prettyCase(s.friendly_name))+" "),e._l(s.values,function(n,i){return t(hr,{key:`${s.id}-${i}`,staticClass:"ml-2",attrs:{small:""}},[e._v(" "+e._s(e.$filters.prettyCase(i.toString()))+": "+e._s(Math.round(n*100)/100)+" ")])})],2)],1)}),1)},xae=[],Cae=E(w_,Sae,xae,!1,null,null);const Pae=Cae.exports;var Aae=Object.defineProperty,Lae=Object.getOwnPropertyDescriptor,Eae=(r,e,t,s)=>{for(var n=s>1?void 0:s?Lae(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&&Aae(e,t,n),n};let S_=class extends b{};S_=Eae([A({components:{Sensors:Pae}})],S_);var Oae=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.sensors.title.sensors"),icon:"$sensors",draggable:"","layout-path":"dashboard.sensors-card"}},[t("sensors")],1)},Tae=[],kae=E(S_,Oae,Tae,!1,null,null);const Dae=kae.exports;var Mae=Object.defineProperty,Rae=Object.getOwnPropertyDescriptor,r8=(r,e,t,s)=>{for(var n=s>1?void 0:s?Rae(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&&Mae(e,t,n),n};let df=class extends Y(J){constructor(){super(...arguments);m(this,"fullscreen")}get sensors(){return this.$store.getters["printer/getRunoutSensors"]}changeSensor(t,s){this.sendGcode(`SET_FILAMENT_SENSOR SENSOR=${t.name} ENABLE=${+s}`)}};r8([w({type:Boolean})],df.prototype,"fullscreen",2);df=r8([A({})],df);var Iae=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.general.title.runout_sensors"),icon:"$printer3dNozzleAlert",draggable:!e.fullscreen,collapsable:!e.fullscreen,"layout-path":"dashboard.runout-sensors-card"},scopedSlots:e._u([{key:"menu",fn:function(){return[e.fullscreen?e._e():t(M,{staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(s){return e.$filters.routeTo(e.$router,"/tune")}}},[t(S,[e._v("$fullScreen")])],1)]},proxy:!0}])},[t(Mt,e._l(e.sensors,function(s){return t(Se,{key:s.name},[t(Ee,[t(xe,[e._v(e._s(s.prettyName))])],1),t(qe,[s.filament_detected?t(S,{attrs:{color:"success"}},[e._v(" $checkedCircle ")]):t(S,{attrs:{color:"warning"}},[e._v(" $alertCircle ")])],1),t(nr,[t(Ce,{attrs:{"input-value":s.enabled},on:{change:function(n){return e.changeSensor(s,n)}}})],1)],1)}),1)],1)},Fae=[],Hae=E(df,Iae,Fae,!1,null,null);const s8=Hae.exports;var jae=Object.defineProperty,Bae=Object.getOwnPropertyDescriptor,Nb=(r,e,t,s)=>{for(var n=s>1?void 0:s?Bae(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&&jae(e,t,n),n};let Cu=class extends Y(J){constructor(){super(...arguments);m(this,"menuCollapsed",!1);m(this,"containers",[])}mounted(){this.onLayoutChange(),window.addEventListener("resize",this.updateMenuCollapsed),this.updateMenuCollapsed()}unmounted(){window.removeEventListener("resize",this.updateMenuCollapsed)}get columnCount(){return this.inLayout?4:this.containers.reduce((t,s)=>+this.hasCards(s)+t,0)}onColumnCount(t){this.$store.commit("config/setContainerColumnCount",t),this.updateMenuCollapsed()}get columnSpan(){return 12/this.columnCount}get hasCameras(){return this.$store.getters["webcams/getEnabledWebcams"].length>0}get hasHeatersOrTemperatureSensors(){return this.$store.getters["printer/getHeaters"].length>0||this.$store.getters["printer/getOutputs"](["temperature_fan"]).length>0||this.$store.getters["printer/getSensors"].length>0}get hasSensors(){return this.$store.getters["sensors/getSensors"].length>0}get firmwareRetractionEnabled(){return"firmware_retraction"in this.$store.getters["printer/getPrinterSettings"]()}get supportsJobQueue(){return this.$store.getters["server/componentSupport"]("job_queue")}get supportsBedMesh(){return this.$store.getters["mesh/getSupportsBedMesh"]}get supportsRunoutSensors(){return this.$store.getters["printer/getRunoutSensors"].length>0}get supportsSpoolman(){return this.$store.getters["server/componentSupport"]("spoolman")}get hasMacros(){return this.$store.getters["macros/getVisibleMacros"].length>0}get hasOutputs(){return this.$store.getters["printer/getAllFans"].length>0||this.$store.getters["printer/getPins"].length>0||this.$store.getters["printer/getAllLeds"].length>0}get inLayout(){return this.$store.state.config.layoutMode}get layout(){const t=this.$store.getters["layout/getSpecificLayoutName"];return this.$store.getters["layout/getLayout"](t)}onLayoutChange(){const t=[];for(let s=1;s<=4;s++){const n=this.layout[`container${s}`];(n==null?void 0:n.length)>0&&t.push(n)}for(;t.length<4;)t.push([]);this.containers=t.slice(0,4)}updateMenuCollapsed(){this.menuCollapsed=this.$el.clientWidth/this.columnCount<560}handleUpdateLayout(){this.$store.dispatch("layout/onLayoutChange",{name:this.$store.getters["layout/getSpecificLayoutName"],value:{container1:this.containers[0],container2:this.containers[1],container3:this.containers[2],container4:this.containers[3]}})}hasCards(t){return t.some(s=>s.enabled&&!this.filtered(s))}filtered(t){return this.inLayout?!1:t.id==="camera-card"&&!this.hasCameras||t.id==="macros-card"&&!this.hasMacros||t.id==="outputs-card"&&!this.hasOutputs||t.id==="printer-status-card"&&!this.klippyReady||t.id==="job-queue-card"&&!this.supportsJobQueue||t.id==="retract-card"&&!this.firmwareRetractionEnabled||t.id==="bed-mesh-card"&&!this.supportsBedMesh||t.id==="runout-sensors-card"&&!this.supportsRunoutSensors||t.id==="spoolman-card"&&!this.supportsSpoolman||t.id==="sensors-card"&&!this.hasSensors||t.id==="temperature-card"&&!this.hasHeatersOrTemperatureSensors?!0:!t.enabled}};Nb([Ae("columnCount")],Cu.prototype,"onColumnCount",1);Nb([Ae("layout")],Cu.prototype,"onLayoutChange",1);Cu=Nb([A({components:{PrinterStatusCard:bZ,JobsCard:YK,ToolheadCard:FQ,MacrosCard:nte,TemperatureCard:hee,CameraCard:Mee,PrinterLimitsCard:kse,RetractCard:Gse,ConsoleCard:yP,OutputsCard:_se,BedMeshCard:zP,GcodePreviewCard:QP,JobQueueCard:t8,SpoolmanCard:yae,SensorsCard:Dae,RunoutSensorsCard:s8}})],Cu);var Nae=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[e._l(e.containers,function(s,n){return[e.inLayout||e.hasCards(s)?t(B,{key:`container${n}`,class:{drag:e.inLayout},attrs:{cols:"12",md:"6",lg:e.columnSpan}},[t(pm,{staticClass:"list-group",attrs:{options:{animation:200,handle:".handle",group:"dashboard",disabled:!e.inLayout,ghostClass:"ghost"},target:":first-child"},on:{end:e.handleUpdateLayout},model:{value:e.containers[n],callback:function(i){e.$set(e.containers,n,i)},expression:"containers[containerIndex]"}},[t("transition-group",{attrs:{type:"transition",name:e.inLayout?void 0:"flip-list"}},[e._l(s,function(i){return[e.inLayout||i.enabled&&!e.filtered(i)?t(i.id,{key:i.id,tag:"component",staticClass:"mb-2 mb-sm-4",attrs:{"menu-collapsed":e.menuCollapsed}}):e._e()]})],2)],1)],1):e._e()]})],2)},Vae=[],zae=E(Cu,Nae,Vae,!1,null,"2ca660d1");const Uae=zae.exports;var Wae=Object.defineProperty,Gae=Object.getOwnPropertyDescriptor,qae=(r,e,t,s)=>{for(var n=s>1?void 0:s?Gae(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&&Wae(e,t,n),n};let x_=class extends b{};x_=qae([A({components:{ConsoleCard:yP}})],x_);var Zae=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[t(B,{attrs:{cols:"12"}},[t("console-card",{attrs:{fullscreen:""}})],1)],1)},Yae=[],Kae=E(x_,Zae,Yae,!1,null,null);const Xae=Kae.exports;var Jae=Object.defineProperty,Qae=Object.getOwnPropertyDescriptor,eoe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Qae(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&&Jae(e,t,n),n};let C_=class extends b{};C_=eoe([A({components:{GcodePreviewCard:QP}})],C_);var toe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[t(B,{attrs:{cols:"12"}},[t("GcodePreviewCard",{attrs:{fullscreen:""}})],1)],1)},roe=[],soe=E(C_,toe,roe,!1,null,null);const noe=soe.exports;var ioe=Object.defineProperty,aoe=Object.getOwnPropertyDescriptor,ooe=(r,e,t,s)=>{for(var n=s>1?void 0:s?aoe(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&&ioe(e,t,n),n};let P_=class extends Y(J){get supportsJobQueue(){return this.$store.getters["server/componentSupport"]("job_queue")}get hasQueuedJobs(){return this.supportsJobQueue&&this.$store.state.jobQueue.queued_jobs.length>0}};P_=ooe([A({components:{FileSystem:kl,JobQueueCard:t8}})],P_);var loe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[t(B,{attrs:{cols:"12",lg:e.hasQueuedJobs?8:void 0}},[t(Qe,{staticClass:"mb-2 mb-sm-4",attrs:{title:e.$t("app.general.title.jobs"),"card-key":"JobsPage",icon:"$files","help-tooltip":e.$t("app.general.tooltip.file_browser_help")}},[t("file-system",{attrs:{roots:"gcodes",name:"jobs","bulk-actions":"","max-height":"816"}})],1)],1),e.hasQueuedJobs?t(B,{attrs:{cols:"12",lg:"4"}},[t("job-queue-card",{attrs:{fullscreen:""}})],1):e._e()],1)},coe=[],uoe=E(P_,loe,coe,!1,null,null);const doe=uoe.exports;var poe=Object.defineProperty,hoe=Object.getOwnPropertyDescriptor,Jm=(r,e,t,s)=>{for(var n=s>1?void 0:s?hoe(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&&poe(e,t,n),n};let ul=class extends Y(J,zt){constructor(){super(...arguments);m(this,"open");m(this,"existingName");m(this,"adaptive");m(this,"name","default");m(this,"removeDefault",!1)}mounted(){this.name="default",this.removeDefault=!1}handleSubmit(){this.$emit("save",{name:this.name,removeDefault:this.removeDefault}),this.open=!1}};Jm([Fe({type:Boolean})],ul.prototype,"open",2);Jm([w({type:String})],ul.prototype,"existingName",2);Jm([w({type:Boolean})],ul.prototype,"adaptive",2);ul=Jm([A({})],ul);var foe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.$t("app.general.label.save_as"),"max-width":"450"},on:{save:function(s){return e.handleSubmit()}},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,[t(ae,{staticClass:"mb-4",attrs:{autofocus:"",filled:"",required:"",rules:[e.$rules.required],"hide-details":"auto",label:e.$t("app.bedmesh.label.profile_name")},model:{value:e.name,callback:function(s){e.name=s},expression:"name"}}),e.adaptive?e._e():[t(ir,{staticClass:"mb-4",attrs:{label:e.$t("app.bedmesh.label.remove_profile",{name:e.existingName}),"hide-details":"auto",disabled:e.name===e.existingName},model:{value:e.removeDefault,callback:function(s){e.removeDefault=s},expression:"removeDefault"}}),t("span",[e._v(" "+e._s(e.$t("app.bedmesh.msg.hint",{name:e.existingName}))+" ")])]],2)],1)},moe=[],goe=E(ul,foe,moe,!1,null,null);const voe=goe.exports;var _oe=Object.defineProperty,yoe=Object.getOwnPropertyDescriptor,n8=(r,e,t,s)=>{for(var n=s>1?void 0:s?yoe(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&&_oe(e,t,n),n};let pf=class extends Y(J,zt){constructor(){super(...arguments);m(this,"manualProbeDialogOpen",!1);m(this,"mapScaleLabels",["min","0.1","0.2"]);m(this,"boxScaleLabels",["1.0","1.5","2.0"]);m(this,"saveDialogState",{open:!1,existingName:"default",adaptive:!1})}get matrix(){return this.mesh.matrix}set matrix(e){this.$store.dispatch("mesh/onMatrix",e)}get mapScale(){return this.mesh.scale}set mapScale(e){this.$store.dispatch("mesh/onScale",e)}get boxScale(){return this.mesh.boxScale}set boxScale(e){this.$store.dispatch("mesh/onBoxScale",e)}get wireframe(){return this.mesh.wireframe}set wireframe(e){this.$store.dispatch("mesh/onWireframe",e)}get flatSurface(){return this.mesh.flatSurface}set flatSurface(e){this.$store.dispatch("mesh/onFlatSurface",e)}get mesh(){return this.$store.state.mesh}get bedMeshProfiles(){return this.$store.getters["mesh/getBedMeshProfiles"]}get currentMesh(){return this.$store.state.printer.printer.bed_mesh}get meshLoaded(){return"profile_name"in this.currentMesh&&this.currentMesh.profile_name.length>0}get printerSupportsQgl(){return"quad_gantry_level"in this.$store.getters["printer/getPrinterSettings"]()}calibrate(){this.sendGcode("BED_MESH_CALIBRATE",this.$waits.onMeshCalibrate)}async clearMesh(){(!this.printerPrinting||await this.$confirm(this.$t("app.general.simple_form.msg.confirm_load_bedmesh_profile",{name}).toString(),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"}))&&this.sendGcode("BED_MESH_CLEAR")}async loadProfile(e){(!this.printerPrinting||await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_clear_mesh"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"}))&&this.sendGcode(`BED_MESH_PROFILE LOAD="${e}"`)}removeProfile(e){this.sendGcode(`BED_MESH_PROFILE REMOVE="${e}"`)}handleMeshSave(e){e.name!==this.currentMesh.profile_name&&this.sendGcode(`BED_MESH_PROFILE SAVE="${e.name}"`),e.removeDefault&&this.sendGcode(`BED_MESH_PROFILE REMOVE="${this.currentMesh.profile_name}"`)}handleOpenSaveDialog(){const e=this.bedMeshProfiles.find(t=>t.name===this.currentMesh.profile_name);this.saveDialogState={open:!0,existingName:this.currentMesh.profile_name,adaptive:(e==null?void 0:e.adaptive)??!1}}get showManualProbeDialogAutomatically(){return this.$store.state.config.uiSettings.general.showManualProbeDialogAutomatically}onIsManualProbeActive(e){e&&this.showManualProbeDialogAutomatically&&this.klippyReady&&!this.printerPrinting&&(this.manualProbeDialogOpen=!0)}};n8([Ae("isManualProbeActive")],pf.prototype,"onIsManualProbeActive",1);pf=n8([A({components:{SaveMeshDialog:voe}})],pf);var boe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.general.title.bedmesh_controls"),lazy:!1,icon:"$bedMesh"},scopedSlots:e._u([{key:"menu",fn:function(){return[t(Sn,[e.isManualProbeActive?t(M,{staticClass:"ms-1 my-1",attrs:{disabled:!e.klippyReady||e.printerPrinting,small:""},on:{click:function(s){e.manualProbeDialogOpen=!0}}},[e._v(" "+e._s(e.$t("app.tool.tooltip.manual_probe"))+" ")]):e._e()],1)]},proxy:!0}])},[e.bedMeshProfiles.length>0?[t(qt,[t("thead",[t("tr",[t("th",[e._v(e._s(e.$t("app.general.label.name")))]),t("th",[e._v(" ")]),t("th",[e._v(e._s(e.$t("app.general.label.range")))]),t("th",[e._v(" ")])])]),t("tbody",e._l(e.bedMeshProfiles,function(s){return t("tr",{key:s.name},[t("td",{},[e._v(" "+e._s(s.name)+" ")]),t("td",[s.active?t(hr,{attrs:{small:"",block:""}},[e._v(" "+e._s(e.$t("app.bedmesh.label.active"))+" ")]):e._e()],1),t("td",{staticClass:"focus--text"},[t("span",[e._v(" "+e._s(s.range.toFixed(4))+" ")])]),t("td",{staticClass:"text-right",attrs:{nowrap:""}},[s.active?e._e():t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t(M,e._g(e._b({attrs:{"x-small":"",color:"",fab:"",text:""},on:{click:function(a){return e.loadProfile(s.name)}}},"app-btn",i,!1),n),[t(S,[e._v("$open")])],1)]}}],null,!0)},[t("span",[e._v(e._s(e.$t("app.bedmesh.tooltip.load")))])]),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t(M,e._g(e._b({staticClass:"ml-2",attrs:{color:"",fab:"",text:"","x-small":"",disabled:s.adaptive},on:{click:function(a){return e.removeProfile(s.name)}}},"app-btn",i,!1),n),[t(S,{attrs:{color:""}},[e._v(" $close ")])],1)]}}],null,!0)},[t("span",[e._v(e._s(e.$t("app.bedmesh.tooltip.delete")))])])],1)])}),0)]),t(R)]:e._e(),t(Le,[e.bedMeshProfiles.length===0?t("div",{staticClass:"mb-4"},[e._v(" "+e._s(e.$t("app.bedmesh.msg.not_found"))+" ")]):e._e(),t(ie,[t(B,{attrs:{cols:"6"}},[t(M,{staticClass:"mb-2",attrs:{disabled:!e.meshLoaded,small:"",block:""},on:{click:function(s){return e.clearMesh()}}},[e._v(" "+e._s(e.$t("app.general.btn.clear_profile"))+" ")]),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"mb-2",attrs:{small:"",block:"",loading:e.hasWait(e.$waits.onMeshCalibrate),disabled:e.printerBusy||!e.allHomed},on:{click:function(i){return e.calibrate()}}},"app-btn",n,!1),s),[e._v(" "+e._s(e.$t("app.general.btn.calibrate"))+" ")])]}}])},[t("span",[e._v(e._s(e.$t("app.bedmesh.tooltip.calibrate")))])]),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({attrs:{block:"",small:"",color:"primary",disabled:!e.meshLoaded},on:{click:function(i){return e.handleOpenSaveDialog()}}},"app-btn",n,!1),s),[e._v(" "+e._s(e.$t("app.general.btn.save_as"))+" ")])]}}])},[t("span",[e._v(e._s(e.$t("app.bedmesh.tooltip.save")))])])],1),t(B,{attrs:{cols:"6"}},[t(M,{staticClass:"mb-2",attrs:{block:"",small:"",loading:e.hasWait(e.$waits.onHomeAll),disabled:e.printerBusy,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.general.btn.all"))+" ")],1),e.printerSupportsQgl?t(M,{staticClass:"mb-2",attrs:{loading:e.hasWait(e.$waits.onQGL),disabled:e.printerBusy,block:"",small:""},on:{click:function(s){return e.sendGcode("QUAD_GANTRY_LEVEL",e.$waits.onQGL)}}},[e._v(" "+e._s(e.$t("app.general.btn.quad_gantry_level"))+" ")]):e._e()],1)],1),t(ie,[t(B,{attrs:{cols:"12",md:"6"}},[t(k6,{staticClass:"mt-0 mb-2",attrs:{disabled:!e.meshLoaded,column:"","hide-details":""},model:{value:e.matrix,callback:function(s){e.matrix=s},expression:"matrix"}},[t(Wc,{attrs:{label:e.$t("app.bedmesh.label.probed_matrix"),value:"probed_matrix"}}),t(Wc,{attrs:{label:e.$t("app.bedmesh.label.mesh_matrix"),value:"mesh_matrix"}})],1)],1),t(B,{attrs:{cols:"12",md:"6"}},[t(ir,{staticClass:"mt-0",attrs:{disabled:!e.meshLoaded,label:e.$t("app.bedmesh.label.wireframe"),"hide-details":""},model:{value:e.wireframe,callback:function(s){e.wireframe=s},expression:"wireframe"}}),t(ir,{staticClass:"mt-1",attrs:{disabled:!e.meshLoaded,label:e.$t("app.bedmesh.label.flat_surface"),"hide-details":""},model:{value:e.flatSurface,callback:function(s){e.flatSurface=s},expression:"flatSurface"}})],1)],1),t(ie,[t(B,[t(Mv,{attrs:{label:e.$t("app.bedmesh.label.scale"),disabled:!e.meshLoaded,"tick-labels":e.mapScaleLabels,min:0,max:.2,step:"0.1",ticks:"always","tick-size":"4"},model:{value:e.mapScale,callback:function(s){e.mapScale=s},expression:"mapScale"}}),t(Mv,{attrs:{label:e.$t("app.bedmesh.label.box_scale"),disabled:!e.meshLoaded,"tick-labels":e.boxScaleLabels,min:1,max:2,step:"0.5",ticks:"always","tick-size":"4"},model:{value:e.boxScale,callback:function(s){e.boxScale=s},expression:"boxScale"}})],1)],1)],1),e.saveDialogState.open?t("save-mesh-dialog",{attrs:{"existing-name":e.saveDialogState.existingName,adaptive:e.saveDialogState.adaptive},on:{save:e.handleMeshSave},model:{value:e.saveDialogState.open,callback:function(s){e.$set(e.saveDialogState,"open",s)},expression:"saveDialogState.open"}}):e._e(),e.manualProbeDialogOpen?t(oP,{model:{value:e.manualProbeDialogOpen,callback:function(s){e.manualProbeDialogOpen=s},expression:"manualProbeDialogOpen"}}):e._e()],2)},$oe=[],woe=E(pf,boe,$oe,!1,null,"920a9fae");const Soe=woe.exports;var xoe=Object.defineProperty,Coe=Object.getOwnPropertyDescriptor,Poe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Coe(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&&xoe(e,t,n),n};let A_=class extends Y(J){get endstops(){return this.$store.getters["printer/getEndstops"]}get probe(){return this.$store.getters["printer/getProbe"]}get endstopsAndProbes(){const e=[...this.endstops],t=this.probe;return t!==void 0&&e.push({name:"Probe",state:t.last_query?"triggered":"open"}),e}get hasEndstops(){return this.endstops.length>0}queryEndstops(){I.printerQueryEndstops(),this.probe!==void 0&&this.sendGcode("QUERY_PROBE",this.$waits.onQueryProbe)}destroyed(){this.$store.commit("printer/setClearEndStops")}};A_=Poe([A({components:{}})],A_);var Aoe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.general.title.endstops"),"sub-title":e.$t("app.endstop.msg.subtitle"),icon:"$expandHorizontal"},scopedSlots:e._u([{key:"collapse-button",fn:function(){return[t(M,{staticClass:"ms-1 my-1",attrs:{loading:e.hasWait(e.$waits.onQueryEndstops)||e.hasWait(e.$waits.onQueryProbe),color:"",fab:"","x-small":"",text:""},on:{click:e.queryEndstops}},[t(S,[e._v("$refresh")])],1)]},proxy:!0}])},[e.hasEndstops?t(qt,[t("tbody",e._l(e.endstopsAndProbes,function(s){return t("tr",{key:s.name},[t("td",[t("span",{staticClass:"focus--text"},[e._v(e._s(s.name))])]),t("td",[t(hr,{attrs:{color:s.state==="open"?"secondary":"warning",small:"",label:""}},[t(S,{attrs:{small:"",left:""}},[e._v(" "+e._s(s.state==="open"?"$blankCircle":"$markedCircle")+" ")]),e._v(" "+e._s(e.$t("app.endstop.label."+s.state.toLowerCase()))+" ")],1)],1)])}),0)]):e._e()],1)},Loe=[],Eoe=E(A_,Aoe,Loe,!1,null,null);const Ooe=Eoe.exports;var Toe=Object.defineProperty,koe=Object.getOwnPropertyDescriptor,Doe=(r,e,t,s)=>{for(var n=s>1?void 0:s?koe(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&&Toe(e,t,n),n};let L_=class extends Y(J){get supportsBedMesh(){return this.$store.getters["mesh/getSupportsBedMesh"]}get supportsRunoutSensors(){return this.$store.getters["printer/getRunoutSensors"].length}get supportsEndstops(){const e=this.$store.getters["printer/getEndstops"];return Object.keys(e).length>0}};L_=Doe([A({components:{BedMeshCard:zP,BedMeshControls:Soe,EndStopsCard:Ooe,RunoutSensorsCard:s8}})],L_);var Moe=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.klippyReady?t(ie,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[e.supportsBedMesh?t(B,{attrs:{cols:"12",md:"8"}},[t("bed-mesh-card",{attrs:{fullscreen:""}})],1):e._e(),t(B,{attrs:{cols:"12",md:"4"}},[e.supportsBedMesh?t("bed-mesh-controls",{staticClass:"mb-2 mb-sm-4"}):e._e(),t("end-stops-card",{staticClass:"mb-2 mb-sm-4"}),e.supportsRunoutSensors?t("runout-sensors-card",{attrs:{fullscreen:""}}):e._e()],1)],1):e._e()},Roe=[],Ioe=E(L_,Moe,Roe,!1,null,null);const Foe=Ioe.exports;var er=[];for(var a1=0;a1<256;++a1)er.push((a1+256).toString(16).slice(1));function Hoe(r,e=0){return(er[r[e+0]]+er[r[e+1]]+er[r[e+2]]+er[r[e+3]]+"-"+er[r[e+4]]+er[r[e+5]]+"-"+er[r[e+6]]+er[r[e+7]]+"-"+er[r[e+8]]+er[r[e+9]]+"-"+er[r[e+10]]+er[r[e+11]]+er[r[e+12]]+er[r[e+13]]+er[r[e+14]]+er[r[e+15]]).toLowerCase()}var hp,joe=new Uint8Array(16);function Boe(){if(!hp&&(hp=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!hp))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return hp(joe)}var Noe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const ZS={randomUUID:Noe};function Rl(r,e,t){if(ZS.randomUUID&&!e&&!r)return ZS.randomUUID();r=r||{};var s=r.random||(r.rng||Boe)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,Hoe(s)}var Voe=Object.defineProperty,zoe=Object.getOwnPropertyDescriptor,Il=(r,e,t,s)=>{for(var n=s>1?void 0:s?zoe(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&&Voe(e,t,n),n};let ki=class extends b{constructor(){super(...arguments);m(this,"data");m(this,"options");m(this,"height");m(this,"chart");m(this,"ready",!1)}onData(e){this.chart&&e&&e.length&&this.chart.setOption({dataset:{source:e}})}get opts(){return F3({grid:{top:0,left:0,right:0,bottom:0}},this.options)}mounted(){this.data&&!this.ready&&(this.ready=!0)}beforeDestroy(){typeof window>"u"||this.chart&&this.chart.dispose()}};Il([w({type:Array,required:!0})],ki.prototype,"data",2);Il([w({type:Object,default:()=>{}})],ki.prototype,"options",2);Il([w({type:String,default:"100%"})],ki.prototype,"height",2);Il([Te("chart")],ki.prototype,"chart",2);Il([Ae("data")],ki.prototype,"onData",1);ki=Il([A({})],ki);var Uoe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t("div",{staticClass:"chart",style:{height:e.height}},[e.ready?t("e-chart",{ref:"chart",staticStyle:{overflow:"initial"},attrs:{option:e.opts,"update-options":{notMerge:!0},"init-options":{renderer:"svg"},autoresize:""}}):e._e()],1)])},Woe=[],Goe=E(ki,Uoe,Woe,!1,null,"71d60acf");const Fl=Goe.exports;var qoe=Object.defineProperty,Zoe=Object.getOwnPropertyDescriptor,i8=(r,e,t,s)=>{for(var n=s>1?void 0:s?Zoe(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 hf=class extends Y(lt){constructor(){super(...arguments);m(this,"config")}get chartData(){return this.$store.state.charts.diagnostics||[]}get options(){const t=this.$store.state.config.uiSettings.theme.isDark,s=t?"rgba(255,255,255,0.65)":"rgba(0,0,0,0.45)",n=this.isMobileViewport?13:14,i={color:t?"#ffffff":"#000000",opacity:.05},a={color:t?"#ffffff":"#000000",opacity:.5};let o=this.isMobileViewport?15:20;this.config.axes.length>1&&(o=this.isMobileViewport?35:45);const l={top:20,left:this.isMobileViewport?35:45,right:o,bottom:this.isMobileViewport?52:38},c={backgroundColor:t?"rgba(15,15,15,0.75)":"rgba(255,255,255,0.75)",borderColor:t?"rgba(0,0,0,0.85)":"rgba(255,255,255,0.85)",textStyle:{color:s,fontSize:n}},u=this.$vuetify.theme.currentTheme,d=[u.primary,u.secondary],p=this.series;return{grid:l,color:d,textStyle:{fontFamily:"Roboto"},legend:{show:!1},tooltip:{...c,trigger:"axis",confine:!1,axisPointer:{type:"line",lineStyle:a,label:{color:s,fontSize:n,backgroundColor:c.backgroundColor}},formatter:f=>{let g="";return f.forEach(v=>{const y=p[v.seriesIndex];if(!y.displayLegend)return;let C=v.data[y.encode.y];typeof C=="number"?C=Math.round(C*1e3)/1e3:C||(C="-"),g+=`
|
||
<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?void 0:s?ale(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&&ile(e,t,n),n};let mf=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")])}};o8([w({type:Object,required:!0})],mf.prototype,"config",2);mf=o8([A({})],mf);var ole=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(nb,{attrs:{"non-linear":"",flat:""},model:{value:e.currentStep,callback:function(s){e.currentStep=s},expression:"currentStep"}},[t(ob,[e._l(e.steps,function(s,n){return[t(ib,{key:`step-${n}`,attrs:{step:n+1,editable:""}},[e._v(" "+e._s(s)+" ")]),n<e.steps.length-1?t(R,{key:n}):e._e()]})],2),e._l(e.steps,function(s,n){return t(ab,{key:`${n}-content`,staticClass:"pt-4",attrs:{step:n+1}},[e.currentStep===n+1?[t(H,{attrs:{title:e.$t("app.setting.label.enable")}},[t(Ce,{attrs:{"hide-details":""},model:{value:e.config.axes[n].enabled,callback:function(i){e.$set(e.config.axes[n],"enabled",i)},expression:"config.axes[i].enabled"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.show_legend")}},[t(Ce,{attrs:{"hide-details":""},model:{value:e.config.axes[n].showLegend,callback:function(i){e.$set(e.config.axes[n],"showLegend",i)},expression:"config.axes[i].showLegend"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.unit")}},[t(ae,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",rules:[e.$rules.required]},model:{value:e.config.axes[n].unit,callback:function(i){e.$set(e.config.axes[n],"unit",i)},expression:"config.axes[i].unit"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.min")}},[t(ae,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",hint:e.$t("app.setting.label.optional"),rules:[e.$rules.numberValid],suffix:e.config.axes[n].unit},model:{value:e.config.axes[n].min,callback:function(i){e.$set(e.config.axes[n],"min",i)},expression:"config.axes[i].min"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.max")}},[t(ae,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",hint:e.$t("app.setting.label.optional"),rules:[e.$rules.numberValid],suffix:e.config.axes[n].unit},model:{value:e.config.axes[n].max,callback:function(i){e.$set(e.config.axes[n],"max",i)},expression:"config.axes[i].max"}})],1)]:e._e()],2)})],2)},lle=[],cle=E(mf,ole,lle,!1,null,"57c1119b");const ule=cle.exports,fp={};function l8(r,e){let t;e?fp[e]?t=fp[e]:fp[e]||(fp[e]=t=YS()):t=YS();const s=new t.contentWindow.Function(r)();return e||t.remove(),s}function YS(){const r=document.createElement("iframe");return r.style.display="none",document.body.appendChild(r),r}var c8={exports:{}};const dle=YY(UO);var o1={exports:{}};/*!
|
||
* 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,te),Me=Z.call(this),Me.resolveOptions(_e),Me.listenClick(re),Me}return fe(te,[{key:"resolveOptions",value:function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof _e.action=="function"?_e.action:this.defaultAction,this.target=typeof _e.target=="function"?_e.target:this.defaultTarget,this.text=typeof _e.text=="function"?_e.text:this.defaultText,this.container=le(_e.container)==="object"?_e.container:document.body}},{key:"listenClick",value:function(_e){var Me=this;this.listener=d()(_e,"click",function(wt){return Me.onClick(wt)})}},{key:"onClick",value:function(_e){var Me=_e.delegateTarget||_e.currentTarget,wt=this.action(Me)||"copy",Lr=K({action:wt,container:this.container,target:this.target(Me),text:this.text(Me)});this.emit(Lr?"success":"error",{action:wt,text:Lr,trigger:Me,clearSelection:function(){Me&&Me.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(_e){return V("action",_e)}},{key:"defaultTarget",value:function(_e){var Me=V("target",_e);if(Me)return document.querySelector(Me)}},{key:"defaultText",value:function(_e){return V("text",_e)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(_e){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return $(_e,Me)}},{key:"cut",value:function(_e){return v(_e)}},{key:"isSupported",value:function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Me=typeof _e=="string"?[_e]:_e,wt=!!document.queryCommandSupported;return Me.forEach(function(Lr){wt=wt&&!!document.queryCommandSupported(Lr)}),wt}}]),te}(c()),X=Q},828:function(i){var a=9;if(typeof Element<"u"&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}function l(c,u){for(;c&&c.nodeType!==a;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}i.exports=l},438:function(i,a,o){var l=o(828);function c(p,h,f,g,v){var y=d.apply(this,arguments);return p.addEventListener(f,y,v),{destroy:function(){p.removeEventListener(f,y,v)}}}function u(p,h,f,g,v){return typeof p.addEventListener=="function"?c.apply(null,arguments):typeof f=="function"?c.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(y){return c(y,h,f,g,v)}))}function d(p,h,f,g){return function(v){v.delegateTarget=l(v.target,h),v.delegateTarget&&g.call(p,v)}}i.exports=u},879:function(i,a){a.node=function(o){return o!==void 0&&o instanceof HTMLElement&&o.nodeType===1},a.nodeList=function(o){var l=Object.prototype.toString.call(o);return o!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in o&&(o.length===0||a.node(o[0]))},a.string=function(o){return typeof o=="string"||o instanceof String},a.fn=function(o){var l=Object.prototype.toString.call(o);return l==="[object Function]"}},370:function(i,a,o){var l=o(879),c=o(438);function u(f,g,v){if(!f&&!g&&!v)throw new Error("Missing required arguments");if(!l.string(g))throw new TypeError("Second argument must be a String");if(!l.fn(v))throw new TypeError("Third argument must be a Function");if(l.node(f))return d(f,g,v);if(l.nodeList(f))return p(f,g,v);if(l.string(f))return h(f,g,v);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function d(f,g,v){return f.addEventListener(g,v),{destroy:function(){f.removeEventListener(g,v)}}}function p(f,g,v){return Array.prototype.forEach.call(f,function(y){y.addEventListener(g,v)}),{destroy:function(){Array.prototype.forEach.call(f,function(y){y.removeEventListener(g,v)})}}}function h(f,g,v){return c(document.body,f,g,v)}i.exports=u},817:function(i){function a(o){var l;if(o.nodeName==="SELECT")o.focus(),l=o.value;else if(o.nodeName==="INPUT"||o.nodeName==="TEXTAREA"){var c=o.hasAttribute("readonly");c||o.setAttribute("readonly",""),o.select(),o.setSelectionRange(0,o.value.length),c||o.removeAttribute("readonly"),l=o.value}else{o.hasAttribute("contenteditable")&&o.focus();var u=window.getSelection(),d=document.createRange();d.selectNodeContents(o),u.removeAllRanges(),u.addRange(d),l=u.toString()}return l}i.exports=a},279:function(i){function a(){}a.prototype={on:function(o,l,c){var u=this.e||(this.e={});return(u[o]||(u[o]=[])).push({fn:l,ctx:c}),this},once:function(o,l,c){var u=this;function d(){u.off(o,d),l.apply(c,arguments)}return d._=l,this.on(o,d,c)},emit:function(o){var l=[].slice.call(arguments,1),c=((this.e||(this.e={}))[o]||[]).slice(),u=0,d=c.length;for(u;u<d;u++)c[u].fn.apply(c[u].ctx,l);return this},off:function(o,l){var c=this.e||(this.e={}),u=c[o],d=[];if(u&&l)for(var p=0,h=u.length;p<h;p++)u[p].fn!==l&&u[p].fn._!==l&&d.push(u[p]);return d.length?c[o]=d:delete c[o],this}},i.exports=a,i.exports.TinyEmitter=a}},s={};function n(i){if(s[i])return s[i].exports;var a=s[i]={exports:{}};return t[i](a,a.exports,n),a.exports}return function(){n.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return n.d(a,{a}),a}}(),function(){n.d=function(i,a){for(var o in a)n.o(a,o)&&!n.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:a[o]})}}(),function(){n.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)}}(),n(686)}().default})}(o1)),o1.exports}(function(r,e){(function(t,s){r.exports=s(dle,ple())})(Sb,function(t,s){return a={},n.m=i=[function(o,l,c){function u(d,p,h,f,g,v,y,C){var x,$,L=typeof d=="function"?d.options:d;return p&&(L.render=p,L.staticRenderFns=h,L._compiled=!0),f&&(L.functional=!0),v&&(L._scopeId="data-v-"+v),y?(x=function(G){(G=G||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(G=__VUE_SSR_CONTEXT__),g&&g.call(this,G),G&&G._registeredComponents&&G._registeredComponents.add(y)},L._ssrRegister=x):g&&(x=C?function(){g.call(this,(L.functional?this.parent:this).$root.$options.shadowRoot)}:g),x&&(L.functional?(L._injectStyles=x,$=L.render,L.render=function(G,K){return x.call(K),$(G,K)}):(C=L.beforeCreate,L.beforeCreate=C?[].concat(C,x):[x])),{exports:d,options:L}}c.d(l,"a",function(){return u})},function(o,l,c){c.r(l);var u,d=c(2),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),h(c(29));var u=h(c(21)),d=h(c(41)),p=c(42);function h(f){return f&&f.__esModule?f:{default:f}}l.default={name:"JsonViewer",components:{JsonBox:u.default},props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expanded:{type:Boolean,default:!1},expandDepth:{type:Number,default:1},copyable:{type:[Boolean,Object],default:!1},sort:{type:Boolean,default:!1},boxed:{type:Boolean,default:!1},theme:{type:String,default:"jv-light"},timeformat:{type:Function,default:function(f){return f.toLocaleString()}},previewMode:{type:Boolean,default:!1},showArrayIndex:{type:Boolean,default:!0},showDoubleQuotes:{type:Boolean,default:!1}},provide:function(){return{expandDepth:this.expandDepth,timeformat:this.timeformat,onKeyclick:this.onKeyclick}},data:function(){return{copied:!1,expandableCode:!1,expandCode:this.expanded}},computed:{jvClass:function(){return"jv-container "+this.theme+(this.boxed?" boxed":"")},copyText:function(){var f=this.copyable;return{copyText:f.copyText||"copy",copiedText:f.copiedText||"copied!",timeout:f.timeout||2e3,align:f.align}}},watch:{value:function(){this.onResized()}},mounted:function(){var f=this;this.debounceResized=(0,p.debounce)(this.debResized.bind(this),200),this.boxed&&this.$refs.jsonBox&&(this.onResized(),this.$refs.jsonBox.$el.addEventListener("resized",this.onResized,!0)),this.copyable&&new d.default(this.$refs.clip,{container:this.$refs.viewer,text:function(){return JSON.stringify(f.value,null,2)}}).on("success",function(g){f.onCopied(g)})},methods:{onResized:function(){this.debounceResized()},debResized:function(){var f=this;this.$nextTick(function(){f.$refs.jsonBox&&(250<=f.$refs.jsonBox.$el.clientHeight?f.expandableCode=!0:f.expandableCode=!1)})},onCopied:function(f){var g=this;this.copied||(this.copied=!0,setTimeout(function(){g.copied=!1},this.copyText.timeout),this.$emit("copied",f))},toggleExpandCode:function(){this.expandCode=!this.expandCode},onKeyclick:function(f){this.$emit("keyclick",f)}}}},function(o,l,c){c.r(l);var u,d=c(4),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0});var u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},d=x(c(30)),p=x(c(31)),h=x(c(32)),f=x(c(33)),g=x(c(34)),v=x(c(35)),y=x(c(36)),C=x(c(37));function x($){return $&&$.__esModule?$:{default:$}}l.default={name:"JsonBox",inject:["expandDepth","onKeyclick"],props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},keyName:{type:String,default:""},sort:Boolean,depth:{type:Number,default:0},previewMode:Boolean,forceExpand:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:{type:String,default:"$"}},data:function(){return{expand:!0,forceExpandMe:this.forceExpand}},mounted:function(){this.expand=this.previewMode||!(this.depth>=this.expandDepth)||this.forceExpandMe},methods:{toggle:function(){this.expand=!this.expand,this.dispatchEvent()},toggleAll:function(){this.expand=!this.expand,this.forceExpandMe=this.expand,this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch{var $=document.createEvent("Event");$.initEvent("resized",!0,!1),this.$el.dispatchEvent($)}},getPath:function(){for(var $=[this.keyName],L=this.$parent;L.depth;)L.$el.classList.contains("jv-node")&&$.push(L.keyName),L=L.$parent;return $.reverse()}},render:function($){var L=this,G=[],K=void 0;this.value===null||this.value===void 0?K=p.default:Array.isArray(this.value)?K=v.default:Object.prototype.toString.call(this.value)==="[object Date]"?K=C.default:u(this.value)==="object"?K=g.default:typeof this.value=="number"?K=h.default:typeof this.value=="string"?K=d.default:typeof this.value=="boolean"?K=f.default:typeof this.value=="function"&&(K=y.default);var le=this.keyName&&this.value&&(Array.isArray(this.value)||u(this.value)==="object"&&Object.prototype.toString.call(this.value)!=="[object Date]");return!this.previewMode&&le&&G.push($("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:function(ue){ue.altKey?L.toggleAll():L.toggle()}}})),this.keyName&&G.push($("span",{class:{"jv-key":!0},domProps:{innerText:this.showDoubleQuotes?'"'+this.keyName+'":':this.keyName+":"},on:{click:function(){L.onKeyclick(L.path)}}})),G.push($(K,{class:{"jv-push":!0},props:{jsonValue:this.value,keyName:this.keyName,sort:this.sort,depth:this.depth,expand:this.expand,previewMode:this.previewMode,forceExpand:this.forceExpandMe,showArrayIndex:this.showArrayIndex,showDoubleQuotes:this.showDoubleQuotes,path:this.path},on:{"update:expand":function(ue){L.expand=ue},"update:expandAll":function(ue){L.expand=ue,L.forceExpandMe=L.expand}}})),$("div",{class:{"jv-node":!0,"jv-key-node":!!this.keyName&&!le,toggle:!this.previewMode&&le}},G)}}},function(o,l,c){c.r(l);var u,d=c(6),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0});var u=/^\w+:\/\//;l.default={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data:function(){return{expand:!0,canExtend:!1}},mounted:function(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle:function(){this.expand=!this.expand}},render:function(d){var p=this.jsonValue,h=u.test(p),f=void 0;return this.expand?(f={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"}).domProps=h?{innerHTML:'"'+(p='<a href="'+p+'" target="_blank" class="jv-link">'+p+"</a>").toString()+'"'}:{innerText:'"'+p.toString()+'"'}:f={class:{"jv-ellipsis":!0},on:{click:this.toggle},domProps:{innerText:"..."}},d("span",{},[this.canExtend&&d("span",{class:{"jv-toggle":!0,open:this.expand},on:{click:this.toggle}}),d("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),d("span",f)])}}},function(o,l,c){c.r(l);var u,d=c(8),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.default={name:"JsonUndefined",functional:!0,props:{jsonValue:{type:Object,default:null}},render:function(u,d){return u("span",{class:{"jv-item":!0,"jv-undefined":!0},domProps:{innerText:d.props.jsonValue===null?"null":"undefined"}})}}},function(o,l,c){c.r(l);var u,d=c(10),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.default={name:"JsonNumber",functional:!0,props:{jsonValue:{type:Number,required:!0}},render:function(u,h){var p=h.props,h=Number.isInteger(p.jsonValue);return u("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":h,"jv-number-float":!h},domProps:{innerText:p.jsonValue.toString()}})}}},function(o,l,c){c.r(l);var u,d=c(12),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.default={name:"JsonBoolean",functional:!0,props:{jsonValue:Boolean},render:function(u,d){return u("span",{class:{"jv-item":!0,"jv-boolean":!0},domProps:{innerText:d.props.jsonValue.toString()}})}}},function(o,l,c){c.r(l);var u,d=c(14),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0});var u=u(21),d=(u=u)&&u.__esModule?u:{default:u};l.default={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean,forceExpand:Boolean,sort:Boolean,previewMode:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:String},data:function(){return{value:{}}},computed:{ordered:function(){var p=this;if(!this.sort)return this.value;var h={};return Object.keys(this.value).sort().forEach(function(f){h[f]=p.value[f]}),h}},watch:{jsonValue:function(p){this.setValue(p)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(p){var h=this;setTimeout(function(){h.value=p},0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},toggleAll:function(){this.$emit("update:expandAll",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch{var p=document.createEvent("Event");p.initEvent("resized",!0,!1),this.$el.dispatchEvent(p)}}},render:function(p){var h,f=this,g=[];if(this.previewMode||this.keyName||g.push(p("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:function(y){y.altKey?f.toggleAll():f.toggle()}}})),g.push(p("span",{class:{"jv-item":!0,"jv-object":!0},domProps:{innerText:"{"}})),this.expand)for(var v in this.ordered)this.ordered.hasOwnProperty(v)&&(h=this.ordered[v],g.push(p(d.default,{key:v,props:{sort:this.sort,keyName:v,depth:this.depth+1,value:h,previewMode:this.previewMode,forceExpand:this.forceExpand,showArrayIndex:this.showArrayIndex,showDoubleQuotes:this.showDoubleQuotes,path:this.path+"."+v}})));return!this.expand&&Object.keys(this.value).length&&g.push(p("span",{class:{"jv-ellipsis":!0},on:{click:function(y){y.altKey?f.toggleAll():f.toggle()}},attrs:{title:"click to reveal object content (keys: "+Object.keys(this.ordered).join(", ")+")"},domProps:{innerText:"..."}})),g.push(p("span",{class:{"jv-item":!0,"jv-object":!0},domProps:{innerText:"}"}})),p("span",g)}}},function(o,l,c){c.r(l);var u,d=c(16),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0});var u=u(21),d=(u=u)&&u.__esModule?u:{default:u};l.default={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},sort:Boolean,expand:Boolean,forceExpand:Boolean,previewMode:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:String},data:function(){return{value:[]}},watch:{jsonValue:function(p){this.setValue(p)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(p){var h=this,f=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0;f===0&&(this.value=[]),setTimeout(function(){p.length>f&&(h.value.push(p[f]),h.setValue(p,f+1))},0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},toggleAll:function(){this.$emit("update:expandAll",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch{var p=document.createEvent("Event");p.initEvent("resized",!0,!1),this.$el.dispatchEvent(p)}}},render:function(p){var h=this,f=[];return this.previewMode||this.keyName||f.push(p("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:function(g){g.altKey?h.toggleAll():h.toggle()}}})),f.push(p("span",{class:{"jv-item":!0,"jv-array":!0},domProps:{innerText:"["}})),this.expand&&this.value.forEach(function(g,v){f.push(p(d.default,{key:v,props:{sort:h.sort,keyName:h.showArrayIndex?""+v:"",depth:h.depth+1,value:g,previewMode:h.previewMode,forceExpand:h.forceExpand,showArrayIndex:h.showArrayIndex,showDoubleQuotes:h.showDoubleQuotes,path:h.path+"."+v}}))}),!this.expand&&this.value.length&&f.push(p("span",{class:{"jv-ellipsis":!0},on:{click:function(g){g.altKey?h.toggleAll():h.toggle()}},attrs:{title:"click to reveal "+this.value.length+" hidden items"},domProps:{innerText:"..."}})),f.push(p("span",{class:{"jv-item":!0,"jv-array":!0},domProps:{innerText:"]"}})),p("span",f)}}},function(o,l,c){c.r(l);var u,d=c(18),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.default={name:"JsonFunction",functional:!0,props:{jsonValue:{type:Function,required:!0}},render:function(u,d){return u("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:d.props.jsonValue.toString()},domProps:{innerHTML:"<function>"}})}}},function(o,l,c){c.r(l);var u,d=c(20),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.default={name:"JsonDate",inject:["timeformat"],functional:!0,props:{jsonValue:{type:Date,required:!0}},render:function(u,p){var h=p.props,p=p.injections,h=h.jsonValue;return u("span",{class:{"jv-item":!0,"jv-string":!0},domProps:{innerText:'"'+(0,p.timeformat)(h)+'"'}})}}},function(o,l,c){c.r(l);var u,d=c(3);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);c(38);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/json-box.vue",l.default=p.exports},function(o,l,c){function u(){var p=this,h=p.$createElement;return(h=p._self._c||h)("div",{ref:"viewer",class:p.jvClass},[p.copyable?h("div",{class:"jv-tooltip "+(p.copyText.align||"right")},[h("span",{ref:"clip",staticClass:"jv-button",class:{copied:p.copied}},[p._t("copy",function(){return[p._v(`
|
||
`+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-container .jv-button{position:relative;cursor:pointer;display:inline-block;padding:5px;z-index:5}.jv-container .jv-button.copied{opacity:0.4;cursor:default}.jv-container .jv-tooltip{position:absolute}.jv-container .jv-tooltip.right{right:15px}.jv-container .jv-tooltip.left{left:15px}.jv-container .j-icon{font-size:12px}
|
||
`,""]),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.setting.label.solid"),value:"solid"},{text:this.$t("app.setting.label.dotted"),value:"dotted"},{text:this.$t("app.setting.label.dashed"),value:"dashed"}])}addMetric(t){const n=Ra().layouts.diagnostics.container1[0].axes[0].metrics[0];this.config.axes[t].metrics.push(n)}removeMetric(t,s){this.config.axes[t].metrics.splice(s,1)}};u8([w({type:Object,required:!0})],gf.prototype,"config",2);gf=u8([A({components:{MetricsCollectorConfig:Ale}})],gf);var Tle=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(nb,{attrs:{"non-linear":"",flat:""},model:{value:e.currentStep,callback:function(s){e.currentStep=s},expression:"currentStep"}},[t(ob,[e._l(e.steps,function(s,n){return[t(ib,{key:`step-${n}`,attrs:{step:n+1,editable:""}},[e._v(" "+e._s(s)+" "),t("small",[e._v(e._s(e.config.axes[n].unit))])]),n<e.steps.length-1?t(R,{key:n}):e._e()]})],2),e._l(e.steps,function(s,n){return t(ab,{key:`${n}-content`,staticClass:"pt-4",attrs:{step:n+1}},[e.currentStep===n+1?[t(Sm,{attrs:{accordion:"",flat:""}},e._l(e.config.axes[n].metrics,function(i,a){return t(xm,{key:`${a}-metric-${n}-axis`},[t(Pm,[e._v(" "+e._s(i.name)+" "),t(R,{staticClass:"ml-4"}),t(B,{staticClass:"d-flex justify-center",attrs:{cols:"1"}},[t(M,{attrs:{small:"",icon:"",color:""},on:{click:function(o){return o.stopPropagation(),e.removeMetric(n,a)}}},[t(S,{attrs:{dense:""}},[e._v(" $delete ")])],1)],1)],1),t(Cm,[t(H,{attrs:{title:e.$t("app.setting.label.name")}},[t(ae,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",rules:[e.$rules.required]},model:{value:i.name,callback:function(o){e.$set(i,"name",o)},expression:"metric.name"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.line_color")}},[t(ol,{attrs:{value:i.style.lineColor,title:i.name,dot:""},on:{input:function(o){i.style.lineColor=o}}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.line_style")}},[t(Re,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.lineStyles},model:{value:i.style.lineStyle,callback:function(o){e.$set(i.style,"lineStyle",o)},expression:"metric.style.lineStyle"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.fill_color")}},[t(ol,{attrs:{value:i.style.fillColor??i.style.lineColor,title:i.name,dot:""},on:{input:function(o){i.style.fillColor=o}}})],1),t(R),t(Ft,{staticClass:"px-4 py-3",attrs:{label:e.$t("app.setting.label.fill_opacity"),min:0,max:100,suffix:"%"},model:{value:i.style.fillOpacity,callback:function(o){e.$set(i.style,"fillOpacity",o)},expression:"metric.style.fillOpacity"}}),t(R),t(H,{attrs:{title:e.$t("app.setting.label.show_legend")}},[t(Ce,{attrs:{"hide-details":""},model:{value:i.style.displayLegend,callback:function(o){e.$set(i.style,"displayLegend",o)},expression:"metric.style.displayLegend"}})],1),t(R),t("metrics-collector-config",{staticClass:"mt-3",attrs:{metric:i,unit:e.config.axes[n].unit}})],1)],1)}),1),t(R,{staticClass:"mt-4"}),t(ie,{staticClass:"pa-2 mt-2"},[t($t),t(M,{attrs:{small:""},on:{click:function(i){return e.addMetric(n)}}},[t(S,{attrs:{small:""}},[e._v(" $plus ")]),e._v(" "+e._s(e.$t("app.setting.btn.add_metric"))+" ")],1)],1)]:e._e()],2)})],2)},kle=[],Dle=E(gf,Tle,kle,!1,null,"644a1200");const Mle=Dle.exports;var Rle=Object.defineProperty,Ile=Object.getOwnPropertyDescriptor,Vb=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ile(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&&Rle(e,t,n),n};let Pu=class extends Y(lt){constructor(){super(...arguments);m(this,"open");m(this,"config");m(this,"currentStep",1);m(this,"steps",[{name:this.$t("app.setting.label.card"),component:nle},{name:this.$t("app.setting.label.axes"),component:ule},{name:this.$t("app.setting.label.metrics"),component:Mle}])}handleSave(){this.$emit("save",this.config),this.open=!1}handleDelete(){this.$emit("delete",this.config.id),this.open=!1}};Vb([Fe({type:Boolean})],Pu.prototype,"open",2);Vb([w({type:Object,required:!0})],Pu.prototype,"config",2);Pu=Vb([A({})],Pu);var Fle=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.config.id!==""?e.$t("app.general.title.edit_chart"):e.$t("app.general.title.add_chart"),"max-width":"800"},scopedSlots:e._u([{key:"actions",fn:function(){return[e.isMobileViewport?t($t):e._e(),e.config.id!==""?t(M,{attrs:{color:"error",text:""},on:{click:e.handleDelete}},[e._v(" "+e._s(e.$t("app.general.btn.remove"))+" ")]):e._e(),e.isMobileViewport?e._e():t($t),t(M,{attrs:{color:"warning",text:""},on:{click:function(s){e.open=!1}}},[e._v(" "+e._s(e.$t("app.general.btn.cancel"))+" ")]),t(M,{attrs:{color:"primary"},on:{click:e.handleSave}},[e._v(" "+e._s(e.config.id!==""?e.$t("app.general.btn.save"):e.$t("app.general.btn.add"))+" ")])]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,[t(nb,{attrs:{"non-linear":"",flat:""},model:{value:e.currentStep,callback:function(s){e.currentStep=s},expression:"currentStep"}},[t(ob,[e._l(e.steps,function(s,n){return[t(ib,{key:`step-${n}`,attrs:{step:n+1,editable:""}},[e._v(" "+e._s(s.name)+" ")]),n<e.steps.length-1?t(R,{key:n}):e._e()]})],2),t(SW,e._l(e.steps,function(s,n){return t(ab,{key:`${n}-content`,staticClass:"pa-0",attrs:{step:n+1}},[e.currentStep===n+1?t(s.component,{tag:"component",attrs:{config:e.config}}):e._e()],1)}),1)],1)],1)],1)},Hle=[],jle=E(Pu,Fle,Hle,!1,null,"0bc5eac1");const Ble=jle.exports;var Nle=Object.defineProperty,Vle=Object.getOwnPropertyDescriptor,d8=(r,e,t,s)=>{for(var n=s>1?void 0:s?Vle(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&&Nle(e,t,n),n};let vf=class extends Y(J){constructor(){super(...arguments);m(this,"dialogState",{active:!1,card:null});m(this,"containers",[])}mounted(){this.onLayoutChange()}handleAddCard(){const t=JSON.parse(JSON.stringify(Ra().layouts.diagnostics.container1[0]));t.id="",this.dialogState.card=t,this.dialogState.active=!0}handleEditCard(t){this.dialogState.card=JSON.parse(JSON.stringify(t)),this.dialogState.active=!0}handleDeleteCard(t){for(const s of Object.values(this.layout)){const n=s.findIndex(i=>i.id===t);if(n>-1){s.splice(n,1);break}}this.updateLayout()}handleSaveCard(t){if(t.id==="")t.id=Rl(),this.layout.container1.push(t);else for(const s of Object.values(this.layout)){const n=s.findIndex(i=>i.id===t.id);if(n>-1){s[n]=t;break}}this.updateLayout()}get columnCount(){return this.inLayout?4:this.containers.reduce((t,s)=>+this.hasCards(s)+t,0)}get columnSpan(){return 12/this.columnCount}get inLayout(){return this.$store.state.config.layoutMode}get layout(){return this.$store.getters["layout/getLayout"]("diagnostics")}onLayoutChange(){const t=Object.values(this.layout);for(;t.length<4;)t.push([]);this.containers=t.slice(0,4)}updateLayout(){this.$store.dispatch("layout/onLayoutChange",{name:"diagnostics",value:{container1:this.containers[0],container2:this.containers[1],container3:this.containers[2],container4:this.containers[3]}})}hasCards(t){return t.some(s=>s.enabled)}};d8([Ae("layout",{deep:!0})],vf.prototype,"onLayoutChange",1);vf=d8([A({components:{DiagnosticsCard:Joe,DiagnosticsCardConfigDialog:Ble}})],vf);var zle=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(ie,[t(B,{attrs:{cols:"12"}},[t(Qe,{attrs:{title:e.$t("app.general.title.diagnostics"),icon:"$chart"},scopedSlots:e._u([{key:"menu",fn:function(){return[t(Sn,[t(M,{attrs:{small:""},on:{click:e.handleAddCard}},[t(S,{attrs:{small:"",left:""}},[e._v(" $plus ")]),e._v(" "+e._s(e.$t("app.general.title.add_chart"))+" ")],1)],1)]},proxy:!0}])})],1)],1),t(ie,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[e._l(e.containers,function(s,n){return[e.inLayout||e.hasCards(s)?t(B,{key:`container${n}`,class:{drag:e.inLayout},attrs:{cols:"12",md:"6",lg:e.columnSpan}},[t(pm,{staticClass:"list-group",attrs:{options:{animation:200,handle:".handle",group:"diagnostics",disabled:!e.inLayout,ghostClass:"ghost"},target:":first-child"},on:{end:function(i){return i.stopPropagation(),e.updateLayout.apply(null,arguments)}},model:{value:e.containers[n],callback:function(i){e.$set(e.containers,n,i)},expression:"containers[containerIndex]"}},[t("transition-group",{attrs:{type:"transition",name:e.inLayout?void 0:"flip-list"}},[e._l(s,function(i){return[i.enabled||e.inLayout?t("diagnostics-card",{key:i.id,staticClass:"mb-2 mb-sm-4",attrs:{config:i},on:{edit:e.handleEditCard}}):e._e()]})],2)],1)],1):e._e()]})],2),e.dialogState.active?t("diagnostics-card-config-dialog",{attrs:{config:e.dialogState.card},on:{save:e.handleSaveCard,delete:e.handleDeleteCard},model:{value:e.dialogState.active,callback:function(s){e.$set(e.dialogState,"active",s)},expression:"dialogState.active"}}):e._e()],1)},Ule=[],Wle=E(vf,zle,Ule,!1,null,"91010126");const Gle=Wle.exports;var qle=Object.defineProperty,Zle=Object.getOwnPropertyDescriptor,p8=(r,e,t,s)=>{for(var n=s>1?void 0:s?Zle(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&&qle(e,t,n),n};let _f=class extends Y(zr){constructor(){super(...arguments);m(this,"expanded",[]);m(this,"searchModel")}get headers(){const t=[{text:"",value:"data-table-icons",sortable:!1,width:"24px"},{text:this.$tc("app.general.table.header.name"),value:"filename"},{text:this.$tc("app.general.table.header.status"),value:"status",configurable:!0},{text:this.$tc("app.general.table.header.start_time"),value:"start_time",configurable:!0},{text:this.$tc("app.general.table.header.end_time"),value:"end_time",configurable:!0},{text:this.$tc("app.general.table.header.print_duration"),value:"print_duration",configurable:!0},{text:this.$tc("app.general.table.header.total_duration"),value:"total_duration",configurable:!0},{text:this.$tc("app.general.table.header.filament_used"),value:"filament_used",configurable:!0},{text:this.$t("app.general.table.header.size"),value:"metadata.size",width:"1%",configurable:!0},{text:this.$tc("app.general.table.header.actions"),value:"actions",sortable:!1,align:"end"}];return this.$store.getters["config/getMergedTableHeaders"](t,"history")}get visibleHeaders(){return this.headers.filter(t=>t.visible||t.visible===void 0)}get history(){return this.$store.getters["history/getHistory"]}getRowClasses(t){return t.exists?"":"v-data-table__inactive"}getFilePaths(t){return Yt(t,"gcodes")}getFilename(t){return t.split("/").pop()||""}handleRemoveJob(t){I.serverHistoryDeleteJob(t.job_id)}handleJobThumbnailError(t){this.$store.dispatch("history/clearHistoryThumbnails",t.job_id)}isExpanded(t){if(this.expanded.length<=0)return!1;const s=this.expanded[0];return t.job_id===s.job_id}toggleRowExpand(t){this.isExpanded(t)?this.expanded=[]:this.expanded=[t]}};p8([Hi("search",{type:String,default:""})],_f.prototype,"searchModel",2);_f=p8([A({components:{JobHistoryItemStatus:db}})],_f);var Yle=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"file-system"},[t(Gt,{attrs:{dense:""}},[t($t),e.headers?t(Rm,{attrs:{"key-name":"history",headers:e.headers}}):e._e(),t("div",{staticClass:"ms-1 my-1",staticStyle:{"max-width":"160px"}},[t(ae,{attrs:{outlined:"",dense:"","single-line":"","hide-details":"","append-icon":"$magnify"},model:{value:e.searchModel,callback:function(s){e.searchModel=s},expression:"searchModel"}})],1)],1),t(hd,{attrs:{items:e.history,headers:e.visibleHeaders,"items-per-page":15,"item-class":e.getRowClasses,"single-expand":"",search:e.searchModel,expanded:e.expanded,"mobile-breakpoint":"0","item-key":"job_id","sort-by":"start_time","sort-desc":"","fixed-header":""},scopedSlots:e._u([{key:"expanded-item",fn:function({headers:s,item:n}){return[t("td",{staticClass:"pa-4",attrs:{colspan:s.length}},[t("div",{staticClass:"chip-group"},[e._l(Object.keys(n.metadata),function(i,a){return[i!=="thumbnails"?t(hr,{key:a,attrs:{small:""}},[e._v(" "+e._s(i)+": "+e._s(n.metadata[i])+" ")]):e._e()]})],2)])]}},{key:"item.data-table-icons",fn:function({item:s}){var n;return[s.exists?(n=s.metadata.thumbnails)!=null&&n.length?t("img",{staticClass:"mr-2 file-icon-thumb",attrs:{src:e.getThumbUrl(s.metadata,"gcodes",e.getFilePaths(s.filename).path,!1,s.metadata.modified),width:24},on:{error:function(i){return e.handleJobThumbnailError(s)}}}):t(S,{staticClass:"mr-2",attrs:{color:"secondary"}},[e._v(" $file ")]):t(S,{staticClass:"mr-2",attrs:{color:"secondary"}},[e._v(" $fileCancel ")])]}},{key:"item.filename",fn:function({item:s}){return[t("span",{},[e._v(" "+e._s(e.getFilePaths(s.filename).filename)+" ")])]}},{key:"item.status",fn:function({item:s}){return[t("job-history-item-status",{attrs:{job:s}})]}},{key:"item.start_time",fn:function({item:s}){return[t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.formatDateTime(s.start_time*1e3))+" ")])]}},{key:"item.end_time",fn:function({item:s}){return[s.status!=="in_progress"?t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.formatDateTime(s.end_time*1e3))+" ")]):t("span",[e._v("--")])]}},{key:"item.print_duration",fn:function({item:s}){return[t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(s.print_duration))+" ")])]}},{key:"item.total_duration",fn:function({item:s}){return[t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(s.total_duration))+" ")])]}},{key:"item.filament_used",fn:function({item:s}){return[t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.getReadableLengthString(s.filament_used))+" ")])]}},{key:"item.metadata.size",fn:function({item:s}){return[t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.getReadableFileSizeString(s.metadata.size))+" ")])]}},{key:"item.actions",fn:function({item:s}){return[t("div",{staticClass:"text-no-wrap"},[t(Be,{attrs:{icon:"",small:""},on:{click:function(n){return e.handleRemoveJob(s)}}},[t(S,{attrs:{small:"",color:""}},[e._v(" $delete ")])],1),t(Be,{staticClass:"v-data-table__expand-icon",class:{"v-data-table__expand-icon--active":e.isExpanded(s)},attrs:{color:"",icon:"",small:""},on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.toggleRowExpand(s)}}},[t(S,[e._v("$chevronDown")])],1)],1)]}}],null,!0)})],1)},Kle=[],Xle=E(_f,Yle,Kle,!1,null,null);const zb=Xle.exports;var Jle=Object.defineProperty,Qle=Object.getOwnPropertyDescriptor,h8=(r,e,t,s)=>{for(var n=s>1?void 0:s?Qle(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&&Jle(e,t,n),n};let yf=class extends b{constructor(){super(...arguments);m(this,"menuCollapsed")}get rollup(){return this.$store.getters["history/getRollUp"]}get fileSystemUsedPercent(){const t=this.fileSystemUsage.total,s=this.fileSystemUsage.used;return Math.floor(s/t*100).toFixed()}get fileSystemUsage(){return this.$store.getters["files/getUsage"]}get supportsHistoryComponent(){return this.$store.getters["server/componentSupport"]("history")}async handleResetStats(){await this.$confirm(this.$tc("app.history.msg.confirm_stats"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})&&I.serverHistoryResetTotals()}};h8([w({type:Boolean})],yf.prototype,"menuCollapsed",2);yf=h8([A({components:{JobHistory:zb}})],yf);var ece=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.general.title.stats"),icon:"$chart"},scopedSlots:e._u([{key:"menu",fn:function(){return[t(Sn,{attrs:{collapsed:e.menuCollapsed}},[t(M,{staticClass:"ms-1 my-1",attrs:{small:""},on:{click:e.handleResetStats}},[t(S,{attrs:{small:"",left:""}},[e._v(" $delete ")]),t("span",[e._v(e._s(e.$t("app.general.btn.reset_stats")))])],1)],1)]},proxy:!0}])},[t(Le,[e.supportsHistoryComponent?t(ie,[t(B,{attrs:{cols:"3"}},[t(He,{staticClass:"px-2 py-1 text-center stat-square",attrs:{outlined:""}},[t("div",{staticClass:"secondary--text"},[e._v(" "+e._s(e.$t("app.general.label.total_jobs"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.rollup.total_jobs)+" ")]),t("div",{staticClass:"secondary--text"},[e._v(" "+e._s(e.$t("app.general.label.longest_job"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(e.rollup.longest_job))+" ")])])],1),t(B,{attrs:{cols:"3"}},[t(He,{staticClass:"px-2 py-1 text-center stat-square",attrs:{outlined:""}},[t("div",{staticClass:"secondary--text"},[e._v(" "+e._s(e.$t("app.general.label.total_time"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(e.rollup.total_time))+" ")]),t("div",{staticClass:"secondary--text"},[e._v(" "+e._s(e.$t("app.general.label.total_time_avg"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(e.rollup.total_avg))+" ")])])],1),t(B,{attrs:{cols:"3"}},[t(He,{staticClass:"px-2 py-1 text-center stat-square",attrs:{outlined:""}},[t("div",{staticClass:"secondary--text"},[e._v(" "+e._s(e.$t("app.general.label.total_print_time"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(e.rollup.total_print_time))+" ")]),t("div",{staticClass:"secondary--text"},[e._v(" "+e._s(e.$t("app.general.label.total_print_time_avg"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(e.rollup.print_avg))+" ")])])],1),t(B,{attrs:{cols:"3"}},[t(He,{staticClass:"px-2 py-1 text-center stat-square",attrs:{outlined:""}},[t("div",{staticClass:"secondary--text"},[e._v(" "+e._s(e.$t("app.general.label.total_filament"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.getReadableLengthString(e.rollup.total_filament_used))+" ")]),t("div",{staticClass:"secondary--text"},[e._v(" "+e._s(e.$t("app.general.label.total_filament_avg"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.getReadableLengthString(e.rollup.filament_avg))+" ")])])],1)],1):e._e()],1)],1)},tce=[],rce=E(yf,ece,tce,!1,null,"cc82c5db");const sce=rce.exports;var nce=Object.defineProperty,ice=Object.getOwnPropertyDescriptor,f8=(r,e,t,s)=>{for(var n=s>1?void 0:s?ice(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&&nce(e,t,n),n};let bf=class extends b{constructor(){super(...arguments);m(this,"menuCollapsed")}async handleRemoveAll(){await this.$confirm(this.$tc("app.history.msg.confirm_jobs"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})&&I.serverHistoryDeleteJob("all")}handleLoadAll(){I.serverHistoryList({limit:0})}};f8([w({type:Boolean})],bf.prototype,"menuCollapsed",2);bf=f8([A({components:{JobHistory:zb}})],bf);var ace=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.general.title.history"),icon:"$history"},scopedSlots:e._u([{key:"menu",fn:function(){return[t(Sn,{attrs:{collapsed:e.menuCollapsed}},[t(M,{staticClass:"ms-1 my-1",attrs:{small:""},on:{click:e.handleLoadAll}},[t(S,{attrs:{small:"",left:""}},[e._v(" $download ")]),t("span",[e._v(e._s(e.$t("app.general.btn.load_all")))])],1),t(M,{staticClass:"ms-1 my-1",attrs:{small:""},on:{click:e.handleRemoveAll}},[t(S,{attrs:{small:"",left:""}},[e._v(" $delete ")]),t("span",[e._v(e._s(e.$t("app.general.btn.remove_all")))])],1)],1)]},proxy:!0}])},[t("job-history")],1)},oce=[],lce=E(bf,ace,oce,!1,null,null);const cce=lce.exports;var uce=Object.defineProperty,dce=Object.getOwnPropertyDescriptor,pce=(r,e,t,s)=>{for(var n=s>1?void 0:s?dce(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&&uce(e,t,n),n};let O_=class extends b{get breakpoint(){return this.$vuetify.breakpoint.mdAndDown?12:6}};O_=pce([A({components:{PrinterStatsCard:sce,PrinterHistoryCard:cce}})],O_);var hce=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[t(B,{attrs:{cols:"12"}},[t("printer-stats-card",{staticClass:"mb-2 mb-sm-4"}),t("printer-history-card")],1)],1)},fce=[],mce=E(O_,hce,fce,!1,null,null);const gce=mce.exports;var vce=Object.defineProperty,_ce=Object.getOwnPropertyDescriptor,yce=(r,e,t,s)=>{for(var n=s>1?void 0:s?_ce(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&&vce(e,t,n),n};let T_=class extends Y(J,zr){constructor(){super(...arguments);m(this,"selectedFrameNumber",0)}saveFrames(){I.machineTimelapseSaveFrames(this.$waits.onTimelapseSaveFrame)}get savingFrames(){return this.hasWait(this.$waits.onTimelapseSaveFrame)}get selectedFrame(){return this.selectedFrameNumber||this.frameCount||0}set selectedFrame(e){this.selectedFrameNumber=e===this.frameCount?0:e}get previewUrl(){var t;const e=(t=this.lastFrame)==null?void 0:t.file;if(e){const s=this.selectedFrame?`frame${this.selectedFrame.toString().padStart(6,"0")}.${e.split(".").pop()}`:e;return this.createFileUrl(s,"timelapse_frames")}}get isRendering(){return this.renderStatus&&this.renderStatus.status!=="success"}get frameCount(){var e;return(e=this.lastFrame)==null?void 0:e.uniqueCount}get camera(){return this.$store.getters["webcams/getWebcamById"](this.settings.camera)}get settings(){return this.$store.getters["timelapse/getSettings"]}get lastFrame(){return this.$store.getters["timelapse/getLastFrame"]}get renderStatus(){return this.$store.getters["timelapse/getRenderStatus"]}get renderProgress(){const e=this.renderStatus;return(e==null?void 0:e.status)==="running"?e.progress:0}};T_=yce([A({components:{CameraItem:Nm,FileSystem:kl}})],T_);var bce=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{staticClass:"mb-2 sb-sm-4",attrs:{title:e.$t("app.timelapse.title.timelapse_status"),icon:"$info"}},[t(Le,[t(ie,[e.frameCount?t("div",{staticStyle:{position:"relative"}},[t("img",{staticClass:"mx-auto thumbnail",style:{filter:e.isRendering?`saturate(${e.renderProgress}%)`:"none"},attrs:{src:e.previewUrl}}),e.isRendering?t(Wo,{staticClass:"render-progress",attrs:{color:"primary",size:"64",value:e.renderProgress}}):e._e()],1):e.camera?t("camera-item",{attrs:{camera:e.camera}}):e._e()],1),t(ie,[t(B,{attrs:{cols:"12"}},[t(Vr,{attrs:{"justify-center":""}},[t(Ft,{attrs:{"full-width":"",label:e.$tc("app.timelapse.label.frame"),min:1,max:e.frameCount,suffix:`/ ${e.frameCount}`,"reset-value":e.frameCount,disabled:!e.frameCount||e.isRendering},model:{value:e.selectedFrame,callback:function(s){e.selectedFrame=s},expression:"selectedFrame"}})],1)],1)],1)],1),t(R),t(pd,[t($t),t(M,{attrs:{color:"primary",text:"",disabled:!e.frameCount||e.savingFrames},on:{click:function(s){return e.saveFrames()}}},[e._v(" "+e._s(e.$t("app.timelapse.btn.save_frames"))+" ")]),t(M,{attrs:{color:"primary",disabled:!e.frameCount||e.isRendering},on:{click:function(s){return e.$emit("openRenderDialog",!0)}}},[e._v(" "+e._s(e.$t("app.timelapse.btn.render"))+" ")])],1)],1)},$ce=[],wce=E(T_,bce,$ce,!1,null,"1dde4575");const Sce=wce.exports;var xce=Object.defineProperty,Cce=Object.getOwnPropertyDescriptor,Pce=(r,e,t,s)=>{for(var n=s>1?void 0:s?Cce(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&&xce(e,t,n),n};let k_=class extends Y(J){get enabledBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("enabled")}get enabled(){var e;return(e=this.settings)==null?void 0:e.enabled}set enabled(e){I.machineTimelapseSetSettings({enabled:e})}get autoRenderBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("autorender")}get autoRender(){var e;return(e=this.settings)==null?void 0:e.autorender}set autoRender(e){I.machineTimelapseSetSettings({autorender:e})}get frameCount(){var e;return(e=this.$store.getters["timelapse/getLastFrame"])==null?void 0:e.count}get settings(){return this.$store.getters["timelapse/getSettings"]}subtitleIfBlocked(e){return e?this.$tc("app.general.tooltip.managed_by_moonraker"):""}};k_=Pce([A({})],k_);var Ace=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.timelapse.title.timelapse_settings"),icon:"$cog"}},[t(H,{attrs:{title:e.$t("app.timelapse.setting.enable"),"sub-title":e.subtitleIfBlocked(e.enabledBlocked),"r-cols":2}},[t(Ce,{attrs:{"hide-details":"",disabled:e.enabledBlocked},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.enabled,callback:function(s){e.enabled=s},expression:"enabled"}})],1),t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.auto_render"),"sub-title":e.subtitleIfBlocked(e.autoRenderBlocked),"r-cols":2}},[t(Ce,{attrs:{"hide-details":"",disabled:e.autoRenderBlocked},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.autoRender,callback:function(s){e.autoRender=s},expression:"autoRender"}})],1),t(R),t(H,{attrs:{title:e.$tc("app.timelapse.title.render_settings")}},[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:function(s){return e.$emit("openRenderDialog",!1)}}},[t(S,{attrs:{small:"",left:""}},[e._v(" $pencil ")]),e._v(" "+e._s(e.$t("app.general.btn.edit"))+" ")],1)],1)],1)},Lce=[],Ece=E(k_,Ace,Lce,!1,null,null);const Oce=Ece.exports,Ub=()=>({enabled:!0,mode:"layermacro",camera:"",stream_delay_compensation:.05,gcode_verbose:!1,parkhead:!1,parkpos:"back_left",park_custom_pos_x:10,park_custom_pos_y:10,park_custom_pos_dz:0,park_travel_speed:100,park_retract_speed:15,park_extrude_speed:15,park_retract_distance:1,park_extrude_distance:1,park_time:.1,fw_retract:!1,hyperlapse_cycle:30,autorender:!1,constant_rate_factor:23,output_framerate:30,pixelformat:"yuv420p",time_format_code:"%Y%m%d_%H%M",extraoutputparams:"",variable_fps:!1,targetlength:10,variable_fps_min:5,variable_fps_max:60,duplicatelastframe:5,previewimage:!0,saveframes:!1}),m8=()=>({lastFrame:void 0,settings:{...Ub(),snapshoturl:"http://localhost:8080/?action=snapshot",rotation:0,flip_x:!1,flip_y:!1,blockedsettings:[]},renderStatus:void 0}),Tce=m8();var kce=Object.defineProperty,Dce=Object.getOwnPropertyDescriptor,Ni=(r,e,t,s)=>{for(var n=s>1?void 0:s?Dce(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&&kce(e,t,n),n};let wn=class extends Y(J){constructor(){super(...arguments);m(this,"open");m(this,"renderable");m(this,"outputFramerateElement");m(this,"targetLengthElement");m(this,"minFpsElement");m(this,"maxFpsElement");m(this,"duplicateFramesElement")}get lengthEstimate(){const t=this.frameCount+this.duplicateLastFrameCount;let s;this.settings.variable_fps?s=Math.min(this.settings.variable_fps_max,Math.max(this.settings.variable_fps_min,t/this.settings.targetlength)):s=this.settings.output_framerate;const n=(t||0)/s,i=Math.floor(n/60);return`${i?i+"m":""} ${Math.floor(n%60)}s`.trim()}get outputFramerateBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("output_framerate")}get outputFramerate(){var t;return(t=this.settings)==null?void 0:t.output_framerate}setOutputFramerate(t){var s;(s=this.outputFramerateElement)!=null&&s.validate()&&I.machineTimelapseSetSettings({output_framerate:t})}get variableFpsBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("variable_fps")}get variableFps(){var t;return(t=this.settings)==null?void 0:t.variable_fps}set variableFps(t){I.machineTimelapseSetSettings({variable_fps:t})}get targetLengthBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("targetlength")}get targetLength(){var t;return(t=this.settings)==null?void 0:t.targetlength}setTargetLength(t){var s;(s=this.targetLengthElement)!=null&&s.validate()&&I.machineTimelapseSetSettings({targetlength:t})}get minFpsBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("variable_fps_min")}get minFps(){var t;return(t=this.settings)==null?void 0:t.variable_fps_min}setMinFps(t){var s;(s=this.minFpsElement)!=null&&s.validate()&&I.machineTimelapseSetSettings({variable_fps_min:t})}get maxFpsBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("variable_fps_max")}get maxFps(){var t;return(t=this.settings)==null?void 0:t.variable_fps_max}setMaxFps(t){var s;(s=this.maxFpsElement)!=null&&s.validate()&&I.machineTimelapseSetSettings({variable_fps_max:t})}get duplicateFramesBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("duplicatelastframe")}get duplicateFrames(){var t;return(t=this.settings)==null?void 0:t.duplicatelastframe}setDuplicateFrames(t){var s;(s=this.duplicateFramesElement)!=null&&s.validate()&&I.machineTimelapseSetSettings({duplicatelastframe:t})}get saveFramesBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("saveframes")}get saveFrames(){var t;return(t=this.settings)==null?void 0:t.saveframes}set saveFrames(t){I.machineTimelapseSetSettings({saveframes:t})}get previewImageBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("previewimage")}get previewImage(){var t;return(t=this.settings)==null?void 0:t.previewimage}set previewImage(t){I.machineTimelapseSetSettings({previewimage:t})}renderTimelapse(){I.machineTimelapseRender(),this.open=!1}get frameCount(){var t;return((t=this.lastFrame)==null?void 0:t.count)??0}get duplicateLastFrameCount(){var t;return((t=this.settings)==null?void 0:t.duplicatelastframe)??0}get crfBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("constant_rate_factor")}get crf(){var t;return(t=this.settings)==null?void 0:t.constant_rate_factor}setCRF(t){I.machineTimelapseSetSettings({constant_rate_factor:t})}get defaultCRF(){return Ub().constant_rate_factor}get settings(){return this.$store.getters["timelapse/getSettings"]}get lastFrame(){return this.$store.getters["timelapse/getLastFrame"]}subtitleIfBlocked(t){return t?this.$tc("app.general.tooltip.managed_by_moonraker"):""}};Ni([Fe({type:Boolean})],wn.prototype,"open",2);Ni([w({type:Boolean,required:!0})],wn.prototype,"renderable",2);Ni([Te("outputFramerateElement")],wn.prototype,"outputFramerateElement",2);Ni([Te("targetLengthElement")],wn.prototype,"targetLengthElement",2);Ni([Te("minFpsElement")],wn.prototype,"minFpsElement",2);Ni([Te("maxFpsElement")],wn.prototype,"maxFpsElement",2);Ni([Te("duplicateFramesElement")],wn.prototype,"duplicateFramesElement",2);wn=Ni([A({})],wn);var Mce=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.$t("app.timelapse.title.render_settings"),"max-width":"640","no-actions":!e.renderable},scopedSlots:e._u([{key:"actions",fn:function(){return[t($t),t(Oe,{attrs:{left:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({attrs:{color:"primary"},on:{click:e.renderTimelapse}},"app-btn",n,!1),s),[t(S,[e._v("$play")]),e._v(" "+e._s(e.$t("app.timelapse.btn.render"))+" ")],1)]}}])},[t("span",[e._v(e._s(e.$t("app.timelapse.label.length",{length:e.lengthEstimate})))])])]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,{staticClass:"pa-0"},[t(H,{attrs:{title:e.$t("app.timelapse.setting.variable_fps"),"sub-title":e.subtitleIfBlocked(e.variableFpsBlocked)}},[t(Ce,{attrs:{"hide-details":"",disabled:e.variableFpsBlocked},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.variableFps,callback:function(s){e.variableFps=s},expression:"variableFps"}})],1),t(R),e.variableFps?[t(H,{attrs:{title:e.$t("app.timelapse.setting.targetlength"),"sub-title":e.subtitleIfBlocked(e.targetLengthBlocked)}},[t(ae,{ref:"targetLengthElement",attrs:{value:e.targetLength,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.targetLengthBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"s"},on:{change:e.setTargetLength}})],1),t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.variable_fps_min"),"sub-title":e.subtitleIfBlocked(e.minFpsBlocked)}},[t(ae,{ref:"minFpsElement",attrs:{value:e.minFps,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.minFpsBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"fps"},on:{change:e.setMinFps}})],1),t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.variable_fps_max"),"sub-title":e.subtitleIfBlocked(e.maxFpsBlocked)}},[t(ae,{ref:"maxFpsElement",attrs:{value:e.maxFps,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.maxFpsBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"fps"},on:{change:e.setMaxFps}})],1)]:t(H,{attrs:{title:e.$t("app.timelapse.setting.output_framerate"),"sub-title":e.subtitleIfBlocked(e.outputFramerateBlocked)}},[t(ae,{ref:"outputFramerateElement",attrs:{value:e.outputFramerate,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.outputFramerateBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"fps"},on:{change:e.setOutputFramerate}})],1),t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.saveframes"),"sub-title":e.subtitleIfBlocked(e.saveFramesBlocked)}},[t(Ce,{attrs:{"hide-details":"",disabled:e.saveFramesBlocked},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.saveFrames,callback:function(s){e.saveFrames=s},expression:"saveFrames"}})],1),t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.duplicatelastframe"),"sub-title":e.subtitleIfBlocked(e.duplicateFramesBlocked)}},[t(ae,{ref:"duplicateFramesElement",attrs:{value:e.duplicateFrames,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.duplicateFramesBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:e.$tc("app.timelapse.label.frame",e.duplicateFrames)},on:{change:e.setDuplicateFrames}})],1),t(R),t(Ft,{staticClass:"px-4 pt-3",staticStyle:{overflow:"hidden"},attrs:{value:e.crf,label:e.$tc("app.timelapse.setting.crf"),min:0,max:51,"reset-value":e.defaultCRF,disabled:e.crfBlocked},on:{change:e.setCRF}}),t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.previewimage"),"sub-title":e.subtitleIfBlocked(e.previewImageBlocked)}},[t(Ce,{attrs:{"hide-details":"",disabled:e.previewImageBlocked},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.previewImage,callback:function(s){e.previewImage=s},expression:"previewImage"}})],1)],2)],1)},Rce=[],Ice=E(wn,Mce,Rce,!1,null,null);const g8=Ice.exports;var Fce=Object.defineProperty,Hce=Object.getOwnPropertyDescriptor,jce=(r,e,t,s)=>{for(var n=s>1?void 0:s?Hce(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&&Fce(e,t,n),n};let D_=class extends Y(J){constructor(){super(...arguments);m(this,"renderDialogOpen",!1);m(this,"renderDialogRenderable",!1)}openRenderDialog(t=!1){this.renderDialogRenderable=t,this.renderDialogOpen=!0}};D_=jce([A({components:{TimelapseRenderSettingsDialog:g8,FileSystem:kl,TimelapseStatusCard:Sce,TimelapseSettingsCard:Oce}})],D_);var Bce=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[t(B,{attrs:{cols:"12",md:"8"}},[t(Qe,{attrs:{title:e.$t("app.general.title.timelapse"),icon:"$video"}},[t("file-system",{attrs:{roots:"timelapse",name:"timelapse","bulk-actions":"","max-height":"816"}})],1)],1),t(B,{attrs:{cols:"12",md:"4"}},[t("timelapse-status-card",{on:{openRenderDialog:e.openRenderDialog}}),t("timelapse-settings-card",{on:{openRenderDialog:e.openRenderDialog}})],1),e.renderDialogOpen?t("timelapse-render-settings-dialog",{attrs:{renderable:e.renderDialogRenderable},model:{value:e.renderDialogOpen,callback:function(s){e.renderDialogOpen=s},expression:"renderDialogOpen"}}):e._e()],1)},Nce=[],Vce=E(D_,Bce,Nce,!1,null,null);const zce=Vce.exports;var Uce=Object.defineProperty,Wce=Object.getOwnPropertyDescriptor,v8=(r,e,t,s)=>{for(var n=s>1?void 0:s?Wce(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&&Uce(e,t,n),n};let $f=class extends Y(J){constructor(){super(...arguments);m(this,"open");m(this,"application","")}sendAccept(){I.serverLogsRollover(this.application||void 0),this.open=!1}};v8([Fe({type:Boolean})],$f.prototype,"open",2);$f=v8([A({})],$f);var Gce=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.$t("app.general.title.rollover_logs"),"save-button-text":e.$t("app.general.btn.accept"),"max-width":"400"},on:{save:e.sendAccept},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,[t(k6,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.application,callback:function(s){e.application=s},expression:"application"}},[t(Wc,{attrs:{label:e.$t("app.general.label.all"),value:""}}),t(Wc,{attrs:{value:"klipper"},scopedSlots:e._u([{key:"label",fn:function(){return[t("div",[e._v("Klipper "),t("span",{staticClass:"secondary--text"},[e._v("(klippy.log)")])])]},proxy:!0}])}),t(Wc,{attrs:{value:"moonraker"},scopedSlots:e._u([{key:"label",fn:function(){return[t("div",[e._v("Moonraker "),t("span",{staticClass:"secondary--text"},[e._v("(moonraker.log)")])])]},proxy:!0}])})],1)],1)],1)},qce=[],Zce=E($f,Gce,qce,!1,null,null);const Yce=Zce.exports;var Kce=Object.defineProperty,Xce=Object.getOwnPropertyDescriptor,Jce=(r,e,t,s)=>{for(var n=s>1?void 0:s?Xce(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&&Kce(e,t,n),n};let M_=class extends Y(J,zr,Xo){getKlippyLog(){this.downloadFile("klippy.log","")}getMoonrakerLog(){this.downloadFile("moonraker.log","")}};M_=Jce([A({})],M_);var Qce=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.klippyConnected?[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"mb-2",attrs:{block:"",color:"primary"},on:{click:e.restartKlippy}},"app-btn",n,!1),s),[e._v(" "+e._s(e.$t("app.general.btn.restart_service_klipper"))+" ")])]}}],null,!1,550031500)},[t("span",[e._v(e._s(e.$t("app.general.tooltip.reload_klipper")))])]),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"mb-2",attrs:{block:"",color:"primary"},on:{click:e.firmwareRestartKlippy}},"app-btn",n,!1),s),[e._v(" "+e._s(e.$t("app.general.btn.restart_firmware"))+" ")])]}}],null,!1,2451519191)},[t("span",[e._v(e._s(e.$t("app.general.tooltip.reload_restart_klipper")))])])]:[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"mb-2",attrs:{block:"",color:"primary"},on:{click:e.serviceRestartKlipper}},"app-btn",n,!1),s),[e._v(" "+e._s(e.$t("app.general.btn.restart_service_klipper"))+" ")])]}}])},[t("span",[e._v(e._s(e.$t("app.general.tooltip.restart_klipper")))])])],t(M,{staticClass:"me-2 mb-2",attrs:{block:""},on:{click:function(s){return e.getKlippyLog()}}},[t(S,{attrs:{left:"",small:""}},[e._v(" $download ")]),e._v(" Klippy.log ")],1),t(M,{staticClass:"me-2",attrs:{block:""},on:{click:function(s){return e.getMoonrakerLog()}}},[t(S,{attrs:{left:"",small:""}},[e._v(" $download ")]),e._v(" Moonraker.log ")],1)],2)},eue=[],tue=E(M_,Qce,eue,!1,null,null);const _8=tue.exports;var rue=Object.defineProperty,sue=Object.getOwnPropertyDescriptor,nue=(r,e,t,s)=>{for(var n=s>1?void 0:s?sue(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&&rue(e,t,n),n};let R_=class extends Y(J){constructor(){super(...arguments);m(this,"rolloverLogsDialogOpen",!1);m(this,"peripheralsDialogOpen",!1)}get systemInfo(){return this.$store.getters["server/getSystemInfo"]}get cpuInfo(){var t;return((t=this.systemInfo)==null?void 0:t.cpu_info)||{}}get distribution(){var t;return((t=this.systemInfo)==null?void 0:t.distribution)||{}}get distributionName(){var n;const{name:t,id:s}=this.distribution;if(t)return t.startsWith("0.")?void 0:`${t.startsWith("#")?s:t} ${((n=this.distribution.release_info)==null?void 0:n.version_id)??""}`}get virtualization(){var t;return((t=this.systemInfo)==null?void 0:t.virtualization)||{}}get network(){var t;return Object.entries(((t=this.systemInfo)==null?void 0:t.network)||{}).map(([s,n])=>{var a,o;const i=((a=n.ip_addresses)==null?void 0:a.filter(l=>l.family==="ipv4"))||((o=n.ip_addresses)==null?void 0:o.filter(l=>l.family==="ipv6"));return i?`${s} (${i.map(l=>l.address).join(", ")})`:s}).join(", ")}get printerInfo(){return this.$store.state.printer.printer.info}get canRolloverLogs(){return this.$store.getters["server/getIsMinApiVersion"]("1.0.5")}};R_=nue([A({})],R_);var iue=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.general.title.system_overview"),icon:"$desktopTower"},scopedSlots:e._u([{key:"menu",fn:function(){return[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(i){e.peripheralsDialogOpen=!0}}},"app-btn",n,!1),s),[t(S,[e._v("$devices")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.system_info.label.devices")))])]),e.canRolloverLogs?t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:"",disabled:e.printerBusy},on:{click:function(i){e.rolloverLogsDialogOpen=!0}}},"app-btn",n,!1),s),[t(S,[e._v("$fileRefresh")])],1)]}}],null,!1,2499269129)},[t("span",[e._v(e._s(e.$t("app.general.tooltip.rollover_logs")))])]):e._e()]},proxy:!0}])},[t(ie,{attrs:{"no-gutters":""}},[t(B,[t(qt,{attrs:{dense:""}},[t("tbody",[e.printerInfo.hostname?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.hostname")))]),t("td",[e._v(e._s(e.printerInfo.hostname))])]):e._e(),e.cpuInfo.model?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.model")))]),t("td",[e._v(e._s(e.cpuInfo.model))])]):e._e(),e.cpuInfo.cpu_desc?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.cpu_desc")))]),t("td",[e._v(e._s(e.cpuInfo.cpu_desc))])]):e._e(),e.cpuInfo.total_memory?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.total_memory")))]),t("td",[e._v(e._s(e.$filters.getReadableFileSizeString(e.cpuInfo.total_memory*1024)))])]):e._e(),e.cpuInfo.hardware_desc?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.hardware_desc")))]),t("td",[e._v(e._s(e.cpuInfo.hardware_desc))])]):e._e(),e.cpuInfo.bits&&e.cpuInfo.processor&&e.cpuInfo.cpu_count?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.processor_desc")))]),t("td",[e._v(e._s(e.cpuInfo.bits)+" "+e._s(e.cpuInfo.processor)+" with "+e._s(e.cpuInfo.cpu_count)+" cores")])]):e._e(),e.distribution.name?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.operating_system")))]),t("td",[e._v(e._s(e.distribution.name))])]):e._e(),e.distributionName?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.distribution_name")))]),t("td",[e._v(" "+e._s(e.distributionName)+" ")])]):e._e(),e.distribution.like?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.distribution_like")))]),t("td",[e._v(e._s(e.distribution.like))])]):e._e(),e.distribution.codename?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.distribution_codename")))]),t("td",[e._v(e._s(e.distribution.codename))])]):e._e(),e.network?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.network")))]),t("td",[e._v(e._s(e.network))])]):e._e(),e.virtualization.virt_type&&e.virtualization.virt_type!=="none"?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.virtualization")))]),t("td",[e._v(e._s(e.virtualization.virt_type)+" ("+e._s(e.virtualization.virt_identifier)+")")])]):e._e()])])],1),t(B,[t(Le,[t(_8)],1)],1)],1),e.rolloverLogsDialogOpen?t(Yce,{model:{value:e.rolloverLogsDialogOpen,callback:function(s){e.rolloverLogsDialogOpen=s},expression:"rolloverLogsDialogOpen"}}):e._e(),e.peripheralsDialogOpen?t(tP,{model:{value:e.peripheralsDialogOpen,callback:function(s){e.peripheralsDialogOpen=s},expression:"peripheralsDialogOpen"}}):e._e()],1)},aue=[],oue=E(R_,iue,aue,!1,null,null);const y8=oue.exports;var lue=Object.defineProperty,cue=Object.getOwnPropertyDescriptor,b8=(r,e,t,s)=>{for(var n=s>1?void 0:s?cue(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&&lue(e,t,n),n};let wf=class extends b{constructor(){super(...arguments);m(this,"ready",!1)}get chartData(){return this.$store.state.charts.klipper||[]}get cores(){var t,s;return((s=(t=this.$store.state.server.system_info)==null?void 0:t.cpu_info)==null?void 0:s.cpu_count)||1}get options(){const t={...this.$store.getters["charts/getBaseChartOptions"](),series:this.series};return t.yAxis.max=s=>s.max<=this.cores?this.cores:s.max,t}get series(){return this.$store.getters["charts/getBaseSeries"]({name:this.$t("app.system_info.label.load"),encode:{x:"date",y:"load"}})}onChartData(t){t&&t.length>0&&(this.ready=!0)}};b8([Ae("chartData",{immediate:!0})],wf.prototype,"onChartData",1);wf=b8([A({})],wf);var uue=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.ready?t(B,{staticClass:"chart-wrapper",attrs:{cols:"4"}},[t(Fl,{attrs:{data:e.chartData,options:e.options,height:"120px"}}),t("div",{staticClass:"chart-label-wrapper"},[t("div",{staticClass:"chart-label"},[t("span",[e._v(e._s(e.$t("app.system_info.label.system_load")))]),e.chartData.length?t("span",[e._v(e._s(e.chartData[e.chartData.length-1].load)+" / "+e._s(e.cores))]):e._e()])])],1):e._e()},due=[],pue=E(wf,uue,due,!1,null,null);const hue=pue.exports;var fue=Object.defineProperty,mue=Object.getOwnPropertyDescriptor,$8=(r,e,t,s)=>{for(var n=s>1?void 0:s?mue(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&&fue(e,t,n),n};let Sf=class extends b{constructor(){super(...arguments);m(this,"ready",!1)}get chartData(){return this.$store.state.charts.memory||[]}get options(){return{...this.$store.getters["charts/getBaseChartOptions"]({memused:"%"}),series:this.series}}get series(){return this.$store.getters["charts/getBaseSeries"]({name:this.$t("app.system_info.label.memory_used"),encode:{x:"date",y:"memused"}})}onChartData(t){t&&t.length>0&&(this.ready=!0)}};$8([Ae("chartData",{immediate:!0})],Sf.prototype,"onChartData",1);Sf=$8([A({})],Sf);var gue=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.ready?t(B,{staticClass:"chart-wrapper",attrs:{cols:"4"}},[t(Fl,{attrs:{data:e.chartData,options:e.options,height:"120px"}}),t("div",{staticClass:"chart-label-wrapper"},[t("div",{staticClass:"chart-label"},[t("span",[e._v(e._s(e.$t("app.system_info.label.system_memory")))]),e.chartData.length?t("span",[e._v(e._s(e.chartData[e.chartData.length-1].memused)+"%")]):e._e()])])],1):e._e()},vue=[],_ue=E(Sf,gue,vue,!1,null,null);const yue=_ue.exports;var bue=Object.defineProperty,$ue=Object.getOwnPropertyDescriptor,w8=(r,e,t,s)=>{for(var n=s>1?void 0:s?$ue(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&&bue(e,t,n),n};let xf=class extends b{constructor(){super(...arguments);m(this,"ready",!1)}get chartData(){return this.$store.state.charts.klipper||[]}get options(){return{...this.$store.getters["charts/getBaseChartOptions"]({cputime_change:"%"}),series:this.series}}get series(){return this.$store.getters["charts/getBaseSeries"]({name:this.$t("app.system_info.label.load"),encode:{x:"date",y:"cputime_change"}})}onChartData(t){t&&t.length>0&&(this.ready=!0)}};w8([Ae("chartData",{immediate:!0})],xf.prototype,"onChartData",1);xf=w8([A({})],xf);var wue=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.ready?t(B,{staticClass:"chart-wrapper",attrs:{cols:"4"}},[t(Fl,{attrs:{data:e.chartData,options:e.options,height:"120px"}}),t("div",{staticClass:"chart-label-wrapper"},[t("div",{staticClass:"chart-label"},[t("span",[e._v(e._s(e.$t("app.system_info.label.klipper_load")))]),e.chartData.length?t("span",[e._v(e._s(e.chartData[e.chartData.length-1].cputime_change)+"%")]):e._e()])])],1):e._e()},Sue=[],xue=E(xf,wue,Sue,!1,null,null);const Cue=xue.exports;var Pue=Object.defineProperty,Aue=Object.getOwnPropertyDescriptor,S8=(r,e,t,s)=>{for(var n=s>1?void 0:s?Aue(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&&Pue(e,t,n),n};let Cf=class extends b{constructor(){super(...arguments);m(this,"ready",!1)}get chartData(){return this.$store.state.charts.moonraker||[]}get options(){return{...this.$store.getters["charts/getBaseChartOptions"]({load:"%"}),series:this.series}}get series(){return this.$store.getters["charts/getBaseSeries"]({name:this.$t("app.system_info.label.load"),encode:{x:"date",y:"load"}})}onChartData(t){t&&t.length>0&&(this.ready=!0)}};S8([Ae("chartData",{immediate:!0})],Cf.prototype,"onChartData",1);Cf=S8([A({})],Cf);var Lue=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.ready?t(B,{staticClass:"chart-wrapper",attrs:{cols:"4"}},[t(Fl,{attrs:{data:e.chartData,options:e.options,height:"120px"}}),t("div",{staticClass:"chart-label-wrapper"},[t("div",{staticClass:"chart-label"},[t("span",[e._v(e._s(e.$t("app.system_info.label.moonraker_load")))]),e.chartData.length?t("span",[e._v(e._s(e.chartData[e.chartData.length-1].load)+"%")]):e._e()])])],1):e._e()},Eue=[],Oue=E(Cf,Lue,Eue,!1,null,null);const Tue=Oue.exports;var kue=Object.defineProperty,Due=Object.getOwnPropertyDescriptor,Wb=(r,e,t,s)=>{for(var n=s>1?void 0:s?Due(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&&kue(e,t,n),n};let Au=class extends b{constructor(){super(...arguments);m(this,"ready",!1);m(this,"mcu")}get chartData(){return this.$store.state.charts[this.mcu]||[]}get options(){const t={...this.$store.getters["charts/getBaseChartOptions"]({load:"%",awake:"%",bw:"b"}),series:this.series};return t.yAxis.max=s=>s.max<=10?15:s.max<=20?25:s.max<=30?35:s.max<=40?45:s.max<=50||s.max<=50?55:s.max<=60?65:s.max<=70?75:s.max<=80?85:s.max,t}get series(){const t=this.$store.getters["charts/getBaseSeries"]({name:this.$t("app.system_info.label.load"),encode:{x:"date",y:"load"}}),s=this.$store.getters["charts/getBaseSeries"]({name:this.$t("app.system_info.label.awake_time"),encode:{x:"date",y:"awake"}});return[t,s]}onChartData(t){t&&t.length>0&&(this.ready=!0)}};Wb([w({type:String,required:!0})],Au.prototype,"mcu",2);Wb([Ae("chartData",{immediate:!0})],Au.prototype,"onChartData",1);Au=Wb([A({})],Au);var Mue=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.ready?t(B,{staticClass:"chart-wrapper",attrs:{cols:"4"}},[t(Fl,{attrs:{data:e.chartData||[],options:e.options,height:"120px"}}),t("div",{staticClass:"chart-label-wrapper"},[t("div",{staticClass:"chart-label"},[t("span",[e._v(e._s(e.$t("app.system_info.label.mcu_load",{mcu:e.mcu.toUpperCase()})))]),e.chartData.length?t("span",[e._v(e._s(e.chartData[e.chartData.length-1].load)+"%")]):e._e()]),t("div",{staticClass:"chart-label"},[t("span",[e._v(e._s(e.$t("app.system_info.label.mcu_awake",{mcu:e.mcu.toUpperCase()})))]),e.chartData.length?t("span",[e._v(e._s(e.chartData[e.chartData.length-1].awake)+"%")]):e._e()])])],1):e._e()},Rue=[],Iue=E(Au,Mue,Rue,!1,null,null);const Fue=Iue.exports;var Hue=Object.defineProperty,jue=Object.getOwnPropertyDescriptor,Bue=(r,e,t,s)=>{for(var n=s>1?void 0:s?jue(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&&Hue(e,t,n),n};let I_=class extends b{get procStats(){return this.$store.getters["server/getProcessStats"]}get systemStats(){return this.$store.getters["printer/getSystemStats"]}get mcus(){return this.$store.getters["printer/getMcus"]}};I_=Bue([A({components:{SystemLoadChart:hue,SystemMemoryChart:yue,KlipperLoadChart:Cue,MoonrakerLoadChart:Tue,McuLoadChart:Fue}})],I_);var Nue=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.system_info.label.system_utilization"),icon:"$chart"}},[t(Le,[t(ie,[t("system-load-chart"),t("klipper-load-chart"),t("moonraker-load-chart"),t("system-memory-chart"),e._l(e.mcus,function(s,n){return[t("mcu-load-chart",{key:n,attrs:{mcu:s.name}})]})],2)],1)],1)},Vue=[],zue=E(I_,Nue,Vue,!1,null,null);const x8=zue.exports;var Uue=Object.defineProperty,Wue=Object.getOwnPropertyDescriptor,Gue=(r,e,t,s)=>{for(var n=s>1?void 0:s?Wue(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&&Uue(e,t,n),n};let F_=class extends b{get sdInfo(){const e=this.$store.getters["server/getSystemInfo"];return(e==null?void 0:e.sd_info)||{}}get fileSystemUsedPercent(){const e=this.fileSystemUsage.total,t=this.fileSystemUsage.used;return Math.floor(t/e*100).toFixed()}get fileSystemUsage(){return this.$store.getters["files/getUsage"]}};F_=Gue([A({components:{JobHistory:zb}})],F_);var que=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.file_system.label.diskinfo"),icon:"$harddisk"}},[t(Le,[t(Vr,{attrs:{"justify-space-between":""}},[t("div",{},[e._v(" "+e._s(e.$t("app.file_system.label.disk_usage"))+" ")])]),t(Zs,{staticClass:"my-1",attrs:{size:90,height:10,value:e.fileSystemUsedPercent,color:"primary"}}),t(Vr,{attrs:{"justify-space-between":""}},[t("div",{},[t("span",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.getReadableFileSizeString(e.fileSystemUsage.used))+" ")]),t("span",{staticClass:"secondary--text"},[e._v(e._s(e.$t("app.general.label.used")))])]),t("div",{},[t("span",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.getReadableFileSizeString(e.fileSystemUsage.free))+" ")]),t("span",{staticClass:"secondary--text"},[e._v(e._s(e.$t("app.general.label.free")))])])])],1),t(qt,{attrs:{dense:""}},[t("tbody",[e.sdInfo.manufacturer?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.manufacturer")))]),t("td",[e._v(e._s(e.sdInfo.manufacturer))])]):e._e(),e.sdInfo.manufacturer_date?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.manufactured")))]),t("td",[e._v(e._s(e.sdInfo.manufacturer_date))])]):e._e(),e.sdInfo.product_name?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.product_name")))]),t("td",[e._v(e._s(e.sdInfo.product_name)+" "+e._s(e.sdInfo.product_revision))])]):e._e(),e.sdInfo.capacity?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.capacity")))]),t("td",[e._v(e._s(e.sdInfo.capacity))])]):e._e(),e.sdInfo.serial_number?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.serial_number")))]),t("td",[e._v(e._s(e.sdInfo.serial_number))])]):e._e()])])],1)},Zue=[],Yue=E(F_,que,Zue,!1,null,null);const C8=Yue.exports;var Kue=Object.defineProperty,Xue=Object.getOwnPropertyDescriptor,Jue=(r,e,t,s)=>{for(var n=s>1?void 0:s?Xue(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&&Kue(e,t,n),n};let H_=class extends Y(J){get hasGraphData(){return this.$store.state.charts.klipper!==void 0||this.$store.state.charts.moonraker!==void 0||this.$store.state.charts.memory!==void 0}get breakpoint(){return this.$vuetify.breakpoint.mdAndDown?12:6}get roots(){const e=["logs","docs","config_examples"],t=["gcodes","config","timelapse","timelapse_frames"];for(const s of this.$store.state.server.info.registered_directories||[])!t.includes(s)&&!e.includes(s)&&e.push(s);return e}};H_=Jue([A({components:{FileSystem:kl,SystemOverviewCard:y8,SystemUsageCard:x8,DiskUsageCard:C8}})],H_);var Que=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[t(B,{attrs:{cols:"12",md:"6"}},[t(Qe,{attrs:{title:e.$t("app.general.title.config_files"),icon:"$codeJson","help-tooltip":e.$t("app.general.tooltip.file_browser_help")}},[t("file-system",{attrs:{roots:["config"],"max-height":"816",name:"configure","bulk-actions":""}})],1)],1),t(B,{attrs:{cols:"12",md:"6"}},[t(Qe,{attrs:{title:e.$t("app.general.title.other_files"),icon:"$files","help-tooltip":e.$t("app.general.tooltip.file_browser_configuration_help")}},[t("file-system",{attrs:{roots:e.roots,"max-height":"816",name:"configure"}})],1)],1)],1)},ede=[],tde=E(H_,Que,ede,!1,null,null);const rde=tde.exports;var sde=Object.defineProperty,nde=Object.getOwnPropertyDescriptor,Gb=(r,e,t,s)=>{for(var n=s>1?void 0:s?nde(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&&sde(e,t,n),n};let Lu=class extends b{constructor(){super(...arguments);m(this,"open");m(this,"mcu")}};Gb([Fe({type:Boolean})],Lu.prototype,"open",2);Gb([w({type:Object,required:!0})],Lu.prototype,"mcu",2);Lu=Gb([A({})],Lu);var ide=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.$t("app.system_info.label.mcu_information",{mcu:e.mcu.name}),"max-width":"500","no-actions":""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,{staticClass:"pa-0"},[t(He,{attrs:{flat:""}},[t(Hr,[e._v(e._s(e.$t("app.system_info.label.constants")))]),t(qt,{attrs:{dense:""}},[t("tbody",e._l(e.mcu.mcu_constants,function(s,n){return t("tr",{key:n},[t("th",[e._v(e._s(n))]),t("td",[e._v(e._s(s))])])}),0)])],1),t(He,{attrs:{flat:""}},[t(Hr,[e._v(e._s(e.$t("app.system_info.label.last_stats")))]),t(qt,{attrs:{dense:""}},[t("tbody",e._l(e.mcu.last_stats,function(s,n){return t("tr",{key:n},[t("th",[e._v(e._s(n))]),t("td",[e._v(e._s(s))])])}),0)])],1)],1)],1)},ade=[],ode=E(Lu,ide,ade,!1,null,null);const lde=ode.exports;var cde=Object.defineProperty,ude=Object.getOwnPropertyDescriptor,P8=(r,e,t,s)=>{for(var n=s>1?void 0:s?ude(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&&cde(e,t,n),n};let Pf=class extends b{constructor(){super(...arguments);m(this,"mcu");m(this,"mcuInformationDialogOpen",!1)}showMcuInformationDialog(){this.mcuInformationDialogOpen=!0}};P8([w({type:Object,required:!0})],Pf.prototype,"mcu",2);Pf=P8([A({components:{McuInformationDialog:lde}})],Pf);var dde=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:e.$t("app.system_info.label.mcu_information",{mcu:e.mcu.name}),icon:"$chip"},scopedSlots:e._u([{key:"menu",fn:function(){return[t(M,{staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:e.showMcuInformationDialog}},[t(S,[e._v("$viewHeadline")])],1)]},proxy:!0}])},[t(qt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.micro_controller")))]),t("td",[e._v(e._s(e.mcu.mcu_constants.MCU))])]),t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.frequency")))]),t("td",[e._v(e._s(e.$filters.getReadableFrequencyString(+e.mcu.mcu_constants.CLOCK_FREQ)))])]),t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.version")))]),t("td",[e._v(e._s(e.mcu.mcu_version))])])])]),e.mcuInformationDialogOpen?t("mcu-information-dialog",{attrs:{mcu:e.mcu},model:{value:e.mcuInformationDialogOpen,callback:function(s){e.mcuInformationDialogOpen=s},expression:"mcuInformationDialogOpen"}}):e._e()],1)},pde=[],hde=E(Pf,dde,pde,!1,null,null);const fde=hde.exports;var mde=Object.defineProperty,gde=Object.getOwnPropertyDescriptor,vde=(r,e,t,s)=>{for(var n=s>1?void 0:s?gde(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&&mde(e,t,n),n};let j_=class extends Y(J){get breakpoint(){return this.$vuetify.breakpoint.mdAndDown?12:6}get mcus(){return this.$store.getters["printer/getMcus"]}};j_=vde([A({components:{FileSystem:kl,SystemOverviewCard:y8,McuCard:fde,SystemUsageCard:x8,DiskUsageCard:C8}})],j_);var _de=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[t(B,{attrs:{cols:"12",md:"6"}},[t("system-overview-card",{staticClass:"mb-2 mb-sm-4"}),t("disk-usage-card")],1),t(B,{attrs:{cols:"12",md:"6"}},[t("system-usage-card",{staticClass:"mb-2 mb-sm-4"}),e._l(e.mcus,function(s){return[t("mcu-card",{key:s.name,staticClass:"mb-2 mb-sm-4",attrs:{mcu:s}})]})],2)],1)},yde=[],bde=E(j_,_de,yde,!1,null,null);const $de=bde.exports;var wde=Object.defineProperty,Sde=Object.getOwnPropertyDescriptor,Ad=(r,e,t,s)=>{for(var n=s>1?void 0:s?Sde(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&&wde(e,t,n),n};let Ia=class extends b{constructor(){super(...arguments);m(this,"open");m(this,"title");m(this,"label");m(this,"name");m(this,"newName","")}get customRules(){return{uniqueName:t=>this.categories.findIndex(s=>s.name.toLowerCase()===t.toLowerCase())<0||this.$t("app.general.simple_form.error.exists")}}mounted(){this.newName=this.name}get categories(){return this.$store.getters["macros/getCategories"]}handleSave(){this.$emit("save",this.newName),this.open=!1}};Ad([Fe({type:Boolean})],Ia.prototype,"open",2);Ad([w({type:String,required:!0})],Ia.prototype,"title",2);Ad([w({type:String,required:!0})],Ia.prototype,"label",2);Ad([w({type:String,required:!0})],Ia.prototype,"name",2);Ia=Ad([A({})],Ia);var xde=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.title,"max-width":"350"},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,[t(ae,{attrs:{autofocus:"",outlined:"",label:e.label,rules:[e.$rules.required,e.customRules.uniqueName],required:""},model:{value:e.newName,callback:function(s){e.newName=s},expression:"newName"}})],1)],1)},Cde=[],Pde=E(Ia,xde,Cde,!1,null,null);const Ade=Pde.exports;var Lde=Object.defineProperty,Ede=Object.getOwnPropertyDescriptor,Ode=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ede(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&&Lde(e,t,n),n};let B_=class extends Y(J){constructor(){super(...arguments);m(this,"categoryDialogState",{open:!1,title:"add",label:"",category:null,name:"",handler:this.handleAddCategory})}get categories(){return this.$store.getters["macros/getCategories"]}get uncategorizedMacros(){const t=this.$store.getters["macros/getMacrosByCategory"](),s=t.length,n=t.filter(i=>i.visible).length;return{count:s,visible:n}}handleAddCategoryDialog(){this.categoryDialogState={open:!0,title:this.$t("app.general.label.add_category"),label:this.$t("app.general.label.name"),category:null,name:"",handler:this.handleAddCategory}}handleEditCategoryDialog(t){this.categoryDialogState={open:!0,title:this.$t("app.general.label.edit_category"),label:this.$t("app.general.label.name"),category:t,name:t.name,handler:this.handleEditCategory}}handleRemoveCategory(t){this.$store.dispatch("macros/removeCategory",t)}handleAddCategory(t){this.$store.dispatch("macros/addCategory",t)}handleEditCategory(t){const s={...this.categoryDialogState.category,name:t};this.$store.dispatch("macros/editCategory",s)}handleCategoryClick(t){const s=(t==null?void 0:t.id)??0;this.$router.push(`/settings/macros/${s}`)}};B_=Ode([A({components:{MacroCategoryDialog:Ade}})],B_);var Tde=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"macros"}},[e._v(" "+e._s(e.$t("app.setting.title.macros"))+" ")]),t(He,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(H,[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleAddCategoryDialog}},[t(S,{attrs:{small:"",left:""}},[e._v(" $plus ")]),e._v(" "+e._s(e.$t("app.setting.btn.add_category"))+" ")],1)],1),e._l(e.categories,function(s){return[t(R,{key:`divider-${s.name}`}),t(H,{key:`category-${s.name}`,attrs:{"r-cols":3},on:{click:function(n){return e.handleCategoryClick(s)}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(s.name)+" "),t(hr,{staticClass:"mr-4",attrs:{small:""}},[e._v(" "+e._s(s.visible)+" / "+e._s(s.count)+" ")])]},proxy:!0}],null,!0)},[t(M,{attrs:{fab:"",text:"","x-small":"",color:""},on:{click:function(n){return n.stopPropagation(),e.handleEditCategoryDialog(s)}}},[t(S,{attrs:{color:""}},[e._v(" $edit ")])],1),t(M,{attrs:{fab:"",text:"","x-small":"",color:""},on:{click:function(n){return n.stopPropagation(),e.handleRemoveCategory(s)}}},[t(S,{attrs:{color:""}},[e._v(" $close ")])],1)],1)]}),e.uncategorizedMacros.count>0?[t(R),t(H,{key:"category-uncategorized",attrs:{"r-cols":3},on:{click:function(s){return e.handleCategoryClick()}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.$t("app.general.label.uncategorized"))+" "),t(hr,{attrs:{small:""}},[e._v(" "+e._s(e.uncategorizedMacros.visible)+" / "+e._s(e.uncategorizedMacros.count)+" ")])]},proxy:!0}],null,!1,491862901)},[t(S,[e._v("$chevronRight")])],1)]:e._e(),e.categoryDialogState.open?t("macro-category-dialog",{attrs:{title:e.categoryDialogState.title,label:e.categoryDialogState.label,name:e.categoryDialogState.name},on:{save:e.categoryDialogState.handler},model:{value:e.categoryDialogState.open,callback:function(s){e.$set(e.categoryDialogState,"open",s)},expression:"categoryDialogState.open"}}):e._e()],2)],1)},kde=[],Dde=E(B_,Tde,kde,!1,null,null);const Mde=Dde.exports,mr={bus:new b,$emit:(r,e={})=>{const t={open:!0,timeout:-1,...e};r&&(t.text=r),mr.bus.$emit("flashMessage",t)}},Rde=(r,e)=>e!=null&&typeof e=="object"&&"meta"in e&&e.meta!=null&&typeof e.meta=="object"&&"app"in e.meta&&typeof e.meta.app=="string"&&e.meta.app==="Fluidd"&&"type"in e.meta&&typeof e.meta.type=="string"&&e.meta.type===r&&"data"in e,Ide=(r,e)=>({meta:{app:"Fluidd",version:"1.30.4",type:r},data:e});var Fde=Object.defineProperty,Hde=Object.getOwnPropertyDescriptor,qb=(r,e,t,s)=>{for(var n=s>1?void 0:s?Hde(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&&Fde(e,t,n),n};let Eu=class extends Y(J){constructor(){super(...arguments);m(this,"instanceNameElement");m(this,"uploadSettingsFile")}get instanceName(){return this.$store.state.config.uiSettings.general.instanceName}setInstanceName(t){this.instanceNameElement.valid&&this.$store.dispatch("config/updateInstance",t)}get locale(){return this.$store.state.config.uiSettings.general.locale}get supportedLocales(){return[{name:"Browser default",code:"default"},...L5]}setLocale(t){this.$store.dispatch("config/onLocaleChange",t)}get dateFormat(){return this.$store.state.config.uiSettings.general.dateFormat}set dateFormat(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.dateFormat",value:t,server:!0})}get availableDateFormats(){const t=new Date;return Object.entries(T5).map(([s,n])=>({value:s,text:`${t.toLocaleDateString(n.locales??this.$filters.getAllLocales(),n.options)}${n.suffix??""}`}))}get timeFormat(){return this.$store.state.config.uiSettings.general.timeFormat}set timeFormat(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.timeFormat",value:t,server:!0})}get availableTimeFormats(){const t=new Date;return Object.entries(k5).map(([s,n])=>({value:s,text:`${t.toLocaleTimeString(n.locales??this.$filters.getAllLocales(),n.options)}${n.suffix??""}`}))}get enableKeyboardShortcuts(){return this.$store.state.config.uiSettings.general.enableKeyboardShortcuts}set enableKeyboardShortcuts(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.enableKeyboardShortcuts",value:t,server:!0})}get confirmOnEstop(){return this.$store.state.config.uiSettings.general.confirmOnEstop}set confirmOnEstop(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.confirmOnEstop",value:t,server:!0})}get topNavPowerToggle(){return this.$store.state.config.uiSettings.general.topNavPowerToggle}set topNavPowerToggle(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.topNavPowerToggle",value:t,server:!0})}get powerDevicesList(){const t=this.$store.getters["power/getDevices"],s=t.length?[{header:"Moonraker"},...t.map(a=>({text:a.device,value:a.device}))]:[],n=this.$store.getters["printer/getPins"],i=n.length?[{header:"Klipper"},...n.map(a=>({text:a.prettyName,value:`${a.name}:klipper`}))]:[];return[...s,...i]}get confirmOnPowerDeviceChange(){return this.$store.state.config.uiSettings.general.confirmOnPowerDeviceChange}set confirmOnPowerDeviceChange(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.confirmOnPowerDeviceChange",value:t,server:!0})}get showSaveConfigAndRestart(){return this.$store.state.config.uiSettings.general.showSaveConfigAndRestart}set showSaveConfigAndRestart(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showSaveConfigAndRestart",value:t,server:!0})}get showUploadAndPrint(){return this.$store.state.config.uiSettings.general.showUploadAndPrint}set showUploadAndPrint(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showUploadAndPrint",value:t,server:!0})}get confirmOnSaveConfigAndRestart(){return this.$store.state.config.uiSettings.general.confirmOnSaveConfigAndRestart}set confirmOnSaveConfigAndRestart(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.confirmOnSaveConfigAndRestart",value:t,server:!0})}get sectionsToIgnorePendingConfigurationChanges(){return this.$store.state.config.uiSettings.general.sectionsToIgnorePendingConfigurationChanges}set sectionsToIgnorePendingConfigurationChanges(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.sectionsToIgnorePendingConfigurationChanges",value:[...new Set(t)].sort((s,n)=>s.localeCompare(n)),server:!0})}get printInProgressLayout(){return this.$store.state.config.uiSettings.general.printInProgressLayout}set printInProgressLayout(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.printInProgressLayout",value:t,server:!0})}get availablePrintInProgressLayouts(){return[{value:"default",text:this.$t("app.general.label.default")},{value:"compact",text:this.$t("app.general.label.compact")}]}get availablePrintProgressCalculation(){return[{value:"file",text:this.$t("app.setting.timer_options.relative_file_position")},{value:"fileAbsolute",text:this.$t("app.setting.timer_options.absolute_file_position")},{value:"slicer",text:this.$t("app.setting.timer_options.slicer_m73")},{value:"filament",text:this.$t("app.setting.timer_options.filament")}]}get printProgressCalculation(){return this.$store.state.config.uiSettings.general.printProgressCalculation}set printProgressCalculation(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.printProgressCalculation",value:t,server:!0})}get availablePrintEtaCalculation(){return[{value:"file",text:this.$t("app.setting.timer_options.file")},{value:"slicer",text:this.$t("app.setting.timer_options.slicer")}]}get printEtaCalculation(){return this.$store.state.config.uiSettings.general.printEtaCalculation}set printEtaCalculation(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.printEtaCalculation",value:t,server:!0})}get enableDiagnostics(){return this.$store.state.config.uiSettings.general.enableDiagnostics}set enableDiagnostics(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.enableDiagnostics",value:t,server:!0})}async handleBackupSettings(){var t,s;try{const i=(s=(t=(await tt.serverDatabaseItemGet("fluidd")).data)==null?void 0:t.result)==null?void 0:s.value;if(i){const a=Ide("settings-backup",i),o=JSON.stringify(a),l=document.createElement("a");l.href=`data:text/plain;charset=utf-8,${encodeURIComponent(o)}`,l.download=`backup-fluidd-v1.30.4-${this.instanceName}.json`,l.target="_blank",document.body.appendChild(l),l.click(),document.body.removeChild(l)}}catch(n){ye.error("[Settings] backup failed",n),mr.$emit(this.$t("app.general.msg.fluidd_settings_backup_failed").toString(),{type:"error"})}}async handleRestoreSettings(){var t,s;try{if(((s=(t=this.uploadSettingsFile)==null?void 0:t.files)==null?void 0:s.length)===1){const n=await KZ(this.uploadSettingsFile.files[0]);if(n){const i=JSON.parse(n);if(!Rde("settings-backup",i)){mr.$emit(this.$t("app.general.msg.not_valid_fluidd_backup_file").toString(),{type:"error"});return}for(const a in i.data)await tt.serverDatabaseItemPost("fluidd",a,i.data[a]);window.location.reload()}}}catch(n){ye.error("[Settings] restore failed",n),mr.$emit(this.$t("app.general.msg.fluidd_settings_restore_failed").toString(),{type:"error"})}finally{this.uploadSettingsFile.value=""}}};qb([Te("instanceName")],Eu.prototype,"instanceNameElement",2);qb([Te("uploadSettingsFile")],Eu.prototype,"uploadSettingsFile",2);Eu=qb([A({components:{}})],Eu);var jde=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"general"}},[e._v(" "+e._s(e.$t("app.setting.title.general"))+" ")]),t(He,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(H,{attrs:{title:e.$t("app.setting.label.printer_name")}},[t(ae,{ref:"instanceName",attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",rules:[e.$rules.required],value:e.instanceName,"default-value":e.$globals.APP_NAME},on:{change:e.setInstanceName}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.language")}},[t(Re,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.supportedLocales,value:e.locale,"item-text":"name","item-value":"code"},on:{change:e.setLocale}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.date_format")}},[t(Re,{attrs:{filled:"",dense:"","hide-details":"auto",items:e.availableDateFormats},model:{value:e.dateFormat,callback:function(s){e.dateFormat=s},expression:"dateFormat"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.time_format")}},[t(Re,{attrs:{filled:"",dense:"","hide-details":"auto",items:e.availableTimeFormats},model:{value:e.timeFormat,callback:function(s){e.timeFormat=s},expression:"timeFormat"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.keyboard_shortcuts"),"sub-title":e.$t("app.setting.tooltip.keyboard_shortcuts")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.enableKeyboardShortcuts,callback:function(s){e.enableKeyboardShortcuts=s},expression:"enableKeyboardShortcuts"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.confirm_on_estop")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.confirmOnEstop,callback:function(s){e.confirmOnEstop=s},expression:"confirmOnEstop"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.show_upload_and_print")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.showUploadAndPrint,callback:function(s){e.showUploadAndPrint=s},expression:"showUploadAndPrint"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.power_toggle_in_top_nav")}},[t(Re,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:[{text:e.$tc("app.setting.label.none"),value:null},...e.powerDevicesList]},model:{value:e.topNavPowerToggle,callback:function(s){e.topNavPowerToggle=s},expression:"topNavPowerToggle"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.confirm_on_power_device_change")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.confirmOnPowerDeviceChange,callback:function(s){e.confirmOnPowerDeviceChange=s},expression:"confirmOnPowerDeviceChange"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.show_save_config_and_restart")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.showSaveConfigAndRestart,callback:function(s){e.showSaveConfigAndRestart=s},expression:"showSaveConfigAndRestart"}})],1),e.showSaveConfigAndRestart?[t(R),t(H,{attrs:{title:e.$t("app.setting.label.confirm_on_save_config_and_restart")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.confirmOnSaveConfigAndRestart,callback:function(s){e.confirmOnSaveConfigAndRestart=s},expression:"confirmOnSaveConfigAndRestart"}})],1)]:e._e(),e.showSaveConfigAndRestart&&e.confirmOnSaveConfigAndRestart?[t(R),t(H,{attrs:{title:e.$t("app.setting.label.sections_to_ignore_pending_configuration_changes")}},[t(ln,{attrs:{items:["bed_mesh default","bed_tilt"],filled:"",dense:"","hide-selected":"","hide-details":"auto",multiple:"","small-chips":"","append-icon":"","deletable-chips":""},model:{value:e.sectionsToIgnorePendingConfigurationChanges,callback:function(s){e.sectionsToIgnorePendingConfigurationChanges=s},expression:"sectionsToIgnorePendingConfigurationChanges"}})],1)]:e._e(),t(R),t(H,{attrs:{title:e.$t("app.setting.label.print_in_progress_layout")}},[t(Re,{attrs:{filled:"",dense:"","hide-details":"auto",items:e.availablePrintInProgressLayouts},model:{value:e.printInProgressLayout,callback:function(s){e.printInProgressLayout=s},expression:"printInProgressLayout"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.print_progress_calculation"),"sub-title":e.$t("app.setting.tooltip.average_calculation")}},[t(Re,{attrs:{multiple:"",filled:"",dense:"","hide-details":"auto",rules:[e.$rules.lengthGreaterThanOrEqual(1)],items:e.availablePrintProgressCalculation},model:{value:e.printProgressCalculation,callback:function(s){e.printProgressCalculation=s},expression:"printProgressCalculation"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.print_eta_calculation"),"sub-title":e.$t("app.setting.tooltip.average_calculation")}},[t(Re,{attrs:{multiple:"",filled:"",dense:"","hide-details":"auto",rules:[e.$rules.lengthGreaterThanOrEqual(1)],items:e.availablePrintEtaCalculation},model:{value:e.printEtaCalculation,callback:function(s){e.printEtaCalculation=s},expression:"printEtaCalculation"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.enable_diagnostics"),"sub-title":e.$t("app.setting.tooltip.diagnostics_performance")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.enableDiagnostics,callback:function(s){e.enableDiagnostics=s},expression:"enableDiagnostics"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.fluidd_settings_in_moonraker_db")}},[t(M,{staticClass:"mr-2",attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleBackupSettings}},[e._v(" "+e._s(e.$t("app.setting.btn.backup"))+" ")]),t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:function(s){return e.uploadSettingsFile.click()}}},[e._v(" "+e._s(e.$t("app.setting.btn.restore"))+" ")])],1)],2),t("input",{ref:"uploadSettingsFile",staticStyle:{display:"none"},attrs:{type:"file",accept:".json"},on:{change:e.handleRestoreSettings}})],1)},Bde=[],Nde=E(Eu,jde,Bde,!1,null,null);const Vde=Nde.exports;var zde=Object.defineProperty,Ude=Object.getOwnPropertyDescriptor,Zb=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ude(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&&zde(e,t,n),n};let Ou=class extends b{constructor(){super(...arguments);m(this,"open");m(this,"preset")}get heaters(){return this.$store.getters["printer/getHeaters"]}get fans(){return this.$store.getters["printer/getOutputs"](["temperature_fan"])}handleSave(){this.$emit("save",this.preset),this.open=!1}};Zb([Fe({type:Boolean})],Ou.prototype,"open",2);Zb([w({type:Object,required:!0})],Ou.prototype,"preset",2);Ou=Zb([A({})],Ou);var Wde=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.preset.id!=-1?e.$t("app.general.label.edit_preset"):e.$t("app.general.label.add_preset"),"max-width":"500","save-button-text":e.preset.id!==-1?e.$t("app.general.btn.save"):e.$t("app.general.btn.add")},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,{staticClass:"pa-0"},[t(H,{attrs:{title:e.$t("app.setting.label.thermal_preset_name")}},[t(ae,{attrs:{rules:[e.$rules.required],"hide-details":"auto",filled:"",dense:""},model:{value:e.preset.name,callback:function(s){e.$set(e.preset,"name",s)},expression:"preset.name"}})],1),t(R),e._l(e.heaters,function(s,n){return[t(H,{key:`${n}heater`,attrs:{title:e.$filters.prettyCase(s.name)}},[t(ir,{attrs:{"hide-details":""},model:{value:e.preset.values[s.name].active,callback:function(i){e.$set(e.preset.values[s.name],"active",i)},expression:"preset.values[item.name].active"}}),t(ae,{attrs:{disabled:!e.preset.values[s.name].active,rules:e.preset.values[s.name].active?[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThan(0)]:void 0,"hide-details":"auto",type:"number",suffix:"°C",filled:"",dense:""},model:{value:e.preset.values[s.name].value,callback:function(i){e.$set(e.preset.values[s.name],"value",e._n(i))},expression:"preset.values[item.name].value"}})],1),t(R,{key:n+"heaterd"})]}),e._l(e.fans,function(s,n){return[t(H,{key:`${n}fan`,attrs:{title:e.$filters.prettyCase(s.name)}},[t(ir,{attrs:{"hide-details":""},model:{value:e.preset.values[s.name].active,callback:function(i){e.$set(e.preset.values[s.name],"active",i)},expression:"preset.values[item.name].active"}}),t(ae,{attrs:{disabled:!e.preset.values[s.name].active,rules:e.preset.values[s.name].active?[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThan(0)]:void 0,"hide-details":"auto",type:"number",suffix:"°C",filled:"",dense:""},model:{value:e.preset.values[s.name].value,callback:function(i){e.$set(e.preset.values[s.name],"value",e._n(i))},expression:"preset.values[item.name].value"}})],1),t(R,{key:n+"fand"})]}),t(H,{attrs:{title:e.$t("app.setting.label.thermal_preset_gcode")}},[t(Lm,{staticClass:"console-command",attrs:{rows:"2","hide-details":"auto",filled:"",spellcheck:"false"},model:{value:e.preset.gcode,callback:function(s){e.$set(e.preset,"gcode",s)},expression:"preset.gcode"}})],1)],2)],1)},Gde=[],qde=E(Ou,Wde,Gde,!1,null,"11c2baca");const Zde=qde.exports;var Yde=Object.defineProperty,Kde=Object.getOwnPropertyDescriptor,Xde=(r,e,t,s)=>{for(var n=s>1?void 0:s?Kde(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&&Yde(e,t,n),n};let N_=class extends Y(J){constructor(){super(...arguments);m(this,"dialogState",{active:!1,preset:null})}get heaters(){return this.$store.getters["printer/getHeaters"]}get fans(){return this.$store.getters["printer/getOutputs"](["temperature_fan"])}get presets(){return this.$store.getters["config/getTempPresets"]}openEditDialog(e){this.dialogState={active:!0,preset:e}}openAddDialog(){const e={id:-1,name:"",values:{}};for(const t of this.heaters)e.values[t.name]={value:0,type:"heater",active:!0};for(const t of this.fans)e.values[t.name]={value:0,type:"fan",active:!0};this.dialogState={active:!0,preset:e}}handleSavePreset(e){this.$store.dispatch("config/updatePreset",e)}handleRemovePreset(e){this.$store.dispatch("config/removePreset",e)}};N_=Xde([A({components:{PresetDialog:Zde}})],N_);var Jde=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"presets"}},[e._v(" "+e._s(e.$t("app.setting.title.thermal_presets"))+" ")]),t(He,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(H,[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.openAddDialog}},[t(S,{attrs:{small:"",left:""}},[e._v(" $plus ")]),e._v(" "+e._s(e.$t("app.setting.btn.add_thermal_preset"))+" ")],1)],1),e.presets.length>0?t(R):e._e(),e._l(e.presets,function(s,n){return[t(H,{key:s.index,attrs:{title:s.name,"r-cols":2},on:{click:function(i){return e.openEditDialog(s)}},scopedSlots:e._u([{key:"sub-title",fn:function(){return e._l(s.values,function(i,a){return t("span",{directives:[{name:"show",rawName:"v-show",value:i.active,expression:"value.active"}],key:a,staticClass:"mr-2"},[e._v(" "+e._s(a)+": "+e._s(i.value)),t("small",[e._v("°C")])])})},proxy:!0}],null,!0)},[t(M,{attrs:{fab:"",text:"","x-small":"",color:""},on:{click:function(i){return i.stopPropagation(),e.handleRemovePreset(s)}}},[t(S,{attrs:{color:""}},[e._v(" $close ")])],1)],1),n<e.presets.length-1&&e.presets.length>0?t(R,{key:s.id}):e._e()]}),e.dialogState.active?t("preset-dialog",{attrs:{preset:e.dialogState.preset},on:{save:e.handleSavePreset},model:{value:e.dialogState.active,callback:function(s){e.$set(e.dialogState,"active",s)},expression:"dialogState.active"}}):e._e()],2)],1)},Qde=[],epe=E(N_,Jde,Qde,!1,null,"3b74642a");const tpe=epe.exports;var rpe=Object.defineProperty,spe=Object.getOwnPropertyDescriptor,Yb=(r,e,t,s)=>{for(var n=s>1?void 0:s?spe(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&&rpe(e,t,n),n};let Tu=class extends b{constructor(){super(...arguments);m(this,"open");m(this,"camera")}handleSave(){this.$emit("save",this.camera),this.open=!1}};Yb([Fe({type:Boolean})],Tu.prototype,"open",2);Yb([w({type:Object,required:!0})],Tu.prototype,"camera",2);Tu=Yb([A({})],Tu);var npe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.camera.uid?e.$t("app.general.label.edit_camera"):e.$t("app.general.label.add_camera"),"save-button-text":e.camera.uid?e.$t("app.general.btn.save"):e.$t("app.general.btn.add"),"max-width":"600",disabled:e.camera.source==="config","no-actions":e.camera.source==="config"},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,{staticClass:"pa-0"},[t(H,{attrs:{title:e.$t("app.setting.label.enable")}},[t(Ce,{staticClass:"mt-0",attrs:{"hide-details":"auto"},model:{value:e.camera.enabled,callback:function(s){e.$set(e.camera,"enabled",s)},expression:"camera.enabled"}})],1),t(R),t(H,{attrs:{title:e.$t("app.general.label.name")}},[t(ae,{staticClass:"mt-0",attrs:{filled:"",dense:"","hide-details":"auto",rules:[e.$rules.required]},model:{value:e.camera.name,callback:function(s){e.$set(e.camera,"name",s)},expression:"camera.name"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.camera_flip_x")}},[t(Ce,{attrs:{"hide-details":""},model:{value:e.camera.flip_horizontal,callback:function(s){e.$set(e.camera,"flip_horizontal",s)},expression:"camera.flip_horizontal"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.camera_flip_y")}},[t(Ce,{staticClass:"mb-4",attrs:{"hide-details":""},model:{value:e.camera.flip_vertical,callback:function(s){e.$set(e.camera,"flip_vertical",s)},expression:"camera.flip_vertical"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.camera_rotate_by")}},[t(Re,{attrs:{filled:"",dense:"","hide-details":"auto","initial-value":"false",items:[{text:e.$t("app.setting.camera_rotate_options.none"),value:0},{text:e.$t("app.setting.camera_rotate_options.90"),value:90},{text:e.$t("app.setting.camera_rotate_options.180"),value:180},{text:e.$t("app.setting.camera_rotate_options.270"),value:270}],"item-value":"value","item-text":"text"},model:{value:e.camera.rotation,callback:function(s){e.$set(e.camera,"rotation",e._n(s))},expression:"camera.rotation"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.camera_stream_type")}},[t(Re,{attrs:{filled:"",dense:"","hide-details":"auto",items:[{text:e.$t("app.setting.camera_type_options.mjpegadaptive"),value:"mjpegstreamer-adaptive"},{text:e.$t("app.setting.camera_type_options.mjpegstream"),value:"mjpegstreamer"},{text:e.$t("app.setting.camera_type_options.hlsstream"),value:"hlsstream"},{text:e.$t("app.setting.camera_type_options.webrtc_camera_streamer"),value:"webrtc-camerastreamer"},{text:e.$t("app.setting.camera_type_options.webrtc_go2rtc"),value:"webrtc-go2rtc"},{text:e.$t("app.setting.camera_type_options.webrtc_mediamtx"),value:"webrtc-mediamtx"},{text:e.$t("app.setting.camera_type_options.video"),value:"ipstream"},{text:e.$t("app.setting.camera_type_options.iframe"),value:"iframe"}],"item-value":"value","item-text":"text"},model:{value:e.camera.service,callback:function(s){e.$set(e.camera,"service",s)},expression:"camera.service"}})],1),t(R),e.camera.service==="mjpegstreamer-adaptive"?[t(H,{attrs:{title:e.$t("app.setting.label.fps_target")}},[t(ae,{staticClass:"mt-5",attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",rules:[e.$rules.required]},model:{value:e.camera.target_fps,callback:function(s){e.$set(e.camera,"target_fps",e._n(s))},expression:"camera.target_fps"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.fps_idle_target")}},[t(ae,{staticClass:"mt-5",attrs:{filled:"",dense:"","single-line":"","hide-details":"auto"},model:{value:e.camera.target_fps_idle,callback:function(s){e.$set(e.camera,"target_fps_idle",e._n(s))},expression:"camera.target_fps_idle"}})],1),t(R)]:e._e(),t(H,{attrs:{title:e.$t("app.setting.label.camera_url_stream")}},[t(ae,{staticClass:"mt-5",attrs:{type:"url",spellcheck:"false",filled:"",dense:"","single-line":"","hide-details":"auto",rules:[e.$rules.required]},model:{value:e.camera.stream_url,callback:function(s){e.$set(e.camera,"stream_url",s)},expression:"camera.stream_url"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.camera_url_snapshot")}},[t(ae,{staticClass:"mt-5",attrs:{type:"url",spellcheck:"false",filled:"",dense:"","single-line":"","hide-details":"auto",rules:[e.$rules.required]},model:{value:e.camera.snapshot_url,callback:function(s){e.$set(e.camera,"snapshot_url",s)},expression:"camera.snapshot_url"}})],1),e.camera.service==="iframe"?[t(R),t(H,{attrs:{title:e.$t("app.setting.label.aspect_ratio"),"sub-title":e.$t("app.setting.label.aspect_ratio_format")}},[t(ae,{staticClass:"mt-5",attrs:{spellcheck:"false",filled:"",dense:"","single-line":"","hide-details":"auto",rules:[e.$rules.required,e.$rules.aspectRatioValid]},model:{value:e.camera.aspect_ratio,callback:function(s){e.$set(e.camera,"aspect_ratio",s)},expression:"camera.aspect_ratio"}})],1)]:e._e()],2)],1)},ipe=[],ape=E(Tu,npe,ipe,!1,null,null);const ope=ape.exports;var lpe=Object.defineProperty,cpe=Object.getOwnPropertyDescriptor,upe=(r,e,t,s)=>{for(var n=s>1?void 0:s?cpe(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&&lpe(e,t,n),n};let V_=class extends b{constructor(){super(...arguments);m(this,"dialogState",{active:!1,camera:null})}get cameras(){return this.$store.getters["webcams/getWebcams"]}handleEditDialog(t){this.dialogState={active:!0,camera:{...t}}}handleAddDialog(){const t={enabled:!0,flip_horizontal:!1,flip_vertical:!1,name:"",rotation:0,service:"mjpegstreamer-adaptive",target_fps:15,target_fps_idle:5,stream_url:he.DEFAULTS.CAMERA_URL_STREAM,snapshot_url:he.DEFAULTS.CAMERA_URL_SNAPSHOT};this.dialogState={active:!0,camera:t}}handleSaveCamera(t){this.$store.dispatch("webcams/updateWebcam",t)}handleRemoveCamera(t){this.$store.dispatch("webcams/removeWebcam",t.uid)}get defaultFullscreenAction(){return this.$store.state.config.uiSettings.general.cameraFullscreenAction}set defaultFullscreenAction(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.cameraFullscreenAction",value:t,server:!0})}};V_=upe([A({components:{CameraConfigDialog:ope}})],V_);var dpe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"camera"}},[e._v(" "+e._s(e.$tc("app.setting.title.camera",2))+" ")]),t(He,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(H,[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleAddDialog}},[t(S,{attrs:{small:"",left:""}},[e._v(" $plus ")]),e._v(" "+e._s(e.$t("app.setting.btn.add_camera"))+" ")],1)],1),e._l(e.cameras,function(s){return[t(R,{key:`divider-${s.uid}`}),t(H,{key:`camera-${s.uid}`,attrs:{"r-cols":2,"sub-title":s.source==="config"?e.$t("app.general.tooltip.managed_by_moonraker"):void 0},on:{click:function(n){return e.handleEditDialog(s)}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(s.name)+" "),s.enabled?e._e():t(S,{attrs:{right:"",small:"",color:"warning"}},[e._v(" $warning ")])]},proxy:!0}],null,!0)},[s.source!=="config"?t(M,{attrs:{fab:"",text:"","x-small":"",color:""},on:{click:function(n){return n.stopPropagation(),e.handleRemoveCamera(s)}}},[t(S,{attrs:{color:""}},[e._v(" $close ")])],1):e._e()],1)]}),t(R),t(H,{attrs:{title:e.$t("app.setting.label.camera_fullscreen_action.title")}},[t(Re,{attrs:{filled:"",dense:"","hide-details":"",items:[{text:e.$t("app.setting.label.camera_fullscreen_action.embed"),value:"embed"},{text:e.$t("app.setting.label.camera_fullscreen_action.rawstream"),value:"rawstream"}]},model:{value:e.defaultFullscreenAction,callback:function(s){e.defaultFullscreenAction=s},expression:"defaultFullscreenAction"}})],1),e.dialogState.active?t("camera-config-dialog",{attrs:{camera:e.dialogState.camera},on:{save:e.handleSaveCamera},model:{value:e.dialogState.active,callback:function(s){e.$set(e.dialogState,"active",s)},expression:"dialogState.active"}}):e._e()],2)],1)},ppe=[],hpe=E(V_,dpe,ppe,!1,null,null);const fpe=hpe.exports,Hl=()=>({apiUrl:"",socketUrl:"",layoutMode:!1,containerColumnCount:2,hostConfig:{endpoints:[],blacklist:[],hosted:!1,themePresets:[]},instances:[],uiSettings:{general:{instanceName:he.APP_NAME,locale:"en",chartVisible:!0,hideTempWaits:!0,axis:{x:{inverted:!1},y:{inverted:!1},z:{inverted:!1}},defaultExtrudeLength:10,defaultExtrudeSpeed:5,defaultToolheadMoveLength:1,defaultToolheadXYSpeed:130,defaultToolheadZSpeed:10,toolheadControlStyle:"cross",toolheadMoveDistances:[.1,1,10,25,50,100],toolheadXYMoveDistances:[1,10,50],toolheadZMoveDistances:[.1,1,10],toolheadCircleXYMoveDistances:[1,10,25,50],toolheadCircleZMoveDistances:[.1,1,10,50],toolheadCircleXYHomingEnabled:!1,useGcodeCoords:!1,zAdjustDistances:[.005,.01,.025,.05],enableVersionNotifications:!0,confirmOnEstop:!0,confirmOnPowerDeviceChange:!1,confirmOnSaveConfigAndRestart:!0,sectionsToIgnorePendingConfigurationChanges:[],dateFormat:"iso",timeFormat:"iso",enableKeyboardShortcuts:!0,textSortOrder:"default",showRateOfChange:!1,showRelativeHumidity:!0,showBarometricPressure:!0,showGasResistance:!0,showSaveConfigAndRestart:!0,showUploadAndPrint:!0,flipConsoleLayout:!1,cameraFullscreenAction:"embed",topNavPowerToggle:null,showManualProbeDialogAutomatically:!0,showBedScrewsAdjustDialogAutomatically:!0,showScrewsTiltAdjustDialogAutomatically:!0,forceMoveToggleWarning:!0,printInProgressLayout:"default",printProgressCalculation:["file"],printEtaCalculation:["file"],enableDiagnostics:!1,thumbnailSize:32,colorPickerValueRange:"absolute"},theme:{isDark:!0,logo:{src:"logo_qidi.svg"},color:"#5B7AEA",backgroundLogo:!0},editor:{confirmDirtyEditorClose:!0,autoEditExtensions:[".cfg",".conf",".ini",".log",".sh",".txt"],restoreViewState:"session",codeLens:!0},dashboard:{tempPresets:[]},tableHeaders:{gcodes_dashboard:[{value:"first_layer_extr_temp",visible:!1},{value:"first_layer_bed_temp",visible:!1},{value:"chamber_temp",visible:!1},{value:"history.total_duration",visible:!1},{value:"history.print_duration",visible:!1},{value:"estimated_time",visible:!1},{value:"nozzle_diameter",visible:!1},{value:"slicer_version",visible:!1},{value:"slicer",visible:!1},{value:"history.filament_used",visible:!1},{value:"filament_name",visible:!1},{value:"filament_type",visible:!1},{value:"filament_total",visible:!1},{value:"filament_weight_total",visible:!1},{value:"object_height",visible:!1},{value:"first_layer_height",visible:!1},{value:"layer_height",visible:!1}],gcodes_jobs:[{value:"first_layer_height",visible:!1},{value:"history.filament_used",visible:!1},{value:"slicer_version",visible:!1},{value:"history.print_duration",visible:!1},{value:"chamber_temp",visible:!1},{value:"first_layer_extr_temp",visible:!1},{value:"first_layer_bed_temp",visible:!1}],history:[{value:"print_duration",visible:!1},{value:"filament_used",visible:!1}],job_queue:[{value:"time_added",visible:!0},{value:"time_in_queue",visible:!1}],spoolman:[]},gcodePreview:{extrusionLineWidth:.3,moveLineWidth:.1,retractionIconSize:.6,drawOrigin:!0,drawBackground:!0,showAnimations:!0,minLayerHeight:.1,autoLoadOnPrintStart:!1,autoLoadMobileOnPrintStart:!1,autoFollowOnFileLoad:!0,hideSinglePartBoundingBox:!1,autoZoom:!1,flip:{horizontal:!1,vertical:!0}},fileSystem:{activeFilters:{},sortBy:{},sortDesc:{}},toolhead:{forceMove:!1,extrudeSpeed:-1,extrudeLength:-1},spoolman:{autoSpoolSelectionDialog:!0,autoOpenQRDetectionCamera:null,autoSelectSpoolOnMatch:!1,preferDeviceCamera:!1,warnOnNotEnoughFilament:!0,warnOnFilamentTypeMismatch:!0,selectionDialogSortOrder:{key:"last_used",desc:!1},remainingFilamentUnit:"weight"}}}),mpe=Hl();var gpe=Object.defineProperty,vpe=Object.getOwnPropertyDescriptor,no=(r,e,t,s)=>{for(var n=s>1?void 0:s?vpe(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&&gpe(e,t,n),n};let Gn=class extends Y(zt){constructor(){super(...arguments);m(this,"toolheadMoveDistancesElement");m(this,"toolheadXYMoveDistancesElement");m(this,"toolheadZMoveDistancesElement");m(this,"toolheadCircleXYMoveDistancesElement");m(this,"toolheadCircleZMoveDistancesElement");m(this,"zAdjustValuesElement")}get defaultExtrudeSpeed(){return this.$store.state.config.uiSettings.general.defaultExtrudeSpeed}setDefaultExtrudeSpeed(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.defaultExtrudeSpeed",value:+e,server:!0})}get defaultExtrudeLength(){return this.$store.state.config.uiSettings.general.defaultExtrudeLength}setDefaultExtrudeLength(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.defaultExtrudeLength",value:+e,server:!0})}get defaultToolheadMoveLength(){return this.$store.state.config.uiSettings.general.defaultToolheadMoveLength}setDefaultToolheadMoveLength(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.defaultToolheadMoveLength",value:+e,server:!0})}get defaultToolheadXYSpeed(){return this.$store.state.config.uiSettings.general.defaultToolheadXYSpeed}setDefaultToolheadYXSpeed(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.defaultToolheadXYSpeed",value:+e,server:!0})}get defaultToolheadZSpeed(){return this.$store.state.config.uiSettings.general.defaultToolheadZSpeed}setDefaultToolheadZSpeed(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.defaultToolheadZSpeed",value:+e,server:!0})}get zAdjustValues(){return this.$store.state.config.uiSettings.general.zAdjustDistances}set zAdjustValues(e){this.zAdjustValuesElement.validate(!0)&&this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.zAdjustDistances",value:[...new Set(e.map(Number))].sort((t,s)=>t-s),server:!0})}get toolheadCircleXYHomingEnabled(){return this.$store.state.config.uiSettings.general.toolheadCircleXYHomingEnabled}set toolheadCircleXYHomingEnabled(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.toolheadCircleXYHomingEnabled",value:e,server:!0})}get toolheadControlStyle(){return this.$store.state.config.uiSettings.general.toolheadControlStyle}set toolheadControlStyle(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.toolheadControlStyle",value:e,server:!0})}get availableToolheadControlStyles(){return[{value:"cross",text:this.$t("app.general.label.cross")},{value:"bars",text:this.$t("app.general.label.bars")},{value:"circle",text:this.$t("app.general.label.circle")}]}get toolheadMoveDistances(){return this.$store.state.config.uiSettings.general.toolheadMoveDistances}set toolheadMoveDistances(e){if(!this.toolheadMoveDistancesElement.validate(!0))return;const t=[...new Set(e.map(Number))].sort((s,n)=>s-n);this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.toolheadMoveDistances",value:t,server:!0}),t.includes(this.defaultToolheadMoveLength)===!1&&this.setDefaultToolheadMoveLength(t[0])}get toolheadXYMoveDistances(){return this.$store.state.config.uiSettings.general.toolheadXYMoveDistances}set toolheadXYMoveDistances(e){this.toolheadXYMoveDistancesElement.validate(!0)&&this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.toolheadXYMoveDistances",value:[...new Set(e.map(Number))].sort((t,s)=>t-s),server:!0})}get toolheadCircleXYMoveDistances(){return this.$store.state.config.uiSettings.general.toolheadCircleXYMoveDistances}set toolheadCircleXYMoveDistances(e){this.toolheadCircleXYMoveDistancesElement.validate(!0)&&this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.toolheadCircleXYMoveDistances",value:[...new Set(e.map(Number))].sort((t,s)=>t-s),server:!0})}get toolheadZMoveDistances(){return this.$store.state.config.uiSettings.general.toolheadZMoveDistances}set toolheadZMoveDistances(e){this.toolheadZMoveDistancesElement.validate(!0)&&this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.toolheadZMoveDistances",value:[...new Set(e.map(Number))].sort((t,s)=>t-s),server:!0})}get toolheadCircleZMoveDistances(){return this.$store.state.config.uiSettings.general.toolheadCircleZMoveDistances}set toolheadCircleZMoveDistances(e){this.toolheadCircleZMoveDistancesElement.validate(!0)&&this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.toolheadCircleZMoveDistances",value:[...new Set(e.map(Number))].sort((t,s)=>t-s),server:!0})}get useGcodeCoords(){return this.$store.state.config.uiSettings.general.useGcodeCoords}set useGcodeCoords(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.useGcodeCoords",value:e,server:!0})}get invertX(){return this.$store.state.config.uiSettings.general.axis.x.inverted}set invertX(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.axis.x.inverted",value:e,server:!0})}get invertY(){return this.$store.state.config.uiSettings.general.axis.y.inverted}set invertY(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.axis.y.inverted",value:e,server:!0})}get invertZ(){return this.$store.state.config.uiSettings.general.axis.z.inverted}set invertZ(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.axis.z.inverted",value:e,server:!0})}get printerSupportsForceMove(){return this.$store.getters["printer/getPrinterSettings"]("force_move.enable_force_move")??!1}get showManualProbeDialogAutomatically(){return this.$store.state.config.uiSettings.general.showManualProbeDialogAutomatically}set showManualProbeDialogAutomatically(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showManualProbeDialogAutomatically",value:e,server:!0})}get showBedScrewsAdjustDialogAutomatically(){return this.$store.state.config.uiSettings.general.showBedScrewsAdjustDialogAutomatically}set showBedScrewsAdjustDialogAutomatically(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showBedScrewsAdjustDialogAutomatically",value:e,server:!0})}get showScrewsTiltAdjustDialogAutomatically(){return this.$store.state.config.uiSettings.general.showScrewsTiltAdjustDialogAutomatically}set showScrewsTiltAdjustDialogAutomatically(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showScrewsTiltAdjustDialogAutomatically",value:e,server:!0})}get forceMoveToggleWarning(){return this.$store.state.config.uiSettings.general.forceMoveToggleWarning}set forceMoveToggleWarning(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.forceMoveToggleWarning",value:e,server:!0})}handleReset(){let e=Hl().uiSettings.general;const t=this.$store.state.config.uiSettings.general;e={...e,instanceName:t.instanceName,chartVisible:t.chartVisible,hideTempWaits:t.hideTempWaits},this.$store.dispatch("config/saveByPath",{path:"uiSettings.general",value:e,server:!0})}};no([Te("toolheadMoveDistances")],Gn.prototype,"toolheadMoveDistancesElement",2);no([Te("toolheadXYMoveDistances")],Gn.prototype,"toolheadXYMoveDistancesElement",2);no([Te("toolheadZMoveDistances")],Gn.prototype,"toolheadZMoveDistancesElement",2);no([Te("toolheadCircleXYMoveDistances")],Gn.prototype,"toolheadCircleXYMoveDistancesElement",2);no([Te("toolheadCircleZMoveDistances")],Gn.prototype,"toolheadCircleZMoveDistancesElement",2);no([Te("zAdjustValues")],Gn.prototype,"zAdjustValuesElement",2);Gn=no([A({components:{}})],Gn);var _pe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"toolhead"}},[e._v(" "+e._s(e.$t("app.setting.title.tool"))+" ")]),t(He,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(H,{attrs:{title:e.$t("app.setting.label.gcode_coords"),"sub-title":e.$t("app.setting.tooltip.gcode_coords"),"r-cols":2}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.useGcodeCoords,callback:function(s){e.useGcodeCoords=s},expression:"useGcodeCoords"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.toolhead_control_style")}},[t(Re,{attrs:{filled:"",dense:"","hide-details":"auto",items:e.availableToolheadControlStyles},model:{value:e.toolheadControlStyle,callback:function(s){e.toolheadControlStyle=s},expression:"toolheadControlStyle"}})],1),t(R),e.toolheadControlStyle==="cross"||e.toolheadControlStyle==="circle"?[t(H,{attrs:{title:e.$t("app.setting.label.invert_x_control")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.invertX,callback:function(s){e.invertX=s},expression:"invertX"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.invert_y_control")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.invertY,callback:function(s){e.invertY=s},expression:"invertY"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.invert_z_control")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.invertZ,callback:function(s){e.invertZ=s},expression:"invertZ"}})],1),t(R)]:e._e(),e.toolheadControlStyle==="cross"?[t(H,{attrs:{title:e.$t("app.setting.label.toolhead_move_distances")}},[t(ln,{ref:"toolheadMoveDistances",attrs:{filled:"",dense:"","hide-selected":"","hide-details":"auto",suffix:"mm",multiple:"","small-chips":"","append-icon":"","deletable-chips":"",rules:[e.$rules.lengthGreaterThanOrEqual(1),e.$rules.lengthLessThanOrEqual(6),e.$rules.numberArrayValid]},model:{value:e.toolheadMoveDistances,callback:function(s){e.toolheadMoveDistances=s},expression:"toolheadMoveDistances"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.default_toolhead_move_length")}},[t(Re,{attrs:{value:e.defaultToolheadMoveLength,items:e.toolheadMoveDistances,rules:[e.$rules.required,e.$rules.numberValid],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm"},on:{change:e.setDefaultToolheadMoveLength}})],1),t(R)]:e.toolheadControlStyle==="bars"?[t(H,{attrs:{title:e.$t("app.setting.label.toolhead_xy_move_distances")}},[t(ln,{ref:"toolheadXYMoveDistances",attrs:{filled:"",dense:"","hide-selected":"","hide-details":"auto",suffix:"mm",multiple:"","small-chips":"","append-icon":"","deletable-chips":"",rules:[e.$rules.lengthGreaterThanOrEqual(1),e.$rules.lengthLessThanOrEqual(3),e.$rules.numberArrayValid]},model:{value:e.toolheadXYMoveDistances,callback:function(s){e.toolheadXYMoveDistances=s},expression:"toolheadXYMoveDistances"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.toolhead_z_move_distances")}},[t(ln,{ref:"toolheadZMoveDistances",attrs:{filled:"",dense:"","hide-selected":"","hide-details":"auto",suffix:"mm",multiple:"","small-chips":"","append-icon":"","deletable-chips":"",rules:[e.$rules.lengthGreaterThanOrEqual(1),e.$rules.lengthLessThanOrEqual(3),e.$rules.numberArrayValid]},model:{value:e.toolheadZMoveDistances,callback:function(s){e.toolheadZMoveDistances=s},expression:"toolheadZMoveDistances"}})],1),t(R)]:e.toolheadControlStyle==="circle"?[t(H,{attrs:{title:e.$t("app.setting.label.toolhead_xy_move_distances")}},[t(ln,{ref:"toolheadCircleXYMoveDistances",attrs:{filled:"",dense:"","hide-selected":"","hide-details":"auto",suffix:"mm",multiple:"","small-chips":"","append-icon":"","deletable-chips":"",rules:[e.$rules.lengthGreaterThanOrEqual(4),e.$rules.lengthLessThanOrEqual(4),e.$rules.numberArrayValid]},model:{value:e.toolheadCircleXYMoveDistances,callback:function(s){e.toolheadCircleXYMoveDistances=s},expression:"toolheadCircleXYMoveDistances"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.toolhead_z_move_distances")}},[t(ln,{ref:"toolheadCircleZMoveDistances",attrs:{filled:"",dense:"","hide-selected":"","hide-details":"auto",suffix:"mm",multiple:"","small-chips":"","append-icon":"","deletable-chips":"",rules:[e.$rules.lengthGreaterThanOrEqual(4),e.$rules.lengthLessThanOrEqual(4),e.$rules.numberArrayValid]},model:{value:e.toolheadCircleZMoveDistances,callback:function(s){e.toolheadCircleZMoveDistances=s},expression:"toolheadCircleZMoveDistances"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.enable_xy_homing")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.toolheadCircleXYHomingEnabled,callback:function(s){e.toolheadCircleXYHomingEnabled=s},expression:"toolheadCircleXYHomingEnabled"}})],1),t(R)]:e._e(),t(H,{attrs:{title:e.$t("app.setting.label.default_toolhead_xy_speed")}},[t(ae,{attrs:{value:e.defaultToolheadXYSpeed,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(1)],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm/s"},on:{change:e.setDefaultToolheadYXSpeed}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.default_toolhead_z_speed")}},[t(ae,{attrs:{value:e.defaultToolheadZSpeed,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(1)],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm/s"},on:{change:e.setDefaultToolheadZSpeed}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.z_adjust_values")}},[t(ln,{ref:"zAdjustValues",attrs:{filled:"",dense:"","hide-selected":"","hide-details":"auto",suffix:"mm",multiple:"","small-chips":"","append-icon":"","deletable-chips":"",rules:[e.$rules.lengthGreaterThanOrEqual(1),e.$rules.lengthLessThanOrEqual(4),e.$rules.numberArrayValid]},model:{value:e.zAdjustValues,callback:function(s){e.zAdjustValues=s},expression:"zAdjustValues"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.default_extrude_length")}},[t(ae,{attrs:{value:e.defaultExtrudeLength,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(1)],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm"},on:{change:e.setDefaultExtrudeLength}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.default_extrude_speed")}},[t(ae,{attrs:{value:e.defaultExtrudeSpeed,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(1)],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm/s"},on:{change:e.setDefaultExtrudeSpeed}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.show_manual_probe_dialog_automatically"),"sub-title":e.$t("app.setting.tooltip.show_manual_probe_dialog_automatically")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.showManualProbeDialogAutomatically,callback:function(s){e.showManualProbeDialogAutomatically=s},expression:"showManualProbeDialogAutomatically"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.show_bed_screws_adjust_dialog_automatically"),"sub-title":e.$t("app.setting.tooltip.show_bed_screws_adjust_dialog_automatically")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.showBedScrewsAdjustDialogAutomatically,callback:function(s){e.showBedScrewsAdjustDialogAutomatically=s},expression:"showBedScrewsAdjustDialogAutomatically"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.show_screws_tilt_adjust_dialog_automatically"),"sub-title":e.$t("app.setting.tooltip.show_screws_tilt_adjust_dialog_automatically")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.showScrewsTiltAdjustDialogAutomatically,callback:function(s){e.showScrewsTiltAdjustDialogAutomatically=s},expression:"showScrewsTiltAdjustDialogAutomatically"}})],1),t(R),e.printerSupportsForceMove?[t(H,{attrs:{title:e.$t("app.setting.label.force_move_toggle_warning")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.forceMoveToggleWarning,callback:function(s){e.forceMoveToggleWarning=s},expression:"forceMoveToggleWarning"}})],1),t(R)]:e._e(),t(H,{attrs:{title:e.$t("app.setting.label.reset")}},[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("app.setting.btn.reset"))+" ")])],1)],2)],1)},ype=[],bpe=E(Gn,_pe,ype,!1,null,null);const $pe=bpe.exports;var wpe=Object.defineProperty,Spe=Object.getOwnPropertyDescriptor,xpe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Spe(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&&wpe(e,t,n),n};let z_=class extends Y(J){get theme(){return this.$store.state.config.uiSettings.theme}get themePresets(){return this.$store.state.config.hostConfig.themePresets}get themePreset(){return this.themePresets.find(e=>e.logo.src===this.theme.logo.src)}set themePreset(e){const{color:t,isDark:s,logo:n}=e;this.updateTheme({color:t,isDark:s,logo:n})}get themeColor(){return this.theme.color}set themeColor(e){this.theme.color.toLowerCase()!==e.toLowerCase()&&this.updateTheme({color:e})}get isDark(){return this.theme.isDark}set isDark(e){this.updateTheme({isDark:e})}get backgroundLogo(){return this.theme.backgroundLogo}set backgroundLogo(e){this.updateTheme({backgroundLogo:e})}updateTheme(e){this.$store.dispatch("config/updateTheme",e)}handleReset(){const e=this.themePreset;e&&(this.themePreset=e)}};z_=xpe([A({components:{ThemePicker:ol}})],z_);var Cpe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"theme"}},[e._v(" "+e._s(e.$t("app.setting.title.theme"))+" ")]),t(He,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(H,{scopedSlots:e._u([{key:"title",fn:function(){return[t("span",[e._v(e._s(e.$t("app.setting.label.theme_preset")))]),t(ub,{attrs:{bottom:"",small:"",tooltip:e.$t("app.setting.tooltip.theme_disclaimer")}})]},proxy:!0}])},[t(Re,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.themePresets,"item-value":"icon.src","item-text":"name","return-object":""},model:{value:e.themePreset,callback:function(s){e.themePreset=s},expression:"themePreset"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.primary_color")}},[t(M,{staticClass:"mr-2",attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("app.setting.btn.reset"))+" ")]),e.theme?t(ol,{attrs:{title:e.$t("app.setting.btn.select_theme")},model:{value:e.themeColor,callback:function(s){e.themeColor=s},expression:"themeColor"}}):e._e()],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.dark_mode")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.isDark,callback:function(s){e.isDark=s},expression:"isDark"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.show_logo_on_background")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.backgroundLogo,callback:function(s){e.backgroundLogo=s},expression:"backgroundLogo"}})],1)],1)],1)},Ppe=[],Ape=E(z_,Cpe,Ppe,!1,null,null);const Lpe=Ape.exports;var Epe=Object.defineProperty,Ope=Object.getOwnPropertyDescriptor,jl=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ope(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&&Epe(e,t,n),n};let Di=class extends b{constructor(){super(...arguments);m(this,"hasUpdate");m(this,"disabled");m(this,"loading");m(this,"dirty");m(this,"valid")}};jl([w({type:Boolean})],Di.prototype,"hasUpdate",2);jl([w({type:Boolean})],Di.prototype,"disabled",2);jl([w({type:Boolean})],Di.prototype,"loading",2);jl([w({type:Boolean})],Di.prototype,"dirty",2);jl([w({type:Boolean,default:!0})],Di.prototype,"valid",2);Di=jl([A({})],Di);var Tpe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[!e.hasUpdate&&!e.dirty&&e.valid?t(hr,{attrs:{small:"",outlined:"",color:e.disabled?"grey darken-2":"success"}},[e._v(" "+e._s(e.$t("app.version.label.up_to_date"))+" ")]):e._e(),e.dirty&&e.valid?t(Oe,{attrs:{left:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(hr,e._g(e._b({attrs:{small:"",outlined:"",disabled:e.disabled,color:e.disabled?"grey darken-2":"error"}},"v-chip",n,!1),s),[e._v(" "+e._s(e.$t("app.version.label.dirty"))+" ")])]}}],null,!1,970811321)},[t("span",[e._v(e._s(e.$t("app.version.tooltip.dirty")))])]):e._e(),e.valid?e._e():t(Oe,{attrs:{left:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(hr,e._g(e._b({attrs:{small:"",outlined:"",color:e.disabled?"grey darken-2":"error"}},"v-chip",n,!1),s),[e._v(" "+e._s(e.$t("app.version.label.invalid"))+" ")])]}}],null,!1,103834092)},[t("span",[e._v(e._s(e.$t("app.version.tooltip.invalid")))])]),e.hasUpdate&&!e.dirty&&e.valid?t(M,{staticClass:"ml-1",attrs:{disabled:e.disabled,small:"",text:"",color:"primary"},on:{click:function(s){return e.$emit("on-update")}}},[e._v(" "+e._s(e.$t("app.version.btn.update"))+" ")]):e._e(),e.dirty||!e.valid?t(M,{staticClass:"ml-1",attrs:{small:"",text:"",color:"error"},on:{click:function(s){return e.$emit("on-recover")}}},[e._v(" "+e._s(e.$t("app.general.btn.recover"))+" ")]):e._e()],1)},kpe=[],Dpe=E(Di,Tpe,kpe,!1,null,null);const Mpe=Dpe.exports;var Rpe=Object.defineProperty,Ipe=Object.getOwnPropertyDescriptor,Kb=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ipe(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&&Rpe(e,t,n),n};let ku=class extends b{constructor(){super(...arguments);m(this,"open");m(this,"component")}get commitHistory(){return this.$store.getters["version/getCommitHistory"](this.component.key)}get baseUrl(){return"owner"in this.component?`https://github.com/${this.component.owner}/${this.component.repo_name||this.component.key}`:""}};Kb([Fe({type:Boolean})],ku.prototype,"open",2);Kb([w({type:Object})],ku.prototype,"component",2);ku=Kb([A({})],ku);var Fpe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:"commits_behind"in e.component?e.$t("app.version.label.commit_history"):e.$t("app.version.label.package_list"),"max-width":"850","no-actions":""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},["commits_behind"in e.component&&e.commitHistory?t(Le,{staticClass:"py-0 pl-0"},[t(EW,{attrs:{"align-top":"",dense:""}},e._l(e.commitHistory.keys,function(s){return t(TW,{key:`key-${s}`,attrs:{color:"transparent",small:""},scopedSlots:e._u([{key:"icon",fn:function(){return[t(S,{staticClass:"rotate-90",attrs:{color:"secondary"}},[e._v(" $commit ")])]},proxy:!0}],null,!0)},[t("div",{staticClass:"secondary--text mb-4"},[e._v(" "+e._s(e.$t("app.version.label.commits_on"))+" "+e._s(e.$filters.formatDate(s))+" ")]),t("ol",{staticClass:"commit-history"},[e._l(e.commitHistory.result[s],function(n){return[t("li",{key:n.sha},[t("div",[t("div",{staticClass:"commit-subject"},[e._v(" "+e._s(n.subject)+" ")]),t("div",{staticClass:"secondary--text"},[t("a",{staticClass:"secondary--text",attrs:{href:`${e.baseUrl}/commits/${e.component.branch}`,target:"_blank"}},[t("strong",[e._v(e._s(n.author))])]),e._v(" "+e._s(e.$t("app.version.label.committed"))+" "+e._s(e.$filters.formatRelativeTimeToNow(n.date*1e3))+" ")])]),t("div",[t(M,{attrs:{small:"",outlined:"",color:"secondary",href:`${e.baseUrl}/commit/${n.sha}`,target:"_blank"}},[t("span",{staticClass:"primary--text"},[e._v(e._s(n.sha.substring(0,7)))])])],1)])]})],2)])}),1)],1):e._e(),"package_list"in e.component?t(Le,{staticClass:"pt-4"},[t("div",{staticClass:"chip-group"},e._l(e.component.package_list,function(s){return t(hr,{key:s,attrs:{small:""}},[e._v(" "+e._s(s)+" ")])}),1)]):e._e()],1)},Hpe=[],jpe=E(ku,Fpe,Hpe,!1,null,"7b446d71");const Bpe=jpe.exports;var Npe=Object.defineProperty,Vpe=Object.getOwnPropertyDescriptor,zpe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Vpe(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&&Npe(e,t,n),n};let U_=class extends Y(J){constructor(){super(...arguments);m(this,"informationDialogState",{open:!1,component:null})}get components(){return this.$store.getters["version/getVisibleComponents"]}get isRefreshing(){return this.hasWait(this.$waits.onVersionRefresh)}get hasUpdates(){return this.$store.getters["version/hasUpdates"]}get enableNotifications(){return this.$store.state.config.uiSettings.general.enableVersionNotifications}set enableNotifications(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.enableVersionNotifications",value:t,server:!0})}packageTitle(t){return t.key==="system"?this.$t("app.version.label.os_packages"):t.key}hasUpdate(t){return this.$store.getters["version/hasUpdate"](t)}inError(t){const s="is_dirty"in t?t.is_dirty:!1,n="is_valid"in t?t.is_valid:!0;return s||!n}handleUpdateComponent(t){switch(this.$store.dispatch("version/onUpdateStatus",{busy:!0}),t){case"klipper":I.machineUpdateKlipper();break;case"moonraker":I.machineUpdateMoonraker();break;case"system":I.machineUpdateSystem();break;case"all":I.machineUpdateAll();break;default:I.machineUpdateClient(t);break}this.$emit("click")}handleRecoverComponent(t){this.$store.dispatch("version/onUpdateStatus",{busy:!0});const s="is_dirty"in t?t.is_dirty:!1,n="is_valid"in t?t.is_valid:!0;s&&I.machineUpdateRecover(t.key,!1),n||I.machineUpdateRecover(t.key,!0)}forceCheck(){this.$store.getters["server/getIsMinApiVersion"]("1.2.0")?I.machineUpdateRefresh():I.machineUpdateStatus(!0)}getBaseUrl(t){return"remote_url"in t&&t.remote_url?t.remote_url:"owner"in t?`https://github.com/${t.owner}/${t.repo_name||t.key}`:""}handleInformationDialog(t){"commits_behind"in t||"package_list"in t?this.informationDialogState={open:!0,component:t}:window.open(`${this.getBaseUrl(t)}/releases`)}};U_=zpe([A({components:{VersionStatus:Mpe,VersionCommitHistoryDialog:Bpe}})],U_);var Upe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"versions"}},[e._v(" "+e._s(e.$t("app.version.title"))+" ")]),t(He,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(H,[t(M,{staticClass:"mr-2",attrs:{outlined:"",small:"",color:"primary",disabled:!e.hasUpdates||e.isRefreshing||e.printerPrinting},on:{click:function(s){return e.handleUpdateComponent("all")}}},[t(S,{attrs:{left:""}},[e._v(" $download ")]),e._v(" "+e._s(e.$t("app.version.btn.update_all"))+" ")],1),t(M,{attrs:{outlined:"",small:"",color:"primary",disabled:e.isRefreshing||e.printerPrinting},on:{click:function(s){return e.forceCheck()}}},[t(S,{class:{"spin-alt":e.isRefreshing},attrs:{left:""}},[e._v(" $refresh ")]),e._v(" "+e._s(e.$t("app.version.btn.check_for_updates"))+" ")],1)],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.enable_notifications")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.enableNotifications,callback:function(s){e.enableNotifications=s},expression:"enableNotifications"}})],1),t(R),e._l(e.components,function(s,n){return[t(H,{key:`component-${s.key}-${s.name}`,scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.packageTitle(s))+" "),"remote_url"in s&&s.remote_url!=="?"?t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({attrs:i,on:a}){return[t("a",e._g(e._b({attrs:{href:s.remote_url,target:"_blank"}},"a",i,!1),a),[t(S,{attrs:{small:"",right:""}},[e._v(" $openInNew ")])],1)]}}],null,!0)},[t("span",[e._v(e._s(s.remote_url))])]):e._e()]},proxy:!0},{key:"sub-title",fn:function(){return[s.key!=="system"&&"full_version_string"in s?t("span",[e._v(" "+e._s(s.full_version_string)+" ")]):t("span",[e._v(" "+e._s(s.version)+" ")]),"remote_version"in s&&e.hasUpdate(s.key)?t("span",[e._v(" -> "+e._s(s.remote_version)+" ")]):e._e(),s.key==="system"&&s.package_count>0?t("span",[e._v(" "+e._s(s.package_count)+" packages ")]):e._e()]},proxy:!0}],null,!0)},[e.hasUpdate(s.key)&&!e.inError(s)?t(Oe,{attrs:{left:""},scopedSlots:e._u([{key:"activator",fn:function({attrs:i,on:a}){return[t(M,e._g(e._b({attrs:{color:"primary",icon:"",small:""},on:{click:function(o){return e.handleInformationDialog(s)}}},"app-btn",i,!1),a),[t(S,{attrs:{small:""}},[e._v(" $info ")])],1)]}}],null,!0)},["name"in s?t("span",[e._v(e._s(e.$t("app.version.tooltip.release_notes")))]):"commits_behind"in s?t("span",[e._v(e._s(e.$t("app.version.tooltip.commit_history")))]):"package_list"in s?t("span",[e._v(e._s(e.$t("app.version.tooltip.packages")))]):e._e()]):e._e(),t("version-status",{attrs:{"has-update":e.hasUpdate(s.key),disabled:e.isRefreshing||e.printerPrinting,loading:e.isRefreshing,dirty:"is_dirty"in s?s.is_dirty:!1,valid:"is_valid"in s?s.is_valid:!0},on:{"on-update":function(i){return e.handleUpdateComponent(s.key)},"on-recover":function(i){return e.handleRecoverComponent(s)}}})],1),"warnings"in s?e._l(s.warnings??[],function(i,a){return t(Ai,{key:`warning-${s.key}-${a}`,staticClass:"mx-4",attrs:{dense:"",type:"warning",text:""}},[e._v(" "+e._s(i)+" ")])}):e._e(),"anomalies"in s?e._l(s.anomalies??[],function(i,a){return t(Ai,{key:`anomaly-${s.key}-${a}`,staticClass:"mx-4",attrs:{dense:"",icon:"$info",text:""}},[e._v(" "+e._s(i)+" ")])}):e._e(),n<e.components.length-1&&e.components.length>0?t(R,{key:`component-${s.key}-${s.name}-_divider`}):e._e()]})],2),e.informationDialogState.open?t("version-commit-history-dialog",{attrs:{component:e.informationDialogState.component},model:{value:e.informationDialogState.open,callback:function(s){e.$set(e.informationDialogState,"open",s)},expression:"informationDialogState.open"}}):e._e()],1)},Wpe=[],Gpe=E(U_,Upe,Wpe,!1,null,null);const qpe=Gpe.exports;var Zpe=Object.defineProperty,Ype=Object.getOwnPropertyDescriptor,Kpe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ype(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&&Zpe(e,t,n),n};let W_=class extends b{get extrusionLineWidth(){return this.$store.state.config.uiSettings.gcodePreview.extrusionLineWidth}setExtrusionLineWidth(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.extrusionLineWidth",value:+e,server:!0})}get moveLineWidth(){return this.$store.state.config.uiSettings.gcodePreview.moveLineWidth}setMoveLineWidth(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.moveLineWidth",value:+e,server:!0})}get retractionIconSize(){return this.$store.state.config.uiSettings.gcodePreview.retractionIconSize}setRetractionIconSize(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.retractionIconSize",value:+e,server:!0})}get flipHorizontal(){return this.$store.state.config.uiSettings.gcodePreview.flip.horizontal}set flipHorizontal(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.flip.horizontal",value:e,server:!0})}get flipVertical(){return this.$store.state.config.uiSettings.gcodePreview.flip.vertical}set flipVertical(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.flip.vertical",value:e,server:!0})}get drawOrigin(){return this.$store.state.config.uiSettings.gcodePreview.drawOrigin}set drawOrigin(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.drawOrigin",value:e,server:!0})}get drawBackground(){return this.$store.state.config.uiSettings.gcodePreview.drawBackground}set drawBackground(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.drawBackground",value:e,server:!0})}get showAnimations(){return this.$store.state.config.uiSettings.gcodePreview.showAnimations}set showAnimations(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.showAnimations",value:e,server:!0})}get minLayerHeight(){return this.$store.state.config.uiSettings.gcodePreview.minLayerHeight}setMinLayerHeight(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.minLayerHeight",value:+e,server:!0})}get autoLoadOnPrintStart(){return this.$store.state.config.uiSettings.gcodePreview.autoLoadOnPrintStart}set autoLoadOnPrintStart(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.autoLoadOnPrintStart",value:e,server:!0}),e||(this.autoLoadMobileOnPrintStart=!1)}get autoLoadMobileOnPrintStart(){return this.$store.state.config.uiSettings.gcodePreview.autoLoadMobileOnPrintStart}set autoLoadMobileOnPrintStart(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.autoLoadMobileOnPrintStart",value:e,server:!0})}get autoFollowOnFileLoad(){return this.$store.state.config.uiSettings.gcodePreview.autoFollowOnFileLoad}set autoFollowOnFileLoad(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.autoFollowOnFileLoad",value:e,server:!0})}get hideSinglePartBoundingBox(){return this.$store.state.config.uiSettings.gcodePreview.hideSinglePartBoundingBox}set hideSinglePartBoundingBox(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.hideSinglePartBoundingBox",value:e,server:!0})}handleReset(){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview",value:Hl().uiSettings.gcodePreview,server:!0})}};W_=Kpe([A({components:{}})],W_);var Xpe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"gcodePreview"}},[e._v(" "+e._s(e.$t("app.setting.title.gcode_preview"))+" ")]),t(He,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(H,{attrs:{title:e.$t("app.setting.label.show_animations")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.showAnimations,callback:function(s){e.showAnimations=s},expression:"showAnimations"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.draw_origin")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.drawOrigin,callback:function(s){e.drawOrigin=s},expression:"drawOrigin"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.draw_background")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.drawBackground,callback:function(s){e.drawBackground=s},expression:"drawBackground"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.default_min_layer_height")}},[t(ae,{attrs:{value:e.minLayerHeight,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(.1)],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm"},on:{change:e.setMinLayerHeight}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.extrusion_line_width")}},[t(ae,{attrs:{value:e.extrusionLineWidth,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThan(0)],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm"},on:{change:e.setExtrusionLineWidth}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.move_line_width")}},[t(ae,{attrs:{value:e.moveLineWidth,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThan(0)],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm"},on:{change:e.setMoveLineWidth}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.retraction_icon_size")}},[t(ae,{attrs:{value:e.retractionIconSize,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThan(0)],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm"},on:{change:e.setRetractionIconSize}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.flip_horizontal")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.flipHorizontal,callback:function(s){e.flipHorizontal=s},expression:"flipHorizontal"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.flip_vertical")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.flipVertical,callback:function(s){e.flipVertical=s},expression:"flipVertical"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.auto_load_on_print_start")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.autoLoadOnPrintStart,callback:function(s){e.autoLoadOnPrintStart=s},expression:"autoLoadOnPrintStart"}})],1),e.autoLoadOnPrintStart?[t(R),t(H,{attrs:{title:e.$t("app.setting.label.auto_load_mobile_on_print_start")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.autoLoadMobileOnPrintStart,callback:function(s){e.autoLoadMobileOnPrintStart=s},expression:"autoLoadMobileOnPrintStart"}})],1)]:e._e(),t(R),t(H,{attrs:{title:e.$t("app.setting.label.auto_follow_on_file_load")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.autoFollowOnFileLoad,callback:function(s){e.autoFollowOnFileLoad=s},expression:"autoFollowOnFileLoad"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.hide_single_part_bounding_box")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.hideSinglePartBoundingBox,callback:function(s){e.hideSinglePartBoundingBox=s},expression:"hideSinglePartBoundingBox"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.reset")}},[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("app.setting.btn.reset"))+" ")])],1)],2)],1)},Jpe=[],Qpe=E(W_,Xpe,Jpe,!1,null,null);const ehe=Qpe.exports;var the=Object.defineProperty,rhe=Object.getOwnPropertyDescriptor,Xb=(r,e,t,s)=>{for(var n=s>1?void 0:s?rhe(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&&the(e,t,n),n};let Du=class extends b{constructor(){super(...arguments);m(this,"open");m(this,"user")}handleSave(){this.$emit("save",this.user),this.open=!1}};Xb([Fe({type:Boolean})],Du.prototype,"open",2);Xb([w({type:Object,required:!0})],Du.prototype,"user",2);Du=Xb([A({})],Du);var she=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.user.created_on?e.$t("app.general.label.edit_user"):e.$t("app.general.label.add_user"),"save-button-text":e.user.created_on?e.$t("app.general.btn.save"):e.$t("app.general.btn.add"),"max-width":"500"},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,{staticClass:"pa-0"},[t(H,{attrs:{title:e.$t("app.general.label.name")}},[t(ae,{staticClass:"mt-0",attrs:{autocomplete:"username",disabled:e.user.created_on,filled:"",dense:"",spellcheck:"false","hide-details":"auto",rules:[e.$rules.required,e.$rules.lengthLessThanOrEqual(60)]},model:{value:e.user.username,callback:function(s){e.$set(e.user,"username",s)},expression:"user.username"}})],1),t(R),t(H,{attrs:{title:e.$t("app.general.label.password")}},[t(ae,{staticClass:"mt-0",attrs:{autocomplete:"current-password",filled:"",dense:"",type:"password","hide-details":"auto",rules:[e.$rules.required,e.$rules.lengthGreaterThanOrEqual(4),e.$rules.passwordNotEqualUsername(e.user.username)]},model:{value:e.user.password,callback:function(s){e.$set(e.user,"password",s)},expression:"user.password"}})],1)],1)],1)},nhe=[],ihe=E(Du,she,nhe,!1,null,null);const ahe=ihe.exports;/*!
|
||
* 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.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var O8=E8,Bs={glog:function(r){if(r<1)throw new Error("glog("+r+")");return Bs.LOG_TABLE[r]},gexp:function(r){for(;r<0;)r+=255;for(;r>=256;)r-=255;return Bs.EXP_TABLE[r]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var sr=0;sr<8;sr++)Bs.EXP_TABLE[sr]=1<<sr;for(var sr=8;sr<256;sr++)Bs.EXP_TABLE[sr]=Bs.EXP_TABLE[sr-4]^Bs.EXP_TABLE[sr-5]^Bs.EXP_TABLE[sr-6]^Bs.EXP_TABLE[sr-8];for(var sr=0;sr<255;sr++)Bs.LOG_TABLE[Bs.EXP_TABLE[sr]]=sr;var li=Bs;function Zp(r,e){if(r.length==null)throw new Error(r.length+"/"+e);for(var t=0;t<r.length&&r[t]==0;)t++;this.num=new Array(r.length-t+e);for(var s=0;s<r.length-t;s++)this.num[s]=r[s+t]}Zp.prototype={get:function(r){return this.num[r]},getLength:function(){return this.num.length},multiply:function(r){for(var e=new Array(this.getLength()+r.getLength()-1),t=0;t<this.getLength();t++)for(var s=0;s<r.getLength();s++)e[t+s]^=li.gexp(li.glog(this.get(t))+li.glog(r.get(s)));return new Zp(e,0)},mod:function(r){if(this.getLength()-r.getLength()<0)return this;for(var e=li.glog(this.get(0))-li.glog(r.get(0)),t=new Array(this.getLength()),s=0;s<this.getLength();s++)t[s]=this.get(s);for(var s=0;s<r.getLength();s++)t[s]^=li.gexp(li.glog(r.get(s))+e);return new Zp(t,0).mod(r)}};var G_=Zp,ai={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},tr={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(r){for(var e=r<<10;tr.getBCHDigit(e)-tr.getBCHDigit(tr.G15)>=0;)e^=tr.G15<<tr.getBCHDigit(e)-tr.getBCHDigit(tr.G15);return(r<<10|e)^tr.G15_MASK},getBCHTypeNumber:function(r){for(var e=r<<12;tr.getBCHDigit(e)-tr.getBCHDigit(tr.G18)>=0;)e^=tr.G18<<tr.getBCHDigit(e)-tr.getBCHDigit(tr.G18);return r<<12|e},getBCHDigit:function(r){for(var e=0;r!=0;)e++,r>>>=1;return e},getPatternPosition:function(r){return tr.PATTERN_POSITION_TABLE[r-1]},getMask:function(r,e,t){switch(r){case ai.PATTERN000:return(e+t)%2==0;case ai.PATTERN001:return e%2==0;case ai.PATTERN010:return t%3==0;case ai.PATTERN011:return(e+t)%3==0;case ai.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2==0;case ai.PATTERN101:return e*t%2+e*t%3==0;case ai.PATTERN110:return(e*t%2+e*t%3)%2==0;case ai.PATTERN111:return(e*t%3+(e+t)%2)%2==0;default:throw new Error("bad maskPattern:"+r)}},getErrorCorrectPolynomial:function(r){for(var e=new G_([1],0),t=0;t<r;t++)e=e.multiply(new G_([1,li.gexp(t)],0));return e},getLengthInBits:function(r,e){if(1<=e&&e<10)switch(r){case Kr.MODE_NUMBER:return 10;case Kr.MODE_ALPHA_NUM:return 9;case Kr.MODE_8BIT_BYTE:return 8;case Kr.MODE_KANJI:return 8;default:throw new Error("mode:"+r)}else if(e<27)switch(r){case Kr.MODE_NUMBER:return 12;case Kr.MODE_ALPHA_NUM:return 11;case Kr.MODE_8BIT_BYTE:return 16;case Kr.MODE_KANJI:return 10;default:throw new Error("mode:"+r)}else if(e<41)switch(r){case Kr.MODE_NUMBER:return 14;case Kr.MODE_ALPHA_NUM:return 13;case Kr.MODE_8BIT_BYTE:return 16;case Kr.MODE_KANJI:return 12;default:throw new Error("mode:"+r)}else throw new Error("type:"+e)},getLostPoint:function(r){for(var e=r.getModuleCount(),t=0,s=0;s<e;s++)for(var n=0;n<e;n++){for(var i=0,a=r.isDark(s,n),o=-1;o<=1;o++)if(!(s+o<0||e<=s+o))for(var l=-1;l<=1;l++)n+l<0||e<=n+l||o==0&&l==0||a==r.isDark(s+o,n+l)&&i++;i>5&&(t+=3+i-5)}for(var s=0;s<e-1;s++)for(var n=0;n<e-1;n++){var c=0;r.isDark(s,n)&&c++,r.isDark(s+1,n)&&c++,r.isDark(s,n+1)&&c++,r.isDark(s+1,n+1)&&c++,(c==0||c==4)&&(t+=3)}for(var s=0;s<e;s++)for(var n=0;n<e-6;n++)r.isDark(s,n)&&!r.isDark(s,n+1)&&r.isDark(s,n+2)&&r.isDark(s,n+3)&&r.isDark(s,n+4)&&!r.isDark(s,n+5)&&r.isDark(s,n+6)&&(t+=40);for(var n=0;n<e;n++)for(var s=0;s<e-6;s++)r.isDark(s,n)&&!r.isDark(s+1,n)&&r.isDark(s+2,n)&&r.isDark(s+3,n)&&r.isDark(s+4,n)&&!r.isDark(s+5,n)&&r.isDark(s+6,n)&&(t+=40);for(var u=0,n=0;n<e;n++)for(var s=0;s<e;s++)r.isDark(s,n)&&u++;var d=Math.abs(100*u/e/e-50)/5;return t+=d*10,t}},Vi=tr;function hn(r,e){this.typeNumber=r,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var ds=hn.prototype;ds.addData=function(r){var e=new ohe(r);this.dataList.push(e),this.dataCache=null};ds.isDark=function(r,e){if(r<0||this.moduleCount<=r||e<0||this.moduleCount<=e)throw new Error(r+","+e);return this.modules[r][e]};ds.getModuleCount=function(){return this.moduleCount};ds.make=function(){if(this.typeNumber<1){var r=1;for(r=1;r<40;r++){for(var e=L8.getRSBlocks(r,this.errorCorrectLevel),t=new O8,s=0,n=0;n<e.length;n++)s+=e[n].dataCount;for(var n=0;n<this.dataList.length;n++){var i=this.dataList[n];t.put(i.mode,4),t.put(i.getLength(),Vi.getLengthInBits(i.mode,r)),i.write(t)}if(t.getLengthInBits()<=s*8)break}this.typeNumber=r}this.makeImpl(!1,this.getBestMaskPattern())};ds.makeImpl=function(r,e){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var t=0;t<this.moduleCount;t++){this.modules[t]=new Array(this.moduleCount);for(var s=0;s<this.moduleCount;s++)this.modules[t][s]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(r,e),this.typeNumber>=7&&this.setupTypeNumber(r),this.dataCache==null&&(this.dataCache=hn.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)};ds.setupPositionProbePattern=function(r,e){for(var t=-1;t<=7;t++)if(!(r+t<=-1||this.moduleCount<=r+t))for(var s=-1;s<=7;s++)e+s<=-1||this.moduleCount<=e+s||(0<=t&&t<=6&&(s==0||s==6)||0<=s&&s<=6&&(t==0||t==6)||2<=t&&t<=4&&2<=s&&s<=4?this.modules[r+t][e+s]=!0:this.modules[r+t][e+s]=!1)};ds.getBestMaskPattern=function(){for(var r=0,e=0,t=0;t<8;t++){this.makeImpl(!0,t);var s=Vi.getLostPoint(this);(t==0||r>s)&&(r=s,e=t)}return e};ds.createMovieClip=function(r,e,t){var s=r.createEmptyMovieClip(e,t),n=1;this.make();for(var i=0;i<this.modules.length;i++)for(var a=i*n,o=0;o<this.modules[i].length;o++){var l=o*n,c=this.modules[i][o];c&&(s.beginFill(0,100),s.moveTo(l,a),s.lineTo(l+n,a),s.lineTo(l+n,a+n),s.lineTo(l,a+n),s.endFill())}return s};ds.setupTimingPattern=function(){for(var r=8;r<this.moduleCount-8;r++)this.modules[r][6]==null&&(this.modules[r][6]=r%2==0);for(var e=8;e<this.moduleCount-8;e++)this.modules[6][e]==null&&(this.modules[6][e]=e%2==0)};ds.setupPositionAdjustPattern=function(){for(var r=Vi.getPatternPosition(this.typeNumber),e=0;e<r.length;e++)for(var t=0;t<r.length;t++){var s=r[e],n=r[t];if(this.modules[s][n]==null)for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)i==-2||i==2||a==-2||a==2||i==0&&a==0?this.modules[s+i][n+a]=!0:this.modules[s+i][n+a]=!1}};ds.setupTypeNumber=function(r){for(var e=Vi.getBCHTypeNumber(this.typeNumber),t=0;t<18;t++){var s=!r&&(e>>t&1)==1;this.modules[Math.floor(t/3)][t%3+this.moduleCount-8-3]=s}for(var t=0;t<18;t++){var s=!r&&(e>>t&1)==1;this.modules[t%3+this.moduleCount-8-3][Math.floor(t/3)]=s}};ds.setupTypeInfo=function(r,e){for(var t=this.errorCorrectLevel<<3|e,s=Vi.getBCHTypeInfo(t),n=0;n<15;n++){var i=!r&&(s>>n&1)==1;n<6?this.modules[n][8]=i:n<8?this.modules[n+1][8]=i:this.modules[this.moduleCount-15+n][8]=i}for(var n=0;n<15;n++){var i=!r&&(s>>n&1)==1;n<8?this.modules[8][this.moduleCount-n-1]=i:n<9?this.modules[8][15-n-1+1]=i:this.modules[8][15-n-1]=i}this.modules[this.moduleCount-8][8]=!r};ds.mapData=function(r,e){for(var t=-1,s=this.moduleCount-1,n=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(var o=0;o<2;o++)if(this.modules[s][a-o]==null){var l=!1;i<r.length&&(l=(r[i]>>>n&1)==1);var c=Vi.getMask(e,s,a-o);c&&(l=!l),this.modules[s][a-o]=l,n--,n==-1&&(i++,n=7)}if(s+=t,s<0||this.moduleCount<=s){s-=t,t=-t;break}}};hn.PAD0=236;hn.PAD1=17;hn.createData=function(r,e,t){for(var s=L8.getRSBlocks(r,e),n=new O8,i=0;i<t.length;i++){var a=t[i];n.put(a.mode,4),n.put(a.getLength(),Vi.getLengthInBits(a.mode,r)),a.write(n)}for(var o=0,i=0;i<s.length;i++)o+=s[i].dataCount;if(n.getLengthInBits()>o*8)throw new Error("code length overflow. ("+n.getLengthInBits()+">"+o*8+")");for(n.getLengthInBits()+4<=o*8&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=o*8||(n.put(hn.PAD0,8),n.getLengthInBits()>=o*8));)n.put(hn.PAD1,8);return hn.createBytes(n,s)};hn.createBytes=function(r,e){for(var t=0,s=0,n=0,i=new Array(e.length),a=new Array(e.length),o=0;o<e.length;o++){var l=e[o].dataCount,c=e[o].totalCount-l;s=Math.max(s,l),n=Math.max(n,c),i[o]=new Array(l);for(var u=0;u<i[o].length;u++)i[o][u]=255&r.buffer[u+t];t+=l;var d=Vi.getErrorCorrectPolynomial(c),p=new G_(i[o],d.getLength()-1),h=p.mod(d);a[o]=new Array(d.getLength()-1);for(var u=0;u<a[o].length;u++){var f=u+h.getLength()-a[o].length;a[o][u]=f>=0?h.get(f):0}}for(var g=0,u=0;u<e.length;u++)g+=e[u].totalCount;for(var v=new Array(g),y=0,u=0;u<s;u++)for(var o=0;o<e.length;o++)u<i[o].length&&(v[y++]=i[o][u]);for(var u=0;u<n;u++)for(var o=0;o<e.length;o++)u<a[o].length&&(v[y++]=a[o][u]);return v};var lhe=hn;function che(r){for(var e="",t=0;t<r.length;t++){var s=r.charCodeAt(t);s<128?e+=String.fromCharCode(s):s<2048?(e+=String.fromCharCode(192|s>>6),e+=String.fromCharCode(128|s&63)):s<55296||s>=57344?(e+=String.fromCharCode(224|s>>12),e+=String.fromCharCode(128|s>>6&63),e+=String.fromCharCode(128|s&63)):(t++,s=65536+((s&1023)<<10|r.charCodeAt(t)&1023),e+=String.fromCharCode(240|s>>18),e+=String.fromCharCode(128|s>>12&63),e+=String.fromCharCode(128|s>>6&63),e+=String.fromCharCode(128|s&63))}return e}function uhe(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=[];return r.forEach(function(s,n){var i=null;s.forEach(function(a,o){if(!a&&i!==null){t.push("M".concat(i+e," ").concat(n+e,"h").concat(o-i,"v1H").concat(i+e,"z")),i=null;return}if(o===s.length-1){if(!a)return;i===null?t.push("M".concat(o+e,",").concat(n+e," h1v1H").concat(o+e,"z")):t.push("M".concat(i+e,",").concat(n+e," h").concat(o+1-i,"v1H").concat(i+e,"z"));return}a&&i===null&&(i=o)})}),t.join("")}var dhe={props:{value:{type:String,required:!0,default:""},className:{type:String,default:""},size:{type:[Number,String],default:100,validator:function(e){return isNaN(Number(e))!==!0}},level:{type:String,default:"L",validator:function(e){return["L","Q","M","H"].indexOf(e)>-1}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},renderAs:{type:String,required:!1,default:"canvas",validator:function(e){return["canvas","svg"].indexOf(e)>-1}}},data:function(){return{numCells:0,fgPath:""}},updated:function(){this.render()},mounted:function(){this.render()},methods:{render:function(){var e=this.value,t=this.size,s=this.level,n=this.background,i=this.foreground,a=this.renderAs,o=t>>>0,l=new lhe(-1,Lc[s]);l.addData(che(e)),l.make();var c=l.modules,u=o/c.length,d=o/c.length,p=window.devicePixelRatio||1;if(a==="svg")this.numCells=c.length,this.fgPath=uhe(c);else{var h=this.$refs["qrcode-vue"],f=h.getContext("2d");h.height=h.width=o*p,f.scale(p,p),c.forEach(function(g,v){g.forEach(function(y,C){f.fillStyle=y?i:n;var x=Math.ceil((C+1)*u)-Math.floor(C*u),$=Math.ceil((v+1)*d)-Math.floor(v*d);f.fillRect(Math.round(C*u),Math.round(v*d),x,$)})})}}},render:function(e){var t=this.className,s=this.value,n=this.level,i=this.background,a=this.foreground,o=this.size,l=this.renderAs,c=this.numCells,u=this.fgPath;return e("div",{class:this.class||t,attrs:{value:s,level:n,background:i,foreground:a}},[l==="svg"?e("svg",{attrs:{height:o,width:o,shapeRendering:"crispEdges",viewBox:"0 0 ".concat(c," ").concat(c)},style:{width:o+"px",height:o+"px"}},[e("path",{attrs:{fill:i,d:"M0,0 h".concat(c,"v").concat(c,"H0z")}}),e("path",{attrs:{fill:a,d:u}})]):e("canvas",{attrs:{height:o,width:o},style:{width:o+"px",height:o+"px"},ref:"qrcode-vue"},[])])}},phe=Object.defineProperty,hhe=Object.getOwnPropertyDescriptor,Jb=(r,e,t,s)=>{for(var n=s>1?void 0:s?hhe(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&&phe(e,t,n),n};let Mu=class extends b{constructor(){super(...arguments);m(this,"value");m(this,"size")}};Jb([w({type:String,default:""})],Mu.prototype,"value",2);Jb([w({type:Number,default:260})],Mu.prototype,"size",2);Mu=Jb([A({components:{QrcodeVue:dhe}})],Mu);var fhe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("qrcode-vue",{attrs:{value:e.value,size:e.size,level:"L"}})},mhe=[],ghe=E(Mu,fhe,mhe,!1,null,"d9dbf29c");const vhe=ghe.exports;var _he=Object.defineProperty,yhe=Object.getOwnPropertyDescriptor,T8=(r,e,t,s)=>{for(var n=s>1?void 0:s?yhe(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&&_he(e,t,n),n};let Af=class extends b{constructor(){super(...arguments);m(this,"open")}get apiKey(){return this.$store.getters["auth/getApiKey"]}handleRefreshApiKey(){this.$store.dispatch("auth/refreshApiKey")}};T8([Fe({type:Boolean})],Af.prototype,"open",2);Af=T8([A({})],Af);var bhe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.$t("app.general.label.api_key"),"max-width":"500"},scopedSlots:e._u([{key:"actions",fn:function(){return[t($t),t(M,{attrs:{color:"primary",text:"",type:"button"},on:{click:e.handleRefreshApiKey}},[e._v(" "+e._s(e.$t("app.general.btn.refresh"))+" ")])]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,[t(ae,{attrs:{value:e.apiKey,filled:"",dense:"","single-line":"","hide-details":"",readonly:""}}),t(Vr,{staticClass:"pt-4",attrs:{"align-center":"",column:""}},[t(vhe,{attrs:{value:e.apiKey,centered:""}})],1)],1)],1)},$he=[],whe=E(Af,bhe,$he,!1,null,null);const She=whe.exports;var xhe=Object.defineProperty,Che=Object.getOwnPropertyDescriptor,Phe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Che(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&&xhe(e,t,n),n};let q_=class extends b{constructor(){super(...arguments);m(this,"search","");m(this,"categoryId");m(this,"userDialogState",{open:!1,user:null,handler:null});m(this,"apiKeyDialogState",{open:!1})}get users(){return this.$store.getters["auth/getUsers"]}get currentUser(){const t=this.$store.getters["auth/getCurrentUser"];return t&&t.username?t.username:""}handleAddUserDialog(){this.userDialogState={open:!0,user:{username:"",password:""},handler:this.handleSaveUser}}handleEditUserDialog(t){this.userDialogState={open:!0,user:t,handler:this.handleSaveUser}}handleApiKeyDialog(){this.apiKeyDialogState.open=!0}async handleRemoveUser(t){await this.$confirm(this.$t("app.general.simple_form.msg.confirm_remove_user",{username:t.username}).toString(),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})&&this.$store.dispatch("auth/removeUser",t)}async handleSaveUser(t){await this.$store.dispatch("auth/addUser",t),this.users.length===0&&this.$store.dispatch("auth/checkTrust")}};q_=Phe([A({components:{UserConfigDialog:ahe,ApiKeyDialog:She}})],q_);var Ahe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"auth"}},[e._v(" "+e._s(e.$t("app.setting.title.authentication"))+" ")]),t(He,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(H,[t(M,{staticClass:"mr-2",attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleApiKeyDialog}},[t(S,{attrs:{small:"",left:""}},[e._v(" $edit ")]),e._v(" "+e._s(e.$t("app.general.label.api_key"))+" ")],1),t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleAddUserDialog}},[t(S,{attrs:{small:"",left:""}},[e._v(" $plus ")]),e._v(" "+e._s(e.$t("app.setting.btn.add_user"))+" ")],1)],1),e.users.length>0?t(R):e._e(),e._l(e.users,function(s,n){return[t(H,{key:`user-${s.username}`,attrs:{"sub-title":s.username===e.currentUser?e.$t("app.general.label.current_user"):s.source!=="moonraker"?e.$t("app.general.label.user_managed_source",{source:e.$t(`app.general.label.${s.source}`)}):void 0,"r-cols":3},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(s.username)+" ")]},proxy:!0}],null,!0)},[t(M,{attrs:{disabled:s.username===e.currentUser||s.source!=="moonraker",fab:"",text:"","x-small":"",color:""},on:{click:function(i){return i.stopPropagation(),e.handleRemoveUser(s)}}},[t(S,{attrs:{color:""}},[e._v(" $close ")])],1)],1),n<e.users.length-1?t(R,{key:`divider-${s.username}`}):e._e()]}),e.userDialogState.open?t("user-config-dialog",{attrs:{user:e.userDialogState.user},on:{save:e.userDialogState.handler},model:{value:e.userDialogState.open,callback:function(s){e.$set(e.userDialogState,"open",s)},expression:"userDialogState.open"}}):e._e(),e.apiKeyDialogState.open?t("api-key-dialog",{model:{value:e.apiKeyDialogState.open,callback:function(s){e.$set(e.apiKeyDialogState,"open",s)},expression:"apiKeyDialogState.open"}}):e._e()],2)],1)},Lhe=[],Ehe=E(q_,Ahe,Lhe,!1,null,null);const Ohe=Ehe.exports;var The=Object.defineProperty,khe=Object.getOwnPropertyDescriptor,Qb=(r,e,t,s)=>{for(var n=s>1?void 0:s?khe(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&&The(e,t,n),n};let Ru=class extends b{constructor(){super(...arguments);m(this,"open");m(this,"filter")}get customRules(){return{uniqueName:t=>!this.filters.some(s=>s.id!==this.filter.id&&s.name.toLowerCase()===t.toLowerCase())||this.$t("app.general.simple_form.error.exists")}}get types(){return[{text:this.$t("app.setting.label.contains"),value:"contains",rules:[]},{text:this.$t("app.setting.label.starts_with"),value:"starts-with",rules:[]},{text:this.$t("app.setting.label.expression"),value:"expression",rules:[this.$rules.regExpPatternValid]}]}get type(){return this.types.find(t=>{var s;return t.value===((s=this.filter)==null?void 0:s.type)})||this.types[0]}get filters(){return this.$store.getters["console/getFilters"]}handleSave(){this.$emit("save",this.filter),this.open=!1}};Qb([Fe({type:Boolean})],Ru.prototype,"open",2);Qb([w({type:Object,required:!0})],Ru.prototype,"filter",2);Ru=Qb([A({})],Ru);var Dhe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.filter.id?e.$t("app.general.label.edit_filter"):e.$t("app.general.label.add_filter"),"max-width":"500"},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,{staticClass:"pa-0"},[t(H,{attrs:{title:e.$t("app.setting.label.enable"),"r-cols":8}},[t(Ce,{staticClass:"mt-0",attrs:{"hide-details":"auto"},model:{value:e.filter.enabled,callback:function(s){e.$set(e.filter,"enabled",s)},expression:"filter.enabled"}})],1),t(R),t(H,{attrs:{title:e.$t("app.general.label.name"),"r-cols":8}},[t(ae,{staticClass:"mt-0",attrs:{filled:"",dense:"","hide-details":"auto",rules:[e.$rules.required,e.customRules.uniqueName]},model:{value:e.filter.name,callback:function(s){e.$set(e.filter,"name",s)},expression:"filter.name"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.type"),"r-cols":8}},[t(Re,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.types,"item-value":"value","item-text":"text"},model:{value:e.filter.type,callback:function(s){e.$set(e.filter,"type",s)},expression:"filter.type"}})],1),t(R),t(H,{attrs:{title:e.type.text,"r-cols":8}},[t(ae,{staticClass:"mt-0",attrs:{filled:"",dense:"",spellcheck:"false","hide-details":"auto",rules:[e.$rules.required,...e.type.rules]},model:{value:e.filter.value,callback:function(s){e.$set(e.filter,"value",s)},expression:"filter.value"}})],1)],1)],1)},Mhe=[],Rhe=E(Ru,Dhe,Mhe,!1,null,null);const Ihe=Rhe.exports;var Fhe=Object.defineProperty,Hhe=Object.getOwnPropertyDescriptor,jhe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Hhe(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&&Fhe(e,t,n),n};let Z_=class extends Y(J){constructor(){super(...arguments);m(this,"dialogState",{open:!1,filter:null})}get filters(){return this.$store.getters["console/getFilters"]}handleEditFilterDialog(t){const s=t?{...t}:{id:"",enabled:!0,name:"",type:"contains",value:""};this.dialogState={open:!0,filter:s}}handleRemoveFilter(t){this.$store.dispatch("console/onRemoveFilter",t)}handleSaveFilter(t){this.$store.dispatch("console/onSaveFilter",t)}};Z_=jhe([A({components:{ConsoleFilterDialog:Ihe}})],Z_);var Bhe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"console"}},[e._v(" "+e._s(e.$t("app.setting.title.console"))+" ")]),t(He,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(H,{attrs:{title:e.$tc("app.setting.label.filter",2)}},[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:function(s){return e.handleEditFilterDialog(null)}}},[t(S,{attrs:{small:"",left:""}},[e._v(" $plus ")]),e._v(" "+e._s(e.$t("app.setting.btn.add_filter"))+" ")],1)],1),e._l(e.filters,function(s){return[t(R,{key:`divider-${s.name}`}),t(H,{key:`filter-${s.name}`,attrs:{"r-cols":3},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(s.name)+" ")]},proxy:!0}],null,!0)},[t(M,{attrs:{fab:"",text:"","x-small":"",color:""},on:{click:function(n){return n.stopPropagation(),e.handleEditFilterDialog(s)}}},[t(S,{attrs:{color:""}},[e._v(" $edit ")])],1),t(M,{attrs:{fab:"",text:"","x-small":"",color:""},on:{click:function(n){return n.stopPropagation(),e.handleRemoveFilter(s)}}},[t(S,{attrs:{color:""}},[e._v(" $close ")])],1)],1)]}),e.dialogState.open?t("console-filter-dialog",{attrs:{filter:e.dialogState.filter},on:{save:e.handleSaveFilter},model:{value:e.dialogState.open,callback:function(s){e.$set(e.dialogState,"open",s)},expression:"dialogState.open"}}):e._e()],2)],1)},Nhe=[],Vhe=E(Z_,Bhe,Nhe,!1,null,null);const zhe=Vhe.exports;var Uhe=Object.defineProperty,Whe=Object.getOwnPropertyDescriptor,Ghe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Whe(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&&Uhe(e,t,n),n};let Y_=class extends b{get textSortOrder(){return this.$store.state.config.uiSettings.general.textSortOrder}set textSortOrder(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.textSortOrder",value:e,server:!0})}get availableTextSortOrders(){return[{value:"default",text:this.$t("app.general.label.default")},{value:"numeric-prefix",text:this.$t("app.general.label.numeric_prefix_sort")},{value:"version",text:this.$t("app.general.label.version_sort")}]}};Y_=Ghe([A({})],Y_);var qhe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"browser"}},[e._v(" "+e._s(e.$t("app.setting.title.file_browser"))+" ")]),t(He,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(H,{attrs:{title:e.$t("app.setting.label.text_sort_order")}},[t(Re,{attrs:{filled:"",dense:"","hide-details":"auto",items:e.availableTextSortOrders},model:{value:e.textSortOrder,callback:function(s){e.textSortOrder=s},expression:"textSortOrder"}})],1)],1)],1)},Zhe=[],Yhe=E(Y_,qhe,Zhe,!1,null,null);const Khe=Yhe.exports;var Xhe=Object.defineProperty,Jhe=Object.getOwnPropertyDescriptor,Qhe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Jhe(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&&Xhe(e,t,n),n};let K_=class extends Y(J){get confirmDirtyEditorClose(){return this.$store.state.config.uiSettings.editor.confirmDirtyEditorClose}set confirmDirtyEditorClose(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.editor.confirmDirtyEditorClose",value:e,server:!0})}get autoEditExtensions(){return this.$store.state.config.uiSettings.editor.autoEditExtensions}set autoEditExtensions(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.editor.autoEditExtensions",value:[...new Set(e.map(t=>t.startsWith(".")?t:`.${t}`))].sort((t,s)=>t.localeCompare(s)),server:!0})}get restoreViewState(){return this.$store.state.config.uiSettings.editor.restoreViewState}set restoreViewState(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.editor.restoreViewState",value:e,server:!0})}get availableRestoreViewState(){return[{value:"never",text:this.$tc("app.setting.label.never")},{value:"session",text:this.$tc("app.setting.label.to_browser_session_storage")},{value:"local",text:this.$tc("app.setting.label.to_browser_local_storage")}]}get codeLens(){return this.$store.state.config.uiSettings.editor.codeLens}set codeLens(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.editor.codeLens",value:e,server:!0})}handleReset(){this.$store.dispatch("config/saveByPath",{path:"uiSettings.editor",value:Hl().uiSettings.editor,server:!0})}};K_=Qhe([A({components:{}})],K_);var efe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"editor"}},[e._v(" "+e._s(e.$t("app.setting.title.file_editor"))+" ")]),t(He,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(H,{attrs:{title:e.$t("app.setting.label.confirm_dirty_editor_close")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.confirmDirtyEditorClose,callback:function(s){e.confirmDirtyEditorClose=s},expression:"confirmDirtyEditorClose"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.auto_edit_extensions")}},[t(ln,{attrs:{filled:"",dense:"","hide-selected":"","hide-details":"auto",multiple:"","small-chips":"","append-icon":"","deletable-chips":""},model:{value:e.autoEditExtensions,callback:function(s){e.autoEditExtensions=s},expression:"autoEditExtensions"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.save_and_restore_view_state")}},[t(Re,{attrs:{filled:"",dense:"","hide-details":"auto",items:e.availableRestoreViewState},model:{value:e.restoreViewState,callback:function(s){e.restoreViewState=s},expression:"restoreViewState"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.show_code_lens")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.codeLens,callback:function(s){e.codeLens=s},expression:"codeLens"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.reset")}},[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("app.setting.btn.reset"))+" ")])],1)],1)],1)},tfe=[],rfe=E(K_,efe,tfe,!1,null,null);const sfe=rfe.exports;var nfe=Object.defineProperty,ife=Object.getOwnPropertyDescriptor,k8=(r,e,t,s)=>{for(var n=s>1?void 0:s?ife(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&&nfe(e,t,n),n};let Lf=class extends Y(J){constructor(){super(...arguments);m(this,"hyperlapseCycleElement")}get hyperlapseCycleBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("hyperlapse_cycle")}get hyperlapseCycle(){var t;return(t=this.settings)==null?void 0:t.hyperlapse_cycle}setHyperlapseCycle(t){this.hyperlapseCycleElement.valid&&I.machineTimelapseSetSettings({hyperlapse_cycle:t})}get settings(){return this.$store.getters["timelapse/getSettings"]}subtitleIfBlocked(t){return t?this.$tc("app.general.tooltip.managed_by_moonraker"):""}};k8([Te("hyperlapseCycleElement")],Lf.prototype,"hyperlapseCycleElement",2);Lf=k8([A({})],Lf);var afe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.hyperlapse_cycle"),"sub-title":e.subtitleIfBlocked(e.hyperlapseCycleBlocked)}},[t(ae,{ref:"hyperlapseCycleElement",attrs:{value:e.hyperlapseCycle,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(1)],disabled:e.hyperlapseCycleBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"s"},on:{change:e.setHyperlapseCycle}})],1)],1)},ofe=[],lfe=E(Lf,afe,ofe,!1,null,null);const cfe=lfe.exports;var ufe=Object.defineProperty,dfe=Object.getOwnPropertyDescriptor,Ld=(r,e,t,s)=>{for(var n=s>1?void 0:s?dfe(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&&ufe(e,t,n),n};let Fa=class extends Y(J){constructor(){super(...arguments);m(this,"parkRetractDistanceElement");m(this,"parkRetractSpeedElement");m(this,"parkExtrudeDistanceElement");m(this,"parkExtrudeSpeedElement")}get parkRetractDistanceBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("park_retract_distance")}get parkRetractDistance(){var t;return(t=this.settings)==null?void 0:t.park_retract_distance}setParkRetractDistance(t){var s;(s=this.parkRetractDistanceElement)!=null&&s.validate()&&I.machineTimelapseSetSettings({park_retract_distance:t})}get parkRetractSpeedBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("park_retract_speed")}get parkRetractSpeed(){var t;return(t=this.settings)==null?void 0:t.park_retract_speed}setParkRetractSpeed(t){var s;(s=this.parkRetractDistanceElement)!=null&&s.validate()&&I.machineTimelapseSetSettings({park_retract_speed:t})}get parkExtrudeDistanceBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("park_extrude_distance")}get parkExtrudeDistance(){var t;return(t=this.settings)==null?void 0:t.park_extrude_distance}setParkExtrudeDistance(t){var s;(s=this.parkExtrudeDistanceElement)!=null&&s.validate()&&I.machineTimelapseSetSettings({park_extrude_distance:t})}get parkExtrudeSpeedBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("park_extrude_speed")}get parkExtrudeSpeed(){var t;return(t=this.settings)==null?void 0:t.park_extrude_speed}setParkExtrudeSpeed(t){var s;(s=this.parkRetractDistanceElement)!=null&&s.validate()&&I.machineTimelapseSetSettings({park_extrude_speed:t})}get settings(){return this.$store.getters["timelapse/getSettings"]}subtitleIfBlocked(t){return t?this.$tc("app.general.tooltip.managed_by_moonraker"):""}};Ld([Te("parkRetractDistanceElement")],Fa.prototype,"parkRetractDistanceElement",2);Ld([Te("parkRetractSpeedElement")],Fa.prototype,"parkRetractSpeedElement",2);Ld([Te("parkExtrudeDistanceElement")],Fa.prototype,"parkExtrudeDistanceElement",2);Ld([Te("parkExtrudeSpeedElement")],Fa.prototype,"parkExtrudeSpeedElement",2);Fa=Ld([A({})],Fa);var pfe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.park_retract_distance"),"sub-title":e.subtitleIfBlocked(e.parkRetractDistanceBlocked)}},[t(ae,{ref:"parkRetractDistanceElement",attrs:{value:e.parkRetractDistance,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.parkRetractDistanceBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"mm"},on:{change:e.setParkRetractDistance}})],1),t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.park_retract_speed"),"sub-title":e.subtitleIfBlocked(e.parkRetractSpeedBlocked)}},[t(ae,{ref:"parkRetractSpeedElement",attrs:{value:e.parkRetractSpeed,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThan(0)],disabled:e.parkRetractSpeedBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"mm/s"},on:{change:e.setParkRetractSpeed}})],1),t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.park_extrude_distance"),"sub-title":e.subtitleIfBlocked(e.parkExtrudeDistanceBlocked)}},[t(ae,{ref:"parkExtrudeDistanceElement",attrs:{value:e.parkExtrudeDistance,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.parkExtrudeDistanceBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"mm"},on:{change:e.setParkExtrudeDistance}})],1),t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.park_extrude_speed"),"sub-title":e.subtitleIfBlocked(e.parkExtrudeSpeedBlocked)}},[t(ae,{ref:"parkExtrudeSpeedElement",attrs:{value:e.parkExtrudeSpeed,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThan(0)],disabled:e.parkExtrudeSpeedBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"mm/s"},on:{change:e.setParkExtrudeSpeed}})],1)],1)},hfe=[],ffe=E(Fa,pfe,hfe,!1,null,null);const D8=ffe.exports;var mfe=Object.defineProperty,gfe=Object.getOwnPropertyDescriptor,e2=(r,e,t,s)=>{for(var n=s>1?void 0:s?gfe(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&&mfe(e,t,n),n};let Iu=class extends Y(J){constructor(){super(...arguments);m(this,"parkPosXElement");m(this,"parkPosYElement")}getCustomParkPosBlocked(t){return this.$store.getters["timelapse/isBlockedSetting"](`park_custom_pos_${t}`)}get parkpos(){var t;return(t=this.settings)==null?void 0:t.parkpos}set parkpos(t){I.machineTimelapseSetSettings({parkpos:t})}get parkPosX(){var t;return(t=this.settings)==null?void 0:t.park_custom_pos_x}setParkPosX(t){var s;(s=this.parkPosXElement)!=null&&s.validate()&&I.machineTimelapseSetSettings({park_custom_pos_x:t})}get parkPosY(){var t;return(t=this.settings)==null?void 0:t.park_custom_pos_y}setParkPosY(t){var s;(s=this.parkPosYElement)!=null&&s.validate()&&I.machineTimelapseSetSettings({park_custom_pos_y:t})}get bedSize(){return this.$store.getters["printer/getBedSize"]??{minX:-1/0,minY:-1/0,maxX:1/0,maxY:1/0}}get settings(){return this.$store.getters["timelapse/getSettings"]}subtitleIfBlocked(t){return t?this.$tc("app.general.tooltip.managed_by_moonraker"):""}};e2([Te("parkPosXElement")],Iu.prototype,"parkPosXElement",2);e2([Te("parkPosYElement")],Iu.prototype,"parkPosYElement",2);Iu=e2([A({components:{ParkExtrudeRetractSettings:D8}})],Iu);var vfe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[["custom","x_only"].includes(e.parkpos)?[t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.park_custom_pos_x"),"sub-title":e.subtitleIfBlocked(e.getCustomParkPosBlocked("x"))}},[t(ae,{ref:"parkPosXElement",attrs:{value:e.parkPosX,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(e.bedSize.minX),e.$rules.numberLessThanOrEqual(e.bedSize.maxX)],disabled:e.getCustomParkPosBlocked("x"),"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"mm"},on:{change:e.setParkPosX}})],1)]:e._e(),["custom","y_only"].includes(e.parkpos)?[t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.park_custom_pos_y"),"sub-title":e.subtitleIfBlocked(e.getCustomParkPosBlocked("y"))}},[t(ae,{ref:"parkPosYElement",attrs:{value:e.parkPosY,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(e.bedSize.minY),e.$rules.numberLessThanOrEqual(e.bedSize.maxY)],disabled:e.getCustomParkPosBlocked("y"),"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"mm"},on:{change:e.setParkPosY}})],1)]:e._e()],2)},_fe=[],yfe=E(Iu,vfe,_fe,!1,null,null);const bfe=yfe.exports;var $fe=Object.defineProperty,wfe=Object.getOwnPropertyDescriptor,eg=(r,e,t,s)=>{for(var n=s>1?void 0:s?wfe(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&&$fe(e,t,n),n};let pl=class extends Y(J){constructor(){super(...arguments);m(this,"parkTimeElement");m(this,"parkTravelSpeedElement");m(this,"parkPosDZElement")}get parkPositions(){return["front_left","front_right","center","back_left","back_right","x_only","y_only","custom"].map(s=>({text:this.$tc(`app.timelapse.setting.parkpos.${s}`),value:s}))}get parkheadBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("parkhead")}get parkhead(){var t;return(t=this.settings)==null?void 0:t.parkhead}set parkhead(t){I.machineTimelapseSetSettings({parkhead:t})}get parkposBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("parkpos")}get parkpos(){var t;return(t=this.settings)==null?void 0:t.parkpos}set parkpos(t){I.machineTimelapseSetSettings({parkpos:t})}get parkTimeBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("park_time")}get parkTime(){var t;return((t=this.settings)==null?void 0:t.park_time)*1e3}setParkTime(t){var s;(s=this.parkTimeElement)!=null&&s.validate()&&I.machineTimelapseSetSettings({park_time:t/1e3})}get parkTravelSpeedBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("park_travel_speed")}get parkTravelSpeed(){var t;return(t=this.settings)==null?void 0:t.park_travel_speed}setParkTravelSpeed(t){var s;(s=this.parkTravelSpeedElement)!=null&&s.validate()&&I.machineTimelapseSetSettings({park_travel_speed:t})}get parkPosZBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("park_custom_pos_dz")}get parkPosZ(){var t;return(t=this.settings)==null?void 0:t.park_custom_pos_dz}setParkPosZ(t){var s;(s=this.parkPosDZElement)!=null&&s.validate()&&I.machineTimelapseSetSettings({park_custom_pos_dz:t})}get firmwareRetractBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("fw_retract")}get firmwareRetract(){var t;return(t=this.settings)==null?void 0:t.fw_retract}set firmwareRetract(t){I.machineTimelapseSetSettings({fw_retract:t})}get settings(){return this.$store.getters["timelapse/getSettings"]}subtitleIfBlocked(t){return t?this.$tc("app.general.tooltip.managed_by_moonraker"):""}};eg([Te("parkTimeElement")],pl.prototype,"parkTimeElement",2);eg([Te("parkTravelSpeedElement")],pl.prototype,"parkTravelSpeedElement",2);eg([Te("parkPosDZElement")],pl.prototype,"parkPosDZElement",2);pl=eg([A({components:{CustomParkPositionSettings:bfe,ParkExtrudeRetractSettings:D8}})],pl);var Sfe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.parkhead"),"sub-title":e.subtitleIfBlocked(e.parkheadBlocked)}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":"",disabled:e.parkheadBlocked},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.parkhead,callback:function(s){e.parkhead=s},expression:"parkhead"}})],1),e.parkhead?t("div",[t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.park_time"),"sub-title":e.subtitleIfBlocked(e.parkTimeBlocked)}},[t(ae,{ref:"parkTimeElement",attrs:{value:e.parkTime,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.parkTimeBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"ms"},on:{change:e.setParkTime}})],1),t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.park_travel_speed"),"sub-title":e.subtitleIfBlocked(e.parkTravelSpeedBlocked)}},[t(ae,{ref:"parkTravelSpeedElement",attrs:{value:e.parkTravelSpeed,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.parkTravelSpeedBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"mm/s"},on:{change:e.setParkTravelSpeed}})],1),t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.parkpos.label"),"sub-title":e.subtitleIfBlocked(e.parkposBlocked)}},[t(Re,{attrs:{filled:"",dense:"","hide-details":"auto",items:e.parkPositions,disabled:e.parkposBlocked,"item-value":"value","item-text":"text"},model:{value:e.parkpos,callback:function(s){e.parkpos=s},expression:"parkpos"}})],1),["custom","x_only","y_only"].includes(e.parkpos)?t("custom-park-position-settings"):e._e(),t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.park_custom_pos_dz"),"sub-title":e.subtitleIfBlocked(e.parkPosZBlocked)}},[t(ae,{ref:"parkPosDZElement",attrs:{value:e.parkPosZ,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.parkPosZBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"mm"},on:{change:e.setParkPosZ}})],1),t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.fw_retract"),"sub-title":e.subtitleIfBlocked(e.firmwareRetractBlocked)}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":"",disabled:e.firmwareRetractBlocked},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.firmwareRetract,callback:function(s){e.firmwareRetract=s},expression:"firmwareRetract"}})],1),e.firmwareRetract?e._e():t("park-extrude-retract-settings")],1):e._e()],1)},xfe=[],Cfe=E(pl,Sfe,xfe,!1,null,null);const Pfe=Cfe.exports;var Afe=Object.defineProperty,Lfe=Object.getOwnPropertyDescriptor,M8=(r,e,t,s)=>{for(var n=s>1?void 0:s?Lfe(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&&Afe(e,t,n),n};let Ef=class extends Y(J){constructor(){super(...arguments);m(this,"delayCompElement");m(this,"renderSettingsDialogOpen",!1)}get supportedModes(){return[{text:this.$tc("app.timelapse.setting.mode_layermacro"),value:"layermacro"}]}get cameras(){return this.$store.getters["webcams/getWebcams"].map(s=>({text:s.name,value:s.uid,disabled:!s.enabled}))}get cameraBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("camera")}get camera(){var t;return(t=this.settings)==null?void 0:t.camera}set camera(t){I.machineTimelapseSetSettings({camera:t})}get modeBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("mode")}get mode(){var t;return(t=this.settings)==null?void 0:t.mode}set mode(t){I.machineTimelapseSetSettings({mode:t})}get delayCompBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("stream_delay_compensation")}get delayComp(){var t;return((t=this.settings)==null?void 0:t.stream_delay_compensation)*1e3}setDelayComp(t){var s;(s=this.delayCompElement)!=null&&s.validate()&&I.machineTimelapseSetSettings({stream_delay_compensation:t/1e3})}get verboseGcodeBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("gcode_verbose")}get verboseGcode(){var t;return(t=this.settings)==null?void 0:t.gcode_verbose}set verboseGcode(t){I.machineTimelapseSetSettings({gcode_verbose:t})}get settings(){return this.$store.getters["timelapse/getSettings"]}subtitleIfBlocked(t){return t?this.$tc("app.general.tooltip.managed_by_moonraker"):""}handleReset(){const t=Object.entries(Ub()).filter(([s])=>!this.$store.getters["timelapse/isBlockedSetting"](s));I.machineTimelapseSetSettings(Object.fromEntries(t))}};M8([Te("delayCompElement")],Ef.prototype,"delayCompElement",2);Ef=M8([A({components:{ToolheadParkingSettings:Pfe,HyperlapseSettings:cfe,TimelapseRenderSettingsDialog:g8}})],Ef);var Efe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"timelapse"}},[e._v(" "+e._s(e.$t("app.general.title.timelapse"))+" ")]),t(He,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(H,{attrs:{title:e.$tc("app.general.title.camera",1),"sub-title":e.subtitleIfBlocked(e.cameraBlocked)}},[t(Re,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.cameras,disabled:e.cameraBlocked},model:{value:e.camera,callback:function(s){e.camera=s},expression:"camera"}})],1),t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.mode"),"sub-title":e.subtitleIfBlocked(e.modeBlocked)}},[t(Re,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.supportedModes,disabled:e.modeBlocked},model:{value:e.mode,callback:function(s){e.mode=s},expression:"mode"}})],1),e.mode==="hyperlapse"?t("hyperlapse-settings"):e._e(),t("toolhead-parking-settings"),t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.stream_delay_compensation"),"sub-title":e.subtitleIfBlocked(e.delayCompBlocked)}},[t(ae,{ref:"delayCompElement",attrs:{value:e.delayComp,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.delayCompBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"ms"},on:{change:e.setDelayComp}})],1),t(R),t(H,{attrs:{title:e.$t("app.timelapse.setting.gcode_verbose"),"sub-title":e.subtitleIfBlocked(e.verboseGcodeBlocked)}},[t(Ce,{attrs:{"hide-details":"",disabled:e.verboseGcodeBlocked},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.verboseGcode,callback:function(s){e.verboseGcode=s},expression:"verboseGcode"}})],1),t(R),t(H,{attrs:{title:e.$tc("app.timelapse.title.render_settings")}},[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:function(s){e.renderSettingsDialogOpen=!0}}},[t(S,{attrs:{small:"",left:""}},[e._v(" $pencil ")]),e._v(" "+e._s(e.$t("app.general.btn.edit"))+" ")],1)],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.reset")}},[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("app.setting.btn.reset"))+" ")])],1)],1),e.renderSettingsDialogOpen?t("timelapse-render-settings-dialog",{attrs:{renderable:!1},model:{value:e.renderSettingsDialogOpen,callback:function(s){e.renderSettingsDialogOpen=s},expression:"renderSettingsDialogOpen"}}):e._e()],1)},Ofe=[],Tfe=E(Ef,Efe,Ofe,!1,null,null);const kfe=Tfe.exports;var Dfe=Object.defineProperty,Mfe=Object.getOwnPropertyDescriptor,Rfe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Mfe(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&&Dfe(e,t,n),n};let X_=class extends Y(J){get autoSpoolSelectionDialog(){return this.$store.state.config.uiSettings.spoolman.autoSpoolSelectionDialog}set autoSpoolSelectionDialog(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.autoSpoolSelectionDialog",value:e,server:!0})}get enabledWebcams(){return this.$store.getters["webcams/getEnabledWebcams"]}get supportedCameras(){return[{text:this.$tc("app.setting.label.none"),value:null},...this.enabledWebcams.map(e=>({text:e.name,value:e.uid,disabled:e.service==="iframe"}))]}get autoOpenQRDetectionCameraId(){return this.$store.state.config.uiSettings.spoolman.autoOpenQRDetectionCamera}set autoOpenQRDetectionCameraId(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.autoOpenQRDetectionCamera",value:e,server:!0})}get preferDeviceCamera(){return this.$store.state.config.uiSettings.spoolman.preferDeviceCamera}set preferDeviceCamera(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.preferDeviceCamera",value:e,server:!0})}get autoSelectSpoolOnMatch(){return this.$store.state.config.uiSettings.spoolman.autoSelectSpoolOnMatch}set autoSelectSpoolOnMatch(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.autoSelectSpoolOnMatch",value:e,server:!0})}get warnOnNotEnoughFilament(){return this.$store.state.config.uiSettings.spoolman.warnOnNotEnoughFilament}set warnOnNotEnoughFilament(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.warnOnNotEnoughFilament",value:e,server:!0})}get warnOnFilamentTypeMismatch(){return this.$store.state.config.uiSettings.spoolman.warnOnFilamentTypeMismatch}set warnOnFilamentTypeMismatch(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.warnOnFilamentTypeMismatch",value:e,server:!0})}get remainingFilamentUnit(){return this.$store.state.config.uiSettings.spoolman.remainingFilamentUnit}set remainingFilamentUnit(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.remainingFilamentUnit",value:e,server:!0})}handleReset(){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman",value:Hl().uiSettings.spoolman,server:!0})}};X_=Rfe([A({components:{}})],X_);var Ife=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"spoolman"}},[e._v(" "+e._s(e.$t("app.spoolman.title.spoolman"))+" ")]),t(He,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(H,{attrs:{title:e.$t("app.spoolman.setting.show_spool_selection_dialog_on_print_start")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.autoSpoolSelectionDialog,callback:function(s){e.autoSpoolSelectionDialog=s},expression:"autoSpoolSelectionDialog"}})],1),t(R),t(H,{attrs:{title:e.$tc("app.spoolman.setting.auto_open_qr_camera")}},[t(Re,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.supportedCameras},model:{value:e.autoOpenQRDetectionCameraId,callback:function(s){e.autoOpenQRDetectionCameraId=s},expression:"autoOpenQRDetectionCameraId"}})],1),t(R),t(H,{attrs:{title:e.$t("app.spoolman.setting.prefer_device_camera")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.preferDeviceCamera,callback:function(s){e.preferDeviceCamera=s},expression:"preferDeviceCamera"}})],1),t(R),t(H,{attrs:{title:e.$t("app.spoolman.setting.auto_select_spool_on_match")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.autoSelectSpoolOnMatch,callback:function(s){e.autoSelectSpoolOnMatch=s},expression:"autoSelectSpoolOnMatch"}})],1),t(R),t(H,{attrs:{title:e.$t("app.spoolman.setting.warn_on_not_enough_filament")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.warnOnNotEnoughFilament,callback:function(s){e.warnOnNotEnoughFilament=s},expression:"warnOnNotEnoughFilament"}})],1),t(R),t(H,{attrs:{title:e.$t("app.spoolman.setting.warn_on_filament_type_mismatch")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.warnOnFilamentTypeMismatch,callback:function(s){e.warnOnFilamentTypeMismatch=s},expression:"warnOnFilamentTypeMismatch"}})],1),t(R),t(H,{attrs:{title:e.$tc("app.spoolman.setting.remaining_filament_unit")}},[t(Re,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:[{text:e.$tc("app.spoolman.label.weight"),value:"weight"},{text:e.$tc("app.spoolman.label.length"),value:"length"}]},model:{value:e.remainingFilamentUnit,callback:function(s){e.remainingFilamentUnit=s},expression:"remainingFilamentUnit"}})],1),t(R),t(H,{attrs:{title:e.$t("app.setting.label.reset")}},[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("app.setting.btn.reset"))+" ")])],1)],1)],1)},Ffe=[],Hfe=E(X_,Ife,Ffe,!1,null,null);const jfe=Hfe.exports;var Bfe=Object.defineProperty,Nfe=Object.getOwnPropertyDescriptor,Vfe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Nfe(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&&Bfe(e,t,n),n};let J_=class extends Y(J){get supportsVersions(){return this.$store.getters["server/componentSupport"]("update_manager")}get supportsAuth(){return this.$store.getters["server/componentSupport"]("authorization")}get supportsTimelapse(){return this.$store.getters["server/componentSupport"]("timelapse")}get supportsSpoolman(){return this.$store.getters["server/componentSupport"]("spoolman")}};J_=Vfe([A({components:{SpoolmanSettings:jfe,TimelapseSettings:kfe,MacroSettings:Mde,GeneralSettings:Vde,PresetSettings:tpe,CameraSettings:fpe,ToolheadSettings:$pe,ThemeSettings:Lpe,VersionSettings:qpe,GcodePreviewSettings:ehe,AuthSettings:Ohe,ConsoleSettings:zhe,FileBrowserSettings:Khe,FileEditorSettings:sfe}})],J_);var zfe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,{attrs:{dense:e.$vuetify.breakpoint.smAndDown,justify:"center"}},[t(B,{attrs:{cols:"12",lg:"8"}},[e.authenticated&&e.socketConnected?t("router-view"):e._e(),e.$route.matched.length===1?t("div",[t("general-settings"),t("theme-settings"),e.supportsAuth?t("auth-settings"):e._e(),t("console-settings"),t("file-browser-settings"),t("file-editor-settings"),t("macro-settings"),t("camera-settings"),t("toolhead-settings"),t("preset-settings"),t("gcode-preview-settings"),e.supportsTimelapse?t("timelapse-settings"):e._e(),e.supportsSpoolman?t("spoolman-settings"):e._e(),e.supportsVersions?t("version-settings"):e._e()],1):e._e()],1)],1)},Ufe=[],Wfe=E(J_,zfe,Ufe,!1,null,null);const Gfe=Wfe.exports;var qfe=Object.defineProperty,Zfe=Object.getOwnPropertyDescriptor,Yfe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Zfe(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&&qfe(e,t,n),n};let Q_=class extends b{get isVisible(){return!this.$vuetify.breakpoint.mobile}get items(){return[{name:this.$t("app.setting.title.general"),hash:"#general",visible:!0},{name:this.$t("app.setting.title.theme"),hash:"#theme",visible:!0},{name:this.$t("app.setting.title.authentication"),hash:"#auth",visible:!0},{name:this.$t("app.setting.title.console"),hash:"#console",visible:!0},{name:this.$t("app.setting.title.file_browser"),hash:"#browser",visible:!0},{name:this.$t("app.setting.title.file_editor"),hash:"#editor",visible:!0},{name:this.$t("app.setting.title.macros"),hash:"#macros",visible:!0},{name:this.$tc("app.setting.title.camera",2),hash:"#camera",visible:!0},{name:this.$t("app.setting.title.tool"),hash:"#toolhead",visible:!0},{name:this.$t("app.setting.title.thermal_presets"),hash:"#presets",visible:!0},{name:this.$t("app.setting.title.gcode_preview"),hash:"#gcodePreview",visible:!0},{name:this.$t("app.general.title.timelapse"),hash:"#timelapse",visible:this.supportsTimelapse},{name:this.$t("app.spoolman.title.spoolman"),hash:"#spoolman",visible:this.supportsSpoolman},{name:this.$t("app.version.title"),hash:"#versions",visible:this.supportsVersions}]}get supportsVersions(){return this.$store.getters["server/componentSupport"]("update_manager")}get supportsTimelapse(){return this.$store.getters["server/componentSupport"]("timelapse")}get supportsSpoolman(){return this.$store.getters["server/componentSupport"]("spoolman")}};Q_=Yfe([A({})],Q_);var Kfe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Mt,{staticClass:"grow pt-0",attrs:{dense:"",width:"180",color:e.$vuetify.theme.dark?"#1E1E20":"#FFFFFF"}},[e._l(e.items,function(s){return[s.visible?t(Se,{key:s.name,attrs:{to:`/settings${s.hash}`,exact:!1,link:""}},[t(Ee,[t(xe,[e._v(e._s(s.name))])],1)],1):e._e()]})],2)},Xfe=[],Jfe=E(Q_,Kfe,Xfe,!1,null,null);const XS=Jfe.exports;var Qfe=Object.defineProperty,eme=Object.getOwnPropertyDescriptor,t2=(r,e,t,s)=>{for(var n=s>1?void 0:s?eme(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&&Qfe(e,t,n),n};let Fu=class extends b{constructor(){super(...arguments);m(this,"open");m(this,"macro");m(this,"assign",null);m(this,"newMacro",null)}mounted(){this.newMacro={...this.macro}}get categories(){const e=[...this.$store.getters["macros/getCategories"]];return e.unshift({name:this.$t("app.general.label.uncategorized"),id:"0"}),e}get color(){var e;return this.newMacro&&this.newMacro.color!==""?this.newMacro.color:(e=this.$vuetify.theme.currentTheme.secondary)==null?void 0:e.toString()}set color(e){this.newMacro&&(this.newMacro.color=e)}handleResetColor(){this.newMacro&&(this.newMacro.color="")}handleSave(){this.$store.dispatch("macros/saveMacro",this.newMacro),this.open=!1}};t2([Fe({type:Boolean})],Fu.prototype,"open",2);t2([w({type:Object,required:!0})],Fu.prototype,"macro",2);Fu=t2([A({})],Fu);var tme=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.newMacro?t(st,{attrs:{title:e.newMacro.name.toUpperCase(),"sub-title":e.newMacro.config.description,"max-width":"480"},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,{staticClass:"pa-0"},[t(H,{attrs:{title:e.$t("app.general.label.alias")}},[t(ae,{attrs:{dense:"",filled:"","hide-details":""},model:{value:e.newMacro.alias,callback:function(s){e.$set(e.newMacro,"alias",s)},expression:"newMacro.alias"}})],1),t(R),t(H,{attrs:{title:e.$t("app.general.label.category")}},[t(Re,{attrs:{items:e.categories,"hide-details":"",dense:"",filled:"","item-value":"id","item-text":"name"},model:{value:e.newMacro.categoryId,callback:function(s){e.$set(e.newMacro,"categoryId",s)},expression:"newMacro.categoryId"}})],1),t(R),t(H,{attrs:{title:e.$t("app.general.label.color")}},[t(M,{staticClass:"mr-1",attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleResetColor}},[e._v(" "+e._s(e.$t("app.setting.btn.reset"))+" ")]),t(ol,{attrs:{title:e.$t("app.general.btn.set_color")},model:{value:e.color,callback:function(s){e.color=s},expression:"color"}})],1),t(R),t(H,{attrs:{title:e.$t("app.general.label.disabled_while_printing")}},[t(Ce,{staticClass:"mt-0 pt-0",attrs:{color:"primary","hide-details":""},model:{value:e.newMacro.disabledWhilePrinting,callback:function(s){e.$set(e.newMacro,"disabledWhilePrinting",s)},expression:"newMacro.disabledWhilePrinting"}})],1),t(R),t(H,{attrs:{title:e.$t("app.general.label.visible")}},[t(Ce,{staticClass:"mt-0 pt-0",attrs:{color:"primary","hide-details":""},model:{value:e.newMacro.visible,callback:function(s){e.$set(e.newMacro,"visible",s)},expression:"newMacro.visible"}})],1)],1)],1):e._e()},rme=[],sme=E(Fu,tme,rme,!1,null,null);const nme=sme.exports;/*!
|
||
* 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.devtools!==void 0?e.devtools:jr.config.devtools;u&&ome(this)},r2={state:{configurable:!0}};r2.state.get=function(){return this._vm._data.$$state};r2.state.set=function(r){};ps.prototype.commit=function(e,t,s){var n=this,i=Of(e,t,s),a=i.type,o=i.payload,l={type:a,payload:o},c=this._mutations[a];c&&(this._withCommit(function(){c.forEach(function(d){d(o)})}),this._subscribers.slice().forEach(function(u){return u(l,n.state)}))};ps.prototype.dispatch=function(e,t){var s=this,n=Of(e,t),i=n.type,a=n.payload,o={type:i,payload:a},l=this._actions[i];if(l){try{this._actionSubscribers.slice().filter(function(u){return u.before}).forEach(function(u){return u.before(o,s.state)})}catch{}var c=l.length>1?Promise.all(l.map(function(u){return u(a)})):l[0](a);return new Promise(function(u,d){c.then(function(p){try{s._actionSubscribers.filter(function(h){return h.after}).forEach(function(h){return h.after(o,s.state)})}catch{}u(p)},function(p){try{s._actionSubscribers.filter(function(h){return h.error}).forEach(function(h){return h.error(o,s.state,p)})}catch{}d(p)})})}};ps.prototype.subscribe=function(e,t){return H8(e,this._subscribers,t)};ps.prototype.subscribeAction=function(e,t){var s=typeof e=="function"?{before:e}:e;return H8(s,this._actionSubscribers,t)};ps.prototype.watch=function(e,t,s){var n=this;return this._watcherVM.$watch(function(){return e(n.state,n.getters)},t,s)};ps.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._vm._data.$$state=e})};ps.prototype.registerModule=function(e,t,s){s===void 0&&(s={}),typeof e=="string"&&(e=[e]),this._modules.register(e,t),tg(this,this.state,e,this._modules.get(e),s.preserveState),s2(this,this.state)};ps.prototype.unregisterModule=function(e){var t=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var s=n2(t.state,e.slice(0,-1));jr.delete(s,e[e.length-1])}),j8(this)};ps.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)};ps.prototype.hotUpdate=function(e){this._modules.update(e),j8(this,!0)};ps.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t};Object.defineProperties(ps.prototype,r2);function H8(r,e,t){return e.indexOf(r)<0&&(t&&t.prepend?e.unshift(r):e.push(r)),function(){var s=e.indexOf(r);s>-1&&e.splice(s,1)}}function j8(r,e){r._actions=Object.create(null),r._mutations=Object.create(null),r._wrappedGetters=Object.create(null),r._modulesNamespaceMap=Object.create(null);var t=r.state;tg(r,t,[],r._modules.root,!0),s2(r,t,e)}function s2(r,e,t){var s=r._vm;r.getters={},r._makeLocalGettersCache=Object.create(null);var n=r._wrappedGetters,i={};Bl(n,function(o,l){i[l]=ume(o,r),Object.defineProperty(r.getters,l,{get:function(){return r._vm[l]},enumerable:!0})});var a=jr.config.silent;jr.config.silent=!0,r._vm=new jr({data:{$$state:e},computed:i}),jr.config.silent=a,r.strict&&gme(r),s&&(t&&r._withCommit(function(){s._data.$$state=null}),jr.nextTick(function(){return s.$destroy()}))}function tg(r,e,t,s,n){var i=!t.length,a=r._modules.getNamespace(t);if(s.namespaced&&(r._modulesNamespaceMap[a],r._modulesNamespaceMap[a]=s),!i&&!n){var o=n2(e,t.slice(0,-1)),l=t[t.length-1];r._withCommit(function(){jr.set(o,l,s.state)})}var c=s.context=dme(r,a,t);s.forEachMutation(function(u,d){var p=a+d;hme(r,p,u,c)}),s.forEachAction(function(u,d){var p=u.root?d:a+d,h=u.handler||u;fme(r,p,h,c)}),s.forEachGetter(function(u,d){var p=a+d;mme(r,p,u,c)}),s.forEachChild(function(u,d){tg(r,e,t.concat(d),u,n)})}function dme(r,e,t){var s=e==="",n={dispatch:s?r.dispatch:function(i,a,o){var l=Of(i,a,o),c=l.payload,u=l.options,d=l.type;return(!u||!u.root)&&(d=e+d),r.dispatch(d,c)},commit:s?r.commit:function(i,a,o){var l=Of(i,a,o),c=l.payload,u=l.options,d=l.type;(!u||!u.root)&&(d=e+d),r.commit(d,c,u)}};return Object.defineProperties(n,{getters:{get:s?function(){return r.getters}:function(){return pme(r,e)}},state:{get:function(){return n2(r.state,t)}}}),n}function pme(r,e){if(!r._makeLocalGettersCache[e]){var t={},s=e.length;Object.keys(r.getters).forEach(function(n){if(n.slice(0,s)===e){var i=n.slice(s);Object.defineProperty(t,i,{get:function(){return r.getters[n]},enumerable:!0})}}),r._makeLocalGettersCache[e]=t}return r._makeLocalGettersCache[e]}function hme(r,e,t,s){var n=r._mutations[e]||(r._mutations[e]=[]);n.push(function(a){t.call(r,s.state,a)})}function fme(r,e,t,s){var n=r._actions[e]||(r._actions[e]=[]);n.push(function(a){var o=t.call(r,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:r.getters,rootState:r.state},a);return cme(o)||(o=Promise.resolve(o)),r._devtoolHook?o.catch(function(l){throw r._devtoolHook.emit("vuex:error",l),l}):o})}function mme(r,e,t,s){r._wrappedGetters[e]||(r._wrappedGetters[e]=function(i){return t(s.state,s.getters,i.state,i.getters)})}function gme(r){r._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function n2(r,e){return e.reduce(function(t,s){return t[s]},r)}function Of(r,e,t){return R8(r)&&r.type&&(t=e,e=r,r=r.type),{type:r,payload:e,options:t}}function B8(r){jr&&r===jr||(jr=r,ime(jr))}var N8=sg(function(r,e){var t={};return rg(e).forEach(function(s){var n=s.key,i=s.val;t[n]=function(){var o=this.$store.state,l=this.$store.getters;if(r){var c=ng(this.$store,"mapState",r);if(!c)return;o=c.context.state,l=c.context.getters}return typeof i=="function"?i.call(this,o,l):o[i]},t[n].vuex=!0}),t}),V8=sg(function(r,e){var t={};return rg(e).forEach(function(s){var n=s.key,i=s.val;t[n]=function(){for(var o=[],l=arguments.length;l--;)o[l]=arguments[l];var c=this.$store.commit;if(r){var u=ng(this.$store,"mapMutations",r);if(!u)return;c=u.context.commit}return typeof i=="function"?i.apply(this,[c].concat(o)):c.apply(this.$store,[i].concat(o))}}),t}),z8=sg(function(r,e){var t={};return rg(e).forEach(function(s){var n=s.key,i=s.val;i=r+i,t[n]=function(){if(!(r&&!ng(this.$store,"mapGetters",r)))return this.$store.getters[i]},t[n].vuex=!0}),t}),U8=sg(function(r,e){var t={};return rg(e).forEach(function(s){var n=s.key,i=s.val;t[n]=function(){for(var o=[],l=arguments.length;l--;)o[l]=arguments[l];var c=this.$store.dispatch;if(r){var u=ng(this.$store,"mapActions",r);if(!u)return;c=u.context.dispatch}return typeof i=="function"?i.apply(this,[c].concat(o)):c.apply(this.$store,[i].concat(o))}}),t}),vme=function(r){return{mapState:N8.bind(null,r),mapGetters:z8.bind(null,r),mapMutations:V8.bind(null,r),mapActions:U8.bind(null,r)}};function rg(r){return _me(r)?Array.isArray(r)?r.map(function(e){return{key:e,val:e}}):Object.keys(r).map(function(e){return{key:e,val:r[e]}}):[]}function _me(r){return Array.isArray(r)||R8(r)}function sg(r){return function(e,t){return typeof e!="string"?(t=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),r(e,t)}}function ng(r,e,t){var s=r._modulesNamespaceMap[t];return s}function yme(r){r===void 0&&(r={});var e=r.collapsed;e===void 0&&(e=!0);var t=r.filter;t===void 0&&(t=function(u,d,p){return!0});var s=r.transformer;s===void 0&&(s=function(u){return u});var n=r.mutationTransformer;n===void 0&&(n=function(u){return u});var i=r.actionFilter;i===void 0&&(i=function(u,d){return!0});var a=r.actionTransformer;a===void 0&&(a=function(u){return u});var o=r.logMutations;o===void 0&&(o=!0);var l=r.logActions;l===void 0&&(l=!0);var c=r.logger;return c===void 0&&(c=console),function(u){var d=e0(u.state);typeof c>"u"||(o&&u.subscribe(function(p,h){var f=e0(h);if(t(p,d,f)){var g=ex(),v=n(p),y="mutation "+p.type+g;JS(c,y,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",s(d)),c.log("%c mutation","color: #03A9F4; font-weight: bold",v),c.log("%c next state","color: #4CAF50; font-weight: bold",s(f)),QS(c)}d=f}),l&&u.subscribeAction(function(p,h){if(i(p,h)){var f=ex(),g=a(p),v="action "+p.type+f;JS(c,v,e),c.log("%c action","color: #03A9F4; font-weight: bold",g),QS(c)}}))}}function JS(r,e,t){var s=t?r.groupCollapsed:r.group;try{s.call(r,e)}catch{r.log(e)}}function QS(r){try{r.groupEnd()}catch{r.log("—— log end ——")}}function ex(){var r=new Date;return" @ "+mp(r.getHours(),2)+":"+mp(r.getMinutes(),2)+":"+mp(r.getSeconds(),2)+"."+mp(r.getMilliseconds(),3)}function bme(r,e){return new Array(e+1).join(r)}function mp(r,e){return bme("0",e-r.toString().length)+r}var W8={Store:ps,install:B8,version:"3.6.2",mapState:N8,mapMutations:V8,mapGetters:z8,mapActions:U8,createNamespacedHelpers:vme,createLogger:yme};const G8=()=>({apiConnected:!0,open:!1,connecting:!1,disconnecting:!1,ready:!1,acceptingNotifications:!1,error:null,connectionId:null}),$me=G8(),wme={getConnectionState:r=>r.open,getConnectingState:r=>r.connecting,getApiConnected:r=>r.apiConnected},hl=(r,e)=>r in e;let tx;const Sme={async reset({commit:r}){r("setReset")},async onSocketOpen({commit:r,rootState:e},t){r("setSocketOpen",t),t===!0&&(I.serverInfo(),I.identify({client_name:he.APP_NAME,version:`${e.version.fluidd.version||"0.0.0"}-${e.version.fluidd.hash||"unknown"}`.trim(),type:"web",url:he.GITHUB_REPO}),I.serverFilesListRoot("config"))},async onSocketClose({dispatch:r,commit:e,state:t},s){const n=t.disconnecting,i=["server","power","webcams","jobQueue","charts","socket","wait","gcodePreview"];s.wasClean&&n&&(await r("reset",i,{root:!0}),e("setSocketConnecting",!0),b.$socket.connect()),s.wasClean&&!n&&(e("setSocketConnecting",!1),e("setSocketOpen",!1)),s.wasClean||(await r("reset",i,{root:!0}),e("setSocketConnecting",!0),e("setSocketOpen",!1))},async onSocketConnecting({commit:r},e){r("setSocketConnecting",e)},async onSocketError({commit:r},e){if(e.code>=400&&e.code<500){let t="";try{t=JSON.parse(e.message.replace(/'/g,'"')).message}catch{t=e.message}mr.$emit(t,{type:"error"})}e.code===503&&(r("printer/setPrinterInfo",{state:"error",state_message:e.message},{root:!0}),clearTimeout(tx),tx=window.setTimeout(()=>{I.serverInfo()},he.KLIPPY_RETRY_DELAY))},async onConnectionId({commit:r},{connection_id:e}){r("setConnectionId",e)},async onServerRead({dispatch:r},e){const{namespace:t,key:s,value:n}=e;if(hl(t,he.MOONRAKER_DB)){const i=he.MOONRAKER_DB[t].ROOTS,a=s&&hl(s,i)?i[s]:Object.values(i)[0];r(a.dispatch,n,{root:!0})}},async notifyStatusUpdate({state:r,commit:e,dispatch:t},s){await t("printer/onNotifyStatusUpdate",s,{root:!0}),r.ready||e("setSocketReadyState",!0)},async notifyGcodeResponse({dispatch:r},e){r("console/onAddConsoleEntry",{message:`${he.CONSOLE_RECEIVE_PREFIX}${e}`},{root:!0})},async notifyKlippyDisconnected(){I.serverInfo()},async notifyKlippyShutdown(){I.serverInfo()},async notifyKlippyReady(){ye.debug("Klippy Ready")},async notifyFilelistChanged({dispatch:r},e){r("files/notify"+am(kc(e.action)),e,{root:!0})},async notifyMetadataUpdate({dispatch:r},e){r("files/onFileMetaData",e,{root:!0})},async notifyPowerChanged({dispatch:r},e){r("power/onStatus",{[e.device]:e.status},{root:!0})},async notifyUpdateResponse({dispatch:r},e){r("version/onUpdateResponse",e,{root:!0})},async notifyUpdateRefreshed({dispatch:r},e){r("version/onUpdateStatus",e,{root:!0})},async notifyHistoryChanged({dispatch:r},e){r("history/onHistoryChange",e,{root:!0})},async notifyCpuThrottled({dispatch:r},e){r("server/onMachineThrottledState",e,{root:!0})},async notifyProcStatUpdate({dispatch:r},e){r("server/onMachineProcStats",e,{root:!0})},async notifyUserCreated({dispatch:r},e){r("auth/onUserCreated",e,{root:!0})},async notifyUserDeleted({dispatch:r},e){r("auth/onUserDeleted",e,{root:!0})},async notifyServiceStateChanged({dispatch:r},e){r("server/onServiceStateChanged",e,{root:!0})},async notifyTimelapseEvent({dispatch:r},e){r("timelapse/onEvent",e,{root:!0})},async notifyAnnouncementUpdate({dispatch:r},e){r("announcements/onAnnouncementUpdate",e,{root:!0})},async notifyAnnouncementDismissed({dispatch:r},e){r("announcements/onAnnouncementDismissed",e,{root:!0})},async notifyAnnouncementWake({dispatch:r},e){r("announcements/onAnnouncementWake",e,{root:!0})},async notifyWebcamsChanged({dispatch:r},e){r("webcams/onWebcamsChanged",e,{root:!0})},async notifySensorUpdate({dispatch:r},e){r("sensors/onSensorUpdate",e,{root:!0})},async notifyJobQueueChanged({dispatch:r},e){r("jobQueue/onJobQueueChanged",e,{root:!0})},async notifyActiveSpoolSet({dispatch:r},e){r("spoolman/onActiveSpool",e,{root:!0})},async notifySpoolmanStatusChanged({dispatch:r},e){r("spoolman/onStatusChanged",e.spoolman_connected,{root:!0})}},xme={setReset(r){Object.assign(r,G8())},setSocketOpen(r,e){r.open!==e&&(r.open=e),r.disconnecting&&(r.disconnecting=!1)},setSocketConnecting(r,e){r.connecting!==e&&(r.connecting=e)},setSocketReadyState(r,e){r.ready=e},setAcceptNotifications(r,e){r.acceptingNotifications=e},setSocketDisconnecting(r,e){r.disconnecting=e},setApiConnected(r,e){r.apiConnected=e},setConnectionId(r,e){r.connectionId=e}},Cme=!0,Pme={namespaced:Cme,state:$me,getters:wme,actions:Sme,mutations:xme},q8=()=>({authenticated:!1,token:null,refresh_token:null,currentUser:null,users:[],apiKey:""}),Ame=q8(),Lme={getAuthenticated:r=>r.authenticated,getCurrentUser:r=>r.currentUser,getUsers:r=>r.users,getToken:r=>r.token,getRefreshToken:r=>r.refresh_token,getApiKey:r=>r.apiKey},Eme={async reset({commit:r}){r("setReset")},async init({commit:r}){await tt.accessCurrentUserGet().then(e=>e.data.result).then(e=>r("setCurrentUser",e)),await tt.accessUsersListGet().then(e=>e.data.result.users).then(e=>r("setUsers",e)),await tt.accessApiKeyGet().then(e=>e.data.result).then(e=>r("setApiKey",e))},async initAuth({commit:r,rootState:e,rootGetters:t}){if(e.config.apiUrl===""){r("setAuthenticated",!0);return}const s=t["config/getTokenKeys"],n=localStorage.getItem(s["refresh-token"]),i=localStorage.getItem(s["user-token"]);i&&n?(r("setToken",i),r("setRefreshToken",n),tt.defaults.headers.common.Authorization=`Bearer ${i}`):delete tt.defaults.headers.common.Authorization},async checkToken({state:r}){var e;if((e=r.token)!=null&&e.exp){const t=r.token.exp,s=Date.now()/1e3;return t-s<300?(ye.debug("checkToken - isExpiring",new Date(s*1e3),new Date(t*1e3)),!0):!1}return!1},async refreshTokens({commit:r,rootGetters:e}){const t=e["config/getTokenKeys"],s=localStorage.getItem(t["refresh-token"]);try{const i=(await tt.accessRefreshJwtPost(s||"",{withAuth:!1,headers:{Authorization:void 0}})).data.result;return localStorage.setItem(t["user-token"],i.token),r("setToken",i.token),tt.defaults.headers.common.Authorization=`Bearer ${i.token}`,i.token}catch{}},async getAuthInfo(){try{const r=await tt.accessInfoGet({withAuth:!1});return{defaultSource:r.data.result.default_source,availableSources:r.data.result.available_sources}}catch{return{}}},async login({commit:r,rootGetters:e},{username:t,password:s,source:n}){const i=e["config/getTokenKeys"];try{const o=(await tt.accessLoginPost(t,s,n,{headers:{Authorization:void 0}})).data.result;return localStorage.setItem(i["user-token"],o.token),localStorage.setItem(i["refresh-token"],o.refresh_token),tt.defaults.headers.common.Authorization=`Bearer ${o.token}`,r("setAuthenticated",!0),r("setCurrentUser",{username:o.username,source:o.source}),r("setToken",o.token),r("setRefreshToken",o.refresh_token),o}catch(a){throw localStorage.removeItem(i["user-token"]),localStorage.removeItem(i["refresh-token"]),delete tt.defaults.headers.common.Authorization,a}},async logout({commit:r,rootGetters:e},t){const s={invalidate:!1,partial:!1,...t},n=e["config/getTokenKeys"];s.invalidate&&await tt.accessLogoutPost(),localStorage.removeItem(n["user-token"]),localStorage.removeItem(n["refresh-token"]),delete tt.defaults.headers.common.Authorization,r("setCurrentUser",null),r("setToken",null),r("setRefreshToken",null),s.partial||(b.$socket&&b.$socket.close(),r("setAuthenticated",!1),es.currentRoute.path!=="/login"&&es.push("/login"))},async checkTrust({dispatch:r,commit:e,rootGetters:t}){const s=t["config/getTokenKeys"],n=localStorage.getItem(s["user-token"]);delete tt.defaults.headers.common.Authorization;try{const a=(await tt.accessCurrentUserGet({withAuth:!1})).data.result;tt.defaults.headers.common.Authorization=`Bearer ${n}`,r("logout",{partial:!0}),e("setCurrentUser",a)}catch{r("logout")}},async addUser(r,e){return await tt.accessUserPost(e.username,e.password),e},async removeUser(r,e){return await tt.accessUserDelete(e.username),e},async onUserCreated({commit:r},e){r("setAddUser",e)},async onUserDeleted({commit:r},e){r("setRemoveUser",e)},async refreshApiKey({commit:r}){const t=(await tt.accessApiKeyPost()).data.result;r("setApiKey",t)}};class Ec extends Error{}Ec.prototype.name="InvalidTokenError";function Ome(r){return decodeURIComponent(atob(r).replace(/(.)/g,(e,t)=>{let s=t.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s}))}function Tme(r){let e=r.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Ome(e)}catch{return atob(e)}}function rx(r,e){if(typeof r!="string")throw new Ec("Invalid token specified: must be a string");e||(e={});const t=e.header===!0?0:1,s=r.split(".")[t];if(typeof s!="string")throw new Ec(`Invalid token specified: missing part #${t+1}`);let n;try{n=Tme(s)}catch(i){throw new Ec(`Invalid token specified: invalid base64 for part #${t+1} (${i.message})`)}try{return JSON.parse(n)}catch(i){throw new Ec(`Invalid token specified: invalid json for part #${t+1} (${i.message})`)}}const kme={setReset(r){Object.assign(r,q8())},setCurrentUser(r,e){r.currentUser=e},setToken(r,e){r.token=e?rx(e):null},setRefreshToken(r,e){r.refresh_token=e?rx(e):null},setAuthenticated(r,e){r.authenticated=e},setUsers(r,e){r.users=e},setAddUser(r,e){r.users.push({source:"moonraker",...e})},setRemoveUser(r,e){const t=r.users.findIndex(s=>s.username===e.username);t>=0&&r.users.splice(t,1)},setApiKey(r,e){r.apiKey=e}},Dme=!0,Mme={namespaced:Dme,state:Ame,getters:Lme,actions:Eme,mutations:kme},t0=()=>({klippy_retries:0,info:{failed_components:[],klippy_connected:!1,klippy_state:"",components:[],registered_directories:[],warnings:[]},system_info:null,peripherals:{usb_devices:null,serial_devices:null,v4l2_devices:null,libcamera_devices:null},can_uuids:null,config:{authorization:{enabled:!0},server:{}},moonraker_stats:[],throttled_state:{bits:0,flags:[]},cpu_temp:null}),Rme=t0();var r0={exports:{}};const Ime="2.0.0",Z8=256,Fme=Number.MAX_SAFE_INTEGER||9007199254740991,Hme=16,jme=Z8-6,Bme=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var ig={MAX_LENGTH:Z8,MAX_SAFE_COMPONENT_LENGTH:Hme,MAX_SAFE_BUILD_LENGTH:jme,MAX_SAFE_INTEGER:Fme,RELEASE_TYPES:Bme,SEMVER_SPEC_VERSION:Ime,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},l1={};const Nme=typeof process=="object"&&l1&&l1.NODE_DEBUG&&/\bsemver\b/i.test(l1.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};var ag=Nme;(function(r,e){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:n}=ig,i=ag;e=r.exports={};const a=e.re=[],o=e.safeRe=[],l=e.src=[],c=e.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",n],[d,s]],h=g=>{for(const[v,y]of p)g=g.split(`${v}*`).join(`${v}{0,${y}}`).split(`${v}+`).join(`${v}{1,${y}}`);return g},f=(g,v,y)=>{const C=h(v),x=u++;i(g,x,v),c[g]=x,l[x]=v,a[x]=new RegExp(v,y?"g":void 0),o[x]=new RegExp(C,y?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),f("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${d}+`),f("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),f("FULL",`^${l[c.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),f("LOOSE",`^${l[c.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),f("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`),f("COERCE",`${l[c.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?(?:${l[c.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",l[c.COERCE],!0),f("COERCERTLFULL",l[c.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",f("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",f("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(r0,r0.exports);var Ed=r0.exports;const Vme=Object.freeze({loose:!0}),zme=Object.freeze({}),Ume=r=>r?typeof r!="object"?Vme:r:zme;var i2=Ume;const sx=/^[0-9]+$/,Y8=(r,e)=>{const t=sx.test(r),s=sx.test(e);return t&&s&&(r=+r,e=+e),r===e?0:t&&!s?-1:s&&!t?1:r<e?-1:1},Wme=(r,e)=>Y8(e,r);var K8={compareIdentifiers:Y8,rcompareIdentifiers:Wme};const gp=ag,{MAX_LENGTH:nx,MAX_SAFE_INTEGER:vp}=ig,{safeRe:ix,t:ax}=Ed,Gme=i2,{compareIdentifiers:So}=K8;let qme=class on{constructor(e,t){if(t=Gme(t),e instanceof on){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>nx)throw new TypeError(`version is longer than ${nx} characters`);gp("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const s=e.trim().match(t.loose?ix[ax.LOOSE]:ix[ax.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>vp||this.major<0)throw new TypeError("Invalid major version");if(this.minor>vp||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>vp||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){const i=+n;if(i>=0&&i<vp)return i}return n}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(gp("SemVer.compare",this.version,this.options,e),!(e instanceof on)){if(typeof e=="string"&&e===this.version)return 0;e=new on(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof on||(e=new on(e,this.options)),So(this.major,e.major)||So(this.minor,e.minor)||So(this.patch,e.patch)}comparePre(e){if(e instanceof on||(e=new on(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const s=this.prerelease[t],n=e.prerelease[t];if(gp("prerelease compare",t,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return So(s,n)}while(++t)}compareBuild(e){e instanceof on||(e=new on(e,this.options));let t=0;do{const s=this.build[t],n=e.build[t];if(gp("build compare",t,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return So(s,n)}while(++t)}inc(e,t,s){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,s),this.inc("pre",t,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,s),this.inc("pre",t,s);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const n=Number(s)?1:0;if(!t&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[n];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(t===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(t){let i=[t,n];s===!1&&(i=[t]),So(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var Ar=qme;const ox=Ar,Zme=(r,e,t=!1)=>{if(r instanceof ox)return r;try{return new ox(r,e)}catch(s){if(!t)return null;throw s}};var Nl=Zme;const Yme=Nl,Kme=(r,e)=>{const t=Yme(r,e);return t?t.version:null};var Xme=Kme;const Jme=Nl,Qme=(r,e)=>{const t=Jme(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};var ege=Qme;const lx=Ar,tge=(r,e,t,s,n)=>{typeof t=="string"&&(n=s,s=t,t=void 0);try{return new lx(r instanceof lx?r.version:r,t).inc(e,s,n).version}catch{return null}};var rge=tge;const cx=Nl,sge=(r,e)=>{const t=cx(r,null,!0),s=cx(e,null,!0),n=t.compare(s);if(n===0)return null;const i=n>0,a=i?t:s,o=i?s:t,l=!!a.prerelease.length;if(!!o.prerelease.length&&!l)return!o.patch&&!o.minor?"major":a.patch?"patch":a.minor?"minor":"major";const u=l?"pre":"";return t.major!==s.major?u+"major":t.minor!==s.minor?u+"minor":t.patch!==s.patch?u+"patch":"prerelease"};var nge=sge;const ige=Ar,age=(r,e)=>new ige(r,e).major;var oge=age;const lge=Ar,cge=(r,e)=>new lge(r,e).minor;var uge=cge;const dge=Ar,pge=(r,e)=>new dge(r,e).patch;var hge=pge;const fge=Nl,mge=(r,e)=>{const t=fge(r,e);return t&&t.prerelease.length?t.prerelease:null};var gge=mge;const ux=Ar,vge=(r,e,t)=>new ux(r,t).compare(new ux(e,t));var sn=vge;const _ge=sn,yge=(r,e,t)=>_ge(e,r,t);var bge=yge;const $ge=sn,wge=(r,e)=>$ge(r,e,!0);var Sge=wge;const dx=Ar,xge=(r,e,t)=>{const s=new dx(r,t),n=new dx(e,t);return s.compare(n)||s.compareBuild(n)};var a2=xge;const Cge=a2,Pge=(r,e)=>r.sort((t,s)=>Cge(t,s,e));var Age=Pge;const Lge=a2,Ege=(r,e)=>r.sort((t,s)=>Lge(s,t,e));var Oge=Ege;const Tge=sn,kge=(r,e,t)=>Tge(r,e,t)>0;var og=kge;const Dge=sn,Mge=(r,e,t)=>Dge(r,e,t)<0;var o2=Mge;const Rge=sn,Ige=(r,e,t)=>Rge(r,e,t)===0;var X8=Ige;const Fge=sn,Hge=(r,e,t)=>Fge(r,e,t)!==0;var J8=Hge;const jge=sn,Bge=(r,e,t)=>jge(r,e,t)>=0;var l2=Bge;const Nge=sn,Vge=(r,e,t)=>Nge(r,e,t)<=0;var c2=Vge;const zge=X8,Uge=J8,Wge=og,Gge=l2,qge=o2,Zge=c2,Yge=(r,e,t,s)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return zge(r,t,s);case"!=":return Uge(r,t,s);case">":return Wge(r,t,s);case">=":return Gge(r,t,s);case"<":return qge(r,t,s);case"<=":return Zge(r,t,s);default:throw new TypeError(`Invalid operator: ${e}`)}};var Q8=Yge;const Kge=Ar,Xge=Nl,{safeRe:_p,t:yp}=Ed,Jge=(r,e)=>{if(r instanceof Kge)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(e.includePrerelease?_p[yp.COERCEFULL]:_p[yp.COERCE]);else{const l=e.includePrerelease?_p[yp.COERCERTLFULL]:_p[yp.COERCERTL];let c;for(;(c=l.exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||c.index+c[0].length!==t.index+t[0].length)&&(t=c),l.lastIndex=c.index+c[1].length+c[2].length;l.lastIndex=-1}if(t===null)return null;const s=t[2],n=t[3]||"0",i=t[4]||"0",a=e.includePrerelease&&t[5]?`-${t[5]}`:"",o=e.includePrerelease&&t[6]?`+${t[6]}`:"";return Xge(`${s}.${n}.${i}${a}${o}`,e)};var Qge=Jge;class e1e{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){const n=this.map.keys().next().value;this.delete(n)}this.map.set(e,t)}return this}}var t1e=e1e,c1,px;function nn(){if(px)return c1;px=1;const r=/\s+/g;class e{constructor(O,j){if(j=n(j),O instanceof e)return O.loose===!!j.loose&&O.includePrerelease===!!j.includePrerelease?O:new e(O.raw,j);if(O instanceof i)return this.raw=O.value,this.set=[[O]],this.formatted=void 0,this;if(this.options=j,this.loose=!!j.loose,this.includePrerelease=!!j.includePrerelease,this.raw=O.trim().replace(r," "),this.set=this.raw.split("||").map(N=>this.parseRange(N.trim())).filter(N=>N.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const N=this.set[0];if(this.set=this.set.filter(U=>!g(U[0])),this.set.length===0)this.set=[N];else if(this.set.length>1){for(const U of this.set)if(U.length===1&&v(U[0])){this.set=[U];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let O=0;O<this.set.length;O++){O>0&&(this.formatted+="||");const j=this.set[O];for(let N=0;N<j.length;N++)N>0&&(this.formatted+=" "),this.formatted+=j[N].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(O){const N=((this.options.includePrerelease&&h)|(this.options.loose&&f))+":"+O,U=s.get(N);if(U)return U;const V=this.options.loose,Q=V?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];O=O.replace(Q,k(this.options.includePrerelease)),a("hyphen replace",O),O=O.replace(l[c.COMPARATORTRIM],u),a("comparator trim",O),O=O.replace(l[c.TILDETRIM],d),a("tilde trim",O),O=O.replace(l[c.CARETTRIM],p),a("caret trim",O);let X=O.split(" ").map(re=>C(re,this.options)).join(" ").split(/\s+/).map(re=>fe(re,this.options));V&&(X=X.filter(re=>(a("loose invalid filter",re,this.options),!!re.match(l[c.COMPARATORLOOSE])))),a("range list",X);const q=new Map,Z=X.map(re=>new i(re,this.options));for(const re of Z){if(g(re))return[re];q.set(re.value,re)}q.size>1&&q.has("")&&q.delete("");const te=[...q.values()];return s.set(N,te),te}intersects(O,j){if(!(O instanceof e))throw new TypeError("a Range is required");return this.set.some(N=>y(N,j)&&O.set.some(U=>y(U,j)&&N.every(V=>U.every(Q=>V.intersects(Q,j)))))}test(O){if(!O)return!1;if(typeof O=="string")try{O=new o(O,this.options)}catch{return!1}for(let j=0;j<this.set.length;j++)if(T(this.set[j],O,this.options))return!0;return!1}}c1=e;const t=t1e,s=new t,n=i2,i=lg(),a=ag,o=Ar,{safeRe:l,t:c,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:p}=Ed,{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:f}=ig,g=P=>P.value==="<0.0.0-0",v=P=>P.value==="",y=(P,O)=>{let j=!0;const N=P.slice();let U=N.pop();for(;j&&N.length;)j=N.every(V=>U.intersects(V,O)),U=N.pop();return j},C=(P,O)=>(a("comp",P,O),P=G(P,O),a("caret",P),P=$(P,O),a("tildes",P),P=le(P,O),a("xrange",P),P=ne(P,O),a("stars",P),P),x=P=>!P||P.toLowerCase()==="x"||P==="*",$=(P,O)=>P.trim().split(/\s+/).map(j=>L(j,O)).join(" "),L=(P,O)=>{const j=O.loose?l[c.TILDELOOSE]:l[c.TILDE];return P.replace(j,(N,U,V,Q,X)=>{a("tilde",P,N,U,V,Q,X);let q;return x(U)?q="":x(V)?q=`>=${U}.0.0 <${+U+1}.0.0-0`:x(Q)?q=`>=${U}.${V}.0 <${U}.${+V+1}.0-0`:X?(a("replaceTilde pr",X),q=`>=${U}.${V}.${Q}-${X} <${U}.${+V+1}.0-0`):q=`>=${U}.${V}.${Q} <${U}.${+V+1}.0-0`,a("tilde return",q),q})},G=(P,O)=>P.trim().split(/\s+/).map(j=>K(j,O)).join(" "),K=(P,O)=>{a("caret",P,O);const j=O.loose?l[c.CARETLOOSE]:l[c.CARET],N=O.includePrerelease?"-0":"";return P.replace(j,(U,V,Q,X,q)=>{a("caret",P,U,V,Q,X,q);let Z;return x(V)?Z="":x(Q)?Z=`>=${V}.0.0${N} <${+V+1}.0.0-0`:x(X)?V==="0"?Z=`>=${V}.${Q}.0${N} <${V}.${+Q+1}.0-0`:Z=`>=${V}.${Q}.0${N} <${+V+1}.0.0-0`:q?(a("replaceCaret pr",q),V==="0"?Q==="0"?Z=`>=${V}.${Q}.${X}-${q} <${V}.${Q}.${+X+1}-0`:Z=`>=${V}.${Q}.${X}-${q} <${V}.${+Q+1}.0-0`:Z=`>=${V}.${Q}.${X}-${q} <${+V+1}.0.0-0`):(a("no pr"),V==="0"?Q==="0"?Z=`>=${V}.${Q}.${X}${N} <${V}.${Q}.${+X+1}-0`:Z=`>=${V}.${Q}.${X}${N} <${V}.${+Q+1}.0-0`:Z=`>=${V}.${Q}.${X} <${+V+1}.0.0-0`),a("caret return",Z),Z})},le=(P,O)=>(a("replaceXRanges",P,O),P.split(/\s+/).map(j=>ue(j,O)).join(" ")),ue=(P,O)=>{P=P.trim();const j=O.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return P.replace(j,(N,U,V,Q,X,q)=>{a("xRange",P,N,U,V,Q,X,q);const Z=x(V),te=Z||x(Q),re=te||x(X),_e=re;return U==="="&&_e&&(U=""),q=O.includePrerelease?"-0":"",Z?U===">"||U==="<"?N="<0.0.0-0":N="*":U&&_e?(te&&(Q=0),X=0,U===">"?(U=">=",te?(V=+V+1,Q=0,X=0):(Q=+Q+1,X=0)):U==="<="&&(U="<",te?V=+V+1:Q=+Q+1),U==="<"&&(q="-0"),N=`${U+V}.${Q}.${X}${q}`):te?N=`>=${V}.0.0${q} <${+V+1}.0.0-0`:re&&(N=`>=${V}.${Q}.0${q} <${V}.${+Q+1}.0-0`),a("xRange return",N),N})},ne=(P,O)=>(a("replaceStars",P,O),P.trim().replace(l[c.STAR],"")),fe=(P,O)=>(a("replaceGTE0",P,O),P.trim().replace(l[O.includePrerelease?c.GTE0PRE:c.GTE0],"")),k=P=>(O,j,N,U,V,Q,X,q,Z,te,re,_e)=>(x(N)?j="":x(U)?j=`>=${N}.0.0${P?"-0":""}`:x(V)?j=`>=${N}.${U}.0${P?"-0":""}`:Q?j=`>=${j}`:j=`>=${j}${P?"-0":""}`,x(Z)?q="":x(te)?q=`<${+Z+1}.0.0-0`:x(re)?q=`<${Z}.${+te+1}.0-0`:_e?q=`<=${Z}.${te}.${re}-${_e}`:P?q=`<${Z}.${te}.${+re+1}-0`:q=`<=${q}`,`${j} ${q}`.trim()),T=(P,O,j)=>{for(let N=0;N<P.length;N++)if(!P[N].test(O))return!1;if(O.prerelease.length&&!j.includePrerelease){for(let N=0;N<P.length;N++)if(a(P[N].semver),P[N].semver!==i.ANY&&P[N].semver.prerelease.length>0){const U=P[N].semver;if(U.major===O.major&&U.minor===O.minor&&U.patch===O.patch)return!0}return!1}return!0};return c1}var u1,hx;function lg(){if(hx)return u1;hx=1;const r=Symbol("SemVer ANY");class e{static get ANY(){return r}constructor(u,d){if(d=t(d),u instanceof e){if(u.loose===!!d.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),a("comparator",u,d),this.options=d,this.loose=!!d.loose,this.parse(u),this.semver===r?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(u){const d=this.options.loose?s[n.COMPARATORLOOSE]:s[n.COMPARATOR],p=u.match(d);if(!p)throw new TypeError(`Invalid comparator: ${u}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new o(p[2],this.options.loose):this.semver=r}toString(){return this.value}test(u){if(a("Comparator.test",u,this.options.loose),this.semver===r||u===r)return!0;if(typeof u=="string")try{u=new o(u,this.options)}catch{return!1}return i(u,this.operator,this.semver,this.options)}intersects(u,d){if(!(u instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(u.value,d).test(this.value):u.operator===""?u.value===""?!0:new l(this.value,d).test(u.semver):(d=t(d),d.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||i(this.semver,"<",u.semver,d)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||i(this.semver,">",u.semver,d)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}u1=e;const t=i2,{safeRe:s,t:n}=Ed,i=Q8,a=ag,o=Ar,l=nn();return u1}const r1e=nn(),s1e=(r,e,t)=>{try{e=new r1e(e,t)}catch{return!1}return e.test(r)};var cg=s1e;const n1e=nn(),i1e=(r,e)=>new n1e(r,e).set.map(t=>t.map(s=>s.value).join(" ").trim().split(" "));var a1e=i1e;const o1e=Ar,l1e=nn(),c1e=(r,e,t)=>{let s=null,n=null,i=null;try{i=new l1e(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!s||n.compare(a)===-1)&&(s=a,n=new o1e(s,t))}),s};var u1e=c1e;const d1e=Ar,p1e=nn(),h1e=(r,e,t)=>{let s=null,n=null,i=null;try{i=new p1e(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!s||n.compare(a)===1)&&(s=a,n=new d1e(s,t))}),s};var f1e=h1e;const d1=Ar,m1e=nn(),fx=og,g1e=(r,e)=>{r=new m1e(r,e);let t=new d1("0.0.0");if(r.test(t)||(t=new d1("0.0.0-0"),r.test(t)))return t;t=null;for(let s=0;s<r.set.length;++s){const n=r.set[s];let i=null;n.forEach(a=>{const o=new d1(a.semver.version);switch(a.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!i||fx(o,i))&&(i=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!t||fx(t,i))&&(t=i)}return t&&r.test(t)?t:null};var v1e=g1e;const _1e=nn(),y1e=(r,e)=>{try{return new _1e(r,e).range||"*"}catch{return null}};var b1e=y1e;const $1e=Ar,e7=lg(),{ANY:w1e}=e7,S1e=nn(),x1e=cg,mx=og,gx=o2,C1e=c2,P1e=l2,A1e=(r,e,t,s)=>{r=new $1e(r,s),e=new S1e(e,s);let n,i,a,o,l;switch(t){case">":n=mx,i=C1e,a=gx,o=">",l=">=";break;case"<":n=gx,i=P1e,a=mx,o="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(x1e(r,e,s))return!1;for(let c=0;c<e.set.length;++c){const u=e.set[c];let d=null,p=null;if(u.forEach(h=>{h.semver===w1e&&(h=new e7(">=0.0.0")),d=d||h,p=p||h,n(h.semver,d.semver,s)?d=h:a(h.semver,p.semver,s)&&(p=h)}),d.operator===o||d.operator===l||(!p.operator||p.operator===o)&&i(r,p.semver))return!1;if(p.operator===l&&a(r,p.semver))return!1}return!0};var u2=A1e;const L1e=u2,E1e=(r,e,t)=>L1e(r,e,">",t);var O1e=E1e;const T1e=u2,k1e=(r,e,t)=>T1e(r,e,"<",t);var D1e=k1e;const vx=nn(),M1e=(r,e,t)=>(r=new vx(r,t),e=new vx(e,t),r.intersects(e,t));var R1e=M1e;const I1e=cg,F1e=sn;var H1e=(r,e,t)=>{const s=[];let n=null,i=null;const a=r.sort((u,d)=>F1e(u,d,t));for(const u of a)I1e(u,e,t)?(i=u,n||(n=u)):(i&&s.push([n,i]),i=null,n=null);n&&s.push([n,null]);const o=[];for(const[u,d]of s)u===d?o.push(u):!d&&u===a[0]?o.push("*"):d?u===a[0]?o.push(`<=${d}`):o.push(`${u} - ${d}`):o.push(`>=${u}`);const l=o.join(" || "),c=typeof e.raw=="string"?e.raw:String(e);return l.length<c.length?l:e};const _x=nn(),d2=lg(),{ANY:p1}=d2,dc=cg,p2=sn,j1e=(r,e,t={})=>{if(r===e)return!0;r=new _x(r,t),e=new _x(e,t);let s=!1;e:for(const n of r.set){for(const i of e.set){const a=N1e(n,i,t);if(s=s||a!==null,a)continue e}if(s)return!1}return!0},B1e=[new d2(">=0.0.0-0")],yx=[new d2(">=0.0.0")],N1e=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===p1){if(e.length===1&&e[0].semver===p1)return!0;t.includePrerelease?r=B1e:r=yx}if(e.length===1&&e[0].semver===p1){if(t.includePrerelease)return!0;e=yx}const s=new Set;let n,i;for(const h of r)h.operator===">"||h.operator===">="?n=bx(n,h,t):h.operator==="<"||h.operator==="<="?i=$x(i,h,t):s.add(h.semver);if(s.size>1)return null;let a;if(n&&i){if(a=p2(n.semver,i.semver,t),a>0)return null;if(a===0&&(n.operator!==">="||i.operator!=="<="))return null}for(const h of s){if(n&&!dc(h,String(n),t)||i&&!dc(h,String(i),t))return null;for(const f of e)if(!dc(h,String(f),t))return!1;return!0}let o,l,c,u,d=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,p=n&&!t.includePrerelease&&n.semver.prerelease.length?n.semver:!1;d&&d.prerelease.length===1&&i.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const h of e){if(u=u||h.operator===">"||h.operator===">=",c=c||h.operator==="<"||h.operator==="<=",n){if(p&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===p.major&&h.semver.minor===p.minor&&h.semver.patch===p.patch&&(p=!1),h.operator===">"||h.operator===">="){if(o=bx(n,h,t),o===h&&o!==n)return!1}else if(n.operator===">="&&!dc(n.semver,String(h),t))return!1}if(i){if(d&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===d.major&&h.semver.minor===d.minor&&h.semver.patch===d.patch&&(d=!1),h.operator==="<"||h.operator==="<="){if(l=$x(i,h,t),l===h&&l!==i)return!1}else if(i.operator==="<="&&!dc(i.semver,String(h),t))return!1}if(!h.operator&&(i||n)&&a!==0)return!1}return!(n&&c&&!i&&a!==0||i&&u&&!n&&a!==0||p||d)},bx=(r,e,t)=>{if(!r)return e;const s=p2(r.semver,e.semver,t);return s>0?r:s<0||e.operator===">"&&r.operator===">="?e:r},$x=(r,e,t)=>{if(!r)return e;const s=p2(r.semver,e.semver,t);return s<0?r:s>0||e.operator==="<"&&r.operator==="<="?e:r};var V1e=j1e;const h1=Ed,wx=ig,z1e=Ar,Sx=K8,U1e=Nl,W1e=Xme,G1e=ege,q1e=rge,Z1e=nge,Y1e=oge,K1e=uge,X1e=hge,J1e=gge,Q1e=sn,eve=bge,tve=Sge,rve=a2,sve=Age,nve=Oge,ive=og,ave=o2,ove=X8,lve=J8,cve=l2,uve=c2,dve=Q8,pve=Qge,hve=lg(),fve=nn(),mve=cg,gve=a1e,vve=u1e,_ve=f1e,yve=v1e,bve=b1e,$ve=u2,wve=O1e,Sve=D1e,xve=R1e,Cve=H1e,Pve=V1e;var _s={parse:U1e,valid:W1e,clean:G1e,inc:q1e,diff:Z1e,major:Y1e,minor:K1e,patch:X1e,prerelease:J1e,compare:Q1e,rcompare:eve,compareLoose:tve,compareBuild:rve,sort:sve,rsort:nve,gt:ive,lt:ave,eq:ove,neq:lve,gte:cve,lte:uve,cmp:dve,coerce:pve,Comparator:hve,Range:fve,satisfies:mve,toComparators:gve,maxSatisfying:vve,minSatisfying:_ve,minVersion:yve,validRange:bve,outside:$ve,gtr:wve,ltr:Sve,intersects:xve,simplifyRange:Cve,subset:Pve,SemVer:z1e,re:h1.re,src:h1.src,tokens:h1.t,SEMVER_SPEC_VERSION:wx.SEMVER_SPEC_VERSION,RELEASE_TYPES:wx.RELEASE_TYPES,compareIdentifiers:Sx.compareIdentifiers,rcompareIdentifiers:Sx.rcompareIdentifiers};const Ave={getInfo:r=>r.info,getIsMinApiVersion:r=>e=>{const t=r.info.api_version_string;return t&&_s.valid(t)&&_s.valid(e)&&_s.gte(t,e)},getSystemInfo:r=>r.system_info,getConfig:r=>r.config,getProcessStats:r=>r.moonraker_stats,componentSupport:r=>e=>r.info.components.includes(e),getServices:r=>{var n,i;const e=((n=r.system_info)==null?void 0:n.available_services)||[],t=((i=r.system_info)==null?void 0:i.service_state)||{};return[...e].sort().map(a=>a in t?{name:a,...t[a]}:{name:a})},getConfigMapByFilename:(r,e,t,s)=>n=>{var o;const i=he.CONFIG_SERVICE_MAP;let a=i.find(l=>{var c;return((c=l.filename)==null?void 0:c.toLowerCase())===n.toLowerCase()});if(a||(a=i.find(l=>l.prefix&&n.toLowerCase().startsWith(l.prefix.toLowerCase()))),a||(a=i.find(l=>l.suffix&&n.endsWith(l.suffix.toLowerCase()))),(a==null?void 0:a.service)==="klipper"&&a.link){const l=s["printer/getKlippyApp"];a.link=a.link.replace("{klipperDomain}",l.domain)}if(a){const l=a==null?void 0:a.service,c=(o=t.server.system_info)==null?void 0:o.instance_ids;return{serviceSupported:c&&l in c||e.getServices.some(u=>u.name===l),...a}}return{}}};let xx;const Lve={async reset({commit:r}){r("setReset")},async resetKlippy({commit:r}){r("setResetKlippy")},async initComponents({dispatch:r},e){if(e.components&&e.components.length>0){const t=he.MOONRAKER_COMPONENTS;for(const s in t){const n=t[s];e.components.includes(n.name)&&r(n.dispatch,void 0,{root:!0})}}},async checkMoonrakerMinVersion({state:r,dispatch:e}){const t=r.info.moonraker_version??"?",s=t.includes("-")?t:`${t}-0`;_s.valid(s)&&_s.valid(he.MOONRAKER_MIN_VERSION)&&_s.gte(s,he.MOONRAKER_MIN_VERSION)},async checkKlipperMinVersion({state:r,dispatch:e}){var n;const t=((n=r.system_info)==null?void 0:n.software_version)??"?",s=t.includes("-")?t:`${t}-0`;_s.valid(t)&&_s.valid(he.KLIPPER_MIN_VERSION)&&_s.gte(s,he.KLIPPER_MIN_VERSION)},async onServerInfo({commit:r,dispatch:e,state:t},s){I.printerInfo(),I.serverConfig(),I.machineProcStats(),I.machineSystemInfo(),r("setServerInfo",s),e("checkMoonrakerMinVersion"),s.klippy_state!=="ready"?(t.klippy_retries===0&&e("initComponents",s),r("setKlippyRetries",t.klippy_retries+1),clearTimeout(xx),xx=window.setTimeout(()=>{I.serverInfo()},he.KLIPPY_RETRY_DELAY)):(r("setKlippyRetries",0),e("initComponents",s),I.printerObjectsList())},async onServerConfig({commit:r},e){e.config&&r("setServerConfig",e.config)},async onLogsRollOver(r,e){if(e!=null&&e.failed&&Object.keys(e.failed).length>0){const t=Object.values(e.failed).join(`
|
||
`);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},firmware_retraction:{retract_length:0,unretract_extra_length:0,unretract_speed:0,retract_speed:0},current_file:{estimated_time:0,filament_total:0,thumbnails:[]},gcode:{commands:null},gcode_move:{gcode_position:[0,0,0,0],homing_origin:[],speed:0},manual_probe:{is_active:!1,z_position:null,z_position_lower:null,z_position_upper:null},bed_screws:{is_active:!1,state:null,current_screw:0,accepted_screws:0},screws_tilt_adjust:{},webhooks:{state:"",state_message:""}}}),kve=s0(),Dve={getKlippyReady:(r,e,t,s)=>{const n=s["server/getInfo"];return n.klippy_state==="ready"&&n.klippy_connected},getKlippyConnected:(r,e,t,s)=>s["server/getInfo"].klippy_connected,getKlippyState:(r,e,t,s)=>{const n=s["server/getInfo"];return b.$filters.capitalize(n.klippy_state||"")},getKlippyStateMessage:(r,e,t,s)=>{const n=/(?:\r\n|\r|\n)/g;return s["server/getInfo"].klippy_connected===!1?"Klippy not connected.":r.printer.info.state_message&&r.printer.info.state_message!==""?r.printer.info.state_message.trim().replace(n,"<br />"):r.printer.webhooks.state_message&&r.printer.webhooks.state_message!==""?r.printer.webhooks.state_message.trim().replace(n,"<br />"):"Unknown"},getKlippyApp:r=>{var s;const e=(s=r.printer.info.app)==null?void 0:s.toLowerCase(),t=hl(e,he.SUPPORTED_SERVICES.klipper)?e:"klipper";return{name:t,...he.SUPPORTED_SERVICES.klipper[t]}},getPrinterState:r=>{const e=r.printer.idle_timeout.state,t=r.printer.print_stats.state;return e&&t?t.toLowerCase()==="paused"||t.toLowerCase()==="cancelled"?t.toLowerCase():e.toLowerCase()==="printing"&&t.toLowerCase()!=="printing"?"busy":e.toLowerCase():"loading"},getFileRelativePrintProgress:r=>{const{gcode_start_byte:e,gcode_end_byte:t,path:s,filename:n}=r.printer.current_file??{},{file_position:i,progress:a}=r.printer.virtual_sdcard??{},o=s?`${s}/${n}`:n;if(e&&t&&i&&o===r.printer.print_stats.filename){if(i<=e)return 0;if(i>=t)return 1;const l=i-e,c=t-e;if(l>0&&c>0)return l/c}return a||0},getFileAbsolutePrintProgress:r=>{var e;return((e=r.printer.virtual_sdcard)==null?void 0:e.progress)||0},getSlicerPrintProgress:r=>r.printer.display_status.progress||0,getFilamentPrintProgress:r=>{var o;const{filament_used:e,filename:t}=r.printer.print_stats??{},{filament_total:s,path:n,filename:i}=r.printer.current_file??{},a=n?`${n}/${i}`:i;return e!=null&&s&&a===t?e/s:((o=r.printer.virtual_sdcard)==null?void 0:o.progress)||0},getPrintProgress:(r,e,t)=>{const n=t.config.uiSettings.general.printProgressCalculation.map(a=>{switch(a){case"file":return e.getSlicerPrintProgress;case"fileAbsolute":return e.getFileAbsolutePrintProgress;case"slicer":return e.getSlicerPrintProgress;case"filament":return e.getFilamentPrintProgress;default:return 0}}).filter(a=>a>0);return n.reduce((a,o)=>a+o,0)/n.length||0},getPrintLayers:r=>{var s;const e=(s=r.printer.print_stats.info)==null?void 0:s.total_layer;if(typeof e=="number")return e;const t=r.printer.current_file;if("layer_count"in t)return t.layer_count;if("first_layer_height"in t&&"layer_height"in t&&"object_height"in t){const n=Math.ceil((t.object_height-t.first_layer_height)/t.layer_height+1);if(n>0)return n}return 0},getPrintLayer:r=>{var i;const e=(i=r.printer.print_stats.info)==null?void 0:i.current_layer;if(typeof e=="number")return e;const t=r.printer.current_file,s=r.printer.print_stats.print_duration||0,n=r.printer.gcode_move.gcode_position;if(t&&s>0&&"first_layer_height"in t&&"layer_height"in t&&n&&n.length>=3){const a=r.printer.gcode_move.gcode_position[2],o=Math.ceil((a-t.first_layer_height)/t.layer_height+1);if(o>0)return o}return 0},getTimeEstimates:(r,e,t)=>{var y,C,x,$,L,G,K;const s=e.getPrintProgress,n=e.getFileRelativePrintProgress,i=((y=r.printer.print_stats)==null?void 0:y.total_duration)??0,a=((C=r.printer.print_stats)==null?void 0:C.print_duration)??0,o=a>0&&n>0?a/n-a:0,l=($=(x=r.printer.current_file)==null?void 0:x.history)==null?void 0:$.status,c=(G=(L=r.printer.current_file)==null?void 0:L.history)==null?void 0:G.total_duration,u=l==="completed"&&c!=null?c-a:0,d=(K=r.printer.current_file)==null?void 0:K.estimated_time,p=d!=null&&d>0?d-a:0,f=t.config.uiSettings.general.printEtaCalculation.map(le=>{switch(le){case"file":return u>0?u:o;case"slicer":return p;default:return 0}}).filter(le=>le>0),g=f.reduce((le,ue)=>le+ue,0)/f.length||0,v=Date.now()+g*1e3;return{progress:Math.floor(s*100),printDuration:a,totalDuration:i,slicerLeft:p,fileLeft:o,actualLeft:u,eta:v}},getSystemStats:r=>r.printer.system_stats,getMcus:r=>{const e=[];return Object.keys(r.printer).filter(t=>t.startsWith("mcu")).sort().forEach(t=>{e.push({name:t,...r.printer[t]})}),e},getHasExtruder:r=>r.printer.extruder,getHasMultipleExtruders:r=>r.printer.extruder&&r.printer.extruder1,getExtruders:r=>{const e=Object.keys(r.printer).filter(t=>/^extruder\d{0,2}$/.exec(t)).length;return[...Array(e).keys()].map(t=>({key:`extruder${t===0?"":t}`,name:e===1?"Extruder":`Extruder ${t}`}))},getActiveExtruder:(r,e)=>{const t=r.printer.toolhead.extruder||"extruder";return e.getExtruderByName(t)},getExtruderByName:(r,e)=>t=>{const s=r.printer[t]||void 0,n=e.getPrinterSettings(t);if(!s||!n)return;const{min_extrude_temp:i}=t==="extruder"?n:e.getPrinterSettings("extruder");return{min_extrude_temp:i,config:{...n},...s}},getExtruderSteppers:(r,e)=>e.getSteppers.filter(s=>s.key.startsWith("extruder_stepper ")),getSteppers:(r,e)=>{var n;const t=[],s=r.printer.motion_report.steppers??[];for(const i of s){const a=i.startsWith("stepper_")?i.substring(8):i.split(" ",2).pop()||"",o=r.printer[i],l=e.getPrinterSettings(i);t.push({name:a,prettyName:b.$filters.prettyCase(a),key:i,enabled:(n=r.printer.stepper_enable)==null?void 0:n.steppers[i],...o,config:{...l}})}return t},getHasSteppersEnabled:(r,e)=>{const t=e.getSteppers;return Object.values(t).some(s=>s.enabled==null||s.enabled)},getHomedAxes:r=>e=>e!=null&&e.length>0&&e.split("").every(t=>r.printer.toolhead.homed_axes.includes(t)),getRunoutSensors:r=>{const e=["filament_switch_sensor","filament_motion_sensor"],t=[];for(const s in r.printer){const[n,i]=s.split(" ",2);if(e.includes(n)){const a=i??s,o=Io(r.printer,s,void 0);t.push({name:a,prettyName:b.$filters.prettyCase(a),...o})}}return t},getEndstops:r=>{const e=[];return Object.keys(r.printer.endstops).sort().forEach(t=>{e.push({name:t,state:r.printer.endstops[t]})}),e},getProbe:(r,e)=>{const t=r.printer.probe;if(t&&!t.name){const s=["bltouch","smart_effector","probe"];for(const n of s){const i=e.getPrinterSettings(n);if((i==null?void 0:i.z_offset)!==void 0)return{...t,name:n}}}return t},getHeaters:(r,e)=>{const t=r.printer.heaters.available_heaters||[];if(t.length){const s=[];return t.forEach(n=>{const i=r.printer[n];if(i&&Object.keys(i).length>0){const a=e.getPrinterSettings(n),o=["heater_generic"],[l,c]=n.split(" ",2),u=c&&o.includes(l)?c:n,d=b.$colorset.next(Gp(n),n),p=b.$filters.prettyCase(u);s.push({...i,name:u,color:d,prettyName:p,key:n,minTemp:a==null?void 0:a.min_temp,targetMinTemp:a==null?void 0:a.target_min_temp,targetMaxTemp:a==null?void 0:a.target_max_temp,maxTemp:a==null?void 0:a.max_temp})}}),s.sort((n,i)=>n.name.localeCompare(i.name))}return[]},getAllLeds:(r,e)=>e.getOutputs(["led","neopixel","dotstar"]),getAllFans:(r,e)=>e.getOutputs(["temperature_fan","controller_fan","heater_fan","fan_generic","fan"]),getToolHeadFans:(r,e)=>e.getOutputs(["heater_fan","fan"]),getOtherFans:(r,e)=>e.getOutputs(["temperature_fan","controller_fan","fan_generic"]),getPins:(r,e)=>e.getOutputs(["output_pin","pwm_tool","pwm_cycle_time"]).sort(s=>s.pwm?1:-1),getPinByName:(r,e)=>t=>e.getPins.find(n=>n.name===t),getOutputs:(r,e)=>t=>{var d;const s=["temperature_fan","controller_fan","heater_fan","fan_generic","fan"],n=["output_pin","pwm_tool","pwm_cycle_time"],i=["led","neopixel","dotstar"],a=["fan","fan_generic","output_pin","pwm_tool","pwm_cycle_time","led","neopixel","dotstar"],o=["temperature_fan"],l=["output_pin","pwm_tool","pwm_cycle_time","temperature_fan","controller_fan","heater_fan","fan_generic","led","neopixel","dotstar"],c=t&&t.length?t:[...s,...n,...i],u=[];for(const p in r.printer){const[h,f]=p.split(" ",2),g=f??p;if(c.includes(h)&&(!l.includes(h)||!g.startsWith("_"))){const v=g==="fan"?"Part Fan":b.$filters.prettyCase(g),y=o.includes(h)?b.$colorset.next(Gp(p),p):void 0,C=e.getPrinterSettings(p);let x={...r.printer[p],...e.getExtraSensorData((d=C==null?void 0:C.sensor_type)==null?void 0:d.toLowerCase(),g),config:{...C},name:g,prettyName:v,key:p,color:y,type:h,controllable:a.includes(h)};s.includes(h)&&(x={...x,minTemp:C==null?void 0:C.min_temp,maxTemp:C==null?void 0:C.max_temp}),n.includes(h)&&(x={...x,pwm:(C==null?void 0:C.pwm)??!1,scale:(C==null?void 0:C.scale)??1,resetValue:(C==null?void 0:C.value)??0,controllable:C!=null&&C.static_value?!1:a.includes(h)}),u.push(x)}}return u.sort((p,h)=>p.type.localeCompare(h.type)||p.name.localeCompare(h.name))},getSensors:(r,e)=>{const t=["temperature_sensor","temperature_probe","tmc2240","z_thermal_adjust"],s=["tmc2240"],n=Object.keys(r.printer).reduce((i,a)=>{var u;const[o,l]=a.split(" ",2),c=l??a;if(t.includes(o)&&!c.startsWith("_")){const d=s.includes(o)?rt.t("app.general.label.stepper_driver",{name:c.startsWith("stepper_")?c.substring(8).toUpperCase():b.$filters.prettyCase(c)}):b.$filters.prettyCase(c),p=b.$colorset.next(Gp(a),a),h=e.getPrinterSettings(a);i[c]={...r.printer[a],...e.getExtraSensorData((u=h==null?void 0:h.sensor_type)==null?void 0:u.toLowerCase(),c),config:{...h},minTemp:(h==null?void 0:h.min_temp)??null,maxTemp:(h==null?void 0:h.max_temp)??null,name:c,key:a,prettyName:d,color:p,type:o}}return i},{});return Object.values(n).sort((i,a)=>i.type.localeCompare(a.type)||i.name.localeCompare(a.name))},getExtraSensorData:r=>(e,t)=>{if(["aht10","bme280","htu21d","nevermoresensor","sht3x"].includes(e)){const n=r.printer[`${e} ${t}`];if(n){const{pressure:i,humidity:a,gas:o}=n;return{pressure:i,humidity:a,gas:o}}}},getChartableSensors:r=>{const e=[["temperature_fan"],["temperature_probe","z_thermal_adjust","temperature_sensor"],["tmc2240"]],t=Object.keys(r.printer),s=e.flatMap(i=>{const a=i.map(o=>new RegExp(`^${o}(?! _)`));return t.filter(o=>a.some(l=>l.test(o))).sort((o,l)=>o.localeCompare(l))});return[...[...r.printer.heaters.available_heaters].sort((i,a)=>i.localeCompare(a)),...s]},getBedScrews:(r,e)=>{const t=e.getPrinterSettings("bed_screws"),s=[];for(let n=1;n<=99;n++){const i=`screw${n}`,a=t[i];if(!a)break;const o=t[`screw${n}_fine_adjust`],l=t[`screw${n}_name`],c=b.$filters.prettyCase(l||rt.t("app.general.label.screw_number",{index:n+1}));s.push({key:i,name:l,prettyName:c,fine:o,x:a[0],y:a[1]})}return s},getScrewsTiltAdjust:(r,e)=>{const t=e.getPrinterSettings("screws_tilt_adjust"),s=[],{results:n,...i}=r.printer.screws_tilt_adjust;for(let a=1;a<=99;a++){const o=`screw${a}`,l=n==null?void 0:n[o];if(!l)break;const c=t[o],u=t[`${o}_name`],d=b.$filters.prettyCase(u||rt.t("app.general.label.screw_number",{index:a+1})),[p,h]=l.adjust.split(":").map(Number),f=p*60+h;s.push({key:o,name:u,prettyName:d,...l,adjustMinutes:f,x:c[0],y:c[1]})}return{...i,screws:s}},getPrinterSettings:r=>e=>{if(r.printer&&r.printer.configfile&&r.printer.configfile.settings)return e?Io(r.printer.configfile.settings,e.toLowerCase(),void 0):r.printer.configfile.settings},getPrinterConfig:r=>e=>{if(r.printer&&r.printer.configfile&&r.printer.configfile.config)return e?Io(r.printer.configfile.config,e,void 0):r.printer.configfile.config},getHasWarnings:(r,e,t)=>!!(t.socket&&t.socket.open&&t.socket.ready&&(e.getPrinterWarnings.length>0||e.getKlipperWarnings.length>0||e.getMoonrakerFailedComponents.length>0||e.getMoonrakerWarnings.length>0)),getPrinterWarnings:(r,e)=>{const t=e.getPrinterConfig(),s=[];return t&&!("virtual_sdcard"in t)&&s.push({message:"[virtual_sdcard] not found in printer configuration."}),t&&!("pause_resume"in t)&&s.push({message:"[pause_resume] not found in printer configuration."}),t&&!("display"in t)&&!("display_status"in t)&&s.push({message:"[display_status] is required if you do not have a [display] defined."}),t&&!("gcode_macro CANCEL_PRINT"in t)&&s.push({message:"CANCEL_PRINT macro not found in configuration."}),s},getKlipperWarnings:r=>{var e;return((e=r.printer.configfile)==null?void 0:e.warnings)||[]},getMoonrakerFailedComponents:(r,e,t,s)=>s["server/getInfo"].failed_components||[],getMoonrakerWarnings:(r,e,t,s)=>s["server/getInfo"].warnings||[],getSaveConfigPending:r=>{var t;return((t=r.printer.configfile)==null?void 0:t.save_config_pending)||!1},getSaveConfigPendingItems:r=>{var t;return((t=r.printer.configfile)==null?void 0:t.save_config_pending_items)||{}},getHasHomingOverride:(r,e)=>{const t=e.getPrinterConfig();return!!(t&&"homing_override"in t)},getHasRoundBed:(r,e)=>{const t=e.getPrinterSettings("printer.kinematics")||"";return["delta","polar","rotary_delta","winch"].includes(t)},getBedSize:r=>{const{axis_minimum:e,axis_maximum:t}=r.printer.toolhead;if(e.length<2||t.length<2)return;const[s,n]=e,[i,a]=t;return{minX:s,minY:n,maxX:i,maxY:a}},getAvailableCommands:(r,e,t,s)=>{const n=r.printer.gcode.commands;if(n)return n;const i=s["console/getAllKnownCommands"];return Object.entries(i).reduce((a,[o,l])=>(a[o]={help:l},a),{})},getIsManualProbeActive:r=>{var e;return((e=r.printer.manual_probe)==null?void 0:e.is_active)||!1},getIsBedScrewsAdjustActive:r=>{var e;return((e=r.printer.bed_screws)==null?void 0:e.is_active)||!1},getHasScrewsTiltAdjustResults:r=>{const{error:e,max_deviation:t,results:s}=r.printer.screws_tilt_adjust??{};return!e&&t==null&&s&&Object.keys(s).length>0}},Mve=(r,e,t,s)=>{var n,i,a,o,l;for(const c in r){const[u,d]=c.split(" ",2);if(/^tmc\d{4}$/.exec(u)&&((i=(n=r[c])==null?void 0:n.drv_status)==null?void 0:i.otpw)!=null&&((l=(o=(a=e.printer.printer)==null?void 0:a[c])==null?void 0:o.drv_status)==null?void 0:l.otpw)==null){const p=d??c,h=s.getKlippyApp,f={id:`${c}-otpw`,title:rt.t("app.printer.title.stepper_driver_overheating",{name:p}).toString(),description:rt.t("app.printer.msg.possible_print_failure").toString(),to:rt.t("app.printer.url.stepper_driver_overheating",{klipperDomain:h.domain}).toString(),type:"error",snackbar:!0,merge:!0,clear:!0,noCount:!0};t("notifications/pushNotification",f,{root:!0})}}},Rve=(r,e,t)=>{"exclude_object"in r&&t("parts/onPartUpdate",r.exclude_object,{root:!0}),"print_stats"in r&&("state"in r.print_stats||"filename"in r.print_stats)&&t("parts/onPrintStatsUpdate",r.print_stats,{root:!0})},Ive=(r,e,t)=>{"print_stats"in r&&"state"in r.print_stats&&(e.printer.printer.print_stats.state!=="printing"&&r.print_stats.state==="printing"?t("printer/onPrintStart",r,{root:!0}):e.printer.printer.print_stats.state==="printing"&&r.print_stats.state==="complete"?t("printer/onPrintEnd",r,{root:!0}):e.printer.printer.print_stats.state==="printing"&&r.print_stats.state==="standby"&&t("printer/onPrintEnd",r,{root:!0}))},Fve=(r,e,t)=>{"print_stats"in r&&"filename"in r.print_stats&&r.print_stats.filename!==e.printer.printer.print_stats.filename&&(t("printer/setResetCurrentFile",void 0,{root:!0}),r.print_stats.filename!==""&&r.print_stats.filename!==null&&I.serverFilesMetadata(r.print_stats.filename))},Hve=(r,e,t)=>{const s=Object.keys(r).filter(n=>n.startsWith("mcu"));s.length>0&&s.forEach(n=>{const i={...e.printer.printer[n],...r[n]};if(i.last_stats){const a=new Date;let o;e.charts[n]&&(o=e.charts[n][e.charts[n].length-1]);const l=.0025,c=5,u=100*(i.last_stats.mcu_task_avg+3*i.last_stats.mcu_task_stddev)/l,d=100*(i.last_stats.mcu_awake/c),p=25e3,h=o?a.getTime()-o.date.getTime():1e3;let f=i.last_stats.bytes_write+i.last_stats.bytes_retransmit,g=o?parseFloat(o.bw):f;f<g&&(g=f),f=100*(f-g)/(p*h),t("charts/setChartEntry",{type:n,retention:600,data:{date:a,load:u.toFixed(2),awake:d.toFixed(2),bw:f.toFixed(2)}},{root:!0})}})},jve=(r,e,t)=>{var s,n,i,a,o;if("system_stats"in r){const l={...e.printer.printer.system_stats,...r.system_stats},c=new Date;if("memavail"in l&&((n=(s=e.server.system_info)==null?void 0:s.cpu_info)!=null&&n.total_memory)){const u=((a=(i=e.server.system_info)==null?void 0:i.cpu_info)==null?void 0:a.total_memory)||0,d=u-l.memavail,p=Math.ceil(d/u*100);t("charts/setChartEntry",{type:"memory",retention:600,data:{date:c,memused:p.toFixed(2)}},{root:!0})}if("cputime"in l&&"sysload"in l){const u=l.cputime,d=((o=e.printer.printer.system_stats)==null?void 0:o.cputime)||l.cputime||0;t("charts/setChartEntry",{type:"klipper",retention:600,data:{date:c,load:l.sysload.toFixed(2),cputime_change:((u-d)*100).toFixed(2)}},{root:!0})}}},Bve=(r,e,t,s)=>{const n=()=>{const a={date:new Date};return s.getChartableSensors.forEach(l=>{const c=e.printer.printer[l].temperature,u=e.printer.printer[l].target,d=e.printer.printer[l].power,p=e.printer.printer[l].speed;a[l]=c,u!=null&&(a[`${l}Target`]=u),d!=null&&(a[`${l}Power`]=d),p!=null&&(a[`${l}Speed`]=p)}),a};if(e.charts.ready){const i=n();t("charts/setChartEntry",{type:"chart",data:i,retention:r},{root:!0})}},Nve={async reset({commit:r}){r("setReset")},async onPrinterInfo({commit:r},e){r("setPrinterInfo",e)},async onQueryEndstops({commit:r},e){r("setQueryEndstops",e)},async onPrintCancel(){ye.debug("Print Cancelled")},async onPrintPause(){ye.debug("Print Paused")},async onPrintResume(){ye.debug("Print Resumed")},async onPrintStart(r,e){ye.debug("Print start detected",e)},async onPrintEnd(r,e){ye.debug("Print end detected",e)},async onPrinterObjectsList({commit:r},e){let t={};e.objects.forEach(s=>{s.includes("menu")||(t={...t,[s]:null});let n=s;s.includes(" ")&&(n=n.replace(" ",".")),r("setPrinterObjectList",n)}),I.printerObjectsSubscribe(t)},async onPrinterObjectsSubscribe({commit:r,dispatch:e},t){const s=t.status;"screws_tilt_adjust"in s&&(s.screws_tilt_adjust={}),"toolhead"in s&&("max_accel_to_decel"in s.toolhead?s.toolhead.minimum_cruise_ratio=null:s.toolhead.max_accel_to_decel=null),r("socket/setAcceptNotifications",!0,{root:!0}),await e("onNotifyStatusUpdate",s),I.serverGcodeStore(),I.printerGcodeHelp(),I.serverTemperatureStore()},async onNotifyStatusUpdate({rootState:r,commit:e,getters:t,dispatch:s},n){var i,a;if(n&&r.socket.acceptingNotifications){Fve(n,r,e),Ive(n,r,s),Rve(n,r,s),jve(n,r,e),Hve(n,r,e),Mve(n,r,s,t);for(const c in n){const u=n[c];e("setSocketNotify",{key:c,payload:u})}const o=r.server.config,l=((i=o==null?void 0:o.data_store)==null?void 0:i.temperature_store_size)??((a=o==null?void 0:o.server)==null?void 0:a.temperature_store_size)??he.CHART_HISTORY_RETENTION;Bve(l,r,e,t),s("onDiagnosticsMetricsUpdate")}},async onFastNotifyStatusUpdate({rootState:r,commit:e,dispatch:t},s){s&&r.socket.acceptingNotifications&&(e("setSocketNotify",s),t("onDiagnosticsMetricsUpdate"))},async onDiagnosticsMetricsUpdate({rootState:r,commit:e,rootGetters:t}){if(!r.config.uiSettings.general.enableDiagnostics)return;const s=r.layout.layouts.diagnostics,n=Object.values(s).flat().map(o=>o.axes).flat().filter(o=>o.enabled).map(o=>o.metrics).flat(),i=Array.from(new Set(n.map(o=>o.collector)));let a;try{if(a=l8(`
|
||
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(r=or(r,360),e=or(e,100),t=or(t,100),e===0)n=t,i=t,s=t;else{const a=t<.5?t*(1+e):t+e-t*e,o=2*t-a;s=f1(o,a,r+1/3),n=f1(o,a,r),i=f1(o,a,r-1/3)}return{r:s*255,g:n*255,b:i*255}}function Px(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;const a=s,o=s-n,l=s===0?0:o/s;if(s===n)i=0;else{switch(s){case r:i=(e-t)/o+(e<t?6:0);break;case e:i=(t-r)/o+2;break;case t:i=(r-e)/o+4;break}i/=6}return{h:i,s:l,v:a}}function Kve(r,e,t){r=or(r,360)*6,e=or(e,100),t=or(t,100);const s=Math.floor(r),n=r-s,i=t*(1-e),a=t*(1-n*e),o=t*(1-(1-n)*e),l=s%6,c=[t,a,i,i,o,t][l],u=[o,t,t,a,i,i][l],d=[i,i,o,t,t,a][l];return{r:c*255,g:u*255,b:d*255}}function Ax(r,e,t,s){const n=[ua(Math.round(r).toString(16)),ua(Math.round(e).toString(16)),ua(Math.round(t).toString(16))];return s&&n[0].startsWith(n[0].charAt(1))&&n[1].startsWith(n[1].charAt(1))&&n[2].startsWith(n[2].charAt(1))?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0):n.join("")}function Xve(r,e,t,s,n){const i=[ua(Math.round(r).toString(16)),ua(Math.round(e).toString(16)),ua(Math.round(t).toString(16)),ua(Qve(s))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Jve(r,e,t,s){const n=r/100,i=e/100,a=t/100,o=s/100,l=255*(1-n)*(1-o),c=255*(1-i)*(1-o),u=255*(1-a)*(1-o);return{r:l,g:c,b:u}}function Lx(r,e,t){let s=1-r/255,n=1-e/255,i=1-t/255,a=Math.min(s,n,i);return a===1?(s=0,n=0,i=0):(s=(s-a)/(1-a)*100,n=(n-a)/(1-a)*100,i=(i-a)/(1-a)*100),a*=100,{c:Math.round(s),m:Math.round(n),y:Math.round(i),k:Math.round(a)}}function Qve(r){return Math.round(parseFloat(r)*255).toString(16)}function Ex(r){return Xr(r)/255}function Xr(r){return parseInt(r,16)}function e_e(r){return{r:r>>16,g:(r&65280)>>8,b:r&255}}const n0={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function t_e(r){let e={r:0,g:0,b:0},t=1,s=null,n=null,i=null,a=!1,o=!1;return typeof r=="string"&&(r=n_e(r)),typeof r=="object"&&(Zr(r.r)&&Zr(r.g)&&Zr(r.b)?(e=Zve(r.r,r.g,r.b),a=!0,o=String(r.r).substr(-1)==="%"?"prgb":"rgb"):Zr(r.h)&&Zr(r.s)&&Zr(r.v)?(s=$p(r.s),n=$p(r.v),e=Kve(r.h,s,n),a=!0,o="hsv"):Zr(r.h)&&Zr(r.s)&&Zr(r.l)?(s=$p(r.s),i=$p(r.l),e=Yve(r.h,s,i),a=!0,o="hsl"):Zr(r.c)&&Zr(r.m)&&Zr(r.y)&&Zr(r.k)&&(e=Jve(r.c,r.m,r.y,r.k),a=!0,o="cmyk"),Object.prototype.hasOwnProperty.call(r,"a")&&(t=r.a)),t=t7(t),{ok:a,format:r.format||o,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}const r_e="[-\\+]?\\d+%?",s_e="[-\\+]?\\d*\\.\\d+%?",vi="(?:"+s_e+")|(?:"+r_e+")",m1="[\\s|\\(]+("+vi+")[,|\\s]+("+vi+")[,|\\s]+("+vi+")\\s*\\)?",wp="[\\s|\\(]+("+vi+")[,|\\s]+("+vi+")[,|\\s]+("+vi+")[,|\\s]+("+vi+")\\s*\\)?",gs={CSS_UNIT:new RegExp(vi),rgb:new RegExp("rgb"+m1),rgba:new RegExp("rgba"+wp),hsl:new RegExp("hsl"+m1),hsla:new RegExp("hsla"+wp),hsv:new RegExp("hsv"+m1),hsva:new RegExp("hsva"+wp),cmyk:new RegExp("cmyk"+wp),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function n_e(r){if(r=r.trim().toLowerCase(),r.length===0)return!1;let e=!1;if(n0[r])r=n0[r],e=!0;else if(r==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let t=gs.rgb.exec(r);return t?{r:t[1],g:t[2],b:t[3]}:(t=gs.rgba.exec(r),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=gs.hsl.exec(r),t?{h:t[1],s:t[2],l:t[3]}:(t=gs.hsla.exec(r),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=gs.hsv.exec(r),t?{h:t[1],s:t[2],v:t[3]}:(t=gs.hsva.exec(r),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=gs.cmyk.exec(r),t?{c:t[1],m:t[2],y:t[3],k:t[4]}:(t=gs.hex8.exec(r),t?{r:Xr(t[1]),g:Xr(t[2]),b:Xr(t[3]),a:Ex(t[4]),format:e?"name":"hex8"}:(t=gs.hex6.exec(r),t?{r:Xr(t[1]),g:Xr(t[2]),b:Xr(t[3]),format:e?"name":"hex"}:(t=gs.hex4.exec(r),t?{r:Xr(t[1]+t[1]),g:Xr(t[2]+t[2]),b:Xr(t[3]+t[3]),a:Ex(t[4]+t[4]),format:e?"name":"hex8"}:(t=gs.hex3.exec(r),t?{r:Xr(t[1]+t[1]),g:Xr(t[2]+t[2]),b:Xr(t[3]+t[3]),format:e?"name":"hex"}:!1))))))))))}function Zr(r){return typeof r=="number"?!Number.isNaN(r):gs.CSS_UNIT.test(r)}class yt{constructor(e="",t={}){if(e instanceof yt)return e;typeof e=="number"&&(e=e_e(e)),this.originalInput=e;const s=t_e(e);this.originalInput=e,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=t.format??s.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3}getLuminance(){const e=this.toRgb();let t,s,n;const i=e.r/255,a=e.g/255,o=e.b/255;return i<=.03928?t=i/12.92:t=Math.pow((i+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),.2126*t+.7152*s+.0722*n}getAlpha(){return this.a}setAlpha(e){return this.a=t7(e),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:e}=this.toHsl();return e===0}toHsv(){const e=Px(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}}toHsvString(){const e=Px(this.r,this.g,this.b),t=Math.round(e.h*360),s=Math.round(e.s*100),n=Math.round(e.v*100);return this.a===1?`hsv(${t}, ${s}%, ${n}%)`:`hsva(${t}, ${s}%, ${n}%, ${this.roundA})`}toHsl(){const e=Cx(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}}toHslString(){const e=Cx(this.r,this.g,this.b),t=Math.round(e.h*360),s=Math.round(e.s*100),n=Math.round(e.l*100);return this.a===1?`hsl(${t}, ${s}%, ${n}%)`:`hsla(${t}, ${s}%, ${n}%, ${this.roundA})`}toHex(e=!1){return Ax(this.r,this.g,this.b,e)}toHexString(e=!1){return"#"+this.toHex(e)}toHex8(e=!1){return Xve(this.r,this.g,this.b,this.a,e)}toHex8String(e=!1){return"#"+this.toHex8(e)}toHexShortString(e=!1){return this.a===1?this.toHexString(e):this.toHex8String(e)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const e=Math.round(this.r),t=Math.round(this.g),s=Math.round(this.b);return this.a===1?`rgb(${e}, ${t}, ${s})`:`rgba(${e}, ${t}, ${s}, ${this.roundA})`}toPercentageRgb(){const e=t=>`${Math.round(or(t,255)*100)}%`;return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}}toPercentageRgbString(){const e=t=>Math.round(or(t,255)*100);return this.a===1?`rgb(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%)`:`rgba(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%, ${this.roundA})`}toCmyk(){return{...Lx(this.r,this.g,this.b)}}toCmykString(){const{c:e,m:t,y:s,k:n}=Lx(this.r,this.g,this.b);return`cmyk(${e}, ${t}, ${s}, ${n})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const e="#"+Ax(this.r,this.g,this.b,!1);for(const[t,s]of Object.entries(n0))if(e===s)return t;return!1}toString(e){const t=!!e;e=e??this.format;let s=!1;const n=this.a<1&&this.a>=0;return!t&&n&&(e.startsWith("hex")||e==="name")?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(s=this.toRgbString()),e==="prgb"&&(s=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(s=this.toHexString()),e==="hex3"&&(s=this.toHexString(!0)),e==="hex4"&&(s=this.toHex8String(!0)),e==="hex8"&&(s=this.toHex8String()),e==="name"&&(s=this.toName()),e==="hsl"&&(s=this.toHslString()),e==="hsv"&&(s=this.toHsvString()),e==="cmyk"&&(s=this.toCmykString()),s||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new yt(this.toString())}lighten(e=10){const t=this.toHsl();return t.l+=e/100,t.l=bp(t.l),new yt(t)}brighten(e=10){const t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(e/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(e/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(e/100)))),new yt(t)}darken(e=10){const t=this.toHsl();return t.l-=e/100,t.l=bp(t.l),new yt(t)}tint(e=10){return this.mix("white",e)}shade(e=10){return this.mix("black",e)}desaturate(e=10){const t=this.toHsl();return t.s-=e/100,t.s=bp(t.s),new yt(t)}saturate(e=10){const t=this.toHsl();return t.s+=e/100,t.s=bp(t.s),new yt(t)}greyscale(){return this.desaturate(100)}spin(e){const t=this.toHsl(),s=(t.h+e)%360;return t.h=s<0?360+s:s,new yt(t)}mix(e,t=50){const s=this.toRgb(),n=new yt(e).toRgb(),i=t/100,a={r:(n.r-s.r)*i+s.r,g:(n.g-s.g)*i+s.g,b:(n.b-s.b)*i+s.b,a:(n.a-s.a)*i+s.a};return new yt(a)}analogous(e=6,t=30){const s=this.toHsl(),n=360/t,i=[this];for(s.h=(s.h-(n*e>>1)+720)%360;--e;)s.h=(s.h+n)%360,i.push(new yt(s));return i}complement(){const e=this.toHsl();return e.h=(e.h+180)%360,new yt(e)}monochromatic(e=6){const t=this.toHsv(),{h:s}=t,{s:n}=t;let{v:i}=t;const a=[],o=1/e;for(;e--;)a.push(new yt({h:s,s:n,v:i})),i=(i+o)%1;return a}splitcomplement(){const e=this.toHsl(),{h:t}=e;return[this,new yt({h:(t+72)%360,s:e.s,l:e.l}),new yt({h:(t+216)%360,s:e.s,l:e.l})]}onBackground(e){const t=this.toRgb(),s=new yt(e).toRgb(),n=t.a+s.a*(1-t.a);return new yt({r:(t.r*t.a+s.r*s.a*(1-t.a))/n,g:(t.g*t.a+s.g*s.a*(1-t.a))/n,b:(t.b*t.a+s.b*s.a*(1-t.a))/n,a:n})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(e){const t=this.toHsl(),{h:s}=t,n=[this],i=360/e;for(let a=1;a<e;a++)n.push(new yt({h:(s+a*i)%360,s:t.s,l:t.l}));return n}equals(e){const t=new yt(e);return this.format==="cmyk"||t.format==="cmyk"?this.toCmykString()===t.toCmykString():this.toRgbString()===t.toRgbString()}}const i_e={async reset({commit:r}){r("setReset")},async initUiSettings({commit:r,dispatch:e,state:t},s){s.general&&s.general.locale&&e("onLocaleChange",s.general.locale)},async onThemeChange(r,e){const t=fl.framework.theme;t.dark=e.isDark,t.currentTheme.primary=e.color,t.currentTheme["primary-offset"]=new yt(e.color).desaturate(5).darken(10).toHexString(),t.themes.dark.logo=e.logo.light,t.themes.light.logo=e.logo.dark},async onLocaleChange({dispatch:r,state:e},t){r("wait/addWait",et.onLoadLanguage,{root:!0});const s=j3(),n=t!=="default"?await gv(t):await gv(s);e.uiSettings.general.locale!==t&&r("saveByPath",{path:"uiSettings.general.locale",value:t!=="default"?n:t,server:!0}),r("wait/removeWait",et.onLoadLanguage,{root:!0})},async initHost({commit:r},e){r("setInitHostConfig",e.hostConfig)},async initLocal({commit:r},e){r("setInitInstances",e)},async onInitApiConfig({commit:r},e){r("setInitApiConfig",e)},async removeInstance({commit:r},e){r("setRemoveInstance",e)},async updateInstance({commit:r,dispatch:e,state:t,getters:s},n){e("saveByPath",{path:"uiSettings.general.instanceName",value:n,server:!0});let i=s.getCurrentInstance;i&&(i={...i,name:t.uiSettings.general.instanceName},r("setUpdateInstanceName",i))},async saveByPath({commit:r},e){r("setSaveByPath",e),e.server&&I.serverWrite(e.path,e.value)},async updatePreset({commit:r,state:e},t){r("setPreset",t),I.serverWrite("uiSettings.dashboard.tempPresets",e.uiSettings.dashboard.tempPresets)},async removePreset({commit:r,state:e},t){r("setRemovePreset",t),I.serverWrite("uiSettings.dashboard.tempPresets",e.uiSettings.dashboard.tempPresets)},async updateFileSystemActiveFilters({commit:r,state:e},t){r("setFileSystemActiveFilters",t),I.serverWrite(`uiSettings.fileSystem.activeFilters.${t.root}`,e.uiSettings.fileSystem.activeFilters[t.root])},async updateFileSystemSortBy({commit:r,state:e},t){r("setFileSystemSortBy",t),I.serverWrite(`uiSettings.fileSystem.sortBy.${t.root}`,e.uiSettings.fileSystem.sortBy[t.root])},async updateFileSystemSortDesc({commit:r,state:e},t){r("setFileSystemSortDesc",t),I.serverWrite(`uiSettings.fileSystem.sortDesc.${t.root}`,e.uiSettings.fileSystem.sortDesc[t.root])},async updateHeader({commit:r,state:e},t){r("setUpdateHeader",t),e.uiSettings.tableHeaders[t.name]&&I.serverWrite(`uiSettings.tableHeaders.${t.name}`,e.uiSettings.tableHeaders[t.name])},async updateTheme({state:r,dispatch:e},t){const s={...r.uiSettings.theme,...t};e("onThemeChange",s),e("saveByPath",{path:"uiSettings.theme",value:s,server:!0})}},a_e={setReset(r){Object.assign(r,Hl())},setInitUiSettings(r,e){var t;if(e){if(e.theme){e.theme.color==null&&"currentTheme"in e.theme&&typeof e.theme.currentTheme=="object"&&e.theme.currentTheme!=null&&"primary"in e.theme.currentTheme&&typeof e.theme.currentTheme.primary=="string"&&(ye.debug("Converting legacy theme color"),e.theme.color=e.theme.currentTheme.primary,delete e.theme.currentTheme);const n=(t=e.theme.logo)==null?void 0:t.src;n!=null&&n.startsWith("/")&&(e.theme.logo.src=n.substring(1))}const s=I3(pv(r.uiSettings),e,(n,i)=>Array.isArray(n)?i:void 0);b.set(r,"uiSettings",s)}},setInitApiConfig(r,e){r.apiUrl=e.apiUrl,r.socketUrl=e.socketUrl,e.name&&e.name!==""&&(r.uiSettings.general.instanceName=e.name)},setInitHostConfig(r,e){r.hostConfig.blacklist=e.blacklist,r.hostConfig.endpoints=e.endpoints,r.hostConfig.hosted=e.hosted,r.hostConfig.themePresets=e.themePresets},setInitInstances(r,e){let t=[];const s=e.apiConfig,n=r.uiSettings;he.LOCAL_INSTANCES_STORAGE_KEY in localStorage&&(t=JSON.parse(localStorage[he.LOCAL_INSTANCES_STORAGE_KEY]));const i=t.findIndex(a=>a.apiUrl===e.apiConfig.apiUrl);i===-1?(n||n===null)&&s&&s.apiUrl!==""&&s.socketUrl!==""&&(t.forEach(a=>{a.active=!1}),t.push({...s,active:!0,name:r.uiSettings.general.instanceName})):t.forEach((a,o)=>{a.active=o===i,o===i&&a.name!==""&&(a.name=r.uiSettings.general.instanceName)}),localStorage.setItem(he.LOCAL_INSTANCES_STORAGE_KEY,JSON.stringify(t)),b.set(r,"instances",t)},setUpdateInstanceName(r,e){const t=r.instances.findIndex(s=>s.apiUrl===e.apiUrl);if(t>-1){const s=r.instances[t];b.set(r.instances,t,{...s,...e})}localStorage.setItem(he.LOCAL_INSTANCES_STORAGE_KEY,JSON.stringify(r.instances))},setRemoveInstance(r,e){const t=r.instances,s=t.findIndex(n=>n.apiUrl===e.apiUrl);s>=0&&(t.splice(s,1),b.set(r,"instances",t),localStorage.setItem(he.LOCAL_INSTANCES_STORAGE_KEY,JSON.stringify(t)))},setSaveByPath(r,e){rN(r,e.path,e.value)},setPreset(r,e){if(e.id===-1)e.id=Rl(),r.uiSettings.dashboard.tempPresets.push(e);else{const t=r.uiSettings.dashboard.tempPresets.findIndex(s=>s.id===e.id);t>=0&&b.set(r.uiSettings.dashboard.tempPresets,t,e)}},setRemovePreset(r,e){const t=r.uiSettings.dashboard.tempPresets.findIndex(s=>s.id===e.id);r.uiSettings.dashboard.tempPresets.splice(t,1)},setFileSystemActiveFilters(r,e){b.set(r.uiSettings.fileSystem.activeFilters,e.root,e.value)},setFileSystemSortBy(r,e){b.set(r.uiSettings.fileSystem.sortBy,e.root,e.value)},setFileSystemSortDesc(r,e){b.set(r.uiSettings.fileSystem.sortDesc,e.root,e.value)},setLayoutMode(r,e){r.layoutMode=e},setContainerColumnCount(r,e){r.containerColumnCount=e},setUpdateHeader(r,e){const t=e.header,s=t.key?"key":"value",n=t[s],i=r.uiSettings.tableHeaders[e.name];if(i){const a=i.findIndex(o=>o[s]===n);if(a>=0)b.set(i,a,{...i[a],visible:t.visible});else{const o={value:t.value,visible:t.visible};s==="key"&&(o.key=t.key),i.push(o)}}}},o_e=!0,l_e={namespaced:o_e,state:mpe,getters:Wve,actions:i_e,mutations:a_e},r7=()=>({uploads:[],download:null,currentPaths:{},disk_usage:{total:0,used:0,free:0},rootFiles:{},pathFiles:{}}),c_e=r7(),u_e={getDirectory:(r,e,t)=>s=>{const n=r.pathFiles[s];if(n){const i=[],[a,...o]=s.split("/"),l=o.join("/");if(l!==""){const u={type:"directory",name:"..",dirname:"..",modified:0,size:0};i.push(u)}for(const u of n.dirs){const d={...u,type:"directory",name:u.dirname,modified:new Date(u.modified).getTime()};i.push(d)}const c=a==="timelapse"?new Set(n.files.map(u=>u.filename).filter(u=>u.endsWith(".jpg"))):void 0;for(const u of n.files){const d=u.job_id&&t.history.jobs.find(h=>h.job_id===u.job_id)||{},p={...u,type:"file",name:u.filename,extension:u.filename.split(".").pop()||"",path:l,modified:new Date(u.modified).getTime(),history:d};if(c&&p.extension!=="jpg"){const h=`${p.filename.slice(0,-(p.extension.length+1))}.jpg`;c.has(h)&&(p.thumbnails=[{height:0,width:0,size:0,relative_path:h}])}i.push(p)}return i}},getRootFiles:r=>e=>r.rootFiles[e],isRootAvailable:(r,e,t)=>s=>t.server.info.registered_directories.includes(s),getRootProperties:()=>r=>{const e=[...E5,...sM,...O5];switch(r){case"gcodes":return{readonly:!1,accepts:[".gcode",".g",".gc",".gco",".ufp",".nc"],canView:e,canConfigure:!0,filterTypes:["hidden_files","print_start_time"]};case"config":return{readonly:!1,accepts:[".conf",".cfg",".md",".css",".jpg",".jpeg",".png",".gif"],canView:e,canConfigure:!1,filterTypes:["hidden_files","klipper_backup_files","moonraker_backup_files","crowsnest_backup_files"]};case"config_examples":return{readonly:!0,accepts:[],canView:e,canConfigure:!1,filterTypes:["hidden_files"]};case"docs":return{readonly:!0,accepts:[],canView:e,canConfigure:!1,filterTypes:["hidden_files"]};case"logs":return{readonly:!0,accepts:[],canView:e,canConfigure:!1,filterTypes:["hidden_files","rolled_log_files"]};case"timelapse":return{readonly:!1,accepts:[],canView:e,canConfigure:!1,filterTypes:["hidden_files"]};default:return{readonly:!0,accepts:[],canView:[],canConfigure:!1,filterTypes:["hidden_files"]}}},getFile:(r,e,t)=>(s,n)=>{const i=r.pathFiles[s],a=i==null?void 0:i.files.find(o=>o.filename===n);if(a){const o=a.job_id&&t.history.jobs.find(d=>d.job_id===a.job_id)||{},[,...l]=s.split("/"),c=l.join("/");return{...a,type:"file",name:a.filename,extension:a.filename.split(".").pop()||"",path:c,modified:new Date(a.modified).getDate(),history:o}}},getCurrentPathByRoot:r=>e=>r.currentPaths[e]||"",getLowOnSpace:r=>r.disk_usage.free<1073741824,getUsage:r=>r.disk_usage},Sp=(r,e)=>{if("path"in e){const s=Yt(e.path,r);return{type:"file",filename:s.filename,extension:s.filename.split(".").pop()||"",name:s.filename,path:s.path,size:e.size,modified:e.modified}}const t=Yt(e.filename,r);return{...e,type:"file",filename:t.filename,extension:t.filename.split(".").pop()||"",name:t.filename,path:t.path,modified:new Date(e.modified).getTime()}},d_e={async reset({commit:r}){r("setReset")},async onServerFilesGetDirectory({commit:r},e){const{disk_usage:t,files:s,dirs:n,__request__:i}=e,{path:a}=i.params,o=n.filter(l=>!he.FILTERED_FOLDER_NAMES.includes(l.dirname)&&!he.FILTERED_FILES_PREFIX.some(c=>l.dirname.startsWith(c))&&!he.FILTERED_FILES_EXTENSION.some(c=>l.dirname.endsWith(c)));r("setDiskUsage",t),r("setServerFilesGetDirectory",{path:a,content:{files:s,dirs:o}})},async onServerFilesListRoot({commit:r},e){const{root:t}=e.__request__.params;r("setServerFilesListRoot",{root:t,files:[...e]})},async onFileMetaData({commit:r,rootState:e},t){const s="gcodes",n=Yt(t.filename,s);if(!n.filtered){const i=Sp(s,t);(i.path?`${i.path}/${i.filename}`:`${i.filename}`)===e.printer.printer.print_stats.filename&&r("printer/setSocketNotify",{key:"current_file",payload:i},{root:!0}),r("setFileUpdate",{paths:n,root:s,file:i})}},async notifyCopyItem({dispatch:r},e){r("notifyModifyFile",e)},async notifyMoveItem({dispatch:r},e){r("notifyMoveFile",e)},async notifyUploadFile({dispatch:r},e){r("notifyCreateFile",e)},async notifyRootUpdate({commit:r},e){const t=e.item.root;r("setResetRoot",t),I.serverFilesGetDirectory(t,t)},async notifyModifyFile(r,e){const t=e.item.root,s=Yt(e.item.path,t);if(s.filtered||I.serverFilesGetDirectory(t,s.rootPath),e.source_item){const n=Yt(e.source_item.path,t);!n.filtered&&s.rootPath!==n.rootPath&&I.serverFilesGetDirectory(t,n.rootPath)}},async notifyCreateFile({commit:r,dispatch:e,rootState:t},s){const n=s.item.root,i=Yt(s.item.path,n);if(!i.filtered){const a=Sp(n,s.item);if(n==="gcodes"&&a.extension==="gcode"){const o=t.gcodePreview.file;o&&o.path===a.path&&o.filename===a.filename&&e("gcodePreview/reset",void 0,{root:!0}),I.serverFilesMetadata(s.item.path)}else r("setFileUpdate",{paths:i,root:n,file:a})}},async notifyCreateDir(r,e){const t=e.item.root,s=Yt(e.item.path,t);s.filtered||I.serverFilesGetDirectory(t,s.rootPath)},async notifyMoveFile(r,e){const t=e.item.root,s=Yt(e.item.path,t);if(s.filtered||I.serverFilesGetDirectory(t,s.rootPath),e.source_item){const n=Yt(e.source_item.path,t);!n.filtered&&s.rootPath!==n.rootPath&&I.serverFilesGetDirectory(t,n.rootPath)}},async notifyMoveDir({commit:r},e){const t=e.item.root,s=Yt(e.item.path,t);if(s.filtered||I.serverFilesGetDirectory(t,s.rootPath),e.source_item){const n=Yt(e.source_item.path,t);!n.filtered&&s.rootPath!==n.rootPath&&(I.serverFilesGetDirectory(t,n.rootPath),r("setPathDelete",{path:`${n.rootPath}/${n.filename}`,root:t}))}},async notifyDeleteFile({commit:r},e){const t=e.item.root,s=Yt(e.item.path,t);if(!s.filtered){const n=Sp(t,e.item);r("setItemDelete",{paths:s,root:t,file:n})}},async notifyDeleteDir({commit:r},e){const t=e.item.root,s=Yt(e.item.path,t);if(!s.filtered){const n=Sp(t,e.item);r("setItemDelete",{paths:s,root:t,file:n}),r("setPathDelete",{path:`${s.rootPath}/${s.filename}`,root:t})}},async updateFileUpload({commit:r},e){r("setUpdateFileUpload",e)},async removeFileUpload({commit:r},e){r("setRemoveFileUpload",e)},async updateFileDownload({commit:r},e){r("setUpdateFileDownload",e)},async removeFileDownload({commit:r},e){r("setRemoveFileDownload",e)},async updateCurrentPathByRoot({commit:r},e){r("setCurrentPath",e)}},p_e={setReset(r){Object.assign(r,r7())},setResetRoot(r,e){const t=Object.keys(r.pathFiles).filter(s=>s===e||s.startsWith(`${e}/`));for(const s of t)b.delete(r.pathFiles,s);r.currentPaths[e]&&b.set(r.currentPaths,e,void 0)},setServerFilesGetDirectory(r,e){const{path:t,content:s}=e;b.set(r.pathFiles,t,s)},setServerFilesListRoot(r,e){const{root:t,files:s}=e;b.set(r.rootFiles,t,s)},setFileUpdate(r,e){const{paths:t,file:s}=e,n=r.pathFiles[t.rootPath];if(n){const i=n.files.findIndex(l=>l.filename===t.filename),a=n.files[i];he.FILTERED_FILES_PREFIX.some(l=>t.filename.startsWith(l))||he.FILTERED_FILES_EXTENSION.some(l=>t.filename.endsWith(l))||(i>=0?b.set(n.files,i,{...a,...s}):n.files.push(s))}},setItemDelete(r,e){const{paths:t}=e,s=r.pathFiles[t.rootPath];if(s){const n=s.files.findIndex(i=>i.filename===t.filename);if(n>=0)s.files.splice(n,1);else{const i=s.dirs.findIndex(a=>a.dirname===t.filename);i>=0&&s.dirs.splice(i,1)}}},setPathDelete(r,e){const{path:t}=e,s=Object.keys(r.pathFiles).filter(n=>n===t||n.startsWith(`${t}/`));for(const n of s)b.delete(r.pathFiles,n)},setUpdateFileUpload(r,e){const t=r.uploads.findIndex(s=>s.filepath===e.filepath);t>=0?b.set(r.uploads,t,{...r.uploads[t],...e}):r.uploads.push(e)},setRemoveFileUpload(r,e){const t=r.uploads.findIndex(s=>s.filepath===e);t>=0&&r.uploads.splice(t,1)},setUpdateFileDownload(r,e){r.download={...r.download,...e}},setRemoveFileDownload(r){r.download=null},setCurrentPath(r,e){b.set(r.currentPaths,e.root,e.path)},setDiskUsage(r,e){b.set(r,"disk_usage",e)}},h_e=!0,f_e={namespaced:h_e,state:c_e,getters:u_e,actions:d_e,mutations:p_e},m_e={getLayoutConfigById:r=>(e,t)=>{let s;for(const n in r.layouts[e]){if(s)break;s=r.layouts[e][n].find(a=>a.id===t)}return s},getLayout:r=>e=>{if(r.layouts[e])return pv(r.layouts[e]);if(e.startsWith("dashboard"))return pv(r.layouts.dashboard)},isEnabledInLayout:(r,e)=>(t,s)=>{var i;return((i=Object.values(e.getLayout(t)??{}).flat().find(a=>a.id===s))==null?void 0:i.enabled)??!1},isEnabledInCurrentLayout:(r,e)=>t=>{const s=e.getSpecificLayoutName;return e.isEnabledInLayout(s,t)},getContainer:r=>(e,t)=>{if(r.layouts[e][t])return[...r.layouts[e][t]]},getConfig:(r,e)=>(t,s)=>{const n=e.getLayout(t);if(n)for(const i in n){const a=n[i].find(o=>o.id===s);if(a)return{...a}}},getSpecificLayoutName:(r,e,t,s)=>{const n=s["auth/getCurrentUser"];return n?`dashboard-${fl.framework.breakpoint.name}-${n.username}`:"dashboard"}},g_e={async reset({commit:r}){r("setReset")},async initLayout({commit:r},e){r("setInitLayout",e)},async onLayoutChange({commit:r,state:e},t){(e.layouts[t.name]||t.name.startsWith("dashboard"))&&(r("setLayoutChange",t),await I.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.layout.name+".layouts",e.layouts))},async onUpdateConfig({commit:r,state:e,dispatch:t},s){let n=e.layouts[s.name];if(n||(t("onLayoutChange",{name:s.name,value:e.layouts.dashboard}),n=e.layouts[s.name]),n)for(const i in n){const a=n[i].findIndex(o=>o.id===s.value.id);a>=0&&(r("setUpdateConfig",{name:s.name,container:i,i:a,value:s.value}),await I.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.layout.name+`.layouts.${s.name}.${i}`,e.layouts[s.name][i]))}}},v_e={setReset(r){Object.assign(r,Ra())},setInitLayout(r,e){if(e&&Object.keys(e).length>0){const t=Ra();for(const[n,i]of Object.entries(t.layouts))e.layouts[n]||(e.layouts[n]=i);const s=["dashboard"];for(const[n,i]of Object.entries(e.layouts)){for(const[o,l]of Object.entries(i))i[o]=l.filter(c=>c!=null);const a=s.find(o=>n.startsWith(o));if(a){const o=t.layouts[a],l=Object.values(o).flat().map(u=>u.id),c=Object.values(i).flat().map(u=>u.id);for(const[u,d]of Object.entries(o)){const p=i[u]||[];i[u]=[...p.filter(h=>l.includes(h.id)),...d.filter(h=>!c.includes(h.id))]}}if(n.startsWith("diagnostics")){const o=i;for(const l of Object.values(o))for(const c of l)for(const u of c.axes)for(const d of u.metrics)d.style.fillColor=d.style.fillColor??null}}Object.assign(r,e)}},setLayoutChange(r,e){b.set(r.layouts,e.name,e.value)},setUpdateConfig(r,e){b.set(r.layouts[e.name][e.container],e.i,e.value)}},__e=!0,y_e={namespaced:__e,state:Lle,getters:m_e,actions:g_e,mutations:v_e},i0=()=>({ready:!1,chart:[],selectedLegends:{}}),b_e=i0(),$_e={getChartData:r=>r.chart,getSelectedLegends:r=>r.selectedLegends,getChartRetention:(r,e,t,s)=>{var i,a;const n=s["server/getConfig"];return((i=n.data_store)==null?void 0:i.temperature_store_size)??((a=n.server)==null?void 0:a.temperature_store_size)??he.CHART_HISTORY_RETENTION},getBaseChartOptions:(r,e,t)=>(s={})=>{const n=t.config.uiSettings.theme.isDark,i=fl.framework.breakpoint.mobile,a=n?"rgba(255,255,255,0.65)":"rgba(0,0,0,0.45)",o=i?13:14,l={color:n?"#ffffff":"#000000",opacity:.05},c={color:n?"#ffffff":"#000000",opacity:.5},u={show:!0,borderWidth:1,borderColor:n?"rgba(255,255,255,0.25)":"rgba(0,0,0,0.15)"},d={backgroundColor:n?"rgba(15,15,15,0.75)":"rgba(255,255,255,0.75)",borderColor:n?"rgba(0,0,0,0.85)":"rgba(255,255,255,0.85)",textStyle:{color:a,fontSize:o}},p=fl.framework.theme.currentTheme;return{color:[p.primary,p.accent,p.info],grid:u,textStyle:{fontFamily:"Roboto"},tooltip:{...d,show:!0,trigger:"axis",position:["-8px","-8px"],formatter:f=>{let g=!1,v="<div>";return f.forEach(y=>{const C=y.dimensionNames[y.encode.x],x=y.dimensionNames[y.encode.y],$=s[x]||"";C&&x&&y.seriesName&&(g||(v+=`
|
||
<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(r,null);let s=e.length;for(;s--;){let n=e[s];if(typeof n=="string"){const i=t(n);i!==n&&(E_e(e)||(e[s]=i),n=i)}r[n]=!0}return r}function R_e(r){for(let e=0;e<r.length;e++)Is(r,e)||(r[e]=null);return r}function ta(r){const e=n7(null);for(const[t,s]of s7(r))Is(r,t)&&(Array.isArray(s)?e[t]=R_e(s):s&&typeof s=="object"&&s.constructor===Object?e[t]=ta(s):e[t]=s);return e}function mc(r,e){for(;r!==null;){const s=T_e(r,e);if(s){if(s.get)return us(s.get);if(typeof s.value=="function")return us(s.value)}r=O_e(r)}function t(){return null}return t}const Dx=Pr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),v1=Pr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_1=Pr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I_e=Pr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),y1=Pr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),F_e=Pr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Mx=Pr(["#text"]),Rx=Pr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),b1=Pr(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ix=Pr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Cp=Pr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H_e=Ps(/\{\{[\w\W]*|[\w\W]*\}\}/gm),j_e=Ps(/<%[\w\W]*|[\w\W]*%>/gm),B_e=Ps(/\${[\w\W]*}/gm),N_e=Ps(/^data-[\-\w.\u00B7-\uFFFF]/),V_e=Ps(/^aria-[\-\w]+$/),i7=Ps(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z_e=Ps(/^(?:\w+script|data):/i),U_e=Ps(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),a7=Ps(/^html$/i),W_e=Ps(/^[a-z][.\w]*(-[.\w]+)+$/i);var Fx=Object.freeze({__proto__:null,MUSTACHE_EXPR:H_e,ERB_EXPR:j_e,TMPLIT_EXPR:B_e,DATA_ATTR:N_e,ARIA_ATTR:V_e,IS_ALLOWED_URI:i7,IS_SCRIPT_OR_DATA:z_e,ATTR_WHITESPACE:U_e,DOCTYPE_NAME:a7,CUSTOM_ELEMENT:W_e});const gc={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},G_e=function(){return typeof window>"u"?null:window},q_e=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let s=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(s=t.getAttribute(n));const i="dompurify"+(s?"#"+s:"");try{return e.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function o7(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:G_e();const e=we=>o7(we);if(e.version="3.1.6",e.removed=[],!r||!r.document||r.document.nodeType!==gc.document)return e.isSupported=!1,e;let{document:t}=r;const s=t,n=s.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:o,Element:l,NodeFilter:c,NamedNodeMap:u=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:d,DOMParser:p,trustedTypes:h}=r,f=l.prototype,g=mc(f,"cloneNode"),v=mc(f,"remove"),y=mc(f,"nextSibling"),C=mc(f,"childNodes"),x=mc(f,"parentNode");if(typeof a=="function"){const we=t.createElement("template");we.content&&we.content.ownerDocument&&(t=we.content.ownerDocument)}let $,L="";const{implementation:G,createNodeIterator:K,createDocumentFragment:le,getElementsByTagName:ue}=t,{importNode:ne}=s;let fe={};e.isSupported=typeof s7=="function"&&typeof x=="function"&&G&&G.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:k,ERB_EXPR:T,TMPLIT_EXPR:P,DATA_ATTR:O,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:V}=Fx;let{IS_ALLOWED_URI:Q}=Fx,X=null;const q=Ge({},[...Dx,...v1,..._1,...y1,...Mx]);let Z=null;const te=Ge({},[...Rx,...b1,...Ix,...Cp]);let re=Object.seal(n7(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_e=null,Me=null,wt=!0,Lr=!0,Es=!1,Rd=!0,Jn=!1,Ul=!0,An=!1,Wl=!1,Gl=!1,Qn=!1,ao=!1,oo=!1,Id=!0,Fd=!1;const ql="user-content-";let lo=!0,Ln=!1,En={},ei=null;const Hd=Ge({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let co=null;const Zl=Ge({},["audio","video","img","source","image","track"]);let ti=null;const jd=Ge({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),uo="http://www.w3.org/1998/Math/MathML",Os="http://www.w3.org/2000/svg",Ts="http://www.w3.org/1999/xhtml";let ri=Ts,po=!1,ho=null;const yg=Ge({},[uo,Os,Ts],g1);let zi=null;const Bd=["application/xhtml+xml","text/html"],bg="text/html";let Rt=null,si=null;const $g=t.createElement("form"),Nd=function(D){return D instanceof RegExp||D instanceof Function},fo=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(si&&si===D)){if((!D||typeof D!="object")&&(D={}),D=ta(D),zi=Bd.indexOf(D.PARSER_MEDIA_TYPE)===-1?bg:D.PARSER_MEDIA_TYPE,Rt=zi==="application/xhtml+xml"?g1:Yp,X=Is(D,"ALLOWED_TAGS")?Ge({},D.ALLOWED_TAGS,Rt):q,Z=Is(D,"ALLOWED_ATTR")?Ge({},D.ALLOWED_ATTR,Rt):te,ho=Is(D,"ALLOWED_NAMESPACES")?Ge({},D.ALLOWED_NAMESPACES,g1):yg,ti=Is(D,"ADD_URI_SAFE_ATTR")?Ge(ta(jd),D.ADD_URI_SAFE_ATTR,Rt):jd,co=Is(D,"ADD_DATA_URI_TAGS")?Ge(ta(Zl),D.ADD_DATA_URI_TAGS,Rt):Zl,ei=Is(D,"FORBID_CONTENTS")?Ge({},D.FORBID_CONTENTS,Rt):Hd,_e=Is(D,"FORBID_TAGS")?Ge({},D.FORBID_TAGS,Rt):{},Me=Is(D,"FORBID_ATTR")?Ge({},D.FORBID_ATTR,Rt):{},En=Is(D,"USE_PROFILES")?D.USE_PROFILES:!1,wt=D.ALLOW_ARIA_ATTR!==!1,Lr=D.ALLOW_DATA_ATTR!==!1,Es=D.ALLOW_UNKNOWN_PROTOCOLS||!1,Rd=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Jn=D.SAFE_FOR_TEMPLATES||!1,Ul=D.SAFE_FOR_XML!==!1,An=D.WHOLE_DOCUMENT||!1,Qn=D.RETURN_DOM||!1,ao=D.RETURN_DOM_FRAGMENT||!1,oo=D.RETURN_TRUSTED_TYPE||!1,Gl=D.FORCE_BODY||!1,Id=D.SANITIZE_DOM!==!1,Fd=D.SANITIZE_NAMED_PROPS||!1,lo=D.KEEP_CONTENT!==!1,Ln=D.IN_PLACE||!1,Q=D.ALLOWED_URI_REGEXP||i7,ri=D.NAMESPACE||Ts,re=D.CUSTOM_ELEMENT_HANDLING||{},D.CUSTOM_ELEMENT_HANDLING&&Nd(D.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=D.CUSTOM_ELEMENT_HANDLING.tagNameCheck),D.CUSTOM_ELEMENT_HANDLING&&Nd(D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),D.CUSTOM_ELEMENT_HANDLING&&typeof D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Jn&&(Lr=!1),ao&&(Qn=!0),En&&(X=Ge({},Mx),Z=[],En.html===!0&&(Ge(X,Dx),Ge(Z,Rx)),En.svg===!0&&(Ge(X,v1),Ge(Z,b1),Ge(Z,Cp)),En.svgFilters===!0&&(Ge(X,_1),Ge(Z,b1),Ge(Z,Cp)),En.mathMl===!0&&(Ge(X,y1),Ge(Z,Ix),Ge(Z,Cp))),D.ADD_TAGS&&(X===q&&(X=ta(X)),Ge(X,D.ADD_TAGS,Rt)),D.ADD_ATTR&&(Z===te&&(Z=ta(Z)),Ge(Z,D.ADD_ATTR,Rt)),D.ADD_URI_SAFE_ATTR&&Ge(ti,D.ADD_URI_SAFE_ATTR,Rt),D.FORBID_CONTENTS&&(ei===Hd&&(ei=ta(ei)),Ge(ei,D.FORBID_CONTENTS,Rt)),lo&&(X["#text"]=!0),An&&Ge(X,["html","head","body"]),X.table&&(Ge(X,["tbody"]),delete _e.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw fc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');$=D.TRUSTED_TYPES_POLICY,L=$.createHTML("")}else $===void 0&&($=q_e(h,n)),$!==null&&typeof L=="string"&&(L=$.createHTML(""));Pr&&Pr(D),si=D}},Yl=Ge({},["mi","mo","mn","ms","mtext"]),ni=Ge({},["foreignobject","annotation-xml"]),Vd=Ge({},["title","style","font","a","script"]),Ui=Ge({},[...v1,..._1,...I_e]),Kl=Ge({},[...y1,...F_e]),zd=function(D){let oe=x(D);(!oe||!oe.tagName)&&(oe={namespaceURI:ri,tagName:"template"});const $e=Yp(D.tagName),Xe=Yp(oe.tagName);return ho[D.namespaceURI]?D.namespaceURI===Os?oe.namespaceURI===Ts?$e==="svg":oe.namespaceURI===uo?$e==="svg"&&(Xe==="annotation-xml"||Yl[Xe]):!!Ui[$e]:D.namespaceURI===uo?oe.namespaceURI===Ts?$e==="math":oe.namespaceURI===Os?$e==="math"&&ni[Xe]:!!Kl[$e]:D.namespaceURI===Ts?oe.namespaceURI===Os&&!ni[Xe]||oe.namespaceURI===uo&&!Yl[Xe]?!1:!Kl[$e]&&(Vd[$e]||!Ui[$e]):!!(zi==="application/xhtml+xml"&&ho[D.namespaceURI]):!1},qr=function(D){pc(e.removed,{element:D});try{x(D).removeChild(D)}catch{v(D)}},Wi=function(D,oe){try{pc(e.removed,{attribute:oe.getAttributeNode(D),from:oe})}catch{pc(e.removed,{attribute:null,from:oe})}if(oe.removeAttribute(D),D==="is"&&!Z[D])if(Qn||ao)try{qr(oe)}catch{}else try{oe.setAttribute(D,"")}catch{}},Xl=function(D){let oe=null,$e=null;if(Gl)D="<remove></remove>"+D;else{const ee=kx(D,/^[\r\n\t ]+/);$e=ee&&ee[0]}zi==="application/xhtml+xml"&&ri===Ts&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const Xe=$?$.createHTML(D):D;if(ri===Ts)try{oe=new p().parseFromString(Xe,zi)}catch{}if(!oe||!oe.documentElement){oe=G.createDocument(ri,"template",null);try{oe.documentElement.innerHTML=po?L:Xe}catch{}}const F=oe.body||oe.documentElement;return D&&$e&&F.insertBefore(t.createTextNode($e),F.childNodes[0]||null),ri===Ts?ue.call(oe,An?"html":"body")[0]:An?oe.documentElement:F},Jl=function(D){return K.call(D.ownerDocument||D,D,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ql=function(D){return D instanceof d&&(typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||!(D.attributes instanceof u)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function")},ec=function(D){return typeof o=="function"&&D instanceof o},Ut=function(D,oe,$e){fe[D]&&xp(fe[D],Xe=>{Xe.call(e,oe,$e,si)})},Gi=function(D){let oe=null;if(Ut("beforeSanitizeElements",D,null),Ql(D))return qr(D),!0;const $e=Rt(D.nodeName);if(Ut("uponSanitizeElement",D,{tagName:$e,allowedTags:X}),D.hasChildNodes()&&!ec(D.firstElementChild)&&vr(/<[/\w]/g,D.innerHTML)&&vr(/<[/\w]/g,D.textContent)||D.nodeType===gc.progressingInstruction||Ul&&D.nodeType===gc.comment&&vr(/<[/\w]/g,D.data))return qr(D),!0;if(!X[$e]||_e[$e]){if(!_e[$e]&&ii($e)&&(re.tagNameCheck instanceof RegExp&&vr(re.tagNameCheck,$e)||re.tagNameCheck instanceof Function&&re.tagNameCheck($e)))return!1;if(lo&&!ei[$e]){const Xe=x(D)||D.parentNode,F=C(D)||D.childNodes;if(F&&Xe){const ee=F.length;for(let se=ee-1;se>=0;--se){const de=g(F[se],!0);de.__removalCount=(D.__removalCount||0)+1,Xe.insertBefore(de,y(D))}}}return qr(D),!0}return D instanceof l&&!zd(D)||($e==="noscript"||$e==="noembed"||$e==="noframes")&&vr(/<\/no(script|embed|frames)/i,D.innerHTML)?(qr(D),!0):(Jn&&D.nodeType===gc.text&&(oe=D.textContent,xp([k,T,P],Xe=>{oe=hc(oe,Xe," ")}),D.textContent!==oe&&(pc(e.removed,{element:D.cloneNode()}),D.textContent=oe)),Ut("afterSanitizeElements",D,null),!1)},Ud=function(D,oe,$e){if(Id&&(oe==="id"||oe==="name")&&($e in t||$e in $g))return!1;if(!(Lr&&!Me[oe]&&vr(O,oe))){if(!(wt&&vr(j,oe))){if(!Z[oe]||Me[oe]){if(!(ii(D)&&(re.tagNameCheck instanceof RegExp&&vr(re.tagNameCheck,D)||re.tagNameCheck instanceof Function&&re.tagNameCheck(D))&&(re.attributeNameCheck instanceof RegExp&&vr(re.attributeNameCheck,oe)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(oe))||oe==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&vr(re.tagNameCheck,$e)||re.tagNameCheck instanceof Function&&re.tagNameCheck($e))))return!1}else if(!ti[oe]){if(!vr(Q,hc($e,U,""))){if(!((oe==="src"||oe==="xlink:href"||oe==="href")&&D!=="script"&&k_e($e,"data:")===0&&co[D])){if(!(Es&&!vr(N,hc($e,U,"")))){if($e)return!1}}}}}}return!0},ii=function(D){return D!=="annotation-xml"&&kx(D,V)},qi=function(D){Ut("beforeSanitizeAttributes",D,null);const{attributes:oe}=D;if(!oe)return;const $e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Z};let Xe=oe.length;for(;Xe--;){const F=oe[Xe],{name:ee,namespaceURI:se,value:de}=F,Ue=Rt(ee);let Ne=ee==="value"?de:D_e(de);if($e.attrName=Ue,$e.attrValue=Ne,$e.keepAttr=!0,$e.forceKeepAttr=void 0,Ut("uponSanitizeAttribute",D,$e),Ne=$e.attrValue,Ul&&vr(/((--!?|])>)|<\/(style|title)/i,Ne)){Wi(ee,D);continue}if($e.forceKeepAttr||(Wi(ee,D),!$e.keepAttr))continue;if(!Rd&&vr(/\/>/i,Ne)){Wi(ee,D);continue}Jn&&xp([k,T,P],jt=>{Ne=hc(Ne,jt," ")});const it=Rt(D.nodeName);if(Ud(it,Ue,Ne)){if(Fd&&(Ue==="id"||Ue==="name")&&(Wi(ee,D),Ne=ql+Ne),$&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!se)switch(h.getAttributeType(it,Ue)){case"TrustedHTML":{Ne=$.createHTML(Ne);break}case"TrustedScriptURL":{Ne=$.createScriptURL(Ne);break}}try{se?D.setAttributeNS(se,ee,Ne):D.setAttribute(ee,Ne),Ql(D)?qr(D):Tx(e.removed)}catch{}}}Ut("afterSanitizeAttributes",D,null)},mo=function we(D){let oe=null;const $e=Jl(D);for(Ut("beforeSanitizeShadowDOM",D,null);oe=$e.nextNode();)Ut("uponSanitizeShadowNode",oe,null),!Gi(oe)&&(oe.content instanceof i&&we(oe.content),qi(oe));Ut("afterSanitizeShadowDOM",D,null)};return e.sanitize=function(we){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe=null,$e=null,Xe=null,F=null;if(po=!we,po&&(we="<!-->"),typeof we!="string"&&!ec(we))if(typeof we.toString=="function"){if(we=we.toString(),typeof we!="string")throw fc("dirty is not a string, aborting")}else throw fc("toString is not a function");if(!e.isSupported)return we;if(Wl||fo(D),e.removed=[],typeof we=="string"&&(Ln=!1),Ln){if(we.nodeName){const de=Rt(we.nodeName);if(!X[de]||_e[de])throw fc("root node is forbidden and cannot be sanitized in-place")}}else if(we instanceof o)oe=Xl("<!---->"),$e=oe.ownerDocument.importNode(we,!0),$e.nodeType===gc.element&&$e.nodeName==="BODY"||$e.nodeName==="HTML"?oe=$e:oe.appendChild($e);else{if(!Qn&&!Jn&&!An&&we.indexOf("<")===-1)return $&&oo?$.createHTML(we):we;if(oe=Xl(we),!oe)return Qn?null:oo?L:""}oe&&Gl&&qr(oe.firstChild);const ee=Jl(Ln?we:oe);for(;Xe=ee.nextNode();)Gi(Xe)||(Xe.content instanceof i&&mo(Xe.content),qi(Xe));if(Ln)return we;if(Qn){if(ao)for(F=le.call(oe.ownerDocument);oe.firstChild;)F.appendChild(oe.firstChild);else F=oe;return(Z.shadowroot||Z.shadowrootmode)&&(F=ne.call(s,F,!0)),F}let se=An?oe.outerHTML:oe.innerHTML;return An&&X["!doctype"]&&oe.ownerDocument&&oe.ownerDocument.doctype&&oe.ownerDocument.doctype.name&&vr(a7,oe.ownerDocument.doctype.name)&&(se="<!DOCTYPE "+oe.ownerDocument.doctype.name+`>
|
||
`+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))},setUpdateCommandHistory(r,e){e&&(r.commandHistory=[...e])},setConsoleCommand(r,e){r.consoleCommand=e},setAutoScroll(r,e){r.autoScroll=e},setFilter(r,e){if(e.id){const t=r.consoleFilters.findIndex(s=>s.id===e.id);if(t>=0){const{type:s,value:n}=r.consoleFilters[t];b.set(r.consoleFilters,t,e),(s!==e.type||n!==e.value)&&b.set(r.consoleFiltersRegexp,t,$1(e))}}else e.id=Rl(),r.consoleFilters.push(e),r.consoleFiltersRegexp.push($1(e))},setRemoveFilter(r,e){const t=r.consoleFilters.findIndex(s=>s.id===e.id);t>=0&&(r.consoleFilters.splice(t,1),r.consoleFiltersRegexp.splice(t,1))},setLastCleared(r){b.set(r,"lastCleared",Date.now())}},K_e=!0,X_e={namespaced:K_e,state:P_e,getters:L_e,actions:Z_e,mutations:Y_e},l7=()=>({stored:[],categories:[],expanded:[0]}),J_e=l7(),c7={alias:"",visible:!0,disabledWhilePrinting:!1,color:"",categoryId:"0",order:void 0},Q_e={getMacros:(r,e,t)=>Object.keys(t.printer.printer).filter(n=>/^gcode_macro (?!_)/.test(n)).map(n=>{const i=n.toLocaleLowerCase(),a=i.split(" ",2)[1],o=t.printer.printer.configfile.settings[i],l=r.stored.find(d=>d.name===a),c=t.printer.printer[n],u={...c7,name:a,...l,variables:c,config:o};if(l!=null&&l.categoryId){const d=r.categories.find(p=>p.id===l.categoryId);d?u.category=d:u.categoryId="0"}return u}),getMacroByName:(r,e)=>(...t)=>{const s=e.getMacros;for(const n of t){const i=s.find(a=>a.name===n);if(i)return i}},getVisibleMacros:(r,e)=>{const t={id:"0",name:null},s=[...r.categories,t],n=["autotune_shapers","bed_mesh_calibrate","beep","beep_off","beep_on","clear_nozzle","clear_nozzle_plr","detect_interruption","g31","g32","get_zoffset","log_z","m0","m4027","m4028","m4029","m4030","m4031","m8029","move_subzoffset","save_last_file","save_zoffset","set_zoffset","test_zoffset","z_vibrate","zoffset"];return s.map(({id:i,name:a})=>({id:i,name:a,macros:e.getMacrosByCategory(i).filter(o=>o.visible&&!n.includes(o.name))})).filter(i=>i.macros.length>0).sort((i,a)=>i.name?a.name?i.name.localeCompare(a.name):-1:1)},getMacrosByCategory:(r,e)=>t=>{const s=t||"0",n=e.getMacros,i=["autotune_shapers","bed_mesh_calibrate","beep","beep_off","beep_on","clear_nozzle","clear_nozzle_plr","detect_interruption","g31","g32","get_zoffset","log_z","m0","m4027","m4028","m4029","m4030","m4031","m8029","move_subzoffset","save_last_file","save_zoffset","set_zoffset","test_zoffset","z_vibrate","zoffset"];return n.filter(a=>a.categoryId===s&&!i.includes(a.name)).sort((a,o)=>a.order!==void 0&&o.order!==void 0&&a.order!==o.order?a.order-o.order:a.name.localeCompare(o.name))},getCategories:(r,e)=>r.categories.map(s=>{const{id:n,name:i}=s,a=e.getMacrosByCategory(n),o=a.length,l=a.filter(c=>c.visible).length;return{id:n,name:i,visible:l,count:o}}).sort((s,n)=>s.name.localeCompare(n.name))},e0e={async reset({commit:r}){r("setReset")},initMacros({commit:r},e){r("initMacros",e)},saveMacro({state:r,commit:e},t){e("setUpdateMacro",t),I.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.macros.name+".stored",r.stored)},saveAllOrder({state:r,commit:e},t){t.forEach((s,n)=>{e("setUpdateMacro",{...s,order:n})}),I.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.macros.name+".stored",r.stored)},saveAllOn({state:r,commit:e},t){e("setUpdateAllVisible",{macros:t,visible:!0}),I.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.macros.name+".stored",r.stored)},saveAllOff({state:r,commit:e},t){e("setUpdateAllVisible",{macros:t,visible:!1}),I.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.macros.name+".stored",r.stored)},addCategory({commit:r,state:e},t){r("setAddCategory",t),I.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.macros.name+".categories",e.categories)},editCategory({commit:r,state:e},t){r("setEditCategory",t),I.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.macros.name,e)},removeCategory({commit:r,state:e},t){r("setRemoveCategory",t),I.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.macros.name,e)},saveExpanded({commit:r,state:e},t){r("setExpanded",t),I.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.macros.name+".expanded",e.expanded)}},w1=r=>{for(const e in r)e==="name"||e in c7||delete r[e];return r},t0e={setReset(r){Object.assign(r,l7())},initMacros(r,e){e&&e.categories&&typeof e.categories[0]=="string"&&(e.categories=[]),e&&Object.assign(r,e)},setUpdateMacro(r,e){const t=w1({...e}),s=r.stored.findIndex(n=>n.name===e.name);s<0?r.stored.push(t):b.set(r.stored,s,t)},setUpdateAllVisible(r,e){e.macros.forEach(t=>{const s=r.stored.findIndex(i=>i.name===t.name),n=w1({...t,visible:e.visible});s<0?r.stored.push(n):b.set(r.stored,s,n)})},setAddCategory(r,e){r.categories.push({id:Rl(),name:e})},setEditCategory(r,e){const t=r.categories.findIndex(s=>s.id===e.id);b.set(r.categories,t,{id:e.id,name:e.name}),r.stored.forEach((s,n)=>{s.categoryId===e.id&&b.set(r.stored,n,{...s,categoryId:e.id})})},setRemoveCategory(r,e){const t=r.categories.findIndex(s=>s.id===e.id);t>=0&&(r.categories.splice(t,1),r.stored.forEach((s,n)=>{if(s.categoryId===e.id){const i=w1({...s});delete i.categoryId,b.set(r.stored,n,i)}}))},setExpanded(r,e){b.set(r,"expanded",e)}},r0e=!0,s0e={namespaced:r0e,state:J_e,getters:Q_e,actions:e0e,mutations:t0e},u7=()=>({devices:[]}),n0e=u7(),i0e={getDevices:r=>r.devices.filter(e=>!e.device.startsWith("_")),getDeviceByName:(r,e)=>t=>e.getDevices.find(n=>n.device===t)},a0e={async reset({commit:r}){r("setReset")},async init(){I.machineDevicePowerDevices()},async onInit({commit:r},e){e.devices&&e.devices.length>0&&r("setDevices",e)},async onStatus({commit:r},e){r("setStatus",e)},async onToggle({commit:r},e){r("setStatus",e)}},o0e={setReset(r){Object.assign(r,u7())},setDevices(r,e){r.devices=e.devices},setStatus(r,e){for(const t in e){const s=r.devices.findIndex(n=>n.device===t);s>=0&&b.set(r.devices[s],"status",e[t])}}},l0e=!0,c0e={namespaced:l0e,state:n0e,getters:i0e,actions:a0e,mutations:o0e},d7=()=>({count:0,jobs:[],job_totals:{total_jobs:0,total_time:0,total_print_time:0,total_filament_used:0,longest_job:0,longest_print:0}}),u0e=d7(),d0e={getHistory:r=>r.jobs&&r.jobs.length?[...r.jobs].sort((e,t)=>t.start_time-e.start_time):[],getHistoryById:r=>e=>r.jobs.find(t=>t.job_id===e),getHistoryByFilename:r=>e=>r.jobs.find(t=>t.filename===e&&t.status==="completed"&&t.exists===!0),getUniqueHistory:(r,e)=>(t=3)=>{const s=[],n=e.getHistory;for(const i of n)if(i.exists&&(s.some(o=>i.filename===o.filename)||s.push(i),s.length===t))break;return s},getRollUp:r=>{const e=r.job_totals;return{...e,filament_avg:e.total_filament_used?e.total_filament_used/e.total_jobs:0,print_avg:e.total_print_time?e.total_print_time/e.total_jobs:0,total_avg:e.total_time?e.total_time/e.total_jobs:0}}},p0e={async reset({commit:r}){r("setReset")},async init(){I.serverHistoryList({limit:he.JOB_HISTORY_LOAD}),I.serverHistoryTotals()},async updateHistory({commit:r},e){e&&r("setUpdateHistory",e)},async clearHistoryThumbnails({commit:r},e){e&&r("setClearHistoryThumbnails",e)},async onHistoryTotals({commit:r},e){e&&r("setHistoryTotals",e)},async onHistoryList({commit:r},e){e&&r("setHistoryList",e)},async onHistoryChange({commit:r},e){I.serverHistoryTotals(),e&&(e.action==="added"&&r("setAddHistory",e.job),e.action==="finished"&&r("setUpdateHistory",e.job))},async onDelete({commit:r},e){r("setDeleteJob",e.deleted_jobs)}},h0e={setReset(r){Object.assign(r,d7())},setHistoryTotals(r,e){e&&b.set(r,"job_totals",e.job_totals)},setHistoryList(r,e){e.jobs!==void 0&&b.set(r,"jobs",e.jobs),e.count!==void 0&&b.set(r,"count",e.count)},setAddHistory(r,e){e&&(r.jobs.push(e),r.count++)},setUpdateHistory(r,e){if(e){const t=r.jobs.findIndex(s=>s.job_id===e.job_id);t>=0&&b.set(r.jobs,t,e)}},setClearHistoryThumbnails(r,e){if(e){const t=r.jobs.findIndex(s=>s.job_id===e);if(t>=0){const s=r.jobs[t];b.set(r.jobs,t,{...s,metadata:{...s.metadata,thumbnails:[]}})}}},setDeleteJob(r,e){e&&e.forEach(t=>{const s=r.jobs.findIndex(n=>n.job_id===t);s>=0&&r.jobs.splice(s,1)})}},f0e=!0,m0e={namespaced:f0e,state:u0e,getters:d0e,actions:p0e,mutations:h0e},p7=()=>({busy:!1,github_limit_reset_time:0,github_rate_limit:0,github_requests_remaining:0,responses:[],version_info:{},fluidd:{version:"",hash:""}}),g0e=p7(),v0e={getVisibleComponents:r=>Object.keys(r.version_info).map(t=>{const s=r.version_info[t];return s.key=t,s}).sort((t,s)=>t.key.localeCompare(s.key)),hasUpdates:(r,e,t)=>t.config.uiSettings.general.enableVersionNotifications&&Object.keys(r.version_info).filter(n=>n!=="system").some(e.hasUpdate),hasUpdate:r=>e=>{const t=r.version_info[e];if("name"in t){const s=_s.valid(t.version),n=_s.valid(t.remote_version);if(s&&n)return _s.gt(n,s)}else if("package_count"in t)return t.package_count>0;return"current_hash"in t&&"remote_hash"in t?t.current_hash!==t.remote_hash:!1},getResponses:r=>[...r.responses],getCommitHistory:r=>e=>{const t=r.version_info[e];if(t&&"git_messages"in t){const s=[...t.commits_behind].reduce((n,i)=>{const a=new Date(+i.date*1e3),o=+new Date(a.getFullYear(),a.getMonth(),a.getDate());return o in n?n[o].push(i):n[o]=[i],n},{});return{keys:Object.keys(s).map(n=>parseInt(n)).sort().reverse(),result:s}}}},_0e={async reset({commit:r}){r("setReset")},async init(){I.machineUpdateStatus()},async onUpdateStatus({commit:r,dispatch:e,getters:t},s){},async onUpdateResponse({commit:r},e){r("setUpdateResponse",e)},async onUpdatedMoonraker({commit:r},e){ye.debug("Finished updating moonraker",e),I.machineUpdateStatus(),r("socket/setSocketDisconnecting",!0,{root:!0})},async onUpdatedKlipper(r,e){ye.debug("Finished updating klipper",e),I.machineUpdateStatus()},async onUpdatedClient(r,e){ye.debug("Finished updating a client",e),I.machineUpdateStatus()},async onUpdatedFluidd(r,e){ye.debug("Finished updating fluidd, reloading",e),window.location.reload()},async onUpdatedSystem(r,e){ye.debug("Finished updating system",e),I.machineUpdateStatus()},async onUpdatedAll(r,e){ye.debug("Finished updating all services",e),window.location.reload()}},y0e={setReset(r){Object.assign(r,p7())},setUpdateStatus(r,e){if(e){"busy"in e&&(r.busy=e.busy),"github_limit_reset_time"in e&&(r.github_limit_reset_time=e.github_limit_reset_time),"github_rate_limit"in e&&(r.github_rate_limit=e.github_rate_limit),"github_requests_remaining"in e&&(r.github_requests_remaining=e.github_requests_remaining);const t=Object.assign({},r.version_info,e.version_info);b.set(r,"version_info",t)}},setUpdateResponse(r,e){if(e.complete)r.busy=!1;else{const t=r.responses.length;r.responses.push({...e,id:t})}},setClearUpdateResponse(r){r.responses=[]},setVersion(r,e){r.fluidd.version=e},setHash(r,e){r.fluidd.hash=e}},b0e=!0,$0e={namespaced:b0e,state:g0e,getters:v0e,actions:_0e,mutations:y0e},h7=()=>({range:0,wireframe:!1,scale:.2,boxScale:2,flatSurface:!1,matrix:"mesh_matrix"}),w0e=h7(),Pp=(r,e,t=!1)=>{const s=r[e],n=[];let i=0,a=0,o=0,l=0,c=0,u=0;if(s&&s.length>=3&&s[0]&&s[0].length>=3&&r.mesh_min&&r.mesh_max){const d=(r.mesh_max[0]-r.mesh_min[0])/(s[0].length-1),p=(r.mesh_max[1]-r.mesh_min[1])/(s.length-1);i=Math.min(...s.map(h=>Math.min(...h))),o=Math.max(...s.map(h=>Math.max(...h))),i<=0&&o>=0?a=0:a=(o+i)/2,l=Math.abs(i-o);for(const h of s){c=0;const f=r.mesh_min[1]+u*p;for(const g of h){const v=r.mesh_min[0]+c*d;c++,n.push({name:`x${c}_y${u}`,value:[v,f,t?a:g]})}u++}}return{coordinates:n,dimensions:[u,c],min:i,mid:a,max:o,range:l}},S0e={getSupportsBedMesh:(r,e,t,s)=>s["printer/getPrinterSettings"]("bed_mesh")!==void 0,getLegacyBedMeshProfiles:(r,e,t,s)=>{const n={},i=s["printer/getPrinterConfig"](),a=Object.keys(i).filter(o=>o.startsWith("bed_mesh "));for(const o of a){const l=o.split(" ").splice(1).join(" "),c=i[o],u={points:c.points.split(`
|
||
`).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.assign(r,m7())},setAnnouncementsList(r,e){e.entries&&b.set(r,"entries",e.entries),e.feeds&&b.set(r,"feeds",e.feeds)},setAnnouncementDismissed(r,e){const t=[...r.entries],s=t.find(n=>n.entry_id===e.entry_id);s&&(s.dismissed=e.dismissed,e.dismissed?s.date_dismissed=Date.now():(s.date_dismissed=null,s.dismiss_wake=null)),b.set(r,"entries",t)}},H0e=!0,j0e={namespaced:H0e,state:M0e,getters:R0e,actions:I0e,mutations:F0e},g7=()=>({waits:[]}),B0e=g7(),N0e={hasWait:r=>e=>{if(Array.isArray(e)&&e.length){let t=e;return t=t.filter(s=>r.waits.includes(s)),t.length>0}else return e=e,r.waits.includes(e)},hasWaits:r=>r.waits.length>0,hasWaitsBy:r=>e=>r.waits.filter(s=>s.startsWith(e)).length>0},V0e={async reset({commit:r}){r("setReset")},async addWait({commit:r},e){r("setAddWait",e)},async removeWait({commit:r},e){r("setRemoveWait",e)}},z0e={setReset(r){Object.assign(r,g7())},setAddWait(r,e){r.waits.indexOf(e)===-1&&r.waits.push(e)},setRemoveWait(r,e){const t=r.waits.indexOf(e);t!==-1&&r.waits.splice(t,1)}},U0e=!0,W0e={namespaced:U0e,state:B0e,getters:N0e,actions:V0e,mutations:z0e},v7=()=>({moves:[],layers:[],parts:[],file:void 0,parserProgress:0,parserWorker:null,viewer:{showCurrentLayer:!0,showNextLayer:!1,showPreviousLayer:!1,showMoves:!0,showExtrusions:!0,showRetractions:!0,showParts:!0,followProgress:!1}}),G0e=v7(),q0e=(r,e,t=!1)=>{if(r.length<=1)return 0;let s=Math.floor(r.length/2),n=r.length-1,i=0;for(;i<=n;){const a=e(r[s],s,r);if(a>0)i=s+1;else if(a<0)n=s-1;else return s;s=Math.floor((i+n)/2)}return t?s:-1};function Z0e(r,e){const t=Math.abs(r.x-e.x),s=Math.abs(r.y-e.y);return Math.sqrt(t**2+s**2)}function Bx(r,e){return Math.atan2(e.y-r.y,e.x-r.x)*(180/Math.PI)}function Y0e(r,e){const t={x:e.x??r.x,y:e.y??r.y},s={x:r.x+(e.i??0),y:r.y+(e.j??0)},n=Z0e(r,s);let i=Bx(s,r)-Bx(s,t);switch(i>180?i-=360:i<-180&&(i+=360),e.direction){case"clockwise":return"A"+[n,n,0,+(i<0),0,t.x,t.y].join(",");case"counter-clockwise":return"M"+[t.x,t.y].join(",")+"A"+[n,n,0,+(i>0),0,r.x,r.y].join(",")+"M"+[t.x,t.y].join(",");default:throw new TypeError("move has no direction")}}function K0e(r,e){if(e.i!==void 0||e.j!==void 0)return Y0e(r,e);throw e.r!==void 0?new Error("Arcs with the R parameter are currently not supported. Please make a Github issue with some sample gcode so we can resolve this"):new TypeError("Move is not a valid arc")}function Nx(r,e){return Object.hasOwnProperty.call(e,"direction")?K0e(r,e):`L${e.x??r.x},${e.y??r.y}`}const X0e={getMoves:r=>r.moves,getFile:r=>r.file,getViewerOption:r=>e=>r.viewer[e],getParserProgress:r=>r.parserProgress,getLayers:(r,e,t)=>{if(r.layers.length)return r.layers;const s=[],n=e.getMoves;let i=NaN,a=0,o=NaN,l=NaN;const{minLayerHeight:c}=t.config.uiSettings.gcodePreview;return n.forEach((u,d)=>{u.z!==void 0&&i!==u.z&&(i=u.z,a=d),u.e&&u.e>0&&(Number.isNaN(o)||i<o||i>=l)&&["x","y","i","j"].some(p=>hl(p,u)&&u[p]!==0)&&(o=i,l=Math.round((i+c)*1e4)/1e4,s.push({z:i,move:a,filePosition:u.filePosition}))}),s.length===0&&n.length&&s.push({z:0,move:0,filePosition:n[0].filePosition}),s},getParts:r=>r.parts,getBounds:(r,e)=>{var c,u;let t=e.getMoves;const s=e.getLayers,n=(c=s[s.length>1?1:0])==null?void 0:c.move,i=(u=s[s.length-1])==null?void 0:u.move;n&&i&&(t=t.slice(n,i));const a={x:{min:NaN,max:NaN},y:{min:NaN,max:NaN}},o=Number.isFinite;let l=0;for(;l<t.length&&!Object.values(a).every(o);l++){const d=t[l];o(d.x)&&(a.x.min=o(a.x.min)?Math.min(a.x.min,d.x):d.x,a.x.max=o(a.x.max)?Math.max(a.x.max,d.x):d.x),o(d.y)&&(a.y.min=o(a.y.min)?Math.min(a.y.min,d.y):d.y,a.y.max=o(a.y.max)?Math.max(a.y.max,d.y):d.y)}for(;l<t.length;l++){const d=t[l];o(d.x)&&(a.x.min=Math.min(a.x.min,d.x),a.x.max=Math.max(a.x.max,d.x)),o(d.y)&&(a.y.min=Math.min(a.y.min,d.y),a.y.max=Math.max(a.y.max,d.y))}return{x:{min:o(a.x.min)?a.x.min:0,max:o(a.x.max)?a.x.max:0},y:{min:o(a.y.min)?a.y.min:0,max:o(a.y.max)?a.y.max:0}}},getToolHeadPosition:(r,e)=>t=>{const s=Number.isFinite,n=e.getMoves,i={x:NaN,y:NaN,z:NaN};for(let a=t;a>=0&&(!s(i.x)||!s(i.y)||!s(i.z));a--)!s(i.x)&&n[a].x!==void 0&&(i.x=n[a].x),!s(i.y)&&n[a].y!==void 0&&(i.y=n[a].y),!s(i.z)&&n[a].z!==void 0&&(i.z=n[a].z);return{x:s(i.x)?i.x:0,y:s(i.y)?i.y:0,z:s(i.z)?i.z:0}},getPaths:(r,e)=>(t,s)=>{const n=e.getToolHeadPosition(t),i=e.getMoves,a={extrusions:"",moves:`M${n.x},${n.y}`,retractions:[],extrusionStarts:[],toolhead:{x:0,y:0}};let o=!0;for(let l=t;l<=s&&l<i.length;l++){const c=i[l];c.e>0?(o&&(a.extrusions+=`M${n.x},${n.y}`,a.extrusionStarts.push({x:n.x,y:n.y}),o=!1),a.extrusions+=Nx(n,c),Object.assign(n,c)):(o||(a.moves+=`M${n.x},${n.y}`,o=!0),c.e<0&&a.retractions.push({x:n.x,y:n.y}),a.moves+=Nx(n,c),Object.assign(n,c))}return a.toolhead={x:n.x,y:n.y},a},getLayerPaths:(r,e)=>t=>{var n,i;const s=e.getLayers;return e.getPaths(((n=s[t])==null?void 0:n.move)??0,(((i=s[t+1])==null?void 0:i.move)??1/0)-1)},getPartPaths:(r,e)=>e.getParts.map(s=>{const n=[];return s.polygon.forEach((i,a)=>{n.push(`${a===0?"M":"L"}${i.x},${i.y}`)}),n.push("z"),n.join()}),getMoveIndexByFilePosition:(r,e)=>t=>t<=0?0:q0e(e.getMoves,s=>t-s.filePosition,!0),getLayerNrByFilePosition:(r,e)=>t=>{const s=e.getLayers;for(let n=0;n<s.length-1;n++)if(t<s[n+1].filePosition)return n;return s.length-1}};function J0e(r){return new Worker(""+new URL("parseGcode.worker-DKc0-WBC.js",import.meta.url).href,{name:r==null?void 0:r.name})}const Q0e={async reset({commit:r}){r("setReset")},async terminateParserWorker({commit:r,state:e}){if(e.parserWorker){const t=e.parserWorker;r("setParserWorker",null),t.terminate(),r("clearFile")}},async loadGcode({commit:r,getters:e,state:t,rootState:s},n){const i=new J0e;r("setParserWorker",i),i.addEventListener("message",o=>{const l=o.data;switch(l.action){case"progress":{r("setParserProgress",l.filePosition);break}case"result":{try{r("setMoves",l.moves),r("setLayers",l.layers),r("setParts",l.parts),r("setParserProgress",n.file.size??n.gcode.length),s.config.uiSettings.gcodePreview.hideSinglePartBoundingBox&&l.parts.length<=1&&r("setViewerState",{showParts:!1})}catch(c){ye.error("Parser worker error",c)}t.parserWorker&&(r("setParserWorker",null),i.terminate()),e.getMoves.length===0&&r("clearFile");break}}}),r("setParserProgress",0),r("setMoves",[]),r("setLayers",[]),r("setFile",n.file);const a={action:"parse",gcode:n.gcode};i.postMessage(a)}},eye={setReset(r){Object.assign(r,v7())},setMoves(r,e){b.set(r,"moves",Object.freeze(e.map(Object.freeze)))},setLayers(r,e){b.set(r,"layers",Object.freeze(e.map(Object.freeze)))},setParts(r,e){b.set(r,"parts",Object.freeze(e.map(Object.freeze)))},setFile(r,e){r.file=e},clearFile(r){r.file=void 0},setViewerState(r,e){for(const t of Object.keys(r.viewer))hl(t,e)&&e[t]!==void 0&&b.set(r.viewer,t,e[t])},setParserProgress(r,e){r.parserProgress=e},setParserWorker(r,e){r.parserWorker=e}},tye=!0,rye={namespaced:tye,state:G0e,getters:X0e,actions:Q0e,mutations:eye},sye={getSettings:r=>r.settings,getLastFrame:r=>r.lastFrame,getRenderStatus:r=>r.renderStatus,isBlockedSetting:r=>e=>{var t;return((t=r.settings)==null?void 0:t.blockedsettings.includes(e))??!0}},nye={async reset({commit:r}){r("setReset")},async init(){I.timelapseState()},async onSettings({commit:r},e){r("setSettings",e)},async onLastFrame({commit:r},e){var s,n;const t=+(((n=(s=e.lastframefile)==null?void 0:s.match(/\d+/))==null?void 0:n[0])??0);r("setLastFrame",{count:e.framecount,uniqueCount:t,file:e.lastframefile})},async onEvent({commit:r},e){switch(e.action){case"newframe":{if(e.status==="error")mr.$emit(rt.tc("app.timelapse.error.newframe"),{type:"error"});else{const t=parseInt(e.frame);r("setLastFrame",{count:t,uniqueCount:t,file:e.framefile})}break}case"render":{let t;switch(e.status){case"started":{t={status:"started",count:e.framecount,settings:{frameRate:e.framerate,crf:e.crf,pixelFormat:e.pixelformat}};break}case"running":{t={status:"running",progress:e.progress};break}case"success":{t={status:"success",frameCount:e.framecount,fileName:e.filename,printFile:e.printfile,previewImage:e.previewimage,message:e.msg};break}default:{ye.warn("unhandled timelapse render status",e);return}}r("setRenderStatus",t);break}default:{ye.warn("unhandled timelapse event",e);break}}}},iye={setReset(r){Object.assign(r,m8())},setSettings(r,e){r.settings=e},setLastFrame(r,e){r.lastFrame=e,r.renderStatus=void 0},setRenderStatus(r,e){r.renderStatus=e}},aye=!0,oye={namespaced:aye,state:Tce,getters:sye,actions:nye,mutations:iye},_7=()=>({parts:{},excludedParts:[],printState:"unknown"}),lye=_7(),cye={getParts:r=>r.parts,getIsPartCurrent:r=>e=>r.currentPart===e,getIsPartExcluded:r=>e=>r.excludedParts.includes(e),getPartPos:(r,e)=>t=>e.getParts[t].target,getPartSVG:(r,e)=>t=>{const s=e.getParts[t];let n="",i="M";return s.outline.forEach(a=>{n+=`${i}${a.x},${a.y}`,i="L"}),n+="z",n},getPrintState:r=>r.printState},uye={async reset({commit:r}){r("setReset")},async onPartUpdate({commit:r},e){r("partUpdate",e)},async onPrintStatsUpdate({commit:r},e){r("printStatsUpdate",e)}},dye={setReset(r){Object.assign(r,_7())},partUpdate(r,e){if("current_object"in e&&b.set(r,"currentPart",e.current_object),"excluded_objects"in e&&b.set(r,"excludedParts",e.excluded_objects),"objects"in e){const t={};e.objects.forEach(s=>{const n=s.name,i={name:n,outline:[],target:null};"center"in s&&s.center.length===2&&(i.target={x:s.center[0],y:s.center[1]}),"polygon"in s&&(i.outline=s.polygon.map(a=>({x:a[0],y:a[1]}))),t[n]=i}),b.set(r,"parts",Object.freeze(t))}},printStatsUpdate(r,e){"state"in e&&b.set(r,"printState",e.state)}},pye=!0,hye={namespaced:pye,state:lye,getters:cye,actions:uye,mutations:dye},y7=()=>({webcams:[],activeWebcam:"all"}),fye=y7(),mye={getWebcams:r=>[...r.webcams].sort((e,t)=>(e.name??"").localeCompare(t.name??"")),getEnabledWebcams:(r,e)=>e.getWebcams.filter(s=>s.enabled==!0||s.enabled==null),getVisibleWebcams:(r,e)=>{const t=e.getEnabledWebcams;return r.activeWebcam==="all"?t:t.filter(s=>s.uid===r.activeWebcam)},getWebcamById:r=>e=>r.webcams.find(t=>t.uid===e)},Vx=(r,e,t)=>{const s="http://fake.fake",n=new URL(r,s);return n.searchParams.set(e,t),n.origin===s?n.pathname+n.search:n.href},gye={mjpgstream:"mjpegstreamer",mjpgadaptive:"mjpegstreamer-adaptive",iframe:"iframe",ipstream:"ipstream"},vye=["mjpegstreamer","mjpegstreamer-adaptive"],_ye={async reset({commit:r}){r("setReset")},async init(){I.serverWebcamsList()},async initWebcams({commit:r},e){r("setInitWebcams",e)},async initLegacyCameras(r,e){if(e.cameras){for(const t of e.cameras){const s=gye[t.type],n=vye.includes(s),i={name:t.name,location:"printer",service:s,icon:"mdiWebcam",enabled:t.enabled??!0,targetFps:t.fpstarget||15,targetFpsIdle:t.fpsidletarget||5,urlStream:n&&t.url?Vx(t.url,"action","stream"):t.url,urlSnapshot:n&&t.url?Vx(t.url,"action","snapshot"):t.url,flipX:t.flipX??!1,flipY:t.flipY??!1,rotation:t.rotate?+t.rotate:0,aspectRatio:"4:3",extraData:{}};await tt.serverDatabaseItemPost(he.MOONRAKER_DB.webcams.NAMESPACE,t.id,i)}await tt.serverDatabaseItemDelete(he.MOONRAKER_DB.fluidd.NAMESPACE,he.MOONRAKER_DB.fluidd.ROOTS.cameras.name)}},async updateWebcam({commit:r},e){r("setUpdateWebcam",e),I.serverWebcamsWrite(e)},async removeWebcam({commit:r},e){r("setRemoveWebcam",e),I.serverWebcamsDelete(e)},async updateActiveWebcam({commit:r,state:e},t){r("setActiveWebcam",t),I.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.webcams.name+".activeWebcam",e.activeWebcam)},async onWebcamsList({commit:r},e){e&&r("setWebcamsList",e)},async onWebcamsChanged({commit:r},e){e&&r("setWebcamsList",e)}},yye={setReset(r){Object.assign(r,y7())},setInitWebcams(r,e){r.activeWebcam=e.activeWebcam||"all"},setWebcamsList(r,e){r.webcams=e.webcams||[]},setUpdateWebcam(r,e){const t=r.webcams.findIndex(s=>s.uid===e.uid);t>=0?b.set(r.webcams,t,e):r.webcams.push(e)},setRemoveWebcam(r,e){const t=r.webcams.findIndex(s=>s.uid===e);t>=0&&r.webcams.splice(t,1),r.activeWebcam===e&&(r.activeWebcam="all")},setActiveWebcam(r,e){r.activeWebcam=e}},bye=!0,$ye={namespaced:bye,state:fye,getters:mye,actions:_ye,mutations:yye},b7=()=>({queue_state:"paused",queued_jobs:[]}),wye=b7(),Sye={getQueueState:r=>r.queue_state,getQueuedJobs:r=>r.queued_jobs,getQueuedJob:r=>e=>r.queued_jobs.findIndex(t=>t.job_id===e)},xye={async reset({commit:r}){r("setReset")},async init(){I.serverJobQueueStatus()},async onJobQueueStatus({commit:r},e){e&&(r("setQueueState",e.queue_state),r("setQueuedJobs",e.queued_jobs))},async onJobQueueChanged({commit:r},e){if(e){const{queue_state:t,updated_queue:s}=e;t&&r("setQueueState",t),s!=null&&r("setQueuedJobs",s)}}},Cye={setReset(r){Object.assign(r,b7())},setQueueState(r,e){r.queue_state=e},setQueuedJobs(r,e){r.queued_jobs=e||[]}},Pye=!0,Aye={namespaced:Pye,state:wye,getters:Sye,actions:xye,mutations:Cye},$7=()=>({availableSpools:[],activeSpool:void 0,connected:!1,dialog:{show:!1}}),Lye=$7(),Eye={getActiveSpool:r=>r.availableSpools.find(e=>e.id===r.activeSpool),getActiveSpoolId:r=>r.activeSpool,getAvailableSpools:r=>r.availableSpools,getSpoolById:r=>e=>r.availableSpools.find(t=>t.id===e),getConnected:r=>r.connected,getAvailable:r=>r.connected&&r.availableSpools.length},S1="[SPOOLMAN]",Oye={async reset({commit:r}){r("setReset")},async init(){I.serverSpoolmanGetSpoolId(),I.serverSpoolmanProxyGetAvailableSpools()},async onActiveSpool({commit:r},e){r("setActiveSpool",e.spool_id)},async onSpoolChange({commit:r,getters:e},{type:t,payload:s}){const n=[...e.getAvailableSpools];switch(t){case"added":{n.push(s);break}case"updated":{const i=n.findIndex(a=>a.id===s.id);i>=0&&(n[i]=s);break}case"deleted":{const i=n.findIndex(a=>a.id===s.id);i>=0&&n.splice(i,1);break}}r("setAvailableSpools",n)},async onFilamentChange({commit:r,getters:e},{type:t,payload:s}){if(t!=="updated")return;const n=[...e.getAvailableSpools];for(const i of n)i.filament.id===s.id&&(n[n.indexOf(i)]={...i,filament:s});r("setAvailableSpools",n)},async onVendorChange({commit:r,getters:e},{type:t,payload:s}){var i;if(t!=="updated")return;const n=[...e.getAvailableSpools];for(const a of n)((i=a.filament.vendor)==null?void 0:i.id)===s.id&&(n[n.indexOf(a)]={...a,filament:{...a.filament,vendor:s}});r("setAvailableSpools",n)},async onAvailableSpools({commit:r,dispatch:e},t){if("error"in t&&"response"in t){if(t.error!=null){mr.$emit(typeof t.error=="string"?t.error:t.error.message,{type:"error"});return}t=t.response}r("setAvailableSpools",[...t]),r("setConnected",!0),e("initializeWebsocketConnection")},async onStatusChanged({commit:r,dispatch:e},t){t?e("init"):r("setConnected",t)},async initializeWebsocketConnection({state:r,rootState:e,dispatch:t}){var s,n,i;if((s=e.server.config.spoolman)!=null&&s.server){if(((n=r.socket)==null?void 0:n.readyState)===WebSocket.OPEN)return;const a=new URL(e.server.config.spoolman.server);a.pathname+=`${a.pathname.endsWith("/")?"":"/"}api/v1/`,a.protocol==="https:"?a.protocol="wss:":a.protocol="ws:",r.socket=new WebSocket(a),r.socket.onerror=o=>ye.warn(`${S1} received websocket error`,o),r.socket.onmessage=o=>{let l;try{l=JSON.parse(o.data)}catch(c){ye.error(`${S1} failed to decode websocket message`,c,o.data);return}switch(l.resource){case"spool":t("onSpoolChange",l);break;case"filament":t("onFilamentChange",l);break;case"vendor":t("onVendorChange",l);break;default:ye.warn(`${S1} ignoring websocket message with type ${l.resource}`)}}}else(i=r.socket)==null||i.close(),r.socket=void 0}},Tye={setReset(r){Object.assign(r,$7())},setActiveSpool(r,e){r.activeSpool=e},setAvailableSpools(r,e){r.availableSpools=e.map(t=>({...t,registered:new Date(t.registered),first_used:t.first_used?new Date(t.first_used):void 0,last_used:t.last_used?new Date(t.last_used):void 0}))},setDialogState(r,e){r.dialog=e},setConnected(r,e){r.connected=e}},kye=!0,Dye={namespaced:kye,state:Lye,getters:Eye,actions:Oye,mutations:Tye},w7=()=>({sensors:{}}),Mye=w7(),Rye={getSensors:r=>Object.values(r.sensors)},Iye={async reset({commit:r}){r("setReset")},async init(){I.serverSensorsList()},async onSensorsList({commit:r},e){e&&r("setSensorsList",e)},async onSensorUpdate({commit:r},e){e&&r("setSensorUpdate",e)}},Fye={setReset(r){Object.assign(r,w7())},setSensorsList(r,e){r.sensors=e.sensors},setSensorUpdate(r,e){for(const t in e)b.set(r.sensors[t],"values",e[t])}},Hye=!0,jye={namespaced:Hye,state:Mye,getters:Rye,actions:Iye,mutations:Fye};b.use(W8);const br=new W8.Store({strict:!1,modules:{socket:Pme,auth:Mme,server:Tve,printer:Uve,config:l_e,files:f_e,layout:y_e,charts:C_e,console:X_e,macros:s0e,power:c0e,history:m0e,version:$0e,mesh:A0e,notifications:D0e,announcements:j0e,wait:W0e,gcodePreview:rye,timelapse:oye,parts:hye,webcams:$ye,jobQueue:Aye,spoolman:Dye,sensors:jye},mutations:{},actions:{async reset({dispatch:r},e){b.$colorset.forceResetAll();const t=[];return(e||Object.keys(this.state)).forEach(n=>{this.hasModule(n)&&t.push(r(n+"/reset"))}),Promise.all(t)},async init({dispatch:r,commit:e},t){return e("version/setVersion","1.30.4"),e("version/setHash",`221de1fe
|
||
`),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.camera=s??null}};u0=Yye([A({components:{CameraItem:Nm}})],u0);var Kye=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.camera?t(He,{staticClass:"overflow-hidden"},[t("CameraItem",{attrs:{camera:e.camera,fullscreen:""}})],1):e._e()},Xye=[],Jye=E(u0,Kye,Xye,!1,null,null);const Qye=Jye.exports;var ebe=Object.defineProperty,tbe=Object.getOwnPropertyDescriptor,rbe=(r,e,t,s)=>{for(var n=s>1?void 0:s?tbe(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&&ebe(e,t,n),n};let d0=class extends b{};d0=rbe([A({})],d0);var sbe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,{attrs:{dense:e.$vuetify.breakpoint.smAndDown,justify:"center",align:"center"}},[t(B,[t("center",[t("div",{staticClass:"text-h5"},[e._v(" "+e._s(e.$t("app.general.title.not_found"))+" ")]),t(M,{staticClass:"mt-5",attrs:{to:"/"}},[e._v(" "+e._s(e.$t("app.general.btn.return_dashboard"))+" ")])],1)],1)],1)},nbe=[],ibe=E(d0,sbe,nbe,!1,null,null);const abe=ibe.exports;function S7(r,e){return function(){return r.apply(e,arguments)}}const{toString:obe}=Object.prototype,{getPrototypeOf:h2}=Object,ug=(r=>e=>{const t=obe.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),an=r=>(r=r.toLowerCase(),e=>ug(e)===r),dg=r=>e=>typeof e===r,{isArray:Vl}=Array,Hu=dg("undefined");function lbe(r){return r!==null&&!Hu(r)&&r.constructor!==null&&!Hu(r.constructor)&&ss(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const x7=an("ArrayBuffer");function cbe(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&x7(r.buffer),e}const ube=dg("string"),ss=dg("function"),C7=dg("number"),pg=r=>r!==null&&typeof r=="object",dbe=r=>r===!0||r===!1,Kp=r=>{if(ug(r)!=="object")return!1;const e=h2(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},pbe=an("Date"),hbe=an("File"),fbe=an("Blob"),mbe=an("FileList"),gbe=r=>pg(r)&&ss(r.pipe),vbe=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||ss(r.append)&&((e=ug(r))==="formdata"||e==="object"&&ss(r.toString)&&r.toString()==="[object FormData]"))},_be=an("URLSearchParams"),[ybe,bbe,$be,wbe]=["ReadableStream","Request","Response","Headers"].map(an),Sbe=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Od(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let s,n;if(typeof r!="object"&&(r=[r]),Vl(r))for(s=0,n=r.length;s<n;s++)e.call(null,r[s],s,r);else{const i=t?Object.getOwnPropertyNames(r):Object.keys(r),a=i.length;let o;for(s=0;s<a;s++)o=i[s],e.call(null,r[o],o,r)}}function P7(r,e){e=e.toLowerCase();const t=Object.keys(r);let s=t.length,n;for(;s-- >0;)if(n=t[s],e===n.toLowerCase())return n;return null}const da=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,A7=r=>!Hu(r)&&r!==da;function p0(){const{caseless:r}=A7(this)&&this||{},e={},t=(s,n)=>{const i=r&&P7(e,n)||n;Kp(e[i])&&Kp(s)?e[i]=p0(e[i],s):Kp(s)?e[i]=p0({},s):Vl(s)?e[i]=s.slice():e[i]=s};for(let s=0,n=arguments.length;s<n;s++)arguments[s]&&Od(arguments[s],t);return e}const xbe=(r,e,t,{allOwnKeys:s}={})=>(Od(e,(n,i)=>{t&&ss(n)?r[i]=S7(n,t):r[i]=n},{allOwnKeys:s}),r),Cbe=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),Pbe=(r,e,t,s)=>{r.prototype=Object.create(e.prototype,s),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},Abe=(r,e,t,s)=>{let n,i,a;const o={};if(e=e||{},r==null)return e;do{for(n=Object.getOwnPropertyNames(r),i=n.length;i-- >0;)a=n[i],(!s||s(a,r,e))&&!o[a]&&(e[a]=r[a],o[a]=!0);r=t!==!1&&h2(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},Lbe=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;const s=r.indexOf(e,t);return s!==-1&&s===t},Ebe=r=>{if(!r)return null;if(Vl(r))return r;let e=r.length;if(!C7(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},Obe=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&h2(Uint8Array)),Tbe=(r,e)=>{const s=(r&&r[Symbol.iterator]).call(r);let n;for(;(n=s.next())&&!n.done;){const i=n.value;e.call(r,i[0],i[1])}},kbe=(r,e)=>{let t;const s=[];for(;(t=r.exec(e))!==null;)s.push(t);return s},Dbe=an("HTMLFormElement"),Mbe=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,s,n){return s.toUpperCase()+n}),Ux=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Rbe=an("RegExp"),L7=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),s={};Od(t,(n,i)=>{let a;(a=e(n,i,r))!==!1&&(s[i]=a||n)}),Object.defineProperties(r,s)},Ibe=r=>{L7(r,(e,t)=>{if(ss(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const s=r[t];if(ss(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Fbe=(r,e)=>{const t={},s=n=>{n.forEach(i=>{t[i]=!0})};return Vl(r)?s(r):s(String(r).split(e)),t},Hbe=()=>{},jbe=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e,x1="abcdefghijklmnopqrstuvwxyz",Wx="0123456789",E7={DIGIT:Wx,ALPHA:x1,ALPHA_DIGIT:x1+x1.toUpperCase()+Wx},Bbe=(r=16,e=E7.ALPHA_DIGIT)=>{let t="";const{length:s}=e;for(;r--;)t+=e[Math.random()*s|0];return t};function Nbe(r){return!!(r&&ss(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}const Vbe=r=>{const e=new Array(10),t=(s,n)=>{if(pg(s)){if(e.indexOf(s)>=0)return;if(!("toJSON"in s)){e[n]=s;const i=Vl(s)?[]:{};return Od(s,(a,o)=>{const l=t(a,n+1);!Hu(l)&&(i[o]=l)}),e[n]=void 0,i}}return s};return t(r,0)},zbe=an("AsyncFunction"),Ube=r=>r&&(pg(r)||ss(r))&&ss(r.then)&&ss(r.catch),O7=((r,e)=>r?setImmediate:e?((t,s)=>(da.addEventListener("message",({source:n,data:i})=>{n===da&&i===t&&s.length&&s.shift()()},!1),n=>{s.push(n),da.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",ss(da.postMessage)),Wbe=typeof queueMicrotask<"u"?queueMicrotask.bind(da):typeof process<"u"&&process.nextTick||O7,W={isArray:Vl,isArrayBuffer:x7,isBuffer:lbe,isFormData:vbe,isArrayBufferView:cbe,isString:ube,isNumber:C7,isBoolean:dbe,isObject:pg,isPlainObject:Kp,isReadableStream:ybe,isRequest:bbe,isResponse:$be,isHeaders:wbe,isUndefined:Hu,isDate:pbe,isFile:hbe,isBlob:fbe,isRegExp:Rbe,isFunction:ss,isStream:gbe,isURLSearchParams:_be,isTypedArray:Obe,isFileList:mbe,forEach:Od,merge:p0,extend:xbe,trim:Sbe,stripBOM:Cbe,inherits:Pbe,toFlatObject:Abe,kindOf:ug,kindOfTest:an,endsWith:Lbe,toArray:Ebe,forEachEntry:Tbe,matchAll:kbe,isHTMLForm:Dbe,hasOwnProperty:Ux,hasOwnProp:Ux,reduceDescriptors:L7,freezeMethods:Ibe,toObjectSet:Fbe,toCamelCase:Mbe,noop:Hbe,toFiniteNumber:jbe,findKey:P7,global:da,isContextDefined:A7,ALPHABET:E7,generateString:Bbe,isSpecCompliantForm:Nbe,toJSONObject:Vbe,isAsyncFn:zbe,isThenable:Ube,setImmediate:O7,asap:Wbe};function Ve(r,e,t,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),s&&(this.request=s),n&&(this.response=n)}W.inherits(Ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const T7=Ve.prototype,k7={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{k7[r]={value:r}});Object.defineProperties(Ve,k7);Object.defineProperty(T7,"isAxiosError",{value:!0});Ve.from=(r,e,t,s,n,i)=>{const a=Object.create(T7);return W.toFlatObject(r,a,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),Ve.call(a,r.message,e,t,s,n),a.cause=r,a.name=r.name,i&&Object.assign(a,i),a};const Gbe=null;function h0(r){return W.isPlainObject(r)||W.isArray(r)}function D7(r){return W.endsWith(r,"[]")?r.slice(0,-2):r}function Gx(r,e,t){return r?r.concat(e).map(function(n,i){return n=D7(n),!t&&i?"["+n+"]":n}).join(t?".":""):e}function qbe(r){return W.isArray(r)&&!r.some(h0)}const Zbe=W.toFlatObject(W,{},null,function(e){return/^is[A-Z]/.test(e)});function hg(r,e,t){if(!W.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=W.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!W.isUndefined(v[g])});const s=t.metaTokens,n=t.visitor||u,i=t.dots,a=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(e);if(!W.isFunction(n))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(W.isDate(f))return f.toISOString();if(!l&&W.isBlob(f))throw new Ve("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(f)||W.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,g,v){let y=f;if(f&&!v&&typeof f=="object"){if(W.endsWith(g,"{}"))g=s?g:g.slice(0,-2),f=JSON.stringify(f);else if(W.isArray(f)&&qbe(f)||(W.isFileList(f)||W.endsWith(g,"[]"))&&(y=W.toArray(f)))return g=D7(g),y.forEach(function(x,$){!(W.isUndefined(x)||x===null)&&e.append(a===!0?Gx([g],$,i):a===null?g:g+"[]",c(x))}),!1}return h0(f)?!0:(e.append(Gx(v,g,i),c(f)),!1)}const d=[],p=Object.assign(Zbe,{defaultVisitor:u,convertValue:c,isVisitable:h0});function h(f,g){if(!W.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(f),W.forEach(f,function(y,C){(!(W.isUndefined(y)||y===null)&&n.call(e,y,W.isString(C)?C.trim():C,g,p))===!0&&h(y,g?g.concat(C):[C])}),d.pop()}}if(!W.isObject(r))throw new TypeError("data must be an object");return h(r),e}function qx(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function f2(r,e){this._pairs=[],r&&hg(r,this,e)}const M7=f2.prototype;M7.append=function(e,t){this._pairs.push([e,t])};M7.toString=function(e){const t=e?function(s){return e.call(this,s,qx)}:qx;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function Ybe(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function R7(r,e,t){if(!e)return r;const s=t&&t.encode||Ybe,n=t&&t.serialize;let i;if(n?i=n(e,t):i=W.isURLSearchParams(e)?e.toString():new f2(e,t).toString(s),i){const a=r.indexOf("#");a!==-1&&(r=r.slice(0,a)),r+=(r.indexOf("?")===-1?"?":"&")+i}return r}class Zx{constructor(){this.handlers=[]}use(e,t,s){return this.handlers.push({fulfilled:e,rejected:t,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,function(s){s!==null&&e(s)})}}const I7={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Kbe=typeof URLSearchParams<"u"?URLSearchParams:f2,Xbe=typeof FormData<"u"?FormData:null,Jbe=typeof Blob<"u"?Blob:null,Qbe={isBrowser:!0,classes:{URLSearchParams:Kbe,FormData:Xbe,Blob:Jbe},protocols:["http","https","file","blob","url","data"]},m2=typeof window<"u"&&typeof document<"u",e2e=(r=>m2&&["ReactNative","NativeScript","NS"].indexOf(r)<0)(typeof navigator<"u"&&navigator.product),t2e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",r2e=m2&&window.location.href||"http://localhost",s2e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:m2,hasStandardBrowserEnv:e2e,hasStandardBrowserWebWorkerEnv:t2e,origin:r2e},Symbol.toStringTag,{value:"Module"})),Ws={...s2e,...Qbe};function n2e(r,e){return hg(r,new Ws.classes.URLSearchParams,Object.assign({visitor:function(t,s,n,i){return Ws.isNode&&W.isBuffer(t)?(this.append(s,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function i2e(r){return W.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function a2e(r){const e={},t=Object.keys(r);let s;const n=t.length;let i;for(s=0;s<n;s++)i=t[s],e[i]=r[i];return e}function F7(r){function e(t,s,n,i){let a=t[i++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),l=i>=t.length;return a=!a&&W.isArray(n)?n.length:a,l?(W.hasOwnProp(n,a)?n[a]=[n[a],s]:n[a]=s,!o):((!n[a]||!W.isObject(n[a]))&&(n[a]=[]),e(t,s,n[a],i)&&W.isArray(n[a])&&(n[a]=a2e(n[a])),!o)}if(W.isFormData(r)&&W.isFunction(r.entries)){const t={};return W.forEachEntry(r,(s,n)=>{e(i2e(s),n,t,0)}),t}return null}function o2e(r,e,t){if(W.isString(r))try{return(e||JSON.parse)(r),W.trim(r)}catch(s){if(s.name!=="SyntaxError")throw s}return(t||JSON.stringify)(r)}const Td={transitional:I7,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const s=t.getContentType()||"",n=s.indexOf("application/json")>-1,i=W.isObject(e);if(i&&W.isHTMLForm(e)&&(e=new FormData(e)),W.isFormData(e))return n?JSON.stringify(F7(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e)||W.isReadableStream(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return n2e(e,this.formSerializer).toString();if((o=W.isFileList(e))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return hg(o?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),o2e(e)):e}],transformResponse:[function(e){const t=this.transitional||Td.transitional,s=t&&t.forcedJSONParsing,n=this.responseType==="json";if(W.isResponse(e)||W.isReadableStream(e))return e;if(e&&W.isString(e)&&(s&&!this.responseType||n)){const a=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?Ve.from(o,Ve.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ws.classes.FormData,Blob:Ws.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],r=>{Td.headers[r]={}});const l2e=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),c2e=r=>{const e={};let t,s,n;return r&&r.split(`
|
||
`).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 l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(c,u)=>n(Jx(c),Jx(u),!0)};return W.forEach(Object.keys(Object.assign({},r,e)),function(u){const d=l[u]||n,p=d(r[u],e[u],u);W.isUndefined(p)&&d!==o||(t[u]=p)}),t}const N7=r=>{const e=Ha({},r);let{data:t,withXSRFToken:s,xsrfHeaderName:n,xsrfCookieName:i,headers:a,auth:o}=e;e.headers=a=Nr.from(a),e.url=R7(B7(e.baseURL,e.url),r.params,r.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(W.isFormData(t)){if(Ws.hasStandardBrowserEnv||Ws.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Ws.hasStandardBrowserEnv&&(s&&W.isFunction(s)&&(s=s(e)),s||s!==!1&&v2e(e.url))){const c=n&&i&&_2e.read(i);c&&a.set(n,c)}return e},$2e=typeof XMLHttpRequest<"u",w2e=$2e&&function(r){return new Promise(function(t,s){const n=N7(r);let i=n.data;const a=Nr.from(n.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:c}=n,u,d,p,h,f;function g(){h&&h(),f&&f(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(n.method.toUpperCase(),n.url,!0),v.timeout=n.timeout;function y(){if(!v)return;const x=Nr.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),L={data:!o||o==="text"||o==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:x,config:r,request:v};j7(function(K){t(K),g()},function(K){s(K),g()},L),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(s(new Ve("Request aborted",Ve.ECONNABORTED,r,v)),v=null)},v.onerror=function(){s(new Ve("Network Error",Ve.ERR_NETWORK,r,v)),v=null},v.ontimeout=function(){let $=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const L=n.transitional||I7;n.timeoutErrorMessage&&($=n.timeoutErrorMessage),s(new Ve($,L.clarifyTimeoutError?Ve.ETIMEDOUT:Ve.ECONNABORTED,r,v)),v=null},i===void 0&&a.setContentType(null),"setRequestHeader"in v&&W.forEach(a.toJSON(),function($,L){v.setRequestHeader(L,$)}),W.isUndefined(n.withCredentials)||(v.withCredentials=!!n.withCredentials),o&&o!=="json"&&(v.responseType=n.responseType),c&&([p,f]=Tf(c,!0),v.addEventListener("progress",p)),l&&v.upload&&([d,h]=Tf(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",h)),(n.cancelToken||n.signal)&&(u=x=>{v&&(s(!x||x.type?new zl(null,r,v):x),v.abort(),v=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const C=f2e(n.url);if(C&&Ws.protocols.indexOf(C)===-1){s(new Ve("Unsupported protocol "+C+":",Ve.ERR_BAD_REQUEST,r));return}v.send(i||null)})},S2e=(r,e)=>{let t=new AbortController,s;const n=function(l){if(!s){s=!0,a();const c=l instanceof Error?l:this.reason;t.abort(c instanceof Ve?c:new zl(c instanceof Error?c.message:c))}};let i=e&&setTimeout(()=>{n(new Ve(`timeout ${e} of ms exceeded`,Ve.ETIMEDOUT))},e);const a=()=>{r&&(i&&clearTimeout(i),i=null,r.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",n):l.unsubscribe(n))}),r=null)};r.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",n));const{signal:o}=t;return o.unsubscribe=a,[o,()=>{i&&clearTimeout(i),i=null}]},x2e=function*(r,e){let t=r.byteLength;if(!e||t<e){yield r;return}let s=0,n;for(;s<t;)n=s+e,yield r.slice(s,n),s=n},C2e=async function*(r,e,t){for await(const s of r)yield*x2e(ArrayBuffer.isView(s)?s:await t(String(s)),e)},Qx=(r,e,t,s,n)=>{const i=C2e(r,e,n);let a=0,o,l=c=>{o||(o=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){l(),c.close();return}let p=d.byteLength;if(t){let h=a+=p;t(h)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},fg=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",V7=fg&&typeof ReadableStream=="function",f0=fg&&(typeof TextEncoder=="function"?(r=>e=>r.encode(e))(new TextEncoder):async r=>new Uint8Array(await new Response(r).arrayBuffer())),z7=(r,...e)=>{try{return!!r(...e)}catch{return!1}},P2e=V7&&z7(()=>{let r=!1;const e=new Request(Ws.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!e}),eC=64*1024,m0=V7&&z7(()=>W.isReadableStream(new Response("").body)),kf={stream:m0&&(r=>r.body)};fg&&(r=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!kf[e]&&(kf[e]=W.isFunction(r[e])?t=>t[e]():(t,s)=>{throw new Ve(`Response type '${e}' is not supported`,Ve.ERR_NOT_SUPPORT,s)})})})(new Response);const A2e=async r=>{if(r==null)return 0;if(W.isBlob(r))return r.size;if(W.isSpecCompliantForm(r))return(await new Request(r).arrayBuffer()).byteLength;if(W.isArrayBufferView(r)||W.isArrayBuffer(r))return r.byteLength;if(W.isURLSearchParams(r)&&(r=r+""),W.isString(r))return(await f0(r)).byteLength},L2e=async(r,e)=>{const t=W.toFiniteNumber(r.getContentLength());return t??A2e(e)},E2e=fg&&(async r=>{let{url:e,method:t,data:s,signal:n,cancelToken:i,timeout:a,onDownloadProgress:o,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=N7(r);c=c?(c+"").toLowerCase():"text";let[h,f]=n||i||a?S2e([n,i],a):[],g,v;const y=()=>{!g&&setTimeout(()=>{h&&h.unsubscribe()}),g=!0};let C;try{if(l&&P2e&&t!=="get"&&t!=="head"&&(C=await L2e(u,s))!==0){let G=new Request(e,{method:"POST",body:s,duplex:"half"}),K;if(W.isFormData(s)&&(K=G.headers.get("content-type"))&&u.setContentType(K),G.body){const[le,ue]=Kx(C,Tf(Xx(l)));s=Qx(G.body,eC,le,ue,f0)}}W.isString(d)||(d=d?"include":"omit"),v=new Request(e,{...p,signal:h,method:t.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:d});let x=await fetch(v);const $=m0&&(c==="stream"||c==="response");if(m0&&(o||$)){const G={};["status","statusText","headers"].forEach(ne=>{G[ne]=x[ne]});const K=W.toFiniteNumber(x.headers.get("content-length")),[le,ue]=o&&Kx(K,Tf(Xx(o),!0))||[];x=new Response(Qx(x.body,eC,le,()=>{ue&&ue(),$&&y()},f0),G)}c=c||"text";let L=await kf[W.findKey(kf,c)||"text"](x,r);return!$&&y(),f&&f(),await new Promise((G,K)=>{j7(G,K,{data:L,headers:Nr.from(x.headers),status:x.status,statusText:x.statusText,config:r,request:v})})}catch(x){throw y(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new Ve("Network Error",Ve.ERR_NETWORK,r,v),{cause:x.cause||x}):Ve.from(x,x&&x.code,r,v)}}),g0={http:Gbe,xhr:w2e,fetch:E2e};W.forEach(g0,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});const tC=r=>`- ${r}`,O2e=r=>W.isFunction(r)||r===null||r===!1,U7={getAdapter:r=>{r=W.isArray(r)?r:[r];const{length:e}=r;let t,s;const n={};for(let i=0;i<e;i++){t=r[i];let a;if(s=t,!O2e(t)&&(s=g0[(a=String(t)).toLowerCase()],s===void 0))throw new Ve(`Unknown adapter '${a}'`);if(s)break;n[a||"#"+i]=s}if(!s){const i=Object.entries(n).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?i.length>1?`since :
|
||
`+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,va.prototype,e,{allOwnKeys:!0}),W.extend(t,e,null,{allOwnKeys:!0}),t.create=function(n){return G7(Ha(r,n))},t}const kt=G7(Td);kt.Axios=va;kt.CanceledError=zl;kt.CancelToken=v2;kt.isCancel=H7;kt.VERSION=W7;kt.toFormData=hg;kt.AxiosError=Ve;kt.Cancel=kt.CanceledError;kt.all=function(e){return Promise.all(e)};kt.spread=k2e;kt.isAxiosError=D2e;kt.mergeConfig=Ha;kt.AxiosHeaders=Nr;kt.formToJSON=r=>F7(W.isHTMLForm(r)?new FormData(r):r);kt.getAdapter=U7.getAdapter;kt.HttpStatusCode=_0;kt.default=kt;const M2e=r=>{if(r)try{const e=new URL(r),t=e.pathname.endsWith("/")?e.pathname.slice(0,-1):e.pathname;return`${e.protocol}//${e.host}${t}`}catch(e){ye.debug("Error parsing endpoint url in config.json",e)}},R2e=(r,e)=>{const t=(s,...n)=>ye.debug(`[webSocketWrapper] ${r} ${s}`,...n);return new Promise((s,n)=>{t("opening...");const i=()=>{e==null||e.removeEventListener("abort",a),o.close()},a=()=>{t("aborted"),i(),n(new Error("AbortError"))};e==null||e.addEventListener("abort",a);const o=new WebSocket(r);o.onopen=l=>{t("opened",l),i(),s(null)},o.onerror=l=>{t("error",l),i(),n(l)},o.onclose=l=>{t("closed",l)}})},I2e=r=>"any"in Promise&&typeof Promise.any=="function"?Promise.any(r):Promise.all([...r].map(e=>new Promise((t,s)=>Promise.resolve(e).then(s,t)))).then(e=>Promise.reject(e),e=>Promise.resolve(e)),F2e=(r,e)=>{const t=(s,...n)=>ye.debug(`[sleep] ${s}`,...n);return new Promise((s,n)=>{t(`sleeping for ${r}...`);const i=()=>{e==null||e.removeEventListener("abort",a),clearTimeout(l)},a=()=>{t("aborted"),i(),n(new Error("AbortError"))},o=()=>{t("timed out"),i(),s(null)};e==null||e.addEventListener("abort",a);const l=setTimeout(o,r)})},H2e=async()=>{const r=await tt.get("./config.json");if(r&&r.data)return ye.debug("Loaded web host configuration",r.data),r.data;throw ye.debug("Failed loading web host configuration"),new Error("Unable to load host configuration. Please check the host.")},j2e=async r=>{if(he.LOCAL_INSTANCES_STORAGE_KEY in localStorage){const n=JSON.parse(localStorage[he.LOCAL_INSTANCES_STORAGE_KEY]);if(n&&n.length){for(const i of n)if(i.active)return ye.debug("API Config from Local Storage",i),i}}const e=[],t=[];if(r&&"blacklist"in r&&r.blacklist.length&&t.push(...r.blacklist),r&&"endpoints"in r&&r.endpoints.length&&e.push(...r.endpoints.map(M2e).filter(n=>!!n)),t.findIndex(n=>n.includes(document.location.hostname))===-1){e.push(`${document.location.protocol}//${document.location.host}`);const n=document.location.protocol==="https:"?"7130":"7125";e.push(`${document.location.protocol}//${document.location.hostname}:${n}`)}const s=new AbortController;try{const{signal:n}=s,i=async()=>(await F2e(5e3,n),{apiUrl:"",socketUrl:""});return await I2e([...e.map(async a=>{const o=b.$filters.getApiUrls(a);return await R2e(o.socketUrl,n),o}),i()])}finally{s.abort()}},B2e=async(r,e)=>{var s;const t={data:{},apiConnected:!0,apiAuthenticated:!0};if(r.apiUrl!==""&&r.socketUrl!=="")try{const n=await tt.serverDatabaseItemGet(e);t.data=n.data.result.value,ye.debug("loaded db",e,t.data)}catch(n){switch(kt.isAxiosError(n)?(s=n.response)==null?void 0:s.status:0){case 404:break;case 401:t.apiAuthenticated=!1;break;default:ye.debug("API Down / Not Available:",n),t.apiConnected=!1;break}}else t.apiConnected=!1,t.apiAuthenticated=!1;return t},mg=async(r,e)=>{if(await br.dispatch("reset",void 0,{root:!0}),e||(e=await H2e()),!(he.LOCAL_INSTANCES_STORAGE_KEY in localStorage))for(const n of e.endpoints)r=b.$filters.getApiUrls(n),await br.dispatch("config/initLocal",{apiConfig:r});r||(r=await j2e(e)),r.apiUrl&&(tt.defaults.baseURL=r.apiUrl),await br.dispatch("config/onInitApiConfig",r),ye.debug("inited apis",br.state.config,r),await br.dispatch("auth/initAuth");let t=!0,s=!0;for(const{NAMESPACE:n,ROOTS:i}of Object.values(he.MOONRAKER_DB)){if(!t&&!s)break;if(Object.keys(i).length===0)continue;const a=await B2e(r,n);if(s=a.apiAuthenticated,t=a.apiConnected,!t||!s)break;const{data:o}=a,c=Object.values(i).map(async u=>{const d=u.name?o[u.name]:o;if(u.migrate_only)d&&br.dispatch(u.dispatch,d);else{if(!d)try{await tt.serverDatabaseItemPost(n,u.name,{})}catch(p){ye.debug("Error creating database item",p)}await br.dispatch(u.dispatch,d||{})}});await Promise.all(c)}return await br.dispatch("init",{apiConfig:r,hostConfig:e,apiConnected:t}),es.currentRoute.path!=="/"&&br.state.auth.authenticated&&es.push("/"),{apiConfig:r,hostConfig:e,apiConnected:t,apiAuthenticated:s}};var N2e=Object.defineProperty,V2e=Object.getOwnPropertyDescriptor,z2e=(r,e,t,s)=>{for(var n=s>1?void 0:s?V2e(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&&N2e(e,t,n),n};let y0=class extends b{constructor(){super(...arguments);m(this,"username","");m(this,"password","");m(this,"error",!1);m(this,"loading",!1);m(this,"source","moonraker");m(this,"availableSources",[this.source])}async mounted(){const t=await this.$store.dispatch("auth/getAuthInfo");this.source=t.defaultSource??this.source,this.availableSources=t.availableSources??this.availableSources}async handleLogin(){this.error=!1,this.loading=!0;try{await this.$store.dispatch("auth/login",{username:this.username,password:this.password,source:this.source})}catch{this.error=!0}if(this.loading=!1,!this.error){const t=this.$store.getters["config/getCurrentInstance"],s=await mg(t,this.$store.state.config.hostConfig);s.apiConnected&&s.apiAuthenticated&&(ye.debug("Activating socket with config",s),this.$socket.connect(s.apiConfig.socketUrl))}}};y0=z2e([A({})],y0);var U2e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,{attrs:{dense:e.$vuetify.breakpoint.smAndDown,justify:"center",align:"center"}},[t(B,{attrs:{cols:"12",md:"4",lg:"3",xl:"2"}},[t(Ll,{on:{submit:function(s){return s.preventDefault(),e.handleLogin.apply(null,arguments)}}},[t("div",{staticClass:"text-center"},[t("p",{domProps:{innerHTML:e._s(e.$t("app.general.msg.welcome_back"))}}),e.error?t(Ai,{attrs:{type:"error"}},[e._v(" "+e._s(e.$t("app.general.simple_form.error.credentials"))+" ")]):e._e(),t(ae,{staticClass:"mb-4",attrs:{label:e.$t("app.general.label.username"),autocomplete:"username",spellcheck:"false",filled:"",dense:"","hide-details":"auto",disabled:e.loading},model:{value:e.username,callback:function(s){e.username=s},expression:"username"}}),t(ae,{staticClass:"mb-4",attrs:{label:e.$t("app.general.label.password"),autocomplete:"current-password",filled:"",dense:"",type:"password","hide-details":"auto",disabled:e.loading},model:{value:e.password,callback:function(s){e.password=s},expression:"password"}}),e.availableSources.length>1?t(Re,{staticClass:"mb-4",attrs:{label:e.$t("app.general.label.auth_source"),filled:"",dense:"","hide-details":"auto",disabled:e.loading,items:e.availableSources.map(s=>({text:e.$t(`app.general.label.${s}`),value:s}))},model:{value:e.source,callback:function(s){e.source=s},expression:"source"}}):e._e(),t(M,{staticClass:"mb-6",attrs:{type:"submit",disabled:e.loading,large:"",block:""}},[e.loading?t(S,{staticClass:"spin mr-2"},[e._v(" $loading ")]):e._e(),e._v(" "+e._s(e.$t("app.general.btn.login"))+" ")],1),t(M,{staticClass:"custom-transform-class text-none",attrs:{color:"",plain:"",href:e.$globals.DOCS_AUTH_LOST_PASSWORD,target:"_blank"}},[e._v(" "+e._s(e.$t("app.general.btn.forgot_password"))+" ")]),t(M,{staticClass:"custom-transform-class text-none",attrs:{color:"",plain:"",href:e.$globals.DOCS_AUTH,target:"_blank"}},[e._v(" "+e._s(e.$t("app.general.btn.auth_unsure"))+" ")])],1)])],1)],1)},W2e=[],G2e=E(y0,U2e,W2e,!1,null,"390f09e5");const q2e=G2e.exports;var Z2e=Object.defineProperty,Y2e=Object.getOwnPropertyDescriptor,K2e=(r,e,t,s)=>{for(var n=s>1?void 0:s?Y2e(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&&Z2e(e,t,n),n};let b0=class extends Y(J){get icons(){return Object.keys(ru)}};b0=K2e([A({})],b0);var X2e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ie,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[t(B,{attrs:{cols:"12"}},[t("h1",[e._v("All configured icons")]),e._l(e.icons,function(s){return t(Oe,{key:s,staticClass:"d-inline-block",attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({attrs:n,on:i}){return[t(S,e._g(e._b({staticClass:"ma-2"},"v-icon",n,!1),i),[e._v(" $"+e._s(s)+" ")])]}}],null,!0)},[e._v(" "+e._s(s)+" ")])})],2)],1)},J2e=[],Q2e=E(b0,X2e,J2e,!1,null,null);const e$e=Q2e.exports;try{self["workbox:core:7.0.0"]&&_()}catch{}try{self["workbox:routing:7.0.0"]&&_()}catch{}b.use(a4);const t$e=(r,e,t)=>{if(es.app.$store.getters["auth/getAuthenticated"]||!es.app.$store.state.socket.apiConnected){if(r.query.url!=null){es.app.$socket.close();const s=r.query.url,n=b.$filters.getApiUrls(s+".aws.qidi3dprinter.com:7680");mg(n,es.app.$store.state.config.hostConfig).then(i=>{i.apiConfig.socketUrl&&i.apiConnected&&i.apiAuthenticated&&b.$socket.connect(i.apiConfig.socketUrl)})}r.query.theme!=null&&(r.query.theme=="light"?es.app.$store.dispatch("config/updateTheme",{isDark:!1}):r.query.theme=="dark"&&es.app.$store.dispatch("config/updateTheme",{isDark:!0})),t()}else t("/login")},ms={beforeEnter:t$e,meta:{fileDropRoot:"gcodes"}},r$e=[{path:"/",name:"Dashboard",component:Uae,...ms},{path:"/console",name:"Console",component:Xae,...ms},{path:"/jobs",name:"Jobs",component:doe,...ms},{path:"/tune",name:"Tune",component:Foe,...ms},{path:"/diagnostics",name:"Diagnostics",component:Gle,...ms},{path:"/timelapse",name:"Timelapse",component:zce,...ms,meta:{fileDropRoot:"timelapse"}},{path:"/history",name:"History",component:gce,...ms},{path:"/system",name:"System",component:$de,...ms},{path:"/configure",name:"Configuration",component:rde,...ms,meta:{}},{path:"/settings",name:"Settings",...ms,meta:{hasSubNavigation:!0},components:{default:Gfe,navigation:XS},children:[{path:"/settings/macros/:categoryId",name:"Macros",meta:{hasSubNavigation:!0},components:{default:Gye,navigation:XS}}]},{path:"/camera/:cameraId",name:"Camera",component:Qye,...ms},{path:"/preview",name:"Gcode Preview",component:noe,...ms},{path:"/login",name:"Login",component:q2e,meta:{fillHeight:!0}},{path:"/icons",name:"Icons",component:e$e},{path:"*",name:"404",component:abe}],es=new a4({base:"./",routes:r$e,scrollBehavior:(r,e,t)=>t||(r.hash?{selector:r.hash,offset:{x:0,y:60},behavior:"smooth"}:{x:0,y:0})});es.beforeEach((r,e,t)=>{var s;(s=es.app)==null||s.$store.commit("config/setContainerColumnCount",2),t()});function s$e(){var r=window.navigator.userAgent,e=r.indexOf("MSIE ");if(e>0)return parseInt(r.substring(e+5,r.indexOf(".",e)),10);var t=r.indexOf("Trident/");if(t>0){var s=r.indexOf("rv:");return parseInt(r.substring(s+3,r.indexOf(".",s)),10)}var n=r.indexOf("Edge/");return n>0?parseInt(r.substring(n+5,r.indexOf(".",n)),10):-1}var Jp=void 0;function $0(){$0.init||($0.init=!0,Jp=s$e()!==-1)}var w0={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{compareAndNotify:function(){(this._w!==this.$el.offsetWidth||this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit("notify"))},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!Jp&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),delete this._resizeObject.onload)}},mounted:function(){var e=this;$0(),this.$nextTick(function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight});var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",Jp&&this.$el.appendChild(t),t.data="about:blank",Jp||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()}};function n$e(r){r.component("resize-observer",w0),r.component("ResizeObserver",w0)}var i$e={version:"0.4.5",install:n$e},Df=null;typeof window<"u"?Df=window.Vue:typeof global<"u"&&(Df=global.Vue);Df&&Df.use(i$e);function Qp(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qp=function(e){return typeof e}:Qp=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qp(r)}function a$e(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function o$e(r,e){for(var t=0;t<e.length;t++){var s=e[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}function l$e(r,e,t){return e&&o$e(r.prototype,e),r}function nC(r){return c$e(r)||u$e(r)||d$e()}function c$e(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 u$e(r){if(Symbol.iterator in Object(r)||Object.prototype.toString.call(r)==="[object Arguments]")return Array.from(r)}function d$e(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function p$e(r){var e;return typeof r=="function"?e={callback:r}:e=r,e}function h$e(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,n,i,a=function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];if(i=u,!(s&&l===n)){var p=t.leading;typeof p=="function"&&(p=p(l,n)),(!s||l!==n)&&p&&r.apply(void 0,[l].concat(nC(i))),n=l,clearTimeout(s),s=setTimeout(function(){r.apply(void 0,[l].concat(nC(i))),s=0},e)}};return a._clear=function(){clearTimeout(s),s=null},a}function q7(r,e){if(r===e)return!0;if(Qp(r)==="object"){for(var t in r)if(!q7(r[t],e[t]))return!1;return!0}return!1}var f$e=function(){function r(e,t,s){a$e(this,r),this.el=e,this.observer=null,this.frozen=!1,this.createObserver(t,s)}return l$e(r,[{key:"createObserver",value:function(t,s){var n=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=p$e(t),this.callback=function(o,l){n.options.callback(o,l),o&&n.options.once&&(n.frozen=!0,n.destroyObserver())},this.callback&&this.options.throttle){var i=this.options.throttleOptions||{},a=i.leading;this.callback=h$e(this.callback,this.options.throttle,{leading:function(l){return a==="both"||a==="visible"&&l||a==="hidden"&&!l}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(o){var l=o[0];if(o.length>1){var c=o.find(function(d){return d.isIntersecting});c&&(l=c)}if(n.callback){var u=l.isIntersecting&&l.intersectionRatio>=n.threshold;if(u===n.oldResult)return;n.oldResult=u,n.callback(u,l)}},this.options.intersection),s.context.$nextTick(function(){n.observer&&n.observer.observe(n.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&this.options.intersection.threshold||0}}]),r}();function Z7(r,e,t){var s=e.value;if(s)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var n=new f$e(r,s,t);r._vue_visibilityState=n}}function m$e(r,e,t){var s=e.value,n=e.oldValue;if(!q7(s,n)){var i=r._vue_visibilityState;if(!s){Y7(r);return}i?i.createObserver(s,t):Z7(r,{value:s},t)}}function Y7(r){var e=r._vue_visibilityState;e&&(e.destroyObserver(),delete r._vue_visibilityState)}var K7={bind:Z7,update:m$e,unbind:Y7};function g$e(r){r.directive("observe-visibility",K7)}var v$e={version:"0.4.6",install:g$e},Mf=null;typeof window<"u"?Mf=window.Vue:typeof global<"u"&&(Mf=global.Vue);Mf&&Mf.use(v$e);var X7={exports:{}};(function(r){(function(e,t){r.exports?r.exports=t():e.Scrollparent=t()})(Sb,function(){function e(s){var n=getComputedStyle(s,null).getPropertyValue("overflow");return n.indexOf("scroll")>-1||n.indexOf("auto")>-1}function t(s){if(s instanceof HTMLElement||s instanceof SVGElement){for(var n=s.parentNode;n.parentNode;){if(e(n))return n;n=n.parentNode}return document.scrollingElement||document.documentElement}}return t})})(X7);var _$e=X7.exports;const iC=Tl(_$e);var J7={itemsLimit:1e3};const Q7={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:r=>["vertical","horizontal"].includes(r)},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function e9(){return this.items.length&&typeof this.items[0]!="object"}let S0=!1;if(typeof window<"u"){S0=!1;try{var y$e=Object.defineProperty({},"passive",{get(){S0=!0}});window.addEventListener("test",null,y$e)}catch{}}let b$e=0;var $$e={name:"RecycleScroller",components:{ResizeObserver:w0},directives:{ObserveVisibility:K7},props:{...Q7,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const r={"-1":{accumulator:0}},e=this.items,t=this.sizeField,s=this.minItemSize;let n=1e4,i=0,a;for(let o=0,l=e.length;o<l;o++)a=e[o][t]||s,a<n&&(n=a),i+=a,r[o]={accumulator:i,size:a};return this.$_computedMinItemSize=n,r}return[]},simpleArray:e9},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const r=this.$_lastUpdateScrollPosition;typeof r=="number"&&this.$nextTick(()=>{this.scrollToPosition(r)})},beforeDestroy(){this.removeListeners()},methods:{addView(r,e,t,s,n){const i={item:t,position:0},a={id:b$e++,index:e,used:!0,key:s,type:n};return Object.defineProperty(i,"nr",{configurable:!1,value:a}),r.push(i),i},unuseView(r,e=!1){const t=this.$_unusedViews,s=r.nr.type;let n=t.get(s);n||(n=[],t.set(s,n)),n.push(r),e||(r.nr.used=!1,r.position=-9999,this.$_views.delete(r.nr.key))},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(r){this.$_scrollDirty||(this.$_scrollDirty=!0,requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,100))}))},handleVisibilityChange(r,e){this.ready&&(r||e.boundingClientRect.width!==0||e.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(r,e=!1){const t=this.itemSize,s=this.gridItems||1,n=this.itemSecondarySize||t,i=this.$_computedMinItemSize,a=this.typeField,o=this.simpleArray?null:this.keyField,l=this.items,c=l.length,u=this.sizes,d=this.$_views,p=this.$_unusedViews,h=this.pool;let f,g,v,y,C;if(!c)f=g=y=C=v=0;else if(this.$_prerender)f=y=0,g=C=Math.min(this.prerender,l.length),v=null;else{const ne=this.getScroll();if(e){let T=ne.start-this.$_lastUpdateScrollPosition;if(T<0&&(T=-T),t===null&&T<i||T<t)return{continuous:!0}}this.$_lastUpdateScrollPosition=ne.start;const fe=this.buffer;ne.start-=fe,ne.end+=fe;let k=0;if(this.$refs.before&&(k=this.$refs.before.scrollHeight,ne.start-=k),this.$refs.after){const T=this.$refs.after.scrollHeight;ne.end+=T}if(t===null){let T,P=0,O=c-1,j=~~(c/2),N;do N=j,T=u[j].accumulator,T<ne.start?P=j:j<c-1&&u[j+1].accumulator>ne.start&&(O=j),j=~~((P+O)/2);while(j!==N);for(j<0&&(j=0),f=j,v=u[c-1].accumulator,g=j;g<c&&u[g].accumulator<ne.end;g++);for(g===-1?g=l.length-1:(g++,g>c&&(g=c)),y=f;y<c&&k+u[y].accumulator<ne.start;y++);for(C=y;C<c&&k+u[C].accumulator<ne.end;C++);}else{f=~~(ne.start/t*s);const T=f%s;f-=T,g=Math.ceil(ne.end/t*s),y=Math.max(0,Math.floor((ne.start-k)/t*s)),C=Math.floor((ne.end-k)/t*s),f<0&&(f=0),g>c&&(g=c),y<0&&(y=0),C>c&&(C=c),v=Math.ceil(c/s)*t}}g-f>J7.itemsLimit&&this.itemsLimitError(),this.totalSize=v;let x;const $=f<=this.$_endIndex&&g>=this.$_startIndex;if(this.$_continuous!==$){if($){d.clear(),p.clear();for(let ne=0,fe=h.length;ne<fe;ne++)x=h[ne],this.unuseView(x)}this.$_continuous=$}else if($)for(let ne=0,fe=h.length;ne<fe;ne++)x=h[ne],x.nr.used&&(r&&(x.nr.index=l.indexOf(x.item)),(x.nr.index===-1||x.nr.index<f||x.nr.index>=g)&&this.unuseView(x));const L=$?null:new Map;let G,K,le,ue;for(let ne=f;ne<g;ne++){G=l[ne];const fe=o?G[o]:G;if(fe==null)throw new Error(`Key is ${fe} on item (keyField is '${o}')`);if(x=d.get(fe),!t&&!u[ne].size){x&&this.unuseView(x);continue}x?(x.nr.used=!0,x.item=G):(ne===l.length-1&&this.$emit("scroll-end"),ne===0&&this.$emit("scroll-start"),K=G[a],le=p.get(K),$?le&&le.length?(x=le.pop(),x.item=G,x.nr.used=!0,x.nr.index=ne,x.nr.key=fe,x.nr.type=K):x=this.addView(h,ne,G,fe,K):(ue=L.get(K)||0,(!le||ue>=le.length)&&(x=this.addView(h,ne,G,fe,K),this.unuseView(x,!0),le=p.get(K)),x=le[ue],x.item=G,x.nr.used=!0,x.nr.index=ne,x.nr.key=fe,x.nr.type=K,L.set(K,ue+1),ue++),d.set(fe,x)),t===null?(x.position=u[ne-1].accumulator,x.offset=0):(x.position=Math.floor(ne/s)*t,x.offset=ne%s*n)}return this.$_startIndex=f,this.$_endIndex=g,this.emitUpdate&&this.$emit("update",f,g,y,C),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,300),{continuous:$}},getListenerTarget(){let r=iC(this.$el);return window.document&&(r===window.document.documentElement||r===window.document.body)&&(r=window),r},getScroll(){const{$el:r,direction:e}=this,t=e==="vertical";let s;if(this.pageMode){const n=r.getBoundingClientRect(),i=t?n.height:n.width;let a=-(t?n.top:n.left),o=t?window.innerHeight:window.innerWidth;a<0&&(o+=a,a=0),a+o>i&&(o=i-a),s={start:a,end:a+o}}else t?s={start:r.scrollTop,end:r.scrollTop+r.clientHeight}:s={start:r.scrollLeft,end:r.scrollLeft+r.clientWidth};return s},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,S0?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(r){let e;this.itemSize===null?e=r>0?this.sizes[r-1].accumulator:0:e=Math.floor(r/this.gridItems)*this.itemSize,this.scrollToPosition(e)},scrollToPosition(r){const e=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let t,s,n;if(this.pageMode){const i=iC(this.$el),a=i.tagName==="HTML"?0:i[e.scroll],o=i.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[e.start]-o[e.start];t=i,s=e.scroll,n=r+a+c}else t=this.$el,s=e.scroll,n=r;t[s]=n},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((r,e)=>r.nr.index-e.nr.index)}}};function _2(r,e,t,s,n,i,a,o,l,c){const u=typeof t=="function"?t.options:t;return r&&r.render&&(u.render=r.render,u.staticRenderFns=r.staticRenderFns,u._compiled=!0,n&&(u.functional=!0)),t}const w$e=$$e;var t9=function(){var r,e,t=this,s=t.$createElement,n=t._self._c||s;return n("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:t.handleVisibilityChange,expression:"handleVisibilityChange"}],staticClass:"vue-recycle-scroller",class:(r={ready:t.ready,"page-mode":t.pageMode},r["direction-"+t.direction]=!0,r),on:{"&scroll":function(i){return t.handleScroll.apply(null,arguments)}}},[t.$slots.before?n("div",{ref:"before",staticClass:"vue-recycle-scroller__slot"},[t._t("before")],2):t._e(),t._v(" "),n(t.listTag,{ref:"wrapper",tag:"component",staticClass:"vue-recycle-scroller__item-wrapper",class:t.listClass,style:(e={},e[t.direction==="vertical"?"minHeight":"minWidth"]=t.totalSize+"px",e)},[t._l(t.pool,function(i){return n(t.itemTag,t._g({key:i.nr.id,tag:"component",staticClass:"vue-recycle-scroller__item-view",class:[t.itemClass,{hover:!t.skipHover&&t.hoverKey===i.nr.key}],style:t.ready?{transform:"translate"+(t.direction==="vertical"?"Y":"X")+"("+i.position+"px) translate"+(t.direction==="vertical"?"X":"Y")+"("+i.offset+"px)",width:t.gridItems?(t.direction==="vertical"&&t.itemSecondarySize||t.itemSize)+"px":void 0,height:t.gridItems?(t.direction==="horizontal"&&t.itemSecondarySize||t.itemSize)+"px":void 0}:null},t.skipHover?{}:{mouseenter:function(){t.hoverKey=i.nr.key},mouseleave:function(){t.hoverKey=null}}),[t._t("default",null,{item:i.item,index:i.nr.index,active:i.nr.used})],2)}),t._v(" "),t._t("empty")],2),t._v(" "),t.$slots.after?n("div",{ref:"after",staticClass:"vue-recycle-scroller__slot"},[t._t("after")],2):t._e(),t._v(" "),n("ResizeObserver",{on:{notify:t.handleResize}})],1)},S$e=[];t9._withStripped=!0;const x$e=void 0,C$e=void 0,P$e=!1,x0=_2({render:t9,staticRenderFns:S$e},x$e,w$e,C$e,P$e);var A$e={name:"DynamicScroller",components:{RecycleScroller:x0},provide(){return typeof ResizeObserver<"u"&&(this.$_resizeObserver=new ResizeObserver(r=>{requestAnimationFrame(()=>{if(Array.isArray(r)){for(const e of r)if(e.target){const t=new CustomEvent("resize",{detail:{contentRect:e.contentRect}});e.target.dispatchEvent(t)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...Q7,minItemSize:{type:[Number,String],required:!0}},data(){return{vscrollData:{active:!0,sizes:{},validSizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:e9,itemsWithSize(){const r=[],{items:e,keyField:t,simpleArray:s}=this,n=this.vscrollData.sizes,i=e.length;for(let a=0;a<i;a++){const o=e[a],l=s?a:o[t];let c=n[l];typeof c>"u"&&!this.$_undefinedMap[l]&&(c=0),r.push({item:o,id:l,size:c})}return r},listeners(){const r={};for(const e in this.$listeners)e!=="resize"&&e!=="visible"&&(r[e]=this.$listeners[e]);return r}},watch:{items(){this.forceUpdate(!1)},simpleArray:{handler(r){this.vscrollData.simpleArray=r},immediate:!0},direction(r){this.forceUpdate(!0)},itemsWithSize(r,e){const t=this.$el.scrollTop;let s=0,n=0;const i=Math.min(r.length,e.length);for(let o=0;o<i&&!(s>=t);o++)s+=e[o].size||this.minItemSize,n+=r[o].size||this.minItemSize;const a=n-s;a!==0&&(this.$el.scrollTop+=a)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={}},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible(){this.$emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate(r=!0){(r||this.simpleArray)&&(this.vscrollData.validSizes={}),this.$emit("vscroll:update",{force:!0})},scrollToItem(r){const e=this.$refs.scroller;e&&e.scrollToItem(r)},getItemSize(r,e=void 0){const t=this.simpleArray?e??this.items.indexOf(r):r[this.keyField];return this.vscrollData.sizes[t]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;const r=this.$el;this.$nextTick(()=>{r.scrollTop=r.scrollHeight+5e3;const e=()=>{r.scrollTop=r.scrollHeight+5e3,requestAnimationFrame(()=>{r.scrollTop=r.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(e)})};requestAnimationFrame(e)})}}};const L$e=A$e;var r9=function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("RecycleScroller",r._g(r._b({ref:"scroller",attrs:{items:r.itemsWithSize,"min-item-size":r.minItemSize,direction:r.direction,"key-field":"id","list-tag":r.listTag,"item-tag":r.itemTag},on:{resize:r.onScrollerResize,visible:r.onScrollerVisible},scopedSlots:r._u([{key:"default",fn:function(s){var n=s.item,i=s.index,a=s.active;return[r._t("default",null,null,{item:n.item,index:i,active:a,itemWithSize:n})]}}],null,!0)},"RecycleScroller",r.$attrs,!1),r.listeners),[r._v(" "),t("template",{slot:"before"},[r._t("before")],2),r._v(" "),t("template",{slot:"after"},[r._t("after")],2),r._v(" "),t("template",{slot:"empty"},[r._t("empty")],2)],2)},E$e=[];r9._withStripped=!0;const O$e=void 0,T$e=void 0,k$e=!1,aC=_2({render:r9,staticRenderFns:E$e},O$e,L$e,T$e,k$e);var D$e={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.item.hasOwnProperty(this.vscrollData.keyField))return this.item[this.vscrollData.keyField];throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.validSizes[this.id]&&this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(){this.size||this.onDataUpdate()},finalActive(r){this.size||(r?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?r?this.observeSize():this.unobserveSize():r&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const r in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[r],this.onDataUpdate);this.vscrollParent.$on("vscroll:update",this.onVscrollUpdate),this.vscrollParent.$on("vscroll:update-size",this.onVscrollUpdateSize)}},mounted(){this.vscrollData.active&&(this.updateSize(),this.observeSize())},beforeDestroy(){this.vscrollParent.$off("vscroll:update",this.onVscrollUpdate),this.vscrollParent.$off("vscroll:update-size",this.onVscrollUpdateSize),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch("item",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:r}){!this.finalActive&&r&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||r||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(r){this.$nextTick(()=>{if(this.id===r){const e=this.$el.offsetWidth,t=this.$el.offsetHeight;this.applySize(e,t)}this.$_pendingSizeUpdate=null})},applySize(r,e){const t=~~(this.vscrollParent.direction==="vertical"?e:r);t&&this.size!==t&&(this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.$set(this.vscrollData.sizes,this.id,t),this.$set(this.vscrollData.validSizes,this.id,!0),this.emitResize&&this.$emit("resize",this.id))},observeSize(){!this.vscrollResizeObserver||!this.$el.parentNode||(this.vscrollResizeObserver.observe(this.$el.parentNode),this.$el.parentNode.addEventListener("resize",this.onResize))},unobserveSize(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.unobserve(this.$el.parentNode),this.$el.parentNode.removeEventListener("resize",this.onResize))},onResize(r){const{width:e,height:t}=r.detail.contentRect;this.applySize(e,t)}},render(r){return r(this.tag,this.$slots.default)}};const M$e=D$e,R$e=void 0,I$e=void 0,F$e=void 0,oC=_2({},R$e,M$e,I$e,F$e);function H$e(r,e){r.component(`${e}recycle-scroller`,x0),r.component(`${e}RecycleScroller`,x0),r.component(`${e}dynamic-scroller`,aC),r.component(`${e}DynamicScroller`,aC),r.component(`${e}dynamic-scroller-item`,oC),r.component(`${e}DynamicScrollerItem`,oC)}const s9={version:"1.1.2",install(r,e){const t=Object.assign({},{installComponents:!0,componentsPrefix:""},e);for(const s in t)typeof t[s]<"u"&&(J7[s]=t[s]);t.installComponents&&H$e(r,t.componentsPrefix)}};let Rf=null;typeof window<"u"?Rf=window.Vue:typeof global<"u"&&(Rf=global.Vue);Rf&&Rf.use(s9);var j$e=function(e){return B$e(e)&&!N$e(e)};function B$e(r){return!!r&&typeof r=="object"}function N$e(r){var e=Object.prototype.toString.call(r);return e==="[object RegExp]"||e==="[object Date]"||U$e(r)}var V$e=typeof Symbol=="function"&&Symbol.for,z$e=V$e?Symbol.for("react.element"):60103;function U$e(r){return r.$$typeof===z$e}function W$e(r){return Array.isArray(r)?[]:{}}function ju(r,e){return e.clone!==!1&&e.isMergeableObject(r)?ml(W$e(r),r,e):r}function G$e(r,e,t){return r.concat(e).map(function(s){return ju(s,t)})}function q$e(r,e){if(!e.customMerge)return ml;var t=e.customMerge(r);return typeof t=="function"?t:ml}function Z$e(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(e){return Object.propertyIsEnumerable.call(r,e)}):[]}function lC(r){return Object.keys(r).concat(Z$e(r))}function n9(r,e){try{return e in r}catch{return!1}}function Y$e(r,e){return n9(r,e)&&!(Object.hasOwnProperty.call(r,e)&&Object.propertyIsEnumerable.call(r,e))}function K$e(r,e,t){var s={};return t.isMergeableObject(r)&&lC(r).forEach(function(n){s[n]=ju(r[n],t)}),lC(e).forEach(function(n){Y$e(r,n)||(n9(r,n)&&t.isMergeableObject(e[n])?s[n]=q$e(n,t)(r[n],e[n],t):s[n]=ju(e[n],t))}),s}function ml(r,e,t){t=t||{},t.arrayMerge=t.arrayMerge||G$e,t.isMergeableObject=t.isMergeableObject||j$e,t.cloneUnlessOtherwiseSpecified=ju;var s=Array.isArray(e),n=Array.isArray(r),i=s===n;return i?s?t.arrayMerge(r,e,t):K$e(r,e,t):ju(e,t)}ml.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(s,n){return ml(s,n,t)},{})};var X$e=ml,J$e=X$e;const Q$e=Tl(J$e);/**
|
||
* 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;return{beforeCreate:function(){var i=this,a="$root",o=this[a],l=this.$options,c=r.config.devtools;if(Object.defineProperty(this,"_hasMetaInfo",{configurable:!0,get:function(){return c&&!o[Ze].deprecationWarningShown&&(Ff("VueMeta DeprecationWarning: _hasMetaInfo has been deprecated and will be removed in a future version. Please use hasMetaInfo(vm) instead"),o[Ze].deprecationWarningShown=!0),A0(this)}}),this===o&&o.$once("hook:beforeMount",function(){if(s=this.$el&&this.$el.nodeType===1&&this.$el.hasAttribute("data-server-rendered"),!s&&o[Ze]&&o[Ze].appId===1){var d=Mo({},"html");s=d&&d.hasAttribute(e.ssrAttribute)}}),!(In(l[e.keyName])||l[e.keyName]===null)){if(o[Ze]||(o[Ze]={appId:dC},dC++,c&&o.$options[e.keyName]&&this.$nextTick(function(){var d=Swe(o.$children,function(p){return p.$vnode&&p.$vnode.fnOptions});d&&d.$vnode.fnOptions[e.keyName]&&Ff("VueMeta has detected a possible global mixin which adds a ".concat(e.keyName," property to all Vue components on the page. This could cause severe performance issues. If possible, use $meta().addApp to add meta information instead"))})),!this[Ze]){this[Ze]=!0;for(var u=this.$parent;u&&u!==o;)In(u[Ze])&&(u[Ze]=!1),u=u.$parent}vg(l[e.keyName])&&(l.computed=l.computed||{},l.computed.$metaInfo=l[e.keyName],this.$isServer||this.$on("hook:created",function(){this.$watch("$metaInfo",function(){_c(e,this[a],"watcher")})})),In(o[Ze].initialized)&&(o[Ze].initialized=this.$isServer,o[Ze].initialized||(o[Ze].initializedSsr||(o[Ze].initializedSsr=!0,this.$on("hook:beforeMount",function(){var d=this[a];s&&(d[Ze].appId=e.ssrAppId)})),this.$on("hook:mounted",function(){var d=this[a];d[Ze].initialized||(d[Ze].initializing=!0,this.$nextTick(function(){var p=d.$meta().refresh(),h=p.tags,f=p.metaInfo;h===!1&&d[Ze].initialized===null&&this.$nextTick(function(){return _c(e,d,"init")}),d[Ze].initialized=!0,delete d[Ze].initializing,!e.refreshOnceOnNavigation&&f.afterNavigation&&L0(d)}))}),e.refreshOnceOnNavigation&&L0(o))),this.$on("hook:destroyed",function(){var d=this;!this.$parent||!A0(this)||(delete this._hasMetaInfo,this.$nextTick(function(){if(!e.waitOnDestroyed||!d.$el||!d.$el.offsetParent){_c(e,d.$root,"destroyed");return}var p=setInterval(function(){d.$el&&d.$el.offsetParent!==null||(clearInterval(p),_c(e,d.$root,"destroyed"))},50)}))}),!this.$isServer&&t.forEach(function(d){i.$on("hook:".concat(d),function(){_c(e,this[a],d)})})}}}}function p9(r){return r=gg(r)?r:{},{keyName:r.keyName||On.keyName,attribute:r.attribute||On.attribute,ssrAttribute:r.ssrAttribute||On.ssrAttribute,tagIDKeyName:r.tagIDKeyName||On.tagIDKeyName,contentKeyName:r.contentKeyName||On.contentKeyName,metaTemplateKeyName:r.metaTemplateKeyName||On.metaTemplateKeyName,debounceWait:In(r.debounceWait)?On.debounceWait:r.debounceWait,waitOnDestroyed:In(r.waitOnDestroyed)?On.waitOnDestroyed:r.waitOnDestroyed,ssrAppId:r.ssrAppId||On.ssrAppId,refreshOnceOnNavigation:!!r.refreshOnceOnNavigation}}function Lwe(r){var e={};for(var t in r)e[t]=r[t];return e}function pC(r,e){return!e||!gg(r)?If(r)?r:[]:(If(r[e])||(r[e]=[]),r)}var h9=[[/&/g,"&"],[/</g,"<"],[/>/g,">"],[/"/g,"""],[/'/g,"'"]],Ewe=[[/&/g,"&"],[/</g,"<"],[/>/g,">"],[/"/g,'"'],[/'/g,"'"]];function E0(r,e,t,s){var n=e.tagIDKeyName,i=t.doEscape,a=i===void 0?function(h){return h}:i,o={};for(var l in r){var c=r[l];if(Vs(b2,l)){o[l]=c;continue}var u=Hf[0];if(t[u]&&Vs(t[u],l)){o[l]=c;continue}var d=r[n];if(d&&(u=Hf[1],t[u]&&t[u][d]&&Vs(t[u][d],l))){o[l]=c;continue}if(iwe(c)?o[l]=a(c):If(c)?o[l]=c.map(function(h){return uC(h)?E0(h,e,t,!0):a(h)}):uC(c)?o[l]=E0(c,e,t,!0):o[l]=c,s){var p=a(l);l!==p&&(o[p]=o[l],delete o[l])}}return o}function Owe(r,e,t){t=t||[];var s={doEscape:function(i){return t.reduce(function(a,o){return a.replace(o[0],o[1])},i)}};return Hf.forEach(function(n,i){if(i===0)pC(e,n);else if(i===1)for(var a in e[n])pC(e[n],a);s[n]=e[n]}),E0(e,r,s)}function Bf(r,e,t,s){var n=r.component,i=r.metaTemplateKeyName,a=r.contentKeyName;return t===!0||e[i]===!0?!1:(In(t)&&e[i]&&(t=e[i],e[i]=!0),t?(In(s)&&(s=e[a]),e[a]=vg(t)?t.call(n,s):t.replace(/%s/g,s),!0):(delete e[i],!1))}function Twe(r,e,t){var s=r.component,n=r.tagIDKeyName,i=r.metaTemplateKeyName,a=r.contentKeyName,o=[];return!e.length&&!t.length?o:(e.forEach(function(l,c){if(!l[n]){o.push(l);return}var u=u9(t,function(f){return f[n]===l[n]}),d=t[u];if(u===-1){o.push(l);return}if(a in d&&d[a]===void 0||"innerHTML"in d&&d.innerHTML===void 0){o.push(l),t.splice(u,1);return}if(d[a]===null||d.innerHTML===null){t.splice(u,1);return}var p=l[i];if(p){var h=d[i];if(!h){Bf({component:s,metaTemplateKeyName:i,contentKeyName:a},d,p),d.template=!0;return}d[a]||Bf({component:s,metaTemplateKeyName:i,contentKeyName:a},d,void 0,l[a])}}),o.concat(t))}var hC=!1;function kwe(r,e,t){return t=t||{},e.title===void 0&&delete e.title,_g.forEach(function(s){if(e[s])for(var n in e[s])n in e[s]&&e[s][n]===void 0&&(Vs(kd,n)&&!hC&&(Ff("VueMeta: Please note that since v2 the value undefined is not used to indicate boolean attributes anymore, see migration guide for details"),hC=!0),delete e[s][n])}),Q$e(r,e,{arrayMerge:function(n,i){return Twe(t,n,i)}})}function f9(r,e){return m9(r||{},e,y2)}function m9(r,e,t){if(t=t||{},e._inactive)return t;r=r||{};var s=r,n=s.keyName,i=e.$metaInfo,a=e.$options,o=e.$children;if(a[n]){var l=i||a[n];gg(l)&&(t=kwe(t,l,r))}return o.length&&o.forEach(function(c){Pwe(c)&&(t=m9(r,c,t))}),t}var g9=[];function Dwe(r){return document.readyState==="complete"}function Mwe(r,e){arguments.length===1&&(e=r,r=""),g9.push([r,e])}function Rwe(r,e,t,s){var n=r.tagIDKeyName,i=!1;return t.forEach(function(a){!a[n]||!a.callback||(i=!0,Mwe("".concat(e,"[data-").concat(n,'="').concat(a[n],'"]'),a.callback))}),i}function Iwe(){if(Dwe()){fC();return}document.onreadystatechange=function(){fC()}}function fC(r){g9.forEach(function(e){var t=e[0],s=e[1],n="".concat(t,'[onload="this.__vm_l=1"]'),i=[];i=$2(w2(n)),i.forEach(function(a){if(!a.__vm_cb){var o=function(){a.__vm_cb=!0,jf(a,"onload"),s(a)};if(a.__vm_l){o();return}a.__vm_ev||(a.__vm_ev=!0,a.addEventListener("load",o))}})})}var T1={};function v9(r,e,t,s,n){var i=e||{},a=i.attribute,o=n.getAttribute(a);o&&(T1[t]=JSON.parse(decodeURI(o)),jf(n,a));var l=T1[t]||{},c=[];for(var u in l)l[u]!==void 0&&r in l[u]&&(c.push(u),s[u]||delete l[u][r]);for(var d in s){var p=l[d];(!p||p[r]!==s[d])&&(c.push(d),s[d]!==void 0&&(l[d]=l[d]||{},l[d][r]=s[d]))}for(var h=0,f=c;h<f.length;h++){var g=f[h],v=l[g],y=[];for(var C in v)Array.prototype.push.apply(y,[].concat(v[C]));if(y.length){var x=Vs(kd,g)&&y.some(Boolean)?"":y.filter(function($){return $!==void 0}).join(" ");n.setAttribute(g,x)}else jf(n,g)}T1[t]=l}function Fwe(r){!r&&r!==""||(document.title=r)}function Hwe(r,e,t,s,n,i){var a=e||{},o=a.attribute,l=a.tagIDKeyName,c=c9.slice();c.push(l);var u=[],d={appId:r,attribute:o,type:t,tagIDKeyName:l},p={head:O1(n,d),pbody:O1(i,d,{pbody:!0}),body:O1(i,d,{body:!0})};if(s.length>1){var h=[];s=s.filter(function(v){var y=JSON.stringify(v),C=!Vs(h,y);return h.push(y),C})}s.forEach(function(v){if(!v.skip){var y=document.createElement(t);v.once||y.setAttribute(o,r),Object.keys(v).forEach(function(L){if(!Vs(l9,L)){if(L==="innerHTML"){y.innerHTML=v.innerHTML;return}if(L==="json"){y.innerHTML=JSON.stringify(v.json);return}if(L==="cssText"){y.styleSheet?y.styleSheet.cssText=v.cssText:y.appendChild(document.createTextNode(v.cssText));return}if(L==="callback"){y.onload=function(){return v[L](y)};return}var G=Vs(c,L)?"data-".concat(L):L,K=Vs(kd,L);if(!(K&&!v[L])){var le=K?"":v[L];y.setAttribute(G,le)}}});var C=p[xwe(v)],x,$=C.some(function(L,G){return x=G,y.isEqualNode(L)});$&&(x||x===0)?C.splice(x,1):u.push(y)}});var f=[];for(var g in p)Array.prototype.push.apply(f,p[g]);return f.forEach(function(v){v.parentNode.removeChild(v)}),u.forEach(function(v){if(v.hasAttribute("data-body")){i.appendChild(v);return}if(v.hasAttribute("data-pbody")){i.insertBefore(v,i.firstChild);return}n.appendChild(v)}),{oldTags:f,newTags:u}}function O0(r,e,t){e=e||{};var s=e,n=s.ssrAttribute,i=s.ssrAppId,a={},o=Mo(a,"html");if(r===i&&o.hasAttribute(n)){jf(o,n);var l=!1;return _we.forEach(function(v){t[v]&&Rwe(e,v,t[v])&&(l=!0)}),l&&Iwe(),!1}var c={},u={};for(var d in t)if(!Vs(b2,d)){if(d==="title"){Fwe(t.title);continue}if(Vs(_g,d)){var p=d.substr(0,4);v9(r,e,d,t[d],Mo(a,p));continue}if(If(t[d])){var h=Hwe(r,e,d,t[d],Mo(a,"head"),Mo(a,"body")),f=h.oldTags,g=h.newTags;g.length&&(c[d]=g,u[d]=f)}}return{tagsAdded:c,tagsRemoved:u}}var wi;function jwe(r,e,t){return{set:function(n){return Bwe(r,e,t,n)},remove:function(){return Nwe(r,e,t)}}}function Bwe(r,e,t,s){if(r&&r.$el)return O0(e,t,s);wi=wi||{},wi[e]=s}function Nwe(r,e,t){if(r&&r.$el){var s={},n=nwe(_g),i;try{for(n.s();!(i=n.n()).done;){var a=i.value,o=a.substr(0,4);v9(e,t,a,{},Mo(s,o))}}catch(l){n.e(l)}finally{n.f()}return Cwe(t,e)}wi[e]&&(delete wi[e],x2())}function _9(){return wi}function x2(r){(r||!Object.keys(wi).length)&&(wi=void 0)}function C2(r,e,t,s){r=r||{},t=t||[];var n=r,i=n.tagIDKeyName;return e.title&&(e.titleChunk=e.title),e.titleTemplate&&e.titleTemplate!=="%s"&&Bf({component:s,contentKeyName:"title"},e,e.titleTemplate,e.titleChunk||""),e.base&&(e.base=Object.keys(e.base).length?[e.base]:[]),e.meta&&(e.meta=e.meta.filter(function(a,o,l){var c=!!a[i];if(!c)return!0;var u=o===u9(l,function(d){return d[i]===a[i]});return u}),e.meta.forEach(function(a){return Bf(r,a)})),Owe(r,e,t)}function Vwe(r,e){if(e=e||{},!r[Ze])return o9(),{};var t=f9(e,r),s=C2(e,t,Ewe,r),n=r[Ze].appId,i=O0(n,e,s);i&&vg(s.changed)&&(s.changed(s,i.tagsAdded,i.tagsRemoved),i={addedTags:i.tagsAdded,removedTags:i.tagsRemoved});var a=_9();if(a){for(var o in a)O0(o,e,a[o]),delete a[o];x2(!0)}return{vm:r,metaInfo:s,tags:i}}function zwe(r,e,t,s){var n=s.addSsrAttribute,i=r||{},a=i.attribute,o=i.ssrAttribute,l="";for(var c in t){var u=t[c],d=[];for(var p in u)d.push.apply(d,i9([].concat(u[p])));d.length&&(l+=kd.includes(c)&&d.some(Boolean)?"".concat(c):"".concat(c,'="').concat(d.join(" "),'"'),l+=" ")}return l&&(l+="".concat(a,'="').concat(encodeURI(JSON.stringify(t)),'"')),e==="htmlAttrs"&&n?"".concat(o).concat(l?" ":"").concat(l):l}function Uwe(r,e,t,s){var n=s||{},i=n.ln;return t?"<".concat(e,">").concat(t,"</").concat(e,">").concat(i?`
|
||
`:""):""}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:{onEnterPressed:function(e){e.keyCode===13&&(e.stopPropagation(),this.choose(!0))},choose:function(e){this.$emit("result",e),this.value=e,this.$destroy()},change:function(e){this.$destroy()}}};function b9(r,e){e===void 0&&(e={});var t=e.property||"$confirm";delete e.property;var s=e.vuetify;delete e.vuetify,s||console.warn("Module vuetify-confirm needs vuetify instance. Use Vue.use(VuetifyConfirm, { vuetify })");var n=r.extend(Object.assign({vuetify:s},Kwe));function i(o){var l=document.querySelector("[data-app=true]")||document.body;return new Promise(function(c){var u=new n(Object.assign({},{propsData:Object.assign({},r.prototype[t].options,o),destroyed:function(){l.removeChild(u.$el),c(u.value)}}));l.appendChild(u.$mount().$el)})}function a(o,l){return l===void 0&&(l={}),l.message=o,i(l)}r.prototype[t]=a,r.prototype[t].options=e||{}}typeof window<"u"&&window.Vue&&window.Vue.use(b9);var $9={exports:{}};(function(r){function e(a){return a.type.indexOf("mouse")!==-1?a.clientX:a.touches[0].clientX}function t(a){return a.type.indexOf("mouse")!==-1?a.clientY:a.touches[0].clientY}var s=function(){var a=!1;try{var o=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("test",null,o)}catch{}return a}(),n=0,i={install:function(a,o){var l=Object.assign({},{disableClick:!1,tapTolerance:10,swipeTolerance:30,touchHoldTolerance:400,longTapTimeInterval:400,touchClass:"",namespace:"touch"},o);function c($){var L=this.$$touchObj,G=$.type.indexOf("touch")>=0,K=$.type.indexOf("mouse")>=0,le=this;G&&(n=$.timeStamp),!(K&&n&&$.timeStamp-n<350)&&(L.touchStarted||(v(this),L.touchStarted=!0,L.touchMoved=!1,L.swipeOutBounded=!1,L.startX=e($),L.startY=t($),L.currentX=0,L.currentY=0,L.touchStartTime=$.timeStamp,L.touchHoldTimer=setTimeout(function(){L.touchHoldTimer=null,g($,le,"touchhold")},L.options.touchHoldTolerance),g($,this,"start")))}function u($){var L=this.$$touchObj;if(L.currentX=e($),L.currentY=t($),L.touchMoved){if(!L.swipeOutBounded){var K=L.options.swipeTolerance;L.swipeOutBounded=Math.abs(L.startX-L.currentX)>K&&Math.abs(L.startY-L.currentY)>K}}else{var G=L.options.tapTolerance;L.touchMoved=Math.abs(L.startX-L.currentX)>G||Math.abs(L.startY-L.currentY)>G,L.touchMoved&&(C(L),g($,this,"moved"))}L.touchMoved&&g($,this,"moving")}function d(){var $=this.$$touchObj;C($),y(this),$.touchStarted=$.touchMoved=!1,$.startX=$.startY=0}function p($){var L=this.$$touchObj,G=$.type.indexOf("touch")>=0,K=$.type.indexOf("mouse")>=0;G&&(n=$.timeStamp);var le=G&&!L.touchHoldTimer;if(C(L),L.touchStarted=!1,y(this),!(K&&n&&$.timeStamp-n<350))if(g($,this,"end"),L.touchMoved){if(!L.swipeOutBounded){var ue=L.options.swipeTolerance,ne,fe=Math.abs(L.startY-L.currentY),k=Math.abs(L.startX-L.currentX);(fe>ue||k>ue)&&(fe>k?ne=L.startY>L.currentY?"top":"bottom":ne=L.startX>L.currentX?"left":"right",L.callbacks["swipe."+ne]?g($,this,"swipe."+ne,ne):g($,this,"swipe",ne))}}else if(L.callbacks.longtap&&$.timeStamp-L.touchStartTime>L.options.longTapTimeInterval)$.cancelable&&$.preventDefault(),g($,this,"longtap");else if(L.callbacks.touchhold&&le){$.cancelable&&$.preventDefault();return}else g($,this,"tap")}function h(){v(this)}function f(){y(this)}function g($,L,G,K){var le=L.$$touchObj,ue=le&&le.callbacks[G]||[];if(ue.length===0)return null;for(var ne=0;ne<ue.length;ne++){var fe=ue[ne];fe.modifiers.stop&&$.stopPropagation(),fe.modifiers.prevent&&$.cancelable&&$.preventDefault(),!(fe.modifiers.self&&$.target!==$.currentTarget)&&typeof fe.value=="function"&&(K?fe.value(K,$):fe.value($))}}function v($){var L=$.$$touchObj.options.touchClass;L&&$.classList.add(L)}function y($){var L=$.$$touchObj.options.touchClass;L&&$.classList.remove(L)}function C($){$.touchHoldTimer&&(clearTimeout($.touchHoldTimer),$.touchHoldTimer=null)}function x($,L){var G=$.$$touchObj||{callbacks:{},hasBindTouchEvents:!1,options:l};return L&&(G.options=Object.assign({},G.options,L)),$.$$touchObj=G,$.$$touchObj}a.directive(l.namespace,{bind:function($,L){var G=x($),K=s?{passive:!0}:!1,le=L.arg||"tap";switch(le){case"swipe":var ue=L.modifiers;if(ue.left||ue.right||ue.top||ue.bottom){for(var ne in L.modifiers)if(["left","right","top","bottom"].indexOf(ne)>=0){var fe="swipe."+ne;G.callbacks[fe]=G.callbacks[fe]||[],G.callbacks[fe].push(L)}}else G.callbacks.swipe=G.callbacks.swipe||[],G.callbacks.swipe.push(L);break;case"start":case"moving":L.modifiers.disablePassive&&(K=!1);default:G.callbacks[le]=G.callbacks[le]||[],G.callbacks[le].push(L)}G.hasBindTouchEvents||($.addEventListener("touchstart",c,K),$.addEventListener("touchmove",u,K),$.addEventListener("touchcancel",d),$.addEventListener("touchend",p),G.options.disableClick||($.addEventListener("mousedown",c),$.addEventListener("mousemove",u),$.addEventListener("mouseup",p),$.addEventListener("mouseenter",h),$.addEventListener("mouseleave",f)),G.hasBindTouchEvents=!0)},unbind:function($){$.removeEventListener("touchstart",c),$.removeEventListener("touchmove",u),$.removeEventListener("touchcancel",d),$.removeEventListener("touchend",p),$.$$touchObj&&!$.$$touchObj.options.disableClick&&($.removeEventListener("mousedown",c),$.removeEventListener("mousemove",u),$.removeEventListener("mouseup",p),$.removeEventListener("mouseenter",h),$.removeEventListener("mouseleave",f)),delete $.$$touchObj}}),a.directive(l.namespace+"-class",{bind:function($,L){x($,{touchClass:L.value})}}),a.directive(l.namespace+"-options",{bind:function($,L){x($,L.value)}})}};r.exports=i})($9);var Xwe=$9.exports;const Jwe=Tl(Xwe),yc={};function Qwe(r){return Object.keys(r).reduce((e,t)=>(r[t]!==!1&&r[t]!==null&&r[t]!==void 0&&(e[t]=r[t]),e),{})}const eSe={name:"InlineSvg",inheritAttrs:!1,render(r){return this.svgElSource?r("svg",{on:this.$listeners,attrs:Object.assign(this.getSvgAttrs(this.svgElSource),Qwe(this.$attrs)),domProps:{innerHTML:this.getSvgContent(this.svgElSource)}}):null},props:{src:{type:String,required:!0},title:{type:String},transformSource:{type:Function,default:r=>r},keepDuringLoading:{type:Boolean,default:!0}},data(){return{svgElSource:null,request:void 0}},watch:{src(r){this.getSource(r)}},mounted(){this.getSource(this.src)},methods:{getSvgAttrs(r){let e={};const t=r.attributes;if(!t)return e;for(let s=t.length-1;s>=0;s--)e[t[s].name]=t[s].value;return e},getSvgContent(r){return r=r.cloneNode(!0),r=this.transformSource(r),this.title&&tSe(r,this.title),r.innerHTML},getSource(r){yc[r]||(yc[r]=this.download(r)),this.svgElSource&&yc[r].getIsPending()&&!this.keepDuringLoading&&(this.svgElSource=null,this.$emit("unloaded")),yc[r].then(e=>{this.svgElSource=e,this.$nextTick(()=>{this.$emit("loaded",this.$el)})}).catch(e=>{this.svgElSource&&(this.svgElSource=null,this.$emit("unloaded")),delete yc[r],this.$emit("error",e)})},download(r){return rSe(new Promise((e,t)=>{const s=new XMLHttpRequest;s.open("GET",r,!0),this.request=s,s.onload=()=>{if(s.status>=200&&s.status<400)try{let a=new DOMParser().parseFromString(s.responseText,"text/xml").getElementsByTagName("svg")[0];a?e(a):t(new Error('Loaded file is not valid SVG"'))}catch(n){t(n)}else t(new Error("Error loading SVG"))},s.onerror=t,s.send()}))}}};function tSe(r,e){const t=r.getElementsByTagName("title");if(t.length)t[0].textContent=e;else{const s=document.createElementNS("http://www.w3.org/2000/svg","title");s.textContent=e,r.insertBefore(s,r.firstChild)}}function rSe(r){if(r.getIsPending)return r;let e=!0,t=r.then(s=>(e=!1,s),s=>{throw e=!1,s});return t.getIsPending=function(){return e},t}const sSe={install(r){r.component("inline-svg",eSe)}},nSe=r=>{const e=kt.create({withAuth:!0,timeout:he.NETWORK_REQUEST_TIMEOUT});e.defaults.headers.common["Content-Type"]="application/json";const t=["/access/login","/access/refresh_token"],s={400:["/access/login"],502:["/access/oneshot_token","/access/user"]},n=async o=>{if(o.url!=="/access/refresh_jwt"&&await r.dispatch("auth/checkToken")){const u=await r.dispatch("auth/refreshTokens");u&&(o.headers.Authorization=`Bearer ${u}`)}const l=o.url||"";return t.includes(l)&&(o.withAuth=!1),o},i=o=>{switch(o.status){case 200:r.state.config.apiUrl&&o.config.baseURL===r.state.config.apiUrl&&o.config.withAuth&&r.commit("auth/setAuthenticated",!0);break}return o},a=o=>{var u,d,p;let l;if(!o.response||o.code==="ERR_NETWORK")return o.message&&(l=o.message),ye.debug(l||"Network error"),Promise.reject(o);typeof o.response.data=="object"?l=(u=o.response.data.error)==null?void 0:u.message:l=o.response.data;const c=((d=o.config)==null?void 0:d.url)||"";switch(o.response.status){case 500:ye.debug(o.response.status,o.message,l),mr.$emit(l||"Server error",{type:"error"});break;case 502:case 400:ye.debug(o.response.status,o.message,l),s[o.response.status].includes(c)||mr.$emit(l||"Server error",{type:"error"});break;case 401:(p=o.config)!=null&&p.withAuth&&r.dispatch("auth/logout");break;case 404:ye.debug(o.response.status,o.message,l);break;default:ye.debug(o.response.status,o.message),mr.$emit(l||"Server error",{type:"error"})}return Promise.reject(o)};return e.interceptors.request.use(n,a),e.interceptors.response.use(i,a),e},iSe={install(r,e){if(!(e!=null&&e.store))throw new Error("store is required");const t=nSe(e.store);r.prototype.$httpClient=t,r.$httpClient=t}},gC=/((?:\.[A-Za-z~][A-Za-z0-9~]*)*)$/,T0=48,aSe=57,oSe=65,lSe=90,cSe=97,uSe=122,dSe=126,ra=r=>r>=T0&&r<=aSe,pSe=r=>r>=oSe&&r<=lSe||r>=cSe&&r<=uSe,vC=r=>{const e=[];for(let t=0;t<r.length;t++){const s=r.charCodeAt(t);e.push(s&255)}return e},_C=r=>r?ra(r)?0:pSe(r)?r:r===dSe?-2:r+256:-1,yC=(r,e)=>{const t=vC(r),s=vC(e),n=t.length,i=s.length;if(n===0||i===0)return n-i;let a=0,o=0;for(;a<n&&o<i;){let l=0;for(;a<n&&!ra(t[a])||o<i&&!ra(s[o]);){const c=_C(t[a]),u=_C(s[o]);if(c!==u)return c-u;a++,o++}for(;a<n&&t[a]===T0;)a++;for(;o<i&&s[o]===T0;)o++;for(;a<n&&o<i&&ra(t[a])&&ra(s[o]);)l||(l=t[a]-s[o]),a++,o++;if(a<n&&ra(t[a]))return 1;if(o<i&&ra(s[o]))return-1;if(l)return l}return 0},hSe=(r,e)=>{if(r===e)return 0;const t=r.replace(gC,""),s=e.replace(gC,"");return t===s?yC(r,e):yC(t,s)},fSe=(r,e,t)=>{const s=e.length-1;if(s<0)return r===void 0?t:r;for(let n=0;n<s;n++){if(r==null)return t;r=r[e[n]]}return r==null||r[e[s]]===void 0?t:r[e[s]]},bC=(r,e,t)=>r==null||!e||typeof e!="string"?t:r[e]!==void 0?r[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),fSe(r,e.split("."),t)),Et={formatCounterSeconds:r=>{r=+r,(isNaN(r)||!QB(r))&&(r=0);let e=!1;r<0&&(r=Math.abs(r),e=!0);const t=Math.floor(r/3600),s=Math.floor(r%3600/60);let i=Math.floor(r%3600%60)+"s";return i=s+"m "+i,t>0&&(i=t+"h "+i),e?"-"+i:i},getNavigatorLocales:()=>navigator.languages??[navigator.language],getAllLocales:()=>[rt.locale,...Et.getNavigatorLocales()],getDateFormat:r=>({locales:Et.getAllLocales(),...T5[r??br.state.config.uiSettings.general.dateFormat]}),getTimeFormat:r=>({locales:Et.getAllLocales(),...k5[r??br.state.config.uiSettings.general.timeFormat]}),formatDate:(r,e)=>{const t=new Date(r),s=Et.getDateFormat();return t.toLocaleDateString(s.locales,{...s.options,...e})},formatTime:(r,e)=>{const t=new Date(r),s=Et.getTimeFormat();return t.toLocaleTimeString(s.locales,{...s.options,...e})},formatTimeWithSeconds:(r,e)=>Et.formatTime(r,{second:"2-digit",...e}),formatDateTime:(r,e)=>{const t=Et.getTimeFormat(),s=Et.getDateFormat();return t.locales!==s.locales?Et.formatDate(r,e)+" "+Et.formatTime(r,e):new Date(r).toLocaleDateString(s.locales,{...s.options,...t.options,...e})},formatRelativeTimeToNow(r,e){return Et.formatRelativeTimeToDate(r,Date.now(),e)},formatRelativeTimeToDate(r,e,t){let s=Math.floor(+new Date(r)/1e3),n=Math.floor(+new Date(e)/1e3);const i=[{unit:"second",limit:60},{unit:"minute",limit:60},{unit:"hour",limit:24},{unit:"day",limit:30},{unit:"month",limit:12},{unit:"year",limit:-1}];for(const{unit:a,limit:o}of i){if(o===-1||Math.abs(s-n)<o)return Et.formatRelativeTime(s-n,a,t);s=Math.floor(s/o),n=Math.floor(n/o)}},formatRelativeTime(r,e,t){return new Intl.RelativeTimeFormat(Et.getAllLocales(),{numeric:"auto",...t}).format(r,e)},formatAbsoluteDateTime:(r,e)=>Et.isToday(r)?Et.formatTime(r,e):Et.isThisYear(r)?Et.formatDateTime(r,{year:void 0,...e}):Et.formatDateTime(r,e),isToday:r=>{const e=new Date(r),t=new Date;return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},isThisMonth:r=>{const e=new Date(r),t=new Date;return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},isThisYear:r=>{const e=new Date(r),t=new Date;return e.getFullYear()===t.getFullYear()},upperFirst:r=>am(r),prettyCase:r=>r.replace(/_/g," ").split(" ").filter(e=>e).map(Et.upperFirst).join(" "),camelCase:r=>kc(r),startCase:r=>H3(r),capitalize:r=>(r=Et.camelCase(r),Ly(r)),getReadableFileSizeString(r){let e=-1;const t=[" kB"," MB"," GB"," TB","PB","EB","ZB","YB"];if(r===0)return`0${t[0]}`;do r=r/1024,e++;while(r>1024);return Math.max(r,.1).toFixed(1)+t[e]},getReadableDataRateString(r){let e=-1;const t=[" kB"," MB"," GB"," TB","PB","EB","ZB","YB"];if(r===0)return`0${t[0]}`;do r=r/1024,e++;while(r>1024);return Math.max(r,.2).toFixed(1)+t[e]+"/Sec"},getReadableLengthString(r,e=!1){return r==null?"-":r>=1e3?(r/1e3).toFixed(2)+" m":r>100?(r/10).toFixed(1)+" cm":r<.1&&e?(r*1e3).toFixed(0)+" μm":r.toFixed(1)+" mm"},getReadableWeightString(r){return r==null?"-":r>=1e3?(r/1e3).toFixed(2)+" kg":r.toFixed(2)+" g"},getReadableFrequencyString(r){let e=0;const t=[" Hz"," kHz"," MHz"," GHz"," THz"];for(;r>=1e3;)r=r/1e3,e++;return r.toFixed()+t[e]},getReadableResistanceString(r){let e=0;const t=[" Ω"," kΩ"," MΩ"," GΩ"," TΩ"];for(;r>=1e3;)r=r/1e3,e++;return r.toFixed(1)+t[e]},getReadableAtmosphericPressureString(r){return r.toFixed(1)+" hPa"},fileSystemSort(r,e,t,s,n){if(e===null||!e.length)return r;const i=new Intl.Collator(s,{sensitivity:"accent",usage:"sort"});return r.sort((a,o)=>{if(a.type==="directory"&&(a.dirname===".."||o.type!=="directory"))return-1;if(o.type==="directory"&&(o.dirname===".."||a.type!=="directory"))return 1;for(let l=0;l<e.length;l++){const c=e[l],u=[bC(a,c),bC(o,c)];if(u[0]===u[1])continue;if(t[l]&&u.reverse(),u.every(p=>typeof p=="number"&&!isNaN(p)))return u[0]-u[1];const d=u.map(p=>(p||"").toString());if(n==="numeric-prefix"){const[p,h]=d.map(f=>f.match(/^\d+/));if(p&&h&&p[0]!==h[0])return+p[0]-+h[0]}else if(n==="version")return hSe(d[0],d[1]);return i.compare(d[0],d[1])}return 0})},getApiUrls(r){!r.startsWith("http://")&&!r.startsWith("https://")&&(r=`http://${r}`),r.endsWith("/")&&(r=r.slice(0,-1));const e=new URL(r);return e.protocol=e.protocol==="https:"?"wss://":"ws://",e.pathname+=e.pathname.endsWith("/")?"websocket":"/websocket",{apiUrl:r,socketUrl:e.toString()}},isColorDark(r){return new yt(r).getBrightness()/255*100<=50},routeTo(r,e){r.currentRoute.fullPath!==e&&r.push(e)},convertFilamentWeightToLength(r,e,t){return r/e/(Math.PI*(t/2)**2)*1e3}},$C={required(r){return(r??"")!==""||rt.t("app.general.simple_form.error.required")},numberValid(r){return!isNaN(+(r??NaN))||rt.t("app.general.simple_form.error.invalid_number")},numberGreaterThan(r){return e=>e>r||rt.t("app.general.simple_form.error.min",{min:`> ${r}`})},numberGreaterThanOrEqual(r){return e=>e>=r||rt.t("app.general.simple_form.error.min",{min:r})},numberGreaterThanOrEqualOrZero(r){return e=>+e==0||e>=r||rt.t("app.general.simple_form.error.min_or_0",{min:r})},numberGreaterThanOrZero(r){return e=>+e==0||e>r||rt.t("app.general.simple_form.error.min_or_0",{min:`> ${r}`})},numberLessThan(r){return e=>e<r||rt.t("app.general.simple_form.error.max",{max:`< ${r}`})},numberLessThanOrEqual(r){return e=>e<=r||rt.t("app.general.simple_form.error.max",{max:r})},numberLessThanOrEqualOrZero(r){return e=>+e==0||e<=r||rt.t("app.general.simple_form.error.max",{max:r})},numberLessThanOrZero(r){return e=>+e==0||e<r||rt.t("app.general.simple_form.error.max",{max:r})},lengthGreaterThanOrEqual(r){return e=>e.length>=r||rt.t("app.general.simple_form.error.min",{min:r})},lengthLessThanOrEqual(r){return e=>e.length<=r||rt.t("app.general.simple_form.error.max",{max:r})},numberArrayValid(r){return!r.some(e=>e===""||isNaN(+(e??NaN)))||rt.t("app.general.simple_form.error.arrayofnums")},passwordNotEqualUsername(r){return e=>e.toLowerCase()!==(r??"").toLowerCase()||rt.t("app.general.simple_form.error.password_username")},aspectRatioValid(r){return/^\d+\s*[:/]\s*\d+$/.test(r)||rt.t("app.general.simple_form.error.invalid_aspect")},regExpPatternValid(r){try{return new RegExp(r),!0}catch{return rt.t("app.general.simple_form.error.invalid_expression")}},regExpValid(r,e){return t=>r.test(t)||e||"Invalid"}},mSe={install(r){r.prototype.$filters=Et,r.prototype.$rules=$C,r.prototype.$globals=he,r.prototype.$waits=et,r.$filters=Et,r.$rules=$C,r.$globals=he,r.$waits=et}};class gSe{constructor(e){m(this,"url","");m(this,"connection",null);m(this,"reconnectEnabled",!1);m(this,"reconnectInterval",1e3);m(this,"allowedReconnectAttempts",3);m(this,"reconnectCount",0);m(this,"logPrefix","[WEBSOCKET]");m(this,"requests",[]);m(this,"store",null);m(this,"pingTimeout");m(this,"cache",null);this.url=e.url,this.reconnectEnabled=e.reconnectEnabled||!1,this.reconnectInterval=e.reconnectInterval||1e3,this.store=e.store?e.store:null}pong(){clearTimeout(this.pingTimeout),!this.store.state.socket.disconnecting&&!this.store.state.files.download&&(this.store.commit("socket/setSocketOpen",!0),this.store.dispatch("socket/onSocketConnecting",!1)),this.pingTimeout=setTimeout(()=>{!this.store.state.socket.disconnecting&&!this.store.state.files.download&&(ye.debug(`${this.logPrefix} Connection timeout, pong failed`),this.store&&this.store.commit("socket/setSocketOpen",!1),this.store&&this.store.dispatch("socket/onSocketConnecting",!0))},he.SOCKET_PING_INTERVAL)}close(){this.connection&&(this.cache=null,this.connection.close(),this.reconnectCount=0)}async connect(e){var t;e&&(this.url=e),this.cache=null;try{const n=(await tt.accessOneshotTokenGet()).data.result;this.store&&this.store.dispatch("socket/onSocketConnecting",!0),this.connection=new WebSocket(`${this.url}?token=${n}`),this.connection.onopen=()=>{this.reconnectEnabled&&(this.reconnectCount=1),this.store&&(this.store.dispatch("socket/onSocketConnecting",!1),this.store.dispatch("socket/onSocketOpen",!0))},this.connection.onclose=i=>{ye.debug(`${this.logPrefix} Connection closed:`,i),clearTimeout(this.pingTimeout),this.store&&this.store.dispatch("socket/onSocketClose",i),i.wasClean||this.reconnect()},this.connection.onerror=i=>{ye.error(`${this.logPrefix} Connection error:`,i),this.store&&this.store.dispatch("socket/onSocketError",i)},this.connection.onmessage=i=>{var c,u;const a=JSON.parse(i.data);let o;const l=this.requests.findIndex(d=>d.id===a.id);if(l>-1&&(o=this.requests[l],this.requests.splice(l,1)),this.store&&o&&o.wait&&o.wait.length&&this.store.commit("wait/setRemoveWait",o.wait),a.error){o&&Object.defineProperty(a.error,"__request__",{enumerable:!1,value:o}),ye.debug(`${this.logPrefix} Response error:`,a.error),this.store&&this.store.dispatch("socket/onSocketError",a.error);return}if(this.pong(),o){let d=a.result?a.result:a.params;typeof d=="string"&&(d={result:d}),Object.defineProperty(d,"__request__",{enumerable:!1,value:o}),ye.debug(`${this.logPrefix} Response:`,d),o.dispatch&&this.store&&((c=this.store)==null||c.dispatch(o.dispatch,d)),o.commit&&this.store&&((u=this.store)==null||u.commit(o.commit,d))}else if(a.params&&a.params[0]){const[d,p]=a.params;if(a.method!=="notify_status_update")this.store&&this.store.dispatch("socket/"+kc(a.method),d);else{for(const f of["motion_report"])this.store&&f in d&&(this.store.dispatch("printer/onFastNotifyStatusUpdate",{key:f,payload:d[f]},{root:!0}),delete d[f]);const h=p?p*1e3:Date.now();this.cache=this.cache?{timestamp:this.cache.timestamp,params:I3(this.cache.params,d,(f,g)=>Array.isArray(f)?g:void 0)}:{timestamp:h,params:d},h-this.cache.timestamp>=1e3&&(this.store&&this.store.dispatch("socket/"+kc(a.method),this.cache.params),this.cache={timestamp:h,params:{}})}}else this.store&&this.store.dispatch("socket/"+kc(a.method))}}catch(s){(!kt.isAxiosError(s)||((t=s.response)==null?void 0:t.status)!==401)&&this.reconnect()}}reconnect(){this.reconnectCount<=this.allowedReconnectAttempts?(this.reconnectCount+=1,this.connection=null,ye.debug(`${this.logPrefix} Reconnecting in ${this.reconnectInterval}`),setTimeout(()=>{this.connect()},this.reconnectInterval)):this.store&&this.store.dispatch("socket/onSocketConnecting",!1)}emit(e,t){var s,n;if(this.store.state.socket.disconnecting||this.store.state.socket.connecting){ye.debug(`${this.logPrefix} Socket emit denied, in disconnecting state:`,e,t);return}if(((s=this.connection)==null?void 0:s.readyState)===WebSocket.OPEN){const a=((c,u)=>Math.floor(Math.random()*(u-c+1))+c)(1e4,99999),o={id:a,method:e,jsonrpc:"2.0"},l={id:a};t&&t.wait&&(l.wait=t.wait,this.store&&this.store.dispatch("wait/addWait",t.wait)),t&&t.params&&(o.params=t.params,l.params=t.params),t&&t.dispatch&&(l.dispatch=t.dispatch),t&&t.commit&&(l.commit=t.commit),this.requests.push(l),this.connection.send(JSON.stringify(o))}else ye.debug(`${this.logPrefix} Not ready, or closed.`,e,t,(n=this.connection)==null?void 0:n.readyState)}}const vSe={install(r,e){if((e==null?void 0:e.url)==null||e.store==null)throw new Error("options required");const t=new gSe(e);r.prototype.$socket=t,r.$socket=t}};class _Se{constructor(e){m(this,"logPrefix","[WEBSOCKET]");m(this,"colorList",{});if(e.colorList)for(const t in e.colorList)if("base"in e.colorList[t]){const s=e.colorList[t],n=new yt(s.base).toHsl();let i=n.h,a=n.l;const o=n.s,l=s.hsplit||0,c=s.lsplit?s.lsplit/100:0;this.colorList[t]=[...Array(s.count).keys()].map(()=>{const u=new yt({h:i,s:o,l:a}).toHexString();return i=i+l,a=a-c,{color:u,used:!1}})}else{const s=e.colorList[t];this.colorList[t]=s.map(n=>({color:n,used:!1}))}}next(e,t){if(this.colorList[e]===void 0)return;const s=this.colorList[e].find(n=>n.name===t);if(s)return s.color;this.colorList[e].findIndex(n=>!n.used)>=0&&this.reset(e);for(const n of this.colorList[e])if(!n.used)return t&&(n.name=t),n.used=!0,n.color}reset(e,t=!1){this.colorList[e]!==void 0&&this.colorList[e].forEach(s=>{(!s.name||t)&&(s.used=!1,delete s.name)})}resetAll(){for(const e in this.colorList)this.reset(e)}forceResetAll(){for(const e in this.colorList)this.reset(e,!0)}}const ySe={install(r,e){const t={colorList:{heater:{base:"#ff5252",hsplit:20,count:3},bed:{base:"#1fb0ff",hsplit:20,count:2},fan:["#3DC25A","#58FC7C","#10EB40","#7EF297"],sensor:["#D67600","#830EE3","#B366F2","#E06573","#E38819","#795548","#607D8B","#3F51B5"]}},s=new _Se({...t,...e});r.prototype.$colorset=s,r.$colorset=s}};var bSe=Object.defineProperty,$Se=Object.getOwnPropertyDescriptor,wSe=(r,e,t,s)=>{for(var n=s>1?void 0:s?$Se(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&&bSe(e,t,n),n};let k0=class extends b{get appInfo(){return this.$store.state.version.fluidd}};k0=wSe([A({})],k0);var SSe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(pW,{staticClass:"footer justify-end",attrs:{app:"",absolute:"",inset:"",color:"transparent"}},[t("span",{staticClass:"secondary--text"},[e._v(" © "+e._s(new Date().getFullYear())+" fluidd: v"+e._s(e.appInfo.version)+"-"+e._s(e.appInfo.hash)+" ")])])},xSe=[],CSe=E(k0,SSe,xSe,!1,null,"cc1c7a14");const PSe=CSe.exports,P2=r=>{if(r.target){const{isContentEditable:e,tagName:t,type:s,readOnly:n}=r.target;return e?!0:!n&&(t==="TEXTAREA"||t==="SELECT"||t==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(s))}return!1},A2=r=>{const e=[];return r.ctrlKey&&e.push("Ctrl"),r.metaKey&&e.push("Meta"),r.altKey&&e.push("Alt"),r.shiftKey&&e.push("Shift"),e.push(r.key),e.join("+")};var ASe=Object.defineProperty,LSe=Object.getOwnPropertyDescriptor,ESe=(r,e,t,s)=>{for(var n=s>1?void 0:s?LSe(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&&ASe(e,t,n),n};let D0=class extends b{constructor(){super(...arguments);m(this,"open",!1)}get keyboardShortcuts(){return he.KEYBOARD_SHORTCUTS}get enableKeyboardShortcuts(){return this.$store.state.config.uiSettings.general.enableKeyboardShortcuts}get supportsHistory(){return this.$store.getters["server/componentSupport"]("history")}get supportsTimelapse(){return this.$store.getters["server/componentSupport"]("timelapse")}get enableDiagnostics(){return this.$store.state.config.uiSettings.general.enableDiagnostics}handleKeyDown(e){if(!this.enableKeyboardShortcuts)return;const t=A2(e);["?","Shift+?"].includes(t)&&!P2(e)&&(e.preventDefault(),this.open=!0)}created(){window.addEventListener("keydown",this.handleKeyDown,!1)}beforeDestroy(){window.removeEventListener("keydown",this.handleKeyDown)}};D0=ESe([A({})],D0);var OSe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.$t("app.keyboard_shortcuts.title.keyboard_shortcuts"),"max-width":"400","no-actions":""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,{staticClass:"pa-0"},[t(He,{attrs:{flat:""}},[t(Hr,[e._v(e._s(e.$t("app.keyboard_shortcuts.label.navigation")))]),t(qt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.home")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.home))])])]),t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.console")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.console))])])]),t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.gcode_preview")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.preview))])])]),t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.jobs")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.jobs))])])]),e.supportsHistory?t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.history")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.history))])])]):e._e(),e.supportsTimelapse?t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.timelapse")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.timelapse))])])]):e._e(),t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.tune")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.tune))])])]),e.enableDiagnostics?t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.diagnostics")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.diagnostics))])])]):e._e(),t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.configure")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.configure))])])]),t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.system")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.system))])])]),t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.settings")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.settings))])])])])])],1),t(He,{attrs:{flat:""}},[t(Hr,[e._v(e._s(e.$t("app.keyboard_shortcuts.label.tool")))]),t(qt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v(e._s(e.$t("app.keyboard_shortcuts.label.home_all")))]),t("td",[t("kbd",[e._v("Shift")]),e._v(" + "),t("kbd",[e._v("h")])])])])])],1),t(He,{attrs:{flat:""}},[t(Hr,[e._v(e._s(e.$t("app.keyboard_shortcuts.label.printing")))]),t(qt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v(e._s(e.$t("app.keyboard_shortcuts.label.pause")))]),t("td",[t("kbd",[e._v("Shift")]),e._v(" + "),t("kbd",[e._v("p")])])]),t("tr",[t("th",[e._v(e._s(e.$t("app.keyboard_shortcuts.label.cancel")))]),t("td",[t("kbd",[e._v("Shift")]),e._v(" + "),t("kbd",[e._v("c")])])])])])],1),t(He,{attrs:{flat:""}},[t(Hr,[e._v(e._s(e.$t("app.keyboard_shortcuts.label.actions")))]),t(qt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v(e._s(e.$t("app.keyboard_shortcuts.label.emergency_stop")))]),t("td",[t("kbd",[e._v("Ctrl")]),e._v(" + "),t("kbd",[e._v("Shift")]),e._v(" + "),t("kbd",[e._v("e")])])]),t("tr",[t("th",[e._v(e._s(e.$t("app.keyboard_shortcuts.label.open_keyboard_shortcut_help")))]),t("td",[t("kbd",[e._v("?")])])])])])],1)],1)],1)},TSe=[],kSe=E(D0,OSe,TSe,!1,null,"4f16e91e");const w9=kSe.exports;var DSe=Object.defineProperty,MSe=Object.getOwnPropertyDescriptor,RSe=(r,e,t,s)=>{for(var n=s>1?void 0:s?MSe(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&&DSe(e,t,n),n};let M0=class extends Y(J){get dialog(){return this.$store.state.console.promptDialog}get open(){return this.dialog.open}set open(r){r||this.sendGcode('RESPOND TYPE=command MSG="action:prompt_end"')}handleClick(r){this.sendGcode(r.command||r.text)}};M0=RSe([A({})],M0);var ISe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.dialog.title,"max-width":"450","no-actions":e.dialog.footerButtons.length===0},scopedSlots:e._u([{key:"actions",fn:function(){return[t($t),e._l(e.dialog.footerButtons,function(s,n){return t(M,{key:`button-${n}`,attrs:{color:s.color??"primary",type:"button"},on:{click:function(i){return e.handleClick(s)}}},[e._v(" "+e._s(s.text)+" ")])})]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,e._l(e.dialog.items,function(s,n){return t(ie,{key:`item-${n}`},[s.type==="text"?t(B,[e._v(" "+e._s(s.text)+" ")]):s.type==="button"?t(B,[t(Be,{attrs:{color:s.color,block:""},on:{click:function(i){return e.handleClick(s)}}},[e._v(" "+e._s(s.text)+" ")])],1):e._e()],1)}),1)],1)},FSe=[],HSe=E(M0,ISe,FSe,!1,null,null);const S9=HSe.exports;var jSe=Object.defineProperty,BSe=Object.getOwnPropertyDescriptor,NSe=(r,e,t,s)=>{for(var n=s>1?void 0:s?BSe(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&&jSe(e,t,n),n};let R0=class extends Y(J,lt){constructor(){super(...arguments);m(this,"invokedDialog",!1)}get open(){return this.invokedDialog||this.updating?(this.invokedDialog=!0,!0):!1}set open(e){e||(this.invokedDialog=!1,this.$store.commit("version/setClearUpdateResponse"))}get updating(){return this.$store.state.version.busy}get responses(){return this.$store.getters["version/getResponses"]}};R0=NSe([A({components:{Console:_P}})],R0);var VSe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.updating?e.$t("app.version.status.updating"):e.$t("app.version.status.finished"),loading:e.updating,"close-button-disabled":e.updating,"max-width":"650",persistent:""},scopedSlots:e._u([{key:"actions",fn:function(){return[t($t),t(M,{attrs:{color:"primary",text:"",disabled:e.updating},on:{click:function(s){e.open=!1}}},[e._v(" "+e._s(e.updating?e.$t("app.version.status.updating"):e.$t("app.version.btn.finish"))+" ")])]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,[t("console",{attrs:{items:e.responses,fullscreen:e.isMobileViewport,height:250,readonly:""}})],1)],1)},zSe=[],USe=E(R0,VSe,zSe,!1,null,null);const WSe=USe.exports;var GSe=Object.defineProperty,qSe=Object.getOwnPropertyDescriptor,ZSe=(r,e,t,s)=>{for(var n=s>1?void 0:s?qSe(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&&GSe(e,t,n),n};let I0=class extends Y(J){reload(){window.location.reload()}get activeInstance(){return this.$store.getters["config/getCurrentInstance"]}async reconnect(){const r=await mg(this.activeInstance,this.$store.state.config.hostConfig);r.apiConfig.socketUrl&&r.apiConnected&&r.apiAuthenticated&&this.$socket.connect(r.apiConfig.socketUrl)}};I0=ZSe([A({components:{}})],I0);var YSe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(fd,{staticStyle:{height:"400px"}},[t(ie,{staticClass:"fill-height",attrs:{"align-content":"center",justify:"center"}},[t(B,{staticClass:"subtitle-1 text-center",attrs:{cols:"12"}},[e.socketConnecting?t("span",[e._v(e._s(e.$t("app.socket.msg.connecting")))]):e._e(),e.socketConnecting?e._e():t("span",[e._v(e._s(e.$t("app.socket.msg.no_connection")))])]),t(B,{attrs:{cols:"6",lg:"4"}},[e.socketConnecting?t(Zs,{staticClass:"mb-4",attrs:{color:"warning",indeterminate:"",rounded:"",height:"6"}}):e._e(),e.socketConnecting?e._e():t(M,{staticClass:"me-2 mb-2",attrs:{block:"",color:"info"},on:{click:function(s){return e.reconnect()}}},[e._v(" "+e._s(e.$t("app.general.btn.socket_reconnect"))+" ")]),t(M,{staticClass:"me-2 mb-2",attrs:{block:"",color:"warning"},on:{click:function(s){return e.reload()}}},[e._v(" "+e._s(e.$t("app.general.btn.socket_refresh"))+" ")])],1)],1)],1)},KSe=[],XSe=E(I0,YSe,KSe,!1,null,null);const JSe=XSe.exports;var QSe=Object.defineProperty,exe=Object.getOwnPropertyDescriptor,txe=(r,e,t,s)=>{for(var n=s>1?void 0:s?exe(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 F0=class extends b{constructor(){super(...arguments);m(this,"updateSW",null);m(this,"needRefresh",!1)}onOfflineReady(){ye.debug("[PWA] ready for offline work"),mr.$emit(this.$tc("app.general.msg.offline_ready"),{timeout:5e3})}onNeedRefresh(){ye.debug("[PWA] needs refresh"),this.needRefresh=!0}onRegistered(e){ye.debug("[PWA] registered",e)}onRegisterError(e){ye.error("[PWA] registration error",e)}updateServiceWorker(){this.updateSW&&this.updateSW(!0)}async mounted(){try{const{registerSW:e}=await Ye(async()=>{const{registerSW:t}=await import("./virtual_pwa-register-hSNHhx4l.js");return{registerSW:t}},[],import.meta.url);this.updateSW=e({immediate:!0,onOfflineReady:this.onOfflineReady,onNeedRefresh:this.onNeedRefresh,onRegistered:this.onRegistered,onRegisterError:this.onRegisterError})}catch{ye.error("[PWA] disabled")}}};F0=txe([A({})],F0);var rxe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Am,{attrs:{timeout:"-1","multi-line":"",elevation:"24",bottom:"",right:""},scopedSlots:e._u([{key:"action",fn:function({attrs:s}){return[t(M,e._b({on:{click:e.updateServiceWorker}},"app-btn",s,!1),[e._v(" "+e._s(e.$t("app.general.btn.reload"))+" ")])]}}]),model:{value:e.needRefresh,callback:function(s){e.needRefresh=s},expression:"needRefresh"}},[t("span",{domProps:{innerHTML:e._s(e.$t("app.general.msg.needs_refresh"))}})])],1)},sxe=[],nxe=E(F0,rxe,sxe,!1,null,"b7f0c42f");const ixe=nxe.exports,axe=/(https?:\/\/[^\s]+)/gi,oxe=r=>r.replace(axe,'<a target="_blank" href="$1">$1</a>');var lxe=Object.defineProperty,cxe=Object.getOwnPropertyDescriptor,uxe=(r,e,t,s)=>{for(var n=s>1?void 0:s?cxe(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&&lxe(e,t,n),n};let H0=class extends Y(J){constructor(){super(...arguments);m(this,"linkExternalUrls",oxe)}get docsUrl(){return he.DOCS_REQUIRED_CONFIGURATION}get moonrakerDocsUrl(){return he.DOCS_MOONRAKER_COMPONENTS}get printerWarningsTxt(){return this.$t("app.general.error.app_setup_link",{url:this.docsUrl})}get moonrakerFailedComponentsTxt(){return this.$t("app.general.error.components_config",{url:this.moonrakerDocsUrl})}get appName(){return he.APP_NAME}get printerWarnings(){return this.$store.getters["printer/getPrinterWarnings"]}get klipperWarnings(){return this.$store.getters["printer/getKlipperWarnings"]}get moonrakerFailedComponents(){return this.$store.getters["printer/getMoonrakerFailedComponents"]}get moonrakerWarnings(){return this.$store.getters["printer/getMoonrakerWarnings"]}};H0=uxe([A({components:{}})],H0);var dxe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Ai,{staticClass:"mb-0",attrs:{text:"",dense:"",icon:"$warning",type:"warning"}},[e.printerWarnings.length>0?[t("div",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("app.general.error.app_warnings_found",{appName:e.appName}))+" ")]),t("ul",{staticClass:"mb-4"},e._l(e.printerWarnings,function(s,n){return t("li",{key:n,domProps:{innerHTML:e._s(e.linkExternalUrls(s.message))}})}),0)]:e._e(),e.klipperWarnings.length>0?[t("div",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("app.general.error.app_warnings_found",{appName:"Klipper"}))+" ")]),t("ul",{staticClass:"mb-4"},e._l(e.klipperWarnings,function(s,n){return t("li",{key:n,domProps:{innerHTML:e._s(e.linkExternalUrls(s.message))}})}),0)]:e._e(),e.moonrakerFailedComponents.length>0?[t("div",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("app.general.error.failed_components"))+" ")]),t("ul",{staticClass:"mb-4"},e._l(e.moonrakerFailedComponents,function(s,n){return t("li",{key:n,domProps:{innerHTML:e._s(e.linkExternalUrls(s))}})}),0)]:e._e(),e.moonrakerWarnings.length>0?[t("div",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("app.general.error.app_warnings_found",{appName:"Moonraker"}))+" ")]),t("ul",{staticClass:"mb-4"},e._l(e.moonrakerWarnings,function(s,n){return t("li",{key:n,domProps:{innerHTML:e._s(e.linkExternalUrls(s))}})}),0)]:e._e(),e.printerWarnings.length>0?t("div",[t("span",{domProps:{innerHTML:e._s(e.printerWarningsTxt)}})]):e._e(),e.moonrakerFailedComponents.length>0?t("div",[t("span",{domProps:{innerHTML:e._s(e.moonrakerFailedComponentsTxt)}})]):e._e()],2)},pxe=[],hxe=E(H0,dxe,pxe,!1,null,null);const fxe=hxe.exports;var mxe=Object.defineProperty,gxe=Object.getOwnPropertyDescriptor,vxe=(r,e,t,s)=>{for(var n=s>1?void 0:s?gxe(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&&mxe(e,t,n),n};let j0=class extends Y(J){};j0=vxe([A({})],j0);var _xe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qe,{attrs:{title:`Klippy: ${e.klippyState}`,icon:"$error","icon-color":"error"}},[t(Le,[t(ie,[t(B,{attrs:{cols:"12",sm:"auto"}},[t(_8)],1),t(B,{attrs:{cols:"12",sm:""}},[e.klippyStateMessage!=="Printer is ready"?t(Ai,{attrs:{text:"",dense:"",type:"error"}},[t("span",{domProps:{innerHTML:e._s(e.klippyStateMessage)}})]):e._e(),e.hasWarnings?t(fxe):e._e()],1)],1)],1)],1)},yxe=[],bxe=E(j0,_xe,yxe,!1,null,null);const $xe=bxe.exports;var wxe=Object.defineProperty,Sxe=Object.getOwnPropertyDescriptor,Dd=(r,e,t,s)=>{for(var n=s>1?void 0:s?Sxe(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&&wxe(e,t,n),n};let ja=class extends b{constructor(){super(...arguments);m(this,"open");m(this,"type");m(this,"text");m(this,"timeout")}};Dd([Fe({type:Boolean})],ja.prototype,"open",2);Dd([w({type:String,default:"dark"})],ja.prototype,"type",2);Dd([w({type:String,default:"Saved!"})],ja.prototype,"text",2);Dd([w({type:Number,default:1500})],ja.prototype,"timeout",2);ja=Dd([A({})],ja);var xxe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Am,{attrs:{color:e.type,timeout:e.timeout,elevation:"24","multi-line":"",top:"",centered:""},scopedSlots:e._u([{key:"action",fn:function({attrs:s}){return[t(M,e._b({attrs:{dark:""},on:{click:function(n){e.open=!1}}},"app-btn",s,!1),[e._v(" "+e._s(e.$t("app.general.btn.close"))+" ")])]}}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t("span",{domProps:{innerHTML:e._s(e.text)}})])},Cxe=[],Pxe=E(ja,xxe,Cxe,!1,null,"daf8ff2d");const Axe=Pxe.exports;var Lxe=Object.defineProperty,Exe=Object.getOwnPropertyDescriptor,Oxe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Exe(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&&Lxe(e,t,n),n};let B0=class extends b{get user(){return this.$store.getters["auth/getCurrentUser"]}get currentUser(){return this.user?this.user.username==="_TRUSTED_USER_"||this.user.username==="_API__API_KEY_USER_USER_"?Ly(H3(this.user.username)):this.user.username:""}get isTrustedOnly(){return this.user?this.user.username==="_TRUSTED_USER_"||this.user.username==="_API__API_KEY_USER_USER_":!1}async handleLogout(){await this.$store.dispatch("auth/checkTrust")}};B0=Oxe([A({})],B0);var Txe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Dt,{attrs:{"nudge-width":260,"offset-y":"","close-delay":300},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:i}){return[t(Be,e._g(e._b({attrs:{fab:"",text:"",small:""},on:{click:function(a){return e.$emit("drawer")}}},"v-btn",n,!1),{...i,...s}),[t(S,[e._v("$account")])],1)]}}],null,!0)},[t("span",[e._v(e._s(e.currentUser))])])]}}])},[t(He,[t(Le,{staticClass:"text-center"},[t("div",[t(S,{attrs:{large:""}},[e._v(" $account ")])],1),t("span",{staticClass:"text-h5"},[e._v(e._s(e.currentUser))]),e.user&&!e.isTrustedOnly?t("div",{staticClass:"mt-3"},[t(M,{attrs:{disabled:e.user.source!=="moonraker",small:""},on:{click:function(s){return e.$emit("change-password")}}},[e._v(" "+e._s(e.$t("app.general.label.change_password"))+" ")]),e.user.source!=="moonraker"?t("div",{staticClass:"mt-2"},[t("small",[e._v(" "+e._s(e.$t("app.general.label.user_managed_source",{source:e.$t(`app.general.label.${e.user.source}`)}))+" ")])]):e._e()],1):e._e()]),t(R),t(Mt,{staticClass:"py-0",attrs:{dense:""}},[t(Se,{on:{click:function(s){return e.$filters.routeTo(e.$router,"/settings#auth")}}},[t(qe,[t(S,[e._v("$addAccount")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.label.manage_accounts")))])],1)],1),e.isTrustedOnly?e._e():[t(R),t(Se,[t(Ee,{staticClass:"justify-center"},[t(M,{on:{click:e.handleLogout}},[e._v(" "+e._s(e.$t("app.general.btn.logout"))+" ")])],1)],1)]],2)],1)],1)},kxe=[],Dxe=E(B0,Txe,kxe,!1,null,null);const Mxe=Dxe.exports;var Rxe=Object.defineProperty,Ixe=Object.getOwnPropertyDescriptor,Fxe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ixe(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&&Rxe(e,t,n),n};let N0=class extends Y(J){get presets(){return[{label:this.$filters.formatRelativeTime(1,"hour",{numeric:"always"}),delay:3600},{label:this.$filters.formatRelativeTime(1,"day",{numeric:"always"}),delay:3600*24},{label:this.$filters.formatRelativeTime(7,"day",{numeric:"always"}),delay:3600*24*7}]}};N0=Fxe([A({})],N0);var Hxe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Dt,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","min-width":"150"},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n,value:i}){return[t(M,e._g(e._b({attrs:{"x-small":""}},"app-btn",n,!1),s),[t(S,{staticClass:"mr-1",attrs:{"x-small":""}},[e._v(" $snooze ")]),e._v(" "+e._s(e.$t("app.general.btn.snooze"))+" "),t(S,{staticClass:"ml-1",class:{"rotate-180":i},attrs:{"x-small":""}},[e._v(" $chevronDown ")])],1)]}}])},[t(Mt,{attrs:{dense:""}},e._l(e.presets,function(s){return t(Se,{key:s.delay,attrs:{link:"",dense:""},on:{click:function(n){return e.$emit("dismiss",s.delay)}}},[t(xe,[t(S,{attrs:{small:"",left:""}},[e._v(" $clock ")]),e._v(" "+e._s(s.label)+" ")],1)],1)}),1)],1)},jxe=[],Bxe=E(N0,Hxe,jxe,!1,null,null);const x9=Bxe.exports,Nxe=r=>"setAppBadge"in r;var Vxe=Object.defineProperty,zxe=Object.getOwnPropertyDescriptor,C9=(r,e,t,s)=>{for(var n=s>1?void 0:s?zxe(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&&Vxe(e,t,n),n};let Nf=class extends Y(lt){constructor(){super(...arguments);m(this,"menu",!1)}get notifications(){return this.$store.getters["notifications/getNotifications"]}get notificationsCounter(){return this.notifications.filter(t=>!t.noCount).length}onNotificationsCounter(e){Nxe(navigator)&&navigator.setAppBadge(e)}get clearableNotifications(){return this.$store.getters["notifications/getNotifications"].filter(t=>t.clear)}get color(){if(this.notifications.length<=0)return"transparent";let e="transparent";for(const t of this.notifications)if(t.type==="warning"&&e!=="error"&&(e="warning"),t.type==="error"&&e!=="error"){e="error";break}return e}get badgeColor(){return this.color==="transparent"?"info":this.color}icon(e){if(e.icon)return e.icon;switch(e.type){case"info":case"success":case"announcement":return"$info";case"warning":return"$warning"}return"$error"}classes(e){return`notification-${e.type}`}handleClear(e){this.$store.dispatch("notifications/clearNotification",e)}handleClearAll(){this.$store.dispatch("notifications/clearAll")}handleAnnouncementDismiss(e,t){e&&t&&(this.$store.dispatch("announcements/dismiss",{entry_id:e.id,wake_time:t}),this.menu=!1)}};C9([Ae("notificationsCounter")],Nf.prototype,"onNotificationsCounter",1);Nf=C9([A({components:{AppAnnouncementDismissMenu:x9}})],Nf);var Uxe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Dt,{attrs:{"offset-y":"",left:"","max-width":e.isMobileViewport?220:420,"close-on-content-click":!1,"close-delay":300},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:i}){return[t(_6,{attrs:{value:e.notificationsCounter,content:e.notificationsCounter,"offset-x":"17","offset-y":"17",bordered:"",overlap:"",color:e.badgeColor}},[t(Be,e._g(e._b({attrs:{fab:"",small:"",color:e.color,elevation:0}},"v-btn",n,!1),{...i,...s}),[t(S,{class:{wiggle:e.color==="error"}},[e._v(" $bell ")])],1)],1)]}}],null,!0)},[t("span",[e._v(e._s(e.$t("app.general.tooltip.notifications")))])])]}}]),model:{value:e.menu,callback:function(s){e.menu=s},expression:"menu"}},[t(He,[t(Mt,{staticClass:"py-0 overflow-y-auto app-notifications",staticStyle:{"max-height":"90vh"}},[e.notifications.length===0?t(Se,[t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.label.no_notifications")))])],1)],1):e.notifications.length>0?[t(Se,{attrs:{disabled:e.clearableNotifications.length<=0},on:{click:e.handleClearAll}},[t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.label.clear_all")))])],1),t(nr,{staticClass:"notification-clear-all"},[t(S,{attrs:{small:""}},[e._v(" $close ")])],1)],1),t(R)]:e._e(),e._l(e.notifications,function(s,n){return[t(Se,{key:`notification-${s.id}`,class:e.classes(s),attrs:{"three-line":""}},[t(Ee,[t(xe,{domProps:{innerHTML:e._s(s.title)}}),s.description?t(Wp,{staticClass:"notification-description",domProps:{innerHTML:e._s(s.description)}}):e._e(),t(Wp,{staticClass:"notification-timestamp"},[e._v(" "+e._s(e.$filters.formatRelativeTimeToNow(s.timestamp*1e3))+" ")]),s.to?t(Wp,[s.to.startsWith("http")?t(M,{staticClass:"mr-1",attrs:{"x-small":"",href:s.to,target:"_blank"},domProps:{innerHTML:e._s(s.btnText?s.btnText:e.$t("app.general.btn.more_information"))},on:{click:function(i){e.menu=!1}}}):t(M,{staticClass:"mr-1",attrs:{"x-small":"",to:s.to},domProps:{innerHTML:e._s(s.btnText?s.btnText:e.$t("app.general.btn.more_information"))},on:{click:function(i){e.menu=!1}}}),s.type==="announcement"?t(x9,{on:{dismiss:function(i){return e.handleAnnouncementDismiss(s,i)}}}):e._e()],1):e._e()],1),s.suffix?t(nr,{staticClass:"notification-suffix"},[s.suffixIcon?t(S,{attrs:{color:e.color},domProps:{innerHTML:e._s(s.suffixIcon)}}):e._e(),t("div",{staticClass:"notification-temp",domProps:{innerHTML:e._s(s.suffix)}})],1):e._e(),s.clear?t(nr,{staticClass:"notification-clear",on:{click:function(i){return e.handleClear(s)}}},[t(Be,{attrs:{icon:"",small:""}},[t(S,{attrs:{small:""}},[e._v(" $close ")])],1)],1):e._e()],1),n<e.notifications.length-1?t(R,{key:`divider-${s.id}`}):e._e()]})],2)],1)],1)},Wxe=[],Gxe=E(Nf,Uxe,Wxe,!1,null,"a6d059b4");const qxe=Gxe.exports;var Zxe=Object.defineProperty,Yxe=Object.getOwnPropertyDescriptor,L2=(r,e,t,s)=>{for(var n=s>1?void 0:s?Yxe(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&&Zxe(e,t,n),n};let Bu=class extends b{constructor(){super(...arguments);m(this,"disabled");m(this,"uploadFile")}get rootProperties(){return this.$store.getters["files/getRootProperties"]("gcodes")}get accepts(){return this.rootProperties.accepts.join(",")}fileChanged(e){var t;e.target instanceof HTMLInputElement&&(((t=e.target.files)==null?void 0:t.length)===1&&this.$emit("upload",e.target.files[0]),e.target.value="")}};L2([w({type:Boolean})],Bu.prototype,"disabled",2);L2([Te("uploadFile")],Bu.prototype,"uploadFile",2);Bu=L2([A({})],Bu);var Kxe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"mr-1 bg-transparent",attrs:{fab:"",small:"",elevation:0,color:"transparent",disabled:e.disabled},on:{click:function(i){return e.uploadFile.click()}}},"app-btn",n,!1),s),[t(S,[e._v(" $progressUpload ")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.label.upload_and_print")))])]),t("input",{ref:"uploadFile",staticStyle:{display:"none"},attrs:{type:"file",accept:e.accepts},on:{change:e.fileChanged}})],1)},Xxe=[],Jxe=E(Bu,Kxe,Xxe,!1,null,"6c092946");const P9=Jxe.exports;var Qxe=Object.defineProperty,eCe=Object.getOwnPropertyDescriptor,E2=(r,e,t,s)=>{for(var n=s>1?void 0:s?eCe(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&&Qxe(e,t,n),n};let Nu=class extends b{constructor(){super(...arguments);m(this,"disabled");m(this,"loading")}get isExpanded(){return this.$vuetify.breakpoint.mdAndUp}};E2([w({type:Boolean})],Nu.prototype,"disabled",2);E2([w({type:Boolean})],Nu.prototype,"loading",2);Nu=E2([A({})],Nu);var tCe=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.isExpanded?t(M,{attrs:{color:"",disabled:e.disabled,loading:e.loading},on:{click:function(s){return e.$emit("click")}}},[t(S,{staticClass:"mr-1",attrs:{color:"warning"}},[e._v(" $save ")]),t("span",[e._v(e._s(e.$t("app.general.btn.save_config_and_restart")))])],1):t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({attrs:{fab:"",small:"",text:"",color:"warning",elevation:0,disabled:e.disabled,loading:e.loading},on:{click:function(i){return e.$emit("click")}}},"app-btn",n,!1),s),[t(S,[e._v("$save")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.save_config_and_restart")))])])},rCe=[],sCe=E(Nu,tCe,rCe,!1,null,null);const A9=sCe.exports;var nCe=Object.defineProperty,iCe=Object.getOwnPropertyDescriptor,aCe=(r,e,t,s)=>{for(var n=s>1?void 0:s?iCe(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&&nCe(e,t,n),n};let V0=class extends b{get theme(){return this.$store.state.config.uiSettings.theme}get logoSrc(){return`./${this.theme.logo.src}`}};V0=aCe([A({})],V0);var oCe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"logo-wrapper"},[t("inline-svg",{attrs:{src:e.logoSrc}})],1)},lCe=[],cCe=E(V0,oCe,lCe,!1,null,"38833b7a");const L9=cCe.exports;var uCe=Object.defineProperty,dCe=Object.getOwnPropertyDescriptor,E9=(r,e,t,s)=>{for(var n=s>1?void 0:s?dCe(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&&uCe(e,t,n),n};let Vf=class extends b{constructor(){super(...arguments);m(this,"open");m(this,"currentPassword","");m(this,"password","");m(this,"error",!1);m(this,"loading",!1)}get currentUser(){const t=this.$store.getters["auth/getCurrentUser"];return t&&t.username?t.username:""}async handleSave(){try{this.loading=!0,await tt.accessUserPasswordPost(this.currentPassword,this.password),mr.$emit(this.$tc("app.general.msg.password_changed"),{timeout:2e3}),this.open=!1}catch{this.error=!0}finally{this.loading=!1}}};E9([Fe({type:Boolean})],Vf.prototype,"open",2);Vf=E9([A({})],Vf);var pCe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{title:e.$t("app.general.label.change_password"),"cancel-button-loading":e.loading,"save-button-loading":e.loading,"max-width":"500"},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,{staticClass:"pa-0"},[e.error?[t(Ai,{staticClass:"mx-4 mt-4",attrs:{type:"error",text:""}},[e._v(" "+e._s(e.$t("app.general.msg.wrong_password"))+" ")]),t(R)]:e._e(),t(H,{attrs:{title:e.$t("app.general.label.current_password")}},[t(ae,{staticClass:"mt-0",attrs:{autocomplete:"current-password",filled:"",dense:"",type:"password","hide-details":"auto",rules:[e.$rules.required]},model:{value:e.currentPassword,callback:function(s){e.currentPassword=s},expression:"currentPassword"}})],1),t(R),t(H,{attrs:{title:e.$t("app.general.label.new_password")}},[t(ae,{staticClass:"mt-0",attrs:{autocomplete:"current-password",filled:"",dense:"",type:"password","hide-details":"auto",rules:[e.$rules.required,e.$rules.lengthGreaterThanOrEqual(4),e.$rules.passwordNotEqualUsername(e.currentUser)]},model:{value:e.password,callback:function(s){e.password=s},expression:"password"}})],1)],2)],1)},hCe=[],fCe=E(Vf,pCe,hCe,!1,null,null);const mCe=fCe.exports;var gCe=Object.defineProperty,vCe=Object.getOwnPropertyDescriptor,O9=(r,e,t,s)=>{for(var n=s>1?void 0:s?vCe(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&&gCe(e,t,n),n};let zf=class extends b{constructor(){super(...arguments);m(this,"open")}get saveConfigPendingItems(){const t=this.$store.getters["printer/getSaveConfigPendingItems"],{changed:s,deleted:n}=Object.entries(t).reduce((a,[o,l])=>{if(l===null)a.deleted.push(`# [${o}]`);else{const c=Object.entries(l).map(([u,d])=>`${u}: ${d}`);a.changed.push(`[${o}]
|
||
${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})}async handlePowerToggle(){const{type:e,device:t}=this.topNavPowerToggle||{};if(!t)return;if(!this.$store.state.config.uiSettings.general.confirmOnPowerDeviceChange||await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_power_device_toggle"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"}))switch(e){case"moonraker":{const i=t.status==="on"?"off":"on";I.machineDevicePowerToggle(t.device,i);break}case"klipper":{const i=t.value!==0?0:t.scale;this.sendGcode(`SET_PIN PIN=${t.name} VALUE=${i}`,`${this.$waits.onSetOutputPin}${t.name}`);break}}}handleUploadAndPrint(e){this.uploadFile(e,"/","gcodes",!0)}saveConfigAndRestart(e=!1){if(!e&&this.$store.state.config.uiSettings.general.confirmOnSaveConfigAndRestart){this.pendingChangesDialogOpen=!0;return}this.sendGcode("SAVE_CONFIG",this.$waits.onSaveConfig)}};z0=xCe([A({components:{UserPasswordDialog:mCe,PendingChangesDialog:$Ce,AppSaveConfigAndRestartBtn:A9,AppUploadAndPrintBtn:P9}})],z0);var CCe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(eU,{attrs:{app:"","clipped-left":"","extension-height":"46",color:e.$vuetify.theme.currentTheme.appbar,height:e.$globals.HEADER_HEIGHT},scopedSlots:e._u([e.inLayout?{key:"extension",fn:function(){return[t(M,{staticClass:"mx-2",attrs:{small:"",color:"primary"},on:{click:function(s){return s.stopPropagation(),e.handleExitLayout.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("app.general.btn.exit_layout"))+" ")]),t(M,{staticClass:"mx-2",attrs:{small:"",color:"primary"},on:{click:function(s){return s.stopPropagation(),e.handleResetLayout.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("app.general.btn.reset_layout"))+" ")]),e.isDashboard?[t(R,{staticClass:"mx-2",attrs:{vertical:""}}),t(M,{staticClass:"mx-2",attrs:{small:"",color:"primary"},on:{click:function(s){return s.stopPropagation(),e.handleSetDefaultLayout.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("app.general.btn.set_default_layout"))+" ")]),t(M,{staticClass:"mx-2",attrs:{small:"",color:"primary"},on:{click:function(s){return s.stopPropagation(),e.handleResetDefaultLayout.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("app.general.btn.reset_default_layout"))+" ")])]:e._e()]},proxy:!0}:null],null,!0)},[e.isMobileViewport?e._e():t("router-link",{staticClass:"toolbar-logo",attrs:{to:"/"}},[t(L9)],1),t("div",{staticClass:"toolbar-title"},[e.isMobileViewport?t(M,{staticClass:"mx-1",attrs:{fab:"",small:"",elevation:0,color:"transparent"},on:{click:function(s){return e.$emit("navdrawer")}}},[t(S,[e._v("$menuAlt")])],1):e._e(),t(md,{staticClass:"printer-title text--secondary"},[t("router-link",{attrs:{to:"/"},domProps:{innerHTML:e._s(e.instanceName)}})],1)],1),t("div",{staticClass:"toolbar-supplemental"},[e.socketConnected&&e.klippyReady&&e.authenticated&&e.showSaveConfigAndRestartForPendingChanges?t("div",{staticClass:"mr-1"},[t(A9,{attrs:{loading:e.hasWait(e.$waits.onSaveConfig),disabled:e.printerPrinting||e.printerPaused},on:{click:e.saveConfigAndRestart}})],1):e._e(),e.socketConnected&&!e.isMobileViewport&&e.authenticated?t("div",[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"mx-1",attrs:{disabled:!e.klippyReady,color:""},on:{click:function(i){return e.emergencyStop()}}},"app-btn",n,!1),s),[t(S,{attrs:{color:"error"}},[e._v(" $estop ")])],1)]}}],null,!1,764196110)},[t("span",[e._v(" "+e._s(e.$t("app.general.tooltip.estop"))+" "),e.enableKeyboardShortcuts?[t("br"),t("kbd",[e._v("Ctrl")]),e._v(" + "),t("kbd",[e._v("Shift")]),e._v(" + "),t("kbd",[e._v("e")])]:e._e()],2)])],1):e._e(),e.authenticated&&e.socketConnected&&e.showUploadAndPrint?t("div",[t(P9,{attrs:{disabled:e.printerPrinting||e.printerPaused||!e.klippyReady},on:{upload:e.handleUploadAndPrint}})],1):e._e(),e.authenticated&&e.socketConnected&&e.topNavPowerToggle?t("div",[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"mr-1 bg-transparent",attrs:{fab:"",small:"",elevation:0,color:"transparent",disabled:e.topNavPowerDeviceDisabled},on:{click:function(i){return e.handlePowerToggle()}}},"app-btn",n,!1),s),[t(S,[e._v(" "+e._s(e.topNavPowerDeviceOn?"$powerOn":"$powerOff")+" ")])],1)]}}],null,!1,1321933211)},[t("span",[e._v(e._s(e.$t(`app.general.label.turn_device_${e.topNavPowerDeviceOn?"off":"on"}`,{device:e.topNavPowerToggle.name})))])])],1):e._e(),e.authenticated&&e.socketConnected?t("div",{staticClass:"mr-1"},[t(qxe)],1):e._e(),e.supportsAuth&&e.authenticated?t("div",{staticClass:"mr-1"},[t(Mxe,{on:{"change-password":function(s){e.userPasswordDialogOpen=!0}}})],1):e._e(),t(M,{staticClass:"mr-1",attrs:{fab:"",small:"",elevation:0,color:"transparent"},on:{click:function(s){return e.$emit("toolsdrawer")}}},[t(S,[e._v("$menu")])],1)],1),e.userPasswordDialogOpen?t("user-password-dialog",{model:{value:e.userPasswordDialogOpen,callback:function(s){e.userPasswordDialogOpen=s},expression:"userPasswordDialogOpen"}}):e._e(),e.pendingChangesDialogOpen?t("pending-changes-dialog",{on:{save:function(s){return e.saveConfigAndRestart(!0)}},model:{value:e.pendingChangesDialogOpen,callback:function(s){e.pendingChangesDialogOpen=s},expression:"pendingChangesDialogOpen"}}):e._e()],1)},PCe=[],ACe=E(z0,CCe,PCe,!1,null,"213ef2d8");const LCe=ACe.exports;var ECe=Object.defineProperty,OCe=Object.getOwnPropertyDescriptor,Md=(r,e,t,s)=>{for(var n=s>1?void 0:s?OCe(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&&ECe(e,t,n),n};let Ba=class extends Y(J,lt){constructor(){super(...arguments);m(this,"title");m(this,"to");m(this,"exact");m(this,"icon")}get accelerator(){if(this.to){const e=this.to==="/"?"home":this.to.substring(1);return hl(e,he.KEYBOARD_SHORTCUTS)?he.KEYBOARD_SHORTCUTS[e]:void 0}}get enableKeyboardShortcuts(){return this.$store.state.config.uiSettings.general.enableKeyboardShortcuts}handleKeyDown(e){if(!this.enableKeyboardShortcuts||!this.accelerator)return;A2(e)===this.accelerator&&!P2(e)&&this.$router.currentRoute.path!==this.to&&(e.preventDefault(),this.$router.push(this.to))}mounted(){window.addEventListener("keydown",this.handleKeyDown,!1)}beforeDestroy(){window.removeEventListener("keydown",this.handleKeyDown)}};Md([w({type:String})],Ba.prototype,"title",2);Md([w({type:String})],Ba.prototype,"to",2);Md([w({type:Boolean})],Ba.prototype,"exact",2);Md([w({type:String})],Ba.prototype,"icon",2);Ba=Md([A({})],Ba);var TCe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Oe,{attrs:{right:"",disabled:e.isMobileViewport},scopedSlots:e._u([{key:"activator",fn:function({attrs:s,on:n}){return[t(Se,e._g(e._b({attrs:{to:e.to,exact:e.exact,link:"",color:"secondary"}},"v-list-item",s,!1),n),[t(qe,[t(S,[e._v(e._s(e.icon))])],1),t(Ee,[t(xe,[e._t("default")],2)],1)],1)]}}],null,!0)},[t("span",[e._t("default"),e.accelerator&&e.enableKeyboardShortcuts?t("kbd",{staticClass:"ml-2"},[e._v(e._s(e.accelerator))]):e._e()],2)])},kCe=[],DCe=E(Ba,TCe,kCe,!1,null,"e6314cf1");const Rs=DCe.exports;var MCe=Object.defineProperty,RCe=Object.getOwnPropertyDescriptor,T9=(r,e,t,s)=>{for(var n=s>1?void 0:s?RCe(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&&MCe(e,t,n),n};let Uf=class extends Y(J,lt){constructor(){super(...arguments);m(this,"open")}get supportsHistory(){return this.$store.getters["server/componentSupport"]("history")}get supportsTimelapse(){return this.$store.getters["server/componentSupport"]("timelapse")}get enableDiagnostics(){return this.$store.state.config.uiSettings.general.enableDiagnostics}get hasSubNavigation(){var e;return((e=this.$route.meta)==null?void 0:e.hasSubNavigation)??!1}get showSubNavigation(){return this.hasSubNavigation&&this.socketConnected&&this.authenticated}};T9([Fe({type:Boolean})],Uf.prototype,"open",2);Uf=T9([A({})],Uf);var ICe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Iv,{attrs:{color:e.$vuetify.theme.currentTheme.drawer,"mini-variant":!e.showSubNavigation,floating:!e.showSubNavigation,clipped:"",app:""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(ie,{staticClass:"fill-height",attrs:{"no-gutters":""}},[t(Iv,{staticClass:"pb-16 pb-sm-0",attrs:{color:e.$vuetify.theme.currentTheme.drawer,"mini-variant":"",value:e.open}},[e.isMobileViewport?t("div",{staticClass:"app-icon",style:`height: ${e.$globals.HEADER_HEIGHT}px;`},[t("router-link",{attrs:{to:"/"}},[t(L9)],1)],1):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:e.authenticated&&e.socketConnected,expression:"authenticated && socketConnected"}],staticClass:"nav-items"},[t(Rs,{attrs:{icon:"$dash",exact:"",to:"/"}},[e._v(" "+e._s(e.$t("app.general.title.home"))+" ")]),t(Rs,{attrs:{icon:"$console",to:"/console"}},[e._v(" "+e._s(e.$t("app.general.title.console"))+" ")]),t(Rs,{attrs:{icon:"$cubeScan",to:"/preview"}},[e._v(" "+e._s(e.$t("app.general.title.gcode_preview"))+" ")]),t(Rs,{attrs:{icon:"$files",to:"/jobs"}},[e._v(" "+e._s(e.$t("app.general.title.jobs"))+" ")]),e.supportsHistory?t(Rs,{attrs:{icon:"$history",to:"/history"}},[e._v(" "+e._s(e.$t("app.general.title.history"))+" ")]):e._e(),e.supportsTimelapse?t(Rs,{attrs:{icon:"$video",to:"/timelapse"}},[e._v(" "+e._s(e.$t("app.general.title.timelapse"))+" ")]):e._e(),t(Rs,{attrs:{icon:"$tune",to:"/tune"}},[e._v(" "+e._s(e.$t("app.general.title.tune"))+" ")]),e.enableDiagnostics?t(Rs,{attrs:{icon:"$chart",to:"/diagnostics"}},[e._v(" "+e._s(e.$t("app.general.title.diagnostics"))+" ")]):e._e(),t(Rs,{attrs:{icon:"$codeJson",to:"/configure"}},[e._v(" "+e._s(e.$t("app.general.title.configure"))+" ")]),t(Rs,{attrs:{icon:"$desktopTower",to:"/system"}},[e._v(" "+e._s(e.$t("app.general.title.system"))+" ")]),t(Rs,{attrs:{icon:"$cog",to:"/settings"}},[e._v(" "+e._s(e.$t("app.general.title.settings"))+" ")])],1)]),e.showSubNavigation?t("router-view",{attrs:{name:"navigation"}}):e._e()],1)],1)},FCe=[],HCe=E(Uf,ICe,FCe,!1,null,"7288465b");const jCe=HCe.exports;var BCe=Object.defineProperty,NCe=Object.getOwnPropertyDescriptor,VCe=(r,e,t,s)=>{for(var n=s>1?void 0:s?NCe(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&&BCe(e,t,n),n};let U0=class extends Y(J){get layoutMode(){return this.$store.state.config.layoutMode}set layoutMode(r){this.$store.commit("config/setLayoutMode",r),this.close()}close(){this.$emit("click")}};U0=VCe([A({})],U0);var zCe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Mt,{attrs:{dense:""}},[t(Jt,[e._v(e._s(e.$t("app.general.label.layout")))]),t(Se,{on:{click:function(s){s.preventDefault(),e.layoutMode=!e.layoutMode}}},[t(qe,[t(S,[e._v("$apps")])],1),t(Ee,[t(xe,{staticClass:"text-wrap"},[e._v(" "+e._s(e.$t("app.general.btn.adjust_layout"))+" ")])],1)],1)],1)},UCe=[],WCe=E(U0,zCe,UCe,!1,null,null);const GCe=WCe.exports;var qCe=Object.defineProperty,ZCe=Object.getOwnPropertyDescriptor,YCe=(r,e,t,s)=>{for(var n=s>1?void 0:s?ZCe(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&&qCe(e,t,n),n};let W0=class extends Y(J,Xo){get serverInfo(){return this.$store.getters["server/getInfo"]}get hosted(){return this.$store.state.config.hostConfig.hosted}get powerDevices(){return this.$store.getters["power/getDevices"]}get devicePowerComponentEnabled(){return this.$store.getters["server/componentSupport"]("power")}get services(){return this.$store.getters["server/getServices"].filter(e=>e.name!=="klipper_mcu")}get systemInfo(){return this.$store.getters["server/getSystemInfo"]}get canControlHost(){var r,e;return((e=(r=this.systemInfo)==null?void 0:r.virtualization)==null?void 0:e.virt_type)!=="container"}async checkDialog(r,e,t){var n;(!(this.printerPrinting||["restart","stop"].includes(t))||await this.$confirm((n=this.$t(`app.general.simple_form.msg.confirm_service_${t}`,{name:e.name}))==null?void 0:n.toString(),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"}))&&(this.$emit("click"),await r(e))}async serviceRestart(r){await this.serviceRestartByName(r.name)}async serviceStart(r){await this.serviceStartByName(r.name)}async serviceStop(r){await this.serviceStopByName(r.name)}async handleHostReboot(){await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_reboot_host"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})&&(this.$emit("click"),this.hostReboot())}async handleHostShutdown(){await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_shutdown_host"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})&&(this.$emit("click"),this.hostShutdown())}async togglePowerDevice(r,e){if(!this.$store.state.config.uiSettings.general.confirmOnPowerDeviceChange||await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_power_device_toggle"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})){const n=r.status==="on"?"off":"on";I.machineDevicePowerToggle(r.device,n,e)}}getPowerIcon(r){switch(r.status){case"error":return"$error";case"init":return"$dots";case"on":return"$powerOn";case"off":return"$powerOff"}}getPowerButtonText(r){switch(r.status){case"error":return`${r.device} [error]`;default:return`${r.device}`}}};W0=YCe([A({})],W0);var KCe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.canControlHost?t(Qg,{attrs:{"prepend-icon":"$host","no-action":""},scopedSlots:e._u([{key:"activator",fn:function(){return[t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.label.host")))])],1)]},proxy:!0}],null,!1,1925167467)},[t(Se,{attrs:{disabled:e.printerPrinting},on:{click:e.handleHostReboot}},[t(xe,[e._v(e._s(e.$t("app.general.btn.reboot")))]),t(qe,[t(S,{attrs:{color:"error"}},[e._v(" $powerCycle ")])],1)],1),t(Se,{attrs:{disabled:e.printerPrinting},on:{click:e.handleHostShutdown}},[t(xe,[e._v(e._s(e.$t("app.general.btn.shutdown")))]),t(qe,[t(S,{attrs:{color:"error"}},[e._v(" $power ")])],1)],1)],1):e._e(),e.devicePowerComponentEnabled&&e.powerDevices.length?t(Qg,{attrs:{"prepend-icon":"$power","no-action":""},scopedSlots:e._u([{key:"activator",fn:function(){return[t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.label.power")))])],1)]},proxy:!0}],null,!1,2074444020)},e._l(e.powerDevices,function(s,n){return t(Se,{key:n,attrs:{disabled:s.status==="error"||s.status==="init"||e.printerPrinting&&s.locked_while_printing,loading:e.hasWait(`${e.$waits.onDevicePowerToggle}${s.device}`)},on:{click:function(i){return e.togglePowerDevice(s,`${e.$waits.onDevicePowerToggle}${s.device}`)}}},[t(xe,[e._v(e._s(e.getPowerButtonText(s)))]),t(qe,[t(S,[e._v(e._s(e.getPowerIcon(s)))])],1)],1)}),1):e._e(),t(Qg,{attrs:{"prepend-icon":"$restart","no-action":""},scopedSlots:e._u([{key:"activator",fn:function(){return[t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.label.services")))])],1)]},proxy:!0}])},[e._l(e.services,function(s){return[t(Se,{key:s.name},[t(Ee,[t(xe,[t(Oe,{attrs:{left:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("span",e._g(e._b({staticClass:"text-wrap",staticStyle:{"text-transform":"capitalize"}},"span",i,!1),n),[e._v(e._s(s.name))])]}}],null,!0)},[t("span",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(s.active_state)+" ("+e._s(s.sub_state)+")")])])],1)],1),t(nr,[s.active_state==="inactive"?t(Be,{attrs:{icon:""},on:{click:function(n){return e.checkDialog(e.serviceStart,s,"start")}}},[t(S,[e._v("$play")])],1):t(Be,{attrs:{icon:""},on:{click:function(n){return e.checkDialog(e.serviceRestart,s,"restart")}}},[t(S,{attrs:{color:"warning"}},[e._v(" $restart ")])],1),t(Be,{style:s.name===e.moonrakerServiceName?"visibility: hidden;":"",attrs:{icon:"",disabled:s.active_state==="inactive"},on:{click:function(n){return e.checkDialog(e.serviceStop,s,"stop")}}},[t(S,{attrs:{color:"error"}},[e._v(" $stop ")])],1)],1)],1)]})],2),t(R)],1)},XCe=[],JCe=E(W0,KCe,XCe,!1,null,"7c86c94d");const QCe=JCe.exports;var e5e=Object.defineProperty,t5e=Object.getOwnPropertyDescriptor,k9=(r,e,t,s)=>{for(var n=s>1?void 0:s?t5e(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&&e5e(e,t,n),n};let Wf=class extends Y(J){constructor(){super(...arguments);m(this,"open")}get supportsHistory(){return this.$store.getters["server/componentSupport"]("history")}get instanceName(){return this.$store.state.config.uiSettings.general.instanceName}get serverInfo(){return this.$store.getters["server/getInfo"]}get hasUpdates(){return this.$store.getters["version/hasUpdates"]}};k9([Fe({type:Boolean})],Wf.prototype,"open",2);Wf=k9([A({})],Wf);var r5e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Iv,{attrs:{app:"",right:"",clipped:"",temporary:"",width:"300",dense:""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[e.socketConnected&&e.authenticated?t(Mt,{attrs:{dense:""}},[t(Jt,[e._v(e._s(e.instanceName))]),t(R),t(QCe,{on:{click:function(s){e.open=!1}}})],1):e._e(),e.socketConnected&&e.authenticated?t(GCe,{on:{click:function(s){e.open=!1}}}):e._e()],1)},s5e=[],n5e=E(Wf,r5e,s5e,!1,null,null);const i5e=n5e.exports;var a5e=Object.defineProperty,o5e=Object.getOwnPropertyDescriptor,D9=(r,e,t,s)=>{for(var n=s>1?void 0:s?o5e(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&&a5e(e,t,n),n};let Gf=class extends Y(J){constructor(){super(...arguments);m(this,"open",!!this.currentDownload)}onCurrentDownloadChange(t){this.open=!!t}get currentDownload(){return this.$store.state.files.download}handleCancelDownload(){var t;(t=this.currentDownload)==null||t.abortController.abort()}};D9([Ae("currentDownload")],Gf.prototype,"onCurrentDownloadChange",1);Gf=D9([A({})],Gf);var l5e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Am,{attrs:{timeout:"-1","multi-line":"",elevation:"24",bottom:"",right:"",vertical:e.$vuetify.breakpoint.smAndDown},scopedSlots:e._u([{key:"action",fn:function({attrs:s}){return[t(M,e._b({on:{click:e.handleCancelDownload}},"app-btn",s,!1),[e._v(" "+e._s(e.$t("app.general.btn.cancel"))+" ")])]}}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[e.currentDownload?[t("div",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("app.file_system.title.download_file"))+": "+e._s(e.currentDownload.filepath)+" ")]),t(Zs,{staticClass:"mb-2",attrs:{value:e.currentDownload.percent,color:"primary"}}),t("table",[t("tr",[t("td",{staticClass:"pr-2"},[e._v(" "+e._s(e.$t("app.file_system.label.downloaded"))+": ")]),t("td",[e._v(e._s(e.currentDownload.percent)+"% ("+e._s(e.$filters.getReadableFileSizeString(e.currentDownload.loaded))+" / "+e._s(e.$filters.getReadableFileSizeString(e.currentDownload.size))+")")])]),t("tr",[t("td",{staticClass:"pr-2"},[e._v(" "+e._s(e.$t("app.file_system.label.transfer_rate"))+": ")]),t("td",[e._v(e._s(e.$filters.getReadableDataRateString(e.currentDownload.speed)))])])])]:e._e()],2)},c5e=[],u5e=E(Gf,l5e,c5e,!1,null,null);const d5e=u5e.exports;class We{constructor(e,t,s,n,i){this._legacyCanvasSize=We.DEFAULT_CANVAS_SIZE,this._preferredCamera="environment",this._maxScansPerSecond=25,this._lastScanTimestamp=-1,this._destroyed=this._flashOn=this._paused=this._active=!1,this.$video=e,this.$canvas=document.createElement("canvas"),s&&typeof s=="object"?this._onDecode=t:(console.warn(s||n||i?"You're using a deprecated version of the QrScanner constructor which will be removed in the future":"Note that the type of the scan result passed to onDecode will change in the future. To already switch to the new api today, you can pass returnDetailedScanResult: true."),this._legacyOnDecode=t),t=typeof s=="object"?s:{},this._onDecodeError=t.onDecodeError||(typeof s=="function"?s:this._onDecodeError),this._calculateScanRegion=t.calculateScanRegion||(typeof n=="function"?n:this._calculateScanRegion),this._preferredCamera=t.preferredCamera||i||this._preferredCamera,this._legacyCanvasSize=typeof s=="number"?s:typeof n=="number"?n:this._legacyCanvasSize,this._maxScansPerSecond=t.maxScansPerSecond||this._maxScansPerSecond,this._onPlay=this._onPlay.bind(this),this._onLoadedMetaData=this._onLoadedMetaData.bind(this),this._onVisibilityChange=this._onVisibilityChange.bind(this),this._updateOverlay=this._updateOverlay.bind(this),e.disablePictureInPicture=!0,e.playsInline=!0,e.muted=!0;let a=!1;if(e.hidden&&(e.hidden=!1,a=!0),document.body.contains(e)||(document.body.appendChild(e),a=!0),s=e.parentElement,t.highlightScanRegion||t.highlightCodeOutline){if(n=!!t.overlay,this.$overlay=t.overlay||document.createElement("div"),i=this.$overlay.style,i.position="absolute",i.display="none",i.pointerEvents="none",this.$overlay.classList.add("scan-region-highlight"),!n&&t.highlightScanRegion){this.$overlay.innerHTML='<svg class="scan-region-highlight-svg" viewBox="0 0 238 238" preserveAspectRatio="none" style="position:absolute;width:100%;height:100%;left:0;top:0;fill:none;stroke:#e9b213;stroke-width:4;stroke-linecap:round;stroke-linejoin:round"><path d="M31 2H10a8 8 0 0 0-8 8v21M207 2h21a8 8 0 0 1 8 8v21m0 176v21a8 8 0 0 1-8 8h-21m-176 0H10a8 8 0 0 1-8-8v-21"/></svg>';try{this.$overlay.firstElementChild.animate({transform:["scale(.98)","scale(1.01)"]},{duration:400,iterations:1/0,direction:"alternate",easing:"ease-in-out"})}catch{}s.insertBefore(this.$overlay,this.$video.nextSibling)}t.highlightCodeOutline&&(this.$overlay.insertAdjacentHTML("beforeend",'<svg class="code-outline-highlight" preserveAspectRatio="none" style="display:none;width:100%;height:100%;fill:none;stroke:#e9b213;stroke-width:5;stroke-dasharray:25;stroke-linecap:round;stroke-linejoin:round"><polygon/></svg>'),this.$codeOutlineHighlight=this.$overlay.lastElementChild)}this._scanRegion=this._calculateScanRegion(e),requestAnimationFrame(()=>{let o=window.getComputedStyle(e);o.display==="none"&&(e.style.setProperty("display","block","important"),a=!0),o.visibility!=="visible"&&(e.style.setProperty("visibility","visible","important"),a=!0),a&&(console.warn("QrScanner has overwritten the video hiding style to avoid Safari stopping the playback."),e.style.opacity="0",e.style.width="0",e.style.height="0",this.$overlay&&this.$overlay.parentElement&&this.$overlay.parentElement.removeChild(this.$overlay),delete this.$overlay,delete this.$codeOutlineHighlight),this.$overlay&&this._updateOverlay()}),e.addEventListener("play",this._onPlay),e.addEventListener("loadedmetadata",this._onLoadedMetaData),document.addEventListener("visibilitychange",this._onVisibilityChange),window.addEventListener("resize",this._updateOverlay),this._qrEnginePromise=We.createQrEngine()}static set WORKER_PATH(e){console.warn("Setting QrScanner.WORKER_PATH is not required and not supported anymore. Have a look at the README for new setup instructions.")}static async hasCamera(){try{return!!(await We.listCameras(!1)).length}catch{return!1}}static async listCameras(e=!1){if(!navigator.mediaDevices)return[];let t=async()=>(await navigator.mediaDevices.enumerateDevices()).filter(n=>n.kind==="videoinput"),s;try{e&&(await t()).every(n=>!n.label)&&(s=await navigator.mediaDevices.getUserMedia({audio:!1,video:!0}))}catch{}try{return(await t()).map((n,i)=>({id:n.deviceId,label:n.label||(i===0?"Default Camera":`Camera ${i+1}`)}))}finally{s&&(console.warn("Call listCameras after successfully starting a QR scanner to avoid creating a temporary video stream"),We._stopVideoStream(s))}}async hasFlash(){let e;try{if(this.$video.srcObject){if(!(this.$video.srcObject instanceof MediaStream))return!1;e=this.$video.srcObject}else e=(await this._getCameraStream()).stream;return"torch"in e.getVideoTracks()[0].getSettings()}catch{return!1}finally{e&&e!==this.$video.srcObject&&(console.warn("Call hasFlash after successfully starting the scanner to avoid creating a temporary video stream"),We._stopVideoStream(e))}}isFlashOn(){return this._flashOn}async toggleFlash(){this._flashOn?await this.turnFlashOff():await this.turnFlashOn()}async turnFlashOn(){if(!this._flashOn&&!this._destroyed&&(this._flashOn=!0,this._active&&!this._paused))try{if(!await this.hasFlash())throw"No flash available";await this.$video.srcObject.getVideoTracks()[0].applyConstraints({advanced:[{torch:!0}]})}catch(e){throw this._flashOn=!1,e}}async turnFlashOff(){this._flashOn&&(this._flashOn=!1,await this._restartVideoStream())}destroy(){this.$video.removeEventListener("loadedmetadata",this._onLoadedMetaData),this.$video.removeEventListener("play",this._onPlay),document.removeEventListener("visibilitychange",this._onVisibilityChange),window.removeEventListener("resize",this._updateOverlay),this._destroyed=!0,this._flashOn=!1,this.stop(),We._postWorkerMessage(this._qrEnginePromise,"close")}async start(){if(this._destroyed)throw Error("The QR scanner can not be started as it had been destroyed.");if((!this._active||this._paused)&&(window.location.protocol!=="https:"&&console.warn("The camera stream is only accessible if the page is transferred via https."),this._active=!0,!document.hidden))if(this._paused=!1,this.$video.srcObject)await this.$video.play();else try{let{stream:e,facingMode:t}=await this._getCameraStream();!this._active||this._paused?We._stopVideoStream(e):(this._setVideoMirror(t),this.$video.srcObject=e,await this.$video.play(),this._flashOn&&(this._flashOn=!1,this.turnFlashOn().catch(()=>{})))}catch(e){if(!this._paused)throw this._active=!1,e}}stop(){this.pause(),this._active=!1}async pause(e=!1){if(this._paused=!0,!this._active)return!0;this.$video.pause(),this.$overlay&&(this.$overlay.style.display="none");let t=()=>{this.$video.srcObject instanceof MediaStream&&(We._stopVideoStream(this.$video.srcObject),this.$video.srcObject=null)};return e?(t(),!0):(await new Promise(s=>setTimeout(s,300)),this._paused?(t(),!0):!1)}async setCamera(e){e!==this._preferredCamera&&(this._preferredCamera=e,await this._restartVideoStream())}static async scanImage(e,t,s,n,i=!1,a=!1){let o,l=!1;t&&("scanRegion"in t||"qrEngine"in t||"canvas"in t||"disallowCanvasResizing"in t||"alsoTryWithoutScanRegion"in t||"returnDetailedScanResult"in t)?(o=t.scanRegion,s=t.qrEngine,n=t.canvas,i=t.disallowCanvasResizing||!1,a=t.alsoTryWithoutScanRegion||!1,l=!0):console.warn(t||s||n||i||a?"You're using a deprecated api for scanImage which will be removed in the future.":"Note that the return type of scanImage will change in the future. To already switch to the new api today, you can pass returnDetailedScanResult: true."),t=!!s;try{let c,u;[s,c]=await Promise.all([s||We.createQrEngine(),We._loadImage(e)]),[n,u]=We._drawToCanvas(c,o,n,i);let d;if(s instanceof Worker){let p=s;t||We._postWorkerMessageSync(p,"inversionMode","both"),d=await new Promise((h,f)=>{let g,v,y,C=-1;v=$=>{$.data.id===C&&(p.removeEventListener("message",v),p.removeEventListener("error",y),clearTimeout(g),$.data.data!==null?h({data:$.data.data,cornerPoints:We._convertPoints($.data.cornerPoints,o)}):f(We.NO_QR_CODE_FOUND))},y=$=>{p.removeEventListener("message",v),p.removeEventListener("error",y),clearTimeout(g),f("Scanner error: "+($?$.message||$:"Unknown Error"))},p.addEventListener("message",v),p.addEventListener("error",y),g=setTimeout(()=>y("timeout"),1e4);let x=u.getImageData(0,0,n.width,n.height);C=We._postWorkerMessageSync(p,"decode",x,[x.data.buffer])})}else d=await Promise.race([new Promise((p,h)=>window.setTimeout(()=>h("Scanner error: timeout"),1e4)),(async()=>{try{var[p]=await s.detect(n);if(!p)throw We.NO_QR_CODE_FOUND;return{data:p.rawValue,cornerPoints:We._convertPoints(p.cornerPoints,o)}}catch(h){if(p=h.message||h,/not implemented|service unavailable/.test(p))return We._disableBarcodeDetector=!0,We.scanImage(e,{scanRegion:o,canvas:n,disallowCanvasResizing:i,alsoTryWithoutScanRegion:a});throw`Scanner error: ${p}`}})()]);return l?d:d.data}catch(c){if(!o||!a)throw c;let u=await We.scanImage(e,{qrEngine:s,canvas:n,disallowCanvasResizing:i});return l?u:u.data}finally{t||We._postWorkerMessage(s,"close")}}setGrayscaleWeights(e,t,s,n=!0){We._postWorkerMessage(this._qrEnginePromise,"grayscaleWeights",{red:e,green:t,blue:s,useIntegerApproximation:n})}setInversionMode(e){We._postWorkerMessage(this._qrEnginePromise,"inversionMode",e)}static async createQrEngine(e){if(e&&console.warn("Specifying a worker path is not required and not supported anymore."),e=()=>Ye(()=>import("./qr-scanner-worker.min-D85Z9gVD.js"),[],import.meta.url).then(s=>s.createWorker()),!(!We._disableBarcodeDetector&&"BarcodeDetector"in window&&BarcodeDetector.getSupportedFormats&&(await BarcodeDetector.getSupportedFormats()).includes("qr_code")))return e();let t=navigator.userAgentData;return t&&t.brands.some(({brand:s})=>/Chromium/i.test(s))&&/mac ?OS/i.test(t.platform)&&await t.getHighEntropyValues(["architecture","platformVersion"]).then(({architecture:s,platformVersion:n})=>/arm/i.test(s||"arm")&&13<=parseInt(n||"13")).catch(()=>!0)?e():new BarcodeDetector({formats:["qr_code"]})}_onPlay(){this._scanRegion=this._calculateScanRegion(this.$video),this._updateOverlay(),this.$overlay&&(this.$overlay.style.display=""),this._scanFrame()}_onLoadedMetaData(){this._scanRegion=this._calculateScanRegion(this.$video),this._updateOverlay()}_onVisibilityChange(){document.hidden?this.pause():this._active&&this.start()}_calculateScanRegion(e){let t=Math.round(.6666666666666666*Math.min(e.videoWidth,e.videoHeight));return{x:Math.round((e.videoWidth-t)/2),y:Math.round((e.videoHeight-t)/2),width:t,height:t,downScaledWidth:this._legacyCanvasSize,downScaledHeight:this._legacyCanvasSize}}_updateOverlay(){requestAnimationFrame(()=>{if(this.$overlay){var e=this.$video,t=e.videoWidth,s=e.videoHeight,n=e.offsetWidth,i=e.offsetHeight,a=e.offsetLeft,o=e.offsetTop,l=window.getComputedStyle(e),c=l.objectFit,u=t/s,d=n/i;switch(c){case"none":var p=t,h=s;break;case"fill":p=n,h=i;break;default:(c==="cover"?u>d:u<d)?(h=i,p=h*u):(p=n,h=p/u),c==="scale-down"&&(p=Math.min(p,t),h=Math.min(h,s))}var[f,g]=l.objectPosition.split(" ").map((y,C)=>{const x=parseFloat(y);return y.endsWith("%")?(C?i-h:n-p)*x/100:x});l=this._scanRegion.width||t,d=this._scanRegion.height||s,c=this._scanRegion.x||0;var v=this._scanRegion.y||0;u=this.$overlay.style,u.width=`${l/t*p}px`,u.height=`${d/s*h}px`,u.top=`${o+g+v/s*h}px`,s=/scaleX\(-1\)/.test(e.style.transform),u.left=`${a+(s?n-f-p:f)+(s?t-c-l:c)/t*p}px`,u.transform=e.style.transform}})}static _convertPoints(e,t){if(!t)return e;let s=t.x||0,n=t.y||0,i=t.width&&t.downScaledWidth?t.width/t.downScaledWidth:1;t=t.height&&t.downScaledHeight?t.height/t.downScaledHeight:1;for(let a of e)a.x=a.x*i+s,a.y=a.y*t+n;return e}_scanFrame(){!this._active||this.$video.paused||this.$video.ended||("requestVideoFrameCallback"in this.$video?this.$video.requestVideoFrameCallback.bind(this.$video):requestAnimationFrame)(async()=>{if(!(1>=this.$video.readyState)){var e=Date.now()-this._lastScanTimestamp,t=1e3/this._maxScansPerSecond;e<t&&await new Promise(n=>setTimeout(n,t-e)),this._lastScanTimestamp=Date.now();try{var s=await We.scanImage(this.$video,{scanRegion:this._scanRegion,qrEngine:this._qrEnginePromise,canvas:this.$canvas})}catch(n){if(!this._active)return;this._onDecodeError(n)}!We._disableBarcodeDetector||await this._qrEnginePromise instanceof Worker||(this._qrEnginePromise=We.createQrEngine()),s?(this._onDecode?this._onDecode(s):this._legacyOnDecode&&this._legacyOnDecode(s.data),this.$codeOutlineHighlight&&(clearTimeout(this._codeOutlineHighlightRemovalTimeout),this._codeOutlineHighlightRemovalTimeout=void 0,this.$codeOutlineHighlight.setAttribute("viewBox",`${this._scanRegion.x||0} ${this._scanRegion.y||0} ${this._scanRegion.width||this.$video.videoWidth} ${this._scanRegion.height||this.$video.videoHeight}`),this.$codeOutlineHighlight.firstElementChild.setAttribute("points",s.cornerPoints.map(({x:n,y:i})=>`${n},${i}`).join(" ")),this.$codeOutlineHighlight.style.display="")):this.$codeOutlineHighlight&&!this._codeOutlineHighlightRemovalTimeout&&(this._codeOutlineHighlightRemovalTimeout=setTimeout(()=>this.$codeOutlineHighlight.style.display="none",100))}this._scanFrame()})}_onDecodeError(e){e!==We.NO_QR_CODE_FOUND&&console.log(e)}async _getCameraStream(){if(!navigator.mediaDevices)throw"Camera not found.";let e=/^(environment|user)$/.test(this._preferredCamera)?"facingMode":"deviceId",t=[{width:{min:1024}},{width:{min:768}},{}],s=t.map(n=>Object.assign({},n,{[e]:{exact:this._preferredCamera}}));for(let n of[...s,...t])try{let i=await navigator.mediaDevices.getUserMedia({video:n,audio:!1}),a=this._getFacingMode(i)||(n.facingMode?this._preferredCamera:this._preferredCamera==="environment"?"user":"environment");return{stream:i,facingMode:a}}catch{}throw"Camera not found."}async _restartVideoStream(){let e=this._paused;await this.pause(!0)&&!e&&this._active&&await this.start()}static _stopVideoStream(e){for(let t of e.getTracks())t.stop(),e.removeTrack(t)}_setVideoMirror(e){this.$video.style.transform="scaleX("+(e==="user"?-1:1)+")"}_getFacingMode(e){return(e=e.getVideoTracks()[0])?/rear|back|environment/i.test(e.label)?"environment":/front|user|face/i.test(e.label)?"user":null:null}static _drawToCanvas(e,t,s,n=!1){s=s||document.createElement("canvas");let i=t&&t.x?t.x:0,a=t&&t.y?t.y:0,o=t&&t.width?t.width:e.videoWidth||e.width,l=t&&t.height?t.height:e.videoHeight||e.height;return n||(n=t&&t.downScaledWidth?t.downScaledWidth:o,t=t&&t.downScaledHeight?t.downScaledHeight:l,s.width!==n&&(s.width=n),s.height!==t&&(s.height=t)),t=s.getContext("2d",{alpha:!1}),t.imageSmoothingEnabled=!1,t.drawImage(e,i,a,o,l,0,0,s.width,s.height),[s,t]}static async _loadImage(e){if(e instanceof Image)return await We._awaitImageLoad(e),e;if(e instanceof HTMLVideoElement||e instanceof HTMLCanvasElement||e instanceof SVGImageElement||"OffscreenCanvas"in window&&e instanceof OffscreenCanvas||"ImageBitmap"in window&&e instanceof ImageBitmap)return e;if(e instanceof File||e instanceof Blob||e instanceof URL||typeof e=="string"){let t=new Image;t.src=e instanceof File||e instanceof Blob?URL.createObjectURL(e):e.toString();try{return await We._awaitImageLoad(t),t}finally{(e instanceof File||e instanceof Blob)&&URL.revokeObjectURL(t.src)}}else throw"Unsupported image type."}static async _awaitImageLoad(e){e.complete&&e.naturalWidth!==0||await new Promise((t,s)=>{let n=i=>{e.removeEventListener("load",n),e.removeEventListener("error",n),i instanceof ErrorEvent?s("Image load error"):t()};e.addEventListener("load",n),e.addEventListener("error",n)})}static async _postWorkerMessage(e,t,s,n){return We._postWorkerMessageSync(await e,t,s,n)}static _postWorkerMessageSync(e,t,s,n){if(!(e instanceof Worker))return-1;let i=We._workerMessageId++;return e.postMessage({id:i,type:t,data:s},n),i}}We.DEFAULT_CANVAS_SIZE=400;We.NO_QR_CODE_FOUND="No QR code found";We._disableBarcodeDetector=!1;We._workerMessageId=0;var p5e=Object.defineProperty,h5e=Object.getOwnPropertyDescriptor,O2=(r,e,t,s)=>{for(var n=s>1?void 0:s?h5e(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&&p5e(e,t,n),n};let Vu=class extends Y(J,lt){constructor(){super(...arguments);m(this,"dataPatterns",[/web\+spoolman:s-(\d+)/,/\/spool\/show\/(\d+)\/?/]);m(this,"statusMessage","info.howto");m(this,"lastScanTimestamp",Date.now());m(this,"processing",!1);m(this,"context");m(this,"source");m(this,"canvas")}get camera(){return this.source==="device"?{name:this.$t("app.spoolman.label.device_camera").toString(),service:"device"}:this.$store.getters["webcams/getWebcamById"](this.source)}get open(){return this.source!==null}set open(t){t||(this.source=null)}async mounted(){this.processing=!0,this.context=this.canvas.getContext("2d",{willReadFrequently:!0}),this.processing=!1}async handlePrinterCameraFrame(t){if(!this.processing&&!(Date.now()-this.lastScanTimestamp<100)){if(this.processing=!0,this.lastScanTimestamp=Date.now(),t instanceof HTMLVideoElement?(this.canvas.width=t.videoWidth,this.canvas.height=t.videoHeight):(this.canvas.width=t.naturalWidth,this.canvas.height=t.naturalHeight),!this.canvas.width||!this.canvas.height){this.processing=!1;return}try{this.context.drawImage(t,0,0,this.canvas.width,this.canvas.height);const s=await We.scanImage(this.canvas,{returnDetailedScanResult:!0});s.data&&this.handleCodeFound(s.data)}catch(s){s instanceof DOMException&&(s.name==="SecurityError"?this.statusMessage="error.cors":this.statusMessage="error.no_image_data")}this.processing=!1}}get availableSpools(){return this.$store.getters["spoolman/getAvailableSpools"]}handleCodeFound(t){var n;const s=this.dataPatterns.find(i=>i.test(t));if(s){const i=(n=t.match(s))==null?void 0:n[1];if(i&&!isNaN(Number(i))){const a=parseInt(i);this.availableSpools.some(o=>o.id===a)?this.$emit("detected",a):this.statusMessage="error.spool_not_existant"}else this.statusMessage="warning.invalid_spool_id"}else this.statusMessage="warning.code_not_recognized"}};O2([Fe({type:String,default:null})],Vu.prototype,"source",2);O2([Te("canvas")],Vu.prototype,"canvas",2);Vu=O2([A({components:{CameraItem:Nm}})],Vu);var f5e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(st,{attrs:{"no-actions":"",width:e.isMobileViewport?"100%":"60vw",title:e.$t("app.spoolman.title.scan_spool")},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Le,[t(Ai,{attrs:{type:e.statusMessage.split(".")[0]}},[e._v(" "+e._s(e.$t(`app.spoolman.msg.${e.statusMessage}`))+" ")]),t("canvas",{ref:"canvas",attrs:{hidden:!0}}),t("CameraItem",{attrs:{camera:e.camera,embedded:!0,crossorigin:"anonymous"},on:{frame:e.handlePrinterCameraFrame}})],1)],1)},m5e=[],g5e=E(Vu,f5e,m5e,!1,null,null);const v5e=g5e.exports;var _5e=Object.defineProperty,y5e=Object.getOwnPropertyDescriptor,M9=(r,e,t,s)=>{for(var n=s>1?void 0:s?y5e(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&&_5e(e,t,n),n};let qf=class extends Y(J,lt){constructor(){super(...arguments);m(this,"search","");m(this,"selectedSpoolId",null);m(this,"cameraScanSource",null);m(this,"hasDeviceCamera",!1)}async mounted(){this.hasDeviceCamera=await We.hasCamera()}onOpen(){if(this.open){if(this.selectedSpoolId=this.$store.state.spoolman.activeSpool??null,this.targetMacro){const t=this.$store.getters["macros/getMacroByName"](this.targetMacro.toLowerCase());this.selectedSpoolId=(t==null?void 0:t.variables.spool_id)??null}if(this.currentFileName)if(!this.currentFile&&this.currentFileName.includes("/")){const{rootPath:t}=Yt(this.currentFileName,"gcodes");I.serverFilesGetDirectory("gcodes",t)}else I.serverFilesMetadata(this.currentFileName);if(this.hasDeviceCamera&&this.preferDeviceCamera)this.$nextTick(()=>this.cameraScanSource="device");else{const t=this.autoOpenQRDetectionCamera;this.$store.getters["webcams/getWebcamById"](t)&&this.$nextTick(()=>this.cameraScanSource=t)}}}get open(){return this.$store.state.spoolman.dialog.show}set open(t){this.$store.commit("spoolman/setDialogState",{...this.$store.state.spoolman.dialog,show:t})}get availableSpools(){const t=[];for(const s of this.$store.state.spoolman.availableSpools){if(s.archived)continue;let n=s.filament.name;s.filament.vendor&&(n=`${s.filament.vendor.name} - ${n}`),t.push({...s,filament_name:n,material:s.filament.material})}return t}get headers(){const t=["filament_name","id","material","location","comment","last_used"].map(s=>({text:this.$tc(`app.spoolman.label.${s}`),value:s,configurable:s!=="filament_name"}));return this.$store.getters["config/getMergedTableHeaders"](t,"spoolman")}get visibleHeaders(){return this.headers.filter(t=>t.visible||t.visible===void 0)}get selectedSpool(){return this.selectedSpoolId}set selectedSpool(t){this.selectedSpoolId=t}get filename(){let t=this.$store.state.spoolman.dialog.filename;if(t)t.startsWith("/")&&(t=t.slice(1));else return;return t}get currentFileName(){return this.filename||this.$store.state.printer.printer.print_stats.filename}get currentFile(){const{filename:t,rootPath:s}=Yt(this.currentFileName,"gcodes");return this.$store.getters["files/getFile"](s,t)}get targetMacro(){return this.$store.state.spoolman.dialog.targetMacro}get enabledWebcams(){return this.$store.getters["webcams/getEnabledWebcams"]}get availableCameras(){const t=this.enabledWebcams.filter(s=>s.service!=="iframe");return this.hasDeviceCamera&&t.unshift({name:this.$t("app.spoolman.label.device_camera").toString(),uid:"device"}),t}get remainingFilamentUnit(){return this.$store.state.config.uiSettings.spoolman.remainingFilamentUnit}handleQRCodeDetected(t){this.cameraScanSource=null,this.selectedSpoolId=t,this.availableSpools.filter(s=>this.filterResults("",this.search,s)).some(s=>s.id===t)||(this.search=""),this.autoSelectSpoolOnMatch&&this.handleSelectSpool()}async handleSelectSpool(){var s,n,i,a;if(!this.selectedSpool&&!await this.$confirm(this.$tc("app.spoolman.msg.no_spool"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$warning"}))return;if(this.targetMacro){const o=[`SET_GCODE_VARIABLE MACRO=${this.targetMacro} VARIABLE=spool_id VALUE=${this.selectedSpool??"None"}`];this.$store.getters["printer/getPrinterConfig"]("save_variables")&&o.push(`SAVE_VARIABLE VARIABLE=${this.targetMacro.toUpperCase()}__SPOOL_ID VALUE=${this.selectedSpool??"None"}`),await I.printerGcodeScript(o.join(`
|
||
`));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._s(s.name)+" ")])],1)],1)}),1)],1):e.availableCameras.length?t(M,{staticClass:"ms-1 my-1",attrs:{small:""},on:{click:function(s){e.cameraScanSource=e.availableCameras[0].uid}}},[t(S,{staticClass:"mr-1",attrs:{small:""}},[e._v(" $camera ")]),e._v(" "+e._s(e.$t("app.spoolman.btn.scan_code"))+" ")],1):e._e()]},proxy:!0},{key:"actions",fn:function(){return[e.isMobileViewport?t($t):e._e(),e.spoolmanURL?t(M,{attrs:{href:e.spoolmanURL,target:"_blank",color:"primary",text:"",type:"button"}},[e._v(" "+e._s(e.$t("app.spoolman.btn.manage_spools"))+" ")]):e._e(),e.isMobileViewport?e._e():t($t),t(M,{attrs:{text:"",color:"warning"},on:{click:function(s){e.open=!1}}},[e._v(" "+e._s(e.$t("app.general.btn.cancel"))+" ")]),t(M,{attrs:{color:"primary"},on:{click:e.handleSelectSpool}},[e._v(" "+e._s(e.filename?e.$t("app.general.btn.print"):e.$tc("app.spoolman.btn.select",e.targetMacro?2:1,{macro:e.targetMacro}))+" ")])]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Gt,{attrs:{dense:""}},[t($t),t(Rm,{attrs:{"key-name":"spoolman",headers:e.headers}}),t(ae,{staticClass:"ml-1",staticStyle:{"max-width":"360px"},attrs:{outlined:"",dense:"","single-line":"","hide-details":"","append-icon":"$magnify"},model:{value:e.search,callback:function(s){e.search=s},expression:"search"}})],1),t(Le,{staticClass:"fill-height pt-0"},[t(hd,{staticClass:"spool-table",attrs:{items:e.availableSpools,headers:e.visibleHeaders,search:e.search,"custom-filter":e.filterResults,"no-data-text":e.$t("app.file_system.msg.not_found"),"no-results-text":e.$t("app.file_system.msg.not_found"),"sort-by":e.sortOrder.key??void 0,"sort-desc":e.sortOrder.desc??void 0,"mobile-breakpoint":"0","hide-default-footer":"","disable-pagination":""},on:{"update:sort-by":e.handleSortOrderKeyChange,"update:sort-desc":e.handleSortOrderDescChange},scopedSlots:e._u([{key:"item",fn:function({item:s}){return[t("tr",{staticClass:"row-select px-1",class:{"v-data-table__selected":s.id===e.selectedSpool},on:{click:function(n){n.preventDefault(),e.selectedSpool=e.selectedSpool===s.id?null:s.id}}},[t("td",[t("div",{staticClass:"d-flex"},[t(S,{staticClass:"mr-4 flex-column spool-icon",attrs:{color:`#${s.filament.color_hex??(e.$vuetify.theme.dark?"fff":"000")}`,size:"42px"}},[e._v(" "+e._s(s.id===e.selectedSpool?"$markedCircle":"$filament")+" ")]),t("div",{staticClass:"flex-column"},[t("div",{staticClass:"flex-row"},[e._v(" "+e._s(s.filament_name)+" ")]),t("div",{staticClass:"flex-row"},[e.remainingFilamentUnit==="weight"?t("small",[t("b",[e._v(e._s(e.$filters.getReadableWeightString(s.remaining_weight)))]),e._v(" / "+e._s(e.$filters.getReadableWeightString(s.filament.weight))+" ")]):e.remainingFilamentUnit==="length"?t("small",[t("b",[e._v(e._s(e.$filters.getReadableLengthString(s.remaining_length)))]),e._v(" / "+e._s(e.$filters.getReadableLengthString(e.$filters.convertFilamentWeightToLength(s.filament.weight??0,s.filament.density,s.filament.diameter)))+" ")]):e._e()])])],1)]),e._l(e.visibleHeaders.filter(n=>n.value!=="filament_name"),function(n){return t("td",{key:n.value},[n.value==="last_used"?[e._v(" "+e._s(s[n.value]?e.$filters.formatRelativeTimeToNow(s[n.value]):e.$tc("app.setting.label.never"))+" ")]:[e._v(" "+e._s(s[n.value])+" ")]],2)})],2)]}}])})],1),e.cameraScanSource?t("QRReader",{on:{detected:e.handleQRCodeDetected},model:{value:e.cameraScanSource,callback:function(s){e.cameraScanSource=s},expression:"cameraScanSource"}}):e._e()],1)},$5e=[],w5e=E(qf,b5e,$5e,!1,null,"63300ab5");const S5e=w5e.exports;var x5e=Object.defineProperty,C5e=Object.getOwnPropertyDescriptor,T2=(r,e,t,s)=>{for(var n=s>1?void 0:s?C5e(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&&x5e(e,t,n),n};let zu=class extends Y(J,zr,lt){constructor(){super(...arguments);m(this,"toolsdrawer",null);m(this,"navdrawer",null);m(this,"dragState",!1);m(this,"customBackgroundImageStyle",{});m(this,"flashMessageState",{open:!1,text:void 0,type:void 0})}get theme(){return this.$store.state.config.uiSettings.theme}get showBackgroundLogo(){return this.theme.backgroundLogo}get logoSrc(){return`./${this.theme.logo.src}`}get primaryColor(){var t;return((t=this.$vuetify.theme.currentTheme.primary)==null?void 0:t.toString())??""}get primaryOffsetColor(){var t;return((t=this.$vuetify.theme.currentTheme["primary-offset"])==null?void 0:t.toString())??""}get updating(){return this.$store.state.version.busy}get inLayout(){return this.$store.state.config.layoutMode}get columnCount(){return this.$store.state.config.containerColumnCount}get fileDropRoot(){var t;return(t=this.$route.meta)==null?void 0:t.fileDropRoot}get loading(){return this.hasWait(this.$waits.onLoadLanguage)}get progress(){const t=this.$store.getters["printer/getPrintProgress"];return Math.floor(t*100)}get pageTitle(){const t=this.$store.state.config.uiSettings.general.instanceName||"",s=this.$route.name;return this.printerPrinting?`[${this.progress}%] | ${t} | ${s}`:`${t} | ${s}`}get pageIcon(){const t=this.printInProgressIconDataUrl||this.defaultIconDataUrl;return[{rel:"icon",type:"image/svg+xml",sizes:"32x32",href:t},{rel:"icon",type:"image/svg+xml",sizes:"16x16",href:t}]}get pageMeta(){return[{name:"theme-color",content:this.primaryColor}]}get printInProgressIconDataUrl(){if(this.printerPrinting){const s=this.primaryColor,n="rgba(255, 255, 255, 0.10)",i=document.createElement("canvas"),a=i.getContext("2d");i.width=64,i.height=64;const o=this.progress,l=i.width/2,c=i.height/2,u=8,d=64/2-u/2,p=1.5*Math.PI,h=p+o*2*Math.PI/100;return a.moveTo(l,c),a.beginPath(),a.arc(l,c,d,0,2*Math.PI,!1),a.strokeStyle=n,a.lineWidth=u,a.stroke(),a.closePath(),a.moveTo(l,c),a.beginPath(),a.arc(l,c,d,p,h,!1),a.strokeStyle=s,a.lineWidth=u,a.stroke(),i.toDataURL("image/png")}}get defaultIconDataUrl(){const t=`<svg width="56" height="56" viewBox="0 0 56 56" xmlns="http://www.w3.org/2000/svg"><g><path fill="${this.primaryOffsetColor}" d="m 14.853368,33.756571 11.61619,9.661168 c 0.130777,0.111917 0.271485,0.207659 0.419213,0.286738 v 0 l 0.0018,9.59e-4 0.04421,0.02288 0.01682,0.0084 0.03004,0.01466 0.02772,0.01301 0.02085,0.0096 0.03643,0.01614 0.0112,0.0048 c 0.261834,0.111457 0.538454,0.172946 0.816165,0.185089 v 0 l 0.0094,4.66e-4 0.04421,0.0014 0.01743,3.11e-4 0.03579,1.57e-4 0.03113,-1.57e-4 0.01976,-3.11e-4 0.04638,-0.0016 0.0066,-1.57e-4 c 0.278332,-0.01219 0.555886,-0.07379 0.818498,-0.185864 v 0 l 0.0076,-0.0031 0.04141,-0.01836 0.01581,-0.0072 0.03019,-0.01433 0.03192,-0.01548 0.01367,-0.0071 0.04375,-0.02273 0.0048,-0.0023 c 0.147428,-0.07893 0.287828,-0.174502 0.418278,-0.28627 v 0 L 40.390591,34.385713 46.037415,38.112852 27.999766,56 9.242502,37.397936 Z m 0.408314,-14.451202 11.425655,7.349201 c 0.406292,0.266969 0.859439,0.40053 1.312586,0.400687 0.452679,0 0.90536,-0.133247 1.311963,-0.400064 v 0 l 11.426278,-7.349045 8.736349,4.462197 -21.47459,17.859067 -21.47459,-17.86031 z M 27.999923,0 52.420045,8.9925786 27.999923,24.698769 3.579955,8.9913323 Z" /><path fill="${this.primaryColor}" d="m 28,0 -0.134766,0.05078125 h 0.150391 V 24.689453 L 52.419922,8.9921875 Z m 12.738281,19.306641 -11.425781,7.347656 -0.05859,0.03906 c -0.386465,0.238992 -0.812514,0.358329 -1.238281,0.361329 v 14.558595 l 21.45898,-17.845703 z m -0.347656,15.080078 -10.859375,9.03125 c -0.13045,0.111767 -0.270596,0.206206 -0.417969,0.285156 l -0.0059,0.002 -0.04297,0.02344 -0.01367,0.0078 -0.0332,0.01563 -0.0293,0.01367 -0.01563,0.0078 -0.04102,0.01758 -0.0078,0.0039 c -0.26261,0.112075 -0.540027,0.173357 -0.818359,0.185547 h -0.0078 l -0.04492,0.002 h -0.02148 -0.01563 V 55.984375 L 46.037109,38.113281 Z" /></g></svg>`;return`data:image/svg+xml;base64,${btoa(t)}`}get customStyleSheet(){return this.$store.getters["config/getCustomThemeFile"]("custom",[".css"])}async onCustomStyleSheet(t){if(!t)return;const s=await this.createFileUrlWithToken(t,"config"),n=document.getElementById("customStylesheet");if(n){n.setAttribute("href",s);return}const i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.id="customStylesheet",i.href=s,document.head.appendChild(i)}get customBackgroundImage(){return this.$store.getters["config/getCustomThemeFile"]("background",[".png",".jpg",".jpeg",".gif"])}async onCustomBackgroundImage(t){if(!t)return;const s=await this.createFileUrlWithToken(t,"config");this.customBackgroundImageStyle={backgroundImage:`url(${s})`,backgroundSize:"cover",backgroundAttachment:"fixed",backgroundRepeat:"no-repeat"}}get enableKeyboardShortcuts(){return this.$store.state.config.uiSettings.general.enableKeyboardShortcuts}mounted(){window.addEventListener("dragover",this.handleDragOver),window.addEventListener("dragenter",this.handleDragEnter),window.addEventListener("dragleave",this.handleDragLeave),window.addEventListener("drop",this.handleDrop),window.addEventListener("keydown",this.handleKeyDown,!1),mr.bus.$on("flashMessage",s=>{this.flashMessageState.text=s&&s.text||void 0,this.flashMessageState.type=s&&s.type||void 0,this.flashMessageState.timeout=s&&s.timeout!==void 0?s.timeout:void 0,this.flashMessageState.open=!0});const t=["link[rel*='icon'][type='image/png']","meta[name='theme-color']"];for(const s of t)document.querySelectorAll(s).forEach(i=>{const a=i.parentElement;a&&a.removeChild(i)})}beforeDestroy(){window.removeEventListener("dragover",this.handleDragOver),window.removeEventListener("dragenter",this.handleDragEnter),window.removeEventListener("dragleave",this.handleDragLeave),window.removeEventListener("drop",this.handleDrop),window.removeEventListener("keydown",this.handleKeyDown)}handleToolsDrawerChange(){this.toolsdrawer=!this.toolsdrawer}handleNavDrawerChange(){this.navdrawer=!this.navdrawer}handleDragOver(t){this.fileDropRoot&&t.dataTransfer&&Uv(t.dataTransfer)&&(t.preventDefault(),this.dragState=!0,t.dataTransfer.dropEffect="copy")}handleDragEnter(t){this.fileDropRoot&&t.preventDefault()}handleDragLeave(t){this.fileDropRoot&&(t.preventDefault(),t.target instanceof HTMLElement&&t.target.className.includes("fluidd")&&(this.dragState=!1))}async handleDrop(t){const s=this.fileDropRoot;if(s&&(t.preventDefault(),this.dragState=!1,t.dataTransfer)){const n=await K6(t.dataTransfer);if(n){const i=this.$store.getters["files/getCurrentPathByRoot"](s)||"",a=i===s?"":i.substring(s.length+1),o=`${this.$waits.onFileSystem}/${i}/`;this.$store.dispatch("wait/addWait",o),await this.uploadFiles(n,a,s,!1),this.$store.dispatch("wait/removeWait",o)}}}handleKeyDown(t){if(!this.enableKeyboardShortcuts)return;const s=A2(t);if(s==="Ctrl+Shift+E"){t.preventDefault(),this.emergencyStop();return}if(!(!this.klippyReady||P2(t)))switch(s){case"Shift+C":(this.printerPrinting||this.printerPaused)&&(t.preventDefault(),this.cancelPrint());break;case"Shift+P":this.printerPrinting&&(t.preventDefault(),this.pausePrint());break;case"Shift+H":this.printerPrinting||(t.preventDefault(),this.homeAll());break}}};T2([Ae("customStyleSheet")],zu.prototype,"onCustomStyleSheet",1);T2([Ae("customBackgroundImage")],zu.prototype,"onCustomBackgroundImage",1);zu=T2([A({metaInfo(){return{title:this.pageTitle,link:this.pageIcon,meta:this.pageMeta}},components:{SpoolSelectionDialog:S5e,FileSystemDownloadDialog:d5e,ActionCommandPromptDialog:S9,KeyboardShortcutsDialog:w9}})],zu);var P5e=function(){var s;var e=this,t=e._self._c;return e._self._setupProxy,e.loading?t(Zw):t(Zw,{staticClass:"fluidd",class:{"no-pointer-events":e.dragState}},[t(i5e,{model:{value:e.toolsdrawer,callback:function(n){e.toolsdrawer=n},expression:"toolsdrawer"}}),t(jCe,{model:{value:e.navdrawer,callback:function(n){e.navdrawer=n},expression:"navdrawer"}}),e.showBackgroundLogo&&!e.isMobileViewport?t("inline-svg",{staticClass:"background-logo",attrs:{src:e.logoSrc}}):e._e(),t(LCe,{on:{toolsdrawer:e.handleToolsDrawerChange,navdrawer:e.handleNavDrawerChange}}),e.flashMessageState?t(Axe,{attrs:{text:e.flashMessageState.text,type:e.flashMessageState.type,timeout:e.flashMessageState.timeout},model:{value:e.flashMessageState.open,callback:function(n){e.$set(e.flashMessageState,"open",n)},expression:"flashMessageState.open"}}):e._e(),e.isMobileViewport&&e.authenticated&&e.socketConnected?t(Be,{staticClass:"ml-2 mb-2",staticStyle:{"z-index":"2000"},attrs:{"x-small":"",fab:"",fixed:"",bottom:"",left:"",color:"error"},on:{click:function(n){return e.emergencyStop()}}},[t(S,[e._v("$estop")])],1):e._e(),t(eW,{style:e.customBackgroundImageStyle},[t(fd,{staticClass:"constrained-width pa-2 pa-sm-4",class:{"fill-height":((s=e.$route.meta)==null?void 0:s.fillHeight)??!1,[["single","double","triple","quad"][e.columnCount-1]]:!0},attrs:{fluid:""}},[e.socketConnected&&e.apiConnected&&(!e.klippyReady||e.hasWarnings)&&!e.inLayout&&e.$route.path!=="/login"?t(ie,[t(B,[t($xe)],1)],1):e._e(),e.socketConnected&&e.apiConnected||!e.authenticated&&e.apiConnected?t("router-view"):e._e(),t(ixe)],1),!e.socketConnected&&!e.apiConnected||!e.socketConnected&&e.authenticated?t(JSe):e._e(),t("file-system-download-dialog"),t(WSe),t("spool-selection-dialog"),t(S9),t(w9)],1),t(PSe),t(Dm,{attrs:{message:e.$t("app.file_system.overlay.drag_files_folders_upload"),icon:"$fileUpload"},model:{value:e.dragState,callback:function(n){e.dragState=n},expression:"dragState"}})],1)},A5e=[],L5e=E(zu,P5e,A5e,!1,null,"d5095050");const E5e=L5e.exports,O5e=r=>{r.onfocus=e=>{e.target instanceof HTMLElement&&e.target.blur()}};b.directive("blur",O5e);b.component("EChart",()=>Ye(()=>import("./vue-echarts-chunk-Behpt2qw.js"),[],import.meta.url));b.use(s9);b.use(mSe);b.use(Ywe);b.use(ySe,{});b.use(b9,{vuetify:fl});b.use(sSe);b.use(Jwe);b.use(iSe,{store:br});mg().then(r=>{ye.debug("Loaded App Configuration",r),b.use(vSe,{url:r.apiConfig.socketUrl,reconnectEnabled:!0,reconnectInterval:he.SOCKET_RETRY_DELAY,store:br}),r.apiConfig.socketUrl&&r.apiConnected&&r.apiAuthenticated&&b.$socket.connect(r.apiConfig.socketUrl),b.config.productionTip=!1,new b({i18n:rt,router:es,store:br,vuetify:fl,render:e=>e(E5e)}).$mount("#app")}).catch(r=>{ye.debug("Error attempting to init App:",r)});export{il as C,k5e as M,Te as R,b as V,Ye as _,SA as a,vL as b,$A as c,PL as d,ar as e,A as f,rA as g,aL as h,OA as i,E as j,ye as k,F2e as l,Y as m,Jf as n,fL as o,YY as p,Sb as q,dA as s,gA as t,hA as u,CA as w};
|