From 1a4fa24f1137cea99102f165759ea3fc292338a6 Mon Sep 17 00:00:00 2001 From: QMK Bot Date: Fri, 16 Aug 2024 02:44:18 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=208b927?= =?UTF-8?q?e016e9c801aac1c55976322b8c6efc0163e=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{BaseKey-7e76d71b.js => BaseKey-fd9279cf.js} | 2 +- assets/{Home-a106e502.js => Home-2b8596d9.js} | 2 +- assets/{Print-dc4bde9c.js => Print-c2c09755.js} | 2 +- assets/{Test-9dee98e2.js => Test-3d865130.js} | 2 +- assets/{index-dd63cd38.js => index-43934c25.js} | 6 +++--- index.html | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) rename assets/{BaseKey-7e76d71b.js => BaseKey-fd9279cf.js} (97%) rename assets/{Home-a106e502.js => Home-2b8596d9.js} (99%) rename assets/{Print-dc4bde9c.js => Print-c2c09755.js} (97%) rename assets/{Test-9dee98e2.js => Test-3d865130.js} (99%) rename assets/{index-dd63cd38.js => index-43934c25.js} (99%) diff --git a/assets/BaseKey-7e76d71b.js b/assets/BaseKey-fd9279cf.js similarity index 97% rename from assets/BaseKey-7e76d71b.js rename to assets/BaseKey-fd9279cf.js index 86297fcb0c..79c1c58544 100644 --- a/assets/BaseKey-7e76d71b.js +++ b/assets/BaseKey-fd9279cf.js @@ -1,2 +1,2 @@ -import{n as _,A as n,d,m as p,i as o,e as y}from"./index-dd63cd38.js";const k={name:"base-keymap",computed:{styles(){let e=.85,t=.61;return this.config.SCALE<1&&(e*=(1+this.config.SCALE)/2,t*=(1+this.config.SCALE)/2),{"--unit-width":"1","--unit-height":"1","--default-smaller-key-font-size":`${t}rem`,"--default-key-font-size":`${e}rem`,"--default-key-height":`${this.config.KEY_HEIGHT}px`,"--default-key-width":`${this.config.KEY_WIDTH}px`,"--default-key-x-spacing":`${this.config.KEY_X_SPACING}px`,"--default-key-y-spacing":`${this.config.KEY_Y_SPACING}px`,width:`${this.width}px`,height:`${this.height}px`}}},methods:{calcKeyKeymapDims(e,t){return{w:e*this.config.KEY_X_SPACING-(this.config.KEY_X_SPACING-this.config.KEY_WIDTH),h:t*this.config.KEY_Y_SPACING-(this.config.KEY_Y_SPACING-this.config.KEY_HEIGHT),uh:t,uw:e}},calcKeyKeymapPos(e,t){return{x:e*this.config.KEY_X_SPACING,y:t*this.config.KEY_Y_SPACING}},setSize(e){this.width=e.x,this.height=e.y},calculateMax(e){const i=this.layouts[e].reduce((s,a)=>{let r=Object.assign({w:1,h:1},a);const l=this.calcKeyKeymapPos(r.x,r.y),u=this.calcKeyKeymapDims(r.w,r.h);return s.x=Math.max(s.x,l.x+u.w),s.y=Math.max(s.y,l.y+u.h),s},{x:0,y:0});return i.x>this.defaults.MAX_X&&(this.resizeConfig(i),i.x*=this.config.SCALE,i.y*=this.config.SCALE),i}}};let v,w;const m={};var S=_(k,v,w,!1,K,null,null,null);function K(e){for(let t in m)this[t]=m[t]}const Y=function(){return S.exports}();var x=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"key",class:e.myclasses,style:e.mystyles,attrs:{draggable:"",id:e.myid,title:e.myTitle},on:{click:e.clicked,dragstart:e.dragstart,dragend:e.dragend,drop:function(s){return s.stopPropagation(),e.dropped.apply(null,arguments)},dragleave:function(s){return s.preventDefault(),e.dragleave.apply(null,arguments)},dragover:function(s){return s.preventDefault(),e.dragover.apply(null,arguments)},dragenter:function(s){return s.preventDefault(),e.dragenter.apply(null,arguments)}}},[e._v(e._s(e.displayName)),e.icon?i("font-awesome-icon",{attrs:{size:"2x",icon:e.icon}}):e._e(),e.visible?[e.visible?i("div",{staticClass:"remove",on:{click:function(s){return s.stopPropagation(),e.remove.apply(null,arguments)}}},[e._v("x")]):e._e()]:e._e()],2)},$=[];let c=Object.assign({},n.iconCodes,n.platformIcons(window.navigator.platform));const C=(e,t)=>{if(e==1)switch(t){case 1:return"k1u";case 1.25:return"k125u";case 1.5:return"k15u";case 1.75:return"k175u";case 2:return"k2u";case 2.25:return"k225u";case 2.75:return"k275u";case 3:return"k3u";case 4:return"k4u";case 6:return"k6u";case 6.25:return"k625u";case 7:return"k7u"}if(t==1)switch(e){case 1.25:return"k125uh";case 1.5:return"k15uh";case 1.75:return"k175uh";case 2:return"k2uh"}if(e===2){if(t===1.25)return"kiso";if(t===1.5)return"kbae"}return"custom"},h=new Map,f=(e,t)=>{const i=`${e}-${t}`;if(h.has(i))return h.get(i);const a=C(e,t);return h.set(i,a),a},E={name:"base-key",props:{id:Number,meta:Object,w:Number,h:Number,y:Number,x:Number,uh:Number,uw:Number,colorway:String,legends:{type:String,default:"keymap"},matrix:Array,printable:{type:Boolean,default:!1}},computed:{...d("keymap",["config"]),...d("keymap",{curLayer:"layer"}),...p("keymap",["getKey","getSelectedKey","colorwayOverride"]),...p("keycodes",["lookupKeycode"]),myTitle(){return this.meta?this.meta.code:""},myid(){return`key-${this.id}`},visible(){return this.meta?this.meta.code!=="KC_NO":!1},displayName(){switch(this.legends){case"size":{const{uh:e,uw:t}=this;return e>t?t===1?e:`${t} / +import{n as _,A as n,d,m as p,i as o,e as y}from"./index-43934c25.js";const k={name:"base-keymap",computed:{styles(){let e=.85,t=.61;return this.config.SCALE<1&&(e*=(1+this.config.SCALE)/2,t*=(1+this.config.SCALE)/2),{"--unit-width":"1","--unit-height":"1","--default-smaller-key-font-size":`${t}rem`,"--default-key-font-size":`${e}rem`,"--default-key-height":`${this.config.KEY_HEIGHT}px`,"--default-key-width":`${this.config.KEY_WIDTH}px`,"--default-key-x-spacing":`${this.config.KEY_X_SPACING}px`,"--default-key-y-spacing":`${this.config.KEY_Y_SPACING}px`,width:`${this.width}px`,height:`${this.height}px`}}},methods:{calcKeyKeymapDims(e,t){return{w:e*this.config.KEY_X_SPACING-(this.config.KEY_X_SPACING-this.config.KEY_WIDTH),h:t*this.config.KEY_Y_SPACING-(this.config.KEY_Y_SPACING-this.config.KEY_HEIGHT),uh:t,uw:e}},calcKeyKeymapPos(e,t){return{x:e*this.config.KEY_X_SPACING,y:t*this.config.KEY_Y_SPACING}},setSize(e){this.width=e.x,this.height=e.y},calculateMax(e){const i=this.layouts[e].reduce((s,a)=>{let r=Object.assign({w:1,h:1},a);const l=this.calcKeyKeymapPos(r.x,r.y),u=this.calcKeyKeymapDims(r.w,r.h);return s.x=Math.max(s.x,l.x+u.w),s.y=Math.max(s.y,l.y+u.h),s},{x:0,y:0});return i.x>this.defaults.MAX_X&&(this.resizeConfig(i),i.x*=this.config.SCALE,i.y*=this.config.SCALE),i}}};let v,w;const m={};var S=_(k,v,w,!1,K,null,null,null);function K(e){for(let t in m)this[t]=m[t]}const Y=function(){return S.exports}();var x=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"key",class:e.myclasses,style:e.mystyles,attrs:{draggable:"",id:e.myid,title:e.myTitle},on:{click:e.clicked,dragstart:e.dragstart,dragend:e.dragend,drop:function(s){return s.stopPropagation(),e.dropped.apply(null,arguments)},dragleave:function(s){return s.preventDefault(),e.dragleave.apply(null,arguments)},dragover:function(s){return s.preventDefault(),e.dragover.apply(null,arguments)},dragenter:function(s){return s.preventDefault(),e.dragenter.apply(null,arguments)}}},[e._v(e._s(e.displayName)),e.icon?i("font-awesome-icon",{attrs:{size:"2x",icon:e.icon}}):e._e(),e.visible?[e.visible?i("div",{staticClass:"remove",on:{click:function(s){return s.stopPropagation(),e.remove.apply(null,arguments)}}},[e._v("x")]):e._e()]:e._e()],2)},$=[];let c=Object.assign({},n.iconCodes,n.platformIcons(window.navigator.platform));const C=(e,t)=>{if(e==1)switch(t){case 1:return"k1u";case 1.25:return"k125u";case 1.5:return"k15u";case 1.75:return"k175u";case 2:return"k2u";case 2.25:return"k225u";case 2.75:return"k275u";case 3:return"k3u";case 4:return"k4u";case 6:return"k6u";case 6.25:return"k625u";case 7:return"k7u"}if(t==1)switch(e){case 1.25:return"k125uh";case 1.5:return"k15uh";case 1.75:return"k175uh";case 2:return"k2uh"}if(e===2){if(t===1.25)return"kiso";if(t===1.5)return"kbae"}return"custom"},h=new Map,f=(e,t)=>{const i=`${e}-${t}`;if(h.has(i))return h.get(i);const a=C(e,t);return h.set(i,a),a},E={name:"base-key",props:{id:Number,meta:Object,w:Number,h:Number,y:Number,x:Number,uh:Number,uw:Number,colorway:String,legends:{type:String,default:"keymap"},matrix:Array,printable:{type:Boolean,default:!1}},computed:{...d("keymap",["config"]),...d("keymap",{curLayer:"layer"}),...p("keymap",["getKey","getSelectedKey","colorwayOverride"]),...p("keycodes",["lookupKeycode"]),myTitle(){return this.meta?this.meta.code:""},myid(){return`key-${this.id}`},visible(){return this.meta?this.meta.code!=="KC_NO":!1},displayName(){switch(this.legends){case"size":{const{uh:e,uw:t}=this;return e>t?t===1?e:`${t} / ${e}`:t}case"matrix":if(this.matrix){const[e,t]=this.matrix;return`${e},${t}`}return"?";case"index":return this.id}if(!o(this.meta)&&o(c[this.meta.code]))return this.formatName(this.meta.name)},icon(){if(this.isShowingKeymapLegends&&this.meta&&c[this.meta.code])return c[this.meta.code]},isSelected(){return this.id===this.getSelectedKey&&!this.$store.state.keymap.selectedContent},isContentSelected(){return this.$store.state.keymap.selectedContent&&this.id===this.getSelectedKey},isShowingKeymapLegends(){return this.legends==="keymap"},myclasses(){let e=[];this.isSelected&&e.push("keycode-select"),this.inHover&&e.push("overme"),this.inSwap&&e.push("swapme"),this.meta&&this.meta.name.length>=2&&this.isShowingKeymapLegends&&e.push("smaller");const{KEY_WIDTH:t,KEY_HEIGHT:i}=this.config;return e.push(f(this.uh,this.uw)),!o(this.meta)&&!this.printable&&(this.colorwayOverride&&this.colorwayOverride[this.meta.code]?e.push(`${this.colorway}-${this.colorwayOverride[this.meta.code]}`):n.alphaCodes[this.meta.code]?e.push(`${this.colorway}-key`):n.modCodes[this.meta.code]||this.w<=t*3&&(this.w>t||this.h>i)?(e.push("mod"),e.push(`${this.colorway}-mod`)):e.push(`${this.colorway}-key`)),e.join(" ")},mystyles(){let e=[];return this.y>0&&e.push(`top: ${this.y}px;`),this.x>0&&e.push(`left: ${this.x}px;`),f(this.uh,this.uw)==="custom"&&(this.uw!==1&&e.push(`--unit-width: ${this.uw};`),this.uh!==1&&e.push(`--unit-height: ${this.uh};`)),e.join("")}},methods:{...y("keymap",["setSelected","setKeycode","swapKeys","setSelectedContent"]),...y("app",["stopListening","startListening"]),clicked(){let e=this.id;this.isSelected&&(e=void 0),this.setSelected(e)},dropped(e){this.setSelected(this.id);let t=JSON.parse(e.dataTransfer.getData("application/json"));t.action==="swap"?(console.log(`swapping ${t.id} with ${this.id}`),this.swapKeys({layer:this.curLayer,srcIndex:t.id,dstIndex:this.id})):this.setKeycode({_code:t.code,layer:t.layer}),this.dragleave()},dragend(){this.inSwap=!1,this.inHover=!1,this.$el.style.opacity="1"},dragover(){return!1},dragenter(){this.inHover=!0},dragleave(){this.inHover=!1},dragstart(e){this.inSwap=!0;let{id:t}=this;e.dropEffect="move",e.dataTransfer.dropEffect="move",e.dataTransfer.setData("application/json",JSON.stringify({action:"swap",id:t}))},formatName(e){return e},remove(){this.setSelected(this.id),this.setKeycode({_code:"KC_NO"})},clickContents(){let e=this.id;this.isContentSelected&&(e=void 0),this.setSelectedContent(e)}},data(){return{inHover:!1,inSwap:!1,platform:void 0}}},g={};var N=_(E,x,$,!1,b,null,null,null);function b(e){for(let t in g)this[t]=g[t]}const I=function(){return N.exports}();export{I as B,Y as a}; diff --git a/assets/Home-a106e502.js b/assets/Home-2b8596d9.js similarity index 99% rename from assets/Home-a106e502.js rename to assets/Home-2b8596d9.js index e3f47d9b48..2187dd80f2 100644 --- a/assets/Home-a106e502.js +++ b/assets/Home-2b8596d9.js @@ -1,4 +1,4 @@ -import{_ as ge,t as he,g as C,s as n,a as ye,b as ve,c as Ee,m as h,d as m,V as y,i as l,f as _,e as c,h as f,r as De,j as ze,P as fe,k as be,n as p,l as Re,o as Oe,p as Ue,q as Ae,u as Ie,v as Pe,w as Me,x as Be,y as qe}from"./index-dd63cd38.js";import{B as k,a as Je}from"./BaseKey-7e76d71b.js";function Ye(e,a,t){var r=-1,i=e.length;a<0&&(a=-a>i?0:i+a),t=t>i?i:t,t<0&&(t+=i),i=a>t?0:t-a>>>0,a>>>=0;for(var s=Array(i);++r=r?e:Ve(e,a,t)}var Ge=We;function Qe(e){return e.split("")}var Xe=Qe,_e="\\ud800-\\udfff",Ze="\\u0300-\\u036f",et="\\ufe20-\\ufe2f",tt="\\u20d0-\\u20ff",at=Ze+et+tt,rt="\\ufe0e\\ufe0f",it="["+_e+"]",R="["+at+"]",O="\\ud83c[\\udffb-\\udfff]",st="(?:"+R+"|"+O+")",ke="[^"+_e+"]",we="(?:\\ud83c[\\udde6-\\uddff]){2}",xe="[\\ud800-\\udbff][\\udc00-\\udfff]",nt="\\u200d",$e=st+"?",Ce="["+rt+"]?",ot="(?:"+nt+"(?:"+[ke,we,xe].join("|")+")"+Ce+$e+")*",lt=Ce+$e+ot,ct="(?:"+[ke+R+"?",R,we,xe,it].join("|")+")",dt=RegExp(O+"(?="+O+")|"+ct+lt,"g");function ut(e){return e.match(dt)||[]}var pt=ut,mt=Xe,gt=ge,ht=pt;function yt(e){return gt(e)?ht(e):mt(e)}var vt=yt,ft=Ge,bt=ge,_t=vt,kt=he;function wt(e){return function(a){a=kt(a);var t=bt(a)?_t(a):void 0,r=t?t[0]:a.charAt(0),i=t?ft(t,1).join(""):a.slice(1);return r[e]()+i}}var xt=wt,$t=xt,Ct=$t("toUpperCase"),Lt=Ct,St=he,Kt=Lt;function Tt(e){return Kt(St(e).toLowerCase())}var Ft=Tt;const jt=C(Ft);let E,Nt="Baking";function U(e){n.commit("status/append",e),n.dispatch("status/scrollToEnd")}function Et(e,a,t){Le();let r=n.state.keymap.templates.keymap;const i=n.getters["keymap/exportLayers"]({compiler:!0});let s=JSON.stringify(Object.assign(r,{keyboard:e,keymap:a,layout:t,layers:i}));console.log(s),n.getters["status/empty"]&&n.commit("status/append",` +import{_ as ge,t as he,g as C,s as n,a as ye,b as ve,c as Ee,m as h,d as m,V as y,i as l,f as _,e as c,h as f,r as De,j as ze,P as fe,k as be,n as p,l as Re,o as Oe,p as Ue,q as Ae,u as Ie,v as Pe,w as Me,x as Be,y as qe}from"./index-43934c25.js";import{B as k,a as Je}from"./BaseKey-fd9279cf.js";function Ye(e,a,t){var r=-1,i=e.length;a<0&&(a=-a>i?0:i+a),t=t>i?i:t,t<0&&(t+=i),i=a>t?0:t-a>>>0,a>>>=0;for(var s=Array(i);++r=r?e:Ve(e,a,t)}var Ge=We;function Qe(e){return e.split("")}var Xe=Qe,_e="\\ud800-\\udfff",Ze="\\u0300-\\u036f",et="\\ufe20-\\ufe2f",tt="\\u20d0-\\u20ff",at=Ze+et+tt,rt="\\ufe0e\\ufe0f",it="["+_e+"]",R="["+at+"]",O="\\ud83c[\\udffb-\\udfff]",st="(?:"+R+"|"+O+")",ke="[^"+_e+"]",we="(?:\\ud83c[\\udde6-\\uddff]){2}",xe="[\\ud800-\\udbff][\\udc00-\\udfff]",nt="\\u200d",$e=st+"?",Ce="["+rt+"]?",ot="(?:"+nt+"(?:"+[ke,we,xe].join("|")+")"+Ce+$e+")*",lt=Ce+$e+ot,ct="(?:"+[ke+R+"?",R,we,xe,it].join("|")+")",dt=RegExp(O+"(?="+O+")|"+ct+lt,"g");function ut(e){return e.match(dt)||[]}var pt=ut,mt=Xe,gt=ge,ht=pt;function yt(e){return gt(e)?ht(e):mt(e)}var vt=yt,ft=Ge,bt=ge,_t=vt,kt=he;function wt(e){return function(a){a=kt(a);var t=bt(a)?_t(a):void 0,r=t?t[0]:a.charAt(0),i=t?ft(t,1).join(""):a.slice(1);return r[e]()+i}}var xt=wt,$t=xt,Ct=$t("toUpperCase"),Lt=Ct,St=he,Kt=Lt;function Tt(e){return Kt(St(e).toLowerCase())}var Ft=Tt;const jt=C(Ft);let E,Nt="Baking";function U(e){n.commit("status/append",e),n.dispatch("status/scrollToEnd")}function Et(e,a,t){Le();let r=n.state.keymap.templates.keymap;const i=n.getters["keymap/exportLayers"]({compiler:!0});let s=JSON.stringify(Object.assign(r,{keyboard:e,keymap:a,layout:t,layers:i}));console.log(s),n.getters["status/empty"]&&n.commit("status/append",` `),n.commit("status/append",`* Sending ${e}:${a} with ${t}`),ye.post(ve,s).then(o=>{const{status:d,data:g}=o;if(d===200)n.commit("app/setShowSpinner",!0),g.enqueued&&(n.commit("status/append",` * Received job_id: ${g.job_id}`),n.dispatch("status/scrollToEnd"),n.commit("app/setJobID",g.job_id),A());else throw o}).catch(o=>{window.alert("Unexpected error ",console.log(o))})}function $(){n.commit("app/enableCompile"),setTimeout(()=>{n.commit("app/setShowSpinner",!1)},2e3)}function Le(){n.commit("app/disableCompile")}function Dt(){n.commit("app/setEnableDownloads")}function Se(){n.commit("app/setDisableDownloads")}function A(){const e=`${ve}/${n.state.app.jobID}`,a=performance.now();ye.get(e).then(t=>{console.log(`response in ${performance.now()-a}ms`,t);let r,{status:i,data:s}=t;if(i!==200)console.log("Unexpected status",s.status),$();else{const o=Math.floor(2500+Math.random()*1e3);switch(console.log(`Next Poll in ${o}ms`),s.status){case"finished":n.commit("app/setSpinnerMsg","Done!"),n.commit("status/append",` * Finished: diff --git a/assets/Print-dc4bde9c.js b/assets/Print-c2c09755.js similarity index 97% rename from assets/Print-dc4bde9c.js rename to assets/Print-c2c09755.js index 19f89567e1..9f94b8b75d 100644 --- a/assets/Print-dc4bde9c.js +++ b/assets/Print-c2c09755.js @@ -1,4 +1,4 @@ -import{n as i,d as n,m as y,e as v,i as l,V as g}from"./index-dd63cd38.js";import{B as $,a as k}from"./BaseKey-7e76d71b.js";var b=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"key",class:t.myclasses,style:t.mystyles,attrs:{id:t.myid,title:t.displayName}},[t._v(" "+t._s(t.displayName)+" ")])},w=[];const x={name:"print-key",props:{layer:Number},extends:$,computed:{myid(){return`key-${this.layer}-${this.id}`},displayName(){return this.meta.type==="layer"?this.meta.code.replace("layer",this.meta.layer):this.meta.type==="text"?this.formatName(this.breakLines(this.meta.text)):this.meta.type==="layer-container"?`${this.meta.name.toUpperCase()}, +import{n as i,d as n,m as y,e as v,i as l,V as g}from"./index-43934c25.js";import{B as $,a as k}from"./BaseKey-fd9279cf.js";var b=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"key",class:t.myclasses,style:t.mystyles,attrs:{id:t.myid,title:t.displayName}},[t._v(" "+t._s(t.displayName)+" ")])},w=[];const x={name:"print-key",props:{layer:Number},extends:$,computed:{myid(){return`key-${this.layer}-${this.id}`},displayName(){return this.meta.type==="layer"?this.meta.code.replace("layer",this.meta.layer):this.meta.type==="text"?this.formatName(this.breakLines(this.meta.text)):this.meta.type==="layer-container"?`${this.meta.name.toUpperCase()}, ${this.formatName(this.meta.contents.code)}`:this.meta.type==="container"?`${this.meta.name.toUpperCase()} (${this.formatName(this.meta.contents.code)})`:this.formatName(this.breakLines(this.meta.name))}},methods:{breakLines(t){return this.uw<1.75&&(t=t.replace(" ",` `).replace("_",`_ diff --git a/assets/Test-9dee98e2.js b/assets/Test-3d865130.js similarity index 99% rename from assets/Test-9dee98e2.js rename to assets/Test-3d865130.js index 724cd48f40..c87dded166 100644 --- a/assets/Test-9dee98e2.js +++ b/assets/Test-3d865130.js @@ -1,4 +1,4 @@ -import{n as O,z as k,d as B,m as $,i as L,e as M,h as N}from"./index-dd63cd38.js";import{B as X,a as q}from"./BaseKey-7e76d71b.js";var W=function(){var a=this,v=a.$createElement,n=a._self._c||v;return n("div",{staticClass:"key tester-key",class:a.localClasses,style:a.mystyles,attrs:{id:a.myid,title:a.displayName}},[a._v(a._s(a.displayName))])},Q=[];const Y={name:"tester-key",props:{layer:Number},extends:X,computed:{myid(){return`key-${this.layer}-${this.id}`},displayName(){return this.formatName(this.breakLines(this.meta.name))},localClasses(){const a=[];return this.meta.active&&a.push("active"),this.meta.chatter&&a.push("chatter-detected"),this.meta.detected&&a.push("detected"),`${this.myclasses} ${a.join(" ")}`}},methods:{breakLines(a){return this.uw<1.75&&(a=a.replace(" ",` +import{n as O,z as k,d as B,m as $,i as L,e as M,h as N}from"./index-43934c25.js";import{B as X,a as q}from"./BaseKey-fd9279cf.js";var W=function(){var a=this,v=a.$createElement,n=a._self._c||v;return n("div",{staticClass:"key tester-key",class:a.localClasses,style:a.mystyles,attrs:{id:a.myid,title:a.displayName}},[a._v(a._s(a.displayName))])},Q=[];const Y={name:"tester-key",props:{layer:Number},extends:X,computed:{myid(){return`key-${this.layer}-${this.id}`},displayName(){return this.formatName(this.breakLines(this.meta.name))},localClasses(){const a=[];return this.meta.active&&a.push("active"),this.meta.chatter&&a.push("chatter-detected"),this.meta.detected&&a.push("detected"),`${this.myclasses} ${a.join(" ")}`}},methods:{breakLines(a){return this.uw<1.75&&(a=a.replace(" ",` `).replace("_",`_ `)),a}}},E={};var Z=O(Y,W,Q,!1,j,null,null,null);function j(a){for(let v in E)this[v]=E[v]}const D=function(){return Z.exports}();var G={};/*! * howler.js v2.2.3 diff --git a/assets/index-dd63cd38.js b/assets/index-43934c25.js similarity index 99% rename from assets/index-dd63cd38.js rename to assets/index-43934c25.js index 81b95664ac..8c3da35459 100644 --- a/assets/index-dd63cd38.js +++ b/assets/index-43934c25.js @@ -9,11 +9,11 @@ */function fU(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:a});else{var n=e.prototype._init;e.prototype._init=function(i){i===void 0&&(i={}),i.init=i.init?[a].concat(i.init):a,n.call(this,i)}}function a(){var i=this.$options;i.store?this.$store=typeof i.store=="function"?i.store():i.store:i.parent&&i.parent.$store&&(this.$store=i.parent.$store)}}var CU=typeof window<"u"?window:typeof global<"u"?global:{},Hl=CU.__VUE_DEVTOOLS_GLOBAL_HOOK__;function dU(e){Hl&&(e._devtoolHook=Hl,Hl.emit("vuex:init",e),Hl.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(t,n){Hl.emit("vuex:mutation",t,n)},{prepend:!0}),e.subscribeAction(function(t,n){Hl.emit("vuex:action",t,n)},{prepend:!0}))}function pU(e,t){return e.filter(t)[0]}function rh(e,t){if(t===void 0&&(t=[]),e===null||typeof e!="object")return e;var n=pU(t,function(i){return i.original===e});if(n)return n.copy;var a=Array.isArray(e)?[]:{};return t.push({original:e,copy:a}),Object.keys(e).forEach(function(i){a[i]=rh(e[i],t)}),a}function Ss(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function dA(e){return e!==null&&typeof e=="object"}function hU(e){return e&&typeof e.then=="function"}function SU(e,t){return function(){return e(t)}}var Ea=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var a=t.state;this.state=(typeof a=="function"?a():a)||{}},pA={namespaced:{configurable:!0}};pA.namespaced.get=function(){return!!this._rawModule.namespaced};Ea.prototype.addChild=function(t,n){this._children[t]=n};Ea.prototype.removeChild=function(t){delete this._children[t]};Ea.prototype.getChild=function(t){return this._children[t]};Ea.prototype.hasChild=function(t){return t in this._children};Ea.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};Ea.prototype.forEachChild=function(t){Ss(this._children,t)};Ea.prototype.forEachGetter=function(t){this._rawModule.getters&&Ss(this._rawModule.getters,t)};Ea.prototype.forEachAction=function(t){this._rawModule.actions&&Ss(this._rawModule.actions,t)};Ea.prototype.forEachMutation=function(t){this._rawModule.mutations&&Ss(this._rawModule.mutations,t)};Object.defineProperties(Ea.prototype,pA);var Mo=function(t){this.register([],t,!1)};Mo.prototype.get=function(t){return t.reduce(function(n,a){return n.getChild(a)},this.root)};Mo.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(a,i){return n=n.getChild(i),a+(n.namespaced?i+"/":"")},"")};Mo.prototype.update=function(t){hA([],this.root,t)};Mo.prototype.register=function(t,n,a){var i=this;a===void 0&&(a=!0);var o=new Ea(n,a);if(t.length===0)this.root=o;else{var s=this.get(t.slice(0,-1));s.addChild(t[t.length-1],o)}n.modules&&Ss(n.modules,function(u,m){i.register(t.concat(m),u,a)})};Mo.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),a=t[t.length-1],i=n.getChild(a);i&&i.runtime&&n.removeChild(a)};Mo.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),a=t[t.length-1];return n?n.hasChild(a):!1};function hA(e,t,n){if(t.update(n),n.modules)for(var a in n.modules){if(!t.getChild(a))return;hA(e.concat(a),t.getChild(a),n.modules[a])}}var Pn,Hn=function(t){var n=this;t===void 0&&(t={}),!Pn&&typeof window<"u"&&window.Vue&&vA(window.Vue);var a=t.plugins;a===void 0&&(a=[]);var i=t.strict;i===void 0&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Mo(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new Pn,this._makeLocalGettersCache=Object.create(null);var o=this,s=this,u=s.dispatch,m=s.commit;this.dispatch=function(A,E){return u.call(o,A,E)},this.commit=function(A,E,T){return m.call(o,A,E,T)},this.strict=i;var f=this._modules.root.state;iC(this,f,[],this._modules.root),gS(this,f),a.forEach(function(v){return v(n)});var S=t.devtools!==void 0?t.devtools:Pn.config.devtools;S&&dU(this)},yS={state:{configurable:!0}};yS.state.get=function(){return this._vm._data.$$state};yS.state.set=function(e){};Hn.prototype.commit=function(t,n,a){var i=this,o=yf(t,n,a),s=o.type,u=o.payload,m={type:s,payload:u},f=this._mutations[s];f&&(this._withCommit(function(){f.forEach(function(v){v(u)})}),this._subscribers.slice().forEach(function(S){return S(m,i.state)}))};Hn.prototype.dispatch=function(t,n){var a=this,i=yf(t,n),o=i.type,s=i.payload,u={type:o,payload:s},m=this._actions[o];if(m){try{this._actionSubscribers.slice().filter(function(S){return S.before}).forEach(function(S){return S.before(u,a.state)})}catch{}var f=m.length>1?Promise.all(m.map(function(S){return S(s)})):m[0](s);return new Promise(function(S,v){f.then(function(A){try{a._actionSubscribers.filter(function(E){return E.after}).forEach(function(E){return E.after(u,a.state)})}catch{}S(A)},function(A){try{a._actionSubscribers.filter(function(E){return E.error}).forEach(function(E){return E.error(u,a.state,A)})}catch{}v(A)})})}};Hn.prototype.subscribe=function(t,n){return SA(t,this._subscribers,n)};Hn.prototype.subscribeAction=function(t,n){var a=typeof t=="function"?{before:t}:t;return SA(a,this._actionSubscribers,n)};Hn.prototype.watch=function(t,n,a){var i=this;return this._watcherVM.$watch(function(){return t(i.state,i.getters)},n,a)};Hn.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._vm._data.$$state=t})};Hn.prototype.registerModule=function(t,n,a){a===void 0&&(a={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),iC(this,this.state,t,this._modules.get(t),a.preserveState),gS(this,this.state)};Hn.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var a=LS(n.state,t.slice(0,-1));Pn.delete(a,t[t.length-1])}),KA(this)};Hn.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};Hn.prototype.hotUpdate=function(t){this._modules.update(t),KA(this,!0)};Hn.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(Hn.prototype,yS);function SA(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}function KA(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;iC(e,n,[],e._modules.root,!0),gS(e,n,t)}function gS(e,t,n){var a=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};Ss(i,function(u,m){o[m]=SU(u,e),Object.defineProperty(e.getters,m,{get:function(){return e._vm[m]},enumerable:!0})});var s=Pn.config.silent;Pn.config.silent=!0,e._vm=new Pn({data:{$$state:t},computed:o}),Pn.config.silent=s,e.strict&&LU(e),a&&(n&&e._withCommit(function(){a._data.$$state=null}),Pn.nextTick(function(){return a.$destroy()}))}function iC(e,t,n,a,i){var o=!n.length,s=e._modules.getNamespace(n);if(a.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=a),!o&&!i){var u=LS(t,n.slice(0,-1)),m=n[n.length-1];e._withCommit(function(){Pn.set(u,m,a.state)})}var f=a.context=KU(e,s,n);a.forEachMutation(function(S,v){var A=s+v;RU(e,A,S,f)}),a.forEachAction(function(S,v){var A=S.root?v:s+v,E=S.handler||S;yU(e,A,E,f)}),a.forEachGetter(function(S,v){var A=s+v;gU(e,A,S,f)}),a.forEachChild(function(S,v){iC(e,t,n.concat(v),S,i)})}function KU(e,t,n){var a=t==="",i={dispatch:a?e.dispatch:function(o,s,u){var m=yf(o,s,u),f=m.payload,S=m.options,v=m.type;return(!S||!S.root)&&(v=t+v),e.dispatch(v,f)},commit:a?e.commit:function(o,s,u){var m=yf(o,s,u),f=m.payload,S=m.options,v=m.type;(!S||!S.root)&&(v=t+v),e.commit(v,f,S)}};return Object.defineProperties(i,{getters:{get:a?function(){return e.getters}:function(){return vU(e,t)}},state:{get:function(){return LS(e.state,n)}}}),i}function vU(e,t){if(!e._makeLocalGettersCache[t]){var n={},a=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,a)===t){var o=i.slice(a);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function RU(e,t,n,a){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(s){n.call(e,a.state,s)})}function yU(e,t,n,a){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(s){var u=n.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},s);return hU(u)||(u=Promise.resolve(u)),e._devtoolHook?u.catch(function(m){throw e._devtoolHook.emit("vuex:error",m),m}):u})}function gU(e,t,n,a){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(o){return n(a.state,a.getters,o.state,o.getters)})}function LU(e){e._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function LS(e,t){return t.reduce(function(n,a){return n[a]},e)}function yf(e,t,n){return dA(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function vA(e){Pn&&e===Pn||(Pn=e,fU(Pn))}var Kc=lC(function(e,t){var n={};return oC(t).forEach(function(a){var i=a.key,o=a.val;n[i]=function(){var u=this.$store.state,m=this.$store.getters;if(e){var f=sC(this.$store,"mapState",e);if(!f)return;u=f.context.state,m=f.context.getters}return typeof o=="function"?o.call(this,u,m):u[o]},n[i].vuex=!0}),n}),vc=lC(function(e,t){var n={};return oC(t).forEach(function(a){var i=a.key,o=a.val;n[i]=function(){for(var u=[],m=arguments.length;m--;)u[m]=arguments[m];var f=this.$store.commit;if(e){var S=sC(this.$store,"mapMutations",e);if(!S)return;f=S.context.commit}return typeof o=="function"?o.apply(this,[f].concat(u)):f.apply(this.$store,[o].concat(u))}}),n}),AS=lC(function(e,t){var n={};return oC(t).forEach(function(a){var i=a.key,o=a.val;o=e+o,n[i]=function(){if(!(e&&!sC(this.$store,"mapGetters",e)))return this.$store.getters[o]},n[i].vuex=!0}),n}),rC=lC(function(e,t){var n={};return oC(t).forEach(function(a){var i=a.key,o=a.val;n[i]=function(){for(var u=[],m=arguments.length;m--;)u[m]=arguments[m];var f=this.$store.dispatch;if(e){var S=sC(this.$store,"mapActions",e);if(!S)return;f=S.context.dispatch}return typeof o=="function"?o.apply(this,[f].concat(u)):f.apply(this.$store,[o].concat(u))}}),n}),RA=function(e){return{mapState:Kc.bind(null,e),mapGetters:AS.bind(null,e),mapMutations:vc.bind(null,e),mapActions:rC.bind(null,e)}};function oC(e){return AU(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function AU(e){return Array.isArray(e)||dA(e)}function lC(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function sC(e,t,n){var a=e._modulesNamespaceMap[n];return a}function EU(e){e===void 0&&(e={});var t=e.collapsed;t===void 0&&(t=!0);var n=e.filter;n===void 0&&(n=function(S,v,A){return!0});var a=e.transformer;a===void 0&&(a=function(S){return S});var i=e.mutationTransformer;i===void 0&&(i=function(S){return S});var o=e.actionFilter;o===void 0&&(o=function(S,v){return!0});var s=e.actionTransformer;s===void 0&&(s=function(S){return S});var u=e.logMutations;u===void 0&&(u=!0);var m=e.logActions;m===void 0&&(m=!0);var f=e.logger;return f===void 0&&(f=console),function(S){var v=rh(S.state);typeof f>"u"||(u&&S.subscribe(function(A,E){var T=rh(E);if(n(A,v,T)){var M=vR(),G=i(A),$="mutation "+A.type+M;SR(f,$,t),f.log("%c prev state","color: #9E9E9E; font-weight: bold",a(v)),f.log("%c mutation","color: #03A9F4; font-weight: bold",G),f.log("%c next state","color: #4CAF50; font-weight: bold",a(T)),KR(f)}v=T}),m&&S.subscribeAction(function(A,E){if(o(A,E)){var T=vR(),M=s(A),G="action "+A.type+T;SR(f,G,t),f.log("%c action","color: #03A9F4; font-weight: bold",M),KR(f)}}))}}function SR(e,t,n){var a=n?e.groupCollapsed:e.group;try{a.call(e,t)}catch{e.log(t)}}function KR(e){try{e.groupEnd()}catch{e.log("—— log end ——")}}function vR(){var e=new Date;return" @ "+Im(e.getHours(),2)+":"+Im(e.getMinutes(),2)+":"+Im(e.getSeconds(),2)+"."+Im(e.getMilliseconds(),3)}function bU(e,t){return new Array(t+1).join(e)}function Im(e,t){return bU("0",t-e.toString().length)+e}var TU={Store:Hn,install:vA,version:"3.6.2",mapState:Kc,mapMutations:vc,mapGetters:AS,mapActions:rC,createNamespacedHelpers:RA,createLogger:EU};const yA=TU;var gA={exports:{}};(function(e,t){(function(a,i){e.exports=i()})(cr,function(){return function(n){var a={};function i(o){if(a[o])return a[o].exports;var s=a[o]={i:o,l:!1,exports:{}};return n[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=a,i.i=function(o){return o},i.d=function(o,s,u){i.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:u})},i.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(s,"a",s),s},i.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},i.p="/dist/",i(i.s=2)}([function(n,a,i){i(8);var o=i(6)(i(1),i(7),"data-v-25adc6c0",null);n.exports=o.exports},function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var o=i(3),s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},u="#75c791",m="#bfcbd9",f="on",S="off",v="#fff";a.default={name:"ToggleButton",props:{value:{type:Boolean,default:!1},name:{type:String},disabled:{type:Boolean,default:!1},tag:{type:String},sync:{type:Boolean,default:!1},speed:{type:Number,default:300},color:{type:[String,Object],validator:function(E){return i.i(o.a)(E)||i.i(o.b)(E,"checked")||i.i(o.b)(E,"unchecked")||i.i(o.b)(E,"disabled")}},switchColor:{type:[String,Object],validator:function(E){return i.i(o.a)(E)||i.i(o.b)(E,"checked")||i.i(o.b)(E,"unchecked")}},cssColors:{type:Boolean,default:!1},labels:{type:[Boolean,Object],default:!1,validator:function(E){return(typeof E>"u"?"undefined":s(E))==="object"?E.checked||E.unchecked:typeof E=="boolean"}},height:{type:Number,default:22},width:{type:Number,default:50},margin:{type:Number,default:3},fontSize:{type:Number}},computed:{className:function(){var E=this.toggled,T=this.disabled;return["vue-js-switch",{toggled:E,disabled:T}]},coreStyle:function(){return{width:i.i(o.c)(this.width),height:i.i(o.c)(this.height),backgroundColor:this.cssColors?null:this.disabled?this.colorDisabled:this.colorCurrent,borderRadius:i.i(o.c)(Math.round(this.height/2))}},buttonRadius:function(){return this.height-this.margin*2},distance:function(){return i.i(o.c)(this.width-this.height+this.margin)},buttonStyle:function(){var E="transform "+this.speed+"ms",T=i.i(o.c)(this.margin),M=this.toggled?i.i(o.d)(this.distance,T):i.i(o.d)(T,T),G=this.switchColor?this.switchColorCurrent:null;return{width:i.i(o.c)(this.buttonRadius),height:i.i(o.c)(this.buttonRadius),transition:E,transform:M,background:G}},labelStyle:function(){return{lineHeight:i.i(o.c)(this.height),fontSize:this.fontSize?i.i(o.c)(this.fontSize):null}},colorChecked:function(){var E=this.color;return i.i(o.e)(E)?i.i(o.f)(E,"checked",u):E||u},colorUnchecked:function(){return i.i(o.f)(this.color,"unchecked",m)},colorDisabled:function(){return i.i(o.f)(this.color,"disabled",this.colorCurrent)},colorCurrent:function(){return this.toggled?this.colorChecked:this.colorUnchecked},labelChecked:function(){return i.i(o.f)(this.labels,"checked",f)},labelUnchecked:function(){return i.i(o.f)(this.labels,"unchecked",S)},switchColorChecked:function(){return i.i(o.f)(this.switchColor,"checked",v)},switchColorUnchecked:function(){return i.i(o.f)(this.switchColor,"unchecked",v)},switchColorCurrent:function(){return this.switchColor,i.i(o.e)(this.switchColor)?this.toggled?this.switchColorChecked:this.switchColorUnchecked:this.switchColor||v}},watch:{value:function(E){this.sync&&(this.toggled=!!E)}},data:function(){return{toggled:!!this.value}},methods:{toggle:function(E){var T=!this.toggled;this.sync||(this.toggled=T),this.$emit("input",T),this.$emit("change",{value:T,tag:this.tag,srcEvent:E})}}}},function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var o=i(0),s=i.n(o);i.d(a,"ToggleButton",function(){return s.a});var u=!1;a.default={install:function(f){u||(f.component("ToggleButton",s.a),u=!0)}}},function(n,a,i){i.d(a,"a",function(){return s}),i.d(a,"e",function(){return u}),i.d(a,"b",function(){return m}),i.d(a,"f",function(){return f}),i.d(a,"c",function(){return S}),i.d(a,"d",function(){return v});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},s=function(E){return typeof E=="string"},u=function(E){return(typeof E>"u"?"undefined":o(E))==="object"},m=function(E,T){return u(E)&&E.hasOwnProperty(T)},f=function(E,T,M){return m(E,T)?E[T]:M},S=function(E){return E+"px"},v=function(E,T){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0px";return"translate3d("+E+", "+T+", "+M+")"}},function(n,a,i){a=n.exports=i(5)(),a.push([n.i,".vue-js-switch[data-v-25adc6c0]{display:inline-block;position:relative;vertical-align:middle;user-select:none;font-size:10px;cursor:pointer}.vue-js-switch .v-switch-input[data-v-25adc6c0]{opacity:0;position:absolute;width:1px;height:1px}.vue-js-switch .v-switch-label[data-v-25adc6c0]{position:absolute;top:0;font-weight:600;color:#fff;z-index:1}.vue-js-switch .v-switch-label.v-left[data-v-25adc6c0]{left:10px}.vue-js-switch .v-switch-label.v-right[data-v-25adc6c0]{right:10px}.vue-js-switch .v-switch-core[data-v-25adc6c0]{display:block;position:relative;box-sizing:border-box;outline:0;margin:0;transition:border-color .3s,background-color .3s;user-select:none}.vue-js-switch .v-switch-core .v-switch-button[data-v-25adc6c0]{display:block;position:absolute;overflow:hidden;top:0;left:0;border-radius:100%;background-color:#fff;z-index:2}.vue-js-switch.disabled[data-v-25adc6c0]{pointer-events:none;opacity:.6}",""])},function(n,a){n.exports=function(){var i=[];return i.toString=function(){for(var s=[],u=0;uX.parts.length&&(Z.parts.length=X.parts.length)}else{for(var y=[],w=0;wthis.$t(`settingsPanel.osKeyboardLayout.label.${t}`);return[...this.osKeyboardLayouts].sort((t,n)=>e(t).localeCompare(e(n)))}},methods:{...vc("keymap",["toggleContinuousInput"]),...vc("app",["setLegends","toggleTutorial","toggleSnowflakes"]),...rC("app",["toggleDarkMode","changeLanguage","changeOSKeyboardLayout","toggleClearLayerDefault"]),darkMode(){this.toggleDarkMode()},clearLayerDefault(){this.toggleClearLayerDefault()},help(e){switch(e){case"fastInput":this.helpText=this.$t("settingsPanel.fastInput.help");break;case"legends":this.helpText=this.$t("settingsPanel.legends.help");break;case"toggleTutorial":this.helpText=this.$t("settingsPanel.toggleTutorial.help");break;case"darkmode":this.helpText=this.$t("settingsPanel.darkmode.help");break;case"language":this.helpText=this.$t("settingsPanel.language.help");break;case"osKeyboardLayout":this.helpText=this.$t("settingsPanel.osKeyboardLayout.help");break;case"clearLayer":this.helpText=this.$t("settingsPanel.clearLayer.help");break}this.clearTextTimer&&(window.clearTimeout(this.clearTextTimer),this.clearTextTimer=void 0),this.clearTextTimer=window.setTimeout(()=>{this.helpText=void 0},5e3)}}},RR={};var IU=Er(NU,wU,OU,!1,DU,null,null,null);function DU(e){for(let t in RR)this[t]=RR[t]}const UU=function(){return IU.exports}();var kU=function(e,t){return t._c,t._m(0)},MU=[function(e,t){var n=t._c;return n("div",{staticClass:"snowflakes",attrs:{"aria-hidden":"true"}},[n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")])])}];const GU={},yR={};var BU=Er(GU,kU,MU,!0,$U,null,null,null);function $U(e){for(let t in yR)this[t]=yR[t]}const xU=function(){return BU.exports}(),FU="/assets/Santa_hat-caf4a6a3.svg",HU="/assets/jinglebell-32197867.svg";var QU=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"},on:{click:e.dismiss}},[n("span",{staticStyle:{display:"none"}},[e._v(e._s(e.revision))]),n("div",[n("header",[n("p",{staticClass:"random-potato"},[e._v(e._s(e.potatoFact))])]),n("router-view"),n("spinner",{attrs:{"is-visible":e.showSpinner,status:e.spinnerMsg}}),n("InfoBar",{attrs:{msg:e.message}})],1),n("slideout-panel"),n("footer",[n("p",[e._v(e._s(e.$t("maintain")))]),n("p",[e._v(e._s(e.$t("hostedOn")))]),n("p",{staticStyle:{"font-size":"10px"}},[e._v("version: "+e._s(e.revision))])]),n("div",{staticClass:"help",class:e.helpClasses,attrs:{title:e.$t("help.label")},on:{click:e.toggleTutorial,mouseenter:function(a){e.setMessage(e.$t("help.label")),e.hover=!0},mouseleave:function(a){e.setMessage(""),e.hover=!1}}},[n("font-awesome-icon",{directives:[{name:"show",rawName:"v-show",value:!e.snowflakes&&!e.tutorialEnabled,expression:"!snowflakes && !tutorialEnabled"}],attrs:{icon:"hat-wizard",transform:"rotate-22",size:"3x"}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.snowflakes&&!e.tutorialEnabled,expression:"snowflakes && !tutorialEnabled"}],staticClass:"santa-hat",attrs:{src:FU,alt:"Santa Hat by Theresa Knott [Public domain], via Wikimedia Commons"}}),n("font-awesome-icon",{directives:[{name:"show",rawName:"v-show",value:!e.snowflakes&&e.tutorialEnabled,expression:"!snowflakes && tutorialEnabled"}],attrs:{icon:"magic",transform:"rotate-185",size:"3x"}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.snowflakes&&e.tutorialEnabled,expression:"snowflakes && tutorialEnabled"}],staticClass:"jinglebell",attrs:{src:HU,alt:"Jingle Bell SVG Icon made from Icon Fonts is licensed by CC BY 3.0"}})],1),e.tutorialEnabled?n("iframe",{staticClass:"embedded-tutorial",attrs:{width:"560",height:"315",src:"https://www.youtube.com/embed/-imgglzDMdY?list=PLZlceRZZjRugJFL-vnenYnDrbMc6wu_e_",frameborder:"0",sandbox:"allow-scripts allow-same-origin",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}}):e._e(),e.snowflakes?n("SnowFlake"):e._e()],1)},VU=[];const{mapState:WU,mapMutations:jU}=RA("app"),zU={name:"app",components:{Spinner:mU,InfoBar:hD,SnowFlake:xU},data(){return{revision:"08282115f850453b3b135de7a9b81ae480dedb87",potatoFact:"QMK for potatoes",interval:12e4,destroyWatcher:void 0,panel:void 0,settingsClasses:"",hover:!1}},computed:{...AS("keymap",["isDirty"]),...WU(["showSpinner","spinnerMsg","message","tutorialEnabled","snowflakes"]),showInfoBar(){return this.message!==""},helpClasses(){var e=[];return this.hover&&e.push("faa-tada","animated-hover"),e.join(" ")}},async beforeMount(){await this.appLoad(),this.randomPotatoFact(),this.interval=setInterval(()=>{this.randomPotatoFact()},this.interval)},created(){window.addEventListener("beforeunload",this.showConfirmationPrompt)},mounted(){this.destroyWatcher=this.$store.watch(e=>e.app.settingsPanelVisible,this.toggleSettingsPanel)},beforeDestroy(){clearInterval(this.interval),dN(this.destroyWatcher)&&this.destroyWatcher(),window.removeEventListener("beforeunload",this.showConfirmationPrompt)},methods:{...jU(["setShowSpinner","setSettingsPanel","toggleTutorial","setMessage"]),...rC("app",["loadApplicationState"]),randomPotatoFact(){const e=tC(this.$t("potato"));this.potatoFact=this.$t("potato."+CA(1,e))},async appLoad(){await this.loadApplicationState()},dismiss(){this.setShowSpinner(!1)},showConfirmationPrompt(e){return this.isDirty===!0?(e.preventDefault(),e.returnValue="",!0):null},toggleSettingsPanel(e){e?(this.panel=this.$showPanel({component:UU,openOn:"right",props:{},width:"300px"}),this.panel.promise.then(()=>{this.setSettingsPanel(!1)})):(this.panel.hide(),this.panel=void 0)},showSettings(){this.setSettingsPanel(!0)}}},gR={};var JU=Er(zU,QU,VU,!1,XU,null,null,null);function XU(e){for(let t in gR)this[t]=gR[t]}const ZU=function(){return JU.exports}(),YU="modulepreload",qU=function(e){return"/"+e},LR={},ES=function(t,n,a){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=qU(o),o in LR)return;LR[o]=!0;const s=o.endsWith(".css"),u=s?'[rel="stylesheet"]':"";if(!!a)for(let S=i.length-1;S>=0;S--){const v=i[S];if(v.href===o&&(!s||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${u}`))return;const f=document.createElement("link");if(f.rel=s?"stylesheet":YU,s||(f.as="script",f.crossOrigin=""),f.href=o,document.head.appendChild(f),s)return new Promise((S,v)=>{f.addEventListener("load",S),f.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})};/*! +/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(w))))+" */"),W.styleSheet)W.styleSheet.cssText=X;else{for(;W.firstChild;)W.removeChild(W.firstChild);W.appendChild(document.createTextNode(X))}}},function(n,a){n.exports=function(o,s){for(var u=[],m={},f=0;fthis.$t(`settingsPanel.osKeyboardLayout.label.${t}`);return[...this.osKeyboardLayouts].sort((t,n)=>e(t).localeCompare(e(n)))}},methods:{...vc("keymap",["toggleContinuousInput"]),...vc("app",["setLegends","toggleTutorial","toggleSnowflakes"]),...rC("app",["toggleDarkMode","changeLanguage","changeOSKeyboardLayout","toggleClearLayerDefault"]),darkMode(){this.toggleDarkMode()},clearLayerDefault(){this.toggleClearLayerDefault()},help(e){switch(e){case"fastInput":this.helpText=this.$t("settingsPanel.fastInput.help");break;case"legends":this.helpText=this.$t("settingsPanel.legends.help");break;case"toggleTutorial":this.helpText=this.$t("settingsPanel.toggleTutorial.help");break;case"darkmode":this.helpText=this.$t("settingsPanel.darkmode.help");break;case"language":this.helpText=this.$t("settingsPanel.language.help");break;case"osKeyboardLayout":this.helpText=this.$t("settingsPanel.osKeyboardLayout.help");break;case"clearLayer":this.helpText=this.$t("settingsPanel.clearLayer.help");break}this.clearTextTimer&&(window.clearTimeout(this.clearTextTimer),this.clearTextTimer=void 0),this.clearTextTimer=window.setTimeout(()=>{this.helpText=void 0},5e3)}}},RR={};var IU=Er(NU,wU,OU,!1,DU,null,null,null);function DU(e){for(let t in RR)this[t]=RR[t]}const UU=function(){return IU.exports}();var kU=function(e,t){return t._c,t._m(0)},MU=[function(e,t){var n=t._c;return n("div",{staticClass:"snowflakes",attrs:{"aria-hidden":"true"}},[n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")])])}];const GU={},yR={};var BU=Er(GU,kU,MU,!0,$U,null,null,null);function $U(e){for(let t in yR)this[t]=yR[t]}const xU=function(){return BU.exports}(),FU="/assets/Santa_hat-caf4a6a3.svg",HU="/assets/jinglebell-32197867.svg";var QU=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"},on:{click:e.dismiss}},[n("span",{staticStyle:{display:"none"}},[e._v(e._s(e.revision))]),n("div",[n("header",[n("p",{staticClass:"random-potato"},[e._v(e._s(e.potatoFact))])]),n("router-view"),n("spinner",{attrs:{"is-visible":e.showSpinner,status:e.spinnerMsg}}),n("InfoBar",{attrs:{msg:e.message}})],1),n("slideout-panel"),n("footer",[n("p",[e._v(e._s(e.$t("maintain")))]),n("p",[e._v(e._s(e.$t("hostedOn")))]),n("p",{staticStyle:{"font-size":"10px"}},[e._v("version: "+e._s(e.revision))])]),n("div",{staticClass:"help",class:e.helpClasses,attrs:{title:e.$t("help.label")},on:{click:e.toggleTutorial,mouseenter:function(a){e.setMessage(e.$t("help.label")),e.hover=!0},mouseleave:function(a){e.setMessage(""),e.hover=!1}}},[n("font-awesome-icon",{directives:[{name:"show",rawName:"v-show",value:!e.snowflakes&&!e.tutorialEnabled,expression:"!snowflakes && !tutorialEnabled"}],attrs:{icon:"hat-wizard",transform:"rotate-22",size:"3x"}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.snowflakes&&!e.tutorialEnabled,expression:"snowflakes && !tutorialEnabled"}],staticClass:"santa-hat",attrs:{src:FU,alt:"Santa Hat by Theresa Knott [Public domain], via Wikimedia Commons"}}),n("font-awesome-icon",{directives:[{name:"show",rawName:"v-show",value:!e.snowflakes&&e.tutorialEnabled,expression:"!snowflakes && tutorialEnabled"}],attrs:{icon:"magic",transform:"rotate-185",size:"3x"}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.snowflakes&&e.tutorialEnabled,expression:"snowflakes && tutorialEnabled"}],staticClass:"jinglebell",attrs:{src:HU,alt:"Jingle Bell SVG Icon made from Icon Fonts is licensed by CC BY 3.0"}})],1),e.tutorialEnabled?n("iframe",{staticClass:"embedded-tutorial",attrs:{width:"560",height:"315",src:"https://www.youtube.com/embed/-imgglzDMdY?list=PLZlceRZZjRugJFL-vnenYnDrbMc6wu_e_",frameborder:"0",sandbox:"allow-scripts allow-same-origin",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}}):e._e(),e.snowflakes?n("SnowFlake"):e._e()],1)},VU=[];const{mapState:WU,mapMutations:jU}=RA("app"),zU={name:"app",components:{Spinner:mU,InfoBar:hD,SnowFlake:xU},data(){return{revision:"8b927e016e9c801aac1c55976322b8c6efc0163e",potatoFact:"QMK for potatoes",interval:12e4,destroyWatcher:void 0,panel:void 0,settingsClasses:"",hover:!1}},computed:{...AS("keymap",["isDirty"]),...WU(["showSpinner","spinnerMsg","message","tutorialEnabled","snowflakes"]),showInfoBar(){return this.message!==""},helpClasses(){var e=[];return this.hover&&e.push("faa-tada","animated-hover"),e.join(" ")}},async beforeMount(){await this.appLoad(),this.randomPotatoFact(),this.interval=setInterval(()=>{this.randomPotatoFact()},this.interval)},created(){window.addEventListener("beforeunload",this.showConfirmationPrompt)},mounted(){this.destroyWatcher=this.$store.watch(e=>e.app.settingsPanelVisible,this.toggleSettingsPanel)},beforeDestroy(){clearInterval(this.interval),dN(this.destroyWatcher)&&this.destroyWatcher(),window.removeEventListener("beforeunload",this.showConfirmationPrompt)},methods:{...jU(["setShowSpinner","setSettingsPanel","toggleTutorial","setMessage"]),...rC("app",["loadApplicationState"]),randomPotatoFact(){const e=tC(this.$t("potato"));this.potatoFact=this.$t("potato."+CA(1,e))},async appLoad(){await this.loadApplicationState()},dismiss(){this.setShowSpinner(!1)},showConfirmationPrompt(e){return this.isDirty===!0?(e.preventDefault(),e.returnValue="",!0):null},toggleSettingsPanel(e){e?(this.panel=this.$showPanel({component:UU,openOn:"right",props:{},width:"300px"}),this.panel.promise.then(()=>{this.setSettingsPanel(!1)})):(this.panel.hide(),this.panel=void 0)},showSettings(){this.setSettingsPanel(!0)}}},gR={};var JU=Er(zU,QU,VU,!1,XU,null,null,null);function XU(e){for(let t in gR)this[t]=gR[t]}const ZU=function(){return JU.exports}(),YU="modulepreload",qU=function(e){return"/"+e},LR={},ES=function(t,n,a){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=qU(o),o in LR)return;LR[o]=!0;const s=o.endsWith(".css"),u=s?'[rel="stylesheet"]':"";if(!!a)for(let S=i.length-1;S>=0;S--){const v=i[S];if(v.href===o&&(!s||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${u}`))return;const f=document.createElement("link");if(f.rel=s?"stylesheet":YU,s||(f.as="script",f.crossOrigin=""),f.href=o,document.head.appendChild(f),s)return new Promise((S,v)=>{f.addEventListener("load",S),f.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})};/*! * vue-router v3.5.3 * (c) 2021 Evan You * @license MIT - */function Sa(e,t){for(var n in t)e[n]=t[n];return e}var e2=/[!'()*]/g,t2=function(e){return"%"+e.charCodeAt(0).toString(16)},n2=/%2C/g,Ql=function(e){return encodeURIComponent(e).replace(e2,t2).replace(n2,",")};function oh(e){try{return decodeURIComponent(e)}catch{}return e}function a2(e,t,n){t===void 0&&(t={});var a=n||i2,i;try{i=a(e||"")}catch{i={}}for(var o in t){var s=t[o];i[o]=Array.isArray(s)?s.map(AR):AR(s)}return i}var AR=function(e){return e==null||typeof e=="object"?e:String(e)};function i2(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(n){var a=n.replace(/\+/g," ").split("="),i=oh(a.shift()),o=a.length>0?oh(a.join("=")):null;t[i]===void 0?t[i]=o:Array.isArray(t[i])?t[i].push(o):t[i]=[t[i],o]}),t}function r2(e){var t=e?Object.keys(e).map(function(n){var a=e[n];if(a===void 0)return"";if(a===null)return Ql(n);if(Array.isArray(a)){var i=[];return a.forEach(function(o){o!==void 0&&(o===null?i.push(Ql(n)):i.push(Ql(n)+"="+Ql(o)))}),i.join("&")}return Ql(n)+"="+Ql(a)}).filter(function(n){return n.length>0}).join("&"):null;return t?"?"+t:""}var gf=/\/?$/;function Lf(e,t,n,a){var i=a&&a.options.stringifyQuery,o=t.query||{};try{o=lh(o)}catch{}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:ER(t,i),matched:e?o2(e):[]};return n&&(s.redirectedFrom=ER(n,i)),Object.freeze(s)}function lh(e){if(Array.isArray(e))return e.map(lh);if(e&&typeof e=="object"){var t={};for(var n in e)t[n]=lh(e[n]);return t}else return e}var br=Lf(null,{path:"/"});function o2(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function ER(e,t){var n=e.path,a=e.query;a===void 0&&(a={});var i=e.hash;i===void 0&&(i="");var o=t||r2;return(n||"/")+o(a)+i}function LA(e,t,n){return t===br?e===t:t?e.path&&t.path?e.path.replace(gf,"")===t.path.replace(gf,"")&&(n||e.hash===t.hash&&Ym(e.query,t.query)):e.name&&t.name?e.name===t.name&&(n||e.hash===t.hash&&Ym(e.query,t.query)&&Ym(e.params,t.params)):!1:!1}function Ym(e,t){if(e===void 0&&(e={}),t===void 0&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),a=Object.keys(t).sort();return n.length!==a.length?!1:n.every(function(i,o){var s=e[i],u=a[o];if(u!==i)return!1;var m=t[i];return s==null||m==null?s===m:typeof s=="object"&&typeof m=="object"?Ym(s,m):String(s)===String(m)})}function l2(e,t){return e.path.replace(gf,"/").indexOf(t.path.replace(gf,"/"))===0&&(!t.hash||e.hash===t.hash)&&s2(e.query,t.query)}function s2(e,t){for(var n in t)if(!(n in e))return!1;return!0}function AA(e){for(var t=0;t=0&&(t=e.slice(a),e=e.slice(0,a));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function fr(e){return e.replace(/\/+/g,"/")}var Af=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},Ks=PA,m2=bS,f2=h2,C2=bA,d2=TA,p2=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function bS(e,t){for(var n=[],a=0,i=0,o="",s=t&&t.delimiter||"/",u;(u=p2.exec(e))!=null;){var m=u[0],f=u[1],S=u.index;if(o+=e.slice(i,S),i=S+m.length,f){o+=f[1];continue}var v=e[i],A=u[2],E=u[3],T=u[4],M=u[5],G=u[6],$=u[7];o&&(n.push(o),o="");var V=A!=null&&v!=null&&v!==A,H=G==="+"||G==="*",W=G==="?"||G==="*",z=u[2]||s,X=T||M;n.push({name:E||a++,prefix:A||"",delimiter:z,optional:W,repeat:H,partial:V,asterisk:!!$,pattern:X?v2(X):$?".*":"[^"+qm(z)+"]+?"})}return i1||!z.length)return z.length===0?t():t("span",{},z)}if(this.tag==="a")W.on=H,W.attrs={href:m,"aria-current":$};else{var X=wA(this.$slots.default);if(X){X.isStatic=!1;var Z=X.data=Sa({},X.data);Z.on=Z.on||{};for(var w in Z.on){var y=Z.on[w];w in H&&(Z.on[w]=Array.isArray(y)?y:[y])}for(var P in H)P in Z.on?Z.on[P].push(H[P]):Z.on[P]=V;var D=X.data.attrs=Sa({},X.data.attrs);D.href=m,D["aria-current"]=$}else W.on=H}return t(this.tag,W,this.$slots.default)}};function wR(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function wA(e){if(e){for(var t,n=0;n-1&&(G.params[W]=T.params[W]);return G.path=ef(V.path,G.params),A(V,G,M)}else if(G.path){G.params={};for(var z=0;z=e.length?n():e[i]?t(e[i],function(){a(i+1)}):a(i+1)};a(0)}var Go={redirected:2,aborted:4,cancelled:8,duplicated:16};function M2(e,t){return cC(e,t,Go.redirected,'Redirected when going from "'+e.fullPath+'" to "'+x2(t)+'" via a navigation guard.')}function G2(e,t){var n=cC(e,t,Go.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function kR(e,t){return cC(e,t,Go.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function B2(e,t){return cC(e,t,Go.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function cC(e,t,n,a){var i=new Error(a);return i._isRouter=!0,i.from=e,i.to=t,i.type=n,i}var $2=["params","query","hash"];function x2(e){if(typeof e=="string")return e;if("path"in e)return e.path;var t={};return $2.forEach(function(n){n in e&&(t[n]=e[n])}),JSON.stringify(t,null,2)}function Tf(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function uC(e,t){return Tf(e)&&e._isRouter&&(t==null||e.type===t)}function F2(e){return function(t,n,a){var i=!1,o=0,s=null;MA(e,function(u,m,f,S){if(typeof u=="function"&&u.cid===void 0){i=!0,o++;var v=MR(function(M){Q2(M)&&(M=M.default),u.resolved=typeof M=="function"?M:Ef.extend(M),f.components[S]=M,o--,o<=0&&a()}),A=MR(function(M){var G="Failed to resolve async component "+S+": "+M;s||(s=Tf(M)?M:new Error(G),a(s))}),E;try{E=u(v,A)}catch(M){A(M)}if(E)if(typeof E.then=="function")E.then(v,A);else{var T=E.component;T&&typeof T.then=="function"&&T.then(v,A)}}}),i||a()}}function MA(e,t){return GA(e.map(function(n){return Object.keys(n.components).map(function(a){return t(n.components[a],n.instances[a],n,a)})}))}function GA(e){return Array.prototype.concat.apply([],e)}var H2=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Q2(e){return e.__esModule||H2&&e[Symbol.toStringTag]==="Module"}function MR(e){var t=!1;return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(!t)return t=!0,e.apply(this,n)}}var ba=function(t,n){this.router=t,this.base=V2(n),this.current=br,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};ba.prototype.listen=function(t){this.cb=t};ba.prototype.onReady=function(t,n){this.ready?t():(this.readyCbs.push(t),n&&this.readyErrorCbs.push(n))};ba.prototype.onError=function(t){this.errorCbs.push(t)};ba.prototype.transitionTo=function(t,n,a){var i=this,o;try{o=this.router.match(t,this.current)}catch(u){throw this.errorCbs.forEach(function(m){m(u)}),u}var s=this.current;this.confirmTransition(o,function(){i.updateRoute(o),n&&n(o),i.ensureURL(),i.router.afterHooks.forEach(function(u){u&&u(o,s)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(u){u(o)}))},function(u){a&&a(u),u&&!i.ready&&(!uC(u,Go.redirected)||s!==br)&&(i.ready=!0,i.readyErrorCbs.forEach(function(m){m(u)}))})};ba.prototype.confirmTransition=function(t,n,a){var i=this,o=this.current;this.pending=t;var s=function(M){!uC(M)&&Tf(M)&&(i.errorCbs.length?i.errorCbs.forEach(function(G){G(M)}):console.error(M)),a&&a(M)},u=t.matched.length-1,m=o.matched.length-1;if(LA(t,o)&&u===m&&t.matched[u]===o.matched[m])return this.ensureURL(),t.hash&&Cr(this.router,o,t,!1),s(G2(o,t));var f=W2(this.current.matched,t.matched),S=f.updated,v=f.deactivated,A=f.activated,E=[].concat(z2(v),this.router.beforeHooks,J2(S),A.map(function(M){return M.beforeEnter}),F2(A)),T=function(M,G){if(i.pending!==t)return s(kR(o,t));try{M(t,o,function($){$===!1?(i.ensureURL(!0),s(B2(o,t))):Tf($)?(i.ensureURL(!0),s($)):typeof $=="string"||typeof $=="object"&&(typeof $.path=="string"||typeof $.name=="string")?(s(M2(o,t)),typeof $=="object"&&$.replace?i.replace($):i.push($)):G($)})}catch($){s($)}};UR(E,T,function(){var M=X2(A),G=M.concat(i.router.resolveHooks);UR(G,T,function(){if(i.pending!==t)return s(kR(o,t));i.pending=null,n(t),i.router.app&&i.router.app.$nextTick(function(){AA(t)})})})};ba.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)};ba.prototype.setupListeners=function(){};ba.prototype.teardown=function(){this.listeners.forEach(function(t){t()}),this.listeners=[],this.current=br,this.pending=null};function V2(e){if(!e)if(Dc){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return e.charAt(0)!=="/"&&(e="/"+e),e.replace(/\/$/,"")}function W2(e,t){var n,a=Math.max(e.length,t.length);for(n=0;n0)){var i=this.router,o=i.options.scrollBehavior,s=dr&&o;s&&this.listeners.push(UA());var u=function(){var m=a.current,f=tc(a.base);a.current===br&&f===a._startLocation||a.transitionTo(f,function(S){s&&Cr(i,S,m,!0)})};window.addEventListener("popstate",u),this.listeners.push(function(){window.removeEventListener("popstate",u)})}},t.prototype.go=function(a){window.history.go(a)},t.prototype.push=function(a,i,o){var s=this,u=this,m=u.current;this.transitionTo(a,function(f){bf(fr(s.base+f.fullPath)),Cr(s.router,f,m,!1),i&&i(f)},o)},t.prototype.replace=function(a,i,o){var s=this,u=this,m=u.current;this.transitionTo(a,function(f){ch(fr(s.base+f.fullPath)),Cr(s.router,f,m,!1),i&&i(f)},o)},t.prototype.ensureURL=function(a){if(tc(this.base)!==this.current.fullPath){var i=fr(this.base+this.current.fullPath);a?bf(i):ch(i)}},t.prototype.getCurrentLocation=function(){return tc(this.base)},t}(ba);function tc(e){var t=window.location.pathname,n=t.toLowerCase(),a=e.toLowerCase();return e&&(n===a||n.indexOf(fr(a+"/"))===0)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var xA=function(e){function t(n,a,i){e.call(this,n,a),!(i&&Y2(this.base))&&GR()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var a=this;if(!(this.listeners.length>0)){var i=this.router,o=i.options.scrollBehavior,s=dr&&o;s&&this.listeners.push(UA());var u=function(){var f=a.current;GR()&&a.transitionTo(tf(),function(S){s&&Cr(a.router,S,f,!0),dr||nf(S.fullPath)})},m=dr?"popstate":"hashchange";window.addEventListener(m,u),this.listeners.push(function(){window.removeEventListener(m,u)})}},t.prototype.push=function(a,i,o){var s=this,u=this,m=u.current;this.transitionTo(a,function(f){BR(f.fullPath),Cr(s.router,f,m,!1),i&&i(f)},o)},t.prototype.replace=function(a,i,o){var s=this,u=this,m=u.current;this.transitionTo(a,function(f){nf(f.fullPath),Cr(s.router,f,m,!1),i&&i(f)},o)},t.prototype.go=function(a){window.history.go(a)},t.prototype.ensureURL=function(a){var i=this.current.fullPath;tf()!==i&&(a?BR(i):nf(i))},t.prototype.getCurrentLocation=function(){return tf()},t}(ba);function Y2(e){var t=tc(e);if(!/^\/#/.test(t))return window.location.replace(fr(e+"/#"+t)),!0}function GR(){var e=tf();return e.charAt(0)==="/"?!0:(nf("/"+e),!1)}function tf(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function uh(e){var t=window.location.href,n=t.indexOf("#"),a=n>=0?t.slice(0,n):t;return a+"#"+e}function BR(e){dr?bf(uh(e)):window.location.hash=e}function nf(e){dr?ch(uh(e)):window.location.replace(uh(e))}var q2=function(e){function t(n,a){e.call(this,n,a),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(a,i,o){var s=this;this.transitionTo(a,function(u){s.stack=s.stack.slice(0,s.index+1).concat(u),s.index++,i&&i(u)},o)},t.prototype.replace=function(a,i,o){var s=this;this.transitionTo(a,function(u){s.stack=s.stack.slice(0,s.index).concat(u),i&&i(u)},o)},t.prototype.go=function(a){var i=this,o=this.index+a;if(!(o<0||o>=this.stack.length)){var s=this.stack[o];this.confirmTransition(s,function(){var u=i.current;i.index=o,i.updateRoute(s),i.router.afterHooks.forEach(function(m){m&&m(s,u)})},function(u){uC(u,Go.duplicated)&&(i.index=o)})}},t.prototype.getCurrentLocation=function(){var a=this.stack[this.stack.length-1];return a?a.fullPath:"/"},t.prototype.ensureURL=function(){},t}(ba),It=function(t){t===void 0&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=P2(t.routes||[],this);var n=t.mode||"hash";switch(this.fallback=n==="history"&&!dr&&t.fallback!==!1,this.fallback&&(n="hash"),Dc||(n="abstract"),this.mode=n,n){case"history":this.history=new $A(this,t.base);break;case"hash":this.history=new xA(this,t.base,this.fallback);break;case"abstract":this.history=new q2(this,t.base);break}},FA={currentRoute:{configurable:!0}};It.prototype.match=function(t,n,a){return this.matcher.match(t,n,a)};FA.currentRoute.get=function(){return this.history&&this.history.current};It.prototype.init=function(t){var n=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var s=n.apps.indexOf(t);s>-1&&n.apps.splice(s,1),n.app===t&&(n.app=n.apps[0]||null),n.app||n.history.teardown()}),!this.app){this.app=t;var a=this.history;if(a instanceof $A||a instanceof xA){var i=function(s){var u=a.current,m=n.options.scrollBehavior,f=dr&&m;f&&"fullPath"in s&&Cr(n,s,u,!1)},o=function(s){a.setupListeners(),i(s)};a.transitionTo(a.getCurrentLocation(),o,o)}a.listen(function(s){n.apps.forEach(function(u){u._route=s})})}};It.prototype.beforeEach=function(t){return NS(this.beforeHooks,t)};It.prototype.beforeResolve=function(t){return NS(this.resolveHooks,t)};It.prototype.afterEach=function(t){return NS(this.afterHooks,t)};It.prototype.onReady=function(t,n){this.history.onReady(t,n)};It.prototype.onError=function(t){this.history.onError(t)};It.prototype.push=function(t,n,a){var i=this;if(!n&&!a&&typeof Promise<"u")return new Promise(function(o,s){i.history.push(t,o,s)});this.history.push(t,n,a)};It.prototype.replace=function(t,n,a){var i=this;if(!n&&!a&&typeof Promise<"u")return new Promise(function(o,s){i.history.replace(t,o,s)});this.history.replace(t,n,a)};It.prototype.go=function(t){this.history.go(t)};It.prototype.back=function(){this.go(-1)};It.prototype.forward=function(){this.go(1)};It.prototype.getMatchedComponents=function(t){var n=t?t.matched?t:this.resolve(t).route:this.currentRoute;return n?[].concat.apply([],n.matched.map(function(a){return Object.keys(a.components).map(function(i){return a.components[i]})})):[]};It.prototype.resolve=function(t,n,a){n=n||this.history.current;var i=wS(t,n,a,this),o=this.match(i,n),s=o.redirectedFrom||o.fullPath,u=this.history.base,m=ek(u,s,this.mode);return{location:i,route:o,href:m,normalizedTo:i,resolved:o}};It.prototype.getRoutes=function(){return this.matcher.getRoutes()};It.prototype.addRoute=function(t,n){this.matcher.addRoute(t,n),this.history.current!==br&&this.history.transitionTo(this.history.getCurrentLocation())};It.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==br&&this.history.transitionTo(this.history.getCurrentLocation())};Object.defineProperties(It.prototype,FA);function NS(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function ek(e,t,n){var a=n==="hash"?"#"+t:t;return e?fr(e+"/"+a):a}It.install=sh;It.version="3.5.3";It.isNavigationFailure=uC;It.NavigationFailureType=Go;It.START_LOCATION=br;Dc&&window.Vue&&window.Vue.use(It);const HA=It,$R=()=>ES(()=>import("./Home-a106e502.js"),["assets/Home-a106e502.js","assets/BaseKey-7e76d71b.js","assets/BaseKey-34f28bd3.css","assets/Home-fe6589aa.css"]),tk=()=>ES(()=>import("./Print-dc4bde9c.js"),["assets/Print-dc4bde9c.js","assets/BaseKey-7e76d71b.js","assets/BaseKey-34f28bd3.css","assets/Print-76aa46fc.css"]),nk=()=>ES(()=>import("./Test-9dee98e2.js"),["assets/Test-9dee98e2.js","assets/BaseKey-7e76d71b.js","assets/BaseKey-34f28bd3.css","assets/Test-a430b51d.css"]);Pe.use(HA);const ak=new HA({routes:[{path:"/:keyboardP(.+)/:layoutP(.+)",component:$R,name:"home"},{path:"/print",component:tk,name:"print"},{path:"/test",component:nk,name:"test"},{path:"*",component:$R}]}),IS={configuratorSettings:"configuratorSettings",configuratorSettingsVersion:2};function ik(e){return localStorage?localStorage.getItem(e):null}function rk(e,t){localStorage&&localStorage.setItem(e,t)}const ok=["keymap_belgian","keymap_bepo","keymap_brazilian_abnt2","keymap_canadian_multilingual","keymap_colemak","keymap_croatian","keymap_czech","keymap_danish","keymap_dvorak_fr","keymap_dvorak","keymap_dvorak_programmer","keymap_estonian","keymap_finnish","keymap_french_afnor","keymap_french","keymap_french_mac_iso","keymap_german","keymap_greek","keymap_hebrew","keymap_hungarian","keymap_icelandic","keymap_irish","keymap_italian","keymap_italian_mac_ansi","keymap_italian_mac_iso","keymap_japanese","keymap_korean","keymap_latvian","keymap_lithuanian_azerty","keymap_lithuanian_qwerty","keymap_neo2","keymap_norman","keymap_norwegian","keymap_polish","keymap_portuguese","keymap_portuguese_mac_iso","keymap_romanian","keymap_russian","keymap_serbian","keymap_serbian_latin","keymap_slovak","keymap_slovenian","keymap_spanish_dvorak","keymap_spanish","keymap_spanish_latin_america","keymap_swedish","keymap_swedish_mac_ansi","keymap_swedish_mac_iso","keymap_swedish_pro_mac_ansi","keymap_swedish_pro_mac_iso","keymap_swiss_de","keymap_swiss_fr","keymap_turkish_f","keymap_turkish_q","keymap_uk","keymap_ukrainian","keymap_us_extended","keymap_us_international","keymap_us_international_linux","keymap_us","keymap_workman","keymap_workman_zxcvm"];function xR(){const e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return{version:IS.configuratorSettingsVersion,darkmodeEnabled:e,favoriteKeyboard:"",favoriteColor:"",clearLayerDefault:!1,iso:!1,osKeyboardLayout:"keymap_us"}}function lk(){try{return{...xR(),...JSON.parse(ik(IS.configuratorSettings))}}catch{return xR()}}const sk={keyboard:"",keyboardMeta:{},configuratorSettings:lk(),keyboards:[],appInitialized:!1,_keyboards:[],layout:"",layouts:{},keymapName:"",compileDisabled:!1,isPreview:!1,previewRequested:!1,jobID:"",enableDownloads:!1,firmwareBinaryURL:[],firmwareSourceURL:[],firmwareFile:"",keymapSourceURL:[],filter:"",keypressListener:void 0,showSpinner:!1,spinnerMsg:"",message:"",settingsPanelVisible:!1,author:"",notes:"",tutorialEnabled:!1,electron:!1,languages:[{value:"en",label:"English"},{value:"de",label:"Deutsch"},{value:"es",label:"Español"},{value:"fr",label:"Français"},{value:"it",label:"Italiano"},{value:"ms",label:"Bahasa Malaysia"},{value:"pl-PL",label:"Polski"},{value:"pt-BR",label:"Português brasileiro"},{value:"ru",label:"Русский"},{value:"ja",label:"日本語"},{value:"zh-CN",label:"简体中文"},{value:"zh-TW",label:"繁體中文(台灣)"},{value:"zh-HK",label:"繁體中文(香港)"}],legends:"keymap",legendTypes:["keymap","matrix","index","size"],osKeyboardLayouts:ok,snowflakes:!1},_k={...sk};function ck(e){return e===void 0}var uk=ck;const Mt=cn(uk),mk={firmwareFile:e=>e.firmwareFile,validateKeyboard:e=>t=>{const n=e.keyboards.includes(t);return console.info(`Validate keyboard:${t} valid:${n}`),n},filter:e=>e.filter,exportKeymapName:e=>{let t=e.keymapName.replace(/[\s/]/g,"_").toLowerCase(),n=e.keyboard.replace(/[\s/]/g,"_").toLowerCase();return t===""?t=`${n}_${e.layout}_mine`.toLowerCase():t=`${n}_${t}`.toLowerCase(),t=t.replace(/[^a-z0-9_-]/gi,""),t},keyCount:e=>tC(e.layouts)>0&&!Mt(e.layout)&&!Mt(e.layouts[e.layout])?e.layouts[e.layout].length:0,osKeyboardLayout:e=>e.configuratorSettings.osKeyboardLayout},fk={...mk};function QA(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ck}=Object.prototype,{getPrototypeOf:DS}=Object,mC=(e=>t=>{const n=Ck.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ta=e=>(e=e.toLowerCase(),t=>mC(t)===e),fC=e=>t=>typeof t===e,{isArray:vs}=Array,Rc=fC("undefined");function dk(e){return e!==null&&!Rc(e)&&e.constructor!==null&&!Rc(e.constructor)&&Bn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const VA=Ta("ArrayBuffer");function pk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&VA(e.buffer),t}const hk=fC("string"),Bn=fC("function"),WA=fC("number"),CC=e=>e!==null&&typeof e=="object",Sk=e=>e===!0||e===!1,af=e=>{if(mC(e)!=="object")return!1;const t=DS(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Kk=Ta("Date"),vk=Ta("File"),Rk=Ta("Blob"),yk=Ta("FileList"),gk=e=>CC(e)&&Bn(e.pipe),Lk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Bn(e.append)&&((t=mC(e))==="formdata"||t==="object"&&Bn(e.toString)&&e.toString()==="[object FormData]"))},Ak=Ta("URLSearchParams"),[Ek,bk,Tk,Pk]=["ReadableStream","Request","Response","Headers"].map(Ta),wk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Uc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,i;if(typeof e!="object"&&(e=[e]),vs(e))for(a=0,i=e.length;a0;)if(i=n[a],t===i.toLowerCase())return i;return null}const ho=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),zA=e=>!Rc(e)&&e!==ho;function mh(){const{caseless:e}=zA(this)&&this||{},t={},n=(a,i)=>{const o=e&&jA(t,i)||i;af(t[o])&&af(a)?t[o]=mh(t[o],a):af(a)?t[o]=mh({},a):vs(a)?t[o]=a.slice():t[o]=a};for(let a=0,i=arguments.length;a(Uc(t,(i,o)=>{n&&Bn(i)?e[o]=QA(i,n):e[o]=i},{allOwnKeys:a}),e),Nk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ik=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Dk=(e,t,n,a)=>{let i,o,s;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!a||a(s,e,t))&&!u[s]&&(t[s]=e[s],u[s]=!0);e=n!==!1&&DS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Uk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},kk=e=>{if(!e)return null;if(vs(e))return e;let t=e.length;if(!WA(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Mk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&DS(Uint8Array)),Gk=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=a.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Bk=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},$k=Ta("HTMLFormElement"),xk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,i){return a.toUpperCase()+i}),FR=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Fk=Ta("RegExp"),JA=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};Uc(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(a[o]=s||i)}),Object.defineProperties(e,a)},Hk=e=>{JA(e,(t,n)=>{if(Bn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(Bn(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Qk=(e,t)=>{const n={},a=i=>{i.forEach(o=>{n[o]=!0})};return vs(e)?a(e):a(String(e).split(t)),n},Vk=()=>{},Wk=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,cp="abcdefghijklmnopqrstuvwxyz",HR="0123456789",XA={DIGIT:HR,ALPHA:cp,ALPHA_DIGIT:cp+cp.toUpperCase()+HR},jk=(e=16,t=XA.ALPHA_DIGIT)=>{let n="";const{length:a}=t;for(;e--;)n+=t[Math.random()*a|0];return n};function zk(e){return!!(e&&Bn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Jk=e=>{const t=new Array(10),n=(a,i)=>{if(CC(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[i]=a;const o=vs(a)?[]:{};return Uc(a,(s,u)=>{const m=n(s,i+1);!Rc(m)&&(o[u]=m)}),t[i]=void 0,o}}return a};return n(e,0)},Xk=Ta("AsyncFunction"),Zk=e=>e&&(CC(e)||Bn(e))&&Bn(e.then)&&Bn(e.catch),ZA=((e,t)=>e?setImmediate:t?((n,a)=>(ho.addEventListener("message",({source:i,data:o})=>{i===ho&&o===n&&a.length&&a.shift()()},!1),i=>{a.push(i),ho.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Bn(ho.postMessage)),Yk=typeof queueMicrotask<"u"?queueMicrotask.bind(ho):typeof process<"u"&&process.nextTick||ZA,ce={isArray:vs,isArrayBuffer:VA,isBuffer:dk,isFormData:Lk,isArrayBufferView:pk,isString:hk,isNumber:WA,isBoolean:Sk,isObject:CC,isPlainObject:af,isReadableStream:Ek,isRequest:bk,isResponse:Tk,isHeaders:Pk,isUndefined:Rc,isDate:Kk,isFile:vk,isBlob:Rk,isRegExp:Fk,isFunction:Bn,isStream:gk,isURLSearchParams:Ak,isTypedArray:Mk,isFileList:yk,forEach:Uc,merge:mh,extend:Ok,trim:wk,stripBOM:Nk,inherits:Ik,toFlatObject:Dk,kindOf:mC,kindOfTest:Ta,endsWith:Uk,toArray:kk,forEachEntry:Gk,matchAll:Bk,isHTMLForm:$k,hasOwnProperty:FR,hasOwnProp:FR,reduceDescriptors:JA,freezeMethods:Hk,toObjectSet:Qk,toCamelCase:xk,noop:Vk,toFiniteNumber:Wk,findKey:jA,global:ho,isContextDefined:zA,ALPHABET:XA,generateString:jk,isSpecCompliantForm:zk,toJSONObject:Jk,isAsyncFn:Xk,isThenable:Zk,setImmediate:ZA,asap:Yk};function Fe(e,t,n,a,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),i&&(this.response=i)}ce.inherits(Fe,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:ce.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const YA=Fe.prototype,qA={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qA[e]={value:e}});Object.defineProperties(Fe,qA);Object.defineProperty(YA,"isAxiosError",{value:!0});Fe.from=(e,t,n,a,i,o)=>{const s=Object.create(YA);return ce.toFlatObject(e,s,function(m){return m!==Error.prototype},u=>u!=="isAxiosError"),Fe.call(s,e.message,t,n,a,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const qk=null;function fh(e){return ce.isPlainObject(e)||ce.isArray(e)}function eE(e){return ce.endsWith(e,"[]")?e.slice(0,-2):e}function QR(e,t,n){return e?e.concat(t).map(function(i,o){return i=eE(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function eM(e){return ce.isArray(e)&&!e.some(fh)}const tM=ce.toFlatObject(ce,{},null,function(t){return/^is[A-Z]/.test(t)});function dC(e,t,n){if(!ce.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ce.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(M,G){return!ce.isUndefined(G[M])});const a=n.metaTokens,i=n.visitor||S,o=n.dots,s=n.indexes,m=(n.Blob||typeof Blob<"u"&&Blob)&&ce.isSpecCompliantForm(t);if(!ce.isFunction(i))throw new TypeError("visitor must be a function");function f(T){if(T===null)return"";if(ce.isDate(T))return T.toISOString();if(!m&&ce.isBlob(T))throw new Fe("Blob is not supported. Use a Buffer instead.");return ce.isArrayBuffer(T)||ce.isTypedArray(T)?m&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function S(T,M,G){let $=T;if(T&&!G&&typeof T=="object"){if(ce.endsWith(M,"{}"))M=a?M:M.slice(0,-2),T=JSON.stringify(T);else if(ce.isArray(T)&&eM(T)||(ce.isFileList(T)||ce.endsWith(M,"[]"))&&($=ce.toArray(T)))return M=eE(M),$.forEach(function(H,W){!(ce.isUndefined(H)||H===null)&&t.append(s===!0?QR([M],W,o):s===null?M:M+"[]",f(H))}),!1}return fh(T)?!0:(t.append(QR(G,M,o),f(T)),!1)}const v=[],A=Object.assign(tM,{defaultVisitor:S,convertValue:f,isVisitable:fh});function E(T,M){if(!ce.isUndefined(T)){if(v.indexOf(T)!==-1)throw Error("Circular reference detected in "+M.join("."));v.push(T),ce.forEach(T,function($,V){(!(ce.isUndefined($)||$===null)&&i.call(t,$,ce.isString(V)?V.trim():V,M,A))===!0&&E($,M?M.concat(V):[V])}),v.pop()}}if(!ce.isObject(e))throw new TypeError("data must be an object");return E(e),t}function VR(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function US(e,t){this._pairs=[],e&&dC(e,this,t)}const tE=US.prototype;tE.append=function(t,n){this._pairs.push([t,n])};tE.toString=function(t){const n=t?function(a){return t.call(this,a,VR)}:VR;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function nM(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nE(e,t,n){if(!t)return e;const a=n&&n.encode||nM,i=n&&n.serialize;let o;if(i?o=i(t,n):o=ce.isURLSearchParams(t)?t.toString():new US(t,n).toString(a),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class aM{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ce.forEach(this.handlers,function(a){a!==null&&t(a)})}}const WR=aM,aE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},iM=typeof URLSearchParams<"u"?URLSearchParams:US,rM=typeof FormData<"u"?FormData:null,oM=typeof Blob<"u"?Blob:null,lM={isBrowser:!0,classes:{URLSearchParams:iM,FormData:rM,Blob:oM},protocols:["http","https","file","blob","url","data"]},kS=typeof window<"u"&&typeof document<"u",sM=(e=>kS&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),_M=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),cM=kS&&window.location.href||"http://localhost",uM=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kS,hasStandardBrowserEnv:sM,hasStandardBrowserWebWorkerEnv:_M,origin:cM},Symbol.toStringTag,{value:"Module"})),ya={...uM,...lM};function mM(e,t){return dC(e,new ya.classes.URLSearchParams,Object.assign({visitor:function(n,a,i,o){return ya.isNode&&ce.isBuffer(n)?(this.append(a,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function fM(e){return ce.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function CM(e){const t={},n=Object.keys(e);let a;const i=n.length;let o;for(a=0;a=n.length;return s=!s&&ce.isArray(i)?i.length:s,m?(ce.hasOwnProp(i,s)?i[s]=[i[s],a]:i[s]=a,!u):((!i[s]||!ce.isObject(i[s]))&&(i[s]=[]),t(n,a,i[s],o)&&ce.isArray(i[s])&&(i[s]=CM(i[s])),!u)}if(ce.isFormData(e)&&ce.isFunction(e.entries)){const n={};return ce.forEachEntry(e,(a,i)=>{t(fM(a),i,n,0)}),n}return null}function dM(e,t,n){if(ce.isString(e))try{return(t||JSON.parse)(e),ce.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(e)}const MS={transitional:aE,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const a=n.getContentType()||"",i=a.indexOf("application/json")>-1,o=ce.isObject(t);if(o&&ce.isHTMLForm(t)&&(t=new FormData(t)),ce.isFormData(t))return i?JSON.stringify(iE(t)):t;if(ce.isArrayBuffer(t)||ce.isBuffer(t)||ce.isStream(t)||ce.isFile(t)||ce.isBlob(t)||ce.isReadableStream(t))return t;if(ce.isArrayBufferView(t))return t.buffer;if(ce.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(a.indexOf("application/x-www-form-urlencoded")>-1)return mM(t,this.formSerializer).toString();if((u=ce.isFileList(t))||a.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return dC(u?{"files[]":t}:t,m&&new m,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),dM(t)):t}],transformResponse:[function(t){const n=this.transitional||MS.transitional,a=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ce.isResponse(t)||ce.isReadableStream(t))return t;if(t&&ce.isString(t)&&(a&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(u){if(s)throw u.name==="SyntaxError"?Fe.from(u,Fe.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ya.classes.FormData,Blob:ya.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ce.forEach(["delete","get","head","post","put","patch"],e=>{MS.headers[e]={}});const GS=MS,pM=ce.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"]),hM=e=>{const t={};let n,a,i;return e&&e.split(` + */function Sa(e,t){for(var n in t)e[n]=t[n];return e}var e2=/[!'()*]/g,t2=function(e){return"%"+e.charCodeAt(0).toString(16)},n2=/%2C/g,Ql=function(e){return encodeURIComponent(e).replace(e2,t2).replace(n2,",")};function oh(e){try{return decodeURIComponent(e)}catch{}return e}function a2(e,t,n){t===void 0&&(t={});var a=n||i2,i;try{i=a(e||"")}catch{i={}}for(var o in t){var s=t[o];i[o]=Array.isArray(s)?s.map(AR):AR(s)}return i}var AR=function(e){return e==null||typeof e=="object"?e:String(e)};function i2(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(n){var a=n.replace(/\+/g," ").split("="),i=oh(a.shift()),o=a.length>0?oh(a.join("=")):null;t[i]===void 0?t[i]=o:Array.isArray(t[i])?t[i].push(o):t[i]=[t[i],o]}),t}function r2(e){var t=e?Object.keys(e).map(function(n){var a=e[n];if(a===void 0)return"";if(a===null)return Ql(n);if(Array.isArray(a)){var i=[];return a.forEach(function(o){o!==void 0&&(o===null?i.push(Ql(n)):i.push(Ql(n)+"="+Ql(o)))}),i.join("&")}return Ql(n)+"="+Ql(a)}).filter(function(n){return n.length>0}).join("&"):null;return t?"?"+t:""}var gf=/\/?$/;function Lf(e,t,n,a){var i=a&&a.options.stringifyQuery,o=t.query||{};try{o=lh(o)}catch{}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:ER(t,i),matched:e?o2(e):[]};return n&&(s.redirectedFrom=ER(n,i)),Object.freeze(s)}function lh(e){if(Array.isArray(e))return e.map(lh);if(e&&typeof e=="object"){var t={};for(var n in e)t[n]=lh(e[n]);return t}else return e}var br=Lf(null,{path:"/"});function o2(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function ER(e,t){var n=e.path,a=e.query;a===void 0&&(a={});var i=e.hash;i===void 0&&(i="");var o=t||r2;return(n||"/")+o(a)+i}function LA(e,t,n){return t===br?e===t:t?e.path&&t.path?e.path.replace(gf,"")===t.path.replace(gf,"")&&(n||e.hash===t.hash&&Ym(e.query,t.query)):e.name&&t.name?e.name===t.name&&(n||e.hash===t.hash&&Ym(e.query,t.query)&&Ym(e.params,t.params)):!1:!1}function Ym(e,t){if(e===void 0&&(e={}),t===void 0&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),a=Object.keys(t).sort();return n.length!==a.length?!1:n.every(function(i,o){var s=e[i],u=a[o];if(u!==i)return!1;var m=t[i];return s==null||m==null?s===m:typeof s=="object"&&typeof m=="object"?Ym(s,m):String(s)===String(m)})}function l2(e,t){return e.path.replace(gf,"/").indexOf(t.path.replace(gf,"/"))===0&&(!t.hash||e.hash===t.hash)&&s2(e.query,t.query)}function s2(e,t){for(var n in t)if(!(n in e))return!1;return!0}function AA(e){for(var t=0;t=0&&(t=e.slice(a),e=e.slice(0,a));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function fr(e){return e.replace(/\/+/g,"/")}var Af=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},Ks=PA,m2=bS,f2=h2,C2=bA,d2=TA,p2=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function bS(e,t){for(var n=[],a=0,i=0,o="",s=t&&t.delimiter||"/",u;(u=p2.exec(e))!=null;){var m=u[0],f=u[1],S=u.index;if(o+=e.slice(i,S),i=S+m.length,f){o+=f[1];continue}var v=e[i],A=u[2],E=u[3],T=u[4],M=u[5],G=u[6],$=u[7];o&&(n.push(o),o="");var V=A!=null&&v!=null&&v!==A,H=G==="+"||G==="*",W=G==="?"||G==="*",z=u[2]||s,X=T||M;n.push({name:E||a++,prefix:A||"",delimiter:z,optional:W,repeat:H,partial:V,asterisk:!!$,pattern:X?v2(X):$?".*":"[^"+qm(z)+"]+?"})}return i1||!z.length)return z.length===0?t():t("span",{},z)}if(this.tag==="a")W.on=H,W.attrs={href:m,"aria-current":$};else{var X=wA(this.$slots.default);if(X){X.isStatic=!1;var Z=X.data=Sa({},X.data);Z.on=Z.on||{};for(var w in Z.on){var y=Z.on[w];w in H&&(Z.on[w]=Array.isArray(y)?y:[y])}for(var P in H)P in Z.on?Z.on[P].push(H[P]):Z.on[P]=V;var D=X.data.attrs=Sa({},X.data.attrs);D.href=m,D["aria-current"]=$}else W.on=H}return t(this.tag,W,this.$slots.default)}};function wR(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function wA(e){if(e){for(var t,n=0;n-1&&(G.params[W]=T.params[W]);return G.path=ef(V.path,G.params),A(V,G,M)}else if(G.path){G.params={};for(var z=0;z=e.length?n():e[i]?t(e[i],function(){a(i+1)}):a(i+1)};a(0)}var Go={redirected:2,aborted:4,cancelled:8,duplicated:16};function M2(e,t){return cC(e,t,Go.redirected,'Redirected when going from "'+e.fullPath+'" to "'+x2(t)+'" via a navigation guard.')}function G2(e,t){var n=cC(e,t,Go.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function kR(e,t){return cC(e,t,Go.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function B2(e,t){return cC(e,t,Go.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function cC(e,t,n,a){var i=new Error(a);return i._isRouter=!0,i.from=e,i.to=t,i.type=n,i}var $2=["params","query","hash"];function x2(e){if(typeof e=="string")return e;if("path"in e)return e.path;var t={};return $2.forEach(function(n){n in e&&(t[n]=e[n])}),JSON.stringify(t,null,2)}function Tf(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function uC(e,t){return Tf(e)&&e._isRouter&&(t==null||e.type===t)}function F2(e){return function(t,n,a){var i=!1,o=0,s=null;MA(e,function(u,m,f,S){if(typeof u=="function"&&u.cid===void 0){i=!0,o++;var v=MR(function(M){Q2(M)&&(M=M.default),u.resolved=typeof M=="function"?M:Ef.extend(M),f.components[S]=M,o--,o<=0&&a()}),A=MR(function(M){var G="Failed to resolve async component "+S+": "+M;s||(s=Tf(M)?M:new Error(G),a(s))}),E;try{E=u(v,A)}catch(M){A(M)}if(E)if(typeof E.then=="function")E.then(v,A);else{var T=E.component;T&&typeof T.then=="function"&&T.then(v,A)}}}),i||a()}}function MA(e,t){return GA(e.map(function(n){return Object.keys(n.components).map(function(a){return t(n.components[a],n.instances[a],n,a)})}))}function GA(e){return Array.prototype.concat.apply([],e)}var H2=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Q2(e){return e.__esModule||H2&&e[Symbol.toStringTag]==="Module"}function MR(e){var t=!1;return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(!t)return t=!0,e.apply(this,n)}}var ba=function(t,n){this.router=t,this.base=V2(n),this.current=br,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};ba.prototype.listen=function(t){this.cb=t};ba.prototype.onReady=function(t,n){this.ready?t():(this.readyCbs.push(t),n&&this.readyErrorCbs.push(n))};ba.prototype.onError=function(t){this.errorCbs.push(t)};ba.prototype.transitionTo=function(t,n,a){var i=this,o;try{o=this.router.match(t,this.current)}catch(u){throw this.errorCbs.forEach(function(m){m(u)}),u}var s=this.current;this.confirmTransition(o,function(){i.updateRoute(o),n&&n(o),i.ensureURL(),i.router.afterHooks.forEach(function(u){u&&u(o,s)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(u){u(o)}))},function(u){a&&a(u),u&&!i.ready&&(!uC(u,Go.redirected)||s!==br)&&(i.ready=!0,i.readyErrorCbs.forEach(function(m){m(u)}))})};ba.prototype.confirmTransition=function(t,n,a){var i=this,o=this.current;this.pending=t;var s=function(M){!uC(M)&&Tf(M)&&(i.errorCbs.length?i.errorCbs.forEach(function(G){G(M)}):console.error(M)),a&&a(M)},u=t.matched.length-1,m=o.matched.length-1;if(LA(t,o)&&u===m&&t.matched[u]===o.matched[m])return this.ensureURL(),t.hash&&Cr(this.router,o,t,!1),s(G2(o,t));var f=W2(this.current.matched,t.matched),S=f.updated,v=f.deactivated,A=f.activated,E=[].concat(z2(v),this.router.beforeHooks,J2(S),A.map(function(M){return M.beforeEnter}),F2(A)),T=function(M,G){if(i.pending!==t)return s(kR(o,t));try{M(t,o,function($){$===!1?(i.ensureURL(!0),s(B2(o,t))):Tf($)?(i.ensureURL(!0),s($)):typeof $=="string"||typeof $=="object"&&(typeof $.path=="string"||typeof $.name=="string")?(s(M2(o,t)),typeof $=="object"&&$.replace?i.replace($):i.push($)):G($)})}catch($){s($)}};UR(E,T,function(){var M=X2(A),G=M.concat(i.router.resolveHooks);UR(G,T,function(){if(i.pending!==t)return s(kR(o,t));i.pending=null,n(t),i.router.app&&i.router.app.$nextTick(function(){AA(t)})})})};ba.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)};ba.prototype.setupListeners=function(){};ba.prototype.teardown=function(){this.listeners.forEach(function(t){t()}),this.listeners=[],this.current=br,this.pending=null};function V2(e){if(!e)if(Dc){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return e.charAt(0)!=="/"&&(e="/"+e),e.replace(/\/$/,"")}function W2(e,t){var n,a=Math.max(e.length,t.length);for(n=0;n0)){var i=this.router,o=i.options.scrollBehavior,s=dr&&o;s&&this.listeners.push(UA());var u=function(){var m=a.current,f=tc(a.base);a.current===br&&f===a._startLocation||a.transitionTo(f,function(S){s&&Cr(i,S,m,!0)})};window.addEventListener("popstate",u),this.listeners.push(function(){window.removeEventListener("popstate",u)})}},t.prototype.go=function(a){window.history.go(a)},t.prototype.push=function(a,i,o){var s=this,u=this,m=u.current;this.transitionTo(a,function(f){bf(fr(s.base+f.fullPath)),Cr(s.router,f,m,!1),i&&i(f)},o)},t.prototype.replace=function(a,i,o){var s=this,u=this,m=u.current;this.transitionTo(a,function(f){ch(fr(s.base+f.fullPath)),Cr(s.router,f,m,!1),i&&i(f)},o)},t.prototype.ensureURL=function(a){if(tc(this.base)!==this.current.fullPath){var i=fr(this.base+this.current.fullPath);a?bf(i):ch(i)}},t.prototype.getCurrentLocation=function(){return tc(this.base)},t}(ba);function tc(e){var t=window.location.pathname,n=t.toLowerCase(),a=e.toLowerCase();return e&&(n===a||n.indexOf(fr(a+"/"))===0)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var xA=function(e){function t(n,a,i){e.call(this,n,a),!(i&&Y2(this.base))&&GR()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var a=this;if(!(this.listeners.length>0)){var i=this.router,o=i.options.scrollBehavior,s=dr&&o;s&&this.listeners.push(UA());var u=function(){var f=a.current;GR()&&a.transitionTo(tf(),function(S){s&&Cr(a.router,S,f,!0),dr||nf(S.fullPath)})},m=dr?"popstate":"hashchange";window.addEventListener(m,u),this.listeners.push(function(){window.removeEventListener(m,u)})}},t.prototype.push=function(a,i,o){var s=this,u=this,m=u.current;this.transitionTo(a,function(f){BR(f.fullPath),Cr(s.router,f,m,!1),i&&i(f)},o)},t.prototype.replace=function(a,i,o){var s=this,u=this,m=u.current;this.transitionTo(a,function(f){nf(f.fullPath),Cr(s.router,f,m,!1),i&&i(f)},o)},t.prototype.go=function(a){window.history.go(a)},t.prototype.ensureURL=function(a){var i=this.current.fullPath;tf()!==i&&(a?BR(i):nf(i))},t.prototype.getCurrentLocation=function(){return tf()},t}(ba);function Y2(e){var t=tc(e);if(!/^\/#/.test(t))return window.location.replace(fr(e+"/#"+t)),!0}function GR(){var e=tf();return e.charAt(0)==="/"?!0:(nf("/"+e),!1)}function tf(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function uh(e){var t=window.location.href,n=t.indexOf("#"),a=n>=0?t.slice(0,n):t;return a+"#"+e}function BR(e){dr?bf(uh(e)):window.location.hash=e}function nf(e){dr?ch(uh(e)):window.location.replace(uh(e))}var q2=function(e){function t(n,a){e.call(this,n,a),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(a,i,o){var s=this;this.transitionTo(a,function(u){s.stack=s.stack.slice(0,s.index+1).concat(u),s.index++,i&&i(u)},o)},t.prototype.replace=function(a,i,o){var s=this;this.transitionTo(a,function(u){s.stack=s.stack.slice(0,s.index).concat(u),i&&i(u)},o)},t.prototype.go=function(a){var i=this,o=this.index+a;if(!(o<0||o>=this.stack.length)){var s=this.stack[o];this.confirmTransition(s,function(){var u=i.current;i.index=o,i.updateRoute(s),i.router.afterHooks.forEach(function(m){m&&m(s,u)})},function(u){uC(u,Go.duplicated)&&(i.index=o)})}},t.prototype.getCurrentLocation=function(){var a=this.stack[this.stack.length-1];return a?a.fullPath:"/"},t.prototype.ensureURL=function(){},t}(ba),It=function(t){t===void 0&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=P2(t.routes||[],this);var n=t.mode||"hash";switch(this.fallback=n==="history"&&!dr&&t.fallback!==!1,this.fallback&&(n="hash"),Dc||(n="abstract"),this.mode=n,n){case"history":this.history=new $A(this,t.base);break;case"hash":this.history=new xA(this,t.base,this.fallback);break;case"abstract":this.history=new q2(this,t.base);break}},FA={currentRoute:{configurable:!0}};It.prototype.match=function(t,n,a){return this.matcher.match(t,n,a)};FA.currentRoute.get=function(){return this.history&&this.history.current};It.prototype.init=function(t){var n=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var s=n.apps.indexOf(t);s>-1&&n.apps.splice(s,1),n.app===t&&(n.app=n.apps[0]||null),n.app||n.history.teardown()}),!this.app){this.app=t;var a=this.history;if(a instanceof $A||a instanceof xA){var i=function(s){var u=a.current,m=n.options.scrollBehavior,f=dr&&m;f&&"fullPath"in s&&Cr(n,s,u,!1)},o=function(s){a.setupListeners(),i(s)};a.transitionTo(a.getCurrentLocation(),o,o)}a.listen(function(s){n.apps.forEach(function(u){u._route=s})})}};It.prototype.beforeEach=function(t){return NS(this.beforeHooks,t)};It.prototype.beforeResolve=function(t){return NS(this.resolveHooks,t)};It.prototype.afterEach=function(t){return NS(this.afterHooks,t)};It.prototype.onReady=function(t,n){this.history.onReady(t,n)};It.prototype.onError=function(t){this.history.onError(t)};It.prototype.push=function(t,n,a){var i=this;if(!n&&!a&&typeof Promise<"u")return new Promise(function(o,s){i.history.push(t,o,s)});this.history.push(t,n,a)};It.prototype.replace=function(t,n,a){var i=this;if(!n&&!a&&typeof Promise<"u")return new Promise(function(o,s){i.history.replace(t,o,s)});this.history.replace(t,n,a)};It.prototype.go=function(t){this.history.go(t)};It.prototype.back=function(){this.go(-1)};It.prototype.forward=function(){this.go(1)};It.prototype.getMatchedComponents=function(t){var n=t?t.matched?t:this.resolve(t).route:this.currentRoute;return n?[].concat.apply([],n.matched.map(function(a){return Object.keys(a.components).map(function(i){return a.components[i]})})):[]};It.prototype.resolve=function(t,n,a){n=n||this.history.current;var i=wS(t,n,a,this),o=this.match(i,n),s=o.redirectedFrom||o.fullPath,u=this.history.base,m=ek(u,s,this.mode);return{location:i,route:o,href:m,normalizedTo:i,resolved:o}};It.prototype.getRoutes=function(){return this.matcher.getRoutes()};It.prototype.addRoute=function(t,n){this.matcher.addRoute(t,n),this.history.current!==br&&this.history.transitionTo(this.history.getCurrentLocation())};It.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==br&&this.history.transitionTo(this.history.getCurrentLocation())};Object.defineProperties(It.prototype,FA);function NS(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function ek(e,t,n){var a=n==="hash"?"#"+t:t;return e?fr(e+"/"+a):a}It.install=sh;It.version="3.5.3";It.isNavigationFailure=uC;It.NavigationFailureType=Go;It.START_LOCATION=br;Dc&&window.Vue&&window.Vue.use(It);const HA=It,$R=()=>ES(()=>import("./Home-2b8596d9.js"),["assets/Home-2b8596d9.js","assets/BaseKey-fd9279cf.js","assets/BaseKey-34f28bd3.css","assets/Home-fe6589aa.css"]),tk=()=>ES(()=>import("./Print-c2c09755.js"),["assets/Print-c2c09755.js","assets/BaseKey-fd9279cf.js","assets/BaseKey-34f28bd3.css","assets/Print-76aa46fc.css"]),nk=()=>ES(()=>import("./Test-3d865130.js"),["assets/Test-3d865130.js","assets/BaseKey-fd9279cf.js","assets/BaseKey-34f28bd3.css","assets/Test-a430b51d.css"]);Pe.use(HA);const ak=new HA({routes:[{path:"/:keyboardP(.+)/:layoutP(.+)",component:$R,name:"home"},{path:"/print",component:tk,name:"print"},{path:"/test",component:nk,name:"test"},{path:"*",component:$R}]}),IS={configuratorSettings:"configuratorSettings",configuratorSettingsVersion:2};function ik(e){return localStorage?localStorage.getItem(e):null}function rk(e,t){localStorage&&localStorage.setItem(e,t)}const ok=["keymap_belgian","keymap_bepo","keymap_brazilian_abnt2","keymap_canadian_multilingual","keymap_colemak","keymap_croatian","keymap_czech","keymap_danish","keymap_dvorak_fr","keymap_dvorak","keymap_dvorak_programmer","keymap_estonian","keymap_finnish","keymap_french_afnor","keymap_french","keymap_french_mac_iso","keymap_german","keymap_greek","keymap_hebrew","keymap_hungarian","keymap_icelandic","keymap_irish","keymap_italian","keymap_italian_mac_ansi","keymap_italian_mac_iso","keymap_japanese","keymap_korean","keymap_latvian","keymap_lithuanian_azerty","keymap_lithuanian_qwerty","keymap_neo2","keymap_norman","keymap_norwegian","keymap_polish","keymap_portuguese","keymap_portuguese_mac_iso","keymap_romanian","keymap_russian","keymap_serbian","keymap_serbian_latin","keymap_slovak","keymap_slovenian","keymap_spanish_dvorak","keymap_spanish","keymap_spanish_latin_america","keymap_swedish","keymap_swedish_mac_ansi","keymap_swedish_mac_iso","keymap_swedish_pro_mac_ansi","keymap_swedish_pro_mac_iso","keymap_swiss_de","keymap_swiss_fr","keymap_turkish_f","keymap_turkish_q","keymap_uk","keymap_ukrainian","keymap_us_extended","keymap_us_international","keymap_us_international_linux","keymap_us","keymap_workman","keymap_workman_zxcvm"];function xR(){const e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return{version:IS.configuratorSettingsVersion,darkmodeEnabled:e,favoriteKeyboard:"",favoriteColor:"",clearLayerDefault:!1,iso:!1,osKeyboardLayout:"keymap_us"}}function lk(){try{return{...xR(),...JSON.parse(ik(IS.configuratorSettings))}}catch{return xR()}}const sk={keyboard:"",keyboardMeta:{},configuratorSettings:lk(),keyboards:[],appInitialized:!1,_keyboards:[],layout:"",layouts:{},keymapName:"",compileDisabled:!1,isPreview:!1,previewRequested:!1,jobID:"",enableDownloads:!1,firmwareBinaryURL:[],firmwareSourceURL:[],firmwareFile:"",keymapSourceURL:[],filter:"",keypressListener:void 0,showSpinner:!1,spinnerMsg:"",message:"",settingsPanelVisible:!1,author:"",notes:"",tutorialEnabled:!1,electron:!1,languages:[{value:"en",label:"English"},{value:"de",label:"Deutsch"},{value:"es",label:"Español"},{value:"fr",label:"Français"},{value:"it",label:"Italiano"},{value:"ms",label:"Bahasa Malaysia"},{value:"pl-PL",label:"Polski"},{value:"pt-BR",label:"Português brasileiro"},{value:"ru",label:"Русский"},{value:"ja",label:"日本語"},{value:"zh-CN",label:"简体中文"},{value:"zh-TW",label:"繁體中文(台灣)"},{value:"zh-HK",label:"繁體中文(香港)"}],legends:"keymap",legendTypes:["keymap","matrix","index","size"],osKeyboardLayouts:ok,snowflakes:!1},_k={...sk};function ck(e){return e===void 0}var uk=ck;const Mt=cn(uk),mk={firmwareFile:e=>e.firmwareFile,validateKeyboard:e=>t=>{const n=e.keyboards.includes(t);return console.info(`Validate keyboard:${t} valid:${n}`),n},filter:e=>e.filter,exportKeymapName:e=>{let t=e.keymapName.replace(/[\s/]/g,"_").toLowerCase(),n=e.keyboard.replace(/[\s/]/g,"_").toLowerCase();return t===""?t=`${n}_${e.layout}_mine`.toLowerCase():t=`${n}_${t}`.toLowerCase(),t=t.replace(/[^a-z0-9_-]/gi,""),t},keyCount:e=>tC(e.layouts)>0&&!Mt(e.layout)&&!Mt(e.layouts[e.layout])?e.layouts[e.layout].length:0,osKeyboardLayout:e=>e.configuratorSettings.osKeyboardLayout},fk={...mk};function QA(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ck}=Object.prototype,{getPrototypeOf:DS}=Object,mC=(e=>t=>{const n=Ck.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ta=e=>(e=e.toLowerCase(),t=>mC(t)===e),fC=e=>t=>typeof t===e,{isArray:vs}=Array,Rc=fC("undefined");function dk(e){return e!==null&&!Rc(e)&&e.constructor!==null&&!Rc(e.constructor)&&Bn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const VA=Ta("ArrayBuffer");function pk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&VA(e.buffer),t}const hk=fC("string"),Bn=fC("function"),WA=fC("number"),CC=e=>e!==null&&typeof e=="object",Sk=e=>e===!0||e===!1,af=e=>{if(mC(e)!=="object")return!1;const t=DS(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Kk=Ta("Date"),vk=Ta("File"),Rk=Ta("Blob"),yk=Ta("FileList"),gk=e=>CC(e)&&Bn(e.pipe),Lk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Bn(e.append)&&((t=mC(e))==="formdata"||t==="object"&&Bn(e.toString)&&e.toString()==="[object FormData]"))},Ak=Ta("URLSearchParams"),[Ek,bk,Tk,Pk]=["ReadableStream","Request","Response","Headers"].map(Ta),wk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Uc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,i;if(typeof e!="object"&&(e=[e]),vs(e))for(a=0,i=e.length;a0;)if(i=n[a],t===i.toLowerCase())return i;return null}const ho=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),zA=e=>!Rc(e)&&e!==ho;function mh(){const{caseless:e}=zA(this)&&this||{},t={},n=(a,i)=>{const o=e&&jA(t,i)||i;af(t[o])&&af(a)?t[o]=mh(t[o],a):af(a)?t[o]=mh({},a):vs(a)?t[o]=a.slice():t[o]=a};for(let a=0,i=arguments.length;a(Uc(t,(i,o)=>{n&&Bn(i)?e[o]=QA(i,n):e[o]=i},{allOwnKeys:a}),e),Nk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ik=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Dk=(e,t,n,a)=>{let i,o,s;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!a||a(s,e,t))&&!u[s]&&(t[s]=e[s],u[s]=!0);e=n!==!1&&DS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Uk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},kk=e=>{if(!e)return null;if(vs(e))return e;let t=e.length;if(!WA(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Mk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&DS(Uint8Array)),Gk=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=a.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Bk=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},$k=Ta("HTMLFormElement"),xk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,i){return a.toUpperCase()+i}),FR=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Fk=Ta("RegExp"),JA=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};Uc(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(a[o]=s||i)}),Object.defineProperties(e,a)},Hk=e=>{JA(e,(t,n)=>{if(Bn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(Bn(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Qk=(e,t)=>{const n={},a=i=>{i.forEach(o=>{n[o]=!0})};return vs(e)?a(e):a(String(e).split(t)),n},Vk=()=>{},Wk=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,cp="abcdefghijklmnopqrstuvwxyz",HR="0123456789",XA={DIGIT:HR,ALPHA:cp,ALPHA_DIGIT:cp+cp.toUpperCase()+HR},jk=(e=16,t=XA.ALPHA_DIGIT)=>{let n="";const{length:a}=t;for(;e--;)n+=t[Math.random()*a|0];return n};function zk(e){return!!(e&&Bn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Jk=e=>{const t=new Array(10),n=(a,i)=>{if(CC(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[i]=a;const o=vs(a)?[]:{};return Uc(a,(s,u)=>{const m=n(s,i+1);!Rc(m)&&(o[u]=m)}),t[i]=void 0,o}}return a};return n(e,0)},Xk=Ta("AsyncFunction"),Zk=e=>e&&(CC(e)||Bn(e))&&Bn(e.then)&&Bn(e.catch),ZA=((e,t)=>e?setImmediate:t?((n,a)=>(ho.addEventListener("message",({source:i,data:o})=>{i===ho&&o===n&&a.length&&a.shift()()},!1),i=>{a.push(i),ho.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Bn(ho.postMessage)),Yk=typeof queueMicrotask<"u"?queueMicrotask.bind(ho):typeof process<"u"&&process.nextTick||ZA,ce={isArray:vs,isArrayBuffer:VA,isBuffer:dk,isFormData:Lk,isArrayBufferView:pk,isString:hk,isNumber:WA,isBoolean:Sk,isObject:CC,isPlainObject:af,isReadableStream:Ek,isRequest:bk,isResponse:Tk,isHeaders:Pk,isUndefined:Rc,isDate:Kk,isFile:vk,isBlob:Rk,isRegExp:Fk,isFunction:Bn,isStream:gk,isURLSearchParams:Ak,isTypedArray:Mk,isFileList:yk,forEach:Uc,merge:mh,extend:Ok,trim:wk,stripBOM:Nk,inherits:Ik,toFlatObject:Dk,kindOf:mC,kindOfTest:Ta,endsWith:Uk,toArray:kk,forEachEntry:Gk,matchAll:Bk,isHTMLForm:$k,hasOwnProperty:FR,hasOwnProp:FR,reduceDescriptors:JA,freezeMethods:Hk,toObjectSet:Qk,toCamelCase:xk,noop:Vk,toFiniteNumber:Wk,findKey:jA,global:ho,isContextDefined:zA,ALPHABET:XA,generateString:jk,isSpecCompliantForm:zk,toJSONObject:Jk,isAsyncFn:Xk,isThenable:Zk,setImmediate:ZA,asap:Yk};function Fe(e,t,n,a,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),i&&(this.response=i)}ce.inherits(Fe,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:ce.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const YA=Fe.prototype,qA={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qA[e]={value:e}});Object.defineProperties(Fe,qA);Object.defineProperty(YA,"isAxiosError",{value:!0});Fe.from=(e,t,n,a,i,o)=>{const s=Object.create(YA);return ce.toFlatObject(e,s,function(m){return m!==Error.prototype},u=>u!=="isAxiosError"),Fe.call(s,e.message,t,n,a,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const qk=null;function fh(e){return ce.isPlainObject(e)||ce.isArray(e)}function eE(e){return ce.endsWith(e,"[]")?e.slice(0,-2):e}function QR(e,t,n){return e?e.concat(t).map(function(i,o){return i=eE(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function eM(e){return ce.isArray(e)&&!e.some(fh)}const tM=ce.toFlatObject(ce,{},null,function(t){return/^is[A-Z]/.test(t)});function dC(e,t,n){if(!ce.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ce.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(M,G){return!ce.isUndefined(G[M])});const a=n.metaTokens,i=n.visitor||S,o=n.dots,s=n.indexes,m=(n.Blob||typeof Blob<"u"&&Blob)&&ce.isSpecCompliantForm(t);if(!ce.isFunction(i))throw new TypeError("visitor must be a function");function f(T){if(T===null)return"";if(ce.isDate(T))return T.toISOString();if(!m&&ce.isBlob(T))throw new Fe("Blob is not supported. Use a Buffer instead.");return ce.isArrayBuffer(T)||ce.isTypedArray(T)?m&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function S(T,M,G){let $=T;if(T&&!G&&typeof T=="object"){if(ce.endsWith(M,"{}"))M=a?M:M.slice(0,-2),T=JSON.stringify(T);else if(ce.isArray(T)&&eM(T)||(ce.isFileList(T)||ce.endsWith(M,"[]"))&&($=ce.toArray(T)))return M=eE(M),$.forEach(function(H,W){!(ce.isUndefined(H)||H===null)&&t.append(s===!0?QR([M],W,o):s===null?M:M+"[]",f(H))}),!1}return fh(T)?!0:(t.append(QR(G,M,o),f(T)),!1)}const v=[],A=Object.assign(tM,{defaultVisitor:S,convertValue:f,isVisitable:fh});function E(T,M){if(!ce.isUndefined(T)){if(v.indexOf(T)!==-1)throw Error("Circular reference detected in "+M.join("."));v.push(T),ce.forEach(T,function($,V){(!(ce.isUndefined($)||$===null)&&i.call(t,$,ce.isString(V)?V.trim():V,M,A))===!0&&E($,M?M.concat(V):[V])}),v.pop()}}if(!ce.isObject(e))throw new TypeError("data must be an object");return E(e),t}function VR(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function US(e,t){this._pairs=[],e&&dC(e,this,t)}const tE=US.prototype;tE.append=function(t,n){this._pairs.push([t,n])};tE.toString=function(t){const n=t?function(a){return t.call(this,a,VR)}:VR;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function nM(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nE(e,t,n){if(!t)return e;const a=n&&n.encode||nM,i=n&&n.serialize;let o;if(i?o=i(t,n):o=ce.isURLSearchParams(t)?t.toString():new US(t,n).toString(a),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class aM{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ce.forEach(this.handlers,function(a){a!==null&&t(a)})}}const WR=aM,aE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},iM=typeof URLSearchParams<"u"?URLSearchParams:US,rM=typeof FormData<"u"?FormData:null,oM=typeof Blob<"u"?Blob:null,lM={isBrowser:!0,classes:{URLSearchParams:iM,FormData:rM,Blob:oM},protocols:["http","https","file","blob","url","data"]},kS=typeof window<"u"&&typeof document<"u",sM=(e=>kS&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),_M=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),cM=kS&&window.location.href||"http://localhost",uM=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kS,hasStandardBrowserEnv:sM,hasStandardBrowserWebWorkerEnv:_M,origin:cM},Symbol.toStringTag,{value:"Module"})),ya={...uM,...lM};function mM(e,t){return dC(e,new ya.classes.URLSearchParams,Object.assign({visitor:function(n,a,i,o){return ya.isNode&&ce.isBuffer(n)?(this.append(a,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function fM(e){return ce.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function CM(e){const t={},n=Object.keys(e);let a;const i=n.length;let o;for(a=0;a=n.length;return s=!s&&ce.isArray(i)?i.length:s,m?(ce.hasOwnProp(i,s)?i[s]=[i[s],a]:i[s]=a,!u):((!i[s]||!ce.isObject(i[s]))&&(i[s]=[]),t(n,a,i[s],o)&&ce.isArray(i[s])&&(i[s]=CM(i[s])),!u)}if(ce.isFormData(e)&&ce.isFunction(e.entries)){const n={};return ce.forEachEntry(e,(a,i)=>{t(fM(a),i,n,0)}),n}return null}function dM(e,t,n){if(ce.isString(e))try{return(t||JSON.parse)(e),ce.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(e)}const MS={transitional:aE,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const a=n.getContentType()||"",i=a.indexOf("application/json")>-1,o=ce.isObject(t);if(o&&ce.isHTMLForm(t)&&(t=new FormData(t)),ce.isFormData(t))return i?JSON.stringify(iE(t)):t;if(ce.isArrayBuffer(t)||ce.isBuffer(t)||ce.isStream(t)||ce.isFile(t)||ce.isBlob(t)||ce.isReadableStream(t))return t;if(ce.isArrayBufferView(t))return t.buffer;if(ce.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(a.indexOf("application/x-www-form-urlencoded")>-1)return mM(t,this.formSerializer).toString();if((u=ce.isFileList(t))||a.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return dC(u?{"files[]":t}:t,m&&new m,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),dM(t)):t}],transformResponse:[function(t){const n=this.transitional||MS.transitional,a=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ce.isResponse(t)||ce.isReadableStream(t))return t;if(t&&ce.isString(t)&&(a&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(u){if(s)throw u.name==="SyntaxError"?Fe.from(u,Fe.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ya.classes.FormData,Blob:ya.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ce.forEach(["delete","get","head","post","put","patch"],e=>{MS.headers[e]={}});const GS=MS,pM=ce.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"]),hM=e=>{const t={};let n,a,i;return e&&e.split(` `).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),a=s.substring(i+1).trim(),!(!n||t[n]&&pM[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t},jR=Symbol("internals");function Z_(e){return e&&String(e).trim().toLowerCase()}function rf(e){return e===!1||e==null?e:ce.isArray(e)?e.map(rf):String(e)}function SM(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const KM=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function up(e,t,n,a,i){if(ce.isFunction(a))return a.call(this,t,n);if(i&&(t=n),!!ce.isString(t)){if(ce.isString(a))return t.indexOf(a)!==-1;if(ce.isRegExp(a))return a.test(t)}}function vM(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function RM(e,t){const n=ce.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(i,o,s){return this[a].call(this,t,i,o,s)},configurable:!0})})}class pC{constructor(t){t&&this.set(t)}set(t,n,a){const i=this;function o(u,m,f){const S=Z_(m);if(!S)throw new Error("header name must be a non-empty string");const v=ce.findKey(i,S);(!v||i[v]===void 0||f===!0||f===void 0&&i[v]!==!1)&&(i[v||m]=rf(u))}const s=(u,m)=>ce.forEach(u,(f,S)=>o(f,S,m));if(ce.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(ce.isString(t)&&(t=t.trim())&&!KM(t))s(hM(t),n);else if(ce.isHeaders(t))for(const[u,m]of t.entries())o(m,u,a);else t!=null&&o(n,t,a);return this}get(t,n){if(t=Z_(t),t){const a=ce.findKey(this,t);if(a){const i=this[a];if(!n)return i;if(n===!0)return SM(i);if(ce.isFunction(n))return n.call(this,i,a);if(ce.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Z_(t),t){const a=ce.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||up(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let i=!1;function o(s){if(s=Z_(s),s){const u=ce.findKey(a,s);u&&(!n||up(a,a[u],u,n))&&(delete a[u],i=!0)}}return ce.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let a=n.length,i=!1;for(;a--;){const o=n[a];(!t||up(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,a={};return ce.forEach(this,(i,o)=>{const s=ce.findKey(a,o);if(s){n[s]=rf(i),delete n[o];return}const u=t?vM(o):String(o).trim();u!==o&&delete n[o],n[u]=rf(i),a[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ce.forEach(this,(a,i)=>{a!=null&&a!==!1&&(n[i]=t&&ce.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(i=>a.set(i)),a}static accessor(t){const a=(this[jR]=this[jR]={accessors:{}}).accessors,i=this.prototype;function o(s){const u=Z_(s);a[u]||(RM(i,s),a[u]=!0)}return ce.isArray(t)?t.forEach(o):o(t),this}}pC.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ce.reduceDescriptors(pC.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}});ce.freezeMethods(pC);const ga=pC;function mp(e,t){const n=this||GS,a=t||n,i=ga.from(a.headers);let o=a.data;return ce.forEach(e,function(u){o=u.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function rE(e){return!!(e&&e.__CANCEL__)}function Rs(e,t,n){Fe.call(this,e??"canceled",Fe.ERR_CANCELED,t,n),this.name="CanceledError"}ce.inherits(Rs,Fe,{__CANCEL__:!0});function oE(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new Fe("Request failed with status code "+n.status,[Fe.ERR_BAD_REQUEST,Fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function yM(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function gM(e,t){e=e||10;const n=new Array(e),a=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(m){const f=Date.now(),S=a[o];s||(s=f),n[i]=m,a[i]=f;let v=o,A=0;for(;v!==i;)A+=n[v++],v=v%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),f-s{n=S,i=null,o&&(clearTimeout(o),o=null),e.apply(null,f)};return[(...f)=>{const S=Date.now(),v=S-n;v>=a?s(f,S):(i=f,o||(o=setTimeout(()=>{o=null,s(i)},a-v)))},()=>i&&s(i)]}const Pf=(e,t,n=3)=>{let a=0;const i=gM(50,250);return LM(o=>{const s=o.loaded,u=o.lengthComputable?o.total:void 0,m=s-a,f=i(m),S=s<=u;a=s;const v={loaded:s,total:u,progress:u?s/u:void 0,bytes:m,rate:f||void 0,estimated:f&&u&&S?(u-s)/f:void 0,event:o,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(v)},n)},zR=(e,t)=>{const n=e!=null;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},JR=e=>(...t)=>ce.asap(()=>e(...t)),AM=ya.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let a;function i(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return a=i(window.location.href),function(s){const u=ce.isString(s)?i(s):s;return u.protocol===a.protocol&&u.host===a.host}}():function(){return function(){return!0}}(),EM=ya.hasStandardBrowserEnv?{write(e,t,n,a,i,o){const s=[e+"="+encodeURIComponent(t)];ce.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ce.isString(a)&&s.push("path="+a),ce.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function bM(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TM(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function lE(e,t){return e&&!bM(t)?TM(e,t):t}const XR=e=>e instanceof ga?{...e}:e;function Oo(e,t){t=t||{};const n={};function a(f,S,v){return ce.isPlainObject(f)&&ce.isPlainObject(S)?ce.merge.call({caseless:v},f,S):ce.isPlainObject(S)?ce.merge({},S):ce.isArray(S)?S.slice():S}function i(f,S,v){if(ce.isUndefined(S)){if(!ce.isUndefined(f))return a(void 0,f,v)}else return a(f,S,v)}function o(f,S){if(!ce.isUndefined(S))return a(void 0,S)}function s(f,S){if(ce.isUndefined(S)){if(!ce.isUndefined(f))return a(void 0,f)}else return a(void 0,S)}function u(f,S,v){if(v in t)return a(f,S);if(v in e)return a(void 0,f)}const m={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u,headers:(f,S)=>i(XR(f),XR(S),!0)};return ce.forEach(Object.keys(Object.assign({},e,t)),function(S){const v=m[S]||i,A=v(e[S],t[S],S);ce.isUndefined(A)&&v!==u||(n[S]=A)}),n}const sE=e=>{const t=Oo({},e);let{data:n,withXSRFToken:a,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:u}=t;t.headers=s=ga.from(s),t.url=nE(lE(t.baseURL,t.url),e.params,e.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let m;if(ce.isFormData(n)){if(ya.hasStandardBrowserEnv||ya.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((m=s.getContentType())!==!1){const[f,...S]=m?m.split(";").map(v=>v.trim()).filter(Boolean):[];s.setContentType([f||"multipart/form-data",...S].join("; "))}}if(ya.hasStandardBrowserEnv&&(a&&ce.isFunction(a)&&(a=a(t)),a||a!==!1&&AM(t.url))){const f=i&&o&&EM.read(o);f&&s.set(i,f)}return t},PM=typeof XMLHttpRequest<"u",wM=PM&&function(e){return new Promise(function(n,a){const i=sE(e);let o=i.data;const s=ga.from(i.headers).normalize();let{responseType:u,onUploadProgress:m,onDownloadProgress:f}=i,S,v,A,E,T;function M(){E&&E(),T&&T(),i.cancelToken&&i.cancelToken.unsubscribe(S),i.signal&&i.signal.removeEventListener("abort",S)}let G=new XMLHttpRequest;G.open(i.method.toUpperCase(),i.url,!0),G.timeout=i.timeout;function $(){if(!G)return;const H=ga.from("getAllResponseHeaders"in G&&G.getAllResponseHeaders()),z={data:!u||u==="text"||u==="json"?G.responseText:G.response,status:G.status,statusText:G.statusText,headers:H,config:e,request:G};oE(function(Z){n(Z),M()},function(Z){a(Z),M()},z),G=null}"onloadend"in G?G.onloadend=$:G.onreadystatechange=function(){!G||G.readyState!==4||G.status===0&&!(G.responseURL&&G.responseURL.indexOf("file:")===0)||setTimeout($)},G.onabort=function(){G&&(a(new Fe("Request aborted",Fe.ECONNABORTED,e,G)),G=null)},G.onerror=function(){a(new Fe("Network Error",Fe.ERR_NETWORK,e,G)),G=null},G.ontimeout=function(){let W=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const z=i.transitional||aE;i.timeoutErrorMessage&&(W=i.timeoutErrorMessage),a(new Fe(W,z.clarifyTimeoutError?Fe.ETIMEDOUT:Fe.ECONNABORTED,e,G)),G=null},o===void 0&&s.setContentType(null),"setRequestHeader"in G&&ce.forEach(s.toJSON(),function(W,z){G.setRequestHeader(z,W)}),ce.isUndefined(i.withCredentials)||(G.withCredentials=!!i.withCredentials),u&&u!=="json"&&(G.responseType=i.responseType),f&&([A,T]=Pf(f,!0),G.addEventListener("progress",A)),m&&G.upload&&([v,E]=Pf(m),G.upload.addEventListener("progress",v),G.upload.addEventListener("loadend",E)),(i.cancelToken||i.signal)&&(S=H=>{G&&(a(!H||H.type?new Rs(null,e,G):H),G.abort(),G=null)},i.cancelToken&&i.cancelToken.subscribe(S),i.signal&&(i.signal.aborted?S():i.signal.addEventListener("abort",S)));const V=yM(i.url);if(V&&ya.protocols.indexOf(V)===-1){a(new Fe("Unsupported protocol "+V+":",Fe.ERR_BAD_REQUEST,e));return}G.send(o||null)})},OM=(e,t)=>{let n=new AbortController,a;const i=function(m){if(!a){a=!0,s();const f=m instanceof Error?m:this.reason;n.abort(f instanceof Fe?f:new Rs(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{i(new Fe(`timeout ${t} of ms exceeded`,Fe.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(m=>{m&&(m.removeEventListener?m.removeEventListener("abort",i):m.unsubscribe(i))}),e=null)};e.forEach(m=>m&&m.addEventListener&&m.addEventListener("abort",i));const{signal:u}=n;return u.unsubscribe=s,[u,()=>{o&&clearTimeout(o),o=null}]},NM=OM,IM=function*(e,t){let n=e.byteLength;if(!t||n{const o=DM(e,t,i);let s=0,u,m=f=>{u||(u=!0,a&&a(f))};return new ReadableStream({async pull(f){try{const{done:S,value:v}=await o.next();if(S){m(),f.close();return}let A=v.byteLength;if(n){let E=s+=A;n(E)}f.enqueue(new Uint8Array(v))}catch(S){throw m(S),S}},cancel(f){return m(f),o.return()}},{highWaterMark:2})},hC=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_E=hC&&typeof ReadableStream=="function",Ch=hC&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),cE=(e,...t)=>{try{return!!e(...t)}catch{return!1}},UM=_E&&cE(()=>{let e=!1;const t=new Request(ya.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),YR=64*1024,dh=_E&&cE(()=>ce.isReadableStream(new Response("").body)),wf={stream:dh&&(e=>e.body)};hC&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!wf[t]&&(wf[t]=ce.isFunction(e[t])?n=>n[t]():(n,a)=>{throw new Fe(`Response type '${t}' is not supported`,Fe.ERR_NOT_SUPPORT,a)})})})(new Response);const kM=async e=>{if(e==null)return 0;if(ce.isBlob(e))return e.size;if(ce.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(ce.isArrayBufferView(e)||ce.isArrayBuffer(e))return e.byteLength;if(ce.isURLSearchParams(e)&&(e=e+""),ce.isString(e))return(await Ch(e)).byteLength},MM=async(e,t)=>{const n=ce.toFiniteNumber(e.getContentLength());return n??kM(t)},GM=hC&&(async e=>{let{url:t,method:n,data:a,signal:i,cancelToken:o,timeout:s,onDownloadProgress:u,onUploadProgress:m,responseType:f,headers:S,withCredentials:v="same-origin",fetchOptions:A}=sE(e);f=f?(f+"").toLowerCase():"text";let[E,T]=i||o||s?NM([i,o],s):[],M,G;const $=()=>{!M&&setTimeout(()=>{E&&E.unsubscribe()}),M=!0};let V;try{if(m&&UM&&n!=="get"&&n!=="head"&&(V=await MM(S,a))!==0){let X=new Request(t,{method:"POST",body:a,duplex:"half"}),Z;if(ce.isFormData(a)&&(Z=X.headers.get("content-type"))&&S.setContentType(Z),X.body){const[w,y]=zR(V,Pf(JR(m)));a=ZR(X.body,YR,w,y,Ch)}}ce.isString(v)||(v=v?"include":"omit"),G=new Request(t,{...A,signal:E,method:n.toUpperCase(),headers:S.normalize().toJSON(),body:a,duplex:"half",credentials:v});let H=await fetch(G);const W=dh&&(f==="stream"||f==="response");if(dh&&(u||W)){const X={};["status","statusText","headers"].forEach(P=>{X[P]=H[P]});const Z=ce.toFiniteNumber(H.headers.get("content-length")),[w,y]=u&&zR(Z,Pf(JR(u),!0))||[];H=new Response(ZR(H.body,YR,w,()=>{y&&y(),W&&$()},Ch),X)}f=f||"text";let z=await wf[ce.findKey(wf,f)||"text"](H,e);return!W&&$(),T&&T(),await new Promise((X,Z)=>{oE(X,Z,{data:z,headers:ga.from(H.headers),status:H.status,statusText:H.statusText,config:e,request:G})})}catch(H){throw $(),H&&H.name==="TypeError"&&/fetch/i.test(H.message)?Object.assign(new Fe("Network Error",Fe.ERR_NETWORK,e,G),{cause:H.cause||H}):Fe.from(H,H&&H.code,e,G)}}),ph={http:qk,xhr:wM,fetch:GM};ce.forEach(ph,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qR=e=>`- ${e}`,BM=e=>ce.isFunction(e)||e===null||e===!1,uE={getAdapter:e=>{e=ce.isArray(e)?e:[e];const{length:t}=e;let n,a;const i={};for(let o=0;o`adapter ${u} `+(m===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : `+o.map(qR).join(` @@ -1357,7 +1357,7 @@ Esc`,title:"Esc normally, but ' when GUI is active or ₴ when Shift is active"} .`,title:"WK_DOT"},KC_SLSH:{name:`? /`,title:"WK_SLSH"},"S(KC_GRV)":{name:"~",title:"WK_TILD"},KC_TILD:{name:"~",title:"WK_TILD"},"S(KC_1)":{name:"!",title:"WK_EXLM"},KC_EXLM:{name:"!",title:"WK_EXLM"},"S(KC_2)":{name:"@",title:"WK_AT"},KC_AT:{name:"@",title:"WK_AT"},"S(KC_3)":{name:"#",title:"WK_HASH"},KC_HASH:{name:"#",title:"WK_HASH"},"S(KC_4)":{name:"$",title:"WK_DLR"},KC_DLR:{name:"$",title:"WK_DLR"},"S(KC_5)":{name:"%",title:"WK_PERC"},KC_PERC:{name:"%",title:"WK_PERC"},"S(KC_6)":{name:"^",title:"WK_CIRC"},KC_CIRC:{name:"^",title:"WK_CIRC"},"S(KC_7)":{name:"&",title:"WK_AMPR"},KC_AMPR:{name:"&",title:"WK_AMPR"},"S(KC_8)":{name:"*",title:"WK_ASTR"},KC_ASTR:{name:"*",title:"WK_ASTR"},"S(KC_9)":{name:"(",title:"WK_LPRN"},KC_LPRN:{name:"(",title:"WK_LPRN"},"S(KC_0)":{name:")",title:"WK_RPRN"},KC_RPRN:{name:")",title:"WK_RPRN"},"S(KC_MINS)":{name:"_",title:"WK_UNDS"},KC_UNDS:{name:"_",title:"WK_UNDS"},"S(KC_EQL)":{name:"+",title:"WK_PLUS"},KC_PLUS:{name:"+",title:"WK_PLUS"},"S(KC_P)":{name:":",title:"WK_COLN"},"S(KC_LBRC)":{name:"{",title:"WK_LCBR"},KC_LCBR:{name:"{",title:"WK_LCBR"},"S(KC_RBRC)":{name:"}",title:"WK_RCBR"},KC_RCBR:{name:"}",title:"WK_RCBR"},"S(KC_BSLS)":{name:"|",title:"WK_PIPE"},KC_PIPE:{name:"|",title:"WK_PIPE"},"S(KC_QUOT)":{name:'"',title:"WK_DQUO"},KC_DQUO:{name:'"',title:"WK_DQUO"},"S(KC_COMM)":{name:"<",title:"WK_LABK"},KC_LT:{name:"<",title:"WK_LABK"},"S(KC_DOT)":{name:">",title:"WK_RABK"},KC_GT:{name:">",title:"WK_RABK"},"S(KC_SLSH)":{name:"?",title:"WK_QUES"},KC_QUES:{name:"?",title:"WK_QUES"},KC_NUHS:{name:`| \\`,title:""},"S(KC_NUHS)":{name:"|",title:""},KC_NUBS:{name:`| -\\`,title:""},"S(KC_NUBS)":{name:"|",title:""},KC_COLN:{name:"I",title:"S(WK_I) (capital I)"},SC_LSPO:{name:"LS / (",title:"Left Shift when held, ( when tapped"},SC_RSPC:{name:"RS / )",title:"Right Shift when held, ) when tapped"},SC_LCPO:{name:"LC / (",title:"Left Control when held, ( when tapped"},SC_RCPC:{name:"RC / )",title:"Right Control when held, ) when tapped"},SC_LAPO:{name:"LA / (",title:"Left Alt when held, ( when tapped"},SC_RAPC:{name:"RA / )",title:"Right Alt when held, ) when tapped"},QK_GESC:{name:"`/~\nEsc",title:"Esc normally, but ` when GUI is active or ~ when Shift is active"}},rK={keymap_belgian:{prefix:"BE",sendstring:"belgian",isANSI:!1,locales:["nl-BE","fr-BE"],keycodeLUT:SV},keymap_bepo:{prefix:"BP",sendstring:"bepo",isANSI:!1,locales:["fr","fr-FR","fr-BE","fr-CH","fr-LU","fr-CA","fr-MC"],keycodeLUT:KV},keymap_brazilian_abnt2:{prefix:"BR",sendstring:"brazilian_abnt2",isANSI:!1,locales:["pt-BR"],keycodeLUT:vV},keymap_canadian_multilingual:{prefix:"CA",sendstring:"canadian_multilingual",isANSI:!1,locales:["fr-CA"],keycodeLUT:RV},keymap_colemak:{prefix:"CM",sendstring:"colemak",isANSI:!0,locales:["en","en-AU","en-BZ","en-CA","en-CB","en-GB","en-IE","en-JM","en-NZ","en-PH","en-TT","en-US","en-ZA","en-ZW"],keycodeLUT:yV},keymap_croatian:{prefix:"HR",sendstring:"croatian",isANSI:!1,locales:["hr","hr-HR"],keycodeLUT:gV},keymap_czech:{prefix:"CZ",sendstring:"czech",locales:["cs","cs-CZ"],isANSI:!1,keycodeLUT:LV},keymap_danish:{prefix:"DK",sendstring:"danish",locales:["da","da-DK"],isANSI:!1,keycodeLUT:AV},keymap_dvorak_fr:{prefix:"DV",sendstring:"dvorak_fr",isANSI:!1,locales:["fr","fr-FR","fr-BE","fr-CH","fr-LU","fr-CA","fr-MC"],keycodeLUT:bV},keymap_dvorak:{prefix:"DV",sendstring:"dvorak",isANSI:!0,locales:["en","en-AU","en-BZ","en-CA","en-CB","en-GB","en-IE","en-JM","en-NZ","en-PH","en-TT","en-US","en-ZA","en-ZW"],keycodeLUT:EV},keymap_dvorak_programmer:{prefix:"DP",sendstring:"dvorak_programmer",isANSI:!0,locales:["en","en-AU","en-BZ","en-CA","en-CB","en-GB","en-IE","en-JM","en-NZ","en-PH","en-TT","en-US","en-ZA","en-ZW"],keycodeLUT:TV},keymap_estonian:{prefix:"EE",sendstring:"estonian",isANSI:!1,locales:["et","et-EE"],keycodeLUT:PV},keymap_finnish:{prefix:"FI",sendstring:"finnish",isANSI:!1,locales:["fi","fi-FI","se-FI","sv-FI"],keycodeLUT:wV},keymap_french_afnor:{prefix:"FR",sendstring:"french_afnor",isANSI:!1,locales:["fr","fr-FR"],keycodeLUT:NV},keymap_french:{prefix:"FR",sendstring:"french",isANSI:!1,locales:["fr","fr-FR"],keycodeLUT:OV},keymap_french_mac_iso:{prefix:"FR",sendstring:"french_mac_iso",isANSI:!1,locales:["fr","fr-FR"],keycodeLUT:IV},keymap_german:{prefix:"DE",sendstring:"german",isANSI:!1,locales:["de-GE","de-AU","de"],keycodeLUT:DV},keymap_greek:{prefix:"GR",sendstring:"",isANSI:!1,locales:["el","el-GR"],keycodeLUT:UV},keymap_hebrew:{prefix:"IL",sendstring:"",isANSI:!1,locales:["he","he-IL"],keycodeLUT:kV},keymap_hungarian:{prefix:"HU",sendstring:"hungarian",isANSI:!1,locales:["hu","hu-HU"],keycodeLUT:MV},keymap_icelandic:{prefix:"IS",sendstring:"icelandic",isANSI:!1,locales:["is","is-IS"],keycodeLUT:GV},keymap_irish:{prefix:"IE",sendstring:"uk",isANSI:!0,locales:["en-IE"],keycodeLUT:BV},keymap_italian:{prefix:"IT",sendstring:"italian",isANSI:!1,locales:["it","it-IT"],keycodeLUT:$V},keymap_italian_mac_ansi:{prefix:"IT",sendstring:"italian_mac_ansi",isANSI:!0,locales:["it","it-IT","it-CH"],keycodeLUT:xV},keymap_italian_mac_iso:{prefix:"IT",sendstring:"italian_mac_iso",isANSI:!1,locales:["it","it-IT","it-CH"],keycodeLUT:FV},keymap_japanese:{prefix:"JP",sendstring:"japanese",isANSI:!1,locales:["ja","ja-JP"],keycodeLUT:HV},keymap_korean:{prefix:"KR",sendstring:"",isANSI:!0,locales:["ko","ko-KR"],keycodeLUT:QV},keymap_latvian:{prefix:"LV",sendstring:"latvian",isANSI:!1,locales:["lv","lv-LV"],keycodeLUT:VV},keymap_lithuanian_azerty:{prefix:"LT",sendstring:"lithuanian_azerty",isANSI:!1,locales:["lt","lt-LT"],keycodeLUT:WV},keymap_lithuanian_qwerty:{prefix:"LT",sendstring:"lithuanian_qwerty",isANSI:!0,locales:["lt","lt-LT"],keycodeLUT:jV},keymap_neo2:{prefix:"NE",sendstring:"",isANSI:!1,locales:["de-GE","de-AU","de"],keycodeLUT:zV},keymap_norman:{prefix:"NO",sendstring:"norman",isANSI:!0,locales:["en","en-AU","en-BZ","en-CA","en-CB","en-GB","en-IE","en-JM","en-NZ","en-PH","en-TT","en-US","en-ZA","en-ZW"],keycodeLUT:JV},keymap_norwegian:{prefix:"NO",sendstring:"norwegian",isANSI:!1,locales:["nb-NO","nn-NO","se-NO"],keycodeLUT:XV},keymap_polish:{prefix:"PL",sendstring:"",isANSI:!0,locales:["pl","pl-PL"],keycodeLUT:ZV},keymap_portuguese:{prefix:"PT",sendstring:"portuguese",isANSI:!1,locales:["pt","pt-PT"],keycodeLUT:YV},keymap_portuguese_mac_iso:{prefix:"PT",sendstring:"portuguese_mac_iso",isANSI:!1,locales:["pt","pt-PT"],keycodeLUT:qV},keymap_romanian:{prefix:"RO",sendstring:"romanian",isANSI:!1,locales:["ro","ro-RO"],keycodeLUT:eW},keymap_russian:{prefix:"RU",sendstring:"",isANSI:!0,locales:["ru-RU","ru"],keycodeLUT:tW},keymap_serbian:{prefix:"RS",sendstring:"",isANSI:!1,locales:["sr-Cyrl","sr-Cyrl-SP","sr-Cyrl-BA"],keycodeLUT:nW},keymap_serbian_latin:{prefix:"RS",sendstring:"serbian_latin",isANSI:!1,locales:["sr","sr-SP","sr-BA"],keycodeLUT:aW},keymap_slovak:{prefix:"SK",sendstring:"slovak",isANSI:!1,locales:["sk","sk-SK"],keycodeLUT:iW},keymap_slovenian:{prefix:"SI",sendstring:"slovenian",isANSI:!1,locales:["sl","sl-SI"],keycodeLUT:rW},keymap_spanish_dvorak:{prefix:"DV",sendstring:"spanish_dvorak",isANSI:!1,locales:["en","en-AU","en-BZ","en-CA","en-CB","en-GB","en-IE","en-JM","en-NZ","en-PH","en-TT","en-US","en-ZA","en-ZW"],keycodeLUT:lW},keymap_spanish:{prefix:"ES",sendstring:"spanish",isANSI:!1,locales:["ca-ES","es","es-ES","eu-ES","gl-ES"],keycodeLUT:oW},keymap_spanish_latin_america:{prefix:"ES",sendstring:"spanish_latin_america",isANSI:!1,locales:["es-CO","es-AR","es-BO","es-CL","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-PY","es-SV","es-UY","es-VE"],keycodeLUT:sW},keymap_swedish:{prefix:"SE",sendstring:"swedish",isANSI:!1,locales:["sv","sv-SE"],keycodeLUT:_W},keymap_swedish_mac_ansi:{prefix:"SE",sendstring:"swedish",isANSI:!0,locales:["sv","sv-SE"],keycodeLUT:cW},keymap_swedish_mac_iso:{prefix:"SE",sendstring:"swedish",isANSI:!1,locales:["sv","sv-SE"],keycodeLUT:uW},keymap_swedish_pro_mac_ansi:{prefix:"SE",sendstring:"swedish",isANSI:!0,locales:["sv","sv-SE"],keycodeLUT:mW},keymap_swedish_pro_mac_iso:{prefix:"SE",sendstring:"swedish",isANSI:!1,locales:["sv","sv-SE"],keycodeLUT:fW},keymap_swiss_de:{prefix:"CH",sendstring:"swiss_de",isANSI:!1,locales:["de-CH","de"],keycodeLUT:CW},keymap_swiss_fr:{prefix:"CH",sendstring:"swiss_fr",isANSI:!1,locales:["fr-CH","fr"],keycodeLUT:dW},keymap_turkish_f:{prefix:"TR",sendstring:"turkish_f",isANSI:!1,locales:["tr","tr-TR"],keycodeLUT:pW},keymap_turkish_q:{prefix:"TR",sendstring:"turkish_q",isANSI:!1,locales:["tr","tr-TR"],keycodeLUT:hW},keymap_uk:{prefix:"UK",sendstring:"uk",isANSI:!1,locales:["en-GB","en"],keycodeLUT:SW},keymap_ukrainian:{prefix:"UA",sendstring:"",isANSI:!0,locales:["uk","uk-UA"],keycodeLUT:KW},keymap_us:{prefix:"KC",sendstring:"",isANSI:!0,locales:["en-US","en"],keycodeLUT:vW},keymap_us_extended:{prefix:"US",sendstring:"",isANSI:!0,locales:["en","en-US"],keycodeLUT:RW},keymap_us_international:{prefix:"US",sendstring:"",isANSI:!0,locales:["en","en-US"],keycodeLUT:yW},keymap_us_international_linux:{prefix:"US",sendstring:"",isANSI:!0,locales:["en","en-US"],keycodeLUT:gW},keymap_workman:{prefix:"WK",sendstring:"workman",isANSI:!0,locales:["en","en-AU","en-BZ","en-CA","en-CB","en-GB","en-IE","en-JM","en-NZ","en-PH","en-TT","en-US","en-ZA","en-ZW"],keycodeLUT:LW},keymap_workman_zxcvm:{prefix:"WK",sendstring:"workman_zxcvm",isANSI:!0,locales:["en","en-AU","en-BZ","en-CA","en-CB","en-GB","en-IE","en-JM","en-NZ","en-PH","en-TT","en-US","en-ZA","en-ZW"],keycodeLUT:AW}},sc={ANSI_ISO:[...yh,...gh],ISO_ANSI:[...gh,...yh],special:[...ib,...rb,...ob]},EW={keycodes:[...sc.ANSI_ISO,...sc.special],searchFilter:"",searchCounters:{ANSI:0,"ISO/JIS":0,Quantum:0,KeyboardSettings:0,AppMediaMouse:0},steno:!1,active:"ANSI"};function _c(){let e=Ka.getters["app/osKeyboardLayout"];if(Mt(e)||!Object.keys(rK).includes(e)){const t="keymap_us";console.log(`The stored OS keyboard layout value (${e}) is not a valid value! Falling back to '${t}'.`),Ka.commit("app/setOSKeyboardLayout",t),e=t}return e}function Zy(){return rK[_c()].isANSI}function bW(e,t){return console.assert(!Mt(e)),!Object.keys(t).includes("name")||!Object.keys(t).includes("code")?t:e[t.code]?{...t,...e[t.code]}:t}function gp(e,t){Ka.commit("app/setIso",!Zy());const n=[...Zy()?sc.ANSI_ISO:sc.ISO_ANSI,...sc.special,...t?hV:[]],{keycodeLUT:a}=rK[_c()];return n.map(i=>bW(a,i))}const TW={keycodes:e=>e.keycodes,lookupKeyPressCode:(e,t)=>n=>t.lookupKeycode(n,!0),lookupKeycode:e=>(t,n=!1)=>e.keycodes.find(({code:a,keys:i})=>a===t||n&&i&&i===t)};function q_(e,t){return e=e.toUpperCase(),t.reduce((n,{code:a,name:i,title:o})=>(Mt(a)||(a.includes(e)||i&&i.toUpperCase().includes(e)||o&&o.toUpperCase().includes(e))&&(n+=1),n),0)}const PW={},wW={changeActive(e,t){e.active=t},enableSteno(e){e.steno=!0,e.keycodes=gp(_c(),e.steno)},disableSteno(e){e.steno=!1,e.keycodes=gp(_c(),e.steno)},updateKeycodeNames(e){e.keycodes=gp(_c(),e.steno)},setSearchFilter(e,t){e.searchFilter=t,this.searchFilter!==""&&(e.searchCounters={ANSI:q_(e.searchFilter,yh),"ISO/JIS":q_(e.searchFilter,gh),Quantum:q_(e.searchFilter,ib),KeyboardSettings:q_(e.searchFilter,rb),AppMediaMouse:q_(e.searchFilter,ob)})}},OW={namespaced:!0,state:EW,getters:TW,actions:PW,mutations:wW},lb=["KC_ESC","KC_F1","KC_F2","KC_F3","KC_F4","KC_F5","KC_F6","KC_F7","KC_F8","KC_F9","KC_F10","KC_F11","KC_F12","KC_PSCR","KC_SCRL","KC_PAUS"],sb=["KC_GRV","KC_1","KC_2","KC_3","KC_4","KC_5","KC_6","KC_7","KC_8","KC_9","KC_0","KC_MINS","KC_EQL","KC_BSPC","KC_INS","KC_HOME","KC_PGUP","KC_NUM","KC_PSLS","KC_PAST","KC_PMNS"],NW=["KC_TAB","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_LBRC","KC_RBRC","KC_BSLS","KC_DEL","KC_END","KC_PGDN","KC_P7","KC_P8","KC_P9","KC_PPLS"],IW=["KC_TAB","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_LBRC","KC_RBRC","KC_ENT","KC_DEL","KC_END","KC_PGDN","KC_P7","KC_P8","KC_P9","KC_PPLS"],DW=["KC_CAPS","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_SCLN","KC_QUOT","KC_ENT","KC_P4","KC_P5","KC_P6"],UW=["KC_CAPS","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_SCLN","KC_QUOT","KC_NUHS","KC_P4","KC_P5","KC_P6"],kW=["KC_LSFT","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_COMM","KC_DOT","KC_SLSH","KC_RSFT","KC_UP","KC_P1","KC_P2","KC_P3","KC_PENT"],MW=["KC_LSFT","KC_NUBS","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_COMM","KC_DOT","KC_SLSH","KC_RSFT","KC_UP","KC_P1","KC_P2","KC_P3","KC_PENT"],_b=["KC_LCTL","KC_LGUI","KC_LALT","KC_SPC","KC_RALT","KC_RGUI","KC_APP","KC_RCTL","KC_LEFT","KC_DOWN","KC_RGHT","KC_P0","KC_PDOT"],GW=[...lb,...sb,...NW,...DW,...kW,..._b],BW=[...lb,...sb,...IW,...UW,...MW,..._b],Yy={ANSI:GW,ISO:BW},cb=["Escape","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","PrintScreen","ScrollLock","Pause"],ub=["Backquote","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Digit0","Minus","Equal","Backspace","Insert","Home","PageUp","NumLock","NumpadDivide","NumpadMultiply","NumpadSubtract"],ac=["Tab","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","Delete","End","PageDown","Numpad7","Numpad8","Numpad9","NumpadAdd"],$W=[...ac.slice(0,ac.indexOf("Backslash")),"Enter",...ac.slice(ac.lastIndexOf("Delete"))],ic=["CapsLock","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","Enter","Numpad4","Numpad5","Numpad6"],xW=[...ic.slice(0,ic.indexOf("Enter")),"Backslash",...ic.slice(ic.lastIndexOf("Numpad4"))],Lh=["ShiftLeft","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","ShiftRight","ArrowUp","Numpad1","Numpad2","Numpad3","NumpadEnter"],FW=[Lh[0],"IntlBackslash",...Lh.slice(1)],mb=["ControlLeft","MetaLeft","AltLeft","Space","AltRight","MetaRight","ContextMenu","ControlRight","ArrowLeft","ArrowDown","ArrowRight","Numpad0","NumpadDecimal"],HW=[...cb,...ub,...ac,...ic,...Lh,...mb],QW=[...cb,...ub,...$W,...xW,...FW,...mb],qy={ANSI:HW,ISO:QW},fb=[{label:"Esc",x:0,y:0},{label:"F1",x:2,y:0},{label:"F2",x:3,y:0},{label:"F3",x:4,y:0},{label:"F4",x:5,y:0},{label:"F5",x:6.5,y:0},{label:"F6",x:7.5,y:0},{label:"F7",x:8.5,y:0},{label:"F8",x:9.5,y:0},{label:"F9",x:11,y:0},{label:"F10",x:12,y:0},{label:"F11",x:13,y:0},{label:"F12",x:14,y:0},{label:"PrtSc",x:15.25,y:0},{label:"Scroll Lock",x:16.25,y:0},{label:"Pause",x:17.25,y:0}],Cb=[{label:"~",x:0,y:1.5},{label:"!",x:1,y:1.5},{label:"@",x:2,y:1.5},{label:"#",x:3,y:1.5},{label:"$",x:4,y:1.5},{label:"%",x:5,y:1.5},{label:"^",x:6,y:1.5},{label:"&",x:7,y:1.5},{label:"*",x:8,y:1.5},{label:"(",x:9,y:1.5},{label:")",x:10,y:1.5},{label:"_",x:11,y:1.5},{label:"+",x:12,y:1.5},{label:"Backspace",x:13,y:1.5,w:2},{label:"Insert",x:15.25,y:1.5},{label:"Home",x:16.25,y:1.5},{label:"PgUp",x:17.25,y:1.5},{label:"Num Lock",x:18.5,y:1.5},{label:"/",x:19.5,y:1.5},{label:"*",x:20.5,y:1.5},{label:"-",x:21.5,y:1.5}],VW=[{label:"Tab",x:0,y:2.5,w:1.5},{label:"Q",x:1.5,y:2.5},{label:"W",x:2.5,y:2.5},{label:"E",x:3.5,y:2.5},{label:"R",x:4.5,y:2.5},{label:"T",x:5.5,y:2.5},{label:"Y",x:6.5,y:2.5},{label:"U",x:7.5,y:2.5},{label:"I",x:8.5,y:2.5},{label:"O",x:9.5,y:2.5},{label:"P",x:10.5,y:2.5},{label:"{",x:11.5,y:2.5},{label:"}",x:12.5,y:2.5},{label:"|",x:13.5,y:2.5,w:1.5},{label:"Delete",x:15.25,y:2.5},{label:"End",x:16.25,y:2.5},{label:"PgDn",x:17.25,y:2.5},{label:"7",x:18.5,y:2.5},{label:"8",x:19.5,y:2.5},{label:"9",x:20.5,y:2.5},{label:"+",x:21.5,y:2.5,h:2}],WW=[{label:"Caps Lock",x:0,y:3.5,w:1.75},{label:"A",x:1.75,y:3.5},{label:"S",x:2.75,y:3.5},{label:"D",x:3.75,y:3.5},{label:"F",x:4.75,y:3.5},{label:"G",x:5.75,y:3.5},{label:"H",x:6.75,y:3.5},{label:"J",x:7.75,y:3.5},{label:"K",x:8.75,y:3.5},{label:"L",x:9.75,y:3.5},{label:":",x:10.75,y:3.5},{label:'"',x:11.75,y:3.5},{label:"Enter",x:12.75,y:3.5,w:2.25},{label:"4",x:18.5,y:3.5},{label:"5",x:19.5,y:3.5},{label:"6",x:20.5,y:3.5}],jW=[{label:"Shift",x:0,y:4.5,w:2.25},{label:"Z",x:2.25,y:4.5},{label:"X",x:3.25,y:4.5},{label:"C",x:4.25,y:4.5},{label:"V",x:5.25,y:4.5},{label:"B",x:6.25,y:4.5},{label:"N",x:7.25,y:4.5},{label:"M",x:8.25,y:4.5},{label:"<",x:9.25,y:4.5},{label:">",x:10.25,y:4.5},{label:"?",x:11.25,y:4.5},{label:"Shift",x:12.25,y:4.5,w:2.75},{label:"↑",x:16.25,y:4.5},{label:"1",x:18.5,y:4.5},{label:"2",x:19.5,y:4.5},{label:"3",x:20.5,y:4.5},{label:"Enter",x:21.5,y:4.5,h:2}],db=[{label:"Ctrl",x:0,y:5.5,w:1.25},{label:"Win",x:1.25,y:5.5,w:1.25},{label:"Alt",x:2.5,y:5.5,w:1.25},{x:3.75,y:5.5,w:6.25},{label:"Alt",x:10,y:5.5,w:1.25},{label:"Win",x:11.25,y:5.5,w:1.25},{label:"Menu",x:12.5,y:5.5,w:1.25},{label:"Ctrl",x:13.75,y:5.5,w:1.25},{label:"←",x:15.25,y:5.5},{label:"↓",x:16.25,y:5.5},{label:"→",x:17.25,y:5.5},{label:"0",x:18.5,y:5.5,w:2},{label:".",x:20.5,y:5.5}],zW=[{label:"Tab",x:0,y:2.5,w:1.5},{label:"Q",x:1.5,y:2.5},{label:"W",x:2.5,y:2.5},{label:"E",x:3.5,y:2.5},{label:"R",x:4.5,y:2.5},{label:"T",x:5.5,y:2.5},{label:"Y",x:6.5,y:2.5},{label:"U",x:7.5,y:2.5},{label:"I",x:8.5,y:2.5},{label:"O",x:9.5,y:2.5},{label:"P",x:10.5,y:2.5},{label:"{",x:11.5,y:2.5},{label:"}",x:12.5,y:2.5},{label:"Enter",x:13.75,y:2.5,w:1.25,h:2},{label:"Delete",x:15.25,y:2.5},{label:"End",x:16.25,y:2.5},{label:"PgDn",x:17.25,y:2.5},{label:"7",x:18.5,y:2.5},{label:"8",x:19.5,y:2.5},{label:"9",x:20.5,y:2.5},{label:"+",x:21.5,y:2.5,h:2}],JW=[{label:"Caps Lock",x:0,y:3.5,w:1.75},{label:"A",x:1.75,y:3.5},{label:"S",x:2.75,y:3.5},{label:"D",x:3.75,y:3.5},{label:"F",x:4.75,y:3.5},{label:"G",x:5.75,y:3.5},{label:"H",x:6.75,y:3.5},{label:"J",x:7.75,y:3.5},{label:"K",x:8.75,y:3.5},{label:"L",x:9.75,y:3.5},{label:":",x:10.75,y:3.5},{label:'"',x:11.75,y:3.5},{label:"NonUsHash",x:12.75,y:3.5},{label:"4",x:18.5,y:3.5},{label:"5",x:19.5,y:3.5},{label:"6",x:20.5,y:3.5}],XW=[{label:"Shift",x:0,y:4.5,w:1.25},{label:"IntlBackslash",x:1.25,y:4.5},{label:"Z",x:2.25,y:4.5},{label:"X",x:3.25,y:4.5},{label:"C",x:4.25,y:4.5},{label:"V",x:5.25,y:4.5},{label:"B",x:6.25,y:4.5},{label:"N",x:7.25,y:4.5},{label:"M",x:8.25,y:4.5},{label:"<",x:9.25,y:4.5},{label:">",x:10.25,y:4.5},{label:"?",x:11.25,y:4.5},{label:"Shift",x:12.25,y:4.5,w:2.75},{label:"↑",x:16.25,y:4.5},{label:"1",x:18.5,y:4.5},{label:"2",x:19.5,y:4.5},{label:"3",x:20.5,y:4.5},{label:"Enter",x:21.5,y:4.5,h:2}],ZW=[...fb,...Cb,...VW,...WW,...jW,...db],YW=[...fb,...Cb,...zW,...JW,...XW,...db],eg={ANSI:ZW,ISO:YW};function tg(e){return e.reduce((t,n,a)=>(t[n]=a,t),{})}const qW={ANSI:tg(qy.ANSI),ISO:tg(qy.ISO)};function ej(){const e=navigator.language||navigator.userLanguage;let t="ANSI";return e.toLowerCase().indexOf("en")<0&&(t="ISO"),t}const tj={defaults:yc,codeToPosition:qW,config:Object.assign({},yc),layout:ej(),keymap:{},layouts:{ISO:eg.ISO,ANSI:eg.ANSI},chatterDetected:!1},nj={availableLayouts(e){return KE(e.layouts).sort()},getQMKCode(e){return t=>Mt(t)?"":e.keymap[e.layout][t].code},activeKeymap(e){return e.keymap[e.layout]},activeLayoutMeta(e){return e.layouts[e.layout]},codeToPosition(e){return e.codeToPosition[e.layout]}};function ng(e,t){return t.map(n=>({...e.getters["keycodes/lookupKeycode"](n)}))}const aj={init({state:e,commit:t}){const n=this;return t("setKeymap",{ANSI:ng(n,Yy.ANSI),ISO:ng(n,Yy.ISO)}),e.keymap}},ij={setLayout(e,t){e.layout=t},setKeymap(e,t){e.keymap=t},setActive(e,{pos:t}){Pe.set(e.keymap[e.layout][t],"active",!0),Pe.set(e.keymap[e.layout][t],"detected",!1)},setDetected(e,{pos:t}){Pe.set(e.keymap[e.layout][t],"active",!1),Pe.set(e.keymap[e.layout][t],"detected",!0)},setChatterDetected(e,{pos:t}){e.chatterDetected=!0,Pe.set(e.keymap[e.layout][t],"chatter",!0)},reset(e){e.chatterDetected=!1,e.keymap[e.layout].forEach((t,n)=>{Pe.set(e.keymap[e.layout][n],"detected",!1),Pe.set(e.keymap[e.layout][n],"chatter",!1)})}},rj={namespaced:!0,state:tj,getters:nj,actions:aj,mutations:ij};Pe.use(yA);const Ka=new yA.Store({modules:{app:wQ,status:UQ,keymap:dV,keycodes:OW,tester:rj},state:{},mutations:{},actions:{}});var oj=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"backend-status"},[n("div",{staticClass:"qmk-branding"},[e._m(0),n("div",{staticClass:"qmk-app-name"},[e._v("QMK Configurator")]),n("div",{staticClass:"bes-version"},[e._v(" "+e._s(e.$t("apiVersionPrefix"))+" "),n("span",{staticClass:"version-num"},[e._v("v"+e._s(e.version))])])]),n("div",{staticClass:"bes-title"},[n("div",{staticClass:"bes-status"},[n("div",{staticClass:"bes-status-left",class:e.currentStatusClass},[e._m(1)]),n("div",{staticClass:"bes-status-center"},[e._v(" "+e._s(e.$t("serverIs"))+" ")]),n("div",{staticClass:"bes-status-right"},[e._v(e._s(e.jobs))])])]),n("div",{staticClass:"bes-discord"},[e.hasError?n("a",{attrs:{target:"_blank",rel:"noopener",href:e.discordLink}},[e._v(" Error? Let us know on QMK Discord. ")]):e._e()]),n("div",{staticClass:"bes-controls",on:{click:e.clickSettings}},[e.settingsPanelVisible?e._e():n("font-awesome-icon",{attrs:{icon:"chevron-left","fixed-width":""}}),n("font-awesome-icon",{attrs:{icon:"cog",size:"lg"}}),e.settingsPanelVisible?n("font-awesome-icon",{attrs:{icon:"chevron-right","fixed-width":""}}):e._e(),e._v(" "+e._s(e.$t("settings"))+" ")],1)])},lj=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",{attrs:{target:"_blank",rel:"noopener",href:"https://github.com/qmk/qmk_configurator"}},[n("div",{staticClass:"qmk-logo",attrs:{title:"See the QMK Configurator Repo"}})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",[n("li")])}];const ag=20,sj=10,_j={name:"status-bar",computed:{...Kc("app",["settingsPanelVisible"]),currentStatusClass(){switch(this.status){case"running":return"bes-status-running";case"degraded":return"bes-status-degraded";default:return"bes-status-down"}},jobCountClass(){return this.jobCount{this.version=e.version,this.jobCount=parseInt(e.queue_length,10),this.jobCount===0?this.jobs=this.$t("ready"):this.jobs=`${this.jobCount} ${this.$t("jobsAhead")}`,this.jobCount{this.status="DOWN",this.hasError=!0,console.error("API status error",e)}),setTimeout(this.fetchData,this.getPollInterval())},clickSettings(){this.setSettingsPanel(!this.settingsPanelVisible)}},data:()=>({status:"",version:"0.1",jobCount:0,hasError:!1,jobs:"Initializing"}),mounted(){setTimeout(this.fetchData,1e3)}},ig={};var cj=Er(_j,oj,lj,!1,uj,null,null,null);function uj(e){for(let t in ig)this[t]=ig[t]}const mj=function(){return cj.exports}();var fj=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.isNotSupported&&!e.isDimissed,expression:"isNotSupported && !isDimissed"}],attrs:{id:"browser-warn"}},[n("a",{staticClass:"dismiss",attrs:{title:"dismiss"},on:{click:e.dismiss}},[e._v("X")]),e._v(" "+e._s(e.$t("errors.unsupportedBrowser"))+" "),n("a",{attrs:{href:"https://www.google.com/intl/en_us/chrome/",target:"_blank",rel:"noopener"}},[e._v("Google Chrome")]),e._v(" / "),n("a",{attrs:{href:"https://www.mozilla.org/en-US/firefox/new/",target:"_blank",rel:"noopener"}},[e._v("Mozilla Firefox")])])},Cj=[];const dj={name:"browser-warn-bar",data(){return{isDimissed:!1}},methods:{dismiss(){this.isDimissed=!0}},computed:{isNotSupported(){const e=window.navigator.userAgent.toLowerCase(),t=(e.indexOf("chrome")!==-1||e.indexOf("chromium")!==-1)&&e.indexOf("edge")===-1&&e.indexOf("opr")===-1,n=e.indexOf("firefox")!==-1;return!(t||n)}}},rg={};var pj=Er(dj,fj,Cj,!1,hj,null,null,null);function hj(e){for(let t in rg)this[t]=rg[t]}const Sj=function(){return pj.exports}();var Kj=function(e,t){var n=t._c;return n("transition",{attrs:{name:"fade",appear:""}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.props.isVisible,expression:"props.isVisible"}],staticClass:"veil-container"},[t._t("contents",function(){return[t._v("Something to Unveil")]})],2)])},vj=[];const Rj={name:"veil-component",props:{isVisible:{type:Boolean,required:!0}}},og={};var yj=Er(Rj,Kj,vj,!0,gj,null,null,null);function gj(e){for(let t in og)this[t]=og[t]}const Lj=function(){return yj.exports}();var pb={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(typeof self<"u"?self:cr,function(){return function(n){var a={};function i(o){if(a[o])return a[o].exports;var s=a[o]={i:o,l:!1,exports:{}};return n[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=a,i.d=function(o,s,u){i.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:u})},i.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.t=function(o,s){if(1&s&&(o=i(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var u=Object.create(null);if(i.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var m in o)i.d(u,m,(function(f){return o[f]}).bind(null,m));return u},i.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(s,"a",s),s},i.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},i.p="/",i(i.s=8)}([function(n,a,i){var o=i(4),s=i(5),u=i(6);n.exports=function(m){return o(m)||s(m)||u()}},function(n,a){function i(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n.exports=i=function(s){return typeof s}:n.exports=i=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},i(o)}n.exports=i},function(n,a,i){},function(n,a){n.exports=function(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}},function(n,a){n.exports=function(i){if(Array.isArray(i)){for(var o=0,s=new Array(i.length);oD.bottom)return this.$refs.dropdownMenu.scrollTop=P.offsetTop-(D.height-ie)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},A={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){for(var y=0;y=0;y--)if(this.selectable(this.filteredOptions[y])){this.typeAheadPointer=y;break}},typeAheadDown:function(){for(var y=this.typeAheadPointer+1;y0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=y??!this.mutableLoading}}};function T(y,P,D,O,B,Q,ie,fe){var ue,Ce=typeof y=="function"?y.options:y;if(P&&(Ce.render=P,Ce.staticRenderFns=D,Ce._compiled=!0),O&&(Ce.functional=!0),Q&&(Ce._scopeId="data-v-"+Q),ie?(ue=function(Ne){(Ne=Ne||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(Ne=__VUE_SSR_CONTEXT__),B&&B.call(this,Ne),Ne&&Ne._registeredComponents&&Ne._registeredComponents.add(ie)},Ce._ssrRegister=ue):B&&(ue=fe?function(){B.call(this,this.$root.$options.shadowRoot)}:B),ue)if(Ce.functional){Ce._injectStyles=ue;var pe=Ce.render;Ce.render=function(Ne,ve){return ue.call(ve),pe(Ne,ve)}}else{var Le=Ce.beforeCreate;Ce.beforeCreate=Le?[].concat(Le,ue):[ue]}return{exports:y,options:Ce}}var M={Deselect:T({},function(){var y=this.$createElement,P=this._self._c||y;return P("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[P("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])},[],!1,null,null,null).exports,OpenIndicator:T({},function(){var y=this.$createElement,P=this._self._c||y;return P("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[P("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])},[],!1,null,null,null).exports},G={inserted:function(y,P,D){var O=D.context;if(O.appendToBody){var B=O.$refs.toggle.getBoundingClientRect(),Q=B.height,ie=B.top,fe=B.left,ue=B.width,Ce=window.scrollX||window.pageXOffset,pe=window.scrollY||window.pageYOffset;y.unbindPosition=O.calculatePosition(y,O,{width:ue+"px",left:Ce+fe+"px",top:pe+ie+Q+"px"}),document.body.appendChild(y)}},unbind:function(y,P,D){D.context.appendToBody&&(y.unbindPosition&&typeof y.unbindPosition=="function"&&y.unbindPosition(),y.parentNode&&y.parentNode.removeChild(y))}},$=function(y){var P={};return Object.keys(y).sort().forEach(function(D){P[D]=y[D]}),JSON.stringify(P)},V=0,H=function(){return++V};function W(y,P){var D=Object.keys(y);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(y);P&&(O=O.filter(function(B){return Object.getOwnPropertyDescriptor(y,B).enumerable})),D.push.apply(D,O)}return D}function z(y){for(var P=1;PbW(a,i))}const TW={keycodes:e=>e.keycodes,lookupKeyPressCode:(e,t)=>n=>t.lookupKeycode(n,!0),lookupKeycode:e=>(t,n=!1)=>e.keycodes.find(({code:a,keys:i})=>a===t||n&&i&&i===t)};function q_(e,t){return e=e.toUpperCase(),t.reduce((n,{code:a,name:i,title:o})=>(Mt(a)||(a.includes(e)||i&&i.toUpperCase().includes(e)||o&&o.toUpperCase().includes(e))&&(n+=1),n),0)}const PW={},wW={changeActive(e,t){e.active=t},enableSteno(e){e.steno=!0,e.keycodes=gp(_c(),e.steno)},disableSteno(e){e.steno=!1,e.keycodes=gp(_c(),e.steno)},updateKeycodeNames(e){e.keycodes=gp(_c(),e.steno)},setSearchFilter(e,t){e.searchFilter=t,this.searchFilter!==""&&(e.searchCounters={ANSI:q_(e.searchFilter,yh),"ISO/JIS":q_(e.searchFilter,gh),Quantum:q_(e.searchFilter,ib),KeyboardSettings:q_(e.searchFilter,rb),AppMediaMouse:q_(e.searchFilter,ob)})}},OW={namespaced:!0,state:EW,getters:TW,actions:PW,mutations:wW},lb=["KC_ESC","KC_F1","KC_F2","KC_F3","KC_F4","KC_F5","KC_F6","KC_F7","KC_F8","KC_F9","KC_F10","KC_F11","KC_F12","KC_PSCR","KC_SCRL","KC_PAUS"],sb=["KC_GRV","KC_1","KC_2","KC_3","KC_4","KC_5","KC_6","KC_7","KC_8","KC_9","KC_0","KC_MINS","KC_EQL","KC_BSPC","KC_INS","KC_HOME","KC_PGUP","KC_NUM","KC_PSLS","KC_PAST","KC_PMNS"],NW=["KC_TAB","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_LBRC","KC_RBRC","KC_BSLS","KC_DEL","KC_END","KC_PGDN","KC_P7","KC_P8","KC_P9","KC_PPLS"],IW=["KC_TAB","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_LBRC","KC_RBRC","KC_ENT","KC_DEL","KC_END","KC_PGDN","KC_P7","KC_P8","KC_P9","KC_PPLS"],DW=["KC_CAPS","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_SCLN","KC_QUOT","KC_ENT","KC_P4","KC_P5","KC_P6"],UW=["KC_CAPS","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_SCLN","KC_QUOT","KC_NUHS","KC_P4","KC_P5","KC_P6"],kW=["KC_LSFT","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_COMM","KC_DOT","KC_SLSH","KC_RSFT","KC_UP","KC_P1","KC_P2","KC_P3","KC_PENT"],MW=["KC_LSFT","KC_NUBS","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_COMM","KC_DOT","KC_SLSH","KC_RSFT","KC_UP","KC_P1","KC_P2","KC_P3","KC_PENT"],_b=["KC_LCTL","KC_LGUI","KC_LALT","KC_SPC","KC_RALT","KC_RGUI","KC_APP","KC_RCTL","KC_LEFT","KC_DOWN","KC_RGHT","KC_P0","KC_PDOT"],GW=[...lb,...sb,...NW,...DW,...kW,..._b],BW=[...lb,...sb,...IW,...UW,...MW,..._b],Yy={ANSI:GW,ISO:BW},cb=["Escape","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","PrintScreen","ScrollLock","Pause"],ub=["Backquote","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Digit0","Minus","Equal","Backspace","Insert","Home","PageUp","NumLock","NumpadDivide","NumpadMultiply","NumpadSubtract"],ac=["Tab","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","Delete","End","PageDown","Numpad7","Numpad8","Numpad9","NumpadAdd"],$W=[...ac.slice(0,ac.indexOf("Backslash")),"Enter",...ac.slice(ac.lastIndexOf("Delete"))],ic=["CapsLock","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","Enter","Numpad4","Numpad5","Numpad6"],xW=[...ic.slice(0,ic.indexOf("Enter")),"Backslash",...ic.slice(ic.lastIndexOf("Numpad4"))],Lh=["ShiftLeft","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","ShiftRight","ArrowUp","Numpad1","Numpad2","Numpad3","NumpadEnter"],FW=[Lh[0],"IntlBackslash",...Lh.slice(1)],mb=["ControlLeft","MetaLeft","AltLeft","Space","AltRight","MetaRight","ContextMenu","ControlRight","ArrowLeft","ArrowDown","ArrowRight","Numpad0","NumpadDecimal"],HW=[...cb,...ub,...ac,...ic,...Lh,...mb],QW=[...cb,...ub,...$W,...xW,...FW,...mb],qy={ANSI:HW,ISO:QW},fb=[{label:"Esc",x:0,y:0},{label:"F1",x:2,y:0},{label:"F2",x:3,y:0},{label:"F3",x:4,y:0},{label:"F4",x:5,y:0},{label:"F5",x:6.5,y:0},{label:"F6",x:7.5,y:0},{label:"F7",x:8.5,y:0},{label:"F8",x:9.5,y:0},{label:"F9",x:11,y:0},{label:"F10",x:12,y:0},{label:"F11",x:13,y:0},{label:"F12",x:14,y:0},{label:"PrtSc",x:15.25,y:0},{label:"Scroll Lock",x:16.25,y:0},{label:"Pause",x:17.25,y:0}],Cb=[{label:"~",x:0,y:1.5},{label:"!",x:1,y:1.5},{label:"@",x:2,y:1.5},{label:"#",x:3,y:1.5},{label:"$",x:4,y:1.5},{label:"%",x:5,y:1.5},{label:"^",x:6,y:1.5},{label:"&",x:7,y:1.5},{label:"*",x:8,y:1.5},{label:"(",x:9,y:1.5},{label:")",x:10,y:1.5},{label:"_",x:11,y:1.5},{label:"+",x:12,y:1.5},{label:"Backspace",x:13,y:1.5,w:2},{label:"Insert",x:15.25,y:1.5},{label:"Home",x:16.25,y:1.5},{label:"PgUp",x:17.25,y:1.5},{label:"Num Lock",x:18.5,y:1.5},{label:"/",x:19.5,y:1.5},{label:"*",x:20.5,y:1.5},{label:"-",x:21.5,y:1.5}],VW=[{label:"Tab",x:0,y:2.5,w:1.5},{label:"Q",x:1.5,y:2.5},{label:"W",x:2.5,y:2.5},{label:"E",x:3.5,y:2.5},{label:"R",x:4.5,y:2.5},{label:"T",x:5.5,y:2.5},{label:"Y",x:6.5,y:2.5},{label:"U",x:7.5,y:2.5},{label:"I",x:8.5,y:2.5},{label:"O",x:9.5,y:2.5},{label:"P",x:10.5,y:2.5},{label:"{",x:11.5,y:2.5},{label:"}",x:12.5,y:2.5},{label:"|",x:13.5,y:2.5,w:1.5},{label:"Delete",x:15.25,y:2.5},{label:"End",x:16.25,y:2.5},{label:"PgDn",x:17.25,y:2.5},{label:"7",x:18.5,y:2.5},{label:"8",x:19.5,y:2.5},{label:"9",x:20.5,y:2.5},{label:"+",x:21.5,y:2.5,h:2}],WW=[{label:"Caps Lock",x:0,y:3.5,w:1.75},{label:"A",x:1.75,y:3.5},{label:"S",x:2.75,y:3.5},{label:"D",x:3.75,y:3.5},{label:"F",x:4.75,y:3.5},{label:"G",x:5.75,y:3.5},{label:"H",x:6.75,y:3.5},{label:"J",x:7.75,y:3.5},{label:"K",x:8.75,y:3.5},{label:"L",x:9.75,y:3.5},{label:":",x:10.75,y:3.5},{label:'"',x:11.75,y:3.5},{label:"Enter",x:12.75,y:3.5,w:2.25},{label:"4",x:18.5,y:3.5},{label:"5",x:19.5,y:3.5},{label:"6",x:20.5,y:3.5}],jW=[{label:"Shift",x:0,y:4.5,w:2.25},{label:"Z",x:2.25,y:4.5},{label:"X",x:3.25,y:4.5},{label:"C",x:4.25,y:4.5},{label:"V",x:5.25,y:4.5},{label:"B",x:6.25,y:4.5},{label:"N",x:7.25,y:4.5},{label:"M",x:8.25,y:4.5},{label:"<",x:9.25,y:4.5},{label:">",x:10.25,y:4.5},{label:"?",x:11.25,y:4.5},{label:"Shift",x:12.25,y:4.5,w:2.75},{label:"↑",x:16.25,y:4.5},{label:"1",x:18.5,y:4.5},{label:"2",x:19.5,y:4.5},{label:"3",x:20.5,y:4.5},{label:"Enter",x:21.5,y:4.5,h:2}],db=[{label:"Ctrl",x:0,y:5.5,w:1.25},{label:"Win",x:1.25,y:5.5,w:1.25},{label:"Alt",x:2.5,y:5.5,w:1.25},{x:3.75,y:5.5,w:6.25},{label:"Alt",x:10,y:5.5,w:1.25},{label:"Win",x:11.25,y:5.5,w:1.25},{label:"Menu",x:12.5,y:5.5,w:1.25},{label:"Ctrl",x:13.75,y:5.5,w:1.25},{label:"←",x:15.25,y:5.5},{label:"↓",x:16.25,y:5.5},{label:"→",x:17.25,y:5.5},{label:"0",x:18.5,y:5.5,w:2},{label:".",x:20.5,y:5.5}],zW=[{label:"Tab",x:0,y:2.5,w:1.5},{label:"Q",x:1.5,y:2.5},{label:"W",x:2.5,y:2.5},{label:"E",x:3.5,y:2.5},{label:"R",x:4.5,y:2.5},{label:"T",x:5.5,y:2.5},{label:"Y",x:6.5,y:2.5},{label:"U",x:7.5,y:2.5},{label:"I",x:8.5,y:2.5},{label:"O",x:9.5,y:2.5},{label:"P",x:10.5,y:2.5},{label:"{",x:11.5,y:2.5},{label:"}",x:12.5,y:2.5},{label:"Enter",x:13.75,y:2.5,w:1.25,h:2},{label:"Delete",x:15.25,y:2.5},{label:"End",x:16.25,y:2.5},{label:"PgDn",x:17.25,y:2.5},{label:"7",x:18.5,y:2.5},{label:"8",x:19.5,y:2.5},{label:"9",x:20.5,y:2.5},{label:"+",x:21.5,y:2.5,h:2}],JW=[{label:"Caps Lock",x:0,y:3.5,w:1.75},{label:"A",x:1.75,y:3.5},{label:"S",x:2.75,y:3.5},{label:"D",x:3.75,y:3.5},{label:"F",x:4.75,y:3.5},{label:"G",x:5.75,y:3.5},{label:"H",x:6.75,y:3.5},{label:"J",x:7.75,y:3.5},{label:"K",x:8.75,y:3.5},{label:"L",x:9.75,y:3.5},{label:":",x:10.75,y:3.5},{label:'"',x:11.75,y:3.5},{label:"NonUsHash",x:12.75,y:3.5},{label:"4",x:18.5,y:3.5},{label:"5",x:19.5,y:3.5},{label:"6",x:20.5,y:3.5}],XW=[{label:"Shift",x:0,y:4.5,w:1.25},{label:"IntlBackslash",x:1.25,y:4.5},{label:"Z",x:2.25,y:4.5},{label:"X",x:3.25,y:4.5},{label:"C",x:4.25,y:4.5},{label:"V",x:5.25,y:4.5},{label:"B",x:6.25,y:4.5},{label:"N",x:7.25,y:4.5},{label:"M",x:8.25,y:4.5},{label:"<",x:9.25,y:4.5},{label:">",x:10.25,y:4.5},{label:"?",x:11.25,y:4.5},{label:"Shift",x:12.25,y:4.5,w:2.75},{label:"↑",x:16.25,y:4.5},{label:"1",x:18.5,y:4.5},{label:"2",x:19.5,y:4.5},{label:"3",x:20.5,y:4.5},{label:"Enter",x:21.5,y:4.5,h:2}],ZW=[...fb,...Cb,...VW,...WW,...jW,...db],YW=[...fb,...Cb,...zW,...JW,...XW,...db],eg={ANSI:ZW,ISO:YW};function tg(e){return e.reduce((t,n,a)=>(t[n]=a,t),{})}const qW={ANSI:tg(qy.ANSI),ISO:tg(qy.ISO)};function ej(){const e=navigator.language||navigator.userLanguage;let t="ANSI";return e.toLowerCase().indexOf("en")<0&&(t="ISO"),t}const tj={defaults:yc,codeToPosition:qW,config:Object.assign({},yc),layout:ej(),keymap:{},layouts:{ISO:eg.ISO,ANSI:eg.ANSI},chatterDetected:!1},nj={availableLayouts(e){return KE(e.layouts).sort()},getQMKCode(e){return t=>Mt(t)?"":e.keymap[e.layout][t].code},activeKeymap(e){return e.keymap[e.layout]},activeLayoutMeta(e){return e.layouts[e.layout]},codeToPosition(e){return e.codeToPosition[e.layout]}};function ng(e,t){return t.map(n=>({...e.getters["keycodes/lookupKeycode"](n)}))}const aj={init({state:e,commit:t}){const n=this;return t("setKeymap",{ANSI:ng(n,Yy.ANSI),ISO:ng(n,Yy.ISO)}),e.keymap}},ij={setLayout(e,t){e.layout=t},setKeymap(e,t){e.keymap=t},setActive(e,{pos:t}){Pe.set(e.keymap[e.layout][t],"active",!0),Pe.set(e.keymap[e.layout][t],"detected",!1)},setDetected(e,{pos:t}){Pe.set(e.keymap[e.layout][t],"active",!1),Pe.set(e.keymap[e.layout][t],"detected",!0)},setChatterDetected(e,{pos:t}){e.chatterDetected=!0,Pe.set(e.keymap[e.layout][t],"chatter",!0)},reset(e){e.chatterDetected=!1,e.keymap[e.layout].forEach((t,n)=>{Pe.set(e.keymap[e.layout][n],"detected",!1),Pe.set(e.keymap[e.layout][n],"chatter",!1)})}},rj={namespaced:!0,state:tj,getters:nj,actions:aj,mutations:ij};Pe.use(yA);const Ka=new yA.Store({modules:{app:wQ,status:UQ,keymap:dV,keycodes:OW,tester:rj},state:{},mutations:{},actions:{}});var oj=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"backend-status"},[n("div",{staticClass:"qmk-branding"},[e._m(0),n("div",{staticClass:"qmk-app-name"},[e._v("QMK Configurator")]),n("div",{staticClass:"bes-version"},[e._v(" "+e._s(e.$t("apiVersionPrefix"))+" "),n("span",{staticClass:"version-num"},[e._v("v"+e._s(e.version))])])]),n("div",{staticClass:"bes-title"},[n("div",{staticClass:"bes-status"},[n("div",{staticClass:"bes-status-left",class:e.currentStatusClass},[e._m(1)]),n("div",{staticClass:"bes-status-center"},[e._v(" "+e._s(e.$t("serverIs"))+" ")]),n("div",{staticClass:"bes-status-right"},[e._v(e._s(e.jobs))])])]),n("div",{staticClass:"bes-discord"},[e.hasError?n("a",{attrs:{target:"_blank",rel:"noopener",href:e.discordLink}},[e._v(" Error? Let us know on QMK Discord. ")]):e._e()]),n("div",{staticClass:"bes-controls",on:{click:e.clickSettings}},[e.settingsPanelVisible?e._e():n("font-awesome-icon",{attrs:{icon:"chevron-left","fixed-width":""}}),n("font-awesome-icon",{attrs:{icon:"cog",size:"lg"}}),e.settingsPanelVisible?n("font-awesome-icon",{attrs:{icon:"chevron-right","fixed-width":""}}):e._e(),e._v(" "+e._s(e.$t("settings"))+" ")],1)])},lj=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",{attrs:{target:"_blank",rel:"noopener",href:"https://github.com/qmk/qmk_configurator"}},[n("div",{staticClass:"qmk-logo",attrs:{title:"See the QMK Configurator Repo"}})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",[n("li")])}];const ag=20,sj=10,_j={name:"status-bar",computed:{...Kc("app",["settingsPanelVisible"]),currentStatusClass(){switch(this.status){case"running":return"bes-status-running";case"degraded":return"bes-status-degraded";default:return"bes-status-down"}},jobCountClass(){return this.jobCount{this.version=e.version,this.jobCount=parseInt(e.queue_length,10),this.jobCount===0?this.jobs=this.$t("ready"):this.jobs=`${this.jobCount} ${this.$t("jobsAhead")}`,this.jobCount{this.status="DOWN",this.hasError=!0,console.error("API status error",e)}),setTimeout(this.fetchData,this.getPollInterval())},clickSettings(){this.setSettingsPanel(!this.settingsPanelVisible)}},data:()=>({status:"",version:"0.1",jobCount:0,hasError:!1,jobs:"Initializing"}),mounted(){setTimeout(this.fetchData,1e3)}},ig={};var cj=Er(_j,oj,lj,!1,uj,null,null,null);function uj(e){for(let t in ig)this[t]=ig[t]}const mj=function(){return cj.exports}();var fj=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.isNotSupported&&!e.isDimissed,expression:"isNotSupported && !isDimissed"}],attrs:{id:"browser-warn"}},[n("a",{staticClass:"dismiss",attrs:{title:"dismiss"},on:{click:e.dismiss}},[e._v("X")]),e._v(" "+e._s(e.$t("errors.unsupportedBrowser"))+" "),n("a",{attrs:{href:"https://www.google.com/intl/en_us/chrome/",target:"_blank",rel:"noopener"}},[e._v("Google Chrome")]),e._v(" / "),n("a",{attrs:{href:"https://www.mozilla.org/en-US/firefox/new/",target:"_blank",rel:"noopener"}},[e._v("Mozilla Firefox")])])},Cj=[];const dj={name:"browser-warn-bar",data(){return{isDimissed:!1}},methods:{dismiss(){this.isDimissed=!0}},computed:{isNotSupported(){const e=window.navigator.userAgent.toLowerCase(),t=(e.indexOf("chrome")!==-1||e.indexOf("chromium")!==-1)&&e.indexOf("edge")===-1&&e.indexOf("opr")===-1,n=e.indexOf("firefox")!==-1;return!(t||n)}}},rg={};var pj=Er(dj,fj,Cj,!1,hj,null,null,null);function hj(e){for(let t in rg)this[t]=rg[t]}const Sj=function(){return pj.exports}();var Kj=function(e,t){var n=t._c;return n("transition",{attrs:{name:"fade",appear:""}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.props.isVisible,expression:"props.isVisible"}],staticClass:"veil-container"},[t._t("contents",function(){return[t._v("Something to Unveil")]})],2)])},vj=[];const Rj={name:"veil-component",props:{isVisible:{type:Boolean,required:!0}}},og={};var yj=Er(Rj,Kj,vj,!0,gj,null,null,null);function gj(e){for(let t in og)this[t]=og[t]}const Lj=function(){return yj.exports}();var pb={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(typeof self<"u"?self:cr,function(){return function(n){var a={};function i(o){if(a[o])return a[o].exports;var s=a[o]={i:o,l:!1,exports:{}};return n[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=a,i.d=function(o,s,u){i.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:u})},i.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.t=function(o,s){if(1&s&&(o=i(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var u=Object.create(null);if(i.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var m in o)i.d(u,m,(function(f){return o[f]}).bind(null,m));return u},i.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(s,"a",s),s},i.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},i.p="/",i(i.s=8)}([function(n,a,i){var o=i(4),s=i(5),u=i(6);n.exports=function(m){return o(m)||s(m)||u()}},function(n,a){function i(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n.exports=i=function(s){return typeof s}:n.exports=i=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},i(o)}n.exports=i},function(n,a,i){},function(n,a){n.exports=function(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}},function(n,a){n.exports=function(i){if(Array.isArray(i)){for(var o=0,s=new Array(i.length);oD.bottom)return this.$refs.dropdownMenu.scrollTop=P.offsetTop-(D.height-ie)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},A={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){for(var y=0;y=0;y--)if(this.selectable(this.filteredOptions[y])){this.typeAheadPointer=y;break}},typeAheadDown:function(){for(var y=this.typeAheadPointer+1;y0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=y??!this.mutableLoading}}};function T(y,P,D,O,B,Q,ie,fe){var ue,Ce=typeof y=="function"?y.options:y;if(P&&(Ce.render=P,Ce.staticRenderFns=D,Ce._compiled=!0),O&&(Ce.functional=!0),Q&&(Ce._scopeId="data-v-"+Q),ie?(ue=function(Ne){(Ne=Ne||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(Ne=__VUE_SSR_CONTEXT__),B&&B.call(this,Ne),Ne&&Ne._registeredComponents&&Ne._registeredComponents.add(ie)},Ce._ssrRegister=ue):B&&(ue=fe?function(){B.call(this,this.$root.$options.shadowRoot)}:B),ue)if(Ce.functional){Ce._injectStyles=ue;var pe=Ce.render;Ce.render=function(Ne,ve){return ue.call(ve),pe(Ne,ve)}}else{var Le=Ce.beforeCreate;Ce.beforeCreate=Le?[].concat(Le,ue):[ue]}return{exports:y,options:Ce}}var M={Deselect:T({},function(){var y=this.$createElement,P=this._self._c||y;return P("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[P("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])},[],!1,null,null,null).exports,OpenIndicator:T({},function(){var y=this.$createElement,P=this._self._c||y;return P("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[P("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])},[],!1,null,null,null).exports},G={inserted:function(y,P,D){var O=D.context;if(O.appendToBody){var B=O.$refs.toggle.getBoundingClientRect(),Q=B.height,ie=B.top,fe=B.left,ue=B.width,Ce=window.scrollX||window.pageXOffset,pe=window.scrollY||window.pageYOffset;y.unbindPosition=O.calculatePosition(y,O,{width:ue+"px",left:Ce+fe+"px",top:pe+ie+Q+"px"}),document.body.appendChild(y)}},unbind:function(y,P,D){D.context.appendToBody&&(y.unbindPosition&&typeof y.unbindPosition=="function"&&y.unbindPosition(),y.parentNode&&y.parentNode.removeChild(y))}},$=function(y){var P={};return Object.keys(y).sort().forEach(function(D){P[D]=y[D]}),JSON.stringify(P)},V=0,H=function(){return++V};function W(y,P){var D=Object.keys(y);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(y);P&&(O=O.filter(function(B){return Object.getOwnPropertyDescriptor(y,B).enumerable})),D.push.apply(D,O)}return D}function z(y){for(var P=1;P-1}},filter:{type:Function,default:function(y,P){var D=this;return y.filter(function(O){var B=D.getOptionLabel(O);return typeof B=="number"&&(B=B.toString()),D.filterBy(O,B,P)})}},createOption:{type:Function,default:function(y){return m()(this.optionList[0])==="object"?S()({},this.label,y):y}},resetOnOptionsChange:{default:!1,validator:function(y){return["function","boolean"].includes(m()(y))}},clearSearchOnBlur:{type:Function,default:function(y){var P=y.clearSearchOnSelect,D=y.multiple;return P&&!D}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(y,P){return y}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(y,P,D){var O=D.width,B=D.top,Q=D.left;y.style.top=B,y.style.left=Q,y.style.width=O}},dropdownShouldOpen:{type:Function,default:function(y){var P=y.noDrop,D=y.open,O=y.mutableLoading;return!P&&D&&!O}}},data:function(){return{uid:H(),search:"",open:!1,isComposing:!1,pushedTags:[],_value:[]}},watch:{options:function(y,P){var D=this;!this.taggable&&(typeof D.resetOnOptionsChange=="function"?D.resetOnOptionsChange(y,P,D.selectedValue):D.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:function(y){this.isTrackingValues&&this.setInternalValueFromOptions(y)},multiple:function(){this.clearSelection()},open:function(y){this.$emit(y?"open":"close")}},created:function(){this.mutableLoading=this.loading,this.value!==void 0&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value),this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(y){var P=this;Array.isArray(y)?this.$data._value=y.map(function(D){return P.findOptionFromReducedValue(D)}):this.$data._value=this.findOptionFromReducedValue(y)},select:function(y){this.$emit("option:selecting",y),this.isOptionSelected(y)||(this.taggable&&!this.optionExists(y)&&this.$emit("option:created",y),this.multiple&&(y=this.selectedValue.concat(y)),this.updateValue(y),this.$emit("option:selected",y)),this.onAfterSelect(y)},deselect:function(y){var P=this;this.$emit("option:deselecting",y),this.updateValue(this.selectedValue.filter(function(D){return!P.optionComparator(D,y)})),this.$emit("option:deselected",y)},clearSelection:function(){this.updateValue(this.multiple?[]:null)},onAfterSelect:function(y){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue:function(y){var P=this;this.value===void 0&&(this.$data._value=y),y!==null&&(y=Array.isArray(y)?y.map(function(D){return P.reduce(D)}):this.reduce(y)),this.$emit("input",y)},toggleDropdown:function(y){var P=y.target!==this.searchEl;P&&y.preventDefault();var D=[].concat(s()(this.$refs.deselectButtons||[]),s()([this.$refs.clearButton]));this.searchEl===void 0||D.filter(Boolean).some(function(O){return O.contains(y.target)||O===y.target})?y.preventDefault():this.open&&P?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(y){var P=this;return this.selectedValue.some(function(D){return P.optionComparator(D,y)})},optionComparator:function(y,P){return this.getOptionKey(y)===this.getOptionKey(P)},findOptionFromReducedValue:function(y){var P=this,D=[].concat(s()(this.options),s()(this.pushedTags)).filter(function(O){return JSON.stringify(P.reduce(O))===JSON.stringify(y)});return D.length===1?D[0]:D.find(function(O){return P.optionComparator(O,P.$data._value)})||y},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var y=null;this.multiple&&(y=s()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(y)}},optionExists:function(y){var P=this;return this.optionList.some(function(D){return P.optionComparator(D,y)})},normalizeOptionForSlot:function(y){return m()(y)==="object"?y:S()({},this.label,y)},pushTag:function(y){this.pushedTags.push(y)},onEscape:function(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur:function(){if(!this.mousedown||this.searching){var y=this.clearSearchOnSelect,P=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:y,multiple:P})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onSearchKeyDown:function(y){var P=this,D=function(Q){return Q.preventDefault(),!P.isComposing&&P.typeAheadSelect()},O={8:function(Q){return P.maybeDeleteValue()},9:function(Q){return P.onTab()},27:function(Q){return P.onEscape()},38:function(Q){return Q.preventDefault(),P.typeAheadUp()},40:function(Q){return Q.preventDefault(),P.typeAheadDown()}};this.selectOnKeyCodes.forEach(function(Q){return O[Q]=D});var B=this.mapKeydown(O,this);if(typeof B[y.keyCode]=="function")return B[y.keyCode](y)}},computed:{isTrackingValues:function(){return this.value===void 0||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var y=this.value;return this.isTrackingValues&&(y=this.$data._value),y?[].concat(y):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var y=this,P={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:z({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":"vs".concat(this.uid,"__combobox"),"aria-controls":"vs".concat(this.uid,"__listbox"),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return y.isComposing=!0},compositionend:function(){return y.isComposing=!1},keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(D){return y.search=D.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:P,listFooter:P,header:z({},P,{deselect:this.deselect}),footer:z({},P,{deselect:this.deselect})}},childComponents:function(){return z({},M,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){if(this.isValueEmpty&&this.placeholder)return this.placeholder},filteredOptions:function(){var y=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return y;var P=this.search.length?this.filter(y,this.search,this):y;if(this.taggable&&this.search.length){var D=this.createOption(this.search);this.optionExists(D)||P.unshift(D)}return P},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}}},Z=(i(7),T(X,function(){var y=this,P=y.$createElement,D=y._self._c||P;return D("div",{staticClass:"v-select",class:y.stateClasses,attrs:{dir:y.dir}},[y._t("header",null,null,y.scope.header),y._v(" "),D("div",{ref:"toggle",staticClass:"vs__dropdown-toggle",attrs:{id:"vs"+y.uid+"__combobox",role:"combobox","aria-expanded":y.dropdownOpen.toString(),"aria-owns":"vs"+y.uid+"__listbox","aria-label":"Search for option"},on:{mousedown:function(O){return y.toggleDropdown(O)}}},[D("div",{ref:"selectedOptions",staticClass:"vs__selected-options"},[y._l(y.selectedValue,function(O){return y._t("selected-option-container",[D("span",{key:y.getOptionKey(O),staticClass:"vs__selected"},[y._t("selected-option",[y._v(` `+y._s(y.getOptionLabel(O))+` diff --git a/index.html b/index.html index d68e6750ba..c80fa2328f 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@ margin-left: -100vh; } - +