diff --git a/assets/BaseKey-65569d17.js b/assets/BaseKey-824d540a.js similarity index 97% rename from assets/BaseKey-65569d17.js rename to assets/BaseKey-824d540a.js index 77b1d05c87..5d578d0dea 100644 --- a/assets/BaseKey-65569d17.js +++ b/assets/BaseKey-824d540a.js @@ -1,2 +1,2 @@ -import{n as _,D as n,c as d,m as p,i as o,d as y}from"./index-0af2c84d.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 A=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 _,D as n,c as d,m as p,i as o,d as y}from"./index-b6c0cb23.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 A=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,A as a}; diff --git a/assets/Home-b9923016.js b/assets/Home-45d639d0.js similarity index 99% rename from assets/Home-b9923016.js rename to assets/Home-45d639d0.js index d49b642edb..48987f89db 100644 --- a/assets/Home-b9923016.js +++ b/assets/Home-45d639d0.js @@ -1,4 +1,4 @@ -import{_ as ve,t as fe,g as L,u as v,s as c,b as be,a as Re,m as f,c as g,V as h,i as o,f as _,d as u,e as w,h as S,r as Oe,j as Ue,P as _e,k as ke,n as p,l as we,o as Ae,p as Pe,q as Ie,v as Me,w as Be,x as qe,y as Je,z as Ve,A as Ye,B as V}from"./index-0af2c84d.js";import{B as k,a as He}from"./BaseKey-65569d17.js";function We(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:Qe(e,a,t)}var Ze=Xe;function et(e){return e.split("")}var tt=et,xe="\\ud800-\\udfff",at="\\u0300-\\u036f",rt="\\ufe20-\\ufe2f",it="\\u20d0-\\u20ff",st=at+rt+it,nt="\\ufe0e\\ufe0f",ot="["+xe+"]",U="["+st+"]",A="\\ud83c[\\udffb-\\udfff]",lt="(?:"+U+"|"+A+")",$e="[^"+xe+"]",Ce="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",ct="\\u200d",Se=lt+"?",Te="["+nt+"]?",dt="(?:"+ct+"(?:"+[$e,Ce,Le].join("|")+")"+Te+Se+")*",ut=Te+Se+dt,pt="(?:"+[$e+U+"?",U,Ce,Le,ot].join("|")+")",mt=RegExp(A+"(?="+A+")|"+pt+ut,"g");function gt(e){return e.match(mt)||[]}var ht=gt,yt=tt,vt=ve,ft=ht;function bt(e){return vt(e)?ft(e):yt(e)}var _t=bt,kt=Ze,wt=ve,xt=_t,$t=fe;function Ct(e){return function(a){a=$t(a);var t=wt(a)?xt(a):void 0,r=t?t[0]:a.charAt(0),i=t?kt(t,1).join(""):a.slice(1);return r[e]()+i}}var Lt=Ct,St=Lt,Tt=St("toUpperCase"),Kt=Tt,Ft=fe,jt=Kt;function Nt(e){return jt(Ft(e).toLowerCase())}var Et=Nt;const Dt=L(Et);let z,zt="Baking";function P(e){const a=v();a.append(e),a.scrollToEnd()}function Rt(e,a,t){Ke();let r=c.state.keymap.templates.keymap;const i=c.getters["keymap/exportLayers"]({compiler:!0});let s=JSON.stringify({...r,keyboard:e,keymap:a,layout:t,layers:i});console.log(s);const n=v();n.empty&&n.append(` +import{_ as ve,t as fe,g as L,u as v,s as c,b as be,a as Re,m as f,c as g,V as h,i as o,f as _,d as u,e as w,h as S,r as Oe,j as Ue,P as _e,k as ke,n as p,l as we,o as Ae,p as Pe,q as Ie,v as Me,w as Be,x as qe,y as Je,z as Ve,A as Ye,B as V}from"./index-b6c0cb23.js";import{B as k,a as He}from"./BaseKey-824d540a.js";function We(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:Qe(e,a,t)}var Ze=Xe;function et(e){return e.split("")}var tt=et,xe="\\ud800-\\udfff",at="\\u0300-\\u036f",rt="\\ufe20-\\ufe2f",it="\\u20d0-\\u20ff",st=at+rt+it,nt="\\ufe0e\\ufe0f",ot="["+xe+"]",U="["+st+"]",A="\\ud83c[\\udffb-\\udfff]",lt="(?:"+U+"|"+A+")",$e="[^"+xe+"]",Ce="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",ct="\\u200d",Se=lt+"?",Te="["+nt+"]?",dt="(?:"+ct+"(?:"+[$e,Ce,Le].join("|")+")"+Te+Se+")*",ut=Te+Se+dt,pt="(?:"+[$e+U+"?",U,Ce,Le,ot].join("|")+")",mt=RegExp(A+"(?="+A+")|"+pt+ut,"g");function gt(e){return e.match(mt)||[]}var ht=gt,yt=tt,vt=ve,ft=ht;function bt(e){return vt(e)?ft(e):yt(e)}var _t=bt,kt=Ze,wt=ve,xt=_t,$t=fe;function Ct(e){return function(a){a=$t(a);var t=wt(a)?xt(a):void 0,r=t?t[0]:a.charAt(0),i=t?kt(t,1).join(""):a.slice(1);return r[e]()+i}}var Lt=Ct,St=Lt,Tt=St("toUpperCase"),Kt=Tt,Ft=fe,jt=Kt;function Nt(e){return jt(Ft(e).toLowerCase())}var Et=Nt;const Dt=L(Et);let z,zt="Baking";function P(e){const a=v();a.append(e),a.scrollToEnd()}function Rt(e,a,t){Ke();let r=c.state.keymap.templates.keymap;const i=c.getters["keymap/exportLayers"]({compiler:!0});let s=JSON.stringify({...r,keyboard:e,keymap:a,layout:t,layers:i});console.log(s);const n=v();n.empty&&n.append(` `),n.append(`* Sending ${e}:${a} with ${t}`),fetch(be,{method:"POST",headers:{"Content-Type":"application/json"},body:s}).then(async l=>{if(l.ok){c.commit("app/setShowSpinner",!0);const m=await l.json();m.enqueued&&(n.append(` * Received job_id: ${m.job_id}`),n.scrollToEnd(),c.commit("app/setJobID",m.job_id),I())}else throw l}).catch(l=>{window.alert("Unexpected error ",console.log(l))})}function C(){c.commit("app/enableCompile"),setTimeout(()=>{c.commit("app/setShowSpinner",!1)},2e3)}function Ke(){c.commit("app/disableCompile")}function Ot(){c.commit("app/setEnableDownloads")}function Fe(){c.commit("app/setDisableDownloads")}function I(){const e=`${be}/${c.state.app.jobID}`,a=performance.now(),t=v();fetch(e).then(async r=>{console.log(`response in ${performance.now()-a}ms`,r);let i;const s=await r.json();if(!r.ok)console.log("Unexpected status",s.status),C();else{const n=Math.floor(2500+Math.random()*1e3);switch(console.log(`Next Poll in ${n}ms`),s.status){case"finished":c.commit("app/setSpinnerMsg","Done!"),t.append(` * Finished: diff --git a/assets/Print-67d307e5.js b/assets/Print-9607146a.js similarity index 97% rename from assets/Print-67d307e5.js rename to assets/Print-9607146a.js index 919842bc7f..15d2124997 100644 --- a/assets/Print-67d307e5.js +++ b/assets/Print-9607146a.js @@ -1,4 +1,4 @@ -import{n as i,c as n,m as y,d as v,i as l,V as g}from"./index-0af2c84d.js";import{B as $,a as k}from"./BaseKey-65569d17.js";var b=function(){var t=this,a=t.$createElement,e=t._self._c||a;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,c as n,m as y,d as v,i as l,V as g}from"./index-b6c0cb23.js";import{B as $,a as k}from"./BaseKey-824d540a.js";var b=function(){var t=this,a=t.$createElement,e=t._self._c||a;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.name)}`:this.meta.type==="container"?`${this.meta.name.toUpperCase()} ${this.formatName(this.meta.contents.name)}`:this.formatName(this.breakLines(this.meta.name))}},methods:{breakLines(t){return this.uw<1.75&&(t=t.replace(" ",` `).replace("_",`_ diff --git a/assets/Test-5ac405bd.js b/assets/Test-8c366998.js similarity index 99% rename from assets/Test-5ac405bd.js rename to assets/Test-8c366998.js index 5671e95cad..33ff052ff4 100644 --- a/assets/Test-5ac405bd.js +++ b/assets/Test-8c366998.js @@ -1,4 +1,4 @@ -import{n as O,C as k,c as B,m as E,i as L,B as N,d as M,e as X}from"./index-0af2c84d.js";import{B as q,a as W}from"./BaseKey-65569d17.js";var Q=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))])},Y=[];const Z={name:"tester-key",props:{layer:Number},extends:q,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,C as k,c as B,m as E,i as L,B as N,d as M,e as X}from"./index-b6c0cb23.js";import{B as q,a as W}from"./BaseKey-824d540a.js";var Q=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))])},Y=[];const Z={name:"tester-key",props:{layer:Number},extends:q,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}}},$={};var j=O(Z,Q,Y,!1,U,null,null,null);function U(a){for(let v in $)this[v]=$[v]}const D=function(){return j.exports}();var G={};/*! * howler.js v2.2.3 diff --git a/assets/index-0af2c84d.js b/assets/index-b6c0cb23.js similarity index 99% rename from assets/index-0af2c84d.js rename to assets/index-b6c0cb23.js index 8b40dec03f..9b2ba54fcb 100644 --- a/assets/index-0af2c84d.js +++ b/assets/index-b6c0cb23.js @@ -9,11 +9,11 @@ */function ik(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 rk=typeof window<"u"?window:typeof global<"u"?global:{},Sf=rk.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ok(e){Sf&&(e._devtoolHook=Sf,Sf.emit("vuex:init",e),Sf.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(t,n){Sf.emit("vuex:mutation",t,n)},{prepend:!0}),e.subscribeAction(function(t,n){Sf.emit("vuex:action",t,n)},{prepend:!0}))}function lk(e,t){return e.filter(t)[0]}function QK(e,t){if(t===void 0&&(t=[]),e===null||typeof e!="object")return e;var n=lk(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]=QK(e[i],t)}),a}function Yf(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function qE(e){return e!==null&&typeof e=="object"}function sk(e){return e&&typeof e.then=="function"}function _k(e,t){return function(){return e(t)}}var so=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)||{}},eb={namespaced:{configurable:!0}};eb.namespaced.get=function(){return!!this._rawModule.namespaced};so.prototype.addChild=function(t,n){this._children[t]=n};so.prototype.removeChild=function(t){delete this._children[t]};so.prototype.getChild=function(t){return this._children[t]};so.prototype.hasChild=function(t){return t in this._children};so.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)};so.prototype.forEachChild=function(t){Yf(this._children,t)};so.prototype.forEachGetter=function(t){this._rawModule.getters&&Yf(this._rawModule.getters,t)};so.prototype.forEachAction=function(t){this._rawModule.actions&&Yf(this._rawModule.actions,t)};so.prototype.forEachMutation=function(t){this._rawModule.mutations&&Yf(this._rawModule.mutations,t)};Object.defineProperties(so.prototype,eb);var ou=function(t){this.register([],t,!1)};ou.prototype.get=function(t){return t.reduce(function(n,a){return n.getChild(a)},this.root)};ou.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(a,i){return n=n.getChild(i),a+(n.namespaced?i+"/":"")},"")};ou.prototype.update=function(t){tb([],this.root,t)};ou.prototype.register=function(t,n,a){var i=this;a===void 0&&(a=!0);var l=new so(n,a);if(t.length===0)this.root=l;else{var u=this.get(t.slice(0,-1));u.addChild(t[t.length-1],l)}n.modules&&Yf(n.modules,function(m,C){i.register(t.concat(C),m,a)})};ou.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)};ou.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),a=t[t.length-1];return n?n.hasChild(a):!1};function tb(e,t,n){if(t.update(n),n.modules)for(var a in n.modules){if(!t.getChild(a))return;tb(e.concat(a),t.getChild(a),n.modules[a])}}var Si,ji=function(t){var n=this;t===void 0&&(t={}),!Si&&typeof window<"u"&&window.Vue&&ib(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 ou(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new Si,this._makeLocalGettersCache=Object.create(null);var l=this,u=this,m=u.dispatch,C=u.commit;this.dispatch=function(P,w){return m.call(l,P,w)},this.commit=function(P,w,G){return C.call(l,P,w,G)},this.strict=i;var d=this._modules.root.state;_h(this,d,[],this._modules.root),eR(this,d),a.forEach(function(b){return b(n)});var g=t.devtools!==void 0?t.devtools:Si.config.devtools;g&&ok(this)},qv={state:{configurable:!0}};qv.state.get=function(){return this._vm._data.$$state};qv.state.set=function(e){};ji.prototype.commit=function(t,n,a){var i=this,l=wp(t,n,a),u=l.type,m=l.payload,C={type:u,payload:m},d=this._mutations[u];d&&(this._withCommit(function(){d.forEach(function(b){b(m)})}),this._subscribers.slice().forEach(function(g){return g(C,i.state)}))};ji.prototype.dispatch=function(t,n){var a=this,i=wp(t,n),l=i.type,u=i.payload,m={type:l,payload:u},C=this._actions[l];if(C){try{this._actionSubscribers.slice().filter(function(g){return g.before}).forEach(function(g){return g.before(m,a.state)})}catch{}var d=C.length>1?Promise.all(C.map(function(g){return g(u)})):C[0](u);return new Promise(function(g,b){d.then(function(P){try{a._actionSubscribers.filter(function(w){return w.after}).forEach(function(w){return w.after(m,a.state)})}catch{}g(P)},function(P){try{a._actionSubscribers.filter(function(w){return w.error}).forEach(function(w){return w.error(m,a.state,P)})}catch{}b(P)})})}};ji.prototype.subscribe=function(t,n){return nb(t,this._subscribers,n)};ji.prototype.subscribeAction=function(t,n){var a=typeof t=="function"?{before:t}:t;return nb(a,this._actionSubscribers,n)};ji.prototype.watch=function(t,n,a){var i=this;return this._watcherVM.$watch(function(){return t(i.state,i.getters)},n,a)};ji.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._vm._data.$$state=t})};ji.prototype.registerModule=function(t,n,a){a===void 0&&(a={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),_h(this,this.state,t,this._modules.get(t),a.preserveState),eR(this,this.state)};ji.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var a=tR(n.state,t.slice(0,-1));Si.delete(a,t[t.length-1])}),ab(this)};ji.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};ji.prototype.hotUpdate=function(t){this._modules.update(t),ab(this,!0)};ji.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(ji.prototype,qv);function nb(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 ab(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;_h(e,n,[],e._modules.root,!0),eR(e,n,t)}function eR(e,t,n){var a=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,l={};Yf(i,function(m,C){l[C]=_k(m,e),Object.defineProperty(e.getters,C,{get:function(){return e._vm[C]},enumerable:!0})});var u=Si.config.silent;Si.config.silent=!0,e._vm=new Si({data:{$$state:t},computed:l}),Si.config.silent=u,e.strict&&dk(e),a&&(n&&e._withCommit(function(){a._data.$$state=null}),Si.nextTick(function(){return a.$destroy()}))}function _h(e,t,n,a,i){var l=!n.length,u=e._modules.getNamespace(n);if(a.namespaced&&(e._modulesNamespaceMap[u],e._modulesNamespaceMap[u]=a),!l&&!i){var m=tR(t,n.slice(0,-1)),C=n[n.length-1];e._withCommit(function(){Si.set(m,C,a.state)})}var d=a.context=ck(e,u,n);a.forEachMutation(function(g,b){var P=u+b;fk(e,P,g,d)}),a.forEachAction(function(g,b){var P=g.root?b:u+b,w=g.handler||g;mk(e,P,w,d)}),a.forEachGetter(function(g,b){var P=u+b;Ck(e,P,g,d)}),a.forEachChild(function(g,b){_h(e,t,n.concat(b),g,i)})}function ck(e,t,n){var a=t==="",i={dispatch:a?e.dispatch:function(l,u,m){var C=wp(l,u,m),d=C.payload,g=C.options,b=C.type;return(!g||!g.root)&&(b=t+b),e.dispatch(b,d)},commit:a?e.commit:function(l,u,m){var C=wp(l,u,m),d=C.payload,g=C.options,b=C.type;(!g||!g.root)&&(b=t+b),e.commit(b,d,g)}};return Object.defineProperties(i,{getters:{get:a?function(){return e.getters}:function(){return uk(e,t)}},state:{get:function(){return tR(e.state,n)}}}),i}function uk(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 l=i.slice(a);Object.defineProperty(n,l,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function fk(e,t,n,a){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(u){n.call(e,a.state,u)})}function mk(e,t,n,a){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(u){var m=n.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},u);return sk(m)||(m=Promise.resolve(m)),e._devtoolHook?m.catch(function(C){throw e._devtoolHook.emit("vuex:error",C),C}):m})}function Ck(e,t,n,a){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(l){return n(a.state,a.getters,l.state,l.getters)})}function dk(e){e._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function tR(e,t){return t.reduce(function(n,a){return n[a]},e)}function wp(e,t,n){return qE(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function ib(e){Si&&e===Si||(Si=e,ik(Si))}var EC=fh(function(e,t){var n={};return uh(t).forEach(function(a){var i=a.key,l=a.val;n[i]=function(){var m=this.$store.state,C=this.$store.getters;if(e){var d=mh(this.$store,"mapState",e);if(!d)return;m=d.context.state,C=d.context.getters}return typeof l=="function"?l.call(this,m,C):m[l]},n[i].vuex=!0}),n}),bC=fh(function(e,t){var n={};return uh(t).forEach(function(a){var i=a.key,l=a.val;n[i]=function(){for(var m=[],C=arguments.length;C--;)m[C]=arguments[C];var d=this.$store.commit;if(e){var g=mh(this.$store,"mapMutations",e);if(!g)return;d=g.context.commit}return typeof l=="function"?l.apply(this,[d].concat(m)):d.apply(this.$store,[l].concat(m))}}),n}),nR=fh(function(e,t){var n={};return uh(t).forEach(function(a){var i=a.key,l=a.val;l=e+l,n[i]=function(){if(!(e&&!mh(this.$store,"mapGetters",e)))return this.$store.getters[l]},n[i].vuex=!0}),n}),ch=fh(function(e,t){var n={};return uh(t).forEach(function(a){var i=a.key,l=a.val;n[i]=function(){for(var m=[],C=arguments.length;C--;)m[C]=arguments[C];var d=this.$store.dispatch;if(e){var g=mh(this.$store,"mapActions",e);if(!g)return;d=g.context.dispatch}return typeof l=="function"?l.apply(this,[d].concat(m)):d.apply(this.$store,[l].concat(m))}}),n}),rb=function(e){return{mapState:EC.bind(null,e),mapGetters:nR.bind(null,e),mapMutations:bC.bind(null,e),mapActions:ch.bind(null,e)}};function uh(e){return pk(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 pk(e){return Array.isArray(e)||qE(e)}function fh(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function mh(e,t,n){var a=e._modulesNamespaceMap[n];return a}function hk(e){e===void 0&&(e={});var t=e.collapsed;t===void 0&&(t=!0);var n=e.filter;n===void 0&&(n=function(g,b,P){return!0});var a=e.transformer;a===void 0&&(a=function(g){return g});var i=e.mutationTransformer;i===void 0&&(i=function(g){return g});var l=e.actionFilter;l===void 0&&(l=function(g,b){return!0});var u=e.actionTransformer;u===void 0&&(u=function(g){return g});var m=e.logMutations;m===void 0&&(m=!0);var C=e.logActions;C===void 0&&(C=!0);var d=e.logger;return d===void 0&&(d=console),function(g){var b=QK(g.state);typeof d>"u"||(m&&g.subscribe(function(P,w){var G=QK(w);if(n(P,b,G)){var z=Ay(),j=i(P),V="mutation "+P.type+z;yy(d,V,t),d.log("%c prev state","color: #9E9E9E; font-weight: bold",a(b)),d.log("%c mutation","color: #03A9F4; font-weight: bold",j),d.log("%c next state","color: #4CAF50; font-weight: bold",a(G)),Ly(d)}b=G}),C&&g.subscribeAction(function(P,w){if(l(P,w)){var G=Ay(),z=u(P),j="action "+P.type+G;yy(d,j,t),d.log("%c action","color: #03A9F4; font-weight: bold",z),Ly(d)}}))}}function yy(e,t,n){var a=n?e.groupCollapsed:e.group;try{a.call(e,t)}catch{e.log(t)}}function Ly(e){try{e.groupEnd()}catch{e.log("—— log end ——")}}function Ay(){var e=new Date;return" @ "+Fd(e.getHours(),2)+":"+Fd(e.getMinutes(),2)+":"+Fd(e.getSeconds(),2)+"."+Fd(e.getMilliseconds(),3)}function Sk(e,t){return new Array(t+1).join(e)}function Fd(e,t){return Sk("0",t-e.toString().length)+e}var Kk={Store:ji,install:ib,version:"3.6.2",mapState:EC,mapMutations:bC,mapGetters:nR,mapActions:ch,createNamespacedHelpers:rb,createLogger:hk};const ob=Kk;var lb={exports:{}};(function(e,t){(function(a,i){e.exports=i()})(Fi,function(){return function(n){var a={};function i(l){if(a[l])return a[l].exports;var u=a[l]={i:l,l:!1,exports:{}};return n[l].call(u.exports,u,u.exports,i),u.l=!0,u.exports}return i.m=n,i.c=a,i.i=function(l){return l},i.d=function(l,u,m){i.o(l,u)||Object.defineProperty(l,u,{configurable:!1,enumerable:!0,get:m})},i.n=function(l){var u=l&&l.__esModule?function(){return l.default}:function(){return l};return i.d(u,"a",u),u},i.o=function(l,u){return Object.prototype.hasOwnProperty.call(l,u)},i.p="/dist/",i(i.s=2)}([function(n,a,i){i(8);var l=i(6)(i(1),i(7),"data-v-25adc6c0",null);n.exports=l.exports},function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var l=i(3),u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},m="#75c791",C="#bfcbd9",d="on",g="off",b="#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(w){return i.i(l.a)(w)||i.i(l.b)(w,"checked")||i.i(l.b)(w,"unchecked")||i.i(l.b)(w,"disabled")}},switchColor:{type:[String,Object],validator:function(w){return i.i(l.a)(w)||i.i(l.b)(w,"checked")||i.i(l.b)(w,"unchecked")}},cssColors:{type:Boolean,default:!1},labels:{type:[Boolean,Object],default:!1,validator:function(w){return(typeof w>"u"?"undefined":u(w))==="object"?w.checked||w.unchecked:typeof w=="boolean"}},height:{type:Number,default:22},width:{type:Number,default:50},margin:{type:Number,default:3},fontSize:{type:Number}},computed:{className:function(){var w=this.toggled,G=this.disabled;return["vue-js-switch",{toggled:w,disabled:G}]},coreStyle:function(){return{width:i.i(l.c)(this.width),height:i.i(l.c)(this.height),backgroundColor:this.cssColors?null:this.disabled?this.colorDisabled:this.colorCurrent,borderRadius:i.i(l.c)(Math.round(this.height/2))}},buttonRadius:function(){return this.height-this.margin*2},distance:function(){return i.i(l.c)(this.width-this.height+this.margin)},buttonStyle:function(){var w="transform "+this.speed+"ms",G=i.i(l.c)(this.margin),z=this.toggled?i.i(l.d)(this.distance,G):i.i(l.d)(G,G),j=this.switchColor?this.switchColorCurrent:null;return{width:i.i(l.c)(this.buttonRadius),height:i.i(l.c)(this.buttonRadius),transition:w,transform:z,background:j}},labelStyle:function(){return{lineHeight:i.i(l.c)(this.height),fontSize:this.fontSize?i.i(l.c)(this.fontSize):null}},colorChecked:function(){var w=this.color;return i.i(l.e)(w)?i.i(l.f)(w,"checked",m):w||m},colorUnchecked:function(){return i.i(l.f)(this.color,"unchecked",C)},colorDisabled:function(){return i.i(l.f)(this.color,"disabled",this.colorCurrent)},colorCurrent:function(){return this.toggled?this.colorChecked:this.colorUnchecked},labelChecked:function(){return i.i(l.f)(this.labels,"checked",d)},labelUnchecked:function(){return i.i(l.f)(this.labels,"unchecked",g)},switchColorChecked:function(){return i.i(l.f)(this.switchColor,"checked",b)},switchColorUnchecked:function(){return i.i(l.f)(this.switchColor,"unchecked",b)},switchColorCurrent:function(){return this.switchColor,i.i(l.e)(this.switchColor)?this.toggled?this.switchColorChecked:this.switchColorUnchecked:this.switchColor||b}},watch:{value:function(w){this.sync&&(this.toggled=!!w)}},data:function(){return{toggled:!!this.value}},methods:{toggle:function(w){var G=!this.toggled;this.sync||(this.toggled=G),this.$emit("input",G),this.$emit("change",{value:G,tag:this.tag,srcEvent:w})}}}},function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var l=i(0),u=i.n(l);i.d(a,"ToggleButton",function(){return u.a});var m=!1;a.default={install:function(d){m||(d.component("ToggleButton",u.a),m=!0)}}},function(n,a,i){i.d(a,"a",function(){return u}),i.d(a,"e",function(){return m}),i.d(a,"b",function(){return C}),i.d(a,"f",function(){return d}),i.d(a,"c",function(){return g}),i.d(a,"d",function(){return b});var l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},u=function(w){return typeof w=="string"},m=function(w){return(typeof w>"u"?"undefined":l(w))==="object"},C=function(w,G){return m(w)&&w.hasOwnProperty(G)},d=function(w,G,z){return C(w,G)?w[G]:z},g=function(w){return w+"px"},b=function(w,G){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0px";return"translate3d("+w+", "+G+", "+z+")"}},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 u=[],m=0;mle.parts.length&&(ie.parts.length=le.parts.length)}else{for(var A=[],D=0;Dthis.$t(`settingsPanel.osKeyboardLayout.label.${t}`);return[...this.osKeyboardLayouts].sort((t,n)=>e(t).localeCompare(e(n)))}},methods:{...bC("keymap",["toggleContinuousInput"]),...bC("app",["setLegends","toggleTutorial","toggleSnowflakes"]),...ch("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)}}},Ey={};var Lk=B_(yk,Rk,gk,!1,Ak,null,null,null);function Ak(e){for(let t in Ey)this[t]=Ey[t]}const Ek=function(){return Lk.exports}();var bk=function(e,t){return t._c,t._m(0)},Tk=[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 Pk={},by={};var wk=B_(Pk,bk,Tk,!0,Ok,null,null,null);function Ok(e){for(let t in by)this[t]=by[t]}const Ik=function(){return wk.exports}(),Nk="/assets/Santa_hat-caf4a6a3.svg",Uk="/assets/jinglebell-32197867.svg";var Dk=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:Nk,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:Uk,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)},kk=[];const{mapState:Mk,mapMutations:Gk}=rb("app"),Bk={name:"app",components:{Spinner:ak,InfoBar:l2,SnowFlake:Ik},data(){return{revision:"362e0b8e42f2d14075211ca27d72959e9ba1ec59",potatoFact:"QMK for potatoes",interval:12e4,destroyWatcher:void 0,panel:void 0,settingsClasses:"",hover:!1}},computed:{...nR("keymap",["isDirty"]),...Mk(["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),iU(this.destroyWatcher)&&this.destroyWatcher(),window.removeEventListener("beforeunload",this.showConfirmationPrompt)},methods:{...Gk(["setShowSpinner","setSettingsPanel","toggleTutorial","setMessage"]),...ch("app",["loadApplicationState"]),randomPotatoFact(){const e=Xv(this.$t("potato"));this.potatoFact=this.$t("potato."+X2(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:Ek,openOn:"right",props:{},width:"300px"}),this.panel.promise.then(()=>{this.setSettingsPanel(!1)})):(this.panel.hide(),this.panel=void 0)},showSettings(){this.setSettingsPanel(!0)}}},Ty={};var xk=B_(Bk,Dk,kk,!1,$k,null,null,null);function $k(e){for(let t in Ty)this[t]=Ty[t]}const Fk=function(){return xk.exports}(),Hk="modulepreload",Qk=function(e){return"/"+e},Py={},aR=function(t,n,a){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=Qk(l),l in Py)return;Py[l]=!0;const u=l.endsWith(".css"),m=u?'[rel="stylesheet"]':"";if(!!a)for(let g=i.length-1;g>=0;g--){const b=i[g];if(b.href===l&&(!u||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${m}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Hk,u||(d.as="script",d.crossOrigin=""),d.href=l,document.head.appendChild(d),u)return new Promise((g,b)=>{d.addEventListener("load",g),d.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t()).catch(l=>{const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l})};/*! +/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(D))))+" */"),ee.styleSheet)ee.styleSheet.cssText=le;else{for(;ee.firstChild;)ee.removeChild(ee.firstChild);ee.appendChild(document.createTextNode(le))}}},function(n,a){n.exports=function(l,u){for(var m=[],C={},d=0;dthis.$t(`settingsPanel.osKeyboardLayout.label.${t}`);return[...this.osKeyboardLayouts].sort((t,n)=>e(t).localeCompare(e(n)))}},methods:{...bC("keymap",["toggleContinuousInput"]),...bC("app",["setLegends","toggleTutorial","toggleSnowflakes"]),...ch("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)}}},Ey={};var Lk=B_(yk,Rk,gk,!1,Ak,null,null,null);function Ak(e){for(let t in Ey)this[t]=Ey[t]}const Ek=function(){return Lk.exports}();var bk=function(e,t){return t._c,t._m(0)},Tk=[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 Pk={},by={};var wk=B_(Pk,bk,Tk,!0,Ok,null,null,null);function Ok(e){for(let t in by)this[t]=by[t]}const Ik=function(){return wk.exports}(),Nk="/assets/Santa_hat-caf4a6a3.svg",Uk="/assets/jinglebell-32197867.svg";var Dk=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:Nk,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:Uk,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)},kk=[];const{mapState:Mk,mapMutations:Gk}=rb("app"),Bk={name:"app",components:{Spinner:ak,InfoBar:l2,SnowFlake:Ik},data(){return{revision:"717df3478cc59512550638d2d37fd80c706539c2",potatoFact:"QMK for potatoes",interval:12e4,destroyWatcher:void 0,panel:void 0,settingsClasses:"",hover:!1}},computed:{...nR("keymap",["isDirty"]),...Mk(["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),iU(this.destroyWatcher)&&this.destroyWatcher(),window.removeEventListener("beforeunload",this.showConfirmationPrompt)},methods:{...Gk(["setShowSpinner","setSettingsPanel","toggleTutorial","setMessage"]),...ch("app",["loadApplicationState"]),randomPotatoFact(){const e=Xv(this.$t("potato"));this.potatoFact=this.$t("potato."+X2(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:Ek,openOn:"right",props:{},width:"300px"}),this.panel.promise.then(()=>{this.setSettingsPanel(!1)})):(this.panel.hide(),this.panel=void 0)},showSettings(){this.setSettingsPanel(!0)}}},Ty={};var xk=B_(Bk,Dk,kk,!1,$k,null,null,null);function $k(e){for(let t in Ty)this[t]=Ty[t]}const Fk=function(){return xk.exports}(),Hk="modulepreload",Qk=function(e){return"/"+e},Py={},aR=function(t,n,a){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=Qk(l),l in Py)return;Py[l]=!0;const u=l.endsWith(".css"),m=u?'[rel="stylesheet"]':"";if(!!a)for(let g=i.length-1;g>=0;g--){const b=i[g];if(b.href===l&&(!u||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${m}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Hk,u||(d.as="script",d.crossOrigin=""),d.href=l,document.head.appendChild(d),u)return new Promise((g,b)=>{d.addEventListener("load",g),d.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t()).catch(l=>{const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l})};/*! * vue-router v3.5.3 * (c) 2021 Evan You * @license MIT - */function ao(e,t){for(var n in t)e[n]=t[n];return e}var Vk=/[!'()*]/g,Wk=function(e){return"%"+e.charCodeAt(0).toString(16)},zk=/%2C/g,Kf=function(e){return encodeURIComponent(e).replace(Vk,Wk).replace(zk,",")};function VK(e){try{return decodeURIComponent(e)}catch{}return e}function jk(e,t,n){t===void 0&&(t={});var a=n||Jk,i;try{i=a(e||"")}catch{i={}}for(var l in t){var u=t[l];i[l]=Array.isArray(u)?u.map(wy):wy(u)}return i}var wy=function(e){return e==null||typeof e=="object"?e:String(e)};function Jk(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(n){var a=n.replace(/\+/g," ").split("="),i=VK(a.shift()),l=a.length>0?VK(a.join("=")):null;t[i]===void 0?t[i]=l:Array.isArray(t[i])?t[i].push(l):t[i]=[t[i],l]}),t}function Xk(e){var t=e?Object.keys(e).map(function(n){var a=e[n];if(a===void 0)return"";if(a===null)return Kf(n);if(Array.isArray(a)){var i=[];return a.forEach(function(l){l!==void 0&&(l===null?i.push(Kf(n)):i.push(Kf(n)+"="+Kf(l)))}),i.join("&")}return Kf(n)+"="+Kf(a)}).filter(function(n){return n.length>0}).join("&"):null;return t?"?"+t:""}var Op=/\/?$/;function Ip(e,t,n,a){var i=a&&a.options.stringifyQuery,l=t.query||{};try{l=WK(l)}catch{}var u={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:l,params:t.params||{},fullPath:Oy(t,i),matched:e?Zk(e):[]};return n&&(u.redirectedFrom=Oy(n,i)),Object.freeze(u)}function WK(e){if(Array.isArray(e))return e.map(WK);if(e&&typeof e=="object"){var t={};for(var n in e)t[n]=WK(e[n]);return t}else return e}var x_=Ip(null,{path:"/"});function Zk(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function Oy(e,t){var n=e.path,a=e.query;a===void 0&&(a={});var i=e.hash;i===void 0&&(i="");var l=t||Xk;return(n||"/")+l(a)+i}function sb(e,t,n){return t===x_?e===t:t?e.path&&t.path?e.path.replace(Op,"")===t.path.replace(Op,"")&&(n||e.hash===t.hash&&lp(e.query,t.query)):e.name&&t.name?e.name===t.name&&(n||e.hash===t.hash&&lp(e.query,t.query)&&lp(e.params,t.params)):!1:!1}function lp(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,l){var u=e[i],m=a[l];if(m!==i)return!1;var C=t[i];return u==null||C==null?u===C:typeof u=="object"&&typeof C=="object"?lp(u,C):String(u)===String(C)})}function Yk(e,t){return e.path.replace(Op,"/").indexOf(t.path.replace(Op,"/"))===0&&(!t.hash||e.hash===t.hash)&&qk(e.query,t.query)}function qk(e,t){for(var n in t)if(!(n in e))return!1;return!0}function _b(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 E_(e){return e.replace(/\/+/g,"/")}var Np=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},qf=mb,aM=iR,iM=sM,rM=ub,oM=fb,lM=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function iR(e,t){for(var n=[],a=0,i=0,l="",u=t&&t.delimiter||"/",m;(m=lM.exec(e))!=null;){var C=m[0],d=m[1],g=m.index;if(l+=e.slice(i,g),i=g+C.length,d){l+=d[1];continue}var b=e[i],P=m[2],w=m[3],G=m[4],z=m[5],j=m[6],V=m[7];l&&(n.push(l),l="");var q=P!=null&&b!=null&&b!==P,Y=j==="+"||j==="*",ee=j==="?"||j==="*",ae=m[2]||u,le=G||z;n.push({name:w||a++,prefix:P||"",delimiter:ae,optional:ee,repeat:Y,partial:q,asterisk:!!V,pattern:le?uM(le):V?".*":"[^"+sp(ae)+"]+?"})}return i1||!ae.length)return ae.length===0?t():t("span",{},ae)}if(this.tag==="a")ee.on=Y,ee.attrs={href:C,"aria-current":V};else{var le=Cb(this.$slots.default);if(le){le.isStatic=!1;var ie=le.data=ao({},le.data);ie.on=ie.on||{};for(var D in ie.on){var A=ie.on[D];D in Y&&(ie.on[D]=Array.isArray(A)?A:[A])}for(var O in Y)O in ie.on?ie.on[O].push(Y[O]):ie.on[O]=q;var M=le.data.attrs=ao({},le.data.attrs);M.href=C,M["aria-current"]=V}else ee.on=Y}return t(this.tag,ee,this.$slots.default)}};function Dy(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 Cb(e){if(e){for(var t,n=0;n-1&&(j.params[ee]=G.params[ee]);return j.path=_p(q.path,j.params),P(q,j,z)}else if(j.path){j.params={};for(var ae=0;ae=e.length?n():e[i]?t(e[i],function(){a(i+1)}):a(i+1)};a(0)}var lu={redirected:2,aborted:4,cancelled:8,duplicated:16};function TM(e,t){return dh(e,t,lu.redirected,'Redirected when going from "'+e.fullPath+'" to "'+IM(t)+'" via a navigation guard.')}function PM(e,t){var n=dh(e,t,lu.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function $y(e,t){return dh(e,t,lu.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function wM(e,t){return dh(e,t,lu.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function dh(e,t,n,a){var i=new Error(a);return i._isRouter=!0,i.from=e,i.to=t,i.type=n,i}var OM=["params","query","hash"];function IM(e){if(typeof e=="string")return e;if("path"in e)return e.path;var t={};return OM.forEach(function(n){n in e&&(t[n]=e[n])}),JSON.stringify(t,null,2)}function kp(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function ph(e,t){return kp(e)&&e._isRouter&&(t==null||e.type===t)}function NM(e){return function(t,n,a){var i=!1,l=0,u=null;Rb(e,function(m,C,d,g){if(typeof m=="function"&&m.cid===void 0){i=!0,l++;var b=Fy(function(z){DM(z)&&(z=z.default),m.resolved=typeof z=="function"?z:Up.extend(z),d.components[g]=z,l--,l<=0&&a()}),P=Fy(function(z){var j="Failed to resolve async component "+g+": "+z;u||(u=kp(z)?z:new Error(j),a(u))}),w;try{w=m(b,P)}catch(z){P(z)}if(w)if(typeof w.then=="function")w.then(b,P);else{var G=w.component;G&&typeof G.then=="function"&&G.then(b,P)}}}),i||a()}}function Rb(e,t){return gb(e.map(function(n){return Object.keys(n.components).map(function(a){return t(n.components[a],n.instances[a],n,a)})}))}function gb(e){return Array.prototype.concat.apply([],e)}var UM=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function DM(e){return e.__esModule||UM&&e[Symbol.toStringTag]==="Module"}function Fy(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 _o=function(t,n){this.router=t,this.base=kM(n),this.current=x_,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};_o.prototype.listen=function(t){this.cb=t};_o.prototype.onReady=function(t,n){this.ready?t():(this.readyCbs.push(t),n&&this.readyErrorCbs.push(n))};_o.prototype.onError=function(t){this.errorCbs.push(t)};_o.prototype.transitionTo=function(t,n,a){var i=this,l;try{l=this.router.match(t,this.current)}catch(m){throw this.errorCbs.forEach(function(C){C(m)}),m}var u=this.current;this.confirmTransition(l,function(){i.updateRoute(l),n&&n(l),i.ensureURL(),i.router.afterHooks.forEach(function(m){m&&m(l,u)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(m){m(l)}))},function(m){a&&a(m),m&&!i.ready&&(!ph(m,lu.redirected)||u!==x_)&&(i.ready=!0,i.readyErrorCbs.forEach(function(C){C(m)}))})};_o.prototype.confirmTransition=function(t,n,a){var i=this,l=this.current;this.pending=t;var u=function(z){!ph(z)&&kp(z)&&(i.errorCbs.length?i.errorCbs.forEach(function(j){j(z)}):console.error(z)),a&&a(z)},m=t.matched.length-1,C=l.matched.length-1;if(sb(t,l)&&m===C&&t.matched[m]===l.matched[C])return this.ensureURL(),t.hash&&b_(this.router,l,t,!1),u(PM(l,t));var d=MM(this.current.matched,t.matched),g=d.updated,b=d.deactivated,P=d.activated,w=[].concat(BM(b),this.router.beforeHooks,xM(g),P.map(function(z){return z.beforeEnter}),NM(P)),G=function(z,j){if(i.pending!==t)return u($y(l,t));try{z(t,l,function(V){V===!1?(i.ensureURL(!0),u(wM(l,t))):kp(V)?(i.ensureURL(!0),u(V)):typeof V=="string"||typeof V=="object"&&(typeof V.path=="string"||typeof V.name=="string")?(u(TM(l,t)),typeof V=="object"&&V.replace?i.replace(V):i.push(V)):j(V)})}catch(V){u(V)}};xy(w,G,function(){var z=$M(P),j=z.concat(i.router.resolveHooks);xy(j,G,function(){if(i.pending!==t)return u($y(l,t));i.pending=null,n(t),i.router.app&&i.router.app.$nextTick(function(){_b(t)})})})};_o.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)};_o.prototype.setupListeners=function(){};_o.prototype.teardown=function(){this.listeners.forEach(function(t){t()}),this.listeners=[],this.current=x_,this.pending=null};function kM(e){if(!e)if(xC){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 MM(e,t){var n,a=Math.max(e.length,t.length);for(n=0;n0)){var i=this.router,l=i.options.scrollBehavior,u=T_&&l;u&&this.listeners.push(Kb());var m=function(){var C=a.current,d=oC(a.base);a.current===x_&&d===a._startLocation||a.transitionTo(d,function(g){u&&b_(i,g,C,!0)})};window.addEventListener("popstate",m),this.listeners.push(function(){window.removeEventListener("popstate",m)})}},t.prototype.go=function(a){window.history.go(a)},t.prototype.push=function(a,i,l){var u=this,m=this,C=m.current;this.transitionTo(a,function(d){Dp(E_(u.base+d.fullPath)),b_(u.router,d,C,!1),i&&i(d)},l)},t.prototype.replace=function(a,i,l){var u=this,m=this,C=m.current;this.transitionTo(a,function(d){JK(E_(u.base+d.fullPath)),b_(u.router,d,C,!1),i&&i(d)},l)},t.prototype.ensureURL=function(a){if(oC(this.base)!==this.current.fullPath){var i=E_(this.base+this.current.fullPath);a?Dp(i):JK(i)}},t.prototype.getCurrentLocation=function(){return oC(this.base)},t}(_o);function oC(e){var t=window.location.pathname,n=t.toLowerCase(),a=e.toLowerCase();return e&&(n===a||n.indexOf(E_(a+"/"))===0)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Ab=function(e){function t(n,a,i){e.call(this,n,a),!(i&&HM(this.base))&&Hy()}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,l=i.options.scrollBehavior,u=T_&&l;u&&this.listeners.push(Kb());var m=function(){var d=a.current;Hy()&&a.transitionTo(cp(),function(g){u&&b_(a.router,g,d,!0),T_||up(g.fullPath)})},C=T_?"popstate":"hashchange";window.addEventListener(C,m),this.listeners.push(function(){window.removeEventListener(C,m)})}},t.prototype.push=function(a,i,l){var u=this,m=this,C=m.current;this.transitionTo(a,function(d){Qy(d.fullPath),b_(u.router,d,C,!1),i&&i(d)},l)},t.prototype.replace=function(a,i,l){var u=this,m=this,C=m.current;this.transitionTo(a,function(d){up(d.fullPath),b_(u.router,d,C,!1),i&&i(d)},l)},t.prototype.go=function(a){window.history.go(a)},t.prototype.ensureURL=function(a){var i=this.current.fullPath;cp()!==i&&(a?Qy(i):up(i))},t.prototype.getCurrentLocation=function(){return cp()},t}(_o);function HM(e){var t=oC(e);if(!/^\/#/.test(t))return window.location.replace(E_(e+"/#"+t)),!0}function Hy(){var e=cp();return e.charAt(0)==="/"?!0:(up("/"+e),!1)}function cp(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function XK(e){var t=window.location.href,n=t.indexOf("#"),a=n>=0?t.slice(0,n):t;return a+"#"+e}function Qy(e){T_?Dp(XK(e)):window.location.hash=e}function up(e){T_?JK(XK(e)):window.location.replace(XK(e))}var QM=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,l){var u=this;this.transitionTo(a,function(m){u.stack=u.stack.slice(0,u.index+1).concat(m),u.index++,i&&i(m)},l)},t.prototype.replace=function(a,i,l){var u=this;this.transitionTo(a,function(m){u.stack=u.stack.slice(0,u.index).concat(m),i&&i(m)},l)},t.prototype.go=function(a){var i=this,l=this.index+a;if(!(l<0||l>=this.stack.length)){var u=this.stack[l];this.confirmTransition(u,function(){var m=i.current;i.index=l,i.updateRoute(u),i.router.afterHooks.forEach(function(C){C&&C(u,m)})},function(m){ph(m,lu.duplicated)&&(i.index=l)})}},t.prototype.getCurrentLocation=function(){var a=this.stack[this.stack.length-1];return a?a.fullPath:"/"},t.prototype.ensureURL=function(){},t}(_o),Pn=function(t){t===void 0&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=vM(t.routes||[],this);var n=t.mode||"hash";switch(this.fallback=n==="history"&&!T_&&t.fallback!==!1,this.fallback&&(n="hash"),xC||(n="abstract"),this.mode=n,n){case"history":this.history=new Lb(this,t.base);break;case"hash":this.history=new Ab(this,t.base,this.fallback);break;case"abstract":this.history=new QM(this,t.base);break}},Eb={currentRoute:{configurable:!0}};Pn.prototype.match=function(t,n,a){return this.matcher.match(t,n,a)};Eb.currentRoute.get=function(){return this.history&&this.history.current};Pn.prototype.init=function(t){var n=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var u=n.apps.indexOf(t);u>-1&&n.apps.splice(u,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 Lb||a instanceof Ab){var i=function(u){var m=a.current,C=n.options.scrollBehavior,d=T_&&C;d&&"fullPath"in u&&b_(n,u,m,!1)},l=function(u){a.setupListeners(),i(u)};a.transitionTo(a.getCurrentLocation(),l,l)}a.listen(function(u){n.apps.forEach(function(m){m._route=u})})}};Pn.prototype.beforeEach=function(t){return _R(this.beforeHooks,t)};Pn.prototype.beforeResolve=function(t){return _R(this.resolveHooks,t)};Pn.prototype.afterEach=function(t){return _R(this.afterHooks,t)};Pn.prototype.onReady=function(t,n){this.history.onReady(t,n)};Pn.prototype.onError=function(t){this.history.onError(t)};Pn.prototype.push=function(t,n,a){var i=this;if(!n&&!a&&typeof Promise<"u")return new Promise(function(l,u){i.history.push(t,l,u)});this.history.push(t,n,a)};Pn.prototype.replace=function(t,n,a){var i=this;if(!n&&!a&&typeof Promise<"u")return new Promise(function(l,u){i.history.replace(t,l,u)});this.history.replace(t,n,a)};Pn.prototype.go=function(t){this.history.go(t)};Pn.prototype.back=function(){this.go(-1)};Pn.prototype.forward=function(){this.go(1)};Pn.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]})})):[]};Pn.prototype.resolve=function(t,n,a){n=n||this.history.current;var i=lR(t,n,a,this),l=this.match(i,n),u=l.redirectedFrom||l.fullPath,m=this.history.base,C=VM(m,u,this.mode);return{location:i,route:l,href:C,normalizedTo:i,resolved:l}};Pn.prototype.getRoutes=function(){return this.matcher.getRoutes()};Pn.prototype.addRoute=function(t,n){this.matcher.addRoute(t,n),this.history.current!==x_&&this.history.transitionTo(this.history.getCurrentLocation())};Pn.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==x_&&this.history.transitionTo(this.history.getCurrentLocation())};Object.defineProperties(Pn.prototype,Eb);function _R(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function VM(e,t,n){var a=n==="hash"?"#"+t:t;return e?E_(e+"/"+a):a}Pn.install=zK;Pn.version="3.5.3";Pn.isNavigationFailure=ph;Pn.NavigationFailureType=lu;Pn.START_LOCATION=x_;xC&&window.Vue&&window.Vue.use(Pn);const bb=Pn,Vy=()=>aR(()=>import("./Home-b9923016.js"),["assets/Home-b9923016.js","assets/BaseKey-65569d17.js","assets/BaseKey-34f28bd3.css","assets/Home-fe6589aa.css"]),WM=()=>aR(()=>import("./Print-67d307e5.js"),["assets/Print-67d307e5.js","assets/BaseKey-65569d17.js","assets/BaseKey-34f28bd3.css","assets/Print-76aa46fc.css"]),zM=()=>aR(()=>import("./Test-5ac405bd.js"),["assets/Test-5ac405bd.js","assets/BaseKey-65569d17.js","assets/BaseKey-34f28bd3.css","assets/Test-a430b51d.css"]);Ze.use(bb);const jM=new bb({routes:[{path:"/:keyboardP(.+)/:layoutP(.+)",component:Vy,name:"home"},{path:"/print",component:WM,name:"print"},{path:"/test",component:zM,name:"test"},{path:"*",component:Vy}]});var JM=!0;Ze.util.warn;function XM(){return!!_w()}function ZM(){return Tb().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Tb(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const YM=typeof Proxy=="function",qM="devtools-plugin:setup",eG="plugin:settings:set";let vf,ZK;function tG(){var e;return vf!==void 0||(typeof window<"u"&&window.performance?(vf=!0,ZK=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(vf=!0,ZK=globalThis.perf_hooks.performance):vf=!1),vf}function nG(){return tG()?ZK.now():Date.now()}class aG{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const a={};if(t.settings)for(const u in t.settings){const m=t.settings[u];a[u]=m.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let l=Object.assign({},a);try{const u=localStorage.getItem(i),m=JSON.parse(u);Object.assign(l,m)}catch{}this.fallbacks={getSettings(){return l},setSettings(u){try{localStorage.setItem(i,JSON.stringify(u))}catch{}l=u},now(){return nG()}},n&&n.on(eG,(u,m)=>{u===this.plugin.id&&this.fallbacks.setSettings(m)}),this.proxiedOn=new Proxy({},{get:(u,m)=>this.target?this.target.on[m]:(...C)=>{this.onQueue.push({method:m,args:C})}}),this.proxiedTarget=new Proxy({},{get:(u,m)=>this.target?this.target[m]:m==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(m)?(...C)=>(this.targetQueue.push({method:m,args:C,resolve:()=>{}}),this.fallbacks[m](...C)):(...C)=>new Promise(d=>{this.targetQueue.push({method:m,args:C,resolve:d})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Pb(e,t){const n=e,a=Tb(),i=ZM(),l=YM&&n.enableEarlyProxy;if(i&&(a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!l))i.emit(qM,e,t);else{const u=l?new aG(n,i):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:u}),u&&t(u.proxiedTarget)}}/*! + */function ao(e,t){for(var n in t)e[n]=t[n];return e}var Vk=/[!'()*]/g,Wk=function(e){return"%"+e.charCodeAt(0).toString(16)},zk=/%2C/g,Kf=function(e){return encodeURIComponent(e).replace(Vk,Wk).replace(zk,",")};function VK(e){try{return decodeURIComponent(e)}catch{}return e}function jk(e,t,n){t===void 0&&(t={});var a=n||Jk,i;try{i=a(e||"")}catch{i={}}for(var l in t){var u=t[l];i[l]=Array.isArray(u)?u.map(wy):wy(u)}return i}var wy=function(e){return e==null||typeof e=="object"?e:String(e)};function Jk(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(n){var a=n.replace(/\+/g," ").split("="),i=VK(a.shift()),l=a.length>0?VK(a.join("=")):null;t[i]===void 0?t[i]=l:Array.isArray(t[i])?t[i].push(l):t[i]=[t[i],l]}),t}function Xk(e){var t=e?Object.keys(e).map(function(n){var a=e[n];if(a===void 0)return"";if(a===null)return Kf(n);if(Array.isArray(a)){var i=[];return a.forEach(function(l){l!==void 0&&(l===null?i.push(Kf(n)):i.push(Kf(n)+"="+Kf(l)))}),i.join("&")}return Kf(n)+"="+Kf(a)}).filter(function(n){return n.length>0}).join("&"):null;return t?"?"+t:""}var Op=/\/?$/;function Ip(e,t,n,a){var i=a&&a.options.stringifyQuery,l=t.query||{};try{l=WK(l)}catch{}var u={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:l,params:t.params||{},fullPath:Oy(t,i),matched:e?Zk(e):[]};return n&&(u.redirectedFrom=Oy(n,i)),Object.freeze(u)}function WK(e){if(Array.isArray(e))return e.map(WK);if(e&&typeof e=="object"){var t={};for(var n in e)t[n]=WK(e[n]);return t}else return e}var x_=Ip(null,{path:"/"});function Zk(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function Oy(e,t){var n=e.path,a=e.query;a===void 0&&(a={});var i=e.hash;i===void 0&&(i="");var l=t||Xk;return(n||"/")+l(a)+i}function sb(e,t,n){return t===x_?e===t:t?e.path&&t.path?e.path.replace(Op,"")===t.path.replace(Op,"")&&(n||e.hash===t.hash&&lp(e.query,t.query)):e.name&&t.name?e.name===t.name&&(n||e.hash===t.hash&&lp(e.query,t.query)&&lp(e.params,t.params)):!1:!1}function lp(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,l){var u=e[i],m=a[l];if(m!==i)return!1;var C=t[i];return u==null||C==null?u===C:typeof u=="object"&&typeof C=="object"?lp(u,C):String(u)===String(C)})}function Yk(e,t){return e.path.replace(Op,"/").indexOf(t.path.replace(Op,"/"))===0&&(!t.hash||e.hash===t.hash)&&qk(e.query,t.query)}function qk(e,t){for(var n in t)if(!(n in e))return!1;return!0}function _b(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 E_(e){return e.replace(/\/+/g,"/")}var Np=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},qf=mb,aM=iR,iM=sM,rM=ub,oM=fb,lM=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function iR(e,t){for(var n=[],a=0,i=0,l="",u=t&&t.delimiter||"/",m;(m=lM.exec(e))!=null;){var C=m[0],d=m[1],g=m.index;if(l+=e.slice(i,g),i=g+C.length,d){l+=d[1];continue}var b=e[i],P=m[2],w=m[3],G=m[4],z=m[5],j=m[6],V=m[7];l&&(n.push(l),l="");var q=P!=null&&b!=null&&b!==P,Y=j==="+"||j==="*",ee=j==="?"||j==="*",ae=m[2]||u,le=G||z;n.push({name:w||a++,prefix:P||"",delimiter:ae,optional:ee,repeat:Y,partial:q,asterisk:!!V,pattern:le?uM(le):V?".*":"[^"+sp(ae)+"]+?"})}return i1||!ae.length)return ae.length===0?t():t("span",{},ae)}if(this.tag==="a")ee.on=Y,ee.attrs={href:C,"aria-current":V};else{var le=Cb(this.$slots.default);if(le){le.isStatic=!1;var ie=le.data=ao({},le.data);ie.on=ie.on||{};for(var D in ie.on){var A=ie.on[D];D in Y&&(ie.on[D]=Array.isArray(A)?A:[A])}for(var O in Y)O in ie.on?ie.on[O].push(Y[O]):ie.on[O]=q;var M=le.data.attrs=ao({},le.data.attrs);M.href=C,M["aria-current"]=V}else ee.on=Y}return t(this.tag,ee,this.$slots.default)}};function Dy(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 Cb(e){if(e){for(var t,n=0;n-1&&(j.params[ee]=G.params[ee]);return j.path=_p(q.path,j.params),P(q,j,z)}else if(j.path){j.params={};for(var ae=0;ae=e.length?n():e[i]?t(e[i],function(){a(i+1)}):a(i+1)};a(0)}var lu={redirected:2,aborted:4,cancelled:8,duplicated:16};function TM(e,t){return dh(e,t,lu.redirected,'Redirected when going from "'+e.fullPath+'" to "'+IM(t)+'" via a navigation guard.')}function PM(e,t){var n=dh(e,t,lu.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function $y(e,t){return dh(e,t,lu.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function wM(e,t){return dh(e,t,lu.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function dh(e,t,n,a){var i=new Error(a);return i._isRouter=!0,i.from=e,i.to=t,i.type=n,i}var OM=["params","query","hash"];function IM(e){if(typeof e=="string")return e;if("path"in e)return e.path;var t={};return OM.forEach(function(n){n in e&&(t[n]=e[n])}),JSON.stringify(t,null,2)}function kp(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function ph(e,t){return kp(e)&&e._isRouter&&(t==null||e.type===t)}function NM(e){return function(t,n,a){var i=!1,l=0,u=null;Rb(e,function(m,C,d,g){if(typeof m=="function"&&m.cid===void 0){i=!0,l++;var b=Fy(function(z){DM(z)&&(z=z.default),m.resolved=typeof z=="function"?z:Up.extend(z),d.components[g]=z,l--,l<=0&&a()}),P=Fy(function(z){var j="Failed to resolve async component "+g+": "+z;u||(u=kp(z)?z:new Error(j),a(u))}),w;try{w=m(b,P)}catch(z){P(z)}if(w)if(typeof w.then=="function")w.then(b,P);else{var G=w.component;G&&typeof G.then=="function"&&G.then(b,P)}}}),i||a()}}function Rb(e,t){return gb(e.map(function(n){return Object.keys(n.components).map(function(a){return t(n.components[a],n.instances[a],n,a)})}))}function gb(e){return Array.prototype.concat.apply([],e)}var UM=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function DM(e){return e.__esModule||UM&&e[Symbol.toStringTag]==="Module"}function Fy(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 _o=function(t,n){this.router=t,this.base=kM(n),this.current=x_,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};_o.prototype.listen=function(t){this.cb=t};_o.prototype.onReady=function(t,n){this.ready?t():(this.readyCbs.push(t),n&&this.readyErrorCbs.push(n))};_o.prototype.onError=function(t){this.errorCbs.push(t)};_o.prototype.transitionTo=function(t,n,a){var i=this,l;try{l=this.router.match(t,this.current)}catch(m){throw this.errorCbs.forEach(function(C){C(m)}),m}var u=this.current;this.confirmTransition(l,function(){i.updateRoute(l),n&&n(l),i.ensureURL(),i.router.afterHooks.forEach(function(m){m&&m(l,u)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(m){m(l)}))},function(m){a&&a(m),m&&!i.ready&&(!ph(m,lu.redirected)||u!==x_)&&(i.ready=!0,i.readyErrorCbs.forEach(function(C){C(m)}))})};_o.prototype.confirmTransition=function(t,n,a){var i=this,l=this.current;this.pending=t;var u=function(z){!ph(z)&&kp(z)&&(i.errorCbs.length?i.errorCbs.forEach(function(j){j(z)}):console.error(z)),a&&a(z)},m=t.matched.length-1,C=l.matched.length-1;if(sb(t,l)&&m===C&&t.matched[m]===l.matched[C])return this.ensureURL(),t.hash&&b_(this.router,l,t,!1),u(PM(l,t));var d=MM(this.current.matched,t.matched),g=d.updated,b=d.deactivated,P=d.activated,w=[].concat(BM(b),this.router.beforeHooks,xM(g),P.map(function(z){return z.beforeEnter}),NM(P)),G=function(z,j){if(i.pending!==t)return u($y(l,t));try{z(t,l,function(V){V===!1?(i.ensureURL(!0),u(wM(l,t))):kp(V)?(i.ensureURL(!0),u(V)):typeof V=="string"||typeof V=="object"&&(typeof V.path=="string"||typeof V.name=="string")?(u(TM(l,t)),typeof V=="object"&&V.replace?i.replace(V):i.push(V)):j(V)})}catch(V){u(V)}};xy(w,G,function(){var z=$M(P),j=z.concat(i.router.resolveHooks);xy(j,G,function(){if(i.pending!==t)return u($y(l,t));i.pending=null,n(t),i.router.app&&i.router.app.$nextTick(function(){_b(t)})})})};_o.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)};_o.prototype.setupListeners=function(){};_o.prototype.teardown=function(){this.listeners.forEach(function(t){t()}),this.listeners=[],this.current=x_,this.pending=null};function kM(e){if(!e)if(xC){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 MM(e,t){var n,a=Math.max(e.length,t.length);for(n=0;n0)){var i=this.router,l=i.options.scrollBehavior,u=T_&&l;u&&this.listeners.push(Kb());var m=function(){var C=a.current,d=oC(a.base);a.current===x_&&d===a._startLocation||a.transitionTo(d,function(g){u&&b_(i,g,C,!0)})};window.addEventListener("popstate",m),this.listeners.push(function(){window.removeEventListener("popstate",m)})}},t.prototype.go=function(a){window.history.go(a)},t.prototype.push=function(a,i,l){var u=this,m=this,C=m.current;this.transitionTo(a,function(d){Dp(E_(u.base+d.fullPath)),b_(u.router,d,C,!1),i&&i(d)},l)},t.prototype.replace=function(a,i,l){var u=this,m=this,C=m.current;this.transitionTo(a,function(d){JK(E_(u.base+d.fullPath)),b_(u.router,d,C,!1),i&&i(d)},l)},t.prototype.ensureURL=function(a){if(oC(this.base)!==this.current.fullPath){var i=E_(this.base+this.current.fullPath);a?Dp(i):JK(i)}},t.prototype.getCurrentLocation=function(){return oC(this.base)},t}(_o);function oC(e){var t=window.location.pathname,n=t.toLowerCase(),a=e.toLowerCase();return e&&(n===a||n.indexOf(E_(a+"/"))===0)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Ab=function(e){function t(n,a,i){e.call(this,n,a),!(i&&HM(this.base))&&Hy()}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,l=i.options.scrollBehavior,u=T_&&l;u&&this.listeners.push(Kb());var m=function(){var d=a.current;Hy()&&a.transitionTo(cp(),function(g){u&&b_(a.router,g,d,!0),T_||up(g.fullPath)})},C=T_?"popstate":"hashchange";window.addEventListener(C,m),this.listeners.push(function(){window.removeEventListener(C,m)})}},t.prototype.push=function(a,i,l){var u=this,m=this,C=m.current;this.transitionTo(a,function(d){Qy(d.fullPath),b_(u.router,d,C,!1),i&&i(d)},l)},t.prototype.replace=function(a,i,l){var u=this,m=this,C=m.current;this.transitionTo(a,function(d){up(d.fullPath),b_(u.router,d,C,!1),i&&i(d)},l)},t.prototype.go=function(a){window.history.go(a)},t.prototype.ensureURL=function(a){var i=this.current.fullPath;cp()!==i&&(a?Qy(i):up(i))},t.prototype.getCurrentLocation=function(){return cp()},t}(_o);function HM(e){var t=oC(e);if(!/^\/#/.test(t))return window.location.replace(E_(e+"/#"+t)),!0}function Hy(){var e=cp();return e.charAt(0)==="/"?!0:(up("/"+e),!1)}function cp(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function XK(e){var t=window.location.href,n=t.indexOf("#"),a=n>=0?t.slice(0,n):t;return a+"#"+e}function Qy(e){T_?Dp(XK(e)):window.location.hash=e}function up(e){T_?JK(XK(e)):window.location.replace(XK(e))}var QM=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,l){var u=this;this.transitionTo(a,function(m){u.stack=u.stack.slice(0,u.index+1).concat(m),u.index++,i&&i(m)},l)},t.prototype.replace=function(a,i,l){var u=this;this.transitionTo(a,function(m){u.stack=u.stack.slice(0,u.index).concat(m),i&&i(m)},l)},t.prototype.go=function(a){var i=this,l=this.index+a;if(!(l<0||l>=this.stack.length)){var u=this.stack[l];this.confirmTransition(u,function(){var m=i.current;i.index=l,i.updateRoute(u),i.router.afterHooks.forEach(function(C){C&&C(u,m)})},function(m){ph(m,lu.duplicated)&&(i.index=l)})}},t.prototype.getCurrentLocation=function(){var a=this.stack[this.stack.length-1];return a?a.fullPath:"/"},t.prototype.ensureURL=function(){},t}(_o),Pn=function(t){t===void 0&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=vM(t.routes||[],this);var n=t.mode||"hash";switch(this.fallback=n==="history"&&!T_&&t.fallback!==!1,this.fallback&&(n="hash"),xC||(n="abstract"),this.mode=n,n){case"history":this.history=new Lb(this,t.base);break;case"hash":this.history=new Ab(this,t.base,this.fallback);break;case"abstract":this.history=new QM(this,t.base);break}},Eb={currentRoute:{configurable:!0}};Pn.prototype.match=function(t,n,a){return this.matcher.match(t,n,a)};Eb.currentRoute.get=function(){return this.history&&this.history.current};Pn.prototype.init=function(t){var n=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var u=n.apps.indexOf(t);u>-1&&n.apps.splice(u,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 Lb||a instanceof Ab){var i=function(u){var m=a.current,C=n.options.scrollBehavior,d=T_&&C;d&&"fullPath"in u&&b_(n,u,m,!1)},l=function(u){a.setupListeners(),i(u)};a.transitionTo(a.getCurrentLocation(),l,l)}a.listen(function(u){n.apps.forEach(function(m){m._route=u})})}};Pn.prototype.beforeEach=function(t){return _R(this.beforeHooks,t)};Pn.prototype.beforeResolve=function(t){return _R(this.resolveHooks,t)};Pn.prototype.afterEach=function(t){return _R(this.afterHooks,t)};Pn.prototype.onReady=function(t,n){this.history.onReady(t,n)};Pn.prototype.onError=function(t){this.history.onError(t)};Pn.prototype.push=function(t,n,a){var i=this;if(!n&&!a&&typeof Promise<"u")return new Promise(function(l,u){i.history.push(t,l,u)});this.history.push(t,n,a)};Pn.prototype.replace=function(t,n,a){var i=this;if(!n&&!a&&typeof Promise<"u")return new Promise(function(l,u){i.history.replace(t,l,u)});this.history.replace(t,n,a)};Pn.prototype.go=function(t){this.history.go(t)};Pn.prototype.back=function(){this.go(-1)};Pn.prototype.forward=function(){this.go(1)};Pn.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]})})):[]};Pn.prototype.resolve=function(t,n,a){n=n||this.history.current;var i=lR(t,n,a,this),l=this.match(i,n),u=l.redirectedFrom||l.fullPath,m=this.history.base,C=VM(m,u,this.mode);return{location:i,route:l,href:C,normalizedTo:i,resolved:l}};Pn.prototype.getRoutes=function(){return this.matcher.getRoutes()};Pn.prototype.addRoute=function(t,n){this.matcher.addRoute(t,n),this.history.current!==x_&&this.history.transitionTo(this.history.getCurrentLocation())};Pn.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==x_&&this.history.transitionTo(this.history.getCurrentLocation())};Object.defineProperties(Pn.prototype,Eb);function _R(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function VM(e,t,n){var a=n==="hash"?"#"+t:t;return e?E_(e+"/"+a):a}Pn.install=zK;Pn.version="3.5.3";Pn.isNavigationFailure=ph;Pn.NavigationFailureType=lu;Pn.START_LOCATION=x_;xC&&window.Vue&&window.Vue.use(Pn);const bb=Pn,Vy=()=>aR(()=>import("./Home-45d639d0.js"),["assets/Home-45d639d0.js","assets/BaseKey-824d540a.js","assets/BaseKey-34f28bd3.css","assets/Home-fe6589aa.css"]),WM=()=>aR(()=>import("./Print-9607146a.js"),["assets/Print-9607146a.js","assets/BaseKey-824d540a.js","assets/BaseKey-34f28bd3.css","assets/Print-76aa46fc.css"]),zM=()=>aR(()=>import("./Test-8c366998.js"),["assets/Test-8c366998.js","assets/BaseKey-824d540a.js","assets/BaseKey-34f28bd3.css","assets/Test-a430b51d.css"]);Ze.use(bb);const jM=new bb({routes:[{path:"/:keyboardP(.+)/:layoutP(.+)",component:Vy,name:"home"},{path:"/print",component:WM,name:"print"},{path:"/test",component:zM,name:"test"},{path:"*",component:Vy}]});var JM=!0;Ze.util.warn;function XM(){return!!_w()}function ZM(){return Tb().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Tb(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const YM=typeof Proxy=="function",qM="devtools-plugin:setup",eG="plugin:settings:set";let vf,ZK;function tG(){var e;return vf!==void 0||(typeof window<"u"&&window.performance?(vf=!0,ZK=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(vf=!0,ZK=globalThis.perf_hooks.performance):vf=!1),vf}function nG(){return tG()?ZK.now():Date.now()}class aG{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const a={};if(t.settings)for(const u in t.settings){const m=t.settings[u];a[u]=m.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let l=Object.assign({},a);try{const u=localStorage.getItem(i),m=JSON.parse(u);Object.assign(l,m)}catch{}this.fallbacks={getSettings(){return l},setSettings(u){try{localStorage.setItem(i,JSON.stringify(u))}catch{}l=u},now(){return nG()}},n&&n.on(eG,(u,m)=>{u===this.plugin.id&&this.fallbacks.setSettings(m)}),this.proxiedOn=new Proxy({},{get:(u,m)=>this.target?this.target.on[m]:(...C)=>{this.onQueue.push({method:m,args:C})}}),this.proxiedTarget=new Proxy({},{get:(u,m)=>this.target?this.target[m]:m==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(m)?(...C)=>(this.targetQueue.push({method:m,args:C,resolve:()=>{}}),this.fallbacks[m](...C)):(...C)=>new Promise(d=>{this.targetQueue.push({method:m,args:C,resolve:d})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Pb(e,t){const n=e,a=Tb(),i=ZM(),l=YM&&n.enableEarlyProxy;if(i&&(a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!l))i.emit(qM,e,t);else{const u=l?new aG(n,i):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:u}),u&&t(u.proxiedTarget)}}/*! * pinia v2.2.4 * (c) 2024 Eduardo San Martin Morote * @license MIT @@ -1331,7 +1331,7 @@ Esc`,title:"Esc normally, but ' when GUI is active or ₴ when Shift is active"} \\`,code:"KC_INT1",title:"JIS \\ and _"},{name:"Right Shift",code:"KC_RSFT",width:1750},{width:1250},{name:"Up",code:"KC_UP",keys:"up"},{width:1250},{name:"1",code:"KC_P1",keys:"num_1"},{name:"2",code:"KC_P2",keys:"num_2"},{name:"3",code:"KC_P3",keys:"num_3"},{name:"=",code:"KC_PEQL"},{width:0},{name:"Left Ctrl",code:"KC_LCTL",keys:"ctrl",width:1250},{name:"Left OS",code:"KC_LGUI",keys:"cmd",width:1250},{name:"Left Alt",code:"KC_LALT",keys:"alt",width:1250},{name:"無変換",code:"KC_INT5",title:"JIS Muhenkan",width:1250},{name:"Space",code:"KC_SPC",keys:"space",width:3e3},{name:"変換",code:"KC_INT4",title:"JIS Henkan",width:1250},{name:`カタカナ ひらがな`,code:"KC_INT2",title:"JIS Katakana/Hiragana",styles:{"font-size":"8px"},width:1250},{name:"Alt Gr",code:"KC_RALT"},{name:"Right OS",code:"KC_RGUI",width:1250},{name:"Menu",code:"KC_APP",title:"Context Menu"},{name:"Right Ctrl",code:"KC_RCTL",width:1250},{width:250},{name:"Left",code:"KC_LEFT",keys:"left"},{name:"Down",code:"KC_DOWN",keys:"down"},{name:"Right",code:"KC_RGHT",keys:"right"},{width:250},{name:"0",code:"KC_P0",keys:"num_0",width:2e3},{name:".",code:"KC_PDOT",keys:"num_decimal"},{name:"Enter",code:"KC_PENT",keys:"num_enter"},{label:"Japanese and Korean",width:"label"},{name:`한영 かな`,code:"KC_LNG1",title:"Korean Han/Yeong; Japanese Mac Kana",width:1250},{name:`漢字 -英数`,code:"KC_LNG2",title:"Korean Hanja; Japanese Mac Eisu",width:1250},{label:"Shifted symbols",width:"label"},{name:"~",code:"KC_TILD",keys:"`"},{name:"!",code:"KC_EXLM",keys:"!"},{name:"@",code:"KC_AT",keys:"@"},{name:"#",code:"KC_HASH",keys:"#"},{name:"$",code:"KC_DLR",keys:"$"},{name:"%",code:"KC_PERC",keys:"%"},{name:"^",code:"KC_CIRC",keys:"^"},{name:"&",code:"KC_AMPR",keys:"&"},{name:"*",code:"KC_ASTR",keys:"*"},{name:"(",code:"KC_LPRN",keys:"("},{name:")",code:"KC_RPRN",keys:")"},{name:"_",code:"KC_UNDS",keys:"_"},{name:"+",code:"KC_PLUS",keys:"+"},{name:"{",code:"KC_LCBR",keys:"{"},{name:"}",code:"KC_RCBR",keys:"}"},{name:"<",code:"KC_LT",keys:"<"},{name:">",code:"KC_GT",keys:">"},{name:":",code:"KC_COLN",keys:":"},{name:"|",code:"KC_PIPE",keys:"|"},{name:"?",code:"KC_QUES",keys:"?"},{name:'"',code:"KC_DQUO",keys:'"'}];function Da(e){return{name:`LT ${e}`,code:`LT(${e},kc)`,type:"layer-container",layer:e,title:`kc on tap, switch to layer ${e} while held`}}const QB={MOD_LSFT:["LSft","Left Shift"],MOD_LCTL:["LCtl","Left Control"],MOD_LALT:["LAlt","Left Alt"],MOD_LGUI:["LGUI","Left GUI"],MOD_RSFT:["RSft","Right Shift"],MOD_RCTL:["RCtl","Right Control"],MOD_RALT:["RAlt","Right Alt"],MOD_RGUI:["RGUI","Right GUI"],MOD_HYPR:["Hyper","Control, Shift, Alt and GUI"],MOD_MEH:["Meh","Control, Shift, and Alt"],"MOD_LCTL|MOD_LSFT":["CS","Control and Shift"],"MOD_LCTL|MOD_LALT":["CA","Control and Alt"],"MOD_LCTL|MOD_LGUI":["CG","Control and GUI"],"MOD_LSFT|MOD_LALT":["SA","Shift and Alt"],"MOD_LSFT|MOD_LGUI":["SG","Shift and GUI"],"MOD_LALT|MOD_LGUI":["AG","Alt and GUI"],"MOD_LCTL|MOD_LSFT|MOD_LGUI":["CSG","Control, Shift, and GUI"],"MOD_LCTL|MOD_LALT|MOD_LGUI":["CAG","Control, Alt, and GUI"],"MOD_LSFT|MOD_LALT|MOD_LGUI":["SAG","Shift, Alt, and GUI"],"MOD_RCTL|MOD_RSFT":["RCS","Right Control and Right Shift"],"MOD_RCTL|MOD_RALT":["RCA","Right Control and Right Alt"],"MOD_RCTL|MOD_RGUI":["RCG","Right Control and Right GUI"],"MOD_RSFT|MOD_RALT":["RSA","Right Shift and Right Alt"],"MOD_RSFT|MOD_RGUI":["RSG","Right Shift and Right GUI"],"MOD_RALT|MOD_RGUI":["RAG","Right Alt and Right GUI"],"MOD_RCTL|MOD_RSFT|MOD_RGUI":["RCSG","Right Control, Right Shift, and Right GUI"],"MOD_RCTL|MOD_RALT|MOD_RGUI":["RCAG","Right Control, Right Alt, and Right GUI"],"MOD_RSFT|MOD_RALT|MOD_RGUI":["RSAG","Right Shift, Right Alt, and Right GUI"]};function pn(e,t=1e3){const n=QB[e];if(Nn(n))throw new Error(`${e} is not a valid One Shot Mod`);const[a,i]=n;return{name:`OSM ${a}`,code:`OSM(${e})`,title:`Enable ${i} for one keypress`,width:t}}const Qb=[{label:"Quantum",width:"label",group:!0},{label:"QMK specific",width:"label"},{name:"",code:"KC_NO",title:"Do nothing"},{name:"▽",code:"KC_TRNS",title:"Use the next lowest non-transparent key"},{name:"Reset",code:"QK_BOOT",title:"Reset the keyboard"},{name:"Debug",code:"DB_TOGG",title:"Toggle debug mode"},{name:"EEPROM Reset",code:"EE_CLR",title:"Resets EEPROM state",width:1500},{name:"Repeat",code:"QK_REP",title:"Repeat last key pressed",width:1500},{name:"Alt Repeat",code:"QK_AREP",title:"Perform alternate of last key pressed",width:1500},{width:1e3},{name:"Any",code:"text",type:"text",title:"Manually enter any QMK keycode"},{label:"Layer and Layer Tap functions",icon:"exclamation-triangle",iconClass:"warning",width:"label",title:"Note: Layer keys overwrite the key on the target layer to KC_TRNS to avoid layer lock"},{name:"MO",code:"MO(layer)",type:"layer",layer:0,title:"Momentary turn layer on. AKA FN"},{name:"TG",code:"TG(layer)",type:"layer",layer:0,title:"Toggle layer on/off"},{name:"TO",code:"TO(layer)",type:"layer",layer:0,title:"Turn on layer when pressed"},{name:"TT",code:"TT(layer)",type:"layer",layer:0,title:"Normally acts like MO unless it's tapped multple times which toggles layer on"},{name:"DF",code:"DF(layer)",type:"layer",layer:0,title:"Sets the default layer"},{name:"OSL",code:"OSL(layer)",type:"layer",layer:0,title:"Switch to layer for one keypress"},{width:500},Da(0),Da(1),Da(2),Da(3),Da(4),Da(5),Da(6),Da(7),{width:250},Da(8),Da(9),Da(10),Da(11),Da(12),Da(13),Da(14),Da(15),{label:"Mod key combinations (A = Alt, C = Control, G = Windows/Command/GUI, S = Shift)",width:"label"},{name:"LSft",code:"LSFT(kc)",type:"container",title:"Left Shift"},{name:"LCtl",code:"LCTL(kc)",type:"container",title:"Left Control"},{name:"LAlt",code:"LALT(kc)",type:"container",title:"Left Alt"},{name:"LGui",code:"LGUI(kc)",type:"container",title:"Left GUI"},{width:250},{name:"RSft",code:"RSFT(kc)",type:"container",title:"Right Shift"},{name:"RCtl",code:"RCTL(kc)",type:"container",title:"Right Control"},{name:"RAlt",code:"RALT(kc)",type:"container",title:"Right Alt"},{name:"RGui",code:"RGUI(kc)",type:"container",title:"Right GUI"},{width:0},{name:"LSft_T",code:"LSFT_T(kc)",type:"container",title:"Left Shift when held, kc when tapped"},{name:"LCtl_T",code:"LCTL_T(kc)",type:"container",title:"Left Control when held, kc when tapped"},{name:"LAlt_T",code:"LALT_T(kc)",type:"container",title:"Left Alt when held, kc when tapped"},{name:"LGui_T",code:"LGUI_T(kc)",type:"container",title:"Left GUI when held, kc when tapped"},{width:250},{name:"RSft_T",code:"RSFT_T(kc)",type:"container",title:"Right Shift when held, kc when tapped"},{name:"RCtl_T",code:"RCTL_T(kc)",type:"container",title:"Right Control when held, kc when tapped"},{name:"RAlt_T",code:"RALT_T(kc)",type:"container",title:"Right Alt when held, kc when tapped"},{name:"RGui_T",code:"RGUI_T(kc)",type:"container",title:"Right GUI when held, kc when tapped"},{width:250},{name:"C_S_T",code:"C_S_T(kc)",type:"container",title:"Left Control + Left Shift when held, kc when tapped"},{name:"LCA_T",code:"LCA_T(kc)",type:"container",title:"Left Control + Left Alt when held, kc when tapped"},{name:"SGUI_T",code:"SGUI_T(kc)",type:"container",title:"Left Shift + Left GUI when held, kc when tapped"},{width:250},{name:"LCAG_T",code:"LCAG_T(kc)",type:"container",title:"Left Control, Alt and GUI when held, kc when tapped"},{name:"RCAG_T",code:"RCAG_T(kc)",type:"container",title:"Right Control, Alt and GUI when held, kc when tapped"},{width:250},{name:"Meh_T",code:"MEH_T(kc)",type:"container",title:"Left Control, Shift and Alt when held, kc when tapped"},{name:"All_T",code:"ALL_T(kc)",type:"container",title:"Left Control, Shift, Alt and GUI when held, kc when tapped"},{width:0},{name:"LCA",code:"LCA(kc)",type:"container",title:"Left Control + Left Alt"},{name:"LSA",code:"LSA(kc)",type:"container",title:"Left Shift + Left Alt"},{name:"SGUI",code:"SGUI(kc)",type:"container",title:"Left Shift + Left GUI"},{name:"LAG",code:"LAG(kc)",type:"container",title:"Left Alt + Left GUI"},{width:250},{name:"RCS",code:"RCS(kc)",type:"container",title:"Right Control + Right Shift"},{name:"RSA",code:"RSA(kc)",type:"container",title:"Right Shift + Right Alt"},{name:"RSG",code:"RSG(kc)",type:"container",title:"Right Shift + Right GUI"},{name:"RAG",code:"RAG(kc)",type:"container",title:"Right Alt + Right GUI"},{width:250},{name:"LCAG",code:"LCAG(kc)",type:"container",title:"Left Control, Alt and GUI"},{width:2250},{name:"Meh",code:"MEH(kc)",type:"container",title:"Left Control, Shift and Alt"},{name:"Hyper",code:"HYPR(kc)",type:"container",title:"Left Control, Shift, Alt and GUI"},{label:"One-Shot Mod keys",icon:"exclamation-triangle",iconClass:"warning",width:"label",title:"Note: One-Shot keys combining left-hand and right-side modifiers will be sent with all right-hand modifiers"},pn("MOD_LSFT"),pn("MOD_LCTL"),pn("MOD_LALT"),pn("MOD_LGUI"),{width:250},pn("MOD_LCTL|MOD_LSFT"),pn("MOD_LCTL|MOD_LALT"),pn("MOD_LCTL|MOD_LGUI"),pn("MOD_LSFT|MOD_LALT"),pn("MOD_LSFT|MOD_LGUI"),pn("MOD_LALT|MOD_LGUI"),{width:250},pn("MOD_LCTL|MOD_LSFT|MOD_LGUI"),pn("MOD_LCTL|MOD_LALT|MOD_LGUI"),pn("MOD_LSFT|MOD_LALT|MOD_LGUI"),{width:250},pn("MOD_MEH"),pn("MOD_HYPR"),{width:0},pn("MOD_RSFT"),pn("MOD_RCTL"),pn("MOD_RALT"),pn("MOD_RGUI"),{width:250},pn("MOD_RCTL|MOD_RSFT"),pn("MOD_RCTL|MOD_RALT"),pn("MOD_RCTL|MOD_RGUI"),pn("MOD_RSFT|MOD_RALT"),pn("MOD_RSFT|MOD_RGUI"),pn("MOD_RALT|MOD_RGUI"),{width:250},pn("MOD_RCTL|MOD_RSFT|MOD_RGUI"),pn("MOD_RCTL|MOD_RALT|MOD_RGUI"),pn("MOD_RSFT|MOD_RALT|MOD_RGUI"),{label:"Special action keys",width:"label"},{name:"` / ~\nEsc",code:"QK_GESC",title:"Esc normally, but ` when GUI is active or ~ when Shift is active"},{name:"LS / (",code:"SC_LSPO",title:"Left Shift when held, ( when tapped"},{name:"RS / )",code:"SC_RSPC",title:"Right Shift when held, ) when tapped"},{name:"LC / (",code:"SC_LCPO",title:"Left Control when held, ( when tapped"},{name:"RC / )",code:"SC_RCPC",title:"Right Control when held, ) when tapped"},{name:"LA / (",code:"SC_LAPO",title:"Left Alt when held, ( when tapped"},{name:"RA / )",code:"SC_RAPC",title:"Right Alt when held, ) when tapped"},{name:"RS / Enter",code:"SC_SENT",title:"Right Shift when held, Enter when tapped"},{name:"CW Toggle",code:"CW_TOGG",title:"Toggle Caps Word (Enable Caps Lock for the next word)",width:1500}],Vb=[{label:"KeyboardSettings",group:!0},{label:"Keyboard settings (persistent)",width:"label"},{name:"Swap LCtl/Caps",code:"CL_SWAP",title:"Swap Left Control and Caps Lock",width:1500},{name:"Caps>LCtl",code:"CL_CTRL",title:"Treat Caps Lock as Left Control",width:1500},{name:"Swap LCtl/LGUI",code:"CG_LSWP",title:"Swap Left Control and GUI",width:1500},{name:"Swap RCtl/RGUI",code:"CG_RSWP",title:"Swap Right Control and GUI",width:1500},{name:"Swap LAlt/LGUI",code:"AG_LSWP",title:"Swap Left Alt and Left GUI",width:1500},{name:"Swap RAlt/RGUI",code:"AG_RSWP",title:"Swap Right Alt and Right GUI",width:1500},{name:"Disable GUI",code:"GU_OFF",title:"Disable the GUI keys (useful when gaming)",width:1500},{name:"Swap ` with Esc",code:"GE_SWAP",title:"Swap ` and Escape",width:1500},{name:"Swap \\ with Bksp",code:"BS_SWAP",title:"Swap Backslash and Backspace",width:1500},{name:"NKRO On",code:"NK_ON",title:"Force N-Key Rollover (NKRO) on",width:1500},{name:"Swap Alt/GUI",code:"AG_SWAP",title:"Swap Alt and GUI on both sides (for macOS)",width:1500},{name:"Swap Ctl/GUI",code:"CG_SWAP",title:"Swap Ctrl and GUI on both sides (for macOS)",width:1500},{width:0},{name:"Rev LCtl/Caps",code:"CL_NORM",title:"Unswap Left Control and Caps Lock",width:1500},{name:"Rev Caps>LCtl",code:"CL_CAPS",title:"Stop treating Caps Lock as Left Control",width:1500},{name:"Unswap LCtl/LGUI",code:"CG_LNRM",title:"Unswap Left Control and GUI",width:1500},{name:"Unswap RCtl/RGUI",code:"CG_RNRM",title:"Unswap Right Control and GUI",width:1500},{name:"Rev LAlt/LGUI",code:"AG_LNRM",title:"Unswap Left Alt and Left GUI",width:1500},{name:"Rev RAlt/RGUI",code:"AG_RNRM",title:"Unswap Right Alt and Right GUI",width:1500},{name:"Enable GUI",code:"GU_ON",title:"Enable the GUI keys",width:1500},{name:"Rev ` with Esc",code:"GE_NORM",title:"Unswap ` and Escape",width:1500},{name:"Rev \\ with Bksp",code:"BS_NORM",title:"Unswap Backslash and Backspace",width:1500},{name:"NKRO Off",code:"NK_OFF",title:"Force N-Key Rollover (NKRO) off",width:1500},{name:"Rev Alt/GUI",code:"AG_NORM",title:"Unswap Alt and GUI on both sides (for macOS)",width:1500},{name:"Unswap Ctl/GUI",code:"CG_NORM",title:"Unswap Ctrl and GUI on both sides",width:1500},{name:"Toggle NKRO",code:"NK_TOGG",title:"Turn NKRO on or off",width:1500},{label:"Backlight settings",width:"label"},{name:"BL Toggle",code:"BL_TOGG",title:"Turn the backlight on or off"},{name:"BL Cycle",code:"BL_STEP",title:"Cycle through backlight levels"},{name:"BL Breath",code:"BL_BRTG",title:"Toggle backlight breathing"},{name:"BL On",code:"BL_ON",title:"Set the backlight to max brightness"},{name:"BL +",code:"BL_UP",title:"Increase the backlight level"},{width:0},{width:3e3},{name:"BL Off",code:"BL_OFF",title:"Turn the backlight off"},{name:"BL -",code:"BL_DOWN",title:"Decrease the backlight level"},{label:"RGB Lighting settings",width:"label"},{name:"RGB Toggle",code:"RGB_TOG",title:"Toggle RGB lighting on or off"},{name:"RGB Mode +",code:"RGB_MOD",title:"Next RGB mode"},{name:"Hue +",code:"RGB_HUI",title:"Increase hue"},{name:"Sat +",code:"RGB_SAI",title:"Increase saturation"},{name:"Bright +",code:"RGB_VAI",title:"Increase value"},{name:"Effect +",code:"RGB_SPI",title:"Increase RGB effect speed"},{name:"RGB Mode P",code:"RGB_M_P",title:"RGB Mode: Plain"},{name:"RGB Mode B",code:"RGB_M_B",title:"RGB Mode: Breathe"},{name:"RGB Mode R",code:"RGB_M_R",title:"RGB Mode: Rainbow"},{name:"RGB Mode SW",code:"RGB_M_SW",title:"RGB Mode: Swirl"},{name:"RGB Mode SN",code:"RGB_M_SN",title:"RGB Mode: Snake"},{name:"RGB Mode K",code:"RGB_M_K",title:"RGB Mode: Knight Rider"},{name:"RGB Mode X",code:"RGB_M_X",title:"RGB Mode: Christmas"},{name:"RGB Mode G",code:"RGB_M_G",title:"RGB Mode: Gradient"},{name:"RGB Mode T",code:"RGB_M_T",title:"RGB Mode: Test"},{width:0},{width:1e3},{name:"RGB Mode -",code:"RGB_RMOD",title:"Previous RGB mode"},{name:"Hue -",code:"RGB_HUD",title:"Decrease hue"},{name:"Sat -",code:"RGB_SAD",title:"Decrease saturation"},{name:"Bright -",code:"RGB_VAD",title:"Decrease value"},{name:"Effect -",code:"RGB_SPD",title:"Decrease RGB effect speed"}],Wb=[{label:"AppMediaMouse",width:"label",group:!0},{label:"Application",width:"label"},{name:"Power",code:"KC_PWR",title:"System Power Down"},{name:"Sleep",code:"KC_SLEP",title:"System Sleep"},{name:"Wake",code:"KC_WAKE",title:"System Wake"},{width:1250},{name:"Exec",code:"KC_EXEC",title:"Execute"},{name:"Help",code:"KC_HELP",title:"Help"},{name:"Menu (Legacy)",code:"KC_MENU",title:"Menu (Legacy)",width:1250},{name:"Select",code:"KC_SLCT",title:"Select"},{name:"Stop",code:"KC_STOP",title:"Stop"},{name:"Again",code:"KC_AGIN",title:"Again"},{name:"Undo",code:"KC_UNDO",title:"Undo"},{name:"Cut",code:"KC_CUT",title:"Cut"},{name:"Copy",code:"KC_COPY",title:"Copy"},{name:"Paste",code:"KC_PSTE",title:"Paste"},{name:"Find",code:"KC_FIND",title:"Find"},{width:0},{name:"Calc",code:"KC_CALC",title:"Launch Calculator (Windows)"},{name:"Mail",code:"KC_MAIL",title:"Launch Mail (Windows)"},{name:"Media Player",code:"KC_MSEL",title:"Launch Media Player (Windows)"},{name:"My PC",code:"KC_MYCM",title:"Launch My Computer (Windows)"},{width:250},{name:"Browser Search",code:"KC_WSCH",title:"Browser Search (Windows)",width:1500},{name:"Browser Home",code:"KC_WHOM",title:"Browser Home (Windows)",width:1500},{name:"Browser Back",code:"KC_WBAK",title:"Browser Back (Windows)",width:1500},{name:"Browser Forward",code:"KC_WFWD",title:"Browser Forward (Windows)",width:1500},{name:"Browser Stop",code:"KC_WSTP",title:"Browser Stop (Windows)",width:1500},{name:"Browser Refresh",code:"KC_WREF",title:"Browser Refresh (Windows)",width:1500},{name:"Browser Favorites",code:"KC_WFAV",title:"Browser Favorites (Windows)",width:1500},{name:"Brightness Up",code:"KC_BRIU",title:"Increase the brightness of screen (Laptop)",width:1500},{name:"Brightness Down",code:"KC_BRID",title:"Decrease the brightness of screen (Laptop)",width:1500},{label:"Multimedia Keys",width:"label"},{name:"Previous",code:"KC_MPRV",title:"Previous Track"},{name:"Next",code:"KC_MNXT",title:"Next Track"},{name:"Mute",code:"KC_MUTE",title:"Mute Audio"},{name:"Vol -",code:"KC_VOLD",title:"Volume Down"},{name:"Vol +",code:"KC_VOLU",title:"Volume Up"},{name:"Media Stop",code:"KC_MSTP",title:"Media Stop"},{name:"Play",code:"KC_MPLY",title:"Play/Pause"},{width:250},{name:"Prev Track",code:"KC_MRWD",title:"Previous Track / Rewind (macOS)"},{name:"Next Track",code:"KC_MFFD",title:"Next Track / Fast Forward (macOS)"},{width:250},{name:"Eject",code:"KC_EJCT",title:"Eject (macOS)"},{label:"Mouse Keys",width:"label"},{name:"Mouse Up",code:"KC_MS_U",title:"Mouse Cursor Up"},{name:"Mouse Down",code:"KC_MS_D",title:"Mouse Cursor Down"},{name:"Mouse Left",code:"KC_MS_L",title:"Mouse Cursor Left"},{name:"Mouse Right",code:"KC_MS_R",title:"Mouse Cursor Right"},{width:250},{name:"Mouse 1",code:"KC_BTN1",title:"Mouse Button 1"},{name:"Mouse 2",code:"KC_BTN2",title:"Mouse Button 2"},{name:"Mouse 3",code:"KC_BTN3",title:"Mouse Button 3"},{name:"Mouse 4",code:"KC_BTN4",title:"Mouse Button 4"},{name:"Mouse 5",code:"KC_BTN5",title:"Mouse Button 5"},{width:250},{name:"Mouse Wheel Up",code:"KC_WH_U",title:"Mouse Wheel Up"},{name:"Mouse Wheel Down",code:"KC_WH_D",title:"Mouse Wheel Down"},{name:"Mouse Wheel Left",code:"KC_WH_L",title:"Mouse Wheel Left"},{name:"Mouse Wheel Right",code:"KC_WH_R",title:"Mouse Wheel Right"},{width:250},{name:"Mouse Accel 0",code:"KC_ACL0",title:"Set mouse acceleration to 0"},{name:"Mouse Accel 1",code:"KC_ACL1",title:"Set mouse acceleration to 1"},{name:"Mouse Accel 2",code:"KC_ACL2",title:"Set mouse acceleration to 2"},{label:"Extra Fn Keys",width:"label"},{name:"F13",code:"KC_F13"},{name:"F14",code:"KC_F14"},{name:"F15",code:"KC_F15"},{name:"F16",code:"KC_F16"},{width:250},{name:"F17",code:"KC_F17"},{name:"F18",code:"KC_F18"},{name:"F19",code:"KC_F19"},{name:"F20",code:"KC_F20"},{width:250},{name:"F21",code:"KC_F21"},{name:"F22",code:"KC_F22"},{name:"F23",code:"KC_F23"},{name:"F24",code:"KC_F24"},{label:"Mechanically Locking Keys",width:"label"},{name:"Lock. Caps Lock",code:"KC_LCAP",title:"Locking Caps Lock",width:1750},{name:"Lock. Num Lock",code:"KC_LNUM",title:"Locking Num Lock",width:1750},{name:"Lock. Scroll Lock",code:"KC_LSCR",title:"Locking Scroll Lock",width:1750}],VB=[{label:"Steno",width:"label",group:!0},{name:"S",code:"STN_S1"},{name:"T",code:"STN_TL"},{name:"P",code:"STN_PL"},{name:"H",code:"STN_HL"},{name:"*1",code:"STN_ST1"},{width:1e3},{name:"*3",code:"STN_ST3"},{name:"F",code:"STN_FR"},{name:"P",code:"STN_PR"},{name:"L",code:"STN_LR"},{name:"T",code:"STN_TR"},{name:"D",code:"STN_DR"},{width:0},{name:"S",code:"STN_S2"},{name:"K",code:"STN_KL"},{name:"W",code:"STN_WL"},{name:"R",code:"STN_RL"},{name:"*2",code:"STN_ST2"},{width:1e3},{name:"*4",code:"STN_ST4"},{name:"R",code:"STN_RR"},{name:"B",code:"STN_BR"},{name:"G",code:"STN_GR"},{name:"S",code:"STN_SR"},{name:"Z",code:"STN_ZR"},{width:0},{width:1e3},{width:1e3},{width:1e3},{name:"A",code:"STN_A"},{name:"O",code:"STN_O"},{width:1e3},{name:"E",code:"STN_E"},{name:"U",code:"STN_U"},{width:0},{label:"Numbers",width:"label"},{name:"#1",code:"STN_N1"},{name:"#2",code:"STN_N2"},{name:"#3",code:"STN_N3"},{name:"#4",code:"STN_N4"},{name:"#5",code:"STN_N5"},{name:"#6",code:"STN_N6"},{name:"#7",code:"STN_N7"},{name:"#8",code:"STN_N8"},{name:"#9",code:"STN_N9"},{name:"#A",code:"STN_NA"},{name:"#B",code:"STN_NB"},{name:"#C",code:"STN_NC"},{label:"Special Functions",width:"label"},{name:"PWR",code:"STN_PWR"},{name:"FN",code:"STN_FN"},{name:"Res1",code:"STN_RES1"},{name:"Res2",code:"STN_RES2"},{width:0}],mC={ANSI_ISO:[...qK,...ev],ISO_ANSI:[...ev,...qK],special:[...Qb,...Vb,...Wb]};function CC(){let e=eu.getters["app/osKeyboardLayout"];if(Nn(e)||!mR[e]){const t="keymap_us";console.log(`The stored OS keyboard layout value (${e}) is not a valid value! Falling back to '${t}'.`),eu.commit("app/setOSKeyboardLayout",t),e=t}return e}function Yy(){return mR[CC()].isANSI}function WB(e,t){return console.assert(!Nn(e)),!t.name||!t.code?t:e[t.code]?{...t,...e[t.code]}:t}function nK(e,t=!1){eu.commit("app/setIso",!Yy());const n=[...Yy()?mC.ANSI_ISO:mC.ISO_ANSI,...mC.special,...t?VB:[]],{keycodeLUT:a}=mR[CC()];return n.map(i=>WB(a,i))}function iC(e,t){return e=e.toUpperCase(),t.reduce((n,{code:a,name:i,title:l})=>(Nn(a)||(a.includes(e)||i!=null&&i.toUpperCase().includes(e)||l!=null&&l.toUpperCase().includes(e))&&(n+=1),n),0)}const Nr=Fb("keycodes",{state:()=>({keycodes:[...mC.ANSI_ISO,...mC.special],searchFilter:"",searchCounters:{ANSI:0,"ISO/JIS":0,Quantum:0,KeyboardSettings:0,AppMediaMouse:0},steno:!1,active:"ANSI"}),getters:{lookupKeyPressCode:()=>e=>globalThis.lookupKeycode(e,!0),lookupKeycode:e=>(t,n=!1)=>e.keycodes.find(({code:a,keys:i})=>a===t||n&&i&&i===t)},actions:{changeActive(e){this.active=e},enableSteno(){this.steno=!0,this.keycodes=nK(CC(),this.steno)},disableSteno(){this.steno=!1,this.keycodes=nK(CC(),this.steno)},updateKeycodeNames(){this.keycodes=nK(CC(),this.steno)},setSearchFilter(e){this.searchFilter=e,this.searchFilter!==""&&(this.searchCounters={ANSI:iC(this.searchFilter,qK),"ISO/JIS":iC(this.searchFilter,ev),Quantum:iC(this.searchFilter,Qb),KeyboardSettings:iC(this.searchFilter,Vb),AppMediaMouse:iC(this.searchFilter,Wb)})}}}),zB={ContextMenu:"KC_APP"},jB={KC_LSFT:"KC_RSFT",KC_LCTL:"KC_RCTL",KC_LGUI:"KC_RGUI",KC_LALT:"KC_RALT"},JB={KC_0:"KC_P0",KC_1:"KC_P1",KC_2:"KC_P2",KC_3:"KC_P3",KC_4:"KC_P4",KC_5:"KC_P5",KC_6:"KC_P6",KC_7:"KC_P7",KC_8:"KC_P8",KC_9:"KC_P9",KC_SLSH:"KC_PSLS",KC_MINS:"KC_PMNS",KC_PLUS:"KC_PPLS",KC_ENT:"KC_PENT",KC_DOT:"KC_PDOT",KC_EQL:"KC_PEQL"};function XB(e,t){const n=t.filter(({keys:a})=>!Nn(a)).reduce((a,i)=>(Nn(a[i.keys])&&(a[i.keys]=i),a),{});return Object.values(n).map(YB.bind(null,e))}function ZB(e,t,n){let a=t;const i=Nr();switch(t.code){case"KC_0":case"KC_1":case"KC_2":case"KC_3":case"KC_4":case"KC_5":case"KC_6":case"KC_7":case"KC_8":case"KC_9":case"KC_SLSH":case"KC_MINS":case"KC_PLUS":case"KC_ENT":case"KC_DOT":case"KC_EQL":n.location===n.DOM_KEY_LOCATION_NUMPAD&&(a=i.lookupKeycode(JB[t.code]));break}e.commit("keymap/setKeycode",{_code:a.code}),n.shiftKey&&e.commit("keymap/ignoreNextMod")}function qy(e,t,n){let a=t;if(e.state.keymap.ignoreMod){e.commit("keymap/acceptNextMod");return}const i=Nr(),l=zB[n.key];Nn(l)?n.location===n.DOM_KEY_LOCATION_RIGHT&&(a=i.lookupKeycode(jB[t.code])):a=i.lookupKeycode(l),e.commit("keymap/setKeycode",{_code:a.code})}function YB(e,t){const a=Nr().lookupKeycode(t.code);switch(a.code){case"KC_LGUI":case"KC_LALT":case"KC_LCTL":return{keys:t.keys,on_keydown:qy.bind(null,e,a),prevent_default:!0};case"KC_LSFT":return{keys:t.keys,on_keyup:qy.bind(null,e,a),prevent_default:!0};default:return{keys:t.keys,on_keydown:ZB.bind(null,e,a),prevent_default:!0}}}var qB=iu,ex=function(){try{var e=qB(Object,"defineProperty");return e({},"",{}),e}catch{}}(),zb=ex,eL=zb;function tx(e,t,n){t=="__proto__"&&eL?eL(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var CR=tx,nx=CR,ax=Zf,ix=Object.prototype,rx=ix.hasOwnProperty;function ox(e,t,n){var a=e[t];(!(rx.call(e,t)&&ax(a,n))||n===void 0&&!(t in e))&&nx(e,t,n)}var lx=ox,sx=lx,_x=CR;function cx(e,t,n,a){var i=!n;n||(n={});for(var l=-1,u=t.length;++l0){if(++t>=gx)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ex=Ax,bx=Rx,Tx=Ex,Px=Tx(bx),wx=Px,Ox=dR,Ix=dx,Nx=wx;function Ux(e,t){return Nx(Ix(e,t,Ox),e+"")}var Xb=Ux,Dx=Xb,kx=Yv;function Mx(e){return Dx(function(t,n){var a=-1,i=n.length,l=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(l=e.length>3&&typeof l=="function"?(i--,l):void 0,u&&kx(n[0],n[1],u)&&(l=i<3?void 0:l,i=1),t=Object(t);++a/g,sT=$$;function F$(e){return function(t){return e==null?void 0:e[t]}}var H$=F$,Q$=H$,V$={"&":"&","<":"<",">":">",'"':""","'":"'"},W$=Q$(V$),z$=W$,oL=oh,j$=iT,J$=lo,X$=sh,Z$=1/0,lL=oL?oL.prototype:void 0,sL=lL?lL.toString:void 0;function _T(e){if(typeof e=="string")return e;if(J$(e))return j$(e,_T)+"";if(X$(e))return sL?sL.call(e):"";var t=e+"";return t=="0"&&1/e==-Z$?"-0":t}var Y$=_T,q$=Y$;function eF(e){return e==null?"":q$(e)}var vR=eF,tF=z$,nF=vR,cT=/[&<>"']/g,aF=RegExp(cT.source);function iF(e){return e=nF(e),e&&aF.test(e)?e.replace(cT,tF):e}var uT=iF;const rF=Ba(uT);var oF=/<%-([\s\S]+?)%>/g,lF=oF,sF=/<%([\s\S]+?)%>/g,_F=sF,cF=uT,uF=lF,fF=_F,mF=sT,CF={escape:uF,evaluate:fF,interpolate:mF,variable:"",imports:{_:{escape:cF}}},dF=CF,_L=i$,pF=E$,hF=rT,cL=N$,SF=k$,KF=aT,vF=Yv,RF=tm,gF=sT,uL=dF,yF=vR,LF="Invalid `variable` option passed into `_.template`",AF=/\b__p \+= '';/g,EF=/\b(__p \+=) '' \+/g,bF=/(__e\(.*?\)|\b__t\)) \+\n'';/g,TF=/[()=,{}\[\]\/\s]/,PF=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qd=/($^)/,wF=/['\n\r\u2028\u2029\\]/g,OF=Object.prototype,fL=OF.hasOwnProperty;function IF(e,t,n){var a=uL.imports._.templateSettings||uL;n&&vF(e,t,n)&&(t=void 0),e=yF(e),t=_L({},t,a,cL);var i=_L({},t.imports,a.imports,cL),l=RF(i),u=hF(i,l),m,C,d=0,g=t.interpolate||Qd,b="__p += '",P=RegExp((t.escape||Qd).source+"|"+g.source+"|"+(g===gF?PF:Qd).source+"|"+(t.evaluate||Qd).source+"|$","g"),w=fL.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+` +英数`,code:"KC_LNG2",title:"Korean Hanja; Japanese Mac Eisu",width:1250},{label:"Shifted symbols",width:"label"},{name:"~",code:"KC_TILD",keys:"`"},{name:"!",code:"KC_EXLM",keys:"!"},{name:"@",code:"KC_AT",keys:"@"},{name:"#",code:"KC_HASH",keys:"#"},{name:"$",code:"KC_DLR",keys:"$"},{name:"%",code:"KC_PERC",keys:"%"},{name:"^",code:"KC_CIRC",keys:"^"},{name:"&",code:"KC_AMPR",keys:"&"},{name:"*",code:"KC_ASTR",keys:"*"},{name:"(",code:"KC_LPRN",keys:"("},{name:")",code:"KC_RPRN",keys:")"},{name:"_",code:"KC_UNDS",keys:"_"},{name:"+",code:"KC_PLUS",keys:"+"},{name:"{",code:"KC_LCBR",keys:"{"},{name:"}",code:"KC_RCBR",keys:"}"},{name:"<",code:"KC_LT",keys:"<"},{name:">",code:"KC_GT",keys:">"},{name:":",code:"KC_COLN",keys:":"},{name:"|",code:"KC_PIPE",keys:"|"},{name:"?",code:"KC_QUES",keys:"?"},{name:'"',code:"KC_DQUO",keys:'"'}];function Da(e){return{name:`LT ${e}`,code:`LT(${e},kc)`,type:"layer-container",layer:e,title:`kc on tap, switch to layer ${e} while held`}}const QB={MOD_LSFT:["LSft","Left Shift"],MOD_LCTL:["LCtl","Left Control"],MOD_LALT:["LAlt","Left Alt"],MOD_LGUI:["LGUI","Left GUI"],MOD_RSFT:["RSft","Right Shift"],MOD_RCTL:["RCtl","Right Control"],MOD_RALT:["RAlt","Right Alt"],MOD_RGUI:["RGUI","Right GUI"],MOD_HYPR:["Hyper","Control, Shift, Alt and GUI"],MOD_MEH:["Meh","Control, Shift, and Alt"],"MOD_LCTL|MOD_LSFT":["CS","Control and Shift"],"MOD_LCTL|MOD_LALT":["CA","Control and Alt"],"MOD_LCTL|MOD_LGUI":["CG","Control and GUI"],"MOD_LSFT|MOD_LALT":["SA","Shift and Alt"],"MOD_LSFT|MOD_LGUI":["SG","Shift and GUI"],"MOD_LALT|MOD_LGUI":["AG","Alt and GUI"],"MOD_LCTL|MOD_LSFT|MOD_LGUI":["CSG","Control, Shift, and GUI"],"MOD_LCTL|MOD_LALT|MOD_LGUI":["CAG","Control, Alt, and GUI"],"MOD_LSFT|MOD_LALT|MOD_LGUI":["SAG","Shift, Alt, and GUI"],"MOD_RCTL|MOD_RSFT":["RCS","Right Control and Right Shift"],"MOD_RCTL|MOD_RALT":["RCA","Right Control and Right Alt"],"MOD_RCTL|MOD_RGUI":["RCG","Right Control and Right GUI"],"MOD_RSFT|MOD_RALT":["RSA","Right Shift and Right Alt"],"MOD_RSFT|MOD_RGUI":["RSG","Right Shift and Right GUI"],"MOD_RALT|MOD_RGUI":["RAG","Right Alt and Right GUI"],"MOD_RCTL|MOD_RSFT|MOD_RGUI":["RCSG","Right Control, Right Shift, and Right GUI"],"MOD_RCTL|MOD_RALT|MOD_RGUI":["RCAG","Right Control, Right Alt, and Right GUI"],"MOD_RSFT|MOD_RALT|MOD_RGUI":["RSAG","Right Shift, Right Alt, and Right GUI"]};function pn(e,t=1e3){const n=QB[e];if(Nn(n))throw new Error(`${e} is not a valid One Shot Mod`);const[a,i]=n;return{name:`OSM ${a}`,code:`OSM(${e})`,title:`Enable ${i} for one keypress`,width:t}}const Qb=[{label:"Quantum",width:"label",group:!0},{label:"QMK specific",width:"label"},{name:"",code:"KC_NO",title:"Do nothing"},{name:"▽",code:"KC_TRNS",title:"Use the next lowest non-transparent key"},{name:"Reset",code:"QK_BOOT",title:"Reset the keyboard"},{name:"Debug",code:"DB_TOGG",title:"Toggle debug mode"},{name:"EEPROM Reset",code:"EE_CLR",title:"Resets EEPROM state",width:1500},{name:"Repeat",code:"QK_REP",title:"Repeat last key pressed",width:1500},{name:"Alt Repeat",code:"QK_AREP",title:"Perform alternate of last key pressed",width:1500},{width:1e3},{name:"Any",code:"text",type:"text",title:"Manually enter any QMK keycode"},{label:"Layer and Layer Tap functions",icon:"exclamation-triangle",iconClass:"warning",width:"label",title:"Note: Layer keys overwrite the key on the target layer to KC_TRNS to avoid layer lock"},{name:"MO",code:"MO(layer)",type:"layer",layer:0,title:"Momentary turn layer on. AKA FN"},{name:"TG",code:"TG(layer)",type:"layer",layer:0,title:"Toggle layer on/off"},{name:"TO",code:"TO(layer)",type:"layer",layer:0,title:"Turn on layer when pressed"},{name:"TT",code:"TT(layer)",type:"layer",layer:0,title:"Normally acts like MO unless it's tapped multple times which toggles layer on"},{name:"DF",code:"DF(layer)",type:"layer",layer:0,title:"Sets the default layer"},{name:"OSL",code:"OSL(layer)",type:"layer",layer:0,title:"Switch to layer for one keypress"},{width:500},Da(0),Da(1),Da(2),Da(3),Da(4),Da(5),Da(6),Da(7),{width:250},Da(8),Da(9),Da(10),Da(11),Da(12),Da(13),Da(14),Da(15),{label:"Mod key combinations (A = Alt, C = Control, G = Windows/Command/GUI, S = Shift)",width:"label"},{name:"LSft",code:"LSFT(kc)",type:"container",title:"Left Shift"},{name:"LCtl",code:"LCTL(kc)",type:"container",title:"Left Control"},{name:"LAlt",code:"LALT(kc)",type:"container",title:"Left Alt"},{name:"LGui",code:"LGUI(kc)",type:"container",title:"Left GUI"},{width:250},{name:"RSft",code:"RSFT(kc)",type:"container",title:"Right Shift"},{name:"RCtl",code:"RCTL(kc)",type:"container",title:"Right Control"},{name:"RAlt",code:"RALT(kc)",type:"container",title:"Right Alt"},{name:"RGui",code:"RGUI(kc)",type:"container",title:"Right GUI"},{width:0},{name:"LSft_T",code:"LSFT_T(kc)",type:"container",title:"Left Shift when held, kc when tapped"},{name:"LCtl_T",code:"LCTL_T(kc)",type:"container",title:"Left Control when held, kc when tapped"},{name:"LAlt_T",code:"LALT_T(kc)",type:"container",title:"Left Alt when held, kc when tapped"},{name:"LGui_T",code:"LGUI_T(kc)",type:"container",title:"Left GUI when held, kc when tapped"},{width:250},{name:"RSft_T",code:"RSFT_T(kc)",type:"container",title:"Right Shift when held, kc when tapped"},{name:"RCtl_T",code:"RCTL_T(kc)",type:"container",title:"Right Control when held, kc when tapped"},{name:"RAlt_T",code:"RALT_T(kc)",type:"container",title:"Right Alt when held, kc when tapped"},{name:"RGui_T",code:"RGUI_T(kc)",type:"container",title:"Right GUI when held, kc when tapped"},{width:250},{name:"C_S_T",code:"C_S_T(kc)",type:"container",title:"Left Control + Left Shift when held, kc when tapped"},{name:"LCA_T",code:"LCA_T(kc)",type:"container",title:"Left Control + Left Alt when held, kc when tapped"},{name:"SGUI_T",code:"SGUI_T(kc)",type:"container",title:"Left Shift + Left GUI when held, kc when tapped"},{width:250},{name:"LCAG_T",code:"LCAG_T(kc)",type:"container",title:"Left Control, Alt and GUI when held, kc when tapped"},{name:"RCAG_T",code:"RCAG_T(kc)",type:"container",title:"Right Control, Alt and GUI when held, kc when tapped"},{width:250},{name:"Meh_T",code:"MEH_T(kc)",type:"container",title:"Left Control, Shift and Alt when held, kc when tapped"},{name:"All_T",code:"ALL_T(kc)",type:"container",title:"Left Control, Shift, Alt and GUI when held, kc when tapped"},{width:0},{name:"LCA",code:"LCA(kc)",type:"container",title:"Left Control + Left Alt"},{name:"LSA",code:"LSA(kc)",type:"container",title:"Left Shift + Left Alt"},{name:"SGUI",code:"SGUI(kc)",type:"container",title:"Left Shift + Left GUI"},{name:"LAG",code:"LAG(kc)",type:"container",title:"Left Alt + Left GUI"},{width:250},{name:"RCS",code:"RCS(kc)",type:"container",title:"Right Control + Right Shift"},{name:"RSA",code:"RSA(kc)",type:"container",title:"Right Shift + Right Alt"},{name:"RSG",code:"RSG(kc)",type:"container",title:"Right Shift + Right GUI"},{name:"RAG",code:"RAG(kc)",type:"container",title:"Right Alt + Right GUI"},{width:250},{name:"LCAG",code:"LCAG(kc)",type:"container",title:"Left Control, Alt and GUI"},{width:2250},{name:"Meh",code:"MEH(kc)",type:"container",title:"Left Control, Shift and Alt"},{name:"Hyper",code:"HYPR(kc)",type:"container",title:"Left Control, Shift, Alt and GUI"},{label:"One-Shot Mod keys",icon:"exclamation-triangle",iconClass:"warning",width:"label",title:"Note: One-Shot keys combining left-hand and right-side modifiers will be sent with all right-hand modifiers"},pn("MOD_LSFT"),pn("MOD_LCTL"),pn("MOD_LALT"),pn("MOD_LGUI"),{width:250},pn("MOD_LCTL|MOD_LSFT"),pn("MOD_LCTL|MOD_LALT"),pn("MOD_LCTL|MOD_LGUI"),pn("MOD_LSFT|MOD_LALT"),pn("MOD_LSFT|MOD_LGUI"),pn("MOD_LALT|MOD_LGUI"),{width:250},pn("MOD_LCTL|MOD_LSFT|MOD_LGUI"),pn("MOD_LCTL|MOD_LALT|MOD_LGUI"),pn("MOD_LSFT|MOD_LALT|MOD_LGUI"),{width:250},pn("MOD_MEH"),pn("MOD_HYPR"),{width:0},pn("MOD_RSFT"),pn("MOD_RCTL"),pn("MOD_RALT"),pn("MOD_RGUI"),{width:250},pn("MOD_RCTL|MOD_RSFT"),pn("MOD_RCTL|MOD_RALT"),pn("MOD_RCTL|MOD_RGUI"),pn("MOD_RSFT|MOD_RALT"),pn("MOD_RSFT|MOD_RGUI"),pn("MOD_RALT|MOD_RGUI"),{width:250},pn("MOD_RCTL|MOD_RSFT|MOD_RGUI"),pn("MOD_RCTL|MOD_RALT|MOD_RGUI"),pn("MOD_RSFT|MOD_RALT|MOD_RGUI"),{label:"Special action keys",width:"label"},{name:"` / ~\nEsc",code:"QK_GESC",title:"Esc normally, but ` when GUI is active or ~ when Shift is active"},{name:"LS / (",code:"SC_LSPO",title:"Left Shift when held, ( when tapped"},{name:"RS / )",code:"SC_RSPC",title:"Right Shift when held, ) when tapped"},{name:"LC / (",code:"SC_LCPO",title:"Left Control when held, ( when tapped"},{name:"RC / )",code:"SC_RCPC",title:"Right Control when held, ) when tapped"},{name:"LA / (",code:"SC_LAPO",title:"Left Alt when held, ( when tapped"},{name:"RA / )",code:"SC_RAPC",title:"Right Alt when held, ) when tapped"},{name:"RS / Enter",code:"SC_SENT",title:"Right Shift when held, Enter when tapped"},{name:"CW Toggle",code:"CW_TOGG",title:"Toggle Caps Word (Enable Caps Lock for the next word)",width:1500}],Vb=[{label:"KeyboardSettings",group:!0},{label:"Keyboard settings (persistent)",width:"label"},{name:"Swap LCtl/Caps",code:"CL_SWAP",title:"Swap Left Control and Caps Lock",width:1500},{name:"Caps>LCtl",code:"CL_CTRL",title:"Treat Caps Lock as Left Control",width:1500},{name:"Swap LCtl/LGUI",code:"CG_LSWP",title:"Swap Left Control and GUI",width:1500},{name:"Swap RCtl/RGUI",code:"CG_RSWP",title:"Swap Right Control and GUI",width:1500},{name:"Swap LAlt/LGUI",code:"AG_LSWP",title:"Swap Left Alt and Left GUI",width:1500},{name:"Swap RAlt/RGUI",code:"AG_RSWP",title:"Swap Right Alt and Right GUI",width:1500},{name:"Disable GUI",code:"GU_OFF",title:"Disable the GUI keys (useful when gaming)",width:1500},{name:"Swap ` with Esc",code:"GE_SWAP",title:"Swap ` and Escape",width:1500},{name:"Swap \\ with Bksp",code:"BS_SWAP",title:"Swap Backslash and Backspace",width:1500},{name:"NKRO On",code:"NK_ON",title:"Force N-Key Rollover (NKRO) on",width:1500},{name:"Swap Alt/GUI",code:"AG_SWAP",title:"Swap Alt and GUI on both sides (for macOS)",width:1500},{name:"Swap Ctl/GUI",code:"CG_SWAP",title:"Swap Ctrl and GUI on both sides (for macOS)",width:1500},{width:0},{name:"Rev LCtl/Caps",code:"CL_NORM",title:"Unswap Left Control and Caps Lock",width:1500},{name:"Rev Caps>LCtl",code:"CL_CAPS",title:"Stop treating Caps Lock as Left Control",width:1500},{name:"Unswap LCtl/LGUI",code:"CG_LNRM",title:"Unswap Left Control and GUI",width:1500},{name:"Unswap RCtl/RGUI",code:"CG_RNRM",title:"Unswap Right Control and GUI",width:1500},{name:"Rev LAlt/LGUI",code:"AG_LNRM",title:"Unswap Left Alt and Left GUI",width:1500},{name:"Rev RAlt/RGUI",code:"AG_RNRM",title:"Unswap Right Alt and Right GUI",width:1500},{name:"Enable GUI",code:"GU_ON",title:"Enable the GUI keys",width:1500},{name:"Rev ` with Esc",code:"GE_NORM",title:"Unswap ` and Escape",width:1500},{name:"Rev \\ with Bksp",code:"BS_NORM",title:"Unswap Backslash and Backspace",width:1500},{name:"NKRO Off",code:"NK_OFF",title:"Force N-Key Rollover (NKRO) off",width:1500},{name:"Rev Alt/GUI",code:"AG_NORM",title:"Unswap Alt and GUI on both sides (for macOS)",width:1500},{name:"Unswap Ctl/GUI",code:"CG_NORM",title:"Unswap Ctrl and GUI on both sides",width:1500},{name:"Toggle NKRO",code:"NK_TOGG",title:"Turn NKRO on or off",width:1500},{label:"Backlight settings",width:"label"},{name:"BL Toggle",code:"BL_TOGG",title:"Turn the backlight on or off"},{name:"BL Cycle",code:"BL_STEP",title:"Cycle through backlight levels"},{name:"BL Breath",code:"BL_BRTG",title:"Toggle backlight breathing"},{name:"BL On",code:"BL_ON",title:"Set the backlight to max brightness"},{name:"BL +",code:"BL_UP",title:"Increase the backlight level"},{width:0},{width:3e3},{name:"BL Off",code:"BL_OFF",title:"Turn the backlight off"},{name:"BL -",code:"BL_DOWN",title:"Decrease the backlight level"},{label:"RGB Lighting settings",width:"label"},{name:"RGB Toggle",code:"RGB_TOG",title:"Toggle RGB lighting on or off"},{name:"RGB Mode +",code:"RGB_MOD",title:"Next RGB mode"},{name:"Hue +",code:"RGB_HUI",title:"Increase hue"},{name:"Sat +",code:"RGB_SAI",title:"Increase saturation"},{name:"Bright +",code:"RGB_VAI",title:"Increase value"},{name:"Effect +",code:"RGB_SPI",title:"Increase RGB effect speed"},{name:"RGB Mode P",code:"RGB_M_P",title:"RGB Mode: Plain"},{name:"RGB Mode B",code:"RGB_M_B",title:"RGB Mode: Breathe"},{name:"RGB Mode R",code:"RGB_M_R",title:"RGB Mode: Rainbow"},{name:"RGB Mode SW",code:"RGB_M_SW",title:"RGB Mode: Swirl"},{name:"RGB Mode SN",code:"RGB_M_SN",title:"RGB Mode: Snake"},{name:"RGB Mode K",code:"RGB_M_K",title:"RGB Mode: Knight Rider"},{name:"RGB Mode X",code:"RGB_M_X",title:"RGB Mode: Christmas"},{name:"RGB Mode G",code:"RGB_M_G",title:"RGB Mode: Gradient"},{name:"RGB Mode T",code:"RGB_M_T",title:"RGB Mode: Test"},{width:0},{width:1e3},{name:"RGB Mode -",code:"RGB_RMOD",title:"Previous RGB mode"},{name:"Hue -",code:"RGB_HUD",title:"Decrease hue"},{name:"Sat -",code:"RGB_SAD",title:"Decrease saturation"},{name:"Bright -",code:"RGB_VAD",title:"Decrease value"},{name:"Effect -",code:"RGB_SPD",title:"Decrease RGB effect speed"}],Wb=[{label:"AppMediaMouse",width:"label",group:!0},{label:"Application",width:"label"},{name:"Power",code:"KC_PWR",title:"System Power Down"},{name:"Sleep",code:"KC_SLEP",title:"System Sleep"},{name:"Wake",code:"KC_WAKE",title:"System Wake"},{width:1250},{name:"Exec",code:"KC_EXEC",title:"Execute"},{name:"Help",code:"KC_HELP",title:"Help"},{name:"Menu (Legacy)",code:"KC_MENU",title:"Menu (Legacy)",width:1250},{name:"Select",code:"KC_SLCT",title:"Select"},{name:"Stop",code:"KC_STOP",title:"Stop"},{name:"Again",code:"KC_AGIN",title:"Again"},{name:"Undo",code:"KC_UNDO",title:"Undo"},{name:"Cut",code:"KC_CUT",title:"Cut"},{name:"Copy",code:"KC_COPY",title:"Copy"},{name:"Paste",code:"KC_PSTE",title:"Paste"},{name:"Find",code:"KC_FIND",title:"Find"},{width:0},{name:"Calc",code:"KC_CALC",title:"Launch Calculator (Windows)"},{name:"Mail",code:"KC_MAIL",title:"Launch Mail (Windows)"},{name:"Media Player",code:"KC_MSEL",title:"Launch Media Player (Windows)"},{name:"My PC",code:"KC_MYCM",title:"Launch My Computer (Windows)"},{width:250},{name:"Browser Search",code:"KC_WSCH",title:"Browser Search (Windows)",width:1500},{name:"Browser Home",code:"KC_WHOM",title:"Browser Home (Windows)",width:1500},{name:"Browser Back",code:"KC_WBAK",title:"Browser Back (Windows)",width:1500},{name:"Browser Forward",code:"KC_WFWD",title:"Browser Forward (Windows)",width:1500},{name:"Browser Stop",code:"KC_WSTP",title:"Browser Stop (Windows)",width:1500},{name:"Browser Refresh",code:"KC_WREF",title:"Browser Refresh (Windows)",width:1500},{name:"Browser Favorites",code:"KC_WFAV",title:"Browser Favorites (Windows)",width:1500},{name:"Brightness Up",code:"KC_BRIU",title:"Increase the brightness of screen (Laptop)",width:1500},{name:"Brightness Down",code:"KC_BRID",title:"Decrease the brightness of screen (Laptop)",width:1500},{label:"Multimedia Keys",width:"label"},{name:"Previous",code:"KC_MPRV",title:"Previous Track"},{name:"Next",code:"KC_MNXT",title:"Next Track"},{name:"Mute",code:"KC_MUTE",title:"Mute Audio"},{name:"Vol -",code:"KC_VOLD",title:"Volume Down"},{name:"Vol +",code:"KC_VOLU",title:"Volume Up"},{name:"Media Stop",code:"KC_MSTP",title:"Media Stop"},{name:"Play",code:"KC_MPLY",title:"Play/Pause"},{width:250},{name:"Prev Track",code:"KC_MRWD",title:"Previous Track / Rewind (macOS)"},{name:"Next Track",code:"KC_MFFD",title:"Next Track / Fast Forward (macOS)"},{width:250},{name:"Eject",code:"KC_EJCT",title:"Eject (macOS)"},{label:"Mouse Keys",width:"label"},{name:"Mouse Up",code:"KC_MS_U",title:"Mouse Cursor Up"},{name:"Mouse Down",code:"KC_MS_D",title:"Mouse Cursor Down"},{name:"Mouse Left",code:"KC_MS_L",title:"Mouse Cursor Left"},{name:"Mouse Right",code:"KC_MS_R",title:"Mouse Cursor Right"},{width:250},{name:"Mouse 1",code:"KC_BTN1",title:"Mouse Button 1"},{name:"Mouse 2",code:"KC_BTN2",title:"Mouse Button 2"},{name:"Mouse 3",code:"KC_BTN3",title:"Mouse Button 3"},{name:"Mouse 4",code:"KC_BTN4",title:"Mouse Button 4"},{name:"Mouse 5",code:"KC_BTN5",title:"Mouse Button 5"},{width:250},{name:"Mouse Wheel Up",code:"KC_WH_U",title:"Mouse Wheel Up"},{name:"Mouse Wheel Down",code:"KC_WH_D",title:"Mouse Wheel Down"},{name:"Mouse Wheel Left",code:"KC_WH_L",title:"Mouse Wheel Left"},{name:"Mouse Wheel Right",code:"KC_WH_R",title:"Mouse Wheel Right"},{width:250},{name:"Mouse Accel 0",code:"KC_ACL0",title:"Set mouse acceleration to 0"},{name:"Mouse Accel 1",code:"KC_ACL1",title:"Set mouse acceleration to 1"},{name:"Mouse Accel 2",code:"KC_ACL2",title:"Set mouse acceleration to 2"},{label:"Extra Fn Keys",width:"label"},{name:"F13",code:"KC_F13"},{name:"F14",code:"KC_F14"},{name:"F15",code:"KC_F15"},{name:"F16",code:"KC_F16"},{width:250},{name:"F17",code:"KC_F17"},{name:"F18",code:"KC_F18"},{name:"F19",code:"KC_F19"},{name:"F20",code:"KC_F20"},{width:250},{name:"F21",code:"KC_F21"},{name:"F22",code:"KC_F22"},{name:"F23",code:"KC_F23"},{name:"F24",code:"KC_F24"},{label:"Mechanically Locking Keys",width:"label"},{name:"Lock. Caps Lock",code:"KC_LCAP",title:"Locking Caps Lock",width:1750},{name:"Lock. Num Lock",code:"KC_LNUM",title:"Locking Num Lock",width:1750},{name:"Lock. Scroll Lock",code:"KC_LSCR",title:"Locking Scroll Lock",width:1750}],VB=[{label:"Steno",width:"label",group:!0},{name:"S",code:"STN_S1"},{name:"T",code:"STN_TL"},{name:"P",code:"STN_PL"},{name:"H",code:"STN_HL"},{name:"*1",code:"STN_ST1"},{width:1e3},{name:"*3",code:"STN_ST3"},{name:"F",code:"STN_FR"},{name:"P",code:"STN_PR"},{name:"L",code:"STN_LR"},{name:"T",code:"STN_TR"},{name:"D",code:"STN_DR"},{width:0},{name:"S",code:"STN_S2"},{name:"K",code:"STN_KL"},{name:"W",code:"STN_WL"},{name:"R",code:"STN_RL"},{name:"*2",code:"STN_ST2"},{width:1e3},{name:"*4",code:"STN_ST4"},{name:"R",code:"STN_RR"},{name:"B",code:"STN_BR"},{name:"G",code:"STN_GR"},{name:"S",code:"STN_SR"},{name:"Z",code:"STN_ZR"},{width:0},{width:1e3},{width:1e3},{width:1e3},{name:"A",code:"STN_A"},{name:"O",code:"STN_O"},{width:1e3},{name:"E",code:"STN_E"},{name:"U",code:"STN_U"},{width:0},{label:"Numbers",width:"label"},{name:"#1",code:"STN_N1"},{name:"#2",code:"STN_N2"},{name:"#3",code:"STN_N3"},{name:"#4",code:"STN_N4"},{name:"#5",code:"STN_N5"},{name:"#6",code:"STN_N6"},{name:"#7",code:"STN_N7"},{name:"#8",code:"STN_N8"},{name:"#9",code:"STN_N9"},{name:"#A",code:"STN_NA"},{name:"#B",code:"STN_NB"},{name:"#C",code:"STN_NC"},{label:"Special Functions",width:"label"},{name:"PWR",code:"STN_PWR"},{name:"FN",code:"STN_FN"},{name:"Res1",code:"STN_RES1"},{name:"Res2",code:"STN_RES2"},{width:0}],mC={ANSI_ISO:[...qK,...ev],ISO_ANSI:[...ev,...qK],special:[...Qb,...Vb,...Wb]};function CC(){let e=eu.getters["app/osKeyboardLayout"];if(Nn(e)||!mR[e]){const t="keymap_us";console.log(`The stored OS keyboard layout value (${e}) is not a valid value! Falling back to '${t}'.`),eu.commit("app/setOSKeyboardLayout",t),e=t}return e}function Yy(){return mR[CC()].isANSI}function WB(e,t){return console.assert(!Nn(e)),!t.name||!t.code?t:e[t.code]?{...t,...e[t.code]}:t}function nK(e,t=!1){eu.commit("app/setIso",!Yy());const n=[...Yy()?mC.ANSI_ISO:mC.ISO_ANSI,...mC.special,...t?VB:[]],{keycodeLUT:a}=mR[CC()];return n.map(i=>WB(a,i))}function iC(e,t){return e=e.toUpperCase(),t.reduce((n,{code:a,name:i,title:l})=>(Nn(a)||(a.includes(e)||i!=null&&i.toUpperCase().includes(e)||l!=null&&l.toUpperCase().includes(e))&&(n+=1),n),0)}const Nr=Fb("keycodes",{state:()=>({keycodes:[...mC.ANSI_ISO,...mC.special],searchFilter:"",searchCounters:{ANSI:0,"ISO/JIS":0,Quantum:0,KeyboardSettings:0,AppMediaMouse:0},steno:!1,active:"ANSI"}),getters:{lookupKeyPressCode:()=>e=>globalThis.lookupKeycode(e,!0),lookupKeycode:e=>(t,n=!1)=>e.keycodes.find(({code:a,keys:i})=>a===t||n&&i&&i===t)},actions:{changeActive(e){this.active=e},enableSteno(){this.steno=!0,this.keycodes=nK(CC(),this.steno)},disableSteno(){this.steno=!1,this.keycodes=nK(CC(),this.steno)},updateKeycodeNames(){this.keycodes=nK(CC(),this.steno)},setSearchFilter(e){this.searchFilter=e,this.searchFilter!==""&&(this.searchCounters={ANSI:iC(this.searchFilter,qK),"ISO/JIS":iC(this.searchFilter,ev),Quantum:iC(this.searchFilter,Qb),KeyboardSettings:iC(this.searchFilter,Vb),AppMediaMouse:iC(this.searchFilter,Wb)})}}}),zB={ContextMenu:"KC_APP"},jB={KC_LSFT:"KC_RSFT",KC_LCTL:"KC_RCTL",KC_LGUI:"KC_RGUI",KC_LALT:"KC_RALT"},JB={KC_0:"KC_P0",KC_1:"KC_P1",KC_2:"KC_P2",KC_3:"KC_P3",KC_4:"KC_P4",KC_5:"KC_P5",KC_6:"KC_P6",KC_7:"KC_P7",KC_8:"KC_P8",KC_9:"KC_P9",KC_SLSH:"KC_PSLS",KC_MINS:"KC_PMNS",KC_PLUS:"KC_PPLS",KC_ENT:"KC_PENT",KC_DOT:"KC_PDOT",KC_EQL:"KC_PEQL"};function XB(e,t){const n=t.filter(({keys:a})=>!Nn(a)).reduce((a,i)=>(Nn(a[i.keys])&&(a[i.keys]=i),a),{});return Object.values(n).map(YB.bind(null,e))}function ZB(e,t,n){let a=t;const i=Nr();switch(t.code){case"KC_0":case"KC_1":case"KC_2":case"KC_3":case"KC_4":case"KC_5":case"KC_6":case"KC_7":case"KC_8":case"KC_9":case"KC_SLSH":case"KC_MINS":case"KC_PLUS":case"KC_ENT":case"KC_DOT":case"KC_EQL":n.location===n.DOM_KEY_LOCATION_NUMPAD&&(a=i.lookupKeycode(JB[t.code]));break}e.commit("keymap/setKeycode",{_code:a.code}),n.shiftKey&&e.commit("keymap/ignoreNextMod")}function qy(e,t,n){let a=t;if(e.state.keymap.ignoreMod){e.commit("keymap/acceptNextMod");return}const i=Nr(),l=zB[n.key];Nn(l)?n.location===n.DOM_KEY_LOCATION_RIGHT&&(a=i.lookupKeycode(jB[t.code])):a=i.lookupKeycode(l),e.commit("keymap/setKeycode",{_code:a.code})}function YB(e,t){const a=Nr().lookupKeycode(t.code);switch(a.code){case"KC_LGUI":case"KC_LALT":case"KC_LCTL":return{keys:t.keys,on_keydown:qy.bind(null,e,a),prevent_default:!0};case"KC_LSFT":return{keys:t.keys,on_keyup:qy.bind(null,e,a),prevent_default:!0};default:return{keys:t.keys,on_keydown:ZB.bind(null,e,a),prevent_default:!0}}}var qB=iu,e3=function(){try{var e=qB(Object,"defineProperty");return e({},"",{}),e}catch{}}(),zb=e3,eL=zb;function t3(e,t,n){t=="__proto__"&&eL?eL(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var CR=t3,n3=CR,a3=Zf,i3=Object.prototype,r3=i3.hasOwnProperty;function o3(e,t,n){var a=e[t];(!(r3.call(e,t)&&a3(a,n))||n===void 0&&!(t in e))&&n3(e,t,n)}var l3=o3,s3=l3,_3=CR;function c3(e,t,n,a){var i=!n;n||(n={});for(var l=-1,u=t.length;++l0){if(++t>=g3)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var E3=A3,b3=R3,T3=E3,P3=T3(b3),w3=P3,O3=dR,I3=d3,N3=w3;function U3(e,t){return N3(I3(e,t,O3),e+"")}var Xb=U3,D3=Xb,k3=Yv;function M3(e){return D3(function(t,n){var a=-1,i=n.length,l=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(l=e.length>3&&typeof l=="function"?(i--,l):void 0,u&&k3(n[0],n[1],u)&&(l=i<3?void 0:l,i=1),t=Object(t);++a/g,sT=$$;function F$(e){return function(t){return e==null?void 0:e[t]}}var H$=F$,Q$=H$,V$={"&":"&","<":"<",">":">",'"':""","'":"'"},W$=Q$(V$),z$=W$,oL=oh,j$=iT,J$=lo,X$=sh,Z$=1/0,lL=oL?oL.prototype:void 0,sL=lL?lL.toString:void 0;function _T(e){if(typeof e=="string")return e;if(J$(e))return j$(e,_T)+"";if(X$(e))return sL?sL.call(e):"";var t=e+"";return t=="0"&&1/e==-Z$?"-0":t}var Y$=_T,q$=Y$;function eF(e){return e==null?"":q$(e)}var vR=eF,tF=z$,nF=vR,cT=/[&<>"']/g,aF=RegExp(cT.source);function iF(e){return e=nF(e),e&&aF.test(e)?e.replace(cT,tF):e}var uT=iF;const rF=Ba(uT);var oF=/<%-([\s\S]+?)%>/g,lF=oF,sF=/<%([\s\S]+?)%>/g,_F=sF,cF=uT,uF=lF,fF=_F,mF=sT,CF={escape:uF,evaluate:fF,interpolate:mF,variable:"",imports:{_:{escape:cF}}},dF=CF,_L=i$,pF=E$,hF=rT,cL=N$,SF=k$,KF=aT,vF=Yv,RF=tm,gF=sT,uL=dF,yF=vR,LF="Invalid `variable` option passed into `_.template`",AF=/\b__p \+= '';/g,EF=/\b(__p \+=) '' \+/g,bF=/(__e\(.*?\)|\b__t\)) \+\n'';/g,TF=/[()=,{}\[\]\/\s]/,PF=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qd=/($^)/,wF=/['\n\r\u2028\u2029\\]/g,OF=Object.prototype,fL=OF.hasOwnProperty;function IF(e,t,n){var a=uL.imports._.templateSettings||uL;n&&vF(e,t,n)&&(t=void 0),e=yF(e),t=_L({},t,a,cL);var i=_L({},t.imports,a.imports,cL),l=RF(i),u=hF(i,l),m,C,d=0,g=t.interpolate||Qd,b="__p += '",P=RegExp((t.escape||Qd).source+"|"+g.source+"|"+(g===gF?PF:Qd).source+"|"+(t.evaluate||Qd).source+"|$","g"),w=fL.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+` `:"";e.replace(P,function(j,V,q,Y,ee,ae){return q||(q=Y),b+=e.slice(d,ae).replace(wF,SF),V&&(m=!0,b+=`' + __e(`+V+`) + '`),ee&&(C=!0,b+=`'; @@ -1348,7 +1348,7 @@ __p += '`),q&&(b+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+b+`return __p -}`;var z=pF(function(){return Function(l,w+"return "+b).apply(void 0,u)});if(z.source=b,KF(z))throw z;return z}var NF=IF;const UF=Ba(NF),hh="https://api.qmk.fm";if(Nn(hh))throw"Backend URL has not been specified";const RR="https://keyboards.qmk.fm";if(Nn(RR))throw"Keyboard Metadata URL has not been specified";const fT=`${RR}/v1/keyboards`,DF=`${RR}/v1/keyboard_list.json`,aZ=`${hh}/v1/compile`,kF=`${hh}/v1`,MF=UF(`${fT}/<%= keyboard %>/readme.md`),GF=`${hh}/v1/skeletons`,aK="Preview info.json";function BF(e,t,n,a){for(var i=e.length,l=n+(a?1:-1);a?l--:++l-1:!!i&&a4(e,t,n)>-1}var c4=_4;const iK=Ba(c4);function u4(e){return e&&e.length?e[0]:void 0}var f4=u4,m4=f4;const mL=Ba(m4),C4=["1upkeyboards/sweet16","40percentclub/i75","7skb","8pack","adkb96","aeboards/ext65","ai03/equinox","aleth42","angel17","angel64","atreus","bat43","bear_face","bigseries","boston_meetup","bpiphany/pegasushoof","business_card","cannonkeys/satisfaction75","christmas_tree","claw44","converter/palm_usb","converter/sun_usb","converter/usb_usb","crkbd","delikeeb/vanana","delikeeb/waaffle/rev3","deltasplit75","duck/eagle_viper","duck/octagon","duck/orion","dumbpad","eco","eek","ergo42","ergodash","ergoslab","ergotravel","exclusive/e85","fortitude60","getta25","hadron","handwired/bento","handwired/bluepill","handwired/dactyl_manuform","handwired/onekey","handwired/pill60","handwired/postageboard","handwired/pytest/has_community","handwired/qc60","handwired/splittest","handwired/unk","handwired/xealous","hecomi","helix","helix/pico","helix/pico/back","helix/pico/under","helix/rev2","helix/rev2/back","helix/rev2/sc","helix/rev2/under","id80","ivy","jian","jiran","jisplit89","jones","kbdfans/kbd75","keebio/bdn9","keebio/dsp40","keebio/iris","keebio/kbo5000","keebio/levinson","keebio/nyquist","keebio/quefrency","keebio/rorschach","keebio/sinc","keebio/viterbi","keycapsss/kimiko","keycapsss/plaid_pad","kinesis","kudox","kudox_game","kyria","launchpad","lets_split","lets_split_eh","lfkeyboards/lfk78","lfkeyboards/smk65","lily58","maartenwut/atom47","marksard/rhymestone","maxipad","mechllama/g35","mechlovin/adelais","mechlovin/adelais/rgb_led","mechlovin/adelais/standard_led","mechlovin/delphine","mechlovin/hannah60rgb","mechlovin/hannah65","mechlovin/hannah910","mechmini","meira","melgeek/z70ultra","minidox","montsinger/rebound","mschwingen/modelm","murcielago","naked48","naked60","naked64","namecard2x4","navi10","nomu30","oddball","orthodox","pimentoso/paddino02","pico","pinky","planck","ploopyco/trackball","ploopyco/trackball_mini","ploopyco/trackball_nano","ploopyco/trackball_nano/rev1_001","polilla","preonic","primekb/prime_l","projectkb/alice","ps2avrGB","qwertyydox","ramonimbao/herringbone","redox","rgbkb/pan","rgbkb/pan/rev1","rgbkb/sol","rgbkb/zen","rgbkb/zygomorph","runner3680","s7_elephant","sentraq/s60_x","setta21","sirius/uni660","sofle","spacetime","suihankey","suihankey/split","tkw/stoutgat/v2","treadstone48","tronguylabs/m122_3270","underscore33","unison","uzu42","vitamins_included","whale/sk","yd60mq","ymd75","yosino58","zinc","zvecr/zv48"];function d4(){return C4.reduce((e,t)=>(e[t]=!0,e),{})}function CL(e){let t=lT(e);if(iK(t,"LAYOUT"))return"LAYOUT";if(iK(t,"LAYOUT_all"))return"LAYOUT_all";if(iK(t,"KEYMAP"))return"KEYMAP";let n=t.filter(a=>!a.endsWith("_kc"));return n.length>0?mL(n):mL(t)}function iZ({keyboard:e,keymap:t,layout:n,layers:a}){return Nn(e)||Nn(t)||Nn(n)||Nn(a)}const p4=new Set(["gboards/gergo","gboards/georgi","stenokeyboards/the_uni/pro_micro","stenokeyboards/the_uni/rp_2040","stenokeyboards/the_uni/usb_c"]),h4={async fetchKeyboards({commit:e}){try{const t=await fetch(DF);if(t.ok){const n=await t.json(),a=d4(),i=n.keyboards.filter(l=>Nn(a[l]));return e("setKeyboards",i),i}}catch(t){console.error("Error fetching keyboards",t)}return[]},async loadDefaultKeymap({state:e}){const t=e.keyboard.slice(0,1).toLowerCase(),n=e.keyboard.replace(/\//g,"_");try{const a=await fetch(`keymaps/${t}/${n}_default.json`);if(a.ok)return await a.json()}catch(a){console.error("Error fetching default keymap",a)}},async loadKeymapFromUrl(e,t){return fetch(t).then(async n=>{if(n.ok)return await n.json();console.error("Error fetching keymap from URL",n.statusText)})},async changeKeyboard({state:e,commit:t,dispatch:n},a){const i=this;let l=!1;t("disablePreview"),t("enableCompile"),e.keyboard!==a&&(l=!0),t("setKeyboard",a);const u=e.layout||"";t("setLayout",void 0),await n("loadLayouts");let m=CL(e.layouts);console.info(CL(e.layouts)),u&&!Nn(e.layouts[u])&&(m=u),t("setLayout",m);const C=Nr();return p4.has(a)?C.enableSteno():C.disableSteno(),l&&i.commit("keymap/clear"),Promise.resolve()},async loadLayouts({commit:e,state:t},n){if(!Nn(n))return n.layouts[" "]={layout:[]},new Promise(l=>{let u={keyboards:{}};u.keyboards[t.keyboard]=n,e("setKeyboardMeta",{}),e("processLayouts",u),l(n)});const a=await fetch(`${fT}/${t.keyboard}/info.json`);if(a.ok){const i=await a.json();return e("setKeyboardMeta",i),e("processLayouts",i),a}},saveConfiguratorSettings({state:e}){PG(fR.configuratorSettings,JSON.stringify(e.configuratorSettings))},async changeLanguage({dispatch:e,commit:t},n){this.$i18n.locale=n,t("setCurrentLanguage",n),await e("saveConfiguratorSettings")},async changeOSKeyboardLayout({dispatch:e,state:t,commit:n},a){n("setOSKeyboardLayout",a);const i=Nr();i.updateKeycodeNames(),this.commit("keymap/updateKeycodeNames"),i.changeActive(t.configuratorSettings.iso?"ISO/JIS":"ANSI"),this.commit("tester/setLayout",t.configuratorSettings.iso?"ISO":"ANSI"),await this.dispatch("tester/init"),await e("saveConfiguratorSettings")},async toggleDarkMode({commit:e,state:t,dispatch:n},a){let i=t.configuratorSettings.darkmodeEnabled;a||(i=!i),i?document.getElementsByTagName("html")[0].dataset.theme="dark":document.getElementsByTagName("html")[0].dataset.theme="",e("setDarkmode",i),await n("saveConfiguratorSettings")},async toggleClearLayerDefault({commit:e,state:t,dispatch:n}){let a=t.configuratorSettings.clearLayerDefault;a=!a,e("setClearLayerDefault",a),await n("saveConfiguratorSettings")},async setFavoriteKeyboard({commit:e,dispatch:t},n){e("setFavoriteKeyboard",n),await t("saveConfiguratorSettings")},async setFavoriteColor({commit:e,dispatch:t},n){e("setFavoriteColor",n),await t("saveConfiguratorSettings")},async loadApplicationState({commit:e,dispatch:t}){console.log("loadApplicationState Start"),await t("fetchKeyboards"),await t("loadFavoriteKeyboard"),await t("toggleDarkMode",!0),await t("loadLanguage"),console.log("loadApplicationState End"),e("setAppInitialized",!0)},loadLanguage({state:e}){e.configuratorSettings.language&&this.$i18n.locale!==e.configuratorSettings.language?this.$i18n.locale=e.configuratorSettings.language:e.configuratorSettings.language=this.$i18n.locale},async loadFavoriteKeyboard({dispatch:e,state:t,getters:n,commit:a}){t.configuratorSettings.favoriteKeyboard&&(n.validateKeyboard(t.configuratorSettings.favoriteKeyboard)?(console.info(`setKeyboard ${t.configuratorSettings.favoriteKeyboard}`),a("setKeyboard",t.configuratorSettings.favoriteKeyboard)):(console.info("Invalid keyboard favorited. Removing setting from local storage"),a("setFavoriteKeyboard",""),await e("saveConfiguratorSettings")))},async initKeypressListener({commit:e}){const t=this,n=new Hb.keypress.Listener,a=Nr(),i=XB(t,a.keycodes);n.register_many(i),n.simple_combo("ctrl shift i",()=>{t.state.app.isPreview||e("requestPreview")}),n.simple_combo("ctrl alt n",()=>{t.commit("keymap/nextColorway")}),n.simple_combo("ctrl alt f",()=>{t.commit("keymap/toggleContinuousInput")}),n.simple_combo("ctrl alt s",()=>{e("toggleSettingsPanel")}),e("setKeypressListener",()=>n)},async updateKeymapName({commit:e,rootState:t},n){const a=this;e("setKeymapName",n),n!==""&&!t.keymap.dirty&&a.commit("keymap/setDirty"),n===""&&t.keymap.dirty&&a.commit("keymap/clearDirty")}};function S4(e,t,n,a){var i=-1,l=e==null?0:e.length;for(a&&l&&(n=e[++i]);++i-1}var J4=j4,X4=Sh;function Z4(e,t){var n=this.__data__,a=X4(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}var Y4=Z4,q4=k4,e5=H4,t5=W4,n5=J4,a5=Y4;function nm(e){var t=-1,n=e==null?0:e.length;for(this.clear();++tm))return!1;var d=l.get(e),g=l.get(t);if(d&&g)return d==t&&g==e;var b=-1,P=!0,w=n&xH?new kH:void 0;for(l.set(e,t),l.set(t,e);++bt!==aK)},setKeyboard(e,t){e.keyboard=t},setLegends(e,t){e.legends=t},setCurrentLanguage(e,t){Ze.set(e.configuratorSettings,"language",t)},setFavoriteKeyboard(e,t){e.configuratorSettings.favoriteKeyboard=t},setFavoriteColor(e,t){Ze.set(e.configuratorSettings,"favoriteColor",t)},setKeyboards(e,t){e.keyboards=t,e._keyboards=t},setLayout(e,t){if(e.keyboardMeta&&e.keyboard&&e.keyboardMeta[e.keyboard]){const{layout_aliases:n}=e.keyboardMeta[e.keyboard];if(n&&n[t]){e.layout=n[t];return}}e.layout=t},setKeymapName(e,t){e.keymapName=t.replace(/[\s/]/g,"_").toLowerCase()},setJobID(e,t){e.jobID=t},setEnableDownloads(e){e.enableDownloads=!0},setDisableDownloads(e){e.enableDownloads=!1},setFirmwareFile(e,t){e.firmwareFile=t},setFirmwareBinaryURL(e,t){e.firmwareBinaryURL=t},setFirmwareSourceURL(e,t){e.firmwareSourceURL=t},setFilter(e,t){e.filter=t;let n=e._keyboards.filter(a=>e.filter===""?!0:a.startsWith(e.filter));n.length>0&&(e.keyboards=n)},processLayouts(e,t){if(t||e.isPreview){let n={};return e.isPreview?n=t.keyboards[aK].layouts:t&&t.keyboards&&(n=t.keyboards[e.keyboard].layouts),Xv(n)===0?e.layouts={to_be_defined:[]}:n&&(e.layouts=G7(n,function(a,i,l){return a[l]=i.layout?i.layout:i,a},{})),e.layouts}return{}},setAppInitialized(e,t){e.appInitialized=t},setKeypressListener(e,t){e.keypressListener=t},stopListening(e){e.keypressListener().stop_listening()},startListening(e){e.keypressListener().listen()},resetListener(e){e.keypressListener().reset()},setShowSpinner(e,t){e.showSpinner=t},setSpinnerMsg(e,t){e.spinnerMsg=t},setKeymapSourceURL(e,t){e.keymapSourceURL=t},setMessage(e,t){e.message=t},setSettingsPanel(e,t){e.settingsPanelVisible=t},toggleSettingsPanel(e){e.settingsPanelVisible=!e.settingsPanelVisible},setHasErrors(e){tv.disableCompile(e)},setHasNoErrors(e){tv.enableCompile(e)},setAuthor(e,t){e.author=t},setNotes(e,t){e.notes=t},toggleTutorial(e){e.tutorialEnabled=!e.tutorialEnabled},setDarkmode(e,t){e.configuratorSettings.darkmodeEnabled=t},setOSKeyboardLayout(e,t){e.configuratorSettings.osKeyboardLayout=t},setIso(e,t){e.configuratorSettings.iso=t},setClearLayerDefault(e,t){e.configuratorSettings.clearLayerDefault=t},toggleSnowflakes(e){e.snowflakes=!e.snowflakes},setKeyboardMeta(e,t){e.keyboardMeta=t!=null&&t.keyboards?t.keyboards:{}}},B7={namespaced:!0,state:IG,getters:DG,actions:h4,mutations:tv},x7={name:"dsa-galaxy-class",override:{KC_ESC:"pink",KC_F1:"darker-blue",KC_F2:"darker-blue",KC_F3:"darker-blue",KC_F4:"darker-blue",KC_F5:"pink",KC_F6:"pink",KC_F7:"pink",KC_F8:"pink",KC_F9:"light-blue",KC_F10:"light-blue",KC_F11:"light-blue",KC_F12:"light-blue",KC_PSCR:"purple",KC_SCRL:"purple",KC_PAUS:"purple",KC_GRV:"mod",QK_GESC:"mod",KC_1:"mod",KC_2:"mod",KC_3:"mod",KC_4:"mod",KC_5:"mod",KC_6:"mod",KC_7:"mod",KC_8:"mod",KC_9:"mod",KC_0:"mod",KC_MINS:"mod",KC_EQL:"mod",KC_TAB:"purple",KC_BSLS:"mod",KC_CAPS:"purple",KC_LSFT:"purple",KC_LCTL:"purple",KC_LGUI:"purple",KC_LALT:"purple",KC_SPC:"gray",KC_RALT:"purple",KC_RGUI:"purple",KC_INS:"pink",KC_HOME:"pink",KC_PGUP:"pink",KC_DEL:"pink",KC_END:"pink",KC_PGDN:"pink",KC_UP:"darker-blue",KC_LEFT:"darker-blue",KC_DOWN:"darker-blue",KC_RGHT:"darker-blue",KC_NUM:"mod",KC_PSLS:"mod",KC_PAST:"mod",KC_PMNS:"mod",KC_PPLS:"mod",KC_PENT:"mod",KC_PDOT:"pink",KC_P0:"pink",KC_P1:"light-blue",KC_P2:"light-blue",KC_P3:"light-blue",KC_P4:"light-blue",KC_P5:"light-blue",KC_P6:"light-blue",KC_P7:"light-blue",KC_P8:"light-blue",KC_P9:"light-blue"}},$7={name:"dsa-milkshake",override:{KC_ESC:"esc",KC_BSPC:"backspace",KC_ENT:"enter",KC_RGUI:"os",KC_LGUI:"os",KC_LALT:"alt",KC_RALT:"alt"}},F7=[x7,$7],H7={name:"gmk-8008",override:{KC_ENT:"accent",KC_ESC:"accent",QK_GESC:"accent",KC_PENT:"accent"}},Q7={name:"gmk-9009",override:{KC_ENT:"enter",KC_PENT:"enter",KC_ESC:"esc",QK_GESC:"esc"}},V7={name:"gmk-alter",override:{KC_SPC:"key"}},W7={name:"gmk-analog-dreams",override:{KC_ENT:"enter",KC_PENT:"enter",KC_ESC:"esc",QK_GESC:"esc"}},z7={name:"gmk-ascii"},j7={name:"gmk-bento",override:{KC_ESC:"accent",KC_ENT:"accent",QK_GESC:"accent",KC_PENT:"accent",KC_RALT:"accent",KC_LALT:"accent"}},J7={name:"gmk-bingsu",override:{KC_ENT:"accent",KC_PENT:"accent",KC_ESC:"accent",QK_GESC:"accent"}},X7={name:"gmk-cafe",override:{KC_ENT:"accent",KC_PENT:"accent",KC_ESC:"accent",QK_GESC:"accent"}},Z7={name:"gmk-calm-depths"},Y7={name:"gmk-camping",override:{KC_ENT:"accent",KC_PENT:"accent",KC_ESC:"accent",QK_GESC:"accent"}},q7={name:"gmk-deku",override:{KC_ENT:"accent",KC_PENT:"accent",KC_ESC:"accent",QK_GESC:"accent",KC_UP:"accent",KC_DOWN:"accent",KC_LEFT:"accent",KC_RGHT:"accent"}},e9={name:"gmk-dolch"},t9={name:"gmk-dracula",override:{KC_TAB:"mod2",KC_BSPC:"mod2",KC_LGUI:"mod2",KC_RGUI:"mod2",KC_CAPS:"mod3",KC_ENT:"mod3",KC_PENT:"mod3",KC_LALT:"mod3",KC_RALT:"mod3",KC_LSFT:"mod4",KC_RSFT:"mod4",KC_LCTL:"mod5",KC_RCTL:"mod5",KC_NUM:"mod5","MO(layer)":"mod6",KC_ESC:"accent",QK_GESC:"accent",KC_UP:"accent2",KC_DOWN:"accent3",KC_LEFT:"accent4",KC_RGHT:"accent5",KC_SPC:"accent6",KC_F1:"func",KC_F2:"func",KC_F3:"func",KC_F4:"func",KC_F9:"func",KC_F10:"func",KC_F11:"func",KC_F12:"func",KC_F5:"func2",KC_F6:"func2",KC_F7:"func2",KC_F8:"func2"}},n9={name:"gmk-dualshot",override:{KC_ESC:"mod2",QK_GESC:"mod2",KC_BSPC:"mod2",KC_TAB:"mod3",KC_BSLS:"mod3",KC_CAPS:"mod4",KC_ENT:"mod4",KC_PENT:"mod4",KC_LSFT:"mod5",KC_RSFT:"mod5",KC_UP:"accent",KC_LEFT:"accent2",KC_DOWN:"accent3",KC_RGHT:"accent4"}},a9={name:"gmk-fro-dot-yo",override:{KC_TAB:"blu",KC_BSPC:"rdp",KC_LGUI:"blu",KC_RGUI:"blu",KC_CAPS:"ppl",KC_ENT:"grn",KC_PENT:"grn",KC_LALT:"grn",KC_RALT:"grn",KC_LSFT:"ylw",KC_RSFT:"ylw",KC_LCTL:"rdp",KC_RCTL:"rdp",KC_APP:"ppl",KC_INS:"rdp","MO(layer)":"ppl",KC_ESC:"rdp",QK_GESC:"rdp"}},i9={name:"gmk-grand-prix",override:{KC_ENT:"accent",KC_ESC:"accent"}},r9={name:"gmk-hammerhead-dark",override:{KC_ENT:"accent",KC_PENT:"accent",KC_ESC:"accent",QK_GESC:"accent"}},o9={name:"gmk-hammerhead-light",override:{KC_ENT:"accent",KC_PENT:"accent",KC_ESC:"accent",QK_GESC:"accent"}},l9={name:"gmk-handarbeit-plus",override:{KC_F1:"accent",KC_F2:"accent",KC_F3:"accent",KC_F4:"accent",KC_LBRC:"accent",KC_RBRC:"accent",KC_BSLS:"accent",KC_SCLN:"accent",KC_QUOT:"accent",KC_COMM:"accent",KC_DOT:"accent",KC_SLSH:"accent",KC_F5:"accent2",KC_F6:"accent2",KC_F7:"accent2",KC_F8:"accent2",KC_PPLS:"accent2",KC_F9:"accent3",KC_F10:"accent3",KC_F11:"accent3",KC_F12:"accent3",KC_INS:"accent3",KC_NUM:"accent3",KC_PSLS:"accent3",KC_PAST:"accent3",KC_PMNS:"accent3",KC_DEL:"accent3",KC_F:"accent3",KC_J:"accent3",KC_ENT:"accent3",KC_UP:"accent3",KC_SPC:"accent3",KC_PSCR:"accent4",KC_SCRL:"accent4",KC_PAUS:"accent4",KC_1:"accent5",KC_2:"accent5",KC_3:"accent5",KC_4:"accent5",KC_5:"accent5",KC_6:"accent5",KC_7:"accent5",KC_8:"accent5",KC_9:"accent5",KC_0:"accent5",KC_HOME:"accent5",KC_END:"accent5",KC_DOWN:"accent5",KC_BSPC:"accent6",KC_TAB:"accent6",KC_CAPS:"accent6",KC_LSFT:"accent6",KC_RSFT:"accent6",KC_P1:"accent6",KC_P2:"accent6",KC_P3:"accent6",KC_P4:"accent6",KC_P6:"accent6",KC_P7:"accent6",KC_P8:"accent6",KC_P9:"accent6",KC_LEFT:"accent7",KC_RGHT:"accent7",KC_PENT:"accent8",KC_PDOT:"accent9"}},s9={name:"gmk-hazakura",override:{KC_ENT:"accent",KC_PENT:"accent",KC_ESC:"accent",QK_GESC:"accent",KC_UP:"accent",KC_DOWN:"accent",KC_LEFT:"accent",KC_RGHT:"accent",KC_SPC:"accent"}},_9={name:"gmk-jamon"},c9={name:"gmk-merlin",override:{KC_ESC:"accent",KC_ENT:"accent"}},u9={name:"gmk-metaverse",override:{KC_ESC:"accent",KC_ENT:"accent",KC_F1:"mod",KC_F2:"mod",KC_F3:"mod",KC_F4:"mod",KC_F5:"accent",KC_F6:"accent",KC_F7:"accent",KC_F8:"accent",KC_F9:"mod",KC_F10:"mod",KC_F11:"mod",KC_F12:"mod",KC_LGUI:"accent",KC_RGUI:"accent",KC_LEFT:"accent",KC_RGHT:"accent",KC_DOWN:"accent",KC_UP:"accent",KC_P0:"mod",KC_P1:"mod",KC_P2:"mod",KC_P3:"mod",KC_P4:"mod",KC_P5:"mod",KC_P6:"mod",KC_P7:"mod",KC_P8:"mod",KC_P9:"mod",KC_PDOT:"mod",KC_PENT:"accent"}},f9={name:"gmk-metropolis-base",override:{KC_TAB:"mod2",KC_CAPS:"mod2",KC_BSPC:"mod2",KC_PSCR:"mod2",KC_SCRL:"mod2",KC_PAUS:"mod2",KC_INS:"mod2",KC_HOME:"mod2",KC_PGUP:"mod2",KC_DEL:"mod2",KC_END:"mod2",KC_PGDN:"mod2",KC_NUM:"mod2",KC_PSLS:"mod2",KC_PAST:"mod2",KC_PMNS:"mod2",KC_PPLS:"mod2",KC_PCMM:"mod2",KC_PEQL:"mod2",KC_LSFT:"mod3",KC_LCTL:"mod3",KC_LGUI:"mod3",KC_LALT:"mod3",KC_RALT:"mod3",KC_RGUI:"mod3",KC_APP:"mod3",KC_RCTL:"mod3",KC_RSFT:"mod3",KC_UP:"mod3",KC_LEFT:"mod3",KC_DOWN:"mod3",KC_RGHT:"mod3",KC_ESC:"accent",QK_GESC:"accent",KC_ENT:"accent2",KC_PENT:"accent2","MO(layer)":"accent3"}},m9={name:"gmk-metropolis-midnight",override:{KC_ESC:"accent",QK_GESC:"accent"}},C9={name:"gmk-mizu",override:{KC_ESC:"accent",KC_ENT:"accent",KC_PENT:"accent"}},d9={name:"gmk-nautilus",override:{KC_ENT:"accent",KC_ESC:"accent"}},p9={name:"gmk-nines",override:{KC_ESC:"accent",QK_GESC:"accent",KC_ENT:"accent",KC_PENT:"accent"}},h9={name:"gmk-olivetti",override:{KC_ESC:"accent",KC_ENT:"accent"}},S9={name:"gmk-olivia",override:{KC_SPC:"accent",KC_ENT:"accent",KC_ESC:"accent",KC_F1:"key",KC_F2:"key",KC_F3:"key",KC_F4:"key",KC_F9:"key",KC_F10:"key",KC_F11:"key",KC_F12:"key",KC_LEFT:"accent",KC_RGHT:"accent",KC_DOWN:"accent",KC_UP:"accent"}},K9={name:"gmk-olivia-plus-plus-dark",override:{KC_ESC:"accent",QK_GESC:"accent",KC_ENT:"accent",KC_PENT:"accent"}},v9={name:"gmk-phosphorous",override:{KC_ESC:"accent",QK_GESC:"accent",KC_P:"accent",KC_ENT:"accent",KC_PENT:"accent"}},R9={name:"gmk-plum",override:{KC_ENT:"accent"}},g9={name:"gmk-serika",override:{KC_ESC:"accent",KC_ENT:"accent",KC_PENT:"accent"}},y9={name:"gmk-space-cadet",override:{KC_F1:"mod",KC_F2:"mod",KC_F3:"mod",KC_F4:"mod",KC_F9:"mod",KC_F10:"mod",KC_F11:"mod",KC_F12:"mod"}},L9={name:"gmk-striker",override:{KC_ESC:"accent",KC_ENT:"accent",KC_PENT:"accent",KC_SPC:"accent"}},A9={name:"gmk-terminal",override:{KC_H:"accent",KC_J:"accent",KC_K:"accent",KC_L:"accent",KC_ESC:"accent",KC_ENT:"accent"}},E9={name:"gmk-ta-royal-alpha",override:{KC_ESC:"accent",KC_ENT:"accent",KC_SPC:"accent"}},b9={name:"gmk-vaporwave",override:{KC_ENT:"accent",KC_ESC:"accent"}},T9={name:"gmk-wob"},P9={name:"gmk-yuri",override:{KC_ENT:"accent",KC_ESC:"accent"}},w9=[H7,Q7,V7,W7,z7,j7,J7,X7,Z7,Y7,q7,e9,t9,n9,a9,i9,r9,o9,l9,s9,_9,c9,u9,f9,m9,C9,d9,p9,h9,S9,K9,v9,R9,g9,y9,L9,E9,A9,b9,T9,P9],O9={name:"sa-bliss",override:{KC_ESC:"accent",QK_GESC:"accent",KC_ENT:"accent",KC_PENT:"accent",KC_SPC:"accent",KC_PSCR:"accent",KC_SCRL:"accent",KC_PAUS:"accent",KC_UP:"accent",KC_LEFT:"accent",KC_DOWN:"accent",KC_RGHT:"accent"}},I9={name:"sa-carbon",override:{KC_ESC:"accent",KC_ENT:"accent",KC_F5:"accent",KC_F6:"accent",KC_F7:"accent",KC_F8:"accent",KC_PSCR:"accent",KC_SCRL:"accent",KC_PAUS:"accent",KC_UP:"accent",KC_LEFT:"accent",KC_DOWN:"accent",KC_RGHT:"accent"}},N9={name:"sa-danger-zone",override:{KC_ESC:"accent-red",KC_ENT:"accent-yellow",KC_UP:"key",KC_LEFT:"key",KC_DOWN:"key",KC_RGHT:"key"}},U9={name:"sa-jukebox",override:{KC_ESC:"accent",KC_ENT:"accent"}},D9={name:"sa-modern-selectric",override:{KC_F1:"mod",KC_F2:"mod",KC_F3:"mod",KC_F4:"mod",KC_F9:"mod",KC_F10:"mod",KC_F11:"mod",KC_F12:"mod"}},k9={name:"sa-nantucket-selectric",override:{KC_F1:"mod",KC_F2:"mod",KC_F3:"mod",KC_F4:"mod",KC_F9:"mod",KC_F10:"mod",KC_F11:"mod",KC_F12:"mod",KC_INS:"key",KC_DEL:"key",KC_HOME:"key",KC_END:"key",KC_PGUP:"key",KC_PGDN:"key",KC_P0:"mod",KC_PDOT:"mod"}},M9={name:"sa-oblivion-hagoromo",override:{KC_ESC:"accent",KC_ENT:"accent",KC_PENT:"accent"}},G9={name:"sa-vilebloom",override:{KC_ESC:"accent1",KC_F1:"accent1",KC_F2:"accent1",KC_F3:"accent1",KC_F4:"accent2",KC_F5:"accent3",KC_GRV:"accent1",QK_GESC:"accent1",KC_1:"accent1",KC_2:"accent1",KC_3:"accent1",KC_4:"accent2",KC_5:"accent2",KC_6:"accent3",KC_T:"accent3",KC_F:"accent3",KC_C:"accent3",KC_TAB:"accent1",KC_Q:"accent1",KC_W:"accent1",KC_CAPS:"accent1",KC_A:"accent1",KC_LSFT:"accent1",KC_NUBS:"accent1",KC_LCTL:"accent1",KC_E:"accent2",KC_R:"accent2",KC_S:"accent2",KC_D:"accent2",KC_Z:"accent2",KC_X:"accent2",KC_LGUI:"accent2",KC_LALT:"accent2",KC_P1:"accent3",KC_P5:"accent3",KC_P9:"accent3",KC_PMNS:"accent3",KC_P2:"accent2",KC_P3:"accent2",KC_P6:"accent2",KC_PPLS:"accent2",KC_P0:"accent2",KC_PDOT:"accent1",KC_PENT:"accent1"}},B9=[O9,I9,N9,U9,D9,k9,M9,G9],x9={name:"jtk-suited-assassin",override:{KC_ESC:"accent",QK_GESC:"accent",KC_ENT:"accent",KC_PENT:"accent"}},$9=[x9],F9={name:"kat-hyperfuse",override:{KC_ENT:"accent",KC_PENT:"accent",KC_ESC:"accent",QK_GESC:"accent"}},H9={name:"kat-oasis"},Q9=[F9,H9],V9={name:"mt3-dev-tty",override:{KC_ENT:"accent",KC_ESC:"accent",QK_GESC:"accent",BL_STEP:"mod",SC_RSPC:"mod",SC_LSPO:"mod"}},W9={name:"mt3-dev-tty-teal",override:{BL_STEP:"mod",SC_RSPC:"mod",QK_GESC:"mod",SC_LSPO:"mod"}},z9={name:"mt3-dev-tty-ortho",override:{KC_ENT:"accent",KC_ESC:"accent",QK_GESC:"accent",KC_DEL:"mod",KC_QUOT:"mod",KC_GRV:"mod",BL_STEP:"mod",SC_RSPC:"mod",SC_LSPO:"mod"}},j9={name:"mt3-susuwatari",override:{KC_ENT:"accent-red",KC_ESC:"accent-red",QK_GESC:"accent-red",KC_LALT:"mod-blue",KC_RALT:"mod-blue",KC_LGUI:"mod-blue",KC_RGUI:"mod-blue",KC_LSFT:"mod-green",KC_RSFT:"mod-green",KC_RCTL:"mod-blue",KC_LCTL:"mod-blue",KC_APP:"mod-blue",KC_MENU:"mod-blue",BL_STEP:"mod-blue","MO(layer)":"mod-blue","TG(layer)":"mod-blue","TO(layer)":"mod-blue","TT(layer)":"mod-blue","DF(layer)":"mod-blue","OSL(layer)":"mod-blue",SC_RSPC:"mod-green",SC_LSPO:"mod-green"}},J9={name:"mt3-susuwatari-ortho",override:{KC_ENT:"accent",KC_ESC:"accent",QK_GESC:"accent",KC_DEL:"mod",KC_QUOT:"mod",KC_GRV:"mod",KC_LALT:"mod-blue",KC_RALT:"mod-blue",KC_LGUI:"mod-blue",KC_RGUI:"mod-blue",KC_RCTL:"mod-blue",KC_LCTL:"mod-blue",KC_APP:"mod-blue",KC_UP:"mod-blue",KC_LEFT:"mod-blue",KC_DOWN:"mod-blue",KC_RGHT:"mod-blue",KC_MENU:"mod-blue",BL_STEP:"mod-blue","MO(layer)":"mod-blue","TG(layer)":"mod-blue","TO(layer)":"mod-blue","TT(layer)":"mod-blue","DF(layer)":"mod-blue","OSL(layer)":"mod-blue",SC_RSPC:"mod",SC_LSPO:"mod"}},X9={name:"mt3-lotr-elvish",override:{BL_STEP:"mod",SC_RSPC:"mod",QK_GESC:"mod",SC_LSPO:"mod"}},Z9={name:"mt3-lotr-elvish-rivendell",override:{BL_STEP:"mod",SC_RSPC:"mod",SC_LSPO:"mod",KC_UP:"accent",KC_DOWN:"accent",KC_LEFT:"accent",KC_RGHT:"accent",KC_SPC:"accent",KC_ENT:"accent",QK_GESC:"accent",KC_ESC:"accent"}},Y9={name:"mt3-lotr-elvish-evenstar",override:{BL_STEP:"mod",SC_RSPC:"mod",SC_LSPO:"mod",KC_UP:"accent",KC_DOWN:"accent",KC_LEFT:"accent",KC_RGHT:"accent",KC_SPC:"accent",KC_ENT:"accent",QK_GESC:"accent",KC_ESC:"accent"}},q9={name:"mt3-lotr-elvish-ortho",override:{KC_ENT:"mod",KC_ESC:"mod",QK_GESC:"mod",KC_DEL:"mod",KC_QUOT:"mod",BL_STEP:"mod",SC_RSPC:"mod",KC_GRV:"mod",SC_LSPO:"mod"}},eQ={name:"mt3-lotr-dwarvish",override:{BL_STEP:"mod",SC_RSPC:"mod",QK_GESC:"mod",SC_LSPO:"mod"}},tQ={name:"mt3-lotr-dwarvish-ortho",override:{KC_ENT:"mod",KC_ESC:"mod",QK_GESC:"mod",KC_DEL:"mod",KC_QUOT:"mod",BL_STEP:"mod",SC_RSPC:"mod",KC_GRV:"mod",SC_LSPO:"mod"}},nQ={name:"mt3-lotr-dwarvish-durin",override:{BL_STEP:"mod",SC_RSPC:"mod",SC_LSPO:"mod",KC_UP:"accent",KC_DOWN:"accent",KC_LEFT:"accent",KC_RGHT:"accent",KC_SPC:"accent",KC_ENT:"accent",QK_GESC:"accent",KC_ESC:"accent"}},aQ={name:"mt3-3277",override:{BL_STEP:"mod",SC_RSPC:"mod",QK_GESC:"mod",SC_LSPO:"mod"}},iQ={name:"mt3-3277-ortho",override:{KC_ENT:"mod",KC_ESC:"mod",QK_GESC:"mod",KC_DEL:"mod",KC_QUOT:"mod",BL_STEP:"mod",SC_RSPC:"mod",KC_GRV:"mod",SC_LSPO:"mod"}},rQ={name:"mt3-3277-accent-red",override:{BL_STEP:"mod",SC_RSPC:"mod",SC_LSPO:"mod",KC_UP:"accent-red",KC_DOWN:"accent-red",KC_LEFT:"accent-red",KC_RGHT:"accent-red",KC_SPC:"accent-red",KC_ENT:"accent-red",QK_GESC:"accent-red",KC_ESC:"accent-red"}},oQ=[V9,W9,z9,j9,J9,X9,Z9,Y9,q9,eQ,nQ,tQ,aQ,iQ,rQ],lQ={name:"dcs-midnight",override:{BL_STEP:"mod",SC_RSPC:"mod",SC_LSPO:"mod",KC_ESC:"accent",QK_GESC:"accent",KC_ENT:"accent"}},sQ={name:"dcs-midnight-twilight",override:{BL_STEP:"mod",SC_RSPC:"mod",QK_GESC:"mod",SC_LSPO:"mod"}},_Q=[lQ,sQ],cQ={...["KC_F1","KC_F2","KC_F3","KC_F4","KC_F9","KC_F10","KC_F11","KC_F12","KC_BSLS","KC_P0","KC_P1","KC_P2","KC_P3","KC_P4","KC_P5","KC_P6","KC_P7","KC_P8","KC_P9","KC_PDOT"].reduce((e,t)=>(e[t]=!0,e),{})},uQ={...["KC_ESC","KC_F5","KC_F6","KC_F7","KC_F8","KC_LEFT","KC_RGHT","KC_UP","KC_DOWN","KC_PSCR","KC_SCRL","KC_PAUS","KC_INS","KC_DEL","KC_HOME","KC_END","KC_PGUP","KC_PGDN","KC_LSFT","KC_RSFT","KC_TAB","KC_RGUI","KC_LGUI","KC_LALT","KC_RALT","KC_LCTL","KC_RCTL","KC_ENT","KC_BSPC","KC_NUM","KC_PSLS","KC_PAST","KC_PMNS","KC_PPLS","KC_PENT","KC_PCMM","KC_PEQL","KC_CAPS","KC_LCAP","KC_LNUM","KC_LSCR","MO(layer)","TG(layer)","TO(layer)","TT(layer)","DF(layer)","OSL(layer)"].reduce((e,t)=>(e[t]=!0,e),{})},PL={alphaCodes:cQ,modCodes:uQ,list:[..._Q,...F7,...B9,...w9,...$9,...Q9,...oQ],iconCodes:{KC_UP:"arrow-up",KC_DOWN:"arrow-down",KC_LEFT:"arrow-left",KC_RGHT:"arrow-right",KC_APP:"bars"},platformIcons(e){let t=[];switch(e){case"MacIntel":case"Macintosh":case"MacPPC":case"iPhone":case"iPad":t=["fab","apple"];break;case"Linux i686":case"Linux x86_64":case"Linux armv7l":t=["fab","linux"];break;case"Win32":t=["fab","windows"];break;default:t=void 0}return{KC_LGUI:t,KC_RGUI:t}}},TC={MAX_X:800,KEY_WIDTH:40,KEY_HEIGHT:40,SWAP_KEY_WIDTH:30,SWAP_KEY_HEIGHT:30,KEY_X_SPACING:45,KEY_Y_SPACING:45,SCALE:1},Lf={KC_TRANSPARENT:"KC_TRNS",_______:"KC_TRNS",XXXXXXX:"KC_NO",KC_ENTER:"KC_ENT",KC_ESCAPE:"KC_ESC",KC_SPACE:"KC_SPC",KC_MINUS:"KC_MINS",KC_EQUAL:"KC_EQL",KC_NONUS_HASH:"KC_NUHS",KC_QUOTE:"KC_QUOT",KC_GRAVE:"KC_GRV",KC_COMMA:"KC_COMM",KC_SLASH:"KC_SLSH",KC_BRMD:"KC_SCRL",KC_PAUSE:"KC_PAUS",KC_BRK:"KC_PAUS",KC_BRMU:"KC_PAUS",KC_INSERT:"KC_INS",KC_DELETE:"KC_DEL",KC_RIGHT:"KC_RGHT",KC_KP_SLASH:"KC_PSLS",KC_KP_ASTERISK:"KC_PAST",KC_KP_MINUS:"KC_PMNS",KC_KP_PLUS:"KC_PPLS",KC_KP_ENTER:"KC_PENT",KC_KP_1:"KC_P1",KC_KP_2:"KC_P2",KC_KP_3:"KC_P3",KC_KP_4:"KC_P4",KC_KP_5:"KC_P5",KC_KP_6:"KC_P6",KC_KP_7:"KC_P7",KC_KP_8:"KC_P8",KC_KP_9:"KC_P9",KC_KP_0:"KC_P0",KC_KP_DOT:"KC_PDOT",KC_APPLICATION:"KC_APP",KC_KP_EQUAL:"KC_PEQL",KC_EXECUTE:"KC_EXEC",KC_SELECT:"KC_SLCT",KC_AGAIN:"KC_AGIN",KC_PASTE:"KC_PSTE",KC_KP_COMMA:"KC_PCMM",KC_INTERNATIONAL_1:"KC_INT1",KC_INTERNATIONAL_2:"KC_INT2",KC_INTERNATIONAL_3:"KC_INT3",KC_INTERNATIONAL_4:"KC_INT4",KC_INTERNATIONAL_5:"KC_INT5",KC_INTERNATIONAL_6:"KC_INT6",KC_INTERNATIONAL_7:"KC_INT7",KC_INTERNATIONAL_8:"KC_INT8",KC_INTERNATIONAL_9:"KC_INT9",KC_LANGUAGE_1:"KC_LNG1",KC_LANGUAGE_2:"KC_LNG2",KC_LANGUAGE_3:"KC_LNG3",KC_LANGUAGE_4:"KC_LNG4",KC_LANGUAGE_5:"KC_LNG5",KC_LANGUAGE_6:"KC_LNG6",KC_LANGUAGE_7:"KC_LNG7",KC_LANGUAGE_8:"KC_LNG8",KC_LANGUAGE_9:"KC_LNG9",KC_CLEAR:"KC_CLR",KC_LCMD:"KC_LGUI",KC_LWIN:"KC_LGUI",KC_ALGR:"KC_RALT",KC_RCMD:"KC_RGUI",KC_RWIN:"KC_RGUI",KC_SYSTEM_POWER:"KC_PWR",KC_SYSTEM_SLEEP:"KC_SLEP",KC_SYSTEM_WAKE:"KC_WAKE",KC_AUDIO_MUTE:"KC_MUTE",KC_AUDIO_VOL_UP:"KC_VOLU",KC_AUDIO_VOL_DOWN:"KC_VOLD",KC_MEDIA_NEXT_TRACK:"KC_MNXT",KC_MEDIA_PREV_TRACK:"KC_MPRV",KC_MEDIA_STOP:"KC_MSTP",KC_MEDIA_PLAY_PAUSE:"KC_MPLY",KC_MEDIA_SELECT:"KC_MSEL",KC_MEDIA_EJECT:"KC_EJCT",KC_CALCULATOR:"KC_CALC",KC_MY_COMPUTER:"KC_MYCM",KC_WWW_SEARCH:"KC_WSCH",KC_WWW_HOME:"KC_WHOM",KC_WWW_BACK:"KC_WBAK",KC_WWW_FORWARD:"KC_WFWD",KC_WWW_STOP:"KC_WSTP",KC_WWW_REFRESH:"KC_WREF",KC_WWW_FAVORITES:"KC_WFAV",KC_MEDIA_FAST_FORWARD:"KC_MFFD",KC_MEDIA_REWIND:"KC_MRWD",KC_BRIGHTNESS_UP:"KC_BRIU",KC_BRIGHTNESS_DOWN:"KC_BRID",MAGIC_SWAP_CONTROL_CAPSLOCK:"CL_SWAP",MAGIC_UNSWAP_CONTROL_CAPSLOCK:"CL_NORM",MAGIC_CAPSLOCK_TO_CONTROL:"CL_CTRL",MAGIC_UNCAPSLOCK_TO_CONTROL:"CL_CAPS",MAGIC_SWAP_LCTL_LGUI:"CG_LSWP",MAGIC_UNSWAP_LCTL_LGUI:"CG_LNRM",MAGIC_SWAP_RCTL_RGUI:"CG_RSWP",MAGIC_UNSWAP_RCTL_RGUI:"CG_RNRM",MAGIC_SWAP_CTL_GUI:"CG_SWAP",MAGIC_UNSWAP_CTL_GUI:"CG_NORM",MAGIC_TOGGLE_CTL_GUI:"CG_TOGG",MAGIC_SWAP_LALT_LGUI:"AG_LSWP",MAGIC_UNSWAP_LALT_LGUI:"AG_LNRM",MAGIC_SWAP_RALT_RGUI:"AG_RSWP",MAGIC_UNSWAP_RALT_RGUI:"AG_RNRM",MAGIC_SWAP_ALT_GUI:"AG_SWAP",MAGIC_UNSWAP_ALT_GUI:"AG_NORM",MAGIC_TOGGLE_ALT_GUI:"AG_TOGG",MAGIC_NO_GUI:"GUI_OFF",MAGIC_UNNO_GUI:"GUI_ON",MAGIC_SWAP_GRAVE_ESC:"GE_SWAP",MAGIC_UNSWAP_GRAVE_ESC:"GE_NORM",MAGIC_SWAP_BACKSLASH_BACKSPACE:"BS_SWAP",MAGIC_UNSWAP_BACKSLASH_BACKSPACE:"BS_NORM",MAGIC_HOST_NKRO:"NK_ON",MAGIC_UNHOST_NKRO:"NK_OFF",MAGIC_TOGGLE_NKRO:"NK_TOGG",MAGIC_EE_HANDS_LEFT:"EH_LEFT",MAGIC_EE_HANDS_RIGHT:"EH_RGHT",KC_MS_UP:"KC_MS_U",KC_MS_DOWN:"KC_MS_D",KC_MS_LEFT:"KC_MS_L",KC_MS_RIGHT:"KC_MS_R",KC_MS_BTN1:"KC_BTN1",KC_MS_BTN2:"KC_BTN2",KC_MS_BTN3:"KC_BTN3",KC_MS_BTN4:"KC_BTN4",KC_MS_BTN5:"KC_BTN5",KC_MS_WH_UP:"KC_WH_U",KC_MS_WH_DOWN:"KC_WH_D",KC_MS_WH_LEFT:"KC_WH_L",KC_MS_WH_RIGHT:"KC_WH_R",KC_MS_ACCEL0:"KC_ACL0",KC_MS_ACCEL1:"KC_ACL1",KC_MS_ACCEL2:"KC_ACL2",C:"LCTL",S:"LSFT",A:"LALT",G:"LGUI",LCMD:"LGUI",LWIN:"LGUI",LOPT:"LALT",ROPT:"RALT",ALGR:"RALT",RCMD:"RGUI",RWIN:"RGUI",SCMD:"SGUI",SWIN:"SGUI",RGB_MODE_FORWARD:"RGB_MOD",RGB_MODE_REVERSE:"RGB_RMOD",RGB_MODE_PLAIN:"RGB_M_P",RGB_MODE_BREATHE:"RGB_M_B",RGB_MODE_RAINBOW:"RGB_M_R",RGB_MODE_SWIRL:"RGB_M_SW",RGB_MODE_SNAKE:"RGB_M_SN",RGB_MODE_KNIGHT:"RGB_M_K",RGB_MODE_XMAS:"RGB_M_X",RGB_MODE_GRADIENT:"RGB_M_G",RGB_MODE_RGBTEST:"RGB_M_T",KC_TILDE:"KC_TILD",KC_EXCLAIM:"KC_EXLM",KC_DOLLAR:"KC_DLR",KC_PERCENT:"KC_PERC",KC_CIRCUMFLEX:"KC_CIRC",KC_AMPERSAND:"KC_AMPR",KC_ASTERISK:"KC_ASTR",KC_LEFT_PAREN:"KC_LPRN",KC_RIGHT_PAREN:"KC_RPRN",KC_UNDERSCORE:"KC_UNDS",KC_LEFT_CURLY_BRACE:"KC_LCBR",KC_RIGHT_CURLY_BRACE:"KC_RCBR",KC_COLON:"KC_COLN",KC_DOUBLE_QUOTE:"KC_DQUO",KC_DQT:"KC_DQUO",KC_LEFT_ANGLE_BRACKET:"KC_LT",KC_LABK:"KC_LT",KC_RIGHT_ANGLE_BRACKET:"KC_GT",KC_RABK:"KC_GT",KC_QUESTION:"KC_QUES",KC_BSPACE:"KC_BSPC",KC_LBRACKET:"KC_LBRC",KC_RBRACKET:"KC_RBRC",KC_BSLASH:"KC_BSLS",KC_SCOLON:"KC_SCLN",KC_ZKHK:"KC_GRV",KC_CAPSLOCK:"KC_CAPS",KC_CLCK:"KC_CAPS",KC_PSCREEN:"KC_PSCR",KC_SCROLLLOCK:"KC_SCRL",KC_SLCK:"KC_SCRL",KC_PGDOWN:"KC_PGDN",KC_NUMLOCK:"KC_NUM",KC_NLCK:"KC_NUM",KC_NONUS_BSLASH:"KC_NUBS",KC_LOCKING_CAPS:"KC_LCAP",KC_LOCKING_NUM:"KC_LNUM",KC_LOCKING_SCROLL:"KC_LSCR",KC_ALT_ERASE:"KC_ERAS",KC_LCTRL:"KC_LCTL",KC_LSHIFT:"KC_LSFT",KC_RCTRL:"KC_RCTL",KC_RSHIFT:"KC_RSFT",KC_LANG1:"KC_LNG1",KC_LANG2:"KC_LNG2",KC_LANG3:"KC_LNG3",KC_LANG4:"KC_LNG4",KC_LANG5:"KC_LNG5",KC_LANG6:"KC_LNG6",KC_LANG7:"KC_LNG7",KC_LANG8:"KC_LNG8",KC_LANG9:"KC_LNG9",KC_RO:"KC_INT1",KC_KANA:"KC_INT2",KC_JYEN:"KC_INT3",KC_HENK:"KC_INT4",KC_MHEN:"KC_INT5",KC_HAEN:"KC_LNG1",KC_HANJ:"KC_LNG2",RESET:"QK_BOOT",DEBUG:"DB_TOGG",EEPROM_RESET:"EE_CLR",EEP_RST:"EE_CLR",QK_REPEAT_KEY:"QK_REP",QK_ALT_REPEAT_KEY:"QK_AREP",CLICKY_TOGGLE:"CK_TOGG",CLICKY_UP:"CK_UP",CLICKY_DOWN:"CK_DOWN",CLICKY_RESET:"CK_RST",BL_INC:"BL_UP",BL_DEC:"BL_DOWN",DYN_REC_START1:"DM_REC1",DYN_REC_START2:"DM_REC2",DYN_MACRO_PLAY1:"DM_PLY1",DYN_MACRO_PLAY2:"DM_PLY2",DYN_REC_STOP:"DM_RSTP",GRAVE_ESC:"QK_GESC",KC_GESC:"QK_GESC",KC_LCPO:"SC_LCPO",KC_RCPC:"SC_RCPC",KC_LSPO:"SC_LSPO",KC_RSPC:"SC_RSPC",KC_LAPO:"SC_LAPO",KC_RAPC:"SC_RAPC",UNICODE_MODE_FORWARD:"UC_NEXT",UNICODE_MODE_REVERSE:"UC_PREV",UNICODE_MODE_OSX:"UC_MAC",UNICODE_MODE_LNX:"UC_LINX",UNICODE_MODE_WIN:"UC_WIN",UNICODE_MODE_BSD:"UC_BSD",UNICODE_MODE_WINC:"UC_WINC",LAG_SWP:"AG_LSWP",LAG_NRM:"AG_LNRM",RAG_SWP:"AG_RSWP",RAG_NRM:"AG_RNRM",GUI_ON:"GU_ON",GUI_OFF:"GU_OFF",LCG_SWP:"CG_LSWP",LCG_NRM:"CG_LNRM",RCG_SWP:"CG_RSWP",RCG_NRM:"CG_RNRM"};function wr(e,t){return(e&1<m.trim()),a=a.map(m=>{switch(m){case"MOD_LCTL":return 1;case"MOD_RCTL":return 17;case"MOD_LSFT":return 2;case"MOD_RSFT":return 18;case"MOD_LALT":return 4;case"MOD_RALT":return 20;case"MOD_LGUI":return 8;case"MOD_RGUI":return 24;case"MOD_MEH":return 7;case"MOD_HYPR":return 15}}),a=a.reduce((m,C)=>(m|=C,m));let i=[];const l=wr(a,4)?"MOD_R":"MOD_L";wr(a,0)&&i.push(`${l}CTL`),wr(a,1)&&i.push(`${l}SFT`),wr(a,2)&&i.push(`${l}ALT`),wr(a,3)&&i.push(`${l}GUI`),wr(a,0)&&wr(a,1)&&wr(a,2)&&wr(a,3)?i=["MOD_HYPR"]:wr(a,0)&&wr(a,1)&&wr(a,2)&&(i=["MOD_MEH"]),a=i.join("|"),t=`OSM(${a})`;const u=e.lookupKeycode(t);return lC(u,t)}function mQ(e){return e.indexOf("ANY(")===0&&(e=e.slice(4,-1)),e}function Wd(e,t){const n=e.lookupKeycode("text");return Object.assign({},n,{text:t})}function lC(e,t,n){var a={name:e.name,code:t,type:e.type};return n!==void 0&&(a=Object.assign({},a,n)),a}function CQ(e,t,n){const a=n.split(","),i=e.lookupKeycode(`${t}(${a[0]},kc)`);let l=e.lookupKeycode(Lf[a[1]]||a[1]);Nn(l)&&(l=e.lookupKeycode("KC_NO"));let{code:u,layer:m,name:C,type:d}=i;return Object.assign({code:u,layer:m,name:C,type:d,contents:l})}function dQ(e,t,n){let a;if(t=mQ(t),n.count+=1,Lf[t]&&(t=Lf[t]),t.includes("(")){let i,l,u=t.split("("),m=u[0];Lf[m]&&(m=Lf[m]);let C=u[1];if(C=C.split(")")[0],m==="OSM")return fQ(e,t);if(C.includes("KC")){if(m==="LT")return CQ(e,m,C);if(C=Lf[C]||C,a=e.lookupKeycode(C),a===void 0)return n.any+=1,Wd(e,t);let d=lC(a,C);return l=m+"(kc)",a=e.lookupKeycode(l),a===void 0?(n.any+=1,Wd(e,t)):(i=lC(a,l,{contents:d}),i)}return l=m+"(layer)",a=e.lookupKeycode(l),a===void 0?(n.any+=1,Wd(e,t)):(i=lC(a,l,{layer:C}),i)}return t.length<4?(n.warnings.push(`WARNING: Found an unexpected keycode ${rF(t)} on layer ${n.layers} in keymap. Setting to KC_TRNS +}`;var z=pF(function(){return Function(l,w+"return "+b).apply(void 0,u)});if(z.source=b,KF(z))throw z;return z}var NF=IF;const UF=Ba(NF),hh="https://api.qmk.fm";if(Nn(hh))throw"Backend URL has not been specified";const RR="https://keyboards.qmk.fm";if(Nn(RR))throw"Keyboard Metadata URL has not been specified";const fT=`${RR}/v1/keyboards`,DF=`${RR}/v1/keyboard_list.json`,aZ=`${hh}/v1/compile`,kF=`${hh}/v1`,MF=UF(`${fT}/<%= keyboard %>/readme.md`),GF=`${hh}/v1/skeletons`,aK="Preview info.json";function BF(e,t,n,a){for(var i=e.length,l=n+(a?1:-1);a?l--:++l-1:!!i&&a5(e,t,n)>-1}var c5=_5;const iK=Ba(c5);function u5(e){return e&&e.length?e[0]:void 0}var f5=u5,m5=f5;const mL=Ba(m5),C5=["1upkeyboards/sweet16","40percentclub/i75","7skb","8pack","adkb96","aeboards/ext65","ai03/equinox","aleth42","angel17","angel64","atreus","bat43","bear_face","bigseries","boston_meetup","bpiphany/pegasushoof","business_card","cannonkeys/satisfaction75","christmas_tree","claw44","converter/palm_usb","converter/sun_usb","converter/usb_usb","crkbd","delikeeb/vanana","delikeeb/waaffle/rev3","deltasplit75","duck/eagle_viper","duck/octagon","duck/orion","dumbpad","eco","eek","ergo42","ergodash","ergoslab","ergotravel","exclusive/e85","fortitude60","getta25","hadron","handwired/bento","handwired/bluepill","handwired/dactyl_manuform","handwired/onekey","handwired/pill60","handwired/postageboard","handwired/pytest/has_community","handwired/qc60","handwired/splittest","handwired/unk","handwired/xealous","hecomi","helix","helix/pico","helix/pico/back","helix/pico/under","helix/rev2","helix/rev2/back","helix/rev2/sc","helix/rev2/under","id80","ivy","jian","jiran","jisplit89","jones","kbdfans/kbd75","keebio/bdn9","keebio/dsp40","keebio/iris","keebio/kbo5000","keebio/levinson","keebio/nyquist","keebio/quefrency","keebio/rorschach","keebio/sinc","keebio/viterbi","keycapsss/kimiko","keycapsss/plaid_pad","kinesis","kudox","kudox_game","kyria","launchpad","lets_split","lets_split_eh","lfkeyboards/lfk78","lfkeyboards/smk65","lily58","maartenwut/atom47","marksard/rhymestone","maxipad","mechllama/g35","mechlovin/adelais","mechlovin/adelais/rgb_led","mechlovin/adelais/standard_led","mechlovin/delphine","mechlovin/hannah60rgb","mechlovin/hannah65","mechlovin/hannah910","mechmini","meira","melgeek/z70ultra","minidox","montsinger/rebound","mschwingen/modelm","murcielago","naked48","naked60","naked64","namecard2x4","navi10","nomu30","oddball","orthodox","pimentoso/paddino02","pico","pinky","planck","ploopyco/trackball","ploopyco/trackball_mini","ploopyco/trackball_nano","ploopyco/trackball_nano/rev1_001","polilla","preonic","primekb/prime_l","projectkb/alice","ps2avrGB","qwertyydox","ramonimbao/herringbone","redox","rgbkb/pan","rgbkb/pan/rev1","rgbkb/sol","rgbkb/zen","rgbkb/zygomorph","runner3680","s7_elephant","sentraq/s60_x","setta21","sirius/uni660","sofle","spacetime","suihankey","suihankey/split","tkw/stoutgat/v2","treadstone48","tronguylabs/m122_3270","underscore33","unison","uzu42","vitamins_included","whale/sk","yd60mq","ymd75","yosino58","zinc","zvecr/zv48"];function d5(){return C5.reduce((e,t)=>(e[t]=!0,e),{})}function CL(e){let t=lT(e);if(iK(t,"LAYOUT"))return"LAYOUT";if(iK(t,"LAYOUT_all"))return"LAYOUT_all";if(iK(t,"KEYMAP"))return"KEYMAP";let n=t.filter(a=>!a.endsWith("_kc"));return n.length>0?mL(n):mL(t)}function iZ({keyboard:e,keymap:t,layout:n,layers:a}){return Nn(e)||Nn(t)||Nn(n)||Nn(a)}const p5=new Set(["gboards/gergo","gboards/georgi","stenokeyboards/the_uni/pro_micro","stenokeyboards/the_uni/rp_2040","stenokeyboards/the_uni/usb_c"]),h5={async fetchKeyboards({commit:e}){try{const t=await fetch(DF);if(t.ok){const n=await t.json(),a=d5(),i=n.keyboards.filter(l=>Nn(a[l]));return e("setKeyboards",i),i}}catch(t){console.error("Error fetching keyboards",t)}return[]},async loadDefaultKeymap({state:e}){const t=e.keyboard.slice(0,1).toLowerCase(),n=e.keyboard.replace(/\//g,"_");try{const a=await fetch(`keymaps/${t}/${n}_default.json`);if(a.ok)return await a.json()}catch(a){console.error("Error fetching default keymap",a)}},async loadKeymapFromUrl(e,t){return fetch(t).then(async n=>{if(n.ok)return await n.json();console.error("Error fetching keymap from URL",n.statusText)})},async changeKeyboard({state:e,commit:t,dispatch:n},a){const i=this;let l=!1;t("disablePreview"),t("enableCompile"),e.keyboard!==a&&(l=!0),t("setKeyboard",a);const u=e.layout||"";t("setLayout",void 0),await n("loadLayouts");let m=CL(e.layouts);console.info(CL(e.layouts)),u&&!Nn(e.layouts[u])&&(m=u),t("setLayout",m);const C=Nr();return p5.has(a)?C.enableSteno():C.disableSteno(),l&&i.commit("keymap/clear"),Promise.resolve()},async loadLayouts({commit:e,state:t},n){if(!Nn(n))return n.layouts[" "]={layout:[]},new Promise(l=>{let u={keyboards:{}};u.keyboards[t.keyboard]=n,e("setKeyboardMeta",{}),e("processLayouts",u),l(n)});const a=await fetch(`${fT}/${t.keyboard}/info.json`);if(a.ok){const i=await a.json();return e("setKeyboardMeta",i),e("processLayouts",i),a}},saveConfiguratorSettings({state:e}){PG(fR.configuratorSettings,JSON.stringify(e.configuratorSettings))},async changeLanguage({dispatch:e,commit:t},n){this.$i18n.locale=n,t("setCurrentLanguage",n),await e("saveConfiguratorSettings")},async changeOSKeyboardLayout({dispatch:e,state:t,commit:n},a){n("setOSKeyboardLayout",a);const i=Nr();i.updateKeycodeNames(),this.commit("keymap/updateKeycodeNames"),i.changeActive(t.configuratorSettings.iso?"ISO/JIS":"ANSI"),this.commit("tester/setLayout",t.configuratorSettings.iso?"ISO":"ANSI"),await this.dispatch("tester/init"),await e("saveConfiguratorSettings")},async toggleDarkMode({commit:e,state:t,dispatch:n},a){let i=t.configuratorSettings.darkmodeEnabled;a||(i=!i),i?document.getElementsByTagName("html")[0].dataset.theme="dark":document.getElementsByTagName("html")[0].dataset.theme="",e("setDarkmode",i),await n("saveConfiguratorSettings")},async toggleClearLayerDefault({commit:e,state:t,dispatch:n}){let a=t.configuratorSettings.clearLayerDefault;a=!a,e("setClearLayerDefault",a),await n("saveConfiguratorSettings")},async setFavoriteKeyboard({commit:e,dispatch:t},n){e("setFavoriteKeyboard",n),await t("saveConfiguratorSettings")},async setFavoriteColor({commit:e,dispatch:t},n){e("setFavoriteColor",n),await t("saveConfiguratorSettings")},async loadApplicationState({commit:e,dispatch:t}){console.log("loadApplicationState Start"),await t("fetchKeyboards"),await t("loadFavoriteKeyboard"),await t("toggleDarkMode",!0),await t("loadLanguage"),console.log("loadApplicationState End"),e("setAppInitialized",!0)},loadLanguage({state:e}){e.configuratorSettings.language&&this.$i18n.locale!==e.configuratorSettings.language?this.$i18n.locale=e.configuratorSettings.language:e.configuratorSettings.language=this.$i18n.locale},async loadFavoriteKeyboard({dispatch:e,state:t,getters:n,commit:a}){t.configuratorSettings.favoriteKeyboard&&(n.validateKeyboard(t.configuratorSettings.favoriteKeyboard)?(console.info(`setKeyboard ${t.configuratorSettings.favoriteKeyboard}`),a("setKeyboard",t.configuratorSettings.favoriteKeyboard)):(console.info("Invalid keyboard favorited. Removing setting from local storage"),a("setFavoriteKeyboard",""),await e("saveConfiguratorSettings")))},async initKeypressListener({commit:e}){const t=this,n=new Hb.keypress.Listener,a=Nr(),i=XB(t,a.keycodes);n.register_many(i),n.simple_combo("ctrl shift i",()=>{t.state.app.isPreview||e("requestPreview")}),n.simple_combo("ctrl alt n",()=>{t.commit("keymap/nextColorway")}),n.simple_combo("ctrl alt f",()=>{t.commit("keymap/toggleContinuousInput")}),n.simple_combo("ctrl alt s",()=>{e("toggleSettingsPanel")}),e("setKeypressListener",()=>n)},async updateKeymapName({commit:e,rootState:t},n){const a=this;e("setKeymapName",n),n!==""&&!t.keymap.dirty&&a.commit("keymap/setDirty"),n===""&&t.keymap.dirty&&a.commit("keymap/clearDirty")}};function S5(e,t,n,a){var i=-1,l=e==null?0:e.length;for(a&&l&&(n=e[++i]);++i-1}var J5=j5,X5=Sh;function Z5(e,t){var n=this.__data__,a=X5(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}var Y5=Z5,q5=k5,e4=H5,t4=W5,n4=J5,a4=Y5;function nm(e){var t=-1,n=e==null?0:e.length;for(this.clear();++tm))return!1;var d=l.get(e),g=l.get(t);if(d&&g)return d==t&&g==e;var b=-1,P=!0,w=n&xH?new kH:void 0;for(l.set(e,t),l.set(t,e);++bt!==aK)},setKeyboard(e,t){e.keyboard=t},setLegends(e,t){e.legends=t},setCurrentLanguage(e,t){Ze.set(e.configuratorSettings,"language",t)},setFavoriteKeyboard(e,t){e.configuratorSettings.favoriteKeyboard=t},setFavoriteColor(e,t){Ze.set(e.configuratorSettings,"favoriteColor",t)},setKeyboards(e,t){e.keyboards=t,e._keyboards=t},setLayout(e,t){if(e.keyboardMeta&&e.keyboard&&e.keyboardMeta[e.keyboard]){const{layout_aliases:n}=e.keyboardMeta[e.keyboard];if(n&&n[t]){e.layout=n[t];return}}e.layout=t},setKeymapName(e,t){e.keymapName=t.replace(/[\s/]/g,"_").toLowerCase()},setJobID(e,t){e.jobID=t},setEnableDownloads(e){e.enableDownloads=!0},setDisableDownloads(e){e.enableDownloads=!1},setFirmwareFile(e,t){e.firmwareFile=t},setFirmwareBinaryURL(e,t){e.firmwareBinaryURL=t},setFirmwareSourceURL(e,t){e.firmwareSourceURL=t},setFilter(e,t){e.filter=t;let n=e._keyboards.filter(a=>e.filter===""?!0:a.startsWith(e.filter));n.length>0&&(e.keyboards=n)},processLayouts(e,t){if(t||e.isPreview){let n={};return e.isPreview?n=t.keyboards[aK].layouts:t&&t.keyboards&&(n=t.keyboards[e.keyboard].layouts),Xv(n)===0?e.layouts={to_be_defined:[]}:n&&(e.layouts=G7(n,function(a,i,l){return a[l]=i.layout?i.layout:i,a},{})),e.layouts}return{}},setAppInitialized(e,t){e.appInitialized=t},setKeypressListener(e,t){e.keypressListener=t},stopListening(e){e.keypressListener().stop_listening()},startListening(e){e.keypressListener().listen()},resetListener(e){e.keypressListener().reset()},setShowSpinner(e,t){e.showSpinner=t},setSpinnerMsg(e,t){e.spinnerMsg=t},setKeymapSourceURL(e,t){e.keymapSourceURL=t},setMessage(e,t){e.message=t},setSettingsPanel(e,t){e.settingsPanelVisible=t},toggleSettingsPanel(e){e.settingsPanelVisible=!e.settingsPanelVisible},setHasErrors(e){tv.disableCompile(e)},setHasNoErrors(e){tv.enableCompile(e)},setAuthor(e,t){e.author=t},setNotes(e,t){e.notes=t},toggleTutorial(e){e.tutorialEnabled=!e.tutorialEnabled},setDarkmode(e,t){e.configuratorSettings.darkmodeEnabled=t},setOSKeyboardLayout(e,t){e.configuratorSettings.osKeyboardLayout=t},setIso(e,t){e.configuratorSettings.iso=t},setClearLayerDefault(e,t){e.configuratorSettings.clearLayerDefault=t},toggleSnowflakes(e){e.snowflakes=!e.snowflakes},setKeyboardMeta(e,t){e.keyboardMeta=t!=null&&t.keyboards?t.keyboards:{}}},B7={namespaced:!0,state:IG,getters:DG,actions:h5,mutations:tv},x7={name:"dsa-galaxy-class",override:{KC_ESC:"pink",KC_F1:"darker-blue",KC_F2:"darker-blue",KC_F3:"darker-blue",KC_F4:"darker-blue",KC_F5:"pink",KC_F6:"pink",KC_F7:"pink",KC_F8:"pink",KC_F9:"light-blue",KC_F10:"light-blue",KC_F11:"light-blue",KC_F12:"light-blue",KC_PSCR:"purple",KC_SCRL:"purple",KC_PAUS:"purple",KC_GRV:"mod",QK_GESC:"mod",KC_1:"mod",KC_2:"mod",KC_3:"mod",KC_4:"mod",KC_5:"mod",KC_6:"mod",KC_7:"mod",KC_8:"mod",KC_9:"mod",KC_0:"mod",KC_MINS:"mod",KC_EQL:"mod",KC_TAB:"purple",KC_BSLS:"mod",KC_CAPS:"purple",KC_LSFT:"purple",KC_LCTL:"purple",KC_LGUI:"purple",KC_LALT:"purple",KC_SPC:"gray",KC_RALT:"purple",KC_RGUI:"purple",KC_INS:"pink",KC_HOME:"pink",KC_PGUP:"pink",KC_DEL:"pink",KC_END:"pink",KC_PGDN:"pink",KC_UP:"darker-blue",KC_LEFT:"darker-blue",KC_DOWN:"darker-blue",KC_RGHT:"darker-blue",KC_NUM:"mod",KC_PSLS:"mod",KC_PAST:"mod",KC_PMNS:"mod",KC_PPLS:"mod",KC_PENT:"mod",KC_PDOT:"pink",KC_P0:"pink",KC_P1:"light-blue",KC_P2:"light-blue",KC_P3:"light-blue",KC_P4:"light-blue",KC_P5:"light-blue",KC_P6:"light-blue",KC_P7:"light-blue",KC_P8:"light-blue",KC_P9:"light-blue"}},$7={name:"dsa-milkshake",override:{KC_ESC:"esc",KC_BSPC:"backspace",KC_ENT:"enter",KC_RGUI:"os",KC_LGUI:"os",KC_LALT:"alt",KC_RALT:"alt"}},F7=[x7,$7],H7={name:"gmk-8008",override:{KC_ENT:"accent",KC_ESC:"accent",QK_GESC:"accent",KC_PENT:"accent"}},Q7={name:"gmk-9009",override:{KC_ENT:"enter",KC_PENT:"enter",KC_ESC:"esc",QK_GESC:"esc"}},V7={name:"gmk-alter",override:{KC_SPC:"key"}},W7={name:"gmk-analog-dreams",override:{KC_ENT:"enter",KC_PENT:"enter",KC_ESC:"esc",QK_GESC:"esc"}},z7={name:"gmk-ascii"},j7={name:"gmk-bento",override:{KC_ESC:"accent",KC_ENT:"accent",QK_GESC:"accent",KC_PENT:"accent",KC_RALT:"accent",KC_LALT:"accent"}},J7={name:"gmk-bingsu",override:{KC_ENT:"accent",KC_PENT:"accent",KC_ESC:"accent",QK_GESC:"accent"}},X7={name:"gmk-cafe",override:{KC_ENT:"accent",KC_PENT:"accent",KC_ESC:"accent",QK_GESC:"accent"}},Z7={name:"gmk-calm-depths"},Y7={name:"gmk-camping",override:{KC_ENT:"accent",KC_PENT:"accent",KC_ESC:"accent",QK_GESC:"accent"}},q7={name:"gmk-deku",override:{KC_ENT:"accent",KC_PENT:"accent",KC_ESC:"accent",QK_GESC:"accent",KC_UP:"accent",KC_DOWN:"accent",KC_LEFT:"accent",KC_RGHT:"accent"}},e9={name:"gmk-dolch"},t9={name:"gmk-dracula",override:{KC_TAB:"mod2",KC_BSPC:"mod2",KC_LGUI:"mod2",KC_RGUI:"mod2",KC_CAPS:"mod3",KC_ENT:"mod3",KC_PENT:"mod3",KC_LALT:"mod3",KC_RALT:"mod3",KC_LSFT:"mod4",KC_RSFT:"mod4",KC_LCTL:"mod5",KC_RCTL:"mod5",KC_NUM:"mod5","MO(layer)":"mod6",KC_ESC:"accent",QK_GESC:"accent",KC_UP:"accent2",KC_DOWN:"accent3",KC_LEFT:"accent4",KC_RGHT:"accent5",KC_SPC:"accent6",KC_F1:"func",KC_F2:"func",KC_F3:"func",KC_F4:"func",KC_F9:"func",KC_F10:"func",KC_F11:"func",KC_F12:"func",KC_F5:"func2",KC_F6:"func2",KC_F7:"func2",KC_F8:"func2"}},n9={name:"gmk-dualshot",override:{KC_ESC:"mod2",QK_GESC:"mod2",KC_BSPC:"mod2",KC_TAB:"mod3",KC_BSLS:"mod3",KC_CAPS:"mod4",KC_ENT:"mod4",KC_PENT:"mod4",KC_LSFT:"mod5",KC_RSFT:"mod5",KC_UP:"accent",KC_LEFT:"accent2",KC_DOWN:"accent3",KC_RGHT:"accent4"}},a9={name:"gmk-fro-dot-yo",override:{KC_TAB:"blu",KC_BSPC:"rdp",KC_LGUI:"blu",KC_RGUI:"blu",KC_CAPS:"ppl",KC_ENT:"grn",KC_PENT:"grn",KC_LALT:"grn",KC_RALT:"grn",KC_LSFT:"ylw",KC_RSFT:"ylw",KC_LCTL:"rdp",KC_RCTL:"rdp",KC_APP:"ppl",KC_INS:"rdp","MO(layer)":"ppl",KC_ESC:"rdp",QK_GESC:"rdp"}},i9={name:"gmk-grand-prix",override:{KC_ENT:"accent",KC_ESC:"accent"}},r9={name:"gmk-hammerhead-dark",override:{KC_ENT:"accent",KC_PENT:"accent",KC_ESC:"accent",QK_GESC:"accent"}},o9={name:"gmk-hammerhead-light",override:{KC_ENT:"accent",KC_PENT:"accent",KC_ESC:"accent",QK_GESC:"accent"}},l9={name:"gmk-handarbeit-plus",override:{KC_F1:"accent",KC_F2:"accent",KC_F3:"accent",KC_F4:"accent",KC_LBRC:"accent",KC_RBRC:"accent",KC_BSLS:"accent",KC_SCLN:"accent",KC_QUOT:"accent",KC_COMM:"accent",KC_DOT:"accent",KC_SLSH:"accent",KC_F5:"accent2",KC_F6:"accent2",KC_F7:"accent2",KC_F8:"accent2",KC_PPLS:"accent2",KC_F9:"accent3",KC_F10:"accent3",KC_F11:"accent3",KC_F12:"accent3",KC_INS:"accent3",KC_NUM:"accent3",KC_PSLS:"accent3",KC_PAST:"accent3",KC_PMNS:"accent3",KC_DEL:"accent3",KC_F:"accent3",KC_J:"accent3",KC_ENT:"accent3",KC_UP:"accent3",KC_SPC:"accent3",KC_PSCR:"accent4",KC_SCRL:"accent4",KC_PAUS:"accent4",KC_1:"accent5",KC_2:"accent5",KC_3:"accent5",KC_4:"accent5",KC_5:"accent5",KC_6:"accent5",KC_7:"accent5",KC_8:"accent5",KC_9:"accent5",KC_0:"accent5",KC_HOME:"accent5",KC_END:"accent5",KC_DOWN:"accent5",KC_BSPC:"accent6",KC_TAB:"accent6",KC_CAPS:"accent6",KC_LSFT:"accent6",KC_RSFT:"accent6",KC_P1:"accent6",KC_P2:"accent6",KC_P3:"accent6",KC_P4:"accent6",KC_P6:"accent6",KC_P7:"accent6",KC_P8:"accent6",KC_P9:"accent6",KC_LEFT:"accent7",KC_RGHT:"accent7",KC_PENT:"accent8",KC_PDOT:"accent9"}},s9={name:"gmk-hazakura",override:{KC_ENT:"accent",KC_PENT:"accent",KC_ESC:"accent",QK_GESC:"accent",KC_UP:"accent",KC_DOWN:"accent",KC_LEFT:"accent",KC_RGHT:"accent",KC_SPC:"accent"}},_9={name:"gmk-jamon"},c9={name:"gmk-merlin",override:{KC_ESC:"accent",KC_ENT:"accent"}},u9={name:"gmk-metaverse",override:{KC_ESC:"accent",KC_ENT:"accent",KC_F1:"mod",KC_F2:"mod",KC_F3:"mod",KC_F4:"mod",KC_F5:"accent",KC_F6:"accent",KC_F7:"accent",KC_F8:"accent",KC_F9:"mod",KC_F10:"mod",KC_F11:"mod",KC_F12:"mod",KC_LGUI:"accent",KC_RGUI:"accent",KC_LEFT:"accent",KC_RGHT:"accent",KC_DOWN:"accent",KC_UP:"accent",KC_P0:"mod",KC_P1:"mod",KC_P2:"mod",KC_P3:"mod",KC_P4:"mod",KC_P5:"mod",KC_P6:"mod",KC_P7:"mod",KC_P8:"mod",KC_P9:"mod",KC_PDOT:"mod",KC_PENT:"accent"}},f9={name:"gmk-metropolis-base",override:{KC_TAB:"mod2",KC_CAPS:"mod2",KC_BSPC:"mod2",KC_PSCR:"mod2",KC_SCRL:"mod2",KC_PAUS:"mod2",KC_INS:"mod2",KC_HOME:"mod2",KC_PGUP:"mod2",KC_DEL:"mod2",KC_END:"mod2",KC_PGDN:"mod2",KC_NUM:"mod2",KC_PSLS:"mod2",KC_PAST:"mod2",KC_PMNS:"mod2",KC_PPLS:"mod2",KC_PCMM:"mod2",KC_PEQL:"mod2",KC_LSFT:"mod3",KC_LCTL:"mod3",KC_LGUI:"mod3",KC_LALT:"mod3",KC_RALT:"mod3",KC_RGUI:"mod3",KC_APP:"mod3",KC_RCTL:"mod3",KC_RSFT:"mod3",KC_UP:"mod3",KC_LEFT:"mod3",KC_DOWN:"mod3",KC_RGHT:"mod3",KC_ESC:"accent",QK_GESC:"accent",KC_ENT:"accent2",KC_PENT:"accent2","MO(layer)":"accent3"}},m9={name:"gmk-metropolis-midnight",override:{KC_ESC:"accent",QK_GESC:"accent"}},C9={name:"gmk-mizu",override:{KC_ESC:"accent",KC_ENT:"accent",KC_PENT:"accent"}},d9={name:"gmk-nautilus",override:{KC_ENT:"accent",KC_ESC:"accent"}},p9={name:"gmk-nines",override:{KC_ESC:"accent",QK_GESC:"accent",KC_ENT:"accent",KC_PENT:"accent"}},h9={name:"gmk-olivetti",override:{KC_ESC:"accent",KC_ENT:"accent"}},S9={name:"gmk-olivia",override:{KC_SPC:"accent",KC_ENT:"accent",KC_ESC:"accent",KC_F1:"key",KC_F2:"key",KC_F3:"key",KC_F4:"key",KC_F9:"key",KC_F10:"key",KC_F11:"key",KC_F12:"key",KC_LEFT:"accent",KC_RGHT:"accent",KC_DOWN:"accent",KC_UP:"accent"}},K9={name:"gmk-olivia-plus-plus-dark",override:{KC_ESC:"accent",QK_GESC:"accent",KC_ENT:"accent",KC_PENT:"accent"}},v9={name:"gmk-phosphorous",override:{KC_ESC:"accent",QK_GESC:"accent",KC_P:"accent",KC_ENT:"accent",KC_PENT:"accent"}},R9={name:"gmk-plum",override:{KC_ENT:"accent"}},g9={name:"gmk-serika",override:{KC_ESC:"accent",KC_ENT:"accent",KC_PENT:"accent"}},y9={name:"gmk-space-cadet",override:{KC_F1:"mod",KC_F2:"mod",KC_F3:"mod",KC_F4:"mod",KC_F9:"mod",KC_F10:"mod",KC_F11:"mod",KC_F12:"mod"}},L9={name:"gmk-striker",override:{KC_ESC:"accent",KC_ENT:"accent",KC_PENT:"accent",KC_SPC:"accent"}},A9={name:"gmk-terminal",override:{KC_H:"accent",KC_J:"accent",KC_K:"accent",KC_L:"accent",KC_ESC:"accent",KC_ENT:"accent"}},E9={name:"gmk-ta-royal-alpha",override:{KC_ESC:"accent",KC_ENT:"accent",KC_SPC:"accent"}},b9={name:"gmk-vaporwave",override:{KC_ENT:"accent",KC_ESC:"accent"}},T9={name:"gmk-wob"},P9={name:"gmk-yuri",override:{KC_ENT:"accent",KC_ESC:"accent"}},w9=[H7,Q7,V7,W7,z7,j7,J7,X7,Z7,Y7,q7,e9,t9,n9,a9,i9,r9,o9,l9,s9,_9,c9,u9,f9,m9,C9,d9,p9,h9,S9,K9,v9,R9,g9,y9,L9,E9,A9,b9,T9,P9],O9={name:"sa-bliss",override:{KC_ESC:"accent",QK_GESC:"accent",KC_ENT:"accent",KC_PENT:"accent",KC_SPC:"accent",KC_PSCR:"accent",KC_SCRL:"accent",KC_PAUS:"accent",KC_UP:"accent",KC_LEFT:"accent",KC_DOWN:"accent",KC_RGHT:"accent"}},I9={name:"sa-carbon",override:{KC_ESC:"accent",KC_ENT:"accent",KC_F5:"accent",KC_F6:"accent",KC_F7:"accent",KC_F8:"accent",KC_PSCR:"accent",KC_SCRL:"accent",KC_PAUS:"accent",KC_UP:"accent",KC_LEFT:"accent",KC_DOWN:"accent",KC_RGHT:"accent"}},N9={name:"sa-danger-zone",override:{KC_ESC:"accent-red",KC_ENT:"accent-yellow",KC_UP:"key",KC_LEFT:"key",KC_DOWN:"key",KC_RGHT:"key"}},U9={name:"sa-jukebox",override:{KC_ESC:"accent",KC_ENT:"accent"}},D9={name:"sa-modern-selectric",override:{KC_F1:"mod",KC_F2:"mod",KC_F3:"mod",KC_F4:"mod",KC_F9:"mod",KC_F10:"mod",KC_F11:"mod",KC_F12:"mod"}},k9={name:"sa-nantucket-selectric",override:{KC_F1:"mod",KC_F2:"mod",KC_F3:"mod",KC_F4:"mod",KC_F9:"mod",KC_F10:"mod",KC_F11:"mod",KC_F12:"mod",KC_INS:"key",KC_DEL:"key",KC_HOME:"key",KC_END:"key",KC_PGUP:"key",KC_PGDN:"key",KC_P0:"mod",KC_PDOT:"mod"}},M9={name:"sa-oblivion-hagoromo",override:{KC_ESC:"accent",KC_ENT:"accent",KC_PENT:"accent"}},G9={name:"sa-vilebloom",override:{KC_ESC:"accent1",KC_F1:"accent1",KC_F2:"accent1",KC_F3:"accent1",KC_F4:"accent2",KC_F5:"accent3",KC_GRV:"accent1",QK_GESC:"accent1",KC_1:"accent1",KC_2:"accent1",KC_3:"accent1",KC_4:"accent2",KC_5:"accent2",KC_6:"accent3",KC_T:"accent3",KC_F:"accent3",KC_C:"accent3",KC_TAB:"accent1",KC_Q:"accent1",KC_W:"accent1",KC_CAPS:"accent1",KC_A:"accent1",KC_LSFT:"accent1",KC_NUBS:"accent1",KC_LCTL:"accent1",KC_E:"accent2",KC_R:"accent2",KC_S:"accent2",KC_D:"accent2",KC_Z:"accent2",KC_X:"accent2",KC_LGUI:"accent2",KC_LALT:"accent2",KC_P1:"accent3",KC_P5:"accent3",KC_P9:"accent3",KC_PMNS:"accent3",KC_P2:"accent2",KC_P3:"accent2",KC_P6:"accent2",KC_PPLS:"accent2",KC_P0:"accent2",KC_PDOT:"accent1",KC_PENT:"accent1"}},B9=[O9,I9,N9,U9,D9,k9,M9,G9],x9={name:"jtk-suited-assassin",override:{KC_ESC:"accent",QK_GESC:"accent",KC_ENT:"accent",KC_PENT:"accent"}},$9=[x9],F9={name:"kat-hyperfuse",override:{KC_ENT:"accent",KC_PENT:"accent",KC_ESC:"accent",QK_GESC:"accent"}},H9={name:"kat-oasis"},Q9=[F9,H9],V9={name:"mt3-dev-tty",override:{KC_ENT:"accent",KC_ESC:"accent",QK_GESC:"accent",BL_STEP:"mod",SC_RSPC:"mod",SC_LSPO:"mod"}},W9={name:"mt3-dev-tty-teal",override:{BL_STEP:"mod",SC_RSPC:"mod",QK_GESC:"mod",SC_LSPO:"mod"}},z9={name:"mt3-dev-tty-ortho",override:{KC_ENT:"accent",KC_ESC:"accent",QK_GESC:"accent",KC_DEL:"mod",KC_QUOT:"mod",KC_GRV:"mod",BL_STEP:"mod",SC_RSPC:"mod",SC_LSPO:"mod"}},j9={name:"mt3-susuwatari",override:{KC_ENT:"accent-red",KC_ESC:"accent-red",QK_GESC:"accent-red",KC_LALT:"mod-blue",KC_RALT:"mod-blue",KC_LGUI:"mod-blue",KC_RGUI:"mod-blue",KC_LSFT:"mod-green",KC_RSFT:"mod-green",KC_RCTL:"mod-blue",KC_LCTL:"mod-blue",KC_APP:"mod-blue",KC_MENU:"mod-blue",BL_STEP:"mod-blue","MO(layer)":"mod-blue","TG(layer)":"mod-blue","TO(layer)":"mod-blue","TT(layer)":"mod-blue","DF(layer)":"mod-blue","OSL(layer)":"mod-blue",SC_RSPC:"mod-green",SC_LSPO:"mod-green"}},J9={name:"mt3-susuwatari-ortho",override:{KC_ENT:"accent",KC_ESC:"accent",QK_GESC:"accent",KC_DEL:"mod",KC_QUOT:"mod",KC_GRV:"mod",KC_LALT:"mod-blue",KC_RALT:"mod-blue",KC_LGUI:"mod-blue",KC_RGUI:"mod-blue",KC_RCTL:"mod-blue",KC_LCTL:"mod-blue",KC_APP:"mod-blue",KC_UP:"mod-blue",KC_LEFT:"mod-blue",KC_DOWN:"mod-blue",KC_RGHT:"mod-blue",KC_MENU:"mod-blue",BL_STEP:"mod-blue","MO(layer)":"mod-blue","TG(layer)":"mod-blue","TO(layer)":"mod-blue","TT(layer)":"mod-blue","DF(layer)":"mod-blue","OSL(layer)":"mod-blue",SC_RSPC:"mod",SC_LSPO:"mod"}},X9={name:"mt3-lotr-elvish",override:{BL_STEP:"mod",SC_RSPC:"mod",QK_GESC:"mod",SC_LSPO:"mod"}},Z9={name:"mt3-lotr-elvish-rivendell",override:{BL_STEP:"mod",SC_RSPC:"mod",SC_LSPO:"mod",KC_UP:"accent",KC_DOWN:"accent",KC_LEFT:"accent",KC_RGHT:"accent",KC_SPC:"accent",KC_ENT:"accent",QK_GESC:"accent",KC_ESC:"accent"}},Y9={name:"mt3-lotr-elvish-evenstar",override:{BL_STEP:"mod",SC_RSPC:"mod",SC_LSPO:"mod",KC_UP:"accent",KC_DOWN:"accent",KC_LEFT:"accent",KC_RGHT:"accent",KC_SPC:"accent",KC_ENT:"accent",QK_GESC:"accent",KC_ESC:"accent"}},q9={name:"mt3-lotr-elvish-ortho",override:{KC_ENT:"mod",KC_ESC:"mod",QK_GESC:"mod",KC_DEL:"mod",KC_QUOT:"mod",BL_STEP:"mod",SC_RSPC:"mod",KC_GRV:"mod",SC_LSPO:"mod"}},eQ={name:"mt3-lotr-dwarvish",override:{BL_STEP:"mod",SC_RSPC:"mod",QK_GESC:"mod",SC_LSPO:"mod"}},tQ={name:"mt3-lotr-dwarvish-ortho",override:{KC_ENT:"mod",KC_ESC:"mod",QK_GESC:"mod",KC_DEL:"mod",KC_QUOT:"mod",BL_STEP:"mod",SC_RSPC:"mod",KC_GRV:"mod",SC_LSPO:"mod"}},nQ={name:"mt3-lotr-dwarvish-durin",override:{BL_STEP:"mod",SC_RSPC:"mod",SC_LSPO:"mod",KC_UP:"accent",KC_DOWN:"accent",KC_LEFT:"accent",KC_RGHT:"accent",KC_SPC:"accent",KC_ENT:"accent",QK_GESC:"accent",KC_ESC:"accent"}},aQ={name:"mt3-3277",override:{BL_STEP:"mod",SC_RSPC:"mod",QK_GESC:"mod",SC_LSPO:"mod"}},iQ={name:"mt3-3277-ortho",override:{KC_ENT:"mod",KC_ESC:"mod",QK_GESC:"mod",KC_DEL:"mod",KC_QUOT:"mod",BL_STEP:"mod",SC_RSPC:"mod",KC_GRV:"mod",SC_LSPO:"mod"}},rQ={name:"mt3-3277-accent-red",override:{BL_STEP:"mod",SC_RSPC:"mod",SC_LSPO:"mod",KC_UP:"accent-red",KC_DOWN:"accent-red",KC_LEFT:"accent-red",KC_RGHT:"accent-red",KC_SPC:"accent-red",KC_ENT:"accent-red",QK_GESC:"accent-red",KC_ESC:"accent-red"}},oQ=[V9,W9,z9,j9,J9,X9,Z9,Y9,q9,eQ,nQ,tQ,aQ,iQ,rQ],lQ={name:"dcs-midnight",override:{BL_STEP:"mod",SC_RSPC:"mod",SC_LSPO:"mod",KC_ESC:"accent",QK_GESC:"accent",KC_ENT:"accent"}},sQ={name:"dcs-midnight-twilight",override:{BL_STEP:"mod",SC_RSPC:"mod",QK_GESC:"mod",SC_LSPO:"mod"}},_Q=[lQ,sQ],cQ={...["KC_F1","KC_F2","KC_F3","KC_F4","KC_F9","KC_F10","KC_F11","KC_F12","KC_BSLS","KC_P0","KC_P1","KC_P2","KC_P3","KC_P4","KC_P5","KC_P6","KC_P7","KC_P8","KC_P9","KC_PDOT"].reduce((e,t)=>(e[t]=!0,e),{})},uQ={...["KC_ESC","KC_F5","KC_F6","KC_F7","KC_F8","KC_LEFT","KC_RGHT","KC_UP","KC_DOWN","KC_PSCR","KC_SCRL","KC_PAUS","KC_INS","KC_DEL","KC_HOME","KC_END","KC_PGUP","KC_PGDN","KC_LSFT","KC_RSFT","KC_TAB","KC_RGUI","KC_LGUI","KC_LALT","KC_RALT","KC_LCTL","KC_RCTL","KC_ENT","KC_BSPC","KC_NUM","KC_PSLS","KC_PAST","KC_PMNS","KC_PPLS","KC_PENT","KC_PCMM","KC_PEQL","KC_CAPS","KC_LCAP","KC_LNUM","KC_LSCR","MO(layer)","TG(layer)","TO(layer)","TT(layer)","DF(layer)","OSL(layer)"].reduce((e,t)=>(e[t]=!0,e),{})},PL={alphaCodes:cQ,modCodes:uQ,list:[..._Q,...F7,...B9,...w9,...$9,...Q9,...oQ],iconCodes:{KC_UP:"arrow-up",KC_DOWN:"arrow-down",KC_LEFT:"arrow-left",KC_RGHT:"arrow-right",KC_APP:"bars"},platformIcons(e){let t=[];switch(e){case"MacIntel":case"Macintosh":case"MacPPC":case"iPhone":case"iPad":t=["fab","apple"];break;case"Linux i686":case"Linux x86_64":case"Linux armv7l":t=["fab","linux"];break;case"Win32":t=["fab","windows"];break;default:t=void 0}return{KC_LGUI:t,KC_RGUI:t}}},TC={MAX_X:800,KEY_WIDTH:40,KEY_HEIGHT:40,SWAP_KEY_WIDTH:30,SWAP_KEY_HEIGHT:30,KEY_X_SPACING:45,KEY_Y_SPACING:45,SCALE:1},Lf={KC_TRANSPARENT:"KC_TRNS",_______:"KC_TRNS",XXXXXXX:"KC_NO",KC_ENTER:"KC_ENT",KC_ESCAPE:"KC_ESC",KC_SPACE:"KC_SPC",KC_MINUS:"KC_MINS",KC_EQUAL:"KC_EQL",KC_NONUS_HASH:"KC_NUHS",KC_QUOTE:"KC_QUOT",KC_GRAVE:"KC_GRV",KC_COMMA:"KC_COMM",KC_SLASH:"KC_SLSH",KC_BRMD:"KC_SCRL",KC_PAUSE:"KC_PAUS",KC_BRK:"KC_PAUS",KC_BRMU:"KC_PAUS",KC_INSERT:"KC_INS",KC_DELETE:"KC_DEL",KC_RIGHT:"KC_RGHT",KC_KP_SLASH:"KC_PSLS",KC_KP_ASTERISK:"KC_PAST",KC_KP_MINUS:"KC_PMNS",KC_KP_PLUS:"KC_PPLS",KC_KP_ENTER:"KC_PENT",KC_KP_1:"KC_P1",KC_KP_2:"KC_P2",KC_KP_3:"KC_P3",KC_KP_4:"KC_P4",KC_KP_5:"KC_P5",KC_KP_6:"KC_P6",KC_KP_7:"KC_P7",KC_KP_8:"KC_P8",KC_KP_9:"KC_P9",KC_KP_0:"KC_P0",KC_KP_DOT:"KC_PDOT",KC_APPLICATION:"KC_APP",KC_KP_EQUAL:"KC_PEQL",KC_EXECUTE:"KC_EXEC",KC_SELECT:"KC_SLCT",KC_AGAIN:"KC_AGIN",KC_PASTE:"KC_PSTE",KC_KP_COMMA:"KC_PCMM",KC_INTERNATIONAL_1:"KC_INT1",KC_INTERNATIONAL_2:"KC_INT2",KC_INTERNATIONAL_3:"KC_INT3",KC_INTERNATIONAL_4:"KC_INT4",KC_INTERNATIONAL_5:"KC_INT5",KC_INTERNATIONAL_6:"KC_INT6",KC_INTERNATIONAL_7:"KC_INT7",KC_INTERNATIONAL_8:"KC_INT8",KC_INTERNATIONAL_9:"KC_INT9",KC_LANGUAGE_1:"KC_LNG1",KC_LANGUAGE_2:"KC_LNG2",KC_LANGUAGE_3:"KC_LNG3",KC_LANGUAGE_4:"KC_LNG4",KC_LANGUAGE_5:"KC_LNG5",KC_LANGUAGE_6:"KC_LNG6",KC_LANGUAGE_7:"KC_LNG7",KC_LANGUAGE_8:"KC_LNG8",KC_LANGUAGE_9:"KC_LNG9",KC_CLEAR:"KC_CLR",KC_LCMD:"KC_LGUI",KC_LWIN:"KC_LGUI",KC_ALGR:"KC_RALT",KC_RCMD:"KC_RGUI",KC_RWIN:"KC_RGUI",KC_SYSTEM_POWER:"KC_PWR",KC_SYSTEM_SLEEP:"KC_SLEP",KC_SYSTEM_WAKE:"KC_WAKE",KC_AUDIO_MUTE:"KC_MUTE",KC_AUDIO_VOL_UP:"KC_VOLU",KC_AUDIO_VOL_DOWN:"KC_VOLD",KC_MEDIA_NEXT_TRACK:"KC_MNXT",KC_MEDIA_PREV_TRACK:"KC_MPRV",KC_MEDIA_STOP:"KC_MSTP",KC_MEDIA_PLAY_PAUSE:"KC_MPLY",KC_MEDIA_SELECT:"KC_MSEL",KC_MEDIA_EJECT:"KC_EJCT",KC_CALCULATOR:"KC_CALC",KC_MY_COMPUTER:"KC_MYCM",KC_WWW_SEARCH:"KC_WSCH",KC_WWW_HOME:"KC_WHOM",KC_WWW_BACK:"KC_WBAK",KC_WWW_FORWARD:"KC_WFWD",KC_WWW_STOP:"KC_WSTP",KC_WWW_REFRESH:"KC_WREF",KC_WWW_FAVORITES:"KC_WFAV",KC_MEDIA_FAST_FORWARD:"KC_MFFD",KC_MEDIA_REWIND:"KC_MRWD",KC_BRIGHTNESS_UP:"KC_BRIU",KC_BRIGHTNESS_DOWN:"KC_BRID",MAGIC_SWAP_CONTROL_CAPSLOCK:"CL_SWAP",MAGIC_UNSWAP_CONTROL_CAPSLOCK:"CL_NORM",MAGIC_CAPSLOCK_TO_CONTROL:"CL_CTRL",MAGIC_UNCAPSLOCK_TO_CONTROL:"CL_CAPS",MAGIC_SWAP_LCTL_LGUI:"CG_LSWP",MAGIC_UNSWAP_LCTL_LGUI:"CG_LNRM",MAGIC_SWAP_RCTL_RGUI:"CG_RSWP",MAGIC_UNSWAP_RCTL_RGUI:"CG_RNRM",MAGIC_SWAP_CTL_GUI:"CG_SWAP",MAGIC_UNSWAP_CTL_GUI:"CG_NORM",MAGIC_TOGGLE_CTL_GUI:"CG_TOGG",MAGIC_SWAP_LALT_LGUI:"AG_LSWP",MAGIC_UNSWAP_LALT_LGUI:"AG_LNRM",MAGIC_SWAP_RALT_RGUI:"AG_RSWP",MAGIC_UNSWAP_RALT_RGUI:"AG_RNRM",MAGIC_SWAP_ALT_GUI:"AG_SWAP",MAGIC_UNSWAP_ALT_GUI:"AG_NORM",MAGIC_TOGGLE_ALT_GUI:"AG_TOGG",MAGIC_NO_GUI:"GUI_OFF",MAGIC_UNNO_GUI:"GUI_ON",MAGIC_SWAP_GRAVE_ESC:"GE_SWAP",MAGIC_UNSWAP_GRAVE_ESC:"GE_NORM",MAGIC_SWAP_BACKSLASH_BACKSPACE:"BS_SWAP",MAGIC_UNSWAP_BACKSLASH_BACKSPACE:"BS_NORM",MAGIC_HOST_NKRO:"NK_ON",MAGIC_UNHOST_NKRO:"NK_OFF",MAGIC_TOGGLE_NKRO:"NK_TOGG",MAGIC_EE_HANDS_LEFT:"EH_LEFT",MAGIC_EE_HANDS_RIGHT:"EH_RGHT",KC_MS_UP:"KC_MS_U",KC_MS_DOWN:"KC_MS_D",KC_MS_LEFT:"KC_MS_L",KC_MS_RIGHT:"KC_MS_R",KC_MS_BTN1:"KC_BTN1",KC_MS_BTN2:"KC_BTN2",KC_MS_BTN3:"KC_BTN3",KC_MS_BTN4:"KC_BTN4",KC_MS_BTN5:"KC_BTN5",KC_MS_WH_UP:"KC_WH_U",KC_MS_WH_DOWN:"KC_WH_D",KC_MS_WH_LEFT:"KC_WH_L",KC_MS_WH_RIGHT:"KC_WH_R",KC_MS_ACCEL0:"KC_ACL0",KC_MS_ACCEL1:"KC_ACL1",KC_MS_ACCEL2:"KC_ACL2",C:"LCTL",S:"LSFT",A:"LALT",G:"LGUI",LCMD:"LGUI",LWIN:"LGUI",LOPT:"LALT",ROPT:"RALT",ALGR:"RALT",RCMD:"RGUI",RWIN:"RGUI",SCMD:"SGUI",SWIN:"SGUI",RGB_MODE_FORWARD:"RGB_MOD",RGB_MODE_REVERSE:"RGB_RMOD",RGB_MODE_PLAIN:"RGB_M_P",RGB_MODE_BREATHE:"RGB_M_B",RGB_MODE_RAINBOW:"RGB_M_R",RGB_MODE_SWIRL:"RGB_M_SW",RGB_MODE_SNAKE:"RGB_M_SN",RGB_MODE_KNIGHT:"RGB_M_K",RGB_MODE_XMAS:"RGB_M_X",RGB_MODE_GRADIENT:"RGB_M_G",RGB_MODE_RGBTEST:"RGB_M_T",KC_TILDE:"KC_TILD",KC_EXCLAIM:"KC_EXLM",KC_DOLLAR:"KC_DLR",KC_PERCENT:"KC_PERC",KC_CIRCUMFLEX:"KC_CIRC",KC_AMPERSAND:"KC_AMPR",KC_ASTERISK:"KC_ASTR",KC_LEFT_PAREN:"KC_LPRN",KC_RIGHT_PAREN:"KC_RPRN",KC_UNDERSCORE:"KC_UNDS",KC_LEFT_CURLY_BRACE:"KC_LCBR",KC_RIGHT_CURLY_BRACE:"KC_RCBR",KC_COLON:"KC_COLN",KC_DOUBLE_QUOTE:"KC_DQUO",KC_DQT:"KC_DQUO",KC_LEFT_ANGLE_BRACKET:"KC_LT",KC_LABK:"KC_LT",KC_RIGHT_ANGLE_BRACKET:"KC_GT",KC_RABK:"KC_GT",KC_QUESTION:"KC_QUES",KC_BSPACE:"KC_BSPC",KC_LBRACKET:"KC_LBRC",KC_RBRACKET:"KC_RBRC",KC_BSLASH:"KC_BSLS",KC_SCOLON:"KC_SCLN",KC_ZKHK:"KC_GRV",KC_CAPSLOCK:"KC_CAPS",KC_CLCK:"KC_CAPS",KC_PSCREEN:"KC_PSCR",KC_SCROLLLOCK:"KC_SCRL",KC_SLCK:"KC_SCRL",KC_PGDOWN:"KC_PGDN",KC_NUMLOCK:"KC_NUM",KC_NLCK:"KC_NUM",KC_NONUS_BSLASH:"KC_NUBS",KC_LOCKING_CAPS:"KC_LCAP",KC_LOCKING_NUM:"KC_LNUM",KC_LOCKING_SCROLL:"KC_LSCR",KC_ALT_ERASE:"KC_ERAS",KC_LCTRL:"KC_LCTL",KC_LSHIFT:"KC_LSFT",KC_RCTRL:"KC_RCTL",KC_RSHIFT:"KC_RSFT",KC_LANG1:"KC_LNG1",KC_LANG2:"KC_LNG2",KC_LANG3:"KC_LNG3",KC_LANG4:"KC_LNG4",KC_LANG5:"KC_LNG5",KC_LANG6:"KC_LNG6",KC_LANG7:"KC_LNG7",KC_LANG8:"KC_LNG8",KC_LANG9:"KC_LNG9",KC_RO:"KC_INT1",KC_KANA:"KC_INT2",KC_JYEN:"KC_INT3",KC_HENK:"KC_INT4",KC_MHEN:"KC_INT5",KC_HAEN:"KC_LNG1",KC_HANJ:"KC_LNG2",RESET:"QK_BOOT",DEBUG:"DB_TOGG",EEPROM_RESET:"EE_CLR",EEP_RST:"EE_CLR",QK_REPEAT_KEY:"QK_REP",QK_ALT_REPEAT_KEY:"QK_AREP",CLICKY_TOGGLE:"CK_TOGG",CLICKY_UP:"CK_UP",CLICKY_DOWN:"CK_DOWN",CLICKY_RESET:"CK_RST",BL_INC:"BL_UP",BL_DEC:"BL_DOWN",DYN_REC_START1:"DM_REC1",DYN_REC_START2:"DM_REC2",DYN_MACRO_PLAY1:"DM_PLY1",DYN_MACRO_PLAY2:"DM_PLY2",DYN_REC_STOP:"DM_RSTP",GRAVE_ESC:"QK_GESC",KC_GESC:"QK_GESC",KC_LCPO:"SC_LCPO",KC_RCPC:"SC_RCPC",KC_LSPO:"SC_LSPO",KC_RSPC:"SC_RSPC",KC_LAPO:"SC_LAPO",KC_RAPC:"SC_RAPC",UNICODE_MODE_FORWARD:"UC_NEXT",UNICODE_MODE_REVERSE:"UC_PREV",UNICODE_MODE_OSX:"UC_MAC",UNICODE_MODE_LNX:"UC_LINX",UNICODE_MODE_WIN:"UC_WIN",UNICODE_MODE_BSD:"UC_BSD",UNICODE_MODE_WINC:"UC_WINC",LAG_SWP:"AG_LSWP",LAG_NRM:"AG_LNRM",RAG_SWP:"AG_RSWP",RAG_NRM:"AG_RNRM",GUI_ON:"GU_ON",GUI_OFF:"GU_OFF",LCG_SWP:"CG_LSWP",LCG_NRM:"CG_LNRM",RCG_SWP:"CG_RSWP",RCG_NRM:"CG_RNRM"};function wr(e,t){return(e&1<m.trim()),a=a.map(m=>{switch(m){case"MOD_LCTL":return 1;case"MOD_RCTL":return 17;case"MOD_LSFT":return 2;case"MOD_RSFT":return 18;case"MOD_LALT":return 4;case"MOD_RALT":return 20;case"MOD_LGUI":return 8;case"MOD_RGUI":return 24;case"MOD_MEH":return 7;case"MOD_HYPR":return 15}}),a=a.reduce((m,C)=>(m|=C,m));let i=[];const l=wr(a,4)?"MOD_R":"MOD_L";wr(a,0)&&i.push(`${l}CTL`),wr(a,1)&&i.push(`${l}SFT`),wr(a,2)&&i.push(`${l}ALT`),wr(a,3)&&i.push(`${l}GUI`),wr(a,0)&&wr(a,1)&&wr(a,2)&&wr(a,3)?i=["MOD_HYPR"]:wr(a,0)&&wr(a,1)&&wr(a,2)&&(i=["MOD_MEH"]),a=i.join("|"),t=`OSM(${a})`;const u=e.lookupKeycode(t);return lC(u,t)}function mQ(e){return e.indexOf("ANY(")===0&&(e=e.slice(4,-1)),e}function Wd(e,t){const n=e.lookupKeycode("text");return Object.assign({},n,{text:t})}function lC(e,t,n){var a={name:e.name,code:t,type:e.type};return n!==void 0&&(a=Object.assign({},a,n)),a}function CQ(e,t,n){const a=n.split(","),i=e.lookupKeycode(`${t}(${a[0]},kc)`);let l=e.lookupKeycode(Lf[a[1]]||a[1]);Nn(l)&&(l=e.lookupKeycode("KC_NO"));let{code:u,layer:m,name:C,type:d}=i;return Object.assign({code:u,layer:m,name:C,type:d,contents:l})}function dQ(e,t,n){let a;if(t=mQ(t),n.count+=1,Lf[t]&&(t=Lf[t]),t.includes("(")){let i,l,u=t.split("("),m=u[0];Lf[m]&&(m=Lf[m]);let C=u[1];if(C=C.split(")")[0],m==="OSM")return fQ(e,t);if(C.includes("KC")){if(m==="LT")return CQ(e,m,C);if(C=Lf[C]||C,a=e.lookupKeycode(C),a===void 0)return n.any+=1,Wd(e,t);let d=lC(a,C);return l=m+"(kc)",a=e.lookupKeycode(l),a===void 0?(n.any+=1,Wd(e,t)):(i=lC(a,l,{contents:d}),i)}return l=m+"(layer)",a=e.lookupKeycode(l),a===void 0?(n.any+=1,Wd(e,t)):(i=lC(a,l,{layer:C}),i)}return t.length<4?(n.warnings.push(`WARNING: Found an unexpected keycode ${rF(t)} on layer ${n.layers} in keymap. Setting to KC_TRNS `),e.lookupKeycode("KC_TRNS")):(a=e.lookupKeycode(t),a===void 0?(n.any+=1,Wd(e,t)):lC(a,t))}function pQ(e){return Math.floor(Math.random()*e)}const hQ={keymap:[[]],layer:0,dirty:!1,selectedIndex:void 0,selectedContent:!1,defaults:TC,config:Object.assign({},TC),loadingKeymapPromise:void 0,colorways:PL.list,colorwayIndex:pQ(PL.list.length-1),continuousInput:!1,ignoreMod:!1,templates:{keymap:{version:1,documentation:`This file is a QMK Configurator export. You can import this at . It can also be used directly with QMK's source code. To setup your QMK environment check out the tutorial: diff --git a/index.html b/index.html index 8a950e055a..dc58260922 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@ margin-left: -100vh; } - +