1
2
3
|
/*! For license information please see main.319f5538aa7cba9886cf.js.LICENSE.txt */
(self.webpackChunkapp=self.webpackChunkapp||[]).push([[179],{96186:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(93379),o=t.n(r),i=t(7795),a=t.n(i),s=t(90569),c=t.n(s),u=t(3565),l=t.n(u),f=t(19216),y=t.n(f),p=t(44589),d=t.n(p),h=t(49502),m={};m.styleTagTransform=d(),m.setAttributes=l(),m.insert=c().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=y(),o()(h.Z,m);var b=h.Z&&h.Z.locals?h.Z.locals:void 0,v=t(85893);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}var k=["dismissText","classes","onDismiss","children"];function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){j(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function j(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function x(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function w(e){var n,t=e.dismissText,r=void 0===t?"Ok":t,o=e.classes,i=void 0===o?[]:o,a=e.onDismiss,s=e.children,c=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,k);return(0,v.jsxs)("div",A(A({className:[b.dialog].concat((n=i,function(e){if(Array.isArray(e))return x(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,n){if(e){if("string"==typeof e)return x(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?x(e,n):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).join(" ")},c),{},{children:[s,r&&(0,v.jsx)("button",{className:b.button,onClick:a,children:r})]}))}},41051:function(e,n,t){"use strict";var r=t(45697),o=t.n(r),i=t(85893);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var s=["name","className","collection"];function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==a(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var l={brands:"fab",default:"fa",regular:"fa-regular",light:"fa-light",solid:"fas",round:"far"};function f(e){var n=e.name,t=e.className,r=e.collection,o=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,s),a=l[r],f="fa-".concat(n);return(0,i.jsx)("span",function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){u(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({className:[t,a,f].join(" ")},o))}f.propTypes={name:o().string.isRequired,className:o().string,collection:o().string},f.defaultProps={collection:"default",className:""},n.Z=f},62092:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var r=t(41051),o=t(85893);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=["collection","icon","text","children","onClick"];function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){u(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function u(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==i(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){var n=e.collection,t=e.icon,i=e.text,s=e.children,u=e.onClick,l=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,a);return(0,o.jsxs)("button",c(c({onClick:u},l),{},{children:[(0,o.jsx)(r.Z,{collection:n,name:t})," ",i||s]}))}},2968:function(e,n,t){"use strict";t.d(n,{Z:function(){return C}});var r=t(45697),o=t.n(r),i=t(41051),a=t(93379),s=t.n(a),c=t(7795),u=t.n(c),l=t(90569),f=t.n(l),y=t(3565),p=t.n(y),d=t(19216),h=t.n(d),m=t(44589),b=t.n(m),v=t(87617),g={};g.styleTagTransform=b(),g.setAttributes=p(),g.insert=f().bind(null,"head"),g.domAPI=u(),g.insertStyleElement=h(),s()(v.Z,g);var k=v.Z&&v.Z.locals?v.Z.locals:void 0,_=t(85893);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var j=["href","children","external","showExternal"];function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){E(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function E(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==A(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===A(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function O(e){var n=e.href,t=e.children,r=e.external,o=e.showExternal,a=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,j),s=Object.assign({href:n},a,r&&{rel:"noreferrer",target:"_blank"});return(0,_.jsxs)("a",w(w({},s),{},{children:[t,r&&o&&(0,_.jsx)(i.Z,{className:k.icon,name:"arrow-up-right-from-square"})]}))}O.propTypes={href:o().string.isRequired,children:o().oneOfType([o().arrayOf(o().node),o().node]).isRequired,external:o().bool.isRequired,showExternal:o().bool},O.defaultProps={external:!1,showExternal:!0};var C=O},64261:function(e,n,t){"use strict";t.d(n,{X:function(){return h},Z:function(){return d}});var r=t(73935),o=t(67294),i=t(45697),a=t.n(i),s=t(85893);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){y(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function y(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==c(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var p={wrapper:{position:"absolute",top:"0",left:"0",width:"100vw",height:"100vh",backgroundColor:"rgba(104, 123, 162, 0.39)",backdropFilter:"blur(1px)",zIndex:"50",display:"flex",justifyContent:"center",alignItems:"center"},centerOnly:{background:"transparent",backdropFilter:"none",pointerEvents:"none"},content:{display:"block",pointerEvents:"all"}};function d(e){var n=e.onDismiss,t=e.centerOnly,i=void 0!==t&&t,a=e.children,c=(0,o.useRef)(),u=(0,o.useCallback)((function(e){n&&c.current&&e.target.contains(c.current)&&(e.stopPropagation(),n())}),[c,n]),l=i?f(f({},p.wrapper),p.centerOnly):p.wrapper;return r.createPortal((0,s.jsx)("div",{onClick:u,style:l,children:(0,s.jsx)("div",{ref:c,style:p.content,children:a})}),document.getElementById("modal-root"))}function h(){var e,n,t=(e=(0,o.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,n)||function(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=t[0],i=t[1];return[r,(0,o.useCallback)((function(e){(null==e?void 0:e.stopPropagation)&&e.stopPropagation(),i(!0)}),[i]),(0,o.useCallback)((function(e){(null==e?void 0:e.stopPropagation)&&e.stopPropagation(),i(!1)}),[i])]}d.propTypes={onDismiss:a().func}},91829:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=t(67294);function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function i(e){var n,t,i=(n=(0,r.useState)(e),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(n,t)||function(e,n){if(e){if("string"==typeof e)return o(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,n):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],s=i[1];return[a,(0,r.useCallback)((function(){return s((function(e){return!e}))}),[s]),(0,r.useCallback)((function(){return s(!0)}),[s]),(0,r.useCallback)((function(){return s(!1)}),[s])]}},18311:function(e,n,t){"use strict";t.d(n,{Z:function(){return _},v:function(){return g}});var r=t(50361),o=t.n(r),i=t(63105),a=t.n(i),s=t(24350),c=t.n(s),u=t(67294),l=t(95998),f=t(2596),y=t(85893);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function d(){d=function(){return e};var e={},n=Object.prototype,t=n.hasOwnProperty,r=Object.defineProperty||function(e,n,t){e[n]=t.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{c({},"")}catch(e){c=function(e,n,t){return e[n]=t}}function u(e,n,t,o){var i=n&&n.prototype instanceof y?n:y,a=Object.create(i.prototype),s=new O(o||[]);return r(a,"_invoke",{value:j(e,t,s)}),a}function l(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function y(){}function h(){}function m(){}var b={};c(b,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(C([])));g&&g!==n&&t.call(g,i)&&(b=g);var k=m.prototype=y.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(n){c(e,n,(function(e){return this._invoke(n,e)}))}))}function A(e,n){function o(r,i,a,s){var c=l(e[r],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==p(f)&&t.call(f,"__await")?n.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):n.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,t){function r(){return new n((function(n,r){o(e,t,n,r)}))}return i=i?i.then(r,r):r()}})}function j(e,n,t){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(t.method=o,t.arg=i;;){var a=t.delegate;if(a){var s=x(a,t);if(s){if(s===f)continue;return s}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var c=l(e,n,t);if("normal"===c.type){if(r=t.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:t.done}}"throw"===c.type&&(r="completed",t.method="throw",t.arg=c.arg)}}}function x(e,n){var t=n.method,r=e.iterator[t];if(void 0===r)return n.delegate=null,"throw"===t&&e.iterator.return&&(n.method="return",n.arg=void 0,x(e,n),"throw"===n.method)||"return"!==t&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+t+"' method")),f;var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,f;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function w(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function E(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function C(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(t.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=m,r(k,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=c(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===h||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},_(A.prototype),c(A.prototype,a,(function(){return this})),e.AsyncIterator=A,e.async=function(n,t,r,o,i){void 0===i&&(i=Promise);var a=new A(u(n,t,r,o),i);return e.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(k),c(k,s,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&t.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(t,r){return a.type="throw",a.arg=e,n.next=t,r&&(n.method="next",n.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=t.call(i,"catchLoc"),c=t.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,n){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&t.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),f},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),E(t),f}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;E(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,t){return this.delegate={iterator:C(e),resultName:n,nextLoc:t},"next"===this.method&&(this.arg=void 0),f}},e}function h(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,n)||function(e,n){if(e){if("string"==typeof e)return m(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function b(e,n,t,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void t(e)}s.done?n(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){b(i,r,o,a,s,"next",e)}function s(e){b(i,r,o,a,s,"throw",e)}a(void 0)}))}}var g=(0,u.createContext)({keycodes:[],behaviours:[],behaviors:{},behaviorBinds:[],glyphs:[]}),k=function(e){return e.definitions};function _(e){var n=e.children,t=(0,l.v9)(k),r=(0,l.I0)();if((0,u.useEffect)((function(){v(d().mark((function e(){var n,i,s,u,l,f,y,p;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Promise.all([x(),A()]);case 4:n=e.sent,i=h(n,2),s=h(i[0],2),u=s[0],l=s[1],f=i[1],y=o()(f.behaviors),p=o()(f.bindings),u.indexed=c()(u,"code"),p.indexed=c()(p,"code"),p.context={none:p.filter((function(e){return!e.context})),macros:a()(p,{context:"macros"}),encoders:a()(p,{context:"encoders"})},p.byContext={none:c()(p.context.none,"code"),macros:c()(p.context.macros,"code"),encoders:c()(p.context.encoders,"code")},r({type:"DEFINITIONS_SET",definitions:{keycodes:u,behaviours:p,behaviors:y,behaviorBinds:p,glyphs:l}});case 17:case"end":return e.stop()}}),e)})))()}),[t,r]),t)return(0,y.jsx)(g.Provider,{value:t,children:n})}function A(){return j.apply(this,arguments)}function j(){return(j=v(d().mark((function e(){var n,r,o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(t.t.bind(t,95130,23));case 2:return n=e.sent,r=n.behaviorSchemas,o=n.behaviorBindings,e.abrupt("return",{behaviors:r,bindings:o});case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(){return w.apply(this,arguments)}function w(){return(w=v(d().mark((function e(){var n,r,o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.e(3712).then(t.t.bind(t,52779,23));case 2:return n=e.sent,r=n.keycodes,o=n.keycodeGlyphs,e.abrupt("return",[(0,f.G)(r),o]);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},20817:function(e,n,t){"use strict";t.d(n,{S:function(){return s},V:function(){return a}});var r=t(67294),o=t(4803),i=t(85893),a=(0,r.createContext)({layout:[],bindingCount:0,wrapperDimensions:{},wrapperStyle:{}});function s(e){var n=e.layout,t=e.children,s=(0,r.useMemo)((function(){return n.length}),[n.length]),c=(0,r.useMemo)((function(){return(0,o.mY)(n)}),[n]),u=(0,r.useMemo)((function(){return(0,o.fI)(c)}),[c]),l={layout:n,bindingCount:s,wrapperDimensions:c,wrapperStyle:u};return(0,i.jsx)(a.Provider,{value:l,children:t})}},80031:function(e,n,t){"use strict";t.d(n,{Jh:function(){return a},W8:function(){return c},Yo:function(){return l},qM:function(){return i},t6:function(){return u}});var r=t(2968),o=t(85893),i=(0,o.jsx)(r.Z,{external:!0,href:"https://github.com/nickcoutsos/keymap-editor/issues",children:"Keymap Editor Issues"}),a=(0,o.jsx)(r.Z,{external:!0,href:"https://github.com/nickcoutsos/keymap-editor/wiki/Defining-keyboard-layouts",children:"Keymap Editor Wiki: Defining keyboard layouts"}),s=(0,o.jsx)(r.Z,{external:!0,href:"https://nickcoutsos.github.io/keymap-layout-tools/",children:"Keymap Layout Tools - Helper"}),c=(0,o.jsx)(r.Z,{external:!0,href:"https://discord.com/users/115507966555193345",children:"Discord - nickcoutsos#4351"}),u=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"If you are looking for help in getting up and running or want a better understanding of the issue, please feel free to reach out to me:"}),(0,o.jsxs)("ul",{children:[(0,o.jsx)("li",{children:i}),(0,o.jsx)("li",{children:c})]})]}),l=(0,o.jsxs)("p",{children:["For more information about how Keymap Editor layouts are defined, you can read ",a,", and if you need an environment to quickly test changes to a layout try ",s,"."]})},28291:function(e,n,t){"use strict";t.d(n,{F6:function(){return y},md:function(){return p},pR:function(){return c},tY:function(){return d}});var r=t(57557),o=t.n(r),i=t(97168),a=t(62412),s=t(50868),c=function(e){return e.keyboard.keymap.behaviors},u=function(e,n,t){var r=function(e){var n,t,r;return(null===(n=e.properties.compatible)||void 0===n?void 0:n.parsed)||(null===(t=e.properties.compatible)||void 0===t||null===(r=t.raw)||void 0===r?void 0:r.replace(/"/g,""))}(e),o=t[r];return o?Object.keys(o.properties).reduce((function(n,t){var r=o.properties[t],i=e.properties[t];return"phandle-array"===r.type&&i&&n.push(i.parsed),n}),[]):[]},l=(0,i.oM)({name:"behaviors",initialState:[],reducers:{addBehavior:function(e,n){e.push(n.payload.behavior)},updateBehavior:function(e,n){e[n.payload.behaviorIndex]=o()(n.payload.behavior,"params"),(0,a.resolveBehaviorParams)(e)},deleteBehavior:function(e,n){e.splice(n.payload.behaviorIndex,1)}},extraReducers:function(e){e.addCase(s.fD,(0,s.Ie)(u))}}),f=l.actions,y=f.addBehavior,p=f.updateBehavior,d=f.deleteBehavior;n.ZP=l.reducer},2732:function(e,n,t){"use strict";t.d(n,{CG:function(){return f},DP:function(){return a},SD:function(){return d},ij:function(){return u},l3:function(){return y},nJ:function(){return l},pd:function(){return p}});var r=t(97168),o=t(50868);function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var a=function(e){return e.keyboard.keymap.combos},s=(0,r.oM)({name:"combos",initialState:[],reducers:{updateComboBinding:function(e,n){e[n.payload.comboIndex].properties.bindings={parsed:n.payload.bindings}},updateComboKeypositions:function(e,n){e[n.payload.comboIndex].properties["key-positions"]={parsed:n.payload.keyPositions}},createCombo:function(e){e.push({name:"new_combo",labels:[],properties:{bindings:{parsed:[{value:"&trans",params:[]}]},"key-positions":{parsed:[]}}})},renameCombo:function(e,n){e[n.payload.index].name=n.payload.name},deleteCombo:function(e,n){e.splice(n.payload.index,1)},customizeCombo:function(e,n){var t=n.payload,r=t.index,o=t.combo;e[r]=o}},extraReducers:function(e){var n=(0,o.Ie)();e.addCase(o.fD,(function(e,t){var r=t.payload.positionMapping;n(e,t);var o,a=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return i(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==t.return||t.return()}finally{if(c)throw a}}}}(e);try{for(a.s();!(o=a.n()).done;){var s,c,u=o.value.properties;null!==(s=u.layers)&&void 0!==s&&null!==(c=s.parsed)&&void 0!==c&&c.length&&(u.layers.parsed=u.layers.parsed.reduce((function(e,n){var t=r[n];return null!==t&&e.push(t),e}),[]))}}catch(e){a.e(e)}finally{a.f()}}))}}),c=s.actions,u=c.updateComboBinding,l=c.updateComboKeypositions,f=c.createCombo,y=c.renameCombo,p=c.deleteCombo,d=c.customizeCombo;n.ZP=s.reducer},50868:function(e,n,t){"use strict";t.d(n,{Ie:function(){return m},fD:function(){return d}});var r=t(27361),o=t.n(r),i=t(97168),a=t(41696);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(){c=function(){return e};var e={},n=Object.prototype,t=n.hasOwnProperty,r=Object.defineProperty||function(e,n,t){e[n]=t.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{l({},"")}catch(e){l=function(e,n,t){return e[n]=t}}function f(e,n,t,o){var i=n&&n.prototype instanceof d?n:d,a=Object.create(i.prototype),s=new O(o||[]);return r(a,"_invoke",{value:j(e,t,s)}),a}function y(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function d(){}function h(){}function m(){}var b={};l(b,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(C([])));g&&g!==n&&t.call(g,i)&&(b=g);var k=m.prototype=d.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(n){l(e,n,(function(e){return this._invoke(n,e)}))}))}function A(e,n){function o(r,i,a,c){var u=y(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==s(f)&&t.call(f,"__await")?n.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):n.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,t){function r(){return new n((function(n,r){o(e,t,n,r)}))}return i=i?i.then(r,r):r()}})}function j(e,n,t){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(t.method=o,t.arg=i;;){var a=t.delegate;if(a){var s=x(a,t);if(s){if(s===p)continue;return s}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var c=y(e,n,t);if("normal"===c.type){if(r=t.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:t.done}}"throw"===c.type&&(r="completed",t.method="throw",t.arg=c.arg)}}}function x(e,n){var t=n.method,r=e.iterator[t];if(void 0===r)return n.delegate=null,"throw"===t&&e.iterator.return&&(n.method="return",n.arg=void 0,x(e,n),"throw"===n.method)||"return"!==t&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+t+"' method")),p;var o=y(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function w(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function E(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function C(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(t.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=m,r(k,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===h||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},_(A.prototype),l(A.prototype,a,(function(){return this})),e.AsyncIterator=A,e.async=function(n,t,r,o,i){void 0===i&&(i=Promise);var a=new A(f(n,t,r,o),i);return e.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(k),l(k,u,"Generator"),l(k,i,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&t.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(t,r){return a.type="throw",a.arg=e,n.next=t,r&&(n.method="next",n.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=t.call(i,"catchLoc"),c=t.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,n){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&t.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),p},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),E(t),p}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;E(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,t){return this.delegate={iterator:C(e),resultName:n,nextLoc:t},"next"===this.method&&(this.arg=void 0),p}},e}var u=c().mark(b);function l(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=f(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(s)throw i}}}}function f(e,n){if(e){if("string"==typeof e)return y(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?y(e,n):void 0}}function y(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function p(e,n){var t=e.value,r=e.params,i=o()(n,t,{});return(0,a.a)(r,i).reduce((function(e,n,t){return"layer"===n&&e.push(r[t]),e}),[])}var d=(0,i.PH)("layers/indexChanged",(function(e,n,t,r,o){var i=function(e,n,t){var r,o=function(e){if(Array.isArray(e))return y(e)}(r=t.keys())||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||f(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return null===n?o.map((function(n){return n===e?null:n>e?n-1:n})):o.map((function(r){var o=r>e&&r>n,i=r<e&&r<n,a=e<r&&r<n;return r===e?n===t.length?n-1:n:o||i?r:a?r-1:r+1}))}(e,n,t);return{payload:{currentIndex:e,targetIndex:n,sources:r,behaviorSchemas:o,positionMapping:i}}})),h=function(e){return[e.properties.bindings.parsed]};function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return function(n,t){var r,i=t.payload,a=i.sources,s=i.behaviorSchemas,c=i.positionMapping,u=a.behaviours,f=a.defines,y=l(b(n,u,s,e));try{for(y.s();!(r=y.n()).done;){var p,d=r.value,h=o()(f,d.value,d.value);Number.isNaN(Number(h))||(h=Number(h)),d.value=null===(p=c[h])||void 0===p?void 0:p.toString(),void 0===d.value&&(d.value="0",d._isPlaceholder=!0)}}catch(e){y.e(e)}finally{y.f()}}}function b(e,n,t,r){var o,i,a,s,f,y,d,h,m,b,v,g;return c().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:o=l(e),c.prev=1,o.s();case 3:if((i=o.n()).done){c.next=54;break}a=i.value,s=l(r(a,n,t)),c.prev=6,s.s();case 8:if((f=s.n()).done){c.next=44;break}y=f.value,d=l(y),c.prev=11,d.s();case 13:if((h=d.n()).done){c.next=34;break}m=h.value,b=l(p(m,n)),c.prev=16,b.s();case 18:if((v=b.n()).done){c.next=24;break}return g=v.value,c.next=22,g;case 22:c.next=18;break;case 24:c.next=29;break;case 26:c.prev=26,c.t0=c.catch(16),b.e(c.t0);case 29:return c.prev=29,b.f(),c.finish(29);case 32:c.next=13;break;case 34:c.next=39;break;case 36:c.prev=36,c.t1=c.catch(11),d.e(c.t1);case 39:return c.prev=39,d.f(),c.finish(39);case 42:c.next=8;break;case 44:c.next=49;break;case 46:c.prev=46,c.t2=c.catch(6),s.e(c.t2);case 49:return c.prev=49,s.f(),c.finish(49);case 52:c.next=3;break;case 54:c.next=59;break;case 56:c.prev=56,c.t3=c.catch(1),o.e(c.t3);case 59:return c.prev=59,o.f(),c.finish(59);case 62:case"end":return c.stop()}}),u,null,[[1,56,59,62],[6,46,49,52],[11,36,39,42],[16,26,29,32]])}},80736:function(e,n,t){"use strict";t.d(n,{En:function(){return x},Q:function(){return h},QR:function(){return j},UH:function(){return _},V6:function(){return b},WF:function(){return d},Xv:function(){return p},c7:function(){return g},sT:function(){return k},v1:function(){return A},vc:function(){return m},vl:function(){return l},zi:function(){return v}});var r=t(98913),o=t.n(r),i=t(97168),a=t(50868);function s(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(s)throw i}}}}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var u="&trans",l=function(e){return e.keyboard.keymap.layers},f=(0,i.oM)({name:"layers",initialState:[],reducers:{createLayer:function(e,n){e.push({name:"layer_".concat(e.length),labels:[],properties:{bindings:{parsed:o()(n.payload.bindingCount,(function(){return function(){return{value:arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,params:[]}}()}))}}})},updateLayerMetadata:function(e,n){var t=n.payload,r=t.layerIndex,o=t.name,i=t.label;o&&(e[r].name=o),void 0!==i&&(e[r].properties.label={parsed:i})},renameLayer:function(e,n){e[n.payload.index].name=n.payload.name},repositionLayer:function(e,n){var t=n.payload,r=t.currentIndex,o=t.targetIndex;if(r!==o){var i=e[r],a=o>r?o-1:o;e.splice(r,1),e.splice(a,0,i)}},deleteLayer:function(e,n){e.splice(n.payload.index,1)},updateKeyBinding:function(e,n){e[n.payload.layerIndex].properties.bindings.parsed[n.payload.bindIndex]=n.payload.binding},updateSensorBindings:function(e,n){var t=n.payload,r=t.layerIndex,o=t.sensorIndex,i=t.bindings,a=e[r].properties;a["sensor-bindings"]=a["sensor-bindings"]||{parsed:[]},a["sensor-bindings"].parsed[o]=i},rebindTransparentToKeyPress:function(e,n){var t,r=s(e[n.payload.layerIndex].properties.bindings.parsed);try{for(r.s();!(t=r.n()).done;){var o=t.value;"&trans"===o.value&&(o.value="&kp",o.params=[])}}catch(e){r.e(e)}finally{r.f()}},rebindTransparentToNone:function(e,n){var t,r=s(e[n.payload.layerIndex].properties.bindings.parsed);try{for(r.s();!(t=r.n()).done;){var o=t.value;"&trans"===o.value&&(o.value="&none",o.params=[])}}catch(e){r.e(e)}finally{r.f()}},rebindNoneToKeypress:function(e,n){var t,r=s(e[n.payload.layerIndex].properties.bindings.parsed);try{for(r.s();!(t=r.n()).done;){var o=t.value;"&none"===o.value&&(o.value="&kp",o.params=[])}}catch(e){r.e(e)}finally{r.f()}},rebindNoneToTransparent:function(e,n){var t,r=s(e[n.payload.layerIndex].properties.bindings.parsed);try{for(r.s();!(t=r.n()).done;){var o=t.value;"&none"===o.value&&(o.value="&trans",o.params=[])}}catch(e){r.e(e)}finally{r.f()}},rebindEmptyKeypressToTransparent:function(e,n){var t,r=s(e[n.payload.layerIndex].properties.bindings.parsed);try{for(r.s();!(t=r.n()).done;){var o,i=t.value;"&kp"!==i.value||null!==(o=i.params[0])&&void 0!==o&&o.value||(i.value="&trans",i.params=[])}}catch(e){r.e(e)}finally{r.f()}},rebindEmptyKeypressToNone:function(e,n){var t,r=s(e[n.payload.layerIndex].properties.bindings.parsed);try{for(r.s();!(t=r.n()).done;){var o,i=t.value;"&kp"!==i.value||null!==(o=i.params[0])&&void 0!==o&&o.value||(i.value="&none",i.params=[])}}catch(e){r.e(e)}finally{r.f()}}},extraReducers:function(e){e.addCase(a.fD,(0,a.Ie)((function(e){var n;return[e.properties.bindings.parsed,(null===(n=e.properties["sensor-bindings"])||void 0===n?void 0:n.parsed)||[]]})))}}),y=f.actions,p=y.createLayer,d=(y.renameLayer,y.repositionLayer),h=y.deleteLayer,m=y.updateLayerMetadata,b=y.updateKeyBinding,v=y.updateSensorBindings,g=y.rebindTransparentToKeyPress,k=y.rebindTransparentToNone,_=y.rebindNoneToKeypress,A=y.rebindNoneToTransparent,j=y.rebindEmptyKeypressToTransparent,x=y.rebindEmptyKeypressToNone;n.ZP=f.reducer},12736:function(e,n,t){"use strict";t.d(n,{F0:function(){return l},I2:function(){return u},bU:function(){return i},vo:function(){return f},xd:function(){return c}});var r=t(97168),o=t(50868),i=function(e){return e.keyboard.keymap.macros},a=(0,r.oM)({name:"macros",initialState:[],reducers:{addMacro:function(e,n){e.push(n.payload)},deleteMacro:function(e,n){e.splice(n.payload.index,1)},updateMacroBindings:function(e,n){var t=n.payload,r=t.index,o=t.bindings;e[r].properties.bindings.parsed=o},customizeMacroOptions:function(e,n){Object.assign(e[n.payload.macroIndex],n.payload.options)}},extraReducers:function(e){e.addCase(o.fD,(0,o.Ie)())}}),s=a.actions,c=s.addMacro,u=s.deleteMacro,l=s.updateMacroBindings,f=s.customizeMacroOptions;n.ZP=a.reducer},4803:function(e,n,t){"use strict";t.d(n,{eG:function(){return s},fI:function(){return u},mY:function(){return c}});var r=t(26523);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==o(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){return n.scale,e.map((function(e){return(0,r.kn)({x:e.x,y:e.y},{u:e.u||e.w||1,h:e.h||1},{x:e.rx,y:e.ry,a:e.r})}))}function c(e){return e.map((function(e){return(0,r.j4)({x:e.x,y:e.y},{u:e.u||e.w||1,h:e.h||1},{x:e.rx,y:e.ry,a:e.r})})).reduce((function(e,n){var t=e.x,r=e.y,o=n.max;return{x:Math.max(t,o.x),y:Math.max(r,o.y)}}),{x:0,y:0})}function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.scale,r=void 0===t?1:t,o=n.overrides,s=void 0===o?{}:o,u=Array.isArray(e)?c(e):e;return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({width:"".concat(u.x*r,"px"),height:"".concat(u.y*r,"px"),margin:"0 auto",padding:"0 40px 40px"},s)}},69247:function(e,n,t){"use strict";t.d(n,{Ph:function(){return g},oT:function(){return h},zx:function(){return m}});var r=t(58119),o=t(19617),i=t(95998),a=t(85893),s=["children","style"],c=["label","children"],u=["children"];function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function f(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){d(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function d(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==l(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function h(e){var n=e.style,t=void 0===n?{}:n,r=e.children;return(0,a.jsx)("div",{style:p(p({},{height:"38px",lineHeight:"38px"}),t),children:r})}function m(e){var n=e.children,t=e.style,r=void 0===t?{}:t,o=f(e,s);return(0,a.jsx)(h,{style:r,children:(0,a.jsx)("button",p(p({style:{height:"100%"}},o),{},{children:n}))})}var b=window.matchMedia("(prefers-color-scheme: dark)"),v=[0,5,10,20,30,40,50,60,70,80,90].reduce((function(e,n){return e["neutral".concat(n)]="hsl(210, 33%, ".concat(n+15,"%)"),e}),{});function g(e){var n=e.label,t=e.children,s=f(e,c),l=(0,i.v9)((function(e){return e})).theme,y="dark"===l||"system"===l&&b.matches;return(0,a.jsxs)("div",{style:{display:"inline-block",width:"auto"},children:[(0,a.jsx)("label",{style:{display:"block",width:"100%",fontSize:"120%",color:"var(--fg)"},children:n}),(0,a.jsx)(o.ZP,p({styles:{container:function(e,n){return p(p({},e),{},{display:"inline-block"})},menu:function(e){return p(p({},e),{},{width:"max-content",zIndex:10})}},components:{MenuList:function(e){var n=e.children,o=f(e,u);return(0,a.jsxs)(r.c.MenuList,p(p({},o),{},{children:[n,t]}))}},theme:function(e){return p(p({},e),{},{colors:p(p({},e.colors),y?v:{})})},isSearchable:!1},s))]})}v.primary25="hsl(214, 100%, 40%)"},93965:function(e,n,t){"use strict";var r=t(9669),o=t.n(r),i=t(26729),a=t.n(i),s=t(28962);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(){u=function(){return e};var e={},n=Object.prototype,t=n.hasOwnProperty,r=Object.defineProperty||function(e,n,t){e[n]=t.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{l({},"")}catch(e){l=function(e,n,t){return e[n]=t}}function f(e,n,t,o){var i=n&&n.prototype instanceof d?n:d,a=Object.create(i.prototype),s=new O(o||[]);return r(a,"_invoke",{value:j(e,t,s)}),a}function y(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function d(){}function h(){}function m(){}var b={};l(b,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(C([])));g&&g!==n&&t.call(g,i)&&(b=g);var k=m.prototype=d.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(n){l(e,n,(function(e){return this._invoke(n,e)}))}))}function A(e,n){function o(r,i,a,s){var u=y(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==c(f)&&t.call(f,"__await")?n.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):n.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,s)}))}s(u.arg)}var i;r(this,"_invoke",{value:function(e,t){function r(){return new n((function(n,r){o(e,t,n,r)}))}return i=i?i.then(r,r):r()}})}function j(e,n,t){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(t.method=o,t.arg=i;;){var a=t.delegate;if(a){var s=x(a,t);if(s){if(s===p)continue;return s}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var c=y(e,n,t);if("normal"===c.type){if(r=t.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:t.done}}"throw"===c.type&&(r="completed",t.method="throw",t.arg=c.arg)}}}function x(e,n){var t=n.method,r=e.iterator[t];if(void 0===r)return n.delegate=null,"throw"===t&&e.iterator.return&&(n.method="return",n.arg=void 0,x(e,n),"throw"===n.method)||"return"!==t&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+t+"' method")),p;var o=y(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function w(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function E(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function C(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(t.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=m,r(k,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===h||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},_(A.prototype),l(A.prototype,a,(function(){return this})),e.AsyncIterator=A,e.async=function(n,t,r,o,i){void 0===i&&(i=Promise);var a=new A(f(n,t,r,o),i);return e.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(k),l(k,s,"Generator"),l(k,i,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&t.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(t,r){return a.type="throw",a.arg=e,n.next=t,r&&(n.method="next",n.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=t.call(i,"catchLoc"),c=t.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,n){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&t.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),p},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),E(t),p}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;E(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,t){return this.delegate={iterator:C(e),resultName:n,nextLoc:t},"next"===this.method&&(this.arg=void 0),p}},e}function l(e,n,t,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void t(e)}s.done?n(c):Promise.resolve(c).then(r,o)}function f(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){l(i,r,o,a,s,"next",e)}function s(e){l(i,r,o,a,s,"throw",e)}a(void 0)}))}}function y(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}function p(e,n){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},p(e,n)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,n,t){return(n=b(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function b(e){var n=function(e,n){if("object"!==c(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(n)?n:String(n)}var v="".concat(s.ny.replace("http","ws"),"/github/events"),g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(j,e);var n,t,r,i,a,l,b,g,k,_,A=(k=j,_=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=h(k);if(_){var t=h(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===c(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}(this,e)});function j(){var e;!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,j);for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return m(d(e=A.call.apply(A,[this].concat(t))),"token",null),m(d(e),"initializing",!1),m(d(e),"installations",null),m(d(e),"repositories",null),m(d(e),"repoInstallationMap",null),m(d(e),"features",null),m(d(e),"socket",null),e}return n=j,t=[{key:"_request",value:(g=f(u().mark((function e(n){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"string"==typeof n&&(n={url:n}),n.url.startsWith("/")&&(n.url="".concat(s.ny).concat(n.url)),n.headers=Object.assign({},n.headers),this.token&&!n.headers.Authorization&&(n.headers.Authorization="Bearer ".concat(this.token)),e.prev=4,e.next=7,o()(n);case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(4),401===(null===(t=e.t0.response)||void 0===t?void 0:t.status)&&(console.error("Authentication failed."),this.emit("authentication-failed",e.t0.response)),e.t0;case 14:case"end":return e.stop()}}),e,this,[[4,10]])}))),function(e){return g.apply(this,arguments)})},{key:"init",value:function(){var e=this;return this.initializing||(this.initializing=f(u().mark((function n(){var t,r,o,i,a,c;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.initEvents(),t="".concat(s.ny,"/github/installation"),(r=new URLSearchParams(window.location.search)).get("setup_action")&&r.get("installation_id")&&e.beginLoginFlow(),!r.get("blocked")){n.next=7;break}return setTimeout((function(){return e.emit("blocked")})),n.abrupt("return");case 7:if(o=r.get("token"),!window.localStorage.auth_token&&o&&(window.history.replaceState({},null,window.location.pathname),window.localStorage.auth_token=o),!window.localStorage.auth_token){n.next=22;break}return e.token=window.localStorage.auth_token,n.next=13,e._request(t);case 13:i=n.sent,a=i.data,c=a.installations.filter((function(e){return e.suspended_at})),a.installations.length===c.length&&(console.warn("No GitHub app installation found for authenticated user."),e.emit("app-not-installed")),e.username=a.username,e.installations=a.installations,e.repositories=a.repositories,e.repoInstallationMap=a.repoInstallationMap,e.emit("authenticated");case 22:case"end":return n.stop()}}),n)})))()),this.initializing}},{key:"initEvents",value:function(){var e=this,n=[],t=function(t){e.socket.readyState!==window.WebSocket.OPEN?(n.push(t),console.log("buffering websocket message",{readyState:e.socket.readyState},t)):e.socket.send(t)};this.socket=new window.WebSocket(v),this.socket.onopen=function(){console.log(new Date,"connected to console"),function(){for(var t;t=n.shift();)console.log("sending buffered websocket message",t),e.socket.send(t)}(),setInterval((function(){t(JSON.stringify({message:"ping"}))}),2e4)},this.socket.onclose=function(){return console.log(new Date,"disconnected from server")},this.socket.onerror=function(e){return console.error(new Date,e)},this.socket.onmessage=function(n){var t=JSON.parse(n.data);"workflow_run"===t.event&&e.emit("build-update",t.workflow_run)},this.on("authenticated",(function(){var n;null!==(n=e.installations)&&void 0!==n&&n.length&&(e.fetchAvailableFeatures(),t(JSON.stringify({message:"authorize",data:e.token})))}))}},{key:"beginLoginFlow",value:function(){window.localStorage.removeItem("auth_token"),window.location.href="".concat(s.ny,"/github/authorize")}},{key:"beginInstallAppFlow",value:function(){window.location.href="https://github.com/apps/".concat(s.cO,"/installations/new")}},{key:"manageInstallationRepos",value:function(e){var n=this.installations.find((function(n){return n.id===e}));window.location.href=n.html_url}},{key:"isGitHubAuthorized",value:function(){return!!this.token}},{key:"isAppSuspendedForRepoSelection",value:function(){var e,n,t;return(null===(e=this.installations)||void 0===e?void 0:e.length)>0&&(null===(n=this.installations)||void 0===n?void 0:n.every((function(e){return e.suspended_at})))&&(null===(t=this.installations)||void 0===t?void 0:t.some((function(e){return"all"===e.repository_selection})))}},{key:"isAppInstalled",value:function(){var e,n;return(null===(e=this.installations)||void 0===e?void 0:e.length)&&(null===(n=this.repositories)||void 0===n?void 0:n.length)}},{key:"fetchRepoBranches",value:(b=f(u().mark((function e(n){var t,r,o,i;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=encodeURIComponent(this.repoInstallationMap[n.full_name]),r=encodeURIComponent(n.full_name),e.next=4,this._request("/github/installation/".concat(t,"/").concat(r,"/branches"));case 4:return o=e.sent,i=o.data,e.abrupt("return",i);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"fetchBranchKeyboards",value:(l=f(u().mark((function e(n,t){var r,o,i,a;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=encodeURIComponent(this.repoInstallationMap[n.full_name]),o=encodeURIComponent(n.full_name),e.next=4,this._request("/github/installation/".concat(r,"/").concat(o,"/keyboards/").concat(t));case 4:return i=e.sent,a=i.data,e.abrupt("return",a);case 7:case"end":return e.stop()}}),e,this)}))),function(e,n){return l.apply(this,arguments)})},{key:"fetchLayoutAndKeymap",value:(a=f(u().mark((function e(n,t){var r,o,i,a,c,l,f,y,p,d,h,m,b,v,g,k=arguments;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(k.length>2&&void 0!==k[2]?k[2]:{}).keyboard,o=encodeURIComponent(this.repoInstallationMap[n]),i=encodeURIComponent(n),a=new URL("".concat(s.ny,"/github/keyboard-files/").concat(o,"/").concat(i)),c=new URLSearchParams,t&&c.set("branch",t),r&&c.set("keyboard",r),a.search=c.toString(),e.prev=8,e.next=11,this._request(a.toString());case 11:return l=e.sent,f=l.data,y=f.info.layouts,p=f.keymap,d=Object.keys(f.info.layouts)[0],h=p.chosen["zmk,matrix_transform"]?p.chosen["zmk,matrix_transform"].replace(/^&/,""):null,m=y[h]||y[d],b=m.layout,e.abrupt("return",{layoutMetadata:m,layout:b,keymap:p,keyboards:f.keyboards,default:f.defaultKeymap,sensors:f.sensors});case 21:throw e.prev=21,e.t0=e.catch(8),400===(null===(v=e.t0.response)||void 0===v?void 0:v.status)?(console.error("Failed to load keymap and layout from github",e.t0.response.data),this.emit("repo-validation-error",e.t0.response.data)):500===(null===(g=e.t0.response)||void 0===g?void 0:g.status)&&"LayoutGenerationError"===e.t0.response.data.name&&this.emit("layout-generation-failed",e.t0.response.data),e.t0;case 25:case"end":return e.stop()}}),e,this,[[8,21]])}))),function(e,n){return a.apply(this,arguments)})},{key:"fetchAvailableFeatures",value:(i=f(u().mark((function e(){var n,t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isGitHubAuthorized()){e.next=2;break}return e.abrupt("return",{betaFeatures:[]});case 2:return this.features||(this.features=this._request("".concat(s.ny,"/github/features"))),e.next=5,this.features;case 5:return n=e.sent,t=n.data,e.abrupt("return",t);case 8:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"fetchBuildStatus",value:(r=f(u().mark((function e(n,t){var r,o,i,a,c;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=encodeURIComponent(this.repoInstallationMap[n]),o=encodeURIComponent(n),i=new URL("".concat(s.ny,"/github/latest-run/").concat(r,"/").concat(o,"/").concat(encodeURIComponent(t))),e.next=5,this._request(i.toString());case 5:return a=e.sent,c=a.data,e.abrupt("return",c);case 8:case"end":return e.stop()}}),e,this)}))),function(e,n){return r.apply(this,arguments)})},{key:"commitChanges",value:function(e,n,t,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=o.message,a=void 0===i?null:i,c=o.experimentalSettings,u=void 0===c?{}:c,l=o.keyboard,f=encodeURIComponent(this.repoInstallationMap[e]),y=encodeURIComponent(e),p=new URL("".concat(s.ny,"/github/keyboard-files/").concat(f,"/").concat(y,"/").concat(encodeURIComponent(n))),d=u.enableBehaviorEditing,h=new URLSearchParams({enableBehaviorEditing:void 0!==d&&d});return l&&h.set("keyboard",l),p.search=h.toString(),this._request({url:p.toString(),method:"POST",headers:{"Content-Type":"application/json"},data:{keyboard:l,keymap:r,message:a}})}}],t&&y(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),j}(a()),k=new g;n.Z=k},28962:function(e,n,t){"use strict";function r(e){return e&&["1","on","yes","true"].includes(e.toString().toLowerCase())}t.d(n,{IX:function(){return c},XG:function(){return l},cO:function(){return i},k0:function(){return a},mC:function(){return u},ny:function(){return o},qo:function(){return s}});var o="https://zmk-keymap-editor.fly.dev",i="keymap-editor",a=r("true"),s=r("false"),c=r("true"),u=r("true"),l=r("true")},26810:function(e,n,t){"use strict";var r=t(67294),o=t(20745),i=t(95998),a=t(93379),s=t.n(a),c=t(7795),u=t.n(c),l=t(90569),f=t.n(l),y=t(3565),p=t.n(y),d=t(19216),h=t.n(d),m=t(44589),b=t.n(m),v=t(51424),g={};g.styleTagTransform=b(),g.setAttributes=p(),g.insert=f().bind(null,"head"),g.domAPI=u(),g.insertStyleElement=h(),s()(v.Z,g),v.Z&&v.Z.locals&&v.Z.locals,t(81802);var k=t(39087),_={};_.styleTagTransform=b(),_.setAttributes=p(),_.insert=f().bind(null,"head"),_.domAPI=u(),_.insertStyleElement=h(),s()(k.Z,_),k.Z&&k.Z.locals&&k.Z.locals;var A=t(81485),j=t(62092),x=t(39693),w=t.n(x),E=t(50361),O=t.n(E),C=t(63105),S=t.n(C),B=t(27361),P=t.n(B),L=t(41609),I=t.n(L),T=t(24350),D=t.n(T),M=t(95130),N=t(51785),R=t(18311),Z=t(2596),q=t(85893),G=["children"];function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function U(){U=function(){return e};var e={},n=Object.prototype,t=n.hasOwnProperty,r=Object.defineProperty||function(e,n,t){e[n]=t.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{c({},"")}catch(e){c=function(e,n,t){return e[n]=t}}function u(e,n,t,o){var i=n&&n.prototype instanceof y?n:y,a=Object.create(i.prototype),s=new w(o||[]);return r(a,"_invoke",{value:_(e,t,s)}),a}function l(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function y(){}function p(){}function d(){}var h={};c(h,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(E([])));b&&b!==n&&t.call(b,i)&&(h=b);var v=d.prototype=y.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(n){c(e,n,(function(e){return this._invoke(n,e)}))}))}function k(e,n){function o(r,i,a,s){var c=l(e[r],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==z(f)&&t.call(f,"__await")?n.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):n.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,t){function r(){return new n((function(n,r){o(e,t,n,r)}))}return i=i?i.then(r,r):r()}})}function _(e,n,t){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(t.method=o,t.arg=i;;){var a=t.delegate;if(a){var s=A(a,t);if(s){if(s===f)continue;return s}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var c=l(e,n,t);if("normal"===c.type){if(r=t.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:t.done}}"throw"===c.type&&(r="completed",t.method="throw",t.arg=c.arg)}}}function A(e,n){var t=n.method,r=e.iterator[t];if(void 0===r)return n.delegate=null,"throw"===t&&e.iterator.return&&(n.method="return",n.arg=void 0,A(e,n),"throw"===n.method)||"return"!==t&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+t+"' method")),f;var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,f;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function j(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function x(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function E(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(t.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=d,r(v,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:p,configurable:!0}),p.displayName=c(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===p||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(k.prototype),c(k.prototype,a,(function(){return this})),e.AsyncIterator=k,e.async=function(n,t,r,o,i){void 0===i&&(i=Promise);var a=new k(u(n,t,r,o),i);return e.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),c(v,s,"Generator"),c(v,i,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=E,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var n in this)"t"===n.charAt(0)&&t.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(t,r){return a.type="throw",a.arg=e,n.next=t,r&&(n.method="next",n.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=t.call(i,"catchLoc"),c=t.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,n){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&t.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),f},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),x(t),f}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;x(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,t){return this.delegate={iterator:E(e),resultName:n,nextLoc:t},"next"===this.method&&(this.arg=void 0),f}},e}function F(e){return function(e){if(Array.isArray(e))return Q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||W(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=W(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(s)throw i}}}}function K(e,n,t,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void t(e)}s.done?n(c):Promise.resolve(c).then(r,o)}function W(e,n){if(e){if("string"==typeof e)return Q(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Q(e,n):void 0}}function Q(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function J(e){var n,o,i=(n=(0,r.useState)([]),o=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(n,o)||W(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],s=i[1],c=(0,r.useMemo)((function(){return e.headers.reduce((function(e,n){return n in N&&e.push(N[n]),e}),[])}),[e.headers]);return(0,r.useEffect)((function(){var e,n;(e=U().mark((function e(){var n,r,o,i,a;return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],r=Y(c),e.prev=2,r.s();case 4:if((o=r.n()).done){e.next=12;break}return i=o.value,e.next=8,t(34366)("./".concat(i.filename));case 8:a=e.sent,n.push.apply(n,F((0,Z.G)(a.keys)));case 10:e.next=4;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(2),r.e(e.t0);case 17:return e.prev=17,r.f(),e.finish(17);case 20:s(n);case 21:case"end":return e.stop()}}),e,null,[[2,14,17,20]])})),n=function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){K(i,r,o,a,s,"next",e)}function s(e){K(i,r,o,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})()}),[c]),a}var V=function(e){var n=e.children,t=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,G).keymap,o=(0,r.useContext)(R.v),i=o.keycodes,a=o.behaviours,s=o.glyphs,c=(0,r.useContext)(A.J).settings,u=J(t),l=(0,r.useMemo)((function(){var e=window.navigator.platform.startsWith("Mac"),n=window.navigator.platform.startsWith("Win"),t=e?"mac":n&&"win";return(0,Z.j)(s,{unicode:P()(c,"unicodeGlyphs",!0),platform:"auto"!==P()(c,"platformGlyphs","auto")?c.platformGlyphs:t})}),[s,c]),f=(0,r.useMemo)((function(){var e=t.behaviors.map((function(e){return(e=O()(e)).code="&".concat(e.labels[0]),e.compatible=e.properties.compatible.parsed,e}));(0,M.mergeBehaviorOverlays)(e,M.behaviorOverlays);var n=[].concat(F(a),F((e||[]).map((function(e){var n;return{code:"&".concat(e.labels[0]),bind:"&".concat(e.labels[0]),name:e.name,description:'Custom behavior: "'.concat((null===(n=e.properties.label)||void 0===n?void 0:n.raw)||e.name,'"'),params:e.params,context:e.context}}))),F(t.macros.map((function(e){return{code:"&".concat(e.labels[0]),name:e.name,description:"Custom macro",params:[]}}))));return n.indexed=D()(n,"code"),n.context={none:n.filter((function(e){return!e.context})),macros:S()(n,{context:"macros"}),encoders:S()(n,{context:"encoders"})},n.byContext={none:D()(n.context.none,"code"),macros:D()(n.context.macros,"code"),encoders:D()(n.context.encoders,"code")},n}),[a,t.behaviors,t.macros]),y=(0,r.useMemo)((function(){return I()(t)?[]:t.layers.map((function(e,n){return{code:n,description:e.name||"Layer ".concat(n)}}))}),[t]),p=(0,r.useMemo)((function(){return[].concat(F(i.map((function(e){return O()(e)}))),F(u.map((function(e){return O()(e)}))))}),[i,u]),d=(0,r.useMemo)((function(){var e=D()(p,"code");for(var n in l){var t,r=l[n],o=Y(e[n].aliases);try{for(o.s();!(t=o.n()).done;){var i=t.value;e[i].symbol=r.symbol||e[i].symbol,e[i].faIcon=r.faIcon||e[i].faIcon}}catch(e){o.e(e)}finally{o.f()}}for(var a=0,s=["EXCL","AT","HASH","DLLR","PRCNT","CARET","AMPS","STAR","UNDER","PLUS","PIPE","TILDE2","COLON","TILDE","LT","QMARK","CLEAR2","PIPE2","LPAR","RPAR","LBRC","RBRC","DQT","GT"];a<s.length;a++)e[s[a]].modifiers=["LS"];return e}),[p,l]),h=(0,r.useMemo)((function(){return{code:d,behaviours:f.indexed,behavioursByContext:f.byContext,layer:D()(y,"code"),defines:t.defines}}),[d,f,y,t.defines]),m=(0,r.useMemo)((function(){return{behaviour:f,code:p}}),[f,p]),b=(0,r.useMemo)((function(){return function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"none";return e.enum?e.enum.map((function(e){return"object"===z(e)?e:{code:e}})):e.raw?[]:(m[e]||console.error("cannot find target for",e),"behaviour"===e?m.behaviour.context[t]:m[e])}}),[m]),v=(0,r.useMemo)((function(){return[].concat(F(Object.keys(d)),F(Object.keys(t.defines||{})))}),[d,t.defines]);return(0,q.jsx)(A.c.Provider,{value:{getSearchTargets:b,mergedGlyphs:l,sources:h,identifiers:v},children:n})},H=t(45697),X=t.n(H),$={},ee=X().string.isRequired,ne=X().arrayOf(X().shape($));$.value=ee,$.params=ne;var te=X().shape($),re=X().shape({index:X().number,name:X().string,properties:X().shape({bindings:X().shape({parsed:X().arrayOf(te).isRequired}).isRequired,"key-positions":X().shape({parsed:X().arrayOf(X().number).isRequired}).isRequired})}),oe=X().shape({index:X().number,name:X().string,properties:X().shape({bindings:X().shape({parsed:X().arrayOf(te).isRequired}).isRequired,"sensor-bindings":X().shape({parsed:X().arrayOf(te).isRequired})})}),ie=X().shape({layers:X().arrayOf(oe).isRequired,combos:X().arrayOf(re)}),ae=t(95872),se=t(7739),ce=t.n(se);function ue(e){return e.every((function(e){return void 0===e.row&&void 0===e.col}))?["Layout in info.json has no row/col definitions. Generated keymap files will not be nicely formatted."]:[]}var le=t(2024);function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function ye(e){return function(e){if(Array.isArray(e))return pe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return pe(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?pe(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function de(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function he(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==fe(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==fe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===fe(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var me=function(e){return e.name},be=function(e){return e.labels[0]},ve=function(e){var n;return null===(n=e.properties.label)||void 0===n?void 0:n.parsed};function ge(e,n){var t=ce()(e,n);return Object.values(t).filter((function(e){return e.length>1}))}function ke(e){var n=e.layers.map((function(e,n){return{location:"Keymap - Layer #".concat(n," (").concat(e.name,")"),path:"keymap.layers[".concat(n,"]"),name:me(e)}})),t=e.combos.map((function(e,n){return{location:"Combos - Combo #".concat(n," (").concat(e.name,")"),path:"combos[".concat(n,"].name"),name:e.name}})),r=e.macros.map((function(e,n){return{location:"Macros - Macro #".concat(n," (").concat(me(e),")"),path:"macros[".concat(n,"].name"),name:me(e)}})),o=function(e){return e.map((function(e,n){return{location:"Behaviors - Behavior #".concat(n," (").concat(be(e),") - Name"),path:"behaviors[".concat(n,"].name"),name:me(e)}}))}(e.behaviors),i=[].concat(ye(ge(n,"name")),ye(ge(t,"name")),ye(ge(r,"name")),ye(ge(o,"name"))),a=[].concat(ye(n.filter((function(e){return le.includes(e.name)}))),ye(t.filter((function(e){return le.includes(e.name)}))),ye(r.filter((function(e){return le.includes(e.name)}))),ye(o.filter((function(e){return le.includes(e.name)}))));return{duplicates:i,redefined:a,passwordMacros:ye(r.filter((function(e){return n=e.name,[/(^|[\b_])pass(word)?([\b_]|$)/].some((function(e){return n.match(e)}));var n})))}}function _e(e){var n=ge([].concat(e.layers.reduce((function(e,n,t){var r=ve(n);return r&&e.push({location:"Keymap - Layer #".concat(t," (").concat(n.name,")"),path:"keymap.layers[".concat(t,"].label"),label:r}),e}),[]),e.macros.reduce((function(e,n,t){return n.label&&e.push({location:"Macros - Macro #".concat(t," (").concat(ve(n),") - Label"),path:"macros[".concat(t,"].label"),label:ve(n)}),e}),[]),function(e){return e.reduce((function(e,n,t){var r=ve(n),o=be(n);return r&&e.push({location:"Behaviors - Behavior #".concat(t," (").concat(o,") - Label"),path:"behaviors[".concat(t,"].label"),label:r}),e}),[])}(e.behaviors)),"label");return{duplicates:n}}function Ae(e){var n=ce()([].concat(e.macros.map((function(e,n){return{location:"Macros > Macro #".concat(n," (").concat(be(e),")"),path:"macros[".concat(n,"].name"),ref:be(e)}})),function(e){return e.map((function(e,n){return{location:"Behaviors - Behavior #".concat(n," (").concat(be(e),") - Bind"),path:"behaviors[".concat(n,"].bind"),ref:be(e)}}))}(e.behaviors)),"ref");return{duplicates:Object.values(n).reduce((function(e,n){return n.length>1&&e.push(n),e}),[])}}function je(e){var n=[].concat(ye(e.layers.reduce((function(e,n,t){var r,o;return null===(r=n.properties.bindings)||void 0===r||null===(o=r.parsed)||void 0===o||o.forEach((function(r,o){"&reset"===r.value&&e.push({location:"Keymap - Layer #".concat(t," (").concat(n.name,") - Key position ").concat(o),path:"keymap.layers[".concat(t,"].bindings[").concat(o,"]"),name:"&reset"})})),e}),[])),ye(e.macros.reduce((function(e,n,t){return n.properties.bindings.parsed.forEach((function(r,o){"&reset"===r.value&&e.push({location:"Macros - Macro #".concat(t," (").concat(n.name,") - Binding position ").concat(o),path:"keymap.macros[".concat(t,"].properties.bindings[").concat(o,"].parsed"),name:"&reset"})})),e}),[])),ye(e.combos.reduce((function(e,n,t){return n.properties.bindings.parsed.forEach((function(r,o){"&reset"===r.value&&e.push({location:"Combos - Combo #".concat(t," (").concat(n.name,")"),path:"keymap.combos[".concat(t,"].bindings[").concat(o,"]"),name:"&reset"})})),e}),[])),ye(e.behaviors.reduce((function(e,n,t){var r,o;return null===(r=n.properties.bindings)||void 0===r||null===(o=r.parsed)||void 0===o||o.forEach((function(r,o){"&reset"!==r.value&&"&reset"!==r||e.push({location:"Behaviors - Behavior #".concat(t," (").concat(n.name,") - Bind position ").concat(o),path:"keymap.behaviors[".concat(t,"].parsed.bindings[").concat(o,"].parsed"),name:"&reset"})})),e}),[])));return{resetBindings:n}}var xe=t(20817);function we(e){return function(e){if(Array.isArray(e))return Oe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ee(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,n){if(e){if("string"==typeof e)return Oe(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Oe(e,n):void 0}}function Oe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var Ce=(0,r.lazy)((function(){return Promise.all([t.e(2315),t.e(8573),t.e(2584),t.e(8381)]).then(t.bind(t,98381))})),Se=(0,r.lazy)((function(){return Promise.all([t.e(2315),t.e(8573),t.e(2584),t.e(7198)]).then(t.bind(t,57198))})),Be=(0,r.lazy)((function(){return Promise.all([t.e(3712),t.e(2315),t.e(8573),t.e(7326)]).then(t.bind(t,87326))})),Pe=(0,r.lazy)((function(){return Promise.all([t.e(2315),t.e(8573),t.e(5634)]).then(t.bind(t,35634))})),Le=(0,r.lazy)((function(){return t.e(727).then(t.bind(t,727))}));function Ie(e){var n,t,o=e.text,i=e.tabs,a=e.defaultTab,s=e.children,c=(n=(0,r.useState)(a),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(n,t)||Ee(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],l=c[1];return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)("h3",{style:{display:"inline"},children:o}),(0,q.jsx)("ul",{className:ae.Z.editorModeTabs,children:i.map((function(e,n){var t=e.name,r=e.tabClasses,o=void 0===r?[]:r;return(0,q.jsx)("li",{onClick:function(){return l(n)},className:w()([u===n&&ae.Z.activeEditTab].concat(we(o))).join(" "),children:t},n)}))}),(0,q.jsx)(r.Suspense,{children:s[u]})]})}var Te=function(e){return e.keyboard.keymap};function De(e){var n=(0,i.v9)(Te),t=(0,r.useContext)(xe.V).layout,o=(0,r.useMemo)((function(){return function(e,n){return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?de(Object(t),!0).forEach((function(n){he(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({nodeNames:ke(e),nodeLabels:_e(e),nodeReferences:Ae(e),deprecations:je(e)},function(e){return{layoutMissingPositions:ue(e)}}(n))}(n,t)}),[n,t]),a=(0,r.useMemo)((function(){var e=o.nodeNames,n=o.nodeLabels,t=o.nodeReferences,r=o.deprecations,i=o.layoutMissingPositions;return e.duplicates.length+e.redefined.length+e.passwordMacros.length+n.duplicates.length+t.duplicates.length+r.resetBindings.length+i.length}),[o]),s=w()([{name:"layers",component:(0,q.jsx)(Be,{})},{name:"combos",component:(0,q.jsx)(Se,{})},{name:"macros",component:(0,q.jsx)(Pe,{})},{name:(0,q.jsx)("span",{className:ae.Z.beta,children:"behaviors"}),component:(0,q.jsx)(Ce,{})},a>0&&{name:"warnings (".concat(a,")"),tabClasses:[ae.Z.warningTab],component:(0,q.jsx)(Le,{sanityChecks:o})}]);return(0,q.jsx)(V,{keymap:n,children:(0,q.jsx)(Ie,{text:"Editor mode:",tabs:s,defaultTab:0,children:s.map((function(e,n){return(0,q.jsx)(r.Fragment,{children:e.component},n)}))})})}De.propTypes={keymap:ie};var Me=De,Ne=t(41051),Re=t(2746),Ze={};Ze.styleTagTransform=b(),Ze.setAttributes=p(),Ze.insert=f().bind(null,"head"),Ze.domAPI=u(),Ze.insertStyleElement=h(),s()(Re.Z,Ze);var qe=Re.Z&&Re.Z.locals?Re.Z.locals:void 0,Ge="https://github.com/nickcoutsos/keymap-editor";function ze(){return(0,q.jsxs)("div",{className:qe.wrapper,children:[(0,q.jsx)("label",{children:"Need help? Open an issue:"}),(0,q.jsxs)("a",{className:qe.githubLink,target:"_blank",rel:"noreferrer",href:Ge,children:[(0,q.jsx)(Ne.Z,{collection:"brands",name:"github"}),"/nickcoutsos/keymap-editor"]})]})}var Ue=t(96186),Fe=t(64261);function Ye(e){return Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ye(e)}function Ke(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function We(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ke(Object(t),!0).forEach((function(n){Qe(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ke(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Qe(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==Ye(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ye(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Je={description:{fontStyle:"italic",fontSize:"90%"}};function Ve(e){var n=e.settings,t=e.onUpdate,r=e.onClose;function o(e,r){t(We(We({},n),{},Qe({},e,r)))}return(0,q.jsx)(Fe.Z,{onDismiss:r,children:(0,q.jsxs)(Ue.Z,{onDismiss:r,children:[(0,q.jsx)("h1",{children:"Settings"}),(0,q.jsx)("h2",{children:"Keycode glyphs"}),(0,q.jsx)("h3",{children:(0,q.jsxs)("label",{htmlFor:"enable-unicode-glyphs",children:[(0,q.jsx)("input",{id:"enable-unicode-glyphs",type:"checkbox",checked:n.unicodeGlyphs,onChange:function(e){return o("unicodeGlyphs",e.target.checked)}}),"Use Unicode Glyphs"]})}),(0,q.jsxs)("p",{style:Je.description,children:["Use unicode glyphs for visual representations of keycodes like ",(0,q.jsx)("code",{children:"Enter"})," (⮐), ",(0,q.jsx)("code",{children:"Right Arrow"})," (⏵), etc. You can disable this if the symbols don't render correctly."]}),(0,q.jsx)("h3",{children:(0,q.jsxs)("label",{htmlFor:"platform-specific-glyphs",children:["Platform specific glyphs",(0,q.jsxs)("select",{id:"platform-specific-glyphs",value:n.platformGlyphs||"auto",onChange:function(e){return o("platformGlyphs",e.target.value)},children:[(0,q.jsx)("option",{value:"auto",children:"Automatic"}),(0,q.jsx)("option",{value:"win",children:"Windows"}),(0,q.jsx)("option",{value:"mac",children:"macOS"})]})]})}),(0,q.jsxs)("p",{style:Je.description,children:["Render symbols specific to your platform. E.g., render left/right meta key as ",(0,q.jsx)(Ne.Z,{name:"windows fa-brands"})," for Windows, or ⌘ for macOS."]})]})})}Ve.propTypes={settings:X().object.isRequired,onUpdate:X().func.isRequired,onClose:X().func.isRequired},Ve.defaultProps={settings:{}};var He=Ve,Xe=t(94184),$e=t.n(Xe),en=t(13311),nn=t.n(en),tn=t(91829),rn=t(80031);function on(e){return on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(e)}function an(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function sn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?an(Object(t),!0).forEach((function(n){cn(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):an(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function cn(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==on(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==on(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===on(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function un(e){return(0,q.jsx)(Fe.Z,{children:(0,q.jsxs)(Ue.Z,sn(sn({},e),{},{children:[(0,q.jsx)("h2",{children:"This layout was Auto-Generated"}),(0,q.jsx)("p",{children:"Hi there! There wasn't a layout definition to accompany your keymap file, so the keymap editor tried to generate one automatically in a last-ditch effort to help you get into the app."}),(0,q.jsxs)("p",{children:["This layout definition was (or will be) saved when you first save keymap changes with the keymap editor, so remember that if there are any tweaks you'd like to make to improve it you can do so by editing the ",(0,q.jsx)("code",{children:"info.json"})," file."]}),rn.Yo]}))})}un.propTypes={};var ln=un,fn=t(69247);function yn(e){var n=e.onDismiss;return(0,q.jsx)(Fe.Z,{children:(0,q.jsxs)(Ue.Z,{onDismiss:n,children:[(0,q.jsx)("h2",{children:"Could not parse keymap"}),(0,q.jsx)("p",{children:"It looks like some bindings in your keymap are using custom pre-processor macros which isn't supported by the Keymap Editor. These macros make it difficult both to resolve bindings to behaviors and parameters, as well as to generate modified keymap code that is consistent with your original intentions."}),(0,q.jsx)("p",{children:"Please either continue editing your keymap by hand with these helpers or if you would like to use this editor, rewrite the keymap to use ZMK's syntax directly."}),rn.t6]})})}yn.propTypes={onDismiss:X().func.isRequired};var pn=yn;function dn(e){var n=e.onDismiss;return(0,q.jsx)(Fe.Z,{children:(0,q.jsxs)(Ue.Z,{onDismiss:n,children:[(0,q.jsx)("h2",{children:"Could not parse keymap"}),(0,q.jsx)("p",{children:"Something went wrong while trying to parse your keymap. It's hard to say what exactly, because I wasn't expecting this."}),(0,q.jsx)("p",{children:"A common occurrence here is keymaps using a variety of pre-processor macros to define layers/combos/etc."}),rn.t6]})})}dn.propTypes={onDismiss:X().func.isRequired};var hn=dn;function mn(e){var n=e.onDismiss;return(0,q.jsx)(Fe.Z,{children:(0,q.jsxs)(Ue.Z,{onDismiss:n,children:[(0,q.jsx)("h2",{children:"Could not parse Miryoku keymap"}),(0,q.jsx)("p",{children:"It looks like your keyboard is built using Miryoku to manage the configuration and keymap. Parsing and editing keymaps that use this syntax is unsupported by the Keymap Editor."}),(0,q.jsx)("p",{children:"Please either continue editing your keymap by hand with these helpers or if you would like to use this editor, rewrite the keymap to use ZMK's syntax directly."})]})})}mn.propTypes={onDismiss:X().func.isRequired};var bn=mn;function vn(e){var n=e.onDismiss;return(0,q.jsx)(Fe.Z,{children:(0,q.jsxs)(Ue.Z,{onDismiss:n,children:[(0,q.jsx)("h2",{children:"Could not parse keymap"}),(0,q.jsx)("p",{children:"Missing devicetree root node."}),(0,q.jsx)("p",{children:"The keymap editor was unable to find a devicetree root node in your keymap. This means that either something is wrong with the parser or something is wrong with your keymap's syntax."}),(0,q.jsxs)("p",{children:["If you've been using the keymap editor succesfully up to now it's possible that it has introduced an error in the keymap file. Please reach out for support at ",rn.qM,"."]})]})})}vn.propTypes={onDismiss:X().func.isRequired};var gn=vn;function kn(e){var n=e.onDismiss;return(0,q.jsx)(Fe.Z,{children:(0,q.jsxs)(Ue.Z,{onDismiss:n,children:[(0,q.jsx)("h2",{children:"Could not parse keymap"}),(0,q.jsxs)("p",{children:["Detected use of ",(0,q.jsx)("code",{children:"zmk-nodefree-config"})]}),(0,q.jsx)("p",{children:"It looks like your keymap is built using helper functions from the zmk-nodefree-config library to replace devicetree syntax. Parsing and editing keymaps that use this syntax is unsupported by the Keymap Editor."}),(0,q.jsx)("p",{children:"Please either continue editing your keymap by hand with these helpers or if you would like to use this editor, rewrite the keymap to use ZMK's syntax directly."})]})})}kn.propTypes={onDismiss:X().func.isRequired};var _n=kn,An=t(28962),jn=w()([An.IX&&{id:"demo",name:"Demo Keyboard",description:"Play around with a sample keymap"},An.qo&&{id:"local",name:"Local",description:"Hello, me",collapsible:!1},An.k0&&{id:"github",name:"GitHub",description:"Integrate with a GitHub repo, leveraging GitHub actions to compile firmware",collapsible:!0},An.mC&&{id:"clipboard",name:"Clipboard",description:"Read and write keymap data directly from your clipboard",isBeta:!0},An.XG&&window.showOpenFilePicker&&{id:"filesystem",name:"File System",description:"Read and write keymap files on your local filesystem",isBeta:!0}]),xn=localStorage.getItem("selectedSource"),wn=(1===jn.length?jn[0].id:null)||(jn.find((function(e){return e.id===xn}))?xn:jn[0].id),En=t(58723),On={};On.styleTagTransform=b(),On.setAttributes=p(),On.insert=f().bind(null,"head"),On.domAPI=u(),On.insertStyleElement=h(),s()(En.Z,On);var Cn=En.Z&&En.Z.locals?En.Z.locals:void 0;function Sn(e){return Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sn(e)}function Bn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Pn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Bn(Object(t),!0).forEach((function(n){Ln(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Bn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Ln(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==Sn(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Sn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Sn(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function In(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Tn(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Tn(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var Dn=(0,r.lazy)((function(){return t.e(7553).then(t.bind(t,67553))})),Mn=(0,r.lazy)((function(){return t.e(2946).then(t.bind(t,2946))})),Nn=(0,r.lazy)((function(){return t.e(542).then(t.bind(t,80542))})),Rn=(0,r.lazy)((function(){return Promise.all([t.e(3712),t.e(7406),t.e(2025)]).then(t.bind(t,62450))})),Zn=(0,r.lazy)((function(){return Promise.all([t.e(3712),t.e(7406),t.e(6410)]).then(t.bind(t,259))})),qn=function(e){return e.keyboard};function Gn(e){var n=e.onSelect,t=(0,r.useRef)(),o=(0,i.v9)(qn),a=In((0,r.useState)(wn),2),s=a[0],c=a[1],u=In((0,r.useState)({autoGenerated:!1}),2),l=u[0].autoGenerated,f=u[1],y=In((0,r.useState)(null),2),p=y[0],d=y[1],h=(0,r.useCallback)((function(){return d(null)}),[d]),m=In((0,tn.Z)(!0),4),b=m[0],v=m[2],g=m[3],k=(0,r.useCallback)((function(){d({component:ln,onClose:h})}),[d,h]),_=nn()(jn,{id:s});!function(e,n){var t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,r.useEffect)((function(){if(t){var r=function(t){var r=document.body.contains(t.target),o=e.current.contains(t.target);r&&!o&&n()};return document.body.addEventListener("click",r),function(){return document.body.removeEventListener("click",r)}}}),[e,t,n])}(t,g,!0===(null==_?void 0:_.collapsible)&&o&&b);var A=(0,r.useCallback)((function(e){n({source:e.id,keyboard:null}),c(e.id)}),[c,n]),j=(0,r.useCallback)((function(e){var t=e.keymap.warningFlags,r=void 0===t?[]:t,o=(e.layoutMetadata||{}).autoGenerated,i=void 0!==o&&o,a=function(e){switch(e[0]){case"USING_ZMK_NODEFREE_MACROS":return _n;case"USING_MIRYOKU_DTSI":return bn;case"USING_NON_ZMK_MACRO":return pn;case"KEYMAP_PARSING_FAILED":return hn;case"MISSING_ROOT_NODE":return gn;default:return null}}(r);if(a)return d({component:a,onClose:h}),void n({source:s,keyboard:null});f({autoGenerated:i}),n(Pn({source:s},e))}),[n,s,d,h]),x=(0,r.useCallback)((function(e){var t=e.dialog,r=e.dialogProps;d({component:t,dialogProps:r,onClose:h}),n({source:s,keyboard:null})}),[d,h,n,s]);return(0,r.useEffect)((function(){localStorage.setItem("selectedSource",s)}),[s]),(0,q.jsxs)("div",{ref:t,className:$e()(Cn.wrapper,Ln({},Cn.compact,!b)),children:[b&&(0,q.jsx)(fn.Ph,{label:"Source",value:_,options:jn,onChange:A,getOptionLabel:function(e){return e.name},getOptionValue:function(e){return e.id},formatOptionLabel:function(e,n){return"value"===n.context?e.name:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)("div",{children:[e.name,e.isBeta&&(0,q.jsx)(zn,{})]}),(0,q.jsx)("div",{className:Cn.sourceDescription,children:(0,q.jsx)("sub",{children:e.description})})]})}}),(null==p?void 0:p.component)&&(0,q.jsx)(p.component,Pn(Pn({},p.dialogProps||{}),{},{onDismiss:p.onClose})),(0,q.jsxs)(r.Suspense,{children:["local"===s&&(0,q.jsx)(Dn,{onError:x,onSelect:j}),"demo"===s&&(0,q.jsx)(Mn,{onSelect:j}),"github"===s&&(0,q.jsx)(Nn,{expanded:b,onSelect:j,onError:x,onExpand:v}),"clipboard"===s&&(0,q.jsx)(Rn,{onSelect:j,onError:x}),"filesystem"===s&&(0,q.jsx)(Zn,{onSelect:j,onError:x})]}),l&&(0,q.jsxs)(fn.zx,{onClick:k,children:[(0,q.jsx)(Ne.Z,{name:"warning"})," Layout wrong?"]})]})}function zn(){return(0,q.jsx)("span",{style:{color:"white",backgroundColor:"var(--error-highlight)",fontSize:"12px",fontWeight:"bold",padding:"1px 3px",margin:"2px",borderRadius:"6px",verticalAlign:"top"},children:"beta"})}Gn.propTypes={onSelect:X().func.isRequired};var Un=Gn,Fn=t(93965),Yn=t(2968),Kn=t(14084),Wn={};Wn.styleTagTransform=b(),Wn.setAttributes=p(),Wn.insert=f().bind(null,"head"),Wn.domAPI=u(),Wn.insertStyleElement=h(),s()(Kn.Z,Wn);var Qn=Kn.Z&&Kn.Z.locals?Kn.Z.locals:void 0;function Jn(e){return Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jn(e)}function Vn(){Vn=function(){return e};var e={},n=Object.prototype,t=n.hasOwnProperty,r=Object.defineProperty||function(e,n,t){e[n]=t.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{c({},"")}catch(e){c=function(e,n,t){return e[n]=t}}function u(e,n,t,o){var i=n&&n.prototype instanceof y?n:y,a=Object.create(i.prototype),s=new w(o||[]);return r(a,"_invoke",{value:_(e,t,s)}),a}function l(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function y(){}function p(){}function d(){}var h={};c(h,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(E([])));b&&b!==n&&t.call(b,i)&&(h=b);var v=d.prototype=y.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(n){c(e,n,(function(e){return this._invoke(n,e)}))}))}function k(e,n){function o(r,i,a,s){var c=l(e[r],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==Jn(f)&&t.call(f,"__await")?n.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):n.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,t){function r(){return new n((function(n,r){o(e,t,n,r)}))}return i=i?i.then(r,r):r()}})}function _(e,n,t){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(t.method=o,t.arg=i;;){var a=t.delegate;if(a){var s=A(a,t);if(s){if(s===f)continue;return s}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var c=l(e,n,t);if("normal"===c.type){if(r=t.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:t.done}}"throw"===c.type&&(r="completed",t.method="throw",t.arg=c.arg)}}}function A(e,n){var t=n.method,r=e.iterator[t];if(void 0===r)return n.delegate=null,"throw"===t&&e.iterator.return&&(n.method="return",n.arg=void 0,A(e,n),"throw"===n.method)||"return"!==t&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+t+"' method")),f;var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,f;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function j(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function x(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function E(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(t.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=d,r(v,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:p,configurable:!0}),p.displayName=c(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===p||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(k.prototype),c(k.prototype,a,(function(){return this})),e.AsyncIterator=k,e.async=function(n,t,r,o,i){void 0===i&&(i=Promise);var a=new k(u(n,t,r,o),i);return e.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),c(v,s,"Generator"),c(v,i,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=E,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var n in this)"t"===n.charAt(0)&&t.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(t,r){return a.type="throw",a.arg=e,n.next=t,r&&(n.method="next",n.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=t.call(i,"catchLoc"),c=t.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,n){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&t.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),f},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),x(t),f}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;x(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,t){return this.delegate={iterator:E(e),resultName:n,nextLoc:t},"next"===this.method&&(this.arg=void 0),f}},e}function Hn(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Xn(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Xn(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function $n(e,n,t,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void t(e)}s.done?n(c):Promise.resolve(c).then(r,o)}function et(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){$n(i,r,o,a,s,"next",e)}function s(e){$n(i,r,o,a,s,"throw",e)}a(void 0)}))}}function nt(e){return" ".concat(e.fileName,":").concat(e.lineNumber,":").concat(e.columnNumber)}var tt=(0,q.jsx)(Yn.Z,{external:!0,href:"https://github.com/nickcoutsos/keymap-editor/issues/new",children:"new issue"});function rt(e,n){return ot.apply(this,arguments)}function ot(){return(ot=et(Vn().mark((function e(n,t){var r,o,i;return Vn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(An.ny,"/v2/events/client-errors"),o=JSON.stringify({error:n.toString(),stacktrace:t}),e.next=4,fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:o});case 4:(i=e.sent).ok||console.error("Failed to submit error report",i);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function it(e){var n=e.error,o=Hn((0,r.useState)([]),2),i=o[0],a=o[1],s=Hn((0,r.useState)(""),2),c=s[0],u=s[1],l=Hn((0,r.useState)(!1),2),f=l[0],y=l[1];return(0,r.useEffect)((function(){function e(){return(e=et(Vn().mark((function e(){var r,o;return Vn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.e(401).then(t.t.bind(t,70401,23));case 2:return r=e.sent,e.next=5,r.fromError(n);case 5:o=e.sent,a(o),rt(n,o);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[a,n]),(0,r.useEffect)((function(){u(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"\n".concat(e.name,"\n\n").concat(e.message,"\n\n").concat(n.map(nt).join("\n"),"\n").trim()}(n,i))}),[n,i]),(0,r.useEffect)((function(){f&&setTimeout((function(){y(!1)}),3e3)}),[f,y]),(0,q.jsx)(Fe.Z,{children:(0,q.jsxs)(Ue.Z,{dismissText:!1,style:{maxWidth:"700px"},children:[(0,q.jsx)("h2",{children:"Unexpected error"}),(0,q.jsxs)("p",{children:["Something unexpected happened and the keymap editor app cannot recover. Please consider taking a moment to open a ",tt,"with the details below to help me investigate and improve the app."]}),(0,q.jsxs)("div",{className:Qn.stackTrace,children:[(0,q.jsx)("pre",{children:c}),(0,q.jsx)(j.Z,{icon:"copy",title:"Copy error text",className:Qn.button,onClick:function(){var e="".concat("```","\n").concat(c,"\n").concat("```");navigator.clipboard.writeText(e).then((function(){return y(!0)}))}}),f&&(0,q.jsx)("div",{className:Qn.copyMessage,children:"Copied!"})]})]})})}it.propTypes={error:X().instanceOf(Error).isRequired};var at=it;function st(e){return st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},st(e)}function ct(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==st(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==st(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===st(o)?o:String(o)),r)}var o}function ut(e,n){return ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},ut(e,n)}function lt(e){return lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lt(e)}var ft=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&ut(e,n)}(s,e);var n,t,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=lt(o);if(i){var t=lt(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===st(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(e){var n;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,s),(n=a.call(this,e)).state={error:null},n}return n=s,r=[{key:"getDerivedStateFromError",value:function(e){return{error:e}}}],(t=[{key:"render",value:function(){var e=this.props.children,n=this.state.error;return n?(0,q.jsx)(at,{error:n}):e}}])&&ct(n.prototype,t),r&&ct(n,r),Object.defineProperty(n,"prototype",{writable:!1}),s}(r.Component);function yt(e){var n=e.onDismiss;return(0,q.jsx)(Fe.Z,{children:(0,q.jsxs)(Ue.Z,{onDismiss:n,children:[(0,q.jsx)("h2",{children:"Failed to save keymap changes"}),(0,q.jsx)("p",{children:"Sorry, an unexpected error occurred while trying to save your keymap."}),(0,q.jsx)("p",{children:"Please try again or raise an issue if the problem persists and I'll try to work it out with you. Seriously I can only get this right if I know what's wrong, and in some cases that comes down to people using this editor in more advanced ways than I myself have."}),(0,q.jsx)("p",{children:rn.qM})]})})}yt.propTypes={onDismiss:X().func.isRequired};var pt=yt;function dt(e){return dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dt(e)}var ht=["source","layout","keymap","sensors"];function mt(){mt=function(){return e};var e={},n=Object.prototype,t=n.hasOwnProperty,r=Object.defineProperty||function(e,n,t){e[n]=t.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{c({},"")}catch(e){c=function(e,n,t){return e[n]=t}}function u(e,n,t,o){var i=n&&n.prototype instanceof y?n:y,a=Object.create(i.prototype),s=new w(o||[]);return r(a,"_invoke",{value:_(e,t,s)}),a}function l(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function y(){}function p(){}function d(){}var h={};c(h,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(E([])));b&&b!==n&&t.call(b,i)&&(h=b);var v=d.prototype=y.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(n){c(e,n,(function(e){return this._invoke(n,e)}))}))}function k(e,n){function o(r,i,a,s){var c=l(e[r],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==dt(f)&&t.call(f,"__await")?n.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):n.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,t){function r(){return new n((function(n,r){o(e,t,n,r)}))}return i=i?i.then(r,r):r()}})}function _(e,n,t){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(t.method=o,t.arg=i;;){var a=t.delegate;if(a){var s=A(a,t);if(s){if(s===f)continue;return s}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var c=l(e,n,t);if("normal"===c.type){if(r=t.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:t.done}}"throw"===c.type&&(r="completed",t.method="throw",t.arg=c.arg)}}}function A(e,n){var t=n.method,r=e.iterator[t];if(void 0===r)return n.delegate=null,"throw"===t&&e.iterator.return&&(n.method="return",n.arg=void 0,A(e,n),"throw"===n.method)||"return"!==t&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+t+"' method")),f;var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,f;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function j(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function x(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function E(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(t.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=d,r(v,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:p,configurable:!0}),p.displayName=c(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===p||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(k.prototype),c(k.prototype,a,(function(){return this})),e.AsyncIterator=k,e.async=function(n,t,r,o,i){void 0===i&&(i=Promise);var a=new k(u(n,t,r,o),i);return e.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),c(v,s,"Generator"),c(v,i,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=E,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var n in this)"t"===n.charAt(0)&&t.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(t,r){return a.type="throw",a.arg=e,n.next=t,r&&(n.method="next",n.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=t.call(i,"catchLoc"),c=t.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,n){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&t.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),f},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),x(t),f}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;x(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,t){return this.delegate={iterator:E(e),resultName:n,nextLoc:t},"next"===this.method&&(this.arg=void 0),f}},e}function bt(e,n,t,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void t(e)}s.done?n(c):Promise.resolve(c).then(r,o)}var vt=function(){var e=(0,i.v9)((function(e){return e})),n=(0,i.I0)(),t=e.sourceOther,o=e.keyboard,a=e.saveError,s=e.theme,c=e.settingsVisible,u=e.experimentalSettings;(0,r.useEffect)((function(){var e;if(null!=t&&t.github)return(e=mt().mark((function e(){var n,o,i;return mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.github,o=n.repository,i=n.branch,e.t0=r,e.next=4,Fn.Z.fetchBuildStatus(o,i);case 4:e.t1=e.sent,(0,e.t0)(e.t1);case 6:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){bt(i,r,o,a,s,"next",e)}function s(e){bt(i,r,o,a,s,"throw",e)}a(void 0)}))})(),Fn.Z.on("build-update",r),function(){return Fn.Z.off("build-update",r)};function r(e){e.head_branch===t.github.branch&&n({type:"GITHUB_BUILD_UPDATE",build:e})}n({type:"GITHUB_BUILD_UPDATE",build:null})}),[t,n]);var l=(0,r.useCallback)((function(e){var t=e.source,r=e.layout,o=e.keymap,i=e.sensors,a=void 0===i?[]:i,s=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,ht);n(o?{type:"SELECT_KEYBOARD",source:t,sourceOther:s,layout:r,keymap:o,sensors:a}:{type:"CLEAR_KEYBOARD_SELECTION"})}),[n]),f=(0,r.useCallback)((function(e){n({type:"SETTINGS_UPDATE",settings:e})}),[n]),y=(0,r.useCallback)((function(){return n({type:"SETTINGS_OPEN"})}),[n]);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(ft,{children:(0,q.jsxs)(A.J.Provider,{value:{settings:u,openSettingsDialog:y},children:[(0,q.jsx)(Un,{onSelect:l}),(0,q.jsxs)("div",{id:"settings-bar",children:[(0,q.jsx)(j.Z,{id:"light-mode",title:"Toggle theme",icon:{light:"sun",dark:"moon",system:"circle-half-stroke"}[s]||"circle-half-stroke",onClick:function(){return n({type:"CYCLE_THEME"})}}),(0,q.jsx)(j.Z,{id:"settings-button",icon:"cog",onClick:y}),c&&(0,q.jsx)(He,{settings:u,onUpdate:f,onClose:function(){return n({type:"SETTINGS_CLOSE"})}})]}),(0,q.jsxs)(R.Z,{children:[o&&(0,q.jsx)(xe.S,{layout:o.layout,children:(0,q.jsx)(Me,{keymap:o.keymap,sensors:o.sensors})}),a&&(0,q.jsx)(pt,{onDismiss:function(){return n({type:"CLEAR_SAVE_ERROR"})}})]})]})}),(0,q.jsx)(ze,{})]})},gt=t(78718),kt=t.n(gt),_t=t(41696);function At(e){return At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},At(e)}function jt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function xt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?jt(Object(t),!0).forEach((function(n){wt(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):jt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function wt(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==At(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==At(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===At(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Et(){var e=JSON.parse(localStorage.getItem("experimental-settings")||"{}");return{definitions:null,source:null,sourceOther:null,keyboard:null,_unmodifiedKeymap:null,saving:null,saveError:null,settingsVisible:null,commitDialogOpen:!1,theme:JSON.parse(localStorage.getItem("theme")),experimentalSettings:{unicodeGlyphs:P()(e,"unicodeGlyphs",!0),platformGlyphs:P()(e,"platformGlyphs","auto"),enableBehaviorEditing:P()(e,"enableBehaviorEditing",!1)},latestBuild:null}}var Ot=Et();var Ct=t(14890),St=t(97168),Bt=t(80736),Pt=t(2732),Lt=t(12736),It=t(28291);function Tt(e){return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tt(e)}function Dt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Mt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Dt(Object(t),!0).forEach((function(n){Nt(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Dt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Nt(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==Tt(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Tt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Tt(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Rt=(0,Ct.UY)({layout:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]},sensors:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]},keymap:(0,Ct.UY)({warningFlags:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]},defines:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]},headers:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]},chosen:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},behaviors:It.ZP,layers:Bt.ZP,combos:Pt.ZP,macros:Lt.ZP})}),Zt=(0,St.xC)({reducer:function(e,n){var t=function(e,n){switch(n.type){case"INITIALIZE":return Et();case"DEFINITIONS_SET":return xt(xt({},e),{},{definitions:n.definitions});case"CLEAR_KEYBOARD_SELECTION":return xt(xt({},e),{},{keyboard:null});case"SELECT_KEYBOARD":return function(e,n){var t=e.keyboard,r=kt()(n,["layout","keymap","sensors"]);return(0,_t.L)(r.keymap),xt(xt({},e),{},{source:n.source,sourceOther:n.sourceOther,keyboard:xt(xt({},t),r),_unmodifiedKeymap:O()(r.keymap)})}(e,n);case"COMMIT_DIALOG_OPEN":return xt(xt({},e),{},{commitDialogOpen:!0});case"COMMIT_DIALOG_CLOSE":return xt(xt({},e),{},{commitDialogOpen:!1});case"GITHUB_BUILD_UPDATE":return xt(xt({},e),{},{latestBuild:n.build});case"KEYMAP_SAVE_START":return xt(xt({},e),{},{saving:!0,saveError:!1});case"KEYMAP_SAVE_SUCCESS":return function(e,n){var t=xt({},n.keymap);return(0,_t.L)(t),xt(xt({},e),{},{saving:!1,unsaved:!1,keyboard:xt(xt({},e.keyboard),{},{keymap:t}),_unmodifiedKeymap:t})}(e,n);case"KEYMAP_SAVE_FAILURE":return xt(xt({},e),{},{saving:!1,saveError:!0});case"CLEAR_SAVE_ERROR":return xt(xt({},e),{},{saveError:null});case"SETTINGS_OPEN":return xt(xt({},e),{},{settingsVisible:!0});case"SETTINGS_CLOSE":return xt(xt({},e),{},{settingsVisible:!1});case"SETTINGS_UPDATE":return localStorage.setItem("experimental-settings",JSON.stringify(n.settings)),xt(xt({},e),{},{experimentalSettings:n.settings});case"CYCLE_THEME":return function(e,n){var t=["light","dark","system"],r=t.indexOf(e.theme),o=t.at((r+1)%t.length);return localStorage.setItem("theme",'"'.concat(o,'"')),document.body.dataset.theme=o,xt(xt({},e),{},{theme:o})}(e);default:return e}}(e,n);return Mt(Mt({},t),{},{keyboard:t.keyboard&&Mt(Mt({},t.keyboard),Rt(t.keyboard,n))})},preloadedState:Ot});document.body.dataset.theme=Ot.theme,o.createRoot(document.getElementById("app-root")).render((0,q.jsx)(r.StrictMode,{children:(0,q.jsx)(i.zt,{store:Zt,children:(0,q.jsx)(vt,{})})}))},26523:function(e,n,t){"use strict";t.d(n,{Pi:function(){return l},j4:function(){return y},kn:function(){return f}});var r=t(35161),o=t.n(r);function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var s=65,c=5;function u(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{x:e.x*(s+c),y:e.y*(s+c),u:n.u*s+c*(n.u-1),h:n.h*s+c*(n.h-1),rx:(e.x-(t.x||e.x))*-(s+c),ry:(e.y-(t.y||e.y))*-(s+c),a:t.a||0}}function l(e,n,t){var r=u(e,n,t),o=r.x,i=r.y,a=r.u,s=r.h,c=r.a,l=r.rx,f=r.ry;return{top:"".concat(i,"px"),left:"".concat(o,"px"),width:"".concat(a,"px"),height:"".concat(s,"px"),transformOrigin:"".concat(l,"px ").concat(f,"px"),transform:"rotate(".concat(c||0,"deg)")}}function f(e,n,t){var r=u(e,n,t),o=r.x,i=r.y,a=r.u,s=r.h,c=r.a,l=r.rx,f=r.ry;return[{x:0,y:0},{x:a,y:0},{x:a,y:s},{x:0,y:s}].map((function(e){var n=e.x-l,t=e.y-f,r=Math.PI*c/180;return{x:l+n*Math.cos(r)-t*Math.sin(r),y:f+t*Math.cos(r)+n*Math.sin(r)}})).map((function(e){return{x:e.x+o,y:e.y+i}}))}function y(e,n,t){var r=f(e,n,t),a=o()(r,"x"),s=o()(r,"y");return{min:{x:Math.min.apply(Math,i(a)),y:Math.min.apply(Math,i(s))},max:{x:Math.max.apply(Math,i(a)),y:Math.max.apply(Math,i(s))}}}},2596:function(e,n,t){"use strict";t.d(n,{G:function(){return l},j:function(){return f}});var r=t(39693),o=t.n(r);function i(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=a(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==t.return||t.return()}finally{if(c)throw i}}}}function a(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,n):void 0}}function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function c(e){return(n=e,function(e){if(Array.isArray(e))return s(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||a(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort((function(e,n){return e.length-n.length}))[0];var n}var u=/^(.+?)\((code)\)$/;function l(e){return e.reduce((function(e,n){var t,r=n.description,o=n.context,a=n.symbol,s=n.faIcon,l=n.modifiers,f=void 0===l?[]:l,y=n.names.filter((function(e){return!e.match(u)})),p=c(y),d=n.names.map((function(e){return e.match(u)})).filter((function(e){return!!e}))[0],h={name:p,aliases:y,description:r,context:o,faIcon:s,symbol:a||p,modifiers:f,params:[]},m=i(y);try{for(m.s();!(t=m.n()).done;){var b=t.value;e.push(Object.assign({},h,{code:b,isModifier:!!d}))}}catch(e){m.e(e)}finally{m.f()}return d&&e.push(Object.assign({},h,{code:d[1],params:d[2].split(",")})),e}),[])}function f(e,n){return o()([e.basic,n.unicode&&e.unicode,"mac"===n.platform&&e.platforms.mac,"win"===n.platform&&e.platforms.win]).reduce((function(e,n){var t,r=i(n);try{for(r.s();!(t=r.n()).done;){var o=t.value,a=o.names.filter((function(e){return!e.match(u)})),s=c(a);e[s]||(e[s]={}),e[s].symbol=e[s].symbol||o.symbol,e[s].faIcon=e[s].faIcon||o.faIcon}}catch(e){r.e(e)}finally{r.f()}return e}),{})}},41696:function(e,n,t){"use strict";t.d(n,{L:function(){return u},a:function(){return l}});var r=t(13311),o=t.n(r),i=t(27361),a=t.n(i),s=t(78718),c=t.n(s);function u(e){e.layers=e.layers.map((function(e){return c()(e,["index","name","labels","properties"])})),e.combos=e.combos.map((function(e){return c()(e,["index","name","labels","properties"])})),e.behaviors=e.behaviors.map((function(e){return c()(e,["index","name","labels","properties","params"])})),e.macros=e.macros.map((function(e){return c()(e,["index","name","labels","properties"])}))}function l(e,n){return[].concat(n.params||[],function(e,n){var t=a()(e,"[0]",{});if(a()(n,"params[0].enum")){var r=o()(n.params[0].enum,{code:t.value});if(null!=r&&r.additionalParams)return r.additionalParams}return[]}(e,n))}},81485:function(e,n,t){"use strict";t.d(n,{J:function(){return i},c:function(){return o}});var r=t(67294),o=(0,r.createContext)({getSearchTargets:null}),i=(0,r.createContext)({settings:null,openSettingsDialog:null})},39087:function(e,n,t){"use strict";var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([e.id,':root {\n --bg: white;\n --bg-rgb: 255,255,255;\n --fg: black;\n\t--dark-red: #910e0e;\n\t--dark-blue: #6d99c6;\n --error-highlight: rgb(179, 60, 60);\n --selection: rgb(60, 179, 113);\n --hover-selection: rgba(60, 179, 113, 0.85);\n --delete: rgb(179, 60, 72);\n --delete-faint: rgba(179, 60, 72, 0.6);\n --link: royalblue;\n --link-hover: #6d99c6;\n --key-bg-base: #f2f2f2;\n --key-bg-hover: white;\n --key-bg-highlight: sandybrown;\n --key-color-base: #6f6f6f;\n --key-color-extreme: #313131;\n --key-color-hover: white;\n --code-bg: rgba(0, 0, 0, 0.15);\n}\nhtml {\n font-family: sans-serif;\n}\nhtml, body {\n\twidth: 100vw;\n\theight: 100vh;\n\toverflow: auto;\n\tpadding: 0;\n\tmargin: 0;\n background-color: var(--bg);\n color: var(--fg);\n\n transition: 300ms ease-in-out;\n transition-property: color, background-color, border-color;\n}\n\nh1, h2, h3, h4, h5, h6 {\n font-family: Quicksand, avenir, sans-serif;\n}\n\nbody[data-theme="dark"] {\n color-scheme: dark;\n --bg: #123;\n --bg-rgb: 17,34,51;\n --fg: white;\n --key-bg-base: #1c2c3b;\n --key-color-base: #b7b7b7;\n --key-color-extreme: #e7e7e7;\n}\n@media (prefers-color-scheme: dark) {\n body[data-theme="system"] {\n color-scheme: dark;\n --bg: #123;\n --bg-rgb: 17,34,51;\n --fg: white;\n --key-bg-base: #1c2c3b;\n --key-color-base: #b7b7b7;\n --key-color-extreme: #e7e7e7;\n }\n}\n\nh3 {\n margin-bottom: 10px;\n}\n\na { color: var(--link) }\na:hover { color: var(--link-hover) }\n\ncode {\n background-color: var(--code-bg);\n border-radius: 2px;\n padding: .15em .3em .05em;\n}\n\np {\n line-height: 1.3rem;\n}\n\n#actions {\n\tposition: absolute;\n display: flex;\n\tbottom: 5px;\n\tright: 5px;\n gap: 4px;\n}\n\n#actions button {\n display: inline-block;\n cursor: pointer;\n background-color: var(--hover-selection);\n color: white;\n\n font-size: 16px;\n border: none;\n border-radius: 5px;\n padding: 0 5px;\n\n height: 30px;\n line-height: 30px;\n vertical-align: middle;\n}\n\n#actions button[disabled] {\n filter: saturate(20%);\n opacity: .5;\n cursor: not-allowed;\n}\n\n#settings-bar {\n position: absolute;\n top: 10px;\n right: 10px;\n}\n\n#settings-bar button {\n background: none;\n color: var(--fg);\n border: none;\n}\n#settings-bar button:hover {\n cursor: pointer;\n color: royalblue;\n}\n\n.fa-delete-right::before {\n content: \'\\f55a\';\n transform-origin: center;\n transform: rotateZ(180deg);\n display: inline-block;\n}\n',"",{version:3,sources:["webpack://./src/App.css"],names:[],mappings:"AAAA;EACE,WAAW;EACX,qBAAqB;EACrB,WAAW;CACZ,mBAAmB;CACnB,oBAAoB;EACnB,mCAAmC;EACnC,8BAA8B;EAC9B,2CAA2C;EAC3C,0BAA0B;EAC1B,sCAAsC;EACtC,iBAAiB;EACjB,qBAAqB;EACrB,sBAAsB;EACtB,qBAAqB;EACrB,8BAA8B;EAC9B,yBAAyB;EACzB,4BAA4B;EAC5B,wBAAwB;EACxB,8BAA8B;AAChC;AACA;EACE,uBAAuB;AACzB;AACA;CACC,YAAY;CACZ,aAAa;CACb,cAAc;CACd,UAAU;CACV,SAAS;EACR,2BAA2B;EAC3B,gBAAgB;;EAEhB,6BAA6B;EAC7B,0DAA0D;AAC5D;;AAEA;EACE,0CAA0C;AAC5C;;AAEA;EACE,kBAAkB;EAClB,UAAU;EACV,kBAAkB;EAClB,WAAW;EACX,sBAAsB;EACtB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE;IACE,kBAAkB;IAClB,UAAU;IACV,kBAAkB;IAClB,WAAW;IACX,sBAAsB;IACtB,yBAAyB;IACzB,4BAA4B;EAC9B;AACF;;AAEA;EACE,mBAAmB;AACrB;;AAEA,IAAI,mBAAmB;AACvB,UAAU,yBAAyB;;AAEnC;EACE,gCAAgC;EAChC,kBAAkB;EAClB,yBAAyB;AAC3B;;AAEA;EACE,mBAAmB;AACrB;;AAEA;CACC,kBAAkB;EACjB,aAAa;CACd,WAAW;CACX,UAAU;EACT,QAAQ;AACV;;AAEA;EACE,qBAAqB;EACrB,eAAe;EACf,wCAAwC;EACxC,YAAY;;EAEZ,eAAe;EACf,YAAY;EACZ,kBAAkB;EAClB,cAAc;;EAEd,YAAY;EACZ,iBAAiB;EACjB,sBAAsB;AACxB;;AAEA;EACE,qBAAqB;EACrB,WAAW;EACX,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;EAClB,SAAS;EACT,WAAW;AACb;;AAEA;EACE,gBAAgB;EAChB,gBAAgB;EAChB,YAAY;AACd;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;EAChB,wBAAwB;EACxB,0BAA0B;EAC1B,qBAAqB;AACvB",sourcesContent:[':root {\n --bg: white;\n --bg-rgb: 255,255,255;\n --fg: black;\n\t--dark-red: #910e0e;\n\t--dark-blue: #6d99c6;\n --error-highlight: rgb(179, 60, 60);\n --selection: rgb(60, 179, 113);\n --hover-selection: rgba(60, 179, 113, 0.85);\n --delete: rgb(179, 60, 72);\n --delete-faint: rgba(179, 60, 72, 0.6);\n --link: royalblue;\n --link-hover: #6d99c6;\n --key-bg-base: #f2f2f2;\n --key-bg-hover: white;\n --key-bg-highlight: sandybrown;\n --key-color-base: #6f6f6f;\n --key-color-extreme: #313131;\n --key-color-hover: white;\n --code-bg: rgba(0, 0, 0, 0.15);\n}\nhtml {\n font-family: sans-serif;\n}\nhtml, body {\n\twidth: 100vw;\n\theight: 100vh;\n\toverflow: auto;\n\tpadding: 0;\n\tmargin: 0;\n background-color: var(--bg);\n color: var(--fg);\n\n transition: 300ms ease-in-out;\n transition-property: color, background-color, border-color;\n}\n\nh1, h2, h3, h4, h5, h6 {\n font-family: Quicksand, avenir, sans-serif;\n}\n\nbody[data-theme="dark"] {\n color-scheme: dark;\n --bg: #123;\n --bg-rgb: 17,34,51;\n --fg: white;\n --key-bg-base: #1c2c3b;\n --key-color-base: #b7b7b7;\n --key-color-extreme: #e7e7e7;\n}\n@media (prefers-color-scheme: dark) {\n body[data-theme="system"] {\n color-scheme: dark;\n --bg: #123;\n --bg-rgb: 17,34,51;\n --fg: white;\n --key-bg-base: #1c2c3b;\n --key-color-base: #b7b7b7;\n --key-color-extreme: #e7e7e7;\n }\n}\n\nh3 {\n margin-bottom: 10px;\n}\n\na { color: var(--link) }\na:hover { color: var(--link-hover) }\n\ncode {\n background-color: var(--code-bg);\n border-radius: 2px;\n padding: .15em .3em .05em;\n}\n\np {\n line-height: 1.3rem;\n}\n\n#actions {\n\tposition: absolute;\n display: flex;\n\tbottom: 5px;\n\tright: 5px;\n gap: 4px;\n}\n\n#actions button {\n display: inline-block;\n cursor: pointer;\n background-color: var(--hover-selection);\n color: white;\n\n font-size: 16px;\n border: none;\n border-radius: 5px;\n padding: 0 5px;\n\n height: 30px;\n line-height: 30px;\n vertical-align: middle;\n}\n\n#actions button[disabled] {\n filter: saturate(20%);\n opacity: .5;\n cursor: not-allowed;\n}\n\n#settings-bar {\n position: absolute;\n top: 10px;\n right: 10px;\n}\n\n#settings-bar button {\n background: none;\n color: var(--fg);\n border: none;\n}\n#settings-bar button:hover {\n cursor: pointer;\n color: royalblue;\n}\n\n.fa-delete-right::before {\n content: \'\\f55a\';\n transform-origin: center;\n transform: rotateZ(180deg);\n display: inline-block;\n}\n'],sourceRoot:""}]),n.Z=a},51424:function(e,n,t){"use strict";var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([e.id,"body {\n margin: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n","",{version:3,sources:["webpack://./src/index.css"],names:[],mappings:"AAAA;EACE,SAAS;EACT,mCAAmC;EACnC,kCAAkC;AACpC;;AAEA;EACE;aACW;AACb",sourcesContent:["body {\n margin: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n"],sourceRoot:""}]),n.Z=a},49502:function(e,n,t){"use strict";var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([e.id,".ZpdcqlK42OntJos3eGw0 {\n background-color: var(--bg);\n padding: 20px 40px;\n max-width: 500px;\n box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.4);\n border-radius: 3px;\n border: 0.25px solid rgba(0, 0, 0, 0.4);\n}\n\n.ZpdcqlK42OntJos3eGw0 p, .ZpdcqlK42OntJos3eGw0 ul {\n font-family: sans-serif;\n line-height: 1.3rem;\n}\n\n.Mywg1Gw3bKMc9Kd9qcEO {\n display: block;\n margin: 0 auto;\n}\n","",{version:3,sources:["webpack://./src/Common/dialog-box.module.css"],names:[],mappings:"AAAA;EACE,2BAA2B;EAC3B,kBAAkB;EAClB,gBAAgB;EAChB,4CAA4C;EAC5C,kBAAkB;EAClB,uCAAuC;AACzC;;AAEA;EACE,uBAAuB;EACvB,mBAAmB;AACrB;;AAEA;EACE,cAAc;EACd,cAAc;AAChB",sourcesContent:[".dialog {\n background-color: var(--bg);\n padding: 20px 40px;\n max-width: 500px;\n box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.4);\n border-radius: 3px;\n border: 0.25px solid rgba(0, 0, 0, 0.4);\n}\n\n.dialog p, .dialog ul {\n font-family: sans-serif;\n line-height: 1.3rem;\n}\n\n.button {\n display: block;\n margin: 0 auto;\n}\n"],sourceRoot:""}]),a.locals={dialog:"ZpdcqlK42OntJos3eGw0",button:"Mywg1Gw3bKMc9Kd9qcEO"},n.Z=a},87617:function(e,n,t){"use strict";var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([e.id,".J2R67AQeCK_aC1DKFCMJ {\n margin: 4px;\n}","",{version:3,sources:["webpack://./src/Common/link.module.css"],names:[],mappings:"AAAA;EACE,WAAW;AACb",sourcesContent:[".icon {\n margin: 4px;\n}"],sourceRoot:""}]),a.locals={icon:"J2R67AQeCK_aC1DKFCMJ"},n.Z=a},14084:function(e,n,t){"use strict";var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([e.id,".Q5veln3l3laVkuNPs5dQ {\n position: relative;\n}\n\n.Q5veln3l3laVkuNPs5dQ pre {\n white-space: pre;\n background-color: var(--code-bg);\n color: var(--key-color-base);\n padding: 10px;\n max-height: 320px;\n overflow: scroll;\n}\n\n.dqzgBwJ1Rq0XgMqeAKe7 {\n position: absolute;\n top: 15px;\n right: 15px;\n padding: 4px 7px;\n color: var(--key-color-base);\n background-color: var(--key-bg-base);\n border: 1px solid var(--key-color-base);\n border-radius: 3px;\n}\n.dqzgBwJ1Rq0XgMqeAKe7:hover {\n cursor: pointer;\n background-color: var(--selection);\n border: var(--selection);\n color: white;\n}\n\n.YV2lKA9hbJpP4Vs4udw8 {\n position: absolute;\n top: 5px;\n right: 0px;\n background-color: var(--selection);\n color: white;\n padding: 10px;\n border-radius: 2px;\n cursor: none;\n}\n","",{version:3,sources:["webpack://./src/Dialogs/unexpected-error.module.css"],names:[],mappings:"AAAA;EACE,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;EAChB,gCAAgC;EAChC,4BAA4B;EAC5B,aAAa;EACb,iBAAiB;EACjB,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,SAAS;EACT,WAAW;EACX,gBAAgB;EAChB,4BAA4B;EAC5B,oCAAoC;EACpC,uCAAuC;EACvC,kBAAkB;AACpB;AACA;EACE,eAAe;EACf,kCAAkC;EAClC,wBAAwB;EACxB,YAAY;AACd;;AAEA;EACE,kBAAkB;EAClB,QAAQ;EACR,UAAU;EACV,kCAAkC;EAClC,YAAY;EACZ,aAAa;EACb,kBAAkB;EAClB,YAAY;AACd",sourcesContent:[".stackTrace {\n position: relative;\n}\n\n.stackTrace pre {\n white-space: pre;\n background-color: var(--code-bg);\n color: var(--key-color-base);\n padding: 10px;\n max-height: 320px;\n overflow: scroll;\n}\n\n.button {\n position: absolute;\n top: 15px;\n right: 15px;\n padding: 4px 7px;\n color: var(--key-color-base);\n background-color: var(--key-bg-base);\n border: 1px solid var(--key-color-base);\n border-radius: 3px;\n}\n.button:hover {\n cursor: pointer;\n background-color: var(--selection);\n border: var(--selection);\n color: white;\n}\n\n.copyMessage {\n position: absolute;\n top: 5px;\n right: 0px;\n background-color: var(--selection);\n color: white;\n padding: 10px;\n border-radius: 2px;\n cursor: none;\n}\n"],sourceRoot:""}]),a.locals={stackTrace:"Q5veln3l3laVkuNPs5dQ",button:"dqzgBwJ1Rq0XgMqeAKe7",copyMessage:"YV2lKA9hbJpP4Vs4udw8"},n.Z=a},87995:function(e,n,t){"use strict";var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([e.id,".D0BH39_6wwiclW8aKuoi {\n display: inline-flex;\n list-style-type: none;\n margin: 0;\n padding: 0;\n}\n.D0BH39_6wwiclW8aKuoi li {\n cursor: pointer;\n padding: 5px;\n margin: 5px;\n border-radius: 4px;\n font-variant: small-caps;\n}\n.D0BH39_6wwiclW8aKuoi li.xwo6V7AWCmy8CDvuTwRg {\n background-color: var(--selection);\n color: white;\n cursor: default;\n}\n\n.nVbskEoaGxWf96qEgtxz {\n position: absolute;\n}\n.nVbskEoaGxWf96qEgtxz > * {\n width: 100% !important;\n height: 100% !important;\n}\n\n.Ae2s0eqIVhebTEcJGc3F {\n position: relative\n}\n.Ae2s0eqIVhebTEcJGc3F::after {\n content: 'beta';\n background-color: var(--error-highlight);\n color: white;\n font-size: 12px;\n font-weight: bold;\n padding: 1px 3px;\n border-radius: 6px;\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(60%, -60%) rotate(13deg);\n}\n.xwo6V7AWCmy8CDvuTwRg .Ae2s0eqIVhebTEcJGc3F::after {\n background-color: white;\n color: var(--selection);\n border: 1px solid var(--selection);\n}\n.sQQ0qFjHptJbQ8qvuXGa {\n color: var(--error-highlight);\n}\n.D0BH39_6wwiclW8aKuoi li.xwo6V7AWCmy8CDvuTwRg.sQQ0qFjHptJbQ8qvuXGa {\n background-color: var(--error-highlight);\n color: white;\n}","",{version:3,sources:["webpack://./src/Keyboard/styles.module.css"],names:[],mappings:"AAAA;EACE,oBAAoB;EACpB,qBAAqB;EACrB,SAAS;EACT,UAAU;AACZ;AACA;EACE,eAAe;EACf,YAAY;EACZ,WAAW;EACX,kBAAkB;EAClB,wBAAwB;AAC1B;AACA;EACE,kCAAkC;EAClC,YAAY;EACZ,eAAe;AACjB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,sBAAsB;EACtB,uBAAuB;AACzB;;AAEA;EACE;AACF;AACA;EACE,eAAe;EACf,wCAAwC;EACxC,YAAY;EACZ,eAAe;EACf,iBAAiB;EACjB,gBAAgB;EAChB,kBAAkB;EAClB,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,6CAA6C;AAC/C;AACA;EACE,uBAAuB;EACvB,uBAAuB;EACvB,kCAAkC;AACpC;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,wCAAwC;EACxC,YAAY;AACd",sourcesContent:[".editorModeTabs {\n display: inline-flex;\n list-style-type: none;\n margin: 0;\n padding: 0;\n}\n.editorModeTabs li {\n cursor: pointer;\n padding: 5px;\n margin: 5px;\n border-radius: 4px;\n font-variant: small-caps;\n}\n.editorModeTabs li.activeEditTab {\n background-color: var(--selection);\n color: white;\n cursor: default;\n}\n\n.placer {\n position: absolute;\n}\n.placer > * {\n width: 100% !important;\n height: 100% !important;\n}\n\n.beta {\n position: relative\n}\n.beta::after {\n content: 'beta';\n background-color: var(--error-highlight);\n color: white;\n font-size: 12px;\n font-weight: bold;\n padding: 1px 3px;\n border-radius: 6px;\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(60%, -60%) rotate(13deg);\n}\n.activeEditTab .beta::after {\n background-color: white;\n color: var(--selection);\n border: 1px solid var(--selection);\n}\n.warningTab {\n color: var(--error-highlight);\n}\n.editorModeTabs li.activeEditTab.warningTab {\n background-color: var(--error-highlight);\n color: white;\n}"],sourceRoot:""}]),a.locals={editorModeTabs:"D0BH39_6wwiclW8aKuoi",activeEditTab:"xwo6V7AWCmy8CDvuTwRg",placer:"nVbskEoaGxWf96qEgtxz",beta:"Ae2s0eqIVhebTEcJGc3F",warningTab:"sQQ0qFjHptJbQ8qvuXGa"},n.Z=a},58723:function(e,n,t){"use strict";var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([e.id,".hY07j_e1kQx0WX5BwG6I {\n display: flex;\n flex-direction: row;\n align-items: end;\n gap: 5px;\n margin: 5px;\n height: 58px;\n}\n\n._0h266lacmB1N_qDdQcy {\n align-items: center;\n}\n\n.hY07j_e1kQx0WX5BwG6I button {\n height: 38px;\n}\n\n.xwu_0RR7bcAhL2xRBstH {\n font-style: italic;\n max-width: 250px;\n opacity: 0.6;\n}","",{version:3,sources:["webpack://./src/Sources/styles.module.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,mBAAmB;EACnB,gBAAgB;EAChB,QAAQ;EACR,WAAW;EACX,YAAY;AACd;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,kBAAkB;EAClB,gBAAgB;EAChB,YAAY;AACd",sourcesContent:[".wrapper {\n display: flex;\n flex-direction: row;\n align-items: end;\n gap: 5px;\n margin: 5px;\n height: 58px;\n}\n\n.compact {\n align-items: center;\n}\n\n.wrapper button {\n height: 38px;\n}\n\n.sourceDescription {\n font-style: italic;\n max-width: 250px;\n opacity: 0.6;\n}"],sourceRoot:""}]),a.locals={wrapper:"hY07j_e1kQx0WX5BwG6I",compact:"_0h266lacmB1N_qDdQcy",sourceDescription:"xwu_0RR7bcAhL2xRBstH"},n.Z=a},2746:function(e,n,t){"use strict";var r=t(87537),o=t.n(r),i=t(23645),a=t.n(i)()(o());a.push([e.id,"\n._vWNIXMkemQax9rkCJQh {\n display: inline-block;\n position: absolute;\n z-index: 100;\n bottom: 5px;\n left: 5px;\n}\n\n._vWNIXMkemQax9rkCJQh label {\n font-size: 75%;\n font-style: italic;\n display: block;\n padding: 0 10px;\n}\n\n.qiC2NrujE4ebqmHjzq0_ {\n display: inline-block;\n font-size: 110%;\n font-style: italic;\n background-color: var(--code-bg);\n border-radius: 20px;\n padding: 5px 10px;\n text-decoration: none;\n\n color: royalblue;\n}\n.qiC2NrujE4ebqmHjzq0_:hover {\n background-color: royalblue;\n color: white;\n}","",{version:3,sources:["webpack://./src/styles.module.css"],names:[],mappings:";AACA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,YAAY;EACZ,WAAW;EACX,SAAS;AACX;;AAEA;EACE,cAAc;EACd,kBAAkB;EAClB,cAAc;EACd,eAAe;AACjB;;AAEA;EACE,qBAAqB;EACrB,eAAe;EACf,kBAAkB;EAClB,gCAAgC;EAChC,mBAAmB;EACnB,iBAAiB;EACjB,qBAAqB;;EAErB,gBAAgB;AAClB;AACA;EACE,2BAA2B;EAC3B,YAAY;AACd",sourcesContent:["\n.wrapper {\n display: inline-block;\n position: absolute;\n z-index: 100;\n bottom: 5px;\n left: 5px;\n}\n\n.wrapper label {\n font-size: 75%;\n font-style: italic;\n display: block;\n padding: 0 10px;\n}\n\n.githubLink {\n display: inline-block;\n font-size: 110%;\n font-style: italic;\n background-color: var(--code-bg);\n border-radius: 20px;\n padding: 5px 10px;\n text-decoration: none;\n\n color: royalblue;\n}\n.githubLink:hover {\n background-color: royalblue;\n color: white;\n}"],sourceRoot:""}]),a.locals={wrapper:"_vWNIXMkemQax9rkCJQh",githubLink:"qiC2NrujE4ebqmHjzq0_"},n.Z=a},95872:function(e,n,t){"use strict";var r=t(93379),o=t.n(r),i=t(7795),a=t.n(i),s=t(90569),c=t.n(s),u=t(3565),l=t.n(u),f=t(19216),y=t.n(f),p=t(44589),d=t.n(p),h=t(87995),m={};m.styleTagTransform=d(),m.setAttributes=l(),m.insert=c().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=y(),o()(h.Z,m),n.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},34366:function(e,n,t){var r={"./catalog":[51785],"./catalog.json":[51785],"./keys_ar":[73810,6392],"./keys_ar.json":[73810,6392],"./keys_ar_102":[78381,8017],"./keys_ar_102.json":[78381,8017],"./keys_ar_azerty":[56724,2650],"./keys_ar_azerty.json":[56724,2650],"./keys_as":[68045,9082],"./keys_as.json":[68045,9082],"./keys_az":[21708,8070],"./keys_az.json":[21708,8070],"./keys_az_cyrillic":[7200,8242],"./keys_az_cyrillic.json":[7200,8242],"./keys_az_standard":[2498,3647],"./keys_az_standard.json":[2498,3647],"./keys_ba":[24745,5332],"./keys_ba.json":[24745,5332],"./keys_be":[80468,308],"./keys_be.json":[80468,308],"./keys_bg":[87317,2408],"./keys_bg.json":[87317,2408],"./keys_bg_latin":[80885,421],"./keys_bg_latin.json":[80885,421],"./keys_bg_phonetic":[10220,4595],"./keys_bg_phonetic.json":[10220,4595],"./keys_bm":[71350,8956],"./keys_bm.json":[71350,8956],"./keys_bn":[99691,1480],"./keys_bn.json":[99691,1480],"./keys_bn_inscript":[31658,9142],"./keys_bn_inscript.json":[31658,9142],"./keys_bo":[29692,3282],"./keys_bo.json":[29692,3282],"./keys_bs":[5396,1315],"./keys_bs.json":[5396,1315],"./keys_bug":[15317,4443],"./keys_bug.json":[15317,4443],"./keys_chr":[8250,6943],"./keys_chr.json":[8250,6943],"./keys_chr_phonetic":[6221,4688],"./keys_chr_phonetic.json":[6221,4688],"./keys_ckb":[29448,1936],"./keys_ckb.json":[29448,1936],"./keys_cs":[98019,8207],"./keys_cs.json":[98019,8207],"./keys_cs_programmers":[7578,3735],"./keys_cs_programmers.json":[7578,3735],"./keys_cs_qwerty":[58733,2659],"./keys_cs_qwerty.json":[58733,2659],"./keys_da":[81460,6691],"./keys_da.json":[81460,6691],"./keys_de":[68013,3359],"./keys_de.json":[68013,3359],"./keys_de_belgian":[69798,9619],"./keys_de_belgian.json":[69798,9619],"./keys_de_belgian_period":[12991,1808],"./keys_de_belgian_period.json":[12991,1808],"./keys_de_ibm":[85155,1507],"./keys_de_ibm.json":[85155,1507],"./keys_de_swiss":[57153,6184],"./keys_de_swiss.json":[57153,6184],"./keys_dsb":[93859,9616],"./keys_dsb.json":[93859,9616],"./keys_dsb_extended":[45816,7686],"./keys_dsb_extended.json":[45816,7686],"./keys_dv":[60573,5485],"./keys_dv.json":[60573,5485],"./keys_dvorak":[17499,6157],"./keys_dvorak.json":[17499,6157],"./keys_dvorak_left":[5085,8793],"./keys_dvorak_left.json":[5085,8793],"./keys_dvorak_right":[43474,3362],"./keys_dvorak_right.json":[43474,3362],"./keys_dyu":[56817,749],"./keys_dyu.json":[56817,749],"./keys_dz":[3461,3893],"./keys_dz.json":[3461,3893],"./keys_el":[82182,1545],"./keys_el.json":[82182,1545],"./keys_el_220":[74695,3743],"./keys_el_220.json":[74695,3743],"./keys_el_319":[43615,4263],"./keys_el_319.json":[43615,4263],"./keys_el_latin":[61897,8971],"./keys_el_latin.json":[61897,8971],"./keys_el_latin_220":[52401,7603],"./keys_el_latin_220.json":[52401,7603],"./keys_el_latin_319":[70286,5821],"./keys_el_latin_319.json":[70286,5821],"./keys_el_polytonic":[19430,4296],"./keys_el_polytonic.json":[19430,4296],"./keys_en_gb":[85702,7495],"./keys_en_gb.json":[85702,7495],"./keys_en_gb_extended":[30206,1343],"./keys_en_gb_extended.json":[30206,1343],"./keys_en_india":[28440,8302],"./keys_en_india.json":[28440,8302],"./keys_es":[68633,771],"./keys_es.json":[68633,771],"./keys_es_latin_american":[67356,6429],"./keys_es_latin_american.json":[67356,6429],"./keys_es_variation":[73173,3033],"./keys_es_variation.json":[73173,3033],"./keys_et":[76498,7022],"./keys_et.json":[76498,7022],"./keys_fa":[76451,8599],"./keys_fa.json":[76451,8599],"./keys_fa_standard":[79355,819],"./keys_fa_standard.json":[79355,819],"./keys_fi":[36863,8706],"./keys_fi.json":[36863,8706],"./keys_fi_sami":[58592,9866],"./keys_fi_sami.json":[58592,9866],"./keys_fo":[48622,9586],"./keys_fo.json":[48622,9586],"./keys_fr":[50955,7554],"./keys_fr.json":[50955,7554],"./keys_fr_belgian":[39330,8855],"./keys_fr_belgian.json":[39330,8855],"./keys_fr_belgian_period":[17494,7950],"./keys_fr_belgian_period.json":[17494,7950],"./keys_fr_canadian_french":[74301,4491],"./keys_fr_canadian_french.json":[74301,4491],"./keys_fr_canadian_standard":[76297,8251],"./keys_fr_canadian_standard.json":[76297,8251],"./keys_fr_swiss":[41417,1514],"./keys_fr_swiss.json":[41417,1514],"./keys_ga":[47467,8185],"./keys_ga.json":[47467,8185],"./keys_gd":[50596,6457],"./keys_gd.json":[50596,6457],"./keys_gn":[78996,4289],"./keys_gn.json":[78996,4289],"./keys_got":[45327,9893],"./keys_got.json":[45327,9893],"./keys_gu":[21372,2787],"./keys_gu.json":[21372,2787],"./keys_ha":[28061,2982],"./keys_ha.json":[28061,2982],"./keys_haw":[63525,3618],"./keys_haw.json":[63525,3618],"./keys_he":[2357,7446],"./keys_he.json":[2357,7446],"./keys_he_standard":[58311,7108],"./keys_he_standard.json":[58311,7108],"./keys_hi":[55225,6688],"./keys_hi.json":[55225,6688],"./keys_hi_traditional":[48923,8119],"./keys_hi_traditional.json":[48923,8119],"./keys_hu":[4526,4156],"./keys_hu.json":[4526,4156],"./keys_hu_101":[3013,3322],"./keys_hu_101.json":[3013,3322],"./keys_hy":[15584,2015],"./keys_hy.json":[15584,2015],"./keys_hy_phonetic":[28860,9136],"./keys_hy_phonetic.json":[28860,9136],"./keys_ig":[4055,7892],"./keys_ig.json":[4055,7892],"./keys_is":[87591,5604],"./keys_is.json":[87591,5604],"./keys_it":[24277,4465],"./keys_it.json":[24277,4465],"./keys_it_142":[83333,833],"./keys_it_142.json":[83333,833],"./keys_iu":[79407,5840],"./keys_iu.json":[79407,5840],"./keys_iu_latin":[90290,9176],"./keys_iu_latin.json":[90290,9176],"./keys_jv":[83271,6710],"./keys_jv.json":[83271,6710],"./keys_ka":[36196,3687],"./keys_ka.json":[36196,3687],"./keys_ka_ergonomic":[76892,9698],"./keys_ka_ergonomic.json":[76892,9698],"./keys_ka_qwerty":[84211,2621],"./keys_ka_qwerty.json":[84211,2621],"./keys_khb":[93128,5842],"./keys_khb.json":[93128,5842],"./keys_khb_tai_le":[16011,539],"./keys_khb_tai_le.json":[16011,539],"./keys_kk":[81713,951],"./keys_kk.json":[81713,951],"./keys_kl":[87006,7303],"./keys_kl.json":[87006,7303],"./keys_km":[86151,6794],"./keys_km.json":[86151,6794],"./keys_km_nida":[91831,3268],"./keys_km_nida.json":[91831,3268],"./keys_kn":[88868,8709],"./keys_kn.json":[88868,8709],"./keys_ko":[96130,8427],"./keys_ko.json":[96130,8427],"./keys_ky":[49911,9244],"./keys_ky.json":[49911,9244],"./keys_la_old_italic":[72596,8438],"./keys_la_old_italic.json":[72596,8438],"./keys_lb":[6012,5606],"./keys_lb.json":[6012,5606],"./keys_lis":[86353,8945],"./keys_lis.json":[86353,8945],"./keys_lis_standard":[70912,4887],"./keys_lis_standard.json":[70912,4887],"./keys_lo":[34659,398],"./keys_lo.json":[34659,398],"./keys_lt":[92979,7771],"./keys_lt.json":[92979,7771],"./keys_lt_ibm":[90075,129],"./keys_lt_ibm.json":[90075,129],"./keys_lt_standard":[70040,3746],"./keys_lt_standard.json":[70040,3746],"./keys_lv":[25622,1671],"./keys_lv.json":[25622,1671],"./keys_lv_qwerty":[70689,6777],"./keys_lv_qwerty.json":[70689,6777],"./keys_lv_standard":[68148,9081],"./keys_lv_standard.json":[68148,9081],"./keys_man":[95287,1156],"./keys_man.json":[95287,1156],"./keys_mi":[97585,9512],"./keys_mi.json":[97585,9512],"./keys_mk":[8069,8041],"./keys_mk.json":[8069,8041],"./keys_ml":[79302,1547],"./keys_ml.json":[79302,1547],"./keys_mn":[78647,389],"./keys_mn.json":[78647,389],"./keys_mn_phags_pa":[94641,3194],"./keys_mn_phags_pa.json":[94641,3194],"./keys_mn_traditional":[1301,8568],"./keys_mn_traditional.json":[1301,8568],"./keys_mr":[28928,2247],"./keys_mr.json":[28928,2247],"./keys_mt":[5848,7568],"./keys_mt.json":[5848,7568],"./keys_mt_101":[10244,3880],"./keys_mt_101.json":[10244,3880],"./keys_my":[14052,5015],"./keys_my.json":[14052,5015],"./keys_nb":[56360,4919],"./keys_nb.json":[56360,4919],"./keys_nb_sami":[96408,8636],"./keys_nb_sami.json":[96408,8636],"./keys_ne":[97192,4892],"./keys_ne.json":[97192,4892],"./keys_nl":[37853,6415],"./keys_nl.json":[37853,6415],"./keys_nl_period":[80045,2271],"./keys_nl_period.json":[80045,2271],"./keys_non":[50248,5991],"./keys_non.json":[50248,5991],"./keys_nso":[34757,8307],"./keys_nso.json":[34757,8307],"./keys_or":[40914,2383],"./keys_or.json":[40914,2383],"./keys_pa":[51095,9989],"./keys_pa.json":[51095,9989],"./keys_pl":[91654,8391],"./keys_pl.json":[91654,8391],"./keys_pl_programmers":[188,920],"./keys_pl_programmers.json":[188,920],"./keys_ps":[65138,6049],"./keys_ps.json":[65138,6049],"./keys_pt":[33474,4821],"./keys_pt.json":[33474,4821],"./keys_pt_abnt":[84986,1872],"./keys_pt_abnt.json":[84986,1872],"./keys_pt_abnt2":[50167,9112],"./keys_pt_abnt2.json":[50167,9112],"./keys_ro":[35695,68],"./keys_ro.json":[35695,68],"./keys_ro_programmers":[53693,4795],"./keys_ro_programmers.json":[53693,4795],"./keys_ru":[62672,8986],"./keys_ru.json":[62672,8986],"./keys_ru_phonetic":[48927,7292],"./keys_ru_phonetic.json":[48927,7292],"./keys_sah":[75234,7289],"./keys_sah.json":[75234,7289],"./keys_sat":[767,9414],"./keys_sat.json":[767,9414],"./keys_se":[31828,8019],"./keys_se.json":[31828,8019],"./keys_se_finland_sweden":[44292,8699],"./keys_se_finland_sweden.json":[44292,8699],"./keys_si":[39915,9707],"./keys_si.json":[39915,9707],"./keys_sk":[49999,7803],"./keys_sk.json":[49999,7803],"./keys_sk_qwerty":[92153,1720],"./keys_sk_qwerty.json":[92153,1720],"./keys_sl":[11998,5715],"./keys_sl.json":[11998,5715],"./keys_so":[32727,9193],"./keys_so.json":[32727,9193],"./keys_sq":[93752,8173],"./keys_sq.json":[93752,8173],"./keys_sr":[45358,2231],"./keys_sr.json":[45358,2231],"./keys_sr_latin":[80121,578],"./keys_sr_latin.json":[80121,578],"./keys_srb":[929,5354],"./keys_srb.json":[929,5354],"./keys_sv":[74243,8649],"./keys_sv.json":[74243,8649],"./keys_sv_sami":[26330,4717],"./keys_sv_sami.json":[26330,4717],"./keys_syr":[20591,4777],"./keys_syr.json":[20591,4777],"./keys_syr_phonetic":[85609,2619],"./keys_syr_phonetic.json":[85609,2619],"./keys_ta":[17843,4036],"./keys_ta.json":[17843,4036],"./keys_te":[69130,4824],"./keys_te.json":[69130,4824],"./keys_tg":[79797,3393],"./keys_tg.json":[79797,3393],"./keys_th":[70732,6684],"./keys_th.json":[70732,6684],"./keys_th_pattachote":[85219,422],"./keys_th_pattachote.json":[85219,422],"./keys_tk":[31794,2275],"./keys_tk.json":[31794,2275],"./keys_tmh":[89416,2835],"./keys_tmh.json":[89416,2835],"./keys_tmh_extended":[33866,8110],"./keys_tmh_extended.json":[33866,8110],"./keys_tn":[79848,4257],"./keys_tn.json":[79848,4257],"./keys_tr":[32066,5303],"./keys_tr.json":[32066,5303],"./keys_tr_f":[77176,4670],"./keys_tr_f.json":[77176,4670],"./keys_tt":[13069,7305],"./keys_tt.json":[13069,7305],"./keys_tzm":[93917,814],"./keys_tzm.json":[93917,814],"./keys_ug":[29436,3474],"./keys_ug.json":[29436,3474],"./keys_uk":[18936,2602],"./keys_uk.json":[18936,2602],"./keys_uk_enhanced":[60895,7228],"./keys_uk_enhanced.json":[60895,7228],"./keys_ur":[48883,8216],"./keys_ur.json":[48883,8216],"./keys_us_international":[61141,2947],"./keys_us_international.json":[61141,2947],"./keys_uz":[8196,7080],"./keys_uz.json":[8196,7080],"./keys_vi":[88305,7994],"./keys_vi.json":[88305,7994],"./keys_wo":[97528,7069],"./keys_wo.json":[97528,7069],"./keys_yo":[8962,5998],"./keys_yo.json":[8962,5998]};function o(e){if(!t.o(r,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=r[e],o=n[0];return Promise.all(n.slice(1).map(t.e)).then((function(){return t.t(o,19)}))}o.keys=function(){return Object.keys(r)},o.id=34366,e.exports=o},51785:function(e){"use strict";e.exports=JSON.parse('{"keys_ar.h":{"filename":"keys_ar.json","prefix":"ar"},"keys_ar_azerty.h":{"filename":"keys_ar_azerty.json","prefix":"ar"},"keys_ar_102.h":{"filename":"keys_ar_102.json","prefix":"ar"},"keys_as.h":{"filename":"keys_as.json","prefix":"as"},"keys_az.h":{"filename":"keys_az.json","prefix":"az"},"keys_az_standard.h":{"filename":"keys_az_standard.json","prefix":"az"},"keys_az_cyrillic.h":{"filename":"keys_az_cyrillic.json","prefix":"az"},"keys_ba.h":{"filename":"keys_ba.json","prefix":"ba"},"keys_be.h":{"filename":"keys_be.json","prefix":"be"},"keys_bg.h":{"filename":"keys_bg.json","prefix":"bg"},"keys_bg_phonetic.h":{"filename":"keys_bg_phonetic.json","prefix":"bg"},"keys_bg_latin.h":{"filename":"keys_bg_latin.json","prefix":"bg"},"keys_bm.h":{"filename":"keys_bm.json","prefix":"bm"},"keys_dyu.h":{"filename":"keys_dyu.json","prefix":"dyu"},"keys_man.h":{"filename":"keys_man.json","prefix":"man"},"keys_bn.h":{"filename":"keys_bn.json","prefix":"bn"},"keys_bn_inscript.h":{"filename":"keys_bn_inscript.json","prefix":"bn"},"keys_bo.h":{"filename":"keys_bo.json","prefix":"bo"},"keys_bs.h":{"filename":"keys_bs.json","prefix":"bs"},"keys_bug.h":{"filename":"keys_bug.json","prefix":"bug"},"keys_chr.h":{"filename":"keys_chr.json","prefix":"chr"},"keys_chr_phonetic.h":{"filename":"keys_chr_phonetic.json","prefix":"chr"},"keys_ckb.h":{"filename":"keys_ckb.json","prefix":"ckb"},"keys_cs.h":{"filename":"keys_cs.json","prefix":"cs"},"keys_cs_programmers.h":{"filename":"keys_cs_programmers.json","prefix":"cs"},"keys_cs_qwerty.h":{"filename":"keys_cs_qwerty.json","prefix":"cs"},"keys_da.h":{"filename":"keys_da.json","prefix":"da"},"keys_de.h":{"filename":"keys_de.json","prefix":"de"},"keys_de_ibm.h":{"filename":"keys_de_ibm.json","prefix":"de"},"keys_de_belgian.h":{"filename":"keys_de_belgian.json","prefix":"de"},"keys_de_belgian_period.h":{"filename":"keys_de_belgian_period.json","prefix":"de"},"keys_de_swiss.h":{"filename":"keys_de_swiss.json","prefix":"de"},"keys_dsb.h":{"filename":"keys_dsb.json","prefix":"dsb"},"keys_dsb_extended.h":{"filename":"keys_dsb_extended.json","prefix":"dsb"},"keys_dv.h":{"filename":"keys_dv.json","prefix":"dv"},"keys_dz.h":{"filename":"keys_dz.json","prefix":"dz"},"keys_el.h":{"filename":"keys_el.json","prefix":"el"},"keys_el_220.h":{"filename":"keys_el_220.json","prefix":"el"},"keys_el_319.h":{"filename":"keys_el_319.json","prefix":"el"},"keys_el_latin.h":{"filename":"keys_el_latin.json","prefix":"el"},"keys_el_latin_220.h":{"filename":"keys_el_latin_220.json","prefix":"el"},"keys_el_latin_319.h":{"filename":"keys_el_latin_319.json","prefix":"el"},"keys_el_polytonic.h":{"filename":"keys_el_polytonic.json","prefix":"el"},"keys_en_gb.h":{"filename":"keys_en_gb.json","prefix":"en"},"keys_en_gb_extended.h":{"filename":"keys_en_gb_extended.json","prefix":"en"},"keys_en_india.h":{"filename":"keys_en_india.json","prefix":"en"},"keys_us_international.h":{"filename":"keys_us_international.json","prefix":"usx"},"keys_dvorak.h":{"filename":"keys_dvorak.json","prefix":"en"},"keys_dvorak_left.h":{"filename":"keys_dvorak_left.json","prefix":"en"},"keys_dvorak_right.h":{"filename":"keys_dvorak_right.json","prefix":"en"},"keys_es.h":{"filename":"keys_es.json","prefix":"es"},"keys_es_variation.h":{"filename":"keys_es_variation.json","prefix":"es"},"keys_es_latin_american.h":{"filename":"keys_es_latin_american.json","prefix":"es"},"keys_et.h":{"filename":"keys_et.json","prefix":"et"},"keys_fa.h":{"filename":"keys_fa.json","prefix":"fa"},"keys_fa_standard.h":{"filename":"keys_fa_standard.json","prefix":"fa"},"keys_fi.h":{"filename":"keys_fi.json","prefix":"fi"},"keys_fi_sami.h":{"filename":"keys_fi_sami.json","prefix":"fi"},"keys_fo.h":{"filename":"keys_fo.json","prefix":"fo"},"keys_fr.h":{"filename":"keys_fr.json","prefix":"fr"},"keys_fr_belgian.h":{"filename":"keys_fr_belgian.json","prefix":"fr"},"keys_fr_belgian_period.h":{"filename":"keys_fr_belgian_period.json","prefix":"fr"},"keys_fr_canadian_standard.h":{"filename":"keys_fr_canadian_standard.json","prefix":"fr"},"keys_fr_canadian_french.h":{"filename":"keys_fr_canadian_french.json","prefix":"fr"},"keys_fr_swiss.h":{"filename":"keys_fr_swiss.json","prefix":"fr"},"keys_ga.h":{"filename":"keys_ga.json","prefix":"ga"},"keys_gd.h":{"filename":"keys_gd.json","prefix":"gd"},"keys_gn.h":{"filename":"keys_gn.json","prefix":"gn"},"keys_got.h":{"filename":"keys_got.json","prefix":"got"},"keys_gu.h":{"filename":"keys_gu.json","prefix":"gu"},"keys_ha.h":{"filename":"keys_ha.json","prefix":"ha"},"keys_haw.h":{"filename":"keys_haw.json","prefix":"haw"},"keys_he.h":{"filename":"keys_he.json","prefix":"he"},"keys_he_standard.h":{"filename":"keys_he_standard.json","prefix":"he"},"keys_hi.h":{"filename":"keys_hi.json","prefix":"hi"},"keys_hi_traditional.h":{"filename":"keys_hi_traditional.json","prefix":"hi"},"keys_hu.h":{"filename":"keys_hu.json","prefix":"hu"},"keys_hu_101.h":{"filename":"keys_hu_101.json","prefix":"hu"},"keys_hy.h":{"filename":"keys_hy.json","prefix":"hy"},"keys_hy_phonetic.h":{"filename":"keys_hy_phonetic.json","prefix":"hy"},"keys_ig.h":{"filename":"keys_ig.json","prefix":"ig"},"keys_is.h":{"filename":"keys_is.json","prefix":"is"},"keys_it.h":{"filename":"keys_it.json","prefix":"it"},"keys_it_142.h":{"filename":"keys_it_142.json","prefix":"it"},"keys_iu.h":{"filename":"keys_iu.json","prefix":"iu"},"keys_iu_latin.h":{"filename":"keys_iu_latin.json","prefix":"iu"},"keys_jv.h":{"filename":"keys_jv.json","prefix":"jv"},"keys_ka.h":{"filename":"keys_ka.json","prefix":"ka"},"keys_ka_ergonomic.h":{"filename":"keys_ka_ergonomic.json","prefix":"ka"},"keys_ka_qwerty.h":{"filename":"keys_ka_qwerty.json","prefix":"ka"},"keys_khb.h":{"filename":"keys_khb.json","prefix":"khb"},"keys_khb_tai_le.h":{"filename":"keys_khb_tai_le.json","prefix":"khb"},"keys_kk.h":{"filename":"keys_kk.json","prefix":"kk"},"keys_kl.h":{"filename":"keys_kl.json","prefix":"kl"},"keys_km.h":{"filename":"keys_km.json","prefix":"km"},"keys_km_nida.h":{"filename":"keys_km_nida.json","prefix":"km"},"keys_kn.h":{"filename":"keys_kn.json","prefix":"kn"},"keys_ko.h":{"filename":"keys_ko.json","prefix":"ko"},"keys_ky.h":{"filename":"keys_ky.json","prefix":"ky"},"keys_la_old_italic.h":{"filename":"keys_la_old_italic.json","prefix":"la"},"keys_lb.h":{"filename":"keys_lb.json","prefix":"lb"},"keys_lis.h":{"filename":"keys_lis.json","prefix":"lis"},"keys_lis_standard.h":{"filename":"keys_lis_standard.json","prefix":"lis"},"keys_lo.h":{"filename":"keys_lo.json","prefix":"lo"},"keys_lt.h":{"filename":"keys_lt.json","prefix":"lt"},"keys_lt_ibm.h":{"filename":"keys_lt_ibm.json","prefix":"lt"},"keys_lt_standard.h":{"filename":"keys_lt_standard.json","prefix":"lt"},"keys_lv.h":{"filename":"keys_lv.json","prefix":"lv"},"keys_lv_qwerty.h":{"filename":"keys_lv_qwerty.json","prefix":"lv"},"keys_lv_standard.h":{"filename":"keys_lv_standard.json","prefix":"lv"},"keys_mi.h":{"filename":"keys_mi.json","prefix":"mi"},"keys_mk.h":{"filename":"keys_mk.json","prefix":"mk"},"keys_ml.h":{"filename":"keys_ml.json","prefix":"ml"},"keys_mn.h":{"filename":"keys_mn.json","prefix":"mn"},"keys_mn_traditional.h":{"filename":"keys_mn_traditional.json","prefix":"mn"},"keys_mn_phags_pa.h":{"filename":"keys_mn_phags_pa.json","prefix":"mn"},"keys_mr.h":{"filename":"keys_mr.json","prefix":"mr"},"keys_mt.h":{"filename":"keys_mt.json","prefix":"mt"},"keys_mt_101.h":{"filename":"keys_mt_101.json","prefix":"mt"},"keys_my.h":{"filename":"keys_my.json","prefix":"my"},"keys_nb.h":{"filename":"keys_nb.json","prefix":"nb"},"keys_nb_sami.h":{"filename":"keys_nb_sami.json","prefix":"nb"},"keys_ne.h":{"filename":"keys_ne.json","prefix":"ne"},"keys_nl.h":{"filename":"keys_nl.json","prefix":"nl"},"keys_nl_period.h":{"filename":"keys_nl_period.json","prefix":"nl"},"keys_non.h":{"filename":"keys_non.json","prefix":"non"},"keys_nso.h":{"filename":"keys_nso.json","prefix":"nso"},"keys_or.h":{"filename":"keys_or.json","prefix":"or"},"keys_pa.h":{"filename":"keys_pa.json","prefix":"pa"},"keys_pl.h":{"filename":"keys_pl.json","prefix":"pl"},"keys_pl_programmers.h":{"filename":"keys_pl_programmers.json","prefix":"pl"},"keys_ps.h":{"filename":"keys_ps.json","prefix":"ps"},"keys_pt.h":{"filename":"keys_pt.json","prefix":"pt"},"keys_pt_abnt.h":{"filename":"keys_pt_abnt.json","prefix":"pt"},"keys_pt_abnt2.h":{"filename":"keys_pt_abnt2.json","prefix":"pt"},"keys_ro.h":{"filename":"keys_ro.json","prefix":"ro"},"keys_ro_programmers.h":{"filename":"keys_ro_programmers.json","prefix":"ro"},"keys_ru.h":{"filename":"keys_ru.json","prefix":"ru"},"keys_ru_phonetic.h":{"filename":"keys_ru_phonetic.json","prefix":"ru"},"keys_sah.h":{"filename":"keys_sah.json","prefix":"sah"},"keys_sat.h":{"filename":"keys_sat.json","prefix":"sat"},"keys_se.h":{"filename":"keys_se.json","prefix":"se"},"keys_se_finland_sweden.h":{"filename":"keys_se_finland_sweden.json","prefix":"se"},"keys_si.h":{"filename":"keys_si.json","prefix":"si"},"keys_sk.h":{"filename":"keys_sk.json","prefix":"sk"},"keys_sk_qwerty.h":{"filename":"keys_sk_qwerty.json","prefix":"sk"},"keys_sl.h":{"filename":"keys_sl.json","prefix":"sl"},"keys_so.h":{"filename":"keys_so.json","prefix":"so"},"keys_sq.h":{"filename":"keys_sq.json","prefix":"sq"},"keys_sr.h":{"filename":"keys_sr.json","prefix":"sr"},"keys_sr_latin.h":{"filename":"keys_sr_latin.json","prefix":"sr"},"keys_srb.h":{"filename":"keys_srb.json","prefix":"srb"},"keys_sv.h":{"filename":"keys_sv.json","prefix":"sv"},"keys_sv_sami.h":{"filename":"keys_sv_sami.json","prefix":"sv"},"keys_syr.h":{"filename":"keys_syr.json","prefix":"syr"},"keys_syr_phonetic.h":{"filename":"keys_syr_phonetic.json","prefix":"syr"},"keys_ta.h":{"filename":"keys_ta.json","prefix":"ta"},"keys_te.h":{"filename":"keys_te.json","prefix":"te"},"keys_tg.h":{"filename":"keys_tg.json","prefix":"tg"},"keys_th.h":{"filename":"keys_th.json","prefix":"th"},"keys_th_pattachote.h":{"filename":"keys_th_pattachote.json","prefix":"th"},"keys_tk.h":{"filename":"keys_tk.json","prefix":"tk"},"keys_tmh.h":{"filename":"keys_tmh.json","prefix":"tmh"},"keys_tmh_extended.h":{"filename":"keys_tmh_extended.json","prefix":"tmh"},"keys_tn.h":{"filename":"keys_tn.json","prefix":"tn"},"keys_tr.h":{"filename":"keys_tr.json","prefix":"tr"},"keys_tr_f.h":{"filename":"keys_tr_f.json","prefix":"tr"},"keys_tt.h":{"filename":"keys_tt.json","prefix":"tt"},"keys_tzm.h":{"filename":"keys_tzm.json","prefix":"tzm"},"keys_ug.h":{"filename":"keys_ug.json","prefix":"ug"},"keys_uk.h":{"filename":"keys_uk.json","prefix":"uk"},"keys_uk_enhanced.h":{"filename":"keys_uk_enhanced.json","prefix":"uk"},"keys_ur.h":{"filename":"keys_ur.json","prefix":"ur"},"keys_uz.h":{"filename":"keys_uz.json","prefix":"uz"},"keys_vi.h":{"filename":"keys_vi.json","prefix":"vi"},"keys_wo.h":{"filename":"keys_wo.json","prefix":"wo"},"keys_yo.h":{"filename":"keys_yo.json","prefix":"yo"}}')}},function(e){e.O(0,[3712,1216,5514],(function(){return 26810,e(e.s=26810)})),e.O()}]);
//# sourceMappingURL=main.319f5538aa7cba9886cf.js.map
|