1
|
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8573],{27926:function(e,n,r){r.d(n,{Z:function(){return P}});var t=r(93379),o=r.n(t),i=r(7795),a=r.n(i),l=r(90569),u=r.n(l),c=r(3565),s=r.n(c),f=r(19216),d=r.n(f),p=r(44589),b=r.n(p),y=r(56281),m={};m.styleTagTransform=b(),m.setAttributes=s(),m.insert=u().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=d(),o()(y.Z,m);var v=y.Z&&y.Z.locals?y.Z.locals:void 0,h=r(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 j=["children","secondary","className"];function x(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function O(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?x(Object(r),!0).forEach((function(n){S(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function S(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==g(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==g(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function w(e){var n=e.children,r=e.secondary,t=e.className,o=function(e,n){if(null==e)return{};var r,t,o=function(e,n){if(null==e)return{};var r,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,j);return(0,h.jsx)("button",O(O({className:[t,v.action,r&&v.secondary].join(" ")},o),{},{children:n}))}w.defaultProps={className:""};var P=w},2062:function(e,n,r){r.d(n,{Z:function(){return j}});var t=r(41051),o=r(93379),i=r.n(o),a=r(7795),l=r.n(a),u=r(90569),c=r.n(u),s=r(3565),f=r.n(s),d=r(19216),p=r.n(d),b=r(44589),y=r.n(b),m=r(528),v={};v.styleTagTransform=y(),v.setAttributes=f(),v.insert=c().bind(null,"head"),v.domAPI=l(),v.insertStyleElement=p(),i()(m.Z,v);var h=m.Z&&m.Z.locals?m.Z.locals:void 0,g=r(85893);function j(e){var n=e.children,r=e.className,o=void 0===r?"":r,i=[h.tip,o].join(" ");return(0,g.jsxs)("div",{className:i,children:[(0,g.jsx)(t.Z,{className:"fa-flip-horizontal",name:"hand-point-up"})," ",n]})}},81404:function(e,n,r){r.d(n,{Z:function(){return p}});var t=r(67294),o=r(39693),i=r.n(o),a=r(35161),l=r.n(a),u=r(52156),c=r(61953),s=r(74871),f=r(85893);function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function p(e){var n,r=e.node,o=e.onSelect,a=e.expanded,p=void 0!==a&&a,b=(0,t.useCallback)((function(e){e.stopPropagation(),o({node:r,type:"tree"})}),[r,o]),y=(0,t.useMemo)((function(){return l()((0,s.H)(r),"source")}),[r]),m=(0,t.useMemo)((function(){return y.at(-1)}),[y]),v=(0,t.useMemo)((function(){return y.slice(0,-1).reduce((function(e,n){return"".concat(n.code,"(").concat(e,")")}),null==m?void 0:m.code)}),[y,null==m?void 0:m.code]),h=(0,t.useMemo)((function(){return y.map(u.r8).map((function(e,n){return(0,f.jsx)(t.Fragment,{children:e},n)})).reduce((function(e,n){return 0===e.length?[n]:[].concat(function(e){if(Array.isArray(e))return d(e)}(r=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return d(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,n):void 0}}(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.")}(),[" ",n]);var r}),[])}),[y]),g=(0,t.useMemo)((function(){return y.map(u.rG).join(" + ")}),[y]),j=(0,t.useMemo)((function(){return y.map((function(e){return e?e.description||e.name:"⦸"})).join(" + ")}),[y]),x=void 0===(null===(n=r.source)||void 0===n?void 0:n.code)||void 0===r.value||r._isPlaceholder,O=p?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("code",{children:v}),(0,f.jsx)("span",{children:j})]}):h;return(0,f.jsx)("span",{className:i()([c.Z.code,x&&c.Z.missingValue]).join(" "),title:g,onClick:b,children:x?(0,f.jsx)(u.J1,{}):O})}},74871:function(e,n,r){function t(e,n){if(e){if("string"==typeof e)return i(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,n):void 0}}function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function a(e){return e.params.length>0?[e].concat(function(e){if(Array.isArray(e))return i(e)}(n=a(e.params[0]))||o(n)||t(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):[e];var n}function l(e){var n,r=function(e){if(Array.isArray(e))return e}(n=e)||o(n)||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.")}(),i=r[0],a=r.slice(1);return{value:i,params:0===a.length?[]:[l(a)]}}r.d(n,{H:function(){return a},n:function(){return l}})},83197:function(e,n,r){r.d(n,{N:function(){return R},Z:function(){return N}});var t=r(27361),o=r.n(t),i=r(45697),a=r.n(i),l=r(67294),u=r(67069),c=r(52156),s=r(81404),f=r(93379),d=r.n(f),p=r(7795),b=r.n(p),y=r(90569),m=r.n(y),v=r(3565),h=r.n(v),g=r(19216),j=r.n(g),x=r(44589),O=r.n(x),S=r(33151),w={};w.styleTagTransform=O(),w.setAttributes=h(),w.insert=m().bind(null,"head"),w.domAPI=b(),w.insertStyleElement=j(),d()(S.Z,w);var P=S.Z&&S.Z.locals?S.Z.locals:void 0,A=r(85893);function Z(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}var C=function(e){var n,r,t=e.node,o=e.onSelect,i=(n=t.params,r=3,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,r)||function(e,n){if(e){if("string"==typeof e)return Z(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Z(e,n):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],u=i[1],s=i[2],f=(0,l.useCallback)((function(e){var n;null==e||null===(n=e.stopPropagation)||void 0===n||n.call(e),o({node:t,type:"tree"})}),[t,o]),d=(0,l.useMemo)((function(){return[a,u,s].some((function(e){return void 0===(null==e?void 0:e.value)||(null==e?void 0:e._isPlaceholder)}))}),[a,u,s]),p=(0,l.useMemo)((function(){return[a,u,s].some((function(e){return void 0===(null==e?void 0:e.value)}))?{}:{backgroundColor:"hsl(".concat(a.value,", ").concat(u.value,"%, ").concat(s.value,"%)"),border:".1em solid hsl(".concat(a.value,", ").concat(u.value,"%, ").concat(.75*s.value,"%)"),boxSizing:"border-box"}}),[a,u,s]);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(c.ZP,{node:t,onSelect:o}),d?(0,A.jsx)(c.ZP,{node:{},onSelect:f}):(0,A.jsx)("div",{onClick:f,className:P.colorIconWrapper,children:(0,A.jsx)("div",{className:P.colorIcon,title:p.backgroundColor,style:p})})]})},k=r(61953);function T(e){return T="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},T(e)}function I(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function E(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?I(Object(r),!0).forEach((function(n){D(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function D(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==T(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==T(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===T(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function M(e){var n=e.node,r=e.onSelect,t=e.expanded;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(c.ZP,{node:n,onSelect:r,expanded:t}),o()(n,"source.params.length")>0?(0,A.jsx)(L,{slots:n.source.params,params:n.params,onSelect:r}):null]})}function R(e){var n=e.node,r=e.onSelect,t=e.slot,o=e.expanded,i=void 0!==o&&o,a=(0,l.useMemo)((function(){var e;return"hsb-color-picker"===(null===(e=n.source)||void 0===e?void 0:e.helper)?C:"code"===t?s.Z:M}),[n,t]);return(0,A.jsx)("span",{className:k.Z.param,children:(0,A.jsx)(a,{node:n,onSelect:r,expanded:i})})}function L(e){var n=e.slots,r=e.params,t=e.onSelect,o=e.root,i=e.wrapperProps;return(0,A.jsx)("span",E(E({className:k.Z.params,"data-is-root":!!o,"data-param-count":r.length},i),{},{children:n.map((function(e,n){return"placeholder"!==e.type&&(0,A.jsx)(R,{slot:e,node:r[n],onSelect:t},n)}))}))}L.propTypes={slots:a().arrayOf(u.wu).isRequired,params:a().arrayOf(u.le).isRequired,source:u.qz,onSelect:a().func.isRequired};var N=L},52156:function(e,n,r){r.d(n,{J1:function(){return d},r8:function(){return b},rG:function(){return p}});var t=r(39693),o=r.n(t),i=r(67294),a=r(45697),l=r.n(a),u=r(67069),c=r(61953),s=r(41051),f=r(85893);function d(){return(0,f.jsx)("span",{children:"⦸"})}function p(e){var n=(null==e?void 0:e.displayName)||(null==e?void 0:e.description);return e&&"(".concat(e.code,") ").concat(n)}function b(e){var n,r=(null==e?void 0:e.symbol)||(null==e||null===(n=e.code)||void 0===n?void 0:n.toString());return(null==e?void 0:e.faIcon)&&(0,f.jsx)(s.Z,{name:null==e?void 0:e.faIcon})||r||(0,f.jsx)(d,{})}function y(e){var n,r,t=e.value,o=e.expanded;if(void 0===o||!o)return b(t);if(!t)return(0,f.jsx)(d,{});var i=t.faIcon?(0,f.jsx)(s.Z,{name:t.faIcon}):t.symbol,a=null===(n=t.code)||void 0===n||null===(r=n.toString)||void 0===r?void 0:r.call(n),l=t.displayName||t.description||t.name;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("code",{children:a}),l&&(0,f.jsx)("span",{children:l})," ",i]})}function m(e){var n=e.node,r=e.onSelect,t=e.expanded,a=void 0!==t&&t,l=n.value,u=n.source,s=n._isPlaceholder,b=p(u),m=(0,i.useCallback)((function(e){e.stopPropagation(),r({node:n})}),[n,r]);return(0,f.jsx)("span",{className:o()([c.Z.code,(void 0===l||s)&&c.Z.missingValue]).join(" "),title:b,onClick:m,children:s?(0,f.jsx)(d,{}):(0,f.jsx)(y,{value:u,expanded:a})})}m.propTypes={node:u.le.isRequired,onSelect:l().func.isRequired},n.ZP=m},27213:function(e,n,r){var t=r(39693),o=r.n(t),i=r(45697),a=r.n(i),l=r(55326),u=r(83197),c=r(67069),s=r(39017),f=r(61953),d=r(41051),p=r(98588),b=r(85893);function y(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function m(e){var n,r,t,i,a=e.context,c=void 0===a?"none":a,m=e.hideBehaviour,v=e.value,h=e.params,g=e.paramIndex,j=e.onUpdate,x=(t=(0,l.Z)({value:v,params:h},g,j),i=2,function(e){if(Array.isArray(e))return e}(t)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,i)||function(e,n){if(e){if("string"==typeof e)return y(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,n):void 0}}(t,i)||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.")}()),O=x[0],S=O.behavior,w=O.behaviorParams,P=O.bindTree,A=O.bindTreeParams,Z=O.editing,C=O.invalid,k=x[1],T=k.selectNodeForEditing,I=k.clearEditing,E=k.handleUpdateAndConfirm,D=k.handleChange,M=k.handleConfirm;return(0,b.jsxs)(b.Fragment,{children:[S&&!m?(0,b.jsx)("span",{className:o()([f.Z["behaviour-binding"],!(null!==(n=P.source)&&void 0!==n&&n.code)&&f.Z.missingValue]).join(" "),onClick:function(){return T({node:P})},children:(null===(r=P.source)||void 0===r?void 0:r.code)||"⦸"}):null,C&&(0,b.jsx)(d.Z,{name:"warning",className:f.Z.missing,title:"Binding has missing value(s)"}),(0,b.jsx)(u.Z,{root:!0,slots:w,params:A,onSelect:T,wrapperProps:{"data-simple":(0,s.Gg)(P),"data-long":(0,s.Mc)(P,w)}}),Z&&(0,b.jsx)(p.Z,{node:Z.node,type:Z.type,behaviour:S,context:c,prompt:(0,s._I)(Z.node.slot),searchKey:"code",onSelect:E,onConfirm:M,onChange:D,onCancel:I})]})}m.propTypes={context:a().string,hideBehaviour:a().bool.isRequired,value:c.S3.isRequired,params:a().arrayOf(c.dH),onUpdate:a().func.isRequired},m.defaultProps={hideBehaviour:!1},n.Z=m},67069:function(e,n,r){r.d(n,{S3:function(){return u},dH:function(){return f},le:function(){return d},qz:function(){return c},wu:function(){return a}});var t=r(45697),o=r.n(t),i=o().oneOfType([o().number,o().shape({name:o().string,type:o().string,description:o().string,code:o().any})]),a=o().oneOfType([o().oneOf(["code","layer"]),o().shape({type:o().oneOf(["placeholder"])}),o().shape({enum:o().arrayOf(i),raw:o().bool,name:o().string,type:o().string.isRequired})]),l=o().arrayOf(a),u=o().oneOfType([o().string,o().number]),c=o().shape({params:l,code:u.isRequired,description:o().string,symbol:o().string,faIcon:o().string}),s={value:u,source:c};s.params=o().arrayOf(o().shape(s));var f=o().shape(s),d=f;o().arrayOf(f)},55326:function(e,n,r){r.d(n,{Z:function(){return g}});var t=r(50361),o=r.n(t),i=r(27361),a=r.n(i),l=r(67294),u=r(81485),c=r(39017),s=r(41696);function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function d(e,n){var r=n.nodeIndex,t=n.updatedNode,i=o()(e),a=(0,c.He)(i),l=a[r];return l.value=t.value,l.params=t.params,delete l._isPlaceholder,a.forEach((function(e){delete e.source,delete e.slot})),i}function p(e,n){var r,t,i,a=n.nodeIndex,l=n.source,u=n.behaviorParameters,s=o()(e),d=(0,c.He)(s),p=d[a];p.slot.raw&&"number"===p.slot.type&&(l.code=Number(l.code));var b=(null===(r=p.source)||void 0===r||null===(t=r.additionalParams)||void 0===t?void 0:t.length)||0;((null===(i=l.additionalParams)||void 0===i?void 0:i.length)||0)<b&&(d[0].params.splice(1,d[0].params.length-1),d.splice(2,d.length-1));var y=function(e,n){var r=e.params,t=e.source,o=(null==t?void 0:t.params)||[];return n.reduce((function(e,n,t){return[].concat(function(e){if(Array.isArray(e))return f(e)}(i=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,n){if(e){if("string"==typeof e)return f(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,n):void 0}}(i)||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.")}(),[o[t]!==n?{value:0,_isPlaceholder:!0}:r[t]]);var i}),[])}(p,"behaviour"===p.slot?u[l.value]||[]:(null==l?void 0:l.params)||[]);return delete p._isPlaceholder,p.value=l.code,p.params=y,d.forEach((function(e){delete e.source,delete e.slot})),s}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 y(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function m(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?y(Object(r),!0).forEach((function(n){v(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function v(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==b(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==b(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===b(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function g(e,n,r){var t,i,f,b,y=(0,l.useContext)(u.c),v=y.sources,g=(f=(0,l.useState)(null),b=2,function(e){if(Array.isArray(e))return e}(f)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(f,b)||function(e,n){if(e){if("string"==typeof e)return h(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,n):void 0}}(f,b)||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.")}()),j=g[0],x=g[1],O=(0,l.useMemo)((function(){return(0,c.K4)((null==j?void 0:j.pending)||e,y)}),[e,null==j?void 0:j.pending,y]),S=void 0===n?[0]:[n,n+1],w=e.value,P=a()(v.behaviours,w,{}),A=(t=(0,s.L)(e,y.behaviorParameters)).slice.apply(t,S),Z=(i=O.params).slice.apply(i,S),C=(0,c.He)(O),k=(0,l.useMemo)((function(){return(0,c.wx)(C)}),[C]),T=(0,l.useCallback)((function(){return x(null)}),[x]),I=(0,l.useCallback)((function(e){var n=j.nodeIndex,t="tree"===j.type?d(O,{nodeIndex:n,updatedNode:e}):p(O,{source:e,nodeIndex:n,behaviorParameters:y.behaviorParameters});r((0,c.FY)(t)),T()}),[O,j,T,r,y.behaviorParameters]),E=(0,l.useCallback)((function(){j.pending&&(r((0,c.FY)(j.pending)),T())}),[null==j?void 0:j.pending,r,T]),D=(0,l.useCallback)((function(e){var n=j.pending,r=j.nodeIndex,t="tree"===j.type?d(n,{nodeIndex:r,updatedNode:e}):p(n,{source:e,nodeIndex:r,behaviorParameters:y.behaviorParameters}),o=(0,c.K4)(t,y),i=(0,c.He)(o),a=i[r];x(m(m({},j),{},{pending:o,index:i,node:a}))}),[j,x,y]),M=(0,l.useCallback)((function(e){var n=e.node,r=e.type,t=void 0===r?"value":r,i=o()(O),a=(0,c._I)(n.slot,n,t),l=C.indexOf(n);(null==j?void 0:j.nodeIndex)!==l||(null==j?void 0:j.type)!==t?x({pending:i,node:n,type:t,nodeIndex:l,prompt:a}):E()}),[j,O,C,x,E]),R=(0,l.useMemo)((function(){return{behavior:P,behaviorParams:A,bindTree:O,bindTreeParams:Z,editing:j,index:C,invalid:k}}),[P,A,O,Z,j,C,k]),L=(0,l.useMemo)((function(){return{clearEditing:T,handleChange:D,handleConfirm:E,handleUpdateAndConfirm:I,handleUpdateBindValue:I,selectNodeForEditing:M}}),[T,M,D,E,I]);return(0,l.useMemo)((function(){return[R,L]}),[R,L])}},39017:function(e,n,r){r.d(n,{FY:function(){return g},Gg:function(){return j},He:function(){return h},K4:function(){return w},Mc:function(){return x},_I:function(){return O},wx:function(){return S}});var t=r(50361),o=r.n(t),i=r(13311),a=r.n(i),l=r(27361),u=r.n(l),c=r(41696);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?f(Object(r),!0).forEach((function(n){p(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function p(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==s(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function b(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,n)||m(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=m(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var t=0,o=function(){};return{s:o,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},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,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}function m(e,n){if(e){if("string"==typeof e)return v(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,n):void 0}}function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function h(e){var n=[];return function e(r){var t=r.params||[];n.push(r),t.forEach(e)}(e),n}function g(e){var n,r=o()(e),t=y(h(r));try{for(t.s();!(n=t.n()).done;){var i=n.value;for(var a in i)"_isPlaceholder"===a&&i._isPlaceholder||["value","params"].includes(a)||delete i[a]}}catch(e){t.e(e)}finally{t.f()}return r}function j(e){var n=b(e.params,1)[0],r=u()(n,"source.symbol",u()(n,"source.code","")),t=!!u()(n,"source.faIcon")||1===r.length;return 1===e.params.length&&t}function x(e,n){var r=b(e.params,1)[0],t=u()(r,"source.symbol",u()(r,"value","")),o=!u()(r,"source.faIcon")&&t.length>4,i=n.length>1,a=u()(r,"params",[]).length>0;return o||i||a}function O(e,n,r){var t={layer:"Assign layer",mod:"Assign modifier",behaviour:"Assign behavior",keycode:"Assign key code"};if("tree"===r&&n){var o,i,a=(null===(o=n.source)||void 0===o?void 0:o.displayName)||(null===(i=n.source)||void 0===i?void 0:i.name);if(a)return a}return e.name?"Assign ".concat(e.name):e.raw?"Enter raw value":t[e]||t.keycode}function S(e){if(!e[0].source.code)return!0;var n,r=y(e);try{for(r.s();!(n=r.n()).done;){var t,o=n.value;if(((null===(t=o.source)||void 0===t?void 0:t.params)||[]).length>o.params.length)return!0;if(o.params.some((function(e){var n;return"placeholder"!==(null===(n=e.slot)||void 0===n?void 0:n.type)&&(void 0===e.value||""===e.value||void 0===e.source||e._isPlaceholder)})))return!0}}catch(e){r.e(e)}finally{r.f()}}function w(e,n){var r=e.value,t=e.params,o=n.sources,i=n.mergedGlyphs,l=n.behaviorParameters,s=r;function f(e,n){if(!e)return{value:void 0,slot:n,params:[]};var r=e.value,t=e.params,l=e._isPlaceholder,c=function(e,n){var r;return e=u()(o.defines,e,e),Number.isNaN(Number(e))||(e=Number(e)),n.raw?{code:e}:n.enum?a()(n.enum,{code:e})||a()(n.enum,e)||{code:e}:"placeholder"===n.type?{code:e}:null==o||null===(r=o[n])||void 0===r?void 0:r[e]}(r,n);return{value:r,_isPlaceholder:l,slot:n,source:d(d({},c),{},{symbol:u()(i,[null==c?void 0:c.name,"symbol"],null==c?void 0:c.symbol),faIcon:u()(i,[null==c?void 0:c.name,"faIcon"],null==c?void 0:c.faIcon)}),params:u()(c,"params",[]).map((function(e,n){return f(t[n],e)}))}}return{value:r,slot:"behaviour",source:u()(o.behaviours,s,{}),params:(0,c.L)(e,l).map((function(e,n){return f(t[n],e)}))}}},62417:function(e,n,r){function t(e){return e.length>31?"maximum length: 31":e.match(/^[^a-zA-Z]/)?"first character must be a letter":e.match(/[^a-zA-Z0-9,._+-]/)?"valid characters: a-zA-Z0-9,._+-":void 0}r.d(n,{G3:function(){return o},Gk:function(){return t},zq:function(){return i}});var o=t;function i(e){return e.length>31?"maximum length: 31":e.match(/^[^a-zA-Z]/)?"first character must be a letter":e.match(/[^a-zA-Z0-9_]/)?"valid characters: a-zA-Z0-9_":void 0}},82607:function(e,n,r){var t=r(45697),o=r.n(t),i=r(91118),a=r(27213),l=r(67069),u=r(85893);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function s(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function f(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?s(Object(r),!0).forEach((function(n){d(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function d(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==c(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function p(e){var n=e.context,r=e.value,t=e.params,o=e.keyWrapperProps,l=void 0===o?{}:o,c=e.onUpdate;return(0,u.jsx)(i.Z,f(f({},l),{},{children:(0,u.jsx)(a.Z,{context:n,value:r,params:t,onUpdate:c})}))}p.propTypes={label:o().string,value:l.S3.isRequired,params:o().arrayOf(l.dH),onUpdate:o().func.isRequired},n.Z=p},91118:function(e,n,r){var t=r(39693),o=r.n(t),i=r(61953),a=r(85893);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var u=["children","selectable","themeClass","className"];function c(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function s(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?c(Object(r),!0).forEach((function(n){f(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function f(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==l(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}n.Z=function(e){var n=e.children,r=e.selectable,t=void 0===r||r,l=e.themeClass,c=void 0===l?void 0:l,f=e.className,d=void 0===f?"":f,p=function(e,n){if(null==e)return{};var r,t,o=function(e,n){if(null==e)return{};var r,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,u),b=o()([i.Z.key,t&&i.Z.selectable,null!=c?c:i.Z.keyDefaultTheme,d]).join(" ");return(0,a.jsx)("div",s(s({className:b},p),{},{children:n}))}},49519:function(e,n,r){r.d(n,{Z:function(){return f}});var t=r(45697),o=r.n(t),i=r(67294),a=function(e,n){var r=(n+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1))%e.length;return r<0?e.length+r:r},l=r(45944),u=r(85893);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function s(e){var n,r,t=e.results,o=e.onSelect,s=e.renderResult,f=(n=(0,i.useState)(0),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,r)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,n):void 0}}(n,r)||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.")}()),d=f[0],p=f[1],b=(0,i.useRef)(null),y=(0,i.useCallback)((function(e,n){var r,o,i,l,u,c;if(0!==t.length)if(void 0!==n){var s=null!==d?a(t,d,n):e,f='li[data-result-index="'.concat(s,'"]');o=null===(r=b.current)||void 0===r?void 0:r.querySelector(f),i=o.offsetParent.scrollTop,l=o.offsetParent.offsetHeight,u=o.offsetTop,c=u+o.scrollHeight,(u<i||c>i+l)&&o.scrollIntoView(!1),p(s)}else p(e);else p(null)}),[t,d,p]),m=(0,i.useCallback)((function(){y(0,1)}),[y]),v=(0,i.useCallback)((function(){y(t.length-1,-1)}),[y,t]),h=(0,i.useCallback)((function(e){o(t[d],e)}),[t,d,o]),g=(0,i.useCallback)((function(e){if("BUTTON"!==e.target.nodeName){var n={ArrowDown:m,ArrowUp:v,Enter:h}[e.key];n&&(e.preventDefault(),e.stopPropagation(),n(e))}}),[m,v,h]);return(0,i.useEffect)((function(){return document.body.addEventListener("keydown",g),function(){return document.body.removeEventListener("keydown",g)}}),[b,g]),(0,u.jsx)("ul",{className:l.Z.results,ref:b,children:t.map((function(e,n){return(0,u.jsx)("li",{className:d===n?l.Z.highlighted:"",title:e.description,"data-result-index":n,onClick:function(n){return o(e,n)},onDoubleClick:function(n){return o(e,n)},onMouseOver:function(){return y(n)},children:s(e,n)},n)}))})}s.propTypes={results:o().array.isRequired,onSelect:o().func.isRequired,renderResult:o().func.isRequired};var f=s},49671:function(e,n,r){var t=r(87360),o=r.n(t),i=r(45697),a=r.n(i),l=r(67294),u=r(41051),c=r(45944),s=r(85893);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 d(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function p(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?d(Object(r),!0).forEach((function(n){b(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function b(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==f(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===f(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function y(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function m(e){e&&(e.focus(),e.select())}var v=function(e){var n,r,t=e.choices,i=e.searchKey,a=e.searchKeys,f=e.renderResults,d=e.initialQuery,b=!t.length||t.length>10,v=(n=(0,l.useState)(d),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,r)||function(e,n){if(e){if("string"==typeof e)return y(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,n):void 0}}(n,r)||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.")}()),h=v[0],g=v[1],j=(0,l.useMemo)((function(){if(!h||!b)return t;var e=a?{keys:a,limit:30}:{key:i,limit:30};return o().go(h,t,e).map((function(e){return p(p({},e.obj),{},{search:e})}))}),[b,h,t,i,a]),x=(0,l.useCallback)((function(e){g(e.target.value)}),[g]);return(0,s.jsxs)(s.Fragment,{children:[b&&(0,s.jsxs)("div",{className:c.Z.searchWrapper,children:[(0,s.jsx)("input",{ref:m,type:"text",value:h,onChange:x}),(0,s.jsx)(u.Z,{className:c.Z.searchIcon,name:"search"}),(0,s.jsx)(u.Z,{className:c.Z.clearSearchIcon,name:"times",onClick:function(){return g("")}})]}),f(j)]})};v.propTypes={choices:a().array.isRequired,searchKey:a().string,initialQuery:a().string.isRequired,renderResults:a().func.isRequired},v.defaultProps={initialQuery:""},n.Z=v},98588:function(e,n,r){r.d(n,{Z:function(){return Me}});var t=r(78718),o=r.n(t),i=r(45697),a=r.n(i),l=r(67294),u=r(96186),c=r(64261),s=r(81485),f=r(49519),d=r(45944),p=r(67069),b={onCancel:a().func,onChange:a().func,onSelect:a().func.isRequired,node:p.le.isRequired,searchKey:a().string.isRequired,searchThreshold:a().number},y=r(85893);function m(e){var n=(0,l.useContext)(s.c).getSearchTargets,r=e.param,t=e.onSelect,o=(0,l.useMemo)((function(){return n(r)}),[n,r]);return(0,y.jsx)(f.Z,{results:o,onSelect:t,renderResult:function(e){return(0,y.jsxs)(y.Fragment,{children:[e.code,e.description&&(0,y.jsx)("p",{className:d.Z.description,children:e.description})]})}})}m.propTypes=b;var v=r(87360),h=r.n(v),g=r(49671);function j(e){var n=e.searchKey,r=e.node,t=e.param,o=e.behaviour,i=e.context,a=e.onSelect,u=(0,l.useContext)(s.c).getSearchTargets,c=(0,l.useMemo)((function(){return u(t,o.code,i)}),[u,t,o,i]);return(0,y.jsx)(g.Z,{choices:c,initialQuery:r.value||"",searchKey:n,renderResults:function(e){return e&&(0,y.jsx)(f.Z,{results:e,onSelect:a,renderResult:x})}})}function x(e){var n=e.search?(0,y.jsx)("span",{children:h().highlight(e.search,(function(e,n){return(0,y.jsx)("b",{children:e},n)}))}):(0,y.jsx)("span",{children:e.code}),r=e.displayName||e.description;return(0,y.jsxs)(y.Fragment,{children:[n,r&&(0,y.jsx)("p",{className:d.Z.description,children:r})]})}j.propTypes=b;var O=r(55651),S=r(27926);function w(e){return w="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},w(e)}function P(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function A(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?P(Object(r),!0).forEach((function(n){Z(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function Z(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==w(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==w(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===w(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function C(e){var n=e.node,r=e.onChange,t=e.onConfirm,o=e.inline,i=(0,l.useMemo)((function(){return{h:Number(n.params[0].value),s:Number(n.params[1].value),l:Number(n.params[2].value)}}),[n.params]),a=(0,l.useCallback)((function(e){var t=e.h,o=e.s,i=e.l;r(A(A({},n),{},{params:[{value:Math.round(t)},{value:Math.round(o)},{value:Math.round(i)}]}))}),[n,r]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,y.jsx)(O.Jz,{color:i,onChange:a})}),!o&&(0,y.jsx)("p",{style:{textAlign:"center"},children:(0,y.jsx)(S.Z,{onClick:t,children:"Confirm"})})]})}C.propTypes=b;var k=r(94184),T=r.n(k),I=r(39693),E=r.n(I),D=r(35161),M=r.n(D),R=r(41051),L=r(2062),N=r(39017),U=r(91118),q=r(74871),z=r(82569),K=r.n(z);function F(e,n){if(e){if("string"==typeof e)return Q(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Q(e,n):void 0}}function Q(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}var J=r(93379),X=r.n(J),H=r(7795),_=r.n(H),Y=r(90569),G=r.n(Y),W=r(3565),V=r.n(W),B=r(19216),$=r.n(B),ee=r(44589),ne=r.n(ee),re=r(14409),te={};te.styleTagTransform=ne(),te.setAttributes=V(),te.insert=G().bind(null,"head"),te.domAPI=_(),te.insertStyleElement=$(),X()(re.Z,te);var oe=re.Z&&re.Z.locals?re.Z.locals:void 0;function ie(e){return ie="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},ie(e)}function ae(e){return function(e){if(Array.isArray(e))return le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return le(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?le(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function ue(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==ie(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==ie(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ie(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var ce=["LS","LA","LC","LG"],se=["RS","RA","RC","RG"],fe={LS:{short:"LSHFT",full:"Left Shift"},LC:{short:"LCTRL",full:"Left Control"},LA:{short:"LALT",full:"Left Alt"},LG:{short:"LGUI",full:"Left Gui"},RS:{short:"RSHFT",full:"Right Shift"},RC:{short:"RCTRL",full:"Right Control"},RA:{short:"RALT",full:"Right Alt"},RG:{short:"RGUI",full:"Right Gui"}},de=" (This modifier is implicitly used by the active keycode and cannot be de-selected)";function pe(e){var n=e.selected,r=e.implicit,t=e.row,o=e.onChange;return(0,y.jsx)("ul",{className:oe.modifiers,children:t.map((function(e,t){var i;return(0,y.jsx)("li",{title:fe[e].full+(r.includes(e)?de:""),className:T()((i={},ue(i,oe.selected,n.includes(e)),ue(i,oe.implicit,r.includes(e)),i)),children:(0,y.jsxs)("label",{children:[(0,y.jsx)("input",{type:"checkbox",checked:n.includes(e)||r.includes(e),disabled:r.includes(e),onChange:function(r){o(r.target.checked?[].concat(ae(n),[e]):K()(n,e))}})," ",fe[e].short]})},t)}))})}function be(e){var n=e.selected,r=e.implicit,t=e.onChange;return function(e,n,r){!function(e){var n,r,t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).singleKeyOnly,o=void 0!==t&&t,i=(n=(0,l.useState)([]),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,r)||F(n,r)||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.")}())[1],a=(0,l.useCallback)((function(){return i([])}),[i]);(0,l.useEffect)((function(){function n(e){i((function(n){return o?[e.code]:[].concat(function(e){return function(e){if(Array.isArray(e))return Q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||F(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.")}()}(n),[e.code])}))}function r(n){i((function(r){return r.includes(n.code)&&setTimeout((function(){return e(n)})),K()(r,n.code)}))}return document.body.addEventListener("keydown",n),document.body.addEventListener("keyup",r),document.body.addEventListener("focusout",a),function(){document.body.removeEventListener("keydown",n),document.body.removeEventListener("keyup",r),document.body.removeEventListener("focusout",a)}}),[o,i,e,a])}((0,l.useCallback)((function(t){var o=function(e){var n,r={Control:"C",Shift:"S",Alt:"A",Meta:"G"}[e.key],t=(n={},ue(n,KeyboardEvent.DOM_KEY_LOCATION_LEFT,"L"),ue(n,KeyboardEvent.DOM_KEY_LOCATION_RIGHT,"R"),n)[e.location];return r&&t?"".concat(t).concat(r):null}(t);o&&!n.includes(o)&&r(e.includes(o)?K()(e,o):[].concat(ae(e),[o]))}),[e,n,r]),{singleKeyOnly:!0})}(n,r,t),(0,y.jsxs)("div",{className:oe.allModifiers,children:[(0,y.jsx)(pe,{row:ce,selected:n,implicit:r,onChange:t}),(0,y.jsx)(pe,{row:se,selected:n,implicit:r,onChange:t})]})}be.propTypes={selected:a().arrayOf(a().string),implicit:a().arrayOf(a().string),onChange:a().func.isRequired};var ye=r(81404);function me(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ve(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 ve(e,n){if(e){if("string"==typeof e)return he(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?he(e,n):void 0}}function he(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function ge(e){var n,r,t=(n=e.search||[],r=1,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,r)||ve(n,r)||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.")}())[0],o=t?(0,y.jsx)("span",{dangerouslySetInnerHTML:{__html:h().highlight(t)}}):(0,y.jsx)("span",{children:e.code}),i=function(e){var n=null==e?void 0:e.symbol,r=null==e?void 0:e.faIcon;return r?(0,y.jsx)(R.Z,{name:r}):n&&!e.aliases.includes(n)?n:void 0}(e);return(0,y.jsxs)("div",{className:oe.resultItem,children:[(0,y.jsxs)("div",{className:oe.description,children:[o,(0,y.jsx)("p",{className:d.Z.description,children:e.description})]}),i&&(0,y.jsx)("div",{className:oe.symbol,children:i})]})}function je(e){var n=e.node,r=e.onSelect,t=e.onChange,o=e.onConfirm,i=e.behaviour,a=e.inline,u=(0,l.useContext)(s.c),c=u.getSearchTargets,p=(0,l.useMemo)((function(){return M()((0,q.H)(n),"source")}),[n]),b=(0,l.useMemo)((function(){return p.at(-1)}),[p]),m=(0,l.useMemo)((function(){var e;return null===(e=p.at(-1))||void 0===e?void 0:e.code}),[p]),v=(0,l.useMemo)((function(){return M()(1===p.length?[]:p.slice(0,-1),"code")}),[p]),h=(0,l.useMemo)((function(){return c("code",i.code).filter((function(e){return 0===e.params.length}))}),[c,i]),j=(0,N.K4)({value:"&kp",params:[{value:m,params:[]}]},u),x=(0,l.useCallback)((function(e){t((0,q.n)(E()([].concat(me(e),[m]))))}),[t,m]),O=(0,l.useCallback)((function(e){t((0,q.n)(E()([].concat(me(v),[null==e?void 0:e.code]))))}),[t,v]),w=(0,l.useCallback)((function(e,n){"dblclick"!==n.type?O(e):r((0,q.n)(E()([].concat(me(v),[null==e?void 0:e.code]))))}),[r,O,v]);return(0,y.jsxs)("div",{className:T()(d.Z.dialog,oe.wrapper),children:[(0,y.jsxs)("div",{style:{display:"flex",gap:"10px"},children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("h3",{children:"Keycode"}),(0,y.jsx)(U.Z,{className:oe.previewKeycode,selectable:!1,children:(0,y.jsx)(ye.Z,{node:j.params[0],onSelect:function(){}})})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("h3",{children:"Modifiers"}),(0,y.jsx)(be,{selected:v,implicit:(null==b?void 0:b.modifiers)||[],onChange:x})]})]}),(0,y.jsx)("h3",{children:"Available Keycodes"}),(0,y.jsx)(g.Z,{choices:h,initialQuery:m,searchKeys:["code","symbol"],renderResults:function(e){return e&&(0,y.jsx)(f.Z,{results:e,onSelect:w,renderResult:ge})}}),!a&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(L.Z,{className:oe.quickCloseTip,children:"Double-click to select and close the dialog"}),(0,y.jsxs)("div",{style:{marginTop:"10px",textAlign:"center"},children:[(0,y.jsx)(S.Z,{disabled:!m,onClick:o,children:"Confirm"}),(0,y.jsx)(S.Z,{onClick:function(){r(n)},secondary:!0,children:"Cancel"})]})]})]})}je.propTypes=b;var xe=je;function Oe(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function Se(e){e&&(e.focus(),e.select())}function we(e){var n,r,t=e.value,o=e.param,i=e.onSelect,a=(n=(0,l.useState)(t),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,r)||function(e,n){if(e){if("string"==typeof e)return Oe(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Oe(e,n):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=a[0],c=a[1],s=(0,l.useCallback)((function(e){"Enter"===e.key&&i({code:u})}),[u,i]),f=(0,l.useCallback)((function(e){var n=e.target.value;"number"===o.type&&(n=Number(n),Number.isNaN(n))||c(n)}),[o,c]);return(0,y.jsx)("input",{ref:Se,type:"text",value:u,onChange:f,onKeyDown:s})}we.propTypes=b;var Pe=r(95998),Ae=r(80736);function Ze(e){var n=e.onSelect,r=(0,Pe.v9)(Ae.vl),t=(0,l.useMemo)((function(){return r.map((function(e,n){return{code:n,description:e.name||"Layer ".concat(n)}}))}),[r]);return(0,y.jsx)(f.Z,{results:t,onSelect:n,renderResult:function(e){return(0,y.jsxs)(y.Fragment,{children:[e.code,e.description&&(0,y.jsx)("p",{className:d.Z.description,children:e.description})]})}})}Ze.propTypes=b;var Ce=["prompt","onCancel"];function ke(e){return ke="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},ke(e)}function Te(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function Ie(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Te(Object(r),!0).forEach((function(n){Ee(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Te(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function Ee(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==ke(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!==ke(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ke(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function De(e){var n=e.node,r=e.type,t=e.onSelect,i=e.onChange,a=e.onConfirm,u=o()(e,["node","value","prompt","param","behaviour","context","searchKey","inline"]),c=(0,l.useMemo)((function(){var e;return"tree"===r&&"hsb-color-picker"===(null===(e=n.source)||void 0===e?void 0:e.helper)?C:n.slot.raw||"placeholder"===n.slot.type?we:n.slot.enum?m:"code"===n.slot?xe:"layer"===n.slot?Ze:j}),[n,r]);return(0,y.jsx)("div",{className:d.Z.wrapper,children:(0,y.jsx)(c,Ie(Ie({},u),{},{param:n.slot,onSelect:t,onChange:i,onConfirm:a}))})}function Me(e){var n=e.prompt,r=e.onCancel,t=function(e,n){if(null==e)return{};var r,t,o=function(e,n){if(null==e)return{};var r,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Ce);return(0,y.jsx)(c.Z,{onDismiss:r,children:(0,y.jsxs)(u.Z,{dismissText:null,classes:[d.Z.dialogWrapper],children:[(0,y.jsx)("h2",{children:n}),(0,y.jsx)(De,Ie({},t))]})})}De.propTypes={type:a().string.isRequired,node:p.le.isRequired,behaviour:a().object.isRequired,searchKey:a().string.isRequired,searchThreshold:a().number,inline:a().bool,onCancel:a().func,onUpdate:a().func,onSelect:a().func.isRequired},De.defaultProps={type:"value",value:"",freeForm:!1,inline:!1,searchThreshold:10},Me.propTypes={type:a().string.isRequired,node:p.le.isRequired,behaviour:a().object.isRequired,prompt:a().string.isRequired,searchKey:a().string.isRequired,searchThreshold:a().number,onCancel:a().func.isRequired,onChange:a().func,onSelect:a().func.isRequired}},56281:function(e,n,r){var t=r(8081),o=r.n(t),i=r(23645),a=r.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",""]),a.locals={action:"pi2Ig8c3Fdh4H2Jpxdo7",secondary:"Ctpu4E2dZYJ6g8CUGFOF"},n.Z=a},528:function(e,n,r){var t=r(8081),o=r.n(t),i=r(23645),a=r.n(i)()(o());a.push([e.id,".sq9i7hQeTeeKuarmO8oA {\n display: inline-block;\n font-size: 70%;\n background: rgba(0, 0, 0, 0.5);\n color: white;\n padding: 4px;\n border-radius: 4px;\n width: max-content;\n}\n",""]),a.locals={tip:"sq9i7hQeTeeKuarmO8oA"},n.Z=a},14409:function(e,n,r){var t=r(8081),o=r.n(t),i=r(23645),a=r.n(i)()(o());a.push([e.id,'.AmikJd3HeM7NGUa8io2A {\n width: 350px;\n}\n\n.AmikJd3HeM7NGUa8io2A h3:first-child {\n margin-top: 0px;\n}\n\n.xCOOsvxL5qQ3kR8ri91A {\n pointer-events: none;\n box-shadow: 0 4px 10px 0px rgba(0, 0, 0, 0.5);\n}\n\n.Ox9WHfAMFuthXo6ZOJoI {\n padding: 2px 0;\n}\n\n.u4uW9U2E0DfbUM9vP9pf {\n text-align: center;\n padding: 0;\n margin: 0;\n}\n\n.u4uW9U2E0DfbUM9vP9pf li {\n display: inline-block;\n font-family: monospace, monospace;\n font-size: 70%;\n margin: 2px;\n border-radius: 2px;\n\n background-color: rgba(0, 0, 0, .5);\n opacity: 0.5;\n color: white;\n}\n.u4uW9U2E0DfbUM9vP9pf li label {\n display: inline-block;\n padding: 4px;\n}\n\n.u4uW9U2E0DfbUM9vP9pf li.YcHSun3PLo8dCb9qIZtc {\n opacity: 1;\n background-color: var(--selection);\n color: white;\n}\n\n.u4uW9U2E0DfbUM9vP9pf li.Ix6wQt3EBFUH2PUcsqgm {\n background-color: var(--error-highlight);\n filter: saturate(50%);\n}\n\n.u4uW9U2E0DfbUM9vP9pf li:not(.Ix6wQt3EBFUH2PUcsqgm):hover {\n opacity: 1;\n background-color: var(--hover-selection);\n}\n\n.u4uW9U2E0DfbUM9vP9pf li.Ix6wQt3EBFUH2PUcsqgm:hover * {\n cursor: not-allowed;\n}\n\n.u4uW9U2E0DfbUM9vP9pf li input[type="checkbox"] {\n margin: 0;\n vertical-align: text-bottom;\n}\n\n.d3hMEDpEkH8H7YLG_NjI {\n width: 100% !important;\n box-sizing: border-box;\n text-align: center;\n}\n\n.gFHbtpz6TuduOVYLXwHu {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.AfAg5j2RJEcA0Zh3z7mX {\n flex-grow: 1;\n}\n\n.YeOANHLbze2W1EGYOFiI {\n font-size: 120%;\n padding: 6px 10px;\n color: white !important;\n background-color: rgba(30, 30, 30, 0.4);\n border-radius: 5px;\n}',""]),a.locals={wrapper:"AmikJd3HeM7NGUa8io2A",previewKeycode:"xCOOsvxL5qQ3kR8ri91A",allModifiers:"Ox9WHfAMFuthXo6ZOJoI",modifiers:"u4uW9U2E0DfbUM9vP9pf",selected:"YcHSun3PLo8dCb9qIZtc",implicit:"Ix6wQt3EBFUH2PUcsqgm",quickCloseTip:"d3hMEDpEkH8H7YLG_NjI",resultItem:"gFHbtpz6TuduOVYLXwHu",description:"AfAg5j2RJEcA0Zh3z7mX",symbol:"YeOANHLbze2W1EGYOFiI"},n.Z=a},33151:function(e,n,r){var t=r(8081),o=r.n(t),i=r(23645),a=r.n(i),l=r(2),u=a()(o());u.i(l.Z,"",!0),u.push([e.id,'/* @import "../../Keyboard/Keys/styles.module.css"; */\n\n.'+l.Z.locals.key+" .ElYzpTlttqVbs6KKy9ob {\n align-self: center;\n}\n."+l.Z.locals.extracted+" .ElYzpTlttqVbs6KKy9ob {\n display: inline-block;\n border-bottom: .15em dotted var(--key-color-base);\n box-sizing: border-box;\n padding: 6px .25em;\n}\n\n:hover .ElYzpTlttqVbs6KKy9ob:hover {\n cursor: pointer;\n background-color: var(--hover-selection);\n border-radius: 0;\n border-radius: 3px;\n}\n\n.rdE_HhSUTcg2dK35N2WA {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 1em;\n aspect-ratio: 1;\n border-radius: 2px;\n}\n\n."+l.Z.locals.extracted+" .rdE_HhSUTcg2dK35N2WA {\n display: inline-block;\n}\n",""]),u.locals={colorIconWrapper:"ElYzpTlttqVbs6KKy9ob",colorIcon:"rdE_HhSUTcg2dK35N2WA"},n.Z=u},2:function(e,n,r){var t=r(8081),o=r.n(t),i=r(23645),a=r.n(i)()(o());a.push([e.id,'.CoLZlKR1WcMrFd9XhDMC {\n\tposition: relative;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\n\tfont-family: Quicksand, avenir, sans-serif;\n\n\t/* TODO: remove this once I have a wrapper with size defaults */\n\twidth: 65px;\n\theight: 65px;\n\n\tfont-size: 110%;\n\tborder-radius: 5px;\n}\n\n.CoLZlKR1WcMrFd9XhDMC.MZMfZSmJbwqqfp28UUOi { cursor: pointer; }\n.CoLZlKR1WcMrFd9XhDMC.MZMfZSmJbwqqfp28UUOi * {\n\tpointer-events: none;\n\tborder: none;\n\ttext-decoration: none !important;\n}\n\n\n.CT4uGhwl8sY0LwT3p39g:not(:hover) .UNzQquWsoIanOpIN0Q9L,\n.OsA2qRpHoDPcN93o_TUX:not(:hover) .DejZXCvvhJILPbs9Q8ht.UNzQquWsoIanOpIN0Q9L {\n\ttext-decoration: underline wavy var(--error-highlight);\n\ttext-underline-offset: 4px;\n\tcolor: var(--error-highlight);\n\tfont-weight: bold;\n}\n\n.Y5EVt8b0BaXNd9uLxhfh {\n\tposition: absolute;\n\tleft: 2px;\n\tbottom: 2px;\n\tfont-size: 80%;\n\n\tanimation: sYr3l9y03JxO_2AP73jr ease-in-out 1s alternate-reverse;\n}\n.Y5EVt8b0BaXNd9uLxhfh:hover {\n\tcolor: rgb(255, 225, 0);\n}\n\n@keyframes sYr3l9y03JxO_2AP73jr {\n\t0% { color: var(--key-color-base) }\n\t100% { color: var(--key-color-extreme) }\n}\n\n.CoLZlKR1WcMrFd9XhDMC:hover .DejZXCvvhJILPbs9Q8ht,\n.CoLZlKR1WcMrFd9XhDMC:hover .DejZXCvvhJILPbs9Q8ht :before,\n.CoLZlKR1WcMrFd9XhDMC:hover .GliE4Ybwli9X6TNTjD1_ {\n\tborder-bottom-left-radius: 0;\n\tborder-bottom-right-radius: 0;\n\ttext-decoration: underline dotted white 2px;\n\ttext-underline-offset: 4px;\n}\n\n\n.huQDP3GbTLThbVIP8wFp {\n\tcolor: var(--key-color-base);\n\tbackground-color: var(--key-bg-base);\n}\n\n.PpMmKpJfEi37Ldw7AeBT {\n\tborder-radius: 100%;\n\tbackground-color: var(--key-bg-base);\n\tcolor: var(--key-color-base);\n}\n\n._F1Vep3btfY3Rl4VJaUQ {\n\twidth: 80px;\n\theight: 80px;\n\tborder-radius: 100%;\n\tbackground-color: var(--key-bg-base);\n\tcolor: var(--key-color-base);\n}\n\n._F1Vep3btfY3Rl4VJaUQ .GliE4Ybwli9X6TNTjD1_ {\n\tleft: 50%;\n\ttransform: translateX(-50%);\n}\n._F1Vep3btfY3Rl4VJaUQ .ApHDJFJGYUaGTgzMeIKZ[data-is-root="true"] {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n._F1Vep3btfY3Rl4VJaUQ .ApHDJFJGYUaGTgzMeIKZ[data-is-root="true"] .mLz637Atn0jZXey6Rx4v:first-child::before {\n\tcontent: "⟳";\n\tfont-size: 140%;\n\tfont-weight: bold;\n}\n._F1Vep3btfY3Rl4VJaUQ .ApHDJFJGYUaGTgzMeIKZ[data-is-root="true"] .mLz637Atn0jZXey6Rx4v:nth-child(2)::before {\n\tcontent: "⟲";\n\tfont-size: 140%;\n\tfont-weight: bold;\n}\n._F1Vep3btfY3Rl4VJaUQ:hover .ApHDJFJGYUaGTgzMeIKZ[data-is-root="true"] .mLz637Atn0jZXey6Rx4v:first-child::before,\n._F1Vep3btfY3Rl4VJaUQ:hover .ApHDJFJGYUaGTgzMeIKZ[data-is-root="true"] .mLz637Atn0jZXey6Rx4v:nth-child(2)::before {\n\tcolor: white;\n}\n\n\n.k2EIh8YlFvp9sBuklSxx {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 50%;\n\ttransform: translateX(-50%);\n\tfont-size: 50%;\n}\n\n.CoLZlKR1WcMrFd9XhDMC:hover, .PpMmKpJfEi37Ldw7AeBT:hover {\n\tbackground-color: var(--hover-selection);\n\ttransition: 200ms;\n\tz-index: 1;\n}\n.CoLZlKR1WcMrFd9XhDMC:hover .DejZXCvvhJILPbs9Q8ht, .CoLZlKR1WcMrFd9XhDMC:hover .GliE4Ybwli9X6TNTjD1_ {\n\tcolor: var(--key-color-hover);\n}\n.CoLZlKR1WcMrFd9XhDMC > .DejZXCvvhJILPbs9Q8ht {\n\tpadding: 5px;\n}\n\n.mLz637Atn0jZXey6Rx4v {\n\tdisplay: inline-flex;\n}\n\n[data-simple="true"] { font-size: 140%; }\n[data-long="true"] { font-size: 60%; }\n\n.ApHDJFJGYUaGTgzMeIKZ:not([data-is-root="true"])::before { content: \'(\'; opacity: 0.4; font-weight: bold; margin: 2px; }\n.ApHDJFJGYUaGTgzMeIKZ:not([data-is-root="true"])::after { content: \')\'; opacity: 0.4; font-weight: bold; margin: 2px; }\n.ApHDJFJGYUaGTgzMeIKZ:not([data-is-root="true"]) .mLz637Atn0jZXey6Rx4v:not(:last-child)::after { content: \',\'; }\n\n.DejZXCvvhJILPbs9Q8ht {\n\tcursor: default;\n\tpadding: 0px 4px;\n\tmargin-left: -2px;\n\tmargin-right: -2px;\n}\n\n.CT4uGhwl8sY0LwT3p39g .DejZXCvvhJILPbs9Q8ht {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\tbox-sizing: content-box;\n\tmin-width: 0.5em;\n\ttext-align: center;\n\tborder-radius: 4px;\n}\n.CoLZlKR1WcMrFd9XhDMC .DejZXCvvhJILPbs9Q8ht:hover {\n\tbackground-color: white !important;\n\tcolor: var(--hover-selection) !important;\n\tborder-radius: 4px !important;\n}\n\n.DejZXCvvhJILPbs9Q8ht * {\n\tpointer-events: none;\n}\n\n.OsA2qRpHoDPcN93o_TUX {\n\t/* display: inline-block; */\n\tmargin: 0 5px;\n\tfont-family: Quicksand, avenir, sans-serif;\n\tfont-size: 110%;\n}\n.OsA2qRpHoDPcN93o_TUX .mLz637Atn0jZXey6Rx4v {\n\talign-items: center;\n\tgap: 6px;\n}\n.OsA2qRpHoDPcN93o_TUX .DejZXCvvhJILPbs9Q8ht {\n\talign-items: center;\n\tpadding: 6px 12px;\n\tborder-radius: 5px;\n\tcolor: var(--key-color-base);\n\tborder-bottom: .15em dotted var(--key-color-base);\n\tborder-radius: 0;\n}\n\n.OsA2qRpHoDPcN93o_TUX .DejZXCvvhJILPbs9Q8ht:hover {\n\tbackground-color: var(--hover-selection);\n\tborder-radius: 5px;\n\tcolor: white;\n\tcursor: pointer;\n}\n\n.DejZXCvvhJILPbs9Q8ht code+*::before {\n\tcontent: "|";\n\tbackground-color: transparent;\n\tmargin: auto 5px;\n}\n\n.GliE4Ybwli9X6TNTjD1_ {\n position: absolute;\n top: 0;\n left: 0;\n font-size: 10px;\n padding: 2px;\n opacity: 0.8;\n}\n\n.GliE4Ybwli9X6TNTjD1_:hover {\n cursor: pointer;\n color: var(--hover-selection) !important;\n background-color: var(--key-bg-hover);\n border-radius: 5px 0;\n opacity: 1;\n}\n',""]),a.locals={key:"CoLZlKR1WcMrFd9XhDMC",unified:"MZMfZSmJbwqqfp28UUOi",selectable:"CT4uGhwl8sY0LwT3p39g",missingValue:"UNzQquWsoIanOpIN0Q9L",extracted:"OsA2qRpHoDPcN93o_TUX",code:"DejZXCvvhJILPbs9Q8ht",missing:"Y5EVt8b0BaXNd9uLxhfh",pulse:"sYr3l9y03JxO_2AP73jr","behaviour-binding":"GliE4Ybwli9X6TNTjD1_",keyDefaultTheme:"huQDP3GbTLThbVIP8wFp",encoder:"PpMmKpJfEi37Ldw7AeBT",encoder2:"_F1Vep3btfY3Rl4VJaUQ",params:"ApHDJFJGYUaGTgzMeIKZ",param:"mLz637Atn0jZXey6Rx4v",encoderDirection:"k2EIh8YlFvp9sBuklSxx"},n.Z=a},47881:function(e,n,r){var t=r(8081),o=r.n(t),i=r(23645),a=r.n(i)()(o());a.push([e.id,'.sP2kDRoTZElZUTNHq033 {\n\twidth: 300px;\n\tbackground-color: var(--dialog-bg);\n}\n\n.yaxqlR_GEWJ1lBISL3_N {\n min-width: 300px;\n\tpadding: 15px\n}\n.lPSkq707ZDxmzbGw5Qqy input[type="text"] {\n\tdisplay: block;\n\twidth: 100%;\n\theight: 30px;\n\tline-height: 30px;\n\n\tfont-size: 120%;\n\tmargin: 0;\n\tpadding: 4px;\n\tborder: none;\n\tborder-radius: 4px;\n box-sizing: border-box;\n}\nul.inAS9Qunkf3g5K3xz6o6 {\n\tposition: relative;\n\tfont-family: monospace;\n\tlist-style-position: inside;\n\tlist-style-type: none;\n\tmax-height: 300px;\n\toverflow: scroll;\n\tpadding: 4px;\n margin: 4px 0;\n\tbackground: rgba(0, 0, 0, 0.75);\n\tborder-radius: 4px;\n}\n.inAS9Qunkf3g5K3xz6o6 li {\n\tcursor: pointer;\n\tcolor: white;\n\tpadding: 5px;\n}\n.inAS9Qunkf3g5K3xz6o6 li:hover, .inAS9Qunkf3g5K3xz6o6 li.BL7Cxrn_efblQXY3W1Sw {\n\tbackground: white;\n\tcolor: black;\n}\n.inAS9Qunkf3g5K3xz6o6 li b { color: dodgerblue; }\n.inAS9Qunkf3g5K3xz6o6 li .uld0XaeoQaQJJwp0LT0X {\n\tfont-style: italic;\n\tfont-size: 90%;\n\tmargin: 0;\n\tcolor: gray;\n}\n\n.pqiZQublKXvmnT_ESDxQ {\n font-size: 10px;\n}\n\n.pqiZQublKXvmnT_ESDxQ a {\n color: var(--selection);\n border-bottom: 1px dotted var(--selection);\n cursor: pointer;\n}\n\n.ECUs4g2j1rekP4xxgQDr {\n position: relative;\n}\n.lPSkq707ZDxmzbGw5Qqy .ECUs4g2j1rekP4xxgQDr input {\n padding-left: 30px;\n}\n\n.xDUAgQZeBp0TZSOqCwHm {\n position: absolute;\n\ttop: 50%;\n\tleft: 10px;\n\ttransform: translateY(-50%);\n\tpointer-events: none;\n}\n.eY5zRl49sESLjXmizMEP {\n position: absolute;\n\ttop: 50%;\n\tright: 10px;\n\ttransform: translateY(-50%);\n\tcursor: pointer;\n}',""]),a.locals={dialog:"sP2kDRoTZElZUTNHq033",dialogWrapper:"yaxqlR_GEWJ1lBISL3_N",wrapper:"lPSkq707ZDxmzbGw5Qqy",results:"inAS9Qunkf3g5K3xz6o6",highlighted:"BL7Cxrn_efblQXY3W1Sw",description:"uld0XaeoQaQJJwp0LT0X","choices-counter":"pqiZQublKXvmnT_ESDxQ",searchWrapper:"ECUs4g2j1rekP4xxgQDr",searchIcon:"xDUAgQZeBp0TZSOqCwHm",clearSearchIcon:"eY5zRl49sESLjXmizMEP"},n.Z=a},61953:function(e,n,r){var t=r(93379),o=r.n(t),i=r(7795),a=r.n(i),l=r(90569),u=r.n(l),c=r(3565),s=r.n(c),f=r(19216),d=r.n(f),p=r(44589),b=r.n(p),y=r(2),m={};m.styleTagTransform=b(),m.setAttributes=s(),m.insert=u().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=d(),o()(y.Z,m),n.Z=y.Z&&y.Z.locals?y.Z.locals:void 0},45944:function(e,n,r){var t=r(93379),o=r.n(t),i=r(7795),a=r.n(i),l=r(90569),u=r.n(l),c=r(3565),s=r.n(c),f=r(19216),d=r.n(f),p=r(44589),b=r.n(p),y=r(47881),m={};m.styleTagTransform=b(),m.setAttributes=s(),m.insert=u().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=d(),o()(y.Z,m),n.Z=y.Z&&y.Z.locals?y.Z.locals:void 0}}]);
|