summaryrefslogtreecommitdiffhomepage
path: root/main.91cc80dae9e274a67a7c.js
blob: 265122e0bb11e9ce924a9bafe4434708eff5a013 (plain)
1
2
3
/*! For license information please see main.91cc80dae9e274a67a7c.js.LICENSE.txt */
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[179],{27926:function(e,t,n){n.d(t,{Z:function(){return k}});var r=n(93379),o=n.n(r),i=n(7795),a=n.n(i),c=n(90569),u=n.n(c),s=n(3565),l=n.n(s),f=n(19216),p=n.n(f),d=n(44589),y=n.n(d),h=n(56281),m={};m.styleTagTransform=y(),m.setAttributes=l(),m.insert=u().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),o()(h.Z,m);var b=h.Z&&h.Z.locals?h.Z.locals:void 0,v=n(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 A=["children","secondary","className"];function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==g(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.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(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){var t=e.children,n=e.secondary,r=e.className,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,A);return(0,v.jsx)("button",x(x({className:[r,b.action,n&&b.secondary].join(" ")},o),{},{children:t}))}j.defaultProps={className:""};var k=j},96186:function(e,t,n){n.d(t,{Z:function(){return k}});var r=n(93379),o=n.n(r),i=n(7795),a=n.n(i),c=n(90569),u=n.n(c),s=n(3565),l=n.n(s),f=n(19216),p=n.n(f),d=n(44589),y=n.n(d),h=n(49502),m={};m.styleTagTransform=y(),m.setAttributes=l(),m.insert=u().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),o()(h.Z,m);var b=h.Z&&h.Z.locals?h.Z.locals:void 0,v=n(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 A=["dismissText","classes","onDismiss","children"];function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==g(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.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(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e){var t,n=e.dismissText,r=void 0===n?"Ok":n,o=e.classes,i=void 0===o?[]:o,a=e.onDismiss,c=e.children,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,A);return(0,v.jsxs)("div",x(x({className:[b.dialog].concat((t=i,function(e){if(Array.isArray(e))return j(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}(t)||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(" ")},u),{},{children:[c,r&&(0,v.jsx)("button",{className:b.button,onClick:a,children:r})]}))}},41051:function(e,t,n){var r=n(45697),o=n.n(r),i=n(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 c=["name","className","collection"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.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(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l={brands:"fab",default:"fa",solid:"fas",round:"far"};function f(e){var t=e.name,n=e.className,r=e.collection,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c),a=l[r],f="fa-".concat(t);return(0,i.jsx)("span",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:[n,a,f].join(" ")},o))}f.propTypes={name:o().string.isRequired,className:o().string,collection:o().string},f.defaultProps={collection:"default",className:""},t.Z=f},62092:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(41051),o=n(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 c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.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(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){var t=e.collection,n=e.icon,i=e.text,c=e.children,s=e.onClick,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a);return(0,o.jsxs)("button",u(u({onClick:s},l),{},{children:[(0,o.jsx)(r.Z,{collection:t,name:n})," ",i||c]}))}},2968:function(e,t,n){n.d(t,{Z:function(){return S}});var r=n(45697),o=n.n(r),i=n(41051),a=n(93379),c=n.n(a),u=n(7795),s=n.n(u),l=n(90569),f=n.n(l),p=n(3565),d=n.n(p),y=n(19216),h=n.n(y),m=n(44589),b=n.n(m),v=n(87617),g={};g.styleTagTransform=b(),g.setAttributes=d(),g.insert=f().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=h(),c()(v.Z,g);var A=v.Z&&v.Z.locals?v.Z.locals:void 0,w=n(85893);function x(e){return x="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},x(e)}var E=["href","children","external","showExternal"];function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==x(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==x(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===x(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){var t=e.href,n=e.children,r=e.external,o=e.showExternal,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,E),c=Object.assign({href:t},a,r&&{rel:"noreferrer",target:"_blank"});return(0,w.jsxs)("a",k(k({},c),{},{children:[n,r&&o&&(0,w.jsx)(i.Z,{className:A.icon,name:"arrow-up-right-from-square"})]}))}C.propTypes={href:o().string.isRequired,children:o().oneOfType([o().arrayOf(o().node),o().node]).isRequired,external:o().bool.isRequired,showExternal:o().bool},C.defaultProps={external:!1,showExternal:!0};var S=C},64261:function(e,t,n){n.d(t,{X:function(){return h},Z:function(){return y}});var r=n(73935),o=n(67294),i=n(45697),a=n.n(i),c=n(85893);function u(e){return u="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},u(e)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===u(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d={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",pointerEvents:"none"},content:{display:"block",pointerEvents:"all"}};function y(e){var t=e.onDismiss,n=e.centerOnly,i=void 0!==n&&n,a=e.children,u=(0,o.useRef)(),s=(0,o.useCallback)((function(e){t&&u.current&&e.target.contains(u.current)&&(e.stopPropagation(),t())}),[u,t]),l=i?f(f({},d.wrapper),d.centerOnly):d.wrapper;return r.createPortal((0,c.jsx)("div",{onClick:s,style:l,children:(0,c.jsx)("div",{ref:u,style:d.content,children:a})}),document.getElementById("modal-root"))}function h(){var e,t,n=(e=(0,o.useState)(!1),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,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.")}()),r=n[0],i=n[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])]}y.propTypes={onDismiss:a().func}},10593:function(e,t,n){n.d(t,{Z:function(){return j}});var r=n(93379),o=n.n(r),i=n(7795),a=n.n(i),c=n(90569),u=n.n(c),s=n(3565),l=n.n(s),f=n(19216),p=n.n(f),d=n(44589),y=n.n(d),h=n(92127),m={};m.styleTagTransform=y(),m.setAttributes=l(),m.insert=u().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),o()(h.Z,m);var b=h.Z&&h.Z.locals?h.Z.locals:void 0,v=n(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 A=["children"];function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==g(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.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(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,A);return(0,v.jsxs)("div",x(x({},n),{},{className:b.spinner,children:[(0,v.jsx)("i",{className:"".concat(b.icon," fa fa-spinner")}),t]}))}},18311:function(e,t,n){n.d(t,{Z:function(){return w},v:function(){return g}});var r=n(50361),o=n.n(r),i=n(63105),a=n.n(i),c=n(24350),u=n.n(c),s=n(67294),l=n(95998),f=n(2596),p=n(85893);function d(e){return d="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},d(e)}function y(){y=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new C(o||[]);return r(a,"_invoke",{value:E(e,n,c)}),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function p(){}function h(){}function m(){}var b={};u(b,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,i)&&(b=g);var A=m.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=l(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==d(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function E(e,t,n){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(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:B}}function B(){return{value:void 0,done:!0}}return h.prototype=m,r(A,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=u(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,c,"GeneratorFunction")),e.prototype=Object.create(A),e},e.awrap=function(e){return{__await:e}},w(x.prototype),u(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(A),u(A,c,"Generator"),u(A,i,(function(){return this})),u(A,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,C.prototype={constructor:C,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(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=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 t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.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 c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){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&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e,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.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){b(i,r,o,a,c,"next",e)}function c(e){b(i,r,o,a,c,"throw",e)}a(void 0)}))}}var g=(0,s.createContext)({keycodes:[],behaviours:[],behaviors:{},behaviorBinds:[],glyphs:[]}),A=function(e){return e.definitions};function w(e){var t=e.children,n=(0,l.v9)(A),r=(0,l.I0)();if((0,s.useEffect)((function(){v(y().mark((function e(){var t,i,c,s,l,f,p,d;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===n){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Promise.all([j(),x()]);case 4:t=e.sent,i=h(t,2),c=h(i[0],2),s=c[0],l=c[1],f=i[1],p=o()(f.behaviors),d=o()(f.bindings),s.indexed=u()(s,"code"),d.indexed=u()(d,"code"),d.context={none:d.filter((function(e){return!e.context})),macros:a()(d,{context:"macros"}),encoders:a()(d,{context:"encoders"})},d.byContext={none:u()(d.context.none,"code"),macros:u()(d.context.macros,"code"),encoders:u()(d.context.encoders,"code")},r({type:"DEFINITIONS_SET",definitions:{keycodes:s,behaviours:d,behaviors:p,behaviorBinds:d,glyphs:l}});case 17:case"end":return e.stop()}}),e)})))()}),[n,r]),n)return(0,p.jsx)(g.Provider,{value:n,children:t})}function x(){return E.apply(this,arguments)}function E(){return(E=v(y().mark((function e(){var t,r,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(n.t.bind(n,95130,23));case 2:return t=e.sent,r=t.behaviorSchemas,o=t.behaviorBindings,e.abrupt("return",{behaviors:r,bindings:o});case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(){return k.apply(this,arguments)}function k(){return(k=v(y().mark((function e(){var t,r,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(712).then(n.t.bind(n,52779,23));case 2:return t=e.sent,r=t.keycodes,o=t.keycodeGlyphs,e.abrupt("return",[(0,f.G)(r),o]);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},20817:function(e,t,n){n.d(t,{S:function(){return c},V:function(){return a}});var r=n(67294),o=n(4803),i=n(85893),a=(0,r.createContext)({layout:[],bindingCount:0,wrapperDimensions:{},wrapperStyle:{}});function c(e){var t=e.layout,n=e.children,c=(0,r.useMemo)((function(){return t.length}),[t.length]),u=(0,r.useMemo)((function(){return(0,o.mY)(t)}),[t]),s=(0,r.useMemo)((function(){return(0,o.fI)(u)}),[u]),l={layout:t,bindingCount:c,wrapperDimensions:u,wrapperStyle:s};return(0,i.jsx)(a.Provider,{value:l,children:n})}},80031:function(e,t,n){n.d(t,{Yo:function(){return l},qM:function(){return i},t6:function(){return s}});var r=n(2968),o=n(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"}),c=(0,o.jsx)(r.Z,{external:!0,href:"https://nickcoutsos.github.io/keymap-layout-tools/",children:"Keymap Layout Tools - Helper"}),u=(0,o.jsx)(r.Z,{external:!0,href:"https://discord.com/users/115507966555193345",children:"Discord - nickcoutsos#4351"}),s=(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:u})]})]}),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 ",c,"."]})},28291:function(e,t,n){n.d(t,{F6:function(){return p},md:function(){return d},pR:function(){return u},tY:function(){return y}});var r=n(57557),o=n.n(r),i=n(97168),a=n(62412),c=n(50868),u=function(e){return e.keyboard.keymap.behaviors},s=function(e,t,n){var r=function(e){var t,n,r;return(null===(t=e.properties.compatible)||void 0===t?void 0:t.parsed)||(null===(n=e.properties.compatible)||void 0===n||null===(r=n.raw)||void 0===r?void 0:r.replace(/"/g,""))}(e),o=n[r];return o?Object.keys(o.properties).reduce((function(t,n){var r=o.properties[n],i=e.properties[n];return"phandle-array"===r.type&&i&&t.push(i.parsed),t}),[]):[]},l=(0,i.oM)({name:"behaviors",initialState:[],reducers:{addBehavior:function(e,t){e.push(t.payload.behavior)},updateBehavior:function(e,t){e[t.payload.behaviorIndex]=o()(t.payload.behavior,"params"),(0,a.resolveBehaviorParams)(e)},deleteBehavior:function(e,t){e.splice(t.payload.behaviorIndex,1)}},extraReducers:function(e){e.addCase(c.fD,(0,c.Ie)(s))}}),f=l.actions,p=f.addBehavior,d=f.updateBehavior,y=f.deleteBehavior;t.ZP=l.reducer},2732:function(e,t,n){n.d(t,{CG:function(){return f},DP:function(){return a},SD:function(){return y},ij:function(){return s},l3:function(){return p},nJ:function(){return l},pd:function(){return d}});var r=n(97168),o=n(50868);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=function(e){return e.keyboard.keymap.combos},c=(0,r.oM)({name:"combos",initialState:[],reducers:{updateComboBinding:function(e,t){e[t.payload.comboIndex].properties.bindings={parsed:t.payload.bindings}},updateComboKeypositions:function(e,t){e[t.payload.comboIndex].properties["key-positions"]={parsed:t.payload.keyPositions}},createCombo:function(e){e.push({name:"new_combo",labels:[],properties:{bindings:{parsed:[{value:"&trans",params:[]}]},"key-positions":{parsed:[]}}})},renameCombo:function(e,t){e[t.payload.index].name=t.payload.name},deleteCombo:function(e,t){e.splice(t.payload.index,1)},customizeCombo:function(e,t){var n=t.payload,r=n.index,o=n.combo;e[r]=o}},extraReducers:function(e){var t=(0,o.Ie)();e.addCase(o.fD,(function(e,n){var r=n.payload.positionMapping;t(e,n);var o,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);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,c=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw a}}}}(e);try{for(a.s();!(o=a.n()).done;){var c,u,s=o.value.properties;null!==(c=s.layers)&&void 0!==c&&null!==(u=c.parsed)&&void 0!==u&&u.length&&(s.layers.parsed=s.layers.parsed.reduce((function(e,t){var n=r[t];return null!==n&&e.push(n),e}),[]))}}catch(e){a.e(e)}finally{a.f()}}))}}),u=c.actions,s=u.updateComboBinding,l=u.updateComboKeypositions,f=u.createCombo,p=u.renameCombo,d=u.deleteCombo,y=u.customizeCombo;t.ZP=c.reducer},50868:function(e,t,n){n.d(t,{Ie:function(){return m},fD:function(){return y}});var r=n(27361),o=n.n(r),i=n(97168),a=n(41696);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={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function f(e,t,n,o){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new C(o||[]);return r(a,"_invoke",{value:E(e,n,c)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var d={};function y(){}function h(){}function m(){}var b={};l(b,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,i)&&(b=g);var A=m.prototype=y.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,u){var s=p(e[r],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==c(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,u)}),(function(e){o("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,u)}))}u(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function E(e,t,n){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(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=p(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=p(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:B}}function B(){return{value:void 0,done:!0}}return h.prototype=m,r(A,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,s,"GeneratorFunction")),e.prototype=Object.create(A),e},e.awrap=function(e){return{__await:e}},w(x.prototype),l(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(A),l(A,s,"Generator"),l(A,i,(function(){return this})),l(A,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,C.prototype={constructor:C,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(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=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 t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.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 c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){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&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var s=u().mark(b);function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);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,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function f(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){var n=e.value,r=e.params,i=o()(t,n,{});return(0,a.a)(r,i).reduce((function(e,t,n){return"layer"===t&&e.push(r[n]),e}),[])}var y=(0,i.PH)("layers/indexChanged",(function(e,t,n,r,o){var i=function(e,t,n){var r,o=function(e){if(Array.isArray(e))return p(e)}(r=n.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===t?o.map((function(t){return t===e?null:t>e?t-1:t})):o.map((function(r){var o=r>e&&r>t,i=r<e&&r<t,a=e<r&&r<t;return r===e?t===n.length?t-1:t:o||i?r:a?r-1:r+1}))}(e,t,n);return{payload:{currentIndex:e,targetIndex:t,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(t,n){var r,i=n.payload,a=i.sources,c=i.behaviorSchemas,u=i.positionMapping,s=a.behaviours,f=a.defines,p=l(b(t,s,c,e));try{for(p.s();!(r=p.n()).done;){var d,y=r.value,h=o()(f,y.value,y.value);Number.isNaN(Number(h))||(h=Number(h)),y.value=null===(d=u[h])||void 0===d?void 0:d.toString(),void 0===y.value&&(y.value="0",y._isPlaceholder=!0)}}catch(e){p.e(e)}finally{p.f()}}}function b(e,t,n,r){var o,i,a,c,f,p,y,h,m,b,v,g;return u().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:o=l(e),u.prev=1,o.s();case 3:if((i=o.n()).done){u.next=54;break}a=i.value,c=l(r(a,t,n)),u.prev=6,c.s();case 8:if((f=c.n()).done){u.next=44;break}p=f.value,y=l(p),u.prev=11,y.s();case 13:if((h=y.n()).done){u.next=34;break}m=h.value,b=l(d(m,t)),u.prev=16,b.s();case 18:if((v=b.n()).done){u.next=24;break}return g=v.value,u.next=22,g;case 22:u.next=18;break;case 24:u.next=29;break;case 26:u.prev=26,u.t0=u.catch(16),b.e(u.t0);case 29:return u.prev=29,b.f(),u.finish(29);case 32:u.next=13;break;case 34:u.next=39;break;case 36:u.prev=36,u.t1=u.catch(11),y.e(u.t1);case 39:return u.prev=39,y.f(),u.finish(39);case 42:u.next=8;break;case 44:u.next=49;break;case 46:u.prev=46,u.t2=u.catch(6),c.e(u.t2);case 49:return u.prev=49,c.f(),u.finish(49);case 52:u.next=3;break;case 54:u.next=59;break;case 56:u.prev=56,u.t3=u.catch(1),o.e(u.t3);case 59:return u.prev=59,o.f(),u.finish(59);case 62:case"end":return u.stop()}}),s,null,[[1,56,59,62],[6,46,49,52],[11,36,39,42],[16,26,29,32]])}},80736:function(e,t,n){n.d(t,{En:function(){return j},Q:function(){return h},QR:function(){return E},UH:function(){return w},V6:function(){return b},WF:function(){return y},Xv:function(){return d},c7:function(){return g},sT:function(){return A},v1:function(){return x},vc:function(){return m},vl:function(){return l},zi:function(){return v}});var r=n(98913),o=n.n(r),i=n(97168),a=n(50868);function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);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,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s="&trans",l=function(e){return e.keyboard.keymap.layers},f=(0,i.oM)({name:"layers",initialState:[],reducers:{createLayer:function(e,t){e.push({name:"layer_".concat(e.length),labels:[],properties:{bindings:{parsed:o()(t.payload.bindingCount,(function(){return function(){return{value:arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,params:[]}}()}))}}})},updateLayerMetadata:function(e,t){var n=t.payload,r=n.layerIndex,o=n.name,i=n.label;o&&(e[r].name=o),void 0!==i&&(e[r].properties.label={parsed:i})},renameLayer:function(e,t){e[t.payload.index].name=t.payload.name},repositionLayer:function(e,t){var n=t.payload,r=n.currentIndex,o=n.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,t){e.splice(t.payload.index,1)},updateKeyBinding:function(e,t){e[t.payload.layerIndex].properties.bindings.parsed[t.payload.bindIndex]=t.payload.binding},updateSensorBindings:function(e,t){var n=t.payload,r=n.layerIndex,o=n.sensorIndex,i=n.bindings,a=e[r].properties;a["sensor-bindings"]=a["sensor-bindings"]||{parsed:[]},a["sensor-bindings"].parsed[o]=i},rebindTransparentToKeyPress:function(e,t){var n,r=c(e[t.payload.layerIndex].properties.bindings.parsed);try{for(r.s();!(n=r.n()).done;){var o=n.value;"&trans"===o.value&&(o.value="&kp",o.params=[])}}catch(e){r.e(e)}finally{r.f()}},rebindTransparentToNone:function(e,t){var n,r=c(e[t.payload.layerIndex].properties.bindings.parsed);try{for(r.s();!(n=r.n()).done;){var o=n.value;"&trans"===o.value&&(o.value="&none",o.params=[])}}catch(e){r.e(e)}finally{r.f()}},rebindNoneToKeypress:function(e,t){var n,r=c(e[t.payload.layerIndex].properties.bindings.parsed);try{for(r.s();!(n=r.n()).done;){var o=n.value;"&none"===o.value&&(o.value="&kp",o.params=[])}}catch(e){r.e(e)}finally{r.f()}},rebindNoneToTransparent:function(e,t){var n,r=c(e[t.payload.layerIndex].properties.bindings.parsed);try{for(r.s();!(n=r.n()).done;){var o=n.value;"&none"===o.value&&(o.value="&trans",o.params=[])}}catch(e){r.e(e)}finally{r.f()}},rebindEmptyKeypressToTransparent:function(e,t){var n,r=c(e[t.payload.layerIndex].properties.bindings.parsed);try{for(r.s();!(n=r.n()).done;){var o,i=n.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,t){var n,r=c(e[t.payload.layerIndex].properties.bindings.parsed);try{for(r.s();!(n=r.n()).done;){var o,i=n.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 t;return[e.properties.bindings.parsed,(null===(t=e.properties["sensor-bindings"])||void 0===t?void 0:t.parsed)||[]]})))}}),p=f.actions,d=p.createLayer,y=(p.renameLayer,p.repositionLayer),h=p.deleteLayer,m=p.updateLayerMetadata,b=p.updateKeyBinding,v=p.updateSensorBindings,g=p.rebindTransparentToKeyPress,A=p.rebindTransparentToNone,w=p.rebindNoneToKeypress,x=p.rebindNoneToTransparent,E=p.rebindEmptyKeypressToTransparent,j=p.rebindEmptyKeypressToNone;t.ZP=f.reducer},12736:function(e,t,n){n.d(t,{F0:function(){return l},I2:function(){return s},bU:function(){return i},vo:function(){return f},xd:function(){return u}});var r=n(97168),o=n(50868),i=function(e){return e.keyboard.keymap.macros},a=(0,r.oM)({name:"macros",initialState:[],reducers:{addMacro:function(e,t){e.push(t.payload)},deleteMacro:function(e,t){e.splice(t.payload.index,1)},updateMacroBindings:function(e,t){var n=t.payload,r=n.index,o=n.bindings;e[r].properties.bindings.parsed=o},customizeMacroOptions:function(e,t){Object.assign(e[t.payload.macroIndex],t.payload.options)}},extraReducers:function(e){e.addCase(o.fD,(0,o.Ie)())}}),c=a.actions,u=c.addMacro,s=c.deleteMacro,l=c.updateMacroBindings,f=c.customizeMacroOptions;t.ZP=a.reducer},4803:function(e,t,n){n.d(t,{eG:function(){return c},fI:function(){return s},mY:function(){return u}});var r=n(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,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.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(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){return t.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 u(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,t){var n=e.x,r=e.y,o=t.max;return{x:Math.max(n,o.x),y:Math.max(r,o.y)}}),{x:0,y:0})}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.scale,r=void 0===n?1:n,o=t.overrides,c=void 0===o?{}:o,s=Array.isArray(e)?u(e):e;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:"".concat(s.x*r,"px"),height:"".concat(s.y*r,"px"),margin:"0 auto",padding:"0 40px 40px"},c)}},69247:function(e,t,n){n.d(t,{Ph:function(){return b},oT:function(){return d},zx:function(){return y}});var r=n(20256),o=n(95998),i=n(85893),a=["children","style"],c=["label"];function u(e){return u="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},u(e)}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===u(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=e.style,n=void 0===t?{}:t,r=e.children;return(0,i.jsx)("div",{style:f(f({},{height:"38px",lineHeight:"38px"}),n),children:r})}function y(e){var t=e.children,n=e.style,r=void 0===n?{}:n,o=s(e,a);return(0,i.jsx)(d,{style:r,children:(0,i.jsx)("button",f(f({style:{height:"100%"}},o),{},{children:t}))})}var h=window.matchMedia("(prefers-color-scheme: dark)"),m=[0,5,10,20,30,40,50,60,70,80,90].reduce((function(e,t){return e["neutral".concat(t)]="hsl(0, 0%, ".concat(t,"%)"),e}),{});function b(e){var t=e.label,n=s(e,c),a=(0,o.v9)((function(e){return e})).theme,u="dark"===a||"system"===a&&h.matches;return(0,i.jsxs)("div",{style:{display:"inline-block",width:"auto"},children:[(0,i.jsx)("label",{style:{display:"block",width:"100%",fontSize:"120%",color:"var(--fg)"},children:t}),(0,i.jsx)(r.ZP,f({styles:{container:function(e,t){return f(f({},e),{},{display:"inline-block"})},menu:function(e){return f(f({},e),{},{width:"max-content",zIndex:10})}},theme:function(e){return f(f({},e),{},{colors:f(f({},e.colors),u?m:{})})},isSearchable:!1},n))]})}},8374:function(e,t,n){n.d(t,{e:function(){return I}});var r=n(67294),o=n(95998),i=n(27484),a=n.n(i),c=n(84110),u=n.n(c),s=n(45697),l=n.n(s),f=n(41051),p=n(2968),d=n(10593),y=n(34383),h=n(85893);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}a().extend(u());var b=["success"],v=["action_required","cancelled","failure","skipped","stale","timed_out"];function g(e){var t,n,o=e.timestamp,i=(t=(0,r.useState)(a()(o).fromNow()),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(t,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.")}()),c=i[0],u=i[1];return(0,r.useEffect)((function(){u(a()(o).fromNow());var e=setInterval((function(){u(a()(o).fromNow())}),6e4);return function(){return clearInterval(e)}}),[o,u]),(0,h.jsx)("span",{title:o,children:c})}function A(e){var t=e.latestRun,n=b.includes(t.conclusion)?(0,h.jsx)(f.Z,{name:"check"}):v.includes(t.conclusion)?(0,h.jsx)(f.Z,{name:"xmark"}):(0,h.jsx)(d.Z,{});return(0,h.jsxs)(p.Z,{href:t.html_url,className:y.Z.buildDetails,external:!0,showExternal:!1,children:[(0,h.jsxs)("span",{className:y.Z.buildSummary,children:["Firmware build (",(0,h.jsx)("code",{children:t.head_sha.slice(0,5)}),") ",n,(0,h.jsx)("br",{}),(0,h.jsx)(g,{timestamp:t.updated_at})]}),(0,h.jsx)(f.Z,{name:"file-arrow-down",className:[y.Z.buildStatus,y.Z.buildSuccess].join(" ")})]})}A.propTypes={latestRun:l().shape({id:l().number.isRequired,name:l().string.isRequired,head_sha:l().string.isRequired,status:l().oneOf(["completed","action_required","cancelled","failure","neutral","skipped","stale","success","timed_out","in_progress","queued","requested","waiting"]).isRequired,conclusion:l().oneOf([null,"action_required","cancelled","failure","neutral","success","skipped","stale","timed_out"]),created_at:l().string.isRequired,updated_at:l().string.isRequired})};var w=A,x=n(27926),E=n(96186),j=n(64261);function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O(e){var t,n,o=e.onConfirm,i=e.onCancel,a=(t=(0,r.useState)(""),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(t,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.")}()),c=a[0],u=a[1];return(0,h.jsx)(j.Z,{children:(0,h.jsxs)(E.Z,{dismissText:null,children:[(0,h.jsx)("h2",{children:"Commit keymap changes"}),(0,h.jsx)("textarea",{style:{width:"100%"},placeholder:"Message (optional)",value:c,onChange:function(e){u(e.target.value)}}),(0,h.jsxs)("p",{style:{textAlign:"center",gap:"10px"},children:[(0,h.jsx)(x.Z,{onClick:function(){return o(c)},children:"Commit"}),(0,h.jsx)(x.Z,{onClick:i,secondary:!0,children:"Cancel"})]})]})})}O.propTypes={onConfirm:l().func.isRequired,onCancel:l().func.isRequired};var C=O,S=n(93965);function B(e){return B="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},B(e)}function P(){P=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:w(e,n,c)}),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function p(){}function d(){}function y(){}var h={};u(h,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(O([])));b&&b!==t&&n.call(b,i)&&(h=b);var v=y.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function o(r,i,a,c){var u=l(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==B(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function w(e,t,n){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(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=y,r(v,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:d,configurable:!0}),d.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(A.prototype),u(A.prototype,a,(function(){return this})),e.AsyncIterator=A,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new A(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,c,"Generator"),u(v,i,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,k.prototype={constructor:k,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(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=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 t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.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 c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){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&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function L(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}var _=function(e){return e};function I(){var e=(0,o.I0)(),t=(0,o.v9)(_),n=t.source,i=t.sourceOther,a=t.keyboard,c=t._unmodifiedKeymap,u=t.saving,s=t.experimentalSettings,l=t.latestBuild,p=a&&!Object.is(a.keymap,c),m=(0,r.useCallback)((function(t){var n,r=i.github,o=r.repository,c=r.branch;(n=P().mark((function n(){var r,u,l,f;return P().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e({type:"COMMIT_DIALOG_CLOSE"}),e({type:"KEYMAP_SAVE_START"}),r=a.layout,u=a.keymap,n.prev=3,n.next=6,S.Z.commitChanges(o,c,r,u,{message:t,experimentalSettings:s,keyboard:i.github.keyboard});case 6:l=n.sent,f=l.data,e({type:"KEYMAP_SAVE_SUCCESS",keymap:f}),n.next=14;break;case 11:n.prev=11,n.t0=n.catch(3),e({type:"KEYMAP_SAVE_FAILURE"});case 14:case"end":return n.stop()}}),n,null,[[3,11]])})),function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){L(i,r,o,a,c,"next",e)}function c(e){L(i,r,o,a,c,"throw",e)}a(void 0)}))})()}),[i,a,e,s]);return(0,h.jsxs)("div",{className:y.Z.pickerActions,children:["github"===n&&!i.github.isProtected&&(0,h.jsx)(x.Z,{title:"Commit keymap changes to GitHub repository",disabled:!p,onClick:function(){e({type:"COMMIT_DIALOG_OPEN"})},children:u?(0,h.jsxs)(h.Fragment,{children:["Saving ",(0,h.jsx)(d.Z,{})]}):"Save changes"}),"github"===n&&i.github.isProtected&&(0,h.jsxs)(x.Z,{title:"Cannot commit changes to this branch",disabled:!0,children:[(0,h.jsx)(f.Z,{name:"shield"})," Read-only"]}),t.commitDialogOpen&&(0,h.jsx)(C,{onConfirm:m,onCancel:function(){return e({type:"COMMIT_DIALOG_CLOSE"})}}),l&&(0,h.jsx)(w,{latestRun:l})]})}},93965:function(e,t,n){var r=n(9669),o=n.n(r),i=n(26729),a=n.n(i),c=n(28962);function u(e){return u="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},u(e)}function s(){s=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function f(e,t,n,o){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new C(o||[]);return r(a,"_invoke",{value:E(e,n,c)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var d={};function y(){}function h(){}function m(){}var b={};l(b,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,i)&&(b=g);var A=m.prototype=y.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var s=p(e[r],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==u(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function E(e,t,n){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(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=p(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=p(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:B}}function B(){return{value:void 0,done:!0}}return h.prototype=m,r(A,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,c,"GeneratorFunction")),e.prototype=Object.create(A),e},e.awrap=function(e){return{__await:e}},w(x.prototype),l(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(A),l(A,c,"Generator"),l(A,i,(function(){return this})),l(A,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,C.prototype={constructor:C,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(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=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 t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.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 c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){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&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function l(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){l(i,r,o,a,c,"next",e)}function c(e){l(i,r,o,a,c,"throw",e)}a(void 0)}))}}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function y(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,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===u(t)?t:String(t)}var v="".concat(c.ny.replace("http","ws"),"/github/events"),g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(E,e);var t,n,r,i,a,l,b,g,A,w,x=(A=E,w=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,t=h(A);if(w){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}(this,e)});function E(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(y(e=x.call.apply(x,[this].concat(n))),"token",null),m(y(e),"initializing",!1),m(y(e),"installations",null),m(y(e),"repositories",null),m(y(e),"repoInstallationMap",null),m(y(e),"features",null),m(y(e),"socket",null),e}return t=E,n=[{key:"_request",value:(g=f(s().mark((function e(t){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"string"==typeof t&&(t={url:t}),t.url.startsWith("/")&&(t.url="".concat(c.ny).concat(t.url)),t.headers=Object.assign({},t.headers),this.token&&!t.headers.Authorization&&(t.headers.Authorization="Bearer ".concat(this.token)),e.prev=4,e.next=7,o()(t);case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(4),401===(null===(n=e.t0.response)||void 0===n?void 0:n.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(s().mark((function t(){var n,r,o,i,a,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.initEvents(),n="".concat(c.ny,"/github/installation"),(r=new URLSearchParams(window.location.search)).get("setup_action")&&r.get("installation_id")&&e.beginLoginFlow(),!r.get("blocked")){t.next=7;break}return setTimeout((function(){return e.emit("blocked")})),t.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){t.next=22;break}return e.token=window.localStorage.auth_token,t.next=13,e._request(n);case 13:i=t.sent,a=i.data,u=a.installations.filter((function(e){return e.suspended_at})),a.installations.length===u.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 t.stop()}}),t)})))()),this.initializing}},{key:"initEvents",value:function(){var e=this,t=[],n=function(n){e.socket.readyState!==window.WebSocket.OPEN?(t.push(n),console.log("buffering websocket message",{readyState:e.socket.readyState},n)):e.socket.send(n)};this.socket=new window.WebSocket(v),this.socket.onopen=function(){console.log(new Date,"connected to console"),function(){for(var n;n=t.shift();)console.log("sending buffered websocket message",n),e.socket.send(n)}(),setInterval((function(){n(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(t){var n=JSON.parse(t.data);"workflow_run"===n.event&&e.emit("build-update",n.workflow_run)},this.on("authenticated",(function(){var t;null!==(t=e.installations)&&void 0!==t&&t.length&&(e.fetchAvailableFeatures(),n(JSON.stringify({message:"authorize",data:e.token})))}))}},{key:"beginLoginFlow",value:function(){window.localStorage.removeItem("auth_token"),window.location.href="".concat(c.ny,"/github/authorize")}},{key:"beginInstallAppFlow",value:function(){window.location.href="https://github.com/apps/".concat(c.cO,"/installations/new")}},{key:"manageInstallationRepos",value:function(e){var t=this.installations.find((function(t){return t.id===e}));window.location.href=t.html_url}},{key:"isGitHubAuthorized",value:function(){return!!this.token}},{key:"isAppSuspendedForRepoSelection",value:function(){var e,t,n;return(null===(e=this.installations)||void 0===e?void 0:e.length)>0&&(null===(t=this.installations)||void 0===t?void 0:t.every((function(e){return e.suspended_at})))&&(null===(n=this.installations)||void 0===n?void 0:n.some((function(e){return"all"===e.repository_selection})))}},{key:"isAppInstalled",value:function(){var e,t;return(null===(e=this.installations)||void 0===e?void 0:e.length)&&(null===(t=this.repositories)||void 0===t?void 0:t.length)}},{key:"fetchRepoBranches",value:(b=f(s().mark((function e(t){var n,r,o,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=encodeURIComponent(this.repoInstallationMap[t.full_name]),r=encodeURIComponent(t.full_name),e.next=4,this._request("/github/installation/".concat(n,"/").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(s().mark((function e(t,n){var r,o,i,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=encodeURIComponent(this.repoInstallationMap[t.full_name]),o=encodeURIComponent(t.full_name),e.next=4,this._request("/github/installation/".concat(r,"/").concat(o,"/keyboards/").concat(n));case 4:return i=e.sent,a=i.data,e.abrupt("return",a);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"fetchLayoutAndKeymap",value:(a=f(s().mark((function e(t,n){var r,o,i,a,u,l,f,p,d,y,h,m,b,v,g,A=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(A.length>2&&void 0!==A[2]?A[2]:{}).keyboard,o=encodeURIComponent(this.repoInstallationMap[t]),i=encodeURIComponent(t),a=new URL("".concat(c.ny,"/github/keyboard-files/").concat(o,"/").concat(i)),u=new URLSearchParams,n&&u.set("branch",n),r&&u.set("keyboard",r),a.search=u.toString(),e.prev=8,e.next=11,this._request(a.toString());case 11:return l=e.sent,f=l.data,p=f.info.layouts,d=f.keymap,y=Object.keys(f.info.layouts)[0],h=d.chosen["zmk,matrix_transform"]?d.chosen["zmk,matrix_transform"].replace(/^&/,""):null,m=p[h]||p[y],b=m.layout,e.abrupt("return",{layoutMetadata:m,layout:b,keymap:d,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,t){return a.apply(this,arguments)})},{key:"fetchAvailableFeatures",value:(i=f(s().mark((function e(){var t,n;return s().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(c.ny,"/github/features"))),e.next=5,this.features;case 5:return t=e.sent,n=t.data,e.abrupt("return",n);case 8:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"fetchBuildStatus",value:(r=f(s().mark((function e(t,n){var r,o,i,a,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=encodeURIComponent(this.repoInstallationMap[t]),o=encodeURIComponent(t),i=new URL("".concat(c.ny,"/github/latest-run/").concat(r,"/").concat(o,"/").concat(encodeURIComponent(n))),e.next=5,this._request(i.toString());case 5:return a=e.sent,u=a.data,e.abrupt("return",u);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"commitChanges",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=o.message,a=void 0===i?null:i,u=o.experimentalSettings,s=void 0===u?{}:u,l=o.keyboard,f=encodeURIComponent(this.repoInstallationMap[e]),p=encodeURIComponent(e),d=new URL("".concat(c.ny,"/github/keyboard-files/").concat(f,"/").concat(p,"/").concat(encodeURIComponent(t))),y=s.enableBehaviorEditing,h=new URLSearchParams({enableBehaviorEditing:void 0!==y&&y});return l&&h.set("keyboard",l),d.search=h.toString(),this._request({url:d.toString(),method:"POST",headers:{"Content-Type":"application/json"},data:{keyboard:l,keymap:r,message:a}})}}],n&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),E}(a()),A=new g;t.Z=A},21280:function(e,t,n){n.d(t,{ET:function(){return l},cO:function(){return u},u2:function(){return p}});var r=n(28962);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(){i=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function f(e,t,n,o){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new C(o||[]);return r(a,"_invoke",{value:E(e,n,c)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var d={};function y(){}function h(){}function m(){}var b={};l(b,c,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,c)&&(b=g);var A=m.prototype=y.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function i(r,a,c,u){var s=p(e[r],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==o(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,c,u)}),(function(e){i("throw",e,c,u)})):t.resolve(f).then((function(e){l.value=e,c(l)}),(function(e){return i("throw",e,c,u)}))}u(s.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function E(e,t,n){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(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=p(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=p(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:B}}function B(){return{value:void 0,done:!0}}return h.prototype=m,r(A,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,s,"GeneratorFunction")),e.prototype=Object.create(A),e},e.awrap=function(e){return{__await:e}},w(x.prototype),l(x.prototype,u,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(A),l(A,s,"Generator"),l(A,c,(function(){return this})),l(A,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,C.prototype={constructor:C,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(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=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 t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.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 c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){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&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function a(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function c(e){a(i,r,o,c,u,"next",e)}function u(e){a(i,r,o,c,u,"throw",e)}c(void 0)}))}}function u(){return s.apply(this,arguments)}function s(){return(s=c(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(r.ny,"/v2/local/keyboards"));case 2:return t=e.sent,e.abrupt("return",t.json());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e){return f.apply(this,arguments)}function f(){return(f=c(i().mark((function e(t){var n,o,a,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="v2/local/keyboards/".concat(encodeURIComponent(t)),o="".concat(r.ny,"/").concat(n),e.next=4,fetch(o);case 4:if((a=e.sent).ok){e.next=9;break}throw(c=new Error).response=a,c;case 9:return e.abrupt("return",a.json());case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e,t){return d.apply(this,arguments)}function d(){return(d=c(i().mark((function e(t,n){var o,a,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="v2/local/keyboards/".concat(encodeURIComponent(t),"/keymap"),a="".concat(r.ny,"/").concat(o),e.next=4,fetch(a,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});case 4:return c=e.sent,e.abrupt("return",c.json());case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},28962:function(e,t,n){function r(e){return e&&["1","on","yes","true"].includes(e.toString().toLowerCase())}n.d(t,{IX:function(){return u},cO:function(){return i},k0:function(){return a},ny:function(){return o},qo:function(){return c}});var o="https://zmk-keymap-editor.fly.dev",i="keymap-editor",a=r("true"),c=r("false"),u=r("true")},20484:function(e,t,n){var r=n(67294),o=n(20745),i=n(95998),a=n(93379),c=n.n(a),u=n(7795),s=n.n(u),l=n(90569),f=n.n(l),p=n(3565),d=n.n(p),y=n(19216),h=n.n(y),m=n(44589),b=n.n(m),v=n(51424),g={};g.styleTagTransform=b(),g.setAttributes=d(),g.insert=f().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=h(),c()(v.Z,g),v.Z&&v.Z.locals&&v.Z.locals,n(81802);var A=n(39087),w={};w.styleTagTransform=b(),w.setAttributes=d(),w.insert=f().bind(null,"head"),w.domAPI=s(),w.insertStyleElement=h(),c()(A.Z,w),A.Z&&A.Z.locals&&A.Z.locals;var x=n(81485),E=n(62092),j=n(39693),k=n.n(j),O=n(50361),C=n.n(O),S=n(63105),B=n.n(S),P=n(27361),L=n.n(P),_=n(41609),I=n.n(_),T=n(24350),Z=n.n(T),D=n(35161),N=n.n(D),M=n(95130),R=n(18311),G=n(2596),q=n(85893),Y=["children"];function F(e){return F="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},F(e)}function U(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):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 z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var K=function(e){var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Y).keymap,o=(0,r.useContext)(R.v),i=o.keycodes,a=o.behaviours,c=o.glyphs,u=(0,r.useContext)(x.J).settings,s=(0,r.useMemo)((function(){var e=window.navigator.platform.startsWith("Mac"),t=window.navigator.platform.startsWith("Win"),n=e?"mac":t&&"win";return(0,G.j)(c,{unicode:L()(u,"unicodeGlyphs",!0),platform:"auto"!==L()(u,"platformGlyphs","auto")?u.platformGlyphs:n})}),[c,u]),l=(0,r.useMemo)((function(){var e=n.behaviors.map((function(e){return(e=C()(e)).code="&".concat(e.labels[0]),e.compatible=e.properties.compatible.parsed,e}));(0,M.mergeBehaviorOverlays)(e,M.behaviorOverlays);var t=[].concat(U(a),U((e||[]).map((function(e){return{code:"&".concat(e.labels[0]),bind:"&".concat(e.labels[0]),name:e.name,description:'Custom behavior: "'.concat(e.properties.label.raw||e.name,'"'),params:e.params,context:e.context}}))),U(n.macros.map((function(e){return{code:"&".concat(e.labels[0]),name:e.name,description:"Custom macro",params:[]}}))));return t.indexed=Z()(t,"code"),t.context={none:t.filter((function(e){return!e.context})),macros:B()(t,{context:"macros"}),encoders:B()(t,{context:"encoders"})},t.byContext={none:Z()(t.context.none,"code"),macros:Z()(t.context.macros,"code"),encoders:Z()(t.context.encoders,"code")},t}),[a,n.behaviors,n.macros]),f=(0,r.useMemo)((function(){return I()(n)?[]:n.layers.map((function(e,t){return{code:t,description:e.name||"Layer ".concat(t)}}))}),[n]),p=(0,r.useMemo)((function(){return{code:i.indexed,behaviours:l.indexed,behavioursByContext:l.byContext,layer:Z()(f,"code"),defines:n.defines}}),[i,l,f,n.defines]),d=(0,r.useMemo)((function(){return{behaviour:l,code:i}}),[l,i]),y=(0,r.useMemo)((function(){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"none";return e.enum?e.enum.map((function(e){return"object"===F(e)?e:{code:e}})):e.raw?[]:(d[e]||console.error("cannot find target for",e),"behaviour"===e?d.behaviour.context[n]:d[e])}}),[d]),h=(0,r.useMemo)((function(){return[].concat(U(N()(i,"code")),U(Object.keys(n.defines||{})))}),[i,n.defines]);return(0,q.jsx)(x.c.Provider,{value:{getSearchTargets:y,mergedGlyphs:s,sources:p,identifiers:h},children:t})},W=n(45697),V=n.n(W),Q={},J=V().string.isRequired,X=V().arrayOf(V().shape(Q));Q.value=J,Q.params=X;var H=V().shape(Q),$=V().shape({index:V().number,name:V().string,properties:V().shape({bindings:V().shape({parsed:V().arrayOf(H).isRequired}).isRequired,"key-positions":V().shape({parsed:V().arrayOf(V().number).isRequired}).isRequired})}),ee=V().shape({index:V().number,name:V().string,properties:V().shape({bindings:V().shape({parsed:V().arrayOf(H).isRequired}).isRequired,"sensor-bindings":V().shape({parsed:V().arrayOf(H).isRequired})})}),te=V().shape({layers:V().arrayOf(ee).isRequired,combos:V().arrayOf($)}),ne=n(95872),re=n(7739),oe=n.n(re);function ie(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 ae=n(2024);function ce(e){return ce="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},ce(e)}function ue(e){return function(e){if(Array.isArray(e))return se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(e,t):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 se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ce(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ce(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pe=function(e){return e.name},de=function(e){return e.labels[0]},ye=function(e){var t;return null===(t=e.properties.label)||void 0===t?void 0:t.parsed};function he(e,t){var n=oe()(e,t);return Object.values(n).filter((function(e){return e.length>1}))}function me(e){var t=e.layers.map((function(e,t){return{location:"Keymap - Layer #".concat(t," (").concat(e.name,")"),path:"keymap.layers[".concat(t,"]"),name:pe(e)}})),n=e.combos.map((function(e,t){return{location:"Combos - Combo #".concat(t," (").concat(e.name,")"),path:"combos[".concat(t,"].name"),name:e.name}})),r=e.macros.map((function(e,t){return{location:"Macros - Macro #".concat(t," (").concat(pe(e),")"),path:"macros[".concat(t,"].name"),name:pe(e)}})),o=function(e){return e.map((function(e,t){return{location:"Behaviors - Behavior #".concat(t," (").concat(de(e),") - Name"),path:"behaviors[".concat(t,"].name"),name:pe(e)}}))}(e.behaviors),i=[].concat(ue(he(t,"name")),ue(he(n,"name")),ue(he(r,"name")),ue(he(o,"name"))),a=[].concat(ue(t.filter((function(e){return ae.includes(e.name)}))),ue(n.filter((function(e){return ae.includes(e.name)}))),ue(r.filter((function(e){return ae.includes(e.name)}))),ue(o.filter((function(e){return ae.includes(e.name)}))));return{duplicates:i,redefined:a,passwordMacros:ue(r.filter((function(e){return t=e.name,[/(^|[\b_])pass(word)?([\b_]|$)/].some((function(e){return t.match(e)}));var t})))}}function be(e){var t=he([].concat(e.layers.reduce((function(e,t,n){var r=ye(t);return r&&e.push({location:"Keymap - Layer #".concat(n," (").concat(t.name,")"),path:"keymap.layers[".concat(n,"].label"),label:r}),e}),[]),e.macros.reduce((function(e,t,n){return t.label&&e.push({location:"Macros - Macro #".concat(n," (").concat(ye(t),") - Label"),path:"macros[".concat(n,"].label"),label:ye(t)}),e}),[]),function(e){return e.reduce((function(e,t,n){var r=ye(t),o=de(t);return r&&e.push({location:"Behaviors - Behavior #".concat(n," (").concat(o,") - Label"),path:"behaviors[".concat(n,"].label"),label:r}),e}),[])}(e.behaviors)),"label");return{duplicates:t}}function ve(e){var t=oe()([].concat(e.macros.map((function(e,t){return{location:"Macros > Macro #".concat(t," (").concat(de(e),")"),path:"macros[".concat(t,"].name"),ref:de(e)}})),function(e){return e.map((function(e,t){return{location:"Behaviors - Behavior #".concat(t," (").concat(de(e),") - Bind"),path:"behaviors[".concat(t,"].bind"),ref:de(e)}}))}(e.behaviors)),"ref");return{duplicates:Object.values(t).reduce((function(e,t){return t.length>1&&e.push(t),e}),[])}}function ge(e){var t=[].concat(ue(e.layers.reduce((function(e,t,n){var r,o;return null===(r=t.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(n," (").concat(t.name,") - Key position ").concat(o),path:"keymap.layers[".concat(n,"].bindings[").concat(o,"]"),name:"&reset"})})),e}),[])),ue(e.macros.reduce((function(e,t,n){return t.properties.bindings.parsed.forEach((function(r,o){"&reset"===r.value&&e.push({location:"Macros - Macro #".concat(n," (").concat(t.name,") - Binding position ").concat(o),path:"keymap.macros[".concat(n,"].properties.bindings[").concat(o,"].parsed"),name:"&reset"})})),e}),[])),ue(e.combos.reduce((function(e,t,n){return t.properties.bindings.parsed.forEach((function(r,o){"&reset"===r.value&&e.push({location:"Combos - Combo #".concat(n," (").concat(t.name,")"),path:"keymap.combos[".concat(n,"].bindings[").concat(o,"]"),name:"&reset"})})),e}),[])),ue(e.behaviors.reduce((function(e,t,n){var r,o;return null===(r=t.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(n," (").concat(t.name,") - Bind position ").concat(o),path:"keymap.behaviors[".concat(n,"].parsed.bindings[").concat(o,"].parsed"),name:"&reset"})})),e}),[])));return{resetBindings:t}}var Ae=n(20817);function we(e){return function(e){if(Array.isArray(e))return Ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xe(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 xe(e,t){if(e){if("string"==typeof e)return Ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ee(e,t):void 0}}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var je=(0,r.lazy)((function(){return Promise.all([n.e(315),n.e(573),n.e(584),n.e(381)]).then(n.bind(n,98381))})),ke=(0,r.lazy)((function(){return Promise.all([n.e(315),n.e(573),n.e(584),n.e(198)]).then(n.bind(n,57198))})),Oe=(0,r.lazy)((function(){return Promise.all([n.e(712),n.e(315),n.e(573),n.e(326)]).then(n.bind(n,87326))})),Ce=(0,r.lazy)((function(){return Promise.all([n.e(315),n.e(573),n.e(634)]).then(n.bind(n,35634))})),Se=(0,r.lazy)((function(){return n.e(727).then(n.bind(n,727))}));function Be(e){var t,n,o=e.text,i=e.tabs,a=e.defaultTab,c=e.children,u=(t=(0,r.useState)(a),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,n)||xe(t,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.")}()),s=u[0],l=u[1];return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)("h3",{style:{display:"inline"},children:o}),(0,q.jsx)("ul",{className:ne.Z.editorModeTabs,children:i.map((function(e,t){var n=e.name,r=e.tabClasses,o=void 0===r?[]:r;return(0,q.jsx)("li",{onClick:function(){return l(t)},className:k()([s===t&&ne.Z.activeEditTab].concat(we(o))).join(" "),children:n},t)}))}),(0,q.jsx)(r.Suspense,{children:c[s]})]})}var Pe=function(e){return e.keyboard.keymap};function Le(e){var t=(0,i.v9)(Pe),n=(0,r.useContext)(Ae.V).layout,o=(0,r.useMemo)((function(){return function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({nodeNames:me(e),nodeLabels:be(e),nodeReferences:ve(e),deprecations:ge(e)},function(e){return{layoutMissingPositions:ie(e)}}(t))}(t,n)}),[t,n]),a=(0,r.useMemo)((function(){var e=o.nodeNames,t=o.nodeLabels,n=o.nodeReferences,r=o.deprecations,i=o.layoutMissingPositions;return e.duplicates.length+e.redefined.length+e.passwordMacros.length+t.duplicates.length+n.duplicates.length+r.resetBindings.length+i.length}),[o]),c=k()([{name:"layers",component:(0,q.jsx)(Oe,{})},{name:"combos",component:(0,q.jsx)(ke,{})},{name:"macros",component:(0,q.jsx)(Ce,{})},{name:(0,q.jsx)("span",{className:ne.Z.beta,children:"behaviors"}),component:(0,q.jsx)(je,{})},a>0&&{name:"warnings (".concat(a,")"),tabClasses:[ne.Z.warningTab],component:(0,q.jsx)(Se,{sanityChecks:o})}]);return(0,q.jsx)(K,{keymap:t,children:(0,q.jsx)(Be,{text:"Editor mode:",tabs:c,defaultTab:0,children:c.map((function(e,t){return(0,q.jsx)(r.Fragment,{children:e.component},t)}))})})}Le.propTypes={keymap:te};var _e=Le,Ie=n(41051),Te=n(2746),Ze={};Ze.styleTagTransform=b(),Ze.setAttributes=d(),Ze.insert=f().bind(null,"head"),Ze.domAPI=s(),Ze.insertStyleElement=h(),c()(Te.Z,Ze);var De=Te.Z&&Te.Z.locals?Te.Z.locals:void 0,Ne="https://github.com/nickcoutsos/keymap-editor";function Me(){return(0,q.jsxs)("div",{className:De.wrapper,children:[(0,q.jsx)("label",{children:"Need help? Open an issue:"}),(0,q.jsxs)("a",{className:De.githubLink,target:"_blank",rel:"noreferrer",href:Ne,children:[(0,q.jsx)(Ie.Z,{collection:"brands",name:"github"}),"/nickcoutsos/keymap-editor"]})]})}var Re=n(96186),Ge=n(64261);function qe(e){return qe="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},qe(e)}function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){Ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==qe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==qe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===qe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ze={description:{fontStyle:"italic",fontSize:"90%"}};function Ke(e){var t=e.settings,n=e.onUpdate,r=e.onClose;function o(e,r){n(Fe(Fe({},t),{},Ue({},e,r)))}return(0,q.jsx)(Ge.Z,{onDismiss:r,children:(0,q.jsxs)(Re.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:t.unicodeGlyphs,onChange:function(e){return o("unicodeGlyphs",e.target.checked)}}),"Use Unicode Glyphs"]})}),(0,q.jsxs)("p",{style:ze.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:t.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:ze.description,children:["Render symbols specific to your platform. E.g., render left/right meta key as ",(0,q.jsx)(Ie.Z,{name:"windows fa-brands"})," for Windows, or ⌘ for macOS."]})]})})}Ke.propTypes={settings:V().object.isRequired,onUpdate:V().func.isRequired,onClose:V().func.isRequired},Ke.defaultProps={settings:{}};var We=Ke;n(21280),n(8374);var Ve=n(94184),Qe=n.n(Ve),Je=n(13311),Xe=n.n(Je),He=n(28962),$e=k()([He.IX&&{id:"demo",name:"Demo Keyboard"},He.qo&&{id:"local",name:"Local",collapsible:!1},He.k0&&{id:"github",name:"GitHub",collapsible:!0}]),et=localStorage.getItem("selectedSource"),tt=(1===$e.length?$e[0].id:null)||($e.find((function(e){return e.id===et}))?et:$e[0].id),nt=n(69247),rt=n(80031);function ot(e){var t=e.onDismiss;return(0,q.jsx)(Ge.Z,{children:(0,q.jsxs)(Re.Z,{onDismiss:t,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."}),rt.t6]})})}ot.propTypes={onDismiss:V().func.isRequired};var it=ot;function at(e){var t=e.onDismiss;return(0,q.jsx)(Ge.Z,{children:(0,q.jsxs)(Re.Z,{onDismiss:t,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."}),rt.t6]})})}at.propTypes={onDismiss:V().func.isRequired};var ct=at;function ut(e){var t=e.onDismiss;return(0,q.jsx)(Ge.Z,{children:(0,q.jsxs)(Re.Z,{onDismiss:t,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."})]})})}ut.propTypes={onDismiss:V().func.isRequired};var st=ut;function lt(e){var t=e.onDismiss;return(0,q.jsx)(Ge.Z,{children:(0,q.jsxs)(Re.Z,{onDismiss:t,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 ",rt.qM,"."]})]})})}lt.propTypes={onDismiss:V().func.isRequired};var ft=lt;function pt(e){var t=e.onDismiss;return(0,q.jsx)(Ge.Z,{children:(0,q.jsxs)(Re.Z,{onDismiss:t,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."})]})})}pt.propTypes={onDismiss:V().func.isRequired};var dt=pt;function yt(e){return yt="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},yt(e)}function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==yt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==yt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===yt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vt(e){return(0,q.jsx)(Ge.Z,{children:(0,q.jsxs)(Re.Z,mt(mt({},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."]}),rt.Yo]}))})}vt.propTypes={};var gt=vt,At=n(58723),wt={};wt.styleTagTransform=b(),wt.setAttributes=d(),wt.insert=f().bind(null,"head"),wt.domAPI=s(),wt.insertStyleElement=h(),c()(At.Z,wt);var xt=At.Z&&At.Z.locals?At.Z.locals:void 0;function Et(e){return Et="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},Et(e)}function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){Ot(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ot(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Et(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Et(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Et(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ct(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return St(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?St(e,t):void 0}}(e,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.")}()}function St(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Bt=(0,r.lazy)((function(){return n.e(182).then(n.bind(n,44182))})),Pt=(0,r.lazy)((function(){return n.e(946).then(n.bind(n,2946))})),Lt=(0,r.lazy)((function(){return n.e(954).then(n.bind(n,90954))}));function _t(e){var t,n,o,i=e.onSelect,a=(0,r.useRef)(),c=Ct((0,r.useState)(tt),2),u=c[0],s=c[1],l=Ct((0,r.useState)({autoGenerated:!1}),2),f=l[0].autoGenerated,p=l[1],d=Ct((0,r.useState)(null),2),y=d[0],h=d[1],m=(0,r.useCallback)((function(){return h(null)}),[h]),b=(!0,n=(t=Ct((0,r.useState)(true),2))[0],o=t[1],[n,(0,r.useCallback)((function(){return o(!0)}),[o]),(0,r.useCallback)((function(){return o(!1)}),[o]),(0,r.useCallback)((function(){return o((function(e){return!e}))}),[o])]),v=Ct(b,3),g=v[0],A=v[1],w=v[2],x=(0,r.useCallback)((function(){h({component:gt,onClose:m})}),[h,m]),E=Xe()($e,{id:u});!function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,r.useEffect)((function(){if(n){var r=function(n){var r=document.body.contains(n.target),o=e.current.contains(n.target);r&&!o&&t()};return document.body.addEventListener("click",r),function(){return document.body.removeEventListener("click",r)}}}),[e,n,t])}(a,w,g&&!0===(null==E?void 0:E.collapsible));var j=(0,r.useCallback)((function(e){var t=e.keymap.warningFlags,n=void 0===t?[]:t,r=(e.layoutMetadata||{}).autoGenerated,o=void 0!==r&&r,a=function(e){switch(e[0]){case"USING_ZMK_NODEFREE_MACROS":return dt;case"USING_MIRYOKU_DTSI":return st;case"USING_NON_ZMK_MACRO":return it;case"KEYMAP_PARSING_FAILED":return ct;case"MISSING_ROOT_NODE":return ft;default:return null}}(n);if(a)return h({component:a,onClose:m}),void i({source:u,keyboard:null});p({autoGenerated:o}),i(kt({source:u},e))}),[i,u,h,m]),k=(0,r.useCallback)((function(e){var t=e.dialog,n=e.dialogProps;h({component:t,dialogProps:n,onClose:m}),i({source:u,keyboard:null})}),[h,m,i,u]);return(0,r.useEffect)((function(){localStorage.setItem("selectedSource",u)}),[u]),(0,q.jsxs)("div",{ref:a,className:Qe()(xt.wrapper,Ot({},xt.compact,!g)),children:[g&&(0,q.jsx)(nt.Ph,{label:"Source",value:E,options:$e,getOptionLabel:function(e){return e.name},getOptionValue:function(e){return e.id},onChange:function(e){var t=e.id;return s(t)}}),(null==y?void 0:y.component)&&(0,q.jsx)(y.component,kt(kt({},y.dialogProps||{}),{},{onDismiss:y.onClose})),(0,q.jsxs)(r.Suspense,{children:["local"===u&&(0,q.jsx)(Bt,{onError:k,onSelect:j}),"demo"===u&&(0,q.jsx)(Pt,{onSelect:j}),"github"===u&&(0,q.jsx)(Lt,{expanded:g,onSelect:j,onError:k,onExpand:A})]}),f&&(0,q.jsxs)(nt.zx,{onClick:x,children:[(0,q.jsx)(Ie.Z,{name:"warning"})," Layout wrong?"]})]})}_t.propTypes={onSelect:V().func.isRequired};var It=_t,Tt=n(93965),Zt=n(2968),Dt=n(14084),Nt={};Nt.styleTagTransform=b(),Nt.setAttributes=d(),Nt.insert=f().bind(null,"head"),Nt.domAPI=s(),Nt.insertStyleElement=h(),c()(Dt.Z,Nt);var Mt=Dt.Z&&Dt.Z.locals?Dt.Z.locals:void 0;function Rt(e){return Rt="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},Rt(e)}function Gt(){Gt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:w(e,n,c)}),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function p(){}function d(){}function y(){}var h={};u(h,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(O([])));b&&b!==t&&n.call(b,i)&&(h=b);var v=y.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function o(r,i,a,c){var u=l(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Rt(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function w(e,t,n){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(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=y,r(v,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:d,configurable:!0}),d.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(A.prototype),u(A.prototype,a,(function(){return this})),e.AsyncIterator=A,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new A(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,c,"Generator"),u(v,i,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,k.prototype={constructor:k,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(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=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 t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.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 c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){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&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function qt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Yt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yt(e,t):void 0}}(e,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.")}()}function Yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ft(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function Ut(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ft(i,r,o,a,c,"next",e)}function c(e){Ft(i,r,o,a,c,"throw",e)}a(void 0)}))}}function zt(e){return"  ".concat(e.fileName,":").concat(e.lineNumber,":").concat(e.columnNumber)}var Kt=(0,q.jsx)(Zt.Z,{external:!0,href:"https://github.com/nickcoutsos/keymap-editor/issues/new",children:"new issue"});function Wt(e,t){return Vt.apply(this,arguments)}function Vt(){return(Vt=Ut(Gt().mark((function e(t,n){var r,o,i;return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(He.ny,"/v2/events/client-errors"),o=JSON.stringify({error:t.toString(),stacktrace:n}),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 Qt(e){var t=e.error,o=qt((0,r.useState)([]),2),i=o[0],a=o[1],c=qt((0,r.useState)(""),2),u=c[0],s=c[1],l=qt((0,r.useState)(!1),2),f=l[0],p=l[1];return(0,r.useEffect)((function(){function e(){return(e=Ut(Gt().mark((function e(){var r,o;return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(401).then(n.t.bind(n,70401,23));case 2:return r=e.sent,e.next=5,r.fromError(t);case 5:o=e.sent,a(o),Wt(t,o);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[a,t]),(0,r.useEffect)((function(){s(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"\n".concat(e.name,"\n\n").concat(e.message,"\n\n").concat(t.map(zt).join("\n"),"\n").trim()}(t,i))}),[t,i]),(0,r.useEffect)((function(){f&&setTimeout((function(){p(!1)}),3e3)}),[f,p]),(0,q.jsx)(Ge.Z,{children:(0,q.jsxs)(Re.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 ",Kt,"with the details below to help me investigate and improve the app."]}),(0,q.jsxs)("div",{className:Mt.stackTrace,children:[(0,q.jsx)("pre",{children:u}),(0,q.jsx)(E.Z,{icon:"copy",title:"Copy error text",className:Mt.button,onClick:function(){var e="".concat("```","\n").concat(u,"\n").concat("```");navigator.clipboard.writeText(e).then((function(){return p(!0)}))}}),f&&(0,q.jsx)("div",{className:Mt.copyMessage,children:"Copied!"})]})]})})}Qt.propTypes={error:V().instanceOf(Error).isRequired};var Jt=Qt;function Xt(e){return Xt="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},Xt(e)}function Ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==Xt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Xt(o)?o:String(o)),r)}var o}function $t(e,t){return $t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$t(e,t)}function en(e){return en=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},en(e)}var tn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$t(e,t)}(c,e);var t,n,r,o,i,a=(o=c,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,t=en(o);if(i){var n=en(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Xt(t)||"function"==typeof t))return t;if(void 0!==t)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 c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this,e)).state={error:null},t}return t=c,r=[{key:"getDerivedStateFromError",value:function(e){return{error:e}}}],(n=[{key:"render",value:function(){var e=this.props.children,t=this.state.error;return t?(0,q.jsx)(Jt,{error:t}):e}}])&&Ht(t.prototype,n),r&&Ht(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.Component);function nn(e){var t=e.onDismiss;return(0,q.jsx)(Ge.Z,{children:(0,q.jsxs)(Re.Z,{onDismiss:t,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:rt.qM})]})})}nn.propTypes={onDismiss:V().func.isRequired};var rn=nn;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)}var an=["source","layout","keymap","sensors"];function cn(){cn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:w(e,n,c)}),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function p(){}function d(){}function y(){}var h={};u(h,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(O([])));b&&b!==t&&n.call(b,i)&&(h=b);var v=y.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function o(r,i,a,c){var u=l(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==on(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function w(e,t,n){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(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=y,r(v,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:d,configurable:!0}),d.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(A.prototype),u(A.prototype,a,(function(){return this})),e.AsyncIterator=A,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new A(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,c,"Generator"),u(v,i,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,k.prototype={constructor:k,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(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=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 t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.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 c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){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&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function un(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}var sn=function(){var e=(0,i.v9)((function(e){return e})),t=(0,i.I0)(),n=e.sourceOther,o=e.keyboard,a=e.saveError,c=e.theme,u=e.settingsVisible,s=e.experimentalSettings;(0,r.useEffect)((function(){var e;if(null!=n&&n.github)return(e=cn().mark((function e(){var t,o,i;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.github,o=t.repository,i=t.branch,e.t0=r,e.next=4,Tt.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 t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){un(i,r,o,a,c,"next",e)}function c(e){un(i,r,o,a,c,"throw",e)}a(void 0)}))})(),Tt.Z.on("build-update",r),function(){return Tt.Z.off("build-update",r)};function r(e){e.head_branch===n.github.branch&&t({type:"GITHUB_BUILD_UPDATE",build:e})}t({type:"GITHUB_BUILD_UPDATE",build:null})}),[n,t]);var l=(0,r.useCallback)((function(e){var n=e.source,r=e.layout,o=e.keymap,i=e.sensors,a=void 0===i?[]:i,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,an);t(o?{type:"SELECT_KEYBOARD",source:n,sourceOther:c,layout:r,keymap:o,sensors:a}:{type:"CLEAR_KEYBOARD_SELECTION"})}),[t]),f=(0,r.useCallback)((function(e){t({type:"SETTINGS_UPDATE",settings:e})}),[t]),p=(0,r.useCallback)((function(){return t({type:"SETTINGS_OPEN"})}),[t]);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(tn,{children:(0,q.jsxs)(x.J.Provider,{value:{settings:s,openSettingsDialog:p},children:[(0,q.jsx)(It,{onSelect:l}),(0,q.jsxs)("div",{id:"settings-bar",children:[(0,q.jsx)(E.Z,{id:"light-mode",title:"Toggle theme",icon:{light:"sun",dark:"moon",system:"circle-half-stroke"}[c]||"circle-half-stroke",onClick:function(){return t({type:"CYCLE_THEME"})}}),(0,q.jsx)(E.Z,{id:"settings-button",icon:"cog",onClick:p}),u&&(0,q.jsx)(We,{settings:s,onUpdate:f,onClose:function(){return t({type:"SETTINGS_CLOSE"})}})]}),(0,q.jsxs)(R.Z,{children:[o&&(0,q.jsx)(Ae.S,{layout:o.layout,children:(0,q.jsx)(_e,{keymap:o.keymap,sensors:o.sensors})}),a&&(0,q.jsx)(rn,{onDismiss:function(){return t({type:"CLEAR_SAVE_ERROR"})}})]})]})}),(0,q.jsx)(Me,{})]})},ln=n(78718),fn=n.n(ln);function pn(e){return pn="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},pn(e)}function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(n),!0).forEach((function(t){hn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==pn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==pn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===pn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mn(){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:L()(e,"unicodeGlyphs",!0),platformGlyphs:L()(e,"platformGlyphs","auto"),enableBehaviorEditing:L()(e,"enableBehaviorEditing",!1)},latestBuild:null}}var bn=mn();var vn=n(14890),gn=n(97168),An=n(80736),wn=n(2732),xn=n(12736),En=n(28291);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 kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){Cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==jn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==jn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===jn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sn=(0,vn.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,vn.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]:[]},chosen:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},behaviors:En.ZP,combos:wn.ZP,layers:An.ZP,macros:xn.ZP})}),Bn=(0,gn.xC)({reducer:function(e,t){var n=function(e,t){switch(t.type){case"INITIALIZE":return mn();case"DEFINITIONS_SET":return yn(yn({},e),{},{definitions:t.definitions});case"CLEAR_KEYBOARD_SELECTION":return yn(yn({},e),{},{keyboard:null});case"SELECT_KEYBOARD":return function(e,t){var n=e.keyboard,r=fn()(t,["layout","keymap","sensors"]);return r.keymap.layers=r.keymap.layers.map((function(e){return fn()(e,["index","name","labels","properties"])})),r.keymap.combos=r.keymap.combos.map((function(e){return fn()(e,["index","name","labels","properties"])})),r.keymap.behaviors=r.keymap.behaviors.map((function(e){return fn()(e,["index","name","labels","properties","params"])})),r.keymap.macros=r.keymap.macros.map((function(e){return fn()(e,["index","name","labels","properties"])})),yn(yn({},e),{},{source:t.source,sourceOther:t.sourceOther,keyboard:yn(yn({},n),r),_unmodifiedKeymap:C()(r.keymap)})}(e,t);case"COMMIT_DIALOG_OPEN":return yn(yn({},e),{},{commitDialogOpen:!0});case"COMMIT_DIALOG_CLOSE":return yn(yn({},e),{},{commitDialogOpen:!1});case"GITHUB_BUILD_UPDATE":return yn(yn({},e),{},{latestBuild:t.build});case"KEYMAP_SAVE_START":return yn(yn({},e),{},{saving:!0,saveError:!1});case"KEYMAP_SAVE_SUCCESS":return function(e,t){var n=yn({},t.keymap);return n.layers=n.layers.map((function(e){return fn()(e,["index","name","labels","properties"])})),n.combos=n.combos.map((function(e){return fn()(e,["index","name","labels","properties"])})),n.behaviors=n.behaviors.map((function(e){return fn()(e,["index","name","labels","properties","params"])})),n.macros=n.macros.map((function(e){return fn()(e,["index","name","labels","properties"])})),yn(yn({},e),{},{saving:!1,unsaved:!1,keyboard:yn(yn({},e.keyboard),{},{keymap:n}),_unmodifiedKeymap:n})}(e,t);case"KEYMAP_SAVE_FAILURE":return yn(yn({},e),{},{saving:!1,saveError:!0});case"CLEAR_SAVE_ERROR":return yn(yn({},e),{},{saveError:null});case"SETTINGS_OPEN":return yn(yn({},e),{},{settingsVisible:!0});case"SETTINGS_CLOSE":return yn(yn({},e),{},{settingsVisible:!1});case"SETTINGS_UPDATE":return localStorage.setItem("experimental-settings",JSON.stringify(t.settings)),yn(yn({},e),{},{experimentalSettings:t.settings});case"CYCLE_THEME":return function(e,t){var n=["light","dark","system"],r=n.indexOf(e.theme),o=n.at((r+1)%n.length);return localStorage.setItem("theme",'"'.concat(o,'"')),document.body.dataset.theme=o,yn(yn({},e),{},{theme:o})}(e);default:return e}}(e,t);return On(On({},n),{},{keyboard:n.keyboard&&On(On({},n.keyboard),Sn(n.keyboard,t))})},preloadedState:bn});document.body.dataset.theme=bn.theme,o.createRoot(document.getElementById("app-root")).render((0,q.jsx)(r.StrictMode,{children:(0,q.jsx)(i.zt,{store:Bn,children:(0,q.jsx)(sn,{})})}))},26523:function(e,t,n){n.d(t,{Pi:function(){return l},j4:function(){return p},kn:function(){return f}});var r=n(35161),o=n.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,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):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,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=65,u=5;function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{x:e.x*(c+u),y:e.y*(c+u),u:t.u*c+u*(t.u-1),h:t.h*c+u*(t.h-1),rx:(e.x-(n.x||e.x))*-(c+u),ry:(e.y-(n.y||e.y))*-(c+u),a:n.a||0}}function l(e,t,n){var r=s(e,t,n),o=r.x,i=r.y,a=r.u,c=r.h,u=r.a,l=r.rx,f=r.ry;return{top:"".concat(i,"px"),left:"".concat(o,"px"),width:"".concat(a,"px"),height:"".concat(c,"px"),transformOrigin:"".concat(l,"px ").concat(f,"px"),transform:"rotate(".concat(u||0,"deg)")}}function f(e,t,n){var r=s(e,t,n),o=r.x,i=r.y,a=r.u,c=r.h,u=r.a,l=r.rx,f=r.ry;return[{x:0,y:0},{x:a,y:0},{x:a,y:c},{x:0,y:c}].map((function(e){var t=e.x-l,n=e.y-f,r=Math.PI*u/180;return{x:l+t*Math.cos(r)-n*Math.sin(r),y:f+n*Math.cos(r)+t*Math.sin(r)}})).map((function(e){return{x:e.x+o,y:e.y+i}}))}function p(e,t,n){var r=f(e,t,n),a=o()(r,"x"),c=o()(r,"y");return{min:{x:Math.min.apply(Math,i(a)),y:Math.min.apply(Math,i(c))},max:{x:Math.max.apply(Math,i(a)),y:Math.max.apply(Math,i(c))}}}},2596:function(e,t,n){n.d(t,{G:function(){return l},j:function(){return f}});var r=n(39693),o=n.n(r);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);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,c=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,i=e},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw i}}}}function a(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){return(t=e,function(e){if(Array.isArray(e))return c(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||a(t)||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,t){return e.length-t.length}))[0];var t}var s=/^(.+?)\((code)\)$/;function l(e){return e.reduce((function(e,t){var n,r=t.description,o=t.context,a=t.symbol,c=t.faIcon,l=t.names.filter((function(e){return!e.match(s)})),f=u(l),p=t.names.map((function(e){return e.match(s)})).filter((function(e){return!!e}))[0],d={name:f,aliases:l,description:r,context:o,faIcon:c,symbol:a||f,params:[]},y=i(l);try{for(y.s();!(n=y.n()).done;){var h=n.value;e.push(Object.assign({},d,{code:h,isModifier:!!p}))}}catch(e){y.e(e)}finally{y.f()}return p&&e.push(Object.assign({},d,{code:p[1],params:p[2].split(",")})),e}),[])}function f(e,t){return o()([e.basic,t.unicode&&e.unicode,"mac"===t.platform&&e.platforms.mac,"win"===t.platform&&e.platforms.win]).reduce((function(e,t){var n,r=i(t);try{for(r.s();!(n=r.n()).done;){var o=n.value,a=o.names.filter((function(e){return!e.match(s)})),c=u(a);e[c]||(e[c]={}),e[c].symbol=e[c].symbol||o.symbol,e[c].faIcon=e[c].faIcon||o.faIcon}}catch(e){r.e(e)}finally{r.f()}return e}),{})}},41696:function(e,t,n){n.d(t,{a:function(){return c}});var r=n(13311),o=n.n(r),i=n(27361),a=n.n(i);function c(e,t){return[].concat(t.params||[],function(e,t){var n=a()(e,"[0]",{});if(a()(t,"params[0].enum")){var r=o()(t.params[0].enum,{code:n.value});if(null!=r&&r.additionalParams)return r.additionalParams}return[]}(e,t))}},81485:function(e,t,n){n.d(t,{J:function(){return i},c:function(){return o}});var r=n(67294),o=(0,r.createContext)({getSearchTargets:null}),i=(0,r.createContext)({settings:null,openSettingsDialog:null})},39087:function(e,t,n){var r=n(87537),o=n.n(r),i=n(23645),a=n.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:""}]),t.Z=a},51424:function(e,t,n){var r=n(87537),o=n.n(r),i=n(23645),a=n.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:""}]),t.Z=a},56281:function(e,t,n){var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([e.id,"button.pi2Ig8c3Fdh4H2Jpxdo7 {\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\nbutton.Ctpu4E2dZYJ6g8CUGFOF {\n  color: var(--fg);\n  background-color: transparent;\n}\n\nbutton.pi2Ig8c3Fdh4H2Jpxdo7[disabled] {\n  filter: saturate(20%);\n  opacity: .5;\n  cursor: not-allowed;\n}\n","",{version:3,sources:["webpack://./src/Common/action-button.module.css"],names:[],mappings:"AAAA;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,gBAAgB;EAChB,6BAA6B;AAC/B;;AAEA;EACE,qBAAqB;EACrB,WAAW;EACX,mBAAmB;AACrB",sourcesContent:["button.action {\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\nbutton.secondary {\n  color: var(--fg);\n  background-color: transparent;\n}\n\nbutton.action[disabled] {\n  filter: saturate(20%);\n  opacity: .5;\n  cursor: not-allowed;\n}\n"],sourceRoot:""}]),a.locals={action:"pi2Ig8c3Fdh4H2Jpxdo7",secondary:"Ctpu4E2dZYJ6g8CUGFOF"},t.Z=a},49502:function(e,t,n){var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([e.id,".ZpdcqlK42OntJos3eGw0 {\n  background-color: var(--bg);\n  padding: 20px 40px;\n  margin: 40px;\n  max-width: 500px;\n  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.4);\n  border-radius: 2px;\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,YAAY;EACZ,gBAAgB;EAChB,4CAA4C;EAC5C,kBAAkB;AACpB;;AAEA;EACE,uBAAuB;EACvB,mBAAmB;AACrB;;AAEA;EACE,cAAc;EACd,cAAc;AAChB",sourcesContent:[".dialog {\n  background-color: var(--bg);\n  padding: 20px 40px;\n  margin: 40px;\n  max-width: 500px;\n  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.4);\n  border-radius: 2px;\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"},t.Z=a},87617:function(e,t,n){var r=n(87537),o=n.n(r),i=n(23645),a=n.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"},t.Z=a},92127:function(e,t,n){var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([e.id,".FMkASzwt_oMscZdObpDQ {\n  display: inline-block;\n  text-align: center;\n}\n.TNF6aRMBPANvZifB27ZK {\n  display: inline-block;\n  animation: GGCs7iiBiwDCnT80cyTh 1s linear infinite;\n}\n\n@keyframes GGCs7iiBiwDCnT80cyTh {\n  from { transform: rotate(0deg); }\n  to { transform: rotate(360deg); }\n}","",{version:3,sources:["webpack://./src/Common/spinner.module.css"],names:[],mappings:"AAAA;EACE,qBAAqB;EACrB,kBAAkB;AACpB;AACA;EACE,qBAAqB;EACrB,kDAAkC;AACpC;;AAEA;EACE,OAAO,uBAAuB,EAAE;EAChC,KAAK,yBAAyB,EAAE;AAClC",sourcesContent:[".spinner {\n  display: inline-block;\n  text-align: center;\n}\n.icon {\n  display: inline-block;\n  animation: spin 1s linear infinite;\n}\n\n@keyframes spin {\n  from { transform: rotate(0deg); }\n  to { transform: rotate(360deg); }\n}"],sourceRoot:""}]),a.locals={spinner:"FMkASzwt_oMscZdObpDQ",icon:"TNF6aRMBPANvZifB27ZK",spin:"GGCs7iiBiwDCnT80cyTh"},t.Z=a},14084:function(e,t,n){var r=n(87537),o=n.n(r),i=n(23645),a=n.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"},t.Z=a},87995:function(e,t,n){var r=n(87537),o=n.n(r),i=n(23645),a=n.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: red;\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,qBAAqB;EACrB,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: red;\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"},t.Z=a},80047:function(e,t,n){var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([e.id,".z8z3GXuYqlepCz4tRPZj {\n  cursor: pointer;\n  display: flex;\n  box-sizing: border-box;\n  border-width: 1px;\n  text-align: left;\n  border-radius: 4px;\n  gap: 5px;\n  height: 38px;\n  padding: 0 8px;\n\n  /* color: hsl(0, 0%, 20%); */\n}\n\n.z8z3GXuYqlepCz4tRPZj:hover {\n  background-color: var(--hover-selection);\n  color: white;\n}\n\n.yyHfal9pM4DzShMl4LAY {\n  display: inline-flex;\n  height: 30px;\n  border-radius: 5px;\n  align-items: center;\n\n  font-size: 70%;\n  padding: 0 4px;\n\n  background-color: royalblue;\n  color: white;\n  text-decoration: none;\n}\n\n.ukdycT4tarWVlV3PC6Rr {\n  display: flex;\n  height: 38px;\n  gap: 4px;\n}\n\n.ukdycT4tarWVlV3PC6Rr button,\n.ukdycT4tarWVlV3PC6Rr .yyHfal9pM4DzShMl4LAY {\n  height: 38px !important;\n}\n\n.yyHfal9pM4DzShMl4LAY code {\n  font-family: monospace;\n}\n\n.QvI5wo7_u6OeAc12ib0W {\n  width: 30px;\n  height: 30px;\n  line-height: 30px;\n  font-size: 200%;\n  text-align: center;\n}\n\n.eUw5NZqoPPF3BcyYDpJx {\n  /* color: var(--selection); */\n}\n\n.XjY4lN_lY3nSgHcw67bX {\n  /* color: brown; */\n}\n\n.Ap_OwCtp3j1Q29Phpw3V {\n  color: gold;\n  animation: WjBuPfls4V41d2sjbNFU 1s linear alternate infinite;\n}\n\n@keyframes WjBuPfls4V41d2sjbNFU {\n  from { opacity: 0.5; }\n  to { opacity: 1; }\n}\n","",{version:3,sources:["webpack://./src/Sources/Github/styles.module.css"],names:[],mappings:"AAAA;EACE,eAAe;EACf,aAAa;EACb,sBAAsB;EACtB,iBAAiB;EACjB,gBAAgB;EAChB,kBAAkB;EAClB,QAAQ;EACR,YAAY;EACZ,cAAc;;EAEd,4BAA4B;AAC9B;;AAEA;EACE,wCAAwC;EACxC,YAAY;AACd;;AAEA;EACE,oBAAoB;EACpB,YAAY;EACZ,kBAAkB;EAClB,mBAAmB;;EAEnB,cAAc;EACd,cAAc;;EAEd,2BAA2B;EAC3B,YAAY;EACZ,qBAAqB;AACvB;;AAEA;EACE,aAAa;EACb,YAAY;EACZ,QAAQ;AACV;;AAEA;;EAEE,uBAAuB;AACzB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,eAAe;EACf,kBAAkB;AACpB;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,4DAA6C;AAC/C;;AAEA;EACE,OAAO,YAAY,EAAE;EACrB,KAAK,UAAU,EAAE;AACnB",sourcesContent:[".compactWrapper {\n  cursor: pointer;\n  display: flex;\n  box-sizing: border-box;\n  border-width: 1px;\n  text-align: left;\n  border-radius: 4px;\n  gap: 5px;\n  height: 38px;\n  padding: 0 8px;\n\n  /* color: hsl(0, 0%, 20%); */\n}\n\n.compactWrapper:hover {\n  background-color: var(--hover-selection);\n  color: white;\n}\n\n.buildDetails {\n  display: inline-flex;\n  height: 30px;\n  border-radius: 5px;\n  align-items: center;\n\n  font-size: 70%;\n  padding: 0 4px;\n\n  background-color: royalblue;\n  color: white;\n  text-decoration: none;\n}\n\n.pickerActions {\n  display: flex;\n  height: 38px;\n  gap: 4px;\n}\n\n.pickerActions button,\n.pickerActions .buildDetails {\n  height: 38px !important;\n}\n\n.buildDetails code {\n  font-family: monospace;\n}\n\n.buildStatus {\n  width: 30px;\n  height: 30px;\n  line-height: 30px;\n  font-size: 200%;\n  text-align: center;\n}\n\n.buildSuccess {\n  /* color: var(--selection); */\n}\n\n.buildFailed {\n  /* color: brown; */\n}\n\n.buildPending {\n  color: gold;\n  animation: pulse 1s linear alternate infinite;\n}\n\n@keyframes pulse {\n  from { opacity: 0.5; }\n  to { opacity: 1; }\n}\n"],sourceRoot:""}]),a.locals={compactWrapper:"z8z3GXuYqlepCz4tRPZj",buildDetails:"yyHfal9pM4DzShMl4LAY",pickerActions:"ukdycT4tarWVlV3PC6Rr",buildStatus:"QvI5wo7_u6OeAc12ib0W",buildSuccess:"eUw5NZqoPPF3BcyYDpJx",buildFailed:"XjY4lN_lY3nSgHcw67bX",buildPending:"Ap_OwCtp3j1Q29Phpw3V",pulse:"WjBuPfls4V41d2sjbNFU"},t.Z=a},58723:function(e,t,n){var r=n(87537),o=n.n(r),i=n(23645),a=n.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","",{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",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"],sourceRoot:""}]),a.locals={wrapper:"hY07j_e1kQx0WX5BwG6I",compact:"_0h266lacmB1N_qDdQcy"},t.Z=a},2746:function(e,t,n){var r=n(87537),o=n.n(r),i=n(23645),a=n.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_"},t.Z=a},95872:function(e,t,n){var r=n(93379),o=n.n(r),i=n(7795),a=n.n(i),c=n(90569),u=n.n(c),s=n(3565),l=n.n(s),f=n(19216),p=n.n(f),d=n(44589),y=n.n(d),h=n(87995),m={};m.styleTagTransform=y(),m.setAttributes=l(),m.insert=u().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),o()(h.Z,m),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},34383:function(e,t,n){var r=n(93379),o=n.n(r),i=n(7795),a=n.n(i),c=n(90569),u=n.n(c),s=n(3565),l=n.n(s),f=n(19216),p=n.n(f),d=n(44589),y=n.n(d),h=n(80047),m={};m.styleTagTransform=y(),m.setAttributes=l(),m.insert=u().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),o()(h.Z,m),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0}},function(e){e.O(0,[712,216,514],(function(){return 20484,e(e.s=20484)})),e.O()}]);
//# sourceMappingURL=main.91cc80dae9e274a67a7c.js.map