(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{233:function(e,t,n){"use strict";e.exports=n(234)},234:function(e,t,n){"use strict";n.r(t),n.d(t,"HotKeys",(function(){return Ze})),n.d(t,"GlobalHotKeys",(function(){return tt})),n.d(t,"IgnoreKeys",(function(){return ot})),n.d(t,"ObserveKeys",(function(){return rt})),n.d(t,"withHotKeys",(function(){return Xe})),n.d(t,"withIgnoreKeys",(function(){return st})),n.d(t,"withObserveKeys",(function(){return at})),n.d(t,"configure",(function(){return ut})),n.d(t,"getApplicationKeyMap",(function(){return ct})),n.d(t,"recordKeyCombination",(function(){return lt}));var i=n(1),o=n.n(i),r=n(0),s=n.n(r);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})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?b(e):t}function C(e,t,n){return(C="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function E(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=this.constructor.levels.error&&(this.error=console.error,this.logLevel>=this.constructor.levels.warn&&(this.warn=console.warn,["info","debug","verbose"].some((function(e){return!(t.logLevel>=t.constructor.levels[e]&&(t[e]=console.log,1))}))))}return l(e,[{key:"noop",value:function(){}}]),e}();h(H,"logIcons",["📕","📗","📘","📙"]),h(H,"componentIcons",["🔺","⭐️","🔷","🔶","⬛️"]),h(H,"eventIcons",["❤️","💚","💙","💛","💜","🧡"]),h(H,"levels",{none:0,error:1,warn:2,info:3,debug:4,verbose:5});var M={keydown:0,keypress:1,keyup:2},T={Shift:["shiftKey"],Meta:["metaKey"],Control:["ctrlKey"],Alt:["altKey"]},O={"`":["~"],1:["!"],2:["@",'"'],3:["#","£"],4:["$"],5:["%"],6:["^"],7:["&"],8:["*"],9:["("],0:[")"],"-":["_"],"=":["plus"],";":[":"],"'":['"',"@"],",":["<"],".":[">"],"/":["?"],"\\":["|"],"[":["{"],"]":["}"],"#":["~"]};function L(e){return O[e]||[1===e.length?e.toUpperCase():e]}function A(e,t){return e.hasOwnProperty(t)}function x(e){var t=1this._maxLength;)this._shift()}},{key:"_shift",value:function(){this._records.shift()}}]),e}();function ke(e){return Array.isArray(e)?e:e?[e]:[]}var me=function(e){function t(){return u(this,t),K(this,p(t).apply(this,arguments))}return v(t,e),l(t,[{key:"add",value:function(e,n){C(p(t.prototype),"set",this).call(this,e,{childIds:[],parentId:null,keyMap:n})}},{key:"update",value:function(e,n){var i=C(p(t.prototype),"get",this).call(this,e);C(p(t.prototype),"set",this).call(this,e,d({},i,{keyMap:n}))}},{key:"setParent",value:function(e,t){this.get(e).parentId=t,this._addChildId(t,e)}},{key:"remove",value:function(e){var n=this._getParentId(e);this._removeChildId(n,e),C(p(t.prototype),"remove",this).call(this,e)}},{key:"_getParentId",value:function(e){var t=this.get(e);return t&&t.parentId}},{key:"_addChildId",value:function(e,t){this.get(e).childIds.push(t)}},{key:"_removeChildId",value:function(e,t){var n=this.get(e);n&&(n.childIds=function(e){var t=1r?this._longestSequence=s.sequenceLength:this._recalculateLongestSequence()),this._list[this.getIndexById(e)]=s}},{key:"remove",value:function(e){var t=this._isUpdatingComponentWithLongestSequence(e);this.removeAtPosition(this.getIndexById(e)),t&&this._recalculateLongestSequence()}},{key:"any",value:function(){return 0!==this.getLength()}},{key:"isRoot",value:function(e){return this.getIndexById(e)>=this.getLength()-1}},{key:"getLongestSequence",value:function(){return this._longestSequence}},{key:"anyActionsForEventType",value:function(e){return!!this._keyMapEventRecord[e]}},{key:"getLength",value:function(){return this._list.length}},{key:"getAtPosition",value:function(e){return this._list[e]}},{key:"removeAtPosition",value:function(e){this._list=function(e,t){return[].concat(E(e.slice(0,t)),E(e.slice(t+1)))}(this._list,e);for(var t=e;tthis.getLongestSequence()&&(this._longestSequenceComponentId=i,this._longestSequence=n)}}},{key:"_applyHardSequences",value:function(e,t){return w.option("enableHardSequences")?Object.keys(t).reduce((function(n,i){return!!!e[i]&&se.isValidKeySerialization(i)&&(n.keyMap[i]=i),n.handlers[i]=t[i],n}),{keyMap:{},handlers:{}}):{keyMap:e,handlers:t}}},{key:"_buildActionDictionary",value:function(e,t,n){var i=this;return Object.keys(e).reduce((function(o,r){var s=e[r];return(ve(s)&&A(s,"sequences")?ke(s.sequences):ke(s)).forEach((function(e){var s=function(e,t){if(ve(e)){var n=e.sequence,i=e.action;return{keySequence:n,keyEventType:ce(i)?M[t.defaultKeyEvent]:M[i]}}return{keySequence:e,keyEventType:M[t.defaultKeyEvent]}}(e,t),a=s.keySequence,u=s.keyEventType;i._addActionOptions(o,n,r,a,u)})),o}),{})}},{key:"_addActionOptions",value:function(e,t,n,i,o){var r=Y.parse(i,{keyEventType:o}),s=r.sequence,a=r.combination;s.size>this.getLongestSequence()&&(this._longestSequence=s.size,this._longestSequenceComponentId=t),this._keyMapEventRecord[o]=he,e[n]||(e[n]=[]),e[n].push(d({prefix:s.prefix,actionName:n,sequenceLength:s.size},a))}}]),e}();function Ce(e,t){return e[e.length-(t+1)]}for(var Ee={Enter:!0,Backspace:!0,ArrowRight:!0,ArrowLeft:!0,ArrowUp:!0,ArrowDown:!0,CapsLock:!0},Ie=1;13>Ie;Ie++)Ee["F".concat(Ie)]=!0;function Se(e){return 1===e.length||A(Ee,e)}var Pe=function(){function e(){u(this,e),this._actionConfigs={},this._order=null}return l(e,[{key:"addMatch",value:function(e,t){if(this._includesMatcherForCombination(e.id)){var n=e.keyEventType,i=e.actionName,o=e.id;this._addHandlerToActionConfig(o,{keyEventType:n,actionName:i,handler:t})}else this._addNewActionConfig(e,t)}},{key:"findMatch",value:function(e,t,n){this._order||this._setOrder();var i=!0,o=!1,r=void 0;try{for(var s,a=this._order[Symbol.iterator]();!(i=(s=a.next()).done);i=!0){var u=s.value,c=this._actionConfigs[u];if(this._matchesActionConfig(e,t,n,c))return c}}catch(e){o=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return null}},{key:"toJSON",value:function(){return{actionConfigs:this._actionConfigs,order:this._order}}},{key:"_matchesActionConfig",value:function(e,t,n,i){if(!function(e,t){var n=fe(t.keyDictionary);return w.option("allowCombinationSubmatches")||function(e){return!!e.isKeyStillPressed("Meta")&&e.some((function(e){return Se(e)}))}(e)?e.getNumberOfKeys()>=n:e.getNumberOfKeys()===n}(e,i))return!1;if(!i.events[n])return!1;var o=!1;return Object.keys(i.keyDictionary).every((function(i){return!!e.isEventTriggered(i,n)&&(t&&t===e.getNormalizedKeyName(i)&&(o=!e.wasEventPreviouslyTriggered(i,n)),!0)}))&&o}},{key:"_setOrder",value:function(){var e=Object.values(this._actionConfigs).reduce((function(e,t){var n=t.id,i=t.size;return e[i]||(e[i]=[]),e[i].push(n),e}),{});this._order=Object.keys(e).sort((function(e,t){return t-e})).reduce((function(t,n){return t.concat(e[n])}),[])}},{key:"_addNewActionConfig",value:function(e,t){var n=e.prefix,i=e.sequenceLength,o=e.id,r=e.keyDictionary,s=e.size,a=e.keyEventType,u=e.actionName;this._setCombinationMatcher(o,{prefix:n,sequenceLength:i,id:o,keyDictionary:r,size:s,events:{}}),this._addHandlerToActionConfig(o,{keyEventType:a,actionName:u,handler:t})}},{key:"_addHandlerToActionConfig",value:function(e,t){var n=t.keyEventType,i=t.actionName,o=t.handler,r=this._getCombinationMatcher(e);this._setCombinationMatcher(e,d({},r,{events:d({},r.events,h({},n,{actionName:i,handler:o}))}))}},{key:"_setCombinationMatcher",value:function(e,t){this._actionConfigs[e]=t}},{key:"_getCombinationMatcher",value:function(e){return this._actionConfigs[e]}},{key:"_includesMatcherForCombination",value:function(e){return!!this._getCombinationMatcher(e)}}]),e}();var we=function(){function e(){u(this,e),this._combinationMatchers={},this._eventRecord=de.newRecord()}return l(e,[{key:"addMatch",value:function(e,t){this._getOrCreateCombinationMatcher(e.prefix).addMatch(e,t),de.setBit(this._eventRecord,e.keyEventType,he),(!this._longestSequence||this._longestSequence=this._position}},{key:"isForKey",value:function(e){return this._key===e}},{key:"isForEventType",value:function(e){return this._type===e}},{key:"startNewPropagationStep",value:function(e,t,n,i){return this._position=this._componentList.getIndexById(e),this._componentId=e,this.isFirstPropagationStep()&&(De.incrementId(),this._key=t.key,this._type=i),!(t.repeat&&w.option("ignoreRepeatedEventsWhenKeyHeldDown")&&(this.ignoreEvent(t),1))}},{key:"finishPropagationStep",value:function(){this.isStopped()||this._componentList.isRoot(this._componentId)?(this._previousPropagation=this._clone(),this._reset()):this._previousPosition=this._position}},{key:"getPreviousPropagation",value:function(){return this._previousPropagation||(this._previousPropagation=this._clone({copyState:!1})),this._previousPropagation}},{key:"getPreviousPosition",value:function(){return this._previousPosition}},{key:"observeIgnoredEvents",value:function(){this._observeIgnoredEvents=!0}},{key:"ignoreEvent",value:function(e){return this.setIgnoreEvent(!0),!(!this.isIgnoringEvent()||!w.option("stopEventPropagationAfterIgnoring")||(this.stop(e),this.finishPropagationStep(),0))}},{key:"setIgnoreEvent",value:function(e){this._ignoreEvent=e}},{key:"isIgnoringEvent",value:function(){return!this._observeIgnoredEvents&&this._ignoreEvent}},{key:"isStopped",value:function(){return this._stopping}},{key:"stop",value:function(e){return!this.isStopped()&&(this._stopping=!0,e.simulated||e.stopPropagation(),!0)}},{key:"isPendingPropagation",value:function(){var e=this.getPreviousPosition();return-1!==e&&e+1