diff --git a/3rdpartylicenses.txt b/3rdpartylicenses.txt index fc9546de..2609c49b 100644 --- a/3rdpartylicenses.txt +++ b/3rdpartylicenses.txt @@ -333,9 +333,29 @@ MIT MIT MIT -ng2-select2@1.0.0-beta.10 -MIT +@ert78gb/ngx-select-ex@3.7.2 MIT +The MIT License (MIT) + +Copyright (c) 2017-2018 Konstantin Polyntsov + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. ng2-dragula@1.5.0 MIT @@ -395,30 +415,6 @@ MIT MIT MIT -@angular/cli@1.7.4 -MIT -The MIT License - -Copyright (c) 2017 Google, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - atoa@1.0.0 MIT The MIT License (MIT) @@ -539,6 +535,30 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +escape-string-regexp@1.0.5 +MIT +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + file-saver@1.3.3 MIT The MIT License @@ -588,6 +608,56 @@ isarray@1.0.0 MIT MIT +lodash@4.17.5 +MIT +Copyright JS Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. + node-libs-browser@2.1.0 MIT (The MIT License) @@ -661,6 +731,29 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +webpack@3.11.0 +MIT +Copyright JS Foundation and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + core-js@2.5.5 MIT Copyright (c) 2014-2018 Denis Pushkarev @@ -746,6 +839,10 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +spacing-bootstrap-3@1.0.0 +ISC +ISC + bootstrap@3.3.7 MIT The MIT License (MIT) diff --git a/assets/images/agent-logo-with-text.svg b/assets/images/agent-logo-with-text.svg new file mode 100644 index 00000000..268c5a28 --- /dev/null +++ b/assets/images/agent-logo-with-text.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + diff --git a/index.html b/index.html index d262fffa..6be0e047 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ -Ultimate Hacking Keyboard Configurator \ No newline at end of file + })(window,document,'script','dataLayer','GTM-PQLCXB'); \ No newline at end of file diff --git a/main.3061a0f94f0e36549a21.bundle.js b/main.3061a0f94f0e36549a21.bundle.js new file mode 100644 index 00000000..ec93d4fc --- /dev/null +++ b/main.3061a0f94f0e36549a21.bundle.js @@ -0,0 +1 @@ +webpackJsonp([0],{"+3eL":function(e,t,n){"use strict";var i,o=n("WhVc");function r(){try{return i.apply(this,arguments)}catch(e){return o.errorObject.e=e,o.errorObject}}t.tryCatch=function(e){return i=e,r}},"+4ur":function(e,t,n){"use strict";var i=n("LxNc");t._catch=function(e){return i.catchError(e)(this)}},"+EXD":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("rCTf"),r=n("CURp"),l=n("wAkD");t.DeferObservable=function(e){function t(t){e.call(this),this.observableFactory=t}return i(t,e),t.create=function(e){return new t(e)},t.prototype._subscribe=function(e){return new u(e,this.observableFactory)},t}(o.Observable);var u=function(e){function t(t,n){e.call(this,t),this.factory=n,this.tryDefer()}return i(t,e),t.prototype.tryDefer=function(){try{this._callFactory()}catch(e){this._error(e)}},t.prototype._callFactory=function(){var e=this.factory();e&&this.add(r.subscribeToResult(this,e))},t}(l.OuterSubscriber)},"+GbP":function(e,t,n){"use strict";var i=n("TToO").__decorate,o=n("WT6e"),r=n("xiuF"),l=n("LKU8"),u=function(){};u=i([o.NgModule({exports:[r.DragulaDirective],declarations:[r.DragulaDirective],providers:[l.DragulaService]})],u),t.DragulaModule=u},"+Zxz":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.defaultIfEmpty=function(e){return void 0===e&&(e=null),function(t){return t.lift(new r(e))}};var r=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.defaultValue))},e}(),l=function(e){function t(t,n){e.call(this,t),this.defaultValue=n,this.isEmpty=!0}return i(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(o.Subscriber)},"+ayw":function(e,t,n){"use strict";var i=n("sTFn");t.share=function(){return i.share()(this)}},"+pb+":function(e,t,n){"use strict";var i=n("rCTf"),o=n("xAJs");i.Observable.prototype.map=o.map},"/8Ia":function(e,t,n){"use strict";var i=n("xgwM").__decorate,o=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var r=n("CmJd");t.ModuleConfiguration=function(){function e(){}return e.prototype.fromJsonObject=function(e){return this.id=e.id,this.pointerMode=e.pointerMode,this.deceleratedPointerSpeedMultiplier=e.deceleratedPointerSpeedMultiplier,this.basePointerSpeedMultiplier=e.basePointerSpeedMultiplier,this.acceleratedPointerSpeedMultiplier=e.acceleratedPointerSpeedMultiplier,this.angularShift=e.angularShift,this.modLayerPointerFunction=e.modLayerPointerFunction,this.fnLayerPointerFunction=e.fnLayerPointerFunction,this.mouseLayerPointerFunction=e.mouseLayerPointerFunction,this},e.prototype.fromBinary=function(e){return this.id=e.readUInt8(),this.pointerMode=e.readInt8(),this.deceleratedPointerSpeedMultiplier=e.readUInt8(),this.basePointerSpeedMultiplier=e.readUInt8(),this.acceleratedPointerSpeedMultiplier=e.readUInt8(),this.angularShift=e.readUInt16(),this.modLayerPointerFunction=e.readUInt8(),this.fnLayerPointerFunction=e.readUInt8(),this.mouseLayerPointerFunction=e.readUInt8(),this},e.prototype.toJsonObject=function(){return{id:this.id,pointerMode:this.pointerMode,deceleratedPointerSpeedMultiplier:this.deceleratedPointerSpeedMultiplier,basePointerSpeedMultiplier:this.basePointerSpeedMultiplier,acceleratedPointerSpeedMultiplier:this.acceleratedPointerSpeedMultiplier,angularShift:this.angularShift,modeLayerPointerFunction:this.modLayerPointerFunction,fnLayerPointerFunction:this.fnLayerPointerFunction,mouseLayerPointerFunction:this.mouseLayerPointerFunction}},e.prototype.toBinary=function(e){e.writeUInt8(this.id),e.writeUInt8(this.pointerMode),e.writeUInt8(this.deceleratedPointerSpeedMultiplier),e.writeUInt8(this.basePointerSpeedMultiplier),e.writeUInt8(this.acceleratedPointerSpeedMultiplier),e.writeUInt16(this.angularShift),e.writeUInt8(this.modLayerPointerFunction),e.writeUInt8(this.fnLayerPointerFunction),e.writeUInt8(this.mouseLayerPointerFunction)},e.prototype.toString=function(){return''},i([r.assertUInt8,o("design:type",Number)],e.prototype,"id",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"pointerMode",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"deceleratedPointerSpeedMultiplier",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"basePointerSpeedMultiplier",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"acceleratedPointerSpeedMultiplier",void 0),i([r.assertUInt16,o("design:type",Number)],e.prototype,"angularShift",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"modLayerPointerFunction",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"fnLayerPointerFunction",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseLayerPointerFunction",void 0),e}()},"/KiA":function(e,t,n){"use strict";t.h=function(e,t){switch(void 0===e&&(e=d),t.type){case r.a.APP_STARTED:return c({},e,{started:!0});case r.a.APPLY_APP_START_INFO:var n=t.payload;return c({},e,{commandLineArgs:n.commandLineArgs,platform:n.platform,osVersion:n.osVersion});case r.a.APP_SHOW_NOTIFICATION:return t.payload.type!==o.NotificationType.Undoable?e:c({},e,{undoableNotification:t.payload,navigationCountAfterNotification:0});case i.b:var a=c({},e);return a.navigationCountAfterNotification++,a.navigationCountAfterNotification>1&&(a.undoableNotification=null),a;case r.a.UNDO_LAST_SUCCESS:case r.a.DISMISS_UNDO_NOTIFICATION:return c({},e,{undoableNotification:null});case l.a.LOAD_USER_CONFIG_SUCCESS:case l.a.SAVE_USER_CONFIG_SUCCESS:return c({},e,{prevUserConfig:t.payload,configLoading:!1});case l.a.LOAD_CONFIG_FROM_DEVICE:case l.a.LOAD_USER_CONFIG:return c({},e,{configLoading:!0});case r.a.LOAD_HARDWARE_CONFIGURATION_SUCCESS:return c({},e,{hardwareConfig:t.payload});case u.a.CONNECTION_STATE_CHANGED:return!0===t.payload?e:c({},e,{hardwareConfig:null});case r.a.PRIVILEGE_WHAT_WILL_THIS_DO:return c({},e,{privilegeWhatWillThisDoClicked:!0});case r.a.SETUP_PERMISSION_ERROR:return c({},e,{permissionError:t.payload});case u.a.SET_PRIVILEGE_ON_LINUX:return c({},e,{permissionError:null});default:return e}},n.d(t,"k",function(){return p}),n.d(t,"a",function(){return f}),n.d(t,"g",function(){return h}),n.d(t,"e",function(){return y}),n.d(t,"i",function(){return m}),n.d(t,"d",function(){return g}),n.d(t,"b",function(){return v}),n.d(t,"c",function(){return b}),n.d(t,"f",function(){return k}),n.d(t,"j",function(){return _});var i=n("r/Om"),o=n("gI3A"),r=(n.n(o),n("Ji5S")),l=n("at4H"),u=n("fYQU"),a=n("xW7+"),s=n("Lt3n"),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof a&&(n=e.pop()),null===u&&1===e.length&&e[0]instanceof i.Observable?e[0]:l.mergeAll(n)(new o.ArrayObservable(e,u))}},"1Rl6":function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n("4uS6")),i(n("r/AL")),i(n("gohO")),i(n("3EbR")),i(n("3uOy")),i(n("z+Yt")),i(n("ZTdU")),i(n("R30b")),i(n("ov8r")),i(n("/8Ia")),i(n("W1wB")),t.SCANCODES=n("1xu2"),t.SECONDARY_ROLES=n("KqLa")},"1kxm":function(e,t,n){"use strict";t.FastMap=function(){function e(){this.values={}}return e.prototype.delete=function(e){return this.values[e]=null,!0},e.prototype.set=function(e,t){return this.values[e]=t,this},e.prototype.get=function(e){return this.values[e]},e.prototype.forEach=function(e,t){var n=this.values;for(var i in n)n.hasOwnProperty(i)&&null!==n[i]&&e.call(t,n[i],i)},e.prototype.clear=function(){this.values={}},e}()},"1r8+":function(e,t,n){"use strict";t.isArrayLike=function(e){return e&&"number"==typeof e.length}},"1xu2":function(e,t){e.exports=[{text:"Letter",children:[{id:"4",text:"A"},{id:"5",text:"B"},{id:"6",text:"C"},{id:"7",text:"D"},{id:"8",text:"E"},{id:"9",text:"F"},{id:"10",text:"G"},{id:"11",text:"H"},{id:"12",text:"I"},{id:"13",text:"J"},{id:"14",text:"K"},{id:"15",text:"L"},{id:"16",text:"M"},{id:"17",text:"N"},{id:"18",text:"O"},{id:"19",text:"P"},{id:"20",text:"Q"},{id:"21",text:"R"},{id:"22",text:"S"},{id:"23",text:"T"},{id:"24",text:"U"},{id:"25",text:"V"},{id:"26",text:"W"},{id:"27",text:"X"},{id:"28",text:"Y"},{id:"29",text:"Z"},{id:"100",text:"| ISO"}]},{text:"Number",children:[{id:"39",text:"0 )"},{id:"30",text:"1 !"},{id:"31",text:"2 @"},{id:"32",text:"3 #"},{id:"33",text:"4 $"},{id:"34",text:"5 %"},{id:"35",text:"6 ^"},{id:"36",text:"7 &"},{id:"37",text:"8 *"},{id:"38",text:"9 ("}]},{text:"Punctuation",children:[{id:"45",text:"- _"},{id:"46",text:"= +"},{id:"47",text:"[ {"},{id:"48",text:"] }"},{id:"49",text:"\\ |"},{id:"51",text:"; :"},{id:"52",text:"' \""},{id:"53",text:"` ~"},{id:"54",text:", <"},{id:"55",text:". >"},{id:"56",text:"/ ?"}]},{text:"Whitespace",children:[{id:"40",additional:{explanation:"Return"},text:"Enter"},{id:"44",text:"Space"},{id:"43",text:"Tab"}]},{text:"Miscellaneous",children:[{id:"41",text:"Escape"},{id:"42",text:"Backspace"},{id:"73",text:"Insert"},{id:"76",text:"Delete"},{id:"101",text:"Menu"},{id:"57",text:"Caps Lock"},{id:"71",text:"Scroll Lock"},{id:"70",text:"Print Screen"},{id:"72",text:"Pause"}]},{text:"Function",children:[{id:"58",text:"F1"},{id:"59",text:"F2"},{id:"60",text:"F3"},{id:"61",text:"F4"},{id:"62",text:"F5"},{id:"63",text:"F6"},{id:"64",text:"F7"},{id:"65",text:"F8"},{id:"66",text:"F9"},{id:"67",text:"F10"},{id:"68",text:"F11"},{id:"69",text:"F12"},{id:"104",text:"F13"},{id:"105",text:"F14"},{id:"106",text:"F15"},{id:"107",text:"F16"},{id:"108",text:"F17"},{id:"109",text:"F18"},{id:"110",text:"F19"},{id:"111",text:"F20"},{id:"112",text:"F21"},{id:"113",text:"F22"},{id:"114",text:"F23"},{id:"115",text:"F24"}]},{text:"Navigation",children:[{id:"75",additional:{explanation:"PgUp"},text:"Page Up"},{id:"78",additional:{explanation:"PgDn"},text:"Page Down"},{id:"74",text:"Home"},{id:"77",text:"End"},{id:"80",text:"Left Arrow"},{id:"79",text:"Right Arrow"},{id:"82",text:"Up Arrow"},{id:"81",text:"Down Arrow"}]},{text:"Media",children:[{id:"127",text:"Mute",additional:{type:"media",scancode:226}},{id:"128",text:"Volume Up",additional:{type:"media",scancode:233}},{id:"129",text:"Volume Down",additional:{type:"media",scancode:234}},{id:"130",text:"Next Track",additional:{type:"media",scancode:181}},{id:"131",text:"Previous Track",additional:{type:"media",scancode:182}},{id:"132",text:"Stop/Eject",additional:{type:"media",scancode:204}},{id:"133",text:"Play/Pause",additional:{type:"media",scancode:205}},{id:"134",text:"Play",additional:{type:"media",scancode:176}},{id:"135",text:"Pause",additional:{type:"media",scancode:177}},{id:"136",text:"Stop",additional:{type:"media",scancode:183}},{id:"137",text:"Eject",additional:{type:"media",scancode:184}},{id:"138",text:"WWW",additional:{type:"media",scancode:138}}]},{text:"Launch application",children:[{id:"142",text:"Launch Web Browser",additional:{type:"media",scancode:406}},{id:"143",text:"Launch Email Client",additional:{type:"media",scancode:394}},{id:"144",text:"Launch Calculator",additional:{type:"media",scancode:402}}]},{text:"System",children:[{id:"139",text:"Power Down",additional:{type:"system",scancode:129}},{id:"140",text:"Sleep",additional:{type:"system",scancode:130}},{id:"141",text:"Wake Up",additional:{type:"system",scancode:131}}]},{text:"Numpad",children:[{id:"83",text:"NumLock"},{id:"84",additional:{explanation:"slash"},text:"/"},{id:"85",additional:{explanation:"asterisk"},text:"*"},{id:"86",additional:{explanation:"minus"},text:"-"},{id:"87",additional:{explanation:"plus"},text:"+"},{id:"88",text:"Enter"},{id:"89",additional:{explanation:"one"},text:"1"},{id:"90",additional:{explanation:"two"},text:"2"},{id:"91",additional:{explanation:"three"},text:"3"},{id:"92",additional:{explanation:"four"},text:"4"},{id:"93",additional:{explanation:"five"},text:"5"},{id:"94",additional:{explanation:"six"},text:"6"},{id:"95",additional:{explanation:"seven"},text:"7"},{id:"96",additional:{explanation:"eight"},text:"8"},{id:"97",additional:{explanation:"nine"},text:"9"},{id:"98",additional:{explanation:"zero"},text:"0"},{id:"99",additional:{explanation:"period"},text:"."}]}]},"215F":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.takeWhile=function(e){return function(t){return t.lift(new r(e))}};var r=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.predicate))},e}(),l=function(e){function t(t,n){e.call(this,t),this.predicate=n,this.index=0}return i(t,e),t.prototype._next=function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(e){return void n.error(e)}this.nextOrComplete(e,t)},t.prototype.nextOrComplete=function(e,t){var n=this.destination;Boolean(t)?n.next(e):n.complete()},t}(o.Subscriber)},"2AEF":function(e,t,n){"use strict";var i=n("13YQ");t.exhaustMap=function(e,t){return i.exhaustMap(e,t)(this)}},"2ER/":function(e,t,n){"use strict";t.MapPolyfill=function(){function e(){this.size=0,this._values=[],this._keys=[]}return e.prototype.get=function(e){var t=this._keys.indexOf(e);return-1===t?void 0:this._values[t]},e.prototype.set=function(e,t){var n=this._keys.indexOf(e);return-1===n?(this._keys.push(e),this._values.push(t),this.size++):this._values[n]=t,this},e.prototype.delete=function(e){var t=this._keys.indexOf(e);return-1!==t&&(this._values.splice(t,1),this._keys.splice(t,1),this.size--,!0)},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},e.prototype.forEach=function(e,t){for(var n=0;n'},e.prototype.renameKeymap=function(t,n){var i,o=this,r=!1;if(this.layers.forEach(function(e,l){var u=e.renameKeymap(t,n);u!==e&&(r||(i=o.layers.slice(),r=!0),i[l]=u)}),r){var l=Object.assign(new e,this);return l.layers=i,l}return this},e.prototype.normalize=function(){if(!(this.layers.length<1))for(var e=0;ei.LastKeystrokeAction)throw"Invalid "+t+" first byte: "+n}else if(n!==o)throw"Invalid "+t+" first byte: "+n;return n},e.prototype.renameKeymap=function(e,t){return this},e}()},"4uS6":function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n("4KnF")),i(n("I5Xr")),i(n("CfJK")),i(n("78zf")),i(n("HiVc")),i(n("Fq1u")),i(n("9PEG")),i(n("MkTX"));var o=n("wogf");t.KeyActionHelper=o.Helper},"63KW":function(e,t,n){"use strict";(function(e){var i=n("EKta"),o=n("ujcs"),r=n("sOR5");function l(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(l()=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|e}function h(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(i)return V(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function m(e,t,n,i,o){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=a.from(t,i)),a.isBuffer(t))return 0===t.length?-1:g(e,t,n,i,o);if("number"==typeof t)return t&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,i,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,i,o){var r,l=1,u=e.length,a=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;l=2,u/=2,a/=2,n/=2}function s(e,t){return 1===l?e[t]:e.readUInt16BE(t*l)}if(o){var c=-1;for(r=n;ru&&(n=u-a),r=n;r>=0;r--){for(var d=!0,p=0;po&&(i=o):i=o;var r=t.length;if(r%2!=0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var l=0;l>8,o.push(n%256),o.push(i);return o}(t,e.length-n),e,n,i)}function T(e,t,n){return i.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var i=[],o=t;o239?4:s>223?3:s>191?2:1;if(o+d<=n)switch(d){case 1:s<128&&(c=s);break;case 2:128==(192&(r=e[o+1]))&&(a=(31&s)<<6|63&r)>127&&(c=a);break;case 3:l=e[o+2],128==(192&(r=e[o+1]))&&128==(192&l)&&(a=(15&s)<<12|(63&r)<<6|63&l)>2047&&(a<55296||a>57343)&&(c=a);break;case 4:l=e[o+2],u=e[o+3],128==(192&(r=e[o+1]))&&128==(192&l)&&128==(192&u)&&(a=(15&s)<<18|(63&r)<<12|(63&l)<<6|63&u)>65535&&a<1114112&&(c=a)}null===c?(c=65533,d=1):c>65535&&(i.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),i.push(c),o+=d}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);for(var n="",i=0;ithis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}).apply(this,arguments)},a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},a.prototype.compare=function(e,t,n,i,o){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var r=o-i,l=n-t,u=Math.min(r,l),s=this.slice(i,o),c=e.slice(t,n),d=0;do)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function O(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;oo)&&(n=o);for(var r="",l=t;ln)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,i,o,r){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function R(e,t,n,i){t<0&&(t=65535+t+1);for(var o=0,r=Math.min(e.length-n,2);o>>8*(i?o:1-o)}function D(e,t,n,i){t<0&&(t=4294967295+t+1);for(var o=0,r=Math.min(e.length-n,4);o>>8*(i?o:3-o)&255}function N(e,t,n,i,o,r){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,i,r){return r||N(e,0,n,4),o.write(e,t,n,i,23,4),n+4}function L(e,t,n,i,r){return r||N(e,0,n,8),o.write(e,t,n,i,52,8),n+8}a.prototype.slice=function(e,t){var n,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i)<0&&(e=0):e>i&&(e=i),t<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(o*=256);)i+=this[e+--t]*o;return i},a.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=this[e],o=1,r=0;++r=(o*=128)&&(i-=Math.pow(2,8*t)),i},a.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=t,o=1,r=this[e+--i];i>0&&(o*=256);)r+=this[e+--i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,i){e=+e,t|=0,n|=0,i||I(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,r=0;for(this[t]=255&e;++r=0&&(r*=256);)this[t+o]=e/r&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var r=0,l=1,u=0;for(this[t]=255&e;++r>0)-u&255;return t+n},a.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var r=n-1,l=1,u=0;for(this[t+r]=255&e;--r>=0&&(l*=256);)e<0&&0===u&&0!==this[t+r+1]&&(u=1),this[t+r]=(e/l>>0)-u&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(r<1e3||!a.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(l+1===i){(t-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function F(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,i){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(t,n("DuR2"))},"6BaH":function(e,t,n){"use strict";var i=n("sIYO");t.multicast=function(e,t){return function(n){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new o(r,t));var l=Object.create(n,i.connectableObservableDescriptor);return l.source=n,l.subjectFactory=r,l}};var o=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,i=this.subjectFactory(),o=n(i).subscribe(e);return o.add(t.subscribe(i)),o},e}();t.MulticastOperator=o},"6Yye":function(e,t,n){"use strict";var i=n("rCTf"),o=n("+4ur");i.Observable.prototype.catch=o._catch,i.Observable.prototype._catch=o._catch},"78zf":function(e,t,n){"use strict";var i=n("xgwM").__extends,o=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,u=n("CmJd"),a=n("4KnF");!function(e){e[e.leftClick=0]="leftClick",e[e.middleClick=1]="middleClick",e[e.rightClick=2]="rightClick",e[e.moveUp=3]="moveUp",e[e.moveDown=4]="moveDown",e[e.moveLeft=5]="moveLeft",e[e.moveRight=6]="moveRight",e[e.scrollUp=7]="scrollUp",e[e.scrollDown=8]="scrollDown",e[e.scrollLeft=9]="scrollLeft",e[e.scrollRight=10]="scrollRight",e[e.accelerate=11]="accelerate",e[e.decelerate=12]="decelerate"}(l=t.MouseActionParam||(t.MouseActionParam={})),t.MouseAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.mouseAction=t.mouseAction,n):n}return i(t,e),t.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.mouseAction=l[e.mouseAction],this},t.prototype.fromBinary=function(e){return this.readAndAssertKeyActionId(e),this.mouseAction=e.readUInt8(),this},t.prototype.toJsonObject=function(){return{keyActionType:a.keyActionType.MouseAction,mouseAction:l[this.mouseAction]}},t.prototype.toBinary=function(e){e.writeUInt8(a.KeyActionId.MouseAction),e.writeUInt8(this.mouseAction)},t.prototype.toString=function(){return''},t.prototype.getName=function(){return"MouseAction"},o([u.assertEnum(l),r("design:type",Number)],t.prototype,"mouseAction",void 0),t}(a.KeyAction)},"7DMc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"AbstractControlDirective",function(){return s}),n.d(t,"AbstractFormGroupDirective",function(){return ie}),n.d(t,"CheckboxControlValueAccessor",function(){return _}),n.d(t,"ControlContainer",function(){return c}),n.d(t,"NG_VALUE_ACCESSOR",function(){return b}),n.d(t,"COMPOSITION_BUFFER_MODE",function(){return A}),n.d(t,"DefaultValueAccessor",function(){return T}),n.d(t,"NgControl",function(){return E}),n.d(t,"NgControlStatus",function(){return le}),n.d(t,"NgControlStatusGroup",function(){return ue}),n.d(t,"NgForm",function(){return ge}),n.d(t,"NgModel",function(){return xe}),n.d(t,"NgModelGroup",function(){return Ae}),n.d(t,"RadioControlValueAccessor",function(){return R}),n.d(t,"FormControlDirective",function(){return Me}),n.d(t,"FormControlName",function(){return Ue}),n.d(t,"FormGroupDirective",function(){return Pe}),n.d(t,"FormArrayName",function(){return Ne}),n.d(t,"FormGroupName",function(){return Re}),n.d(t,"NgSelectOption",function(){return V}),n.d(t,"SelectControlValueAccessor",function(){return U}),n.d(t,"SelectMultipleControlValueAccessor",function(){return B}),n.d(t,"CheckboxRequiredValidator",function(){return Be}),n.d(t,"EmailValidator",function(){return We}),n.d(t,"MaxLengthValidator",function(){return Ge}),n.d(t,"MinLengthValidator",function(){return $e}),n.d(t,"PatternValidator",function(){return Qe}),n.d(t,"RequiredValidator",function(){return Ke}),n.d(t,"FormBuilder",function(){return Je}),n.d(t,"AbstractControl",function(){return de}),n.d(t,"FormArray",function(){return he}),n.d(t,"FormControl",function(){return pe}),n.d(t,"FormGroup",function(){return fe}),n.d(t,"NG_ASYNC_VALIDATORS",function(){return f}),n.d(t,"NG_VALIDATORS",function(){return p}),n.d(t,"Validators",function(){return y}),n.d(t,"VERSION",function(){return Ze}),n.d(t,"FormsModule",function(){return ot}),n.d(t,"ReactiveFormsModule",function(){return rt}),n.d(t,"\u0275ba",function(){return it}),n.d(t,"\u0275z",function(){return nt}),n.d(t,"\u0275x",function(){return et}),n.d(t,"\u0275y",function(){return tt}),n.d(t,"\u0275a",function(){return k}),n.d(t,"\u0275b",function(){return w}),n.d(t,"\u0275c",function(){return oe}),n.d(t,"\u0275d",function(){return re}),n.d(t,"\u0275e",function(){return ye}),n.d(t,"\u0275f",function(){return Te}),n.d(t,"\u0275g",function(){return we}),n.d(t,"\u0275bf",function(){return Xe}),n.d(t,"\u0275bb",function(){return O}),n.d(t,"\u0275bc",function(){return S}),n.d(t,"\u0275h",function(){return P}),n.d(t,"\u0275i",function(){return I}),n.d(t,"\u0275bd",function(){return D}),n.d(t,"\u0275be",function(){return N}),n.d(t,"\u0275j",function(){return Se}),n.d(t,"\u0275k",function(){return Le}),n.d(t,"\u0275l",function(){return Ee}),n.d(t,"\u0275n",function(){return De}),n.d(t,"\u0275m",function(){return Ie}),n.d(t,"\u0275o",function(){return j}),n.d(t,"\u0275q",function(){return H}),n.d(t,"\u0275p",function(){return F}),n.d(t,"\u0275s",function(){return Fe}),n.d(t,"\u0275t",function(){return He}),n.d(t,"\u0275v",function(){return qe}),n.d(t,"\u0275u",function(){return ze}),n.d(t,"\u0275w",function(){return Ye}),n.d(t,"\u0275r",function(){return Ve});var i=n("TToO"),o=n("WT6e"),r=n("7rB9"),l=n("ioK+"),u=n("xAJs"),a=n("OE0E"),s=function(){function e(){}return Object.defineProperty(e.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.reset=function(e){void 0===e&&(e=void 0),this.control&&this.control.reset(e)},e.prototype.hasError=function(e,t){return!!this.control&&this.control.hasError(e,t)},e.prototype.getError=function(e,t){return this.control?this.control.getError(e,t):null},e}(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t}(s);function d(e){return null==e||0===e.length}var p=new o.InjectionToken("NgValidators"),f=new o.InjectionToken("NgAsyncValidators"),h=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,y=function(){function e(){}return e.min=function(e){return function(t){if(d(t.value)||d(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&ne?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return d(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return h.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(d(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(d(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(m);return 0==t.length?null:function(e){return v(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(m);return 0==t.length?null:function(e){var n=function(e,n){return t.map(function(t){return t(e)})}(e).map(g);return u.map.call(Object(r.forkJoin)(n),v)}},e}();function m(e){return null!=e}function g(e){var t=Object(o["\u0275isPromise"])(e)?Object(l.fromPromise)(e):e;if(!Object(o["\u0275isObservable"])(t))throw new Error("Expected validator to return Promise or Observable.");return t}function v(e){var t=e.reduce(function(e,t){return null!=t?Object(i.__assign)({},e,t):e},{});return 0===Object.keys(t).length?null:t}var b=new o.InjectionToken("NgValueAccessor"),k={provide:b,useExisting:Object(o.forwardRef)(function(){return _}),multi:!0},_=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),w={provide:b,useExisting:Object(o.forwardRef)(function(){return T}),multi:!0},A=new o.InjectionToken("CompositionEventMode"),T=function(){function e(e,t,n){var i;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=Object(a.s)()?Object(a.s)().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e}();function C(e){return e.validate?function(t){return e.validate(t)}:e}function x(e){return e.validate?function(t){return e.validate(t)}:e}var O={provide:b,useExisting:Object(o.forwardRef)(function(){return S}),multi:!0},S=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();function M(){throw new Error("unimplemented")}var E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return M()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return M()},enumerable:!0,configurable:!0}),t}(s),P={provide:b,useExisting:Object(o.forwardRef)(function(){return R}),multi:!0},I=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),R=function(){function e(e,t,n,i){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(E),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},e}(),D={provide:b,useExisting:Object(o.forwardRef)(function(){return N}),multi:!0},N=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),j={provide:b,useExisting:Object(o.forwardRef)(function(){return U}),multi:!0};function L(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var U=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=o["\u0275looseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=L(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,r=0;r1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function Q(e){return null!=e?y.compose(e.map(C)):null}function J(e){return null!=e?y.composeAsync(e.map(x)):null}function Z(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(o["\u0275looseIdentical"])(t,n.currentValue)}var X=[_,N,S,U,B,R];function ee(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function te(e,t){if(!t)return null;var n=void 0,i=void 0,o=void 0;return t.forEach(function(t){var r;t.constructor===T?n=t:(r=t,X.some(function(e){return r.constructor===e})?(i&&Y(e,"More than one built-in value accessor matches form control with"),i=t):(o&&Y(e,"More than one custom value accessor matches form control with"),o=t))}),o||i||n||(Y(e,"No valid value accessor for form control with"),null)}function ne(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(c),oe=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),re={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},le=function(e){function t(t){return e.call(this,t)||this}return Object(i.__extends)(t,e),t}(oe),ue=function(e){function t(t){return e.call(this,t)||this}return Object(i.__extends)(t,e),t}(oe);function ae(e){var t=ce(e)?e.validators:e;return Array.isArray(t)?Q(t):t||null}function se(e,t){var n=ce(t)?t.asyncValidators:e;return Array.isArray(n)?J(n):n||null}function ce(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var de=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=ae(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=se(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object(i.__assign)({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={}),this.status="VALID",this._forEachChild(function(t){t.enable(Object(i.__assign)({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=g(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof fe?e.controls[t]||null:e instanceof he&&e.at(t)||null},e))}(this,e)},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new o.EventEmitter,this.statusChanges=new o.EventEmitter},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){ce(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e}(),pe=function(e){function t(t,n,i){void 0===t&&(t=null);var o=e.call(this,ae(n),se(i,n))||this;return o._onChange=[],o._applyFormState(t),o._setUpdateStrategy(n),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return Object(i.__extends)(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n.value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(de),fe=function(e){function t(t,n,i){var o=e.call(this,ae(n),se(i,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(i.__extends)(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){n._throwIfControlMissing(i),n.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(i){n.controls[i]&&n.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof pe?t.value:t.getRawValue(),e})},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(i,o){n=n||t.contains(o)&&e(i)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,i){n=t(n,e,i)}),n},t.prototype._allControlsDisabled=function(){for(var e=0,t=Object.keys(this.controls);e0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(de),he=function(e){function t(t,n,i){var o=e.call(this,ae(n),se(i,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(i.__extends)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,i){n._throwIfControlMissing(i),n.at(i).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,i){n.at(i)&&n.at(i).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof pe?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){for(var e=0,t=this.controls;e0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(de),ye={provide:c,useExisting:Object(o.forwardRef)(function(){return ge})},me=Promise.resolve(null),ge=function(e){function t(t,n){var i=e.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new o.EventEmitter,i.form=new fe({},Q(t),J(n)),i}return Object(i.__extends)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),z(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),ne(t._directives,e)})},t.prototype.addFormGroup=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path),i=new fe({});q(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;me.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,ee(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(c),ve='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',be='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',ke='\n
\n
\n \n
\n
',_e=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+ve+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+be+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+ke)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+be+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+ke)},e}(),we={provide:c,useExisting:Object(o.forwardRef)(function(){return Ae})},Ae=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}return Object(i.__extends)(t,e),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof ge||_e.modelGroupParentException()},t}(ie),Te={provide:E,useExisting:Object(o.forwardRef)(function(){return xe})},Ce=Promise.resolve(null),xe=function(e){function t(t,n,i,r){var l=e.call(this)||this;return l.control=new pe,l._registered=!1,l.update=new o.EventEmitter,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=i||[],l.valueAccessor=te(l,r),l}return Object(i.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Z(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?W(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){z(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof Ae)&&this._parent instanceof ie?_e.formGroupNameException():this._parent instanceof Ae||this._parent instanceof ge||_e.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||_e.missingNameException()},t.prototype._updateValue=function(e){var t=this;Ce.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;Ce.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})},t}(E),Oe=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+ve)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+be+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+ke)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+ve)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+be)},e.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},e.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e}(),Se={provide:E,useExisting:Object(o.forwardRef)(function(){return Me})},Me=function(e){function t(t,n,i){var r=e.call(this)||this;return r.update=new o.EventEmitter,r._rawValidators=t||[],r._rawAsyncValidators=n||[],r.valueAccessor=te(r,i),r}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Oe.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(z(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Z(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t}(E),Ee={provide:c,useExisting:Object(o.forwardRef)(function(){return Pe})},Pe=function(e){function t(t,n){var i=e.call(this)||this;return i._validators=t,i._asyncValidators=n,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new o.EventEmitter,i}return Object(i.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return z(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){ne(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);q(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);q(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,ee(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){t.valueAccessor.registerOnChange(function(){return G(t)}),t.valueAccessor.registerOnTouched(function(){return G(t)}),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(t.control,t),n&&z(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=Q(this._validators);this.form.validator=y.compose([this.form.validator,e]);var t=J(this._asyncValidators);this.form.asyncValidator=y.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||Oe.missingFormException()},t}(c),Ie={provide:c,useExisting:Object(o.forwardRef)(function(){return Re})},Re=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}return Object(i.__extends)(t,e),t.prototype._checkParentType=function(){je(this._parent)&&Oe.groupParentException()},t}(ie),De={provide:c,useExisting:Object(o.forwardRef)(function(){return Ne})},Ne=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}return Object(i.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){je(this._parent)&&Oe.arrayParentException()},t}(c);function je(e){return!(e instanceof Re||e instanceof Pe||e instanceof Ne)}var Le={provide:E,useExisting:Object(o.forwardRef)(function(){return Ue})},Ue=function(e){function t(t,n,i,r){var l=e.call(this)||this;return l._added=!1,l.update=new o.EventEmitter,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=i||[],l.valueAccessor=te(l,r),l}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Oe.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),Z(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof Re)&&this._parent instanceof ie?Oe.ngModelGroupException():this._parent instanceof Re||this._parent instanceof Pe||this._parent instanceof Ne||Oe.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t}(E),Ve={provide:p,useExisting:Object(o.forwardRef)(function(){return Ke}),multi:!0},Fe={provide:p,useExisting:Object(o.forwardRef)(function(){return Be}),multi:!0},Ke=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?y.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.validate=function(e){return this.required?y.requiredTrue(e):null},t}(Ke),He={provide:p,useExisting:Object(o.forwardRef)(function(){return We}),multi:!0},We=function(){function e(){}return Object.defineProperty(e.prototype,"email",{set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this._enabled?y.email(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),ze={provide:p,useExisting:Object(o.forwardRef)(function(){return $e}),multi:!0},$e=function(){function e(){}return e.prototype.ngOnChanges=function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null==this.minlength?null:this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.minLength(parseInt(this.minlength,10))},e}(),qe={provide:p,useExisting:Object(o.forwardRef)(function(){return Ge}),multi:!0},Ge=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.maxLength(parseInt(this.maxlength,10))},e}(),Ye={provide:p,useExisting:Object(o.forwardRef)(function(){return Qe}),multi:!0},Qe=function(){function e(){}return e.prototype.ngOnChanges=function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.pattern(this.pattern)},e}(),Je=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e);return new fe(n,null!=t?t.validator:null,null!=t?t.asyncValidator:null)},e.prototype.control=function(e,t,n){return new pe(e,t,n)},e.prototype.array=function(e,t,n){var i=this,o=e.map(function(e){return i._createControl(e)});return new he(o,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n},e.prototype._createControl=function(e){return e instanceof pe||e instanceof fe||e instanceof he?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)},e}(),Ze=new o.Version("5.2.9"),Xe=function(){},et=[Xe,V,H,T,S,N,_,U,B,R,le,ue,Ke,$e,Ge,Qe,Be,We],tt=[xe,Ae,ge],nt=[Me,Pe,Ue,Re,Ne],it=function(){},ot=function(){},rt=function(){}},"7MSh":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS"),r=n("+3eL"),l=n("WhVc");t.distinctUntilChanged=function(e,t){return function(n){return n.lift(new u(e,t))}};var u=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.compare,this.keySelector))},e}(),a=function(e){function t(t,n,i){e.call(this,t),this.keySelector=i,this.hasKey=!1,"function"==typeof n&&(this.compare=n)}return i(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t=e;if(this.keySelector&&(t=r.tryCatch(this.keySelector)(e))===l.errorObject)return this.destination.error(l.errorObject.e);var n=!1;if(this.hasKey){if((n=r.tryCatch(this.compare)(this.key,t))===l.errorObject)return this.destination.error(l.errorObject.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=t,this.destination.next(e))},t}(o.Subscriber)},"7OPe":function(e,t,n){"use strict";n.d(t,"c",function(){return r}),t.d=function(e,t){switch(void 0===e&&(e=r),t.type){case i.a.TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP:return Object.assign({},e,{checkForUpdateOnStartUp:t.payload});case i.a.TOGGLE_PRE_RELEASE_FLAG:return Object.assign({},e,{usePreReleaseUpdate:t.payload});case i.a.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS:return Object.assign({},t.payload);case i.a.CHECK_FOR_UPDATE_NOW:return Object.assign({},e,{checkingForUpdate:!0});case o.a.UPDATE_ERROR:case i.a.CHECK_FOR_UPDATE_SUCCESS:case i.a.CHECK_FOR_UPDATE_FAILED:return Object.assign({},e,{checkingForUpdate:!1});default:return e}},n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u});var i=n("w+X5"),o=n("va3Z"),r={checkForUpdateOnStartUp:!1,usePreReleaseUpdate:!1,checkingForUpdate:!1},l=function(e){return{checkForUpdateOnStartUp:e.checkForUpdateOnStartUp,usePreReleaseUpdate:e.usePreReleaseUpdate}},u=function(e){return e.checkingForUpdate}},"7RCQ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("Bxcs");t.getHardwareConfigFromDeviceResponse=function(e){var t=JSON.parse(e),n=new i.HardwareConfiguration;if(n.fromBinary(i.UhkBuffer.fromArray(t)),"FTY"===n.signature)throw Error("The device is in factory reset mode. Power-cycle the device to use it with Agent!");if("UHK"!==n.signature)throw Error("Please power cycle your keyboard (Invalid hardware configuration: Invalid signature)");return n},t.getUserConfigFromDeviceResponse=function(e){var t=JSON.parse(e),n=new i.UserConfiguration;if(n.fromBinary(i.UhkBuffer.fromArray(t)),n.userConfigMajorVersion>0)return n;throw Error("Invalid user configuration")},t.mapObjectToUserConfigBinaryBuffer=function(e){var t=new i.UserConfiguration;t.fromJsonObject(e);var n=new i.UhkBuffer;return t.toBinary(n),n.getBufferContent()}},"7axH":function(e,t,n){"use strict";var i=n("rCTf"),o=n("9PGs");i.Observable.prototype.toArray=o.toArray},"7nvF":function(e,t,n){"use strict";var i=n("p/p0");t.last=function(e,t,n){return i.last(e,t,n)(this)}},"7rB9":function(e,t,n){"use strict";var i=n("t2qv");t.forkJoin=i.ForkJoinObservable.create},"7s/Z":function(e,t){e.exports=function e(t){Object.freeze(t);var n="function"==typeof t,i=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach(function(o){!i.call(t,o)||n&&("caller"===o||"callee"===o||"arguments"===o)||null===t[o]||"object"!=typeof t[o]&&"function"!=typeof t[o]||Object.isFrozen(t[o])||e(t[o])}),t}},"83T1":function(e,t,n){"use strict";var i=n("fI0c");t.every=function(e,t){return i.every(e,t)(this)}},"8AXl":function(e,t,n){"use strict";n.d(t,"b",function(){return _}),n.d(t,"a",function(){return x}),n.d(t,"c",function(){return P}),n.d(t,"d",function(){return j}),n.d(t,"e",function(){return D}),n.d(t,"f",function(){return N}),n.d(t,"i",function(){return R}),n.d(t,"k",function(){return I}),n.d(t,"j",function(){return E}),n.d(t,"h",function(){return M}),n.d(t,"g",function(){return S});var i,o=n("dyjq"),r=n("1KT0"),l=n("C4lF"),u=(n.n(l),n("Y6hq")),a=(n.n(u),n("xAJs")),s=n("WT6e"),c=n("rCTf"),d=n("ack3"),p=n("cJSH"),f=(n.n(p),n("XO5T")),h=n("2AEF"),y=(n.n(h),n("Oa+j")),m=(n.n(y),n("EEr4")),g=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v="@ngrx/effects",b=Reflect;function k(e){return e.constructor.propDecorators?(t=e.constructor.propDecorators,Object.keys(t).reduce(function(e,n){return e.concat((i=n,t[n].filter(function(e){return e.type===_}).map(function(e){var t=!0;return e.args&&e.args.length&&(t=!!e.args[0].dispatch),{propertyName:i,dispatch:t}})));var i},[])):b.hasOwnMetadata(v,e)?b.getOwnMetadata(v,e):[];var t}function _(e){var t=(void 0===e?{dispatch:!0}:e).dispatch;return function(e,n){var i,o;i=e,o=k(e).concat([{propertyName:n,dispatch:t}]),b.defineMetadata(v,o,i)}}function w(e){return Object.getPrototypeOf(e)}var A=Object(o.x)(k,w),T="ngrxOnRunEffects";function C(e){var t=function(e){var t=w(e).constructor.name,n=A(e).map(function(n){var i=n.propertyName,o=n.dispatch,r="function"==typeof e[i]?e[i]():e[i];if(!1===o)return l.ignoreElements.call(r);var s=u.materialize.call(r);return a.map.call(s,function(n){return{effect:e[i],notification:n,propertyName:i,sourceName:t,sourceInstance:e}})});return r.merge.apply(void 0,n)}(e);return function(e){var t=w(e);return T in t&&"function"==typeof t[T]}(e)?e.ngrxOnRunEffects(t):t}var x=function(e){function t(t){var n=e.call(this)||this;return t&&(n.source=t),n}return g(t,e),t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.ofType=function(){for(var e=[],t=0;t-1?a.a.Mac:t.indexOf("win")>-1?a.a.Windows:a.a.Linux}),w=Object(i.createSelector)(d,l.j),A=Object(i.createSelector)(w,function(e){return!e}),T=Object(i.createSelector)(function(e){return e.appUpdate},o.a),C=function(e){return e.autoUpdateSettings},x=Object(i.createSelector)(C,r.b),O=Object(i.createSelector)(C,r.a),S=function(e){return e.device},M=Object(i.createSelector)(S,u.i),E=Object(i.createSelector)(m,M,function(e,t){return!e||t}),P=Object(i.createSelector)(S,u.h),I=Object(i.createSelector)(m,P,function(e,t){return!e||t}),R=Object(i.createSelector)(S,u.g),D=Object(i.createSelector)(m,R,function(e,t){return e?t:s.a}),N=Object(i.createSelector)(S,u.k),j=Object(i.createSelector)(S,u.l),L=Object(i.createSelector)(m,S,function(e,t){return!e||t.updatingFirmware}),U=Object(i.createSelector)(S,u.e),V=Object(i.createSelector)(S,u.d),F=Object(i.createSelector)(S,u.f),K=Object(i.createSelector)(S,u.a),B=Object(i.createSelector)(S,u.b),H=Object(i.createSelector)(S,u.c),W=Object(i.createSelector)(p,m,N,c,F,function(e,t,n,i,o){return{showAddonMenu:e,runInElectron:t,updatingFirmware:n,deviceName:i.deviceName,keymaps:i.keymaps,macros:i.macros,restoreUserConfiguration:o}}),z=function(e){return e.router}},"9JPB":function(e,t,n){"use strict";var i=n("VOfZ"),o=n("2ER/");t.Map=i.root.Map||o.MapPolyfill},"9PEG":function(e,t,n){"use strict";var i=n("xgwM").__extends,o=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l=n("CmJd"),u=n("3uOy"),a=n("4KnF"),s=function(e){function t(n){var i=e.call(this)||this;return n?(i.keymapAbbreviation=n instanceof t?n.keymapAbbreviation:n instanceof u.Keymap?n.abbreviation:n,i):i}return i(t,e),t.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.keymapAbbreviation=e.keymapAbbreviation,this},t.prototype.toJsonObject=function(){return{keyActionType:a.keyActionType.SwitchKeymapAction,keymapAbbreviation:this.keymapAbbreviation}},t.prototype.toBinary=function(e,t){var n=this,i=t.keymaps.findIndex(function(e){return e.abbreviation===n.keymapAbbreviation});e.writeUInt8(a.KeyActionId.SwitchKeymapAction),e.writeUInt8(i)},t.prototype.toString=function(){return''},t.prototype.renameKeymap=function(e,n){return this.keymapAbbreviation!==e?this:new t(n)},t.prototype.getName=function(){return"SwitchKeymapAction"},t}(a.KeyAction);t.SwitchKeymapAction=s,t.UnresolvedSwitchKeymapAction=function(e){function t(t){var n=e.call(this)||this;return n.keymapIndex=t,n}return i(t,e),t.prototype.fromBinary=function(e){return e.readUInt8(),this.keymapIndex=e.readUInt8(),this},t.prototype.toBinary=function(e){e.writeUInt8(a.KeyActionId.SwitchKeymapAction),e.writeUInt8(this.keymapIndex)},t.prototype.toJsonObject=function(){throw new Error("UnresolvedSwitchKeymapAction cannot be serialized directly. Convert it to SwitchKeymapAction first.")},t.prototype.resolve=function(e){return new s(e[this.keymapIndex])},t.prototype.getName=function(){return"UnresolvedSwitchKeymapAction"},o([l.assertUInt8,r("design:type",Number)],t.prototype,"keymapIndex",void 0),t}(a.KeyAction)},"9PGs":function(e,t,n){"use strict";var i=n("piny");t.toArray=function(){return i.toArray()(this)}},"9dR0":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.refCount=function(){return function(e){return e.lift(new r(e))}};var r=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var i=new l(e,n),o=t.subscribe(i);return i.closed||(i.connection=n.connect()),o},e}(),l=function(e){function t(t,n){e.call(this,t),this.connectable=n}return i(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},t}(o.Subscriber)},"9dXm":function(e,t,n){"use strict";var i=n("xgwM").__extends,o=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l=n("CmJd"),u=n("ao60"),a=n("4uS6");t.KeyMacroAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.action=t.action,n.type=t.type,n._scancode=t._scancode,n.modifierMask=t.modifierMask,n):n}return i(t,e),Object.defineProperty(t.prototype,"scancode",{get:function(){return this._scancode},set:function(e){this._scancode=e,this.type!==a.KeystrokeType.shortMedia&&this.type!==a.KeystrokeType.longMedia||(this.type=e<256?a.KeystrokeType.shortMedia:a.KeystrokeType.longMedia)},enumerable:!0,configurable:!0}),t.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.action=u.MacroKeySubAction[e.action],this.type="media"===e.type?e.scancode<256?a.KeystrokeType.shortMedia:a.KeystrokeType.longMedia:a.KeystrokeType[e.type],this._scancode=e.scancode,this.modifierMask=e.modifierMask,this},t.prototype.fromBinary=function(e){var t=this.readAndAssertMacroActionId(e)-u.MacroActionId.KeyMacroAction;return this.action=3&t,this.type=3&(t>>=2),2&(t>>=2)&&(this._scancode=this.type===a.KeystrokeType.longMedia?e.readUInt16():e.readUInt8()),1&t&&(this.modifierMask=e.readUInt8()),this},t.prototype.toJsonObject=function(){var e={macroActionType:u.macroActionType.KeyMacroAction,action:u.MacroKeySubAction[this.action]};return this.hasScancode()&&(e.type=this.type===a.KeystrokeType.shortMedia||this.type===a.KeystrokeType.longMedia?"media":a.KeystrokeType[this.type],e.scancode=this._scancode),this.hasModifiers()&&(e.modifierMask=this.modifierMask),e},t.prototype.toBinary=function(e){var t=0;t|=this.action,t|=this.type<<2,t|=(this.hasScancode()?2:0)+(this.hasModifiers()?1:0)<<4,e.writeUInt8(u.MacroActionId.KeyMacroAction+t),this.hasScancode()&&(this.type===a.KeystrokeType.longMedia?e.writeUInt16(this.scancode):e.writeUInt8(this.scancode)),this.hasModifiers()&&e.writeUInt8(this.modifierMask)},t.prototype.toString=function(){return''},t.prototype.isModifierActive=function(e){return(this.modifierMask&e)>0},t.prototype.hasScancode=function(){return!!this._scancode},t.prototype.hasModifiers=function(){return!!this.modifierMask},t.prototype.isPressAction=function(){return this.action===u.MacroKeySubAction.press},t.prototype.isTapAction=function(){return this.action===u.MacroKeySubAction.tap},t.prototype.isReleaseAction=function(){return this.action===u.MacroKeySubAction.release},t.prototype.getName=function(){return"KeyMacroAction"},o([l.assertEnum(u.MacroKeySubAction),r("design:type",Number)],t.prototype,"action",void 0),o([l.assertEnum(a.KeystrokeType),r("design:type",Number)],t.prototype,"type",void 0),o([l.assertUInt8,r("design:type",Number)],t.prototype,"modifierMask",void 0),o([l.assertUInt16,r("design:type",Number)],t.prototype,"_scancode",void 0),t}(u.MacroAction)},"9eyw":function(e,t,n){"use strict";var i=n("YOd+");function o(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:i.noop}t.pipe=function(){for(var e=[],t=0;t0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(r.OuterSubscriber);t.MergeMapSubscriber=u},B00U:function(e,t,n){"use strict";var i=n("Xajo"),o=n("ICpg"),r=n("SKH6"),l=n("+3eL"),u=n("WhVc"),a=n("GIjk");function s(e){return e.reduce(function(e,t){return e.concat(t instanceof a.UnsubscriptionError?t.errors:t)},[])}t.Subscription=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,c=this._parents,d=this._unsubscribe,p=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,h=c?c.length:0;n;)n.remove(this),n=++f1?new i.ArrayObservable(e,n):new r.EmptyObservable(n),t)}}},"C0+T":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("9Avi");t.QueueScheduler=function(e){function t(){e.apply(this,arguments)}return i(t,e),t}(o.AsyncScheduler)},C4lF:function(e,t,n){"use strict";var i=n("ygD2");t.ignoreElements=function(){return i.ignoreElements()(this)}},CGGv:function(e,t,n){"use strict";var i=n("cwzr"),o=n("9Avi");t.async=new o.AsyncScheduler(i.AsyncAction)},CURp:function(e,t,n){"use strict";var i=n("VOfZ"),o=n("1r8+"),r=n("aQl7"),l=n("ICpg"),u=n("rCTf"),a=n("cdmN"),s=n("QqRK"),c=n("mbVC");t.subscribeToResult=function(e,t,n,d){var p=new s.InnerSubscriber(e,n,d);if(p.closed)return null;if(t instanceof u.Observable)return t._isScalar?(p.next(t.value),p.complete(),null):(p.syncErrorThrowable=!0,t.subscribe(p));if(o.isArrayLike(t)){for(var f=0,h=t.length;fi)throw e.constructor.name+"."+t+": Integer "+r+" is outside the valid ["+n+", "+i+"] interval";this[o]=r}},enumerable:!0,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),t.assertUInt8=function(e,t){return o(e,t,0,255)},t.assertInt8=function(e,t){return o(e,t,-128,127)},t.assertUInt16=i,t.assertInt16=function(e,t){return o(e,t,-32768,32767)},t.assertUInt32=function(e,t){return o(e,t,0,4294967295)},t.assertInt32=function(e,t){return o(e,t,-2147483648,2147483647)},t.assertCompactLength=function(e,t){return i(e,t)},t.assertEnum=function(e){return function(t,n){var i="_"+n;Object.defineProperty(t,n,{get:function(){return this[i]},set:function(o){if(this[i]!==o){if(void 0===e[o])throw t.constructor.name+"."+n+": "+o+" is not enum";this[i]=o}},enumerable:!0,configurable:!0})}}},D2Nv:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.tap=function(e,t,n){return function(i){return i.lift(new r(e,t,n))}};var r=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,i,r){e.call(this,t);var l=new o.Subscriber(n,i,r);l.syncErrorThrowable=!0,this.add(l),this.safeSubscriber=l}return i(t,e),t.prototype._next=function(e){var t=this.safeSubscriber;t.next(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.next(e)},t.prototype._error=function(e){var t=this.safeSubscriber;t.error(e),this.destination.error(t.syncErrorThrown?t.syncErrorValue:e)},t.prototype._complete=function(){var e=this.safeSubscriber;e.complete(),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.complete()},t}(o.Subscriber)},DuR2:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},DzMp:function(e,t,n){"use strict";var i=n("+EXD");t.defer=i.DeferObservable.create},EEr4:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("rCTf"),r=n("mmVS"),l=n("B00U"),u=n("IZVw"),a=n("ZJf8"),s=n("r8ZY"),c=function(e){function t(t){e.call(this,t),this.destination=t}return i(t,e),t}(r.Subscriber);t.SubjectSubscriber=c;var d=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return i(t,e),t.prototype[s.rxSubscriber]=function(){return new c(this)},t.prototype.lift=function(e){var t=new p(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new u.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),o=0;o0?a-4:a;var c=0;for(t=0;t>16&255,u[c++]=i>>8&255,u[c++]=255&i;return 2===l?(i=o[e.charCodeAt(t)]<<2|o[e.charCodeAt(t+1)]>>4,u[c++]=255&i):1===l&&(i=o[e.charCodeAt(t)]<<10|o[e.charCodeAt(t+1)]<<4|o[e.charCodeAt(t+2)]>>2,u[c++]=i>>8&255,u[c++]=255&i),u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,r="",l=[],u=0,a=n-o;ua?a:u+16383));return 1===o?(r+=i[(t=e[n-1])>>2],r+=i[t<<4&63],r+="=="):2===o&&(r+=i[(t=(e[n-2]<<8)+e[n-1])>>10],r+=i[t>>4&63],r+=i[t<<2&63],r+="="),l.push(r),l.join("")};for(var i=[],o=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,a=l.length;u0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function c(e,t,n){for(var o,r=[],l=t;l>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return r.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},Eh6b:function(e,t,n){"use strict";var i=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(i,"\\$&")}},EnA3:function(e,t,n){"use strict";var i=n("rCTf"),o=n("Rewd");i.Observable.prototype.do=o._do,i.Observable.prototype._do=o._do},EoAl:function(e,t,n){"use strict";var i=n("rCTf"),o=n("KuCq");i.Observable.prototype.takeWhile=o.takeWhile},F7Al:function(e,t,n){"use strict";var i=n("TToO").__extends,o=function(e){function t(){var t=e.call(this,"no elements in sequence");this.name=t.name="EmptyError",this.stack=t.stack,this.message=t.message}return i(t,e),t}(Error);t.EmptyError=o},FA5e:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("rCTf"),r=n("RRVv"),l=n("jBEF");t.ArrayLikeObservable=function(e){function t(t,n){e.call(this),this.arrayLike=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return i(t,e),t.create=function(e,n){var i=e.length;return 0===i?new l.EmptyObservable:1===i?new r.ScalarObservable(e[0],n):new t(e,n)},t.dispatch=function(e){var t=e.arrayLike,n=e.index,i=e.subscriber;i.closed||(n>=e.length?i.complete():(i.next(t[n]),e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.arrayLike,i=this.scheduler,o=n.length;if(i)return i.schedule(t.dispatch,0,{arrayLike:n,index:0,length:o,subscriber:e});for(var r=0;r'},t.prototype.getName=function(){return"PlayMacroAction"},o([l.assertUInt8,r("design:type",Number)],t.prototype,"macroId",void 0),t}(u.KeyAction)},Ftqy:function(e,t){e.exports={userConfigMajorVersion:4,userConfigMinorVersion:0,userConfigPatchVersion:0,deviceName:"My UHK",doubleTapSwitchLayerTimeout:250,iconsAndLayerTextsBrightness:255,alphanumericSegmentsBrightness:255,keyBacklightBrightness:255,mouseMoveInitialSpeed:4,mouseMoveAcceleration:68,mouseMoveDeceleratedSpeed:8,mouseMoveBaseSpeed:32,mouseMoveAcceleratedSpeed:64,mouseScrollInitialSpeed:20,mouseScrollAcceleration:20,mouseScrollDeceleratedSpeed:20,mouseScrollBaseSpeed:20,mouseScrollAcceleratedSpeed:50,moduleConfigurations:[],keymaps:[{isDefault:!1,abbreviation:"COM",name:"Colemak for Mac",description:"Colemak is based on QWERTY, but it places the most frequent letters under the strongest fingers. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:23},null,{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:184,modifierMask:12},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"COL",name:"Colemak for PC",description:"Colemak is based on QWERTY, but it places the most frequent letters under the strongest fingers. This is the PC version.\n",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:23},null,{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"DVM",name:"Dvorak for Mac",description:"The Dvorak keyboard layout was designed with the goal of maximizing typing efficiency. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:24},null,{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:184,modifierMask:12},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"DVO",name:"Dvorak for PC",description:"The Dvorak keyboard layout was designed with the goal of maximizing typing efficiency. This is the PC version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:24},null,{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"QWM",name:"QWERTY for Mac",description:"QWERTY is the mother of all layouts. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:184,modifierMask:12},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!0,abbreviation:"QWR",name:"QWERTY for PC",description:"QWERTY is the mother of all layouts. This is the PC version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"TES",name:"Test",description:"This keymap is only used for factory testing purposes.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:87},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:94},{keyActionType:"keystroke",type:"basic",scancode:85},{keyActionType:"keystroke",type:"basic",scancode:95},{keyActionType:"keystroke",type:"basic",scancode:96},{keyActionType:"keystroke",type:"basic",scancode:97},{keyActionType:"keystroke",type:"basic",scancode:98}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:86},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:89},{keyActionType:"keystroke",type:"basic",scancode:90},{keyActionType:"keystroke",type:"basic",scancode:91},{keyActionType:"keystroke",type:"basic",scancode:92},{keyActionType:"keystroke",type:"basic",scancode:84},{keyActionType:"keystroke",type:"basic",scancode:93},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]}],macros:[{isLooped:!0,isPrivate:!0,name:"Go to UHK site in browser",macroActions:[{macroActionType:"key",action:"tap",type:"basic",scancode:15,modifierMask:1},{macroActionType:"text",text:"https://ultimatehackingkeyboard.com"},{macroActionType:"key",action:"tap",type:"basic",scancode:40}]},{isLooped:!1,isPrivate:!0,name:"God mode in Doom",macroActions:[{macroActionType:"text",text:"iddqd"}]},{isLooped:!1,isPrivate:!0,name:"Type Silent Bob's address",macroActions:[{macroActionType:"text",text:"Silent Bob\n711-2880 Nulla St.\nMankato Mississippi 96522\n(257) 563-7401"}]}]}},GIjk:function(e,t,n){"use strict";var i=n("TToO").__extends,o=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return i(t,e),t}(Error);t.UnsubscriptionError=o},H5FS:function(e,t,n){"use strict";(function(e,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UhkBuffer=function(){function t(){this._enableDump=!1,this.offset=0,this.bytesToBacktrack=0,this.buffer=new e(t.eepromSize),this.buffer.fill(0)}return t.simpleElementWriter=function(e,t){t.toBinary(e)},t.fromArray=function(e){if(e.length<1)return null;for(var n=new t,i=0,o=e;i=t.longCompactLengthPrefix?(this.writeUInt8(t.longCompactLengthPrefix),this.writeUInt16(e)):this.writeUInt8(e)},t.prototype.readString=function(){var e=this.readCompactLength(),n=this.buffer.toString(t.stringEncoding,this.offset,this.offset+e);return this.dump(t.stringEncoding+"("+n+")"),this.bytesToBacktrack=e,this.offset+=e,n},t.prototype.writeString=function(n){var i=e.byteLength(n,t.stringEncoding);if(i>t.maxCompactLength)throw"Cannot serialize string: "+i+" bytes is larger\n than the maximum allowed length of "+t.maxCompactLength+" bytes";this.writeCompactLength(i),this.dump(t.stringEncoding+"("+n+")"),this.buffer.write(n,this.offset,i,t.stringEncoding),this.offset+=i},t.prototype.readBoolean=function(){return 0!==this.readUInt8()},t.prototype.writeBoolean=function(e){this.writeUInt8(e?1:0)},t.prototype.readArray=function(e){for(var t=[],n=this.readCompactLength(),i=0;i"},t.prototype.getName=function(){return"NoneAction"},t}(o.KeyAction)},I5Xr:function(e,t,n){"use strict";var i=n("xgwM").__extends,o=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,u=n("CmJd"),a=n("ZTdU"),s=n("4KnF"),c=n("CfJK");!function(e){e[e.scancode=1]="scancode",e[e.modifierMask=2]="modifierMask",e[e.secondaryRoleAction=4]="secondaryRoleAction"}(l=t.KeystrokeActionFlag||(t.KeystrokeActionFlag={}));var d=["LCtrl","LShift","LAlt","LSuper","RCtrl","RShift","RAlt","RSuper"];t.KeystrokeAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.type=t.type,n._scancode=t._scancode,n.modifierMask=t.modifierMask,n.secondaryRoleAction=t.secondaryRoleAction,n):n}return i(t,e),Object.defineProperty(t.prototype,"scancode",{get:function(){return this._scancode},set:function(e){this._scancode=e,this.type!==c.KeystrokeType.shortMedia&&this.type!==c.KeystrokeType.longMedia||(this.type=e<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(e){e!==c.KeystrokeType.shortMedia&&e!==c.KeystrokeType.longMedia||(e=this.scancode<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia),this._type=e},enumerable:!0,configurable:!0}),t.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.type="media"===e.type?e.scancode<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia:c.KeystrokeType[e.type],this._scancode=e.scancode,this.modifierMask=e.modifierMask,this.secondaryRoleAction=a.SecondaryRoleAction[e.secondaryRoleAction],this},t.prototype.fromBinary=function(e){var t=this.readAndAssertKeyActionId(e)-s.KeyActionId.NoneAction;return this.type=t>>3&3,t&l.scancode&&(this._scancode=this.type===c.KeystrokeType.longMedia?e.readUInt16():e.readUInt8()),t&l.modifierMask&&(this.modifierMask=e.readUInt8()),t&l.secondaryRoleAction&&(this.secondaryRoleAction=e.readUInt8()),this},t.prototype.toJsonObject=function(){var e={keyActionType:s.keyActionType.KeystrokeAction};return e.type=this.type===c.KeystrokeType.shortMedia||this.type===c.KeystrokeType.longMedia?"media":c.KeystrokeType[this.type],this.hasScancode()&&(e.scancode=this._scancode),this.hasActiveModifier()&&(e.modifierMask=this.modifierMask),this.hasSecondaryRoleAction()&&(e.secondaryRoleAction=a.SecondaryRoleAction[this.secondaryRoleAction]),e},t.prototype.toBinary=function(e){var t=0,n=[];this.hasScancode()&&(t|=l.scancode,n.push({data:this._scancode,long:this.type===c.KeystrokeType.longMedia})),this.hasActiveModifier()&&(t|=l.modifierMask,n.push({data:this.modifierMask,long:!1})),this.hasSecondaryRoleAction()&&(t|=l.secondaryRoleAction,n.push({data:this.secondaryRoleAction,long:!1})),e.writeUInt8(s.KeyActionId.NoneAction+(t+(this.type<<3)));for(var i=0;i"},t.prototype.isActive=function(e){return(this.modifierMask&e)>0},t.prototype.hasActiveModifier=function(){return this.modifierMask>0},t.prototype.hasSecondaryRoleAction=function(){return void 0!==this.secondaryRoleAction&&null!==this.secondaryRoleAction},t.prototype.hasScancode=function(){return!!this._scancode},t.prototype.hasOnlyOneActiveModifier=function(){return 0!==this.modifierMask&&!(this.modifierMask&this.modifierMask-1)},t.prototype.getModifierList=function(){for(var e=[],t=this.modifierMask,n=0;0!==t;++n,t>>=1)1&t&&e.push(d[n]);return e},t.prototype.getName=function(){return"KeystrokeAction"},o([u.assertUInt8,r("design:type",Number)],t.prototype,"modifierMask",void 0),o([u.assertEnum(a.SecondaryRoleAction),r("design:type",Number)],t.prototype,"secondaryRoleAction",void 0),o([u.assertEnum(c.KeystrokeType),r("design:type",Number)],t.prototype,"_type",void 0),t}(s.KeyAction)},ICpg:function(e,t,n){"use strict";t.isObject=function(e){return null!=e&&"object"==typeof e}},IZVw:function(e,t,n){"use strict";var i=n("TToO").__extends,o=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return i(t,e),t}(Error);t.ObjectUnsubscribedError=o},Ilbw:function(e,t,n){"use strict";var i=n("vx8o");t.dragula=i.default||i},JJSU:function(e,t,n){"use strict";var i=n("rCTf"),o=n("7nvF");i.Observable.prototype.last=o.last},JZ4p:function(e,t,n){var i={"./DVR.json":"VMHN","./EMY.json":"TyHZ","./QTY.json":"e8yI","./VIM.json":"3vEz"};function o(e){return n(r(e))}function r(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id="JZ4p"},Ji1B:function(e,t,n){"use strict";var i=n("ODby");t.observeOn=function(e,t){return void 0===t&&(t=0),i.observeOn(e,t)(this)}},Ji1V:function(e,t,n){"use strict";var i=n("C/iu");t.startWith=function(){for(var e=[],t=0;tthis.total&&this.destination.next(e)},t}(o.Subscriber)},KMB7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("RZVO");t.isEqualArray=function(e,t){if(e.length!==t.length)return!1;for(var n=function(e){if(!t.some(function(t){return i.isEqual(e,t)}))return{value:!1}},o=0,r=e;o0}var u,a=function(){var e=n("OjAK");return{version:e.version,firmwareVersion:e.firmwareVersion,deviceProtocolVersion:e.deviceProtocolVersion,moduleProtocolVersion:e.moduleProtocolVersion,userConfigVersion:e.userConfigVersion,hardwareConfigVersion:e.hardwareConfigVersion}},s=a,c=function(){return u||(u=a()),u};n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r}),n.d(t,"d",function(){return l}),n.d(t,"c",function(){return c}),n.d(t,!1,function(){return s})},LxNc:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("wAkD"),r=n("CURp");t.catchError=function(e){return function(t){var n=new l(e),i=t.lift(n);return n.caught=i}};var l=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.selector,this.caught))},e}(),u=function(e){function t(t,n,i){e.call(this,t),this.selector=n,this.caught=i}return i(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle(),this.add(r.subscribeToResult(this,n))}},t}(o.OuterSubscriber)},M4fF:function(e,t,n){(function(e,i){var o;(function(){var r,l=200,u="Expected a function",a="__lodash_placeholder__",s=1,c=2,d=4,p=1,f=2,h=1,y=2,m=4,g=8,v=16,b=32,k=64,_=128,w=256,A=512,T=800,C=16,x=1/0,O=9007199254740991,S=1.7976931348623157e308,M=NaN,E=4294967295,P=E-1,I=E>>>1,R=[["ary",_],["bind",h],["bindKey",y],["curry",g],["curryRight",v],["flip",A],["partial",b],["partialRight",k],["rearg",w]],D="[object Arguments]",N="[object Array]",j="[object AsyncFunction]",L="[object Boolean]",U="[object Date]",V="[object DOMException]",F="[object Error]",K="[object Function]",B="[object GeneratorFunction]",H="[object Map]",W="[object Number]",z="[object Null]",$="[object Object]",q="[object Proxy]",G="[object RegExp]",Y="[object Set]",Q="[object String]",J="[object Symbol]",Z="[object Undefined]",X="[object WeakMap]",ee="[object ArrayBuffer]",te="[object DataView]",ne="[object Float32Array]",ie="[object Float64Array]",oe="[object Int8Array]",re="[object Int16Array]",le="[object Int32Array]",ue="[object Uint8Array]",ae="[object Uint8ClampedArray]",se="[object Uint16Array]",ce="[object Uint32Array]",de=/\b__p \+= '';/g,pe=/\b(__p \+=) '' \+/g,fe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,ye=/[&<>"']/g,me=RegExp(he.source),ge=RegExp(ye.source),ve=/<%-([\s\S]+?)%>/g,be=/<%([\s\S]+?)%>/g,ke=/<%=([\s\S]+?)%>/g,_e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,we=/^\w*$/,Ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Te=/[\\^$.*+?()[\]{}|]/g,Ce=RegExp(Te.source),xe=/^\s+|\s+$/g,Oe=/^\s+/,Se=/\s+$/,Me=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ee=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,Ie=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Re=/\\(\\)?/g,De=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ne=/\w*$/,je=/^[-+]0x[0-9a-f]+$/i,Le=/^0b[01]+$/i,Ue=/^\[object .+?Constructor\]$/,Ve=/^0o[0-7]+$/i,Fe=/^(?:0|[1-9]\d*)$/,Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Be=/($^)/,He=/['\n\r\u2028\u2029\\]/g,We="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ze="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$e="["+ze+"]",qe="["+We+"]",Ge="\\d+",Ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",Qe="[^\\ud800-\\udfff"+ze+Ge+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Je="\\ud83c[\\udffb-\\udfff]",Ze="[^\\ud800-\\udfff]",Xe="(?:\\ud83c[\\udde6-\\uddff]){2}",et="[\\ud800-\\udbff][\\udc00-\\udfff]",tt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",nt="(?:"+Ye+"|"+Qe+")",it="(?:"+tt+"|"+Qe+")",ot="(?:"+qe+"|"+Je+")?",rt="[\\ufe0e\\ufe0f]?"+ot+"(?:\\u200d(?:"+[Ze,Xe,et].join("|")+")[\\ufe0e\\ufe0f]?"+ot+")*",lt="(?:"+["[\\u2700-\\u27bf]",Xe,et].join("|")+")"+rt,ut="(?:"+[Ze+qe+"?",qe,Xe,et,"[\\ud800-\\udfff]"].join("|")+")",at=RegExp("['\u2019]","g"),st=RegExp(qe,"g"),ct=RegExp(Je+"(?="+Je+")|"+ut+rt,"g"),dt=RegExp([tt+"?"+Ye+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[$e,tt,"$"].join("|")+")",it+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[$e,tt+nt,"$"].join("|")+")",tt+"?"+nt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",tt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ge,lt].join("|"),"g"),pt=RegExp("[\\u200d\\ud800-\\udfff"+We+"\\ufe0e\\ufe0f]"),ft=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ht=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],yt=-1,mt={};mt[ne]=mt[ie]=mt[oe]=mt[re]=mt[le]=mt[ue]=mt[ae]=mt[se]=mt[ce]=!0,mt[D]=mt[N]=mt[ee]=mt[L]=mt[te]=mt[U]=mt[F]=mt[K]=mt[H]=mt[W]=mt[$]=mt[G]=mt[Y]=mt[Q]=mt[X]=!1;var gt={};gt[D]=gt[N]=gt[ee]=gt[te]=gt[L]=gt[U]=gt[ne]=gt[ie]=gt[oe]=gt[re]=gt[le]=gt[H]=gt[W]=gt[$]=gt[G]=gt[Y]=gt[Q]=gt[J]=gt[ue]=gt[ae]=gt[se]=gt[ce]=!0,gt[F]=gt[K]=gt[X]=!1;var vt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bt=parseFloat,kt=parseInt,_t="object"==typeof e&&e&&e.Object===Object&&e,wt="object"==typeof self&&self&&self.Object===Object&&self,At=_t||wt||Function("return this")(),Tt="object"==typeof t&&t&&!t.nodeType&&t,Ct=Tt&&"object"==typeof i&&i&&!i.nodeType&&i,xt=Ct&&Ct.exports===Tt,Ot=xt&&_t.process,St=function(){try{return Ot&&Ot.binding&&Ot.binding("util")}catch(e){}}(),Mt=St&&St.isArrayBuffer,Et=St&&St.isDate,Pt=St&&St.isMap,It=St&&St.isRegExp,Rt=St&&St.isSet,Dt=St&&St.isTypedArray;function Nt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function jt(e,t,n,i){for(var o=-1,r=null==e?0:e.length;++o-1}function Kt(e,t,n){for(var i=-1,o=null==e?0:e.length;++i-1;);return n}function cn(e,t){for(var n=e.length;n--&&Qt(t,e[n],0)>-1;);return n}var dn=tn({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),pn=tn({"&":"&","<":"<",">":">",'"':""","'":"'"});function fn(e){return"\\"+vt[e]}function hn(e){return pt.test(e)}function yn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function mn(e,t){return function(n){return e(t(n))}}function gn(e,t){for(var n=-1,i=e.length,o=0,r=[];++n",""":'"',"'":"'"}),Tn=function e(t){var n,i=(t=null==t?At:Tn.defaults(At.Object(),t,Tn.pick(At,ht))).Array,o=t.Date,We=t.Error,ze=t.Function,$e=t.Math,qe=t.Object,Ge=t.RegExp,Ye=t.String,Qe=t.TypeError,Je=i.prototype,Ze=qe.prototype,Xe=t["__core-js_shared__"],et=ze.prototype.toString,tt=Ze.hasOwnProperty,nt=0,it=(n=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ot=Ze.toString,rt=et.call(qe),lt=At._,ut=Ge("^"+et.call(tt).replace(Te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ct=xt?t.Buffer:r,pt=t.Symbol,vt=t.Uint8Array,_t=ct?ct.allocUnsafe:r,wt=mn(qe.getPrototypeOf,qe),Tt=qe.create,Ct=Ze.propertyIsEnumerable,Ot=Je.splice,St=pt?pt.isConcatSpreadable:r,qt=pt?pt.iterator:r,tn=pt?pt.toStringTag:r,Cn=function(){try{var e=Tr(qe,"defineProperty");return e({},"",{}),e}catch(e){}}(),xn=t.clearTimeout!==At.clearTimeout&&t.clearTimeout,On=o&&o.now!==At.Date.now&&o.now,Sn=t.setTimeout!==At.setTimeout&&t.setTimeout,Mn=$e.ceil,En=$e.floor,Pn=qe.getOwnPropertySymbols,In=ct?ct.isBuffer:r,Rn=t.isFinite,Dn=Je.join,Nn=mn(qe.keys,qe),jn=$e.max,Ln=$e.min,Un=o.now,Vn=t.parseInt,Fn=$e.random,Kn=Je.reverse,Bn=Tr(t,"DataView"),Hn=Tr(t,"Map"),Wn=Tr(t,"Promise"),zn=Tr(t,"Set"),$n=Tr(t,"WeakMap"),qn=Tr(qe,"create"),Gn=$n&&new $n,Yn={},Qn=Yr(Bn),Jn=Yr(Hn),Zn=Yr(Wn),Xn=Yr(zn),ei=Yr($n),ti=pt?pt.prototype:r,ni=ti?ti.valueOf:r,ii=ti?ti.toString:r;function oi(e){if(pu(e)&&!tu(e)&&!(e instanceof ai)){if(e instanceof ui)return e;if(tt.call(e,"__wrapped__"))return Qr(e)}return new ui(e)}var ri=function(){function e(){}return function(t){if(!du(t))return{};if(Tt)return Tt(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function li(){}function ui(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function ai(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=E,this.__views__=[]}function si(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Ti(e,t,n,i,o,l){var u,a=t&s,p=t&c,f=t&d;if(n&&(u=o?n(e,i,o,l):n(e)),u!==r)return u;if(!du(e))return e;var h=tu(e);if(h){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!a)return Bo(e,u)}else{var y=Or(e),m=y==K||y==B;if(ru(e))return jo(e,a);if(y==$||y==D||m&&!o){if(u=p||m?{}:Mr(e),!a)return p?function(e,t){return Ho(e,xr(e),t)}(e,function(t,n){return t&&Ho(e,Hu(e),t)}(u)):function(e,t){return Ho(e,Cr(e),t)}(e,ki(u,e))}else{if(!gt[y])return o?e:{};u=function(e,t,n){var i,o,r=e.constructor;switch(t){case ee:return Lo(e);case L:case U:return new r(+e);case te:return function(e,t){var n=t?Lo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ne:case ie:case oe:case re:case le:case ue:case ae:case se:case ce:return Uo(e,n);case H:return new r;case W:case Q:return new r(e);case G:return(o=new(i=e).constructor(i.source,Ne.exec(i))).lastIndex=i.lastIndex,o;case Y:return new r;case J:return ni?qe(ni.call(e)):{}}}(e,y,a)}}l||(l=new fi);var g=l.get(e);if(g)return g;if(l.set(e,u),gu(e))return e.forEach(function(i){u.add(Ti(i,t,n,i,e,l))}),u;if(fu(e))return e.forEach(function(i,o){u.set(o,Ti(i,t,n,o,e,l))}),u;var v=h?r:(f?p?gr:mr:p?Hu:Bu)(e);return Lt(v||e,function(i,o){v&&(i=e[o=i]),gi(u,o,Ti(i,t,n,o,e,l))}),u}function Ci(e,t,n){var i=n.length;if(null==e)return!i;for(e=qe(e);i--;){var o=n[i],l=e[o];if(l===r&&!(o in e)||!(0,t[o])(l))return!1}return!0}function xi(e,t,n){if("function"!=typeof e)throw new Qe(u);return Br(function(){e.apply(r,n)},t)}function Oi(e,t,n,i){var o=-1,r=Ft,u=!0,a=e.length,s=[],c=t.length;if(!a)return s;n&&(t=Bt(t,ln(n))),i?(r=Kt,u=!1):t.length>=l&&(r=an,u=!1,t=new pi(t));e:for(;++o-1},ci.prototype.set=function(e,t){var n=this.__data__,i=vi(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},di.prototype.clear=function(){this.size=0,this.__data__={hash:new si,map:new(Hn||ci),string:new si}},di.prototype.delete=function(e){var t=wr(this,e).delete(e);return this.size-=t?1:0,t},di.prototype.get=function(e){return wr(this,e).get(e)},di.prototype.has=function(e){return wr(this,e).has(e)},di.prototype.set=function(e,t){var n=wr(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},pi.prototype.add=pi.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},pi.prototype.has=function(e){return this.__data__.has(e)},fi.prototype.clear=function(){this.__data__=new ci,this.size=0},fi.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},fi.prototype.get=function(e){return this.__data__.get(e)},fi.prototype.has=function(e){return this.__data__.has(e)},fi.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ci){var i=n.__data__;if(!Hn||i.length0&&n(u)?t>1?Ri(u,t-1,n,i,o):Ht(o,u):i||(o[o.length]=u)}return o}var Di=qo(),Ni=qo(!0);function ji(e,t){return e&&Di(e,t,Bu)}function Li(e,t){return e&&Ni(e,t,Bu)}function Ui(e,t){return Vt(t,function(t){return au(e[t])})}function Vi(e,t){for(var n=0,i=(t=Io(t,e)).length;null!=e&&nt}function Hi(e,t){return null!=e&&tt.call(e,t)}function Wi(e,t){return null!=e&&t in qe(e)}function zi(e,t,n){for(var o=n?Kt:Ft,l=e[0].length,u=e.length,a=u,s=i(u),c=1/0,d=[];a--;){var p=e[a];a&&t&&(p=Bt(p,ln(t))),c=Ln(p.length,c),s[a]=!n&&(t||l>=120&&p.length>=120)?new pi(a&&p):r}p=e[0];var f=-1,h=s[0];e:for(;++f=u?a:a*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)});i--;)e[i]=e[i].value;return e}(eo(e,function(e,n,o){return{criteria:Bt(t,function(t){return t(e)}),index:++i,value:e}}))}function lo(e,t,n){for(var i=-1,o=t.length,r={};++i-1;)u!==e&&Ot.call(u,a,1),Ot.call(e,a,1);return e}function ao(e,t){for(var n=e?t.length:0,i=n-1;n--;){var o=t[n];if(n==i||o!==r){var r=o;Pr(o)?Ot.call(e,o,1):To(e,o)}}return e}function so(e,t){return e+En(Fn()*(t-e+1))}function co(e,t){var n="";if(!e||t<1||t>O)return n;do{t%2&&(n+=e),(t=En(t/2))&&(e+=e)}while(t);return n}function po(e,t){return Hr(Vr(e,t,ha),e+"")}function fo(e,t,n,i){if(!du(e))return e;for(var o=-1,l=(t=Io(t,e)).length,u=l-1,a=e;null!=a&&++or?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var l=i(r);++o>>1,l=e[r];null!==l&&!bu(l)&&(n?l<=t:l=l){var c=t?null:ar(e);if(c)return bn(c);u=!1,o=an,s=new pi}else s=t?[]:a;e:for(;++i=i?e:mo(e,t,n)}var No=xn||function(e){return At.clearTimeout(e)};function jo(e,t){if(t)return e.slice();var n=e.length,i=_t?_t(n):new e.constructor(n);return e.copy(i),i}function Lo(e){var t=new e.constructor(e.byteLength);return new vt(t).set(new vt(e)),t}function Uo(e,t){var n=t?Lo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Vo(e,t){if(e!==t){var n=e!==r,i=null===e,o=e==e,l=bu(e),u=t!==r,a=null===t,s=t==t,c=bu(t);if(!a&&!c&&!l&&e>t||l&&u&&s&&!a&&!c||i&&u&&s||!n&&s||!o)return 1;if(!i&&!l&&!c&&e1?n[o-1]:r,u=o>2?n[2]:r;for(l=e.length>3&&"function"==typeof l?(o--,l):r,u&&Ir(n[0],n[1],u)&&(l=o<3?r:l,o=1),t=qe(t);++i-1?o[l?t[u]:u]:r}}function Zo(e){return yr(function(t){var n=t.length,i=n,o=ui.prototype.thru;for(e&&t.reverse();i--;){var l=t[i];if("function"!=typeof l)throw new Qe(u);if(o&&!a&&"wrapper"==br(l))var a=new ui([],!0)}for(i=a?i:n;++i1&&g.reverse(),p&&ca))return!1;var c=l.get(e);if(c&&l.get(t))return c==t;var d=-1,h=!0,y=n&f?new pi:r;for(l.set(e,t),l.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Me,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Lt(R,function(n){var i="_."+n[0];t&n[1]&&!Ft(e,i)&&e.push(i)}),e.sort()}(function(e){var t=e.match(Ee);return t?t[1].split(Pe):[]}(i),n)))}function zr(e){var t=0,n=0;return function(){var i=Un(),o=C-(i-n);if(n=i,o>0){if(++t>=T)return arguments[0]}else t=0;return e.apply(r,arguments)}}function $r(e,t){var n=-1,i=e.length,o=i-1;for(t=t===r?i:t;++n1?e[t-1]:r;return ml(e,n="function"==typeof n?(e.pop(),n):r)});function Al(e){var t=oi(e);return t.__chain__=!0,t}function Tl(e,t){return t(e)}var Cl=yr(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return wi(t,e)};return!(t>1||this.__actions__.length)&&i instanceof ai&&Pr(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:Tl,args:[o],thisArg:r}),new ui(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(o)}),xl=Wo(function(e,t,n){tt.call(e,n)?++e[n]:_i(e,n,1)}),Ol=Jo(el),Sl=Jo(tl);function Ml(e,t){return(tu(e)?Lt:Si)(e,_r(t,3))}function El(e,t){return(tu(e)?function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}:Mi)(e,_r(t,3))}var Pl=Wo(function(e,t,n){tt.call(e,n)?e[n].push(t):_i(e,n,[t])}),Il=po(function(e,t,n){var o=-1,r="function"==typeof t,l=iu(e)?i(e.length):[];return Si(e,function(e){l[++o]=r?Nt(t,e,n):$i(e,t,n)}),l}),Rl=Wo(function(e,t,n){_i(e,n,t)});function Dl(e,t){return(tu(e)?Bt:eo)(e,_r(t,3))}var Nl=Wo(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),jl=po(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ir(e,t[0],t[1])?t=[]:n>2&&Ir(t[0],t[1],t[2])&&(t=[t[0]]),ro(e,Ri(t,1),[])}),Ll=On||function(){return At.Date.now()};function Ul(e,t,n){return t=n?r:t,cr(e,_,r,r,r,r,t=e&&null==t?e.length:t)}function Vl(e,t){var n;if("function"!=typeof t)throw new Qe(u);return e=Cu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Fl=po(function(e,t,n){var i=h;if(n.length){var o=gn(n,kr(Fl));i|=b}return cr(e,i,t,n,o)}),Kl=po(function(e,t,n){var i=h|y;if(n.length){var o=gn(n,kr(Kl));i|=b}return cr(t,i,e,n,o)});function Bl(e,t,n){var i,o,l,a,s,c,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Qe(u);function y(t){var n=i,l=o;return i=o=r,d=t,a=e.apply(l,n)}function m(e){var n=e-c;return c===r||n>=t||n<0||f&&e-d>=l}function g(){var e=Ll();if(m(e))return v(e);s=Br(g,function(e){var n=t-(e-c);return f?Ln(n,l-(e-d)):n}(e))}function v(e){return s=r,h&&i?y(e):(i=o=r,a)}function b(){var e=Ll(),n=m(e);if(i=arguments,o=this,c=e,n){if(s===r)return function(e){return d=e,s=Br(g,t),p?y(e):a}(c);if(f)return s=Br(g,t),y(c)}return s===r&&(s=Br(g,t)),a}return t=Ou(t)||0,du(n)&&(p=!!n.leading,l=(f="maxWait"in n)?jn(Ou(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),b.cancel=function(){s!==r&&No(s),d=0,i=c=o=s=r},b.flush=function(){return s===r?a:v(Ll())},b}var Hl=po(function(e,t){return xi(e,1,t)}),Wl=po(function(e,t,n){return xi(e,Ou(t)||0,n)});function zl(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Qe(u);var n=function(){var i=arguments,o=t?t.apply(this,i):i[0],r=n.cache;if(r.has(o))return r.get(o);var l=e.apply(this,i);return n.cache=r.set(o,l)||r,l};return n.cache=new(zl.Cache||di),n}function $l(e){if("function"!=typeof e)throw new Qe(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}zl.Cache=di;var ql=Ro(function(e,t){var n=(t=1==t.length&&tu(t[0])?Bt(t[0],ln(_r())):Bt(Ri(t,1),ln(_r()))).length;return po(function(i){for(var o=-1,r=Ln(i.length,n);++o=t}),eu=qi(function(){return arguments}())?qi:function(e){return pu(e)&&tt.call(e,"callee")&&!Ct.call(e,"callee")},tu=i.isArray,nu=Mt?ln(Mt):function(e){return pu(e)&&Ki(e)==ee};function iu(e){return null!=e&&cu(e.length)&&!au(e)}function ou(e){return pu(e)&&iu(e)}var ru=In||Oa,lu=Et?ln(Et):function(e){return pu(e)&&Ki(e)==U};function uu(e){if(!pu(e))return!1;var t=Ki(e);return t==F||t==V||"string"==typeof e.message&&"string"==typeof e.name&&!yu(e)}function au(e){if(!du(e))return!1;var t=Ki(e);return t==K||t==B||t==j||t==q}function su(e){return"number"==typeof e&&e==Cu(e)}function cu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=O}function du(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function pu(e){return null!=e&&"object"==typeof e}var fu=Pt?ln(Pt):function(e){return pu(e)&&Or(e)==H};function hu(e){return"number"==typeof e||pu(e)&&Ki(e)==W}function yu(e){if(!pu(e)||Ki(e)!=$)return!1;var t=wt(e);if(null===t)return!0;var n=tt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&et.call(n)==rt}var mu=It?ln(It):function(e){return pu(e)&&Ki(e)==G},gu=Rt?ln(Rt):function(e){return pu(e)&&Or(e)==Y};function vu(e){return"string"==typeof e||!tu(e)&&pu(e)&&Ki(e)==Q}function bu(e){return"symbol"==typeof e||pu(e)&&Ki(e)==J}var ku=Dt?ln(Dt):function(e){return pu(e)&&cu(e.length)&&!!mt[Ki(e)]},_u=rr(Xi),wu=rr(function(e,t){return e<=t});function Au(e){if(!e)return[];if(iu(e))return vu(e)?wn(e):Bo(e);if(qt&&e[qt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[qt]());var t=Or(e);return(t==H?yn:t==Y?bn:Ju)(e)}function Tu(e){return e?(e=Ou(e))===x||e===-x?(e<0?-1:1)*S:e==e?e:0:0===e?e:0}function Cu(e){var t=Tu(e),n=t%1;return t==t?n?t-n:t:0}function xu(e){return e?Ai(Cu(e),0,E):0}function Ou(e){if("number"==typeof e)return e;if(bu(e))return M;if(du(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=du(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(xe,"");var n=Le.test(e);return n||Ve.test(e)?kt(e.slice(2),n?2:8):je.test(e)?M:+e}function Su(e){return Ho(e,Hu(e))}function Mu(e){return null==e?"":wo(e)}var Eu=zo(function(e,t){if(jr(t)||iu(t))Ho(t,Bu(t),e);else for(var n in t)tt.call(t,n)&&gi(e,n,t[n])}),Pu=zo(function(e,t){Ho(t,Hu(t),e)}),Iu=zo(function(e,t,n,i){Ho(t,Hu(t),e,i)}),Ru=zo(function(e,t,n,i){Ho(t,Bu(t),e,i)}),Du=yr(wi),Nu=po(function(e,t){e=qe(e);var n=-1,i=t.length,o=i>2?t[2]:r;for(o&&Ir(t[0],t[1],o)&&(i=1);++n1),t}),Ho(e,gr(e),n),i&&(n=Ti(n,s|c|d,fr));for(var o=t.length;o--;)To(n,t[o]);return n}),qu=yr(function(e,t){return null==e?{}:function(e,t){return lo(e,t,function(t,n){return Uu(e,n)})}(e,t)});function Gu(e,t){if(null==e)return{};var n=Bt(gr(e),function(e){return[e]});return t=_r(t),lo(e,n,function(e,n){return t(e,n[0])})}var Yu=sr(Bu),Qu=sr(Hu);function Ju(e){return null==e?[]:un(e,Bu(e))}var Zu=Yo(function(e,t,n){return t=t.toLowerCase(),e+(n?Xu(t):t)});function Xu(e){return ua(Mu(e).toLowerCase())}function ea(e){return(e=Mu(e))&&e.replace(Ke,dn).replace(st,"")}var ta=Yo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),na=Yo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ia=Go("toLowerCase"),oa=Yo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),ra=Yo(function(e,t,n){return e+(n?" ":"")+ua(t)}),la=Yo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ua=Go("toUpperCase");function aa(e,t,n){return e=Mu(e),(t=n?r:t)===r?function(e){return ft.test(e)}(e)?function(e){return e.match(dt)||[]}(e):function(e){return e.match(Ie)||[]}(e):e.match(t)||[]}var sa=po(function(e,t){try{return Nt(e,r,t)}catch(e){return uu(e)?e:new We(e)}}),ca=yr(function(e,t){return Lt(t,function(t){t=Gr(t),_i(e,t,Fl(e[t],e))}),e});function da(e){return function(){return e}}var pa=Zo(),fa=Zo(!0);function ha(e){return e}function ya(e){return Ji("function"==typeof e?e:Ti(e,s))}var ma=po(function(e,t){return function(n){return $i(n,e,t)}}),ga=po(function(e,t){return function(n){return $i(e,n,t)}});function va(e,t,n){var i=Bu(t),o=Ui(t,i);null!=n||du(t)&&(o.length||!i.length)||(n=t,t=e,e=this,o=Ui(t,Bu(t)));var r=!(du(n)&&"chain"in n&&!n.chain),l=au(e);return Lt(o,function(n){var i=t[n];e[n]=i,l&&(e.prototype[n]=function(){var t=this.__chain__;if(r||t){var n=e(this.__wrapped__);return(n.__actions__=Bo(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Ht([this.value()],arguments))})}),e}function ba(){}var ka=nr(Bt),_a=nr(Ut),wa=nr($t);function Aa(e){return Rr(e)?en(Gr(e)):function(e){return function(t){return Vi(t,e)}}(e)}var Ta=or(),Ca=or(!0);function xa(){return[]}function Oa(){return!1}var Sa,Ma=tr(function(e,t){return e+t},0),Ea=ur("ceil"),Pa=tr(function(e,t){return e/t},1),Ia=ur("floor"),Ra=tr(function(e,t){return e*t},1),Da=ur("round"),Na=tr(function(e,t){return e-t},0);return oi.after=function(e,t){if("function"!=typeof t)throw new Qe(u);return e=Cu(e),function(){if(--e<1)return t.apply(this,arguments)}},oi.ary=Ul,oi.assign=Eu,oi.assignIn=Pu,oi.assignInWith=Iu,oi.assignWith=Ru,oi.at=Du,oi.before=Vl,oi.bind=Fl,oi.bindAll=ca,oi.bindKey=Kl,oi.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return tu(e)?e:[e]},oi.chain=Al,oi.chunk=function(e,t,n){t=(n?Ir(e,t,n):t===r)?1:jn(Cu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var l=0,u=0,a=i(Mn(o/t));lo?0:o+n),(i=i===r||i>o?o:Cu(i))<0&&(i+=o),i=n>i?0:xu(i);n>>0)?(e=Mu(e))&&("string"==typeof t||null!=t&&!mu(t))&&!(t=wo(t))&&hn(e)?Do(wn(e),0,n):e.split(t,n):[]},oi.spread=function(e,t){if("function"!=typeof e)throw new Qe(u);return t=null==t?0:jn(Cu(t),0),po(function(n){var i=n[t],o=Do(n,0,t);return i&&Ht(o,i),Nt(e,this,o)})},oi.tail=function(e){var t=null==e?0:e.length;return t?mo(e,1,t):[]},oi.take=function(e,t,n){return e&&e.length?mo(e,0,(t=n||t===r?1:Cu(t))<0?0:t):[]},oi.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?mo(e,(t=i-(t=n||t===r?1:Cu(t)))<0?0:t,i):[]},oi.takeRightWhile=function(e,t){return e&&e.length?xo(e,_r(t,3),!1,!0):[]},oi.takeWhile=function(e,t){return e&&e.length?xo(e,_r(t,3)):[]},oi.tap=function(e,t){return t(e),e},oi.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new Qe(u);return du(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Bl(e,t,{leading:i,maxWait:t,trailing:o})},oi.thru=Tl,oi.toArray=Au,oi.toPairs=Yu,oi.toPairsIn=Qu,oi.toPath=function(e){return tu(e)?Bt(e,Gr):bu(e)?[e]:Bo(qr(Mu(e)))},oi.toPlainObject=Su,oi.transform=function(e,t,n){var i=tu(e),o=i||ru(e)||ku(e);if(t=_r(t,4),null==n){var r=e&&e.constructor;n=o?i?new r:[]:du(e)&&au(r)?ri(wt(e)):{}}return(o?Lt:ji)(e,function(e,i,o){return t(n,e,i,o)}),n},oi.unary=function(e){return Ul(e,1)},oi.union=pl,oi.unionBy=fl,oi.unionWith=hl,oi.uniq=function(e){return e&&e.length?Ao(e):[]},oi.uniqBy=function(e,t){return e&&e.length?Ao(e,_r(t,2)):[]},oi.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?Ao(e,r,t):[]},oi.unset=function(e,t){return null==e||To(e,t)},oi.unzip=yl,oi.unzipWith=ml,oi.update=function(e,t,n){return null==e?e:Co(e,t,Po(n))},oi.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:Co(e,t,Po(n),i)},oi.values=Ju,oi.valuesIn=function(e){return null==e?[]:un(e,Hu(e))},oi.without=gl,oi.words=aa,oi.wrap=function(e,t){return Gl(Po(t),e)},oi.xor=vl,oi.xorBy=bl,oi.xorWith=kl,oi.zip=_l,oi.zipObject=function(e,t){return Mo(e||[],t||[],gi)},oi.zipObjectDeep=function(e,t){return Mo(e||[],t||[],fo)},oi.zipWith=wl,oi.entries=Yu,oi.entriesIn=Qu,oi.extend=Pu,oi.extendWith=Iu,va(oi,oi),oi.add=Ma,oi.attempt=sa,oi.camelCase=Zu,oi.capitalize=Xu,oi.ceil=Ea,oi.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=Ou(n))==n?n:0),t!==r&&(t=(t=Ou(t))==t?t:0),Ai(Ou(e),t,n)},oi.clone=function(e){return Ti(e,d)},oi.cloneDeep=function(e){return Ti(e,s|d)},oi.cloneDeepWith=function(e,t){return Ti(e,s|d,t="function"==typeof t?t:r)},oi.cloneWith=function(e,t){return Ti(e,d,t="function"==typeof t?t:r)},oi.conformsTo=function(e,t){return null==t||Ci(e,t,Bu(t))},oi.deburr=ea,oi.defaultTo=function(e,t){return null==e||e!=e?t:e},oi.divide=Pa,oi.endsWith=function(e,t,n){e=Mu(e),t=wo(t);var i=e.length,o=n=n===r?i:Ai(Cu(n),0,i);return(n-=t.length)>=0&&e.slice(n,o)==t},oi.eq=Jl,oi.escape=function(e){return(e=Mu(e))&&ge.test(e)?e.replace(ye,pn):e},oi.escapeRegExp=function(e){return(e=Mu(e))&&Ce.test(e)?e.replace(Te,"\\$&"):e},oi.every=function(e,t,n){var i=tu(e)?Ut:Ei;return n&&Ir(e,t,n)&&(t=r),i(e,_r(t,3))},oi.find=Ol,oi.findIndex=el,oi.findKey=function(e,t){return Gt(e,_r(t,3),ji)},oi.findLast=Sl,oi.findLastIndex=tl,oi.findLastKey=function(e,t){return Gt(e,_r(t,3),Li)},oi.floor=Ia,oi.forEach=Ml,oi.forEachRight=El,oi.forIn=function(e,t){return null==e?e:Di(e,_r(t,3),Hu)},oi.forInRight=function(e,t){return null==e?e:Ni(e,_r(t,3),Hu)},oi.forOwn=function(e,t){return e&&ji(e,_r(t,3))},oi.forOwnRight=function(e,t){return e&&Li(e,_r(t,3))},oi.get=Lu,oi.gt=Zl,oi.gte=Xl,oi.has=function(e,t){return null!=e&&Sr(e,t,Hi)},oi.hasIn=Uu,oi.head=il,oi.identity=ha,oi.includes=function(e,t,n,i){e=iu(e)?e:Ju(e),n=n&&!i?Cu(n):0;var o=e.length;return n<0&&(n=jn(o+n,0)),vu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Qt(e,t,n)>-1},oi.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=null==n?0:Cu(n);return o<0&&(o=jn(i+o,0)),Qt(e,t,o)},oi.inRange=function(e,t,n){return t=Tu(t),n===r?(n=t,t=0):n=Tu(n),function(e,t,n){return e>=Ln(t,n)&&e=-O&&e<=O},oi.isSet=gu,oi.isString=vu,oi.isSymbol=bu,oi.isTypedArray=ku,oi.isUndefined=function(e){return e===r},oi.isWeakMap=function(e){return pu(e)&&Or(e)==X},oi.isWeakSet=function(e){return pu(e)&&"[object WeakSet]"==Ki(e)},oi.join=function(e,t){return null==e?"":Dn.call(e,t)},oi.kebabCase=ta,oi.last=ul,oi.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=Cu(n))<0?jn(i+o,0):Ln(o,i-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,o):Yt(e,Zt,o,!0)},oi.lowerCase=na,oi.lowerFirst=ia,oi.lt=_u,oi.lte=wu,oi.max=function(e){return e&&e.length?Pi(e,ha,Bi):r},oi.maxBy=function(e,t){return e&&e.length?Pi(e,_r(t,2),Bi):r},oi.mean=function(e){return Xt(e,ha)},oi.meanBy=function(e,t){return Xt(e,_r(t,2))},oi.min=function(e){return e&&e.length?Pi(e,ha,Xi):r},oi.minBy=function(e,t){return e&&e.length?Pi(e,_r(t,2),Xi):r},oi.stubArray=xa,oi.stubFalse=Oa,oi.stubObject=function(){return{}},oi.stubString=function(){return""},oi.stubTrue=function(){return!0},oi.multiply=Ra,oi.nth=function(e,t){return e&&e.length?oo(e,Cu(t)):r},oi.noConflict=function(){return At._===this&&(At._=lt),this},oi.noop=ba,oi.now=Ll,oi.pad=function(e,t,n){e=Mu(e);var i=(t=Cu(t))?_n(e):0;if(!t||i>=t)return e;var o=(t-i)/2;return ir(En(o),n)+e+ir(Mn(o),n)},oi.padEnd=function(e,t,n){e=Mu(e);var i=(t=Cu(t))?_n(e):0;return t&&it){var i=e;e=t,t=i}if(n||e%1||t%1){var o=Fn();return Ln(e+o*(t-e+bt("1e-"+((o+"").length-1))),t)}return so(e,t)},oi.reduce=function(e,t,n){var i=tu(e)?Wt:nn,o=arguments.length<3;return i(e,_r(t,4),n,o,Si)},oi.reduceRight=function(e,t,n){var i=tu(e)?zt:nn,o=arguments.length<3;return i(e,_r(t,4),n,o,Mi)},oi.repeat=function(e,t,n){return t=(n?Ir(e,t,n):t===r)?1:Cu(t),co(Mu(e),t)},oi.replace=function(){var e=arguments,t=Mu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},oi.result=function(e,t,n){var i=-1,o=(t=Io(t,e)).length;for(o||(o=1,e=r);++iO)return[];var n=E,i=Ln(e,E);t=_r(t),e-=E;for(var o=rn(i,t);++n=l)return e;var a=n-_n(i);if(a<1)return i;var s=u?Do(u,0,a).join(""):e.slice(0,a);if(o===r)return s+i;if(u&&(a+=s.length-a),mu(o)){if(e.slice(a).search(o)){var c,d=s;for(o.global||(o=Ge(o.source,Mu(Ne.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var p=c.index;s=s.slice(0,p===r?a:p)}}else if(e.indexOf(wo(o),a)!=a){var f=s.lastIndexOf(o);f>-1&&(s=s.slice(0,f))}return s+i},oi.unescape=function(e){return(e=Mu(e))&&me.test(e)?e.replace(he,An):e},oi.uniqueId=function(e){var t=++nt;return Mu(e)+t},oi.upperCase=la,oi.upperFirst=ua,oi.each=Ml,oi.eachRight=El,oi.first=il,va(oi,(Sa={},ji(oi,function(e,t){tt.call(oi.prototype,t)||(Sa[t]=e)}),Sa),{chain:!1}),oi.VERSION="4.17.5",Lt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){oi[e].placeholder=oi}),Lt(["drop","take"],function(e,t){ai.prototype[e]=function(n){n=n===r?1:jn(Cu(n),0);var i=this.__filtered__&&!t?new ai(this):this.clone();return i.__filtered__?i.__takeCount__=Ln(n,i.__takeCount__):i.__views__.push({size:Ln(n,E),type:e+(i.__dir__<0?"Right":"")}),i},ai.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Lt(["filter","map","takeWhile"],function(e,t){var n=t+1,i=1==n||3==n;ai.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:_r(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}}),Lt(["head","last"],function(e,t){var n="take"+(t?"Right":"");ai.prototype[e]=function(){return this[n](1).value()[0]}}),Lt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ai.prototype[e]=function(){return this.__filtered__?new ai(this):this[n](1)}}),ai.prototype.compact=function(){return this.filter(ha)},ai.prototype.find=function(e){return this.filter(e).head()},ai.prototype.findLast=function(e){return this.reverse().find(e)},ai.prototype.invokeMap=po(function(e,t){return"function"==typeof e?new ai(this):this.map(function(n){return $i(n,e,t)})}),ai.prototype.reject=function(e){return this.filter($l(_r(e)))},ai.prototype.slice=function(e,t){e=Cu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ai(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=Cu(t))<0?n.dropRight(-t):n.take(t-e)),n)},ai.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ai.prototype.toArray=function(){return this.take(E)},ji(ai.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=oi[i?"take"+("last"==t?"Right":""):t],l=i||/^find/.test(t);o&&(oi.prototype[t]=function(){var t=this.__wrapped__,u=i?[1]:arguments,a=t instanceof ai,s=u[0],c=a||tu(t),d=function(e){var t=o.apply(oi,Ht([e],u));return i&&p?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(a=c=!1);var p=this.__chain__,f=l&&!p,h=a&&!this.__actions__.length;if(!l&&c){t=h?t:new ai(this);var y=e.apply(t,u);return y.__actions__.push({func:Tl,args:[d],thisArg:r}),new ui(y,p)}return f&&h?e.apply(this,u):(y=this.thru(d),f?i?y.value()[0]:y.value():y)})}),Lt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);oi.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var o=this.value();return t.apply(tu(o)?o:[],e)}return this[n](function(n){return t.apply(tu(n)?n:[],e)})}}),ji(ai.prototype,function(e,t){var n=oi[t];if(n){var i=n.name+"";(Yn[i]||(Yn[i]=[])).push({name:t,func:n})}}),Yn[Xo(r,y).name]=[{name:"wrapper",func:r}],ai.prototype.clone=function(){var e=new ai(this.__wrapped__);return e.__actions__=Bo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Bo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Bo(this.__views__),e},ai.prototype.reverse=function(){if(this.__filtered__){var e=new ai(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ai.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=tu(e),i=t<0,o=n?e.length:0,r=function(e,t,n){for(var i=-1,o=n.length;++i=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},oi.prototype.plant=function(e){for(var t,n=this;n instanceof li;){var i=Qr(n);i.__index__=0,i.__values__=r,t?o.__wrapped__=i:t=i;var o=i;n=n.__wrapped__}return o.__wrapped__=e,t},oi.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ai){var t=e;return this.__actions__.length&&(t=new ai(this)),(t=t.reverse()).__actions__.push({func:Tl,args:[dl],thisArg:r}),new ui(t,this.__chain__)}return this.thru(dl)},oi.prototype.toJSON=oi.prototype.valueOf=oi.prototype.value=function(){return Oo(this.__wrapped__,this.__actions__)},oi.prototype.first=oi.prototype.head,qt&&(oi.prototype[qt]=function(){return this}),oi}();At._=Tn,(o=(function(){return Tn}).call(t,n,t,i))===r||(i.exports=o)}).call(this)}).call(t,n("DuR2"),n("3IRH")(e))},M5jZ:function(e,t,n){"use strict";var i=n("JzlZ");t.skip=function(e){return i.skip(e)(this)}},"MEr+":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS"),r=n("CGGv");t.debounceTime=function(e,t){return void 0===t&&(t=r.async),function(n){return n.lift(new l(e,t))}};var l=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.dueTime,this.scheduler))},e}(),u=function(e){function t(t,n,i){e.call(this,t),this.dueTime=n,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return i(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(a,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(o.Subscriber);function a(e){e.debouncedNext()}},MQMf:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("EEr4"),r=n("RA5l"),l=n("B00U"),u=n("ODby"),a=n("IZVw"),s=n("ZJf8");t.ReplaySubject=function(e){function t(t,n,i){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY),e.call(this),this.scheduler=i,this._events=[],this._bufferSize=t<1?1:t,this._windowTime=n<1?1:n}return i(t,e),t.prototype.next=function(t){var n=this._getNow();this._events.push(new c(n,t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._trimBufferThenGetEvents(),i=this.scheduler;if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError?t=l.Subscription.EMPTY:this.isStopped?t=l.Subscription.EMPTY:(this.observers.push(e),t=new s.SubjectSubscription(this,e)),i&&e.add(e=new u.ObserveOnSubscriber(e,i));for(var o=n.length,r=0;rt&&(r=Math.max(r,o-t)),r>0&&i.splice(0,r),i},t}(o.Subject);var c=function(e,t){this.time=e,this.value=t}},MkTX:function(e,t,n){"use strict";var i=n("xgwM").__extends,o=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,u,a=n("CmJd"),s=n("4KnF");!function(e){e[e.mod=0]="mod",e[e.fn=1]="fn",e[e.mouse=2]="mouse"}(l=t.LayerName||(t.LayerName={})),function(e){e.holdAndDoubleTapToggle="holdAndDoubleTapToggle",e.toggle="toggle",e.hold="hold"}(u=t.SwitchLayerMode||(t.SwitchLayerMode={})),t.mapSwitchLayerModeToNumber=function(e){switch(e){case u.holdAndDoubleTapToggle:return 0;case u.toggle:return 1;case u.hold:return 2;default:throw new Error("Can not map "+e+" to number")}},t.mapNumberToSwitchLayerMode=function(e){switch(e){case 0:return u.holdAndDoubleTapToggle;case 1:return u.toggle;case 2:return u.hold;default:throw new Error('Can not map "'+e+'" to SwitchLayerMode')}},t.SwitchLayerAction=function(e){function n(t){var n=e.call(this)||this;return t?(n.switchLayerMode=t.switchLayerMode,n.layer=t.layer,n):n}return i(n,e),n.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.layer=l[e.layer],this.switchLayerMode="boolean"==typeof e.toggle?e.toggle?u.toggle:u.holdAndDoubleTapToggle:e.switchLayerMode,this},n.prototype.fromBinary=function(e){return this.readAndAssertKeyActionId(e),this.layer=e.readUInt8(),this.switchLayerMode=t.mapNumberToSwitchLayerMode(e.readUInt8()),this},n.prototype.toJsonObject=function(){return{keyActionType:s.keyActionType.SwitchLayerAction,layer:l[this.layer],switchLayerMode:this.switchLayerMode}},n.prototype.toBinary=function(e){e.writeUInt8(s.KeyActionId.SwitchLayerAction),e.writeUInt8(this.layer),e.writeUInt8(t.mapSwitchLayerModeToNumber(this.switchLayerMode))},n.prototype.toString=function(){return''},n.prototype.getName=function(){return"SwitchLayerAction"},o([a.assertEnum(u),r("design:type",String)],n.prototype,"switchLayerMode",void 0),o([a.assertEnum(l),r("design:type",Number)],n.prototype,"layer",void 0),n}(s.KeyAction)},MptX:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i={showButton:!1,text:null,showProgress:!1}},NSzm:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var i=n("TToO"),o=n("8AXl"),r=n("rCTf"),l=n("DzMp"),u=(n.n(l),n("lDdF")),a=(n.n(u),n("+pb+")),s=(n.n(a),n("uCY4")),c=(n.n(s),n("/lY3")),d=(n.n(c),n("fiy1")),p=(n.n(d),n("HcJ8")),f=(n.n(p),n("1APj")),h=(n.n(f),n("AGQa")),y=(n.n(h),n("gI3A")),m=(n.n(y),n("at4H")),g=n("9EfN"),v=n("WP8/"),b=n("Ji5S"),k=n("fYQU"),_=function(){function t(t,n,i,o,a,s,c){var d=this;this.actions$=t,this.dataStorageRepository=n,this.store=i,this.defaultUserConfigurationService=o,this.deviceRendererService=a,this.logService=s,this.router=c,this.loadUserConfig$=Object(l.defer)(function(){return r.Observable.of(new m.f(d.getUserConfiguration()))}),this.saveUserConfig$=this.actions$.ofType(v.a.ADD,v.a.DUPLICATE,v.a.EDIT_NAME,v.a.EDIT_ABBR,v.a.SET_DEFAULT,v.a.REMOVE,v.a.SAVE_KEY,v.a.EDIT_DESCRIPTION,v.b.ADD,v.b.DUPLICATE,v.b.EDIT_NAME,v.b.REMOVE,v.b.ADD_ACTION,v.b.SAVE_ACTION,v.b.DELETE_ACTION,v.b.REORDER_ACTION,m.a.RENAME_USER_CONFIGURATION,m.a.SET_USER_CONFIGURATION_VALUE).withLatestFrom(this.store.select(g.v),this.store.select(g.p)).mergeMap(function(e){var t=e[0],n=e[1],i=e[2];if(n.recalculateConfigurationLength(),d.dataStorageRepository.saveConfig(n),t.type===v.a.REMOVE||t.type===v.b.REMOVE){var o=t.type===v.a.REMOVE?"Keymap":"Macro",r={path:"/"+(t.type===v.a.REMOVE?"keymap":"macro")+"/"+t.payload,config:i.toJsonObject()};return[new m.k(n),new b.l({type:y.NotificationType.Undoable,message:o+" has been deleted",extra:{payload:r,type:v.a.UNDO_LAST_ACTION}}),new k.r]}return[new m.k(n),new b.d,new k.r]}),this.undoUserConfig$=this.actions$.ofType(v.a.UNDO_LAST_ACTION).map(function(e){return e.payload}).mergeMap(function(e){var t=(new y.UserConfiguration).fromJsonObject(e.config);return d.dataStorageRepository.saveConfig(t),d.router.navigate([e.path]),[new m.f(t)]}),this.loadConfigFromDevice$=this.actions$.ofType(m.a.LOAD_CONFIG_FROM_DEVICE).do(function(){return d.deviceRendererService.loadConfigurationFromKeyboard()}),this.loadConfigFromDeviceReply$=this.actions$.ofType(m.a.LOAD_CONFIG_FROM_DEVICE_REPLY).withLatestFrom(this.store.select(g.r)).mergeMap(function(e){var t=e[1],n=e[0].payload;if(!n.success)return[new b.l({type:y.NotificationType.Error,message:n.error})];var i,o=[];try{var r=Object(y.getUserConfigFromDeviceResponse)(n.userConfiguration);o.push(new m.f(r)),t.state&&!t.state.url.startsWith("/device/firmware")&&(i=["/"])}catch(e){d.logService.error("Eeprom user-config parse error:",e),r=(new y.UserConfiguration).fromJsonObject(n.backupConfiguration),o.push(new k.e(!!n.backupConfiguration)),o.push(new m.f(r)),i=["/device/restore-user-configuration"]}try{var l=Object(y.getHardwareConfigFromDeviceResponse)(n.hardwareConfiguration);o.push(new b.g(l))}catch(e){d.logService.error("Eeprom hardware-config parse error:",e),o.push(new b.l({type:y.NotificationType.Error,message:e}))}return o.push(new k.d(n.modules)),i&&d.router.navigate(i),o}),this.saveUserConfigInJsonFile$=this.actions$.ofType(m.a.SAVE_USER_CONFIG_IN_JSON_FILE).withLatestFrom(this.store.select(g.v)).do(function(e){var t=JSON.stringify(e[1].toJsonObject(),null,2),n=new Blob([t],{type:"text/plain"});Object(u.saveAs)(n,"UserConfiguration.json")}),this.saveUserConfigInBinFile$=this.actions$.ofType(m.a.SAVE_USER_CONFIG_IN_BIN_FILE).withLatestFrom(this.store.select(g.v)).do(function(e){var t=e[1],n=new y.UhkBuffer;t.toBinary(n);var i=new Blob([n.getBufferContent()]);Object(u.saveAs)(i,"UserConfiguration.bin")}),this.loadUserConfigurationFromFile$=this.actions$.ofType(m.a.LOAD_USER_CONFIGURATION_FROM_FILE).map(function(e){return e.payload}).map(function(t){try{var n=new y.UserConfiguration;if(t.filename.endsWith(".bin"))n.fromBinary(y.UhkBuffer.fromArray(t.data));else{var i=new e(t.data).toString();n.fromJsonObject(JSON.parse(i))}return n.userConfigMajorVersion?new m.b(n):new b.l({type:y.NotificationType.Error,message:"Invalid configuration specified."})}catch(e){return new b.l({type:y.NotificationType.Error,message:"Invalid configuration specified."})}})}return t.prototype.getUserConfiguration=function(){var e,t=this.dataStorageRepository.getConfig();return t&&t.userConfigMajorVersion===this.defaultUserConfigurationService.getDefault().userConfigMajorVersion&&(e=(new y.UserConfiguration).fromJsonObject(t)),e||(e=this.defaultUserConfigurationService.getDefault()),e},Object(i.__decorate)([Object(o.b)(),Object(i.__metadata)("design:type",r.Observable)],t.prototype,"loadUserConfig$",void 0),Object(i.__decorate)([Object(o.b)(),Object(i.__metadata)("design:type",r.Observable)],t.prototype,"saveUserConfig$",void 0),Object(i.__decorate)([Object(o.b)(),Object(i.__metadata)("design:type",r.Observable)],t.prototype,"undoUserConfig$",void 0),Object(i.__decorate)([Object(o.b)({dispatch:!1}),Object(i.__metadata)("design:type",Object)],t.prototype,"loadConfigFromDevice$",void 0),Object(i.__decorate)([Object(o.b)(),Object(i.__metadata)("design:type",Object)],t.prototype,"loadConfigFromDeviceReply$",void 0),Object(i.__decorate)([Object(o.b)({dispatch:!1}),Object(i.__metadata)("design:type",Object)],t.prototype,"saveUserConfigInJsonFile$",void 0),Object(i.__decorate)([Object(o.b)({dispatch:!1}),Object(i.__metadata)("design:type",Object)],t.prototype,"saveUserConfigInBinFile$",void 0),Object(i.__decorate)([Object(o.b)(),Object(i.__metadata)("design:type",Object)],t.prototype,"loadUserConfigurationFromFile$",void 0),t}()}).call(t,n("63KW").Buffer)},Nkju:function(e,t){e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},ODby:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS"),r=n("8GmM");t.observeOn=function(e,t){return void 0===t&&(t=0),function(n){return n.lift(new l(e,t))}};var l=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.scheduler,this.delay))},e}();t.ObserveOnOperator=l;var u=function(e){function t(t,n,i){void 0===i&&(i=0),e.call(this,t),this.scheduler=n,this.delay=i}return i(t,e),t.dispatch=function(e){e.notification.observe(e.destination),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.add(this.scheduler.schedule(t.dispatch,this.delay,new a(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(r.Notification.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(r.Notification.createError(e))},t.prototype._complete=function(){this.scheduleMessage(r.Notification.createComplete())},t}(o.Subscriber);t.ObserveOnSubscriber=u;var a=function(e,t){this.notification=e,this.destination=t};t.ObserveOnMessage=a},OE0E:function(e,t,n){"use strict";n.d(t,"a",function(){return Fe}),n.d(t,"j",function(){return Ue}),n.d(t,"h",function(){return v}),n.d(t,"i",function(){return w}),n.d(t,"b",function(){return y}),n.d(t,"d",function(){return M}),n.d(t,"e",function(){return E}),n.d(t,"f",function(){return ne}),n.d(t,"g",function(){return ie}),n.d(t,"c",function(){return Me}),n.d(t,"s",function(){return u}),n.d(t,"l",function(){return F}),n.d(t,"k",function(){return ee}),n.d(t,"n",function(){return oe}),n.d(t,"o",function(){return ue}),n.d(t,"m",function(){return R}),n.d(t,"p",function(){return I}),n.d(t,"q",function(){return Ve}),n.d(t,"t",function(){return S}),n.d(t,"r",function(){return Ee});var i=n("Xjw4"),o=n("WT6e"),r=n("TToO"),l=null;function u(){return l}var a,s={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},c={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},d={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};o["\u0275global"].Node&&(a=o["\u0275global"].Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))});var p,f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,l||(l=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var i;(i=e)[t].apply(i,n)},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return s},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return a.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),i=0;i0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,i=0;i0;u||(u=e[l]=[]);var s=Z(t)?Zone.root:Zone.current;if(0===u.length)u.push({zone:s,handler:r});else{for(var c=!1,d=0;d-1},t}(P),re=["alt","control","meta","shift"],le={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},ue=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,i){var o=t.parseEventName(n),r=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return u().onAndCancel(e,o.domEventName,r)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;var o=t._normalizeKey(n.pop()),r="";if(re.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r+=e+".")}),r+=o,0!=n.length||0===o.length)return null;var l={};return l.domEventName=i,l.fullKey=r,l},t.getEventFullKey=function(e){var t="",n=u().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),re.forEach(function(i){i!=n&&(0,le[i])(e)&&(t+=i+".")}),t+=n},t.eventCallback=function(e,n,i){return function(o){t.getEventFullKey(o)===e&&i.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(P),ae=function(){function e(e,t){this.defaultDoc=e,this.DOM=t;var n=this.DOM.createHtmlDocument();if(this.inertBodyElement=n.body,null==this.inertBodyElement){var i=this.DOM.createElement("html",n);this.inertBodyElement=this.DOM.createElement("body",n),this.DOM.appendChild(i,this.inertBodyElement),this.DOM.appendChild(n,i)}this.DOM.setInnerHTML(this.inertBodyElement,''),!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.DOM.setInnerHTML(this.inertBodyElement,'

'),this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(e){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(null);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(e){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.DOM.createElement("template");return"content"in t?(this.DOM.setInnerHTML(t,e),t):(this.DOM.setInnerHTML(this.inertBodyElement,e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){var t=this;this.DOM.attributeMap(e).forEach(function(n,i){"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||t.DOM.removeAttribute(e,i)});for(var n=0,i=this.DOM.childNodesAsList(e);n")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=this.DOM.nodeName(e).toLowerCase();be.hasOwnProperty(t)&&!ye.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(xe(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&this.DOM.contains(e,t))throw new Error("Failed to sanitize html because the element is clobbered: "+this.DOM.getOuterHTML(e));return t},e}(),Te=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ce=/([^\#-~ |!])/g;function xe(e){return e.replace(/&/g,"&").replace(Te,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ce,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Oe=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Se=/^url\(([^)]+)\)$/,Me=function(){},Ee=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(r.__extends)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case o.SecurityContext.NONE:return t;case o.SecurityContext.HTML:return t instanceof Ie?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=u(),i=null;try{he=he||new ae(e,n);var r=t?String(t):"";i=he.getInertBodyElement(r);var l=5,a=r;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,r=a,a=n.getInnerHTML(i),i=he.getInertBodyElement(r)}while(r!==a);var s=new Ae,c=s.sanitizeChildren(n.getTemplateContent(i)||i);return Object(o.isDevMode)()&&s.sanitizedSomething&&n.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),c}finally{if(i)for(var d=n.getTemplateContent(i)||i,p=0,f=n.childNodesAsList(d);p=8.9.1 <9.0.0",npm:">=5.6.0 <6.0.0"},devDependencies:{"@types/electron-devtools-installer":"2.0.2","@types/electron-settings":"3.0.0","@types/fs-extra":"5.0.1","@types/jasmine":"2.8.8","@types/jquery":"3.3.1","@types/jsonfile":"4.0.1","@types/lodash-es":"4.17.0","@types/node":"8.0.53","@types/node-hid":"0.5.2","@types/request":"2.0.8","@types/usb":"1.1.3",autoprefixer:"6.5.3",buffer:"5.0.6","check-node-version":"^3.2.0","copy-webpack-plugin":"4.0.1",copyfiles:"^2.0.0","core-js":"2.4.1","cross-env":"5.0.5",decompress:"4.2.0","decompress-tarbz2":"4.1.1",devtron:"1.4.0",electron:"1.8.7","electron-builder":"20.8.1","electron-debug":"1.5.0","electron-devtools-installer":"2.2.3","electron-log":"2.2.16","electron-rebuild":"1.8.2","electron-settings":"3.1.4","electron-updater":"2.21.4","exports-loader":"0.6.3","file-loader":"0.10.0","fs-extra":"5.0.0","gh-pages":"1.1.0",jasmine:"2.8.0","jasmine-core":"2.8.0","jasmine-node":"2.0.1","jasmine-ts":"0.2.1",jsonfile:"4.0.0",lerna:"3.1.4","lodash-es":"4.17.4",mkdirp:"0.5.1","node-hid":"0.5.7","npm-run-all":"4.0.2","pre-commit":"1.2.2",request:"2.88.0",rimraf:"2.6.1","standard-version":"4.2.0",stylelint:"9.5.0","svg-sprite":"1.4.0","ts-loader":"2.3.1","ts-node":"7.0.1",tslint:"5.9.1",typescript:"2.6.2",webpack:"3.12.0"},"pre-commit":["precommit-msg"],scripts:{postinstall:"lerna bootstrap","precommit-msg":"Git precommit hook is running... & exit 0",test:"run-p -sn test:test-serializer test:uhk-common","test:test-serializer":"lerna exec --scope test-serializer npm test","test:uhk-common":"lerna exec --scope uhk-common npm test","test:uhk-web":"lerna exec --scope uhk-web npm test",lint:"run-s -scn lint:ts lint:style","lint:ts":"run-p -sn lint:ts:electron-main lint:ts:electron-renderer lint:ts:web lint:ts:test-serializer lint:ts:uhk-usb","lint:ts:electron-main":"tslint --project ./packages/uhk-agent/tsconfig.json","lint:ts:electron-renderer":"tslint --project ./packages/uhk-web/src/tsconfig.renderer.json","lint:ts:web":"tslint --project ./packages/uhk-web/src/tsconfig.app.json","lint:ts:test-serializer":"tslint --project ./packages/test-serializer/tsconfig.json","lint:ts:uhk-usb":"tslint --project ./packages/uhk-usb/tsconfig.json","lint:style":'stylelint "packages/uhk-agent/src/**/*.scss" "packages/uhk-web/src/**/*.scss" --syntax scss',e2e:"lerna run e2e --scope uhk-web",prebuild:"check-node-version --package",build:"run-s build:common build:usb build:web build:electron","build:web":"lerna exec --scope uhk-web npm run build","build:electron":"cross-env AOT_BUILD=true run-s -sn build:electron:renderer build:electron:main","build:electron:main":"lerna exec --scope uhk-agent npm run build","build:electron:renderer":"lerna exec --scope uhk-web npm run build:renderer","build:common":"lerna exec --scope uhk-common npm run build","build:usb":"lerna exec --scope uhk-usb npm run build","server:web":"lerna exec --scope uhk-web npm start","server:electron":"lerna exec --scope uhk-web npm run server:renderer",electron:"lerna exec --scope uhk-agent npm start","electron:spe":"lerna exec --scope uhk-agent npm run electron:spe","standard-version":"standard-version",pack:"node ./scripts/release.js",sprites:"node ./scripts/generate-svg-sprites",release:"node ./scripts/release.js",clean:"lerna exec rimraf ./node_modules ./dist && rimraf ./node_modules ./dist","predeploy-gh-pages":"run-s build:web","deploy-gh-pages":"gh-pages -d packages/uhk-web/dist"},dependencies:{}}},Oz3Z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n("1Rl6");t.isScancodeExists=function(e){return i||function(){i=new Map;for(var e=0,t=o.SCANCODES;e=0}},PKvP:function(e,t,n){"use strict";var i=n("JkZN");t.from=i.FromObservable.create},PutI:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("cwzr");t.QueueAction=function(e){function t(t,n){e.call(this,t,n),this.scheduler=t,this.work=n}return i(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,i):t.flush(this)},t}(o.AsyncAction)},PvYY:function(e,t,n){"use strict";var i=n("rCTf"),o=n("0gHg");i.Observable.prototype.publishReplay=o.publishReplay},Q3m9:function(e,t,n){"use strict";var i=n("xgwM").__extends,o=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l=n("CmJd"),u=n("ao60");t.ScrollMouseMacroAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.x=t.x,n.y=t.y,n):n}return i(t,e),t.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.x=e.x,this.y=e.y,this},t.prototype.fromBinary=function(e){return this.readAndAssertMacroActionId(e),this.x=e.readInt16(),this.y=e.readInt16(),this},t.prototype.toJsonObject=function(){return{macroActionType:u.macroActionType.ScrollMouseMacroAction,x:this.x,y:this.y}},t.prototype.toBinary=function(e){e.writeUInt8(u.MacroActionId.ScrollMouseMacroAction),e.writeInt16(this.x),e.writeInt16(this.y)},t.prototype.toString=function(){return''},t.prototype.getName=function(){return"ScrollMouseMacroAction"},o([l.assertInt16,r("design:type",Number)],t.prototype,"x",void 0),o([l.assertInt16,r("design:type",Number)],t.prototype,"y",void 0),t}(u.MacroAction)},QqRK:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.InnerSubscriber=function(e){function t(t,n,i){e.call(this),this.parent=t,this.outerValue=n,this.outerIndex=i,this.index=0}return i(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(o.Subscriber)},R30b:function(e,t,n){"use strict";var i=n("xgwM").__decorate,o=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var r=n("CmJd"),l=n("jsdV");t.Macro=function(){function e(e){e&&(this.id=e.id,this.isLooped=e.isLooped,this.isPrivate=e.isPrivate,this.name=e.name,this.macroActions=e.macroActions.map(function(e){return l.Helper.createMacroAction(e)}))}return e.prototype.fromJsonObject=function(e){return this.isLooped=e.isLooped,this.isPrivate=e.isPrivate,this.name=e.name,this.macroActions=e.macroActions.map(function(e){return l.Helper.createMacroAction(e)}),this},e.prototype.fromBinary=function(e){this.isLooped=e.readBoolean(),this.isPrivate=e.readBoolean(),this.name=e.readString();var t=e.readCompactLength();this.macroActions=[];for(var n=0;n'},i([r.assertUInt8,o("design:type",Number)],e.prototype,"id",void 0),e}()},RA5l:function(e,t,n){"use strict";var i=n("PutI"),o=n("C0+T");t.queue=new o.QueueScheduler(i.QueueAction)},RRVv:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("rCTf");t.ScalarObservable=function(e){function t(t,n){e.call(this),this.value=t,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return i(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.value,n=e.subscriber;e.done?n.complete():(n.next(t),n.closed||(e.done=!0,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.value,i=this.scheduler;if(i)return i.schedule(t.dispatch,0,{done:!1,value:n,subscriber:e});e.next(n),e.closed||e.complete()},t}(o.Observable)},RU1a:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("wAkD"),r=n("CURp");t.takeUntil=function(e){return function(t){return t.lift(new l(e))}};var l=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.notifier))},e}(),u=function(e){function t(t,n){e.call(this,t),this.notifier=n,this.add(r.subscribeToResult(this,n))}return i(t,e),t.prototype.notifyNext=function(e,t,n,i,o){this.complete()},t.prototype.notifyComplete=function(){},t}(o.OuterSubscriber)},RZVO:function(e,t,n){(function(e,i){var o;!function(r,l){var u="object"==typeof e&&e&&e.exports==("object"==typeof t&&t)&&e,a="object"==typeof i&&i;a.global===a&&(r=a);var s=[],c={},d=0,p=c,f=30,h=r._,y=/&(?:amp|lt|gt|quot|#39);/g,m=/\b__p \+= '';/g,g=/\b(__p \+=) '' \+/g,v=/(__e\(.*?\)|\b__t\)) \+\n'';/g,b=/\w*$/,k=RegExp("^"+(c.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,w=/<%=([\s\S]+?)%>/g,A=/($^)/,T=/[&<>"']/g,C=/['\n\r\t\u2028\u2029\\]/g,x=0,O=Math.ceil,S=s.concat,M=Math.floor,E=k.test(E=Object.getPrototypeOf)&&E,P=c.hasOwnProperty,I=s.push,R=c.toString,D=k.test(D=be.bind)&&D,N=k.test(N=Array.isArray)&&N,j=r.isFinite,L=r.isNaN,U=k.test(U=Object.keys)&&U,V=Math.max,F=Math.min,K=Math.random,B="[object Arguments]",H="[object Array]",W="[object Boolean]",z="[object Date]",$="[object Number]",q="[object Object]",G="[object RegExp]",Y="[object String]",Q=!!r.attachEvent,J=D&&!/\n|true/.test(D+Q),Z=D&&!J,X=U&&(Q||J),ee={"[object Function]":!1};ee[B]=ee[H]=ee[W]=ee[z]=ee[$]=ee[q]=ee[G]=ee[Y]=!0;var te={};te[H]=Array,te[W]=Boolean,te[z]=Date,te[q]=Object,te[$]=Number,te[G]=RegExp,te[Y]=String;var ne={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1},ie={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"};function oe(e){return e&&"object"==typeof e&&e.__wrapped__?e:this instanceof oe?void(this.__wrapped__=e):new oe(e)}oe.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:w,variable:"",imports:{_:oe}};var re=function(e){var t="var index, iterable = "+e.firstArg+", result = iterable;\nif (!iterable) return result;\n"+e.top+";\n";return e.arrays&&(t+="var length = iterable.length; index = -1;\nif ("+e.arrays+") {\n while (++index < length) {\n "+e.loop+"\n }\n}\nelse { "),e.isKeysFast&&e.useHas?t+="\n var ownIndex = -1,\n ownProps = objectTypes[typeof iterable] ? nativeKeys(iterable) : [],\n length = ownProps.length;\n\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n "+e.loop+"\n } ":(t+="\n for (index in iterable) {",e.useHas&&(t+="\n if (",e.useHas&&(t+="hasOwnProperty.call(iterable, index)"),t+=") { "),t+=e.loop+"; ",e.useHas&&(t+="\n }"),t+="\n } "),e.arrays&&(t+="\n}"),t+(e.bottom+";\nreturn result")},le={args:"object, source, guard",top:"var args = arguments,\n argsIndex = 0,\n argsLength = typeof guard == 'number' ? 2 : args.length;\nwhile (++argsIndex < argsLength) {\n iterable = args[argsIndex];\n if (iterable && objectTypes[typeof iterable]) {",loop:"if (typeof result[index] == 'undefined') result[index] = iterable[index]",bottom:" }\n}"},ue={args:"collection, callback, thisArg",top:"callback = callback && typeof thisArg == 'undefined' ? callback : createCallback(callback, thisArg)",arrays:"typeof length == 'number'",loop:"if (callback(iterable[index], index, collection) === false) return result"},ae={top:"if (!objectTypes[typeof iterable]) return result;\n"+ue.top,arrays:!1};function se(e,t,n){t||(t=0);var i=e.length,o=i-t>=(n||f);if(o)for(var r={},l=t-1;++l-1}return et(e,n,t)>-1}}function ce(e){return e.charCodeAt(0)}function de(e,t){var n=e.index,i=t.index;if((e=e.criteria)!==(t=t.criteria)){if(e>t||"undefined"==typeof e)return 1;if(e":">",'"':""","'":"'"},Se=Re(Oe),Me=he(le,{top:le.top.replace(";",";\nif (argsLength > 3 && typeof args[argsLength - 2] == 'function') {\n var callback = createCallback(args[--argsLength - 1], args[argsLength--], 2);\n} else if (argsLength > 2 && typeof args[argsLength - 1] == 'function') {\n callback = args[--argsLength];\n}"),loop:"result[index] = callback ? callback(result[index], iterable[index]) : iterable[index]"});function Ee(e,t,n,i,o,r){var u=e;if("function"==typeof t&&(i=n,n=t,t=!1),"function"==typeof n){n="undefined"==typeof i?n:fe(n,i,1);var a="undefined"!=typeof(u=n(u));a||(u=e)}var s=je(u);if(s){var c=R.call(u);if(!ee[c])return u;var d=Te(u)}if(!s||!t)return s&&!a?d?be(u):Me({},u):u;var p=te[c];switch(c){case W:case z:return a?u:new p(+u);case $:case Y:return a?u:new p(u);case G:return a?u:p(u.source,b.exec(u))}o||(o=[]),r||(r=[]);for(var f=o.length;f--;)if(o[f]==e)return r[f];return a||(u=d?p(u.length):{},d&&(P.call(e,"index")&&(u.index=e.index),P.call(e,"input")&&(u.input=e.input))),o.push(e),r.push(u),(d?ze:Ae)(a?u:e,function(e,i){u[i]=Ee(e,t,n,l,o,r)}),u}var Pe=he(le);function Ie(e){var t=[];return we(e,function(e,n){Ne(e)&&t.push(n)}),t.sort()}function Re(e){for(var t=-1,n=Ce(e),i=n.length,o={};++t-1}),u}function Ne(e){return"function"==typeof e}function je(e){return!!e&&ne[typeof e]}function Le(e){return"number"==typeof e||R.call(e)==$}Ne(/x/)&&(Ne=function(e){return e instanceof Function||"[object Function]"==R.call(e)});var Ue=E?function(e){if(!e||"object"!=typeof e)return!1;var t=e.valueOf,n="function"==typeof t&&(n=E(t))&&E(n);return n?e==n||E(e)==n&&!_e(e):xe(e)}:xe;function Ve(e){return"string"==typeof e||R.call(e)==Y}function Fe(e){for(var t=-1,n=Ce(e),i=n.length,o=Array(i);++t-1:ye(e,function(e){if(++i>=n)return!(r=e===t)}),r}function Be(e,t,n){var i=!0;if(t=fe(t,n),Te(e))for(var o=-1,r=e.length;++oo&&(o=u)}else t=!t&&Ve(e)?ce:fe(t,n),ye(e,function(e,n,r){var l=t(e,n,r);l>i&&(i=l,o=e)});return o}var Ge=$e;function Ye(e,t,n,i){var o=arguments.length<3;if(t=fe(t,i,4),Te(e)){var r=-1,l=e.length;for(o&&(n=e[++r]);++r>>1;n(e[l])=75;if(a)var s={};for(n&&(u=[],n=fe(n,i));++o2?D.call.apply(D,arguments):pe(e,t,be(arguments,2))}function rt(e){var t=be(arguments,1);return setTimeout(function(){e.apply(l,t)},1)}function lt(e){return e}function ut(e){ze(Ie(e),function(t){var n=oe[t]=e[t];oe.prototype[t]=function(){var e=[this.__wrapped__];return I.apply(e,arguments),new oe(n.apply(oe,e))}})}function at(){return this.__wrapped__}J&&u&&"function"==typeof setImmediate&&(rt=ot(setImmediate,r)),oe.after=function(e,t){return e<1?t():function(){if(--e<1)return t.apply(this,arguments)}},oe.assign=Me,oe.at=function(e){for(var t=-1,n=S.apply(s,be(arguments,1)),i=n.length,o=Array(i);++t1?0:(t=Ie(e),-1),i=t.length;++n=100,u=[],a=u;e:for(;++o3&&"function"==typeof o[l-2]?u=fe(o[--l-1],o[l--],2):l>2&&"function"==typeof o[l-1]&&(u=o[--l]);for(;++r'},t.prototype.getName=function(){return"DelayMacroAction"},o([l.assertUInt16,r("design:type",Number)],t.prototype,"delay",void 0),t}(u.MacroAction)},TToO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__extends=function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"__assign",function(){return o}),t.__rest=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o=0;u--)(o=e[u])&&(l=(r<3?o(l):r>3?o(t,n,l):o(t,n))||l);return r>3&&l&&Object.defineProperty(t,n,l),l},t.__param=function(e,t){return function(n,i){t(n,i,e)}},t.__metadata=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},t.__awaiter=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function l(e){try{a(i.next(e))}catch(e){r(e)}}function u(e){try{a(i.throw(e))}catch(e){r(e)}}function a(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(l,u)}a((i=i.apply(e,t||[])).next())})},t.__generator=function(e,t){var n,i,o,r,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function u(r){return function(u){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,i=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]1||a(e,t)})})}function a(e,t){try{(n=o[e](t)).value instanceof u?Promise.resolve(n.value.v).then(s,c):d(r[0][2],n)}catch(e){d(r[0][3],e)}var n}function s(e){a("next",e)}function c(e){a("throw",e)}function d(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}},t.__asyncDelegator=function(e){var t,n;return t={},i("next"),i("throw",function(e){throw e}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,o){e[i]&&(t[i]=function(t){return(n=!n)?{value:u(e[i](t)),done:"return"===i}:o?o(t):t})}},t.__asyncValues=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):"function"==typeof r?r(e):e[Symbol.iterator]()},t.__makeTemplateObject=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},t.__importStar=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},t.__importDefault=function(e){return e&&e.__esModule?e:{default:e}};var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)l.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return l}function u(e){return this instanceof u?(this.v=e,this):new u(e)}},TfWX:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("EEr4"),r=n("IZVw");t.BehaviorSubject=function(e){function t(t){e.call(this),this._value=t}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.ObjectUnsubscribedError;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(o.Subject)},TyHZ:function(e,t){e.exports={isDefault:!1,abbreviation:"EMY",name:"Empty keymap",description:"None of the keys are bind to any key action. It is ideal if you want to start creating your keymap from the ground up.",layers:[{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]}]}},U15Z:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("VOfZ"),r=n("rCTf"),l=n("cdmN");t.IteratorObservable=function(e){function t(t,n){if(e.call(this),this.scheduler=n,null==t)throw new Error("iterator cannot be null.");this.iterator=function(e){var t=e[l.iterator];if(!t&&"string"==typeof e)return new u(e);if(!t&&void 0!==e.length)return new a(e);if(!t)throw new TypeError("object is not iterable");return e[l.iterator]()}(t)}return i(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.index,n=e.iterator,i=e.subscriber;if(e.hasError)i.error(e.error);else{var o=n.next();o.done?i.complete():(i.next(o.value),e.index=t+1,i.closed?"function"==typeof n.return&&n.return():this.schedule(e))}},t.prototype._subscribe=function(e){var n=this.iterator,i=this.scheduler;if(i)return i.schedule(t.dispatch,0,{index:0,iterator:n,subscriber:e});for(;;){var o=n.next();if(o.done){e.complete();break}if(e.next(o.value),e.closed){"function"==typeof n.return&&n.return();break}}},t}(r.Observable);var u=function(){function e(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length),this.str=e,this.idx=t,this.len=n}return e.prototype[l.iterator]=function(){return this},e.prototype.next=function(){return this.idxs?s:r:r}()),this.arr=e,this.idx=t,this.len=n}return e.prototype[l.iterator]=function(){return this},e.prototype.next=function(){return this.idx=2&&(n=!0),function(i){return i.lift(new r(e,t,n))}};var r=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.accumulator,this.seed,this.hasSeed))},e}(),l=function(e){function t(t,n,i,o){e.call(this,t),this.accumulator=n,this._seed=i,this.hasSeed=o,this.index=0}return i(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(o.Subscriber)},Uqr9:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.pairwise=function(){return function(e){return e.lift(new r)}};var r=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new l(e))},e}(),l=function(e){function t(t){e.call(this,t),this.hasPrev=!1}return i(t,e),t.prototype._next=function(e){this.hasPrev?this.destination.next([this.prev,e]):this.hasPrev=!0,this.prev=e},t}(o.Subscriber)},UwVZ:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS"),r=n("8Z8y"),l=n("jBEF");t.takeLast=function(e){return function(t){return 0===e?new l.EmptyObservable:t.lift(new u(e))}};var u=function(){function e(e){if(this.total=e,this.total<0)throw new r.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.total))},e}(),a=function(e){function t(t,n){e.call(this,t),this.total=n,this.ring=new Array,this.count=0}return i(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,o=0;o'},e.prototype.getKeymap=function(e){return this.keymaps.find(function(t){return e===t.abbreviation})},e.prototype.getMacro=function(e){return this.macros.find(function(t){return e===t.id})},e.prototype.recalculateConfigurationLength=function(){var e=new l.UhkBuffer;this.toBinary(e),this.userConfigurationLength=e.offset},e.prototype.setDefaultDeviceName=function(){this.deviceName&&0!==this.deviceName.trim().length||(this.deviceName="My UHK")},i([r.assertUInt16,o("design:type",Number)],e.prototype,"userConfigMajorVersion",void 0),i([r.assertUInt16,o("design:type",Number)],e.prototype,"userConfigMinorVersion",void 0),i([r.assertUInt16,o("design:type",Number)],e.prototype,"userConfigPatchVersion",void 0),i([r.assertUInt16,o("design:type",Number)],e.prototype,"userConfigurationLength",void 0),i([r.assertUInt16,o("design:type",Number)],e.prototype,"doubleTapSwitchLayerTimeout",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"iconsAndLayerTextsBrightness",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"alphanumericSegmentsBrightness",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"keyBacklightBrightness",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseMoveInitialSpeed",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseMoveAcceleration",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseMoveDeceleratedSpeed",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseMoveBaseSpeed",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseMoveAcceleratedSpeed",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseScrollInitialSpeed",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseScrollAcceleration",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseScrollDeceleratedSpeed",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseScrollBaseSpeed",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseScrollAcceleratedSpeed",void 0),e}()},W2nU:function(e,t){var n,i,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{i="function"==typeof clearTimeout?clearTimeout:l}catch(e){i=l}}();var a,s=[],c=!1,d=-1;function p(){c&&a&&(c=!1,a.length?s=a.concat(s):d=-1,s.length&&f())}function f(){if(!c){var e=u(p);c=!0;for(var t=s.length;t;){for(a=s,s=[];++d1)for(var n=1;n ");else if("object"==typeof t){var o=[];for(var r in t)if(t.hasOwnProperty(r)){var l=t[r];o.push(r+":"+("string"==typeof l?JSON.stringify(l):ee(l)))}i="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+i+"]: "+e.replace(ye,"\n ")}function ke(e,t){return new Error(be(e,t))}var _e="ngDebugContext",we="ngOriginalError",Ae="ngErrorLogger";function Te(e){return e[_e]}function Ce(e){return e[we]}function xe(e){for(var t=[],n=1;n1?" ("+function(e){for(var t=[],n=0;n-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(function(e){return ee(e.token)}).join(" -> ")+")":""}function Me(e,t,n,i){var o=[t],r=n(o),l=i?function(e,t){var n=r+" caused by: "+(t instanceof Error?t.message:t),i=Error(n);return i[we]=t,i}(0,i):Error(r);return l.addKey=Ee,l.keys=o,l.injectors=[e],l.constructResolvingMessage=n,l[we]=i,l}function Ee(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function Pe(e,t){for(var n=[],i=0,o=t.length;i=this._providers.length)throw function(e){return Error("Index "+e+" is out-of-bounds.")}(e);return this._providers[e]},e.prototype._new=function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw Me(this,e.key,function(e){return"Cannot instantiate cyclic dependency!"+Se(e)});return this._instantiateProvider(e)},e.prototype._getMaxNumberOfObjects=function(){return this.objs.length},e.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=new Array(e.resolvedFactories.length),n=0;n0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+ee(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function hn(e,t){return Array.isArray(t)?t.reduce(hn,e):Object(i.__assign)({},e,t)}var yn=function(){function e(e,t,n,i,u,a){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=u,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ln(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var c=new o.Observable(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),d=new o.Observable(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Ht.assertNotInAngularZone(),Z(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Ht.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(r.merge)(c,l.share.call(d))}return e.prototype.bootstrap=function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof kt?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof St?null:this._injector.get(Mt),r=n.create(ue.NULL,[],t||n.selector,o);r.onDestroy(function(){i._unloadComponent(r)});var l=r.injector.get(Qt,null);return l&&r.injector.get(Jt).registerApplication(r.location.nativeElement,l),this._loadComponent(r),ln()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,Vt(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;mn(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(dt,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),mn(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=Ut("ApplicationRef#tick()"),e}();function mn(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var gn=function(e,t,n,i,o,r){this.id=e,this.templateUrl=t,this.slotCount=n,this.encapsulation=i,this.styles=o,this.animations=r},vn=function(){},bn=function(){},kn=function(){},_n=function(){},wn=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),An=function(){},Tn=function(e){this.nativeElement=e},Cn=function(){},xn=new Map;function On(e,t){var n=xn.get(e);if(n)throw new Error("Duplicate module registered for "+e+" - "+n.moduleType.name+" vs "+t.moduleType.name);xn.set(e,t)}function Sn(e){var t=xn.get(e);if(!t)throw new Error("No module with ID "+e+" loaded");return t}var Mn=function(){function e(){this.dirty=!0,this._results=[],this.changes=new Bt,this.length=0}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[J()]=function(){return this._results[J()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var i=Array.isArray(n)?e(n):n;return t.concat(i)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),En=function(){},Pn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},In=function(){function e(e,t){this._compiler=e,this._config=t||Pn}return e.prototype.load=function(e){return this._compiler instanceof mt?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,i=e.split("#"),o=i[0],r=i[1];return void 0===r&&(r="default"),n("Jnfr")(o).then(function(e){return e[r]}).then(function(e){return Rn(e,o,r)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=e.split("#"),i=t[0],o=t[1],r="NgFactory";return void 0===o&&(o="default",r=""),n("Jnfr")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[o+r]}).then(function(e){return Rn(e,i,o)})},e}();function Rn(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var Dn=function(){},Nn=function(){},jn=function(){},Ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t}(jn),Un=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t}(Ln),Vn=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof Fn?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),Fn=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return Object(i.__extends)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,i=this,o=this.childNodes.indexOf(e);-1!==o&&((n=this.childNodes).splice.apply(n,[o+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=i}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return Bn(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return Hn(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Vn);function Kn(e){return e.map(function(e){return e.nativeElement})}function Bn(e,t,n){e.childNodes.forEach(function(e){e instanceof Fn&&(t(e)&&n.push(e),Bn(e,t,n))})}function Hn(e,t,n){e instanceof Fn&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof Fn&&Hn(e,t,n)})}var Wn=new Map;function zn(e){return Wn.get(e)||null}function $n(e){Wn.set(e.nativeNode,e)}function qn(e,t){var n=Qn(e),i=Qn(t);return n&&i?function(e,t,n){for(var i=e[J()](),o=t[J()]();;){var r=i.next(),l=o.next();if(r.done&&l.done)return!0;if(r.done||l.done)return!1;if(!n(r.value,l.value))return!1}}(e,t,qn):!(n||!e||"object"!=typeof e&&"function"!=typeof e||i||!t||"object"!=typeof t&&"function"!=typeof t)||X(e,t)}var Gn=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),Yn=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function Qn(e){return!!Jn(e)&&(Array.isArray(e)||!(e instanceof Map)&&J()in e)}function Jn(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var Zn=function(){function e(){}return e.prototype.supports=function(e){return Qn(e)},e.prototype.create=function(e){return new ei(e)},e}(),Xn=function(e,t){return t},ei=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Xn}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,i=0,o=null;t||n;){var r=!n||t&&t.currentIndex=n.length)&&(t=n.length-1),t<0)return null;var i=n[t];return i.viewContainerParent=null,Fo(n,t),Ii.dirtyParentQueries(i),Uo(i),i}function Lo(e,t,n){var i=t?Xi(t,t.def.lastRenderRootNode):e.renderElement;so(n,2,n.renderer.parentNode(i),n.renderer.nextSibling(i),void 0)}function Uo(e){so(e,3,null,null,void 0)}function Vo(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Fo(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var Ko=new Object;function Bo(e,t,n,i,o,r){return new Wo(e,t,n,i,o,r)}function Ho(e){return e.viewDefFactory}var Wo=function(e){function t(t,n,i,o,r,l){var u=e.call(this)||this;return u.selector=t,u.componentType=n,u._inputs=o,u._outputs=r,u.ngContentSelectors=l,u.viewDefFactory=i,u}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,i){if(!i)throw new Error("ngModule should be provided");var o=ao(this.viewDefFactory),r=o.nodes[0].element.componentProvider.nodeIndex,l=Ii.createRootView(e,t||[],n,o,i,Ko),u=Si(l,r).instance;return n&&l.renderer.setAttribute(Oi(l,0).renderElement,"ng-version",V.full),new zo(l,new Yo(l),u)},t}(kt),zo=function(e){function t(t,n,i){var o=e.call(this)||this;return o._view=t,o._viewRef=n,o._component=i,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=i,o}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new Tn(Oi(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Xo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(bt);function $o(e,t,n){return new qo(e,t,n)}var qo=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new Tn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Xo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=Zi(e),e=e.parent;return e?new Xo(e,t):new Xo(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=jo(this._data,e);Ii.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Yo(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i},e.prototype.createComponent=function(e,t,n,i,o){var r=n||this.parentInjector;o||e instanceof St||(o=r.get(Mt));var l=e.create(r,i,void 0,o);return this.insert(l.hostView,t),l},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,i,o,r,l=e;return o=l._view,r=(n=this._data).viewContainer._embeddedViews,null!==(i=t)&&void 0!==i||(i=r.length),o.viewContainerParent=this._view,Vo(r,i,o),function(e,t){var n=Ji(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var i=n.template._projectedViews;i||(i=n.template._projectedViews=[]),i.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var i=n.parent;i;)i.childFlags|=4,i=i.parent}}(0,t.parentNodeDef)}}(n,o),Ii.dirtyParentQueries(o),Lo(n,i>0?r[i-1]:null,o),l.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,i,o,r,l,u=this._embeddedViews.indexOf(e._view);return o=t,l=(r=(n=this._data).viewContainer._embeddedViews)[i=u],Fo(r,i),null==o&&(o=r.length),Vo(r,o,l),Ii.dirtyParentQueries(l),Uo(l),Lo(n,o>0?r[o-1]:null,l),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=jo(this._data,e);t&&Ii.destroyView(t)},e.prototype.detach=function(e){var t=jo(this._data,e);return t?new Yo(t):null},e}();function Go(e){return new Yo(e)}var Yo=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return so(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){Gi(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Ii.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Ii.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Ii.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Uo(this._view),Ii.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function Qo(e,t){return new Jo(e,t)}var Jo=function(e){function t(t,n){var i=e.call(this)||this;return i._parentView=t,i._def=n,i}return Object(i.__extends)(t,e),t.prototype.createEmbeddedView=function(e){return new Yo(Ii.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Tn(Oi(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(Dn);function Zo(e,t){return new Xo(e,t)}var Xo=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=ue.THROW_IF_NOT_FOUND),Ii.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Ui(e)},t)},e}();function er(e,t){var n=e.def.nodes[t];if(1&n.flags){var i=Oi(e,n.nodeIndex);return n.element.template?i.template:i.renderElement}if(2&n.flags)return xi(e,n.nodeIndex).renderText;if(20240&n.flags)return Si(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function tr(e){return new nr(e.renderer)}var nr=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=mo(t),i=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,i),i},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var i=0;i0,i=t.provider;switch(201347067&t.flags){case 512:return _r(e,t.parent,n,i.value,i.deps);case 1024:return function(e,t,n,i,o){var r=o.length;switch(r){case 0:return i();case 1:return i(Ar(e,t,n,o[0]));case 2:return i(Ar(e,t,n,o[0]),Ar(e,t,n,o[1]));case 3:return i(Ar(e,t,n,o[0]),Ar(e,t,n,o[1]),Ar(e,t,n,o[2]));default:for(var l=Array(r),u=0;u0)s=y,Wr(y)||(c=y);else for(;s&&h===s.nodeIndex+s.childCount;){var v=s.parent;v&&(v.childFlags|=s.childFlags,v.childMatchedQueries|=s.childMatchedQueries),c=(s=v)&&Wr(s)?s.renderParent:s}}return{factory:null,nodeFlags:l,rootNodeFlags:u,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||ji,updateRenderer:i||ji,handleEvent:function(e,n,i,o){return t[n].element.handleEvent(e,i,o)},bindingCount:o,outputCount:r,lastRenderRootNode:f}}function Wr(e){return 0!=(1&e.flags)&&null===e.element.name}function zr(e,t,n){var i=t.element&&t.element.template;if(i){if(!i.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(i.lastRenderRootNode&&16777216&i.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var o=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=o&&t.nodeIndex+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function $r(e,t,n,i){var o=Yr(e.root,e.renderer,e,t,n);return Qr(o,e.component,i),Jr(o),o}function qr(e,t,n){var i=Yr(e,e.renderer,null,null,t);return Qr(i,n,n),Jr(i),i}function Gr(e,t,n,i){var o,r=t.element.componentRendererType;return o=r?e.root.rendererFactory.createRenderer(i,r):e.root.renderer,Yr(e.root,o,e,t.element.componentProvider,n)}function Yr(e,t,n,i,o){var r=new Array(o.nodes.length),l=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:i,context:null,component:null,nodes:r,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:l,initIndex:-1}}function Qr(e,t,n){e.component=t,e.context=n}function Jr(e){var t;to(e)&&(t=Oi(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,i=e.nodes,o=0;o0&&So(e,t,0,n)&&(f=!0),p>1&&So(e,t,1,i)&&(f=!0),p>2&&So(e,t,2,o)&&(f=!0),p>3&&So(e,t,3,r)&&(f=!0),p>4&&So(e,t,4,l)&&(f=!0),p>5&&So(e,t,5,u)&&(f=!0),p>6&&So(e,t,6,a)&&(f=!0),p>7&&So(e,t,7,s)&&(f=!0),p>8&&So(e,t,8,c)&&(f=!0),p>9&&So(e,t,9,d)&&(f=!0),f}(e,t,n,i,o,r,l,u,a,s,c,d);case 2:return function(e,t,n,i,o,r,l,u,a,s,c,d){var p=!1,f=t.bindings,h=f.length;if(h>0&&$i(e,t,0,n)&&(p=!0),h>1&&$i(e,t,1,i)&&(p=!0),h>2&&$i(e,t,2,o)&&(p=!0),h>3&&$i(e,t,3,r)&&(p=!0),h>4&&$i(e,t,4,l)&&(p=!0),h>5&&$i(e,t,5,u)&&(p=!0),h>6&&$i(e,t,6,a)&&(p=!0),h>7&&$i(e,t,7,s)&&(p=!0),h>8&&$i(e,t,8,c)&&(p=!0),h>9&&$i(e,t,9,d)&&(p=!0),p){var y=t.text.prefix;h>0&&(y+=Br(n,f[0])),h>1&&(y+=Br(i,f[1])),h>2&&(y+=Br(o,f[2])),h>3&&(y+=Br(r,f[3])),h>4&&(y+=Br(l,f[4])),h>5&&(y+=Br(u,f[5])),h>6&&(y+=Br(a,f[6])),h>7&&(y+=Br(s,f[7])),h>8&&(y+=Br(c,f[8])),h>9&&(y+=Br(d,f[9]));var m=xi(e,t.nodeIndex).renderText;e.renderer.setValue(m,y)}return p}(e,t,n,i,o,r,l,u,a,s,c,d);case 16384:return function(e,t,n,i,o,r,l,u,a,s,c,d){var p=Si(e,t.nodeIndex),f=p.instance,h=!1,y=void 0,m=t.bindings.length;return m>0&&zi(e,t,0,n)&&(h=!0,y=Cr(e,p,t,0,n,y)),m>1&&zi(e,t,1,i)&&(h=!0,y=Cr(e,p,t,1,i,y)),m>2&&zi(e,t,2,o)&&(h=!0,y=Cr(e,p,t,2,o,y)),m>3&&zi(e,t,3,r)&&(h=!0,y=Cr(e,p,t,3,r,y)),m>4&&zi(e,t,4,l)&&(h=!0,y=Cr(e,p,t,4,l,y)),m>5&&zi(e,t,5,u)&&(h=!0,y=Cr(e,p,t,5,u,y)),m>6&&zi(e,t,6,a)&&(h=!0,y=Cr(e,p,t,6,a,y)),m>7&&zi(e,t,7,s)&&(h=!0,y=Cr(e,p,t,7,s,y)),m>8&&zi(e,t,8,c)&&(h=!0,y=Cr(e,p,t,8,c,y)),m>9&&zi(e,t,9,d)&&(h=!0,y=Cr(e,p,t,9,d,y)),y&&f.ngOnChanges(y),65536&t.flags&&Ci(e,256,t.nodeIndex)&&f.ngOnInit(),262144&t.flags&&f.ngDoCheck(),h}(e,t,n,i,o,r,l,u,a,s,c,d);case 32:case 64:case 128:return function(e,t,n,i,o,r,l,u,a,s,c,d){var p=t.bindings,f=!1,h=p.length;if(h>0&&$i(e,t,0,n)&&(f=!0),h>1&&$i(e,t,1,i)&&(f=!0),h>2&&$i(e,t,2,o)&&(f=!0),h>3&&$i(e,t,3,r)&&(f=!0),h>4&&$i(e,t,4,l)&&(f=!0),h>5&&$i(e,t,5,u)&&(f=!0),h>6&&$i(e,t,6,a)&&(f=!0),h>7&&$i(e,t,7,s)&&(f=!0),h>8&&$i(e,t,8,c)&&(f=!0),h>9&&$i(e,t,9,d)&&(f=!0),f){var y=Mi(e,t.nodeIndex),m=void 0;switch(201347067&t.flags){case 32:m=new Array(p.length),h>0&&(m[0]=n),h>1&&(m[1]=i),h>2&&(m[2]=o),h>3&&(m[3]=r),h>4&&(m[4]=l),h>5&&(m[5]=u),h>6&&(m[6]=a),h>7&&(m[7]=s),h>8&&(m[8]=c),h>9&&(m[9]=d);break;case 64:m={},h>0&&(m[p[0].name]=n),h>1&&(m[p[1].name]=i),h>2&&(m[p[2].name]=o),h>3&&(m[p[3].name]=r),h>4&&(m[p[4].name]=l),h>5&&(m[p[5].name]=u),h>6&&(m[p[6].name]=a),h>7&&(m[p[7].name]=s),h>8&&(m[p[8].name]=c),h>9&&(m[p[9].name]=d);break;case 128:var g=n;switch(h){case 1:m=g.transform(n);break;case 2:m=g.transform(i);break;case 3:m=g.transform(i,o);break;case 4:m=g.transform(i,o,r);break;case 5:m=g.transform(i,o,r,l);break;case 6:m=g.transform(i,o,r,l,u);break;case 7:m=g.transform(i,o,r,l,u,a);break;case 8:m=g.transform(i,o,r,l,u,a,s);break;case 9:m=g.transform(i,o,r,l,u,a,s,c);break;case 10:m=g.transform(i,o,r,l,u,a,s,c,d)}}y.value=m}return f}(e,t,n,i,o,r,l,u,a,s,c,d);default:throw"unreachable"}}(e,t,i,o,r,l,u,a,s,c,d,p):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var i=!1,o=0;o0&&qi(e,t,0,n),p>1&&qi(e,t,1,i),p>2&&qi(e,t,2,o),p>3&&qi(e,t,3,r),p>4&&qi(e,t,4,l),p>5&&qi(e,t,5,u),p>6&&qi(e,t,6,a),p>7&&qi(e,t,7,s),p>8&&qi(e,t,8,c),p>9&&qi(e,t,9,d)}(e,t,i,o,r,l,u,a,s,c,d,p):function(e,t,n){for(var i=0;i0&&cu(n[t-1],i.next),n.splice(t,1),function(e){for(var t=e;t;){var n=null;if(t.views&&t.views.length?n=t.views[0].data:t.child?n=t.child:t.next&&(pu(t),n=t.next),null==n){for(;t&&!t.next;)pu(t),t=du(t,e);pu(t||e),n=t&&t.next}t=n}}(i.data),au(e,i,!1),e.query&&e.query.removeView(e,i,t),i}function cu(e,t){e.next=t,e.data.next=t?t.data:null}function du(e,t){var n;return(n=e.node)&&2==(3&n.flags)?n.parent.data:e.parent===t?null:e.parent}function pu(e){if(e.cleanup){for(var t=e.cleanup,n=0;n=bu.length?bu[e]=null:u.staticData=bu[e],vu?(_u=null,gu.view!==ku&&2!=(3&gu.flags)||(ngDevMode&&nu(gu.child,null,"previousNode.child"),gu.child=u)):gu&&(ngDevMode&&nu(gu.next,null,"previousNode.next"),gu.next=u)),gu=u,vu=!0,u}function Ru(e,t,n,i){var o,r;if(null==t){var l=Au[e];r=l&&l.native}else{ngDevMode&&nu(ku.bindingStartIndex,null,"bindingStartIndex");var u="string"!=typeof t,a=u?t.tag:t;if(null===a)throw"for now name is required";r=yu.createElement(a);var s=null;if(u){var c=Du(t.template);s=Ju(Pu(-1,mu.createRenderer(r,t.rendererType),c))}null==(o=Iu(e,3,r,s)).staticData&&(ngDevMode&&na(e-1),o.staticData=bu[e]=Vu(a,n||null,null,i||null)),n&&function(e,t){ngDevMode&&nu(t.length%2,0,"attrs.length % 2");for(var n=yu.setAttribute,i=0;i>12,o=i,r=i+((4092&e)>>2);o=bu.length&&(bu[e]=n,i)){ngDevMode&&iu(gu.staticData,"previousOrParentNode.staticData");var l=gu.staticData;(l.localNames||(l.localNames=[])).push(i,e)}var u=n.diPublic;u&&u(n);var a=gu.staticData;a&&a.attrs&&function(e,t,i){var o=((4092&gu.flags)>>2)-1,r=i.initialInputs;(void 0===r||o>=r.length)&&(r=function(e,t,n){var i=n.initialInputs||(n.initialInputs=[]);i[e]=null;for(var o=n.attrs,r=0;r=n.length||null==n[e])&&(n[e]=[]),n[e]}(e,t));Mu(l,Iu(null,2,null,l)),n.nextIndex++}return!r}function Yu(){vu=!1;var e=gu=ku.node,t=gu.parent;ngDevMode&&lu(e,2),ngDevMode&&lu(t,0);var n=t.data,i=n.nextIndex<=n.views.length?n.views[n.nextIndex-1]:null;(null==i||i.data.id!==e.data.id)&&(function(e,t,n){var i=e.data,o=i.views;n>0&&cu(o[n-1],t),n=o.length&&o.push(t),i.nextIndex<=n&&i.nextIndex++,null!==e.data.renderParent&&au(e,t,!0,function(t,n,i){var o=n.views;return t+1")}function ia(e,t){void 0===t&&(t={});var n,i=t.rendererFactory||Ou,o=e.ngComponentDef,r=ju(i,t.host||o.tag),l=Mu(Pu(-1,i.createRenderer(r,o.rendererType),[]),null);try{vu=!1,gu=null,Iu(0,3,r,Pu(-1,yu,Du(o.template))),n=Hu(1,o.n(),o)}finally{Eu(l)}return t.features&&t.features.forEach(function(e){return e(n,o)}),oa(n),n}function oa(e){ngDevMode&&iu(e,"component");var t=e[Su];ngDevMode&&!t&&Nu("Not a directive instance",e),ngDevMode&&iu(t.data,"hostNode.data"),function(e,n,i,o){var r=Mu(n,t);try{mu.begin&&mu.begin(),i.constructor.ngComponentDef.r(1,0)}finally{mu.end&&mu.end(),n.creationMode=!1,Eu(r)}}(0,t.view,e)}function ra(e){var t={type:e.type,diPublic:null,n:e.factory,tag:e.tag||null,template:e.template||null,r:e.refresh||function(t,n){Qu(t,n,e.template)},h:e.hostBindings||ua,inputs:aa(e.inputs),outputs:aa(e.outputs),methods:aa(e.methods),rendererType:Wi(e.rendererType)||null},n=e.features;return n&&n.forEach(function(e){return e(t)}),t}var la={};function ua(){}function aa(e){if(null==e)return la;var t={};for(var n in e)t[e[n]]=n;return t}function sa(e,t){return{type:7,name:e,definitions:t,options:{}}}function ca(e,t){return void 0===t&&(t=null),{type:4,styles:t,timings:e}}function da(e,t){return void 0===t&&(t=null),{type:3,steps:e,options:t}}function pa(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function fa(e){return{type:6,styles:e,offset:null}}function ha(e,t,n){return{type:0,name:e,styles:t,options:n}}function ya(e){return{type:5,steps:e}}function ma(e,t,n){return void 0===n&&(n=null),{type:1,expr:e,animation:t,options:n}}var ga="*";function va(e,t){return sa(e,t)}function ba(e,t){return ca(e,t)}function ka(e){return da(e)}function _a(e){return pa(e)}function wa(e){return fa(e)}function Aa(e,t){return ha(e,t)}function Ta(e){return ya(e)}function Ca(e,t){return ma(e,t)}}).call(t,n("DuR2"))},WWFs:function(e,t,n){"use strict";var i=n("xgwM").__extends;Object.defineProperty(t,"__esModule",{value:!0});var o=function(){};t.IpcResponse=o,t.FirmwareUpgradeIpcResponse=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(o)},WWez:function(e,t,n){"use strict";var i=n("ys6Q");e.exports=function(e,t,n){e&&i(function(){e.apply(n||null,t||[])})}},Wfm2:function(e,t){e.exports={svg:{$:{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"744.094488189",height:"1052.36220472"},rect:[{$:{id:"key-1",x:"-446.27197",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-2",x:"-379.92999",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-3",x:"-313.58899",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-4",x:"-247.24799",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-5",x:"-180.90698",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-6",x:"-114.56499",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-7",x:"-48.223999",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-8",x:"-446.27197",y:"744.89612",ry:"3.5107117",width:"96.728996",height:"63.014999",style:"fill:#333"}},{$:{id:"key-9",x:"-346.21698",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-10",x:"-279.87601",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-11",x:"-213.535",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-12",x:"-147.19299",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-14",x:"-80.852005",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-15",x:"-446.27197",y:"811.41315",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}},{$:{id:"key-16",x:"-328.18799",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-17",x:"-262.19598",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-18",x:"-196.20499",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-19",x:"-130.21399",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-21",x:"-64.222992",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-22",x:"-446.27197",y:"877.92914",ry:"3.5107117",width:"146.686",height:"63.014999",style:"fill:#333"}},{$:{id:"key-24",x:"-296.26001",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-25",x:"-230.02377",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-26",x:"-163.78757",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-27",x:"-97.551331",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-28",x:"-31.315111",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-29",x:"-446.27197",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-30",x:"-363.79099",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-31",x:"-281.311",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-32",x:"-198.83099",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-33",x:"-116.351",y:"1011.1872",ry:"3.6962967",width:"115.108",height:"41.174999",style:"fill:#333"}},{$:{id:"key-34",x:"-116.351",y:"944.44714",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}}],path:[{$:{d:"M -94.51036,646.84101 C -94.11496,648.67469 -92.68469,649.80097 -91.0281,649.78029 L 13.023181,649.78029 C 14.001631,649.78029 14.794821,650.57349 14.794821,651.55194 L 14.794821,651.55868 14.794821,673.23866 C 14.794821,674.21746 14.001631,675.01093 13.023181,675.01093 L -444.52338,675.01093 C -447.45834,675.01093 -449.83652,677.38911 -449.83652,680.32407 L -449.83652,1005.8729 C -449.83652,1008.8079 -447.45834,1011.1861 -444.52338,1011.1861 L -120.57683,1011.1861 C -119.59838,1011.1861 -118.80518,1011.9795 -118.80518,1012.9583 L -118.80518,1050.5832 -118.80518,1050.5899 C -118.80518,1051.5684 -119.59838,1052.3616 -120.57683,1052.3616 L -464.45746,1052.3616 C -469.36122,1052.166 -473.26634,1048.3775 -473.2955,1043.5236 L -473.2955,658.54868 C -473.28473,654.0371 -470.24793,650.61741 -466.01444,649.84887 L -114.09291,586.86646 C -109.10971,586.16157 -104.69185,589.2677 -103.81746,594.05779 -100.59959,612.36858 -97.46095,630.10521 -94.51036,646.84101 Z",style:"fill:#333"}}]}}},WhVc:function(e,t,n){"use strict";t.errorObject={e:{}}},XO5T:function(e,t,n){"use strict";var i=n("ANGw");t.mergeMap=function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),i.mergeMap(e,t,n)(this)}},Xajo:function(e,t,n){"use strict";t.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}},Xjw4:function(e,t,n){"use strict";n.d(t,"l",function(){return v}),n.d(t,"m",function(){return g}),n.d(t,"v",function(){return b}),n.d(t,"c",function(){return N}),n.d(t,"i",function(){return k}),n.d(t,"j",function(){return w}),n.d(t,"k",function(){return T}),n.d(t,"n",function(){return O}),n.d(t,"o",function(){return S}),n.d(t,"p",function(){return M}),n.d(t,"q",function(){return E}),n.d(t,"d",function(){return j}),n.d(t,"b",function(){return D}),n.d(t,"t",function(){return L}),n.d(t,"s",function(){return r}),n.d(t,"f",function(){return l}),n.d(t,"h",function(){return u}),n.d(t,"a",function(){return a}),n.d(t,"e",function(){return d}),n.d(t,"r",function(){return p}),n.d(t,"g",function(){return s}),n.d(t,"u",function(){return m});var i=n("WT6e"),o=n("TToO"),r=function(){},l=new i.InjectionToken("Location Initialized"),u=function(){},a=new i.InjectionToken("appBaseHref"),s=function(){function e(t){var n=this;this._subject=new i.EventEmitter,this._platformStrategy=t;var o=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(c(o)),this._platformStrategy.onPopState(function(e){n._subject.emit({url:n.path(!0),pop:!0,type:e.type})})}return e.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},e.prototype.isCurrentPathEqualTo=function(t,n){return void 0===n&&(n=""),this.path()==this.normalize(t+e.normalizeQueryParams(n))},e.prototype.normalize=function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,c(t)))},e.prototype.prepareExternalUrl=function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},e.prototype.go=function(e,t){void 0===t&&(t=""),this._platformStrategy.pushState(null,"",e,t)},e.prototype.replaceState=function(e,t){void 0===t&&(t=""),this._platformStrategy.replaceState(null,"",e,t)},e.prototype.forward=function(){this._platformStrategy.forward()},e.prototype.back=function(){this._platformStrategy.back()},e.prototype.subscribe=function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})},e.normalizeQueryParams=function(e){return e&&"?"!==e[0]?"?"+e:e},e.joinWithSlash=function(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t},e.stripTrailingSlash=function(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)},e}();function c(e){return e.replace(/\/index.html$/,"")}var d=function(e){function t(t,n){var i=e.call(this)||this;return i._platformLocation=t,i._baseHref="",null!=n&&(i._baseHref=n),i}return Object(o.__extends)(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=s.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,i){var o=this.prepareExternalUrl(n+s.normalizeQueryParams(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,t,o)},t.prototype.replaceState=function(e,t,n,i){var o=this.prepareExternalUrl(n+s.normalizeQueryParams(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,o)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(u),p=function(e){function t(t,n){var i=e.call(this)||this;if(i._platformLocation=t,null==n&&(n=i._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=n,i}return Object(o.__extends)(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(e){return s.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+s.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,i){var o=this.prepareExternalUrl(n+s.normalizeQueryParams(i));this._platformLocation.pushState(e,t,o)},t.prototype.replaceState=function(e,t,n,i){var o=this.prepareExternalUrl(n+s.normalizeQueryParams(i));this._platformLocation.replaceState(e,t,o)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(u),f=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],h={},y=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),m=new i.InjectionToken("UseV4Plurals"),g=function(){},v=function(e){function t(t,n){var i=e.call(this)||this;return i.locale=t,i.deprecatedPluralFn=n,i}return Object(o.__extends)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=h[t];if(n)return n;var i=t.split("-")[0];if(n=h[i])return n;if("en"===i)return f;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[17]}(t||this.locale)(e)){case y.Zero:return"zero";case y.One:return"one";case y.Two:return"two";case y.Few:return"few";case y.Many:return"many";default:return"other"}},t}(g);function b(e,t){t=encodeURIComponent(t);for(var n=0,i=e.split(";");n=e.length&&e.length===r.length)return e;for(var u=e.slice(0,t),a=t;a-1?d:computeNextEntry(n,c,p,f);u.push(h)}return u}function liftInitialState(e,t){return{monitorState:t(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:e,currentStateIndex:0,computedStates:[]}}function liftReducerWith(e,t,n,i){return void 0===i&&(i={}),function(o){return function(r,l){var u=r||t,a=u.monitorState,s=u.actionsById,c=u.nextActionId,d=u.stagedActionIds,p=u.skippedActionIds,f=u.committedState,h=u.currentStateIndex,y=u.computedStates;function m(e){for(var t=e,n=d.slice(1,t+1),i=0;it?h-t:0}r||(s=Object.create(s));var g,v=0;switch(l.type){case RESET:s={0:liftAction(INIT_ACTION)},c=1,d=[0],p=[],f=e,h=0,y=[];break;case COMMIT:s={0:liftAction(INIT_ACTION)},c=1,d=[0],p=[],f=y[h].state,h=0,y=[];break;case ROLLBACK:s={0:liftAction(INIT_ACTION)},c=1,d=[0],p=[],h=0,y=[];break;case TOGGLE_ACTION:var b=l.id,k=p.indexOf(b);p=-1===k?[b].concat(p):p.filter(function(e){return e!==b}),v=d.indexOf(b);break;case SET_ACTIONS_ACTIVE:for(var _=l.start,w=l.end,A=l.active,T=[],C=_;Ci.maxAge&&(y=recomputeStates(y,v,o,f,s,d,p),m(d.length-i.maxAge),v=1/0);break;default:v=1/0}return y=recomputeStates(y,v,o,f,s,d,p),{monitorState:a=n(a,l),actionsById:s,nextActionId:c,stagedActionIds:d,skippedActionIds:p,committedState:f,currentStateIndex:h,computedStates:y}}}}var StoreDevtoolsConfig=function(){},STORE_DEVTOOLS_CONFIG=new __WEBPACK_IMPORTED_MODULE_0__angular_core__.InjectionToken("@ngrx/devtools Options"),INITIAL_OPTIONS=new __WEBPACK_IMPORTED_MODULE_0__angular_core__.InjectionToken("@ngrx/devtools Initial Config"),DevtoolsDispatcher=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(__WEBPACK_IMPORTED_MODULE_1__ngrx_store__.a),StoreDevtools=function(){function e(e,t,n,i,o,r,l){var u=liftInitialState(r,l.monitor),a=liftReducerWith(r,u,l.monitor,l.maxAge?{maxAge:l.maxAge}:{}),s=applyOperators(t.asObservable(),[[__WEBPACK_IMPORTED_MODULE_7_rxjs_operator_skip__.skip,1],[__WEBPACK_IMPORTED_MODULE_4_rxjs_operator_merge__.merge,i.actions$],[__WEBPACK_IMPORTED_MODULE_3_rxjs_operator_map__.map,liftAction],[__WEBPACK_IMPORTED_MODULE_4_rxjs_operator_merge__.merge,e,i.liftedActions$],[__WEBPACK_IMPORTED_MODULE_5_rxjs_operator_observeOn__.observeOn,__WEBPACK_IMPORTED_MODULE_9_rxjs_scheduler_queue__.queue]]),c=__WEBPACK_IMPORTED_MODULE_3_rxjs_operator_map__.map.call(n,a),d=new __WEBPACK_IMPORTED_MODULE_2_rxjs_ReplaySubject__.ReplaySubject(1),p=applyOperators(s,[[__WEBPACK_IMPORTED_MODULE_8_rxjs_operator_withLatestFrom__.withLatestFrom,c],[__WEBPACK_IMPORTED_MODULE_6_rxjs_operator_scan__.scan,function(e,t){var n=t[0],o=(0,t[1])(e.state,n);return i.notify(n,o),{state:o,action:n}},{state:u,action:null}]]).subscribe(function(e){var t=e.action;d.next(e.state),t.type===PERFORM_ACTION&&o.next(t.action)}),f=d.asObservable(),h=__WEBPACK_IMPORTED_MODULE_3_rxjs_operator_map__.map.call(f,unliftState);this.stateSubscription=p,this.dispatcher=e,this.liftedState=f,this.state=h}return e.prototype.dispatch=function(e){this.dispatcher.next(e)},e.prototype.next=function(e){this.dispatcher.next(e)},e.prototype.error=function(e){},e.prototype.complete=function(){},e.prototype.performAction=function(e){this.dispatch(new PerformAction(e))},e.prototype.reset=function(){this.dispatch(new Reset)},e.prototype.rollback=function(){this.dispatch(new Rollback)},e.prototype.commit=function(){this.dispatch(new Commit)},e.prototype.sweep=function(){this.dispatch(new Sweep)},e.prototype.toggleAction=function(e){this.dispatch(new ToggleAction(e))},e.prototype.jumpToState=function(e){this.dispatch(new JumpToState(e))},e.prototype.importState=function(e){this.dispatch(new ImportState(e))},e}(),IS_EXTENSION_OR_MONITOR_PRESENT=new __WEBPACK_IMPORTED_MODULE_0__angular_core__.InjectionToken("Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(e,t){return Boolean(e)||t.monitor!==noMonitor}function createReduxDevtoolsExtension(){return"object"==typeof window&&"undefined"!=typeof window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null}function createStateObservable(e){return e.state}function noMonitor(){return null}function createConfig(e){var t={maxAge:!1,monitor:noMonitor},n="function"==typeof e?e():e,i=Object.assign({},t,n);if(i.maxAge&&i.maxAge<2)throw new Error("Devtools 'maxAge' cannot be less than 2, got "+i.maxAge);return i}var StoreDevtoolsModule=function(){function e(){}return e.instrument=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:t},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:__WEBPACK_IMPORTED_MODULE_1__ngrx_store__.l,deps:[StoreDevtools],useFactory:createStateObservable},{provide:__WEBPACK_IMPORTED_MODULE_1__ngrx_store__.h,useExisting:DevtoolsDispatcher}]}},e}()},Yh8Q:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("rCTf"),r=n("RRVv"),l=n("jBEF"),u=n("fWbP");t.ArrayObservable=function(e){function t(t,n){e.call(this),this.array=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return i(t,e),t.create=function(e,n){return new t(e,n)},t.of=function(){for(var e=[],n=0;n1?new t(e,i):1===o?new r.ScalarObservable(e[0],i):new l.EmptyObservable(i)},t.dispatch=function(e){var t=e.array,n=e.index,i=e.subscriber;n>=e.count?i.complete():(i.next(t[n]),i.closed||(e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.array,i=n.length,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{array:n,index:0,count:i,subscriber:e});for(var r=0;r'},t.prototype.getName=function(){return"MoveMouseMacroAction"},o([l.assertInt16,r("design:type",Number)],t.prototype,"x",void 0),o([l.assertInt16,r("design:type",Number)],t.prototype,"y",void 0),t}(u.MacroAction)},ao60:function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.KeyMacroAction=0]="KeyMacroAction",e[e.LastKeyMacroAction=63]="LastKeyMacroAction",e[e.MouseButtonMacroAction=64]="MouseButtonMacroAction",e[e.LastMouseButtonMacroAction=66]="LastMouseButtonMacroAction",e[e.MoveMouseMacroAction=67]="MoveMouseMacroAction",e[e.ScrollMouseMacroAction=68]="ScrollMouseMacroAction",e[e.DelayMacroAction=69]="DelayMacroAction",e[e.TextMacroAction=70]="TextMacroAction"}(i=t.MacroActionId||(t.MacroActionId={})),function(e){e[e.tap=0]="tap",e[e.press=1]="press",e[e.release=2]="release"}(t.MacroKeySubAction||(t.MacroKeySubAction={})),function(e){e[e.click=0]="click",e[e.hold=1]="hold",e[e.release=2]="release"}(t.MacroMouseSubAction||(t.MacroMouseSubAction={})),t.macroActionType={KeyMacroAction:"key",MouseButtonMacroAction:"mouseButton",MoveMouseMacroAction:"moveMouse",ScrollMouseMacroAction:"scrollMouse",DelayMacroAction:"delay",TextMacroAction:"text"},t.MacroAction=function(){function e(){}return e.prototype.assertMacroActionType=function(e){var n=this.getName();if(e.macroActionType!==t.macroActionType[n])throw"Invalid "+n+".macroActionType: "+e.macroActionType},e.prototype.readAndAssertMacroActionId=function(e){var t=this.getName(),n=e.readUInt8(),o=i[t];if(o===i.KeyMacroAction){if(ni.LastKeyMacroAction)throw"Invalid "+t+" first byte: "+n}else if(o===i.MouseButtonMacroAction){if(ni.LastMouseButtonMacroAction)throw"Invalid "+t+" first byte: "+n}else if(n!==o)throw"Invalid "+t+" first byte: "+n;return n},e}()},at4H:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return l}),n.d(t,"d",function(){return u}),n.d(t,"f",function(){return a}),n.d(t,"k",function(){return s}),n.d(t,"j",function(){return c}),n.d(t,"i",function(){return d}),n.d(t,"e",function(){return p}),n.d(t,"h",function(){return f}),n.d(t,"l",function(){return h}),n.d(t,"g",function(){return y}),n.d(t,"b",function(){return m});var i=n("gI3A"),o=(n.n(i),"[user-config] "),r={LOAD_USER_CONFIG:Object(i.type)(o+"Load User Config"),LOAD_CONFIG_FROM_DEVICE:Object(i.type)(o+"Load User Config from Device"),LOAD_CONFIG_FROM_DEVICE_REPLY:Object(i.type)(o+"Load User Config from Device reply"),LOAD_USER_CONFIG_SUCCESS:Object(i.type)(o+"Load User Config Success"),SAVE_USER_CONFIG_SUCCESS:Object(i.type)(o+"Save User Config Success"),SAVE_USER_CONFIG_IN_JSON_FILE:Object(i.type)(o+"Save User Config in JSON file"),SAVE_USER_CONFIG_IN_BIN_FILE:Object(i.type)(o+"Save User Config in binary file"),LOAD_RESET_USER_CONFIGURATION:Object(i.type)(o+"Load reset user configuration"),RENAME_USER_CONFIGURATION:Object(i.type)(o+"Rename user configuration"),SET_USER_CONFIGURATION_VALUE:Object(i.type)(o+"Set user configuration value"),LOAD_USER_CONFIGURATION_FROM_FILE:Object(i.type)(o+"Load user configuration from file"),APPLY_USER_CONFIGURATION_FROM_FILE:Object(i.type)(o+"Apply user configuration from file")},l=function(){return function(){this.type=r.LOAD_CONFIG_FROM_DEVICE}}(),u=function(){return function(e){this.payload=e,this.type=r.LOAD_CONFIG_FROM_DEVICE_REPLY}}(),a=function(){return function(e){this.payload=e,this.type=r.LOAD_USER_CONFIG_SUCCESS}}(),s=function(){return function(e){this.payload=e,this.type=r.SAVE_USER_CONFIG_SUCCESS}}(),c=function(){return function(){this.type=r.SAVE_USER_CONFIG_IN_JSON_FILE}}(),d=function(){return function(){this.type=r.SAVE_USER_CONFIG_IN_BIN_FILE}}(),p=function(){return function(e){this.payload=e,this.type=r.LOAD_RESET_USER_CONFIGURATION}}(),f=function(){return function(e){this.payload=e,this.type=r.RENAME_USER_CONFIGURATION}}(),h=function(){return function(e){this.payload=e,this.type=r.SET_USER_CONFIGURATION_VALUE}}(),y=function(){return function(e){this.payload=e,this.type=r.LOAD_USER_CONFIGURATION_FROM_FILE}}(),m=function(){return function(e){this.payload=e,this.type=r.APPLY_USER_CONFIGURATION_FROM_FILE}}()},bBHq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.appStarted="app-started",e.getAppStartInfo="app-get-start-info",e.getAppStartInfoReply="app-get-start-info-reply",e.exit="app-exit",e.openUrl="open-url",e}();t.App=i;var o=function(){function e(){}return e.checkingForUpdate="checking-for-update",e.updateAvailable="update-available",e.updateNotAvailable="update-not-available",e.autoUpdateError="auto-update-error",e.autoUpdateDownloaded="update-downloaded",e.autoUpdateDownloadProgress="auto-update-download-progress",e.updateAndRestart="update-and-restart",e.checkForUpdate="check-for-update",e.checkForUpdateNotAvailable="check-for-update-not-available",e}();t.AutoUpdate=o;var r=function(){function e(){}return e.setPrivilegeOnLinux="set-privilege-on-linux",e.setPrivilegeOnLinuxReply="set-privilege-on-linux-reply",e.deviceConnectionStateChanged="device-connection-state-changed",e.saveUserConfiguration="device-save-user-configuration",e.saveUserConfigurationReply="device-save-user-configuration-reply",e.loadConfigurations="device-load-configuration",e.loadConfigurationReply="device-load-configuration-reply",e.updateFirmware="device-update-firmware",e.updateFirmwareReply="device-update-firmware-reply",e.startConnectionPoller="device-start-connection-poller",e.recoveryDevice="device-recovery",e.enableUsbStackTest="enable-usb-stack-test",e}();t.Device=r,t.IpcEvents=function(){function e(){}return e.app=i,e.autoUpdater=o,e.device=r,e}()},bBiI:function(e,t,n){"use strict";var i=n("c8IX");t.first=function(e,t,n){return i.first(e,t,n)(this)}},bE1M:function(e,t,n){"use strict";var i=n("oBYf");t.concatMap=function(e,t){return i.concatMap(e,t)(this)}},bfOx:function(e,t,n){"use strict";n.d(t,"o",function(){return St}),n.d(t,"n",function(){return Et}),n.d(t,"q",function(){return Rt}),n.d(t,"d",function(){return S}),n.d(t,"e",function(){return M}),n.d(t,"s",function(){return E}),n.d(t,"l",function(){return gt}),n.d(t,"m",function(){return Ct}),n.d(t,"k",function(){return bt}),n.d(t,"i",function(){return Vt}),n.d(t,"j",function(){return Zt}),n.d(t,"p",function(){return Ht}),n.d(t,"b",function(){return It}),n.d(t,"f",function(){return Lt}),n.d(t,"g",function(){return jt}),n.d(t,"h",function(){return Nt}),n.d(t,"r",function(){return Ut}),n.d(t,"a",function(){return Fe}),n.d(t,"t",function(){return _t}),n.d(t,"c",function(){return se}),n.d(t,"u",function(){return ae}),n.d(t,"v",function(){return Ft}),n.d(t,"B",function(){return Yt}),n.d(t,"C",function(){return Qt}),n.d(t,"D",function(){return Jt}),n.d(t,"y",function(){return zt}),n.d(t,"x",function(){return Wt}),n.d(t,"A",function(){return Gt}),n.d(t,"w",function(){return Bt}),n.d(t,"z",function(){return qt});var i=n("Xjw4"),o=n("WT6e"),r=n("TToO"),l=n("TfWX"),u=n("EEr4"),a=n("lgiQ"),s=n("bE1M"),c=n("xAJs"),d=n("XO5T"),p=n("rCTf"),f=n("PKvP"),h=n("+4ur"),y=n("CfHE"),m=n("bBiI"),g=n("F7Al"),v=n("ioK+"),b=n("83T1"),k=n("7nvF"),_=n("cbuX"),w=n("pgP5"),A=n("OE0E"),T=n("ack3"),C=function(e,t){this.id=e,this.url=t},x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(C),O=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=i,o}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(C),S=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o.reason=i,o}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(C),M=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o.error=i,o}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(C),E=function(e){function t(t,n,i,o){var r=e.call(this,t,n)||this;return r.urlAfterRedirects=i,r.state=o,r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(C),P=function(e){function t(t,n,i,o){var r=e.call(this,t,n)||this;return r.urlAfterRedirects=i,r.state=o,r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(C),I=function(e){function t(t,n,i,o,r){var l=e.call(this,t,n)||this;return l.urlAfterRedirects=i,l.state=o,l.shouldActivate=r,l}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},t}(C),R=function(e){function t(t,n,i,o){var r=e.call(this,t,n)||this;return r.urlAfterRedirects=i,r.state=o,r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(C),D=function(e){function t(t,n,i,o){var r=e.call(this,t,n)||this;return r.urlAfterRedirects=i,r.state=o,r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(C),N=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},e}(),j=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},e}(),L=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),U=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),V=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),F=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),K="primary",B=function(){function e(e){this.params=e||{}}return e.prototype.has=function(e){return this.params.hasOwnProperty(e)},e.prototype.get=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null},e.prototype.getAll=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]},Object.defineProperty(e.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),e}();function H(e){return new B(e)}function W(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function X(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function ee(e){var t=_.mergeAll.call(e);return b.every.call(t,function(e){return!0===e})}function te(e){return Object(o["\u0275isObservable"])(e)?e:Object(o["\u0275isPromise"])(e)?Object(v.fromPromise)(Promise.resolve(e)):Object(a.of)(e)}function ne(e,t,n){return n?function(e,t){return Q(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!le(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!t.children[i])return!1;if(!e(t.children[i],n.children[i]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return t[n]===e[n]})}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,i,o){if(n.segments.length>o.length)return!!le(l=n.segments.slice(0,o.length),o)&&!i.hasChildren();if(n.segments.length===o.length){if(!le(n.segments,o))return!1;for(var r in i.children){if(!n.children[r])return!1;if(!e(n.children[r],i.children[r]))return!1}return!0}var l=o.slice(0,n.segments.length),u=o.slice(n.segments.length);return!!le(n.segments,l)&&!!n.children[K]&&t(n.children[K],i,u)}(t,n,n.segments)}(e.root,t.root)}var ie=function(){function e(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}return Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=H(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return ce.serialize(this)},e}(),oe=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,X(t,function(e,t){return e.parent=n})}return e.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return de(this)},e}(),re=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=H(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return ge(this)},e}();function le(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function ue(e,t){var n=[];return X(e.children,function(e,i){i===K&&(n=n.concat(t(e,i)))}),X(e.children,function(e,i){i!==K&&(n=n.concat(t(e,i)))}),n}var ae=function(){},se=function(){function e(){}return e.prototype.parse=function(e){var t=new we(e);return new ie(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){var t,n;return"/"+function e(t,n){if(!t.hasChildren())return de(t);if(n){var i=t.children[K]?e(t.children[K],!1):"",o=[];return X(t.children,function(t,n){n!==K&&o.push(n+":"+e(t,!1))}),o.length>0?i+"("+o.join("//")+")":i}var r=ue(t,function(n,i){return i===K?[e(t.children[K],!1)]:[i+":"+e(n,!1)]});return de(t)+"/("+r.join("//")+")"}(e.root,!0)+(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return fe(e)+"="+fe(t)}).join("&"):fe(e)+"="+fe(n)})).length?"?"+n.join("&"):"")+("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"")},e}(),ce=new se;function de(e){return e.segments.map(function(e){return ge(e)}).join("/")}function pe(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fe(e){return pe(e).replace(/%3B/gi,";")}function he(e){return pe(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ye(e){return decodeURIComponent(e)}function me(e){return ye(e.replace(/\+/g,"%20"))}function ge(e){return""+he(e.path)+(t=e.parameters,Object.keys(t).map(function(e){return";"+he(e)+"="+he(t[e])}).join(""));var t}var ve=/^[^\/()?;=&#]+/;function be(e){var t=e.match(ve);return t?t[0]:""}var ke=/^[^=?&#]+/,_e=/^[^?&#]+/,we=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new oe([],{}):new oe([],this.parseChildren())},e.prototype.parseQueryParams=function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e},e.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},e.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[K]=new oe(e,t)),n},e.prototype.parseSegment=function(){var e=be(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new re(ye(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=be(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=be(this.remaining);i&&this.capture(n=i)}e[ye(t)]=ye(n)}},e.prototype.parseQueryParam=function(e){var t,n=(t=this.remaining.match(ke))?t[0]:"";if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var o=function(e){var t=e.match(_e);return t?t[0]:""}(this.remaining);o&&this.capture(i=o)}var r=me(n),l=me(i);if(e.hasOwnProperty(r)){var u=e[r];Array.isArray(u)||(e[r]=u=[u]),u.push(l)}else e[r]=l}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=be(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=K);var r=this.parseChildren();t[o]=1===Object.keys(r).length?r[K]:new oe([],r),this.consumeOptional("//")}return t},e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.consumeOptional=function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)},e.prototype.capture=function(e){if(!this.consumeOptional(e))throw new Error('Expected "'+e+'".')},e}(),Ae=function(e){this.segmentGroup=e||null},Te=function(e){this.urlTree=e};function Ce(e){return new p.Observable(function(t){return t.error(new Ae(e))})}function xe(e){return new p.Observable(function(t){return t.error(new Te(e))})}function Oe(e){return new p.Observable(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+e+"'"))})}var Se=function(){function e(e,t,n,i,r){this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=e.get(o.NgModuleRef)}return e.prototype.apply=function(){var e=this,t=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,K),n=c.map.call(t,function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)});return h._catch.call(n,function(t){if(t instanceof Te)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof Ae)throw e.noMatchError(t);throw t})},e.prototype.match=function(e){var t=this,n=this.expandSegmentGroup(this.ngModule,this.config,e.root,K),i=c.map.call(n,function(n){return t.createUrlTree(n,e.queryParams,e.fragment)});return h._catch.call(i,function(e){if(e instanceof Ae)throw t.noMatchError(e);throw e})},e.prototype.noMatchError=function(e){return new Error("Cannot match any routes. URL Segment: '"+e.segmentGroup+"'")},e.prototype.createUrlTree=function(e,t,n){var i,o=e.segments.length>0?new oe([],((i={})[K]=e,i)):e;return new ie(o,t,n)},e.prototype.expandSegmentGroup=function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?c.map.call(this.expandChildren(e,t,n),function(e){return new oe([],e)}):this.expandSegment(e,n,t,n.segments,i,!0)},e.prototype.expandChildren=function(e,t,n){var i=this;return function(n,o){if(0===Object.keys(n).length)return Object(a.of)({});var r=[],l=[],u={};X(n,function(n,o){var a=c.map.call(i.expandSegmentGroup(e,t,n,o),function(e){return u[o]=e});o===K?r.push(a):l.push(a)});var s=y.concatAll.call(a.of.apply(void 0,r.concat(l))),d=k.last.call(s);return c.map.call(d,function(){return u})}(n.children)},e.prototype.expandSegment=function(e,t,n,i,o,r){var l=this,u=a.of.apply(void 0,n),s=c.map.call(u,function(u){var s=l.expandSegmentAgainstRoute(e,t,n,u,i,o,r);return h._catch.call(s,function(e){if(e instanceof Ae)return Object(a.of)(null);throw e})}),d=y.concatAll.call(s),p=m.first.call(d,function(e){return!!e});return h._catch.call(p,function(e,n){if(e instanceof g.EmptyError||"EmptyError"===e.name){if(l.noLeftoversInUrl(t,i,o))return Object(a.of)(new oe([],{}));throw new Ae(t)}throw e})},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.expandSegmentAgainstRoute=function(e,t,n,i,o,r,l){return Ie(i)!==r?Ce(t):void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,o):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,o,r):Ce(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,i,o,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,o,r)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,n,i){var o=this,r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?xe(r):d.mergeMap.call(this.lineralizeSegments(n,r),function(n){var r=new oe(n,{});return o.expandSegment(e,r,t,n,i,!1)})},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,i,o,r){var l=this,u=Me(t,i,o),a=u.consumedSegments,s=u.lastChild,c=u.positionalParamSegments;if(!u.matched)return Ce(t);var p=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?xe(p):d.mergeMap.call(this.lineralizeSegments(i,p),function(i){return l.expandSegment(e,t,n,i.concat(o.slice(s)),r,!1)})},e.prototype.matchSegmentAgainstRoute=function(e,t,n,i){var o=this;if("**"===n.path)return n.loadChildren?c.map.call(this.configLoader.load(e.injector,n),function(e){return n._loadedConfig=e,new oe(i,{})}):Object(a.of)(new oe(i,{}));var l=Me(t,n,i),u=l.consumedSegments,s=l.lastChild;if(!l.matched)return Ce(t);var p=i.slice(s),f=this.getChildConfig(e,n);return d.mergeMap.call(f,function(e){var n=e.module,i=e.routes,l=function(e,t,n,i){return n.length>0&&function(e,t,n){return i.some(function(n){return Pe(e,t,n)&&Ie(n)!==K})}(e,n)?{segmentGroup:Ee(new oe(t,function(e,t){var n={};n[K]=t;for(var i=0,o=e;i1||!i.children[K])return Oe(e.redirectTo);i=i.children[K]}},e.prototype.applyRedirectCommands=function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,n,i){var o=this.createSegmentGroup(e,t.root,n,i);return new ie(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return X(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var o=e.substring(1);n[i]=t[o]}else n[i]=e}),n},e.prototype.createSegmentGroup=function(e,t,n,i){var o=this,r=this.createSegments(e,t.segments,n,i),l={};return X(t.children,function(t,r){l[r]=o.createSegmentGroup(e,t,n,i)}),new oe(r,l)},e.prototype.createSegments=function(e,t,n,i){var o=this;return t.map(function(t){return t.path.startsWith(":")?o.findPosParam(e,t,i):o.findOrReturn(t,n)})},e.prototype.findPosParam=function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return i},e.prototype.findOrReturn=function(e,t){for(var n=0,i=0,o=t;i0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=(t.matcher||W)(n,e,t);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ee(e){if(1===e.numberOfChildren&&e.children[K]){var t=e.children[K];return new oe(e.segments.concat(t.segments),t.children)}return e}function Pe(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Ie(e){return e.outlet||K}var Re=function(){function e(e){this._root=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),e.prototype.parent=function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null},e.prototype.children=function(e){var t=De(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=De(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=Ne(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})},e.prototype.pathFromRoot=function(e){return Ne(e,this._root).map(function(e){return e.value})},e}();function De(e,t){if(e===t.value)return t;for(var n=0,i=t.children;n=1;){var o=n[i],l=n[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(l.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object(r.__assign)({},e.params,t.params),data:Object(r.__assign)({},e.data,t.data),resolve:Object(r.__assign)({},e.resolve,t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var Be=function(){function e(e,t,n,i,o,r,l,u,a,s,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=r,this.component=l,this.routeConfig=u,this._urlSegment=a,this._lastPathIndex=s,this._resolve=c}return Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=H(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=H(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},e}(),He=function(e){function t(t,n){var i=e.call(this,n)||this;return i.url=t,We(i,n),i}return Object(r.__extends)(t,e),t.prototype.toString=function(){return ze(this._root)},t}(Re);function We(e,t){t.value._routerState=e,t.children.forEach(function(t){return We(e,t)})}function ze(e){var t=e.children.length>0?" { "+e.children.map(ze).join(", ")+" } ":"";return""+e.value+t}function $e(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Q(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Q(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&Ge(n[0]))throw new Error("Root segment cannot have matrix parameters");var i=n.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(i&&i!==Z(n))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}(),Je=function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n};function Ze(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[K]:""+e}function Xe(e,t,n){if(e||(e=new oe([],{})),0===e.segments.length&&e.hasChildren())return et(e,t,n);var i=function(e,t,n){for(var i=0,o=t,r={match:!1,pathIndex:0,commandIndex:0};o=n.length)return r;var l=e.segments[o],u=Ze(n[i]),a=i0&&void 0===u)break;if(u&&a&&"object"==typeof a&&void 0===a.outlets){if(!ot(u,a,l))return r;i+=2}else{if(!ot(u,{},l))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(e,t,n),o=n.slice(i.commandIndex);if(i.match&&i.pathIndex0?Z(n).parameters:{};o=new Be(n,a,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,yt(e),i,e.component,e,ct(t),dt(t)+n.length,mt(e))}else{var s=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new at;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(t.matcher||W)(n,e,t);if(!i)throw new at;var o={};X(i.posParams,function(e,t){o[t]=e.path});var l=i.consumed.length>0?Object(r.__assign)({},o,i.consumed[i.consumed.length-1].parameters):o;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:l}}(t,e,n);l=s.consumedSegments,u=n.slice(s.lastChild),o=new Be(l,s.parameters,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,yt(e),i,e.component,e,ct(t),dt(t)+l.length,mt(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),d=pt(t,l,u,c),p=d.segmentGroup,f=d.slicedSegments;if(0===f.length&&p.hasChildren()){var h=this.processChildren(c,p);return[new je(o,h)]}if(0===c.length&&0===f.length)return[new je(o,[])];var y=this.processSegment(c,p,f,K);return[new je(o,y)]},e}();function ct(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function dt(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function pt(e,t,n,i){if(n.length>0&&function(e,t,n){return i.some(function(n){return ft(e,t,n)&&ht(n)!==K})}(e,n)){var o=new oe(t,function(e,t,n,i){var o={};o[K]=i,i._sourceSegment=e,i._segmentIndexShift=t.length;for(var r=0,l=n;r0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function ht(e){return e.outlet||K}function yt(e){return e.data||{}}function mt(e){return e.resolve||{}}var gt=function(){},vt=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),bt=new o.InjectionToken("ROUTES"),kt=function(){function e(e,t,n,i){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}return e.prototype.load=function(e,t){var n=this;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren);return c.map.call(i,function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var o=i.create(e);return new z(J(o.injector.get(bt)).map(Y),o)})},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?Object(v.fromPromise)(this.loader.load(e)):d.mergeMap.call(te(e()),function(e){return e instanceof o.NgModuleFactory?Object(a.of)(e):Object(v.fromPromise)(t.compiler.compileModuleAsync(e))})},e}(),_t=function(){},wt=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}();function At(e){throw e}function Tt(e){return Object(a.of)(null)}var Ct=function(){function e(e,t,n,i,r,a,s,c){var d=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=i,this.config=c,this.navigations=new l.BehaviorSubject(null),this.navigationId=0,this.events=new u.Subject,this.errorHandler=At,this.navigated=!1,this.hooks={beforePreactivation:Tt,afterPreactivation:Tt},this.urlHandlingStrategy=new wt,this.routeReuseStrategy=new vt,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.ngModule=r.get(o.NgModuleRef),this.resetConfig(c),this.currentUrlTree=new ie(new oe([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new kt(a,s,function(e){return d.triggerEvent(new N(e))},function(e){return d.triggerEvent(new j(e))}),this.routerState=Ve(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return e.prototype.resetRootComponentType=function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType},e.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},e.prototype.setUpLocationChangeListener=function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.urlSerializer.parse(t.url),i="popstate"===t.type?"popstate":"hashchange";setTimeout(function(){e.scheduleNavigation(n,i,{replaceUrl:!0})},0)}))},Object.defineProperty(e.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),e.prototype.triggerEvent=function(e){this.events.next(e)},e.prototype.resetConfig=function(e){$(e),this.config=e.map(Y),this.navigated=!1},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},e.prototype.createUrlTree=function(e,t){void 0===t&&(t={});var n=t.relativeTo,i=t.queryParams,l=t.fragment,u=t.preserveQueryParams,a=t.queryParamsHandling,s=t.preserveFragment;Object(o.isDevMode)()&&u&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,d=s?this.currentUrlTree.fragment:l,p=null;if(a)switch(a){case"merge":p=Object(r.__assign)({},this.currentUrlTree.queryParams,i);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=i||null}else p=u?this.currentUrlTree.queryParams:i||null;return null!==p&&(p=this.removeEmptyProps(p)),function(e,t,n,i,o){if(0===n.length)return Ye(t.root,t.root,t,i,o);var r=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Qe(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var r={};return X(i.outlets,function(e,t){r[t]="string"==typeof e?e.split("/"):e}),e.concat([{outlets:r}])}if(i.segmentPath)return e.concat([i.segmentPath])}return"string"!=typeof i?e.concat([i]):0===o?(i.split("/").forEach(function(i,o){0==o&&"."===i||(0==o&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):e.concat([i])},[]);return new Qe(n,t,i)}(n);if(r.toRoot())return Ye(t.root,new oe([],{}),t,i,o);var l=function(e,n,i){if(e.isAbsolute)return new Je(t.root,!0,0);if(-1===i.snapshot._lastPathIndex)return new Je(i.snapshot._urlSegment,!0,0);var o=Ge(e.commands[0])?0:1;return function(t,n,r){for(var l=i.snapshot._urlSegment,u=i.snapshot._lastPathIndex+o,a=e.numberOfDoubleDots;a>u;){if(a-=u,!(l=l.parent))throw new Error("Invalid number of '../'");u=l.segments.length}return new Je(l,!1,u-a)}()}(r,0,e),u=l.processChildren?et(l.segmentGroup,l.index,r.commands):Xe(l.segmentGroup,l.index,r.commands);return Ye(l.segmentGroup,u,t,i,o)}(c,this.currentUrlTree,e,p,d)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1});var n=e instanceof ie?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),function(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:i,n=null,o=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var i=t.length,o=0;o1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:l;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),i=0;i=2?function(n){return l.pipe(i.scan(e,t),o.takeLast(1),r.defaultIfEmpty(t))(n)}:function(t){return l.pipe(i.scan(function(t,n,i){return e(t,n,i+1)}),o.takeLast(1))(t)}}},dyjq:function(e,t,n){"use strict";n.d(t,"n",function(){return Y}),n.d(t,"m",function(){return z}),n.d(t,"w",function(){return m}),n.d(t,"x",function(){return g}),n.d(t,"y",function(){return v}),n.d(t,"a",function(){return I}),n.d(t,"b",function(){return P}),n.d(t,"g",function(){return L}),n.d(t,"i",function(){return D}),n.d(t,"h",function(){return N}),n.d(t,"p",function(){return j}),n.d(t,"j",function(){return V}),n.d(t,"k",function(){return B}),n.d(t,"l",function(){return K}),n.d(t,"d",function(){return k}),n.d(t,"s",function(){return w}),n.d(t,"f",function(){return _}),n.d(t,"q",function(){return T}),n.d(t,"c",function(){return A}),n.d(t,"r",function(){return b}),n.d(t,"e",function(){return C}),n.d(t,"t",function(){return O}),n.d(t,"o",function(){return q}),n.d(t,"v",function(){return Z}),n.d(t,"u",function(){return Q});var i,o=n("WT6e"),r=n("TfWX"),l=n("rCTf"),u=n("EEr4"),a=n("RA5l"),s=(n.n(a),n("Ji1B")),c=(n.n(s),n("u2wr")),d=(n.n(c),n("td8d")),p=(n.n(d),n("xAJs")),f=n("U9ky"),h=(n.n(f),n("8hgl")),y=(n.n(h),this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}));function m(e,t){void 0===t&&(t={});for(var n=Object.keys(e),i={},o=0;o0?g.apply(null,t.concat([e])):e}var b=new o.InjectionToken("@ngrx/store Internal Initial State"),k=new o.InjectionToken("@ngrx/store Initial State"),_=new o.InjectionToken("@ngrx/store Reducer Factory"),w=new o.InjectionToken("@ngrx/store Reducer Factory Provider"),A=new o.InjectionToken("@ngrx/store Initial Reducers"),T=new o.InjectionToken("@ngrx/store Internal Initial Reducers"),C=new o.InjectionToken("@ngrx/store Meta Reducers"),x=new o.InjectionToken("@ngrx/store Store Features"),O=new o.InjectionToken("@ngrx/store Internal Store Reducers"),S=new o.InjectionToken("@ngrx/store Internal Feature Reducers"),M=new o.InjectionToken("@ngrx/store Internal Feature Reducers Token"),E=new o.InjectionToken("@ngrx/store Feature Reducers"),P="@ngrx/store/init",I=function(e){function t(){return e.call(this,{type:P})||this}return y(t,e),t.prototype.next=function(t){if("undefined"==typeof t)throw new TypeError("Actions must be objects");if("undefined"==typeof t.type)throw new TypeError("Actions must have a type property");e.prototype.next.call(this,t)},t.prototype.complete=function(){},t.prototype.ngOnDestroy=function(){e.prototype.complete.call(this)},t}(r.BehaviorSubject),R=[I],D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t}(l.Observable),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t}(I),j="@ngrx/store/update-reducers",L=function(e){function t(t,n,i,o){var r=e.call(this,o(i,n))||this;return r.dispatcher=t,r.initialState=n,r.reducers=i,r.reducerFactory=o,r}return y(t,e),t.prototype.addFeature=function(e){var t=e.reducers,n=e.initialState,i=e.key,o="function"==typeof t?function(e,i){return void 0===e&&(e=n),t(e,i)}:v(e.reducerFactory,e.metaReducers)(t,n);this.addReducer(i,o)},t.prototype.removeFeature=function(e){this.removeReducer(e.key)},t.prototype.addReducer=function(e,t){var n;this.reducers=Object.assign({},this.reducers,((n={})[e]=t,n)),this.updateReducers()},t.prototype.removeReducer=function(e){var t,n;this.reducers=(t=this.reducers,n=e,Object.keys(t).filter(function(e){return e!==n}).reduce(function(e,n){return Object.assign(e,((i={})[n]=t[n],i));var i},{})),this.updateReducers()},t.prototype.updateReducers=function(){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:j})},t.prototype.ngOnDestroy=function(){this.complete()},t}(r.BehaviorSubject),U=[L,{provide:D,useExisting:L},{provide:N,useExisting:I}],V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.ngOnDestroy=function(){this.complete()},t}(u.Subject),F=[V],K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t}(l.Observable),B=function(e){function t(t,n,i,o){var r=e.call(this,o)||this,l=s.observeOn.call(t,a.queue),u=c.withLatestFrom.call(l,n),p=d.scan.call(u,H,o);return r.stateSubscription=p.subscribe({next:function(e){var t=e.action;r.next(e.state),i.next(t)}}),r}return y(t,e),t.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe(),this.complete()},t}(r.BehaviorSubject);function H(e,t){void 0===e&&(e={state:void 0});var n=t[0];return{state:(0,t[1])(e.state,n),action:n}}B.INIT=P;var W=[B,{provide:K,useExisting:B}],z=function(e){function t(t,n,i){var o=e.call(this)||this;return o.actionsObserver=n,o.reducerManager=i,o.source=t,o}return y(t,e),t.prototype.select=function(e){for(var t,n=[],i=1;i'},i([r.assertUInt8,o("design:type",Number)],e.prototype,"majorVersion",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"minorVersion",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"patchVersion",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"brandId",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"deviceId",void 0),i([r.assertUInt32,o("design:type",Number)],e.prototype,"uniqueId",void 0),e}()},hTTC:function(e,t,n){"use strict";(function(t){var n=[],i="",o=/^on/;for(i in t)o.test(i)&&n.push(i.slice(2));e.exports=n}).call(t,n("DuR2"))},hYBY:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("VOfZ"),r=n("rCTf");function l(e){var t=e.subscriber;t.closed||(t.next(e.value),t.complete())}function u(e){var t=e.subscriber;t.closed||t.error(e.err)}t.PromiseObservable=function(e){function t(t,n){e.call(this),this.promise=t,this.scheduler=n}return i(t,e),t.create=function(e,n){return new t(e,n)},t.prototype._subscribe=function(e){var t=this,n=this.promise,i=this.scheduler;if(null==i)this._isScalar?e.closed||(e.next(this.value),e.complete()):n.then(function(n){t.value=n,t._isScalar=!0,e.closed||(e.next(n),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){o.root.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return i.schedule(l,0,{value:this.value,subscriber:e})}else n.then(function(n){t.value=n,t._isScalar=!0,e.closed||e.add(i.schedule(l,0,{value:n,subscriber:e}))},function(t){e.closed||e.add(i.schedule(u,0,{err:t,subscriber:e}))}).then(null,function(e){o.root.setTimeout(function(){throw e})})},t}(r.Observable)},iIfT:function(e,t,n){"use strict";var i=n("rCTf"),o=n("Ffu+");i.Observable.prototype.pairwise=o.pairwise},ijov:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("Yh8Q"),r=n("Xajo"),l=n("wAkD"),u=n("CURp"),a={};t.combineLatest=function(){for(var e=[],t=0;t-1?e:u({},e,{log:e.log.concat([{message:s.message,cssClass:"error"===s.level?i.error:i.standard}])});case o.a.MODULES_INFO_LOADED:return u({},e,{modules:t.payload});case o.a.RESET_USER_CONFIGURATION:case o.a.RESTORE_CONFIGURATION_FROM_BACKUP:return u({},e,{restoringUserConfiguration:!0});case o.a.HAS_BACKUP_USER_CONFIGURATION:return u({},e,{hasBackupUserConfiguration:t.payload});case o.a.RESTORE_CONFIGURATION_FROM_BACKUP_SUCCESS:return u({},e,{hasBackupUserConfiguration:!1});case o.a.RECOVERY_DEVICE:return u({},e,{updatingFirmware:!0,log:[{message:"",cssClass:i.standard}]});default:return e}},n.d(t,"k",function(){return s}),n.d(t,"i",function(){return c}),n.d(t,"h",function(){return d}),n.d(t,"g",function(){return p}),n.d(t,"l",function(){return f}),n.d(t,"e",function(){return h}),n.d(t,"f",function(){return y}),n.d(t,"d",function(){return m}),n.d(t,"a",function(){return g}),n.d(t,"b",function(){return v}),n.d(t,"c",function(){return b});var u=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n=o.MacroActionId.KeyMacroAction&&t<=o.MacroActionId.LastKeyMacroAction)return(new r.KeyMacroAction).fromBinary(e);if(t>=o.MacroActionId.MouseButtonMacroAction&&t<=o.MacroActionId.LastMouseButtonMacroAction)return(new l.MouseButtonMacroAction).fromBinary(e);switch(t){case o.MacroActionId.MoveMouseMacroAction:return(new u.MoveMouseMacroAction).fromBinary(e);case o.MacroActionId.ScrollMouseMacroAction:return(new a.ScrollMouseMacroAction).fromBinary(e);case o.MacroActionId.DelayMacroAction:return(new s.DelayMacroAction).fromBinary(e);case o.MacroActionId.TextMacroAction:return(new c.TextMacroAction).fromBinary(e);default:throw"Invalid MacroAction first byte: "+t}},e.fromMacroAction=function(e){var t;return e instanceof r.KeyMacroAction?t=new r.KeyMacroAction(e):e instanceof l.MouseButtonMacroAction?t=new l.MouseButtonMacroAction(e):e instanceof u.MoveMouseMacroAction?t=new u.MoveMouseMacroAction(e):e instanceof a.ScrollMouseMacroAction?t=new a.ScrollMouseMacroAction(e):e instanceof s.DelayMacroAction?t=new s.DelayMacroAction(e):e instanceof c.TextMacroAction&&(t=new c.TextMacroAction(e)),t},e.fromJSONObject=function(e){switch(e.macroActionType){case o.macroActionType.KeyMacroAction:return(new r.KeyMacroAction).fromJsonObject(e);case o.macroActionType.MouseButtonMacroAction:return(new l.MouseButtonMacroAction).fromJsonObject(e);case o.macroActionType.MoveMouseMacroAction:return(new u.MoveMouseMacroAction).fromJsonObject(e);case o.macroActionType.ScrollMouseMacroAction:return(new a.ScrollMouseMacroAction).fromJsonObject(e);case o.macroActionType.DelayMacroAction:return(new s.DelayMacroAction).fromJsonObject(e);case o.macroActionType.TextMacroAction:return(new c.TextMacroAction).fromJsonObject(e);default:throw'Invalid MacroAction.macroActionType: "'+e.macroActionType+'"'}},e}()},kVUC:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return e[e.Linux=0]="Linux",e[e.Mac=1]="Mac",e[e.Windows=2]="Windows",e}({})},kZql:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i={production:!0}},kkb0:function(e,t,n){"use strict";var i=n("FDBB"),o=n("1KT0");t.mergeStatic=o.merge,t.merge=function(){for(var e=[],t=0;t>>=1)e.push(Boolean(1&t));return e},t.prototype.toString=function(){return''},t.prototype.hasButtons=function(){return 0!==this.mouseButtonsMask},t.prototype.isOnlyClickAction=function(){return this.action===u.MacroMouseSubAction.click},t.prototype.isOnlyHoldAction=function(){return this.action===u.MacroMouseSubAction.hold},t.prototype.isOnlyReleaseAction=function(){return this.action===u.MacroMouseSubAction.release},t.prototype.getName=function(){return"MouseButtonMacroAction"},o([l.assertEnum(u.MacroMouseSubAction),r("design:type",Number)],t.prototype,"action",void 0),o([l.assertUInt8,r("design:type",Number)],t.prototype,"mouseButtonsMask",void 0),t}(u.MacroAction)},lgiQ:function(e,t,n){"use strict";var i=n("Yh8Q");t.of=i.ArrayObservable.of},lyLw:function(e,t,n){"use strict";var i=n("Nkju"),o=n("WWez");e.exports=function(e,t){var n=t||{},r={};return void 0===e&&(e={}),e.on=function(t,n){return r[t]?r[t].push(n):r[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var i=arguments.length;if(1===i)delete r[t];else if(0===i)r={};else{var o=r[t];if(!o)return e;o.splice(o.indexOf(n),1)}return e},e.emit=function(){var t=i(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var l=(r[t]||[]).slice(0);return function(){var r=i(arguments),u=this||e;if("error"===t&&!1!==n.throws&&!l.length)throw 1===r.length?r[0]:r;return l.forEach(function(i){n.async?o(i,r,u):i.apply(u,r),i._once&&e.off(t,i)}),e}},e}},mbVC:function(e,t,n){"use strict";var i=n("VOfZ");function o(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}t.getSymbolObservable=o,t.observable=o(i.root),t.$$observable=t.observable},mmVS:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("SKH6"),r=n("B00U"),l=n("yrou"),u=n("r8ZY"),a=function(e){function t(t,n,i){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l.empty;break;case 1:if(!t){this.destination=l.empty;break}if("object"==typeof t){if(c(t)){var o=t[u.rxSubscriber]();this.syncErrorThrowable=o.syncErrorThrowable,this.destination=o,o.add(this)}else this.syncErrorThrowable=!0,this.destination=new s(this,t);break}default:this.syncErrorThrowable=!0,this.destination=new s(this,t,n,i)}}return i(t,e),t.prototype[u.rxSubscriber]=function(){return this},t.create=function(e,n,i){var o=new t(e,n,i);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(r.Subscription);t.Subscriber=a;var s=function(e){function t(t,n,i,r){var u;e.call(this),this._parentSubscriber=t;var a=this;o.isFunction(n)?u=n:n&&(u=n.next,i=n.error,r=n.complete,n!==l.empty&&(a=Object.create(n),o.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=u,this._error=i,this._complete=r}return i(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,n){try{t.call(this._context,n)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(a);function c(e){return e instanceof a||"syncErrorThrowable"in e&&e[u.rxSubscriber]}},nErl:function(e,t){(function(t){e.exports=t}).call(t,{})},oBYf:function(e,t,n){"use strict";var i=n("ANGw");t.concatMap=function(e,t){return i.mergeMap(e,t,1)}},oZkx:function(e,t,n){"use strict";var i=n("rKQy");t.concatAll=function(){return i.mergeAll(1)}},ob4r:function(e,t,n){"use strict";var i={},o="(?:^|\\s)",r="(?:\\s|$)";function l(e){var t=i[e];return t?t.lastIndex=0:i[e]=t=new RegExp(o+e+r,"g"),t}e.exports={add:function(e,t){var n=e.className;n.length?l(t).test(n)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(l(t)," ").trim()}}},offc:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("wAkD"),r=n("CURp");t.withLatestFrom=function(){for(var e=[],t=0;t0){var l=r.indexOf(n);-1!==l&&r.splice(l,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(o.OuterSubscriber)},okk1:function(e,t,n){"use strict";var i=n("rCTf"),o=n("bBiI");i.Observable.prototype.first=o.first},ov8r:function(e,t,n){"use strict";var i=n("xgwM").__decorate,o=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var r=n("CmJd"),l=n("4uS6");t.Module=function(){function e(e){e&&(this.id=e.id,this.keyActions=e.keyActions.map(function(e){return l.KeyActionHelper.createKeyAction(e)}))}return e.prototype.fromJsonObject=function(e,t){return this.id=e.id,this.keyActions=e.keyActions.map(function(e){return l.KeyActionHelper.createKeyAction(e,t)}),this},e.prototype.fromBinary=function(e,t){this.id=e.readUInt8();var n=e.readCompactLength();this.keyActions=[];for(var i=0;i'},e.prototype.renameKeymap=function(t,n){var i,o=this,r=!1;if(this.keyActions.forEach(function(e,l){if(e){var u=e.renameKeymap(t,n);u!==e&&(r||(i=o.keyActions.slice(),r=!0),i[l]=u)}}),r){var l=Object.assign(new e,this);return l.keyActions=i,l}return this},i([r.assertUInt8,o("design:type",Number)],e.prototype,"id",void 0),e}()},"p/p0":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS"),r=n("F7Al");t.last=function(e,t,n){return function(i){return i.lift(new l(e,t,n,i))}};var l=function(){function e(e,t,n,i){this.predicate=e,this.resultSelector=t,this.defaultValue=n,this.source=i}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.predicate,this.resultSelector,this.defaultValue,this.source))},e}(),u=function(e){function t(t,n,i,o,r){e.call(this,t),this.predicate=n,this.resultSelector=i,this.defaultValue=o,this.source=r,this.hasValue=!1,this.index=0,"undefined"!=typeof o&&(this.lastValue=o,this.hasValue=!0)}return i(t,e),t.prototype._next=function(e){var t=this.index++;if(this.predicate)this._tryPredicate(e,t);else{if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},t.prototype._tryPredicate=function(e,t){var n;try{n=this.predicate(e,t,this.source)}catch(e){return void this.destination.error(e)}if(n){if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},t.prototype._tryResultSelector=function(e,t){var n;try{n=this.resultSelector(e,t)}catch(e){return void this.destination.error(e)}this.lastValue=n,this.hasValue=!0},t.prototype._complete=function(){var e=this.destination;this.hasValue?(e.next(this.lastValue),e.complete()):e.error(new r.EmptyError)},t}(o.Subscriber)},pgP5:function(e,t,n){"use strict";var i=n("dt7L");t.reduce=function(e,t){return arguments.length>=2?i.reduce(e,t)(this):i.reduce(e)(this)}},piny:function(e,t,n){"use strict";var i=n("dt7L");function o(e,t,n){return 0===n?[t]:(e.push(t),e)}t.toArray=function(){return i.reduce(o,[])}},pxzT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("4uS6");(t.ConfigSerializer||(t.ConfigSerializer={})).resolveSwitchKeymapActions=function(e){for(var t=0,n=e;t'},t.prototype.getName=function(){return"TextMacroAction"},t}(o.MacroAction)},tXwt:function(e,t,n){"use strict";t.b=function(e,t){switch(void 0===e&&(e=o),t.type){case i.a.UPDATE_AVAILABLE:return(n=Object.assign({},e)).updateAvailable=!0,n;case i.a.UPDATE_DOWNLOADED:return(n=Object.assign({},e)).updateDownloaded=!0,n;case i.a.DO_NOT_UPDATE_APP:var n;return(n=Object.assign({},e)).doNotUpdateApp=!0,n;default:return e}},n.d(t,"a",function(){return r});var i=n("va3Z"),o={updateAvailable:!1,updateDownloaded:!1,doNotUpdateApp:!1},r=function(e){return e.updateDownloaded&&!e.doNotUpdateApp}},td8d:function(e,t,n){"use strict";var i=n("UYy0");t.scan=function(e,t){return arguments.length>=2?i.scan(e,t)(this):i.scan(e)(this)}},u2wr:function(e,t,n){"use strict";var i=n("offc");t.withLatestFrom=function(){for(var e=[],t=0;t>1,c=-7,d=n?o-1:0,p=n?-1:1,f=e[t+d];for(d+=p,r=f&(1<<-c)-1,f>>=-c,c+=u;c>0;r=256*r+e[t+d],d+=p,c-=8);for(l=r&(1<<-c)-1,r>>=-c,c+=i;c>0;l=256*l+e[t+d],d+=p,c-=8);if(0===r)r=1-s;else{if(r===a)return l?NaN:1/0*(f?-1:1);l+=Math.pow(2,i),r-=s}return(f?-1:1)*l*Math.pow(2,r-i)},t.write=function(e,t,n,i,o,r){var l,u,a,s=8*r-o-1,c=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:r-1,h=i?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,l=c):(l=Math.floor(Math.log(t)/Math.LN2),t*(a=Math.pow(2,-l))<1&&(l--,a*=2),(t+=l+d>=1?p/a:p*Math.pow(2,1-d))*a>=2&&(l++,a/=2),l+d>=c?(u=0,l=c):l+d>=1?(u=(t*a-1)*Math.pow(2,o),l+=d):(u=t*Math.pow(2,d-1)*Math.pow(2,o),l=0));o>=8;e[n+f]=255&u,f+=h,u/=256,o-=8);for(l=l<0;e[n+f]=255&l,f+=h,l/=256,s-=8);e[n+f-h]|=128*y}},va3Z:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return l}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return a}),n.d(t,"e",function(){return s});var i=n("gI3A"),o=(n.n(i),"[app-update] "),r={UPDATE_AVAILABLE:Object(i.type)(o+"update available"),UPDATE_APP:Object(i.type)(o+"update app"),DO_NOT_UPDATE_APP:Object(i.type)(o+"do not update app"),UPDATE_DOWNLOADED:Object(i.type)(o+"update downloaded"),UPDATING:Object(i.type)(o+"updating"),UPDATE_ERROR:Object(i.type)(o+"error")},l=function(){return function(){this.type=r.UPDATE_APP}}(),u=function(){return function(){this.type=r.DO_NOT_UPDATE_APP}}(),a=function(){return function(){this.type=r.UPDATE_DOWNLOADED}}(),s=function(){return function(e){this.payload=e,this.type=r.UPDATE_ERROR}}()},vvwv:function(e,t,n){"use strict";var i=n("jBEF");t.empty=i.EmptyObservable.create},vx8o:function(e,t,n){"use strict";(function(t){var i=n("lyLw"),o=n("qjx7"),r=n("ob4r"),l=document,u=l.documentElement;function a(e,n,i,r){t.navigator.pointerEnabled?o[n](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[i],r):t.navigator.msPointerEnabled?o[n](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[i],r):(o[n](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[i],r),o[n](e,i,r))}function s(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function c(e,n){return"undefined"!=typeof t[n]?t[n]:u.clientHeight?u[e]:l.body[e]}function d(e,t,n){var i,o=e||{},r=o.className;return o.className+=" gu-hide",i=l.elementFromPoint(t,n),o.className=r,i}function p(){return!1}function f(){return!0}function h(e){return e.width||e.right-e.left}function y(e){return e.height||e.bottom-e.top}function m(e){return e.parentNode===l?null:e.parentNode}function g(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||function e(t){return!!t&&"false"!==t.contentEditable&&("true"===t.contentEditable||e(m(t)))}(e)}function v(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function b(e,t){var n=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),i={pageX:"clientX",pageY:"clientY"};return e in i&&!(e in n)&&i[e]in n&&(e=i[e]),n[e]}e.exports=function(e,t){var n,k,_,w,A,T,C,x,O,S,M;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var E,P=null,I=t||{};void 0===I.moves&&(I.moves=f),void 0===I.accepts&&(I.accepts=f),void 0===I.invalid&&(I.invalid=function(){return!1}),void 0===I.containers&&(I.containers=e||[]),void 0===I.isContainer&&(I.isContainer=p),void 0===I.copy&&(I.copy=!1),void 0===I.copySortSource&&(I.copySortSource=!1),void 0===I.revertOnSpill&&(I.revertOnSpill=!1),void 0===I.removeOnSpill&&(I.removeOnSpill=!1),void 0===I.direction&&(I.direction="vertical"),void 0===I.ignoreInputTextSelection&&(I.ignoreInputTextSelection=!0),void 0===I.mirrorContainer&&(I.mirrorContainer=l.body);var R=i({containers:I.containers,start:function(e){var t=K(e);t&&B(t)},end:H,cancel:G,remove:q,destroy:function(){N(!0),z({})},canMove:function(e){return!!K(e)},dragging:!1});return!0===I.removeOnSpill&&R.on("over",function(e){r.rm(e,"gu-hide")}).on("out",function(e){R.dragging&&r.add(e,"gu-hide")}),N(),R;function D(e){return-1!==R.containers.indexOf(e)||I.isContainer(e)}function N(e){var t=e?"remove":"add";a(u,t,"mousedown",V),a(u,t,"mouseup",z)}function j(e){a(u,e?"remove":"add","mousemove",F)}function L(e){var t=e?"remove":"add";o[t](u,"selectstart",U),o[t](u,"click",U)}function U(e){E&&e.preventDefault()}function V(e){if(T=e.clientX,C=e.clientY,1===s(e)&&!e.metaKey&&!e.ctrlKey){var t=e.target,n=K(t);n&&(E=n,j(),"mousedown"===e.type&&(g(t)?t.focus():e.preventDefault()))}}function F(e){if(E)if(0!==s(e)){if(void 0===e.clientX||e.clientX!==T||void 0===e.clientY||e.clientY!==C){if(I.ignoreInputTextSelection){var t=b("clientX",e),i=b("clientY",e);if(g(l.elementFromPoint(t,i)))return}var o=E;j(!0),L(),H(),B(o);var d,p={left:(d=_.getBoundingClientRect()).left+c("scrollLeft","pageXOffset"),top:d.top+c("scrollTop","pageYOffset")};w=b("pageX",e)-p.left,A=b("pageY",e)-p.top,r.add(S||_,"gu-transit"),function(){if(!n){var e=_.getBoundingClientRect();(n=_.cloneNode(!0)).style.width=h(e)+"px",n.style.height=y(e)+"px",r.rm(n,"gu-transit"),r.add(n,"gu-mirror"),I.mirrorContainer.appendChild(n),a(u,"add","mousemove",Z),r.add(I.mirrorContainer,"gu-unselectable"),R.emit("cloned",n,_,"mirror")}}(),Z(e)}}else z({})}function K(e){if(!(R.dragging&&n||D(e))){for(var t=e;m(e)&&!1===D(m(e));){if(I.invalid(e,t))return;if(!(e=m(e)))return}var i=m(e);if(i&&!I.invalid(e,t)&&I.moves(e,i,t,v(e)))return{item:e,source:i}}}function B(e){("boolean"==typeof I.copy?I.copy:I.copy(e.item,e.source))&&(S=e.item.cloneNode(!0),R.emit("cloned",S,e.item,"copy")),k=e.source,_=e.item,x=O=v(e.item),R.dragging=!0,R.emit("drag",_,k)}function H(){if(R.dragging){var e=S||_;$(e,m(e))}}function W(){E=!1,j(!0),L(!0)}function z(e){if(W(),R.dragging){var t=S||_,i=b("clientX",e),o=b("clientY",e),r=J(d(n,i,o),i,o);r&&(S&&I.copySortSource||!S||r!==k)?$(t,r):I.removeOnSpill?q():G()}}function $(e,t){var n=m(e);S&&I.copySortSource&&t===k&&n.removeChild(_),Q(t)?R.emit("cancel",e,k,k):R.emit("drop",e,t,k,O),Y()}function q(){if(R.dragging){var e=S||_,t=m(e);t&&t.removeChild(e),R.emit(S?"cancel":"remove",e,t,k),Y()}}function G(e){if(R.dragging){var t=arguments.length>0?e:I.revertOnSpill,n=S||_,i=m(n),o=Q(i);!1===o&&t&&(S?i&&i.removeChild(S):k.insertBefore(n,x)),o||t?R.emit("cancel",n,k,k):R.emit("drop",n,i,k,O),Y()}}function Y(){var e=S||_;W(),n&&(r.rm(I.mirrorContainer,"gu-unselectable"),a(u,"remove","mousemove",Z),m(n).removeChild(n),n=null),e&&r.rm(e,"gu-transit"),M&&clearTimeout(M),R.dragging=!1,P&&R.emit("out",e,P,k),R.emit("dragend",e),k=_=S=x=O=M=P=null}function Q(e,t){var i;return i=void 0!==t?t:n?O:v(S||_),e===k&&i===x}function J(e,t,n){for(var i=e;i&&!o();)i=m(i);return i;function o(){if(!1===D(i))return!1;var o=X(i,e),r=ee(i,o,t,n);return!!Q(i,r)||I.accepts(_,i,k,r)}}function Z(e){if(n){e.preventDefault();var t=b("clientX",e),i=b("clientY",e),o=i-A;n.style.left=t-w+"px",n.style.top=o+"px";var r=S||_,l=d(n,t,i),u=J(l,t,i),a=null!==u&&u!==P;(a||null===u)&&(P&&f("out"),P=u,a&&f("over"));var s=m(r);if(u!==k||!S||I.copySortSource){var c,p=X(u,l);if(null!==p)c=ee(u,p,t,i);else{if(!0!==I.revertOnSpill||S)return void(S&&s&&s.removeChild(r));c=x,u=k}(null===c&&a||c!==r&&c!==v(r))&&(O=c,u.insertBefore(r,c),R.emit("shadow",r,u,k))}else s&&s.removeChild(r)}function f(e){R.emit(e,r,P,k)}}function X(e,t){for(var n=t;n!==e&&m(n)!==e;)n=m(n);return n===u?null:n}function ee(e,t,n,i){var o,r="horizontal"===I.direction;return t!==e?(o=t.getBoundingClientRect(),(r?n>o.left+h(o)/2:i>o.top+y(o)/2)?v(t):t):function(){var t,o,l,u=e.children.length;for(t=0;tn)return o;if(!r&&l.top+l.height/2>i)return o}return null}()}}}).call(t,n("DuR2"))},"w+X5":function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"h",function(){return l}),n.d(t,"c",function(){return u}),n.d(t,"d",function(){return a}),n.d(t,"b",function(){return s}),n.d(t,"i",function(){return c}),n.d(t,"e",function(){return d}),n.d(t,"f",function(){return p}),n.d(t,"g",function(){return f});var i=n("gI3A"),o=(n.n(i),"[app-update-config] "),r={TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP:Object(i.type)(o+"Check for update on startup"),CHECK_FOR_UPDATE_NOW:Object(i.type)(o+"Check for update now"),CHECK_FOR_UPDATE_SUCCESS:Object(i.type)(o+"Check for update success"),CHECK_FOR_UPDATE_FAILED:Object(i.type)(o+"Check for update faild"),TOGGLE_PRE_RELEASE_FLAG:Object(i.type)(o+"Toggle pre release update flag"),LOAD_AUTO_UPDATE_SETTINGS:Object(i.type)(o+"Load auto update settings"),LOAD_AUTO_UPDATE_SETTINGS_SUCCESS:Object(i.type)(o+"Load auto update settings success"),SAVE_AUTO_UPDATE_SETTINGS_SUCCESS:Object(i.type)(o+"Save auto update settings success")},l=function(){return function(e){this.payload=e,this.type=r.TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP}}(),u=function(){return function(){this.type=r.CHECK_FOR_UPDATE_NOW}}(),a=function(){return function(e){this.payload=e,this.type=r.CHECK_FOR_UPDATE_SUCCESS}}(),s=function(){return function(e){this.payload=e,this.type=r.CHECK_FOR_UPDATE_FAILED}}(),c=function(){return function(e){this.payload=e,this.type=r.TOGGLE_PRE_RELEASE_FLAG}}(),d=function(){return function(){this.type=r.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS}}(),p=function(){return function(e){this.payload=e,this.type=r.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS}}(),f=function(){return function(){this.type=r.SAVE_AUTO_UPDATE_SETTINGS_SUCCESS}}()},wAkD:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.OuterSubscriber=function(e){function t(){e.apply(this,arguments)}return i(t,e),t.prototype.notifyNext=function(e,t,n,i,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(o.Subscriber)},wUn1:function(e,t,n){"use strict";var i=n("rCTf"),o=n("ack3");i.Observable.prototype.filter=o.filter},wogf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("H5FS"),o=n("4KnF"),r=n("I5Xr"),l=n("MkTX"),u=n("9PEG"),a=n("78zf"),s=n("Fq1u"),c=n("HiVc"),d=n("Oz3Z");function p(e){return e.hasSecondaryRoleAction()||e.hasActiveModifier()||e.hasScancode()&&d.isScancodeExists(e.scancode)}t.Helper=function(){function e(){}return e.createKeyAction=function(t,n){return t instanceof o.KeyAction?e.fromKeyAction(t):t instanceof i.UhkBuffer?e.fromUhkBuffer(t,n):e.fromJSONObject(t,n)},e.fromUhkBuffer=function(e,t){var n=e.readUInt8();if(e.backtrack(),n>=o.KeyActionId.KeystrokeAction&&n',styles:["\n :host {\n display: block;\n margin-top: 1rem;\n margin-bottom: 1rem;\n }\n "],providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return e}),multi:!0}]}]}],e.propDecorators={disabled:[{type:o.Input}],behaviour:[{type:o.Input}],connect:[{type:o.Input}],limit:[{type:o.Input}],min:[{type:o.Input}],max:[{type:o.Input}],step:[{type:o.Input}],format:[{type:o.Input}],pageSteps:[{type:o.Input}],config:[{type:o.Input}],ngModel:[{type:o.Input}],keyboard:[{type:o.Input}],onKeydown:[{type:o.Input}],formControl:[{type:o.Input}],tooltips:[{type:o.Input}],change:[{type:o.Output}],update:[{type:o.Output}],slide:[{type:o.Output}],set:[{type:o.Output}],start:[{type:o.Output}],end:[{type:o.Output}]},e}();t.NouisliderComponent=u,t.NouisliderModule=function(){function e(){}return e.decorators=[{type:o.NgModule,args:[{imports:[],exports:[u],declarations:[u]}]}],e}()},xAJs:function(e,t,n){"use strict";var i=n("9omE");t.map=function(e,t){return i.map(e,t)(this)}},xOQQ:function(e,t,n){"use strict";var i=n("rCTf"),o=n("U9ky");i.Observable.prototype.pluck=o.pluck},"xW7+":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return e[e.ANSI=0]="ANSI",e[e.ISO=1]="ISO",e}({})},xgwM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__extends=function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"__assign",function(){return o}),t.__rest=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o=0;u--)(o=e[u])&&(l=(r<3?o(l):r>3?o(t,n,l):o(t,n))||l);return r>3&&l&&Object.defineProperty(t,n,l),l},t.__param=function(e,t){return function(n,i){t(n,i,e)}},t.__metadata=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},t.__awaiter=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function l(e){try{a(i.next(e))}catch(e){r(e)}}function u(e){try{a(i.throw(e))}catch(e){r(e)}}function a(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(l,u)}a((i=i.apply(e,t||[])).next())})},t.__generator=function(e,t){var n,i,o,r,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function u(r){return function(u){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,i=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]1||a(e,t)})})}function a(e,t){try{(n=o[e](t)).value instanceof u?Promise.resolve(n.value.v).then(s,c):d(r[0][2],n)}catch(e){d(r[0][3],e)}var n}function s(e){a("next",e)}function c(e){a("throw",e)}function d(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}},t.__asyncDelegator=function(e){var t,n;return t={},i("next"),i("throw",function(e){throw e}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,o){e[i]&&(t[i]=function(t){return(n=!n)?{value:u(e[i](t)),done:"return"===i}:o?o(t):t})}},t.__asyncValues=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):"function"==typeof r?r(e):e[Symbol.iterator]()},t.__makeTemplateObject=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},t.__importStar=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},t.__importDefault=function(e){return e&&e.__esModule?e:{default:e}};var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)l.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return l}function u(e){return this instanceof u?(this.v=e,this):new u(e)}},xiuF:function(e,t,n){"use strict";var i=n("TToO").__decorate,o=n("TToO").__metadata,r=n("WT6e"),l=(n("LKU8"),n("Ilbw")),u=function(){function e(e,t){this.el=e,this.dragulaService=t,this.container=e.nativeElement}return e.prototype.ngOnInit=function(){var e=this,t=this.dragulaService.find(this.dragula),n=function(){e.dragulaModel&&(e.drake.models?e.drake.models.push(e.dragulaModel):e.drake.models=[e.dragulaModel])};t?(this.drake=t.drake,n(),this.drake.containers.push(this.container)):(this.drake=l.dragula([this.container],Object.assign({},this.dragulaOptions)),n(),this.dragulaService.add(this.dragula,this.drake))},e.prototype.ngOnChanges=function(e){if(e&&e.dragulaModel&&this.drake)if(this.drake.models){var t=this.drake.models.indexOf(e.dragulaModel.previousValue);this.drake.models.splice(t,1,e.dragulaModel.currentValue)}else this.drake.models=[e.dragulaModel.currentValue]},e}();i([r.Input(),o("design:type",String)],u.prototype,"dragula",void 0),i([r.Input(),o("design:type",Object)],u.prototype,"dragulaModel",void 0),i([r.Input(),o("design:type",Object)],u.prototype,"dragulaOptions",void 0),u=i([r.Directive({selector:"[dragula]"})],u),t.DragulaDirective=u},y1XC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=function(){function e(){}return e.prototype.error=function(){for(var e=[],t=0;t h2[_ngcontent-%COMP%]{margin-top:10px}.spin-logo[_ngcontent-%COMP%]{-webkit-animation:2s ease-in-out infinite spin;animation:2s ease-in-out infinite spin}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%,50%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%,50%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"]],data:{}});function O(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,14,"span",[["class","uhk-message-wrapper"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,2,"img",[["class","agent-logo spin-logo"],["src","assets/images/agent-icon.png"]],null,null,null,null,null)),o["\u0275did"](3,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o["\u0275pod"](4,{"spin-logo":0}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,7,"div",[["class","messages"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](9,null,[" "," "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),o["\u0275ted"](12,null,[" "," "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,"agent-logo spin-logo",e(t,4,0,t.component.rotateLogo))},function(e,t){var n=t.component;e(t,9,0,n.header),e(t,12,0,n.subtitle)})}n("q3ik"),n("LppN"),n("EoAl");var S=function(){},M=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function E(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"uhk-message",[["header","Cannot find your UHK"],["subtitle","Please plug it in!"]],null,null,null,O,x)),o["\u0275did"](1,49152,null,0,C,[],{header:[0,"header"],subtitle:[1,"subtitle"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,1,0,"Cannot find your UHK","Please plug it in!")},null)}var P=o["\u0275ccf"]("missing-device",S,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"missing-device",[],null,null,null,E,M)),o["\u0275did"](1,49152,null,0,S,[],null,null)],null,null)},{},{},[]),I=n("OE0E"),R=new o.InjectionToken("WindowToken");function D(){return window}var N=function(){},j=function(){function e(e,t){this.document=e,this.window=t}return Object.defineProperty(e.prototype,"isSupported",{get:function(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")},enumerable:!0,configurable:!0}),e.prototype.isTargetValid=function(e){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){if(e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")},e.prototype.copyFromInputElement=function(e){try{this.selectTarget(e);var t=this.copyText();return this.clearSelection(e,this.window),t}catch(e){return!1}},e.prototype.copyFromContent=function(e){return this.tempTextArea||(this.tempTextArea=this.createTempTextArea(this.document,this.window),this.document.body.appendChild(this.tempTextArea)),this.tempTextArea.value=e,this.copyFromInputElement(this.tempTextArea)},e.prototype.destroy=function(){this.tempTextArea&&(this.document.body.removeChild(this.tempTextArea),this.tempTextArea=void 0)},e.prototype.selectTarget=function(e){return e.select(),e.setSelectionRange(0,e.value.length),e.value.length},e.prototype.copyText=function(){return this.document.execCommand("copy")},e.prototype.clearSelection=function(e,t){e&&e.blur(),t.getSelection().removeAllRanges()},e.prototype.createTempTextArea=function(e,t){var n,i="rtl"===e.documentElement.getAttribute("dir");return(n=e.createElement("textarea")).style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[i?"right":"left"]="-9999px",n.style.top=(t.pageYOffset||e.documentElement.scrollTop)+"px",n.setAttribute("readonly",""),n},e}();function L(e,t,n){return n||new j(e,t)}new o.Optional,new o.SkipSelf;var U=function(){function e(e){this.clipboardSrv=e,this.cbOnSuccess=new o.EventEmitter,this.cbOnError=new o.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.clipboardSrv.destroy()},e.prototype.onClick=function(e){this.clipboardSrv.isSupported?this.targetElm&&this.clipboardSrv.isTargetValid(this.targetElm)?this.handleResult(this.clipboardSrv.copyFromInputElement(this.targetElm),this.targetElm.value):this.cbContent&&this.handleResult(this.clipboardSrv.copyFromContent(this.cbContent),this.cbContent):this.handleResult(!1,void 0)},e.prototype.handleResult=function(e,t){e?this.cbOnSuccess.emit({isSuccess:!0,content:t}):this.cbOnError.emit({isSuccess:!1})},e}(),V=function(){function e(e,t){this.elementRef=e,this.sanitizer=t}return e.prototype.ngAfterContentInit=function(){this.init()},e.prototype.ngOnChanges=function(e){e.title&&this.fixTitle()},e.prototype.init=function(){jQuery(this.elementRef.nativeElement).tooltip({placement:this.placement,html:this.html,template:this.getCustomTemplate(),title:this.title})},e.prototype.fixTitle=function(){jQuery(this.elementRef.nativeElement).tooltip({placement:this.placement,html:this.html,template:this.getCustomTemplate(),title:this.title}),jQuery(this.elementRef.nativeElement).attr("title",this.title).tooltip("fixTitle")},e.prototype.getCustomTemplate=function(){var e="",t="";return this.maxWidth&&(e='style="width: '+this.maxWidth+'px;"',t='style="max-width: '+this.maxWidth+'px;"'),'

\n
\n
\n
"},e}(),F=n("Ji5S"),K=function(){function e(e,t){this.store=e,this.cdRef=t,this.command='cat </etc/udev/rules.d/50-uhk60.rules\n# Ultimate Hacking Keyboard rules\n# These are the udev rules for accessing the USB interfaces of the UHK as non-root users.\n# Copy this file to /etc/udev/rules.d and physically reconnect the UHK afterwards.\nSUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", MODE:="0666"\nEOF\nudevadm trigger\nudevadm settle'}return e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(c.q).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.setUpPermissions=function(){this.store.dispatch(new s.p)},e.prototype.whatWillThisDo=function(){this.store.dispatch(new F.i)},e.prototype.retry=function(){this.store.dispatch(new F.f)},e}(),B=o["\u0275crt"]({encapsulation:0,styles:[[".privilege-checker-wrapper[_ngcontent-%COMP%]{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}uhk-message[_ngcontent-%COMP%]{max-width:50%}.privilege-error[_ngcontent-%COMP%]{-webkit-animation:2s error-fade-in;animation:2s error-fade-in}@-webkit-keyframes error-fade-in{0%{color:#fff;background-color:red}100%{color:inherit;background-color:inherit}}@keyframes error-fade-in{0%{color:#fff;background-color:red}100%{color:inherit;background-color:inherit}}"]],data:{}});function H(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"a",[["class","link-inline"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.whatWillThisDo()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["What will this do?\n "]))],null,null)}function W(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[["privilegeError",1]],null,4,"p",[["class","privilege-error"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Agent wasn't able to set up permissions via PolicyKit. This is most likely because the\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["polkit"])),(e()(),o["\u0275ted"](-1,null,[" package is not installed on your system.\n "]))],null,null)}function z(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,15,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Agent uses the following script to set up permissions. You can run it manually as root, then\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"a",[["class","link-inline"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.retry()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["retry"])),(e()(),o["\u0275ted"](-1,null,[".\n "])),(e()(),o["\u0275eld"](5,0,null,null,9,"div",[["class","copy-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,2,"span",[["class","fa fa-2x fa-copy"],["data-placement","top"],["data-toggle","tooltip"],["ngxClipboard",""],["title","Copy to clipboard"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,8).onClick(n.target)&&i),i},null,null)),o["\u0275did"](8,212992,null,0,U,[j],{targetElm:[0,"targetElm"],cbContent:[1,"cbContent"]},null),o["\u0275did"](9,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),o["\u0275eld"](12,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),o["\u0275ted"](13,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,8,0,"",t.component.command),e(t,9,0,"Copy to clipboard")},function(e,t){var n=t.component;e(t,7,0,o["\u0275nov"](t,9).placement),e(t,13,0,n.command)})}function $(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,22,"div",[["class","privilege-checker-wrapper"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"uhk-message",[["header","Cannot talk to your UHK"],["subtitle","Your UHK has been detected, but its permissions are not set up yet, so Agent can't talk to it."]],null,null,null,O,x)),o["\u0275did"](3,49152,null,0,C,[],{header:[0,"header"],subtitle:[1,"subtitle"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"button",[["class","btn btn-default btn-lg btn-primary"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.setUpPermissions()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Set up permissions\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](8,0,null,null,13,"div",[["class","mt-10"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,H)),o["\u0275did"](11,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](13,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,W)),o["\u0275did"](16,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,z)),o["\u0275did"](19,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,"Cannot talk to your UHK","Your UHK has been detected, but its permissions are not set up yet, so Agent can't talk to it."),e(t,11,0,n.state.showWhatWillThisDo),e(t,16,0,n.state.permissionSetupFailed),e(t,19,0,n.state.showWhatWillThisDoContent)},null)}var q=o["\u0275ccf"]("privilege-checker",K,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"privilege-checker",[],null,null,null,$,B)),o["\u0275did"](1,245760,null,0,K,[u.m,o.ChangeDetectorRef],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),G=function(){},Y=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Q(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"uhk-message",[["header","Loading keyboard configuration..."],["subtitle","Hang tight!"]],null,null,null,O,x)),o["\u0275did"](2,49152,null,0,C,[],{header:[0,"header"],subtitle:[1,"subtitle"],rotateLogo:[2,"rotateLogo"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,2,0,"Loading keyboard configuration...","Hang tight!",!0)},null)}var J=o["\u0275ccf"]("loading-device",G,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"loading-device",[],null,null,null,Q,Y)),o["\u0275did"](1,49152,null,0,G,[],null,null)],null,null)},{},{},[]),Z=function(){function e(){this.logs=[]}return e.prototype.ngOnChanges=function(e){var t=this;e.logs&&this.divElement&&this.divElement.nativeElement&&setTimeout(function(){t.divElement.nativeElement.scrollTop=t.divElement.nativeElement.scrollHeight})},e.prototype.getClipboardContent=function(){return this.logs.reduce(function(e,t){return e+t.message+"\n"},"")},e}(),X=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;width:100%;height:100%}.x-term-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;position:relative}.x-term-wrapper[_ngcontent-%COMP%]{background-color:#000;overflow:auto;position:absolute;top:0;left:0;width:100%;height:100%}.copy-container-wrapper[_ngcontent-%COMP%]{position:absolute;top:2px;right:14px}.xterm-standard[_ngcontent-%COMP%]{color:#fff}.xterm-error[_ngcontent-%COMP%]{color:red}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-left:5px}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{content:'$ '}"]],data:{}});function ee(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"li",[],null,null,null,null,null)),o["\u0275did"](1,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngClass:[0,"ngClass"]},null),(e()(),o["\u0275eld"](2,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](3,null,["",""]))],function(e,t){e(t,1,0,t.context.$implicit.cssClass)},function(e,t){e(t,3,0,t.context.$implicit.message)})}function te(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{divElement:0}),(e()(),o["\u0275eld"](1,0,null,null,20,"div",[["class","x-term-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,[[1,0],["scrollMe",1]],null,7,"div",[["class","x-term-wrapper"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,4,"ul",[["class","list-unstyled"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ee)),o["\u0275did"](8,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,8,"div",[["class","copy-container-wrapper"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,5,"div",[["class","copy-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,2,"span",[["class","fa fa-2x fa-copy"],["data-placement","top"],["data-toggle","tooltip"],["ngxClipboard",""],["title","Copy to clipboard"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,17).onClick(n.target)&&i),i},null,null)),o["\u0275did"](17,212992,null,0,U,[j],{targetElm:[0,"targetElm"],cbContent:[1,"cbContent"]},null),o["\u0275did"](18,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.logs),e(t,17,0,"",n.getClipboardContent()),e(t,18,0,"Copy to clipboard")},function(e,t){e(t,16,0,o["\u0275nov"](t,18).placement)})}var ne=function(){function e(e){this.store=e}return e.prototype.ngOnInit=function(){this.flashFirmwareButtonDisbabled$=this.store.select(c.h),this.xtermLog$=this.store.select(c.A)},e.prototype.onRecoveryDevice=function(){this.store.dispatch(new s.g)},e}(),ie=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"]],data:{}});function oe(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,35,"div",[["class","full-height"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,32,"div",[["class","flex-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,19,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](6,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-wrench"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Fix device"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Your device seems to be broken. No worries, Agent can fix it.\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,5,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,2,"button",[["class","btn btn-primary"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onRecoveryDevice()&&i),i},null,null)),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["Fix device\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,5,"div",[["class","flex-grow"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](27,0,null,null,2,"xterm",[],null,null,null,te,X)),o["\u0275did"](28,573440,null,0,Z,[],{logs:[0,"logs"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](32,0,null,null,1,"div",[["class","flex-footer"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,28,0,o["\u0275unv"](t,28,0,o["\u0275nov"](t,29).transform(n.xtermLog$)))},function(e,t){var n=t.component;e(t,19,0,o["\u0275unv"](t,19,0,o["\u0275nov"](t,20).transform(n.flashFirmwareButtonDisbabled$)))})}var re=o["\u0275ccf"]("device-recovery-mode",ne,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"device-recovery-mode",[["class","container-fluid"]],null,null,null,oe,ie)),o["\u0275did"](1,114688,null,0,ne,[u.m],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),le=n("bfOx"),ue=function(){function e(){}return e.prototype.onActivate=function(e,t){t.scrollIntoView()},e}(),ae=o["\u0275crt"]({encapsulation:0,styles:["[_nghost-%COMP%]{height:100%; width:100%}"],data:{}});function se(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"div",[["class","split split-horizontal main-page-content"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,16777216,[["outlet",1]],null,1,"router-outlet",[],null,[[null,"activate"]],function(e,t,n){var i=!0;return"activate"===t&&(i=!1!==e.component.onActivate(n,o["\u0275nov"](e,2))&&i),i},null,null)),o["\u0275did"](3,212992,null,0,le.q,[le.b,o.ViewContainerRef,o.ComponentFactoryResolver,[8,null],o.ChangeDetectorRef],null,{activateEvents:"activate"}),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0)},null)}var ce=o["\u0275ccf"]("main-page",ue,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"main-page",[],null,null,null,se,ae)),o["\u0275did"](1,49152,null,0,ue,[],null,null)],null,null)},{},{},[]),de=function(){function e(){this.label="Select file",this.fileChanged=new o.EventEmitter}return e.prototype.changeFile=function(e){var t=e.srcElement.files;if(0!==t.length){var n=new FileReader;n.onloadend=(function(){var t=new Uint8Array(n.result);(e.target||e.srcElement||e.currentTarget).value=null,this.fileChanged.emit({filename:e.srcElement.value,data:Array.from(t)})}).bind(this),n.readAsArrayBuffer(t[0])}},e}(),pe=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function fe(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,3,"label",[["class","btn btn-primary btn-file"]],[[2,"disabled",null]],null,null,null,null)),(e()(),o["\u0275ted"](1,null,["\n ","\n "])),(e()(),o["\u0275eld"](2,0,[["inputControl",1]],null,0,"input",[["type","file"]],[[8,"accept",0],[8,"disabled",0]],[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.changeFile(n)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.disabled),e(t,1,0,n.label),e(t,2,0,n.accept,n.disabled)})}var he=function(){function e(){}return e.prototype.getAllStyles=function(e){return window.getComputedStyle(e)},e.prototype.getStyle=function(e,t){return this.getAllStyles(e)[t]},e.prototype.isStaticPositioned=function(e){return"static"===(this.getStyle(e,"position")||"static")},e.prototype.offsetParent=function(e){for(var t=e.offsetParent||document.documentElement;t&&t!==document.documentElement&&this.isStaticPositioned(t);)t=t.offsetParent;return t||document.documentElement},e.prototype.position=function(e,t){var n;void 0===t&&(t=!0);var i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(e,"position"))n=e.getBoundingClientRect();else{var o=this.offsetParent(e);n=this.offset(e,!1),o!==document.documentElement&&(i=this.offset(o,!1)),i.top+=o.clientTop,i.left+=o.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,t&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n},e.prototype.offset=function(e,t){void 0===t&&(t=!0);var n=e.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,o=window.pageXOffset-document.documentElement.clientLeft,r={height:n.height||e.offsetHeight,width:n.width||e.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+o,right:n.right+o};return t&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r},e.prototype.positionElements=function(e,t,n,i){var o=i?this.offset(e,!1):this.position(e,!1),r=this.getAllStyles(t),l=t.getBoundingClientRect(),u=n.split("-")[0]||"top",a=n.split("-")[1]||"center",s={height:l.height||t.offsetHeight,width:l.width||t.offsetWidth,top:0,bottom:l.height||t.offsetHeight,left:0,right:l.width||t.offsetWidth};switch(u){case"top":s.top=o.top-(t.offsetHeight+parseFloat(r.marginBottom));break;case"bottom":s.top=o.top+o.height;break;case"left":s.left=o.left-(t.offsetWidth+parseFloat(r.marginRight));break;case"right":s.left=o.left+o.width}switch(a){case"top":s.top=o.top;break;case"bottom":s.top=o.top+o.height-t.offsetHeight;break;case"left":s.left=o.left;break;case"right":s.left=o.left+o.width-t.offsetWidth;break;case"center":"top"===u||"bottom"===u?s.left=o.left+o.width/2-t.offsetWidth/2:s.top=o.top+o.height/2-t.offsetHeight/2}return s.top=Math.round(s.top),s.bottom=Math.round(s.bottom),s.left=Math.round(s.left),s.right=Math.round(s.right),s},e}();new he;var ye=function(){function e(e,t,n,i,r,l,u){this.viewContainerRef=e,this.elm=t,this.defaultOptions=n,this.cfr=i,this.position=r,this.renderer=l,this.document=u,this.isDisabled=!1,this.isOpen=!1,this.isOpenChange=new o.EventEmitter(!0),this.confirm=new o.EventEmitter,this.cancel=new o.EventEmitter,this.popover=null,this.eventListeners=[]}return e.prototype.ngOnInit=function(){this.isOpenChange.emit(!1)},e.prototype.ngOnChanges=function(e){e.isOpen&&(!0===e.isOpen.currentValue?this.showPopover():this.hidePopover())},e.prototype.ngOnDestroy=function(){this.hidePopover()},e.prototype.onConfirm=function(e){this.confirm.emit(e),this.hidePopover()},e.prototype.onCancel=function(e){this.cancel.emit(e),this.hidePopover()},e.prototype.togglePopover=function(){this.popover?this.hidePopover():this.showPopover()},e.prototype.onDocumentClick=function(e){!this.popover||this.elm.nativeElement.contains(e.target)||this.popover.location.nativeElement.contains(e.target)||this.hidePopover()},e.prototype.showPopover=function(){var e=this;if(!this.popover&&!this.isDisabled){this.eventListeners=[this.renderer.listen("document","click",function(t){return e.onDocumentClick(t)}),this.renderer.listen("document","touchend",function(t){return e.onDocumentClick(t)}),this.renderer.listen("window","resize",function(){return e.positionPopover()})];var t=new m;Object.assign(t,this.defaultOptions,{title:this.title,message:this.message,onConfirm:function(t){e.onConfirm(t)},onCancel:function(t){e.onCancel(t)},onAfterViewInit:function(){e.positionPopover()}}),["confirmText","cancelText","placement","confirmButtonType","cancelButtonType","focusButton","hideConfirmButton","hideCancelButton","popoverClass","appendToBody","customTemplate"].forEach(function(n){"undefined"!=typeof e[n]&&(t[n]=e[n])});var n=this.cfr.resolveComponentFactory(g),i=o.ReflectiveInjector.resolve([{provide:m,useValue:t}]),r=o.ReflectiveInjector.fromResolvedProviders(i,this.viewContainerRef.parentInjector);this.popover=this.viewContainerRef.createComponent(n,this.viewContainerRef.length,r),t.appendToBody&&this.document.body.appendChild(this.popover.location.nativeElement),this.isOpenChange.emit(!0)}},e.prototype.positionPopover=function(){if(this.popover){var e=this.popover.location.nativeElement.children[0],t=this.position.positionElements(this.elm.nativeElement,e,this.placement||this.defaultOptions.placement,this.appendToBody||this.defaultOptions.appendToBody);this.renderer.setStyle(e,"top",t.top+"px"),this.renderer.setStyle(e,"left",t.left+"px")}},e.prototype.hidePopover=function(){this.popover&&(this.popover.destroy(),this.popover=null,this.isOpenChange.emit(!1),this.eventListeners.forEach(function(e){return e()}),this.eventListeners=[])},e}(),me=n("at4H"),ge=function(){function e(e){this.store=e}return e.prototype.resetUserConfiguration=function(){this.store.dispatch(new s.i)},e.prototype.saveConfigurationInJSONFormat=function(){this.store.dispatch(new me.j)},e.prototype.saveConfigurationInBINFormat=function(){this.store.dispatch(new me.i)},e.prototype.exportUserConfiguration=function(e){e.shiftKey?this.saveConfigurationInBINFormat():this.saveConfigurationInJSONFormat()},e.prototype.changeFile=function(e){this.store.dispatch(new me.g(e))},e}(),ve=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"]],data:{}});function be(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Device configuration"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](8,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n The device configuration contains all the keymaps, macros, and settings that are stored on the device.\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](11,0,null,null,21,"ul",[["class","list-unstyled btn-list"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,4,"li",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](15,0,null,null,1,"button",[["class","btn btn-primary"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.exportUserConfiguration(n)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Export device configuration\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](21,0,null,null,2,"file-upload",[["label","Import device configuration"]],null,[[null,"fileChanged"]],function(e,t,n){var i=!0;return"fileChanged"===t&&(i=!1!==e.component.changeFile(n)&&i),i},fe,pe)),o["\u0275did"](22,49152,null,0,de,[],{label:[0,"label"]},{fileChanged:"fileChanged"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](26,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","bottom"],["title","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,t,n){var i=!0,r=e.component;return"click"===t&&(i=!1!==o["\u0275nov"](e,29).togglePopover()&&i),"confirm"===t&&(i=!1!==r.resetUserConfiguration()&&i),i},null,null)),o["\u0275did"](29,737280,null,0,ye,[o.ViewContainerRef,o.ElementRef,y,o.ComponentFactoryResolver,he,o.Renderer2,I.b],{title:[0,"title"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),o["\u0275ted"](-1,null,["Reset device configuration\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,22,0,"Import device configuration"),e(t,29,0,"Are you sure?","Yes","No","bottom")},null)}var ke=o["\u0275ccf"]("device-settings",ge,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"device-settings",[["class","container-fluid"]],null,null,null,be,ve)),o["\u0275did"](1,49152,null,0,ge,[u.m],null,null)],null,null)},{},{},[]),_e=function(){function e(){}return e.prototype.ngOnInit=function(){},e}(),we=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.action--edit[_ngcontent-%COMP%]:hover{color:#337ab7;cursor:pointer}.action--trash[_ngcontent-%COMP%]:hover{color:#d9534f;cursor:pointer}"]],data:{}});function Ae(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-option-vertical"]],null,null,null,null,null))],null,null)}function Te(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null))],null,null)}function Ce(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-pointer-o"]],null,null,null,null,null))],null,null)}function xe(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null))],null,null)}function Oe(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null))],null,null)}function Se(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null))],null,null)}function Me(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-clock-o"]],null,null,null,null,null))],null,null)}function Ee(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-font"]],null,null,null,null,null))],null,null)}function Pe(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","glyphicon glyphicon-trash action--trash"]],null,null,null,null,null))],null,null)}function Ie(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","glyphicon glyphicon-pencil action--edit"]],null,null,null,null,null))],null,null)}function Re(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-question-circle"]],null,null,null,null,null))],null,null)}function De(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,35,"div",[],null,null,null,null,null)),o["\u0275did"](1,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ae)),o["\u0275did"](4,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Te)),o["\u0275did"](7,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ce)),o["\u0275did"](10,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,xe)),o["\u0275did"](13,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Oe)),o["\u0275did"](16,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Se)),o["\u0275did"](19,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Me)),o["\u0275did"](22,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ee)),o["\u0275did"](25,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Pe)),o["\u0275did"](28,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ie)),o["\u0275did"](31,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Re)),o["\u0275did"](34,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,1,0,t.component.name),e(t,4,0,"option-vertical"),e(t,7,0,"square"),e(t,10,0,"hand-pointer"),e(t,13,0,"hand-rock"),e(t,16,0,"hand-paper"),e(t,19,0,"mouse-pointer"),e(t,22,0,"clock"),e(t,25,0,"font"),e(t,28,0,"trash"),e(t,31,0,"pencil"),e(t,34,0,"question-circle")},null)}var Ne=n("xA9i"),je=n("7DMc"),Le=o["\u0275crt"]({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: block;\n margin-top: 1rem;\n margin-bottom: 1rem;\n }"],data:{}});function Ue(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"div",[],[[1,"disabled",0]],null,null,null,null))],null,function(e,t){e(t,0,0,!!t.component.disabled||void 0)})}var Ve=n("rCTf"),Fe=(n("aV5h"),function(){function e(){this.onChange=new o.EventEmitter,this.changeDebounceTime=300,this.propagateChange=function(){}}return e.prototype.ngAfterViewInit=function(){this.pips&&this.slider.slider.pips(this.pips),this.slider.slider.target.querySelector(".noUi-tooltip").style.display="none",this.slider.slider.on("start",function(){this.target.querySelector(".noUi-tooltip").style.display="block"}),this.slider.slider.on("end",function(){this.target.querySelector(".noUi-tooltip").style.display="none"})},e.prototype.ngOnDestroy=function(){this.changeObserver$&&this.changeObserver$.complete()},e.prototype.writeValue=function(e){this.value=e||this.min},e.prototype.registerOnChange=function(e){this.propagateChange=e},e.prototype.registerOnTouched=function(){},e.prototype.onSliderChange=function(e){var t=this;this.changeObserver$?this.changeObserver$.next(e):Ve.Observable.create(function(e){t.changeObserver$=e}).debounceTime(this.changeDebounceTime).distinctUntilChanged().subscribe(this.propagateChange)},e}()),Ke=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] label[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .slider-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;padding-left:1.6rem}[_nghost-%COMP%] .slider-container[_ngcontent-%COMP%]{width:80%}[_nghost-%COMP%] .slider-value[_ngcontent-%COMP%]{width:20%}[_nghost-%COMP%] .value-indicator[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 3rem;vertical-align:middle}"]],data:{}});function Be(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["name","question-circle"]],[[1,"data-placement",0]],null,null,De,we)),o["\u0275did"](1,114688,null,0,_e,[],{name:[0,"name"]},null),o["\u0275did"](2,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"],html:[1,"html"]},null)],function(e,t){var n=t.component;e(t,1,0,"question-circle"),e(t,2,0,n.tooltip,"true")},function(e,t){e(t,0,0,o["\u0275nov"](t,2).placement)})}function He(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,6,"label",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Be)),o["\u0275did"](5,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.tooltip)},function(e,t){e(t,2,0,t.component.label)})}function We(e){return o["\u0275vid"](0,[o["\u0275qud"](402653184,1,{slider:0}),(e()(),o["\u0275and"](16777216,null,null,1,null,He)),o["\u0275did"](2,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](4,0,null,null,17,"div",[["class","slider-wrapper"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,8,"div",[["class","slider-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,5,"nouislider",[],[[2,"ng2-nouislider",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(o.value=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSliderChange(n)&&i),i},Ue,Le)),o["\u0275did"](9,638976,[[1,4]],0,Ne.NouisliderComponent,[o.ElementRef,o.Renderer2],{min:[0,"min"],max:[1,"max"],step:[2,"step"],ngModel:[3,"ngModel"],keyboard:[4,"keyboard"],tooltips:[5,"tooltips"]},null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Ne.NouisliderComponent]),o["\u0275did"](11,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](13,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,4,"div",[["class","slider-value"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](18,0,null,null,1,"div",[["class","value-indicator"]],null,null,null,null,null)),(e()(),o["\u0275ted"](19,null,[""," ",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.label),e(t,9,0,n.min,n.max,n.step,n.value,!0,!0),e(t,11,0,n.value)},function(e,t){var n=t.component;e(t,8,0,!0,o["\u0275nov"](t,13).ngClassUntouched,o["\u0275nov"](t,13).ngClassTouched,o["\u0275nov"](t,13).ngClassPristine,o["\u0275nov"](t,13).ngClassDirty,o["\u0275nov"](t,13).ngClassValid,o["\u0275nov"](t,13).ngClassInvalid,o["\u0275nov"](t,13).ngClassPending),e(t,19,0,n.value,n.valueUnit)})}var ze=n("gI3A"),$e=function(){function e(){this._defaultConfig=(new ze.UserConfiguration).fromJsonObject(n("Ftqy"))}return e.prototype.getDefault=function(){return this._defaultConfig},e}(),qe=25,Ge=function(){function e(e,t){this.store=e,this.defaultUserConfigurationService=t,this.moveProps=[{prop:"mouseMoveInitialSpeed",title:"Initial speed",tooltip:"When mouse movement begins, this is the starting speed.",valueUnit:"px/s",value:0},{prop:"mouseMoveBaseSpeed",title:"Base speed",tooltip:"This speed is reached after the initial moving speed sufficiently ramps up.",valueUnit:"px/s",value:0},{prop:"mouseMoveAcceleration",title:"Acceleration",tooltip:"The rate of acceleration from the initial movement speed to the base speed.",valueUnit:"px/s\xb2",value:0},{prop:"mouseMoveDeceleratedSpeed",title:"Decelerated speed",tooltip:"This speed is used while moving with the decelerate key pressed.",valueUnit:"px/s",value:0},{prop:"mouseMoveAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while moving with the accelerate key pressed.",valueUnit:"px/s",value:0}],this.scrollProps=[{prop:"mouseScrollInitialSpeed",title:"Initial speed",tooltip:"When mouse scrolling begins, this is the starting speed.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollBaseSpeed",title:"Base speed",tooltip:"This speed is reached after the initial scrolling speed sufficiently ramps up.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollAcceleration",title:"Acceleration",tooltip:"The rate of acceleration from the initial scrolling speed to the base speed.",valueUnit:"pulse/s\xb2",value:0},{prop:"mouseScrollDeceleratedSpeed",title:"Decelerated speed",tooltip:"This speed is used while scrolling with the decelerate key pressed.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while scrolling with the accelerate key pressed.",valueUnit:"pulse/s",value:0}],this.sliderPips={mode:"positions",values:[0,50,100],density:6,stepped:!0},this.moveSettings={min:qe,max:6375,step:qe},this.scrollSettings={min:1,max:255,step:1}}return e.prototype.ngOnInit=function(){var e=this;this.userConfig$=this.store.select(c.v),this.userConfigSubscription=this.userConfig$.subscribe(function(t){e.moveProps.forEach(function(e){e.value=t[e.prop]*qe||0}),e.scrollProps.forEach(function(e){e.value=t[e.prop]||0})})},e.prototype.ngOnDestroy=function(){this.userConfigSubscription.unsubscribe()},e.prototype.onSetPropertyValue=function(e,t){this.store.dispatch(new me.l({propertyName:e,value:-1!==e.indexOf("mouseMove")?t/qe:t}))},e.prototype.resetToDefault=function(){this.store.dispatch(new s.h)},e}(),Ye=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] label[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .mouse-speed-reset-button[_ngcontent-%COMP%]{display:block;margin-bottom:4rem}[_nghost-%COMP%] .mouse-speed-setting[_ngcontent-%COMP%]{margin-bottom:6rem}[_nghost-%COMP%] .mouse-speed-setting[_ngcontent-%COMP%] + h3[_ngcontent-%COMP%]{margin-top:2rem}"]],data:{}});function Qe(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,11,"div",[["class","row mouse-speed-setting"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,5,"slider-wrapper",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(e.context.$implicit.value=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSetPropertyValue(e.context.$implicit.prop,n)&&i),i},We,Ke)),o["\u0275did"](5,4374528,null,0,Fe,[],{label:[0,"label"],tooltip:[1,"tooltip"],min:[2,"min"],max:[3,"max"],step:[4,"step"],pips:[5,"pips"],valueUnit:[6,"valueUnit"]},null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),o["\u0275did"](7,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](9,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,t.context.$implicit.title,t.context.$implicit.tooltip,n.moveSettings.min,n.moveSettings.max,n.moveSettings.step,n.sliderPips,t.context.$implicit.valueUnit),e(t,7,0,t.context.$implicit.value)},function(e,t){e(t,4,0,o["\u0275nov"](t,9).ngClassUntouched,o["\u0275nov"](t,9).ngClassTouched,o["\u0275nov"](t,9).ngClassPristine,o["\u0275nov"](t,9).ngClassDirty,o["\u0275nov"](t,9).ngClassValid,o["\u0275nov"](t,9).ngClassInvalid,o["\u0275nov"](t,9).ngClassPending)})}function Je(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,11,"div",[["class","row mouse-speed-setting"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,5,"slider-wrapper",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(e.context.$implicit.value=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSetPropertyValue(e.context.$implicit.prop,n)&&i),i},We,Ke)),o["\u0275did"](5,4374528,null,0,Fe,[],{label:[0,"label"],tooltip:[1,"tooltip"],min:[2,"min"],max:[3,"max"],step:[4,"step"],pips:[5,"pips"],valueUnit:[6,"valueUnit"]},null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),o["\u0275did"](7,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](9,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,t.context.$implicit.title,t.context.$implicit.tooltip,n.scrollSettings.min,n.scrollSettings.max,n.scrollSettings.step,n.sliderPips,t.context.$implicit.valueUnit),e(t,7,0,t.context.$implicit.value)},function(e,t){e(t,4,0,o["\u0275nov"](t,9).ngClassUntouched,o["\u0275nov"](t,9).ngClassTouched,o["\u0275nov"](t,9).ngClassPristine,o["\u0275nov"](t,9).ngClassDirty,o["\u0275nov"](t,9).ngClassValid,o["\u0275nov"](t,9).ngClassInvalid,o["\u0275nov"](t,9).ngClassPending)})}function Ze(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Mouse speed"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Mouse pointer speed"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Qe)),o["\u0275did"](12,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](14,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Mouse scroll speed"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Je)),o["\u0275did"](18,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](20,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger mouse-speed-reset-button"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","top"],["title","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,t,n){var i=!0,r=e.component;return"click"===t&&(i=!1!==o["\u0275nov"](e,21).togglePopover()&&i),"confirm"===t&&(i=!1!==r.resetToDefault()&&i),i},null,null)),o["\u0275did"](21,737280,null,0,ye,[o.ViewContainerRef,o.ElementRef,y,o.ComponentFactoryResolver,he,o.Renderer2,I.b],{title:[0,"title"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),o["\u0275ted"](-1,null,["Reset speeds to default\n"]))],function(e,t){var n=t.component;e(t,12,0,n.moveProps),e(t,18,0,n.scrollProps),e(t,21,0,"Are you sure?","Yes","No","top")},null)}var Xe=o["\u0275ccf"]("device-mouse-speed",Ge,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"device-mouse-speed",[["class","container-fluid"]],null,null,null,Ze,Ye)),o["\u0275did"](1,245760,null,0,Ge,[u.m,$e],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),et=function(){function e(e){this.store=e,this.iconsAndLayerTextsBrightness=0,this.alphanumericSegmentsBrightness=0,this.keyBacklightBrightness=0,this.sliderPips={mode:"positions",values:[0,50,100],density:6,stepped:!0}}return e.prototype.ngOnInit=function(){var e=this;this.userConfig$=this.store.select(c.v),this.userConfigSubscription=this.userConfig$.subscribe(function(t){e.iconsAndLayerTextsBrightness=t.iconsAndLayerTextsBrightness,e.alphanumericSegmentsBrightness=t.alphanumericSegmentsBrightness,e.keyBacklightBrightness=t.keyBacklightBrightness})},e.prototype.ngOnDestroy=function(){this.userConfigSubscription.unsubscribe()},e.prototype.onSetPropertyValue=function(e,t){this.store.dispatch(new me.l({propertyName:e,value:t}))},e}(),tt=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:block;height:100%;width:100%}[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] .led-setting[_ngcontent-%COMP%]{margin-bottom:6rem}"]],data:{}});function nt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["LED brightness"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,5,"slider-wrapper",[["label","LED display icon and layer texts brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(o.iconsAndLayerTextsBrightness=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSetPropertyValue("iconsAndLayerTextsBrightness",n)&&i),i},We,Ke)),o["\u0275did"](13,4374528,null,0,Fe,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),o["\u0275did"](15,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](17,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](21,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,5,"slider-wrapper",[["label","LED display alphanumeric segments brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(o.alphanumericSegmentsBrightness=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSetPropertyValue("alphanumericSegmentsBrightness",n)&&i),i},We,Ke)),o["\u0275did"](26,4374528,null,0,Fe,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),o["\u0275did"](28,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](30,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](34,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](36,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](38,0,null,null,5,"slider-wrapper",[["label","Key backlight brightness Please note that current UHK versions are not backlit."]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(o.keyBacklightBrightness=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSetPropertyValue("keyBacklightBrightness",n)&&i),i},We,Ke)),o["\u0275did"](39,4374528,null,0,Fe,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),o["\u0275did"](41,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](43,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,13,0,"LED display icon and layer texts brightness",0,255,1,n.sliderPips),e(t,15,0,n.iconsAndLayerTextsBrightness),e(t,26,0,"LED display alphanumeric segments brightness",0,255,1,n.sliderPips),e(t,28,0,n.alphanumericSegmentsBrightness),e(t,39,0,"Key backlight brightness Please note that current UHK versions are not backlit.",0,255,1,n.sliderPips),e(t,41,0,n.keyBacklightBrightness)},function(e,t){e(t,12,0,o["\u0275nov"](t,17).ngClassUntouched,o["\u0275nov"](t,17).ngClassTouched,o["\u0275nov"](t,17).ngClassPristine,o["\u0275nov"](t,17).ngClassDirty,o["\u0275nov"](t,17).ngClassValid,o["\u0275nov"](t,17).ngClassInvalid,o["\u0275nov"](t,17).ngClassPending),e(t,25,0,o["\u0275nov"](t,30).ngClassUntouched,o["\u0275nov"](t,30).ngClassTouched,o["\u0275nov"](t,30).ngClassPristine,o["\u0275nov"](t,30).ngClassDirty,o["\u0275nov"](t,30).ngClassValid,o["\u0275nov"](t,30).ngClassInvalid,o["\u0275nov"](t,30).ngClassPending),e(t,38,0,o["\u0275nov"](t,43).ngClassUntouched,o["\u0275nov"](t,43).ngClassTouched,o["\u0275nov"](t,43).ngClassPristine,o["\u0275nov"](t,43).ngClassDirty,o["\u0275nov"](t,43).ngClassValid,o["\u0275nov"](t,43).ngClassInvalid,o["\u0275nov"](t,43).ngClassPending)})}var it=o["\u0275ccf"]("device-led-brightness",et,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"device-led-brightness",[["class","container-fluid"]],null,null,null,nt,tt)),o["\u0275did"](1,245760,null,0,et,[u.m],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),ot=function(){function e(e){var t=this;this.store=e,this.flashFirmwareButtonDisbabled$=e.select(c.h),this.xtermLog$=e.select(c.A),this.getAgentVersionInfo$=e.select(c.i),this.hardwareModulesSubscription=e.select(c.m).subscribe(function(e){t.hardwareModules=e}),this.runningOnNotSupportedWindows$=e.select(c.y),this.firmwareUpgradeAllowed$=e.select(c.e),this.firmwareUpgradeFailed$=e.select(c.f),this.firmwareUpgradeSuccess$=e.select(c.g)}return e.prototype.ngOnDestroy=function(){this.hardwareModulesSubscription.unsubscribe()},e.prototype.onUpdateFirmware=function(){this.store.dispatch(new s.s)},e.prototype.changeFile=function(e){this.store.dispatch(new s.w(e.data))},e.prototype.openFirmwareGitHubIssuePage=function(e){e.preventDefault(),this.store.dispatch(new F.h(ze.Constants.FIRMWARE_GITHUB_ISSUE_URL))},e}(),rt=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100vh;min-height:100%;width:100%}.link-github[_ngcontent-%COMP%]{cursor:pointer}"]],data:{}});function lt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Firmware update doesn't work on Windows 7, Windows Vista,\n and Windows XP. Use Windows 10, Windows 8, Linux, or OSX instead."]))],null,null)}function ut(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,10,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,3,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onUpdateFirmware()&&i),i},null,null)),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](4,null,["\n Flash firmware "," (bundled with Agent)\n "])),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,2,"file-upload",[["accept",".tar.bz2"],["label","Choose firmware file and flash it"]],null,[[null,"fileChanged"]],function(e,t,n){var i=!0;return"fileChanged"===t&&(i=!1!==e.component.changeFile(n)&&i),i},fe,pe)),o["\u0275did"](8,49152,null,0,de,[],{label:[0,"label"],disabled:[1,"disabled"],accept:[2,"accept"]},{fileChanged:"fileChanged"}),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,8,0,"Choose firmware file and flash it",o["\u0275unv"](t,8,1,o["\u0275nov"](t,9).transform(n.flashFirmwareButtonDisbabled$)),".tar.bz2")},function(e,t){var n=t.component;e(t,2,0,o["\u0275unv"](t,2,0,o["\u0275nov"](t,3).transform(n.flashFirmwareButtonDisbabled$))),e(t,4,0,o["\u0275unv"](t,4,0,o["\u0275nov"](t,5).transform(n.getAgentVersionInfo$)).firmwareVersion)})}function at(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,10,"div",[["class","alert alert-danger"],["role","alert"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Firmware update failed. Disconnect every USB device from your computer (including USB hubs, KVM switches, USB dongles, and everything else), then connect only your UHK and retry."])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](5,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["If you've tried the above and the update still keeps failing, please "])),(e()(),o["\u0275eld"](7,0,null,null,1,"a",[["class","link-github"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.openFirmwareGitHubIssuePage(n)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["create a GitHub issue"])),(e()(),o["\u0275ted"](-1,null,[", and attach the update log."])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,null)}function st(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"div",[["class","alert alert-success"],["role","alert"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Firmware update succeeded."])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,null)}function ct(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,5,"div",[["class","flex-grow"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,2,"xterm",[],null,null,null,te,X)),o["\u0275did"](3,573440,null,0,Z,[],{logs:[0,"logs"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,o["\u0275unv"](t,3,0,o["\u0275nov"](t,4).transform(n.xtermLog$)))},null)}function dt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,43,"div",[["class","full-height"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,40,"div",[["class","flex-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,30,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](6,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Firmware"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](14,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](15,null,["\n Firmware "," is running on the left keyboard half."])),(e()(),o["\u0275eld"](16,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),o["\u0275ted"](17,null,["\n Firmware "," is running on the right keyboard half.\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,lt)),o["\u0275did"](20,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,ut)),o["\u0275did"](24,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,at)),o["\u0275did"](28,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,st)),o["\u0275did"](32,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,ct)),o["\u0275did"](37,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](40,0,null,null,1,"div",[["class","flex-footer"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,20,0,o["\u0275unv"](t,20,0,o["\u0275nov"](t,21).transform(n.runningOnNotSupportedWindows$))),e(t,24,0,o["\u0275unv"](t,24,0,o["\u0275nov"](t,25).transform(n.firmwareUpgradeAllowed$))),e(t,28,0,o["\u0275unv"](t,28,0,o["\u0275nov"](t,29).transform(n.firmwareUpgradeFailed$))),e(t,32,0,o["\u0275unv"](t,32,0,o["\u0275nov"](t,33).transform(n.firmwareUpgradeSuccess$))),e(t,37,0,o["\u0275unv"](t,37,0,o["\u0275nov"](t,38).transform(n.firmwareUpgradeAllowed$)))},function(e,t){var n=t.component;e(t,15,0,n.hardwareModules.leftModuleInfo.firmwareVersion),e(t,17,0,n.hardwareModules.rightModuleInfo.firmwareVersion)})}var pt=o["\u0275ccf"]("device-firmware",ot,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"device-firmware",[["class","container-fluid"]],null,null,null,dt,rt)),o["\u0275did"](1,180224,null,0,ot,[u.m],null,null)],null,null)},{},{},[]),ft=function(){function e(e,t){this.store=e,this.cdRef=t}return e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(c.k).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.resetUserConfiguration=function(){this.store.dispatch(new s.i)},e.prototype.restoreUserConfiguration=function(){this.store.dispatch(new s.j)},e}(),ht=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"]],data:{}});function yt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.restoreUserConfiguration()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Restore the last valid device configuration\n"]))],null,function(e,t){e(t,0,0,t.component.state.restoringUserConfiguration)})}function mt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-danger"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.resetUserConfiguration()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Reset device configuration\n"]))],null,function(e,t){e(t,0,0,t.component.state.restoringUserConfiguration)})}function gt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-exclamation-circle"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Fix configuration"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](8,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Your on-board device configuration is invalid.\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,yt)),o["\u0275did"](12,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,mt)),o["\u0275did"](15,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,12,0,n.state.hasBackupUserConfiguration),e(t,15,0,!n.state.hasBackupUserConfiguration)},null)}var vt=o["\u0275ccf"]("restore-configuration",ft,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"restore-configuration",[["class","container-fluid"]],null,null,null,gt,ht)),o["\u0275did"](1,245760,null,0,ft,[u.m,o.ChangeDetectorRef],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),bt=function(){function e(){this.close=new o.EventEmitter,this.undo=new o.EventEmitter}return Object.defineProperty(e.prototype,"slideInOut",{get:function(){return this.notification?"in":"out"},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if(e.notification){var t=e.notification.currentValue;t&&(this.text=t.message,this.undoable=!!t.extra)}},e.prototype.clickOnClose=function(){this.close.emit()},e.prototype.clickOnUndo=function(){this.undo.emit(this.notification.extra)},e}(),kt=o["\u0275crt"]({encapsulation:0,styles:[[".alert[_ngcontent-%COMP%]{padding:5px 10px 5px 5px;margin-bottom:.25em;margin-top:-2em}.alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{right:-5px}.alert[_ngcontent-%COMP%] .undo-button[_ngcontent-%COMP%]{cursor:pointer}"]],data:{animation:[{type:7,name:"slideInOut",definitions:[{type:0,name:"in",styles:{type:6,styles:{transform:"translate3d(0, 0, 0)"},offset:null},options:void 0},{type:0,name:"out",styles:{type:6,styles:{transform:"translate3d(200%, 0, 0)"},offset:null},options:void 0},{type:1,expr:"in => out",animation:{type:4,styles:null,timings:"400ms ease-in-out"},options:null},{type:1,expr:"out => in",animation:{type:4,styles:null,timings:"400ms ease-in-out"},options:null}],options:{}}]}});function _t(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"a",[["class","undo-button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.clickOnUndo()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Undo"]))],null,null)}function wt(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,13,"div",[["class","pull-right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","alert alert-warning alert-dismissible"],["role","alert"]],[[24,"@slideInOut",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,4,"button",[["aria-label","Close"],["class","close"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.clickOnClose()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\xd7"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](9,null,["\n ","\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,_t)),o["\u0275did"](11,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,11,0,t.component.undoable)},function(e,t){var n=t.component;e(t,2,0,n.slideInOut),e(t,9,0,n.text)})}var At=function(){function e(e){this.store=e,this.undoableNotification$=this.store.select(c.u)}return e.prototype.onUndoLastNotification=function(e){this.store.dispatch(new F.m(e))},e.prototype.onDismissLastNotification=function(){this.store.dispatch(new F.d)},e}(),Tt=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Ct(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),o["\u0275ncd"](null,0),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](5,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,6,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,3,"undoable-notifier",[],null,[[null,"close"],[null,"undo"]],function(e,t,n){var i=!0,o=e.component;return"close"===t&&(i=!1!==o.onDismissLastNotification()&&i),"undo"===t&&(i=!1!==o.onUndoLastNotification(n)&&i),i},wt,kt)),o["\u0275did"](10,573440,null,0,bt,[],{notification:[0,"notification"]},{close:"close",undo:"undo"}),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"]))],function(e,t){var n=t.component;e(t,10,0,o["\u0275unv"](t,10,0,o["\u0275nov"](t,11).transform(n.undoableNotification$)))},null)}var xt=function(){function e(e,t){this.elementRef=e,this.renderer=t}return e.prototype.onFocus=function(){this.originalValue=this.elementRef.nativeElement.value},e.prototype.onEscape=function(){this.renderer.setElementProperty(this.elementRef.nativeElement,"value",this.originalValue),this.renderer.invokeElementMethod(this.elementRef.nativeElement,"blur")},e}(),Ot=n("WP8/"),St=n("Lt3n"),Mt='Delete keymap',Et=function(){function e(e,t){this.store=e,this.renderer=t,this.downloadClick=new o.EventEmitter,this.trashTitle=Mt}return e.prototype.ngOnChanges=function(e){e.keymap&&(this.setKeymapTitle(),this.setName(),this.setAbbreviation()),e.deletable&&this.setTrashTitle()},e.prototype.windowResize=function(){this.calculateHeaderTextWidth(this.keymap.name)},e.prototype.setDefault=function(){this.keymap.isDefault||this.store.dispatch(Ot.a.setDefault(this.keymap.abbreviation))},e.prototype.removeKeymap=function(){this.deletable&&this.store.dispatch(Ot.a.removeKeymap(this.keymap.abbreviation))},e.prototype.duplicateKeymap=function(){this.store.dispatch(Ot.a.duplicateKeymap(this.keymap))},e.prototype.editKeymapName=function(e){St.d(e)?this.store.dispatch(Ot.a.editKeymapName(this.keymap.abbreviation,e)):this.setName()},e.prototype.editKeymapAbbr=function(e){var t=new RegExp(/^[a-zA-Z\d]+$/g);e.length<1||e.length>3||!t.test(e)?this.setAbbreviation():(e=e.toUpperCase(),this.store.dispatch(Ot.a.editKeymapAbbr(this.keymap.name,this.keymap.abbreviation,e)))},e.prototype.setKeymapTitle=function(){this.starTitle=this.keymap.isDefault?"This is the default keymap which gets activated when powering the keyboard.":"Makes this keymap the default keymap which gets activated when powering the keyboard."},e.prototype.setTrashTitle=function(){this.trashTitle=this.deletable?Mt:'The last keymap cannot be deleted.'},e.prototype.onDownloadIconClick=function(){this.downloadClick.emit()},e.prototype.calculateHeaderTextWidth=function(e){var t=this.keymapName.nativeElement,n=t.parentElement.offsetWidth-530,i=St.b(window.getComputedStyle(t),e);this.renderer.setStyle(t,"width",Math.min(n,i)+"px")},e.prototype.setName=function(){this.renderer.setProperty(this.keymapName.nativeElement,"value",this.keymap.name),this.calculateHeaderTextWidth(this.keymap.name)},e.prototype.setAbbreviation=function(){this.renderer.setProperty(this.keymapAbbr.nativeElement,"value",this.keymap.abbreviation)},e}(),Pt=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:block}.keymap__is-default.fa-star-o[_ngcontent-%COMP%]{cursor:pointer}.keymap__is-default.fa-star-o[_ngcontent-%COMP%]:hover{color:#337ab7}.keymap__remove[_ngcontent-%COMP%]{font-size:.75em;top:8px}.keymap__remove[_ngcontent-%COMP%]:not(.disabled):hover{cursor:pointer;color:#900}.keymap__remove.disabled[_ngcontent-%COMP%]{opacity:.25}.keymap__duplicate[_ngcontent-%COMP%]{font-size:.75em;top:7px;margin-right:15px;position:relative}.keymap__duplicate[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.keymap__download[_ngcontent-%COMP%]{top:10px;font-size:.8em;position:relative;margin-right:10px}.keymap__download[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.pane-title[_ngcontent-%COMP%]{margin-bottom:1em}.pane-title__abbrev[_ngcontent-%COMP%], .pane-title__name[_ngcontent-%COMP%]{border:none;border-bottom:2px dotted #999;padding:0;margin:0 .25rem}.pane-title__abbrev[_ngcontent-%COMP%]:focus, .pane-title__name[_ngcontent-%COMP%]:focus{-webkit-box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent}.pane-title__name[_ngcontent-%COMP%]{width:290px;text-overflow:ellipsis}.pane-title__abbrev[_ngcontent-%COMP%]{width:90px;text-align:center}"]],data:{}});function It(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{keymapName:0}),o["\u0275qud"](402653184,2,{keymapAbbr:0}),(e()(),o["\u0275eld"](2,0,null,null,28,"uhk-header",[],null,null,null,Ct,Tt)),o["\u0275did"](3,49152,null,0,At,[u.m],null,null),(e()(),o["\u0275ted"](-1,0,["\n "])),(e()(),o["\u0275eld"](5,0,null,0,24,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,21,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,[[1,0],["name",1]],null,1,"input",[["cancelable",""],["class","keymap__name pane-title__name"],["type","text"]],null,[[null,"change"],[null,"keyup.enter"],[null,"keyup"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var i=!0,r=e.component;return"focus"===t&&(i=!1!==o["\u0275nov"](e,12).onFocus()&&i),"keyup.escape"===t&&(i=!1!==o["\u0275nov"](e,12).onEscape()&&i),"change"===t&&(i=!1!==r.editKeymapName(n.target.value)&&i),"keyup.enter"===t&&(i=!1!==o["\u0275nov"](e,11).blur()&&i),"keyup"===t&&(i=!1!==r.calculateHeaderTextWidth(n.target.value)&&i),i},null,null)),o["\u0275did"](12,16384,null,0,xt,[o.ElementRef,o.Renderer],null,null),(e()(),o["\u0275ted"](-1,null,[" keymap\n ("])),(e()(),o["\u0275eld"](14,0,[[2,0],["abbr",1]],null,1,"input",[["cancelable",""],["class","keymap__abbrev pane-title__abbrev"],["type","text"]],[[1,"maxLength",0]],[[null,"change"],[null,"keyup.enter"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var i=!0,r=e.component;return"focus"===t&&(i=!1!==o["\u0275nov"](e,15).onFocus()&&i),"keyup.escape"===t&&(i=!1!==o["\u0275nov"](e,15).onEscape()&&i),"change"===t&&(i=!1!==r.editKeymapAbbr(n.target.value)&&i),"keyup.enter"===t&&(i=!1!==o["\u0275nov"](e,14).blur()&&i),i},null,null)),o["\u0275did"](15,16384,null,0,xt,[o.ElementRef,o.Renderer],null,null),(e()(),o["\u0275ted"](-1,null,[")\n "])),(e()(),o["\u0275eld"](17,0,null,null,3,"i",[["class","fa keymap__is-default"],["data-placement","bottom"],["data-toggle","tooltip"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.setDefault()&&i),i},null,null)),o["\u0275did"](18,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o["\u0275pod"](19,{"fa-star-o":0,"fa-star":1}),o["\u0275did"](20,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,1,"i",[["class","glyphicon glyphicon-trash keymap__remove pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["html","true"]],[[2,"disabled",null],[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.removeKeymap()&&i),i},null,null)),o["\u0275did"](23,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,1,"i",[["class","fa fa-files-o keymap__duplicate pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["title","Duplicate keymap"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.duplicateKeymap()&&i),i},null,null)),o["\u0275did"](26,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,0,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,18,0,"fa keymap__is-default",e(t,19,0,!n.keymap.isDefault,n.keymap.isDefault)),e(t,20,0,n.starTitle),e(t,23,0,n.trashTitle,"true"),e(t,26,0,"Duplicate keymap")},function(e,t){var n=t.component;e(t,14,0,3),e(t,17,0,o["\u0275nov"](t,20).placement),e(t,22,0,!n.deletable,o["\u0275nov"](t,23).placement),e(t,25,0,o["\u0275nov"](t,26).placement)})}var Rt=function(){function e(){this.select=new o.EventEmitter,this.buttons=["Base","Mod","Fn","Mouse"],this.current=0}return e.prototype.selectLayer=function(e){this.current!==e&&(this.select.emit({oldIndex:this.current,index:e}),this.current=e)},e}(),Dt=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:block}.disabled[_nghost-%COMP%] button[_ngcontent-%COMP%]{cursor:no-drop;background:rgba(204,204,204,.43);pointer-events:none}.disabled[_nghost-%COMP%] button.btn-primary[_ngcontent-%COMP%]{background:#7c7c7c;border-color:#7c7c7c}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]{position:relative;margin-bottom:2rem}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]:before{content:attr(data-title);display:inline-block;position:absolute;bottom:.55em;right:100%;font-size:18px;padding-right:.45em;margin:0}"]],data:{}});function Nt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.selectLayer(e.context.index)&&i),i},null,null)),(e()(),o["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.context.index===t.component.current),e(t,1,0,t.context.$implicit)})}function jt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,7,"div",[["class","text-center"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,4,"span",[["class","uhk__layer-switcher--wrapper btn-group btn-group-lg"],["data-title","Layers: "],["role","group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Nt)),o["\u0275did"](5,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.buttons)},null)}var Lt=function(){function e(){}return e.prototype.ngOnInit=function(){this.svgWidth=this.width/3,this.svgHeight=this.height/3},e}(),Ut=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Vt(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon,n.svgWidth,n.svgHeight,n.svgWidth,n.svgHeight)})}var Ft=function(){function e(){}return e.prototype.ngOnInit=function(){this.textY=this.height/2,this.spanX=this.width/2},e}(),Kt=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Bt(e){return o["\u0275vid"](2,[(e()(),o["\u0275ted"](-1,null,[" "])),(e()(),o["\u0275eld"](1,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,1,":svg:tspan",[["dy","0"]],[[1,"x",0]],null,null,null,null)),(e()(),o["\u0275ted"](4,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,1,0,0,n.textY,"middle"),e(t,3,0,n.spanX),e(t,4,0,n.text)})}var Ht=function(){function e(){this.spanYs=[]}return e.prototype.ngOnInit=function(){this.textY=this.height/2,this.spanX=this.width/2;for(var e=0;e"]),this.basicScanCodeTextMap.set(56,["/","?"]),this.basicScanCodeTextMap.set(57,["Caps Lock"]),this.basicScanCodeTextMap.set(58,["F1"]),this.basicScanCodeTextMap.set(59,["F2"]),this.basicScanCodeTextMap.set(60,["F3"]),this.basicScanCodeTextMap.set(61,["F4"]),this.basicScanCodeTextMap.set(62,["F5"]),this.basicScanCodeTextMap.set(63,["F6"]),this.basicScanCodeTextMap.set(64,["F7"]),this.basicScanCodeTextMap.set(65,["F8"]),this.basicScanCodeTextMap.set(66,["F9"]),this.basicScanCodeTextMap.set(67,["F10"]),this.basicScanCodeTextMap.set(68,["F11"]),this.basicScanCodeTextMap.set(69,["F12"]),this.basicScanCodeTextMap.set(70,["PrtScn"]),this.basicScanCodeTextMap.set(71,["Scroll Lock"]),this.basicScanCodeTextMap.set(72,["Pause"]),this.basicScanCodeTextMap.set(73,["Insert"]),this.basicScanCodeTextMap.set(74,["Home"]),this.basicScanCodeTextMap.set(75,["PgUp"]),this.basicScanCodeTextMap.set(76,["Del"]),this.basicScanCodeTextMap.set(77,["End"]),this.basicScanCodeTextMap.set(78,["PgDn"]),this.basicScanCodeTextMap.set(79,["Right Arrow"]),this.basicScanCodeTextMap.set(80,["Left Arrow"]),this.basicScanCodeTextMap.set(81,["Down Arrow"]),this.basicScanCodeTextMap.set(82,["Up Arrow"]),this.basicScanCodeTextMap.set(83,["Num Lock"]),this.basicScanCodeTextMap.set(84,["/"]),this.basicScanCodeTextMap.set(85,["*"]),this.basicScanCodeTextMap.set(86,["-"]),this.basicScanCodeTextMap.set(87,["+"]),this.basicScanCodeTextMap.set(88,[this.getOsSpecificText("Enter")]),this.basicScanCodeTextMap.set(89,["end","1"]),this.basicScanCodeTextMap.set(90,["2"]),this.basicScanCodeTextMap.set(91,["pgdn","3"]),this.basicScanCodeTextMap.set(92,["4"]),this.basicScanCodeTextMap.set(93,["5"]),this.basicScanCodeTextMap.set(94,["6"]),this.basicScanCodeTextMap.set(95,["home","7"]),this.basicScanCodeTextMap.set(96,["8"]),this.basicScanCodeTextMap.set(97,["pgup","9"]),this.basicScanCodeTextMap.set(98,["Insert","0"]),this.basicScanCodeTextMap.set(99,["Del","."]),this.basicScanCodeTextMap.set(100,["ISO key","|"]),this.basicScanCodeTextMap.set(101,["Menu"]),this.basicScanCodeTextMap.set(104,["F13"]),this.basicScanCodeTextMap.set(105,["F14"]),this.basicScanCodeTextMap.set(106,["F15"]),this.basicScanCodeTextMap.set(107,["F16"]),this.basicScanCodeTextMap.set(108,["F17"]),this.basicScanCodeTextMap.set(109,["F18"]),this.basicScanCodeTextMap.set(110,["F19"]),this.basicScanCodeTextMap.set(111,["F20"]),this.basicScanCodeTextMap.set(112,["F21"]),this.basicScanCodeTextMap.set(113,["F22"]),this.basicScanCodeTextMap.set(114,["F23"]),this.basicScanCodeTextMap.set(115,["F24"]),this.basicScanCodeTextMap.set(176,["00"]),this.basicScanCodeTextMap.set(177,["000"]),this.mediaScanCodeTextMap=new Map,this.mediaScanCodeTextMap.set(138,["WWW"]),this.mediaScanCodeTextMap.set(176,["Play"]),this.mediaScanCodeTextMap.set(177,["Pause"]),this.mediaScanCodeTextMap.set(181,["Next"]),this.mediaScanCodeTextMap.set(182,["Prev"]),this.mediaScanCodeTextMap.set(183,["Stop"]),this.mediaScanCodeTextMap.set(184,["Eject"]),this.mediaScanCodeTextMap.set(204,["Eject","Stop"]),this.mediaScanCodeTextMap.set(205,["Pause","Play"]),this.mediaScanCodeTextMap.set(226,["Mute"]),this.mediaScanCodeTextMap.set(233,["Vol +"]),this.mediaScanCodeTextMap.set(234,["Vol -"]),this.mediaScanCodeTextMap.set(406,["Launch Web Browser"]),this.mediaScanCodeTextMap.set(394,["Launch Email Client"]),this.mediaScanCodeTextMap.set(402,["Launch Calculator"]),this.systemScanCodeTextMap=new Map,this.systemScanCodeTextMap.set(129,["Power Down"]),this.systemScanCodeTextMap.set(130,["Sleep"]),this.systemScanCodeTextMap.set(131,["Wake Up"])},e.prototype.initScancodeIcons=function(){this.basicScancodeIcons=new Map,this.basicScancodeIcons.set(79,"icon-kbd__mod--arrow-right"),this.basicScancodeIcons.set(80,"icon-kbd__mod--arrow-left"),this.basicScancodeIcons.set(81,"icon-kbd__mod--arrow-down"),this.basicScancodeIcons.set(82,"icon-kbd__mod--arrow-up"),this.basicScancodeIcons.set(101,"icon-kbd__mod--menu"),this.mediaScancodeIcons=new Map,this.mediaScancodeIcons.set(138,"icon-kbd__fn--browser"),this.mediaScancodeIcons.set(176,"icon-kbd__media--play"),this.mediaScancodeIcons.set(177,"icon-kbd__media--pause"),this.mediaScancodeIcons.set(181,"icon-kbd__media--next"),this.mediaScancodeIcons.set(182,"icon-kbd__media--prev"),this.mediaScancodeIcons.set(184,"icon-kbd__fn--eject"),this.mediaScancodeIcons.set(226,"icon-kbd__media--mute"),this.mediaScancodeIcons.set(233,"icon-kbd__media--vol-up"),this.mediaScancodeIcons.set(234,"icon-kbd__media--vol-down"),this.mediaScancodeIcons.set(406,"icon-kbd__media--web-browser"),this.mediaScancodeIcons.set(394,"icon-kbd__media--email-client"),this.mediaScancodeIcons.set(402,"icon-kbd__media--calculator"),this.systemScancodeIcons=new Map,this.systemScancodeIcons.set(129,"icon-kbd__system_power_down"),this.systemScancodeIcons.set(130,"icon-kbd__system_sleep"),this.systemScancodeIcons.set(131,"icon-kbd__system_wake_up")},e.prototype.initNameToFileNames=function(){this.nameToFileName=new Map,this.nameToFileName.set("toggle","icon-kbd__fn--toggle"),this.nameToFileName.set("double-tap","icon-kbd__fn--double-tap"),this.nameToFileName.set("switch-keymap","icon-kbd__mod--switch-keymap"),this.nameToFileName.set("macro","icon-icon__macro"),this.nameToFileName.set("shift","icon-kbd__default--modifier-shift"),this.operatingSystem===qt.a.Mac?(this.nameToFileName.set("option","icon-kbd__default--modifier-option"),this.nameToFileName.set("command","icon-kbd__default--modifier-command")):this.operatingSystem===qt.a.Windows&&this.nameToFileName.set("command","icon-kbd__default--modifier-windows"),this.nameToFileName.set("mouse","icon-kbd__mouse"),this.nameToFileName.set("left-arrow","icon-kbd__mod--arrow-left"),this.nameToFileName.set("right-arrow","icon-kbd__mod--arrow-right"),this.nameToFileName.set("down-arrow","icon-kbd__mod--arrow-down"),this.nameToFileName.set("up-arrow","icon-kbd__mod--arrow-up"),this.nameToFileName.set("scroll-left","icon-kbd__mouse--scroll-left"),this.nameToFileName.set("scroll-right","icon-kbd__mouse--scroll-right"),this.nameToFileName.set("scroll-down","icon-kbd__mouse--scroll-down"),this.nameToFileName.set("scroll-up","icon-kbd__mouse--scroll-up")},e}(),Yt=function(){this.width=0,this.height=0,this.x=0,this.y=0,this.disabled=!0},Qt=function(){function e(e){this.mapper=e,this.modifierIconNames={},this.textContainer=new Yt,this.modifierContainer=new Yt,this.shift=new Yt,this.control=new Yt,this.option=new Yt,this.command=new Yt}return e.prototype.ngOnInit=function(){if(this.viewBox=[0,0,this.width,this.height].join(" "),this.modifierIconNames.shift=this.mapper.getIcon("shift"),this.modifierIconNames.option=this.mapper.getIcon("option"),this.modifierIconNames.command=this.mapper.getIcon("command"),this.width<1.8*this.height){var e=this.width/4,t=this.height,n=(o=.8)*(this.height/this.width)*e,i=o*t;this.modifierContainer.width=this.width,this.modifierContainer.height=this.height/5,this.modifierContainer.y=this.height-this.modifierContainer.height,this.shift.width=n,this.shift.height=i,this.shift.x=(e-n)/2,this.shift.y=(t-i)/2,this.control.width=n,this.control.height=i,this.control.x=this.shift.x+e,this.control.y=this.shift.y,this.option.width=n,this.option.height=i,this.option.x=this.control.x+e,this.option.y=this.shift.y,this.command.width=n,this.command.height=i,this.command.x=this.option.x+e,this.command.y=this.shift.y,this.textContainer.y=-this.modifierContainer.height/2}else{this.modifierContainer.width=this.width/4,this.modifierContainer.height=this.height,this.modifierContainer.x=this.width-this.modifierContainer.width;var o,r=Math.min(this.modifierContainer.width/2,this.modifierContainer.height/2);i=(o=.8)*this.height*(r/this.modifierContainer.height),this.shift.width=n=o*this.width*(r/this.modifierContainer.width),this.shift.height=i,this.shift.x=this.width/4-n/2,this.shift.y=this.height/4-i/2,this.control.width=n,this.control.height=i,this.control.x=this.shift.x+this.width/2,this.control.y=this.shift.y,this.option.width=n,this.option.height=i,this.option.x=this.shift.x,this.option.y=this.shift.y+this.height/2,this.command.width=n,this.command.height=i,this.command.x=this.option.x+this.width/2,this.command.y=this.option.y,this.textContainer.x=-this.modifierContainer.width/2}this.textContainer.width=this.width,this.textContainer.height=this.height},e.prototype.ngOnChanges=function(){if(this.keystrokeAction.hasScancode()){var e,t=this.keystrokeAction.scancode;this.labelSource=this.mapper.scanCodeToSvgImagePath(t,this.keystrokeAction.type),this.labelSource?this.labelType="icon":(e=this.mapper.scanCodeToText(t,this.keystrokeAction.type))&&(1===e.length?(this.labelSource=e[0],this.labelType="one-line"):(this.labelSource=e,this.labelType="two-line"))}else this.labelType="empty";this.shift.disabled=!this.keystrokeAction.isActive(ze.KeyModifiers.leftShift|ze.KeyModifiers.rightShift),this.control.disabled=!this.keystrokeAction.isActive(ze.KeyModifiers.leftCtrl|ze.KeyModifiers.rightCtrl),this.option.disabled=!this.keystrokeAction.isActive(ze.KeyModifiers.leftAlt|ze.KeyModifiers.rightAlt),this.command.disabled=!this.keystrokeAction.isActive(ze.KeyModifiers.leftGui|ze.KeyModifiers.rightGui)},e}(),Jt=o["\u0275crt"]({encapsulation:0,styles:[[".disabled[_ngcontent-%COMP%]{fill:gray}text[_ngcontent-%COMP%]{font-size:100px}"]],data:{}});function Zt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-single-icon-key",""]],null,null,null,Vt,Ut)),o["\u0275did"](1,114688,null,0,Lt,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function Xt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-one-line-text-key",""]],null,null,null,Bt,Kt)),o["\u0275did"](1,114688,null,0,Ft,[],{height:[0,"height"],width:[1,"width"],text:[2,"text"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function en(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-two-line-text-key",""]],null,null,null,$t,Wt)),o["\u0275did"](1,114688,null,0,Ht,[],{height:[0,"height"],width:[1,"width"],texts:[2,"texts"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function tn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,t){e(t,0,0,t.component.modifierIconNames.option)})}function nn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:text",[],[[1,"text-anchor",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["A"]))],null,function(e,t){e(t,0,0,"middle",50,50)})}function on(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,t){e(t,0,0,t.component.modifierIconNames.command)})}function rn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:text",[],[[1,"text-anchor",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["S"]))],null,function(e,t){e(t,0,0,"middle",50,50)})}function ln(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,11,":svg:svg",[],[[1,"viewBox",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),o["\u0275did"](1,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Zt)),o["\u0275did"](4,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Xt)),o["\u0275did"](7,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,en)),o["\u0275did"](10,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](13,0,null,null,30,":svg:svg",[["preserveAspectRatio","none"]],[[1,"viewBox",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](15,0,null,null,3,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](20,0,null,null,4,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,1,":svg:text",[],[[1,"text-anchor",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["C"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](26,0,null,null,7,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,tn)),o["\u0275did"](29,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,nn)),o["\u0275did"](32,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](35,0,null,null,7,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,on)),o["\u0275did"](38,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,rn)),o["\u0275did"](41,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.labelType),e(t,4,0,"icon"),e(t,7,0,"one-line"),e(t,10,0,"two-line"),e(t,29,0,n.modifierIconNames.option),e(t,32,0,!n.modifierIconNames.option),e(t,38,0,n.modifierIconNames.command),e(t,41,0,!n.modifierIconNames.command)},function(e,t){var n=t.component;e(t,0,0,n.viewBox,n.textContainer.width,n.textContainer.height,n.textContainer.x,n.textContainer.y),e(t,13,0,n.viewBox,n.modifierContainer.width,n.modifierContainer.height,n.modifierContainer.x,n.modifierContainer.y),e(t,15,0,n.shift.width,n.shift.height,n.shift.x,n.shift.y,n.shift.disabled),e(t,17,0,n.modifierIconNames.shift),e(t,20,0,n.control.width,n.control.height,n.control.x,n.control.y,n.control.disabled),e(t,22,0,"middle",50,50),e(t,26,0,n.option.width,n.option.height,n.option.x,n.option.y,n.option.disabled),e(t,35,0,n.command.width,n.command.height,n.command.x,n.command.y,n.command.disabled)})}var un=function(){function e(){}return e.prototype.ngOnInit=function(){this.useWidth=this.width/3,this.useHeight=this.height/3,this.useX=this.width>2*this.height?.6*this.width:this.width/3,this.useY=this.width>2*this.height?this.height/3:this.height/2,this.textY=this.width>2*this.height?this.height/2:this.height/3,this.textAnchor=this.width>2*this.height?"end":"middle",this.spanX=this.width>2*this.height?.6*this.width:this.width/2},e}(),an=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function sn(e){return o["\u0275vid"](2,[(e()(),o["\u0275ted"](-1,null,[" "])),(e()(),o["\u0275eld"](1,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),o["\u0275ted"](4,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](7,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,1,0,0,n.textY,n.textAnchor),e(t,3,0,n.spanX),e(t,4,0,n.text),e(t,7,0,n.icon,n.useWidth,n.useHeight,n.useX,n.useY)})}var cn=function(){function e(){}return e.prototype.ngOnInit=function(){this.useWidth=this.width/3,this.useHeight=this.height/3,this.useX=this.width>2*this.height?0:this.width/3,this.useY=this.width>2*this.height?this.height/3:this.height/10,this.textY=this.width>2*this.height?this.height/2:.6*this.height,this.spanX=this.width>2*this.height?.6*this.width:this.width/2},e}(),dn=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function pn(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),o["\u0275ted"](6,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon,n.useWidth,n.useHeight,n.useX,n.useY),e(t,3,0,0,n.textY,"middle",11),e(t,5,0,n.spanX),e(t,6,0,n.text)})}var fn=function(){function e(e){this.mapperService=e}return e.prototype.ngOnInit=function(){this.icon=this.mapperService.getIcon("switch-keymap"),this.useWidth=this.width/4,this.useHeight=this.height/4,this.useX=3*this.width/8,this.useY=this.height/5,this.textY=2*this.height/3,this.spanX=this.width/2},e}(),hn=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function yn(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),o["\u0275ted"](6,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon,n.useWidth,n.useHeight,n.useX,n.useY),e(t,3,0,0,n.textY,"middle"),e(t,5,0,n.spanX),e(t,6,0,n.abbreviation)})}var mn=function(){function e(e){this.mapper=e,this.icon=this.mapper.getIcon("mouse")}return e.prototype.ngOnInit=function(){},e}(),gn=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function vn(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:use",[["height","20"],["width","20"],["x","10"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Click "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](9,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,1,":svg:tspan",[["dy","70"]],null,null,null,null,null)),(e()(),o["\u0275ted"](12,null,[" "," "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon),e(t,3,0,60,0,"middle",25),e(t,9,0,50,0,"middle",25),e(t,12,0,n.button)})}var bn=function(){function e(e){this.mapper=e}return e.prototype.ngOnChanges=function(){this.mouseIcon=this.mapper.getIcon("mouse"),this.directionIcon=this.mapper.getIcon(this.direction+"-arrow")},e}(),kn=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function _n(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,0,":svg:use",[["height","20"],["width","20"],["x","8"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](2,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Move "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,0,":svg:use",[["height","30"],["width","30"],["x","35"],["y","55"]],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n.mouseIcon),e(t,2,0,60,0,"middle",24),e(t,8,0,n.directionIcon)})}var wn=function(){function e(e){this.mapper=e}return e.prototype.ngOnChanges=function(){this.mouseIcon=this.mapper.getIcon("mouse"),this.directionIcon=this.mapper.getIcon("scroll-"+this.direction)},e}(),An=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Tn(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,0,":svg:use",[["height","20"],["width","20"],["x","8"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](2,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Scroll "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,0,":svg:use",[["height","30"],["width","30"],["x","35"],["y","55"]],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n.mouseIcon),e(t,2,0,60,0,"middle",24),e(t,8,0,n.directionIcon)})}var Cn=function(){function e(e){this.mapper=e,this.icon=this.mapper.getIcon("mouse")}return e.prototype.ngOnChanges=function(){this.sign=this.plus?"+":"-"},e}(),xn=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function On(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:use",[["height","20"],["width","20"],["x","4"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Speed "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](9,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,1,":svg:tspan",[["dy","70"]],null,null,null,null,null)),(e()(),o["\u0275ted"](12,null,[" "," "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon),e(t,3,0,60,0,"middle",25),e(t,9,0,50,0,"middle",30),e(t,12,0,n.sign)})}var Sn=function(){function e(){}return e.prototype.ngOnChanges=function(){switch(this.mouseAction.mouseAction){case ze.MouseActionParam.leftClick:this.type="click",this.param="Left";break;case ze.MouseActionParam.rightClick:this.type="click",this.param="Right";break;case ze.MouseActionParam.middleClick:this.type="click",this.param="Middle";break;case ze.MouseActionParam.scrollDown:this.type="scroll",this.param="down";break;case ze.MouseActionParam.scrollLeft:this.type="scroll",this.param="left";break;case ze.MouseActionParam.scrollRight:this.type="scroll",this.param="right";break;case ze.MouseActionParam.scrollUp:this.type="scroll",this.param="up";break;case ze.MouseActionParam.moveDown:this.type="move",this.param="down";break;case ze.MouseActionParam.moveLeft:this.type="move",this.param="left";break;case ze.MouseActionParam.moveRight:this.type="move",this.param="right";break;case ze.MouseActionParam.moveUp:this.type="move",this.param="up";break;case ze.MouseActionParam.accelerate:this.type="speed",this.param=!0;break;case ze.MouseActionParam.decelerate:this.type="speed",this.param=!1}},e}(),Mn=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function En(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-click-key",""]],null,null,null,vn,gn)),o["\u0275did"](1,114688,null,0,mn,[Gt],{button:[0,"button"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function Pn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-move-key",""]],null,null,null,_n,kn)),o["\u0275did"](1,573440,null,0,bn,[Gt],{direction:[0,"direction"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function In(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-scroll-key",""]],null,null,null,Tn,An)),o["\u0275did"](1,573440,null,0,wn,[Gt],{direction:[0,"direction"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function Rn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-speed-key",""]],null,null,null,On,xn)),o["\u0275did"](1,573440,null,0,Cn,[Gt],{plus:[0,"plus"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function Dn(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,14,":svg:g",[],null,null,null,null,null)),o["\u0275did"](1,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,En)),o["\u0275did"](4,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Pn)),o["\u0275did"](7,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,In)),o["\u0275did"](10,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Rn)),o["\u0275did"](13,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,1,0,t.component.type),e(t,4,0,"click"),e(t,7,0,"move"),e(t,10,0,"scroll"),e(t,13,0,"speed")},null)}var Nn=function(){function e(){this.leftModifiers=new Map,this.rightModifiers=new Map,this.mapping=new Map}return e.prototype.getMap=function(e){return this.mapping.get(e)},e.prototype.hasMap=function(e){return this.mapping.has(e)},e.prototype.setModifier=function(e,t){return e?this.leftModifiers.set(t,!0):this.rightModifiers.set(t,!0)},e.prototype.getModifiers=function(e){return this.reMap(e?this.leftModifiers:this.rightModifiers)},e.prototype.initModifiers=function(){this.leftModifiers.set(16,!1),this.leftModifiers.set(17,!1),this.leftModifiers.set(18,!1),this.leftModifiers.set(91,!1),this.rightModifiers.set(16,!1),this.rightModifiers.set(17,!1),this.rightModifiers.set(18,!1),this.rightModifiers.set(91,!1)},e.prototype.populateMapping=function(){this.mapping.set(8,42),this.mapping.set(9,43),this.mapping.set(13,40),this.mapping.set(19,72),this.mapping.set(20,57),this.mapping.set(27,41),this.mapping.set(32,44),this.mapping.set(33,75),this.mapping.set(34,78),this.mapping.set(35,77),this.mapping.set(36,74),this.mapping.set(37,80),this.mapping.set(38,82),this.mapping.set(39,79),this.mapping.set(40,81),this.mapping.set(45,73),this.mapping.set(46,76),this.mapping.set(48,39),this.mapping.set(49,30),this.mapping.set(50,31),this.mapping.set(51,32),this.mapping.set(52,33),this.mapping.set(53,34),this.mapping.set(54,35),this.mapping.set(55,36),this.mapping.set(56,37),this.mapping.set(57,38),this.mapping.set(65,4),this.mapping.set(66,5),this.mapping.set(67,6),this.mapping.set(68,7),this.mapping.set(69,8),this.mapping.set(70,9),this.mapping.set(71,10),this.mapping.set(72,11),this.mapping.set(73,12),this.mapping.set(74,13),this.mapping.set(75,14),this.mapping.set(76,15),this.mapping.set(77,16),this.mapping.set(78,17),this.mapping.set(79,18),this.mapping.set(80,19),this.mapping.set(81,20),this.mapping.set(82,21),this.mapping.set(83,22),this.mapping.set(84,23),this.mapping.set(85,24),this.mapping.set(86,25),this.mapping.set(87,26),this.mapping.set(88,27),this.mapping.set(89,28),this.mapping.set(90,29),this.mapping.set(93,101),this.mapping.set(96,98),this.mapping.set(97,89),this.mapping.set(98,90),this.mapping.set(99,91),this.mapping.set(100,92),this.mapping.set(101,93),this.mapping.set(102,94),this.mapping.set(103,95),this.mapping.set(104,96),this.mapping.set(105,97),this.mapping.set(106,85),this.mapping.set(107,87),this.mapping.set(109,86),this.mapping.set(110,99),this.mapping.set(111,84),this.mapping.set(112,58),this.mapping.set(113,59),this.mapping.set(114,60),this.mapping.set(115,61),this.mapping.set(116,62),this.mapping.set(117,63),this.mapping.set(118,64),this.mapping.set(119,65),this.mapping.set(120,66),this.mapping.set(121,67),this.mapping.set(122,68),this.mapping.set(123,69),this.mapping.set(144,83),this.mapping.set(145,71),this.mapping.set(186,51),this.mapping.set(187,46),this.mapping.set(188,54),this.mapping.set(189,45),this.mapping.set(190,55),this.mapping.set(191,56),this.mapping.set(192,53),this.mapping.set(219,47),this.mapping.set(220,49),this.mapping.set(221,48),this.mapping.set(222,52)},e.prototype.reMap=function(e){return[e.get(16),e.get(17),e.get(91),e.get(18)]},e}(),jn=n("yqBA"),Ln=function(e){return e[e.KeystrokeKey=0]="KeystrokeKey",e[e.MouseKey=1]="MouseKey",e[e.OneLineText=2]="OneLineText",e[e.TwoLineText=3]="TwoLineText",e[e.TextIcon=4]="TextIcon",e[e.SingleIcon=5]="SingleIcon",e[e.SwitchKeymap=6]="SwitchKeymap",e[e.IconText=7]="IconText",e}({}),Un=function(){function e(e,t,n,i,r){var l=this;this.mapper=e,this.element=n,this.captureService=i,this.renderer=r,this.keyClick=new o.EventEmitter,this.capture=new o.EventEmitter,this.enumLabelTypes=Ln,this.changeAnimation="inactive",this.pressedShiftLocation=-1,this.pressedAltLocation=-1,this.altPressed=!1,this.shiftPressed=!1,this.subscription=t.let(Object(jn.d)()).subscribe(function(e){return l.macros=e}),this.reset(),this.captureService.populateMapping(),this.scanCodePressed=!1}return e.prototype.onClick=function(){this.reset(),this.keyClick.emit({keyTarget:this.element.nativeElement,shiftPressed:this.pressedShiftLocation>-1,altPressed:this.pressedAltLocation>-1}),this.pressedShiftLocation=-1,this.pressedAltLocation=-1},e.prototype.onMouseDown=function(e){2!==e.which&&2!==e.button||!this.capturingEnabled||(e.preventDefault(),this.renderer.invokeElementMethod(this.element.nativeElement,"focus"),this.recording?this.reset():(this.recording=!0,this.recordAnimation="active",this.pressedShiftLocation>-1&&(this.shiftPressed=!0),this.pressedAltLocation>-1&&(this.altPressed=!0)))},e.prototype.onKeyUp=function(e){18===e.keyCode&&this.pressedAltLocation>-1?(this.pressedAltLocation=-1,e.preventDefault()):16===e.keyCode&&this.pressedShiftLocation>-1?(this.pressedShiftLocation=-1,e.preventDefault()):this.scanCodePressed?(e.preventDefault(),this.scanCodePressed=!1):this.recording&&(e.preventDefault(),this.saveScanCode())},e.prototype.onKeyDown=function(e){var t=e.keyCode;this.recording?(e.preventDefault(),this.captureService.hasMap(t)?(this.pressedShiftLocation>-1&&this.captureService.setModifier(1===this.pressedShiftLocation,16),this.pressedAltLocation>-1&&this.captureService.setModifier(1===this.pressedAltLocation,18),this.saveScanCode(this.captureService.getMap(t)),this.scanCodePressed=!0):this.captureService.setModifier(1===e.location,t)):(16===e.keyCode&&(this.pressedShiftLocation=e.location),18===e.keyCode&&(this.pressedAltLocation=e.location))},e.prototype.onFocusOut=function(){this.reset()},e.prototype.ngOnInit=function(){this.setLabels()},e.prototype.ngOnChanges=function(e){e.keyAction&&(this.setLabels(),this.keybindAnimationEnabled&&(this.changeAnimation="active"))},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.onChangeAnimationDone=function(){this.changeAnimation="inactive"},e.prototype.onRecordingAnimationDone=function(){this.recordAnimation=this.recording&&"inactive"===this.recordAnimation?"active":"inactive"},e.prototype.reset=function(){this.recording=!1,this.changeAnimation="inactive",this.captureService.initModifiers(),this.shiftPressed=!1,this.altPressed=!1},e.prototype.saveScanCode=function(e){void 0===e&&(e=0);var t=this.captureService.getModifiers(!0),n=this.captureService.getModifiers(!1);this.capture.emit({captured:{code:e,left:t,right:n},shiftPressed:this.shiftPressed,altPressed:this.altPressed}),this.reset()},e.prototype.setLabels=function(){if(!this.keyAction)return this.labelSource=void 0,void(this.labelType=Ln.OneLineText);if(this.labelType=Ln.OneLineText,this.keyAction instanceof ze.KeystrokeAction){var e=void 0;if(!(n=this.keyAction).hasActiveModifier()&&n.hasScancode()){var t=n.scancode;e=this.mapper.scanCodeToText(t,n.type),this.mapper.hasScancodeIcon(t,n.type)?(this.labelSource=this.mapper.scanCodeToSvgImagePath(t,n.type),this.labelType=Ln.SingleIcon):void 0!==e&&(1===e.length?(this.labelSource=e[0],this.labelType=Ln.OneLineText):(this.labelSource=e,this.labelType=Ln.TwoLineText))}else if(n.hasOnlyOneActiveModifier()&&!n.hasScancode())switch(n.modifierMask){case ze.KeyModifiers.leftCtrl:case ze.KeyModifiers.rightCtrl:this.labelSource=["Ctrl"];break;case ze.KeyModifiers.leftShift:case ze.KeyModifiers.rightShift:this.labelSource=["Shift"];break;case ze.KeyModifiers.leftAlt:case ze.KeyModifiers.rightAlt:this.labelSource=[this.mapper.getOsSpecificText("Alt")];break;case ze.KeyModifiers.leftGui:case ze.KeyModifiers.rightGui:this.mapper.getOperatingSystem()===qt.a.Windows?(this.labelSource=this.mapper.getIcon("command"),this.labelType=Ln.SingleIcon):this.labelSource=[this.mapper.getOsSpecificText("Super")];break;default:this.labelSource=["Undefined"]}else this.labelType=Ln.KeystrokeKey,this.labelSource=this.keyAction}else if(this.keyAction instanceof ze.SwitchLayerAction){switch(e=void 0,(n=this.keyAction).layer){case ze.LayerName.mod:e="Mod";break;case ze.LayerName.fn:e="Fn";break;case ze.LayerName.mouse:e="Mouse"}n.switchLayerMode===ze.SwitchLayerMode.toggle?(this.labelType=Ln.TextIcon,this.labelSource={text:e,icon:this.mapper.getIcon("toggle")}):n.switchLayerMode===ze.SwitchLayerMode.holdAndDoubleTapToggle?(this.labelType=Ln.TextIcon,this.labelSource={text:e,icon:this.mapper.getIcon("double-tap")}):(this.labelType=Ln.OneLineText,this.labelSource=e)}else if(this.keyAction instanceof ze.SwitchKeymapAction){var n=this.keyAction;this.labelType=Ln.SwitchKeymap,this.labelSource=n.keymapAbbreviation}else if(this.keyAction instanceof ze.PlayMacroAction){var i=this.keyAction,o=this.macros.find(function(e){return e.id===i.macroId});this.labelType=Ln.IconText,this.labelSource={icon:this.mapper.getIcon("macro"),text:o.name}}else this.keyAction instanceof ze.MouseAction?(this.labelType=Ln.MouseKey,this.labelSource=this.keyAction):this.labelSource=void 0},e}(),Vn=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{cursor:pointer;outline:0}[_nghost-%COMP%] text{dominant-baseline:central}[_nghost-%COMP%]:hover{fill:#494949}"]],data:{animation:[{type:7,name:"change",definitions:[{type:1,expr:"inactive => active",animation:[{type:6,styles:{fill:"#fff"},offset:null},{type:3,steps:[{type:4,styles:{type:6,styles:{fill:"#333"},offset:null},timings:"1s ease-out"}],options:null}],options:null}],options:{}},{type:7,name:"active",definitions:[{type:0,name:"1",styles:{type:6,styles:{fill:"#4099e5"},offset:null},options:void 0},{type:1,expr:"1 => *",animation:{type:4,styles:null,timings:"200ms"},options:null},{type:1,expr:"* => 1",animation:{type:4,styles:null,timings:"0ms"},options:null}],options:{}},{type:7,name:"recording",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{fill:"rgba(204, 0, 0, 1)"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{fill:"rgba(204, 0, 0, 0.6)"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"600ms ease-in-out"},options:null}],options:{}}]}});function Fn(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,0,":svg:circle",[],[[24,"@recording",0],[1,"cx",0],[1,"cy",0],[1,"r",0],[1,"fill",0]],[[null,"@recording.done"]],function(e,t,n){var i=!0;return"@recording.done"===t&&(i=!1!==e.component.onRecordingAnimationDone()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,1,0,n.recordAnimation,n.width/2,n.height/2,10,"#c00")})}function Kn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-keystroke-key",""]],null,null,null,ln,Jt)),o["\u0275did"](1,638976,null,0,Qt,[Gt],{height:[0,"height"],width:[1,"width"],keystrokeAction:[2,"keystrokeAction"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function Bn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-one-line-text-key",""]],null,null,null,Bt,Kt)),o["\u0275did"](1,114688,null,0,Ft,[],{height:[0,"height"],width:[1,"width"],text:[2,"text"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function Hn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-two-line-text-key",""]],null,null,null,$t,Wt)),o["\u0275did"](1,114688,null,0,Ht,[],{height:[0,"height"],width:[1,"width"],texts:[2,"texts"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function Wn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-text-icon-key",""]],null,null,null,sn,an)),o["\u0275did"](1,114688,null,0,un,[],{width:[0,"width"],height:[1,"height"],text:[2,"text"],icon:[3,"icon"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource.text,n.labelSource.icon)},null)}function zn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-icon-text-key",""]],null,null,null,pn,dn)),o["\u0275did"](1,114688,null,0,cn,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"],text:[3,"text"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource.icon,n.labelSource.text)},null)}function $n(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-single-icon-key",""]],null,null,null,Vt,Ut)),o["\u0275did"](1,114688,null,0,Lt,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function qn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-switch-keymap-key",""]],null,null,null,yn,hn)),o["\u0275did"](1,114688,null,0,fn,[Gt],{width:[0,"width"],height:[1,"height"],abbreviation:[2,"abbreviation"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function Gn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,":svg:svg",[],[[1,"viewBox",0],[1,"width",0],[1,"height",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,":svg:g",[["svg-mouse-key",""]],null,null,null,Dn,Mn)),o["\u0275did"](3,573440,null,0,Sn,[],{mouseAction:[0,"mouseAction"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,t.component.labelSource)},function(e,t){var n=t.component;e(t,0,0,"0 0 100 100",n.width,n.height)})}function Yn(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,26,":svg:g",[],[[1,"font-size",0],[1,"font-family",0],[1,"fill",0]],null,null,null,null)),o["\u0275did"](2,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Kn)),o["\u0275did"](5,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Bn)),o["\u0275did"](8,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Hn)),o["\u0275did"](11,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Wn)),o["\u0275did"](14,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,zn)),o["\u0275did"](17,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,$n)),o["\u0275did"](20,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,qn)),o["\u0275did"](23,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Gn)),o["\u0275did"](26,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.labelType),e(t,5,0,n.enumLabelTypes.KeystrokeKey),e(t,8,0,n.enumLabelTypes.OneLineText),e(t,11,0,n.enumLabelTypes.TwoLineText),e(t,14,0,n.enumLabelTypes.TextIcon),e(t,17,0,n.enumLabelTypes.IconText),e(t,20,0,n.enumLabelTypes.SingleIcon),e(t,23,0,n.enumLabelTypes.SwitchKeymap),e(t,26,0,n.enumLabelTypes.MouseKey)},function(e,t){e(t,1,0,19,"Helvetica","white")})}function Qn(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,0,":svg:rect",[],[[24,"@change",0],[24,"@active",0],[8,"id",0],[1,"rx",0],[1,"ry",0],[1,"height",0],[1,"width",0]],[[null,"@change.done"]],function(e,t,n){var i=!0;return"@change.done"===t&&(i=!1!==e.component.onChangeAnimationDone()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Fn)),o["\u0275did"](3,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Yn)),o["\u0275did"](6,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.recording),e(t,6,0,!n.recording)},function(e,t){var n=t.component;e(t,0,0,n.changeAnimation,n.active,n.id,n.rx,n.ry,n.height,n.width)})}var Jn=function(){function e(e){this.sanitizer=e}return e.prototype.transform=function(e){return this.sanitizer.bypassSecurityTrustStyle(e)},e}(),Zn=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n")},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.text!==e&&(this.text=e,this.cdr.markForCheck())},e.prototype.registerOnChange=function(e){this.textChange=e},e.prototype.registerOnTouched=function(e){},e.prototype.saveText=function(){this.originalText=null,this.editing=!1,this.textChange(this.text)},e.prototype.editText=function(){this.originalText=this.text,this.editing=!0},e.prototype.cancelEditText=function(){this.text=this.originalText,this.editing=!1},e.prototype.keydownEnter=function(){this.isSaveDisabled||this.saveText()},Object.defineProperty(e.prototype,"showPlaceholder",{get:function(){return!this.editing&&!this.text},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showText",{get:function(){return!this.editing&&!!this.text},enumerable:!0,configurable:!0}),e}(),ui=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{margin-top:.5em}[_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%]{color:gray;display:inline-block}[_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%] .glyphicon[_ngcontent-%COMP%]{color:#000}[_nghost-%COMP%] span.editable[_ngcontent-%COMP%], [_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%] textarea.text-editor[_ngcontent-%COMP%]{display:block;width:100%}[_nghost-%COMP%] .buttons[_ngcontent-%COMP%]{margin-top:.5em}"]],data:{}});function ai(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"span",[["class","placeholder"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"span",[],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.editText()&&i),i},null,null)),(e()(),o["\u0275ted"](3,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,3,0,t.component.placeholder)})}function si(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"span",[["class","editable"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"span",[],[[8,"innerHTML",1]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.editText()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,2,0,t.component.displayText)})}function ci(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,18,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"textarea",[["autofocus",""],["class","text-editor"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keydown.control.enter"],[null,"keydown.alt.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,3)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,3).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,3)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,3)._compositionEnd(n.target.value)&&i),"ngModelChange"===t&&(i=!1!==(r.text=n)&&i),"keydown.control.enter"===t&&(i=!1!==r.keydownEnter()&&i),"keydown.alt.enter"===t&&(i=!1!==r.keydownEnter()&&i),i},null,null)),o["\u0275did"](3,16384,null,0,je.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.DefaultValueAccessor]),o["\u0275did"](5,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](7,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),o["\u0275did"](8,4276224,null,0,ri,[o.ElementRef],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,7,"div",[["class","pull-right buttons"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,1,"button",[["class","btn btn-danger"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.cancelEditText()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n Cancel\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](15,0,null,null,1,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.saveText()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n Update description\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.text),e(t,8,0)},function(e,t){var n=t.component;e(t,2,0,o["\u0275nov"](t,7).ngClassUntouched,o["\u0275nov"](t,7).ngClassTouched,o["\u0275nov"](t,7).ngClassPristine,o["\u0275nov"](t,7).ngClassDirty,o["\u0275nov"](t,7).ngClassValid,o["\u0275nov"](t,7).ngClassInvalid,o["\u0275nov"](t,7).ngClassPending),e(t,15,0,n.isSaveDisabled)})}function di(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,7,"div",[["class","text-center"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ai)),o["\u0275did"](3,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,si)),o["\u0275did"](6,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,ci)),o["\u0275did"](10,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.showPlaceholder),e(t,6,0,n.showText),e(t,10,0,n.editing)},null)}var pi=function(e){var t,n=e.rect.map(function(e){return e.$});this.keyboardKeys=[];for(var i=0;i *",animation:{type:4,styles:null,timings:500},options:null}],options:{}},{type:7,name:"fadeSeparator",definitions:[{type:0,name:"visible",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:0,name:"invisible",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:1,expr:"visible => invisible",animation:{type:4,styles:null,timings:500},options:null},{type:1,expr:"invisible => visible",animation:{type:4,styles:null,timings:1500},options:null}],options:{}}]}});function vi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-module",""]],[[1,"transform",0],[24,"@split",0]],[[null,"keyClick"],[null,"keyHover"],[null,"capture"]],function(e,t,n){var i=!0,o=e.component;return"keyClick"===t&&(i=!1!==o.onKeyClick(e.context.index,n)&&i),"keyHover"===t&&(i=!1!==o.onKeyHover(n.index,n.event,n.over,e.context.index)&&i),"capture"===t&&(i=!1!==o.onCapture(e.context.index,n)&&i),i},oi,ei)),o["\u0275did"](1,49152,null,0,Xn,[],{coverages:[0,"coverages"],keyboardKeys:[1,"keyboardKeys"],keyActions:[2,"keyActions"],selectedKey:[3,"selectedKey"],selected:[4,"selected"],keybindAnimationEnabled:[5,"keybindAnimationEnabled"],capturingEnabled:[6,"capturingEnabled"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture"})],function(e,t){var n=t.component;e(t,1,0,t.context.$implicit.coverages,t.context.$implicit.keyboardKeys,n.moduleConfig[t.context.index].keyActions,n.selectedKey,(null==n.selectedKey?null:n.selectedKey.moduleId)===t.context.index,n.keybindAnimationEnabled,n.capturingEnabled)},function(e,t){e(t,0,0,t.context.$implicit.attributes.transform,t.component.moduleAnimationStates[t.context.index])})}function bi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,5,"editable-text",[["placeholder","No description provided for this keymap."]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0;return"ngModelChange"===t&&(i=!1!==e.component.descriptionChanged.emit(n)&&i),i},di,ui)),o["\u0275did"](1,49152,null,0,li,[o.ChangeDetectorRef],{placeholder:[0,"placeholder"]},null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[li]),o["\u0275did"](3,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](5,16384,null,0,je.NgControlStatus,[je.NgControl],null,null)],function(e,t){var n=t.component;e(t,1,0,"No description provided for this keymap."),e(t,3,0,n.description)},function(e,t){e(t,0,0,o["\u0275nov"](t,5).ngClassUntouched,o["\u0275nov"](t,5).ngClassTouched,o["\u0275nov"](t,5).ngClassPristine,o["\u0275nov"](t,5).ngClassDirty,o["\u0275nov"](t,5).ngClassValid,o["\u0275nov"](t,5).ngClassInvalid,o["\u0275nov"](t,5).ngClassPending)})}function ki(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,6,":svg:svg",[["height","100%"],["width","100%"],["xmlns","http://www.w3.org/2000/svg"]],[[1,"viewBox",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,vi)),o["\u0275did"](3,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](5,0,null,null,0,":svg:path",[],[[24,"@fadeSeparator",0],[1,"d",0],[1,"style",2]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,bi)),o["\u0275did"](9,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.modules),e(t,9,0,n.showDescription)},function(e,t){var n=t.component;e(t,0,0,n.viewBox),e(t,5,0,n.separatorAnimation,n.separator.d,n.separatorStyle)})}var _i=function(){function e(){this.keyboardLayout=fi.a.ANSI,this.keyClick=new o.EventEmitter,this.keyHover=new o.EventEmitter,this.capture=new o.EventEmitter,this.descriptionChanged=new o.EventEmitter}return e.prototype.ngOnChanges=function(e){e.layers&&(this.layerAnimationState=this.layers.map(function(){return"initOut"}),this.layerAnimationState[this.currentLayer]="init");var t=e.currentLayer;if(t)if(e.layers);else{var n=t.isFirstChange()?t.currentValue:t.previousValue;this.onLayerChange(n,t.currentValue)}},e.prototype.trackKeyboard=function(e){return e},e.prototype.onLayerChange=function(e,t){t>e?(this.layerAnimationState[e]="leftOut",this.layerAnimationState[t]="leftIn"):(this.layerAnimationState[e]="rightOut",this.layerAnimationState[t]="rightIn")},e}(),wi=o["\u0275crt"]({encapsulation:0,styles:[["svg-keyboard[_ngcontent-%COMP%]{width:95%;max-width:1400px;position:absolute;left:0;-webkit-transform:translateX(-101%);transform:translateX(-101%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}"]],data:{animation:[{type:7,name:"layerState",definitions:[{type:0,name:"init",styles:{type:6,styles:{transform:"translateX(-50%)",left:"50%"},offset:null},options:void 0},{type:0,name:"initOut",styles:{type:6,styles:{transform:"translateX(0)",left:"101%"},offset:null},options:void 0},{type:0,name:"leftIn, rightIn",styles:{type:6,styles:{transform:"translateX(-50%)",left:"50%"},offset:null},options:void 0},{type:0,name:"leftOut",styles:{type:6,styles:{transform:"translateX(-101%)",left:"0"},offset:null},options:void 0},{type:0,name:"rightOut",styles:{type:6,styles:{transform:"translateX(0)",left:"101%"},offset:null},options:void 0},{type:1,expr:"initOut => leftIn, leftOut => leftIn, rightOut => leftIn",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(0%)",left:"101%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"init => leftOut, leftIn => leftOut, rightIn => leftOut",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-101%)",left:"0%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"* => rightIn",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-101%)",left:"0%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"* => rightOut",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:0},offset:null},{type:6,styles:{transform:"translateX(0%)",left:"101%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:":leave",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{opacity:1,offset:0},offset:null},{type:6,styles:{opacity:0,offset:1},offset:null}]},timings:"2000ms ease-out"}],options:null}],options:{}}]}});function Ai(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"svg-keyboard",[["oncontextmenu","return false;"]],[[24,"@layerState",0]],[[null,"keyClick"],[null,"keyHover"],[null,"capture"],[null,"descriptionChanged"]],function(e,t,n){var i=!0,o=e.component;return"keyClick"===t&&(i=!1!==o.keyClick.emit(n)&&i),"keyHover"===t&&(i=!1!==o.keyHover.emit(n)&&i),"capture"===t&&(i=!1!==o.capture.emit(n)&&i),"descriptionChanged"===t&&(i=!1!==o.descriptionChanged.emit(n)&&i),i},ki,gi)),o["\u0275did"](1,638976,null,0,mi,[hi,I.c],{moduleConfig:[0,"moduleConfig"],keybindAnimationEnabled:[1,"keybindAnimationEnabled"],capturingEnabled:[2,"capturingEnabled"],selectedKey:[3,"selectedKey"],selected:[4,"selected"],halvesSplit:[5,"halvesSplit"],keyboardLayout:[6,"keyboardLayout"],description:[7,"description"],showDescription:[8,"showDescription"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"}),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,t.context.$implicit.modules,n.keybindAnimationEnabled,n.capturingEnabled,n.selectedKey,(null==n.selectedKey?null:n.selectedKey.layerId)===t.context.index,n.halvesSplit,n.keyboardLayout,n.description,!0)},function(e,t){e(t,0,0,t.component.layerAnimationState[t.context.index])})}function Ti(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,1,null,Ai)),o["\u0275did"](1,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.layers,n.trackKeyboard)},null)}var Ci=n("TToO"),xi=n("Eh6b"),Oi=n("EEr4"),Si=n("TfWX"),Mi=(n("AGQa"),n("S35O"),n("1APj"),n("qp8k"),n("HcJ8"),n("7axH"),n("wUn1"),n("WQmy"),n("EGMK"),n("+pb+"),n("EnA3"),n("M4fF")),Ei=xi,Pi=function(){function e(e,t,n,i,o){void 0===o&&(o=null),this.value=e,this.text=t,this.disabled=n,this.data=i,this._parent=o,this.type="option",this.cacheRenderedText=null}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),e.prototype.renderText=function(e,t){return this.cacheHighlightText===t&&null!==this.cacheRenderedText||(this.cacheHighlightText=t,this.cacheRenderedText=e.bypassSecurityTrustHtml(this.cacheHighlightText?(this.text+"").replace(new RegExp(Ei(this.cacheHighlightText),"gi"),"$&"):this.text)),this.cacheRenderedText},e}(),Ii=function(){function e(e,t){void 0===t&&(t=[]),this.label=e,this.options=t,this.type="optgroup",this.filter(function(){return!0})}return e.prototype.filter=function(e){this.optionsFiltered=this.options.filter(function(t){return e(t)})},e}(),Ri=function(e){this.template=e},Di=Mi,Ni=xi,ji=new o.InjectionToken("NGX_SELECT_OPTIONS"),Li=function(){var e={first:0,previous:1,next:2,last:3,firstSelected:4,firstIfOptionActiveInvisible:5};return e[e.first]="first",e[e.previous]="previous",e[e.next]="next",e[e.last]="last",e[e.firstSelected]="firstSelected",e[e.firstIfOptionActiveInvisible]="firstIfOptionActiveInvisible",e}();function Ui(e,t){return t in e}var Vi=function(){function e(e,t,n,i){var r,l=this;this.sanitizer=t,this.cd=n,this.optionValueField="id",this.optionTextField="text",this.optGroupLabelField="label",this.optGroupOptionsField="options",this.multiple=!1,this.allowClear=!1,this.placeholder="",this.noAutoComplete=!1,this.disabled=!1,this.defaultValue=[],this.autoSelectSingleOption=!1,this.autoClearSearch=!1,this.noResultsFound="No results found",this.size="default",this.autoActiveOnMouseEnter=!0,this.keyCodeToRemoveSelected="Delete",this.keyCodeToOptionsOpen="Enter",this.keyCodeToOptionsClose="Escape",this.keyCodeToOptionsSelect="Enter",this.keyCodeToNavigateFirst="ArrowLeft",this.keyCodeToNavigatePrevious="ArrowUp",this.keyCodeToNavigateNext="ArrowDown",this.keyCodeToNavigateLast="ArrowRight",this.typed=new o.EventEmitter,this.focus=new o.EventEmitter,this.blur=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.select=new o.EventEmitter,this.remove=new o.EventEmitter,this.navigated=new o.EventEmitter,this.selectionChanges=new o.EventEmitter,this.optionsOpened=!1,this.actualValue=[],this.subjOptions=new Si.BehaviorSubject([]),this.subjSearchText=new Si.BehaviorSubject(""),this.subjOptionsSelected=new Si.BehaviorSubject([]),this.subjExternalValue=new Si.BehaviorSubject([]),this.subjDefaultValue=new Si.BehaviorSubject([]),this.subjRegisterOnChange=new Oi.Subject,this._focusToInput=!1,this.isFocused=!1,this.onChange=function(e){return e},this.onTouched=function(){return null},Object.assign(this,i),this.itemsDiffer=e.find([]).create(null),this.defaultValueDiffer=e.find([]).create(null),this.typed.subscribe(function(e){return l.subjSearchText.next(e)}),this.subjOptionsSelected.subscribe(function(e){return l.selectionChanges.emit(e)});var u=this.subjExternalValue.map(function(e){return r=null===e?[]:[].concat(e)}).merge(this.subjOptionsSelected.map(function(e){return e.map(function(e){return e.value})})).combineLatest(this.subjDefaultValue,function(e,t){var n=Di.isEqual(e,t)?[]:e;return n.length?n:t}).distinctUntilChanged(function(e,t){return Di.isEqual(e,t)}).share();u.combineLatest(this.subjRegisterOnChange,function(e){return e}).subscribe(function(e){l.actualValue=e,Di.isEqual(e,r)||(r=e,l.onChange(l.multiple?e:e.length?e[0]:null))}),this.subjOptions.flatMap(function(e){return Ve.Observable.from(e).flatMap(function(e){return e instanceof Pi?Ve.Observable.of(e):e instanceof Ii?Ve.Observable.from(e.options):Ve.Observable.empty()}).toArray()}).combineLatest(u,function(e,t){var n,i,o=[];try{for(var r=Ci.__values(e),u=r.next();!u.done;u=r.next()){var a=u.value;t.indexOf(a.value)>-1&&o.push(a)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}Di.isEqual(o,l.subjOptionsSelected.value)||(l.subjOptionsSelected.next(o),l.cd.markForCheck())}).subscribe(),this.subjOptions.combineLatest(this.subjOptionsSelected,this.subjSearchText,function(e,t,n){return l.optionsFiltered=l.filterOptions(n,e,t).map(function(e){return e instanceof Pi?e.highlightedText=l.highlightOption(e):e instanceof Ii&&e.options.map(function(e){return e.highlightedText=l.highlightOption(e),e}),e}),l.cacheOptionsFilteredFlat=null,l.navigateOption(Li.firstIfOptionActiveInvisible),l.cd.markForCheck(),t}).flatMap(function(e){return l.optionsFilteredFlat().filter(function(t){return l.autoSelectSingleOption&&1===t.length&&!e.length})}).subscribe(function(e){l.subjOptionsSelected.next(e),l.cd.markForCheck()})}return e.prototype.setFormControlSize=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=!0),Object.assign(t?{"form-control-sm input-sm":"small"===this.size,"form-control-lg input-lg":"large"===this.size}:{},e)},e.prototype.setBtnSize=function(){return{"btn-sm":"small"===this.size,"btn-lg":"large"===this.size}},Object.defineProperty(e.prototype,"optionsSelected",{get:function(){return this.subjOptionsSelected.value},enumerable:!0,configurable:!0}),e.prototype.mainClicked=function(e){e.clickedSelectComponent=this,this.isFocused||(this.isFocused=!0,this.focus.emit())},e.prototype.documentClick=function(e){e.clickedSelectComponent!==this&&(this.optionsOpened&&(this.optionsClose(),this.cd.detectChanges()),this.isFocused&&(this.isFocused=!1,this.blur.emit()))},e.prototype.optionsFilteredFlat=function(){var e=this;return this.cacheOptionsFilteredFlat?Ve.Observable.of(this.cacheOptionsFilteredFlat):Ve.Observable.from(this.optionsFiltered).flatMap(function(e){return e instanceof Pi?Ve.Observable.of(e):e instanceof Ii?Ve.Observable.from(e.optionsFiltered):Ve.Observable.empty()}).filter(function(e){return!e.disabled}).toArray().do(function(t){return e.cacheOptionsFilteredFlat=t})},e.prototype.navigateOption=function(e){var t=this;this.optionsFilteredFlat().map(function(n){var i,o={index:-1,activeOption:null,filteredOptionList:n};switch(e){case Li.first:o.index=0;break;case Li.previous:i=n.indexOf(t.optionActive)-1,o.index=i>=0?i:n.length-1;break;case Li.next:i=n.indexOf(t.optionActive)+1,o.index=i0?r:0}return o.activeOption=n[o.index],o}).subscribe(function(e){return t.optionActivate(e)})},e.prototype.ngDoCheck=function(){this.itemsDiffer.diff(this.items)&&this.subjOptions.next(this.buildOptions(this.items));var e=this.defaultValue?[].concat(this.defaultValue):[];this.defaultValueDiffer.diff(e)&&this.subjDefaultValue.next(e)},e.prototype.ngAfterContentChecked=function(){if(this._focusToInput&&this.checkInputVisibility()&&this.inputElRef&&this.inputElRef.nativeElement!==document.activeElement&&(this._focusToInput=!1,this.inputElRef.nativeElement.focus()),this.choiceMenuElRef){var e=this.choiceMenuElRef.nativeElement.querySelector("a.ngx-select__item_active.active");e&&e.offsetHeight>0&&this.ensureVisibleElement(e)}},e.prototype.canClearNotMultiple=function(){return this.allowClear&&!!this.subjOptionsSelected.value.length&&(!this.subjDefaultValue.value.length||this.subjDefaultValue.value[0]!==this.actualValue[0])},e.prototype.focusToInput=function(){this._focusToInput=!0},e.prototype.inputKeyDown=function(e){var t=[this.keyCodeToOptionsOpen,this.keyCodeToRemoveSelected];if(this.optionsOpened&&-1!==[this.keyCodeToOptionsSelect,this.keyCodeToNavigateFirst,this.keyCodeToNavigatePrevious,this.keyCodeToNavigateNext,this.keyCodeToNavigateLast].indexOf(e.code))switch(e.preventDefault(),e.stopPropagation(),e.code){case this.keyCodeToOptionsSelect:this.optionSelect(this.optionActive),this.navigateOption(Li.next);break;case this.keyCodeToNavigateFirst:this.navigateOption(Li.first);break;case this.keyCodeToNavigatePrevious:this.navigateOption(Li.previous);break;case this.keyCodeToNavigateLast:this.navigateOption(Li.last);break;case this.keyCodeToNavigateNext:this.navigateOption(Li.next)}else if(!this.optionsOpened&&-1!==t.indexOf(e.code))switch(e.preventDefault(),e.stopPropagation(),e.code){case this.keyCodeToOptionsOpen:this.optionsOpen();break;case this.keyCodeToRemoveSelected:this.optionRemove(this.subjOptionsSelected.value[this.subjOptionsSelected.value.length-1],e)}},e.prototype.trackByOption=function(e,t){return t instanceof Pi?t.value:t instanceof Ii?t.label:t},e.prototype.checkInputVisibility=function(){return!0===this.multiple||this.optionsOpened&&!this.noAutoComplete},e.prototype.inputKeyUp=function(e,t){void 0===e&&(e=""),this.optionsOpened?this.typed.emit(e):!this.optionsOpened&&e?this.optionsOpen(e):t.code===this.keyCodeToOptionsClose&&this.optionsClose()},e.prototype.inputClick=function(e){void 0===e&&(e=""),this.optionsOpened||this.optionsOpen(e)},e.prototype.sanitize=function(e){return e?this.sanitizer.bypassSecurityTrustHtml(e):null},e.prototype.highlightOption=function(e){return e.renderText(this.sanitizer,this.inputElRef?this.inputElRef.nativeElement.value:"")},e.prototype.optionSelect=function(e,t){void 0===t&&(t=null),t&&(t.preventDefault(),t.stopPropagation()),e&&!e.disabled&&(this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).concat([e])),this.select.emit(e.value),this.optionsClose(),this.onTouched())},e.prototype.optionRemove=function(e,t){!this.disabled&&e&&(t.stopPropagation(),this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).filter(function(t){return t!==e})),this.remove.emit(e.value))},e.prototype.optionActivate=function(e){this.optionActive===e.activeOption||e.activeOption&&e.activeOption.disabled||(this.optionActive&&(this.optionActive.active=!1),this.optionActive=e.activeOption,this.optionActive&&(this.optionActive.active=!0),this.navigated.emit(e),this.cd.detectChanges())},e.prototype.onMouseEnter=function(e){this.autoActiveOnMouseEnter&&this.optionActivate(e)},e.prototype.filterOptions=function(e,t,n){var i=this,o=new RegExp(Ni(e),"i"),r=function(t){return i.searchCallback?i.searchCallback(e,t):(!e||o.test(t.text))&&(!i.multiple||-1===n.indexOf(t))};return t.filter(function(e){if(e instanceof Pi)return r(e);if(e instanceof Ii){var t=e;return t.filter(function(e){return r(e)}),t.optionsFiltered.length}})},e.prototype.ensureVisibleElement=function(e){var t=this;setTimeout(function(){if(t.choiceMenuElRef&&t.cacheElementOffsetTop!==e.offsetTop){t.cacheElementOffsetTop=e.offsetTop;var n=t.choiceMenuElRef.nativeElement;t.cacheElementOffsetTopn.scrollTop+n.clientHeight&&(n.scrollTop=t.cacheElementOffsetTop+e.offsetHeight-n.clientHeight)}})},e.prototype.optionsOpen=function(e){void 0===e&&(e=""),this.disabled||(this.optionsOpened=!0,this.subjSearchText.next(e),this.navigateOption(!this.multiple&&this.subjOptionsSelected.value.length?Li.firstSelected:Li.first),this.focusToInput(),this.open.emit(),this.cd.markForCheck())},e.prototype.optionsClose=function(){this.optionsOpened=!1,this.close.emit(),this.autoClearSearch&&this.multiple&&this.inputElRef&&(this.inputElRef.nativeElement.value=null)},e.prototype.buildOptions=function(e){var t,n=this,i=[];return Array.isArray(e)&&e.forEach(function(e){if("object"==typeof e&&null!==e&&Ui(e,n.optGroupLabelField)&&Ui(e,n.optGroupOptionsField)&&Array.isArray(e[n.optGroupOptionsField])){var o=new Ii(e[n.optGroupLabelField]);e[n.optGroupOptionsField].forEach(function(e){(t=n.buildOption(e,o))&&o.options.push(t)}),i.push(o)}else(t=n.buildOption(e,null))&&i.push(t)}),i},e.prototype.buildOption=function(e,t){var n,i,o;if("string"==typeof e||"number"==typeof e)n=i=e,o=!1;else{if("object"!=typeof e||null===e||!Ui(e,this.optionValueField)&&!Ui(e,this.optionTextField))return null;n=Ui(e,this.optionValueField)?e[this.optionValueField]:e[this.optionTextField],i=Ui(e,this.optionTextField)?e[this.optionTextField]:e[this.optionValueField],o=!!Ui(e,"disabled")&&e.disabled}return new Pi(n,i,o,e,t)},e.prototype.writeValue=function(e){this.subjExternalValue.next(e)},e.prototype.registerOnChange=function(e){this.onChange=e,this.subjRegisterOnChange.next()},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e}(),Fi=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:ji,useValue:t}]}},e}(),Ki=o["\u0275crt"]({encapsulation:0,styles:[".ngx-select[_ngcontent-%COMP%]{ }\n .ngx-select_multiple[_ngcontent-%COMP%]{\n height:auto;\n padding:3px 3px 0 3px; }\n .ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__search[_ngcontent-%COMP%]{\n background-color:transparent !important;\n border:none;\n outline:none;\n -webkit-box-shadow:none;\n box-shadow:none;\n height:1.6666em;\n padding:0;\n margin-bottom:3px; }\n .ngx-select__disabled[_ngcontent-%COMP%]{\n background-color:#eceeef;\n border-radius:4px;\n position:absolute;\n width:100%;\n height:100%;\n z-index:5;\n opacity:0.6;\n top:0;\n left:0;\n cursor:not-allowed; }\n .ngx-select__toggle[_ngcontent-%COMP%]{\n outline:0;\n position:relative;\n text-align:left !important;\n color:#333;\n background-color:#fff;\n border-color:#ccc;\n display:-webkit-inline-box;\n display:-ms-inline-flexbox;\n display:inline-flex;\n -webkit-box-align:stretch;\n -ms-flex-align:stretch;\n align-items:stretch;\n -webkit-box-pack:justify;\n -ms-flex-pack:justify;\n justify-content:space-between; }\n .ngx-select__toggle[_ngcontent-%COMP%]:hover{\n color:#333;\n background-color:#e6e6e6;\n border-color:#adadad; }\n .ngx-select__toggle-buttons[_ngcontent-%COMP%]{\n -ms-flex-negative:0;\n flex-shrink:0;\n display:-webkit-box;\n display:-ms-flexbox;\n display:flex;\n -webkit-box-align:center;\n -ms-flex-align:center;\n align-items:center; }\n .ngx-select__toggle-caret[_ngcontent-%COMP%]{\n position:absolute;\n height:10px;\n top:50%;\n right:10px;\n margin-top:-2px; }\n .ngx-select__placeholder[_ngcontent-%COMP%]{\n float:left; }\n .ngx-select__clear[_ngcontent-%COMP%]{\n margin-right:10px;\n padding:0;\n border:none; }\n .ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__clear[_ngcontent-%COMP%]{\n line-height:initial;\n margin-left:5px;\n margin-right:0;\n color:#000;\n opacity:.5; }\n .ngx-select__clear-icon[_ngcontent-%COMP%]{\n display:inline-block;\n font-size:inherit;\n cursor:pointer;\n position:relative;\n width:1em;\n height:.75em;\n padding:0; }\n .ngx-select__clear-icon[_ngcontent-%COMP%]:before, .ngx-select__clear-icon[_ngcontent-%COMP%]:after{\n content:'';\n position:absolute;\n border-top:3px solid;\n width:100%;\n top:50%;\n left:0;\n margin-top:-1px; }\n .ngx-select__clear-icon[_ngcontent-%COMP%]:before{\n -webkit-transform:rotate(45deg);\n transform:rotate(45deg); }\n .ngx-select__clear-icon[_ngcontent-%COMP%]:after{\n -webkit-transform:rotate(-45deg);\n transform:rotate(-45deg); }\n .ngx-select__choices[_ngcontent-%COMP%]{\n width:100%;\n height:auto;\n max-height:200px;\n overflow-x:hidden;\n margin-top:0;\n position:absolute; }\n .ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__choices[_ngcontent-%COMP%]{\n margin-top:1px; }\n .ngx-select__item[_ngcontent-%COMP%]{\n display:block;\n padding:3px 20px;\n clear:both;\n font-weight:400;\n line-height:1.42857143;\n white-space:nowrap;\n cursor:pointer;\n text-decoration:none; }\n .ngx-select__item_disabled[_ngcontent-%COMP%], .ngx-select__item_no-found[_ngcontent-%COMP%]{\n cursor:default; }\n .ngx-select__item_active[_ngcontent-%COMP%]{\n color:#fff;\n outline:0;\n background-color:#428bca; }\n .ngx-select__selected-single[_ngcontent-%COMP%], .ngx-select__selected-plural[_ngcontent-%COMP%]{\n display:-webkit-inline-box;\n display:-ms-inline-flexbox;\n display:inline-flex;\n -webkit-box-align:center;\n -ms-flex-align:center;\n align-items:center;\n overflow:hidden; }\n .ngx-select__selected-single[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .ngx-select__selected-plural[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{\n overflow:hidden;\n text-overflow:ellipsis; }\n .ngx-select__selected-plural[_ngcontent-%COMP%]{\n outline:0;\n margin:0 3px 3px 0; }\n.input-group[_ngcontent-%COMP%] > .dropdown[_ngcontent-%COMP%]{\n position:static; }"],data:{}});function Bi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"span",[["class","ngx-select__placeholder text-muted"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,2,0,t.component.placeholder)})}function Hi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,8,"span",[["class","ngx-select__selected-single pull-left float-left"]],null,null,null,null,null)),o["\u0275did"](1,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o["\u0275pod"](2,{"ngx-select__allow-clear":0}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,16777216,null,null,3,null,null,null,null,null,null,null)),o["\u0275did"](5,540672,null,0,p.q,[o.ViewContainerRef],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),o["\u0275pod"](6,{$implicit:0,index:1,text:2}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,"ngx-select__selected-single pull-left float-left",e(t,2,0,n.allowClear)),e(t,5,0,e(t,6,0,n.optionsSelected[0],0,n.sanitize(n.optionsSelected[0].text)),n.templateSelectedOption||o["\u0275nov"](t.parent.parent,28))},null)}function Wi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"a",[["class","ngx-select__clear btn btn-sm btn-link"]],null,[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.optionRemove(o.optionsSelected[0],n)&&i),i},null,null)),o["\u0275did"](1,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,0,"i",[["class","ngx-select__clear-icon"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,"ngx-select__clear btn btn-sm btn-link",t.component.setBtnSize())},null)}function zi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,21,"div",[["class","ngx-select__selected"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,18,"div",[["class","ngx-select__toggle btn form-control"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.optionsOpen()&&i),i},null,null)),o["\u0275did"](3,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Bi)),o["\u0275did"](6,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Hi)),o["\u0275did"](9,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,8,"span",[["class","ngx-select__toggle-buttons"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Wi)),o["\u0275did"](14,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,0,"i",[["class","dropdown-toggle"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](18,0,null,null,0,"i",[["class","ngx-select__toggle-caret caret"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,"ngx-select__toggle btn form-control",n.setFormControlSize(n.setBtnSize())),e(t,6,0,!n.optionsSelected.length),e(t,9,0,n.optionsSelected.length),e(t,14,0,n.canClearNotMultiple())},null)}function $i(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,16,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,13,"span",[["class","ngx-select__selected-plural btn btn-default btn-secondary btn-xs"],["tabindex","-1"]],null,null,null,null,null)),o["\u0275did"](3,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](5,16777216,null,null,3,null,null,null,null,null,null,null)),o["\u0275did"](6,540672,null,0,p.q,[o.ViewContainerRef],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),o["\u0275pod"](7,{$implicit:0,index:1,text:2}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](10,0,null,null,4,"a",[["class","ngx-select__clear btn btn-sm btn-link pull-right float-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.optionRemove(e.context.$implicit,n)&&i),i},null,null)),o["\u0275did"](11,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,0,"i",[["class","ngx-select__clear-icon"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,"ngx-select__selected-plural btn btn-default btn-secondary btn-xs",n.setBtnSize()),e(t,6,0,e(t,7,0,t.context.$implicit,t.context.index,n.sanitize(t.context.$implicit.text)),n.templateSelectedOption||o["\u0275nov"](t.parent.parent,28)),e(t,11,0,"ngx-select__clear btn btn-sm btn-link pull-right float-right",n.setBtnSize())},null)}function qi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"div",[["class","ngx-select__selected"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,$i)),o["\u0275did"](3,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.optionsSelected,n.trackByOption)},null)}function Gi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[[2,0],["input",1]],null,1,"input",[["autocapitalize","off"],["autocomplete","off"],["autocorrect","off"],["class","ngx-select__search form-control"],["role","combobox"],["spellcheck","false"],["type","text"]],[[8,"tabIndex",0],[8,"disabled",0],[8,"placeholder",0]],[[null,"keyup"],[null,"click"]],function(e,t,n){var i=!0,r=e.component;return"keyup"===t&&(i=!1!==r.inputKeyUp(o["\u0275nov"](e,0).value,n)&&i),"click"===t&&(i=!1!==r.inputClick(o["\u0275nov"](e,0).value)&&i),i},null,null)),o["\u0275did"](1,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null)],function(e,t){e(t,1,0,"ngx-select__search form-control",t.component.setFormControlSize())},function(e,t){var n=t.component;e(t,0,0,!1===n.multiple?-1:0,n.disabled,n.optionsSelected.length?"":n.placeholder)})}function Yi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"div",[["class","divider dropdown-divider"]],null,null,null,null,null))],null,null)}function Qi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[["class","dropdown-header"]],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["",""]))],null,function(e,t){e(t,1,0,t.parent.context.$implicit.label)})}function Ji(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[["choiceItem",1]],null,7,"a",[["class","ngx-select__item dropdown-item"],["href","#"]],null,[[null,"mouseenter"],[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"mouseenter"===t&&(i=!1!==o.onMouseEnter({activeOption:e.context.$implicit,filteredOptionList:o.optionsFiltered,index:e.context.index})&&i),"click"===t&&(i=!1!==o.optionSelect(e.context.$implicit,n)&&i),i},null,null)),o["\u0275did"](1,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o["\u0275pod"](2,{"ngx-select__item_active active":0,"ngx-select__item_disabled disabled":1}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,16777216,null,null,2,null,null,null,null,null,null,null)),o["\u0275did"](5,540672,null,0,p.q,[o.ViewContainerRef],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),o["\u0275pod"](6,{$implicit:0,text:1,index:2,subIndex:3}),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,"ngx-select__item dropdown-item",e(t,2,0,t.context.$implicit.active,t.context.$implicit.disabled)),e(t,5,0,e(t,6,0,t.context.$implicit,t.context.$implicit.highlightedText,t.parent.context.index,t.context.index),n.templateOption||o["\u0275nov"](t.parent.parent.parent,28))},null)}function Zi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,11,"li",[["class","ngx-select__item-group"],["role","menuitem"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Yi)),o["\u0275did"](3,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Qi)),o["\u0275did"](6,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,Ji)),o["\u0275did"](9,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),o["\u0275pad"](10,1),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,"optgroup"===t.context.$implicit.type&&t.context.index>0),e(t,6,0,"optgroup"===t.context.$implicit.type),e(t,9,0,t.context.$implicit.optionsFiltered||e(t,10,0,t.context.$implicit),n.trackByOption)},null)}function Xi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"li",[["class","ngx-select__item ngx-select__item_no-found dropdown-header"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,16777216,null,null,1,null,null,null,null,null,null,null)),o["\u0275did"](3,540672,null,0,p.q,[o.ViewContainerRef],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,t.component.templateOptionNotFound||o["\u0275nov"](t.parent.parent,30))},null)}function eo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[[3,0],["choiceMenu",1]],null,7,"ul",[["class","ngx-select__choices dropdown-menu"],["role","menu"]],[[2,"show",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Zi)),o["\u0275did"](3,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Xi)),o["\u0275did"](6,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.optionsFiltered,n.trackByOption),e(t,6,0,!n.optionsFiltered.length)},function(e,t){e(t,0,0,t.component.optionsOpened)})}function to(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,1,0,t.context.text)})}function no(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](0,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.component.noResultsFound)})}function io(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{mainElRef:0}),o["\u0275qud"](671088640,2,{inputElRef:0}),o["\u0275qud"](671088640,3,{choiceMenuElRef:0}),(e()(),o["\u0275eld"](3,0,[[1,0],["main",1]],null,28,"div",[["class","ngx-select dropdown"]],[[8,"tabIndex",0]],[[null,"click"],[null,"focusin"],[null,"focus"],[null,"keydown"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.mainClicked(n)&&i),"focusin"===t&&(i=!1!==o.mainClicked(n)&&i),"focus"===t&&(i=!1!==o.focusToInput()&&i),"keydown"===t&&(i=!1!==o.inputKeyDown(n)&&i),i},null,null)),o["\u0275did"](4,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o["\u0275pod"](5,{"ngx-select_multiple form-control":0,"open show":1}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,2,"div",[],null,null,null,null,null)),o["\u0275did"](8,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngClass:[0,"ngClass"]},null),o["\u0275pod"](9,{"ngx-select__disabled":0}),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,zi)),o["\u0275did"](13,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,qi)),o["\u0275did"](17,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Gi)),o["\u0275did"](21,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,eo)),o["\u0275did"](25,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](0,[["defaultTemplateOption",2]],null,0,null,to)),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](0,[["defaultTemplateOptionNotFound",2]],null,0,null,no)),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0,"ngx-select dropdown",n.setFormControlSize(e(t,5,0,!0===n.multiple,n.optionsOpened&&n.optionsFiltered.length),!0===n.multiple)),e(t,8,0,e(t,9,0,n.disabled)),e(t,13,0,!1===n.multiple&&(!n.optionsOpened||n.noAutoComplete)),e(t,17,0,!0===n.multiple),e(t,21,0,n.checkInputVisibility()),e(t,25,0,n.isFocused)},function(e,t){e(t,3,0,t.component.disabled?-1:0)})}var oo=function(){function e(e){this.captureService=e,this.isLink=!1,this.captureText="Capture keystroke",this.capture=new o.EventEmitter,this.record=!1,this.captureService.initModifiers(),this.captureService.populateMapping(),this.scanCodePressed=!1}return e.prototype.onKeyUp=function(e){this.scanCodePressed?(e.preventDefault(),this.scanCodePressed=!1):this.record&&!this.first&&(e.preventDefault(),this.saveScanCode())},e.prototype.onKeyDown=function(e){var t=e.keyCode;this.record?(e.preventDefault(),e.stopPropagation(),this.first=!1,this.captureService.hasMap(t)?(this.saveScanCode(this.captureService.getMap(t)),this.scanCodePressed=!0):this.captureService.setModifier(1===e.location,t)):13===t&&(this.record=!0,this.first=!0)},e.prototype.onFocusOut=function(){this.record=!1,this.reset()},e.prototype.start=function(){this.record=!0},e.prototype.saveScanCode=function(e){this.record=!1;var t=this.captureService.getModifiers(!0),n=this.captureService.getModifiers(!1);this.capture.emit({code:e,left:t,right:n}),this.reset()},e.prototype.reset=function(){this.first=!1,this.captureService.initModifiers()},e}(),ro=o["\u0275crt"]({encapsulation:0,styles:[[".link--capture-keystroke[_ngcontent-%COMP%]{padding:7px 0;text-decoration:none;border:0;width:100%}.link--capture-keystroke[_ngcontent-%COMP%]:focus{outline:0}.btn--capture-keystroke[_ngcontent-%COMP%]{display:inline-block;margin:0 0 0 .25rem}.fa-circle[_ngcontent-%COMP%]{color:#c00}"]],data:{}});function lo(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](0,null,["\n","\n"]))],null,function(e,t){e(t,0,0,t.component.captureText)})}function uo(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\nCapturing ...\n"]))],null,null)}function ao(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,11,"button",[["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.start()&&i),i},null,null)),o["\u0275did"](1,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngClass:[0,"ngClass"]},null),o["\u0275pod"](2,{"btn btn-sm btn--capture-keystroke":0,"btn-link link--capture-keystroke":1,"btn-default":2,"btn-info":3}),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-circle"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,lo)),o["\u0275did"](7,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,uo)),o["\u0275did"](10,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,e(t,2,0,!n.isLink,n.isLink,!n.record&&!n.isLink,n.record&&!n.isLink)),e(t,7,0,!n.record),e(t,10,0,n.record)},null)}var so=function(){return function(){this.validAction=new o.EventEmitter}}(),co=function(e){function t(t){var n=e.call(this)||this;return n.mapper=t,n.leftModifiers=["LShift","LCtrl",t.getOsSpecificText("LSuper"),t.getOsSpecificText("LAlt")],n.rightModifiers=["RShift","RCtrl",t.getOsSpecificText("RSuper"),t.getOsSpecificText("RAlt")],n.scanCodeGroups=[{id:"0",text:"None"}],n.scanCodeGroups=n.scanCodeGroups.concat(ze.SCANCODES),n.secondaryRoleGroups=ze.SECONDARY_ROLES,n.leftModifierSelects=Array(n.leftModifiers.length).fill(!1),n.rightModifierSelects=Array(n.rightModifiers.length).fill(!1),n.selectedScancodeOption=n.scanCodeGroups[0],n.selectedSecondaryRoleIndex=-1,n}return Object(Ci.__extends)(t,e),t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(this.keyActionValid())},t.prototype.keyActionValid=function(e){return e||(e=this.toKeyAction()),!!e&&(e.scancode>0||e.modifierMask>0)},t.prototype.onKeysCapture=function(e){this.selectedScancodeOption=e.code?this.findScancodeOptionByScancode(e.code,ze.KeystrokeType.basic):this.scanCodeGroups[0],this.leftModifierSelects=e.left,this.rightModifierSelects=e.right,this.validAction.emit(this.keyActionValid())},t.prototype.fromKeyAction=function(e){if(!(e instanceof ze.KeystrokeAction))return!1;var t=e;this.selectedScancodeOption=this.findScancodeOptionByScancode(t.scancode||0,t.type);for(var n=this.leftModifiers.length,i=0;i>i&1);for(i=n;i>i&1)}return this.selectedSecondaryRoleIndex=void 0!==t.secondaryRoleAction?this.mapper.modifierMapper(t.secondaryRoleAction):-1,!0},t.prototype.toKeyAction=function(){var e=new ze.KeystrokeAction,t=this.toScancodeTypePair(this.selectedScancodeOption);e.scancode=t[0],e.type="media"===t[1]?e.scancode>255?ze.KeystrokeType.longMedia:ze.KeystrokeType.shortMedia:ze.KeystrokeType[t[1]],e.modifierMask=0;for(var n=this.leftModifierSelects.concat(this.rightModifierSelects).map(function(e){return e?1:0}),i=0;i0;){var i=n.shift();if(e(i)){t=i;break}i.children&&n.push.apply(n,i.children)}return t},t.prototype.findScancodeOptionById=function(e){return this.findScancodeOptionBy(function(t){return t.id===e})},t.prototype.findScancodeOptionByScancode=function(e,t){var n=t===ze.KeystrokeType.shortMedia||t===ze.KeystrokeType.longMedia?"media":ze.KeystrokeType[t];return this.findScancodeOptionBy(function(t){var i=t.additional;return!(!i||i.scancode!==e||i.type!==n)||!(i&&void 0!==i.scancode||+t.id!==e)})},t.prototype.toScancodeTypePair=function(e){return e?(e.additional?(t=e.additional.scancode,n=e.additional.type||"basic"):n="basic",void 0===t&&(t=+e.id),[t,n]):[0,"basic"];var t,n},t}(so),po=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%]{margin-bottom:10px;margin-top:2px}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{position:relative;top:2px}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{position:relative;top:-9px;margin-right:4px}[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%] .btn-toolbar[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:3rem}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{margin-right:.6em;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] .secondary-role[_ngcontent-%COMP%]{width:135px}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{margin-left:.6em}[_nghost-%COMP%] .setting-label.disabled[_ngcontent-%COMP%]{color:#999}[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%]{display:none;position:absolute;top:50%;margin-top:-4rem;color:#31708f;padding-right:40px}[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{font-size:2.6rem;float:left;padding:1rem 1.5rem 2rem}.disabled[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%]{visibility:hidden}.disabled[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] .scancode-container[_ngcontent-%COMP%]{display:inline-block;width:200px}[_nghost-%COMP%] .secondary-role-groups-container[_ngcontent-%COMP%]{display:inline-block;width:140px}"]],data:{}});function fo(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,9,"span",[],null,null,null,null,null)),o["\u0275did"](2,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngClass:[0,"ngClass"]},null),o["\u0275pod"](3,{"indent-dropdown-item":0}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](6,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,1,"span",[["class","scancode--searchterm"]],null,null,null,null,null)),(e()(),o["\u0275ted"](9,null,["\n ","\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,2,0,e(t,3,0,"0"!==t.context.$implicit.data.id))},function(e,t){e(t,6,0,t.context.$implicit.text),e(t,9,0,null==t.context.$implicit.data.additional?null:t.context.$implicit.data.additional.explanation)})}function ho(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleModifier(!1,e.context.index)&&i),i},null,null)),(e()(),o["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.component.leftModifierSelects[t.context.index]),e(t,1,0,t.context.$implicit)})}function yo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleModifier(!0,e.context.index)&&i),i},null,null)),(e()(),o["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.component.rightModifierSelects[t.context.index]),e(t,1,0,t.context.$implicit)})}function mo(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,9,"span",[],null,null,null,null,null)),o["\u0275did"](2,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngClass:[0,"ngClass"]},null),o["\u0275pod"](3,{"indent-dropdown-item":0}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](6,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,1,"span",[["class","scancode--searchterm"]],null,null,null,null,null)),(e()(),o["\u0275ted"](9,null,["\n ","\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,2,0,e(t,3,0,"-1"!==t.context.$implicit.data.id))},function(e,t){e(t,6,0,t.context.$implicit.text),e(t,9,0,null==t.context.$implicit.data.additional?null:t.context.$implicit.data.additional.explanation)})}function go(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,25,"div",[["class","long-press-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Secondary role:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,15,"div",[["class","secondary-role-groups-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,12,"ngx-select",[["optGroupLabelField","text"],["optGroupOptionsField","children"],["optionTextField","text"],["optionValueField","id"],["size","small"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"select"],["document","focusin"],["document","click"]],function(e,t,n){var i=!0,r=e.component;return"document:focusin"===t&&(i=!1!==o["\u0275nov"](e,8).documentClick(n)&&i),"document:click"===t&&(i=!1!==o["\u0275nov"](e,8).documentClick(n)&&i),"select"===t&&(i=!1!==r.onSecondaryRoleChange(n)&&i),i},io,Ki)),o["\u0275did"](8,2408448,null,3,Vi,[o.IterableDiffers,I.c,o.ChangeDetectorRef,[2,ji]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],optGroupLabelField:[3,"optGroupLabelField"],optGroupOptionsField:[4,"optGroupOptionsField"],size:[5,"size"],autoActiveOnMouseEnter:[6,"autoActiveOnMouseEnter"]},{select:"select"}),o["\u0275qud"](335544320,4,{templateOption:0}),o["\u0275qud"](335544320,5,{templateSelectedOption:0}),o["\u0275qud"](335544320,6,{templateOptionNotFound:0}),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Vi]),o["\u0275did"](13,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},null),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](15,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](0,[[4,2]],null,1,null,mo)),o["\u0275did"](18,16384,null,0,Ri,[o.TemplateRef],null,null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","620"],["name","question-circle"],["title","

The secondary role activates when another key gets pressed while holding this key.

\n

Let's say that the scancode is Escape and the secondary role is Mouse. Then:

\n
    \n
  • Tap this key to trigger Escape. (Primary role)
  • \n
  • Hold this key and press another key to activate the relevant key of the Mouse layer. (Secondary role)
  • \n
\n

The secondary role can be any layer or modifier.

"]],[[1,"data-placement",0]],null,null,De,we)),o["\u0275did"](23,114688,null,0,_e,[],{name:[0,"name"]},null),o["\u0275did"](24,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.secondaryRoleGroups,"id","text","text","children","small",!1),e(t,13,0,n.selectedSecondaryRoleIndex.toString()),e(t,23,0,"question-circle"),e(t,24,0,"

The secondary role activates when another key gets pressed while holding this key.

\n

Let's say that the scancode is Escape and the secondary role is Mouse. Then:

\n
    \n
  • Tap this key to trigger Escape. (Primary role)
  • \n
  • Hold this key and press another key to activate the relevant key of the Mouse layer. (Secondary role)
  • \n
\n

The secondary role can be any layer or modifier.

","true","620")},function(e,t){e(t,7,0,o["\u0275nov"](t,15).ngClassUntouched,o["\u0275nov"](t,15).ngClassTouched,o["\u0275nov"](t,15).ngClassPristine,o["\u0275nov"](t,15).ngClassDirty,o["\u0275nov"](t,15).ngClassValid,o["\u0275nov"](t,15).ngClassInvalid,o["\u0275nov"](t,15).ngClassPending),e(t,22,0,o["\u0275nov"](t,24).placement)})}function vo(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,28,"div",[["class","scancode-options"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Scancode:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,15,"div",[["class","scancode-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,12,"ngx-select",[["optGroupLabelField","text"],["optGroupOptionsField","children"],["optionTextField","text"],["optionValueField","id"],["size","small"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"select"],["document","focusin"],["document","click"]],function(e,t,n){var i=!0,r=e.component;return"document:focusin"===t&&(i=!1!==o["\u0275nov"](e,8).documentClick(n)&&i),"document:click"===t&&(i=!1!==o["\u0275nov"](e,8).documentClick(n)&&i),"select"===t&&(i=!1!==r.onScancodeChange(n)&&i),i},io,Ki)),o["\u0275did"](8,2408448,null,3,Vi,[o.IterableDiffers,I.c,o.ChangeDetectorRef,[2,ji]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],optGroupLabelField:[3,"optGroupLabelField"],optGroupOptionsField:[4,"optGroupOptionsField"],size:[5,"size"],autoActiveOnMouseEnter:[6,"autoActiveOnMouseEnter"]},{select:"select"}),o["\u0275qud"](335544320,1,{templateOption:0}),o["\u0275qud"](335544320,2,{templateSelectedOption:0}),o["\u0275qud"](335544320,3,{templateOptionNotFound:0}),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Vi]),o["\u0275did"](13,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},null),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](15,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](0,[[1,2]],null,1,null,fo)),o["\u0275did"](18,16384,null,0,Ri,[o.TemplateRef],null,null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","330"],["name","question-circle"],["title","

Looking for a non-US character? Just pick the character of the desired key according to the US layout.

\n

Let's say you're a German user and want to map the \xd6 character. You can see that on US keyboards this is the semicolon key, so choose semicolon in this dropdown.

"]],[[1,"data-placement",0]],null,null,De,we)),o["\u0275did"](23,114688,null,0,_e,[],{name:[0,"name"]},null),o["\u0275did"](24,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](26,0,null,null,1,"capture-keystroke-button",[["tabindex","0"]],null,[[null,"capture"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,t,n){var i=!0,r=e.component;return"keyup"===t&&(i=!1!==o["\u0275nov"](e,27).onKeyUp(n)&&i),"keydown"===t&&(i=!1!==o["\u0275nov"](e,27).onKeyDown(n)&&i),"focusout"===t&&(i=!1!==o["\u0275nov"](e,27).onFocusOut()&&i),"capture"===t&&(i=!1!==r.onKeysCapture(n)&&i),i},ao,ro)),o["\u0275did"](27,49152,null,0,oo,[Nn],null,{capture:"capture"}),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](30,0,null,null,19,"div",[["class","modifier-options"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](32,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Modifiers:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](35,0,null,null,13,"div",[["class","btn-toolbar modifiers"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](37,0,null,null,4,"div",[["class","btn-group btn-group-sm modifiers__left"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ho)),o["\u0275did"](40,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](43,0,null,null,4,"div",[["class","btn-group btn-group-sm modifiers__right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,yo)),o["\u0275did"](46,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,go)),o["\u0275did"](52,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](54,0,null,null,9,"div",[["class","disabled-state--text"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](56,0,null,null,0,"i",[["class","fa fa-info-circle"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n When a key is configured as layer switcher key, you can't assign other functions to it.\n To assign a scancode to the key, set the "])),(e()(),o["\u0275eld"](58,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Layer action"])),(e()(),o["\u0275ted"](-1,null,[" to "])),(e()(),o["\u0275eld"](61,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["None"])),(e()(),o["\u0275ted"](-1,null,[".\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.scanCodeGroups,"id","text","text","children","small",!1),e(t,13,0,null==n.selectedScancodeOption?null:n.selectedScancodeOption.id),e(t,23,0,"question-circle"),e(t,24,0,"

Looking for a non-US character? Just pick the character of the desired key according to the US layout.

\n

Let's say you're a German user and want to map the \xd6 character. You can see that on US keyboards this is the semicolon key, so choose semicolon in this dropdown.

","true","330"),e(t,40,0,n.leftModifiers),e(t,46,0,n.rightModifiers),e(t,52,0,n.secondaryRoleEnabled)},function(e,t){e(t,7,0,o["\u0275nov"](t,15).ngClassUntouched,o["\u0275nov"](t,15).ngClassTouched,o["\u0275nov"](t,15).ngClassPristine,o["\u0275nov"](t,15).ngClassDirty,o["\u0275nov"](t,15).ngClassValid,o["\u0275nov"](t,15).ngClassInvalid,o["\u0275nov"](t,15).ngClassPending),e(t,22,0,o["\u0275nov"](t,24).placement)})}var bo=function(e){function t(){var t=e.call(this)||this;return t.toggleData=[{id:"active",text:"Activate"},{id:"toggle",text:"Toggle"}],t.layerData=[{id:0,text:"Mod"},{id:1,text:"Fn"},{id:2,text:"Mouse"}],t.toggle="active",t.layer=ze.LayerName.mod,t}return Object(Ci.__extends)(t,e),t.prototype.ngOnChanges=function(e){e.defaultKeyAction&&this.fromKeyAction(this.defaultKeyAction),e.currentLayer&&(this.isNotBase=this.currentLayer>0),this.validAction.emit(!0)},t.prototype.keyActionValid=function(){return!this.isNotBase},t.prototype.fromKeyAction=function(e){if(!(e instanceof ze.SwitchLayerAction))return!1;var t=e;switch(t.switchLayerMode){case ze.SwitchLayerMode.holdAndDoubleTapToggle:this.toggle="active",this.lockLayerWhenDoubleTapping=!0;break;case ze.SwitchLayerMode.hold:this.toggle="active",this.lockLayerWhenDoubleTapping=!1;break;default:this.toggle="toggle",this.lockLayerWhenDoubleTapping=!1}return this.layer=t.layer,!0},t.prototype.toKeyAction=function(){var e=new ze.SwitchLayerAction;if(e.switchLayerMode="toggle"===this.toggle?ze.SwitchLayerMode.toggle:!this.allowLayerDoubleTap||this.lockLayerWhenDoubleTapping?ze.SwitchLayerMode.holdAndDoubleTapToggle:ze.SwitchLayerMode.hold,e.layer=this.layer,!this.keyActionValid())throw new Error("KeyAction is invalid!");return e},t.prototype.toggleChanged=function(e){this.toggle=e},t.prototype.layerChanged=function(e){this.layer=+e},t}(so),ko=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0 -5px}.no-base[_nghost-%COMP%]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}[_nghost-%COMP%] > select[_ngcontent-%COMP%], [_nghost-%COMP%] > span[_ngcontent-%COMP%]{margin:0 5px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}select[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #aaa;border-radius:4px;padding:4px 20px 4px 8px}"]],data:{}});function _o(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),o["\u0275did"](1,147456,null,0,je.NgSelectOption,[o.ElementRef,o.Renderer2,[8,null]],{value:[0,"value"]},null),o["\u0275did"](2,147456,null,0,je["\u0275q"],[o.ElementRef,o.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),o["\u0275ted"](3,null,["\n ","\n "]))],function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)},function(e,t){e(t,0,0,t.component.toggle===t.context.$implicit.id),e(t,3,0,t.context.$implicit.text)})}function wo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),o["\u0275did"](1,147456,null,0,je.NgSelectOption,[o.ElementRef,o.Renderer2,[8,null]],{value:[0,"value"]},null),o["\u0275did"](2,147456,null,0,je["\u0275q"],[o.ElementRef,o.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),o["\u0275ted"](3,null,["\n ","\n "]))],function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)},function(e,t){e(t,0,0,t.component.layer===t.context.$implicit.id),e(t,3,0,t.context.$implicit.text)})}function Ao(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["layer by tapping this key."]))],null,null)}function To(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["layer by holding this key."]))],null,null)}function Co(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,14,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,5,"input",[["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,r=e.component;return"change"===t&&(i=!1!==o["\u0275nov"](e,7).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,7).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.lockLayerWhenDoubleTapping=n)&&i),i},null,null)),o["\u0275did"](7,16384,null,0,je.CheckboxControlValueAccessor,[o.Renderer2,o.ElementRef],null,null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.CheckboxControlValueAccessor]),o["\u0275did"](9,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](11,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" Lock layer when double tapping this key.\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,9,0,t.component.lockLayerWhenDoubleTapping)},function(e,t){e(t,6,0,o["\u0275nov"](t,11).ngClassUntouched,o["\u0275nov"](t,11).ngClassTouched,o["\u0275nov"](t,11).ngClassPristine,o["\u0275nov"](t,11).ngClassDirty,o["\u0275nov"](t,11).ngClassValid,o["\u0275nov"](t,11).ngClassInvalid,o["\u0275nov"](t,11).ngClassPending)})}function xo(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,32,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,26,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,4,"select",[],null,[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.toggleChanged(n.target.value)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,_o)),o["\u0275did"](8,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["the"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,4,"select",[],null,[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.layerChanged(n.target.value)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,wo)),o["\u0275did"](17,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](20,0,null,null,8,"span",[],null,null,null,null,null)),o["\u0275did"](21,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ao)),o["\u0275did"](24,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,To)),o["\u0275did"](27,16384,null,0,p.p,[o.ViewContainerRef,o.TemplateRef,p.n],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Co)),o["\u0275did"](32,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.toggleData),e(t,17,0,n.layerData),e(t,21,0,n.toggle),e(t,24,0,"toggle"),e(t,32,0,"active"===n.toggle&&n.allowLayerDoubleTap)},null)}function Oo(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Layer switching is only possible from the base layer. "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}function So(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,1,null,xo)),o["\u0275did"](1,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Oo)),o["\u0275did"](4,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,!n.isNotBase),e(t,4,0,n.isNotBase)},null)}var Mo=function(e){function t(){var t=e.call(this)||this;return t.MouseActionParam=ze.MouseActionParam,t.selectedPageIndex=0,t.pages=["Move","Scroll","Click","Speed"],t}return Object(Ci.__extends)(t,e),t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(this.keyActionValid())},t.prototype.keyActionValid=function(){return void 0!==this.mouseActionParam},t.prototype.fromKeyAction=function(e){if(!(e instanceof ze.MouseAction))return!1;var t=e;switch(this.mouseActionParam=t.mouseAction,t.mouseAction===ze.MouseActionParam.moveUp&&(this.selectedPageIndex=0),t.mouseAction){case ze.MouseActionParam.moveDown:case ze.MouseActionParam.moveUp:case ze.MouseActionParam.moveLeft:case ze.MouseActionParam.moveRight:this.selectedPageIndex=0;break;case ze.MouseActionParam.scrollDown:case ze.MouseActionParam.scrollUp:case ze.MouseActionParam.scrollLeft:case ze.MouseActionParam.scrollRight:this.selectedPageIndex=1;break;case ze.MouseActionParam.leftClick:case ze.MouseActionParam.middleClick:case ze.MouseActionParam.rightClick:this.selectedPageIndex=2;break;case ze.MouseActionParam.decelerate:case ze.MouseActionParam.accelerate:this.selectedPageIndex=3;break;default:return!1}return!0},t.prototype.toKeyAction=function(){var e=new ze.MouseAction;return e.mouseAction=this.mouseActionParam,e},t.prototype.changePage=function(e){e<-1||e>3?console.error("Invalid index error: "+e):(this.selectedPageIndex=e,this.mouseActionParam=void 0,this.validAction.emit(!1))},t.prototype.setMouseActionParam=function(e){this.mouseActionParam=e,this.validAction.emit(!0)},t}(so),Eo=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.popover-content[_nghost-%COMP%]{padding:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%]{border-right:1px solid #ccc}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:italic}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:normal}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{content:'';display:block;position:absolute;width:0;height:0;top:0;right:-4rem;border-color:transparent transparent transparent #337ab7;border-style:solid;border-width:2rem}[_nghost-%COMP%] .details[_ngcontent-%COMP%] .btn-placeholder[_ngcontent-%COMP%]{visibility:hidden}.mouse__config--speed[_ngcontent-%COMP%] .btn-default[_ngcontent-%COMP%]{font-size:25px;line-height:22px;padding-top:4px;padding-bottom:4px}.mouse__config--speed[_ngcontent-%COMP%] .btn-default[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:13px;display:block;text-align:center}"]],data:{}});function Po(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.changePage(e.context.index)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](3,null,[" ",""])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,0,0,t.component.selectedPageIndex===t.context.index),e(t,3,0,t.context.$implicit)})}function Io(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,35,"div",[["class","mouse__config mouse__config--move text-center"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.moveUp)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-arrow-up"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.moveLeft)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-arrow-left"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.moveRight)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-arrow-right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](30,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.moveDown)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](32,0,null,null,0,"i",[["class","fa fa-arrow-down"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.moveUp),e(t,12,0,n.mouseActionParam===n.MouseActionParam.moveLeft),e(t,22,0,n.mouseActionParam===n.MouseActionParam.moveRight),e(t,30,0,n.mouseActionParam===n.MouseActionParam.moveDown)})}function Ro(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,35,"div",[["class","mouse__config mouse__config--scroll text-center"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.scrollUp)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-angle-double-up"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.scrollLeft)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-angle-double-left"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.scrollRight)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-angle-double-right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](30,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.scrollDown)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](32,0,null,null,0,"i",[["class","fa fa-angle-double-down"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.scrollUp),e(t,12,0,n.mouseActionParam===n.MouseActionParam.scrollLeft),e(t,22,0,n.mouseActionParam===n.MouseActionParam.scrollRight),e(t,30,0,n.mouseActionParam===n.MouseActionParam.scrollDown)})}function Do(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"div",[["class","mouse__config mouse__config--click"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","btn-group col-xs-12"],["role","group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.leftClick)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Left"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.middleClick)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Middle"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.rightClick)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Right"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.leftClick),e(t,7,0,n.mouseActionParam===n.MouseActionParam.middleClick),e(t,10,0,n.mouseActionParam===n.MouseActionParam.rightClick)})}function No(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,22,"div",[["class","mouse__config mouse__config--speed text-center"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,4,"div",[["class","help-text--mouse-speed text-left"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Press this key along with mouse movement/scrolling to accelerate/decelerate its speed."])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,13,"div",[["class","btn-group btn-group-lg"],["role","group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.decelerate)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n -\n "])),(e()(),o["\u0275eld"](12,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Decelerate"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.accelerate)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n +\n "])),(e()(),o["\u0275eld"](18,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Accelerate"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,10,0,n.mouseActionParam===n.MouseActionParam.decelerate),e(t,16,0,n.mouseActionParam===n.MouseActionParam.accelerate)})}function jo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,null)}function Lo(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,7,"div",[["class","mouse-action col-sm-4"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,4,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Po)),o["\u0275did"](5,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](9,0,null,null,17,"div",[["class","details col-sm-8"]],null,null,null,null,null)),o["\u0275did"](10,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Io)),o["\u0275did"](13,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ro)),o["\u0275did"](16,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Do)),o["\u0275did"](19,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,No)),o["\u0275did"](22,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,jo)),o["\u0275did"](25,16384,null,0,p.p,[o.ViewContainerRef,o.TemplateRef,p.n],null,null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,n.pages),e(t,10,0,n.selectedPageIndex),e(t,13,0,0),e(t,16,0,1),e(t,19,0,2),e(t,22,0,3)},null)}var Uo=["[_nghost-%COMP%]{display:block;width:100%}.action--editor[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;border-radius:0;border:0}.nav[_ngcontent-%COMP%]{padding-bottom:1rem}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:italic}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{cursor:pointer}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{z-index:2}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:normal}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{content:'';display:block;position:absolute;width:0;height:0;top:0;right:-4rem;border-color:transparent transparent transparent #337ab7;border-style:solid;border-width:2rem}.editor__tab-links[_ngcontent-%COMP%], .editor__tabs[_ngcontent-%COMP%]{padding-top:1rem}.editor__tabs[_ngcontent-%COMP%]{border-left:1px solid #ddd;margin-left:-1.6rem;padding-left:3rem}.editor__actions[_ngcontent-%COMP%]{float:right}.editor__actions-container[_ngcontent-%COMP%]{background:#f5f5f5;border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:1rem 1.5rem}.flex-button-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.flex-button[_ngcontent-%COMP%]{-ms-flex-item-align:end;align-self:flex-end}"],Vo=function(){return function(){var e=this;this.valid=new o.EventEmitter,this.validate=function(){return e.valid.emit(e.isMacroValid())}}}(),Fo=/[^\x00-\x7F]/g,Ko=function(e){function t(t){var n=e.call(this)||this;return n.renderer=t,n.isMacroValid=function(){return!!n.input.nativeElement.value},n.init=function(){n.macroAction||(n.macroAction=new ze.TextMacroAction)},n}return Object(Ci.__extends)(t,e),t.prototype.ngOnInit=function(){this.init()},t.prototype.ngAfterViewInit=function(){this.renderer.invokeElementMethod(this.input.nativeElement,"focus")},t.prototype.onTextChange=function(){this.init(),this.macroAction.text=this.input.nativeElement.value},t.prototype.onKeydown=function(e){new RegExp(Fo).test(e.key)&&(e.preventDefault(),e.stopPropagation())},t.prototype.onPaste=function(e){e.preventDefault();var t=this.input.nativeElement,n=e.clipboardData.getData("text/plain"),i=n&&n.replace(Fo,"")||"";if(0!==i.length){var o=t.value||"",r=o.substr(0,t.selectionStart),l=t.selectionEnd,u=o.substr(t.selectionEnd);t.value=r+i+u,t.selectionStart=t.selectionEnd=l+i.length-(0===l?0:1),this.macroAction.text=t.value}},t}(Vo),Bo=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}.macro__text-input[_ngcontent-%COMP%]{width:100%;min-height:10rem;margin-bottom:1rem}"]],data:{}});function Ho(e){return o["\u0275vid"](0,[o["\u0275qud"](402653184,1,{input:0}),(e()(),o["\u0275eld"](1,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Type text"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,[[1,0],["macroTextInput",1]],null,1,"textarea",[["class","macro__text-input"],["name","macro-text"]],null,[[null,"keydown"],[null,"change"],[null,"keyup"],[null,"paste"]],function(e,t,n){var i=!0,o=e.component;return"keydown"===t&&(i=!1!==o.onKeydown(n)&&i),"change"===t&&(i=!1!==o.onTextChange()&&i),"keyup"===t&&(i=!1!==o.validate()&&i),"paste"===t&&(i=!1!==o.onPaste(n)&&i),i},null,null)),(e()(),o["\u0275ted"](7,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,7,0,null==n.macroAction?null:n.macroAction.text)})}var Wo=function(e){function t(){var t=e.call(this)||this;return t.keymapOptions=[],t}return Object(Ci.__extends)(t,e),t.prototype.ngOnChanges=function(e){e.keymaps&&(this.keymapOptions=this.keymaps.map(function(e){return{id:e.abbreviation,text:e.name}}),this.keymaps.length>0&&(this.selectedKeymap=this.keymaps[0])),this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(!0)},t.prototype.onChange=function(e){this.selectedKeymap="-1"===e?void 0:this.keymaps.find(function(t){return t.abbreviation===e})},t.prototype.keyActionValid=function(){return!!this.selectedKeymap},t.prototype.fromKeyAction=function(e){if(!(e instanceof ze.SwitchKeymapAction))return!1;var t=e;this.selectedKeymap=this.keymaps.find(function(e){return e.abbreviation===t.keymapAbbreviation})},t.prototype.toKeyAction=function(){if(!this.keyActionValid())throw new Error("KeyAction is not valid. No selected keymap!");var e=new ze.SwitchKeymapAction;return e.keymapAbbreviation=this.selectedKeymap.abbreviation,e},t}(so),zo=function(e){function t(t){var n=e.call(this)||this;return n.subscription=t.let(Object(jn.d)()).subscribe(function(e){return n.macros=e}),n.macroOptions=[],n.selectedMacroIndex=0,n}return Object(Ci.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroOptions=this.macros.map(function(e,t){return{id:t.toString(),text:e.name}})},t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(!0)},t.prototype.onChange=function(e){this.selectedMacroIndex=+e},t.prototype.keyActionValid=function(){return this.selectedMacroIndex>=0},t.prototype.fromKeyAction=function(e){if(!(e instanceof ze.PlayMacroAction))return!1;var t=e;return this.selectedMacroIndex=this.macros.findIndex(function(e){return t.macroId===e.id}),!0},t.prototype.toKeyAction=function(){if(!this.keyActionValid())throw new Error("KeyAction is not valid. No selected macro!");var e=new ze.PlayMacroAction;return e.macroId=this.macros[this.selectedMacroIndex].id,e},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t}(so),$o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ci.__extends)(t,e),t.prototype.ngOnInit=function(){this.validAction.emit(!0)},t.prototype.keyActionValid=function(){return!0},t.prototype.fromKeyAction=function(){return!1},t.prototype.toKeyAction=function(){},t}(so),qo=function(e){return e[e.Tap=0]="Tap",e[e.Press=1]="Press",e[e.Release=2]="Release",e}({}),Go=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.TabName=qo,t.isMacroValid=function(){var e=t.getKeyMacroAction();return!!e.scancode||!!e.modifierMask},t}return Object(Ci.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new ze.KeyMacroAction),this.defaultKeyAction=new ze.KeystrokeAction(this.macroAction),this.selectTab(this.getTabName(this.macroAction))},t.prototype.selectTab=function(e){this.activeTab=e,this.validate()},t.prototype.getTabName=function(e){return e.action?e.action===ze.MacroKeySubAction.press?qo.Press:e.action===ze.MacroKeySubAction.release?qo.Release:void 0:qo.Tap},t.prototype.getActionType=function(e){switch(e){case qo.Tap:return ze.MacroKeySubAction.tap;case qo.Press:return ze.MacroKeySubAction.press;case qo.Release:return ze.MacroKeySubAction.release;default:throw new Error("Invalid tab type")}},t.prototype.getKeyMacroAction=function(){var e=new ze.KeyMacroAction(this.keypressTab.toKeyAction());return e.action=this.getActionType(this.activeTab),e},t}(Vo),Yo=o["\u0275crt"]({encapsulation:0,styles:[Uo,[".macro-key__container[_ngcontent-%COMP%]{padding:0}.macro-key__types[_ngcontent-%COMP%]{margin-left:0;padding:0 0 1rem}.macro-key__action[_ngcontent-%COMP%]{padding-left:3rem;padding-bottom:1rem}.macro-key__action-container[_ngcontent-%COMP%]{margin-top:-1rem;padding-top:1rem;border-left:1px solid #ddd}.fa[_ngcontent-%COMP%]{min-width:14px}"]],data:{}});function Qo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Tap key"]))],null,null)}function Jo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Press key"]))],null,null)}function Zo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Release key"]))],null,null)}function Xo(e){return o["\u0275vid"](0,[o["\u0275qud"](402653184,1,{selectedTab:0}),o["\u0275qud"](402653184,2,{keypressTab:0}),(e()(),o["\u0275eld"](2,0,null,null,58,"div",[["class","col-xs-12 macro-key__container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,37,"div",[["class","col-xs-3 macro-key__types"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,34,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,[["keyMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Tap)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,0,"i",[["class","fa fa-hand-pointer-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Tap key"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,[["keyHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Press)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](21,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Press key"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](30,0,[["keyRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Release)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](32,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](34,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](36,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Release key"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](43,0,null,null,16,"div",[["class","col-xs-9 macro-key__action-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](45,0,null,null,13,"div",[["class","macro-key__action"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Qo)),o["\u0275did"](48,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Jo)),o["\u0275did"](51,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Zo)),o["\u0275did"](54,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](56,0,null,null,1,"keypress-tab",[],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==e.component.validate()&&i),i},vo,po)),o["\u0275did"](57,573440,[[2,4],["keypressTab",4]],0,co,[Gt],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"]},{validAction:"validAction"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,48,0,n.activeTab===n.TabName.Tap),e(t,51,0,n.activeTab===n.TabName.Press),e(t,54,0,n.activeTab===n.TabName.Release),e(t,57,0,n.defaultKeyAction,!1)},function(e,t){var n=t.component;e(t,8,0,n.activeTab===n.TabName.Tap),e(t,19,0,n.activeTab===n.TabName.Press),e(t,30,0,n.activeTab===n.TabName.Release)})}var er=function(e){return e[e.Move=0]="Move",e[e.Scroll=1]="Scroll",e[e.Click=2]="Click",e[e.Hold=3]="Hold",e[e.Release=4]="Release",e}({}),tr=function(e){function t(){var t=e.call(this)||this;return t.TabName=er,t.isMacroValid=function(){switch(t.macroAction.constructor){case ze.MoveMouseMacroAction:case ze.ScrollMouseMacroAction:var e=t.macroAction,n=e.x,i=e.y;return void 0!==n&&null!==n&&void 0!==i&&null!==i&&(0!==n||0!==i)&&n<1e4&&n>-1e4&&i<1e4&&i>-1e4;case ze.MouseButtonMacroAction:return!!t.macroAction.mouseButtonsMask;default:return!0}},t.buttonLabels=["Left","Middle","Right"],t.selectedButtons=Array(t.buttonLabels.length).fill(!1),t}return Object(Ci.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new ze.MouseButtonMacroAction,this.macroAction.action=ze.MacroMouseSubAction.click);var e=this.getTabName(this.macroAction);this.selectTab(e),[er.Click,er.Hold,er.Release].includes(this.activeTab)&&(this.selectedButtons=this.macroAction.getMouseButtons())},t.prototype.ngOnChanges=function(){this.ngOnInit()},t.prototype.selectTab=function(e){if(this.activeTab=e,e!==this.getTabName(this.macroAction)){switch(this.selectedButtons=[],e){case er.Scroll:this.macroAction=new ze.ScrollMouseMacroAction;break;case er.Move:this.macroAction=new ze.MoveMouseMacroAction;break;default:this.macroAction=new ze.MouseButtonMacroAction,this.macroAction.action=this.getAction(e)}this.validate()}},t.prototype.setMouseClick=function(e){this.selectedButtons[e]=!this.selectedButtons[e],this.macroAction.setMouseButtons(this.selectedButtons),this.validate()},t.prototype.hasButton=function(e){return this.selectedButtons[e]},t.prototype.getAction=function(e){switch(e){case er.Click:return ze.MacroMouseSubAction.click;case er.Hold:return ze.MacroMouseSubAction.hold;case er.Release:return ze.MacroMouseSubAction.release;default:throw new Error("Invalid tab name: "+er[e])}},t.prototype.getTabName=function(e){if(e instanceof ze.MouseButtonMacroAction){if(!e.action||e.isOnlyClickAction())return er.Click;if(e.isOnlyHoldAction())return er.Hold;if(e.isOnlyReleaseAction())return er.Release}else{if(e instanceof ze.MoveMouseMacroAction)return er.Move;if(e instanceof ze.ScrollMouseMacroAction)return er.Scroll}return er.Move},t}(Vo),nr=o["\u0275crt"]({encapsulation:0,styles:[Uo,[".macro-mouse__container[_ngcontent-%COMP%]{padding:0}.macro-mouse__types[_ngcontent-%COMP%]{border-right:1px solid #ddd;border-left:0;margin-top:-1rem;margin-left:0;padding:1rem 0}.macro-mouse__actions[_ngcontent-%COMP%]{padding-left:3rem;padding-bottom:1rem}.fa[_ngcontent-%COMP%]{min-width:14px}.form-horizontal[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{margin:0 0 .5rem}.form-horizontal[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin-right:.5rem}.form-horizontal[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{display:inline-block;width:10ch}"]],data:{}});function ir(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[[1,0],["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Move mouse pointer"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,1,"label",[["for","move-mouse-x"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["X:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,8,"input",[["class","form-control"],["id","move-mouse-x"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,13)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,13).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,13)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,13)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==o["\u0275nov"](e,14).onChange(n.target.value)&&i),"input"===t&&(i=!1!==o["\u0275nov"](e,14).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,14).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.macroAction.x=n)&&i),"keyup"===t&&(i=!1!==r.validate()&&i),i},null,null)),o["\u0275did"](13,16384,null,0,je.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275did"](14,16384,null,0,je["\u0275bc"],[o.Renderer2,o.ElementRef],null,null),o["\u0275did"](15,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),o["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),o["\u0275did"](18,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](20,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" pixels\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,1,"label",[["for","move-mouse-y"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Y:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,8,"input",[["class","form-control"],["id","move-mouse-y"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,29)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,29).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,29)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,29)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==o["\u0275nov"](e,30).onChange(n.target.value)&&i),"input"===t&&(i=!1!==o["\u0275nov"](e,30).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,30).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.macroAction.y=n)&&i),"keyup"===t&&(i=!1!==r.validate()&&i),i},null,null)),o["\u0275did"](29,16384,null,0,je.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275did"](30,16384,null,0,je["\u0275bc"],[o.Renderer2,o.ElementRef],null,null),o["\u0275did"](31,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),o["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),o["\u0275did"](34,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](36,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" pixels\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,15,0,"4"),e(t,18,0,n.macroAction.x),e(t,31,0,"4"),e(t,34,0,n.macroAction.y)},function(e,t){e(t,12,0,o["\u0275nov"](t,15).maxlength?o["\u0275nov"](t,15).maxlength:null,o["\u0275nov"](t,20).ngClassUntouched,o["\u0275nov"](t,20).ngClassTouched,o["\u0275nov"](t,20).ngClassPristine,o["\u0275nov"](t,20).ngClassDirty,o["\u0275nov"](t,20).ngClassValid,o["\u0275nov"](t,20).ngClassInvalid,o["\u0275nov"](t,20).ngClassPending),e(t,28,0,o["\u0275nov"](t,31).maxlength?o["\u0275nov"](t,31).maxlength:null,o["\u0275nov"](t,36).ngClassUntouched,o["\u0275nov"](t,36).ngClassTouched,o["\u0275nov"](t,36).ngClassPristine,o["\u0275nov"](t,36).ngClassDirty,o["\u0275nov"](t,36).ngClassValid,o["\u0275nov"](t,36).ngClassInvalid,o["\u0275nov"](t,36).ngClassPending)})}function or(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[[1,0],["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Scroll with mouse"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,1,"label",[["for","scroll-mouse-x"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["X:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,8,"input",[["class","form-control"],["id","scroll-mouse-x"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,13)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,13).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,13)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,13)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==o["\u0275nov"](e,14).onChange(n.target.value)&&i),"input"===t&&(i=!1!==o["\u0275nov"](e,14).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,14).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.macroAction.x=n)&&i),"keyup"===t&&(i=!1!==r.validate()&&i),i},null,null)),o["\u0275did"](13,16384,null,0,je.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275did"](14,16384,null,0,je["\u0275bc"],[o.Renderer2,o.ElementRef],null,null),o["\u0275did"](15,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),o["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),o["\u0275did"](18,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](20,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" pixels\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,1,"label",[["for","scroll-mouse-y"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Y:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,8,"input",[["class","form-control"],["id","scroll-mouse-y"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,29)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,29).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,29)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,29)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==o["\u0275nov"](e,30).onChange(n.target.value)&&i),"input"===t&&(i=!1!==o["\u0275nov"](e,30).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,30).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.macroAction.y=n)&&i),"keyup"===t&&(i=!1!==r.validate()&&i),i},null,null)),o["\u0275did"](29,16384,null,0,je.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275did"](30,16384,null,0,je["\u0275bc"],[o.Renderer2,o.ElementRef],null,null),o["\u0275did"](31,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),o["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),o["\u0275did"](34,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](36,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" pixels\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,15,0,"4"),e(t,18,0,n.macroAction.x),e(t,31,0,"4"),e(t,34,0,n.macroAction.y)},function(e,t){e(t,12,0,o["\u0275nov"](t,15).maxlength?o["\u0275nov"](t,15).maxlength:null,o["\u0275nov"](t,20).ngClassUntouched,o["\u0275nov"](t,20).ngClassTouched,o["\u0275nov"](t,20).ngClassPristine,o["\u0275nov"](t,20).ngClassDirty,o["\u0275nov"](t,20).ngClassValid,o["\u0275nov"](t,20).ngClassInvalid,o["\u0275nov"](t,20).ngClassPending),e(t,28,0,o["\u0275nov"](t,31).maxlength?o["\u0275nov"](t,31).maxlength:null,o["\u0275nov"](t,36).ngClassUntouched,o["\u0275nov"](t,36).ngClassTouched,o["\u0275nov"](t,36).ngClassPristine,o["\u0275nov"](t,36).ngClassDirty,o["\u0275nov"](t,36).ngClassValid,o["\u0275nov"](t,36).ngClassInvalid,o["\u0275nov"](t,36).ngClassPending)})}function rr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Click mouse button"]))],null,null)}function lr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Hold mouse button"]))],null,null)}function ur(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Release mouse button"]))],null,null)}function ar(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.setMouseClick(e.context.index)&&i),i},null,null)),(e()(),o["\u0275ted"](1,null,["","\n "]))],null,function(e,t){e(t,0,0,t.component.hasButton(t.context.index)),e(t,1,0,t.context.$implicit)})}function sr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[[1,0],["tab",1]],null,16,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,rr)),o["\u0275did"](3,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,lr)),o["\u0275did"](6,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ur)),o["\u0275did"](9,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,4,"div",[["class","btn-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ar)),o["\u0275did"](14,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.activeTab===n.TabName.Click),e(t,6,0,n.activeTab===n.TabName.Hold),e(t,9,0,n.activeTab===n.TabName.Release),e(t,14,0,n.buttonLabels)},null)}function cr(e){return o["\u0275vid"](0,[o["\u0275qud"](671088640,1,{selectedTab:0}),(e()(),o["\u0275eld"](1,0,null,null,75,"div",[["class","col-xs-12 macro-mouse__container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,59,"div",[["class","col-xs-3 macro-mouse__types"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,56,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,[["mouseMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Move)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,0,"i",[["class","fa fa-arrows"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Move pointer"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](18,0,[["mouseScroll",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Scroll)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](20,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,0,"i",[["class","fa fa-arrows-v"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](24,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Scroll"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](29,0,[["mouseClick",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Click)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](31,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](33,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](35,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Click button"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](40,0,[["mouseHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Hold)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](42,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](44,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](46,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Hold button"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](51,0,[["mouseRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Release)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](53,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](55,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](57,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Release button"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](64,0,null,null,11,"div",[["class","col-xs-9 macro-mouse__actions"]],null,null,null,null,null)),o["\u0275did"](65,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ir)),o["\u0275did"](68,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,or)),o["\u0275did"](71,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,sr)),o["\u0275did"](74,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,65,0,n.activeTab),e(t,68,0,n.TabName.Move),e(t,71,0,n.TabName.Scroll),e(t,74,0,n.activeTab===n.TabName.Click||n.activeTab===n.TabName.Hold||n.activeTab===n.TabName.Release)},function(e,t){var n=t.component;e(t,7,0,n.activeTab===n.TabName.Move),e(t,18,0,n.activeTab===n.TabName.Scroll),e(t,29,0,n.activeTab===n.TabName.Click),e(t,40,0,n.activeTab===n.TabName.Hold),e(t,51,0,n.activeTab===n.TabName.Release)})}var dr=function(e){function t(){var t=e.call(this)||this;return t.presets=[.1,.5,1,5,10],t.isMacroValid=function(){return 0!==t.macroAction.delay},t}return Object(Ci.__extends)(t,e),Object.defineProperty(t.prototype,"delay",{get:function(){return this._delay},set:function(e){this._delay=e,this.validate()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new ze.DelayMacroAction),this.delay=this.macroAction.delay>0?this.macroAction.delay/1e3:.5},t.prototype.setDelay=function(e){this._delay=e,this.macroAction.delay=1e3*this._delay,this.validate()},t}(Vo),pr=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}.macro-delay__presets[_ngcontent-%COMP%]{margin-top:1rem}.macro-delay__presets[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:.25rem;margin-bottom:.25rem}.form-group[_ngcontent-%COMP%]{margin-bottom:0}.form-control[_ngcontent-%COMP%]{width:16ch;display:inline-block}"]],data:{}});function fr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-sm btn-default"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.setDelay(e.context.$implicit)&&i),i},null,null)),(e()(),o["\u0275ted"](1,null,["","s\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit)})}function hr(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{input:0}),(e()(),o["\u0275eld"](1,0,null,null,39,"div",[["class","macro-delay"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,7,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,4,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Delay"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,12,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](18,0,[[1,0],["macroDelayInput",1]],null,6,"input",[["class","form-control"],["max","1000"],["min","0"],["placeholder","Delay amount"],["step","0.1"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,19)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,19).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,19)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,19)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==o["\u0275nov"](e,20).onChange(n.target.value)&&i),"input"===t&&(i=!1!==o["\u0275nov"](e,20).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,20).onTouched()&&i),"ngModelChange"===t&&(i=!1!==r.setDelay(o["\u0275nov"](e,18).value)&&i),i},null,null)),o["\u0275did"](19,16384,null,0,je.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275did"](20,16384,null,0,je["\u0275bc"],[o.Renderer2,o.ElementRef],null,null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),o["\u0275did"](22,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](24,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n seconds\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](29,0,null,null,10,"div",[["class","row macro-delay__presets"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](31,0,null,null,7,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](33,0,null,null,1,"h6",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Choose a preset"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,fr)),o["\u0275did"](37,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,22,0,n.delay),e(t,37,0,n.presets)},function(e,t){e(t,18,0,o["\u0275nov"](t,24).ngClassUntouched,o["\u0275nov"](t,24).ngClassTouched,o["\u0275nov"](t,24).ngClassPristine,o["\u0275nov"](t,24).ngClassDirty,o["\u0275nov"](t,24).ngClassValid,o["\u0275nov"](t,24).ngClassInvalid,o["\u0275nov"](t,24).ngClassPending)})}var yr=function(e){return e[e.Keypress=0]="Keypress",e[e.Text=1]="Text",e[e.Mouse=2]="Mouse",e[e.Delay=3]="Delay",e}({}),mr=function(){function e(){var e=this;this.save=new o.EventEmitter,this.cancel=new o.EventEmitter,this.TabName=yr,this.isSelectedMacroValid=!1,this.onValid=function(t){return e.isSelectedMacroValid=t}}return e.prototype.ngOnInit=function(){this.updateEditableMacroAction();var e=this.getTabName(this.editableMacroAction);this.activeTab=e},e.prototype.ngOnChanges=function(){this.ngOnInit()},e.prototype.onCancelClick=function(){this.cancel.emit()},e.prototype.onSaveClick=function(){try{var e=this.selectedTab instanceof Go?this.selectedTab.getKeyMacroAction():this.selectedTab.macroAction;this.save.emit(e)}catch(e){console.error(e)}},e.prototype.selectTab=function(e){this.activeTab=e,e===this.getTabName(this.macroAction)?this.updateEditableMacroAction():(this.editableMacroAction=void 0,this.isSelectedMacroValid=!1)},e.prototype.getTabName=function(e){return e instanceof ze.DelayMacroAction?yr.Delay:e instanceof ze.TextMacroAction?yr.Text:e instanceof ze.KeyMacroAction?yr.Keypress:e instanceof ze.MouseButtonMacroAction||e instanceof ze.MoveMouseMacroAction||e instanceof ze.ScrollMouseMacroAction?yr.Mouse:void 0},e.prototype.updateEditableMacroAction=function(){var e=this.macroAction?this.macroAction:new ze.TextMacroAction;this.editableMacroAction=ze.MacroActionHelper.createMacroAction(e)},e}(),gr=o["\u0275crt"]({encapsulation:0,styles:[Uo],data:{}});function vr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-text-tab",[["class","macro__text"]],null,[[null,"valid"]],function(e,t,n){var i=!0;return"valid"===t&&(i=!1!==e.component.onValid(n)&&i),i},Ho,Bo)),o["\u0275did"](1,4308992,[[1,4],["tab",4]],0,Ko,[o.Renderer],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function br(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-key-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,t,n){var i=!0;return"valid"===t&&(i=!1!==e.component.onValid(n)&&i),i},Xo,Yo)),o["\u0275did"](1,114688,[[1,4],["tab",4]],0,Go,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function kr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-mouse-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,t,n){var i=!0;return"valid"===t&&(i=!1!==e.component.onValid(n)&&i),i},cr,nr)),o["\u0275did"](1,638976,[[1,4],["tab",4]],0,tr,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function _r(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-delay-tab",[["class","macro__delay"]],null,[[null,"valid"]],function(e,t,n){var i=!0;return"valid"===t&&(i=!1!==e.component.onValid(n)&&i),i},hr,pr)),o["\u0275did"](1,114688,[[1,4],["tab",4]],0,dr,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function wr(e){return o["\u0275vid"](0,[o["\u0275qud"](671088640,1,{selectedTab:0}),(e()(),o["\u0275eld"](1,0,null,null,85,"div",[["class","action--editor"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,67,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,48,"div",[["class","col-lg-3 editor__tab-links"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,45,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,[["macroText",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Text)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,0,"i",[["class","fa fa-font"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](15,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Type text"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](20,0,[["macroKeypress",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Keypress)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](26,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Key action"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](31,0,[["macroMouse",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Mouse)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](33,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](35,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](37,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Mouse action"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](42,0,[["macroDelay",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Delay)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](44,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](46,0,null,null,0,"i",[["class","fa fa-clock-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](48,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Delay"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](55,0,null,null,14,"div",[["class","col-xs-12 col-lg-9 editor__tabs"]],null,null,null,null,null)),o["\u0275did"](56,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,vr)),o["\u0275did"](59,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,br)),o["\u0275did"](62,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,kr)),o["\u0275did"](65,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,_r)),o["\u0275did"](68,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](72,0,null,null,13,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](74,0,null,null,10,"div",[["class","col-xs-12 flex-button-wrapper editor__actions-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](76,0,null,null,7,"div",[["class","editor__actions"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](78,0,null,null,1,"button",[["class","btn btn-sm btn-default flex-button"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onCancelClick()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Cancel "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](81,0,null,null,1,"button",[["class","btn btn-sm btn-primary flex-button"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onSaveClick()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Save "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,56,0,n.activeTab),e(t,59,0,n.TabName.Text),e(t,62,0,n.TabName.Keypress),e(t,65,0,n.TabName.Mouse),e(t,68,0,n.TabName.Delay)},function(e,t){var n=t.component;e(t,9,0,n.activeTab===n.TabName.Text),e(t,20,0,n.activeTab===n.TabName.Keypress),e(t,31,0,n.activeTab===n.TabName.Mouse),e(t,42,0,n.activeTab===n.TabName.Delay),e(t,81,0,!n.isSelectedMacroValid)})}var Ar=function(){function e(e){this.mapper=e,this.save=new o.EventEmitter,this.cancel=new o.EventEmitter,this.edit=new o.EventEmitter,this.delete=new o.EventEmitter,this.newItem=!1,this.overflow="hidden"}return e.prototype.ngOnInit=function(){this.updateView(),this.macroAction||(this.editing=!0,this.newItem=!0,this.overflow="visible")},e.prototype.ngOnChanges=function(e){e.macroAction&&this.updateView()},e.prototype.saveEditedAction=function(e){this.macroAction=e,this.editing=!1,this.overflow="hidden",this.updateView(),this.save.emit(e)},e.prototype.editAction=function(){this.editable&&!this.editing?(this.editing=!0,this.edit.emit(),this.setOverflow("visible")):this.cancelEdit()},e.prototype.cancelEdit=function(){this.editing=!1,this.overflow="hidden",this.cancel.emit()},e.prototype.deleteAction=function(){this.delete.emit()},e.prototype.updateView=function(){if(this.macroAction)if(this.macroAction instanceof ze.DelayMacroAction)this.iconName="clock",this.title="Delay of "+((e=this.macroAction).delay>0?e.delay/1e3:0)+"s";else if(this.macroAction instanceof ze.TextMacroAction){var e=this.macroAction;this.iconName="font",this.title="Write text: "+e.text}else this.macroAction instanceof ze.KeyMacroAction?this.setKeyActionContent(e=this.macroAction):this.macroAction instanceof ze.MouseButtonMacroAction?this.setMouseButtonActionContent(e=this.macroAction):this.macroAction instanceof ze.MoveMouseMacroAction||this.macroAction instanceof ze.ScrollMouseMacroAction?this.setMouseMoveScrollActionContent(this.macroAction):this.title=this.macroAction.constructor.name;else this.title="New macro action"},e.prototype.setKeyActionContent=function(e){if(e.hasScancode()||e.hasModifiers()){if(e.isTapAction()?(this.iconName="hand-pointer",this.title="Tap key: "):e.isPressAction()?(this.iconName="hand-rock",this.title="Press key: "):e.isReleaseAction()&&(this.iconName="hand-paper",this.title="Release key: "),e.hasScancode()){var t=(this.mapper.scanCodeToText(e.scancode,e.type)||["Unknown"]).join(" ");t&&(this.title+=t)}if(e.hasModifiers())for(var n=ze.KeyModifiers.leftCtrl;n<=ze.KeyModifiers.rightGui;n<<=1)e.isModifierActive(n)&&(this.title+=" "+ze.KeyModifiers[n])}else this.title="Invalid keypress"},e.prototype.setMouseMoveScrollActionContent=function(e){var t,n;e instanceof ze.MoveMouseMacroAction?(this.iconName="mouse-pointer",this.title="Move pointer",t=this.macroAction):(this.iconName="mouse-pointer",this.title="Scroll",t=this.macroAction),0!==Math.abs(t.x)&&(this.title+=" by "+Math.abs(t.x)+"px "+(t.x>0?"leftward":"rightward"),n=!0),0!==Math.abs(t.y)&&(this.title+=" "+(n?"and":"by")+" "+Math.abs(t.y)+"px "+(t.y>0?"downward":"upward"))},e.prototype.setMouseButtonActionContent=function(e){e.isOnlyClickAction()?(this.iconName="mouse-pointer",this.title="Click mouse button: "):e.isOnlyHoldAction()?(this.iconName="hand-rock",this.title="Hold mouse button: "):e.isOnlyReleaseAction()&&(this.iconName="hand-paper",this.title="Release mouse button: ");var t=["Left","Middle","Right"],n=[];e.getMouseButtons().forEach(function(e,i){e&&t[i]&&n.push(t[i])}),this.title+=n.join(", ")},e.prototype.setOverflow=function(e){var t=this;setTimeout(function(){t.overflow=e},600)},e}(),Tr=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow:visible;display:block}.macro-item[_nghost-%COMP%]:first-of-type .list-group-item[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.macro-item[_nghost-%COMP%]:last-of-type .list-group-item[_ngcontent-%COMP%]{border-bottom:0}.gu-transit[_nghost-%COMP%]{opacity:.2}.gu-transit[_nghost-%COMP%] .list-group-item[_ngcontent-%COMP%]{background:#f5f5f5}.action--item[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;border:0;border-bottom:1px solid #ddd;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.action--item[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{margin:0 5px}.action--item[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1}.action--item[_ngcontent-%COMP%]:first-child{border-radius:0}.action--item.is-editing[_ngcontent-%COMP%]{background:#f5f5f5}.action--item--wrap[_ngcontent-%COMP%]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.action--item--wrap.pointer[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.action--title[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1}.action--movable[_ngcontent-%COMP%]:hover{cursor:move}.list-group-item[_ngcontent-%COMP%]{margin-bottom:0}.macro-action-editor__container[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;border-radius:0;border:none;overflow:hidden}"]],data:{animation:[{type:7,name:"toggler",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function Cr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-option-vertical action--movable"]],null,null,null,null,null))],null,null)}function xr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"icon",[["name","pencil"]],null,null,null,De,we)),o["\u0275did"](1,114688,null,0,_e,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"pencil")},null)}function Or(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"icon",[["name","trash"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.deleteAction()&&i),i},De,we)),o["\u0275did"](1,114688,null,0,_e,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"trash")},null)}function Sr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"macro-action-editor",[["class","macro-action-editor"]],null,[[null,"cancel"],[null,"save"]],function(e,t,n){var i=!0,o=e.component;return"cancel"===t&&(i=!1!==o.cancelEdit()&&i),"save"===t&&(i=!1!==o.saveEditedAction(n)&&i),i},wr,gr)),o["\u0275did"](1,638976,null,0,mr,[],{macroAction:[0,"macroAction"]},{save:"save",cancel:"cancel"}),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,t.component.macroAction)},null)}function Mr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,19,"div",[["class","list-group-item action--item"]],[[2,"is-editing",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Cr)),o["\u0275did"](3,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,10,"div",[["class","action--item--wrap"]],[[2,"pointer",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.editAction()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,1,"icon",[],null,null,null,De,we)),o["\u0275did"](8,114688,null,0,_e,[],{name:[0,"name"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,1,"div",[["class","action--title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](11,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,xr)),o["\u0275did"](14,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Or)),o["\u0275did"](18,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](21,0,null,null,4,"div",[["class","list-group-item macro-action-editor__container"]],[[24,"@toggler",0],[4,"overflow",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Sr)),o["\u0275did"](24,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.movable),e(t,8,0,n.iconName),e(t,14,0,n.editable&&n.macroAction&&!n.editing),e(t,18,0,n.deletable),e(t,24,0,n.editable||n.newItem)},function(e,t){var n=t.component;e(t,0,0,n.editing),e(t,5,0,n.editable),e(t,11,0,n.title),e(t,21,0,n.editable&&n.editing||n.newItem?"active":"inactive",n.overflow)})}var Er=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:2px}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:7px}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] ngx-select[_ngcontent-%COMP%]{-webkit-box-flex:1;-ms-flex:1;flex:1}[_nghost-%COMP%] .macro-action-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-height:200px;max-height:300px;margin:20px 0;overflow-x:hidden;overflow-y:auto;border-radius:4px;border:1px solid #ddd}[_nghost-%COMP%] .macro-action-container[_ngcontent-%COMP%] .list-group[_ngcontent-%COMP%]{margin-bottom:0;border:0}"]],data:{}});function Pr(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" No macros are available to choose from. Create a macro first! "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}function Ir(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,9,"span",[],null,null,null,null,null)),o["\u0275did"](2,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngClass:[0,"ngClass"]},null),o["\u0275pod"](3,{"indent-dropdown-item":0}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](6,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,1,"span",[["class","scancode--searchterm"]],null,null,null,null,null)),(e()(),o["\u0275ted"](9,null,["\n ","\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,2,0,e(t,3,0,"-1"!==t.context.$implicit.data.id))},function(e,t){e(t,6,0,t.context.$implicit.text),e(t,9,0,null==t.context.$implicit.data.additional?null:t.context.$implicit.data.additional.explanation)})}function Rr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"macro-item",[["class","macro-item"]],null,null,null,Mr,Tr)),o["\u0275did"](1,638976,null,0,Ar,[Gt],{macroAction:[0,"macroAction"],editable:[1,"editable"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,t.context.$implicit,!1)},null)}function Dr(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),o["\u0275eld"](2,0,null,null,1,"i",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Please note that macro playback is not implemented yet. You can bind macros, but they won't have any effect until firmware support is implemented. We're working on this."])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,18,"div",[["class","macro-selector"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Play macro: "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,12,"ngx-select",[["optionTextField","text"],["optionValueField","id"],["size","small"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"select"],["document","focusin"],["document","click"]],function(e,t,n){var i=!0,r=e.component;return"document:focusin"===t&&(i=!1!==o["\u0275nov"](e,11).documentClick(n)&&i),"document:click"===t&&(i=!1!==o["\u0275nov"](e,11).documentClick(n)&&i),"select"===t&&(i=!1!==r.onChange(n)&&i),i},io,Ki)),o["\u0275did"](11,2408448,null,3,Vi,[o.IterableDiffers,I.c,o.ChangeDetectorRef,[2,ji]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],size:[3,"size"],autoActiveOnMouseEnter:[4,"autoActiveOnMouseEnter"]},{select:"select"}),o["\u0275qud"](335544320,1,{templateOption:0}),o["\u0275qud"](335544320,2,{templateSelectedOption:0}),o["\u0275qud"](335544320,3,{templateOptionNotFound:0}),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Vi]),o["\u0275did"](16,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},null),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](18,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](0,[[1,2]],null,1,null,Ir)),o["\u0275did"](21,16384,null,0,Ri,[o.TemplateRef],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,7,"div",[["class","macro-action-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](27,0,null,null,4,"div",[["class","list-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Rr)),o["\u0275did"](30,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,11,0,n.macroOptions,"id","text","small",!1),e(t,16,0,null==n.macroOptions[n.selectedMacroIndex]?null:n.macroOptions[n.selectedMacroIndex].id),e(t,30,0,n.macros[n.selectedMacroIndex].macroActions)},function(e,t){e(t,10,0,o["\u0275nov"](t,18).ngClassUntouched,o["\u0275nov"](t,18).ngClassTouched,o["\u0275nov"](t,18).ngClassPristine,o["\u0275nov"](t,18).ngClassDirty,o["\u0275nov"](t,18).ngClassValid,o["\u0275nov"](t,18).ngClassInvalid,o["\u0275nov"](t,18).ngClassPending)})}function Nr(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,1,null,Pr)),o["\u0275did"](1,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Dr)),o["\u0275did"](4,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,0===n.macroOptions.length),e(t,4,0,n.macroOptions.length>0)},null)}var jr=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:2px}[_nghost-%COMP%] > div[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:7px}[_nghost-%COMP%] > div[_ngcontent-%COMP%] ngx-select[_ngcontent-%COMP%]{-webkit-box-flex:1;-ms-flex:1;flex:1}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:last-child{margin-top:10px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:last-child img[_ngcontent-%COMP%]{max-height:100%;max-width:100%}.empty[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.empty[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%;position:relative}"]],data:{}});function Lr(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" No keymaps are available to choose from. Create a keymap first! "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}function Ur(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,9,"span",[],null,null,null,null,null)),o["\u0275did"](2,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngClass:[0,"ngClass"]},null),o["\u0275pod"](3,{"indent-dropdown-item":0}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](6,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,1,"span",[["class","scancode--searchterm"]],null,null,null,null,null)),(e()(),o["\u0275ted"](9,null,["\n ","\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,2,0,e(t,3,0,"-1"!==t.context.$implicit.data.id))},function(e,t){e(t,6,0,t.context.$implicit.text),e(t,9,0,null==t.context.$implicit.data.additional?null:t.context.$implicit.data.additional.explanation)})}function Vr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"div",[["class","empty"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"img",[["src","assets/images/base-layer--blank.svg"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,null)}function Fr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"svg-keyboard",[],null,null,null,ki,gi)),o["\u0275did"](1,638976,null,0,mi,[hi,I.c],{moduleConfig:[0,"moduleConfig"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,t.component.selectedKeymap.layers[0].modules)},null)}function Kr(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,18,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Switch to keymap:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,12,"ngx-select",[["optionTextField","text"],["optionValueField","id"],["size","small"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"select"],["document","focusin"],["document","click"]],function(e,t,n){var i=!0,r=e.component;return"document:focusin"===t&&(i=!1!==o["\u0275nov"](e,7).documentClick(n)&&i),"document:click"===t&&(i=!1!==o["\u0275nov"](e,7).documentClick(n)&&i),"select"===t&&(i=!1!==r.onChange(n)&&i),i},io,Ki)),o["\u0275did"](7,2408448,null,3,Vi,[o.IterableDiffers,I.c,o.ChangeDetectorRef,[2,ji]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],size:[3,"size"],autoActiveOnMouseEnter:[4,"autoActiveOnMouseEnter"]},{select:"select"}),o["\u0275qud"](335544320,1,{templateOption:0}),o["\u0275qud"](335544320,2,{templateSelectedOption:0}),o["\u0275qud"](335544320,3,{templateOptionNotFound:0}),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Vi]),o["\u0275did"](12,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},null),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](14,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](0,[[1,2]],null,1,null,Ur)),o["\u0275did"](17,16384,null,0,Ri,[o.TemplateRef],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](21,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Vr)),o["\u0275did"](24,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Fr)),o["\u0275did"](27,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,7,0,n.keymapOptions,"id","text","small",!1),e(t,12,0,(null==n.selectedKeymap?null:n.selectedKeymap.abbreviation)||-1),e(t,24,0,!(null!=n.selectedKeymap&&n.selectedKeymap.abbreviation)),e(t,27,0,null==n.selectedKeymap?null:n.selectedKeymap.abbreviation)},function(e,t){e(t,6,0,o["\u0275nov"](t,14).ngClassUntouched,o["\u0275nov"](t,14).ngClassTouched,o["\u0275nov"](t,14).ngClassPristine,o["\u0275nov"](t,14).ngClassDirty,o["\u0275nov"](t,14).ngClassValid,o["\u0275nov"](t,14).ngClassInvalid,o["\u0275nov"](t,14).ngClassPending)})}function Br(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,1,null,Lr)),o["\u0275did"](1,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Kr)),o["\u0275did"](4,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,0===n.keymapOptions.length),e(t,4,0,n.keymapOptions.length>0)},null)}var Hr=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:2rem 0}"]],data:{}});function Wr(e){return o["\u0275vid"](2,[(e()(),o["\u0275ted"](-1,null,["This key is unassigned and has no functionality."]))],null,null)}var zr=function(e){return e[e.Keypress=0]="Keypress",e[e.Layer=1]="Layer",e[e.Mouse=2]="Mouse",e[e.Macro=3]="Macro",e[e.Keymap=4]="Keymap",e[e.None=5]="None",e}({}),$r=function(){function e(e){this.cancel=new o.EventEmitter,this.remap=new o.EventEmitter,this.tabName=zr,this.leftArrow=!1,this.rightArrow=!1,this.topPosition=0,this.leftPosition=0,this.currentKeymap$=new Si.BehaviorSubject(void 0),this.animationState="closed",this.keymaps$=e.let(Object(jn.b)()).combineLatest(this.currentKeymap$).map(function(e){var t=e[1];return e[0].filter(function(e){return t.abbreviation!==e.abbreviation})})}return e.prototype.ngOnChanges=function(e){this.keyPosition&&this.wrapPosition&&(e.keyPosition||e.wrapPosition)&&this.calculatePosition(),e.defaultKeyAction&&this.selectTab(this.defaultKeyAction instanceof ze.KeystrokeAction?zr.Keypress:this.defaultKeyAction instanceof ze.SwitchLayerAction?zr.Layer:this.defaultKeyAction instanceof ze.MouseAction?zr.Mouse:this.defaultKeyAction instanceof ze.PlayMacroAction?zr.Macro:this.defaultKeyAction instanceof ze.SwitchKeymapAction?zr.Keymap:zr.None),e.visible&&(this.animationState=e.visible.currentValue?"opened":"closed"),e.currentKeymap&&this.currentKeymap$.next(this.currentKeymap)},e.prototype.onCancelClick=function(){this.cancel.emit(void 0)},e.prototype.onRemapKey=function(){if(this.keyActionValid)try{this.remap.emit({remapOnAllKeymap:this.remapInfo.remapOnAllKeymap,remapOnAllLayer:this.remapInfo.remapOnAllLayer,action:this.selectedTab.toKeyAction()})}catch(e){console.error(e)}},e.prototype.onEscape=function(){this.cancel.emit()},e.prototype.onKeyDown=function(e){this.visible&&(this.onRemapKey(),e.preventDefault())},e.prototype.selectTab=function(e){this.activeTab=e},e.prototype.onOverlay=function(){this.cancel.emit(void 0)},e.prototype.calculatePosition=function(){var e=this.wrapPosition.left+265,t=this.popoverHost.nativeElement,n=this.keyPosition.left+this.keyPosition.width/2;this.leftArrow=ne+this.wrapPosition.width,this.leftArrow?n=this.keyPosition.left:this.rightArrow?n=this.keyPosition.left-t.offsetWidth+this.keyPosition.width:n-=t.offsetWidth/2,this.topPosition=this.keyPosition.top+this.keyPosition.height+7+window.scrollY,this.leftPosition=n},e}(),qr=o["\u0275crt"]({encapsulation:0,styles:[[".popover[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:0;max-width:568px;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.popover.leftArrow[_ngcontent-%COMP%] .arrowCustom[_ngcontent-%COMP%]{-webkit-transform:none;transform:none;left:22px}.popover.rightArrow[_ngcontent-%COMP%] .arrowCustom[_ngcontent-%COMP%]{-webkit-transform:none;transform:none;right:22px;left:auto}.nav-tabs[_ngcontent-%COMP%] > li[_ngcontent-%COMP%], .popover[_ngcontent-%COMP%] > .container-fluid[_ngcontent-%COMP%]{overflow:hidden}.arrowCustom[_ngcontent-%COMP%]{position:absolute;top:-16px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:41px;height:16px}.arrowCustom[_ngcontent-%COMP%]:before{content:'';width:0;height:0;border-left:21px solid transparent;border-right:21px solid transparent;border-bottom:17px solid rgba(0,0,0,.2);display:block;position:absolute;top:-1px}.arrowCustom[_ngcontent-%COMP%]:after{content:'';width:0;height:0;border-left:20px solid transparent;border-right:20px solid transparent;border-bottom:16px solid #f7f7f7;display:block;position:absolute;top:0}.popover-action[_ngcontent-%COMP%]{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-top:1px solid #ebebeb;border-radius:0 0 5px 5px}.popover-title.menu-tabs[_ngcontent-%COMP%]{padding:.5rem .5rem 0;display:block}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%]{position:relative;top:1px;display:-webkit-box;display:-ms-flexbox;display:flex}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%] .menu-tabs--item[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%] .menu-tabs--item[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:.25em}.popover-content[_ngcontent-%COMP%]{padding:10px 24px}.popover-overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:0;top:0;left:0;z-index:1050;background:rgba(0,0,0,0);-webkit-transition:background .2s ease-out,height 0s .2s linear;transition:background .2s ease-out,height 0s .2s linear}.popover-overlay.display[_ngcontent-%COMP%]{height:100%;background:rgba(0,0,0,.2);-webkit-transition:background .2s ease-out;transition:background .2s ease-out}.popover-action-form[_ngcontent-%COMP%]{margin-top:4px}.popover-action-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-right:5px}"]],data:{animation:[{type:7,name:"popover",definitions:[{type:0,name:"closed",styles:{type:6,styles:{transform:"translateY(30px)",visibility:"hidden",opacity:0},offset:null},options:void 0},{type:0,name:"opened",styles:{type:6,styles:{transform:"translateY(0)",visibility:"visible",opacity:1},offset:null},options:void 0},{type:1,expr:"opened => closed",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(0)",visibility:"visible",opacity:1,offset:0},offset:null},{type:6,styles:{transform:"translateY(30px)",visibility:"hidden",opacity:0,offset:1},offset:null}]},timings:"200ms ease-out"}],options:null},{type:1,expr:"closed => opened",animation:[{type:6,styles:{visibility:"visible"},offset:null},{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(30px)",opacity:0,offset:0},offset:null},{type:6,styles:{transform:"translateY(0)",opacity:1,offset:1},offset:null}]},timings:"200ms ease-out"}],options:null}],options:{}}]}});function Gr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"keypress-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},vo,po)),o["\u0275did"](1,573440,[[1,4],["tab",4]],0,co,[Gt],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction,!0)},null)}function Yr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"layer-tab",[["class","popover-content"]],[[2,"no-base",null]],[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},So,ko)),o["\u0275did"](1,573440,[[1,4],["tab",4]],0,bo,[],{defaultKeyAction:[0,"defaultKeyAction"],currentLayer:[1,"currentLayer"],allowLayerDoubleTap:[2,"allowLayerDoubleTap"]},{validAction:"validAction"})],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,n.currentLayer,n.allowLayerDoubleTap)},function(e,t){e(t,0,0,o["\u0275nov"](t,1).isNotBase)})}function Qr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"mouse-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},Lo,Eo)),o["\u0275did"](1,573440,[[1,4],["tab",4]],0,Mo,[],{defaultKeyAction:[0,"defaultKeyAction"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction)},null)}function Jr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},Nr,Er)),o["\u0275did"](1,770048,[[1,4],["tab",4]],0,zo,[u.m],{defaultKeyAction:[0,"defaultKeyAction"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction)},null)}function Zr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"keymap-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},Br,jr)),o["\u0275did"](1,573440,[[1,4],["tab",4]],0,Wo,[],{defaultKeyAction:[0,"defaultKeyAction"],keymaps:[1,"keymaps"]},{validAction:"validAction"}),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,o["\u0275unv"](t,1,1,o["\u0275nov"](t,2).transform(n.keymaps$)))},null)}function Xr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"none-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},Wr,Hr)),o["\u0275did"](1,114688,[[1,4],["tab",4]],0,$o,[],null,{validAction:"validAction"})],function(e,t){e(t,1,0)},null)}function el(e){return o["\u0275vid"](2,[o["\u0275qud"](671088640,1,{selectedTab:0}),o["\u0275qud"](402653184,2,{popoverHost:0}),(e()(),o["\u0275eld"](2,0,[[2,0],["popover",1]],null,151,"div",[["class","popover"]],[[24,"@popover",0],[4,"top","px"],[4,"left","px"]],null,null,null,null)),o["\u0275did"](3,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o["\u0275pod"](4,{leftArrow:0,rightArrow:1}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,0,"div",[["class","arrowCustom"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,70,"div",[["class","popover-title menu-tabs"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,67,"ul",[["class","nav nav-tabs popover-menu"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,[["keypress",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.Keypress)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](18,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Keypress"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,[["layer",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.Layer)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-clone"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](29,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Layer"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](34,0,[["mouse",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.Mouse)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](36,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](38,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](40,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Mouse"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](45,0,[["macro",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.Macro)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](47,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](49,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](51,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Macro"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](56,0,[["keymap",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.Keymap)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](58,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](60,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](62,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Keymap"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](67,0,[["none",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.None)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](69,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](71,0,null,null,0,"i",[["class","fa fa-ban"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](73,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["None"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](80,0,null,null,20,"div",[],null,null,null,null,null)),o["\u0275did"](81,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Gr)),o["\u0275did"](84,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Yr)),o["\u0275did"](87,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Qr)),o["\u0275did"](90,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Jr)),o["\u0275did"](93,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Zr)),o["\u0275did"](96,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Xr)),o["\u0275did"](99,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](102,0,null,null,50,"div",[["class","popover-action"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](104,0,null,null,38,"form",[["class","form-inline d-inline-block popover-action-form"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(e,t,n){var i=!0;return"submit"===t&&(i=!1!==o["\u0275nov"](e,106).onSubmit(n)&&i),"reset"===t&&(i=!1!==o["\u0275nov"](e,106).onReset()&&i),i},null,null)),o["\u0275did"](105,16384,null,0,je["\u0275bf"],[],null,null),o["\u0275did"](106,4210688,null,0,je.NgForm,[[8,null],[8,null]],null,null),o["\u0275prd"](2048,null,je.ControlContainer,null,[je.NgForm]),o["\u0275did"](108,16384,null,0,je.NgControlStatusGroup,[je.ControlContainer],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](110,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](112,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](114,0,null,null,5,"input",[["name","remapOnAllKeymap"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,r=e.component;return"change"===t&&(i=!1!==o["\u0275nov"](e,115).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,115).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.remapInfo.remapOnAllKeymap=n)&&i),i},null,null)),o["\u0275did"](115,16384,null,0,je.CheckboxControlValueAccessor,[o.Renderer2,o.ElementRef],null,null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.CheckboxControlValueAccessor]),o["\u0275did"](117,671744,null,0,je.NgModel,[[2,je.ControlContainer],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](119,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" Remap on all keymaps\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](123,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](125,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](127,0,null,null,5,"input",[["name","remapOnAllLayer"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,r=e.component;return"change"===t&&(i=!1!==o["\u0275nov"](e,128).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,128).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.remapInfo.remapOnAllLayer=n)&&i),i},null,null)),o["\u0275did"](128,16384,null,0,je.CheckboxControlValueAccessor,[o.Renderer2,o.ElementRef],null,null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.CheckboxControlValueAccessor]),o["\u0275did"](130,671744,null,0,je.NgModel,[[2,je.ControlContainer],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](132,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" Remap on all layers\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](136,0,null,null,5,"div",[["class","d-inline-block"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](138,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","525"],["name","question-circle"],["title","
    \n
  • Default behavior: Remap the key on the the current layer of the current keymap.
  • \n
  • Remap on all keymaps: Remap key on the current layer of all keymaps.
  • \n
  • Remap on all layers: Remap key on all layers of the current keymap.
  • \n
  • Remap on all keymaps + Remap on all layers: Remap key on all layers of all keymaps.
  • \n
"]],[[1,"data-placement",0]],null,null,De,we)),o["\u0275did"](139,114688,null,0,_e,[],{name:[0,"name"]},null),o["\u0275did"](140,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](144,0,null,null,7,"div",[["class","d-inline-block pull-right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](146,0,null,null,1,"button",[["class","btn btn-sm btn-default"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onCancelClick()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Cancel"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](149,0,null,null,1,"button",[["class","btn btn-sm btn-primary"],["type","button"]],[[2,"disabled",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onRemapKey()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Remap key\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](155,0,null,null,0,"div",[["class","popover-overlay"]],[[2,"display",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onOverlay()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,"popover",e(t,4,0,n.leftArrow,n.rightArrow)),e(t,81,0,n.activeTab),e(t,84,0,n.tabName.Keypress),e(t,87,0,n.tabName.Layer),e(t,90,0,n.tabName.Mouse),e(t,93,0,n.tabName.Macro),e(t,96,0,n.tabName.Keymap),e(t,99,0,n.tabName.None),e(t,117,0,"remapOnAllKeymap",n.remapInfo.remapOnAllKeymap),e(t,130,0,"remapOnAllLayer",n.remapInfo.remapOnAllLayer),e(t,139,0,"question-circle"),e(t,140,0,"
    \n
  • Default behavior: Remap the key on the the current layer of the current keymap.
  • \n
  • Remap on all keymaps: Remap key on the current layer of all keymaps.
  • \n
  • Remap on all layers: Remap key on all layers of the current keymap.
  • \n
  • Remap on all keymaps + Remap on all layers: Remap key on all layers of all keymaps.
  • \n
","true","525")},function(e,t){var n=t.component;e(t,2,0,n.animationState,n.topPosition,n.leftPosition),e(t,12,0,n.activeTab===n.tabName.Keypress),e(t,23,0,n.activeTab===n.tabName.Layer),e(t,34,0,n.activeTab===n.tabName.Mouse),e(t,45,0,n.activeTab===n.tabName.Macro),e(t,56,0,n.activeTab===n.tabName.Keymap),e(t,67,0,n.activeTab===n.tabName.None),e(t,104,0,o["\u0275nov"](t,108).ngClassUntouched,o["\u0275nov"](t,108).ngClassTouched,o["\u0275nov"](t,108).ngClassPristine,o["\u0275nov"](t,108).ngClassDirty,o["\u0275nov"](t,108).ngClassValid,o["\u0275nov"](t,108).ngClassInvalid,o["\u0275nov"](t,108).ngClassPending),e(t,114,0,o["\u0275nov"](t,119).ngClassUntouched,o["\u0275nov"](t,119).ngClassTouched,o["\u0275nov"](t,119).ngClassPristine,o["\u0275nov"](t,119).ngClassDirty,o["\u0275nov"](t,119).ngClassValid,o["\u0275nov"](t,119).ngClassInvalid,o["\u0275nov"](t,119).ngClassPending),e(t,127,0,o["\u0275nov"](t,132).ngClassUntouched,o["\u0275nov"](t,132).ngClassTouched,o["\u0275nov"](t,132).ngClassPristine,o["\u0275nov"](t,132).ngClassDirty,o["\u0275nov"](t,132).ngClassValid,o["\u0275nov"](t,132).ngClassInvalid,o["\u0275nov"](t,132).ngClassPending),e(t,138,0,o["\u0275nov"](t,140).placement),e(t,149,0,!n.keyActionValid),e(t,155,0,n.visible)})}var tl=function(){function e(e,t,n,i){this.store=e,this.mapper=t,this.element=n,this.renderer=i,this.popoverEnabled=!0,this.tooltipEnabled=!1,this.descriptionChanged=new o.EventEmitter,this.currentLayer=0,this.remapInfo={remapOnAllKeymap:!1,remapOnAllLayer:!1},this.keyEditConfig={moduleId:void 0,keyId:void 0},this.tooltipData={posTop:0,posLeft:0,content:Ve.Observable.of([]),show:!1}}return Object.defineProperty(e.prototype,"space",{get:function(){return this.popoverEnabled},enumerable:!0,configurable:!0}),e.prototype.onResize=function(){this.wrapHost&&(this.wrapPosition=this.wrapHost.getBoundingClientRect()),this.keyElement&&(this.keyPosition=this.keyElement.getBoundingClientRect())},e.prototype.ngOnInit=function(){this.wrapHost=this.element.nativeElement,this.wrapPosition=this.wrapHost.getBoundingClientRect()},e.prototype.ngOnChanges=function(e){var t=e.keymap;t&&(this.popoverShown=!1,this.layers=this.keymap.layers,this.keybindAnimationEnabled=!t.isFirstChange()&&t.previousValue.abbreviation===t.currentValue.abbreviation||t.isFirstChange())},e.prototype.onKeyClick=function(e){if(!this.popoverShown&&this.popoverEnabled){this.keyEditConfig={moduleId:e.moduleId,keyId:e.keyId},this.selectedKey={layerId:this.currentLayer,moduleId:e.moduleId,keyId:e.keyId};var t=this.layers[this.currentLayer].modules[e.moduleId].keyActions[e.keyId];this.keyElement=e.keyTarget,this.remapInfo={remapOnAllKeymap:e.shiftPressed,remapOnAllLayer:e.altPressed},this.showPopover(t)}},e.prototype.onKeyHover=function(e){this.tooltipEnabled&&(e.over?this.showTooltip(this.layers[this.currentLayer].modules[e.moduleId].keyActions[e.keyId],e.event):this.hideTooltip())},e.prototype.onCapture=function(e){var t=new ze.KeystrokeAction,n=e.captured.left.concat(e.captured.right).map(function(e){return e?1:0});t.scancode=e.captured.code,t.modifierMask=0;for(var i=0;i0&&(n+=" ("+i+")"),r.push({name:"Scancode",value:n})}return t.hasActiveModifier()&&r.push({name:"Modifiers",value:t.getModifierList().join(", ")}),t.hasSecondaryRoleAction()&&r.push({name:"Secondary role",value:ze.SecondaryRoleAction[t.secondaryRoleAction]}),Ve.Observable.of(r)}if(e instanceof ze.MouseAction){var o=e,r=[{name:"Action type",value:"Mouse"},{name:"Action",value:Object(ze.camelCaseToSentence)(ze.MouseActionParam[o.mouseAction])}];return Ve.Observable.of(r)}if(e instanceof ze.PlayMacroAction){var l=e;return this.store.select(function(e){return e.userConfiguration.macros}).map(function(e){return e.find(function(e){return e.id===l.macroId}).name}).map(function(e){return[{name:"Action type",value:"Play macro"},{name:"Macro name",value:e}]})}if(e instanceof ze.SwitchKeymapAction){var u=e;return this.store.select(function(e){return e.userConfiguration.keymaps}).map(function(e){return e.find(function(e){return e.abbreviation===u.keymapAbbreviation}).name}).map(function(e){return[{name:"Action type",value:"Switch keymap"},{name:"Keymap",value:e}]})}if(e instanceof ze.SwitchLayerAction){var a=e;return r=[{name:"Action type",value:"Switch layer"},{name:"Layer",value:Object(ze.capitalizeFirstLetter)(ze.LayerName[a.layer])},{name:"Toogle",value:a.switchLayerMode===ze.SwitchLayerMode.toggle?"On":"Off"}],Ve.Observable.of(r)}return Ve.Observable.of([])},e}(),nl=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;display:block}.space[_nghost-%COMP%]{margin-bottom:405px}keyboard-slider[_ngcontent-%COMP%]{display:block;position:relative;height:500px;margin-top:30px}.tooltip[_ngcontent-%COMP%]{position:fixed;-webkit-transform:translate(-50%,-6px);transform:translate(-50%,-6px);display:none}.tooltip-inner[_ngcontent-%COMP%]{background:#fff;color:#000;-webkit-box-shadow:0 1px 5px #000;box-shadow:0 1px 5px #000;text-align:left}.tooltip-inner[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:2px}.tooltip-inner[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.tooltip.bottom[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{border-bottom-color:#fff;top:1px}.tooltip.in[_ngcontent-%COMP%]{display:block;opacity:1}"]],data:{}});function il(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["\n ",": ","\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit.name,t.context.$implicit.value)})}function ol(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"layers",[],[[2,"disabled",null]],[[null,"select"]],function(e,t,n){var i=!0;return"select"===t&&(i=!1!==e.component.selectLayer(n.index)&&i),i},jt,Dt)),o["\u0275did"](2,49152,null,0,Rt,[],{current:[0,"current"]},{select:"select"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"keyboard-slider",[],null,[[null,"keyClick"],[null,"keyHover"],[null,"capture"],[null,"descriptionChanged"]],function(e,t,n){var i=!0,o=e.component;return"keyClick"===t&&(i=!1!==o.onKeyClick(n)&&i),"keyHover"===t&&(i=!1!==o.onKeyHover(n)&&i),"capture"===t&&(i=!1!==o.onCapture(n)&&i),"descriptionChanged"===t&&(i=!1!==o.onDescriptionChanged(n)&&i),i},Ti,wi)),o["\u0275did"](5,573440,null,0,_i,[],{layers:[0,"layers"],currentLayer:[1,"currentLayer"],keybindAnimationEnabled:[2,"keybindAnimationEnabled"],capturingEnabled:[3,"capturingEnabled"],halvesSplit:[4,"halvesSplit"],selectedKey:[5,"selectedKey"],keyboardLayout:[6,"keyboardLayout"],description:[7,"description"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"}),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](7,0,[[1,0]],null,1,"popover",[["tabindex","0"]],null,[[null,"cancel"],[null,"remap"],[null,"keydown.escape"],["document","keydown.control.enter"]],function(e,t,n){var i=!0,r=e.component;return"keydown.escape"===t&&(i=!1!==o["\u0275nov"](e,8).onEscape()&&i),"document:keydown.control.enter"===t&&(i=!1!==o["\u0275nov"](e,8).onKeyDown(n)&&i),"cancel"===t&&(i=!1!==r.hidePopover()&&i),"remap"===t&&(i=!1!==r.onRemap(n)&&i),i},el,qr)),o["\u0275did"](8,573440,null,0,$r,[u.m],{defaultKeyAction:[0,"defaultKeyAction"],currentKeymap:[1,"currentKeymap"],currentLayer:[2,"currentLayer"],keyPosition:[3,"keyPosition"],wrapPosition:[4,"wrapPosition"],visible:[5,"visible"],allowLayerDoubleTap:[6,"allowLayerDoubleTap"],remapInfo:[7,"remapInfo"]},{cancel:"cancel",remap:"remap"}),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](10,0,null,null,10,"div",[["class","tooltip bottom"]],[[2,"in",null],[4,"top","px"],[4,"left","px"]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,0,"div",[["class","tooltip-arrow"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,5,"div",[["class","tooltip-inner"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,il)),o["\u0275did"](17,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.currentLayer),e(t,5,0,n.layers,n.currentLayer,n.keybindAnimationEnabled,n.popoverEnabled,n.halvesSplit,n.selectedKey,n.keyboardLayout,n.keymap.description),e(t,8,0,n.popoverInitKeyAction,n.keymap,n.currentLayer,n.keyPosition,n.wrapPosition,n.popoverShown,n.allowLayerDoubleTap,n.remapInfo),e(t,17,0,o["\u0275unv"](t,17,0,o["\u0275nov"](t,18).transform(n.tooltipData.content)))},function(e,t){var n=t.component;e(t,1,0,n.popoverShown),e(t,10,0,n.tooltipData.show,n.tooltipData.posTop,n.tooltipData.posLeft)})}function rl(e){return o["\u0275vid"](2,[o["\u0275qud"](671088640,1,{popover:0}),(e()(),o["\u0275and"](16777216,null,null,1,null,ol)),o["\u0275did"](2,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,2,0,t.component.layers)},null)}n("okk1"),n("KRCp"),n("PvYY"),n("uCY4"),n("xOQQ");var ll=n("lDdF"),ul=function(){function e(e,t){this.store=e,this.keymap$=t.params.pluck("abbr").switchMap(function(t){return e.let(Object(jn.a)(t))}).publishReplay(1).refCount(),this.deletable$=e.let(Object(jn.b)()).map(function(e){return e.length>1}),this.keyboardLayout$=e.select(c.n),this.allowLayerDoubleTap$=e.select(c.a)}return e.prototype.downloadKeymap=function(){var e=this,t=this.keymap$.switchMap(function(t){return e.toExportableJSON(t)}).map(function(e){return JSON.stringify(e)});this.keymap$.combineLatest(t).first().subscribe(function(e){var t=e[1],n=e[0].name+"_keymap.json";Object(ll.saveAs)(new Blob([t],{type:"application/json"}),n)})},e.prototype.toggleKeyboardSplit=function(){this.keyboardSplit=!this.keyboardSplit},e.prototype.descriptionChanged=function(e){this.store.dispatch(new Ot.a.EditDescriptionAction(e))},e.prototype.toExportableJSON=function(e){return this.store.let(Object(jn.e)()).first().map(function(t){return{site:"https://ultimatehackingkeyboard.com",description:"Ultimate Hacking Keyboard keymap",keyboardModel:"UHK60",userConfigMajorVersion:t.userConfigMajorVersion,userConfigMinorVersion:t.userConfigMinorVersion,userConfigPatchVersion:t.userConfigPatchVersion,objectType:"keymap",objectValue:e.toJsonObject()}})},e}(),al=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function sl(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,3,"keymap-header",[],null,[[null,"downloadClick"],["window","resize"]],function(e,t,n){var i=!0,r=e.component;return"window:resize"===t&&(i=!1!==o["\u0275nov"](e,2).windowResize()&&i),"downloadClick"===t&&(i=!1!==r.downloadKeymap()&&i),i},It,Pt)),o["\u0275did"](2,573440,null,0,Et,[u.m,o.Renderer2],{keymap:[0,"keymap"],deletable:[1,"deletable"]},{downloadClick:"downloadClick"}),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,4,"svg-keyboard-wrap",[],[[2,"space",null]],[[null,"descriptionChanged"],["window","resize"]],function(e,t,n){var i=!0,r=e.component;return"window:resize"===t&&(i=!1!==o["\u0275nov"](e,7).onResize()&&i),"descriptionChanged"===t&&(i=!1!==r.descriptionChanged(n)&&i),i},rl,nl)),o["\u0275did"](7,638976,null,0,tl,[u.m,Gt,o.ElementRef,o.Renderer],{keymap:[0,"keymap"],halvesSplit:[1,"halvesSplit"],keyboardLayout:[2,"keyboardLayout"],allowLayerDoubleTap:[3,"allowLayerDoubleTap"]},{descriptionChanged:"descriptionChanged"}),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,o["\u0275unv"](t,2,0,o["\u0275nov"](t,3).transform(n.keymap$)),o["\u0275unv"](t,2,1,o["\u0275nov"](t,4).transform(n.deletable$))),e(t,7,0,o["\u0275unv"](t,7,0,o["\u0275nov"](t,8).transform(n.keymap$)),n.keyboardSplit,o["\u0275unv"](t,7,2,o["\u0275nov"](t,9).transform(n.keyboardLayout$)),o["\u0275unv"](t,7,3,o["\u0275nov"](t,10).transform(n.allowLayerDoubleTap$)))},function(e,t){e(t,6,0,o["\u0275nov"](t,7).space)})}function cl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Sorry, there is no keymap with this abbreviation.\n"]))],null,null)}function dl(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,2,null,sl)),o["\u0275did"](1,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,2,null,cl)),o["\u0275did"](5,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,o["\u0275unv"](t,1,0,o["\u0275nov"](t,2).transform(n.keymap$))),e(t,5,0,!o["\u0275unv"](t,5,0,o["\u0275nov"](t,6).transform(n.keymap$)))},null)}var pl=o["\u0275ccf"]("keymap-edit",ul,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"keymap-edit",[["class","container-fluid"]],null,[["window","keydown.alt.s"]],function(e,t,n){var i=!0;return"window:keydown.alt.s"===t&&(i=!1!==o["\u0275nov"](e,1).toggleKeyboardSplit(n)&&i),i},dl,al)),o["\u0275did"](1,49152,null,0,ul,[u.m,le.a],null,null)],null,null)},{},{},[]),fl=function(){function e(e){this.store=e,this.presetsAll$=e.select(function(e){return e.presetKeymaps}),this.filterExpression$=new Si.BehaviorSubject(""),this.presets$=this.presetsAll$.combineLatest(this.filterExpression$,function(e,t){return e.filter(function(e){return e.name.toLocaleLowerCase().includes(t)})}).publishReplay(1).refCount()}return e.prototype.filterKeyboards=function(e){this.filterExpression$.next(e)},e.prototype.addKeymap=function(e){this.store.dispatch(Ot.a.addKeymap(e))},e}(),hl=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]{position:relative}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]:before{content:attr(data-title);display:inline-block;position:absolute;bottom:-.3em;right:100%;font-size:2.4rem;padding-right:.25em;margin:0}.keymap__search[_ngcontent-%COMP%]{margin-top:10px}.keymap__search[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{width:100%;max-width:350px;float:left}.keymap__search_amount[_ngcontent-%COMP%]{float:left;margin:7px 0 0 20px}.keymap__description[_ngcontent-%COMP%]{margin-bottom:20px}.keymap__list[_ngcontent-%COMP%]{margin-top:40px}.keymap__list_item[_ngcontent-%COMP%]{margin-bottom:50px}.keymap__list[_ngcontent-%COMP%] .btn-group-lg[_ngcontent-%COMP%]{margin:30px 0 0;width:100%;text-align:center}.keymap__list[_ngcontent-%COMP%] .btn-group-lg[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{float:none;padding-left:50px;padding-right:50px}"]],data:{}});function yl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[["keyboard",1]],null,17,"div",[["class","keymap__list_item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),o["\u0275ted"](3,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"p",[["class","keymap__description"]],null,null,null,null,null)),(e()(),o["\u0275ted"](6,null,["\n ","\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,2,"svg-keyboard-wrap",[],[[2,"space",null]],[["window","resize"]],function(e,t,n){var i=!0;return"window:resize"===t&&(i=!1!==o["\u0275nov"](e,9).onResize()&&i),i},rl,nl)),o["\u0275did"](9,638976,null,0,tl,[u.m,Gt,o.ElementRef,o.Renderer],{keymap:[0,"keymap"],popoverEnabled:[1,"popoverEnabled"],tooltipEnabled:[2,"tooltipEnabled"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,4,"div",[["class","btn-group btn-group-lg"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,1,"button",[["class","btn btn-default"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.addKeymap(e.context.$implicit)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Add keymap"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,9,0,t.context.$implicit,!1,!0)},function(e,t){e(t,3,0,t.context.$implicit.name),e(t,6,0,t.context.$implicit.description),e(t,8,0,o["\u0275nov"](t,9).space)})}function ml(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Sorry, no keyboard found under this search query.\n"]))],null,null)}function gl(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Add new keymap"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,16,"div",[["class","keymap__search clearfix"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,8,"div",[["class","input-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,3,"span",[["class","input-group-addon"],["id","sizing-addon1"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-search"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,0,"input",[["class","form-control"],["placeholder","Search ..."],["type","text"]],null,[[null,"input"]],function(e,t,n){var i=!0;return"input"===t&&(i=!1!==e.component.filterKeyboards(n.target.value)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](20,0,null,null,3,"div",[["class","keymap__search_amount"]],null,null,null,null,null)),(e()(),o["\u0275ted"](21,null,["\n "," / "," keymaps shown\n "])),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](26,0,null,null,5,"div",[["class","keymap__list"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,yl)),o["\u0275did"](29,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,2,null,ml)),o["\u0275did"](34,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,29,0,o["\u0275unv"](t,29,0,o["\u0275nov"](t,30).transform(n.presets$))),e(t,34,0,0===o["\u0275unv"](t,34,0,o["\u0275nov"](t,35).transform(n.presets$)).length)},function(e,t){var n=t.component;e(t,21,0,o["\u0275unv"](t,21,0,o["\u0275nov"](t,22).transform(n.presets$)).length,o["\u0275unv"](t,21,1,o["\u0275nov"](t,23).transform(n.presetsAll$)).length)})}var vl=o["\u0275ccf"]("keymap-add",fl,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"keymap-add",[["class","container-fluid"]],null,null,null,gl,hl)),o["\u0275did"](1,49152,null,0,fl,[u.m],null,null)],null,null)},{},{},[]),bl=function(){},kl=o["\u0275crt"]({encapsulation:0,styles:[[".not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function _l(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,11,"div",[["class","container-fluid"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,5,"uhk-header",[],null,null,null,Ct,Tt)),o["\u0275did"](3,49152,null,0,At,[u.m],null,null),(e()(),o["\u0275ted"](-1,0,["\n "])),(e()(),o["\u0275eld"](5,0,null,0,1,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\xa0"])),(e()(),o["\u0275ted"](-1,0,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n You don't have any macros. Try to add one!\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}var wl=o["\u0275ccf"]("macro-not-found",bl,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-not-found",[],null,null,null,_l,kl)),o["\u0275did"](1,49152,null,0,bl,[],null,null)],null,null)},{},{},[]),Al=function(){function e(e,t){this.store=e,this.renderer=t}return e.prototype.ngOnChanges=function(e){this.isNew&&this.setFocusOnName(),e.macro&&this.setName()},e.prototype.ngAfterViewInit=function(){this.isNew&&this.setFocusOnName()},e.prototype.windowResize=function(){this.calculateHeaderTextWidth(this.macro.name)},e.prototype.removeMacro=function(){this.store.dispatch(Ot.b.removeMacro(this.macro.id))},e.prototype.duplicateMacro=function(){this.store.dispatch(Ot.b.duplicateMacro(this.macro))},e.prototype.editMacroName=function(e){St.d(e)?this.store.dispatch(Ot.b.editMacroName(this.macro.id,e)):this.setName()},e.prototype.calculateHeaderTextWidth=function(e){var t=this.macroName.nativeElement,n=.8*t.parentElement.offsetWidth,i=St.b(window.getComputedStyle(t),e);this.renderer.setStyle(t,"width",Math.min(n,i)+"px")},e.prototype.setFocusOnName=function(){this.macroName.nativeElement.select()},e.prototype.setName=function(){this.renderer.setProperty(this.macroName.nativeElement,"value",this.macro.name),this.calculateHeaderTextWidth(this.macro.name)},e}(),Tl=o["\u0275crt"]({encapsulation:0,styles:[[".macro__remove[_ngcontent-%COMP%]{font-size:.75em;top:8px}.macro__remove[_ngcontent-%COMP%]:hover{cursor:pointer;color:#900}.macro__duplicate[_ngcontent-%COMP%]{font-size:.75em;top:7px;margin-right:15px;position:relative}.macro__duplicate[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.pane-title[_ngcontent-%COMP%]{margin-bottom:1em}.pane-title__name[_ngcontent-%COMP%]{border:none;border-bottom:2px dotted #999;padding:0;margin:0 .25rem;text-overflow:ellipsis}.pane-title__name[_ngcontent-%COMP%]:focus{-webkit-box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent}"]],data:{}});function Cl(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{macroName:0}),(e()(),o["\u0275eld"](1,0,null,null,19,"uhk-header",[],null,null,null,Ct,Tt)),o["\u0275did"](2,49152,null,0,At,[u.m],null,null),(e()(),o["\u0275ted"](-1,0,["\n "])),(e()(),o["\u0275eld"](4,0,null,0,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,12,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,[[1,0],["macroName",1]],null,1,"input",[["cancelable",""],["class","pane-title__name"],["type","text"]],null,[[null,"change"],[null,"keyup.enter"],[null,"keyup"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var i=!0,r=e.component;return"focus"===t&&(i=!1!==o["\u0275nov"](e,11).onFocus()&&i),"keyup.escape"===t&&(i=!1!==o["\u0275nov"](e,11).onEscape()&&i),"change"===t&&(i=!1!==r.editMacroName(n.target.value)&&i),"keyup.enter"===t&&(i=!1!==o["\u0275nov"](e,10).blur()&&i),"keyup"===t&&(i=!1!==r.calculateHeaderTextWidth(n.target.value)&&i),i},null,null)),o["\u0275did"](11,16384,null,0,xt,[o.ElementRef,o.Renderer],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,1,"i",[["class","glyphicon glyphicon-trash macro__remove pull-right"],["data-original-title","Delete macro"],["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["title",""]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.removeMacro()&&i),i},null,null)),o["\u0275did"](14,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,1,"i",[["class","fa fa-files-o macro__duplicate pull-right"],["data-original-title","Duplicate macro"],["data-placement","bottom"],["data-toggle","tooltip"],["title",""]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.duplicateMacro()&&i),i},null,null)),o["\u0275did"](17,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,0,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,14,0,"","true"),e(t,17,0,"")},function(e,t){e(t,13,0,o["\u0275nov"](t,14).placement),e(t,16,0,o["\u0275nov"](t,17).placement)})}var xl=n("xiuF"),Ol=n("LKU8"),Sl=(n("kkgw"),function(){function e(e,t){var n=this;this.mapper=e,this.dragulaService=t,this.add=new o.EventEmitter,this.edit=new o.EventEmitter,this.delete=new o.EventEmitter,this.reorder=new o.EventEmitter,this.newMacro=void 0,this.showNew=!1,this.activeEdit=void 0,t.setOptions("macroActions",{moves:function(e,t,n){return n.className.includes("action--movable")}}),t.drag.subscribe(function(e){n.dragIndex=+e[1].getAttribute("data-index")}),t.drop.subscribe(function(e){e[4]&&n.reorder.emit({macroId:n.macro.id,oldIndex:n.dragIndex,newIndex:+e[4].getAttribute("data-index")})})}return e.prototype.showNewAction=function(){this.hideActiveEditor(),this.newMacro=void 0,this.showNew=!0},e.prototype.hideNewAction=function(){this.showNew=!1},e.prototype.addNewAction=function(e){this.add.emit({macroId:this.macro.id,action:e}),this.newMacro=void 0,this.showNew=!1},e.prototype.editAction=function(e){this.hideActiveEditor(),this.showNew=!1,this.activeEdit=e},e.prototype.cancelAction=function(){this.activeEdit=void 0},e.prototype.saveAction=function(e,t){this.edit.emit({macroId:this.macro.id,index:t,action:e}),this.hideActiveEditor()},e.prototype.deleteAction=function(e,t){this.delete.emit({macroId:this.macro.id,index:t,action:e}),this.hideActiveEditor()},e.prototype.onKeysCapture=function(e){var t=Object.assign(new ze.KeyMacroAction,this.toKeyAction(e));t.action=ze.MacroKeySubAction.tap,this.add.emit({macroId:this.macro.id,action:t})},e.prototype.toKeyAction=function(e){var t=new ze.KeystrokeAction;t.scancode=e.code,t.modifierMask=0;for(var n=e.left.concat(e.right).map(function(e){return e?1:0}),i=0;i active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}},{type:7,name:"togglerNew",definitions:[{type:0,name:"void",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:":enter",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null},{type:1,expr:":leave",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function El(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-item",[["class","macro-item"]],[[1,"data-index",0]],[[null,"save"],[null,"edit"],[null,"cancel"],[null,"delete"]],function(e,t,n){var i=!0,o=e.component;return"save"===t&&(i=!1!==o.saveAction(n,e.context.index)&&i),"edit"===t&&(i=!1!==o.editAction(e.context.index)&&i),"cancel"===t&&(i=!1!==o.cancelAction()&&i),"delete"===t&&(i=!1!==o.deleteAction(e.context.$implicit,e.context.index)&&i),i},Mr,Tr)),o["\u0275did"](1,638976,[[1,4]],0,Ar,[Gt],{macroAction:[0,"macroAction"],editable:[1,"editable"],deletable:[2,"deletable"],movable:[3,"movable"]},{save:"save",cancel:"cancel",edit:"edit",delete:"delete"})],function(e,t){e(t,1,0,t.context.$implicit,!0,!0,!0)},function(e,t){e(t,0,0,t.context.index)})}function Pl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-item",[["class","macro-item"]],[[24,"@togglerNew",0]],[[null,"save"],[null,"cancel"]],function(e,t,n){var i=!0,o=e.component;return"save"===t&&(i=!1!==o.addNewAction(n)&&i),"cancel"===t&&(i=!1!==o.hideNewAction()&&i),i},Mr,Tr)),o["\u0275did"](1,638976,[[1,4]],0,Ar,[Gt],{macroAction:[0,"macroAction"],editable:[1,"editable"],deletable:[2,"deletable"],movable:[3,"movable"]},{save:"save",cancel:"cancel"})],function(e,t){e(t,1,0,t.component.newMacro,!0,!1,!1)},function(e,t){e(t,0,0,t.component.showNew?"active":"inactive")})}function Il(e){return o["\u0275vid"](0,[o["\u0275qud"](671088640,1,{macroItems:1}),(e()(),o["\u0275eld"](1,0,null,null,38,"div",[["class","row list-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,35,"div",[["class","col-xs-10 col-xs-offset-1 list-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),o["\u0275eld"](6,0,null,null,1,"i",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Please note that macro playback is not implemented yet. You can create macros, but they won't have any effect until firmware support is implemented. We're working on this."])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,8,"div",[["class","macro-actions-container"]],null,null,null,null,null)),o["\u0275did"](10,606208,null,0,xl.DragulaDirective,[o.ElementRef,Ol.DragulaService],{dragula:[0,"dragula"],dragulaModel:[1,"dragulaModel"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,El)),o["\u0275did"](13,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Pl)),o["\u0275did"](16,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,18,"div",[["class","list-group add-new__action-container"]],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](21,0,null,null,15,"div",[["class","list-group-item action--item add-new__action-item no-reorder clearfix"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,6,"span",[["class","add-new__action-item--link"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.showNewAction()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,3,"button",[["class","btn btn-link"],["type","button"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Add macro action\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](31,0,null,null,4,"span",[["class","add-new__action-item--link"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](33,0,null,null,1,"capture-keystroke-button",[["captureText","Add captured keystroke"],["isLink","true"]],null,[[null,"capture"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,t,n){var i=!0,r=e.component;return"keyup"===t&&(i=!1!==o["\u0275nov"](e,34).onKeyUp(n)&&i),"keydown"===t&&(i=!1!==o["\u0275nov"](e,34).onKeyDown(n)&&i),"focusout"===t&&(i=!1!==o["\u0275nov"](e,34).onFocusOut()&&i),"capture"===t&&(i=!1!==r.onKeysCapture(n)&&i),i},ao,ro)),o["\u0275did"](34,49152,null,0,oo,[Nn],{isLink:[0,"isLink"],captureText:[1,"captureText"]},{capture:"capture"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,10,0,"macroActions",n.macro.macroActions),e(t,13,0,n.macro.macroActions),e(t,16,0,n.showNew),e(t,34,0,"true","Add captured keystroke")},function(e,t){e(t,19,0,t.component.showNew?"inactive":"active")})}var Rl=function(){function e(e,t){var n=this;this.store=e,this.route=t,this.subscription=t.params.pluck("id").switchMap(function(t){return n.macroId=+t,e.let(Object(jn.c)(n.macroId))}).subscribe(function(e){n.macro=e}),this.isNew="new"===this.route.snapshot.params.empty}return e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.addAction=function(e,t){this.store.dispatch(Ot.b.addMacroAction(e,t))},e.prototype.editAction=function(e,t,n){this.store.dispatch(Ot.b.saveMacroAction(e,t,n))},e.prototype.deleteAction=function(e,t,n){this.store.dispatch(Ot.b.deleteMacroAction(e,t,n))},e.prototype.reorderAction=function(e,t,n){this.store.dispatch(Ot.b.reorderMacroAction(e,t,n))},e}(),Dl=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function Nl(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"macro-header",[],null,[["window","resize"]],function(e,t,n){var i=!0;return"window:resize"===t&&(i=!1!==o["\u0275nov"](e,2).windowResize()&&i),i},Cl,Tl)),o["\u0275did"](2,4767744,null,0,Al,[u.m,o.Renderer2],{macro:[0,"macro"],isNew:[1,"isNew"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,2,"macro-list",[],null,[[null,"add"],[null,"edit"],[null,"delete"],[null,"reorder"]],function(e,t,n){var i=!0,o=e.component;return"add"===t&&(i=!1!==o.addAction(n.macroId,n.action)&&i),"edit"===t&&(i=!1!==o.editAction(n.macroId,n.index,n.action)&&i),"delete"===t&&(i=!1!==o.deleteAction(n.macroId,n.index,n.action)&&i),"reorder"===t&&(i=!1!==o.reorderAction(n.macroId,n.oldIndex,n.newIndex)&&i),i},Il,Ml)),o["\u0275prd"](8704,null,Ol.DragulaService,Ol.DragulaService,[]),o["\u0275did"](6,49152,null,0,Sl,[Gt,Ol.DragulaService],{macro:[0,"macro"]},{add:"add",edit:"edit",delete:"delete",reorder:"reorder"}),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.macro,n.isNew),e(t,6,0,n.macro)},null)}function jl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["\n There is no macro with id ",".\n"]))],null,function(e,t){e(t,1,0,t.component.macroId)})}function Ll(e){return o["\u0275vid"](0,[(e()(),o["\u0275and"](16777216,null,null,1,null,Nl)),o["\u0275did"](1,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,jl)),o["\u0275did"](4,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.macro),e(t,4,0,!n.macro)},null)}var Ul=o["\u0275ccf"]("macro-edit",Rl,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-edit",[["class","container-fluid"]],null,null,null,Ll,Dl)),o["\u0275did"](1,180224,null,0,Rl,[u.m,le.a],null,null)],null,null)},{},{},[]),Vl=function(e){this.name$=e.params.pluck("name")},Fl=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function Kl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,10,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,7,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,2,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),o["\u0275ted"](7,null,["",""])),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\nTo be done..."]))],null,function(e,t){var n=t.component;e(t,7,0,o["\u0275unv"](t,7,0,o["\u0275nov"](t,8).transform(n.name$)))})}var Bl=o["\u0275ccf"]("add-on",Vl,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"add-on",[["class","container-fluid"]],null,null,null,Kl,Fl)),o["\u0275did"](1,49152,null,0,Vl,[le.a],null,null)],null,null)},{},{},[]),Hl=function(){function e(){this.toggleCheckForUpdateOnStartUp=new o.EventEmitter,this.toggleUsePreReleaseUpdate=new o.EventEmitter,this.checkForUpdate=new o.EventEmitter}return e.prototype.emitCheckForUpdateOnStartUp=function(e){this.toggleCheckForUpdateOnStartUp.emit(e)},e.prototype.emitUsePreReleaseUpdate=function(e){this.toggleUsePreReleaseUpdate.emit(e)},e.prototype.emitCheckForUpdate=function(){this.checkForUpdate.emit()},e}(),Wl=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function zl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"span",[["class","fa fa-spinner fa-spin"]],null,null,null,null,null))],null,null)}function $l(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,38,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,35,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.emitCheckForUpdateOnStartUp(n.target.checked)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Automatically check for update on\n application start\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](12,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.emitUsePreReleaseUpdate(n.target.checked)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Allow alpha / pre release\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](20,0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,1,"label",[["class","col-sm-2 control-label"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Version:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,4,"div",[["class","col-sm-10"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](27,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](28,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](32,0,null,null,4,"button",[["class","btn btn-link"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.emitCheckForUpdate()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n Check for update\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,zl)),o["\u0275did"](35,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,35,0,t.component.checkingForUpdate)},function(e,t){var n=t.component;e(t,8,0,n.settings.checkForUpdateOnStartUp),e(t,16,0,n.settings.usePreReleaseUpdate),e(t,28,0,n.version)})}var ql=n("w+X5"),Gl=function(){function e(e){this.store=e,this.version=Object(St.c)().version,this.autoUpdateSettings$=e.select(c.j),this.checkingForUpdate$=e.select(c.l)}return e.prototype.toogleCheckForUpdateOnStartUp=function(e){this.store.dispatch(new ql.h(e))},e.prototype.toogleUsePreReleaseUpdate=function(e){this.store.dispatch(new ql.i(e))},e.prototype.checkForUpdate=function(){this.store.dispatch(new ql.c)},e}(),Yl=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function Ql(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,1,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Settings"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](11,0,null,null,4,"auto-update-settings",[],null,[[null,"toggleCheckForUpdateOnStartUp"],[null,"toggleUsePreReleaseUpdate"],[null,"checkForUpdate"]],function(e,t,n){var i=!0,o=e.component;return"toggleCheckForUpdateOnStartUp"===t&&(i=!1!==o.toogleCheckForUpdateOnStartUp(n)&&i),"toggleUsePreReleaseUpdate"===t&&(i=!1!==o.toogleUsePreReleaseUpdate(n)&&i),"checkForUpdate"===t&&(i=!1!==o.checkForUpdate()&&i),i},$l,Wl)),o["\u0275did"](12,49152,null,0,Hl,[],{version:[0,"version"],settings:[1,"settings"],checkingForUpdate:[2,"checkingForUpdate"]},{toggleCheckForUpdateOnStartUp:"toggleCheckForUpdateOnStartUp",toggleUsePreReleaseUpdate:"toggleUsePreReleaseUpdate",checkForUpdate:"checkForUpdate"}),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,12,0,n.version,o["\u0275unv"](t,12,1,o["\u0275nov"](t,13).transform(n.autoUpdateSettings$)),o["\u0275unv"](t,12,2,o["\u0275nov"](t,14).transform(n.checkingForUpdate$)))},null)}var Jl=o["\u0275ccf"]("settings",Gl,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"settings",[["class","container-fluid"]],null,null,null,Ql,Yl)),o["\u0275did"](1,49152,null,0,Gl,[u.m],null,null)],null,null)},{},{},[]),Zl=function(){function e(e,t){this.el=e,this.store=t}return e.prototype.onClick=function(e){e.preventDefault(),e.stopPropagation();var t=this.el.nativeElement;t.href&&this.store.dispatch(new F.h(t.href))},e}(),Xl=function(){},eu=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function tu(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-question-circle"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,1,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Help"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](11,0,null,null,12,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,9,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Frequently asked questions\n "])),(e()(),o["\u0275eld"](15,0,null,null,6,"ul",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),o["\u0275eld"](18,0,null,null,2,"a",[["externalUrl",""],["href","https://ultimatehackingkeyboard.com/blog/2018/06/23/how-can-i-type-accented-characters-with-my-uhk"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,19).onClick(n)&&i),i},null,null)),o["\u0275did"](19,16384,null,0,Zl,[o.ElementRef,u.m],null,null),(e()(),o["\u0275ted"](-1,null,["How can I type accented characters with my UHK?"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](25,0,null,null,32,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](27,0,null,null,29,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Keyboard shortcuts\n "])),(e()(),o["\u0275eld"](29,0,null,null,26,"ul",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](31,0,null,null,6,"li",[],null,null,null,null,null)),(e()(),o["\u0275eld"](32,0,null,null,1,"kbd",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["CTRL"])),(e()(),o["\u0275ted"](-1,null,[" + "])),(e()(),o["\u0275eld"](35,0,null,null,1,"kbd",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Enter"])),(e()(),o["\u0275ted"](-1,null,[" = Remap key"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](39,0,null,null,6,"li",[],null,null,null,null,null)),(e()(),o["\u0275eld"](40,0,null,null,1,"kbd",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["CTRL"])),(e()(),o["\u0275ted"](-1,null,[" + "])),(e()(),o["\u0275eld"](43,0,null,null,1,"kbd",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["S"])),(e()(),o["\u0275ted"](-1,null,[" = Save to keyboard"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](47,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Right click on a key = Capture key"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](50,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Hold Shift while clicking on a key = Remap on all keymaps"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](53,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Hold Alt while clicking on a key = Remap on all layers"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}var nu=o["\u0275ccf"]("help-page",Xl,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"help-page",[["class","container-fluid"]],null,null,null,tu,eu)),o["\u0275did"](1,49152,null,0,Xl,[],null,null)],null,null)},{},{},[]),iu=function(){return function(){this.version=Object(St.c)().version,this.agentGithubUrl=ze.Constants.AGENT_GITHUB_URL}}(),ou=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}.agent-version[_ngcontent-%COMP%]{margin-bottom:1rem}.agent-version[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}.link-github[_ngcontent-%COMP%]{cursor:pointer}"]],data:{}});function ru(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,22,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","uhk-icon uhk-icon-agent-icon"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["About"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,11,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,3,"div",[["class","agent-version"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Agent version: "])),(e()(),o["\u0275eld"](14,0,null,null,1,"span",[["class","text-bold"]],null,null,null,null,null)),(e()(),o["\u0275ted"](15,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),o["\u0275eld"](18,0,null,null,2,"a",[["class","link-github"],["externalUrl",""]],[[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,19).onClick(n)&&i),i},null,null)),o["\u0275did"](19,16384,null,0,Zl,[o.ElementRef,u.m],null,null),(e()(),o["\u0275ted"](-1,null,["Agent on GitHub"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,15,0,n.version),e(t,18,0,n.agentGithubUrl)})}var lu=o["\u0275ccf"]("about-page",iu,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"about-page",[["class","container-fluid"]],null,null,null,ru,ou)),o["\u0275did"](1,49152,null,0,iu,[],null,null)],null,null)},{},{},[]),uu=function(){return function(){this.updateApp=new o.EventEmitter,this.doNotUpdateApp=new o.EventEmitter}}(),au=o["\u0275crt"]({encapsulation:0,styles:[[".app-update-available-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:.5rem}"]],data:{}});function su(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,7,"div",[["class","app-update-available-wrapper"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n New version available.\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.updateApp.emit()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Update"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.doNotUpdateApp.emit()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Close"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}var cu=function(e){},du=function(){function e(e,t){this._cdRef=e,this._renderer=t,this.maxParentWidthPercent=1,this._onChanged=cu,this._onTouched=cu}return Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model!==e&&(this._model=e)},enumerable:!0,configurable:!0}),e.prototype.registerOnChange=function(e){this._onChanged=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.disabled!==e&&(this.disabled=e,this._cdRef.markForCheck())},e.prototype.windowResize=function(){this.calculateTextWidth(this._model)},e.prototype.writeValue=function(e){console.log("write",new Date),this.model!==e&&(this._model=e,this._originalModel=e,this.calculateTextWidth(this._model),this._cdRef.markForCheck())},e.prototype.focus=function(){this._onTouched(this)},e.prototype.blur=function(){if(!St.d(this._model)||this._model.trim()===this._originalModel)return this._model=this._originalModel,this.calculateTextWidth(this._model),void this._cdRef.markForCheck();this._originalModel=this._model,this._onChanged(this._model)},e.prototype.keyEnter=function(e){e.target.blur()},e.prototype.calculateTextWidth=function(e){var t=this.inputControl.nativeElement,n=t.parentElement.parentElement.offsetWidth*this.maxParentWidthPercent,i=St.b(window.getComputedStyle(t),e);this._renderer.setStyle(t,"width",Math.min(n,i)+"px")},e}(),pu=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function fu(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{inputControl:0}),(e()(),o["\u0275eld"](1,0,[[1,0],["inputControl",1]],null,6,"input",[["cancelable",""],["type","text"]],[[8,"className",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"blur"],[null,"focus"],[null,"keyup.enter"],[null,"keyup"],[null,"input"],[null,"compositionstart"],[null,"compositionend"],[null,"keyup.escape"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,2)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,2).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,2)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,2)._compositionEnd(n.target.value)&&i),"focus"===t&&(i=!1!==o["\u0275nov"](e,7).onFocus()&&i),"keyup.escape"===t&&(i=!1!==o["\u0275nov"](e,7).onEscape()&&i),"ngModelChange"===t&&(i=!1!==(r.model=n)&&i),"blur"===t&&(i=!1!==r.blur()&&i),"focus"===t&&(i=!1!==r.focus()&&i),"keyup.enter"===t&&(i=!1!==r.keyEnter(n)&&i),"keyup"===t&&(i=!1!==r.calculateTextWidth(n.target.value)&&i),i},null,null)),o["\u0275did"](2,16384,null,0,je.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.DefaultValueAccessor]),o["\u0275did"](4,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](6,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),o["\u0275did"](7,16384,null,0,xt,[o.ElementRef,o.Renderer],null,null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0,n.disabled,n.model)},function(e,t){e(t,1,0,t.component.css,o["\u0275nov"](t,6).ngClassUntouched,o["\u0275nov"](t,6).ngClassTouched,o["\u0275nov"](t,6).ngClassPristine,o["\u0275nov"](t,6).ngClassDirty,o["\u0275nov"](t,6).ngClassValid,o["\u0275nov"](t,6).ngClassInvalid,o["\u0275nov"](t,6).ngClassPending)})}var hu=function(){function e(e,t,n){this.store=e,this.renderer=t,this.cdRef=n,this.animation={device:"active",configuration:"active",keymap:"active",macro:"active",addon:"active"}}return e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(c.t).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.toggleHide=function(e,t){if(!this.state.updatingFirmware){var n=!1;e.target.classList.contains("fa-chevron-down")?(n=!0,this.animation[t]="active"):this.animation[t]="inactive",n?(this.renderer.addClass(e.target,"fa-chevron-up"),this.renderer.removeClass(e.target,"fa-chevron-down")):(this.renderer.removeClass(e.target,"fa-chevron-up"),this.renderer.addClass(e.target,"fa-chevron-down"))}},e.prototype.addMacro=function(){this.store.dispatch(Ot.b.addMacro())},e.prototype.editDeviceName=function(e){this.store.dispatch(new me.h(e))},e}(),yu=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{background-color:#f5f5f5;border-right:1px solid #ccc;position:fixed;overflow-y:auto;width:250px;height:100%}a[_ngcontent-%COMP%]{color:#333}a.disabled[_ngcontent-%COMP%]{opacity:.65}ul[_ngcontent-%COMP%]{padding:0;margin:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;padding:0}ul[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{overflow:hidden}.sidebar__level-0[_ngcontent-%COMP%]{padding:.5rem 1rem 0}.sidebar__level-1[_ngcontent-%COMP%]{padding:.5rem 1rem .5rem 2rem}.sidebar__level-0[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]{font-size:2rem;line-height:3rem;cursor:default}.sidebar__level-0[_ngcontent-%COMP%]:hover .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-0[_ngcontent-%COMP%]:hover .fa-chevron-up[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]:hover .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]:hover .fa-chevron-up[_ngcontent-%COMP%]{display:inline-block}.sidebar__level-0--item[_ngcontent-%COMP%], .sidebar__level-1--item[_ngcontent-%COMP%]{margin-top:0}.sidebar__level-0--item[_ngcontent-%COMP%]:nth-child(1), .sidebar__level-1--item[_ngcontent-%COMP%]:nth-child(1){margin:0}.sidebar__level-0[_ngcontent-%COMP%] .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-0[_ngcontent-%COMP%] .fa-chevron-up[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .fa-chevron-up[_ngcontent-%COMP%]{margin-right:1rem;font-size:1.5rem;position:relative;top:.5rem;display:none;cursor:pointer}.sidebar__level-0[_ngcontent-%COMP%] .uhk-icon-agent-icon[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .uhk-icon-agent-icon[_ngcontent-%COMP%]{margin-left:-3px}.sidebar__level-2--item[_ngcontent-%COMP%]{padding:0 20px 0 0;position:relative}.sidebar__level-2--item.active[_ngcontent-%COMP%]{background-color:#555;color:#fff}.sidebar__level-2--item.active[_ngcontent-%COMP%] .fa-star[_ngcontent-%COMP%]{color:#fff}.sidebar__level-2--item.active[_ngcontent-%COMP%]:hover{background-color:#555}.sidebar__level-2--item[_ngcontent-%COMP%]:hover{cursor:pointer}.sidebar__level-2--item[_ngcontent-%COMP%] .fa.pull-right[_ngcontent-%COMP%]{position:relative;top:2px}.sidebar__level-2--item[_ngcontent-%COMP%] .fa-star[_ngcontent-%COMP%]{color:#666}.sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;width:100%;padding:0 15px 0 30px}.sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus, .sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.sidebar__level-2--item[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]{opacity:.65}.sidebar__level-0[_ngcontent-%COMP%]:hover, .sidebar__level-1[_ngcontent-%COMP%]:hover, .sidebar__level-2[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.sidebar__level-0.active[_ngcontent-%COMP%], .sidebar__level-1.active[_ngcontent-%COMP%], .sidebar__level-2.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.18)}.sidebar__fav[_ngcontent-%COMP%]{position:absolute;right:19px;top:3px}.menu--bottom[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.menu--bottom[_ngcontent-%COMP%] .sidebar__level-1[_ngcontent-%COMP%]{display:block;padding:1rem;cursor:pointer}.menu--bottom[_ngcontent-%COMP%] .sidebar__level-1[_ngcontent-%COMP%]:hover{text-decoration:none}"]],data:{animation:[{type:7,name:"toggler",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function mu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,2,{links:1}),o["\u0275qud"](603979776,3,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[3,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,1),(e()(),o["\u0275ted"](-1,null,["Mouse speed"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/mouse-speed"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href)})}function gu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,4,{links:1}),o["\u0275qud"](603979776,5,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[5,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,1),(e()(),o["\u0275ted"](-1,null,["LED brightness"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/led-brightness"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href)})}function vu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,6,{links:1}),o["\u0275qud"](603979776,7,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[7,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,1),(e()(),o["\u0275ted"](-1,null,["Configuration"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/configuration"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href)})}function bu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,8,{links:1}),o["\u0275qud"](603979776,9,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[9,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,1),(e()(),o["\u0275ted"](-1,null,["Fix configuration"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/restore-user-configuration"))},function(e,t){e(t,8,0,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href)})}function ku(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"i",[["class","fa fa-star sidebar__fav"],["data-placement","bottom"],["data-toggle","tooltip"],["title","This is the default keymap which gets activated when powering the keyboard."]],[[1,"data-placement",0]],null,null,null,null)),o["\u0275did"](1,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"]},null)],function(e,t){e(t,1,0,"This is the default keymap which gets activated when powering the keyboard.")},function(e,t){e(t,0,0,o["\u0275nov"](t,1).placement)})}function _u(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,16,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,13,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,12,{links:1}),o["\u0275qud"](603979776,13,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[13,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,2),(e()(),o["\u0275ted"](11,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ku)),o["\u0275did"](14,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/keymap",t.context.$implicit.abbreviation)),e(t,14,0,t.context.$implicit.isDefault)},function(e,t){e(t,8,0,t.component.state.updatingFirmware,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href),e(t,11,0,t.context.$implicit.name)})}function wu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,15,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Keymaps\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"keymap")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,4,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,_u)),o["\u0275did"](13,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,13,0,t.component.state.keymaps)},function(e,t){e(t,10,0,t.component.animation.keymap)})}function Au(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,14,{links:1}),o["\u0275qud"](603979776,15,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[15,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,2),(e()(),o["\u0275ted"](11,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/macro",t.context.$implicit.id))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href),e(t,11,0,t.context.$implicit.name)})}function Tu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,19,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Macros\n "])),(e()(),o["\u0275eld"](6,0,null,null,3,"a",[["class","btn btn-default pull-right btn-sm"]],[[2,"disabled",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.addMacro()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"macro")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,4,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Au)),o["\u0275did"](17,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,17,0,t.component.state.macros)},function(e,t){var n=t.component;e(t,6,0,n.state.updatingFirmware),e(t,14,0,n.animation.macro)})}function Cu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,71,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Add-on modules\n "])),(e()(),o["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"addon")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,61,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Key cluster"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](14,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,16,{links:1}),o["\u0275qud"](603979776,17,{linksWithHrefs:1}),o["\u0275pad"](17,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,20).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](20,671744,[[17,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](21,2),(e()(),o["\u0275ted"](-1,null,["Key cluster"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](26,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackball"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](29,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,18,{links:1}),o["\u0275qud"](603979776,19,{linksWithHrefs:1}),o["\u0275pad"](32,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](34,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,35).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](35,671744,[[19,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](36,2),(e()(),o["\u0275ted"](-1,null,["Trackball"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](41,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Toucpad"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](43,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](44,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,20,{links:1}),o["\u0275qud"](603979776,21,{linksWithHrefs:1}),o["\u0275pad"](47,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](49,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,50).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](50,671744,[[21,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](51,2),(e()(),o["\u0275ted"](-1,null,["Touchpad"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](56,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackpoint"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](58,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](59,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,22,{links:1}),o["\u0275qud"](603979776,23,{linksWithHrefs:1}),o["\u0275pad"](62,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](64,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,65).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](65,671744,[[23,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](66,2),(e()(),o["\u0275ted"](-1,null,["Trackpoint"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,14,0,e(t,17,0,"active")),e(t,20,0,e(t,21,0,"/add-on","Key cluster")),e(t,29,0,e(t,32,0,"active")),e(t,35,0,e(t,36,0,"/add-on","Trackball")),e(t,44,0,e(t,47,0,"active")),e(t,50,0,e(t,51,0,"/add-on","Touchpad")),e(t,59,0,e(t,62,0,"active")),e(t,65,0,e(t,66,0,"/add-on","Trackpoint"))},function(e,t){var n=t.component;e(t,9,0,n.animation.addon),e(t,19,0,n.state.updatingFirmware,o["\u0275nov"](t,20).target,o["\u0275nov"](t,20).href),e(t,34,0,n.state.updatingFirmware,o["\u0275nov"](t,35).target,o["\u0275nov"](t,35).href),e(t,49,0,n.state.updatingFirmware,o["\u0275nov"](t,50).target,o["\u0275nov"](t,50).href),e(t,64,0,n.state.updatingFirmware,o["\u0275nov"](t,65).target,o["\u0275nov"](t,65).href)})}function xu(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{deviceName:0}),(e()(),o["\u0275eld"](1,0,null,null,118,"ul",[["class","menu--top"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,67,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,12,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,0,"i",[["class","uhk-icon uhk-icon-0401-usb-stick rotate-right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,5,"auto-grow-input",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["window","resize"]],function(e,t,n){var i=!0,r=e.component;return"window:resize"===t&&(i=!1!==o["\u0275nov"](e,10).windowResize()&&i),"ngModelChange"===t&&(i=!1!==r.editDeviceName(n)&&i),i},fu,pu)),o["\u0275did"](10,49152,null,0,du,[o.ChangeDetectorRef,o.Renderer2],{maxParentWidthPercent:[0,"maxParentWidthPercent"],css:[1,"css"]},null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[du]),o["\u0275did"](12,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](14,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"device")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,50,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](21,0,null,null,38,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Device\n "])),(e()(),o["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"configuration")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](30,0,null,null,28,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,mu)),o["\u0275did"](33,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,gu)),o["\u0275did"](36,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,vu)),o["\u0275did"](39,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,bu)),o["\u0275did"](42,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](44,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](46,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](47,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,10,{links:1}),o["\u0275qud"](603979776,11,{linksWithHrefs:1}),o["\u0275pad"](50,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](52,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,53).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](53,671744,[[11,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](54,1),(e()(),o["\u0275ted"](-1,null,["Firmware"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,wu)),o["\u0275did"](62,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Tu)),o["\u0275did"](65,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Cu)),o["\u0275did"](68,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](72,0,null,null,46,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),o["\u0275did"](73,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,24,{links:1}),o["\u0275qud"](603979776,25,{linksWithHrefs:1}),o["\u0275pad"](76,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](78,0,null,null,5,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](80,0,null,null,0,"i",[["class","uhk-icon uhk-icon-agent-icon"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Agent\n "])),(e()(),o["\u0275eld"](82,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"agent")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](85,0,null,null,32,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](88,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](90,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](91,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,26,{links:1}),o["\u0275qud"](603979776,27,{linksWithHrefs:1}),o["\u0275pad"](94,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](96,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,97).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](97,671744,[[27,4],[25,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](98,1),(e()(),o["\u0275ted"](-1,null,["Help"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](103,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](105,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](106,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,28,{links:1}),o["\u0275qud"](603979776,29,{linksWithHrefs:1}),o["\u0275pad"](109,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](111,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,112).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](112,671744,[[29,4],[25,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](113,1),(e()(),o["\u0275ted"](-1,null,["About"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,10,0,.65,"side-menu-pane-title__name"),e(t,12,0,n.state.restoreUserConfiguration||n.state.updatingFirmware,n.state.deviceName),e(t,33,0,!n.state.restoreUserConfiguration),e(t,36,0,!n.state.restoreUserConfiguration),e(t,39,0,!n.state.restoreUserConfiguration),e(t,42,0,n.state.restoreUserConfiguration),e(t,47,0,e(t,50,0,"active")),e(t,53,0,e(t,54,0,"/device/firmware")),e(t,62,0,!n.state.restoreUserConfiguration),e(t,65,0,!n.state.restoreUserConfiguration),e(t,68,0,n.state.showAddonMenu),e(t,73,0,e(t,76,0,"active")),e(t,91,0,e(t,94,0,"active")),e(t,97,0,e(t,98,0,"/help")),e(t,106,0,e(t,109,0,"active")),e(t,112,0,e(t,113,0,"/about"))},function(e,t){var n=t.component;e(t,9,0,o["\u0275nov"](t,14).ngClassUntouched,o["\u0275nov"](t,14).ngClassTouched,o["\u0275nov"](t,14).ngClassPristine,o["\u0275nov"](t,14).ngClassDirty,o["\u0275nov"](t,14).ngClassValid,o["\u0275nov"](t,14).ngClassInvalid,o["\u0275nov"](t,14).ngClassPending),e(t,19,0,n.animation.device),e(t,30,0,n.animation.configuration),e(t,52,0,n.state.updatingFirmware,o["\u0275nov"](t,53).target,o["\u0275nov"](t,53).href),e(t,85,0,n.animation.agent),e(t,96,0,n.state.updatingFirmware,o["\u0275nov"](t,97).target,o["\u0275nov"](t,97).href),e(t,111,0,n.state.updatingFirmware,o["\u0275nov"](t,112).target,o["\u0275nov"](t,112).href)})}var Ou=n("MptX"),Su=function(){function e(){this.state=Ou.a,this.clicked=new o.EventEmitter}return e.prototype.onClicked=function(){this.clicked.emit(this.state.action)},e}(),Mu=o["\u0275crt"]({encapsulation:0,styles:[["button[_ngcontent-%COMP%]{min-width:150px}"]],data:{}});function Eu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-spin fa-spinner"]],null,null,null,null,null))],null,null)}function Pu(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,4,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onClicked()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Eu)),o["\u0275did"](3,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](4,null,[" ","\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,t.component.state.showProgress)},function(e,t){var n=t.component;e(t,0,0,n.state.showProgress),e(t,4,0,n.state.text)})}var Iu=function(){return function(e){Object.assign(this,e),void 0===e.id&&(this.id="ID_"+(new Date).getTime())}}(),Ru=function(){function e(){this.actionStream=new Oi.Subject,this.actionQueue=[],this.isActionInProgress=!1}return e.prototype.push=function(e){this.actionQueue.push(e),this.tryToRunNextAction()},e.prototype.continue=function(){this.isActionInProgress=!1,this.tryToRunNextAction()},e.prototype.tryToRunNextAction=function(){this.isActionInProgress||0===this.actionQueue.length||(this.isActionInProgress=!0,this.actionStream.next(this.actionQueue.shift()))},e}(),Du=function(){return function(e){void 0===e&&(e={}),this.animations={enabled:!0,hide:{easing:"ease",offset:50,preset:"fade",speed:300},overlap:150,shift:{easing:"ease",speed:300},show:{easing:"ease",preset:"slide",speed:300}},this.behaviour={autoHide:7e3,onClick:!1,onMouseover:"pauseAutoHide",showDismissButton:!0,stacking:4},this.position={horizontal:{distance:12,position:"left"},vertical:{distance:12,gap:10,position:"bottom"}},this.theme="material",void 0!==e.theme&&(this.theme=e.theme),void 0!==e.animations&&(void 0!==e.animations.enabled&&(this.animations.enabled=e.animations.enabled),void 0!==e.animations.overlap&&(this.animations.overlap=e.animations.overlap),void 0!==e.animations.hide&&Object.assign(this.animations.hide,e.animations.hide),void 0!==e.animations.shift&&Object.assign(this.animations.shift,e.animations.shift),void 0!==e.animations.show&&Object.assign(this.animations.show,e.animations.show)),void 0!==e.behaviour&&Object.assign(this.behaviour,e.behaviour),void 0!==e.position&&(void 0!==e.position.horizontal&&Object.assign(this.position.horizontal,e.position.horizontal),void 0!==e.position.vertical&&Object.assign(this.position.vertical,e.position.vertical))}}(),Nu=function(){function e(e,t){this.queueService=e,this.config=t}return e.prototype.getConfig=function(){return this.config},e.prototype.show=function(e){this.queueService.push({payload:e,type:"SHOW"})},e.prototype.hide=function(e){this.queueService.push({payload:e,type:"HIDE"})},e.prototype.hideNewest=function(){this.queueService.push({type:"HIDE_NEWEST"})},e.prototype.hideOldest=function(){this.queueService.push({type:"HIDE_OLDEST"})},e.prototype.hideAll=function(){this.queueService.push({type:"HIDE_ALL"})},e.prototype.notify=function(e,t,n){var i={message:t,type:e};void 0!==n&&(i.id=n),this.show(i)},e}(),ju=function(){function e(e,t,n){this.changeDetector=e,this.queueService=t,this.config=n.getConfig(),this.notifications=[]}return e.prototype.ngOnInit=function(){var e=this;this.queueServiceSubscription=this.queueService.actionStream.subscribe(function(t){e.handleAction(t).then(function(){e.queueService.continue()})})},e.prototype.ngOnDestroy=function(){this.queueServiceSubscription&&this.queueServiceSubscription.unsubscribe()},e.prototype.identifyNotification=function(e,t){return t.id},e.prototype.onNotificationDismiss=function(e){this.queueService.push({payload:e,type:"HIDE"})},e.prototype.onNotificationReady=function(e){var t=this.notifications[this.notifications.length-1];t.component=e,this.continueHandleShowAction(t)},e.prototype.handleAction=function(e){switch(e.type){case"SHOW":return this.handleShowAction(e);case"HIDE":return this.handleHideAction(e);case"HIDE_OLDEST":return this.handleHideOldestAction(e);case"HIDE_NEWEST":return this.handleHideNewestAction(e);case"HIDE_ALL":return this.handleHideAllAction(e);default:return new Promise(function(e,t){e()})}},e.prototype.handleShowAction=function(e){var t=this;return new Promise(function(n,i){t.tempPromiseResolver=n,t.addNotificationToList(new Iu(e.payload))})},e.prototype.continueHandleShowAction=function(e){var t=this,n=this.notifications.length;if(1===n)e.component.show().then(this.tempPromiseResolver);else if(!1===this.config.behaviour.stacking||this.config.behaviour.stacking<2)this.notifications[0].component.hide().then(function(){t.removeNotificationFromList(t.notifications[0]),e.component.show().then(t.tempPromiseResolver)});else{var i=[];if(n>this.config.behaviour.stacking){var o=this.notifications.slice(1,n-1);this.config.animations.enabled?!1!==this.config.animations.overlap&&this.config.animations.overlap>0?(i.push(this.notifications[0].component.hide()),setTimeout(function(){i.push(t.shiftNotifications(o,e.component.getHeight(),!0))},this.config.animations.hide.speed-this.config.animations.overlap),setTimeout(function(){i.push(e.component.show())},this.config.animations.hide.speed+this.config.animations.shift.speed-this.config.animations.overlap)):i.push(new Promise(function(n,i){t.notifications[0].component.hide().then(function(){t.shiftNotifications(o,e.component.getHeight(),!0).then(function(){e.component.show().then(n)})})})):(i.push(this.notifications[0].component.hide()),i.push(this.shiftNotifications(o,e.component.getHeight(),!0)),i.push(e.component.show()))}else{var r=this.notifications.slice(0,n-1);this.config.animations.enabled?!1!==this.config.animations.overlap&&this.config.animations.overlap>0?(i.push(this.shiftNotifications(r,e.component.getHeight(),!0)),setTimeout(function(){i.push(e.component.show())},this.config.animations.shift.speed-this.config.animations.overlap)):i.push(new Promise(function(n,i){t.shiftNotifications(r,e.component.getHeight(),!0).then(function(){e.component.show().then(n)})})):(i.push(this.shiftNotifications(r,e.component.getHeight(),!0)),i.push(e.component.show()))}Promise.all(i).then(function(){n>t.config.behaviour.stacking&&t.removeNotificationFromList(t.notifications[0]),t.tempPromiseResolver()})}},e.prototype.handleHideAction=function(e){var t=this;return new Promise(function(n,i){var o=[],r=t.findNotificationById(e.payload);if(void 0!==r){var l=t.findNotificationIndexById(e.payload);if(void 0!==l){var u=t.notifications.slice(0,l);u.length>0?t.config.animations.enabled&&t.config.animations.hide.speed>0?!1!==t.config.animations.overlap&&t.config.animations.overlap>0?(o.push(r.component.hide()),setTimeout(function(){o.push(t.shiftNotifications(u,r.component.getHeight(),!1))},t.config.animations.hide.speed-t.config.animations.overlap)):r.component.hide().then(function(){o.push(t.shiftNotifications(u,r.component.getHeight(),!1))}):(o.push(r.component.hide()),o.push(t.shiftNotifications(u,r.component.getHeight(),!1))):o.push(r.component.hide()),Promise.all(o).then(function(){t.removeNotificationFromList(r),n()})}else n()}else n()})},e.prototype.handleHideOldestAction=function(e){return 0===this.notifications.length?new Promise(function(e,t){e()}):(e.payload=this.notifications[0].id,this.handleHideAction(e))},e.prototype.handleHideNewestAction=function(e){return 0===this.notifications.length?new Promise(function(e,t){e()}):(e.payload=this.notifications[this.notifications.length-1].id,this.handleHideAction(e))},e.prototype.handleHideAllAction=function(e){var t=this;return new Promise(function(e,n){var i=t.notifications.length;if(0!==i)if(t.config.animations.enabled&&t.config.animations.hide.speed>0&&!1!==t.config.animations.hide.offset&&t.config.animations.hide.offset>0)for(var o=function(n){setTimeout(function(){t.notifications[n].component.hide().then(function(){("top"===t.config.position.vertical.position&&0===n||"bottom"===t.config.position.vertical.position&&n===i-1)&&(t.removeAllNotificationsFromList(),e())})},t.config.animations.hide.offset*("top"===t.config.position.vertical.position?i-1:n))},r=i-1;r>=0;r--)o(r);else{var l=[];for(r=i-1;r>=0;r--)l.push(t.notifications[r].component.hide());Promise.all(l).then(function(){t.removeAllNotificationsFromList(),e()})}else e()})},e.prototype.shiftNotifications=function(e,t,n){return new Promise(function(i,o){if(0!==e.length){for(var r=[],l=e.length-1;l>=0;l--)r.push(e[l].component.shift(t,n));Promise.all(r).then(i)}else i()})},e.prototype.addNotificationToList=function(e){this.notifications.push(e),this.changeDetector.markForCheck()},e.prototype.removeNotificationFromList=function(e){this.notifications=this.notifications.filter(function(t){return t.component!==e.component}),this.changeDetector.markForCheck()},e.prototype.removeAllNotificationsFromList=function(){this.notifications=[],this.changeDetector.markForCheck()},e.prototype.findNotificationById=function(e){return this.notifications.find(function(t){return t.id===e})},e.prototype.findNotificationIndexById=function(e){var t=this.notifications.findIndex(function(t){return t.id===e});return-1!==t?t:void 0},e}(),Lu={hide:function(e){return{from:{opacity:"1"},to:{opacity:"0"}}},show:function(e){return{from:{opacity:"0"},to:{opacity:"1"}}}},Uu={hide:function(e){var t,n,i=e.component.getConfig(),o=e.component.getShift();return"left"===i.position.horizontal.position?(t={transform:"translate3d( 0, "+o+"px, 0 )"},n={transform:"translate3d( calc( -100% - "+i.position.horizontal.distance+"px - 10px ), "+o+"px, 0 )"}):"right"===i.position.horizontal.position?(t={transform:"translate3d( 0, "+o+"px, 0 )"},n={transform:"translate3d( calc( 100% + "+i.position.horizontal.distance+"px + 10px ), "+o+"px, 0 )"}):(t={transform:"translate3d( -50%, "+o+"px, 0 )"},n={transform:"translate3d( -50%, "+("top"===i.position.vertical.position?"calc( -100% - "+i.position.horizontal.distance+"px - 10px )":"calc( 100% + "+i.position.horizontal.distance+"px + 10px )")+", 0 )"}),{from:t,to:n}},show:function(e){var t,n,i=e.component.getConfig();return"left"===i.position.horizontal.position?(t={transform:"translate3d( calc( -100% - "+i.position.horizontal.distance+"px - 10px ), 0, 0 )"},n={transform:"translate3d( 0, 0, 0 )"}):"right"===i.position.horizontal.position?(t={transform:"translate3d( calc( 100% + "+i.position.horizontal.distance+"px + 10px ), 0, 0 )"},n={transform:"translate3d( 0, 0, 0 )"}):(t={transform:"translate3d( -50%, "+("top"===i.position.vertical.position?"calc( -100% - "+i.position.horizontal.distance+"px - 10px )":"calc( 100% + "+i.position.horizontal.distance+"px + 10px )")+", 0 )"},n={transform:"translate3d( -50%, 0, 0 )"}),{from:t,to:n}}},Vu=function(){function e(){this.animationPresets={fade:Lu,slide:Uu}}return e.prototype.getAnimationData=function(e,t){var n,i,o;return"show"===e?(n=this.animationPresets[t.component.getConfig().animations.show.preset].show(t),i=t.component.getConfig().animations.show.speed,o=t.component.getConfig().animations.show.easing):(n=this.animationPresets[t.component.getConfig().animations.hide.preset].hide(t),i=t.component.getConfig().animations.hide.speed,o=t.component.getConfig().animations.hide.easing),{keyframes:[n.from,n.to],options:{duration:i,easing:o,fill:"forwards"}}},e}(),Fu=function(){function e(){this.now=0,this.remaining=0}return e.prototype.start=function(e){var t=this;return new Promise(function(n,i){t.remaining=e,t.finishPromiseResolver=n,t.continue()})},e.prototype.pause=function(){clearTimeout(this.timerId),this.remaining-=(new Date).getTime()-this.now},e.prototype.continue=function(){var e=this;this.now=(new Date).getTime(),this.timerId=setTimeout(function(){e.finish()},this.remaining)},e.prototype.stop=function(){clearTimeout(this.timerId),this.remaining=0},e.prototype.finish=function(){this.finishPromiseResolver()},e}(),Ku=function(){function e(e,t,n,i,r){this.config=n.getConfig(),this.ready=new o.EventEmitter,this.dismiss=new o.EventEmitter,this.timerService=i,this.animationService=r,this.renderer=t,this.element=e.nativeElement,this.elementShift=0}return e.prototype.ngAfterViewInit=function(){this.setup(),this.elementHeight=this.element.offsetHeight,this.elementWidth=this.element.offsetWidth,this.ready.emit(this)},e.prototype.getConfig=function(){return this.config},e.prototype.getHeight=function(){return this.elementHeight},e.prototype.getWidth=function(){return this.elementWidth},e.prototype.getShift=function(){return this.elementShift},e.prototype.show=function(){var e=this;return new Promise(function(t,n){if(e.config.animations.enabled&&e.config.animations.show.speed>0){for(var i=e.animationService.getAnimationData("show",e.notification),o=Object.keys(i.keyframes[0]),r=o.length-1;r>=0;r--)e.renderer.setStyle(e.element,o[r],i.keyframes[0][o[r]]);e.renderer.setStyle(e.element,"visibility","visible"),e.element.animate(i.keyframes,i.options).onfinish=function(){e.startAutoHideTimer(),t()}}else e.renderer.setStyle(e.element,"visibility","visible"),e.startAutoHideTimer(),t()})},e.prototype.hide=function(){var e=this;return new Promise(function(t,n){if(e.stopAutoHideTimer(),e.config.animations.enabled&&e.config.animations.hide.speed>0){var i=e.animationService.getAnimationData("hide",e.notification);e.element.animate(i.keyframes,i.options).onfinish=function(){t()}}else t()})},e.prototype.shift=function(e,t){var n=this;return new Promise(function(i,o){var r;r="top"===n.config.position.vertical.position&&t||"bottom"===n.config.position.vertical.position&&!t?n.elementShift+e+n.config.position.vertical.gap:n.elementShift-e-n.config.position.vertical.gap;var l="middle"===n.config.position.horizontal.position?"-50%":"0";if(n.config.animations.enabled&&n.config.animations.shift.speed>0){var u={keyframes:[{transform:"translate3d( "+l+", "+n.elementShift+"px, 0 )"},{transform:"translate3d( "+l+", "+r+"px, 0 )"}],options:{duration:n.config.animations.shift.speed,easing:n.config.animations.shift.easing,fill:"forwards"}};n.elementShift=r,n.element.animate(u.keyframes,u.options).onfinish=function(){i()}}else n.renderer.setStyle(n.element,"transform","translate3d( "+l+", "+r+"px, 0 )"),n.elementShift=r,i()})},e.prototype.onClickDismiss=function(){this.dismiss.emit(this.notification.id)},e.prototype.onNotificationMouseover=function(){"pauseAutoHide"===this.config.behaviour.onMouseover?this.pauseAutoHideTimer():"resetAutoHide"===this.config.behaviour.onMouseover&&this.stopAutoHideTimer()},e.prototype.onNotificationMouseout=function(){"pauseAutoHide"===this.config.behaviour.onMouseover?this.continueAutoHideTimer():"resetAutoHide"===this.config.behaviour.onMouseover&&this.startAutoHideTimer()},e.prototype.onNotificationClick=function(){"hide"===this.config.behaviour.onClick&&this.onClickDismiss()},e.prototype.startAutoHideTimer=function(){var e=this;!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.start(this.config.behaviour.autoHide).then(function(){e.onClickDismiss()})},e.prototype.pauseAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.pause()},e.prototype.continueAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.continue()},e.prototype.stopAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.stop()},e.prototype.setup=function(){"left"===this.config.position.horizontal.position?this.renderer.setStyle(this.element,"left",this.config.position.horizontal.distance+"px"):"right"===this.config.position.horizontal.position?this.renderer.setStyle(this.element,"right",this.config.position.horizontal.distance+"px"):(this.renderer.setStyle(this.element,"left","50%"),this.renderer.setStyle(this.element,"transform","translate3d( -50%, 0, 0 )")),this.renderer.setStyle(this.element,"top"===this.config.position.vertical.position?"top":"bottom",this.config.position.vertical.distance+"px"),this.renderer.addClass(this.element,"notifier__notification--"+this.notification.type),this.renderer.addClass(this.element,"notifier__notification--"+this.config.theme)},e}(),Bu=new o.InjectionToken("[angular-notifier] Notifier Options"),Hu=new o.InjectionToken("[anuglar-notifier] Notifier Config");function Wu(e){return new Du(e)}var zu=function(){function e(){}return e.withConfig=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:Bu,useValue:t},{deps:[Bu],provide:Hu,useFactory:Wu}]}},e}(),$u=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function qu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"li",[["class","notifier__container-list"]],null,null,null,null,null)),(e()(),o["\u0275eld"](1,0,null,null,2,"notifier-notification",[["class","notifier__notification"]],null,[[null,"dismiss"],[null,"ready"],[null,"click"],[null,"mouseout"],[null,"mouseover"]],function(e,t,n){var i=!0,r=e.component;return"click"===t&&(i=!1!==o["\u0275nov"](e,3).onNotificationClick()&&i),"mouseout"===t&&(i=!1!==o["\u0275nov"](e,3).onNotificationMouseout()&&i),"mouseover"===t&&(i=!1!==o["\u0275nov"](e,3).onNotificationMouseover()&&i),"dismiss"===t&&(i=!1!==r.onNotificationDismiss(n)&&i),"ready"===t&&(i=!1!==r.onNotificationReady(n)&&i),i},Ju,Yu)),o["\u0275prd"](512,null,Fu,Fu,[]),o["\u0275did"](3,4243456,null,0,Ku,[o.ElementRef,o.Renderer2,Nu,Fu,Vu],{notification:[0,"notification"]},{ready:"ready",dismiss:"dismiss"})],function(e,t){e(t,3,0,t.context.$implicit)},null)}function Gu(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,2,"ul",[],null,null,null,null,null)),(e()(),o["\u0275and"](16777216,null,null,1,null,qu)),o["\u0275did"](2,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null)],function(e,t){var n=t.component;e(t,2,0,n.notifications,n.identifyNotification)},null)}var Yu=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Qu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"button",[["class","notifier__notification-button"],["title","dismiss"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onClickDismiss()&&i),i},null,null)),(e()(),o["\u0275eld"](1,0,null,null,1,":svg:svg",[["class","notifier__notification-button-icon"],["height","20"],["viewBox","0 0 24 24"],["width","20"]],null,null,null,null,null)),(e()(),o["\u0275eld"](2,0,null,null,0,":svg:path",[["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"]],null,null,null,null,null))],null,null)}function Ju(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,"p",[["class","notifier__notification-message"]],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["",""])),(e()(),o["\u0275and"](16777216,null,null,1,null,Qu)),o["\u0275did"](3,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,3,0,t.component.config.behaviour.showDismissButton)},function(e,t){e(t,1,0,t.component.notification.message)})}var Zu=o["\u0275crt"]({encapsulation:2,styles:[["main-app{min-height:100%;height:100%;width:100%;display:block;position:relative}.save-to-keyboard-button{position:fixed;bottom:15px;right:15px}"]],data:{animation:[{type:7,name:"showSaveToKeyboardButton",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{transform:"translateY(100%)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(0)"},offset:null},timings:"400ms ease-in-out"}],options:null},{type:1,expr:":leave",animation:[{type:6,styles:{transform:"translateY(0)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(100%)"},offset:null},timings:"400ms ease-in-out"}],options:null}],options:{}}]}});function Xu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"app-update-available",[],null,[[null,"updateApp"],[null,"doNotUpdateApp"]],function(e,t,n){var i=!0,o=e.component;return"updateApp"===t&&(i=!1!==o.updateApp()&&i),"doNotUpdateApp"===t&&(i=!1!==o.doNotUpdateApp()&&i),i},su,au)),o["\u0275did"](1,49152,null,0,uu,[],null,{updateApp:"updateApp",doNotUpdateApp:"doNotUpdateApp"}),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}function ea(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"side-menu",[],null,null,null,xu,yu)),o["\u0275did"](1,245760,null,0,hu,[u.m,o.Renderer2,o.ChangeDetectorRef],null,null)],function(e,t){e(t,1,0)},null)}function ta(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"progress-button",[["class","save-to-keyboard-button"]],[[24,"@showSaveToKeyboardButton",0]],[[null,"clicked"]],function(e,t,n){var i=!0;return"clicked"===t&&(i=!1!==e.component.clickedOnProgressButton(n)&&i),i},Pu,Mu)),o["\u0275did"](1,49152,null,0,Su,[],{state:[0,"state"]},{clicked:"clicked"})],function(e,t){e(t,1,0,t.component.saveToKeyboardState)},function(e,t){e(t,0,0,void 0)})}function na(e){return o["\u0275vid"](0,[(e()(),o["\u0275and"](16777216,null,null,2,null,Xu)),o["\u0275did"](1,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,2,null,ea)),o["\u0275did"](5,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,4,"div",[["class","main-content"],["id","main-content"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),o["\u0275did"](11,212992,null,0,le.q,[le.b,o.ViewContainerRef,o.ComponentFactoryResolver,[8,null],o.ChangeDetectorRef],null,null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](14,0,null,null,1,"notifier-container",[["class","notifier__container"]],null,null,null,Gu,$u)),o["\u0275did"](15,245760,null,0,ju,[o.ChangeDetectorRef,Ru,Nu],null,null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,ta)),o["\u0275did"](18,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,o["\u0275unv"](t,1,0,o["\u0275nov"](t,2).transform(n.showUpdateAvailable$))),e(t,5,0,o["\u0275unv"](t,5,0,o["\u0275nov"](t,6).transform(n.deviceConfigurationLoaded$))),e(t,11,0),e(t,15,0),e(t,18,0,n.saveToKeyboardState.showButton)},null)}var ia=o["\u0275ccf"]("main-app",d,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"main-app",[],null,[["document","keydown"]],function(e,t,n){var i=!0;return"document:keydown"===t&&(i=!1!==o["\u0275nov"](e,1).onKeyDown(n)&&i),i},na,Zu)),o["\u0275did"](1,180224,null,0,d,[u.m],null,null)],null,null)},{},{},[]),oa=function(){},ra="*";function la(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function ua(e){return{type:6,styles:e,offset:null}}function aa(e){Promise.resolve(null).then(e)}var sa=function(){function e(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;aa(function(){return e._onFinish()})},e.prototype._onStart=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),ca=function(){function e(e){var t=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,i=0,o=0,r=this.players.length;0==r?aa(function(){return t._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++n==r&&t._onFinish()}),e.onDestroy(function(){++i==r&&t._onDestroy()}),e.onStart(function(){++o==r&&t._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this.players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})},e.prototype.pause=function(){this.players.forEach(function(e){return e.pause()})},e.prototype.restart=function(){this.players.forEach(function(e){return e.restart()})},e.prototype.finish=function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})},e.prototype.getPosition=function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e},e.prototype.beforeDestroy=function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),da="!";function pa(e){switch(e.length){case 0:return new sa;case 1:return e[0];default:return new ca(e)}}function fa(e,t,n,i,o,r){void 0===o&&(o={}),void 0===r&&(r={});var l=[],u=[],a=-1,s=null;if(i.forEach(function(e){var n=e.offset,i=n==a,c=i&&s||{};Object.keys(e).forEach(function(n){var i=n,u=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,l),u){case da:u=o[n];break;case ra:u=r[n];break;default:u=t.normalizeStyleValue(n,i,u,l)}c[i]=u}),i||u.push(c),s=c,a=n}),l.length)throw new Error("Unable to animate due to the following errors:\n - "+l.join("\n - "));return u}function ha(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&ya(n,"start",e.totalTime))});break;case"done":e.onDone(function(){return i(n&&ya(n,"done",e.totalTime))});break;case"destroy":e.onDestroy(function(){return i(n&&ya(n,"destroy",e.totalTime))})}}function ya(e,t,n){var i=ma(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,void 0==n?e.totalTime:n),o=e._data;return null!=o&&(i._data=o),i}function ma(e,t,n,i,o,r){return void 0===o&&(o=""),void 0===r&&(r=0),{element:e,triggerName:t,fromState:n,toState:i,phaseName:o,totalTime:r}}function ga(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function va(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var ba=function(e,t){return!1},ka=function(e,t){return!1},_a=function(e,t,n){return[]};if("undefined"!=typeof Element){if(ba=function(e,t){return e.contains(t)},Element.prototype.matches)ka=function(e,t){return e.matches(t)};else{var wa=Element.prototype,Aa=wa.matchesSelector||wa.mozMatchesSelector||wa.msMatchesSelector||wa.oMatchesSelector||wa.webkitMatchesSelector;Aa&&(ka=function(e,t){return Aa.apply(e,[t])})}_a=function(e,t,n){var i=[];if(n)i.push.apply(i,e.querySelectorAll(t));else{var o=e.querySelector(t);o&&i.push(o)}return i}}var Ta=null,Ca=!1;function xa(e){Ta||(Ta=Oa()||{},Ca=!!Ta.style&&"WebkitAppearance"in Ta.style);var t=!0;return Ta.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in Ta.style)&&Ca&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Ta.style),t}function Oa(){return"undefined"!=typeof document?document.body:null}var Sa=ka,Ma=ba,Ea=_a,Pa=function(){function e(){}return e.prototype.validateStyleProperty=function(e){return xa(e)},e.prototype.matchesElement=function(e,t){return Sa(e,t)},e.prototype.containsElement=function(e,t){return Ma(e,t)},e.prototype.query=function(e,t,n){return Ea(e,t,n)},e.prototype.computeStyle=function(e,t,n){return n||""},e.prototype.animate=function(e,t,n,i,o,r){return void 0===r&&(r=[]),new sa},e}(),Ia=function(){function e(){}return e.NOOP=new Pa,e}(),Ra=1e3;function Da(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Na(parseFloat(t[1]),t[2])}function Na(e,t){switch(t){case"s":return e*Ra;default:return e}}function ja(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,o=0,r="";if("string"==typeof e){var l=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return t.push('The provided timing value "'+e+'" is invalid.'),{duration:0,delay:0,easing:""};i=Na(parseFloat(l[1]),l[2]);var u=l[3];null!=u&&(o=Na(Math.floor(parseFloat(u)),l[4]));var a=l[5];a&&(r=a)}else i=e;if(!n){var s=!1,c=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),s=!0),o<0&&(t.push("Delay values below 0 are not allowed for this animation step."),s=!0),s&&t.splice(c,0,'The provided timing value "'+e+'" is invalid.')}return{duration:i,delay:o,easing:r}}(e,t,n)}function La(e,t){return void 0===t&&(t={}),Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function Ua(e,t,n){if(void 0===n&&(n={}),t)for(var i in e)n[i]=e[i];else La(e,n);return n}function Va(e,t){e.style&&Object.keys(t).forEach(function(n){var i=qa(n);e.style[i]=t[n]})}function Fa(e,t){e.style&&Object.keys(t).forEach(function(t){var n=qa(t);e.style[n]=""})}function Ka(e){return Array.isArray(e)?1==e.length?e[0]:la(e):e}var Ba=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ha(e){var t=[];if("string"==typeof e){for(var n=e.toString(),i=void 0;i=Ba.exec(n);)t.push(i[1]);Ba.lastIndex=0}return t}function Wa(e,t,n){var i=e.toString(),o=i.replace(Ba,function(e,i){var o=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),o=""),o.toString()});return o==i?e:o}function za(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var $a=/-+([a-z0-9])/g;function qa(e){return e.replace($a,function(){for(var e=[],t=0;t *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var o=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var r=o[1],l=o[2],u=o[3];t.push(Za(r,u)),"<"!=l[0]||r==Ya&&u==Ya||t.push(Za(u,r))}(e,o,i)}):o.push(n),o),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:os(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Ga(n,e,t)}),options:os(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,i=t.currentTime,o=0,r=e.steps.map(function(e){t.currentTime=i;var r=Ga(n,e,t);return o=Math.max(o,t.currentTime),r});return t.currentTime=o,{type:3,steps:r,options:os(e.options)}},e.prototype.visitAnimate=function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return rs(ja(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var o=rs(0,0,"");return o.dynamic=!0,o.strValue=i,o}return rs((n=n||ja(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var o=e.styles?e.styles:ua({});if(5==o.type)n=this.visitKeyframes(o,t);else{var r=e.styles,l=!1;if(!r){l=!0;var u={};i.easing&&(u.easing=i.easing),r=ua(u)}t.currentTime+=i.duration+i.delay;var a=this.visitStyle(r,t);a.isEmptyStep=l,n=a}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==ra?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var i=!1,o=null;return n.forEach(function(e){if(is(e)){var t=e,n=t.easing;if(n&&(o=n,delete t.easing),!i)for(var r in t)if(t[r].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:o,offset:e.offset,containsDynamicStyles:i,options:null}},e.prototype._validateStyleAst=function(e,t){var n=this,i=t.currentAnimateTimings,o=t.currentTime,r=t.currentTime;i&&r>0&&(r-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var l,u,a,s=t.collectedStyles[t.currentQuerySelector],c=s[i],d=!0;c&&(r!=o&&r>=c.startTime&&o<=c.endTime&&(t.errors.push('The CSS property "'+i+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+r+'ms" and "'+o+'ms"'),d=!1),r=c.startTime),d&&(s[i]={startTime:r,endTime:o}),t.options&&(l=t.errors,u=t.options.params||{},(a=Ha(e[i])).length&&a.forEach(function(e){u.hasOwnProperty(e)||l.push("Unable to resolve the local animation param "+e+" in the given list of values")}))}else t.errors.push('The provided animation property "'+i+'" is not a supported CSS property for animations')})})},e.prototype.visitKeyframes=function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var o=0,r=[],l=!1,u=!1,a=0,s=e.steps.map(function(e){var i=n._makeStyleAst(e,t),s=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(is(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(is(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=s&&(o++,c=i.offset=s),u=u||c<0||c>1,l=l||c0&&o0?o==p?1:d*o:r[o],u=l*y;t.currentTime=f+h.delay+u,h.duration=u,n._validateStyleAst(e,t),e.offset=l,i.styles.push(e)}),i},e.prototype.visitReference=function(e,t){return{type:8,animation:Ga(this,Ka(e.animation),t),options:os(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:os(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:os(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var o=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(Xa,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),r=o[0],l=o[1];t.currentQuerySelector=n.length?n+" "+r:r,ga(t.collectedStyles,t.currentQuerySelector,{});var u=Ga(this,Ka(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:l,animation:u,originalSelector:e.selector,options:os(e.options)}},e.prototype.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:ja(e.timings,t.errors,!0);return{type:12,animation:Ga(this,Ka(e.animation),t),timings:n,options:null}},e}(),ns=function(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function is(e){return!Array.isArray(e)&&"object"==typeof e}function os(e){var t;return e?(e=La(e)).params&&(e.params=(t=e.params)?La(t):null):e={},e}function rs(e,t,n){return{duration:e,delay:t,easing:n}}function ls(e,t,n,i,o,r,l,u){return void 0===l&&(l=null),void 0===u&&(u=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:l,subTimeline:u}}var us=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,t)},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),as=new RegExp(":enter","g"),ss=new RegExp(":leave","g");function cs(e,t,n,i,o,r,l,u,a,s){return void 0===r&&(r={}),void 0===l&&(l={}),void 0===s&&(s=[]),(new ds).buildKeyframes(e,t,n,i,o,r,l,u,a,s)}var ds=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,i,o,r,l,u,a,s){void 0===s&&(s=[]),a=a||new us;var c=new fs(e,t,a,i,o,s,[]);c.options=u,c.currentTimeline.setStyles([r],null,c.errors,u),Ga(this,n,c);var d=c.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(l).length){var p=d[d.length-1];p.allowOnlyTimelineStyles()||p.setStyles([l],null,c.errors,u)}return d.length?d.map(function(e){return e.buildKeyframes()}):[ls(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),o=t.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);o!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var i=t.currentTimeline.currentTime,o=null!=n.duration?Da(n.duration):null,r=null!=n.delay?Da(n.delay):null;return 0!==o&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,o,r);i=Math.max(i,n.duration+n.delay)}),i},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),Ga(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,i=t.subContextCount,o=t,r=e.options;if(r&&(r.params||r.delay)&&((o=t.createSubContext(r)).transformIntoNewTimeline(),null!=r.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=ps);var l=Da(r.delay);o.delayNextStep(l)}e.steps.length&&(e.steps.forEach(function(e){return Ga(n,e,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,i=[],o=t.currentTimeline.currentTime,r=e.options&&e.options.delay?Da(e.options.delay):0;e.steps.forEach(function(l){var u=t.createSubContext(e.options);r&&u.delayNextStep(r),Ga(n,l,u),o=Math.max(o,u.currentTimeline.currentTime),i.push(u.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(o),t.previousNode=e},e.prototype._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return ja(t.params?Wa(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var o=e.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(n.duration),this.visitStyle(o,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,o=n.duration,r=t.createSubContext().currentTimeline;r.easing=n.easing,e.styles.forEach(function(e){r.forwardTime((e.offset||0)*o),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(i+o),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,i=t.currentTimeline.currentTime,o=e.options||{},r=o.delay?Da(o.delay):0;r&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ps);var l=i,u=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,t.errors);t.currentQueryTotal=u.length;var a=null;u.forEach(function(i,o){t.currentQueryIndex=o;var u=t.createSubContext(e.options,i);r&&u.delayNextStep(r),i===t.element&&(a=u.currentTimeline),Ga(n,e.animation,u),u.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,u.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(l),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,i=t.currentTimeline,o=e.timings,r=Math.abs(o.duration),l=r*(t.currentQueryTotal-1),u=r*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":u=l-u;break;case"full":u=n.currentStaggerTime}var a=t.currentTimeline;u&&a.delayNextStep(u);var s=a.currentTime;Ga(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-s+(i.startTime-n.currentTimeline.startTime)},e}(),ps={},fs=function(){function e(e,t,n,i,o,r,l,u){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=o,this.errors=r,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ps,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new hs(this._driver,t,0),l.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var i=e,o=this.options;null!=i.duration&&(o.duration=Da(i.duration)),null!=i.delay&&(o.delay=Da(i.delay));var r=i.params;if(r){var l=o.params;l||(l=this.options.params={}),Object.keys(r).forEach(function(e){t&&l.hasOwnProperty(e)||(l[e]=Wa(r[e],l,n.errors))})}}},e.prototype._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e},e.prototype.createSubContext=function(t,n,i){void 0===t&&(t=null);var o=n||this.element,r=new e(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=ps,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},o=new ys(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(o),i},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,i,o,r){var l=[];if(i&&l.push(this.element),e.length>0){e=(e=e.replace(as,"."+this._enterClassName)).replace(ss,"."+this._leaveClassName);var u=this._driver.query(this.element,e,1!=n);0!==n&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),l.push.apply(l,u)}return o||0!=l.length||r.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),l},e}(),hs=function(){function e(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},e.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||ra,t._currentKeyframe[e]=ra}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,i){var o=this;t&&(this._previousKeyframe.easing=t);var r=i&&i.params||{},l=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]=ra}):Ua(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(l).forEach(function(e){var t=Wa(l[e],r,n);o._pendingStyles[e]=t,o._localTimelineStyles.hasOwnProperty(e)||(o._backFill[e]=o._globalTimelineStyles.hasOwnProperty(e)?o._globalTimelineStyles[e]:ra),o._updateStyle(e,t)})},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],o=e._styleSummary[n];(!i||o.time>i.time)&&t._updateStyle(n,o.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(r,l){var u=Ua(r,!0);Object.keys(u).forEach(function(e){var i=u[e];i==da?t.add(e):i==ra&&n.add(e)}),i||(u.offset=l/e.duration),o.push(u)});var r=t.size?za(t.values()):[],l=n.size?za(n.values()):[];if(i){var u=o[0],a=La(u);u.offset=0,a.offset=1,o=[u,a]}return ls(this.element,o,r,l,this.duration,this.startTime,this.easing,!1)},e}(),ys=function(e){function t(t,n,i,o,r,l,u){void 0===u&&(u=!1);var a=e.call(this,t,n,l.delay)||this;return a.element=n,a.keyframes=i,a.preStyleProps=o,a.postStyleProps=r,a._stretchStartingKeyframe=u,a.timings={duration:l.duration,delay:l.delay,easing:l.easing},a}return Object(Ci.__extends)(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,o=t.easing;if(this._stretchStartingKeyframe&&n){var r=[],l=i+n,u=n/l,a=Ua(e[0],!1);a.offset=0,r.push(a);var s=Ua(e[0],!1);s.offset=ms(u),r.push(s);for(var c=e.length-1,d=1;d<=c;d++){var p=Ua(e[d],!1);p.offset=ms((n+p.offset*i)/l),r.push(p)}i=l,n=0,o="",e=r}return ls(this.element,e,this.preStyleProps,this.postStyleProps,i,n,o,!0)},t}(hs);function ms(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var gs=function(){},vs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ci.__extends)(t,e),t.prototype.normalizePropertyName=function(e,t){return qa(e)},t.prototype.normalizeStyleValue=function(e,t,n,i){var o="",r=n.toString().trim();if(bs[t]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var l=n.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&i.push("Please provide a CSS unit value for "+e+":"+n)}return r+o},t}(gs),bs=function(e){var t={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(e){return t[e]=!0}),t}();function ks(e,t,n,i,o,r,l,u,a,s,c,d){return{type:0,element:e,triggerName:t,isRemovalTransition:o,fromState:n,fromStyles:r,toState:i,toStyles:l,timelines:u,queriedElements:a,preStyleProps:s,postStyleProps:c,errors:d}}var _s={},ws=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t){return function(e,t,n){return e.some(function(e){return e(t,n)})}(this.ast.matchers,e,t)},e.prototype.buildStyles=function(e,t,n){var i=this._stateStyles["*"],o=this._stateStyles[e],r=i?i.buildStyles(t,n):{};return o?o.buildStyles(t,n):r},e.prototype.build=function(e,t,n,i,o,r,l,u,a){var s=[],c=this.ast.options&&this.ast.options.params||_s,d=this.buildStyles(n,l&&l.params||_s,s),p=u&&u.params||_s,f=this.buildStyles(i,p,s),h=new Set,y=new Map,m=new Map,g="void"===i,v={params:Object(Ci.__assign)({},c,p)},b=cs(e,t,this.ast.animation,o,r,d,f,v,a,s);if(s.length)return ks(t,this._triggerName,n,i,g,d,f,[],[],y,m,s);b.forEach(function(e){var n=e.element,i=ga(y,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var o=ga(m,n,{});e.postStyleProps.forEach(function(e){return o[e]=!0}),n!==t&&h.add(n)});var k=za(h.values());return ks(t,this._triggerName,n,i,g,d,f,b,k,y,m)},e}(),As=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},i=La(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach(function(e){var r=o[e];r.length>1&&(r=Wa(r,i,t)),n[e]=r})}}),n},e}(),Ts=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){n.states[e.name]=new As(e.style,e.options&&e.options.params||{})}),Cs(this.states,"true","1"),Cs(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new ws(e,t,n.states))}),this.fallbackTransition=new ws(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t){return this.transitionFactories.find(function(n){return n.match(e,t)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function Cs(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var xs=new us,Os=function(){function e(e,t){this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],i=es(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=i},e.prototype._buildPlayer=function(e,t,n){var i=e.element,o=fa(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,o,e.duration,e.delay,e.easing,[])},e.prototype.create=function(e,t,n){var i=this;void 0===n&&(n={});var o,r=[],l=this._animations[e],u=new Map;if(l?(o=cs(this._driver,t,l,"ng-enter","ng-leave",{},{},n,xs,r)).forEach(function(e){var t=ga(u,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error("Unable to create the animation due to the following errors: "+r.join("\n"));u.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,ra)})});var a=pa(o.map(function(e){var t=u.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(function(){return i.destroy(e)}),this.players.push(a),a},e.prototype.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,i){var o=ma(t,"","","");return ha(this._getPlayer(e),n,o,i),function(){}},e.prototype.command=function(e,t,n,i){if("register"!=n)if("create"!=n){var o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])},e}(),Ss=[],Ms={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},Es={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},Ps="__ng_removed",Is=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){var i=La(e);delete i.value,this.options=i}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},e}(),Rs=new Is("void"),Ds=new Is("DELETED"),Ns=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Hs(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,i){var o,r=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(o=n)&&"done"!=o)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var l=ga(this._elementListeners,e,[]),u={name:t,phase:n,callback:i};l.push(u);var a=ga(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Hs(e,"ng-trigger"),Hs(e,"ng-trigger-"+t),a[t]=Rs),function(){r._engine.afterFlush(function(){var e=l.indexOf(u);e>=0&&l.splice(e,1),r._triggers[t]||delete a[t]})}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,i){var o=this;void 0===i&&(i=!0);var r=this._getTrigger(t),l=new Ls(this.id,t,e),u=this._engine.statesByElement.get(e);u||(Hs(e,"ng-trigger"),Hs(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,u={}));var a=u[t],s=new Is(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&s.absorbOptions(a.options),u[t]=s,a){if(a===Ds)return l}else a=Rs;if("void"===s.value||a.value!==s.value){var c=ga(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==o.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=r.matchTransition(a.value,s.value),p=!1;if(!d){if(!i)return;d=r.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:a,toState:s,player:l,isFallbackTransition:p}),p||(Hs(e,"ng-animate-queued"),l.onStart(function(){Ws(e,"ng-animate-queued")})),l.onDone(function(){var t=o.players.indexOf(l);t>=0&&o.players.splice(t,1);var n=o._engine.playersByElement.get(e);if(n){var i=n.indexOf(l);i>=0&&n.splice(i,1)}}),this.players.push(l),c.push(l),l}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var o=0;o=0){for(var i=!1,o=n;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,t)){this._namespaceList.splice(o+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),o=0;o=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(function(e){var t=e.player;w.push(t);var r=e.element;if(d&&n.driver.containsElement(d,r)){var c=k.get(r),p=h.get(r),f=n._buildInstruction(e,i,p,c);if(f.errors&&f.errors.length)A.push(f);else{if(e.isFallbackTransition)return t.onStart(function(){return Fa(r,f.fromStyles)}),t.onDestroy(function(){return Va(r,f.toStyles)}),void o.push(t);f.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(r,f.timelines),l.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(function(e){return ga(u,e,[]).push(t)}),f.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=a.get(t);i||a.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),f.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=s.get(t);i||s.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}}else t.destroy()});if(A.length){var C=[];A.forEach(function(e){C.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return C.push("- "+e+"\n")})}),w.forEach(function(e){return e.destroy()}),this.reportError(C)}var x=new Map,O=new Map;l.forEach(function(e){var t=e.element;i.has(t)&&(O.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,x))}),o.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){ga(x,t,[]).push(e),e.destroy()})});var S=m.filter(function(e){return $s(e,a,s)}),M=new Map;Fs(M,this.driver,v,s,ra).forEach(function(e){$s(e,a,s)&&S.push(e)});var E=new Map;f.forEach(function(e,t){Fs(E,n.driver,new Set(e),a,da)}),S.forEach(function(e){var t=M.get(e),n=E.get(e);M.set(e,Object(Ci.__assign)({},t,n))});var P=[],I=[],R={};l.forEach(function(e){var t=e.element,l=e.player,u=e.instruction;if(i.has(t)){if(c.has(t))return l.onDestroy(function(){return Va(t,u.toStyles)}),void o.push(l);var a=R;if(O.size>1){for(var s=t,d=[];s=s.parentNode;){var p=O.get(s);if(p){a=p;break}d.push(s)}d.forEach(function(e){return O.set(e,a)})}var f=n._buildAnimation(l.namespaceId,u,x,r,E,M);if(l.setRealPlayer(f),a===R)P.push(l);else{var h=n.playersByElement.get(a);h&&h.length&&(l.parentPlayer=pa(h)),o.push(l)}}else Fa(t,u.fromStyles),l.onDestroy(function(){return Va(t,u.toStyles)}),I.push(l),c.has(t)&&o.push(l)}),I.forEach(function(e){var t=r.get(e.element);if(t&&t.length){var n=pa(t);e.setRealPlayer(n)}}),o.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var D=0;D0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new sa},e}(),Ls=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new sa,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.queued=!0}return e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return ha(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.queued=!1)},e.prototype.getRealPlayer=function(){return this._player},e.prototype.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})},e.prototype._queueEvent=function(e,t){ga(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),e.prototype.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function Us(e){return e&&1===e.nodeType}function Vs(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Fs(e,t,n,i,o){var r=[];n.forEach(function(e){return r.push(Vs(e))});var l=[];i.forEach(function(n,i){var r={};n.forEach(function(e){var n=r[e]=t.computeStyle(i,e,o);n&&0!=n.length||(i[Ps]=Es,l.push(i))}),e.set(i,r)});var u=0;return n.forEach(function(e){return Vs(e,r[u++])}),l}function Ks(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),o=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var r=o.get(t);if(r)return r;var l=t.parentNode;return r=n.has(l)?l:i.has(l)?1:e(l),o.set(t,r),r}(e);1!==t&&n.get(t).push(e)}),n}var Bs="$$classes";function Hs(e,t){if(e.classList)e.classList.add(t);else{var n=e[Bs];n||(n=e[Bs]={}),n[t]=!0}}function Ws(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Bs];n&&delete n[t]}}function zs(e,t,n){pa(n).onDone(function(){return e.processLeaveNode(t)})}function $s(e,t,n){var i=n.get(e);if(!i)return!1;var o=t.get(e);return o?i.forEach(function(e){return o.add(e)}):t.set(e,i),n.delete(e),!0}var qs=function(){function e(e,t){var n=this;this._driver=e,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new js(e,t),this._timelineEngine=new Os(e,t),this._transitionEngine.onRemovalComplete=function(e,t){return n.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,i,o){var r=e+"-"+i,l=this._triggerCache[r];if(!l){var u=[],a=es(this._driver,o,u);if(u.length)throw new Error('The animation trigger "'+i+'" has failed to build due to the following errors:\n - '+u.join("\n - "));l=function(e,t){return new Ts(e,t)}(i,a),this._triggerCache[r]=l}this._transitionEngine.registerTrigger(t,i,l)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)},e.prototype.onRemove=function(e,t,n){this._transitionEngine.removeNode(e,t,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,i){if("@"==n.charAt(0)){var o=va(n);this._timelineEngine.command(o[0],t,o[1],i)}else this._transitionEngine.trigger(e,t,n,i)},e.prototype.listen=function(e,t,n,i,o){if("@"==n.charAt(0)){var r=va(n);return this._timelineEngine.listen(r[0],t,r[1],o)}return this._transitionEngine.listen(e,t,n,i,o)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}(),Gs=function(){function e(e,t,n,i){void 0===i&&(i=[]);var o=this;this.element=e,this.keyframes=t,this.options=n,this.previousPlayers=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,(0===this._duration||0===this._delay)&&i.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return o.previousStyles[e]=t[e]})})}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes.map(function(e){return Ua(e,!1)}),n=Object.keys(this.previousStyles);if(n.length&&t.length){var i=t[0],o=[];if(n.forEach(function(t){i.hasOwnProperty(t)||o.push(t),i[t]=e.previousStyles[t]}),o.length)for(var r=this,l=function(){var e=t[u];o.forEach(function(t){e[t]=Ys(r.element,t)})},u=1;u=0&&e0;return n&&e.router.navigate(["/macro",t[0].id]),!n})},e}(),hc=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(c.d).do(function(t){t&&e.router.navigate(["/"])}).map(function(e){return!e})},e}(),yc=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(c.d).do(function(t){t||e.router.navigate(["/detection"])})},e}(),mc=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(c.w).do(function(t){t&&e.router.navigate(["/detection"])}).map(function(e){return!e})},e}(),gc=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(c.w).do(function(t){t||e.router.navigate(["/privilege"])})},e}(),vc=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(c.c).do(function(t){t||e.router.navigate(["/loading"])})},e}(),bc=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(c.c).do(function(t){t&&e.router.navigate(["/"])}).map(function(e){return!e})},e}(),kc=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(c.b).do(function(t){t||e.router.navigate(["/"])})},e}(),_c=n("YXEY"),wc=n("+GbP"),Ac=function(){},Tc=function(){},Cc=n("HZ5C"),xc=n("7OPe"),Oc=n("/KiA"),Sc=n("r/Om"),Mc=n("tXwt"),Ec=n("j4Le"),Pc=n("8AXl"),Ic=function(){function e(){}return e.prototype.send=function(e){for(var t=[],n=1;nn.length){i=0;var o=n.indexOf(t.substr(0,1)),r=n.indexOf(t.substr(1,1));++r>n.length&&(r=0,o++),t=n[o]+n[r]+n[i]}return t}(e.keymaps,i.abbreviation),i.name=d(e.keymaps,i.name),i.isDefault=0===e.keymaps.length,n.keymaps=f(e.keymaps,i);break;case u.a.EDIT_NAME:if(!Object(s.d)(t.payload.name))break;var o=t.payload.name.trim(),r=null;if(e.keymaps.some(function(e){return e.abbreviation===t.payload.abbr&&(r=e),e.name===o&&e.abbreviation!==t.payload.abbr}))break;var m=Object.assign(new l.Keymap,r,{name:o});n.keymaps=f(e.keymaps,m,function(e){return e.abbreviation!==m.abbreviation});break;case u.a.EDIT_ABBR:var g=t.payload.newAbbr.toUpperCase(),v=e.keymaps.some(function(e){return e.name!==t.payload.name&&e.abbreviation===g});n.keymaps=e.keymaps.map(function(e){return e=Object.assign(new l.Keymap,e),v||e.abbreviation!==t.payload.abbr?e=e.renameKeymap(t.payload.abbr,t.payload.newAbbr):e.abbreviation=g,e});break;case u.a.SET_DEFAULT:n.keymaps=e.keymaps.map(function(e){return(e.abbreviation===t.payload||e.isDefault)&&((e=Object.assign(new l.Keymap,e)).isDefault=e.abbreviation===t.payload),e});break;case u.a.REMOVE:var b,k=e.keymaps.filter(function(e){return e.abbreviation!==t.payload||(b=e.isDefault,!1)});b&&k.length>0&&(k[0]=Object.assign(new l.Keymap,k[0],{isDefault:!0})),n.keymaps=k.map(function(e){return(e=Object.assign(new l.Keymap,e)).layers=h(e.layers,"keymapAbbreviation",t.payload),e});break;case u.a.SAVE_KEY:var _=t.payload.key,w=t.payload.layer,A=t.payload.module,T=t.payload.keyAction,C=T.action,x=t.payload.keymap,O=C instanceof l.SwitchLayerAction,S=C instanceof l.SwitchKeymapAction;n.keymaps=e.keymaps.map(function(e){return S&&e.abbreviation===C.keymapAbbreviation?e:((T.remapOnAllKeymap||e.abbreviation===x.abbreviation)&&(e.layers=e.layers.map(function(e,t){if(T.remapOnAllLayer||t===w||O){var n=l.KeyActionHelper.createKeyAction(C);if(O)if(0===t||t-1===C.layer)y(e,A,_,n);else{var i=e.modules[A].keyActions[_];i&&i instanceof l.SwitchLayerAction&&y(e,A,_,null)}else y(e,A,_,n)}return e})),e)});break;case u.a.CHECK_MACRO:n.keymaps=e.keymaps.map(function(e){return(e=Object.assign(new l.Keymap,e)).layers=h(e.layers,"_macroId",t.payload),e});break;case u.b.ADD:(M=new l.Macro).id=p(e.macros),M.name=d(e.macros,"New macro"),M.isLooped=!1,M.isPrivate=!0,M.macroActions=[],n.macros=f(e.macros,M);break;case u.b.DUPLICATE:var M;(M=new l.Macro(t.payload)).name=d(e.macros,M.name),M.id=p(e.macros),n.macros=f(e.macros,M);break;case u.b.EDIT_NAME:if(!Object(s.d)(t.payload.name))break;var E=t.payload.name.trim(),P=null;if(e.macros.some(function(e){return e.id===t.payload.id&&(P=e),e.id!==t.payload.id&&e.name===E}))break;var I=Object.assign(new l.Macro,P,{name:E});n.macros=f(e.macros,I,function(e){return e.id!==I.id});break;case u.b.REMOVE:var R=t.payload;n.macros=e.macros.filter(function(e){return e.id!==R});for(var D=0;Dt.payload.oldIndex&&--n,(e=new l.Macro(e)).macroActions.splice(n,0,e.macroActions.splice(t.payload.oldIndex,1)[0])}return e});break;case a.a.RENAME_USER_CONFIGURATION:Object(s.d)(t.payload)&&(n.deviceName=t.payload.trim());break;case a.a.SET_USER_CONFIGURATION_VALUE:n[t.payload.propertyName]=t.payload.value;break;case u.a.EDIT_DESCRIPTION:var W=t.payload;n.keymaps=e.keymaps.map(function(e){return e.abbreviation===W.abbr&&(e.description=W.description),e})}return n},t.e=function(){return function(e){return e.map(function(e){return e.userConfiguration})}},t.b=function(){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}},t.a=function(e){return void 0===e?function(e){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}(e).map(function(e){return e.find(function(e){return e.isDefault})})}:function(t){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}(t).map(function(t){return t.find(function(t){return t.abbreviation===e})})}},t.d=function(){return function(e){return e.map(function(e){return e.userConfiguration.macros})}},t.c=function(e){return isNaN(e)?function(){return i.Observable.of(void 0)}:function(t){return function(e){return e.map(function(e){return e.userConfiguration.macros})}(t).map(function(t){return t.find(function(t){return t.id===e})})}};var i=n("rCTf"),o=n("1APj"),r=(n.n(o),n("+pb+")),l=(n.n(r),n("gI3A")),u=(n.n(l),n("WP8/")),a=n("at4H"),s=n("Lt3n"),c=new l.UserConfiguration;function d(e,t){var n=1,i=/ \(\d+\)$/g,o=t.replace(i,"");return e.forEach(function(e){e.name.replace(i,"")===o&&n++}),o+" ("+n+")"}function p(e){var t=0;return e.forEach(function(e){e.id>t&&(t=e.id)}),t+1}function f(e,t,n){void 0===n&&(n=function(){return!0});for(var i=[],o=!1,r=0,l=e;r0&&(i.push(t),o=!0),n(u)&&i.push(u)}return o||i.push(t),i}function h(e,t,n){for(var i=[],o=0;o"},e.prototype.renameKeymap=function(t,n){var i,o=this,r=!1;if(this.modules.forEach(function(e,l){var u=e.renameKeymap(t,n);u!==e&&(r||(i=o.modules.slice(),r=!0),i[l]=u)}),r){var l=Object.assign(new e,this);return l.modules=i,l}return this},e}()},zF5W:function(e,t,n){var i,o;void 0===(o="function"==typeof(i=function(){"use strict";var e="11.1.0";function t(e){return null!==e&&void 0!==e}function n(e){e.preventDefault()}function i(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function o(e,t,n){n>0&&(a(e,t),setTimeout(function(){s(e,t)},n))}function r(e){return Math.max(Math.min(e,100),0)}function l(e){return Array.isArray(e)?e:[e]}function u(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function a(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function s(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function c(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function d(e,t){return 100/(t-e)}function p(e,t){return 100*t/(e[1]-e[0])}function f(e,t){for(var n=1;e>=t[n];)n+=1;return n}function h(t,n,o){var r;if("number"==typeof n&&(n=[n]),!Array.isArray(n))throw new Error("noUiSlider ("+e+"): 'range' contains invalid value.");if(!i(r="min"===t?0:"max"===t?100:parseFloat(t))||!i(n[0]))throw new Error("noUiSlider ("+e+"): 'range' value isn't numeric.");o.xPct.push(r),o.xVal.push(n[0]),r?o.xSteps.push(!isNaN(n[1])&&n[1]):isNaN(n[1])||(o.xSteps[0]=n[1]),o.xHighestCompleteStep.push(0)}function y(e,t,n){if(!t)return!0;n.xSteps[e]=p([n.xVal[e],n.xVal[e+1]],t)/d(n.xPct[e],n.xPct[e+1]);var i=Math.ceil(Number(((n.xVal[e+1]-n.xVal[e])/n.xNumSteps[e]).toFixed(3))-1);n.xHighestCompleteStep[e]=n.xVal[e]+n.xNumSteps[e]*i}function m(e,t,n){var i;this.xPct=[],this.xVal=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=t;var o=[];for(i in e)e.hasOwnProperty(i)&&o.push([e[i],i]);for(o.sort(o.length&&"object"==typeof o[0][0]?function(e,t){return e[0][0]-t[0][0]}:function(e,t){return e[0]-t[0]}),i=0;i=e.slice(-1)[0])return 100;var i=f(n,e),o=t[i-1],r=t[i];return o+function(e,t){return p(e,e[0]<0?t+Math.abs(e[0]):t-e[0])}([e[i-1],e[i]],n)/d(o,r)}(this.xVal,this.xPct,e)},m.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var i=f(n,t),o=t[i-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([e[i-1],e[i]],(n-o)*d(o,t[i]))}(this.xVal,this.xPct,e)},m.prototype.getStep=function(e){return function(e,t,n,i){if(100===i)return i;var o=f(i,e),r=e[o-1],l=e[o];return n?i-r>(l-r)/2?l:r:t[o-1]?e[o-1]+function(e,t){return Math.round(e/t)*t}(i-e[o-1],t[o-1]):i}(this.xPct,this.xSteps,this.snap,e)},m.prototype.getNearbySteps=function(e){var t=f(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t-0],step:this.xNumSteps[t-0],highestStep:this.xHighestCompleteStep[t-0]}}},m.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(u);return Math.max.apply(null,e)},m.prototype.convert=function(e){return this.getStep(this.toStepping(e))};var g={to:function(e){return void 0!==e&&e.toFixed(2)},from:Number};function v(t){if(function(e){return"object"==typeof e&&"function"==typeof e.to&&"function"==typeof e.from}(t))return!0;throw new Error("noUiSlider ("+e+"): 'format' requires 'to' and 'from' methods.")}function b(t,n){if(!i(n))throw new Error("noUiSlider ("+e+"): 'step' is not numeric.");t.singleStep=n}function k(t,n){if("object"!=typeof n||Array.isArray(n))throw new Error("noUiSlider ("+e+"): 'range' is not an object.");if(void 0===n.min||void 0===n.max)throw new Error("noUiSlider ("+e+"): Missing 'min' or 'max' in 'range'.");if(n.min===n.max)throw new Error("noUiSlider ("+e+"): 'range' 'min' and 'max' cannot be equal.");t.spectrum=new m(n,t.snap,t.singleStep)}function _(t,n){if(n=l(n),!Array.isArray(n)||!n.length)throw new Error("noUiSlider ("+e+"): 'start' option is incorrect.");t.handles=n.length,t.start=n}function w(t,n){if(t.snap=n,"boolean"!=typeof n)throw new Error("noUiSlider ("+e+"): 'snap' option must be a boolean.")}function A(t,n){if(t.animate=n,"boolean"!=typeof n)throw new Error("noUiSlider ("+e+"): 'animate' option must be a boolean.")}function T(t,n){if(t.animationDuration=n,"number"!=typeof n)throw new Error("noUiSlider ("+e+"): 'animationDuration' option must be a number.")}function C(t,n){var i,o=[!1];if("lower"===n?n=[!0,!1]:"upper"===n&&(n=[!1,!0]),!0===n||!1===n){for(i=1;i=100)throw new Error("noUiSlider ("+e+"): 'padding' option must not exceed 100% of the range.")}}function E(t,n){switch(n){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider ("+e+"): 'direction' option was not recognized.")}}function P(t,n){if("string"!=typeof n)throw new Error("noUiSlider ("+e+"): 'behaviour' must be a string containing options.");var i=n.indexOf("tap")>=0,o=n.indexOf("drag")>=0,r=n.indexOf("fixed")>=0,l=n.indexOf("snap")>=0,u=n.indexOf("hover")>=0;if(r){if(2!==t.handles)throw new Error("noUiSlider ("+e+"): 'fixed' behaviour must be used with 2 handles");O(t,t.start[1]-t.start[0])}t.events={tap:i||l,drag:o,fixed:r,snap:l,hover:u}}function I(t,n){if(!1!==n)if(!0===n){t.tooltips=[];for(var i=0;i= 2) required for mode 'count'.");var o=n-1,r=100/o;for(n=[];o--;)n[o]=o*r;n.push(100),t="positions"}return"positions"===t?n.map(function(e){return C.fromStepping(i?C.getStep(e):e)}):"values"===t?i?n.map(function(e){return C.fromStepping(C.getStep(C.toStepping(e)))}):n:void 0}(n,t.values||!1,t.stepped||!1),u=function(e,t,n){var i,o={},r=C.xVal[0],l=C.xVal[C.xVal.length-1],u=!1,a=!1,s=0;return i=n.slice().sort(function(e,t){return e-t}),(n=i.filter(function(e){return!this[e]&&(this[e]=!0)},{}))[0]!==r&&(n.unshift(r),u=!0),n[n.length-1]!==l&&(n.push(l),a=!0),n.forEach(function(i,r){var l,c,d,p,f,h,y,m,g=i,v=n[r+1];if("steps"===t&&(l=C.xNumSteps[r]),l||(l=v-g),!1!==g&&void 0!==v)for(l=Math.max(l,1e-7),c=g;c<=v;c=(c+l).toFixed(7)/1){for(m=(f=(p=C.toStepping(c))-s)/(y=Math.round(f/e)),d=1;d<=y;d+=1)o[(s+d*m).toFixed(5)]=["x",0];h=n.indexOf(c)>-1?1:"steps"===t?2:0,!r&&u&&(h=0),c===v&&a||(o[p.toFixed(5)]=[c,h]),s=p}}),o}(o,n,l),s=t.format||{to:Math.round};return y=_.appendChild(function(e,t,n){var o=S.createElement("div"),r=[i.cssClasses.valueNormal,i.cssClasses.valueLarge,i.cssClasses.valueSub],l=[i.cssClasses.markerNormal,i.cssClasses.markerLarge,i.cssClasses.markerSub],u=[i.cssClasses.valueHorizontal,i.cssClasses.valueVertical],s=[i.cssClasses.markerHorizontal,i.cssClasses.markerVertical];function c(e,t){var n=t===i.cssClasses.value;return t+" "+(n?u:s)[i.ort]+" "+(n?r:l)[e]}return a(o,i.cssClasses.pips),a(o,0===i.ort?i.cssClasses.pipsHorizontal:i.cssClasses.pipsVertical),Object.keys(e).forEach(function(r){!function(e,r){r[1]=r[1]&&t?t(r[0],r[1]):r[1];var l=I(o,!1);l.className=c(r[1],i.cssClasses.marker),l.style[i.style]=e+"%",r[1]&&((l=I(o,!1)).className=c(r[1],i.cssClasses.value),l.setAttribute("data-value",r[0]),l.style[i.style]=e+"%",l.innerText=n.to(r[0]))}(r,e[r])}),o}(u,r,s))}function U(){var e=d.getBoundingClientRect(),t="offset"+["Width","Height"][i.ort];return 0===i.ort?e.width||d[t]:e.height||d[t]}function V(e,t,n,o){var r=function(r){return!!(r=function(e,t,n){var i,o,r=0===e.type.indexOf("touch"),l=0===e.type.indexOf("mouse"),u=0===e.type.indexOf("pointer");if(0===e.type.indexOf("MSPointer")&&(u=!0),r){var a=function(e){return e.target===n||n.contains(e.target)};if("touchstart"===e.type){var s=Array.prototype.filter.call(e.touches,a);if(s.length>1)return!1;i=s[0].pageX,o=s[0].pageY}else{var d=Array.prototype.find.call(e.changedTouches,a);if(!d)return!1;i=d.pageX,o=d.pageY}}return t=t||c(S),(l||u)&&(i=e.clientX+t.x,o=e.clientY+t.y),e.pageOffset=t,e.points=[i,o],e.cursor=l||u,e}(r,o.pageOffset,o.target||t))&&!(_.hasAttribute("disabled")&&!o.doNotReject)&&(u=i.cssClasses.tap,!(((l=_).classList?l.classList.contains(u):new RegExp("\\b"+u+"\\b").test(l.className))&&!o.doNotReject)&&!(e===b.start&&void 0!==r.buttons&&r.buttons>1)&&(!o.hover||!r.buttons)&&(k||r.preventDefault(),r.calcPoint=r.points[i.ort],void n(r,o)));var l,u},l=[];return e.split(" ").forEach(function(e){t.addEventListener(e,r,!!k&&{passive:!0}),l.push([e,r])}),l}function F(e){var t,n,o,l,u,a,s=100*(e-(n=i.ort,o=(t=d).getBoundingClientRect(),u=(l=t.ownerDocument).documentElement,a=c(l),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(a.x=0),n?o.top+a.y-u.clientTop:o.left+a.x-u.clientLeft))/U();return s=r(s),i.dir?100-s:s}function K(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&H(e,t)}function B(e,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==t.buttonsProperty)return H(e,t);var n=(i.dir?-1:1)*(e.calcPoint-t.startCalcPoint);Q(n>0,100*n/t.baseSize,t.locations,t.handleNumbers)}function H(e,t){t.handle&&(s(t.handle,i.cssClasses.active),T-=1),t.listeners.forEach(function(e){M.removeEventListener(e[0],e[1])}),0===T&&(s(_,i.cssClasses.drag),Z(),e.cursor&&(E.style.cursor="",E.removeEventListener("selectstart",n))),t.handleNumbers.forEach(function(e){$("change",e),$("set",e),$("end",e)})}function W(e,t){var o;if(1===t.handleNumbers.length){var r=p[t.handleNumbers[0]];if(r.hasAttribute("disabled"))return!1;T+=1,a(o=r.children[0],i.cssClasses.active)}e.stopPropagation();var l=[],u=V(b.move,M,B,{target:e.target,handle:o,listeners:l,startCalcPoint:e.calcPoint,baseSize:U(),pageOffset:e.pageOffset,handleNumbers:t.handleNumbers,buttonsProperty:e.buttons,locations:w.slice()}),s=V(b.end,M,H,{target:e.target,handle:o,listeners:l,doNotReject:!0,handleNumbers:t.handleNumbers}),c=V("mouseout",M,K,{target:e.target,handle:o,listeners:l,doNotReject:!0,handleNumbers:t.handleNumbers});l.push.apply(l,u.concat(s,c)),e.cursor&&(E.style.cursor=getComputedStyle(e.target).cursor,p.length>1&&a(_,i.cssClasses.drag),E.addEventListener("selectstart",n,!1)),t.handleNumbers.forEach(function(e){$("start",e)})}function z(e,t){O[e]=O[e]||[],O[e].push(t),"update"===e.split(".")[0]&&p.forEach(function(e,t){$("update",t)})}function $(e,t,n){Object.keys(O).forEach(function(o){var r=o.split(".")[0];e===r&&O[o].forEach(function(e){e.call(h,x.map(i.format.to),t,x.slice(),n||!1,w.slice())})})}function q(e){return e+"%"}function G(e,t,n,o,l,u){return p.length>1&&(o&&t>0&&(n=Math.max(n,e[t-1]+i.margin)),l&&t1&&i.limit&&(o&&t>0&&(n=Math.min(n,e[t-1]+i.limit)),l&&t1?i.forEach(function(e,n){var i=G(o,e,o[e]+t,r[n],l[n],!1);!1===i?t=0:(t=i-o[e],o[e]=i)}):r=l=[!0];var u=!1;i.forEach(function(e,i){u=X(e,n[e]+t,r[i],l[i])||u}),u&&i.forEach(function(e){$("update",e),$("slide",e)})}function J(e,t){return i.dir?100-e-t:e}function Z(){A.forEach(function(e){p[e].style.zIndex=3+(p.length+(w[e]>50?-1:1)*e)})}function X(e,t,n,o){return!1!==(t=G(w,e,t,n,o,!1))&&(function(e,t){w[e]=t,x[e]=C.fromStepping(t);var n="translate("+Y(q(J(t,0)-P),"0")+")";p[e].style[i.transformRule]=n,ee(e),ee(e+1)}(e,t),!0)}function ee(e){if(f[e]){var t=0,n=100;0!==e&&(t=w[e-1]),e!==f.length-1&&(n=w[e]);var o=n-t,r="translate("+Y(q(J(t,o)),"0")+")",l="scale("+Y(o/100,"1")+")";f[e].style[i.transformRule]=r+" "+l}}function te(e,t){var n=l(e);t=void 0===t||!!t,i.animate&&!(void 0===w[0])&&o(_,i.cssClasses.tap,i.animationDuration),A.forEach(function(e){X(e,function(e,t){return null===e||!1===e||void 0===e?w[t]:("number"==typeof e&&(e=String(e)),e=i.format.from(e),!1===(e=C.toStepping(e))||isNaN(e)?w[t]:e)}(n[e],e),!0,!1)}),A.forEach(function(e){X(e,w[e],!0,!0)}),Z(),A.forEach(function(e){$("update",e),null!==n[e]&&t&&$("set",e)})}function ne(){var e=x.map(i.format.to);return 1===e.length?e[0]:e}return a(m=_,i.cssClasses.target),a(m,0===i.dir?i.cssClasses.ltr:i.cssClasses.rtl),a(m,0===i.ort?i.cssClasses.horizontal:i.cssClasses.vertical),d=I(m,i.cssClasses.base),function(e,t){var n=I(t,i.cssClasses.connects);p=[],(f=[]).push(D(n,e[0]));for(var o=0;on.stepAfter.startValue&&(o=n.stepAfter.startValue-i),r=i>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&i-n.stepBefore.highestStep,100===e?o=null:0===e&&(r=null);var l=C.countStepDecimals();return null!==o&&!1!==o&&(o=Number(o.toFixed(l))),null!==r&&!1!==r&&(r=Number(r.toFixed(l))),[r,o]})},on:z,off:function(e){var t=e&&e.split(".")[0],n=t&&e.substring(t.length);Object.keys(O).forEach(function(e){var i=e.split(".")[0],o=e.substring(i.length);t&&t!==i||n&&n!==o||delete O[e]})},get:ne,set:te,reset:function(e){te(i.start,e)},__moveHandles:function(e,t,n){Q(e,t,w,n)},options:u,updateOptions:function(e,t){var n=ne(),o=["margin","limit","padding","range","animate","snap","step","format"];o.forEach(function(t){void 0!==e[t]&&(u[t]=e[t])});var r=L(u);o.forEach(function(t){void 0!==e[t]&&(i[t]=r[t])}),C=r.spectrum,i.margin=r.margin,i.limit=r.limit,i.padding=r.padding,i.pips&&j(i.pips),w=[],te(e.start||n,t)},target:_,removePips:N,pips:j},i.pips&&j(i.pips),i.tooltips&&(v=p.map(function(e,t){return!!i.tooltips[t]&&I(e.firstChild,i.cssClasses.tooltip)}),z("update",function(e,t,n){if(v[t]){var o=e[t];!0!==i.tooltips[t]&&(o=i.tooltips[t].to(n[t])),v[t].innerHTML=o}})),z("update",function(e,t,n,o,r){A.forEach(function(e){var t=p[e],o=G(w,e,0,!0,!0,!0),l=G(w,e,100,!0,!0,!0),u=r[e],a=i.ariaFormat.to(n[e]);t.children[0].setAttribute("aria-valuemin",o.toFixed(1)),t.children[0].setAttribute("aria-valuemax",l.toFixed(1)),t.children[0].setAttribute("aria-valuenow",u.toFixed(1)),t.children[0].setAttribute("aria-valuetext",a)})}),h}(t,L(i),i);return t.noUiSlider=u,u}}})?i.apply(t,[]):i)||(e.exports=o)},zQPq:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("B00U");t.Action=function(e){function t(t,n){e.call(this)}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(o.Subscription)}},[0]); \ No newline at end of file diff --git a/main.8e5d209519c925d8b5bf.bundle.js b/main.8e5d209519c925d8b5bf.bundle.js deleted file mode 100644 index 1f47f461..00000000 --- a/main.8e5d209519c925d8b5bf.bundle.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([0],{"+3eL":function(e,t,n){"use strict";var o,i=n("WhVc");function r(){try{return o.apply(this,arguments)}catch(e){return i.errorObject.e=e,i.errorObject}}t.tryCatch=function(e){return o=e,r}},"+4ur":function(e,t,n){"use strict";var o=n("LxNc");t._catch=function(e){return o.catchError(e)(this)}},"+EXD":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("rCTf"),r=n("CURp"),l=n("wAkD");t.DeferObservable=function(e){function t(t){e.call(this),this.observableFactory=t}return o(t,e),t.create=function(e){return new t(e)},t.prototype._subscribe=function(e){return new s(e,this.observableFactory)},t}(i.Observable);var s=function(e){function t(t,n){e.call(this,t),this.factory=n,this.tryDefer()}return o(t,e),t.prototype.tryDefer=function(){try{this._callFactory()}catch(e){this._error(e)}},t.prototype._callFactory=function(){var e=this.factory();e&&this.add(r.subscribeToResult(this,e))},t}(l.OuterSubscriber)},"+GbP":function(e,t,n){"use strict";var o=n("TToO").__decorate,i=n("WT6e"),r=n("xiuF"),l=n("LKU8"),s=function(){};s=o([i.NgModule({exports:[r.DragulaDirective],declarations:[r.DragulaDirective],providers:[l.DragulaService]})],s),t.DragulaModule=s},"+Zxz":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.defaultIfEmpty=function(e){return void 0===e&&(e=null),function(t){return t.lift(new r(e))}};var r=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.defaultValue))},e}(),l=function(e){function t(t,n){e.call(this,t),this.defaultValue=n,this.isEmpty=!0}return o(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(i.Subscriber)},"+ayw":function(e,t,n){"use strict";var o=n("sTFn");t.share=function(){return o.share()(this)}},"+pb+":function(e,t,n){"use strict";var o=n("rCTf"),i=n("xAJs");o.Observable.prototype.map=i.map},"/8Ia":function(e,t,n){"use strict";var o=n("xgwM").__decorate,i=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var r=n("CmJd");t.ModuleConfiguration=function(){function e(){}return e.prototype.fromJsonObject=function(e){return this.id=e.id,this.pointerMode=e.pointerMode,this.deceleratedPointerSpeedMultiplier=e.deceleratedPointerSpeedMultiplier,this.basePointerSpeedMultiplier=e.basePointerSpeedMultiplier,this.acceleratedPointerSpeedMultiplier=e.acceleratedPointerSpeedMultiplier,this.angularShift=e.angularShift,this.modLayerPointerFunction=e.modLayerPointerFunction,this.fnLayerPointerFunction=e.fnLayerPointerFunction,this.mouseLayerPointerFunction=e.mouseLayerPointerFunction,this},e.prototype.fromBinary=function(e){return this.id=e.readUInt8(),this.pointerMode=e.readInt8(),this.deceleratedPointerSpeedMultiplier=e.readUInt8(),this.basePointerSpeedMultiplier=e.readUInt8(),this.acceleratedPointerSpeedMultiplier=e.readUInt8(),this.angularShift=e.readUInt16(),this.modLayerPointerFunction=e.readUInt8(),this.fnLayerPointerFunction=e.readUInt8(),this.mouseLayerPointerFunction=e.readUInt8(),this},e.prototype.toJsonObject=function(){return{id:this.id,pointerMode:this.pointerMode,deceleratedPointerSpeedMultiplier:this.deceleratedPointerSpeedMultiplier,basePointerSpeedMultiplier:this.basePointerSpeedMultiplier,acceleratedPointerSpeedMultiplier:this.acceleratedPointerSpeedMultiplier,angularShift:this.angularShift,modeLayerPointerFunction:this.modLayerPointerFunction,fnLayerPointerFunction:this.fnLayerPointerFunction,mouseLayerPointerFunction:this.mouseLayerPointerFunction}},e.prototype.toBinary=function(e){e.writeUInt8(this.id),e.writeUInt8(this.pointerMode),e.writeUInt8(this.deceleratedPointerSpeedMultiplier),e.writeUInt8(this.basePointerSpeedMultiplier),e.writeUInt8(this.acceleratedPointerSpeedMultiplier),e.writeUInt16(this.angularShift),e.writeUInt8(this.modLayerPointerFunction),e.writeUInt8(this.fnLayerPointerFunction),e.writeUInt8(this.mouseLayerPointerFunction)},e.prototype.toString=function(){return''},o([r.assertUInt8,i("design:type",Number)],e.prototype,"id",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"pointerMode",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"deceleratedPointerSpeedMultiplier",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"basePointerSpeedMultiplier",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"acceleratedPointerSpeedMultiplier",void 0),o([r.assertUInt16,i("design:type",Number)],e.prototype,"angularShift",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"modLayerPointerFunction",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"fnLayerPointerFunction",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseLayerPointerFunction",void 0),e}()},"/KiA":function(e,t,n){"use strict";t.h=function(e,t){switch(void 0===e&&(e=d),t.type){case r.a.APP_STARTED:return c({},e,{started:!0});case r.a.APPLY_COMMAND_LINE_ARGS:return c({},e,{commandLineArgs:t.payload});case r.a.APP_SHOW_NOTIFICATION:return t.payload.type!==i.NotificationType.Undoable?e:c({},e,{undoableNotification:t.payload,navigationCountAfterNotification:0});case o.b:var n=c({},e);return n.navigationCountAfterNotification++,n.navigationCountAfterNotification>1&&(n.undoableNotification=null),n;case r.a.UNDO_LAST_SUCCESS:case r.a.DISMISS_UNDO_NOTIFICATION:return c({},e,{undoableNotification:null});case l.a.LOAD_USER_CONFIG_SUCCESS:case l.a.SAVE_USER_CONFIG_SUCCESS:return c({},e,{prevUserConfig:t.payload,configLoading:!1});case l.a.LOAD_CONFIG_FROM_DEVICE:case l.a.LOAD_USER_CONFIG:return c({},e,{configLoading:!0});case r.a.LOAD_HARDWARE_CONFIGURATION_SUCCESS:return c({},e,{hardwareConfig:t.payload});case s.a.CONNECTION_STATE_CHANGED:return!0===t.payload?e:c({},e,{hardwareConfig:null});case r.a.PRIVILEGE_WHAT_WILL_THIS_DO:return c({},e,{privilegeWhatWillThisDoClicked:!0});case r.a.SETUP_PERMISSION_ERROR:return c({},e,{permissionError:t.payload});case s.a.SET_PRIVILEGE_ON_LINUX:return c({},e,{permissionError:null});default:return e}},n.d(t,"j",function(){return p}),n.d(t,"a",function(){return f}),n.d(t,"g",function(){return h}),n.d(t,"e",function(){return y}),n.d(t,"i",function(){return m}),n.d(t,"d",function(){return g}),n.d(t,"b",function(){return v}),n.d(t,"c",function(){return b}),n.d(t,"f",function(){return k});var o=n("r/Om"),i=n("gI3A"),r=(n.n(i),n("Ji5S")),l=n("at4H"),s=n("fYQU"),a=n("xW7+"),u=n("Lt3n"),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof a&&(n=e.pop()),null===s&&1===e.length&&e[0]instanceof o.Observable?e[0]:l.mergeAll(n)(new i.ArrayObservable(e,s))}},"1Rl6":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("4uS6")),o(n("r/AL")),o(n("gohO")),o(n("3EbR")),o(n("3uOy")),o(n("z+Yt")),o(n("ZTdU")),o(n("R30b")),o(n("ov8r")),o(n("/8Ia")),o(n("W1wB")),t.SCANCODES=n("1xu2"),t.SECONDARY_ROLES=n("KqLa")},"1kxm":function(e,t,n){"use strict";t.FastMap=function(){function e(){this.values={}}return e.prototype.delete=function(e){return this.values[e]=null,!0},e.prototype.set=function(e,t){return this.values[e]=t,this},e.prototype.get=function(e){return this.values[e]},e.prototype.forEach=function(e,t){var n=this.values;for(var o in n)n.hasOwnProperty(o)&&null!==n[o]&&e.call(t,n[o],o)},e.prototype.clear=function(){this.values={}},e}()},"1r8+":function(e,t,n){"use strict";t.isArrayLike=function(e){return e&&"number"==typeof e.length}},"1xu2":function(e,t){e.exports=[{text:"Letter",children:[{id:"4",text:"A"},{id:"5",text:"B"},{id:"6",text:"C"},{id:"7",text:"D"},{id:"8",text:"E"},{id:"9",text:"F"},{id:"10",text:"G"},{id:"11",text:"H"},{id:"12",text:"I"},{id:"13",text:"J"},{id:"14",text:"K"},{id:"15",text:"L"},{id:"16",text:"M"},{id:"17",text:"N"},{id:"18",text:"O"},{id:"19",text:"P"},{id:"20",text:"Q"},{id:"21",text:"R"},{id:"22",text:"S"},{id:"23",text:"T"},{id:"24",text:"U"},{id:"25",text:"V"},{id:"26",text:"W"},{id:"27",text:"X"},{id:"28",text:"Y"},{id:"29",text:"Z"},{id:"100",text:"| ISO"}]},{text:"Number",children:[{id:"39",text:"0 )"},{id:"30",text:"1 !"},{id:"31",text:"2 @"},{id:"32",text:"3 #"},{id:"33",text:"4 $"},{id:"34",text:"5 %"},{id:"35",text:"6 ^"},{id:"36",text:"7 &"},{id:"37",text:"8 *"},{id:"38",text:"9 ("}]},{text:"Punctuation",children:[{id:"45",text:"- _"},{id:"46",text:"= +"},{id:"47",text:"[ {"},{id:"48",text:"] }"},{id:"49",text:"\\ |"},{id:"51",text:"; :"},{id:"52",text:"' \""},{id:"53",text:"` ~"},{id:"54",text:", <"},{id:"55",text:". >"},{id:"56",text:"/ ?"}]},{text:"Whitespace",children:[{id:"40",additional:{explanation:"Return"},text:"Enter"},{id:"44",text:"Space"},{id:"43",text:"Tab"}]},{text:"Miscellaneous",children:[{id:"41",text:"Escape"},{id:"42",text:"Backspace"},{id:"73",text:"Insert"},{id:"76",text:"Delete"},{id:"101",text:"Menu"},{id:"57",text:"Caps Lock"},{id:"71",text:"Scroll Lock"},{id:"70",text:"Print Screen"},{id:"72",text:"Pause"}]},{text:"Function",children:[{id:"58",text:"F1"},{id:"59",text:"F2"},{id:"60",text:"F3"},{id:"61",text:"F4"},{id:"62",text:"F5"},{id:"63",text:"F6"},{id:"64",text:"F7"},{id:"65",text:"F8"},{id:"66",text:"F9"},{id:"67",text:"F10"},{id:"68",text:"F11"},{id:"69",text:"F12"},{id:"104",text:"F13"},{id:"105",text:"F14"},{id:"106",text:"F15"},{id:"107",text:"F16"},{id:"108",text:"F17"},{id:"109",text:"F18"},{id:"110",text:"F19"},{id:"111",text:"F20"},{id:"112",text:"F21"},{id:"113",text:"F22"},{id:"114",text:"F23"},{id:"115",text:"F24"}]},{text:"Navigation",children:[{id:"75",additional:{explanation:"PgUp"},text:"Page Up"},{id:"78",additional:{explanation:"PgDn"},text:"Page Down"},{id:"74",text:"Home"},{id:"77",text:"End"},{id:"80",text:"Left Arrow"},{id:"79",text:"Right Arrow"},{id:"82",text:"Up Arrow"},{id:"81",text:"Down Arrow"}]},{text:"Media",children:[{id:"127",text:"Mute",additional:{type:"media",scancode:226}},{id:"128",text:"Volume Up",additional:{type:"media",scancode:233}},{id:"129",text:"Volume Down",additional:{type:"media",scancode:234}},{id:"130",text:"Next Track",additional:{type:"media",scancode:181}},{id:"131",text:"Previous Track",additional:{type:"media",scancode:182}},{id:"132",text:"Stop/Eject",additional:{type:"media",scancode:204}},{id:"133",text:"Play/Pause",additional:{type:"media",scancode:205}},{id:"134",text:"Play",additional:{type:"media",scancode:176}},{id:"135",text:"Pause",additional:{type:"media",scancode:177}},{id:"136",text:"Stop",additional:{type:"media",scancode:183}},{id:"137",text:"Eject",additional:{type:"media",scancode:184}},{id:"138",text:"WWW",additional:{type:"media",scancode:138}}]},{text:"Launch application",children:[{id:"142",text:"Launch Web Browser",additional:{type:"media",scancode:406}},{id:"143",text:"Launch Email Client",additional:{type:"media",scancode:394}},{id:"144",text:"Launch Calculator",additional:{type:"media",scancode:402}}]},{text:"System",children:[{id:"139",text:"Power Down",additional:{type:"system",scancode:129}},{id:"140",text:"Sleep",additional:{type:"system",scancode:130}},{id:"141",text:"Wake Up",additional:{type:"system",scancode:131}}]},{text:"Numpad",children:[{id:"83",text:"NumLock"},{id:"84",additional:{explanation:"slash"},text:"/"},{id:"85",additional:{explanation:"asterisk"},text:"*"},{id:"86",additional:{explanation:"minus"},text:"-"},{id:"87",additional:{explanation:"plus"},text:"+"},{id:"88",text:"Enter"},{id:"89",additional:{explanation:"one"},text:"1"},{id:"90",additional:{explanation:"two"},text:"2"},{id:"91",additional:{explanation:"three"},text:"3"},{id:"92",additional:{explanation:"four"},text:"4"},{id:"93",additional:{explanation:"five"},text:"5"},{id:"94",additional:{explanation:"six"},text:"6"},{id:"95",additional:{explanation:"seven"},text:"7"},{id:"96",additional:{explanation:"eight"},text:"8"},{id:"97",additional:{explanation:"nine"},text:"9"},{id:"98",additional:{explanation:"zero"},text:"0"},{id:"99",additional:{explanation:"period"},text:"."}]}]},"215F":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.takeWhile=function(e){return function(t){return t.lift(new r(e))}};var r=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.predicate))},e}(),l=function(e){function t(t,n){e.call(this,t),this.predicate=n,this.index=0}return o(t,e),t.prototype._next=function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(e){return void n.error(e)}this.nextOrComplete(e,t)},t.prototype.nextOrComplete=function(e,t){var n=this.destination;Boolean(t)?n.next(e):n.complete()},t}(i.Subscriber)},"2AEF":function(e,t,n){"use strict";var o=n("13YQ");t.exhaustMap=function(e,t){return o.exhaustMap(e,t)(this)}},"2ER/":function(e,t,n){"use strict";t.MapPolyfill=function(){function e(){this.size=0,this._values=[],this._keys=[]}return e.prototype.get=function(e){var t=this._keys.indexOf(e);return-1===t?void 0:this._values[t]},e.prototype.set=function(e,t){var n=this._keys.indexOf(e);return-1===n?(this._keys.push(e),this._values.push(t),this.size++):this._values[n]=t,this},e.prototype.delete=function(e){var t=this._keys.indexOf(e);return-1!==t&&(this._values.splice(t,1),this._keys.splice(t,1),this.size--,!0)},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},e.prototype.forEach=function(e,t){for(var n=0;n'},e.prototype.renameKeymap=function(t,n){var o,i=this,r=!1;if(this.layers.forEach(function(e,l){var s=e.renameKeymap(t,n);s!==e&&(r||(o=i.layers.slice(),r=!0),o[l]=s)}),r){var l=Object.assign(new e,this);return l.layers=o,l}return this},e.prototype.normalize=function(){if(!(this.layers.length<1))for(var e=0;eo.LastKeystrokeAction)throw"Invalid "+t+" first byte: "+n}else if(n!==i)throw"Invalid "+t+" first byte: "+n;return n},e.prototype.renameKeymap=function(e,t){return this},e}()},"4uS6":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("4KnF")),o(n("I5Xr")),o(n("CfJK")),o(n("78zf")),o(n("HiVc")),o(n("Fq1u")),o(n("9PEG")),o(n("MkTX"));var i=n("wogf");t.KeyActionHelper=i.Helper},"63KW":function(e,t,n){"use strict";(function(e){var o=n("EKta"),i=n("ujcs"),r=n("sOR5");function l(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(l()=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|e}function h(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(o)return V(e).length;t=(""+t).toLowerCase(),o=!0}}function y(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function m(e,t,n,o,i){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,o)),a.isBuffer(t))return 0===t.length?-1:g(e,t,n,o,i);if("number"==typeof t)return t&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,o,i){var r,l=1,s=e.length,a=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;l=2,s/=2,a/=2,n/=2}function u(e,t){return 1===l?e[t]:e.readUInt16BE(t*l)}if(i){var c=-1;for(r=n;rs&&(n=s-a),r=n;r>=0;r--){for(var d=!0,p=0;pi&&(o=i):o=i;var r=t.length;if(r%2!=0)throw new TypeError("Invalid hex string");o>r/2&&(o=r/2);for(var l=0;l>8,i.push(n%256),i.push(o);return i}(t,e.length-n),e,n,o)}function T(e,t,n){return o.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var o=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(r=e[i+1]))&&(a=(31&u)<<6|63&r)>127&&(c=a);break;case 3:l=e[i+2],128==(192&(r=e[i+1]))&&128==(192&l)&&(a=(15&u)<<12|(63&r)<<6|63&l)>2047&&(a<55296||a>57343)&&(c=a);break;case 4:l=e[i+2],s=e[i+3],128==(192&(r=e[i+1]))&&128==(192&l)&&128==(192&s)&&(a=(15&u)<<18|(63&r)<<12|(63&l)<<6|63&s)>65535&&a<1114112&&(c=a)}null===c?(c=65533,d=1):c>65535&&(o.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),o.push(c),i+=d}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);for(var n="",o=0;othis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}).apply(this,arguments)},a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},a.prototype.compare=function(e,t,n,o,i){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var r=i-o,l=n-t,s=Math.min(r,l),u=this.slice(o,i),c=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var r=!1;;)switch(o){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),r=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function O(e,t,n){var o="";n=Math.min(e.length,n);for(var i=t;ii)&&(n=i);for(var r="",l=t;ln)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,o,i,r){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function R(e,t,n,o){t<0&&(t=65535+t+1);for(var i=0,r=Math.min(e.length-n,2);i>>8*(o?i:1-i)}function D(e,t,n,o){t<0&&(t=4294967295+t+1);for(var i=0,r=Math.min(e.length-n,4);i>>8*(o?i:3-i)&255}function N(e,t,n,o,i,r){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,o,r){return r||N(e,0,n,4),i.write(e,t,n,o,23,4),n+4}function L(e,t,n,o,r){return r||N(e,0,n,8),i.write(e,t,n,o,52,8),n+8}a.prototype.slice=function(e,t){var n,o=this.length;if(e=~~e,t=void 0===t?o:~~t,e<0?(e+=o)<0&&(e=0):e>o&&(e=o),t<0?(t+=o)<0&&(t=0):t>o&&(t=o),t0&&(i*=256);)o+=this[e+--t]*i;return o},a.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var o=this[e],i=1,r=0;++r=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var o=t,i=1,r=this[e+--o];o>0&&(i*=256);)r+=this[e+--o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,o){e=+e,t|=0,n|=0,o||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,r=0;for(this[t]=255&e;++r=0&&(r*=256);)this[t+i]=e/r&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t|=0,!o){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var r=0,l=1,s=0;for(this[t]=255&e;++r>0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t|=0,!o){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var r=n-1,l=1,s=0;for(this[t+r]=255&e;--r>=0&&(l*=256);)e<0&&0===s&&0!==this[t+r+1]&&(s=1),this[t+r]=(e/l>>0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(r<1e3||!a.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(l+1===o){(t-=3)>-1&&r.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&r.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function F(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,o){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(t,n("srjU"))},"6BaH":function(e,t,n){"use strict";var o=n("sIYO");t.multicast=function(e,t){return function(n){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new i(r,t));var l=Object.create(n,o.connectableObservableDescriptor);return l.source=n,l.subjectFactory=r,l}};var i=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,o=this.subjectFactory(),i=n(o).subscribe(e);return i.add(t.subscribe(o)),i},e}();t.MulticastOperator=i},"6Yye":function(e,t,n){"use strict";var o=n("rCTf"),i=n("+4ur");o.Observable.prototype.catch=i._catch,o.Observable.prototype._catch=i._catch},"78zf":function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,s=n("CmJd"),a=n("4KnF");!function(e){e[e.leftClick=0]="leftClick",e[e.middleClick=1]="middleClick",e[e.rightClick=2]="rightClick",e[e.moveUp=3]="moveUp",e[e.moveDown=4]="moveDown",e[e.moveLeft=5]="moveLeft",e[e.moveRight=6]="moveRight",e[e.scrollUp=7]="scrollUp",e[e.scrollDown=8]="scrollDown",e[e.scrollLeft=9]="scrollLeft",e[e.scrollRight=10]="scrollRight",e[e.accelerate=11]="accelerate",e[e.decelerate=12]="decelerate"}(l=t.MouseActionParam||(t.MouseActionParam={})),t.MouseAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.mouseAction=t.mouseAction,n):n}return o(t,e),t.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.mouseAction=l[e.mouseAction],this},t.prototype.fromBinary=function(e){return this.readAndAssertKeyActionId(e),this.mouseAction=e.readUInt8(),this},t.prototype.toJsonObject=function(){return{keyActionType:a.keyActionType.MouseAction,mouseAction:l[this.mouseAction]}},t.prototype.toBinary=function(e){e.writeUInt8(a.KeyActionId.MouseAction),e.writeUInt8(this.mouseAction)},t.prototype.toString=function(){return''},t.prototype.getName=function(){return"MouseAction"},i([s.assertEnum(l),r("design:type",Number)],t.prototype,"mouseAction",void 0),t}(a.KeyAction)},"7DMc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"AbstractControlDirective",function(){return u}),n.d(t,"AbstractFormGroupDirective",function(){return oe}),n.d(t,"CheckboxControlValueAccessor",function(){return _}),n.d(t,"ControlContainer",function(){return c}),n.d(t,"NG_VALUE_ACCESSOR",function(){return b}),n.d(t,"COMPOSITION_BUFFER_MODE",function(){return A}),n.d(t,"DefaultValueAccessor",function(){return T}),n.d(t,"NgControl",function(){return E}),n.d(t,"NgControlStatus",function(){return le}),n.d(t,"NgControlStatusGroup",function(){return se}),n.d(t,"NgForm",function(){return ge}),n.d(t,"NgModel",function(){return xe}),n.d(t,"NgModelGroup",function(){return Ae}),n.d(t,"RadioControlValueAccessor",function(){return R}),n.d(t,"FormControlDirective",function(){return Me}),n.d(t,"FormControlName",function(){return Ue}),n.d(t,"FormGroupDirective",function(){return Pe}),n.d(t,"FormArrayName",function(){return Ne}),n.d(t,"FormGroupName",function(){return Re}),n.d(t,"NgSelectOption",function(){return V}),n.d(t,"SelectControlValueAccessor",function(){return U}),n.d(t,"SelectMultipleControlValueAccessor",function(){return B}),n.d(t,"CheckboxRequiredValidator",function(){return Be}),n.d(t,"EmailValidator",function(){return We}),n.d(t,"MaxLengthValidator",function(){return Ge}),n.d(t,"MinLengthValidator",function(){return ze}),n.d(t,"PatternValidator",function(){return Qe}),n.d(t,"RequiredValidator",function(){return Ke}),n.d(t,"FormBuilder",function(){return Je}),n.d(t,"AbstractControl",function(){return de}),n.d(t,"FormArray",function(){return he}),n.d(t,"FormControl",function(){return pe}),n.d(t,"FormGroup",function(){return fe}),n.d(t,"NG_ASYNC_VALIDATORS",function(){return f}),n.d(t,"NG_VALIDATORS",function(){return p}),n.d(t,"Validators",function(){return y}),n.d(t,"VERSION",function(){return Ze}),n.d(t,"FormsModule",function(){return it}),n.d(t,"ReactiveFormsModule",function(){return rt}),n.d(t,"\u0275ba",function(){return ot}),n.d(t,"\u0275z",function(){return nt}),n.d(t,"\u0275x",function(){return et}),n.d(t,"\u0275y",function(){return tt}),n.d(t,"\u0275a",function(){return k}),n.d(t,"\u0275b",function(){return w}),n.d(t,"\u0275c",function(){return ie}),n.d(t,"\u0275d",function(){return re}),n.d(t,"\u0275e",function(){return ye}),n.d(t,"\u0275f",function(){return Te}),n.d(t,"\u0275g",function(){return we}),n.d(t,"\u0275bf",function(){return Xe}),n.d(t,"\u0275bb",function(){return O}),n.d(t,"\u0275bc",function(){return S}),n.d(t,"\u0275h",function(){return P}),n.d(t,"\u0275i",function(){return I}),n.d(t,"\u0275bd",function(){return D}),n.d(t,"\u0275be",function(){return N}),n.d(t,"\u0275j",function(){return Se}),n.d(t,"\u0275k",function(){return Le}),n.d(t,"\u0275l",function(){return Ee}),n.d(t,"\u0275n",function(){return De}),n.d(t,"\u0275m",function(){return Ie}),n.d(t,"\u0275o",function(){return j}),n.d(t,"\u0275q",function(){return H}),n.d(t,"\u0275p",function(){return F}),n.d(t,"\u0275s",function(){return Fe}),n.d(t,"\u0275t",function(){return He}),n.d(t,"\u0275v",function(){return $e}),n.d(t,"\u0275u",function(){return qe}),n.d(t,"\u0275w",function(){return Ye}),n.d(t,"\u0275r",function(){return Ve});var o=n("TToO"),i=n("WT6e"),r=n("7rB9"),l=n("ioK+"),s=n("xAJs"),a=n("OE0E"),u=function(){function e(){}return Object.defineProperty(e.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.reset=function(e){void 0===e&&(e=void 0),this.control&&this.control.reset(e)},e.prototype.hasError=function(e,t){return!!this.control&&this.control.hasError(e,t)},e.prototype.getError=function(e,t){return this.control?this.control.getError(e,t):null},e}(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t}(u);function d(e){return null==e||0===e.length}var p=new i.InjectionToken("NgValidators"),f=new i.InjectionToken("NgAsyncValidators"),h=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,y=function(){function e(){}return e.min=function(e){return function(t){if(d(t.value)||d(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&ne?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return d(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return h.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(d(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(o="","^"!==t.charAt(0)&&(o+="^"),o+=t,"$"!==t.charAt(t.length-1)&&(o+="$"),n=new RegExp(o)):(o=t.toString(),n=t),function(e){if(d(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:o,actualValue:t}}}):e.nullValidator;var n,o},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(m);return 0==t.length?null:function(e){return v(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(m);return 0==t.length?null:function(e){var n=function(e,n){return t.map(function(t){return t(e)})}(e).map(g);return s.map.call(Object(r.forkJoin)(n),v)}},e}();function m(e){return null!=e}function g(e){var t=Object(i["\u0275isPromise"])(e)?Object(l.fromPromise)(e):e;if(!Object(i["\u0275isObservable"])(t))throw new Error("Expected validator to return Promise or Observable.");return t}function v(e){var t=e.reduce(function(e,t){return null!=t?Object(o.__assign)({},e,t):e},{});return 0===Object.keys(t).length?null:t}var b=new i.InjectionToken("NgValueAccessor"),k={provide:b,useExisting:Object(i.forwardRef)(function(){return _}),multi:!0},_=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),w={provide:b,useExisting:Object(i.forwardRef)(function(){return T}),multi:!0},A=new i.InjectionToken("CompositionEventMode"),T=function(){function e(e,t,n){var o;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(o=Object(a.s)()?Object(a.s)().getUserAgent():"",!/android (\d+)/.test(o.toLowerCase())))}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e}();function C(e){return e.validate?function(t){return e.validate(t)}:e}function x(e){return e.validate?function(t){return e.validate(t)}:e}var O={provide:b,useExisting:Object(i.forwardRef)(function(){return S}),multi:!0},S=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();function M(){throw new Error("unimplemented")}var E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return M()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return M()},enumerable:!0,configurable:!0}),t}(u),P={provide:b,useExisting:Object(i.forwardRef)(function(){return R}),multi:!0},I=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),R=function(){function e(e,t,n,o){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=o,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(E),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},e}(),D={provide:b,useExisting:Object(i.forwardRef)(function(){return N}),multi:!0},N=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),j={provide:b,useExisting:Object(i.forwardRef)(function(){return U}),multi:!0};function L(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var U=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=i["\u0275looseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=L(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var o=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,r=0;r1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function Q(e){return null!=e?y.compose(e.map(C)):null}function J(e){return null!=e?y.composeAsync(e.map(x)):null}function Z(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(i["\u0275looseIdentical"])(t,n.currentValue)}var X=[_,N,S,U,B,R];function ee(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function te(e,t){if(!t)return null;var n=void 0,o=void 0,i=void 0;return t.forEach(function(t){var r;t.constructor===T?n=t:(r=t,X.some(function(e){return r.constructor===e})?(o&&Y(e,"More than one built-in value accessor matches form control with"),o=t):(i&&Y(e,"More than one custom value accessor matches form control with"),i=t))}),i||o||n||(Y(e,"No valid value accessor for form control with"),null)}function ne(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(c),ie=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),re={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},le=function(e){function t(t){return e.call(this,t)||this}return Object(o.__extends)(t,e),t}(ie),se=function(e){function t(t){return e.call(this,t)||this}return Object(o.__extends)(t,e),t}(ie);function ae(e){var t=ce(e)?e.validators:e;return Array.isArray(t)?Q(t):t||null}function ue(e,t){var n=ce(t)?t.asyncValidators:e;return Array.isArray(n)?J(n):n||null}function ce(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var de=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=ae(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=ue(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object(o.__assign)({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={}),this.status="VALID",this._forEachChild(function(t){t.enable(Object(o.__assign)({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=g(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof fe?e.controls[t]||null:e instanceof he&&e.at(t)||null},e))}(this,e)},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){ce(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e}(),pe=function(e){function t(t,n,o){void 0===t&&(t=null);var i=e.call(this,ae(n),ue(o,n))||this;return i._onChange=[],i._applyFormState(t),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(o.__extends)(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n.value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(de),fe=function(e){function t(t,n,o){var i=e.call(this,ae(n),ue(o,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(o.__extends)(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(o){n._throwIfControlMissing(o),n.controls[o].setValue(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(o){n.controls[o]&&n.controls[o].patchValue(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,o){n.reset(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof pe?t.value:t.getRawValue(),e})},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(o,i){n=n||t.contains(i)&&e(o)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,o){return(n.enabled||e.disabled)&&(t[o]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,o){n=t(n,e,o)}),n},t.prototype._allControlsDisabled=function(){for(var e=0,t=Object.keys(this.controls);e0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(de),he=function(e){function t(t,n,o){var i=e.call(this,ae(n),ue(o,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(o.__extends)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,o){n._throwIfControlMissing(o),n.at(o).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,o){n.at(o)&&n.at(o).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,o){n.reset(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof pe?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){for(var e=0,t=this.controls;e0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(de),ye={provide:c,useExisting:Object(i.forwardRef)(function(){return ge})},me=Promise.resolve(null),ge=function(e){function t(t,n){var o=e.call(this)||this;return o.submitted=!1,o._directives=[],o.ngSubmit=new i.EventEmitter,o.form=new fe({},Q(t),J(n)),o}return Object(o.__extends)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),q(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),ne(t._directives,e)})},t.prototype.addFormGroup=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path),o=new fe({});$(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;me.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,ee(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(c),ve='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',be='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',ke='\n
\n
\n \n
\n
',_e=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+ve+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+be+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+ke)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+be+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+ke)},e}(),we={provide:c,useExisting:Object(i.forwardRef)(function(){return Ae})},Ae=function(e){function t(t,n,o){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=o,i}return Object(o.__extends)(t,e),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof ge||_e.modelGroupParentException()},t}(oe),Te={provide:E,useExisting:Object(i.forwardRef)(function(){return xe})},Ce=Promise.resolve(null),xe=function(e){function t(t,n,o,r){var l=e.call(this)||this;return l.control=new pe,l._registered=!1,l.update=new i.EventEmitter,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=o||[],l.valueAccessor=te(l,r),l}return Object(o.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Z(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?W(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){q(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof Ae)&&this._parent instanceof oe?_e.formGroupNameException():this._parent instanceof Ae||this._parent instanceof ge||_e.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||_e.missingNameException()},t.prototype._updateValue=function(e){var t=this;Ce.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,o=""===n||n&&"false"!==n;Ce.then(function(){o&&!t.control.disabled?t.control.disable():!o&&t.control.disabled&&t.control.enable()})},t}(E),Oe=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+ve)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+be+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+ke)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+ve)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+be)},e.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},e.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e}(),Se={provide:E,useExisting:Object(i.forwardRef)(function(){return Me})},Me=function(e){function t(t,n,o){var r=e.call(this)||this;return r.update=new i.EventEmitter,r._rawValidators=t||[],r._rawAsyncValidators=n||[],r.valueAccessor=te(r,o),r}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Oe.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(q(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Z(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t}(E),Ee={provide:c,useExisting:Object(i.forwardRef)(function(){return Pe})},Pe=function(e){function t(t,n){var o=e.call(this)||this;return o._validators=t,o._asyncValidators=n,o.submitted=!1,o.directives=[],o.form=null,o.ngSubmit=new i.EventEmitter,o}return Object(o.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return q(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){ne(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);$(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);$(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,ee(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){t.valueAccessor.registerOnChange(function(){return G(t)}),t.valueAccessor.registerOnTouched(function(){return G(t)}),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(t.control,t),n&&q(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=Q(this._validators);this.form.validator=y.compose([this.form.validator,e]);var t=J(this._asyncValidators);this.form.asyncValidator=y.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||Oe.missingFormException()},t}(c),Ie={provide:c,useExisting:Object(i.forwardRef)(function(){return Re})},Re=function(e){function t(t,n,o){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=o,i}return Object(o.__extends)(t,e),t.prototype._checkParentType=function(){je(this._parent)&&Oe.groupParentException()},t}(oe),De={provide:c,useExisting:Object(i.forwardRef)(function(){return Ne})},Ne=function(e){function t(t,n,o){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=o,i}return Object(o.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){je(this._parent)&&Oe.arrayParentException()},t}(c);function je(e){return!(e instanceof Re||e instanceof Pe||e instanceof Ne)}var Le={provide:E,useExisting:Object(i.forwardRef)(function(){return Ue})},Ue=function(e){function t(t,n,o,r){var l=e.call(this)||this;return l._added=!1,l.update=new i.EventEmitter,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=o||[],l.valueAccessor=te(l,r),l}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Oe.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),Z(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof Re)&&this._parent instanceof oe?Oe.ngModelGroupException():this._parent instanceof Re||this._parent instanceof Pe||this._parent instanceof Ne||Oe.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t}(E),Ve={provide:p,useExisting:Object(i.forwardRef)(function(){return Ke}),multi:!0},Fe={provide:p,useExisting:Object(i.forwardRef)(function(){return Be}),multi:!0},Ke=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?y.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.validate=function(e){return this.required?y.requiredTrue(e):null},t}(Ke),He={provide:p,useExisting:Object(i.forwardRef)(function(){return We}),multi:!0},We=function(){function e(){}return Object.defineProperty(e.prototype,"email",{set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this._enabled?y.email(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),qe={provide:p,useExisting:Object(i.forwardRef)(function(){return ze}),multi:!0},ze=function(){function e(){}return e.prototype.ngOnChanges=function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null==this.minlength?null:this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.minLength(parseInt(this.minlength,10))},e}(),$e={provide:p,useExisting:Object(i.forwardRef)(function(){return Ge}),multi:!0},Ge=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.maxLength(parseInt(this.maxlength,10))},e}(),Ye={provide:p,useExisting:Object(i.forwardRef)(function(){return Qe}),multi:!0},Qe=function(){function e(){}return e.prototype.ngOnChanges=function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.pattern(this.pattern)},e}(),Je=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e);return new fe(n,null!=t?t.validator:null,null!=t?t.asyncValidator:null)},e.prototype.control=function(e,t,n){return new pe(e,t,n)},e.prototype.array=function(e,t,n){var o=this,i=e.map(function(e){return o._createControl(e)});return new he(i,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach(function(o){n[o]=t._createControl(e[o])}),n},e.prototype._createControl=function(e){return e instanceof pe||e instanceof fe||e instanceof he?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)},e}(),Ze=new i.Version("5.2.9"),Xe=function(){},et=[Xe,V,H,T,S,N,_,U,B,R,le,se,Ke,ze,Ge,Qe,Be,We],tt=[xe,Ae,ge],nt=[Me,Pe,Ue,Re,Ne],ot=function(){},it=function(){},rt=function(){}},"7MSh":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS"),r=n("+3eL"),l=n("WhVc");t.distinctUntilChanged=function(e,t){return function(n){return n.lift(new s(e,t))}};var s=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.compare,this.keySelector))},e}(),a=function(e){function t(t,n,o){e.call(this,t),this.keySelector=o,this.hasKey=!1,"function"==typeof n&&(this.compare=n)}return o(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t=e;if(this.keySelector&&(t=r.tryCatch(this.keySelector)(e))===l.errorObject)return this.destination.error(l.errorObject.e);var n=!1;if(this.hasKey){if((n=r.tryCatch(this.compare)(this.key,t))===l.errorObject)return this.destination.error(l.errorObject.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=t,this.destination.next(e))},t}(i.Subscriber)},"7OPe":function(e,t,n){"use strict";n.d(t,"c",function(){return r}),t.d=function(e,t){switch(void 0===e&&(e=r),t.type){case o.a.TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP:return Object.assign({},e,{checkForUpdateOnStartUp:t.payload});case o.a.TOGGLE_PRE_RELEASE_FLAG:return Object.assign({},e,{usePreReleaseUpdate:t.payload});case o.a.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS:return Object.assign({},t.payload);case o.a.CHECK_FOR_UPDATE_NOW:return Object.assign({},e,{checkingForUpdate:!0});case i.a.UPDATE_ERROR:case o.a.CHECK_FOR_UPDATE_SUCCESS:case o.a.CHECK_FOR_UPDATE_FAILED:return Object.assign({},e,{checkingForUpdate:!1});default:return e}},n.d(t,"b",function(){return l}),n.d(t,"a",function(){return s});var o=n("w+X5"),i=n("va3Z"),r={checkForUpdateOnStartUp:!1,usePreReleaseUpdate:!1,checkingForUpdate:!1},l=function(e){return{checkForUpdateOnStartUp:e.checkForUpdateOnStartUp,usePreReleaseUpdate:e.usePreReleaseUpdate}},s=function(e){return e.checkingForUpdate}},"7RCQ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("Bxcs");t.getHardwareConfigFromDeviceResponse=function(e){var t=JSON.parse(e),n=new o.HardwareConfiguration;if(n.fromBinary(o.UhkBuffer.fromArray(t)),"FTY"===n.signature)throw Error("The device is in factory reset mode. Power-cycle the device to use it with Agent!");if("UHK"!==n.signature)throw Error("Please power cycle your keyboard (Invalid hardware configuration: Invalid signature)");return n},t.getUserConfigFromDeviceResponse=function(e){var t=JSON.parse(e),n=new o.UserConfiguration;if(n.fromBinary(o.UhkBuffer.fromArray(t)),n.userConfigMajorVersion>0)return n;throw Error("Invalid user configuration")},t.mapObjectToUserConfigBinaryBuffer=function(e){var t=new o.UserConfiguration;t.fromJsonObject(e);var n=new o.UhkBuffer;return t.toBinary(n),n.getBufferContent()}},"7nvF":function(e,t,n){"use strict";var o=n("p/p0");t.last=function(e,t,n){return o.last(e,t,n)(this)}},"7rB9":function(e,t,n){"use strict";var o=n("t2qv");t.forkJoin=o.ForkJoinObservable.create},"7s/Z":function(e,t){e.exports=function e(t){Object.freeze(t);var n="function"==typeof t,o=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach(function(i){!o.call(t,i)||n&&("caller"===i||"callee"===i||"arguments"===i)||null===t[i]||"object"!=typeof t[i]&&"function"!=typeof t[i]||Object.isFrozen(t[i])||e(t[i])}),t}},"83T1":function(e,t,n){"use strict";var o=n("fI0c");t.every=function(e,t){return o.every(e,t)(this)}},"8AXl":function(e,t,n){"use strict";n.d(t,"b",function(){return _}),n.d(t,"a",function(){return x}),n.d(t,"c",function(){return P}),n.d(t,"d",function(){return j}),n.d(t,"e",function(){return D}),n.d(t,"f",function(){return N}),n.d(t,"i",function(){return R}),n.d(t,"k",function(){return I}),n.d(t,"j",function(){return E}),n.d(t,"h",function(){return M}),n.d(t,"g",function(){return S});var o,i=n("dyjq"),r=n("1KT0"),l=n("C4lF"),s=(n.n(l),n("Y6hq")),a=(n.n(s),n("xAJs")),u=n("WT6e"),c=n("rCTf"),d=n("ack3"),p=n("cJSH"),f=(n.n(p),n("XO5T")),h=n("2AEF"),y=(n.n(h),n("Oa+j")),m=(n.n(y),n("EEr4")),g=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v="@ngrx/effects",b=Reflect;function k(e){return e.constructor.propDecorators?(t=e.constructor.propDecorators,Object.keys(t).reduce(function(e,n){return e.concat((o=n,t[n].filter(function(e){return e.type===_}).map(function(e){var t=!0;return e.args&&e.args.length&&(t=!!e.args[0].dispatch),{propertyName:o,dispatch:t}})));var o},[])):b.hasOwnMetadata(v,e)?b.getOwnMetadata(v,e):[];var t}function _(e){var t=(void 0===e?{dispatch:!0}:e).dispatch;return function(e,n){var o,i;o=e,i=k(e).concat([{propertyName:n,dispatch:t}]),b.defineMetadata(v,i,o)}}function w(e){return Object.getPrototypeOf(e)}var A=Object(i.x)(k,w),T="ngrxOnRunEffects";function C(e){var t=function(e){var t=w(e).constructor.name,n=A(e).map(function(n){var o=n.propertyName,i=n.dispatch,r="function"==typeof e[o]?e[o]():e[o];if(!1===i)return l.ignoreElements.call(r);var u=s.materialize.call(r);return a.map.call(u,function(n){return{effect:e[o],notification:n,propertyName:o,sourceName:t,sourceInstance:e}})});return r.merge.apply(void 0,n)}(e);return function(e){var t=w(e);return T in t&&"function"==typeof t[T]}(e)?e.ngrxOnRunEffects(t):t}var x=function(e){function t(t){var n=e.call(this)||this;return t&&(n.source=t),n}return g(t,e),t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.ofType=function(){for(var e=[],t=0;t'},t.prototype.renameKeymap=function(e,n){return this.keymapAbbreviation!==e?this:new t(n)},t.prototype.getName=function(){return"SwitchKeymapAction"},t}(a.KeyAction);t.SwitchKeymapAction=u,t.UnresolvedSwitchKeymapAction=function(e){function t(t){var n=e.call(this)||this;return n.keymapIndex=t,n}return o(t,e),t.prototype.fromBinary=function(e){return e.readUInt8(),this.keymapIndex=e.readUInt8(),this},t.prototype.toBinary=function(e){e.writeUInt8(a.KeyActionId.SwitchKeymapAction),e.writeUInt8(this.keymapIndex)},t.prototype.toJsonObject=function(){throw new Error("UnresolvedSwitchKeymapAction cannot be serialized directly. Convert it to SwitchKeymapAction first.")},t.prototype.resolve=function(e){return new u(e[this.keymapIndex])},t.prototype.getName=function(){return"UnresolvedSwitchKeymapAction"},i([l.assertUInt8,r("design:type",Number)],t.prototype,"keymapIndex",void 0),t}(a.KeyAction)},"9dR0":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.refCount=function(){return function(e){return e.lift(new r(e))}};var r=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var o=new l(e,n),i=t.subscribe(o);return o.closed||(o.connection=n.connect()),i},e}(),l=function(e){function t(t,n){e.call(this,t),this.connectable=n}return o(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,o=e._connection;this.connection=null,!o||n&&o!==n||o.unsubscribe()}}else this.connection=null},t}(i.Subscriber)},"9dXm":function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l=n("CmJd"),s=n("ao60"),a=n("4uS6");t.KeyMacroAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.action=t.action,n.type=t.type,n._scancode=t._scancode,n.modifierMask=t.modifierMask,n):n}return o(t,e),Object.defineProperty(t.prototype,"scancode",{get:function(){return this._scancode},set:function(e){this._scancode=e,this.type!==a.KeystrokeType.shortMedia&&this.type!==a.KeystrokeType.longMedia||(this.type=e<256?a.KeystrokeType.shortMedia:a.KeystrokeType.longMedia)},enumerable:!0,configurable:!0}),t.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.action=s.MacroKeySubAction[e.action],this.type="media"===e.type?e.scancode<256?a.KeystrokeType.shortMedia:a.KeystrokeType.longMedia:a.KeystrokeType[e.type],this._scancode=e.scancode,this.modifierMask=e.modifierMask,this},t.prototype.fromBinary=function(e){var t=this.readAndAssertMacroActionId(e)-s.MacroActionId.KeyMacroAction;return this.action=3&t,this.type=3&(t>>=2),2&(t>>=2)&&(this._scancode=this.type===a.KeystrokeType.longMedia?e.readUInt16():e.readUInt8()),1&t&&(this.modifierMask=e.readUInt8()),this},t.prototype.toJsonObject=function(){var e={macroActionType:s.macroActionType.KeyMacroAction,action:s.MacroKeySubAction[this.action]};return this.hasScancode()&&(e.type=this.type===a.KeystrokeType.shortMedia||this.type===a.KeystrokeType.longMedia?"media":a.KeystrokeType[this.type],e.scancode=this._scancode),this.hasModifiers()&&(e.modifierMask=this.modifierMask),e},t.prototype.toBinary=function(e){var t=0;t|=this.action,t|=this.type<<2,t|=(this.hasScancode()?2:0)+(this.hasModifiers()?1:0)<<4,e.writeUInt8(s.MacroActionId.KeyMacroAction+t),this.hasScancode()&&(this.type===a.KeystrokeType.longMedia?e.writeUInt16(this.scancode):e.writeUInt8(this.scancode)),this.hasModifiers()&&e.writeUInt8(this.modifierMask)},t.prototype.toString=function(){return''},t.prototype.isModifierActive=function(e){return(this.modifierMask&e)>0},t.prototype.hasScancode=function(){return!!this._scancode},t.prototype.hasModifiers=function(){return!!this.modifierMask},t.prototype.isPressAction=function(){return this.action===s.MacroKeySubAction.press},t.prototype.isTapAction=function(){return this.action===s.MacroKeySubAction.tap},t.prototype.isReleaseAction=function(){return this.action===s.MacroKeySubAction.release},t.prototype.getName=function(){return"KeyMacroAction"},i([l.assertEnum(s.MacroKeySubAction),r("design:type",Number)],t.prototype,"action",void 0),i([l.assertEnum(a.KeystrokeType),r("design:type",Number)],t.prototype,"type",void 0),i([l.assertUInt8,r("design:type",Number)],t.prototype,"modifierMask",void 0),i([l.assertUInt16,r("design:type",Number)],t.prototype,"_scancode",void 0),t}(s.MacroAction)},"9eyw":function(e,t,n){"use strict";var o=n("YOd+");function i(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:o.noop}t.pipe=function(){for(var e=[],t=0;t0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(r.OuterSubscriber);t.MergeMapSubscriber=s},B00U:function(e,t,n){"use strict";var o=n("Xajo"),i=n("ICpg"),r=n("SKH6"),l=n("+3eL"),s=n("WhVc"),a=n("GIjk");function u(e){return e.reduce(function(e,t){return e.concat(t instanceof a.UnsubscriptionError?t.errors:t)},[])}t.Subscription=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,c=this._parents,d=this._unsubscribe,p=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,h=c?c.length:0;n;)n.remove(this),n=++f1?new o.ArrayObservable(e,n):new r.EmptyObservable(n),t)}}},"C0+T":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("9Avi");t.QueueScheduler=function(e){function t(){e.apply(this,arguments)}return o(t,e),t}(i.AsyncScheduler)},C4lF:function(e,t,n){"use strict";var o=n("ygD2");t.ignoreElements=function(){return o.ignoreElements()(this)}},CGGv:function(e,t,n){"use strict";var o=n("cwzr"),i=n("9Avi");t.async=new i.AsyncScheduler(o.AsyncAction)},CURp:function(e,t,n){"use strict";var o=n("VOfZ"),i=n("1r8+"),r=n("aQl7"),l=n("ICpg"),s=n("rCTf"),a=n("cdmN"),u=n("QqRK"),c=n("mbVC");t.subscribeToResult=function(e,t,n,d){var p=new u.InnerSubscriber(e,n,d);if(p.closed)return null;if(t instanceof s.Observable)return t._isScalar?(p.next(t.value),p.complete(),null):(p.syncErrorThrowable=!0,t.subscribe(p));if(i.isArrayLike(t)){for(var f=0,h=t.length;fo)throw e.constructor.name+"."+t+": Integer "+r+" is outside the valid ["+n+", "+o+"] interval";this[i]=r}},enumerable:!0,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),t.assertUInt8=function(e,t){return i(e,t,0,255)},t.assertInt8=function(e,t){return i(e,t,-128,127)},t.assertUInt16=o,t.assertInt16=function(e,t){return i(e,t,-32768,32767)},t.assertUInt32=function(e,t){return i(e,t,0,4294967295)},t.assertInt32=function(e,t){return i(e,t,-2147483648,2147483647)},t.assertCompactLength=function(e,t){return o(e,t)},t.assertEnum=function(e){return function(t,n){var o="_"+n;Object.defineProperty(t,n,{get:function(){return this[o]},set:function(i){if(this[o]!==i){if(void 0===e[i])throw t.constructor.name+"."+n+": "+i+" is not enum";this[o]=i}},enumerable:!0,configurable:!0})}}},D2Nv:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.tap=function(e,t,n){return function(o){return o.lift(new r(e,t,n))}};var r=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,o,r){e.call(this,t);var l=new i.Subscriber(n,o,r);l.syncErrorThrowable=!0,this.add(l),this.safeSubscriber=l}return o(t,e),t.prototype._next=function(e){var t=this.safeSubscriber;t.next(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.next(e)},t.prototype._error=function(e){var t=this.safeSubscriber;t.error(e),this.destination.error(t.syncErrorThrown?t.syncErrorValue:e)},t.prototype._complete=function(){var e=this.safeSubscriber;e.complete(),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.complete()},t}(i.Subscriber)},DzMp:function(e,t,n){"use strict";var o=n("+EXD");t.defer=o.DeferObservable.create},EEr4:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("rCTf"),r=n("mmVS"),l=n("B00U"),s=n("IZVw"),a=n("ZJf8"),u=n("r8ZY"),c=function(e){function t(t){e.call(this,t),this.destination=t}return o(t,e),t}(r.Subscriber);t.SubjectSubscriber=c;var d=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return o(t,e),t.prototype[u.rxSubscriber]=function(){return new c(this)},t.prototype.lift=function(e){var t=new p(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,n=t.length,o=t.slice(),i=0;i0?a-4:a;var c=0;for(t=0;t>16&255,s[c++]=o>>8&255,s[c++]=255&o;return 2===l?(o=i[e.charCodeAt(t)]<<2|i[e.charCodeAt(t+1)]>>4,s[c++]=255&o):1===l&&(o=i[e.charCodeAt(t)]<<10|i[e.charCodeAt(t+1)]<<4|i[e.charCodeAt(t+2)]>>2,s[c++]=o>>8&255,s[c++]=255&o),s},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,r="",l=[],s=0,a=n-i;sa?a:s+16383));return 1===i?(r+=o[(t=e[n-1])>>2],r+=o[t<<4&63],r+="=="):2===i&&(r+=o[(t=(e[n-2]<<8)+e[n-1])>>10],r+=o[t>>4&63],r+=o[t<<2&63],r+="="),l.push(r),l.join("")};for(var o=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=l.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function c(e,t,n){for(var i,r=[],l=t;l>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]);return r.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},EnA3:function(e,t,n){"use strict";var o=n("rCTf"),i=n("Rewd");o.Observable.prototype.do=i._do,o.Observable.prototype._do=i._do},EoAl:function(e,t,n){"use strict";var o=n("rCTf"),i=n("KuCq");o.Observable.prototype.takeWhile=i.takeWhile},F7Al:function(e,t,n){"use strict";var o=n("TToO").__extends,i=function(e){function t(){var t=e.call(this,"no elements in sequence");this.name=t.name="EmptyError",this.stack=t.stack,this.message=t.message}return o(t,e),t}(Error);t.EmptyError=i},FA5e:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("rCTf"),r=n("RRVv"),l=n("jBEF");t.ArrayLikeObservable=function(e){function t(t,n){e.call(this),this.arrayLike=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return o(t,e),t.create=function(e,n){var o=e.length;return 0===o?new l.EmptyObservable:1===o?new r.ScalarObservable(e[0],n):new t(e,n)},t.dispatch=function(e){var t=e.arrayLike,n=e.index,o=e.subscriber;o.closed||(n>=e.length?o.complete():(o.next(t[n]),e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.arrayLike,o=this.scheduler,i=n.length;if(o)return o.schedule(t.dispatch,0,{arrayLike:n,index:0,length:i,subscriber:e});for(var r=0;r'},t.prototype.getName=function(){return"PlayMacroAction"},i([l.assertUInt8,r("design:type",Number)],t.prototype,"macroId",void 0),t}(s.KeyAction)},Ftqy:function(e,t){e.exports={userConfigMajorVersion:4,userConfigMinorVersion:0,userConfigPatchVersion:0,deviceName:"My UHK",doubleTapSwitchLayerTimeout:250,iconsAndLayerTextsBrightness:255,alphanumericSegmentsBrightness:255,keyBacklightBrightness:255,mouseMoveInitialSpeed:4,mouseMoveAcceleration:68,mouseMoveDeceleratedSpeed:8,mouseMoveBaseSpeed:32,mouseMoveAcceleratedSpeed:64,mouseScrollInitialSpeed:20,mouseScrollAcceleration:20,mouseScrollDeceleratedSpeed:20,mouseScrollBaseSpeed:20,mouseScrollAcceleratedSpeed:50,moduleConfigurations:[],keymaps:[{isDefault:!1,abbreviation:"COM",name:"Colemak for Mac",description:"Colemak is based on QWERTY, but it places the most frequent letters under the strongest fingers. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:23},null,{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"COL",name:"Colemak for PC",description:"Colemak is based on QWERTY, but it places the most frequent letters under the strongest fingers. This is the PC version.\n",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:23},null,{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"DVM",name:"Dvorak for Mac",description:"The Dvorak keyboard layout was designed with the goal of maximizing typing efficiency. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:24},null,{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"DVO",name:"Dvorak for PC",description:"The Dvorak keyboard layout was designed with the goal of maximizing typing efficiency. This is the PC version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:24},null,{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"QWM",name:"QWERTY for Mac",description:"QWERTY is the mother of all layouts. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!0,abbreviation:"QWR",name:"QWERTY for PC",description:"QWERTY is the mother of all layouts. This is the PC version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"TES",name:"Test",description:"This keymap is only used for factory testing purposes.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:87},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:94},{keyActionType:"keystroke",type:"basic",scancode:85},{keyActionType:"keystroke",type:"basic",scancode:95},{keyActionType:"keystroke",type:"basic",scancode:96},{keyActionType:"keystroke",type:"basic",scancode:97},{keyActionType:"keystroke",type:"basic",scancode:98}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:86},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:89},{keyActionType:"keystroke",type:"basic",scancode:90},{keyActionType:"keystroke",type:"basic",scancode:91},{keyActionType:"keystroke",type:"basic",scancode:92},{keyActionType:"keystroke",type:"basic",scancode:84},{keyActionType:"keystroke",type:"basic",scancode:93},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]}],macros:[{isLooped:!0,isPrivate:!0,name:"Go to UHK site in browser",macroActions:[{macroActionType:"key",action:"tap",type:"basic",scancode:15,modifierMask:1},{macroActionType:"text",text:"https://ultimatehackingkeyboard.com"},{macroActionType:"key",action:"tap",type:"basic",scancode:40}]},{isLooped:!1,isPrivate:!0,name:"God mode in Doom",macroActions:[{macroActionType:"text",text:"iddqd"}]},{isLooped:!1,isPrivate:!0,name:"Type Silent Bob's address",macroActions:[{macroActionType:"text",text:"Silent Bob\n711-2880 Nulla St.\nMankato Mississippi 96522\n(257) 563-7401"}]}]}},GIjk:function(e,t,n){"use strict";var o=n("TToO").__extends,i=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return o(t,e),t}(Error);t.UnsubscriptionError=i},H5FS:function(e,t,n){"use strict";(function(e,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UhkBuffer=function(){function t(){this._enableDump=!1,this.offset=0,this.bytesToBacktrack=0,this.buffer=new e(t.eepromSize),this.buffer.fill(0)}return t.simpleElementWriter=function(e,t){t.toBinary(e)},t.fromArray=function(e){if(e.length<1)return null;for(var n=new t,o=0,i=e;o=t.longCompactLengthPrefix?(this.writeUInt8(t.longCompactLengthPrefix),this.writeUInt16(e)):this.writeUInt8(e)},t.prototype.readString=function(){var e=this.readCompactLength(),n=this.buffer.toString(t.stringEncoding,this.offset,this.offset+e);return this.dump(t.stringEncoding+"("+n+")"),this.bytesToBacktrack=e,this.offset+=e,n},t.prototype.writeString=function(n){var o=e.byteLength(n,t.stringEncoding);if(o>t.maxCompactLength)throw"Cannot serialize string: "+o+" bytes is larger\n than the maximum allowed length of "+t.maxCompactLength+" bytes";this.writeCompactLength(o),this.dump(t.stringEncoding+"("+n+")"),this.buffer.write(n,this.offset,o,t.stringEncoding),this.offset+=o},t.prototype.readBoolean=function(){return 0!==this.readUInt8()},t.prototype.writeBoolean=function(e){this.writeUInt8(e?1:0)},t.prototype.readArray=function(e){for(var t=[],n=this.readCompactLength(),o=0;o"},t.prototype.getName=function(){return"NoneAction"},t}(i.KeyAction)},I5Xr:function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,s=n("CmJd"),a=n("ZTdU"),u=n("4KnF"),c=n("CfJK");!function(e){e[e.scancode=1]="scancode",e[e.modifierMask=2]="modifierMask",e[e.secondaryRoleAction=4]="secondaryRoleAction"}(l=t.KeystrokeActionFlag||(t.KeystrokeActionFlag={}));var d=["LCtrl","LShift","LAlt","LSuper","RCtrl","RShift","RAlt","RSuper"];t.KeystrokeAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.type=t.type,n._scancode=t._scancode,n.modifierMask=t.modifierMask,n.secondaryRoleAction=t.secondaryRoleAction,n):n}return o(t,e),Object.defineProperty(t.prototype,"scancode",{get:function(){return this._scancode},set:function(e){this._scancode=e,this.type!==c.KeystrokeType.shortMedia&&this.type!==c.KeystrokeType.longMedia||(this.type=e<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(e){e!==c.KeystrokeType.shortMedia&&e!==c.KeystrokeType.longMedia||(e=this.scancode<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia),this._type=e},enumerable:!0,configurable:!0}),t.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.type="media"===e.type?e.scancode<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia:c.KeystrokeType[e.type],this._scancode=e.scancode,this.modifierMask=e.modifierMask,this.secondaryRoleAction=a.SecondaryRoleAction[e.secondaryRoleAction],this},t.prototype.fromBinary=function(e){var t=this.readAndAssertKeyActionId(e)-u.KeyActionId.NoneAction;return this.type=t>>3&3,t&l.scancode&&(this._scancode=this.type===c.KeystrokeType.longMedia?e.readUInt16():e.readUInt8()),t&l.modifierMask&&(this.modifierMask=e.readUInt8()),t&l.secondaryRoleAction&&(this.secondaryRoleAction=e.readUInt8()),this},t.prototype.toJsonObject=function(){var e={keyActionType:u.keyActionType.KeystrokeAction};return e.type=this.type===c.KeystrokeType.shortMedia||this.type===c.KeystrokeType.longMedia?"media":c.KeystrokeType[this.type],this.hasScancode()&&(e.scancode=this._scancode),this.hasActiveModifier()&&(e.modifierMask=this.modifierMask),this.hasSecondaryRoleAction()&&(e.secondaryRoleAction=a.SecondaryRoleAction[this.secondaryRoleAction]),e},t.prototype.toBinary=function(e){var t=0,n=[];this.hasScancode()&&(t|=l.scancode,n.push({data:this._scancode,long:this.type===c.KeystrokeType.longMedia})),this.hasActiveModifier()&&(t|=l.modifierMask,n.push({data:this.modifierMask,long:!1})),this.hasSecondaryRoleAction()&&(t|=l.secondaryRoleAction,n.push({data:this.secondaryRoleAction,long:!1})),e.writeUInt8(u.KeyActionId.NoneAction+(t+(this.type<<3)));for(var o=0;o"},t.prototype.isActive=function(e){return(this.modifierMask&e)>0},t.prototype.hasActiveModifier=function(){return this.modifierMask>0},t.prototype.hasSecondaryRoleAction=function(){return void 0!==this.secondaryRoleAction&&null!==this.secondaryRoleAction},t.prototype.hasScancode=function(){return!!this._scancode},t.prototype.hasOnlyOneActiveModifier=function(){return 0!==this.modifierMask&&!(this.modifierMask&this.modifierMask-1)},t.prototype.getModifierList=function(){for(var e=[],t=this.modifierMask,n=0;0!==t;++n,t>>=1)1&t&&e.push(d[n]);return e},t.prototype.getName=function(){return"KeystrokeAction"},i([s.assertUInt8,r("design:type",Number)],t.prototype,"modifierMask",void 0),i([s.assertEnum(a.SecondaryRoleAction),r("design:type",Number)],t.prototype,"secondaryRoleAction",void 0),i([s.assertEnum(c.KeystrokeType),r("design:type",Number)],t.prototype,"_type",void 0),t}(u.KeyAction)},ICpg:function(e,t,n){"use strict";t.isObject=function(e){return null!=e&&"object"==typeof e}},IZVw:function(e,t,n){"use strict";var o=n("TToO").__extends,i=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return o(t,e),t}(Error);t.ObjectUnsubscribedError=i},Ilbw:function(e,t,n){"use strict";var o=n("vx8o");t.dragula=o.default||o},JJSU:function(e,t,n){"use strict";var o=n("rCTf"),i=n("7nvF");o.Observable.prototype.last=i.last},JZ4p:function(e,t,n){var o={"./DVR.json":"VMHN","./EMY.json":"TyHZ","./QTY.json":"e8yI","./VIM.json":"3vEz"};function i(e){return n(r(e))}function r(e){var t=o[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}i.keys=function(){return Object.keys(o)},i.resolve=r,e.exports=i,i.id="JZ4p"},Ji1B:function(e,t,n){"use strict";var o=n("ODby");t.observeOn=function(e,t){return void 0===t&&(t=0),o.observeOn(e,t)(this)}},Ji1V:function(e,t,n){"use strict";var o=n("C/iu");t.startWith=function(){for(var e=[],t=0;tthis.total&&this.destination.next(e)},t}(i.Subscriber)},KMB7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("RZVO");t.isEqualArray=function(e,t){if(e.length!==t.length)return!1;for(var n=function(e){if(!t.some(function(t){return o.isEqual(e,t)}))return{value:!1}},i=0,r=e;i0}var s,a=function(){var e=n("OjAK");return{version:e.version,firmwareVersion:e.firmwareVersion,deviceProtocolVersion:e.deviceProtocolVersion,moduleProtocolVersion:e.moduleProtocolVersion,userConfigVersion:e.userConfigVersion,hardwareConfigVersion:e.hardwareConfigVersion}},u=a,c=function(){return s||(s=a()),s};n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r}),n.d(t,"d",function(){return l}),n.d(t,"c",function(){return c}),n.d(t,!1,function(){return u})},LxNc:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("wAkD"),r=n("CURp");t.catchError=function(e){return function(t){var n=new l(e),o=t.lift(n);return n.caught=o}};var l=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.selector,this.caught))},e}(),s=function(e){function t(t,n,o){e.call(this,t),this.selector=n,this.caught=o}return o(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle(),this.add(r.subscribeToResult(this,n))}},t}(i.OuterSubscriber)},M5jZ:function(e,t,n){"use strict";var o=n("JzlZ");t.skip=function(e){return o.skip(e)(this)}},"MEr+":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS"),r=n("CGGv");t.debounceTime=function(e,t){return void 0===t&&(t=r.async),function(n){return n.lift(new l(e,t))}};var l=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))},e}(),s=function(e){function t(t,n,o){e.call(this,t),this.dueTime=n,this.scheduler=o,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return o(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(a,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(i.Subscriber);function a(e){e.debouncedNext()}},MQMf:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("EEr4"),r=n("RA5l"),l=n("B00U"),s=n("ODby"),a=n("IZVw"),u=n("ZJf8");t.ReplaySubject=function(e){function t(t,n,o){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY),e.call(this),this.scheduler=o,this._events=[],this._bufferSize=t<1?1:t,this._windowTime=n<1?1:n}return o(t,e),t.prototype.next=function(t){var n=this._getNow();this._events.push(new c(n,t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._trimBufferThenGetEvents(),o=this.scheduler;if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError?t=l.Subscription.EMPTY:this.isStopped?t=l.Subscription.EMPTY:(this.observers.push(e),t=new u.SubjectSubscription(this,e)),o&&e.add(e=new s.ObserveOnSubscriber(e,o));for(var i=n.length,r=0;rt&&(r=Math.max(r,i-t)),r>0&&o.splice(0,r),o},t}(i.Subject);var c=function(e,t){this.time=e,this.value=t}},MkTX:function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,s,a=n("CmJd"),u=n("4KnF");!function(e){e[e.mod=0]="mod",e[e.fn=1]="fn",e[e.mouse=2]="mouse"}(l=t.LayerName||(t.LayerName={})),function(e){e.holdAndDoubleTapToggle="holdAndDoubleTapToggle",e.toggle="toggle",e.hold="hold"}(s=t.SwitchLayerMode||(t.SwitchLayerMode={})),t.mapSwitchLayerModeToNumber=function(e){switch(e){case s.holdAndDoubleTapToggle:return 0;case s.toggle:return 1;case s.hold:return 2;default:throw new Error("Can not map "+e+" to number")}},t.mapNumberToSwitchLayerMode=function(e){switch(e){case 0:return s.holdAndDoubleTapToggle;case 1:return s.toggle;case 2:return s.hold;default:throw new Error('Can not map "'+e+'" to SwitchLayerMode')}},t.SwitchLayerAction=function(e){function n(t){var n=e.call(this)||this;return t?(n.switchLayerMode=t.switchLayerMode,n.layer=t.layer,n):n}return o(n,e),n.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.layer=l[e.layer],this.switchLayerMode="boolean"==typeof e.toggle?e.toggle?s.toggle:s.holdAndDoubleTapToggle:e.switchLayerMode,this},n.prototype.fromBinary=function(e){return this.readAndAssertKeyActionId(e),this.layer=e.readUInt8(),this.switchLayerMode=t.mapNumberToSwitchLayerMode(e.readUInt8()),this},n.prototype.toJsonObject=function(){return{keyActionType:u.keyActionType.SwitchLayerAction,layer:l[this.layer],switchLayerMode:this.switchLayerMode}},n.prototype.toBinary=function(e){e.writeUInt8(u.KeyActionId.SwitchLayerAction),e.writeUInt8(this.layer),e.writeUInt8(t.mapSwitchLayerModeToNumber(this.switchLayerMode))},n.prototype.toString=function(){return''},n.prototype.getName=function(){return"SwitchLayerAction"},i([a.assertEnum(s),r("design:type",String)],n.prototype,"switchLayerMode",void 0),i([a.assertEnum(l),r("design:type",Number)],n.prototype,"layer",void 0),n}(u.KeyAction)},MptX:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var o={showButton:!1,text:null,showProgress:!1}},NSzm:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var o=n("TToO"),i=n("8AXl"),r=n("rCTf"),l=n("DzMp"),s=(n.n(l),n("lDdF")),a=(n.n(s),n("+pb+")),u=(n.n(a),n("uCY4")),c=(n.n(u),n("/lY3")),d=(n.n(c),n("fiy1")),p=(n.n(d),n("HcJ8")),f=(n.n(p),n("1APj")),h=(n.n(f),n("AGQa")),y=(n.n(h),n("gI3A")),m=(n.n(y),n("at4H")),g=n("9EfN"),v=n("WP8/"),b=n("Ji5S"),k=n("fYQU"),_=function(){function t(t,n,o,i,a,u,c){var d=this;this.actions$=t,this.dataStorageRepository=n,this.store=o,this.defaultUserConfigurationService=i,this.deviceRendererService=a,this.logService=u,this.router=c,this.loadUserConfig$=Object(l.defer)(function(){return r.Observable.of(new m.f(d.getUserConfiguration()))}),this.saveUserConfig$=this.actions$.ofType(v.a.ADD,v.a.DUPLICATE,v.a.EDIT_NAME,v.a.EDIT_ABBR,v.a.SET_DEFAULT,v.a.REMOVE,v.a.SAVE_KEY,v.a.EDIT_DESCRIPTION,v.b.ADD,v.b.DUPLICATE,v.b.EDIT_NAME,v.b.REMOVE,v.b.ADD_ACTION,v.b.SAVE_ACTION,v.b.DELETE_ACTION,v.b.REORDER_ACTION,m.a.RENAME_USER_CONFIGURATION,m.a.SET_USER_CONFIGURATION_VALUE).withLatestFrom(this.store.select(g.r),this.store.select(g.l)).mergeMap(function(e){var t=e[0],n=e[1],o=e[2];if(n.recalculateConfigurationLength(),d.dataStorageRepository.saveConfig(n),t.type===v.a.REMOVE||t.type===v.b.REMOVE){var i=t.type===v.a.REMOVE?"Keymap":"Macro",r={path:"/"+(t.type===v.a.REMOVE?"keymap":"macro")+"/"+t.payload,config:o.toJsonObject()};return[new m.k(n),new b.l({type:y.NotificationType.Undoable,message:i+" has been deleted",extra:{payload:r,type:v.a.UNDO_LAST_ACTION}}),new k.q]}return[new m.k(n),new b.d,new k.q]}),this.undoUserConfig$=this.actions$.ofType(v.a.UNDO_LAST_ACTION).map(function(e){return e.payload}).mergeMap(function(e){var t=(new y.UserConfiguration).fromJsonObject(e.config);return d.dataStorageRepository.saveConfig(t),d.router.navigate([e.path]),[new m.f(t)]}),this.loadConfigFromDevice$=this.actions$.ofType(m.a.LOAD_CONFIG_FROM_DEVICE).do(function(){return d.deviceRendererService.loadConfigurationFromKeyboard()}),this.loadConfigFromDeviceReply$=this.actions$.ofType(m.a.LOAD_CONFIG_FROM_DEVICE_REPLY).withLatestFrom(this.store.select(g.n)).mergeMap(function(e){var t=e[1],n=e[0].payload;if(!n.success)return[new b.l({type:y.NotificationType.Error,message:n.error})];var o,i=[];try{var r=Object(y.getUserConfigFromDeviceResponse)(n.userConfiguration);i.push(new m.f(r)),t.state&&!t.state.url.startsWith("/device/firmware")&&(o=["/"])}catch(e){d.logService.error("Eeprom user-config parse error:",e),r=(new y.UserConfiguration).fromJsonObject(n.backupConfiguration),i.push(new k.d(!!n.backupConfiguration)),i.push(new m.f(r)),o=["/device/restore-user-configuration"]}try{var l=Object(y.getHardwareConfigFromDeviceResponse)(n.hardwareConfiguration);i.push(new b.g(l))}catch(e){d.logService.error("Eeprom hardware-config parse error:",e),i.push(new b.l({type:y.NotificationType.Error,message:e}))}return i.push(new k.c(n.modules)),o&&d.router.navigate(o),i}),this.saveUserConfigInJsonFile$=this.actions$.ofType(m.a.SAVE_USER_CONFIG_IN_JSON_FILE).withLatestFrom(this.store.select(g.r)).do(function(e){var t=JSON.stringify(e[1].toJsonObject(),null,2),n=new Blob([t],{type:"text/plain"});Object(s.saveAs)(n,"UserConfiguration.json")}),this.saveUserConfigInBinFile$=this.actions$.ofType(m.a.SAVE_USER_CONFIG_IN_BIN_FILE).withLatestFrom(this.store.select(g.r)).do(function(e){var t=e[1],n=new y.UhkBuffer;t.toBinary(n);var o=new Blob([n.getBufferContent()]);Object(s.saveAs)(o,"UserConfiguration.bin")}),this.loadUserConfigurationFromFile$=this.actions$.ofType(m.a.LOAD_USER_CONFIGURATION_FROM_FILE).map(function(e){return e.payload}).map(function(t){try{var n=new y.UserConfiguration;if(t.filename.endsWith(".bin"))n.fromBinary(y.UhkBuffer.fromArray(t.data));else{var o=new e(t.data).toString();n.fromJsonObject(JSON.parse(o))}return n.userConfigMajorVersion?new m.b(n):new b.l({type:y.NotificationType.Error,message:"Invalid configuration specified."})}catch(e){return new b.l({type:y.NotificationType.Error,message:"Invalid configuration specified."})}})}return t.prototype.getUserConfiguration=function(){var e,t=this.dataStorageRepository.getConfig();return t&&t.userConfigMajorVersion===this.defaultUserConfigurationService.getDefault().userConfigMajorVersion&&(e=(new y.UserConfiguration).fromJsonObject(t)),e||(e=this.defaultUserConfigurationService.getDefault()),e},Object(o.__decorate)([Object(i.b)(),Object(o.__metadata)("design:type",r.Observable)],t.prototype,"loadUserConfig$",void 0),Object(o.__decorate)([Object(i.b)(),Object(o.__metadata)("design:type",r.Observable)],t.prototype,"saveUserConfig$",void 0),Object(o.__decorate)([Object(i.b)(),Object(o.__metadata)("design:type",r.Observable)],t.prototype,"undoUserConfig$",void 0),Object(o.__decorate)([Object(i.b)({dispatch:!1}),Object(o.__metadata)("design:type",Object)],t.prototype,"loadConfigFromDevice$",void 0),Object(o.__decorate)([Object(i.b)(),Object(o.__metadata)("design:type",Object)],t.prototype,"loadConfigFromDeviceReply$",void 0),Object(o.__decorate)([Object(i.b)({dispatch:!1}),Object(o.__metadata)("design:type",Object)],t.prototype,"saveUserConfigInJsonFile$",void 0),Object(o.__decorate)([Object(i.b)({dispatch:!1}),Object(o.__metadata)("design:type",Object)],t.prototype,"saveUserConfigInBinFile$",void 0),Object(o.__decorate)([Object(i.b)(),Object(o.__metadata)("design:type",Object)],t.prototype,"loadUserConfigurationFromFile$",void 0),t}()}).call(t,n("63KW").Buffer)},Nkju:function(e,t){e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},ODby:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS"),r=n("8GmM");t.observeOn=function(e,t){return void 0===t&&(t=0),function(n){return n.lift(new l(e,t))}};var l=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.scheduler,this.delay))},e}();t.ObserveOnOperator=l;var s=function(e){function t(t,n,o){void 0===o&&(o=0),e.call(this,t),this.scheduler=n,this.delay=o}return o(t,e),t.dispatch=function(e){e.notification.observe(e.destination),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.add(this.scheduler.schedule(t.dispatch,this.delay,new a(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(r.Notification.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(r.Notification.createError(e))},t.prototype._complete=function(){this.scheduleMessage(r.Notification.createComplete())},t}(i.Subscriber);t.ObserveOnSubscriber=s;var a=function(e,t){this.notification=e,this.destination=t};t.ObserveOnMessage=a},OE0E:function(e,t,n){"use strict";n.d(t,"a",function(){return Fe}),n.d(t,"j",function(){return Ue}),n.d(t,"h",function(){return v}),n.d(t,"i",function(){return w}),n.d(t,"b",function(){return y}),n.d(t,"d",function(){return M}),n.d(t,"e",function(){return E}),n.d(t,"f",function(){return ne}),n.d(t,"g",function(){return oe}),n.d(t,"c",function(){return Me}),n.d(t,"s",function(){return s}),n.d(t,"l",function(){return F}),n.d(t,"k",function(){return ee}),n.d(t,"n",function(){return ie}),n.d(t,"o",function(){return se}),n.d(t,"m",function(){return R}),n.d(t,"p",function(){return I}),n.d(t,"q",function(){return Ve}),n.d(t,"t",function(){return S}),n.d(t,"r",function(){return Ee});var o=n("Xjw4"),i=n("WT6e"),r=n("TToO"),l=null;function s(){return l}var a,u={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},c={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},d={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};i["\u0275global"].Node&&(a=i["\u0275global"].Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))});var p,f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,l||(l=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var o;(o=e)[t].apply(o,n)},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return u},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return a.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),o=0;o0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,o=0;o0;s||(s=e[l]=[]);var u=Z(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:u,handler:r});else{for(var c=!1,d=0;d-1},t}(P),re=["alt","control","meta","shift"],le={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},se=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,o){var i=t.parseEventName(n),r=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(e,i.domEventName,r)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),o=n.shift();if(0===n.length||"keydown"!==o&&"keyup"!==o)return null;var i=t._normalizeKey(n.pop()),r="";if(re.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r+=e+".")}),r+=i,0!=n.length||0===i.length)return null;var l={};return l.domEventName=o,l.fullKey=r,l},t.getEventFullKey=function(e){var t="",n=s().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),re.forEach(function(o){o!=n&&(0,le[o])(e)&&(t+=o+".")}),t+=n},t.eventCallback=function(e,n,o){return function(i){t.getEventFullKey(i)===e&&o.runGuarded(function(){return n(i)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(P),ae=function(){function e(e,t){this.defaultDoc=e,this.DOM=t;var n=this.DOM.createHtmlDocument();if(this.inertBodyElement=n.body,null==this.inertBodyElement){var o=this.DOM.createElement("html",n);this.inertBodyElement=this.DOM.createElement("body",n),this.DOM.appendChild(o,this.inertBodyElement),this.DOM.appendChild(n,o)}this.DOM.setInnerHTML(this.inertBodyElement,''),!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.DOM.setInnerHTML(this.inertBodyElement,'

'),this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(e){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(null);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(e){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.DOM.createElement("template");return"content"in t?(this.DOM.setInnerHTML(t,e),t):(this.DOM.setInnerHTML(this.inertBodyElement,e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){var t=this;this.DOM.attributeMap(e).forEach(function(n,o){"xmlns:ns1"!==o&&0!==o.indexOf("ns1:")||t.DOM.removeAttribute(e,o)});for(var n=0,o=this.DOM.childNodesAsList(e);n")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=this.DOM.nodeName(e).toLowerCase();be.hasOwnProperty(t)&&!ye.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(xe(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&this.DOM.contains(e,t))throw new Error("Failed to sanitize html because the element is clobbered: "+this.DOM.getOuterHTML(e));return t},e}(),Te=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ce=/([^\#-~ |!])/g;function xe(e){return e.replace(/&/g,"&").replace(Te,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ce,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Oe=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Se=/^url\(([^)]+)\)$/,Me=function(){},Ee=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(r.__extends)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case i.SecurityContext.NONE:return t;case i.SecurityContext.HTML:return t instanceof Ie?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=s(),o=null;try{he=he||new ae(e,n);var r=t?String(t):"";o=he.getInertBodyElement(r);var l=5,a=r;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,r=a,a=n.getInnerHTML(o),o=he.getInertBodyElement(r)}while(r!==a);var u=new Ae,c=u.sanitizeChildren(n.getTemplateContent(o)||o);return Object(i.isDevMode)()&&u.sanitizedSomething&&n.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),c}finally{if(o)for(var d=n.getTemplateContent(o)||o,p=0,f=n.childNodesAsList(d);p=8.9.1 <9.0.0",npm:">=5.6.0 <6.0.0"},devDependencies:{"@types/electron-devtools-installer":"2.0.2","@types/electron-settings":"3.0.0","@types/fs-extra":"5.0.1","@types/jasmine":"2.6.0","@types/jquery":"3.3.1","@types/jsonfile":"4.0.1","@types/lodash-es":"4.17.0","@types/node":"8.0.53","@types/node-hid":"0.5.2","@types/request":"2.0.8","@types/usb":"1.1.3",autoprefixer:"6.5.3",buffer:"5.0.6","check-node-version":"^3.2.0","copy-webpack-plugin":"4.0.1",copyfiles:"^2.0.0","core-js":"2.4.1","cross-env":"5.0.5",decompress:"4.2.0","decompress-tarbz2":"^4.1.1",devtron:"1.4.0",electron:"1.8.4","electron-builder":"20.8.1","electron-debug":"1.5.0","electron-devtools-installer":"2.2.3","electron-log":"2.2.14","electron-rebuild":"1.7.3","electron-settings":"3.1.4","electron-updater":"2.21.4","exports-loader":"0.6.3","file-loader":"0.10.0","fs-extra":"5.0.0","gh-pages":"1.1.0",jsonfile:"4.0.0",lerna:"2.9.0","lodash-es":"4.17.4",mkdirp:"0.5.1","node-hid":"0.5.7","npm-run-all":"4.0.2","pre-commit":"1.2.2",request:"2.83.0",rimraf:"2.6.1","standard-version":"4.2.0",stylelint:"7.13.0","svg-sprite":"1.3.7","ts-loader":"2.3.1","ts-node":"3.0.4",tslint:"5.9.1",typescript:"2.6.2",webpack:"3.10.0"},"pre-commit":["precommit-msg"],scripts:{postinstall:"lerna bootstrap","precommit-msg":"Git precommit hook is running... & exit 0",test:"run-p -sn test:test-serializer test:uhk-common","test:test-serializer":"lerna exec --scope test-serializer npm test","test:uhk-common":"lerna exec --scope uhk-common npm test","test:uhk-web":"lerna exec --scope uhk-web npm test",lint:"run-s -scn lint:ts lint:style","lint:ts":"run-p -sn lint:ts:electron-main lint:ts:electron-renderer lint:ts:web lint:ts:test-serializer lint:ts:uhk-usb","lint:ts:electron-main":"tslint --project ./packages/uhk-agent/tsconfig.json","lint:ts:electron-renderer":"tslint --project ./packages/uhk-web/src/tsconfig.renderer.json","lint:ts:web":"tslint --project ./packages/uhk-web/src/tsconfig.app.json","lint:ts:test-serializer":"tslint --project ./packages/test-serializer/tsconfig.json","lint:ts:uhk-usb":"tslint --project ./packages/uhk-usb/tsconfig.json","lint:style":'stylelint "packages/uhk-agent/src/**/*.scss" "packages/uhk-web/src/**/*.scss" --syntax scss',prebuild:"check-node-version --package",build:"run-s build:common build:usb build:web build:electron","build:web":"lerna exec --scope uhk-web npm run build","build:electron":"cross-env AOT_BUILD=true run-s -sn build:electron:renderer build:electron:main","build:electron:main":"lerna exec --scope uhk-agent npm run build","build:electron:renderer":"lerna exec --scope uhk-web npm run build:renderer","build:common":"lerna exec --scope uhk-common npm run build","build:usb":"lerna exec --scope uhk-usb npm run build","server:web":"lerna exec --scope uhk-web npm start","server:electron":"lerna exec --scope uhk-web npm run server:renderer",electron:"lerna exec --scope uhk-agent npm start","electron:spe":"lerna exec --scope uhk-agent npm run electron:spe","standard-version":"standard-version",pack:"node ./scripts/release.js",sprites:"node ./scripts/generate-svg-sprites",release:"node ./scripts/release.js",clean:"lerna exec rimraf ./node_modules ./dist && rimraf ./node_modules ./dist","predeploy-gh-pages":"run-s build:web","deploy-gh-pages":"gh-pages -d packages/uhk-web/dist"},dependencies:{}}},Oz3Z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n("1Rl6");t.isScancodeExists=function(e){return o||function(){o=new Map;for(var e=0,t=i.SCANCODES;e=0}},PKvP:function(e,t,n){"use strict";var o=n("JkZN");t.from=o.FromObservable.create},PutI:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("cwzr");t.QueueAction=function(e){function t(t,n){e.call(this,t,n),this.scheduler=t,this.work=n}return o(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,o){return void 0===o&&(o=0),null!==o&&o>0||null===o&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,o):t.flush(this)},t}(i.AsyncAction)},PvYY:function(e,t,n){"use strict";var o=n("rCTf"),i=n("0gHg");o.Observable.prototype.publishReplay=i.publishReplay},Q3m9:function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l=n("CmJd"),s=n("ao60");t.ScrollMouseMacroAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.x=t.x,n.y=t.y,n):n}return o(t,e),t.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.x=e.x,this.y=e.y,this},t.prototype.fromBinary=function(e){return this.readAndAssertMacroActionId(e),this.x=e.readInt16(),this.y=e.readInt16(),this},t.prototype.toJsonObject=function(){return{macroActionType:s.macroActionType.ScrollMouseMacroAction,x:this.x,y:this.y}},t.prototype.toBinary=function(e){e.writeUInt8(s.MacroActionId.ScrollMouseMacroAction),e.writeInt16(this.x),e.writeInt16(this.y)},t.prototype.toString=function(){return''},t.prototype.getName=function(){return"ScrollMouseMacroAction"},i([l.assertInt16,r("design:type",Number)],t.prototype,"x",void 0),i([l.assertInt16,r("design:type",Number)],t.prototype,"y",void 0),t}(s.MacroAction)},QqRK:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.InnerSubscriber=function(e){function t(t,n,o){e.call(this),this.parent=t,this.outerValue=n,this.outerIndex=o,this.index=0}return o(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(i.Subscriber)},R30b:function(e,t,n){"use strict";var o=n("xgwM").__decorate,i=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var r=n("CmJd"),l=n("jsdV");t.Macro=function(){function e(e){e&&(this.id=e.id,this.isLooped=e.isLooped,this.isPrivate=e.isPrivate,this.name=e.name,this.macroActions=e.macroActions.map(function(e){return l.Helper.createMacroAction(e)}))}return e.prototype.fromJsonObject=function(e){return this.isLooped=e.isLooped,this.isPrivate=e.isPrivate,this.name=e.name,this.macroActions=e.macroActions.map(function(e){return l.Helper.createMacroAction(e)}),this},e.prototype.fromBinary=function(e){this.isLooped=e.readBoolean(),this.isPrivate=e.readBoolean(),this.name=e.readString();var t=e.readCompactLength();this.macroActions=[];for(var n=0;n'},o([r.assertUInt8,i("design:type",Number)],e.prototype,"id",void 0),e}()},RA5l:function(e,t,n){"use strict";var o=n("PutI"),i=n("C0+T");t.queue=new i.QueueScheduler(o.QueueAction)},RRVv:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("rCTf");t.ScalarObservable=function(e){function t(t,n){e.call(this),this.value=t,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return o(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.value,n=e.subscriber;e.done?n.complete():(n.next(t),n.closed||(e.done=!0,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.value,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{done:!1,value:n,subscriber:e});e.next(n),e.closed||e.complete()},t}(i.Observable)},RU1a:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("wAkD"),r=n("CURp");t.takeUntil=function(e){return function(t){return t.lift(new l(e))}};var l=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.notifier))},e}(),s=function(e){function t(t,n){e.call(this,t),this.notifier=n,this.add(r.subscribeToResult(this,n))}return o(t,e),t.prototype.notifyNext=function(e,t,n,o,i){this.complete()},t.prototype.notifyComplete=function(){},t}(i.OuterSubscriber)},RZVO:function(e,t,n){(function(e,o){var i;!function(r,l){var s="object"==typeof e&&e&&e.exports==("object"==typeof t&&t)&&e,a="object"==typeof o&&o;a.global===a&&(r=a);var u=[],c={},d=0,p=c,f=30,h=r._,y=/&(?:amp|lt|gt|quot|#39);/g,m=/\b__p \+= '';/g,g=/\b(__p \+=) '' \+/g,v=/(__e\(.*?\)|\b__t\)) \+\n'';/g,b=/\w*$/,k=RegExp("^"+(c.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,w=/<%=([\s\S]+?)%>/g,A=/($^)/,T=/[&<>"']/g,C=/['\n\r\t\u2028\u2029\\]/g,x=0,O=Math.ceil,S=u.concat,M=Math.floor,E=k.test(E=Object.getPrototypeOf)&&E,P=c.hasOwnProperty,I=u.push,R=c.toString,D=k.test(D=be.bind)&&D,N=k.test(N=Array.isArray)&&N,j=r.isFinite,L=r.isNaN,U=k.test(U=Object.keys)&&U,V=Math.max,F=Math.min,K=Math.random,B="[object Arguments]",H="[object Array]",W="[object Boolean]",q="[object Date]",z="[object Number]",$="[object Object]",G="[object RegExp]",Y="[object String]",Q=!!r.attachEvent,J=D&&!/\n|true/.test(D+Q),Z=D&&!J,X=U&&(Q||J),ee={"[object Function]":!1};ee[B]=ee[H]=ee[W]=ee[q]=ee[z]=ee[$]=ee[G]=ee[Y]=!0;var te={};te[H]=Array,te[W]=Boolean,te[q]=Date,te[$]=Object,te[z]=Number,te[G]=RegExp,te[Y]=String;var ne={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1},oe={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"};function ie(e){return e&&"object"==typeof e&&e.__wrapped__?e:this instanceof ie?void(this.__wrapped__=e):new ie(e)}ie.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:w,variable:"",imports:{_:ie}};var re=function(e){var t="var index, iterable = "+e.firstArg+", result = iterable;\nif (!iterable) return result;\n"+e.top+";\n";return e.arrays&&(t+="var length = iterable.length; index = -1;\nif ("+e.arrays+") {\n while (++index < length) {\n "+e.loop+"\n }\n}\nelse { "),e.isKeysFast&&e.useHas?t+="\n var ownIndex = -1,\n ownProps = objectTypes[typeof iterable] ? nativeKeys(iterable) : [],\n length = ownProps.length;\n\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n "+e.loop+"\n } ":(t+="\n for (index in iterable) {",e.useHas&&(t+="\n if (",e.useHas&&(t+="hasOwnProperty.call(iterable, index)"),t+=") { "),t+=e.loop+"; ",e.useHas&&(t+="\n }"),t+="\n } "),e.arrays&&(t+="\n}"),t+(e.bottom+";\nreturn result")},le={args:"object, source, guard",top:"var args = arguments,\n argsIndex = 0,\n argsLength = typeof guard == 'number' ? 2 : args.length;\nwhile (++argsIndex < argsLength) {\n iterable = args[argsIndex];\n if (iterable && objectTypes[typeof iterable]) {",loop:"if (typeof result[index] == 'undefined') result[index] = iterable[index]",bottom:" }\n}"},se={args:"collection, callback, thisArg",top:"callback = callback && typeof thisArg == 'undefined' ? callback : createCallback(callback, thisArg)",arrays:"typeof length == 'number'",loop:"if (callback(iterable[index], index, collection) === false) return result"},ae={top:"if (!objectTypes[typeof iterable]) return result;\n"+se.top,arrays:!1};function ue(e,t,n){t||(t=0);var o=e.length,i=o-t>=(n||f);if(i)for(var r={},l=t-1;++l-1}return et(e,n,t)>-1}}function ce(e){return e.charCodeAt(0)}function de(e,t){var n=e.index,o=t.index;if((e=e.criteria)!==(t=t.criteria)){if(e>t||"undefined"==typeof e)return 1;if(e":">",'"':""","'":"'"},Se=Re(Oe),Me=he(le,{top:le.top.replace(";",";\nif (argsLength > 3 && typeof args[argsLength - 2] == 'function') {\n var callback = createCallback(args[--argsLength - 1], args[argsLength--], 2);\n} else if (argsLength > 2 && typeof args[argsLength - 1] == 'function') {\n callback = args[--argsLength];\n}"),loop:"result[index] = callback ? callback(result[index], iterable[index]) : iterable[index]"});function Ee(e,t,n,o,i,r){var s=e;if("function"==typeof t&&(o=n,n=t,t=!1),"function"==typeof n){n="undefined"==typeof o?n:fe(n,o,1);var a="undefined"!=typeof(s=n(s));a||(s=e)}var u=je(s);if(u){var c=R.call(s);if(!ee[c])return s;var d=Te(s)}if(!u||!t)return u&&!a?d?be(s):Me({},s):s;var p=te[c];switch(c){case W:case q:return a?s:new p(+s);case z:case Y:return a?s:new p(s);case G:return a?s:p(s.source,b.exec(s))}i||(i=[]),r||(r=[]);for(var f=i.length;f--;)if(i[f]==e)return r[f];return a||(s=d?p(s.length):{},d&&(P.call(e,"index")&&(s.index=e.index),P.call(e,"input")&&(s.input=e.input))),i.push(e),r.push(s),(d?qe:Ae)(a?s:e,function(e,o){s[o]=Ee(e,t,n,l,i,r)}),s}var Pe=he(le);function Ie(e){var t=[];return we(e,function(e,n){Ne(e)&&t.push(n)}),t.sort()}function Re(e){for(var t=-1,n=Ce(e),o=n.length,i={};++t-1}),s}function Ne(e){return"function"==typeof e}function je(e){return!!e&&ne[typeof e]}function Le(e){return"number"==typeof e||R.call(e)==z}Ne(/x/)&&(Ne=function(e){return e instanceof Function||"[object Function]"==R.call(e)});var Ue=E?function(e){if(!e||"object"!=typeof e)return!1;var t=e.valueOf,n="function"==typeof t&&(n=E(t))&&E(n);return n?e==n||E(e)==n&&!_e(e):xe(e)}:xe;function Ve(e){return"string"==typeof e||R.call(e)==Y}function Fe(e){for(var t=-1,n=Ce(e),o=n.length,i=Array(o);++t-1:ye(e,function(e){if(++o>=n)return!(r=e===t)}),r}function Be(e,t,n){var o=!0;if(t=fe(t,n),Te(e))for(var i=-1,r=e.length;++ii&&(i=s)}else t=!t&&Ve(e)?ce:fe(t,n),ye(e,function(e,n,r){var l=t(e,n,r);l>o&&(o=l,i=e)});return i}var Ge=ze;function Ye(e,t,n,o){var i=arguments.length<3;if(t=fe(t,o,4),Te(e)){var r=-1,l=e.length;for(i&&(n=e[++r]);++r>>1;n(e[l])=75;if(a)var u={};for(n&&(s=[],n=fe(n,o));++i2?D.call.apply(D,arguments):pe(e,t,be(arguments,2))}function rt(e){var t=be(arguments,1);return setTimeout(function(){e.apply(l,t)},1)}function lt(e){return e}function st(e){qe(Ie(e),function(t){var n=ie[t]=e[t];ie.prototype[t]=function(){var e=[this.__wrapped__];return I.apply(e,arguments),new ie(n.apply(ie,e))}})}function at(){return this.__wrapped__}J&&s&&"function"==typeof setImmediate&&(rt=it(setImmediate,r)),ie.after=function(e,t){return e<1?t():function(){if(--e<1)return t.apply(this,arguments)}},ie.assign=Me,ie.at=function(e){for(var t=-1,n=S.apply(u,be(arguments,1)),o=n.length,i=Array(o);++t1?0:(t=Ie(e),-1),o=t.length;++n=100,s=[],a=s;e:for(;++i3&&"function"==typeof i[l-2]?s=fe(i[--l-1],i[l--],2):l>2&&"function"==typeof i[l-1]&&(s=i[--l]);for(;++r'},t.prototype.getName=function(){return"DelayMacroAction"},i([l.assertUInt16,r("design:type",Number)],t.prototype,"delay",void 0),t}(s.MacroAction)},TToO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__extends=function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"__assign",function(){return i}),t.__rest=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i=0;s--)(i=e[s])&&(l=(r<3?i(l):r>3?i(t,n,l):i(t,n))||l);return r>3&&l&&Object.defineProperty(t,n,l),l},t.__param=function(e,t){return function(n,o){t(n,o,e)}},t.__metadata=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},t.__awaiter=function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function l(e){try{a(o.next(e))}catch(e){r(e)}}function s(e){try{a(o.throw(e))}catch(e){r(e)}}function a(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(l,s)}a((o=o.apply(e,t||[])).next())})},t.__generator=function(e,t){var n,o,i,r,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,o&&(i=o[2&r[0]?"return":r[0]?"throw":"next"])&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[0,i.value]),r[0]){case 0:case 1:i=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,o=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(!(i=(i=l.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]1||a(e,t)})})}function a(e,t){try{(n=i[e](t)).value instanceof s?Promise.resolve(n.value.v).then(u,c):d(r[0][2],n)}catch(e){d(r[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function d(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}},t.__asyncDelegator=function(e){var t,n;return t={},o("next"),o("throw",function(e){throw e}),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,i){e[o]&&(t[o]=function(t){return(n=!n)?{value:s(e[o](t)),done:"return"===o}:i?i(t):t})}},t.__asyncValues=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):"function"==typeof r?r(e):e[Symbol.iterator]()},t.__makeTemplateObject=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},t.__importStar=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},t.__importDefault=function(e){return e&&e.__esModule?e:{default:e}};var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)l.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return l}function s(e){return this instanceof s?(this.v=e,this):new s(e)}},TfWX:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("EEr4"),r=n("IZVw");t.BehaviorSubject=function(e){function t(t){e.call(this),this._value=t}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.ObjectUnsubscribedError;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(i.Subject)},TyHZ:function(e,t){e.exports={isDefault:!1,abbreviation:"EMY",name:"Empty keymap",description:"None of the keys are bind to any key action. It is ideal if you want to start creating your keymap from the ground up.",layers:[{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]}]}},U15Z:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("VOfZ"),r=n("rCTf"),l=n("cdmN");t.IteratorObservable=function(e){function t(t,n){if(e.call(this),this.scheduler=n,null==t)throw new Error("iterator cannot be null.");this.iterator=function(e){var t=e[l.iterator];if(!t&&"string"==typeof e)return new s(e);if(!t&&void 0!==e.length)return new a(e);if(!t)throw new TypeError("object is not iterable");return e[l.iterator]()}(t)}return o(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.index,n=e.iterator,o=e.subscriber;if(e.hasError)o.error(e.error);else{var i=n.next();i.done?o.complete():(o.next(i.value),e.index=t+1,o.closed?"function"==typeof n.return&&n.return():this.schedule(e))}},t.prototype._subscribe=function(e){var n=this.iterator,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{index:0,iterator:n,subscriber:e});for(;;){var i=n.next();if(i.done){e.complete();break}if(e.next(i.value),e.closed){"function"==typeof n.return&&n.return();break}}},t}(r.Observable);var s=function(){function e(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length),this.str=e,this.idx=t,this.len=n}return e.prototype[l.iterator]=function(){return this},e.prototype.next=function(){return this.idxu?u:r:r}()),this.arr=e,this.idx=t,this.len=n}return e.prototype[l.iterator]=function(){return this},e.prototype.next=function(){return this.idx=2&&(n=!0),function(o){return o.lift(new r(e,t,n))}};var r=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.accumulator,this.seed,this.hasSeed))},e}(),l=function(e){function t(t,n,o,i){e.call(this,t),this.accumulator=n,this._seed=o,this.hasSeed=i,this.index=0}return o(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(i.Subscriber)},Uqr9:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.pairwise=function(){return function(e){return e.lift(new r)}};var r=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new l(e))},e}(),l=function(e){function t(t){e.call(this,t),this.hasPrev=!1}return o(t,e),t.prototype._next=function(e){this.hasPrev?this.destination.next([this.prev,e]):this.hasPrev=!0,this.prev=e},t}(i.Subscriber)},UwVZ:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS"),r=n("8Z8y"),l=n("jBEF");t.takeLast=function(e){return function(t){return 0===e?new l.EmptyObservable:t.lift(new s(e))}};var s=function(){function e(e){if(this.total=e,this.total<0)throw new r.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.total))},e}(),a=function(e){function t(t,n){e.call(this,t),this.total=n,this.ring=new Array,this.count=0}return o(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,o=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,o=this.ring,i=0;i'},e.prototype.getKeymap=function(e){return this.keymaps.find(function(t){return e===t.abbreviation})},e.prototype.getMacro=function(e){return this.macros.find(function(t){return e===t.id})},e.prototype.recalculateConfigurationLength=function(){var e=new l.UhkBuffer;this.toBinary(e),this.userConfigurationLength=e.offset},e.prototype.setDefaultDeviceName=function(){this.deviceName&&0!==this.deviceName.trim().length||(this.deviceName="My UHK")},o([r.assertUInt16,i("design:type",Number)],e.prototype,"userConfigMajorVersion",void 0),o([r.assertUInt16,i("design:type",Number)],e.prototype,"userConfigMinorVersion",void 0),o([r.assertUInt16,i("design:type",Number)],e.prototype,"userConfigPatchVersion",void 0),o([r.assertUInt16,i("design:type",Number)],e.prototype,"userConfigurationLength",void 0),o([r.assertUInt16,i("design:type",Number)],e.prototype,"doubleTapSwitchLayerTimeout",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"iconsAndLayerTextsBrightness",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"alphanumericSegmentsBrightness",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"keyBacklightBrightness",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseMoveInitialSpeed",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseMoveAcceleration",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseMoveDeceleratedSpeed",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseMoveBaseSpeed",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseMoveAcceleratedSpeed",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseScrollInitialSpeed",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseScrollAcceleration",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseScrollDeceleratedSpeed",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseScrollBaseSpeed",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseScrollAcceleratedSpeed",void 0),e}()},W2nU:function(e,t){var n,o,i=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{o="function"==typeof clearTimeout?clearTimeout:l}catch(e){o=l}}();var a,u=[],c=!1,d=-1;function p(){c&&a&&(c=!1,a.length?u=a.concat(u):d=-1,u.length&&f())}function f(){if(!c){var e=s(p);c=!0;for(var t=u.length;t;){for(a=u,u=[];++d1)for(var n=1;n ");else if("object"==typeof t){var i=[];for(var r in t)if(t.hasOwnProperty(r)){var l=t[r];i.push(r+":"+("string"==typeof l?JSON.stringify(l):ee(l)))}o="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+o+"]: "+e.replace(ye,"\n ")}function ke(e,t){return new Error(be(e,t))}var _e="ngDebugContext",we="ngOriginalError",Ae="ngErrorLogger";function Te(e){return e[_e]}function Ce(e){return e[we]}function xe(e){for(var t=[],n=1;n1?" ("+function(e){for(var t=[],n=0;n-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(function(e){return ee(e.token)}).join(" -> ")+")":""}function Me(e,t,n,o){var i=[t],r=n(i),l=o?function(e,t){var n=r+" caused by: "+(t instanceof Error?t.message:t),o=Error(n);return o[we]=t,o}(0,o):Error(r);return l.addKey=Ee,l.keys=i,l.injectors=[e],l.constructResolvingMessage=n,l[we]=o,l}function Ee(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function Pe(e,t){for(var n=[],o=0,i=t.length;o=this._providers.length)throw function(e){return Error("Index "+e+" is out-of-bounds.")}(e);return this._providers[e]},e.prototype._new=function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw Me(this,e.key,function(e){return"Cannot instantiate cyclic dependency!"+Se(e)});return this._instantiateProvider(e)},e.prototype._getMaxNumberOfObjects=function(){return this.objs.length},e.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=new Array(e.resolvedFactories.length),n=0;n0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+ee(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function hn(e,t){return Array.isArray(t)?t.reduce(hn,e):Object(o.__assign)({},e,t)}var yn=function(){function e(e,t,n,o,s,a){var u=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=o,this._componentFactoryResolver=s,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ln(),this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var c=new i.Observable(function(e){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){e.next(u._stable),e.complete()})}),d=new i.Observable(function(e){var t;u._zone.runOutsideAngular(function(){t=u._zone.onStable.subscribe(function(){Ht.assertNotInAngularZone(),Z(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,e.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){Ht.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(r.merge)(c,l.share.call(d))}return e.prototype.bootstrap=function(e,t){var n,o=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof kt?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n instanceof St?null:this._injector.get(Mt),r=n.create(se.NULL,[],t||n.selector,i);r.onDestroy(function(){o._unloadComponent(r)});var l=r.injector.get(Qt,null);return l&&r.injector.get(Jt).registerApplication(r.location.nativeElement,l),this._loadComponent(r),ln()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,Vt(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;mn(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(dt,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),mn(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=Ut("ApplicationRef#tick()"),e}();function mn(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var gn=function(e,t,n,o,i,r){this.id=e,this.templateUrl=t,this.slotCount=n,this.encapsulation=o,this.styles=i,this.animations=r},vn=function(){},bn=function(){},kn=function(){},_n=function(){},wn=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),An=function(){},Tn=function(e){this.nativeElement=e},Cn=function(){},xn=new Map;function On(e,t){var n=xn.get(e);if(n)throw new Error("Duplicate module registered for "+e+" - "+n.moduleType.name+" vs "+t.moduleType.name);xn.set(e,t)}function Sn(e){var t=xn.get(e);if(!t)throw new Error("No module with ID "+e+" loaded");return t}var Mn=function(){function e(){this.dirty=!0,this._results=[],this.changes=new Bt,this.length=0}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[J()]=function(){return this._results[J()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var o=Array.isArray(n)?e(n):n;return t.concat(o)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),En=function(){},Pn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},In=function(){function e(e,t){this._compiler=e,this._config=t||Pn}return e.prototype.load=function(e){return this._compiler instanceof mt?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,o=e.split("#"),i=o[0],r=o[1];return void 0===r&&(r="default"),n("Jnfr")(i).then(function(e){return e[r]}).then(function(e){return Rn(e,i,r)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=e.split("#"),o=t[0],i=t[1],r="NgFactory";return void 0===i&&(i="default",r=""),n("Jnfr")(this._config.factoryPathPrefix+o+this._config.factoryPathSuffix).then(function(e){return e[i+r]}).then(function(e){return Rn(e,o,i)})},e}();function Rn(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var Dn=function(){},Nn=function(){},jn=function(){},Ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t}(jn),Un=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t}(Ln),Vn=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof Fn?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),Fn=function(e){function t(t,n,o){var i=e.call(this,t,n,o)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=t,i}return Object(o.__extends)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,o=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=o}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return Bn(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return Hn(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Vn);function Kn(e){return e.map(function(e){return e.nativeElement})}function Bn(e,t,n){e.childNodes.forEach(function(e){e instanceof Fn&&(t(e)&&n.push(e),Bn(e,t,n))})}function Hn(e,t,n){e instanceof Fn&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof Fn&&Hn(e,t,n)})}var Wn=new Map;function qn(e){return Wn.get(e)||null}function zn(e){Wn.set(e.nativeNode,e)}function $n(e,t){var n=Qn(e),o=Qn(t);return n&&o?function(e,t,n){for(var o=e[J()](),i=t[J()]();;){var r=o.next(),l=i.next();if(r.done&&l.done)return!0;if(r.done||l.done)return!1;if(!n(r.value,l.value))return!1}}(e,t,$n):!(n||!e||"object"!=typeof e&&"function"!=typeof e||o||!t||"object"!=typeof t&&"function"!=typeof t)||X(e,t)}var Gn=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),Yn=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function Qn(e){return!!Jn(e)&&(Array.isArray(e)||!(e instanceof Map)&&J()in e)}function Jn(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var Zn=function(){function e(){}return e.prototype.supports=function(e){return Qn(e)},e.prototype.create=function(e){return new eo(e)},e}(),Xn=function(e,t){return t},eo=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Xn}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,o=0,i=null;t||n;){var r=!n||t&&t.currentIndex=n.length)&&(t=n.length-1),t<0)return null;var o=n[t];return o.viewContainerParent=null,Fi(n,t),Ro.dirtyParentQueries(o),Ui(o),o}function Li(e,t,n){var o=t?ei(t,t.def.lastRenderRootNode):e.renderElement;ci(n,2,n.renderer.parentNode(o),n.renderer.nextSibling(o),void 0)}function Ui(e){ci(e,3,null,null,void 0)}function Vi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Fi(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var Ki=new Object;function Bi(e,t,n,o,i,r){return new Wi(e,t,n,o,i,r)}function Hi(e){return e.viewDefFactory}var Wi=function(e){function t(t,n,o,i,r,l){var s=e.call(this)||this;return s.selector=t,s.componentType=n,s._inputs=i,s._outputs=r,s.ngContentSelectors=l,s.viewDefFactory=o,s}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,o){if(!o)throw new Error("ngModule should be provided");var i=ui(this.viewDefFactory),r=i.nodes[0].element.componentProvider.nodeIndex,l=Ro.createRootView(e,t||[],n,i,o,Ki),s=Mo(l,r).instance;return n&&l.renderer.setAttribute(So(l,0).renderElement,"ng-version",V.full),new qi(l,new Yi(l),s)},t}(kt),qi=function(e){function t(t,n,o){var i=e.call(this)||this;return i._view=t,i._viewRef=n,i._component=o,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=o,i}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new Tn(So(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Xi(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(bt);function zi(e,t,n){return new $i(e,t,n)}var $i=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new Tn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Xi(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=Xo(e),e=e.parent;return e?new Xi(e,t):new Xi(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=ji(this._data,e);Ro.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Yi(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var o=e.createEmbeddedView(t||{});return this.insert(o,n),o},e.prototype.createComponent=function(e,t,n,o,i){var r=n||this.parentInjector;i||e instanceof St||(i=r.get(Mt));var l=e.create(r,o,void 0,i);return this.insert(l.hostView,t),l},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,o,i,r,l=e;return i=l._view,r=(n=this._data).viewContainer._embeddedViews,null!==(o=t)&&void 0!==o||(o=r.length),i.viewContainerParent=this._view,Vi(r,o,i),function(e,t){var n=Zo(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var o=n.template._projectedViews;o||(o=n.template._projectedViews=[]),o.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var o=n.parent;o;)o.childFlags|=4,o=o.parent}}(0,t.parentNodeDef)}}(n,i),Ro.dirtyParentQueries(i),Li(n,o>0?r[o-1]:null,i),l.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,o,i,r,l,s=this._embeddedViews.indexOf(e._view);return i=t,l=(r=(n=this._data).viewContainer._embeddedViews)[o=s],Fi(r,o),null==i&&(i=r.length),Vi(r,i,l),Ro.dirtyParentQueries(l),Ui(l),Li(n,i>0?r[i-1]:null,l),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=ji(this._data,e);t&&Ro.destroyView(t)},e.prototype.detach=function(e){var t=ji(this._data,e);return t?new Yi(t):null},e}();function Gi(e){return new Yi(e)}var Yi=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return ci(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){Yo(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Ro.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Ro.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Ro.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Ui(this._view),Ro.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function Qi(e,t){return new Ji(e,t)}var Ji=function(e){function t(t,n){var o=e.call(this)||this;return o._parentView=t,o._def=n,o}return Object(o.__extends)(t,e),t.prototype.createEmbeddedView=function(e){return new Yi(Ro.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Tn(So(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(Dn);function Zi(e,t){return new Xi(e,t)}var Xi=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=se.THROW_IF_NOT_FOUND),Ro.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Vo(e)},t)},e}();function er(e,t){var n=e.def.nodes[t];if(1&n.flags){var o=So(e,n.nodeIndex);return n.element.template?o.template:o.renderElement}if(2&n.flags)return Oo(e,n.nodeIndex).renderText;if(20240&n.flags)return Mo(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function tr(e){return new nr(e.renderer)}var nr=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=mi(t),o=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,o),o},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var o=0;o0,o=t.provider;switch(201347067&t.flags){case 512:return _r(e,t.parent,n,o.value,o.deps);case 1024:return function(e,t,n,o,i){var r=i.length;switch(r){case 0:return o();case 1:return o(Ar(e,t,n,i[0]));case 2:return o(Ar(e,t,n,i[0]),Ar(e,t,n,i[1]));case 3:return o(Ar(e,t,n,i[0]),Ar(e,t,n,i[1]),Ar(e,t,n,i[2]));default:for(var l=Array(r),s=0;s0)u=y,Wr(y)||(c=y);else for(;u&&h===u.nodeIndex+u.childCount;){var v=u.parent;v&&(v.childFlags|=u.childFlags,v.childMatchedQueries|=u.childMatchedQueries),c=(u=v)&&Wr(u)?u.renderParent:u}}return{factory:null,nodeFlags:l,rootNodeFlags:s,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||Lo,updateRenderer:o||Lo,handleEvent:function(e,n,o,i){return t[n].element.handleEvent(e,o,i)},bindingCount:i,outputCount:r,lastRenderRootNode:f}}function Wr(e){return 0!=(1&e.flags)&&null===e.element.name}function qr(e,t,n){var o=t.element&&t.element.template;if(o){if(!o.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(o.lastRenderRootNode&&16777216&o.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function zr(e,t,n,o){var i=Yr(e.root,e.renderer,e,t,n);return Qr(i,e.component,o),Jr(i),i}function $r(e,t,n){var o=Yr(e,e.renderer,null,null,t);return Qr(o,n,n),Jr(o),o}function Gr(e,t,n,o){var i,r=t.element.componentRendererType;return i=r?e.root.rendererFactory.createRenderer(o,r):e.root.renderer,Yr(e.root,i,e,t.element.componentProvider,n)}function Yr(e,t,n,o,i){var r=new Array(i.nodes.length),l=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:o,context:null,component:null,nodes:r,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:l,initIndex:-1}}function Qr(e,t,n){e.component=t,e.context=n}function Jr(e){var t;ni(e)&&(t=So(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,o=e.nodes,i=0;i0&&Si(e,t,0,n)&&(f=!0),p>1&&Si(e,t,1,o)&&(f=!0),p>2&&Si(e,t,2,i)&&(f=!0),p>3&&Si(e,t,3,r)&&(f=!0),p>4&&Si(e,t,4,l)&&(f=!0),p>5&&Si(e,t,5,s)&&(f=!0),p>6&&Si(e,t,6,a)&&(f=!0),p>7&&Si(e,t,7,u)&&(f=!0),p>8&&Si(e,t,8,c)&&(f=!0),p>9&&Si(e,t,9,d)&&(f=!0),f}(e,t,n,o,i,r,l,s,a,u,c,d);case 2:return function(e,t,n,o,i,r,l,s,a,u,c,d){var p=!1,f=t.bindings,h=f.length;if(h>0&&$o(e,t,0,n)&&(p=!0),h>1&&$o(e,t,1,o)&&(p=!0),h>2&&$o(e,t,2,i)&&(p=!0),h>3&&$o(e,t,3,r)&&(p=!0),h>4&&$o(e,t,4,l)&&(p=!0),h>5&&$o(e,t,5,s)&&(p=!0),h>6&&$o(e,t,6,a)&&(p=!0),h>7&&$o(e,t,7,u)&&(p=!0),h>8&&$o(e,t,8,c)&&(p=!0),h>9&&$o(e,t,9,d)&&(p=!0),p){var y=t.text.prefix;h>0&&(y+=Br(n,f[0])),h>1&&(y+=Br(o,f[1])),h>2&&(y+=Br(i,f[2])),h>3&&(y+=Br(r,f[3])),h>4&&(y+=Br(l,f[4])),h>5&&(y+=Br(s,f[5])),h>6&&(y+=Br(a,f[6])),h>7&&(y+=Br(u,f[7])),h>8&&(y+=Br(c,f[8])),h>9&&(y+=Br(d,f[9]));var m=Oo(e,t.nodeIndex).renderText;e.renderer.setValue(m,y)}return p}(e,t,n,o,i,r,l,s,a,u,c,d);case 16384:return function(e,t,n,o,i,r,l,s,a,u,c,d){var p=Mo(e,t.nodeIndex),f=p.instance,h=!1,y=void 0,m=t.bindings.length;return m>0&&zo(e,t,0,n)&&(h=!0,y=Cr(e,p,t,0,n,y)),m>1&&zo(e,t,1,o)&&(h=!0,y=Cr(e,p,t,1,o,y)),m>2&&zo(e,t,2,i)&&(h=!0,y=Cr(e,p,t,2,i,y)),m>3&&zo(e,t,3,r)&&(h=!0,y=Cr(e,p,t,3,r,y)),m>4&&zo(e,t,4,l)&&(h=!0,y=Cr(e,p,t,4,l,y)),m>5&&zo(e,t,5,s)&&(h=!0,y=Cr(e,p,t,5,s,y)),m>6&&zo(e,t,6,a)&&(h=!0,y=Cr(e,p,t,6,a,y)),m>7&&zo(e,t,7,u)&&(h=!0,y=Cr(e,p,t,7,u,y)),m>8&&zo(e,t,8,c)&&(h=!0,y=Cr(e,p,t,8,c,y)),m>9&&zo(e,t,9,d)&&(h=!0,y=Cr(e,p,t,9,d,y)),y&&f.ngOnChanges(y),65536&t.flags&&xo(e,256,t.nodeIndex)&&f.ngOnInit(),262144&t.flags&&f.ngDoCheck(),h}(e,t,n,o,i,r,l,s,a,u,c,d);case 32:case 64:case 128:return function(e,t,n,o,i,r,l,s,a,u,c,d){var p=t.bindings,f=!1,h=p.length;if(h>0&&$o(e,t,0,n)&&(f=!0),h>1&&$o(e,t,1,o)&&(f=!0),h>2&&$o(e,t,2,i)&&(f=!0),h>3&&$o(e,t,3,r)&&(f=!0),h>4&&$o(e,t,4,l)&&(f=!0),h>5&&$o(e,t,5,s)&&(f=!0),h>6&&$o(e,t,6,a)&&(f=!0),h>7&&$o(e,t,7,u)&&(f=!0),h>8&&$o(e,t,8,c)&&(f=!0),h>9&&$o(e,t,9,d)&&(f=!0),f){var y=Eo(e,t.nodeIndex),m=void 0;switch(201347067&t.flags){case 32:m=new Array(p.length),h>0&&(m[0]=n),h>1&&(m[1]=o),h>2&&(m[2]=i),h>3&&(m[3]=r),h>4&&(m[4]=l),h>5&&(m[5]=s),h>6&&(m[6]=a),h>7&&(m[7]=u),h>8&&(m[8]=c),h>9&&(m[9]=d);break;case 64:m={},h>0&&(m[p[0].name]=n),h>1&&(m[p[1].name]=o),h>2&&(m[p[2].name]=i),h>3&&(m[p[3].name]=r),h>4&&(m[p[4].name]=l),h>5&&(m[p[5].name]=s),h>6&&(m[p[6].name]=a),h>7&&(m[p[7].name]=u),h>8&&(m[p[8].name]=c),h>9&&(m[p[9].name]=d);break;case 128:var g=n;switch(h){case 1:m=g.transform(n);break;case 2:m=g.transform(o);break;case 3:m=g.transform(o,i);break;case 4:m=g.transform(o,i,r);break;case 5:m=g.transform(o,i,r,l);break;case 6:m=g.transform(o,i,r,l,s);break;case 7:m=g.transform(o,i,r,l,s,a);break;case 8:m=g.transform(o,i,r,l,s,a,u);break;case 9:m=g.transform(o,i,r,l,s,a,u,c);break;case 10:m=g.transform(o,i,r,l,s,a,u,c,d)}}y.value=m}return f}(e,t,n,o,i,r,l,s,a,u,c,d);default:throw"unreachable"}}(e,t,o,i,r,l,s,a,u,c,d,p):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var o=!1,i=0;i0&&Go(e,t,0,n),p>1&&Go(e,t,1,o),p>2&&Go(e,t,2,i),p>3&&Go(e,t,3,r),p>4&&Go(e,t,4,l),p>5&&Go(e,t,5,s),p>6&&Go(e,t,6,a),p>7&&Go(e,t,7,u),p>8&&Go(e,t,8,c),p>9&&Go(e,t,9,d)}(e,t,o,i,r,l,s,a,u,c,d,p):function(e,t,n){for(var o=0;o0&&cs(n[t-1],o.next),n.splice(t,1),function(e){for(var t=e;t;){var n=null;if(t.views&&t.views.length?n=t.views[0].data:t.child?n=t.child:t.next&&(ps(t),n=t.next),null==n){for(;t&&!t.next;)ps(t),t=ds(t,e);ps(t||e),n=t&&t.next}t=n}}(o.data),as(e,o,!1),e.query&&e.query.removeView(e,o,t),o}function cs(e,t){e.next=t,e.data.next=t?t.data:null}function ds(e,t){var n;return(n=e.node)&&2==(3&n.flags)?n.parent.data:e.parent===t?null:e.parent}function ps(e){if(e.cleanup){for(var t=e.cleanup,n=0;n=bs.length?bs[e]=null:s.staticData=bs[e],vs?(_s=null,gs.view!==ks&&2!=(3&gs.flags)||(ngDevMode&&ns(gs.child,null,"previousNode.child"),gs.child=s)):gs&&(ngDevMode&&ns(gs.next,null,"previousNode.next"),gs.next=s)),gs=s,vs=!0,s}function Rs(e,t,n,o){var i,r;if(null==t){var l=As[e];r=l&&l.native}else{ngDevMode&&ns(ks.bindingStartIndex,null,"bindingStartIndex");var s="string"!=typeof t,a=s?t.tag:t;if(null===a)throw"for now name is required";r=ys.createElement(a);var u=null;if(s){var c=Ds(t.template);u=Js(Ps(-1,ms.createRenderer(r,t.rendererType),c))}null==(i=Is(e,3,r,u)).staticData&&(ngDevMode&&na(e-1),i.staticData=bs[e]=Vs(a,n||null,null,o||null)),n&&function(e,t){ngDevMode&&ns(t.length%2,0,"attrs.length % 2");for(var n=ys.setAttribute,o=0;o>12,i=o,r=o+((4092&e)>>2);i=bs.length&&(bs[e]=n,o)){ngDevMode&&os(gs.staticData,"previousOrParentNode.staticData");var l=gs.staticData;(l.localNames||(l.localNames=[])).push(o,e)}var s=n.diPublic;s&&s(n);var a=gs.staticData;a&&a.attrs&&function(e,t,o){var i=((4092&gs.flags)>>2)-1,r=o.initialInputs;(void 0===r||i>=r.length)&&(r=function(e,t,n){var o=n.initialInputs||(n.initialInputs=[]);o[e]=null;for(var i=n.attrs,r=0;r=n.length||null==n[e])&&(n[e]=[]),n[e]}(e,t));Ms(l,Is(null,2,null,l)),n.nextIndex++}return!r}function Ys(){vs=!1;var e=gs=ks.node,t=gs.parent;ngDevMode&&ls(e,2),ngDevMode&&ls(t,0);var n=t.data,o=n.nextIndex<=n.views.length?n.views[n.nextIndex-1]:null;(null==o||o.data.id!==e.data.id)&&(function(e,t,n){var o=e.data,i=o.views;n>0&&cs(i[n-1],t),n=i.length&&i.push(t),o.nextIndex<=n&&o.nextIndex++,null!==e.data.renderParent&&as(e,t,!0,function(t,n,o){var i=n.views;return t+1")}function oa(e,t){void 0===t&&(t={});var n,o=t.rendererFactory||Os,i=e.ngComponentDef,r=js(o,t.host||i.tag),l=Ms(Ps(-1,o.createRenderer(r,i.rendererType),[]),null);try{vs=!1,gs=null,Is(0,3,r,Ps(-1,ys,Ds(i.template))),n=Hs(1,i.n(),i)}finally{Es(l)}return t.features&&t.features.forEach(function(e){return e(n,i)}),ia(n),n}function ia(e){ngDevMode&&os(e,"component");var t=e[Ss];ngDevMode&&!t&&Ns("Not a directive instance",e),ngDevMode&&os(t.data,"hostNode.data"),function(e,n,o,i){var r=Ms(n,t);try{ms.begin&&ms.begin(),o.constructor.ngComponentDef.r(1,0)}finally{ms.end&&ms.end(),n.creationMode=!1,Es(r)}}(0,t.view,e)}function ra(e){var t={type:e.type,diPublic:null,n:e.factory,tag:e.tag||null,template:e.template||null,r:e.refresh||function(t,n){Qs(t,n,e.template)},h:e.hostBindings||sa,inputs:aa(e.inputs),outputs:aa(e.outputs),methods:aa(e.methods),rendererType:qo(e.rendererType)||null},n=e.features;return n&&n.forEach(function(e){return e(t)}),t}var la={};function sa(){}function aa(e){if(null==e)return la;var t={};for(var n in e)t[e[n]]=n;return t}function ua(e,t){return{type:7,name:e,definitions:t,options:{}}}function ca(e,t){return void 0===t&&(t=null),{type:4,styles:t,timings:e}}function da(e,t){return void 0===t&&(t=null),{type:3,steps:e,options:t}}function pa(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function fa(e){return{type:6,styles:e,offset:null}}function ha(e,t,n){return{type:0,name:e,styles:t,options:n}}function ya(e){return{type:5,steps:e}}function ma(e,t,n){return void 0===n&&(n=null),{type:1,expr:e,animation:t,options:n}}var ga="*";function va(e,t){return ua(e,t)}function ba(e,t){return ca(e,t)}function ka(e){return da(e)}function _a(e){return pa(e)}function wa(e){return fa(e)}function Aa(e,t){return ha(e,t)}function Ta(e){return ya(e)}function Ca(e,t){return ma(e,t)}}).call(t,n("srjU"))},WWFs:function(e,t,n){"use strict";var o=n("xgwM").__extends;Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.IpcResponse=i,t.FirmwareUpgradeIpcResponse=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(i)},WWez:function(e,t,n){"use strict";var o=n("ys6Q");e.exports=function(e,t,n){e&&o(function(){e.apply(n||null,t||[])})}},Wfm2:function(e,t){e.exports={svg:{$:{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"744.094488189",height:"1052.36220472"},rect:[{$:{id:"key-1",x:"-446.27197",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-2",x:"-379.92999",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-3",x:"-313.58899",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-4",x:"-247.24799",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-5",x:"-180.90698",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-6",x:"-114.56499",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-7",x:"-48.223999",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-8",x:"-446.27197",y:"744.89612",ry:"3.5107117",width:"96.728996",height:"63.014999",style:"fill:#333"}},{$:{id:"key-9",x:"-346.21698",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-10",x:"-279.87601",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-11",x:"-213.535",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-12",x:"-147.19299",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-14",x:"-80.852005",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-15",x:"-446.27197",y:"811.41315",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}},{$:{id:"key-16",x:"-328.18799",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-17",x:"-262.19598",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-18",x:"-196.20499",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-19",x:"-130.21399",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-21",x:"-64.222992",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-22",x:"-446.27197",y:"877.92914",ry:"3.5107117",width:"146.686",height:"63.014999",style:"fill:#333"}},{$:{id:"key-24",x:"-296.26001",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-25",x:"-230.02377",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-26",x:"-163.78757",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-27",x:"-97.551331",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-28",x:"-31.315111",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-29",x:"-446.27197",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-30",x:"-363.79099",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-31",x:"-281.311",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-32",x:"-198.83099",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-33",x:"-116.351",y:"1011.1872",ry:"3.6962967",width:"115.108",height:"41.174999",style:"fill:#333"}},{$:{id:"key-34",x:"-116.351",y:"944.44714",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}}],path:[{$:{d:"M -94.51036,646.84101 C -94.11496,648.67469 -92.68469,649.80097 -91.0281,649.78029 L 13.023181,649.78029 C 14.001631,649.78029 14.794821,650.57349 14.794821,651.55194 L 14.794821,651.55868 14.794821,673.23866 C 14.794821,674.21746 14.001631,675.01093 13.023181,675.01093 L -444.52338,675.01093 C -447.45834,675.01093 -449.83652,677.38911 -449.83652,680.32407 L -449.83652,1005.8729 C -449.83652,1008.8079 -447.45834,1011.1861 -444.52338,1011.1861 L -120.57683,1011.1861 C -119.59838,1011.1861 -118.80518,1011.9795 -118.80518,1012.9583 L -118.80518,1050.5832 -118.80518,1050.5899 C -118.80518,1051.5684 -119.59838,1052.3616 -120.57683,1052.3616 L -464.45746,1052.3616 C -469.36122,1052.166 -473.26634,1048.3775 -473.2955,1043.5236 L -473.2955,658.54868 C -473.28473,654.0371 -470.24793,650.61741 -466.01444,649.84887 L -114.09291,586.86646 C -109.10971,586.16157 -104.69185,589.2677 -103.81746,594.05779 -100.59959,612.36858 -97.46095,630.10521 -94.51036,646.84101 Z",style:"fill:#333"}}]}}},WhVc:function(e,t,n){"use strict";t.errorObject={e:{}}},XO5T:function(e,t,n){"use strict";var o=n("ANGw");t.mergeMap=function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),o.mergeMap(e,t,n)(this)}},"XOs/":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},Xajo:function(e,t,n){"use strict";t.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}},Xjw4:function(e,t,n){"use strict";n.d(t,"l",function(){return v}),n.d(t,"m",function(){return g}),n.d(t,"v",function(){return b}),n.d(t,"c",function(){return N}),n.d(t,"i",function(){return k}),n.d(t,"j",function(){return w}),n.d(t,"k",function(){return T}),n.d(t,"n",function(){return O}),n.d(t,"o",function(){return S}),n.d(t,"p",function(){return M}),n.d(t,"q",function(){return E}),n.d(t,"d",function(){return j}),n.d(t,"b",function(){return D}),n.d(t,"t",function(){return L}),n.d(t,"s",function(){return r}),n.d(t,"f",function(){return l}),n.d(t,"h",function(){return s}),n.d(t,"a",function(){return a}),n.d(t,"e",function(){return d}),n.d(t,"r",function(){return p}),n.d(t,"g",function(){return u}),n.d(t,"u",function(){return m});var o=n("WT6e"),i=n("TToO"),r=function(){},l=new o.InjectionToken("Location Initialized"),s=function(){},a=new o.InjectionToken("appBaseHref"),u=function(){function e(t){var n=this;this._subject=new o.EventEmitter,this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(c(i)),this._platformStrategy.onPopState(function(e){n._subject.emit({url:n.path(!0),pop:!0,type:e.type})})}return e.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},e.prototype.isCurrentPathEqualTo=function(t,n){return void 0===n&&(n=""),this.path()==this.normalize(t+e.normalizeQueryParams(n))},e.prototype.normalize=function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,c(t)))},e.prototype.prepareExternalUrl=function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},e.prototype.go=function(e,t){void 0===t&&(t=""),this._platformStrategy.pushState(null,"",e,t)},e.prototype.replaceState=function(e,t){void 0===t&&(t=""),this._platformStrategy.replaceState(null,"",e,t)},e.prototype.forward=function(){this._platformStrategy.forward()},e.prototype.back=function(){this._platformStrategy.back()},e.prototype.subscribe=function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})},e.normalizeQueryParams=function(e){return e&&"?"!==e[0]?"?"+e:e},e.joinWithSlash=function(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t},e.stripTrailingSlash=function(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)},e}();function c(e){return e.replace(/\/index.html$/,"")}var d=function(e){function t(t,n){var o=e.call(this)||this;return o._platformLocation=t,o._baseHref="",null!=n&&(o._baseHref=n),o}return Object(i.__extends)(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=u.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,o){var i=this.prepareExternalUrl(n+u.normalizeQueryParams(o));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,o){var i=this.prepareExternalUrl(n+u.normalizeQueryParams(o));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(s),p=function(e){function t(t,n){var o=e.call(this)||this;if(o._platformLocation=t,null==n&&(n=o._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return o._baseHref=n,o}return Object(i.__extends)(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(e){return u.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+u.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,o){var i=this.prepareExternalUrl(n+u.normalizeQueryParams(o));this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,o){var i=this.prepareExternalUrl(n+u.normalizeQueryParams(o));this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(s),f=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],h={},y=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),m=new o.InjectionToken("UseV4Plurals"),g=function(){},v=function(e){function t(t,n){var o=e.call(this)||this;return o.locale=t,o.deprecatedPluralFn=n,o}return Object(i.__extends)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=h[t];if(n)return n;var o=t.split("-")[0];if(n=h[o])return n;if("en"===o)return f;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[17]}(t||this.locale)(e)){case y.Zero:return"zero";case y.One:return"one";case y.Two:return"two";case y.Few:return"few";case y.Many:return"many";default:return"other"}},t}(g);function b(e,t){t=encodeURIComponent(t);for(var n=0,o=e.split(";");n=e.length&&e.length===r.length)return e;for(var s=e.slice(0,t),a=t;a-1?d:computeNextEntry(n,c,p,f);s.push(h)}return s}function liftInitialState(e,t){return{monitorState:t(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:e,currentStateIndex:0,computedStates:[]}}function liftReducerWith(e,t,n,o){return void 0===o&&(o={}),function(i){return function(r,l){var s=r||t,a=s.monitorState,u=s.actionsById,c=s.nextActionId,d=s.stagedActionIds,p=s.skippedActionIds,f=s.committedState,h=s.currentStateIndex,y=s.computedStates;function m(e){for(var t=e,n=d.slice(1,t+1),o=0;ot?h-t:0}r||(u=Object.create(u));var g,v=0;switch(l.type){case RESET:u={0:liftAction(INIT_ACTION)},c=1,d=[0],p=[],f=e,h=0,y=[];break;case COMMIT:u={0:liftAction(INIT_ACTION)},c=1,d=[0],p=[],f=y[h].state,h=0,y=[];break;case ROLLBACK:u={0:liftAction(INIT_ACTION)},c=1,d=[0],p=[],h=0,y=[];break;case TOGGLE_ACTION:var b=l.id,k=p.indexOf(b);p=-1===k?[b].concat(p):p.filter(function(e){return e!==b}),v=d.indexOf(b);break;case SET_ACTIONS_ACTIVE:for(var _=l.start,w=l.end,A=l.active,T=[],C=_;Co.maxAge&&(y=recomputeStates(y,v,i,f,u,d,p),m(d.length-o.maxAge),v=1/0);break;default:v=1/0}return y=recomputeStates(y,v,i,f,u,d,p),{monitorState:a=n(a,l),actionsById:u,nextActionId:c,stagedActionIds:d,skippedActionIds:p,committedState:f,currentStateIndex:h,computedStates:y}}}}var StoreDevtoolsConfig=function(){},STORE_DEVTOOLS_CONFIG=new __WEBPACK_IMPORTED_MODULE_0__angular_core__.InjectionToken("@ngrx/devtools Options"),INITIAL_OPTIONS=new __WEBPACK_IMPORTED_MODULE_0__angular_core__.InjectionToken("@ngrx/devtools Initial Config"),DevtoolsDispatcher=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(__WEBPACK_IMPORTED_MODULE_1__ngrx_store__.a),StoreDevtools=function(){function e(e,t,n,o,i,r,l){var s=liftInitialState(r,l.monitor),a=liftReducerWith(r,s,l.monitor,l.maxAge?{maxAge:l.maxAge}:{}),u=applyOperators(t.asObservable(),[[__WEBPACK_IMPORTED_MODULE_7_rxjs_operator_skip__.skip,1],[__WEBPACK_IMPORTED_MODULE_4_rxjs_operator_merge__.merge,o.actions$],[__WEBPACK_IMPORTED_MODULE_3_rxjs_operator_map__.map,liftAction],[__WEBPACK_IMPORTED_MODULE_4_rxjs_operator_merge__.merge,e,o.liftedActions$],[__WEBPACK_IMPORTED_MODULE_5_rxjs_operator_observeOn__.observeOn,__WEBPACK_IMPORTED_MODULE_9_rxjs_scheduler_queue__.queue]]),c=__WEBPACK_IMPORTED_MODULE_3_rxjs_operator_map__.map.call(n,a),d=new __WEBPACK_IMPORTED_MODULE_2_rxjs_ReplaySubject__.ReplaySubject(1),p=applyOperators(u,[[__WEBPACK_IMPORTED_MODULE_8_rxjs_operator_withLatestFrom__.withLatestFrom,c],[__WEBPACK_IMPORTED_MODULE_6_rxjs_operator_scan__.scan,function(e,t){var n=t[0],i=(0,t[1])(e.state,n);return o.notify(n,i),{state:i,action:n}},{state:s,action:null}]]).subscribe(function(e){var t=e.action;d.next(e.state),t.type===PERFORM_ACTION&&i.next(t.action)}),f=d.asObservable(),h=__WEBPACK_IMPORTED_MODULE_3_rxjs_operator_map__.map.call(f,unliftState);this.stateSubscription=p,this.dispatcher=e,this.liftedState=f,this.state=h}return e.prototype.dispatch=function(e){this.dispatcher.next(e)},e.prototype.next=function(e){this.dispatcher.next(e)},e.prototype.error=function(e){},e.prototype.complete=function(){},e.prototype.performAction=function(e){this.dispatch(new PerformAction(e))},e.prototype.reset=function(){this.dispatch(new Reset)},e.prototype.rollback=function(){this.dispatch(new Rollback)},e.prototype.commit=function(){this.dispatch(new Commit)},e.prototype.sweep=function(){this.dispatch(new Sweep)},e.prototype.toggleAction=function(e){this.dispatch(new ToggleAction(e))},e.prototype.jumpToState=function(e){this.dispatch(new JumpToState(e))},e.prototype.importState=function(e){this.dispatch(new ImportState(e))},e}(),IS_EXTENSION_OR_MONITOR_PRESENT=new __WEBPACK_IMPORTED_MODULE_0__angular_core__.InjectionToken("Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(e,t){return Boolean(e)||t.monitor!==noMonitor}function createReduxDevtoolsExtension(){return"object"==typeof window&&"undefined"!=typeof window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null}function createStateObservable(e){return e.state}function noMonitor(){return null}function createConfig(e){var t={maxAge:!1,monitor:noMonitor},n="function"==typeof e?e():e,o=Object.assign({},t,n);if(o.maxAge&&o.maxAge<2)throw new Error("Devtools 'maxAge' cannot be less than 2, got "+o.maxAge);return o}var StoreDevtoolsModule=function(){function e(){}return e.instrument=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:t},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:__WEBPACK_IMPORTED_MODULE_1__ngrx_store__.l,deps:[StoreDevtools],useFactory:createStateObservable},{provide:__WEBPACK_IMPORTED_MODULE_1__ngrx_store__.h,useExisting:DevtoolsDispatcher}]}},e}()},Yh8Q:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("rCTf"),r=n("RRVv"),l=n("jBEF"),s=n("fWbP");t.ArrayObservable=function(e){function t(t,n){e.call(this),this.array=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return o(t,e),t.create=function(e,n){return new t(e,n)},t.of=function(){for(var e=[],n=0;n1?new t(e,o):1===i?new r.ScalarObservable(e[0],o):new l.EmptyObservable(o)},t.dispatch=function(e){var t=e.array,n=e.index,o=e.subscriber;n>=e.count?o.complete():(o.next(t[n]),o.closed||(e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.array,o=n.length,i=this.scheduler;if(i)return i.schedule(t.dispatch,0,{array:n,index:0,count:o,subscriber:e});for(var r=0;r'},t.prototype.getName=function(){return"MoveMouseMacroAction"},i([l.assertInt16,r("design:type",Number)],t.prototype,"x",void 0),i([l.assertInt16,r("design:type",Number)],t.prototype,"y",void 0),t}(s.MacroAction)},ao60:function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.KeyMacroAction=0]="KeyMacroAction",e[e.LastKeyMacroAction=63]="LastKeyMacroAction",e[e.MouseButtonMacroAction=64]="MouseButtonMacroAction",e[e.LastMouseButtonMacroAction=66]="LastMouseButtonMacroAction",e[e.MoveMouseMacroAction=67]="MoveMouseMacroAction",e[e.ScrollMouseMacroAction=68]="ScrollMouseMacroAction",e[e.DelayMacroAction=69]="DelayMacroAction",e[e.TextMacroAction=70]="TextMacroAction"}(o=t.MacroActionId||(t.MacroActionId={})),function(e){e[e.tap=0]="tap",e[e.press=1]="press",e[e.release=2]="release"}(t.MacroKeySubAction||(t.MacroKeySubAction={})),function(e){e[e.click=0]="click",e[e.hold=1]="hold",e[e.release=2]="release"}(t.MacroMouseSubAction||(t.MacroMouseSubAction={})),t.macroActionType={KeyMacroAction:"key",MouseButtonMacroAction:"mouseButton",MoveMouseMacroAction:"moveMouse",ScrollMouseMacroAction:"scrollMouse",DelayMacroAction:"delay",TextMacroAction:"text"},t.MacroAction=function(){function e(){}return e.prototype.assertMacroActionType=function(e){var n=this.getName();if(e.macroActionType!==t.macroActionType[n])throw"Invalid "+n+".macroActionType: "+e.macroActionType},e.prototype.readAndAssertMacroActionId=function(e){var t=this.getName(),n=e.readUInt8(),i=o[t];if(i===o.KeyMacroAction){if(no.LastKeyMacroAction)throw"Invalid "+t+" first byte: "+n}else if(i===o.MouseButtonMacroAction){if(no.LastMouseButtonMacroAction)throw"Invalid "+t+" first byte: "+n}else if(n!==i)throw"Invalid "+t+" first byte: "+n;return n},e}()},at4H:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return l}),n.d(t,"d",function(){return s}),n.d(t,"f",function(){return a}),n.d(t,"k",function(){return u}),n.d(t,"j",function(){return c}),n.d(t,"i",function(){return d}),n.d(t,"e",function(){return p}),n.d(t,"h",function(){return f}),n.d(t,"l",function(){return h}),n.d(t,"g",function(){return y}),n.d(t,"b",function(){return m});var o=n("gI3A"),i=(n.n(o),"[user-config] "),r={LOAD_USER_CONFIG:Object(o.type)(i+"Load User Config"),LOAD_CONFIG_FROM_DEVICE:Object(o.type)(i+"Load User Config from Device"),LOAD_CONFIG_FROM_DEVICE_REPLY:Object(o.type)(i+"Load User Config from Device reply"),LOAD_USER_CONFIG_SUCCESS:Object(o.type)(i+"Load User Config Success"),SAVE_USER_CONFIG_SUCCESS:Object(o.type)(i+"Save User Config Success"),SAVE_USER_CONFIG_IN_JSON_FILE:Object(o.type)(i+"Save User Config in JSON file"),SAVE_USER_CONFIG_IN_BIN_FILE:Object(o.type)(i+"Save User Config in binary file"),LOAD_RESET_USER_CONFIGURATION:Object(o.type)(i+"Load reset user configuration"),RENAME_USER_CONFIGURATION:Object(o.type)(i+"Rename user configuration"),SET_USER_CONFIGURATION_VALUE:Object(o.type)(i+"Set user configuration value"),LOAD_USER_CONFIGURATION_FROM_FILE:Object(o.type)(i+"Load user configuration from file"),APPLY_USER_CONFIGURATION_FROM_FILE:Object(o.type)(i+"Apply user configuration from file")},l=function(){return function(){this.type=r.LOAD_CONFIG_FROM_DEVICE}}(),s=function(){return function(e){this.payload=e,this.type=r.LOAD_CONFIG_FROM_DEVICE_REPLY}}(),a=function(){return function(e){this.payload=e,this.type=r.LOAD_USER_CONFIG_SUCCESS}}(),u=function(){return function(e){this.payload=e,this.type=r.SAVE_USER_CONFIG_SUCCESS}}(),c=function(){return function(){this.type=r.SAVE_USER_CONFIG_IN_JSON_FILE}}(),d=function(){return function(){this.type=r.SAVE_USER_CONFIG_IN_BIN_FILE}}(),p=function(){return function(e){this.payload=e,this.type=r.LOAD_RESET_USER_CONFIGURATION}}(),f=function(){return function(e){this.payload=e,this.type=r.RENAME_USER_CONFIGURATION}}(),h=function(){return function(e){this.payload=e,this.type=r.SET_USER_CONFIGURATION_VALUE}}(),y=function(){return function(e){this.payload=e,this.type=r.LOAD_USER_CONFIGURATION_FROM_FILE}}(),m=function(){return function(e){this.payload=e,this.type=r.APPLY_USER_CONFIGURATION_FROM_FILE}}()},bBHq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.appStarted="app-started",e.getAppStartInfo="app-get-start-info",e.getAppStartInfoReply="app-get-start-info-reply",e.exit="app-exit",e.openUrl="open-url",e}();t.App=o;var i=function(){function e(){}return e.checkingForUpdate="checking-for-update",e.updateAvailable="update-available",e.updateNotAvailable="update-not-available",e.autoUpdateError="auto-update-error",e.autoUpdateDownloaded="update-downloaded",e.autoUpdateDownloadProgress="auto-update-download-progress",e.updateAndRestart="update-and-restart",e.checkForUpdate="check-for-update",e.checkForUpdateNotAvailable="check-for-update-not-available",e}();t.AutoUpdate=i;var r=function(){function e(){}return e.setPrivilegeOnLinux="set-privilege-on-linux",e.setPrivilegeOnLinuxReply="set-privilege-on-linux-reply",e.deviceConnectionStateChanged="device-connection-state-changed",e.saveUserConfiguration="device-save-user-configuration",e.saveUserConfigurationReply="device-save-user-configuration-reply",e.loadConfigurations="device-load-configuration",e.loadConfigurationReply="device-load-configuration-reply",e.updateFirmware="device-update-firmware",e.updateFirmwareReply="device-update-firmware-reply",e.startConnectionPoller="device-start-connection-poller",e.recoveryDevice="device-recovery",e}();t.Device=r,t.IpcEvents=function(){function e(){}return e.app=o,e.autoUpdater=i,e.device=r,e}()},bBiI:function(e,t,n){"use strict";var o=n("c8IX");t.first=function(e,t,n){return o.first(e,t,n)(this)}},bE1M:function(e,t,n){"use strict";var o=n("oBYf");t.concatMap=function(e,t){return o.concatMap(e,t)(this)}},bfOx:function(e,t,n){"use strict";n.d(t,"o",function(){return St}),n.d(t,"n",function(){return Et}),n.d(t,"q",function(){return Rt}),n.d(t,"d",function(){return S}),n.d(t,"e",function(){return M}),n.d(t,"s",function(){return E}),n.d(t,"l",function(){return gt}),n.d(t,"m",function(){return Ct}),n.d(t,"k",function(){return bt}),n.d(t,"i",function(){return Vt}),n.d(t,"j",function(){return Zt}),n.d(t,"p",function(){return Ht}),n.d(t,"b",function(){return It}),n.d(t,"f",function(){return Lt}),n.d(t,"g",function(){return jt}),n.d(t,"h",function(){return Nt}),n.d(t,"r",function(){return Ut}),n.d(t,"a",function(){return Fe}),n.d(t,"t",function(){return _t}),n.d(t,"c",function(){return ue}),n.d(t,"u",function(){return ae}),n.d(t,"v",function(){return Ft}),n.d(t,"B",function(){return Yt}),n.d(t,"C",function(){return Qt}),n.d(t,"D",function(){return Jt}),n.d(t,"y",function(){return qt}),n.d(t,"x",function(){return Wt}),n.d(t,"A",function(){return Gt}),n.d(t,"w",function(){return Bt}),n.d(t,"z",function(){return $t});var o=n("Xjw4"),i=n("WT6e"),r=n("TToO"),l=n("TfWX"),s=n("EEr4"),a=n("lgiQ"),u=n("bE1M"),c=n("xAJs"),d=n("XO5T"),p=n("rCTf"),f=n("PKvP"),h=n("+4ur"),y=n("CfHE"),m=n("bBiI"),g=n("F7Al"),v=n("ioK+"),b=n("83T1"),k=n("7nvF"),_=n("cbuX"),w=n("pgP5"),A=n("OE0E"),T=n("ack3"),C=function(e,t){this.id=e,this.url=t},x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(C),O=function(e){function t(t,n,o){var i=e.call(this,t,n)||this;return i.urlAfterRedirects=o,i}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(C),S=function(e){function t(t,n,o){var i=e.call(this,t,n)||this;return i.reason=o,i}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(C),M=function(e){function t(t,n,o){var i=e.call(this,t,n)||this;return i.error=o,i}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(C),E=function(e){function t(t,n,o,i){var r=e.call(this,t,n)||this;return r.urlAfterRedirects=o,r.state=i,r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(C),P=function(e){function t(t,n,o,i){var r=e.call(this,t,n)||this;return r.urlAfterRedirects=o,r.state=i,r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(C),I=function(e){function t(t,n,o,i,r){var l=e.call(this,t,n)||this;return l.urlAfterRedirects=o,l.state=i,l.shouldActivate=r,l}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},t}(C),R=function(e){function t(t,n,o,i){var r=e.call(this,t,n)||this;return r.urlAfterRedirects=o,r.state=i,r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(C),D=function(e){function t(t,n,o,i){var r=e.call(this,t,n)||this;return r.urlAfterRedirects=o,r.state=i,r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(C),N=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},e}(),j=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},e}(),L=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),U=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),V=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),F=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),K="primary",B=function(){function e(e){this.params=e||{}}return e.prototype.has=function(e){return this.params.hasOwnProperty(e)},e.prototype.get=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null},e.prototype.getAll=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]},Object.defineProperty(e.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),e}();function H(e){return new B(e)}function W(e,t,n){var o=n.path.split("/");if(o.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||o.length0?e[e.length-1]:null}function X(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function ee(e){var t=_.mergeAll.call(e);return b.every.call(t,function(e){return!0===e})}function te(e){return Object(i["\u0275isObservable"])(e)?e:Object(i["\u0275isPromise"])(e)?Object(v.fromPromise)(Promise.resolve(e)):Object(a.of)(e)}function ne(e,t,n){return n?function(e,t){return Q(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!le(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var o in n.children){if(!t.children[o])return!1;if(!e(t.children[o],n.children[o]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return t[n]===e[n]})}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,o,i){if(n.segments.length>i.length)return!!le(l=n.segments.slice(0,i.length),i)&&!o.hasChildren();if(n.segments.length===i.length){if(!le(n.segments,i))return!1;for(var r in o.children){if(!n.children[r])return!1;if(!e(n.children[r],o.children[r]))return!1}return!0}var l=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!le(n.segments,l)&&!!n.children[K]&&t(n.children[K],o,s)}(t,n,n.segments)}(e.root,t.root)}var oe=function(){function e(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}return Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=H(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return ce.serialize(this)},e}(),ie=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,X(t,function(e,t){return e.parent=n})}return e.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return de(this)},e}(),re=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=H(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return ge(this)},e}();function le(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function se(e,t){var n=[];return X(e.children,function(e,o){o===K&&(n=n.concat(t(e,o)))}),X(e.children,function(e,o){o!==K&&(n=n.concat(t(e,o)))}),n}var ae=function(){},ue=function(){function e(){}return e.prototype.parse=function(e){var t=new we(e);return new oe(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){var t,n;return"/"+function e(t,n){if(!t.hasChildren())return de(t);if(n){var o=t.children[K]?e(t.children[K],!1):"",i=[];return X(t.children,function(t,n){n!==K&&i.push(n+":"+e(t,!1))}),i.length>0?o+"("+i.join("//")+")":o}var r=se(t,function(n,o){return o===K?[e(t.children[K],!1)]:[o+":"+e(n,!1)]});return de(t)+"/("+r.join("//")+")"}(e.root,!0)+(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return fe(e)+"="+fe(t)}).join("&"):fe(e)+"="+fe(n)})).length?"?"+n.join("&"):"")+("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"")},e}(),ce=new ue;function de(e){return e.segments.map(function(e){return ge(e)}).join("/")}function pe(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fe(e){return pe(e).replace(/%3B/gi,";")}function he(e){return pe(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ye(e){return decodeURIComponent(e)}function me(e){return ye(e.replace(/\+/g,"%20"))}function ge(e){return""+he(e.path)+(t=e.parameters,Object.keys(t).map(function(e){return";"+he(e)+"="+he(t[e])}).join(""));var t}var ve=/^[^\/()?;=&#]+/;function be(e){var t=e.match(ve);return t?t[0]:""}var ke=/^[^=?&#]+/,_e=/^[^?&#]+/,we=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ie([],{}):new ie([],this.parseChildren())},e.prototype.parseQueryParams=function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e},e.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},e.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[K]=new ie(e,t)),n},e.prototype.parseSegment=function(){var e=be(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new re(ye(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=be(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var o=be(this.remaining);o&&this.capture(n=o)}e[ye(t)]=ye(n)}},e.prototype.parseQueryParam=function(e){var t,n=(t=this.remaining.match(ke))?t[0]:"";if(n){this.capture(n);var o="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(_e);return t?t[0]:""}(this.remaining);i&&this.capture(o=i)}var r=me(n),l=me(o);if(e.hasOwnProperty(r)){var s=e[r];Array.isArray(s)||(e[r]=s=[s]),s.push(l)}else e[r]=l}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=be(this.remaining),o=this.remaining[n.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=K);var r=this.parseChildren();t[i]=1===Object.keys(r).length?r[K]:new ie([],r),this.consumeOptional("//")}return t},e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.consumeOptional=function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)},e.prototype.capture=function(e){if(!this.consumeOptional(e))throw new Error('Expected "'+e+'".')},e}(),Ae=function(e){this.segmentGroup=e||null},Te=function(e){this.urlTree=e};function Ce(e){return new p.Observable(function(t){return t.error(new Ae(e))})}function xe(e){return new p.Observable(function(t){return t.error(new Te(e))})}function Oe(e){return new p.Observable(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+e+"'"))})}var Se=function(){function e(e,t,n,o,r){this.configLoader=t,this.urlSerializer=n,this.urlTree=o,this.config=r,this.allowRedirects=!0,this.ngModule=e.get(i.NgModuleRef)}return e.prototype.apply=function(){var e=this,t=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,K),n=c.map.call(t,function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)});return h._catch.call(n,function(t){if(t instanceof Te)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof Ae)throw e.noMatchError(t);throw t})},e.prototype.match=function(e){var t=this,n=this.expandSegmentGroup(this.ngModule,this.config,e.root,K),o=c.map.call(n,function(n){return t.createUrlTree(n,e.queryParams,e.fragment)});return h._catch.call(o,function(e){if(e instanceof Ae)throw t.noMatchError(e);throw e})},e.prototype.noMatchError=function(e){return new Error("Cannot match any routes. URL Segment: '"+e.segmentGroup+"'")},e.prototype.createUrlTree=function(e,t,n){var o,i=e.segments.length>0?new ie([],((o={})[K]=e,o)):e;return new oe(i,t,n)},e.prototype.expandSegmentGroup=function(e,t,n,o){return 0===n.segments.length&&n.hasChildren()?c.map.call(this.expandChildren(e,t,n),function(e){return new ie([],e)}):this.expandSegment(e,n,t,n.segments,o,!0)},e.prototype.expandChildren=function(e,t,n){var o=this;return function(n,i){if(0===Object.keys(n).length)return Object(a.of)({});var r=[],l=[],s={};X(n,function(n,i){var a=c.map.call(o.expandSegmentGroup(e,t,n,i),function(e){return s[i]=e});i===K?r.push(a):l.push(a)});var u=y.concatAll.call(a.of.apply(void 0,r.concat(l))),d=k.last.call(u);return c.map.call(d,function(){return s})}(n.children)},e.prototype.expandSegment=function(e,t,n,o,i,r){var l=this,s=a.of.apply(void 0,n),u=c.map.call(s,function(s){var u=l.expandSegmentAgainstRoute(e,t,n,s,o,i,r);return h._catch.call(u,function(e){if(e instanceof Ae)return Object(a.of)(null);throw e})}),d=y.concatAll.call(u),p=m.first.call(d,function(e){return!!e});return h._catch.call(p,function(e,n){if(e instanceof g.EmptyError||"EmptyError"===e.name){if(l.noLeftoversInUrl(t,o,i))return Object(a.of)(new ie([],{}));throw new Ae(t)}throw e})},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.expandSegmentAgainstRoute=function(e,t,n,o,i,r,l){return Ie(o)!==r?Ce(t):void 0===o.redirectTo?this.matchSegmentAgainstRoute(e,t,o,i):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,o,i,r):Ce(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,o,i,r){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,o,r):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,o,i,r)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,n,o){var i=this,r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?xe(r):d.mergeMap.call(this.lineralizeSegments(n,r),function(n){var r=new ie(n,{});return i.expandSegment(e,r,t,n,o,!1)})},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,o,i,r){var l=this,s=Me(t,o,i),a=s.consumedSegments,u=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return Ce(t);var p=this.applyRedirectCommands(a,o.redirectTo,c);return o.redirectTo.startsWith("/")?xe(p):d.mergeMap.call(this.lineralizeSegments(o,p),function(o){return l.expandSegment(e,t,n,o.concat(i.slice(u)),r,!1)})},e.prototype.matchSegmentAgainstRoute=function(e,t,n,o){var i=this;if("**"===n.path)return n.loadChildren?c.map.call(this.configLoader.load(e.injector,n),function(e){return n._loadedConfig=e,new ie(o,{})}):Object(a.of)(new ie(o,{}));var l=Me(t,n,o),s=l.consumedSegments,u=l.lastChild;if(!l.matched)return Ce(t);var p=o.slice(u),f=this.getChildConfig(e,n);return d.mergeMap.call(f,function(e){var n=e.module,o=e.routes,l=function(e,t,n,o){return n.length>0&&function(e,t,n){return o.some(function(n){return Pe(e,t,n)&&Ie(n)!==K})}(e,n)?{segmentGroup:Ee(new ie(t,function(e,t){var n={};n[K]=t;for(var o=0,i=e;o1||!o.children[K])return Oe(e.redirectTo);o=o.children[K]}},e.prototype.applyRedirectCommands=function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,n,o){var i=this.createSegmentGroup(e,t.root,n,o);return new oe(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return X(e,function(e,o){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[o]=t[i]}else n[o]=e}),n},e.prototype.createSegmentGroup=function(e,t,n,o){var i=this,r=this.createSegments(e,t.segments,n,o),l={};return X(t.children,function(t,r){l[r]=i.createSegmentGroup(e,t,n,o)}),new ie(r,l)},e.prototype.createSegments=function(e,t,n,o){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,o):i.findOrReturn(t,n)})},e.prototype.findPosParam=function(e,t,n){var o=n[t.path.substring(1)];if(!o)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return o},e.prototype.findOrReturn=function(e,t){for(var n=0,o=0,i=t;o0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var o=(t.matcher||W)(n,e,t);return o?{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,positionalParamSegments:o.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ee(e){if(1===e.numberOfChildren&&e.children[K]){var t=e.children[K];return new ie(e.segments.concat(t.segments),t.children)}return e}function Pe(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Ie(e){return e.outlet||K}var Re=function(){function e(e){this._root=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),e.prototype.parent=function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null},e.prototype.children=function(e){var t=De(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=De(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=Ne(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})},e.prototype.pathFromRoot=function(e){return Ne(e,this._root).map(function(e){return e.value})},e}();function De(e,t){if(e===t.value)return t;for(var n=0,o=t.children;n=1;){var i=n[o],l=n[o-1];if(i.routeConfig&&""===i.routeConfig.path)o--;else{if(l.component)break;o--}}return function(e){return e.reduce(function(e,t){return{params:Object(r.__assign)({},e.params,t.params),data:Object(r.__assign)({},e.data,t.data),resolve:Object(r.__assign)({},e.resolve,t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(o))}var Be=function(){function e(e,t,n,o,i,r,l,s,a,u,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=o,this.data=i,this.outlet=r,this.component=l,this.routeConfig=s,this._urlSegment=a,this._lastPathIndex=u,this._resolve=c}return Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=H(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=H(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},e}(),He=function(e){function t(t,n){var o=e.call(this,n)||this;return o.url=t,We(o,n),o}return Object(r.__extends)(t,e),t.prototype.toString=function(){return qe(this._root)},t}(Re);function We(e,t){t.value._routerState=e,t.children.forEach(function(t){return We(e,t)})}function qe(e){var t=e.children.length>0?" { "+e.children.map(qe).join(", ")+" } ":"";return""+e.value+t}function ze(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Q(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Q(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&Ge(n[0]))throw new Error("Root segment cannot have matrix parameters");var o=n.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(o&&o!==Z(n))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}(),Je=function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n};function Ze(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[K]:""+e}function Xe(e,t,n){if(e||(e=new ie([],{})),0===e.segments.length&&e.hasChildren())return et(e,t,n);var o=function(e,t,n){for(var o=0,i=t,r={match:!1,pathIndex:0,commandIndex:0};i=n.length)return r;var l=e.segments[i],s=Ze(n[o]),a=o0&&void 0===s)break;if(s&&a&&"object"==typeof a&&void 0===a.outlets){if(!it(s,a,l))return r;o+=2}else{if(!it(s,{},l))return r;o++}i++}return{match:!0,pathIndex:i,commandIndex:o}}(e,t,n),i=n.slice(o.commandIndex);if(o.match&&o.pathIndex0?Z(n).parameters:{};i=new Be(n,a,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,yt(e),o,e.component,e,ct(t),dt(t)+n.length,mt(e))}else{var u=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new at;return{consumedSegments:[],lastChild:0,parameters:{}}}var o=(t.matcher||W)(n,e,t);if(!o)throw new at;var i={};X(o.posParams,function(e,t){i[t]=e.path});var l=o.consumed.length>0?Object(r.__assign)({},i,o.consumed[o.consumed.length-1].parameters):i;return{consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:l}}(t,e,n);l=u.consumedSegments,s=n.slice(u.lastChild),i=new Be(l,u.parameters,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,yt(e),o,e.component,e,ct(t),dt(t)+l.length,mt(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),d=pt(t,l,s,c),p=d.segmentGroup,f=d.slicedSegments;if(0===f.length&&p.hasChildren()){var h=this.processChildren(c,p);return[new je(i,h)]}if(0===c.length&&0===f.length)return[new je(i,[])];var y=this.processSegment(c,p,f,K);return[new je(i,y)]},e}();function ct(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function dt(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function pt(e,t,n,o){if(n.length>0&&function(e,t,n){return o.some(function(n){return ft(e,t,n)&&ht(n)!==K})}(e,n)){var i=new ie(t,function(e,t,n,o){var i={};i[K]=o,o._sourceSegment=e,o._segmentIndexShift=t.length;for(var r=0,l=n;r0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function ht(e){return e.outlet||K}function yt(e){return e.data||{}}function mt(e){return e.resolve||{}}var gt=function(){},vt=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),bt=new i.InjectionToken("ROUTES"),kt=function(){function e(e,t,n,o){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=o}return e.prototype.load=function(e,t){var n=this;this.onLoadStartListener&&this.onLoadStartListener(t);var o=this.loadModuleFactory(t.loadChildren);return c.map.call(o,function(o){n.onLoadEndListener&&n.onLoadEndListener(t);var i=o.create(e);return new q(J(i.injector.get(bt)).map(Y),i)})},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?Object(v.fromPromise)(this.loader.load(e)):d.mergeMap.call(te(e()),function(e){return e instanceof i.NgModuleFactory?Object(a.of)(e):Object(v.fromPromise)(t.compiler.compileModuleAsync(e))})},e}(),_t=function(){},wt=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}();function At(e){throw e}function Tt(e){return Object(a.of)(null)}var Ct=function(){function e(e,t,n,o,r,a,u,c){var d=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=o,this.config=c,this.navigations=new l.BehaviorSubject(null),this.navigationId=0,this.events=new s.Subject,this.errorHandler=At,this.navigated=!1,this.hooks={beforePreactivation:Tt,afterPreactivation:Tt},this.urlHandlingStrategy=new wt,this.routeReuseStrategy=new vt,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.ngModule=r.get(i.NgModuleRef),this.resetConfig(c),this.currentUrlTree=new oe(new ie([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new kt(a,u,function(e){return d.triggerEvent(new N(e))},function(e){return d.triggerEvent(new j(e))}),this.routerState=Ve(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return e.prototype.resetRootComponentType=function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType},e.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},e.prototype.setUpLocationChangeListener=function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.urlSerializer.parse(t.url),o="popstate"===t.type?"popstate":"hashchange";setTimeout(function(){e.scheduleNavigation(n,o,{replaceUrl:!0})},0)}))},Object.defineProperty(e.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),e.prototype.triggerEvent=function(e){this.events.next(e)},e.prototype.resetConfig=function(e){z(e),this.config=e.map(Y),this.navigated=!1},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},e.prototype.createUrlTree=function(e,t){void 0===t&&(t={});var n=t.relativeTo,o=t.queryParams,l=t.fragment,s=t.preserveQueryParams,a=t.queryParamsHandling,u=t.preserveFragment;Object(i.isDevMode)()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,d=u?this.currentUrlTree.fragment:l,p=null;if(a)switch(a){case"merge":p=Object(r.__assign)({},this.currentUrlTree.queryParams,o);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null}else p=s?this.currentUrlTree.queryParams:o||null;return null!==p&&(p=this.removeEmptyProps(p)),function(e,t,n,o,i){if(0===n.length)return Ye(t.root,t.root,t,o,i);var r=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Qe(!0,0,e);var t=0,n=!1,o=e.reduce(function(e,o,i){if("object"==typeof o&&null!=o){if(o.outlets){var r={};return X(o.outlets,function(e,t){r[t]="string"==typeof e?e.split("/"):e}),e.concat([{outlets:r}])}if(o.segmentPath)return e.concat([o.segmentPath])}return"string"!=typeof o?e.concat([o]):0===i?(o.split("/").forEach(function(o,i){0==i&&"."===o||(0==i&&""===o?n=!0:".."===o?t++:""!=o&&e.push(o))}),e):e.concat([o])},[]);return new Qe(n,t,o)}(n);if(r.toRoot())return Ye(t.root,new ie([],{}),t,o,i);var l=function(e,n,o){if(e.isAbsolute)return new Je(t.root,!0,0);if(-1===o.snapshot._lastPathIndex)return new Je(o.snapshot._urlSegment,!0,0);var i=Ge(e.commands[0])?0:1;return function(t,n,r){for(var l=o.snapshot._urlSegment,s=o.snapshot._lastPathIndex+i,a=e.numberOfDoubleDots;a>s;){if(a-=s,!(l=l.parent))throw new Error("Invalid number of '../'");s=l.segments.length}return new Je(l,!1,s-a)}()}(r,0,e),s=l.processChildren?et(l.segmentGroup,l.index,r.commands):Xe(l.segmentGroup,l.index,r.commands);return Ye(l.segmentGroup,s,t,o,i)}(c,this.currentUrlTree,e,p,d)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1});var n=e instanceof oe?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),function(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:o,n=null,i=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var o=t.length,i=0;i1?t-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:l;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),o=0;o=2?function(n){return l.pipe(o.scan(e,t),i.takeLast(1),r.defaultIfEmpty(t))(n)}:function(t){return l.pipe(o.scan(function(t,n,o){return e(t,n,o+1)}),i.takeLast(1))(t)}}},dyjq:function(e,t,n){"use strict";n.d(t,"n",function(){return Y}),n.d(t,"m",function(){return q}),n.d(t,"w",function(){return m}),n.d(t,"x",function(){return g}),n.d(t,"y",function(){return v}),n.d(t,"a",function(){return I}),n.d(t,"b",function(){return P}),n.d(t,"g",function(){return L}),n.d(t,"i",function(){return D}),n.d(t,"h",function(){return N}),n.d(t,"p",function(){return j}),n.d(t,"j",function(){return V}),n.d(t,"k",function(){return B}),n.d(t,"l",function(){return K}),n.d(t,"d",function(){return k}),n.d(t,"s",function(){return w}),n.d(t,"f",function(){return _}),n.d(t,"q",function(){return T}),n.d(t,"c",function(){return A}),n.d(t,"r",function(){return b}),n.d(t,"e",function(){return C}),n.d(t,"t",function(){return O}),n.d(t,"o",function(){return $}),n.d(t,"v",function(){return Z}),n.d(t,"u",function(){return Q});var o,i=n("WT6e"),r=n("TfWX"),l=n("rCTf"),s=n("EEr4"),a=n("RA5l"),u=(n.n(a),n("Ji1B")),c=(n.n(u),n("u2wr")),d=(n.n(c),n("td8d")),p=(n.n(d),n("xAJs")),f=n("U9ky"),h=(n.n(f),n("8hgl")),y=(n.n(h),this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}));function m(e,t){void 0===t&&(t={});for(var n=Object.keys(e),o={},i=0;i0?g.apply(null,t.concat([e])):e}var b=new i.InjectionToken("@ngrx/store Internal Initial State"),k=new i.InjectionToken("@ngrx/store Initial State"),_=new i.InjectionToken("@ngrx/store Reducer Factory"),w=new i.InjectionToken("@ngrx/store Reducer Factory Provider"),A=new i.InjectionToken("@ngrx/store Initial Reducers"),T=new i.InjectionToken("@ngrx/store Internal Initial Reducers"),C=new i.InjectionToken("@ngrx/store Meta Reducers"),x=new i.InjectionToken("@ngrx/store Store Features"),O=new i.InjectionToken("@ngrx/store Internal Store Reducers"),S=new i.InjectionToken("@ngrx/store Internal Feature Reducers"),M=new i.InjectionToken("@ngrx/store Internal Feature Reducers Token"),E=new i.InjectionToken("@ngrx/store Feature Reducers"),P="@ngrx/store/init",I=function(e){function t(){return e.call(this,{type:P})||this}return y(t,e),t.prototype.next=function(t){if("undefined"==typeof t)throw new TypeError("Actions must be objects");if("undefined"==typeof t.type)throw new TypeError("Actions must have a type property");e.prototype.next.call(this,t)},t.prototype.complete=function(){},t.prototype.ngOnDestroy=function(){e.prototype.complete.call(this)},t}(r.BehaviorSubject),R=[I],D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t}(l.Observable),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t}(I),j="@ngrx/store/update-reducers",L=function(e){function t(t,n,o,i){var r=e.call(this,i(o,n))||this;return r.dispatcher=t,r.initialState=n,r.reducers=o,r.reducerFactory=i,r}return y(t,e),t.prototype.addFeature=function(e){var t=e.reducers,n=e.initialState,o=e.key,i="function"==typeof t?function(e,o){return void 0===e&&(e=n),t(e,o)}:v(e.reducerFactory,e.metaReducers)(t,n);this.addReducer(o,i)},t.prototype.removeFeature=function(e){this.removeReducer(e.key)},t.prototype.addReducer=function(e,t){var n;this.reducers=Object.assign({},this.reducers,((n={})[e]=t,n)),this.updateReducers()},t.prototype.removeReducer=function(e){var t,n;this.reducers=(t=this.reducers,n=e,Object.keys(t).filter(function(e){return e!==n}).reduce(function(e,n){return Object.assign(e,((o={})[n]=t[n],o));var o},{})),this.updateReducers()},t.prototype.updateReducers=function(){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:j})},t.prototype.ngOnDestroy=function(){this.complete()},t}(r.BehaviorSubject),U=[L,{provide:D,useExisting:L},{provide:N,useExisting:I}],V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.ngOnDestroy=function(){this.complete()},t}(s.Subject),F=[V],K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t}(l.Observable),B=function(e){function t(t,n,o,i){var r=e.call(this,i)||this,l=u.observeOn.call(t,a.queue),s=c.withLatestFrom.call(l,n),p=d.scan.call(s,H,i);return r.stateSubscription=p.subscribe({next:function(e){var t=e.action;r.next(e.state),o.next(t)}}),r}return y(t,e),t.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe(),this.complete()},t}(r.BehaviorSubject);function H(e,t){void 0===e&&(e={state:void 0});var n=t[0];return{state:(0,t[1])(e.state,n),action:n}}B.INIT=P;var W=[B,{provide:K,useExisting:B}],q=function(e){function t(t,n,o){var i=e.call(this)||this;return i.actionsObserver=n,i.reducerManager=o,i.source=t,i}return y(t,e),t.prototype.select=function(e){for(var t,n=[],o=1;o'},o([r.assertUInt8,i("design:type",Number)],e.prototype,"majorVersion",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"minorVersion",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"patchVersion",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"brandId",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"deviceId",void 0),o([r.assertUInt32,i("design:type",Number)],e.prototype,"uniqueId",void 0),e}()},hTTC:function(e,t,n){"use strict";(function(t){var n=[],o="",i=/^on/;for(o in t)i.test(o)&&n.push(o.slice(2));e.exports=n}).call(t,n("srjU"))},hYBY:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("VOfZ"),r=n("rCTf");function l(e){var t=e.subscriber;t.closed||(t.next(e.value),t.complete())}function s(e){var t=e.subscriber;t.closed||t.error(e.err)}t.PromiseObservable=function(e){function t(t,n){e.call(this),this.promise=t,this.scheduler=n}return o(t,e),t.create=function(e,n){return new t(e,n)},t.prototype._subscribe=function(e){var t=this,n=this.promise,o=this.scheduler;if(null==o)this._isScalar?e.closed||(e.next(this.value),e.complete()):n.then(function(n){t.value=n,t._isScalar=!0,e.closed||(e.next(n),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){i.root.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return o.schedule(l,0,{value:this.value,subscriber:e})}else n.then(function(n){t.value=n,t._isScalar=!0,e.closed||e.add(o.schedule(l,0,{value:n,subscriber:e}))},function(t){e.closed||e.add(o.schedule(s,0,{err:t,subscriber:e}))}).then(null,function(e){i.root.setTimeout(function(){throw e})})},t}(r.Observable)},iIfT:function(e,t,n){"use strict";var o=n("rCTf"),i=n("Ffu+");o.Observable.prototype.pairwise=i.pairwise},ijov:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("Yh8Q"),r=n("Xajo"),l=n("wAkD"),s=n("CURp"),a={};t.combineLatest=function(){for(var e=[],t=0;t-1?e:s({},e,{log:e.log.concat([{message:u.message,cssClass:"error"===u.level?o.error:o.standard}])});case i.a.MODULES_INFO_LOADED:return s({},e,{modules:t.payload});case i.a.RESET_USER_CONFIGURATION:case i.a.RESTORE_CONFIGURATION_FROM_BACKUP:return s({},e,{restoringUserConfiguration:!0});case i.a.HAS_BACKUP_USER_CONFIGURATION:return s({},e,{hasBackupUserConfiguration:t.payload});case i.a.RESTORE_CONFIGURATION_FROM_BACKUP_SUCCESS:return s({},e,{hasBackupUserConfiguration:!1});case i.a.RECOVERY_DEVICE:return s({},e,{updatingFirmware:!0,log:[{message:"",cssClass:o.standard}]});default:return e}},n.d(t,"i",function(){return u}),n.d(t,"g",function(){return c}),n.d(t,"f",function(){return d}),n.d(t,"e",function(){return p}),n.d(t,"j",function(){return f}),n.d(t,"c",function(){return h}),n.d(t,"d",function(){return y}),n.d(t,"b",function(){return m}),n.d(t,"a",function(){return g});var s=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n=i.MacroActionId.KeyMacroAction&&t<=i.MacroActionId.LastKeyMacroAction)return(new r.KeyMacroAction).fromBinary(e);if(t>=i.MacroActionId.MouseButtonMacroAction&&t<=i.MacroActionId.LastMouseButtonMacroAction)return(new l.MouseButtonMacroAction).fromBinary(e);switch(t){case i.MacroActionId.MoveMouseMacroAction:return(new s.MoveMouseMacroAction).fromBinary(e);case i.MacroActionId.ScrollMouseMacroAction:return(new a.ScrollMouseMacroAction).fromBinary(e);case i.MacroActionId.DelayMacroAction:return(new u.DelayMacroAction).fromBinary(e);case i.MacroActionId.TextMacroAction:return(new c.TextMacroAction).fromBinary(e);default:throw"Invalid MacroAction first byte: "+t}},e.fromMacroAction=function(e){var t;return e instanceof r.KeyMacroAction?t=new r.KeyMacroAction(e):e instanceof l.MouseButtonMacroAction?t=new l.MouseButtonMacroAction(e):e instanceof s.MoveMouseMacroAction?t=new s.MoveMouseMacroAction(e):e instanceof a.ScrollMouseMacroAction?t=new a.ScrollMouseMacroAction(e):e instanceof u.DelayMacroAction?t=new u.DelayMacroAction(e):e instanceof c.TextMacroAction&&(t=new c.TextMacroAction(e)),t},e.fromJSONObject=function(e){switch(e.macroActionType){case i.macroActionType.KeyMacroAction:return(new r.KeyMacroAction).fromJsonObject(e);case i.macroActionType.MouseButtonMacroAction:return(new l.MouseButtonMacroAction).fromJsonObject(e);case i.macroActionType.MoveMouseMacroAction:return(new s.MoveMouseMacroAction).fromJsonObject(e);case i.macroActionType.ScrollMouseMacroAction:return(new a.ScrollMouseMacroAction).fromJsonObject(e);case i.macroActionType.DelayMacroAction:return(new u.DelayMacroAction).fromJsonObject(e);case i.macroActionType.TextMacroAction:return(new c.TextMacroAction).fromJsonObject(e);default:throw'Invalid MacroAction.macroActionType: "'+e.macroActionType+'"'}},e}()},kZql:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var o={production:!0}},kkb0:function(e,t,n){"use strict";var o=n("FDBB"),i=n("1KT0");t.mergeStatic=i.merge,t.merge=function(){for(var e=[],t=0;t>>=1)e.push(Boolean(1&t));return e},t.prototype.toString=function(){return''},t.prototype.hasButtons=function(){return 0!==this.mouseButtonsMask},t.prototype.isOnlyClickAction=function(){return this.action===s.MacroMouseSubAction.click},t.prototype.isOnlyHoldAction=function(){return this.action===s.MacroMouseSubAction.hold},t.prototype.isOnlyReleaseAction=function(){return this.action===s.MacroMouseSubAction.release},t.prototype.getName=function(){return"MouseButtonMacroAction"},i([l.assertEnum(s.MacroMouseSubAction),r("design:type",Number)],t.prototype,"action",void 0),i([l.assertUInt8,r("design:type",Number)],t.prototype,"mouseButtonsMask",void 0),t}(s.MacroAction)},lgiQ:function(e,t,n){"use strict";var o=n("Yh8Q");t.of=o.ArrayObservable.of},lyLw:function(e,t,n){"use strict";var o=n("Nkju"),i=n("WWez");e.exports=function(e,t){var n=t||{},r={};return void 0===e&&(e={}),e.on=function(t,n){return r[t]?r[t].push(n):r[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var o=arguments.length;if(1===o)delete r[t];else if(0===o)r={};else{var i=r[t];if(!i)return e;i.splice(i.indexOf(n),1)}return e},e.emit=function(){var t=o(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var l=(r[t]||[]).slice(0);return function(){var r=o(arguments),s=this||e;if("error"===t&&!1!==n.throws&&!l.length)throw 1===r.length?r[0]:r;return l.forEach(function(o){n.async?i(o,r,s):o.apply(s,r),o._once&&e.off(t,o)}),e}},e}},mbVC:function(e,t,n){"use strict";var o=n("VOfZ");function i(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}t.getSymbolObservable=i,t.observable=i(o.root),t.$$observable=t.observable},mmVS:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("SKH6"),r=n("B00U"),l=n("yrou"),s=n("r8ZY"),a=function(e){function t(t,n,o){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l.empty;break;case 1:if(!t){this.destination=l.empty;break}if("object"==typeof t){if(c(t)){var i=t[s.rxSubscriber]();this.syncErrorThrowable=i.syncErrorThrowable,this.destination=i,i.add(this)}else this.syncErrorThrowable=!0,this.destination=new u(this,t);break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,n,o)}}return o(t,e),t.prototype[s.rxSubscriber]=function(){return this},t.create=function(e,n,o){var i=new t(e,n,o);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(r.Subscription);t.Subscriber=a;var u=function(e){function t(t,n,o,r){var s;e.call(this),this._parentSubscriber=t;var a=this;i.isFunction(n)?s=n:n&&(s=n.next,o=n.error,r=n.complete,n!==l.empty&&(a=Object.create(n),i.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=s,this._error=o,this._complete=r}return o(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,n){try{t.call(this._context,n)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(a);function c(e){return e instanceof a||"syncErrorThrowable"in e&&e[s.rxSubscriber]}},mp4z:function(e,t,n){"use strict";var o=n("TToO").__decorate,i=n("WT6e"),r=n("rlkT"),l=n("rlkT");t.Select2Component=l.Select2Component;var s=function(){};s=o([i.NgModule({declarations:[r.Select2Component],exports:[r.Select2Component]})],s),t.Select2Module=s},oBYf:function(e,t,n){"use strict";var o=n("ANGw");t.concatMap=function(e,t){return o.mergeMap(e,t,1)}},oZkx:function(e,t,n){"use strict";var o=n("rKQy");t.concatAll=function(){return o.mergeAll(1)}},ob4r:function(e,t,n){"use strict";var o={},i="(?:^|\\s)",r="(?:\\s|$)";function l(e){var t=o[e];return t?t.lastIndex=0:o[e]=t=new RegExp(i+e+r,"g"),t}e.exports={add:function(e,t){var n=e.className;n.length?l(t).test(n)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(l(t)," ").trim()}}},offc:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("wAkD"),r=n("CURp");t.withLatestFrom=function(){for(var e=[],t=0;t0){var l=r.indexOf(n);-1!==l&&r.splice(l,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(i.OuterSubscriber)},okk1:function(e,t,n){"use strict";var o=n("rCTf"),i=n("bBiI");o.Observable.prototype.first=i.first},ov8r:function(e,t,n){"use strict";var o=n("xgwM").__decorate,i=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var r=n("CmJd"),l=n("4uS6");t.Module=function(){function e(e){e&&(this.id=e.id,this.keyActions=e.keyActions.map(function(e){return l.KeyActionHelper.createKeyAction(e)}))}return e.prototype.fromJsonObject=function(e,t){return this.id=e.id,this.keyActions=e.keyActions.map(function(e){return l.KeyActionHelper.createKeyAction(e,t)}),this},e.prototype.fromBinary=function(e,t){this.id=e.readUInt8();var n=e.readCompactLength();this.keyActions=[];for(var o=0;o'},e.prototype.renameKeymap=function(t,n){var o,i=this,r=!1;if(this.keyActions.forEach(function(e,l){if(e){var s=e.renameKeymap(t,n);s!==e&&(r||(o=i.keyActions.slice(),r=!0),o[l]=s)}}),r){var l=Object.assign(new e,this);return l.keyActions=o,l}return this},o([r.assertUInt8,i("design:type",Number)],e.prototype,"id",void 0),e}()},"p/p0":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS"),r=n("F7Al");t.last=function(e,t,n){return function(o){return o.lift(new l(e,t,n,o))}};var l=function(){function e(e,t,n,o){this.predicate=e,this.resultSelector=t,this.defaultValue=n,this.source=o}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.predicate,this.resultSelector,this.defaultValue,this.source))},e}(),s=function(e){function t(t,n,o,i,r){e.call(this,t),this.predicate=n,this.resultSelector=o,this.defaultValue=i,this.source=r,this.hasValue=!1,this.index=0,"undefined"!=typeof i&&(this.lastValue=i,this.hasValue=!0)}return o(t,e),t.prototype._next=function(e){var t=this.index++;if(this.predicate)this._tryPredicate(e,t);else{if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},t.prototype._tryPredicate=function(e,t){var n;try{n=this.predicate(e,t,this.source)}catch(e){return void this.destination.error(e)}if(n){if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},t.prototype._tryResultSelector=function(e,t){var n;try{n=this.resultSelector(e,t)}catch(e){return void this.destination.error(e)}this.lastValue=n,this.hasValue=!0},t.prototype._complete=function(){var e=this.destination;this.hasValue?(e.next(this.lastValue),e.complete()):e.error(new r.EmptyError)},t}(i.Subscriber)},pgP5:function(e,t,n){"use strict";var o=n("dt7L");t.reduce=function(e,t){return arguments.length>=2?o.reduce(e,t)(this):o.reduce(e)(this)}},pxzT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("4uS6");(t.ConfigSerializer||(t.ConfigSerializer={})).resolveSwitchKeymapActions=function(e){for(var t=0,n=e;t.select2-results__options,.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:1px solid #000;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:0 0;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top,#fff 50%,#eee 100%);background-image:-o-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top,#eee 50%,#ccc 100%);background-image:-o-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:4px 0 0 4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top,#fff 0,#eee 50%);background-image:-o-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top,#eee 50%,#fff 100%);background-image:-o-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}"}return e.prototype.ngOnInit=function(){if(this.cssImport){var e=document.getElementsByTagName("head")[0];if(!e.children[e.children.length-1].version){var t=this.renderer.createElement(e,"style");this.renderer.setElementProperty(t,"type","text/css"),this.renderer.setElementProperty(t,"version","select2"),this.renderer.setElementProperty(t,"innerHTML",this.style)}}},e.prototype.ngOnChanges=function(e){if(this.element){if(e.data&&JSON.stringify(e.data.previousValue)!==JSON.stringify(e.data.currentValue)){this.initPlugin();var t=this.element.val();this.valueChanged.emit({value:t})}e.value&&e.value.previousValue!==e.value.currentValue&&(this.setElementValue(t=e.value.currentValue),this.valueChanged.emit({value:t})),e.disabled&&e.disabled.previousValue!==e.disabled.currentValue&&this.renderer.setElementProperty(this.selector.nativeElement,"disabled",this.disabled)}},e.prototype.ngAfterViewInit=function(){var e=this;this.element=jQuery(this.selector.nativeElement),this.initPlugin(),"undefined"!=typeof this.value&&this.setElementValue(this.value),this.element.on("select2:select select2:unselect",function(){e.valueChanged.emit({value:e.element.val()})})},e.prototype.ngOnDestroy=function(){this.element.off("select2:select")},e.prototype.initPlugin=function(){var e=this;if(this.element.select2){1==this.element.hasClass("select2-hidden-accessible")&&(this.element.select2("destroy"),this.renderer.setElementProperty(this.selector.nativeElement,"innerHTML",""));var t={data:this.data,width:this.width?this.width:"resolve"};Object.assign(t,this.options),t.matcher?jQuery.fn.select2.amd.require(["select2/compat/matcher"],function(n){t.matcher=n(t.matcher),e.element.select2(t),"undefined"!=typeof e.value&&e.setElementValue(e.value)}):this.element.select2(t),this.disabled&&this.renderer.setElementProperty(this.selector.nativeElement,"disabled",this.disabled)}else this.check||(this.check=!0,console.log("Please add Select2 library (js file) to the project. You can download it from https://github.com/select2/select2/tree/master/dist/js."))},e.prototype.setElementValue=function(e){if(Array.isArray(e))for(var t=0,n=this.selector.nativeElement.options;t-1&&this.renderer.setElementProperty(o,"selected","true")}else this.renderer.setElementProperty(this.selector.nativeElement,"value",e);this.element.val(e),this.element.trigger("change.select2")},e}();o([r.ViewChild("selector"),i("design:type",r.ElementRef)],l.prototype,"selector",void 0),o([r.Input(),i("design:type",Array)],l.prototype,"data",void 0),o([r.Input(),i("design:type",Object)],l.prototype,"value",void 0),o([r.Input(),i("design:type",Boolean)],l.prototype,"cssImport",void 0),o([r.Input(),i("design:type",String)],l.prototype,"width",void 0),o([r.Input(),i("design:type",Boolean)],l.prototype,"disabled",void 0),o([r.Input(),i("design:type",Object)],l.prototype,"options",void 0),o([r.Output(),i("design:type",Object)],l.prototype,"valueChanged",void 0),l=o([r.Component({selector:"select2",template:"",encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],l),t.Select2Component=l},"s+3b":function(e,t,n){"use strict";var o=n("Ilbw");t.dragula=o.dragula;var i=n("xiuF");t.DragulaDirective=i.DragulaDirective;var r=n("LKU8");t.DragulaService=r.DragulaService;var l=n("+GbP");t.DragulaModule=l.DragulaModule},sAZ4:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("wAkD"),r=n("CURp");t.switchMap=function(e,t){return function(n){return n.lift(new l(e,t))}};var l=function(){function e(e,t){this.project=e,this.resultSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.resultSelector))},e}(),s=function(e){function t(t,n,o){e.call(this,t),this.project=n,this.resultSelector=o,this.index=0}return o(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var o=this.innerSubscription;o&&o.unsubscribe(),this.add(this.innerSubscription=r.subscribeToResult(this,e,t,n))},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,o,i){this.resultSelector?this._tryNotifyNext(e,t,n,o):this.destination.next(t)},t.prototype._tryNotifyNext=function(e,t,n,o){var i;try{i=this.resultSelector(e,t,n,o)}catch(e){return void this.destination.error(e)}this.destination.next(i)},t}(i.OuterSubscriber)},sIYO:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("EEr4"),r=n("rCTf"),l=(n("mmVS"),n("B00U")),s=n("9dR0"),a=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return o(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new l.Subscription).add(this.source.subscribe(new c(this.getSubject(),this))),e.closed?(this._connection=null,e=l.Subscription.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return s.refCount()(this)},t}(r.Observable);t.ConnectableObservable=a;var u=a.prototype;t.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:u._subscribe},_isComplete:{value:u._isComplete,writable:!0},getSubject:{value:u.getSubject},connect:{value:u.connect},refCount:{value:u.refCount}};var c=function(e){function t(t,n){e.call(this,t),this.connectable=n}return o(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(i.SubjectSubscriber)},sKfG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.transferRegExp=/USB\[T]:/,e.writeRegExp=/USB\[W]:/,e.readRegExp=/USB\[R]: 00/,e.errorRegExp=/(?:(USB\[R]: ([^0]|0[^0])))/}(t.LogRegExps||(t.LogRegExps={}))},sOR5:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},sTFn:function(e,t,n){"use strict";var o=n("6BaH"),i=n("9dR0"),r=n("EEr4");function l(){return new r.Subject}t.share=function(){return function(e){return i.refCount()(o.multicast(l)(e))}}},"sb+e":function(e,t,n){"use strict";t.letProto=function(e){return e(this)}},srjU:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},t2qv:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("rCTf"),r=n("jBEF"),l=n("Xajo"),s=n("CURp"),a=n("wAkD");t.ForkJoinObservable=function(e){function t(t,n){e.call(this),this.sources=t,this.resultSelector=n}return o(t,e),t.create=function(){for(var e=[],n=0;n'},t.prototype.getName=function(){return"TextMacroAction"},t}(i.MacroAction)},tXwt:function(e,t,n){"use strict";t.b=function(e,t){switch(void 0===e&&(e=i),t.type){case o.a.UPDATE_AVAILABLE:return(n=Object.assign({},e)).updateAvailable=!0,n;case o.a.UPDATE_DOWNLOADED:return(n=Object.assign({},e)).updateDownloaded=!0,n;case o.a.DO_NOT_UPDATE_APP:var n;return(n=Object.assign({},e)).doNotUpdateApp=!0,n;default:return e}},n.d(t,"a",function(){return r});var o=n("va3Z"),i={updateAvailable:!1,updateDownloaded:!1,doNotUpdateApp:!1},r=function(e){return e.updateDownloaded&&!e.doNotUpdateApp}},td8d:function(e,t,n){"use strict";var o=n("UYy0");t.scan=function(e,t){return arguments.length>=2?o.scan(e,t)(this):o.scan(e)(this)}},u2wr:function(e,t,n){"use strict";var o=n("offc");t.withLatestFrom=function(){for(var e=[],t=0;t>1,c=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,r=f&(1<<-c)-1,f>>=-c,c+=s;c>0;r=256*r+e[t+d],d+=p,c-=8);for(l=r&(1<<-c)-1,r>>=-c,c+=o;c>0;l=256*l+e[t+d],d+=p,c-=8);if(0===r)r=1-u;else{if(r===a)return l?NaN:1/0*(f?-1:1);l+=Math.pow(2,o),r-=u}return(f?-1:1)*l*Math.pow(2,r-o)},t.write=function(e,t,n,o,i,r){var l,s,a,u=8*r-i-1,c=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:r-1,h=o?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,l=c):(l=Math.floor(Math.log(t)/Math.LN2),t*(a=Math.pow(2,-l))<1&&(l--,a*=2),(t+=l+d>=1?p/a:p*Math.pow(2,1-d))*a>=2&&(l++,a/=2),l+d>=c?(s=0,l=c):l+d>=1?(s=(t*a-1)*Math.pow(2,i),l+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),l=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(l=l<0;e[n+f]=255&l,f+=h,l/=256,u-=8);e[n+f-h]|=128*y}},va3Z:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return l}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return a}),n.d(t,"e",function(){return u});var o=n("gI3A"),i=(n.n(o),"[app-update] "),r={UPDATE_AVAILABLE:Object(o.type)(i+"update available"),UPDATE_APP:Object(o.type)(i+"update app"),DO_NOT_UPDATE_APP:Object(o.type)(i+"do not update app"),UPDATE_DOWNLOADED:Object(o.type)(i+"update downloaded"),UPDATING:Object(o.type)(i+"updating"),UPDATE_ERROR:Object(o.type)(i+"error")},l=function(){return function(){this.type=r.UPDATE_APP}}(),s=function(){return function(){this.type=r.DO_NOT_UPDATE_APP}}(),a=function(){return function(){this.type=r.UPDATE_DOWNLOADED}}(),u=function(){return function(e){this.payload=e,this.type=r.UPDATE_ERROR}}()},vvwv:function(e,t,n){"use strict";var o=n("jBEF");t.empty=o.EmptyObservable.create},vx8o:function(e,t,n){"use strict";(function(t){var o=n("lyLw"),i=n("qjx7"),r=n("ob4r"),l=document,s=l.documentElement;function a(e,n,o,r){t.navigator.pointerEnabled?i[n](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[o],r):t.navigator.msPointerEnabled?i[n](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[o],r):(i[n](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[o],r),i[n](e,o,r))}function u(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function c(e,n){return"undefined"!=typeof t[n]?t[n]:s.clientHeight?s[e]:l.body[e]}function d(e,t,n){var o,i=e||{},r=i.className;return i.className+=" gu-hide",o=l.elementFromPoint(t,n),i.className=r,o}function p(){return!1}function f(){return!0}function h(e){return e.width||e.right-e.left}function y(e){return e.height||e.bottom-e.top}function m(e){return e.parentNode===l?null:e.parentNode}function g(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||function e(t){return!!t&&"false"!==t.contentEditable&&("true"===t.contentEditable||e(m(t)))}(e)}function v(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function b(e,t){var n=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),o={pageX:"clientX",pageY:"clientY"};return e in o&&!(e in n)&&o[e]in n&&(e=o[e]),n[e]}e.exports=function(e,t){var n,k,_,w,A,T,C,x,O,S,M;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var E,P=null,I=t||{};void 0===I.moves&&(I.moves=f),void 0===I.accepts&&(I.accepts=f),void 0===I.invalid&&(I.invalid=function(){return!1}),void 0===I.containers&&(I.containers=e||[]),void 0===I.isContainer&&(I.isContainer=p),void 0===I.copy&&(I.copy=!1),void 0===I.copySortSource&&(I.copySortSource=!1),void 0===I.revertOnSpill&&(I.revertOnSpill=!1),void 0===I.removeOnSpill&&(I.removeOnSpill=!1),void 0===I.direction&&(I.direction="vertical"),void 0===I.ignoreInputTextSelection&&(I.ignoreInputTextSelection=!0),void 0===I.mirrorContainer&&(I.mirrorContainer=l.body);var R=o({containers:I.containers,start:function(e){var t=K(e);t&&B(t)},end:H,cancel:G,remove:$,destroy:function(){N(!0),q({})},canMove:function(e){return!!K(e)},dragging:!1});return!0===I.removeOnSpill&&R.on("over",function(e){r.rm(e,"gu-hide")}).on("out",function(e){R.dragging&&r.add(e,"gu-hide")}),N(),R;function D(e){return-1!==R.containers.indexOf(e)||I.isContainer(e)}function N(e){var t=e?"remove":"add";a(s,t,"mousedown",V),a(s,t,"mouseup",q)}function j(e){a(s,e?"remove":"add","mousemove",F)}function L(e){var t=e?"remove":"add";i[t](s,"selectstart",U),i[t](s,"click",U)}function U(e){E&&e.preventDefault()}function V(e){if(T=e.clientX,C=e.clientY,1===u(e)&&!e.metaKey&&!e.ctrlKey){var t=e.target,n=K(t);n&&(E=n,j(),"mousedown"===e.type&&(g(t)?t.focus():e.preventDefault()))}}function F(e){if(E)if(0!==u(e)){if(void 0===e.clientX||e.clientX!==T||void 0===e.clientY||e.clientY!==C){if(I.ignoreInputTextSelection){var t=b("clientX",e),o=b("clientY",e);if(g(l.elementFromPoint(t,o)))return}var i=E;j(!0),L(),H(),B(i);var d,p={left:(d=_.getBoundingClientRect()).left+c("scrollLeft","pageXOffset"),top:d.top+c("scrollTop","pageYOffset")};w=b("pageX",e)-p.left,A=b("pageY",e)-p.top,r.add(S||_,"gu-transit"),function(){if(!n){var e=_.getBoundingClientRect();(n=_.cloneNode(!0)).style.width=h(e)+"px",n.style.height=y(e)+"px",r.rm(n,"gu-transit"),r.add(n,"gu-mirror"),I.mirrorContainer.appendChild(n),a(s,"add","mousemove",Z),r.add(I.mirrorContainer,"gu-unselectable"),R.emit("cloned",n,_,"mirror")}}(),Z(e)}}else q({})}function K(e){if(!(R.dragging&&n||D(e))){for(var t=e;m(e)&&!1===D(m(e));){if(I.invalid(e,t))return;if(!(e=m(e)))return}var o=m(e);if(o&&!I.invalid(e,t)&&I.moves(e,o,t,v(e)))return{item:e,source:o}}}function B(e){("boolean"==typeof I.copy?I.copy:I.copy(e.item,e.source))&&(S=e.item.cloneNode(!0),R.emit("cloned",S,e.item,"copy")),k=e.source,_=e.item,x=O=v(e.item),R.dragging=!0,R.emit("drag",_,k)}function H(){if(R.dragging){var e=S||_;z(e,m(e))}}function W(){E=!1,j(!0),L(!0)}function q(e){if(W(),R.dragging){var t=S||_,o=b("clientX",e),i=b("clientY",e),r=J(d(n,o,i),o,i);r&&(S&&I.copySortSource||!S||r!==k)?z(t,r):I.removeOnSpill?$():G()}}function z(e,t){var n=m(e);S&&I.copySortSource&&t===k&&n.removeChild(_),Q(t)?R.emit("cancel",e,k,k):R.emit("drop",e,t,k,O),Y()}function $(){if(R.dragging){var e=S||_,t=m(e);t&&t.removeChild(e),R.emit(S?"cancel":"remove",e,t,k),Y()}}function G(e){if(R.dragging){var t=arguments.length>0?e:I.revertOnSpill,n=S||_,o=m(n),i=Q(o);!1===i&&t&&(S?o&&o.removeChild(S):k.insertBefore(n,x)),i||t?R.emit("cancel",n,k,k):R.emit("drop",n,o,k,O),Y()}}function Y(){var e=S||_;W(),n&&(r.rm(I.mirrorContainer,"gu-unselectable"),a(s,"remove","mousemove",Z),m(n).removeChild(n),n=null),e&&r.rm(e,"gu-transit"),M&&clearTimeout(M),R.dragging=!1,P&&R.emit("out",e,P,k),R.emit("dragend",e),k=_=S=x=O=M=P=null}function Q(e,t){var o;return o=void 0!==t?t:n?O:v(S||_),e===k&&o===x}function J(e,t,n){for(var o=e;o&&!i();)o=m(o);return o;function i(){if(!1===D(o))return!1;var i=X(o,e),r=ee(o,i,t,n);return!!Q(o,r)||I.accepts(_,o,k,r)}}function Z(e){if(n){e.preventDefault();var t=b("clientX",e),o=b("clientY",e),i=o-A;n.style.left=t-w+"px",n.style.top=i+"px";var r=S||_,l=d(n,t,o),s=J(l,t,o),a=null!==s&&s!==P;(a||null===s)&&(P&&f("out"),P=s,a&&f("over"));var u=m(r);if(s!==k||!S||I.copySortSource){var c,p=X(s,l);if(null!==p)c=ee(s,p,t,o);else{if(!0!==I.revertOnSpill||S)return void(S&&u&&u.removeChild(r));c=x,s=k}(null===c&&a||c!==r&&c!==v(r))&&(O=c,s.insertBefore(r,c),R.emit("shadow",r,s,k))}else u&&u.removeChild(r)}function f(e){R.emit(e,r,P,k)}}function X(e,t){for(var n=t;n!==e&&m(n)!==e;)n=m(n);return n===s?null:n}function ee(e,t,n,o){var i,r="horizontal"===I.direction;return t!==e?(i=t.getBoundingClientRect(),(r?n>i.left+h(i)/2:o>i.top+y(i)/2)?v(t):t):function(){var t,i,l,s=e.children.length;for(t=0;tn)return i;if(!r&&l.top+l.height/2>o)return i}return null}()}}}).call(t,n("srjU"))},"w+X5":function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"h",function(){return l}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return a}),n.d(t,"b",function(){return u}),n.d(t,"i",function(){return c}),n.d(t,"e",function(){return d}),n.d(t,"f",function(){return p}),n.d(t,"g",function(){return f});var o=n("gI3A"),i=(n.n(o),"[app-update-config] "),r={TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP:Object(o.type)(i+"Check for update on startup"),CHECK_FOR_UPDATE_NOW:Object(o.type)(i+"Check for update now"),CHECK_FOR_UPDATE_SUCCESS:Object(o.type)(i+"Check for update success"),CHECK_FOR_UPDATE_FAILED:Object(o.type)(i+"Check for update faild"),TOGGLE_PRE_RELEASE_FLAG:Object(o.type)(i+"Toggle pre release update flag"),LOAD_AUTO_UPDATE_SETTINGS:Object(o.type)(i+"Load auto update settings"),LOAD_AUTO_UPDATE_SETTINGS_SUCCESS:Object(o.type)(i+"Load auto update settings success"),SAVE_AUTO_UPDATE_SETTINGS_SUCCESS:Object(o.type)(i+"Save auto update settings success")},l=function(){return function(e){this.payload=e,this.type=r.TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP}}(),s=function(){return function(){this.type=r.CHECK_FOR_UPDATE_NOW}}(),a=function(){return function(e){this.payload=e,this.type=r.CHECK_FOR_UPDATE_SUCCESS}}(),u=function(){return function(e){this.payload=e,this.type=r.CHECK_FOR_UPDATE_FAILED}}(),c=function(){return function(e){this.payload=e,this.type=r.TOGGLE_PRE_RELEASE_FLAG}}(),d=function(){return function(){this.type=r.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS}}(),p=function(){return function(e){this.payload=e,this.type=r.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS}}(),f=function(){return function(){this.type=r.SAVE_AUTO_UPDATE_SETTINGS_SUCCESS}}()},wAkD:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.OuterSubscriber=function(e){function t(){e.apply(this,arguments)}return o(t,e),t.prototype.notifyNext=function(e,t,n,o,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(i.Subscriber)},wogf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("H5FS"),i=n("4KnF"),r=n("I5Xr"),l=n("MkTX"),s=n("9PEG"),a=n("78zf"),u=n("Fq1u"),c=n("HiVc"),d=n("Oz3Z");function p(e){return e.hasSecondaryRoleAction()||e.hasActiveModifier()||e.hasScancode()&&d.isScancodeExists(e.scancode)}t.Helper=function(){function e(){}return e.createKeyAction=function(t,n){return t instanceof i.KeyAction?e.fromKeyAction(t):t instanceof o.UhkBuffer?e.fromUhkBuffer(t,n):e.fromJSONObject(t,n)},e.fromUhkBuffer=function(e,t){var n=e.readUInt8();if(e.backtrack(),n>=i.KeyActionId.KeystrokeAction&&n',styles:["\n :host {\n display: block;\n margin-top: 1rem;\n margin-bottom: 1rem;\n }\n "],providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:i.forwardRef(function(){return e}),multi:!0}]}]}],e.propDecorators={disabled:[{type:i.Input}],behaviour:[{type:i.Input}],connect:[{type:i.Input}],limit:[{type:i.Input}],min:[{type:i.Input}],max:[{type:i.Input}],step:[{type:i.Input}],format:[{type:i.Input}],pageSteps:[{type:i.Input}],config:[{type:i.Input}],ngModel:[{type:i.Input}],keyboard:[{type:i.Input}],onKeydown:[{type:i.Input}],formControl:[{type:i.Input}],tooltips:[{type:i.Input}],change:[{type:i.Output}],update:[{type:i.Output}],slide:[{type:i.Output}],set:[{type:i.Output}],start:[{type:i.Output}],end:[{type:i.Output}]},e}();t.NouisliderComponent=s,t.NouisliderModule=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{imports:[],exports:[s],declarations:[s]}]}],e}()},xAJs:function(e,t,n){"use strict";var o=n("9omE");t.map=function(e,t){return o.map(e,t)(this)}},xOQQ:function(e,t,n){"use strict";var o=n("rCTf"),i=n("U9ky");o.Observable.prototype.pluck=i.pluck},"xW7+":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var o=function(e){return e[e.ANSI=0]="ANSI",e[e.ISO=1]="ISO",e}({})},xgwM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__extends=function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"__assign",function(){return i}),t.__rest=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i=0;s--)(i=e[s])&&(l=(r<3?i(l):r>3?i(t,n,l):i(t,n))||l);return r>3&&l&&Object.defineProperty(t,n,l),l},t.__param=function(e,t){return function(n,o){t(n,o,e)}},t.__metadata=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},t.__awaiter=function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function l(e){try{a(o.next(e))}catch(e){r(e)}}function s(e){try{a(o.throw(e))}catch(e){r(e)}}function a(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(l,s)}a((o=o.apply(e,t||[])).next())})},t.__generator=function(e,t){var n,o,i,r,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,o&&(i=o[2&r[0]?"return":r[0]?"throw":"next"])&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[0,i.value]),r[0]){case 0:case 1:i=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,o=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(!(i=(i=l.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]1||a(e,t)})})}function a(e,t){try{(n=i[e](t)).value instanceof s?Promise.resolve(n.value.v).then(u,c):d(r[0][2],n)}catch(e){d(r[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function d(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}},t.__asyncDelegator=function(e){var t,n;return t={},o("next"),o("throw",function(e){throw e}),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,i){e[o]&&(t[o]=function(t){return(n=!n)?{value:s(e[o](t)),done:"return"===o}:i?i(t):t})}},t.__asyncValues=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):"function"==typeof r?r(e):e[Symbol.iterator]()},t.__makeTemplateObject=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},t.__importStar=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},t.__importDefault=function(e){return e&&e.__esModule?e:{default:e}};var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)l.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return l}function s(e){return this instanceof s?(this.v=e,this):new s(e)}},xiuF:function(e,t,n){"use strict";var o=n("TToO").__decorate,i=n("TToO").__metadata,r=n("WT6e"),l=(n("LKU8"),n("Ilbw")),s=function(){function e(e,t){this.el=e,this.dragulaService=t,this.container=e.nativeElement}return e.prototype.ngOnInit=function(){var e=this,t=this.dragulaService.find(this.dragula),n=function(){e.dragulaModel&&(e.drake.models?e.drake.models.push(e.dragulaModel):e.drake.models=[e.dragulaModel])};t?(this.drake=t.drake,n(),this.drake.containers.push(this.container)):(this.drake=l.dragula([this.container],Object.assign({},this.dragulaOptions)),n(),this.dragulaService.add(this.dragula,this.drake))},e.prototype.ngOnChanges=function(e){if(e&&e.dragulaModel&&this.drake)if(this.drake.models){var t=this.drake.models.indexOf(e.dragulaModel.previousValue);this.drake.models.splice(t,1,e.dragulaModel.currentValue)}else this.drake.models=[e.dragulaModel.currentValue]},e}();o([r.Input(),i("design:type",String)],s.prototype,"dragula",void 0),o([r.Input(),i("design:type",Object)],s.prototype,"dragulaModel",void 0),o([r.Input(),i("design:type",Object)],s.prototype,"dragulaOptions",void 0),s=o([r.Directive({selector:"[dragula]"})],s),t.DragulaDirective=s},y1XC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=function(){function e(){}return e.prototype.error=function(){for(var e=[],t=0;t h2[_ngcontent-%COMP%]{margin-top:10px}.spin-logo[_ngcontent-%COMP%]{-webkit-animation:2s ease-in-out infinite spin;animation:2s ease-in-out infinite spin}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%,50%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%,50%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"]],data:{}});function x(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,14,"span",[["class","uhk-message-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,2,"img",[["class","agent-logo spin-logo"],["src","assets/images/agent-icon.png"]],null,null,null,null,null)),i["\u0275did"](3,278528,null,0,d.i,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pod"](4,{"spin-logo":0}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,7,"div",[["class","messages"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](9,null,[" "," "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),i["\u0275ted"](12,null,[" "," "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,"agent-logo spin-logo",e(t,4,0,t.component.rotateLogo))},function(e,t){var n=t.component;e(t,9,0,n.header),e(t,12,0,n.subtitle)})}n("q3ik"),n("LppN"),n("EoAl");var O=function(){},S=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function M(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"uhk-message",[["header","Cannot find your UHK"],["subtitle","Please plug it in!"]],null,null,null,x,C)),i["\u0275did"](1,49152,null,0,T,[],{header:[0,"header"],subtitle:[1,"subtitle"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,1,0,"Cannot find your UHK","Please plug it in!")},null)}var E=i["\u0275ccf"]("missing-device",O,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"missing-device",[],null,null,null,M,S)),i["\u0275did"](1,49152,null,0,O,[],null,null)],null,null)},{},{},[]),P=n("OE0E"),I=new i.InjectionToken("WindowToken");function R(){return window}var D=function(){},N=function(){function e(e,t){this.document=e,this.window=t}return Object.defineProperty(e.prototype,"isSupported",{get:function(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")},enumerable:!0,configurable:!0}),e.prototype.isTargetValid=function(e){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){if(e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")},e.prototype.copyFromInputElement=function(e){try{this.selectTarget(e);var t=this.copyText();return this.clearSelection(e,this.window),t}catch(e){return!1}},e.prototype.copyFromContent=function(e){return this.tempTextArea||(this.tempTextArea=this.createTempTextArea(this.document,this.window),this.document.body.appendChild(this.tempTextArea)),this.tempTextArea.value=e,this.copyFromInputElement(this.tempTextArea)},e.prototype.destroy=function(){this.tempTextArea&&(this.document.body.removeChild(this.tempTextArea),this.tempTextArea=void 0)},e.prototype.selectTarget=function(e){return e.select(),e.setSelectionRange(0,e.value.length),e.value.length},e.prototype.copyText=function(){return this.document.execCommand("copy")},e.prototype.clearSelection=function(e,t){e&&e.blur(),t.getSelection().removeAllRanges()},e.prototype.createTempTextArea=function(e,t){var n,o="rtl"===e.documentElement.getAttribute("dir");return(n=e.createElement("textarea")).style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[o?"right":"left"]="-9999px",n.style.top=(t.pageYOffset||e.documentElement.scrollTop)+"px",n.setAttribute("readonly",""),n},e}();function j(e,t,n){return n||new N(e,t)}new i.Optional,new i.SkipSelf;var L=function(){function e(e){this.clipboardSrv=e,this.cbOnSuccess=new i.EventEmitter,this.cbOnError=new i.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.clipboardSrv.destroy()},e.prototype.onClick=function(e){this.clipboardSrv.isSupported?this.targetElm&&this.clipboardSrv.isTargetValid(this.targetElm)?this.handleResult(this.clipboardSrv.copyFromInputElement(this.targetElm),this.targetElm.value):this.cbContent&&this.handleResult(this.clipboardSrv.copyFromContent(this.cbContent),this.cbContent):this.handleResult(!1,void 0)},e.prototype.handleResult=function(e,t){e?this.cbOnSuccess.emit({isSuccess:!0,content:t}):this.cbOnError.emit({isSuccess:!1})},e}(),U=function(){function e(e,t){this.elementRef=e,this.sanitizer=t}return e.prototype.ngAfterContentInit=function(){this.init()},e.prototype.ngOnChanges=function(e){e.title&&this.fixTitle()},e.prototype.init=function(){jQuery(this.elementRef.nativeElement).tooltip({placement:this.placement,html:this.html,template:this.getCustomTemplate(),title:this.title})},e.prototype.fixTitle=function(){jQuery(this.elementRef.nativeElement).tooltip({placement:this.placement,html:this.html,template:this.getCustomTemplate(),title:this.title}),jQuery(this.elementRef.nativeElement).attr("title",this.title).tooltip("fixTitle")},e.prototype.getCustomTemplate=function(){var e="",t="";return this.maxWidth&&(e='style="width: '+this.maxWidth+'px;"',t='style="max-width: '+this.maxWidth+'px;"'),'

\n
\n
\n
"},e}(),V=n("fYQU"),F=n("Ji5S"),K=function(){function e(e,t){this.store=e,this.cdRef=t,this.command='cat </etc/udev/rules.d/50-uhk60.rules\n# Ultimate Hacking Keyboard rules\n# These are the udev rules for accessing the USB interfaces of the UHK as non-root users.\n# Copy this file to /etc/udev/rules.d and physically reconnect the UHK afterwards.\nSUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", MODE:="0666"\nEOF\nudevadm trigger\nudevadm settle'}return e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(u.m).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.setUpPermissions=function(){this.store.dispatch(new V.o)},e.prototype.whatWillThisDo=function(){this.store.dispatch(new F.i)},e.prototype.retry=function(){this.store.dispatch(new F.f)},e}(),B=i["\u0275crt"]({encapsulation:0,styles:[[".privilege-checker-wrapper[_ngcontent-%COMP%]{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}uhk-message[_ngcontent-%COMP%]{max-width:50%}.privilege-error[_ngcontent-%COMP%]{-webkit-animation:2s error-fade-in;animation:2s error-fade-in}@-webkit-keyframes error-fade-in{0%{color:#fff;background-color:red}100%{color:inherit;background-color:inherit}}@keyframes error-fade-in{0%{color:#fff;background-color:red}100%{color:inherit;background-color:inherit}}"]],data:{}});function H(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"a",[["class","link-inline"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.whatWillThisDo()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["What will this do?\n "]))],null,null)}function W(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,[["privilegeError",1]],null,4,"p",[["class","privilege-error"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n Agent wasn't able to set up permissions via PolicyKit. This is most likely because the\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["polkit"])),(e()(),i["\u0275ted"](-1,null,[" package is not installed on your system.\n "]))],null,null)}function q(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,15,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n Agent uses the following script to set up permissions. You can run it manually as root, then\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"a",[["class","link-inline"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.retry()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["retry"])),(e()(),i["\u0275ted"](-1,null,[".\n "])),(e()(),i["\u0275eld"](5,0,null,null,9,"div",[["class","copy-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,2,"span",[["class","fa fa-2x fa-copy"],["data-placement","top"],["data-toggle","tooltip"],["ngxClipboard",""],["title","Copy to clipboard"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,8).onClick(n.target)&&o),o},null,null)),i["\u0275did"](8,212992,null,0,L,[N],{targetElm:[0,"targetElm"],cbContent:[1,"cbContent"]},null),i["\u0275did"](9,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),i["\u0275eld"](12,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),i["\u0275ted"](13,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,8,0,"",t.component.command),e(t,9,0,"Copy to clipboard")},function(e,t){var n=t.component;e(t,7,0,i["\u0275nov"](t,9).placement),e(t,13,0,n.command)})}function z(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,22,"div",[["class","privilege-checker-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"uhk-message",[["header","Cannot talk to your UHK"],["subtitle","Your UHK has been detected, but its permissions are not set up yet, so Agent can't talk to it."]],null,null,null,x,C)),i["\u0275did"](3,49152,null,0,T,[],{header:[0,"header"],subtitle:[1,"subtitle"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,"button",[["class","btn btn-default btn-lg btn-primary"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.setUpPermissions()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Set up permissions\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](8,0,null,null,13,"div",[["class","mt-10"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,H)),i["\u0275did"](11,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](13,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,W)),i["\u0275did"](16,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,q)),i["\u0275did"](19,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,"Cannot talk to your UHK","Your UHK has been detected, but its permissions are not set up yet, so Agent can't talk to it."),e(t,11,0,n.state.showWhatWillThisDo),e(t,16,0,n.state.permissionSetupFailed),e(t,19,0,n.state.showWhatWillThisDoContent)},null)}var $=i["\u0275ccf"]("privilege-checker",K,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"privilege-checker",[],null,null,null,z,B)),i["\u0275did"](1,245760,null,0,K,[s.m,i.ChangeDetectorRef],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),G=function(){},Y=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Q(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"uhk-message",[["header","Loading keyboard configuration..."],["subtitle","Hang tight!"]],null,null,null,x,C)),i["\u0275did"](2,49152,null,0,T,[],{header:[0,"header"],subtitle:[1,"subtitle"],rotateLogo:[2,"rotateLogo"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,2,0,"Loading keyboard configuration...","Hang tight!",!0)},null)}var J=i["\u0275ccf"]("loading-device",G,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"loading-device",[],null,null,null,Q,Y)),i["\u0275did"](1,49152,null,0,G,[],null,null)],null,null)},{},{},[]),Z=function(){function e(){this.logs=[]}return e.prototype.ngOnChanges=function(e){var t=this;e.logs&&this.divElement&&this.divElement.nativeElement&&setTimeout(function(){t.divElement.nativeElement.scrollTop=t.divElement.nativeElement.scrollHeight})},e.prototype.getClipboardContent=function(){return this.logs.reduce(function(e,t){return e+t.message+"\n"},"")},e}(),X=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;width:100%;height:100%}.x-term-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;position:relative}.x-term-wrapper[_ngcontent-%COMP%]{background-color:#000;overflow:auto;position:absolute;top:0;left:0;width:100%;height:100%}.copy-container-wrapper[_ngcontent-%COMP%]{position:absolute;top:2px;right:14px}.xterm-standard[_ngcontent-%COMP%]{color:#fff}.xterm-error[_ngcontent-%COMP%]{color:red}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-left:5px}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{content:'$ '}"]],data:{}});function ee(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"li",[],null,null,null,null,null)),i["\u0275did"](1,278528,null,0,d.i,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngClass:[0,"ngClass"]},null),(e()(),i["\u0275eld"](2,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](3,null,["",""]))],function(e,t){e(t,1,0,t.context.$implicit.cssClass)},function(e,t){e(t,3,0,t.context.$implicit.message)})}function te(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{divElement:0}),(e()(),i["\u0275eld"](1,0,null,null,20,"div",[["class","x-term-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,[[1,0],["scrollMe",1]],null,7,"div",[["class","x-term-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,4,"ul",[["class","list-unstyled"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ee)),i["\u0275did"](8,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,8,"div",[["class","copy-container-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,5,"div",[["class","copy-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,2,"span",[["class","fa fa-2x fa-copy"],["data-placement","top"],["data-toggle","tooltip"],["ngxClipboard",""],["title","Copy to clipboard"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,17).onClick(n.target)&&o),o},null,null)),i["\u0275did"](17,212992,null,0,L,[N],{targetElm:[0,"targetElm"],cbContent:[1,"cbContent"]},null),i["\u0275did"](18,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.logs),e(t,17,0,"",n.getClipboardContent()),e(t,18,0,"Copy to clipboard")},function(e,t){e(t,16,0,i["\u0275nov"](t,18).placement)})}var ne=function(){function e(e){this.store=e}return e.prototype.ngOnInit=function(){this.flashFirmwareButtonDisbabled$=this.store.select(u.e),this.xtermLog$=this.store.select(u.v)},e.prototype.onRecoveryDevice=function(){this.store.dispatch(new V.f)},e}(),oe=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"]],data:{}});function ie(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,35,"div",[["class","full-height"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,32,"div",[["class","flex-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,19,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](6,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-wrench"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Fix device"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n Your device seems to be broken. No worries, Agent can fix it.\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,5,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,2,"button",[["class","btn btn-primary"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onRecoveryDevice()&&o),o},null,null)),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["Fix device\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,5,"div",[["class","flex-grow"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](27,0,null,null,2,"xterm",[],null,null,null,te,X)),i["\u0275did"](28,573440,null,0,Z,[],{logs:[0,"logs"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](32,0,null,null,1,"div",[["class","flex-footer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,28,0,i["\u0275unv"](t,28,0,i["\u0275nov"](t,29).transform(n.xtermLog$)))},function(e,t){var n=t.component;e(t,19,0,i["\u0275unv"](t,19,0,i["\u0275nov"](t,20).transform(n.flashFirmwareButtonDisbabled$)))})}var re=i["\u0275ccf"]("device-recovery-mode",ne,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"device-recovery-mode",[["class","container-fluid"]],null,null,null,ie,oe)),i["\u0275did"](1,114688,null,0,ne,[s.m],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),le=n("bfOx"),se=function(){function e(){}return e.prototype.onActivate=function(e,t){t.scrollIntoView()},e}(),ae=i["\u0275crt"]({encapsulation:0,styles:["[_nghost-%COMP%]{height:100%; width:100%}"],data:{}});function ue(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,"div",[["class","split split-horizontal main-page-content"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,16777216,[["outlet",1]],null,1,"router-outlet",[],null,[[null,"activate"]],function(e,t,n){var o=!0;return"activate"===t&&(o=!1!==e.component.onActivate(n,i["\u0275nov"](e,2))&&o),o},null,null)),i["\u0275did"](3,212992,null,0,le.q,[le.b,i.ViewContainerRef,i.ComponentFactoryResolver,[8,null],i.ChangeDetectorRef],null,{activateEvents:"activate"}),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0)},null)}var ce=i["\u0275ccf"]("main-page",se,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"main-page",[],null,null,null,ue,ae)),i["\u0275did"](1,49152,null,0,se,[],null,null)],null,null)},{},{},[]),de=function(){function e(){this.label="Select file",this.fileChanged=new i.EventEmitter}return e.prototype.changeFile=function(e){var t=e.srcElement.files;if(0!==t.length){var n=new FileReader;n.onloadend=(function(){var t=new Uint8Array(n.result);(e.target||e.srcElement||e.currentTarget).value=null,this.fileChanged.emit({filename:e.srcElement.value,data:Array.from(t)})}).bind(this),n.readAsArrayBuffer(t[0])}},e}(),pe=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function fe(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,3,"label",[["class","btn btn-primary btn-file"]],[[2,"disabled",null]],null,null,null,null)),(e()(),i["\u0275ted"](1,null,["\n ","\n "])),(e()(),i["\u0275eld"](2,0,[["inputControl",1]],null,0,"input",[["type","file"]],[[8,"accept",0],[8,"disabled",0]],[[null,"change"]],function(e,t,n){var o=!0;return"change"===t&&(o=!1!==e.component.changeFile(n)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.disabled),e(t,1,0,n.label),e(t,2,0,n.accept,n.disabled)})}var he=function(){function e(){}return e.prototype.getAllStyles=function(e){return window.getComputedStyle(e)},e.prototype.getStyle=function(e,t){return this.getAllStyles(e)[t]},e.prototype.isStaticPositioned=function(e){return"static"===(this.getStyle(e,"position")||"static")},e.prototype.offsetParent=function(e){for(var t=e.offsetParent||document.documentElement;t&&t!==document.documentElement&&this.isStaticPositioned(t);)t=t.offsetParent;return t||document.documentElement},e.prototype.position=function(e,t){var n;void 0===t&&(t=!0);var o={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(e,"position"))n=e.getBoundingClientRect();else{var i=this.offsetParent(e);n=this.offset(e,!1),i!==document.documentElement&&(o=this.offset(i,!1)),o.top+=i.clientTop,o.left+=i.clientLeft}return n.top-=o.top,n.bottom-=o.top,n.left-=o.left,n.right-=o.left,t&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n},e.prototype.offset=function(e,t){void 0===t&&(t=!0);var n=e.getBoundingClientRect(),o=window.pageYOffset-document.documentElement.clientTop,i=window.pageXOffset-document.documentElement.clientLeft,r={height:n.height||e.offsetHeight,width:n.width||e.offsetWidth,top:n.top+o,bottom:n.bottom+o,left:n.left+i,right:n.right+i};return t&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r},e.prototype.positionElements=function(e,t,n,o){var i=o?this.offset(e,!1):this.position(e,!1),r=this.getAllStyles(t),l=t.getBoundingClientRect(),s=n.split("-")[0]||"top",a=n.split("-")[1]||"center",u={height:l.height||t.offsetHeight,width:l.width||t.offsetWidth,top:0,bottom:l.height||t.offsetHeight,left:0,right:l.width||t.offsetWidth};switch(s){case"top":u.top=i.top-(t.offsetHeight+parseFloat(r.marginBottom));break;case"bottom":u.top=i.top+i.height;break;case"left":u.left=i.left-(t.offsetWidth+parseFloat(r.marginRight));break;case"right":u.left=i.left+i.width}switch(a){case"top":u.top=i.top;break;case"bottom":u.top=i.top+i.height-t.offsetHeight;break;case"left":u.left=i.left;break;case"right":u.left=i.left+i.width-t.offsetWidth;break;case"center":"top"===s||"bottom"===s?u.left=i.left+i.width/2-t.offsetWidth/2:u.top=i.top+i.height/2-t.offsetHeight/2}return u.top=Math.round(u.top),u.bottom=Math.round(u.bottom),u.left=Math.round(u.left),u.right=Math.round(u.right),u},e}();new he;var ye=function(){function e(e,t,n,o,r,l,s){this.viewContainerRef=e,this.elm=t,this.defaultOptions=n,this.cfr=o,this.position=r,this.renderer=l,this.document=s,this.isDisabled=!1,this.isOpen=!1,this.isOpenChange=new i.EventEmitter(!0),this.confirm=new i.EventEmitter,this.cancel=new i.EventEmitter,this.popover=null,this.eventListeners=[]}return e.prototype.ngOnInit=function(){this.isOpenChange.emit(!1)},e.prototype.ngOnChanges=function(e){e.isOpen&&(!0===e.isOpen.currentValue?this.showPopover():this.hidePopover())},e.prototype.ngOnDestroy=function(){this.hidePopover()},e.prototype.onConfirm=function(e){this.confirm.emit(e),this.hidePopover()},e.prototype.onCancel=function(e){this.cancel.emit(e),this.hidePopover()},e.prototype.togglePopover=function(){this.popover?this.hidePopover():this.showPopover()},e.prototype.onDocumentClick=function(e){!this.popover||this.elm.nativeElement.contains(e.target)||this.popover.location.nativeElement.contains(e.target)||this.hidePopover()},e.prototype.showPopover=function(){var e=this;if(!this.popover&&!this.isDisabled){this.eventListeners=[this.renderer.listen("document","click",function(t){return e.onDocumentClick(t)}),this.renderer.listen("document","touchend",function(t){return e.onDocumentClick(t)}),this.renderer.listen("window","resize",function(){return e.positionPopover()})];var t=new y;Object.assign(t,this.defaultOptions,{title:this.title,message:this.message,onConfirm:function(t){e.onConfirm(t)},onCancel:function(t){e.onCancel(t)},onAfterViewInit:function(){e.positionPopover()}}),["confirmText","cancelText","placement","confirmButtonType","cancelButtonType","focusButton","hideConfirmButton","hideCancelButton","popoverClass","appendToBody","customTemplate"].forEach(function(n){"undefined"!=typeof e[n]&&(t[n]=e[n])});var n=this.cfr.resolveComponentFactory(m),o=i.ReflectiveInjector.resolve([{provide:y,useValue:t}]),r=i.ReflectiveInjector.fromResolvedProviders(o,this.viewContainerRef.parentInjector);this.popover=this.viewContainerRef.createComponent(n,this.viewContainerRef.length,r),t.appendToBody&&this.document.body.appendChild(this.popover.location.nativeElement),this.isOpenChange.emit(!0)}},e.prototype.positionPopover=function(){if(this.popover){var e=this.popover.location.nativeElement.children[0],t=this.position.positionElements(this.elm.nativeElement,e,this.placement||this.defaultOptions.placement,this.appendToBody||this.defaultOptions.appendToBody);this.renderer.setStyle(e,"top",t.top+"px"),this.renderer.setStyle(e,"left",t.left+"px")}},e.prototype.hidePopover=function(){this.popover&&(this.popover.destroy(),this.popover=null,this.isOpenChange.emit(!1),this.eventListeners.forEach(function(e){return e()}),this.eventListeners=[])},e}(),me=n("at4H"),ge=function(){function e(e){this.store=e}return e.prototype.resetUserConfiguration=function(){this.store.dispatch(new V.h)},e.prototype.saveConfigurationInJSONFormat=function(){this.store.dispatch(new me.j)},e.prototype.saveConfigurationInBINFormat=function(){this.store.dispatch(new me.i)},e.prototype.exportUserConfiguration=function(e){e.shiftKey?this.saveConfigurationInBINFormat():this.saveConfigurationInJSONFormat()},e.prototype.changeFile=function(e){this.store.dispatch(new me.g(e))},e}(),ve=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"]],data:{}});function be(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Device configuration"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275eld"](8,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n The device configuration contains all the keymaps, macros, and settings that are stored on the device.\n"])),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275eld"](11,0,null,null,21,"ul",[["class","list-unstyled btn-list"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,4,"li",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](15,0,null,null,1,"button",[["class","btn btn-primary"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.exportUserConfiguration(n)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Export device configuration\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](21,0,null,null,2,"file-upload",[["label","Import device configuration"]],null,[[null,"fileChanged"]],function(e,t,n){var o=!0;return"fileChanged"===t&&(o=!1!==e.component.changeFile(n)&&o),o},fe,pe)),i["\u0275did"](22,49152,null,0,de,[],{label:[0,"label"]},{fileChanged:"fileChanged"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](26,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","bottom"],["title","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,t,n){var o=!0,r=e.component;return"click"===t&&(o=!1!==i["\u0275nov"](e,29).togglePopover()&&o),"confirm"===t&&(o=!1!==r.resetUserConfiguration()&&o),o},null,null)),i["\u0275did"](29,737280,null,0,ye,[i.ViewContainerRef,i.ElementRef,h,i.ComponentFactoryResolver,he,i.Renderer2,P.b],{title:[0,"title"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),i["\u0275ted"](-1,null,["Reset device configuration\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,22,0,"Import device configuration"),e(t,29,0,"Are you sure?","Yes","No","bottom")},null)}var ke=i["\u0275ccf"]("device-settings",ge,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"device-settings",[["class","container-fluid"]],null,null,null,be,ve)),i["\u0275did"](1,49152,null,0,ge,[s.m],null,null)],null,null)},{},{},[]),_e=function(){function e(){}return e.prototype.ngOnInit=function(){},e}(),we=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.action--edit[_ngcontent-%COMP%]:hover{color:#337ab7;cursor:pointer}.action--trash[_ngcontent-%COMP%]:hover{color:#d9534f;cursor:pointer}"]],data:{}});function Ae(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-option-vertical"]],null,null,null,null,null))],null,null)}function Te(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null))],null,null)}function Ce(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-pointer-o"]],null,null,null,null,null))],null,null)}function xe(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null))],null,null)}function Oe(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null))],null,null)}function Se(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null))],null,null)}function Me(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-clock-o"]],null,null,null,null,null))],null,null)}function Ee(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-font"]],null,null,null,null,null))],null,null)}function Pe(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","glyphicon glyphicon-trash action--trash"]],null,null,null,null,null))],null,null)}function Ie(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","glyphicon glyphicon-pencil action--edit"]],null,null,null,null,null))],null,null)}function Re(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-question-circle"]],null,null,null,null,null))],null,null)}function De(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,35,"div",[],null,null,null,null,null)),i["\u0275did"](1,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ae)),i["\u0275did"](4,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Te)),i["\u0275did"](7,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ce)),i["\u0275did"](10,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,xe)),i["\u0275did"](13,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Oe)),i["\u0275did"](16,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Se)),i["\u0275did"](19,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Me)),i["\u0275did"](22,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ee)),i["\u0275did"](25,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Pe)),i["\u0275did"](28,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ie)),i["\u0275did"](31,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Re)),i["\u0275did"](34,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,1,0,t.component.name),e(t,4,0,"option-vertical"),e(t,7,0,"square"),e(t,10,0,"hand-pointer"),e(t,13,0,"hand-rock"),e(t,16,0,"hand-paper"),e(t,19,0,"mouse-pointer"),e(t,22,0,"clock"),e(t,25,0,"font"),e(t,28,0,"trash"),e(t,31,0,"pencil"),e(t,34,0,"question-circle")},null)}var Ne=n("xA9i"),je=n("7DMc"),Le=i["\u0275crt"]({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: block;\n margin-top: 1rem;\n margin-bottom: 1rem;\n }"],data:{}});function Ue(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"div",[],[[1,"disabled",0]],null,null,null,null))],null,function(e,t){e(t,0,0,!!t.component.disabled||void 0)})}var Ve=n("rCTf"),Fe=(n("aV5h"),function(){function e(){this.onChange=new i.EventEmitter,this.changeDebounceTime=300,this.propagateChange=function(){}}return e.prototype.ngAfterViewInit=function(){this.pips&&this.slider.slider.pips(this.pips),this.slider.slider.target.querySelector(".noUi-tooltip").style.display="none",this.slider.slider.on("start",function(){this.target.querySelector(".noUi-tooltip").style.display="block"}),this.slider.slider.on("end",function(){this.target.querySelector(".noUi-tooltip").style.display="none"})},e.prototype.ngOnDestroy=function(){this.changeObserver$&&this.changeObserver$.complete()},e.prototype.writeValue=function(e){this.value=e||this.min},e.prototype.registerOnChange=function(e){this.propagateChange=e},e.prototype.registerOnTouched=function(){},e.prototype.onSliderChange=function(e){var t=this;this.changeObserver$?this.changeObserver$.next(e):Ve.Observable.create(function(e){t.changeObserver$=e}).debounceTime(this.changeDebounceTime).distinctUntilChanged().subscribe(this.propagateChange)},e}()),Ke=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] label[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .slider-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;padding-left:1.6rem}[_nghost-%COMP%] .slider-container[_ngcontent-%COMP%]{width:80%}[_nghost-%COMP%] .slider-value[_ngcontent-%COMP%]{width:20%}[_nghost-%COMP%] .value-indicator[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 3rem;vertical-align:middle}"]],data:{}});function Be(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["name","question-circle"]],[[1,"data-placement",0]],null,null,De,we)),i["\u0275did"](1,114688,null,0,_e,[],{name:[0,"name"]},null),i["\u0275did"](2,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"],html:[1,"html"]},null)],function(e,t){var n=t.component;e(t,1,0,"question-circle"),e(t,2,0,n.tooltip,"true")},function(e,t){e(t,0,0,i["\u0275nov"](t,2).placement)})}function He(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,7,"label",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](3,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Be)),i["\u0275did"](6,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,6,0,t.component.tooltip)},function(e,t){e(t,3,0,t.component.label)})}function We(e){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{slider:0}),(e()(),i["\u0275and"](16777216,null,null,1,null,He)),i["\u0275did"](2,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](4,0,null,null,17,"div",[["class","slider-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,8,"div",[["class","slider-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,5,"nouislider",[],[[2,"ng2-nouislider",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var o=!0,i=e.component;return"ngModelChange"===t&&(o=!1!==(i.value=n)&&o),"ngModelChange"===t&&(o=!1!==i.onSliderChange(n)&&o),o},Ue,Le)),i["\u0275did"](9,638976,[[1,4]],0,Ne.NouisliderComponent,[i.ElementRef,i.Renderer2],{min:[0,"min"],max:[1,"max"],step:[2,"step"],ngModel:[3,"ngModel"],keyboard:[4,"keyboard"],tooltips:[5,"tooltips"]},null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Ne.NouisliderComponent]),i["\u0275did"](11,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](13,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,4,"div",[["class","slider-value"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](18,0,null,null,1,"div",[["class","value-indicator"]],null,null,null,null,null)),(e()(),i["\u0275ted"](19,null,[""," ",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.label),e(t,9,0,n.min,n.max,n.step,n.value,!0,!0),e(t,11,0,n.value)},function(e,t){var n=t.component;e(t,8,0,!0,i["\u0275nov"](t,13).ngClassUntouched,i["\u0275nov"](t,13).ngClassTouched,i["\u0275nov"](t,13).ngClassPristine,i["\u0275nov"](t,13).ngClassDirty,i["\u0275nov"](t,13).ngClassValid,i["\u0275nov"](t,13).ngClassInvalid,i["\u0275nov"](t,13).ngClassPending),e(t,19,0,n.value,n.valueUnit)})}var qe=n("gI3A"),ze=function(){function e(){this._defaultConfig=(new qe.UserConfiguration).fromJsonObject(n("Ftqy"))}return e.prototype.getDefault=function(){return this._defaultConfig},e}(),$e=25,Ge=function(){function e(e,t){this.store=e,this.defaultUserConfigurationService=t,this.moveProps=[{prop:"mouseMoveInitialSpeed",title:"Initial speed",tooltip:"When mouse movement begins, this is the starting speed.",valueUnit:"px/s",value:0},{prop:"mouseMoveBaseSpeed",title:"Base speed",tooltip:"This speed is reached after the initial moving speed sufficiently ramps up.",valueUnit:"px/s",value:0},{prop:"mouseMoveAcceleration",title:"Acceleration",tooltip:"The rate of acceleration from the initial movement speed to the base speed.",valueUnit:"px/s\xb2",value:0},{prop:"mouseMoveDeceleratedSpeed",title:"Decelerated speed",tooltip:"This speed is used while moving with the decelerate key pressed.",valueUnit:"px/s",value:0},{prop:"mouseMoveAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while moving with the accelerate key pressed.",valueUnit:"px/s",value:0}],this.scrollProps=[{prop:"mouseScrollInitialSpeed",title:"Initial speed",tooltip:"When mouse scrolling begins, this is the starting speed.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollBaseSpeed",title:"Base speed",tooltip:"This speed is reached after the initial scrolling speed sufficiently ramps up.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollAcceleration",title:"Acceleration",tooltip:"The rate of acceleration from the initial scrolling speed to the base speed.",valueUnit:"pulse/s\xb2",value:0},{prop:"mouseScrollDeceleratedSpeed",title:"Decelerated speed",tooltip:"This speed is used while scrolling with the decelerate key pressed.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while scrolling with the accelerate key pressed.",valueUnit:"pulse/s",value:0}],this.sliderPips={mode:"positions",values:[0,50,100],density:6,stepped:!0},this.moveSettings={min:$e,max:6375,step:$e},this.scrollSettings={min:1,max:255,step:1}}return e.prototype.ngOnInit=function(){var e=this;this.userConfig$=this.store.select(u.r),this.userConfigSubscription=this.userConfig$.subscribe(function(t){e.moveProps.forEach(function(e){e.value=t[e.prop]*$e||0}),e.scrollProps.forEach(function(e){e.value=t[e.prop]||0})})},e.prototype.ngOnDestroy=function(){this.userConfigSubscription.unsubscribe()},e.prototype.onSetPropertyValue=function(e,t){this.store.dispatch(new me.l({propertyName:e,value:-1!==e.indexOf("mouseMove")?t/$e:t}))},e.prototype.resetToDefault=function(){this.store.dispatch(new V.g)},e}(),Ye=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] label[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .mouse-speed-reset-button[_ngcontent-%COMP%]{display:block;margin-bottom:4rem}[_nghost-%COMP%] .mouse-speed-setting[_ngcontent-%COMP%]{margin-bottom:6rem}[_nghost-%COMP%] .mouse-speed-setting[_ngcontent-%COMP%] + h3[_ngcontent-%COMP%]{margin-top:2rem}"]],data:{}});function Qe(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,11,"div",[["class","row mouse-speed-setting"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,5,"slider-wrapper",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var o=!0,i=e.component;return"ngModelChange"===t&&(o=!1!==(e.context.$implicit.value=n)&&o),"ngModelChange"===t&&(o=!1!==i.onSetPropertyValue(e.context.$implicit.prop,n)&&o),o},We,Ke)),i["\u0275did"](5,4374528,null,0,Fe,[],{label:[0,"label"],tooltip:[1,"tooltip"],min:[2,"min"],max:[3,"max"],step:[4,"step"],pips:[5,"pips"],valueUnit:[6,"valueUnit"]},null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),i["\u0275did"](7,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](9,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,t.context.$implicit.title,t.context.$implicit.tooltip,n.moveSettings.min,n.moveSettings.max,n.moveSettings.step,n.sliderPips,t.context.$implicit.valueUnit),e(t,7,0,t.context.$implicit.value)},function(e,t){e(t,4,0,i["\u0275nov"](t,9).ngClassUntouched,i["\u0275nov"](t,9).ngClassTouched,i["\u0275nov"](t,9).ngClassPristine,i["\u0275nov"](t,9).ngClassDirty,i["\u0275nov"](t,9).ngClassValid,i["\u0275nov"](t,9).ngClassInvalid,i["\u0275nov"](t,9).ngClassPending)})}function Je(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,11,"div",[["class","row mouse-speed-setting"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,5,"slider-wrapper",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var o=!0,i=e.component;return"ngModelChange"===t&&(o=!1!==(e.context.$implicit.value=n)&&o),"ngModelChange"===t&&(o=!1!==i.onSetPropertyValue(e.context.$implicit.prop,n)&&o),o},We,Ke)),i["\u0275did"](5,4374528,null,0,Fe,[],{label:[0,"label"],tooltip:[1,"tooltip"],min:[2,"min"],max:[3,"max"],step:[4,"step"],pips:[5,"pips"],valueUnit:[6,"valueUnit"]},null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),i["\u0275did"](7,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](9,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,t.context.$implicit.title,t.context.$implicit.tooltip,n.scrollSettings.min,n.scrollSettings.max,n.scrollSettings.step,n.sliderPips,t.context.$implicit.valueUnit),e(t,7,0,t.context.$implicit.value)},function(e,t){e(t,4,0,i["\u0275nov"](t,9).ngClassUntouched,i["\u0275nov"](t,9).ngClassTouched,i["\u0275nov"](t,9).ngClassPristine,i["\u0275nov"](t,9).ngClassDirty,i["\u0275nov"](t,9).ngClassValid,i["\u0275nov"](t,9).ngClassInvalid,i["\u0275nov"](t,9).ngClassPending)})}function Ze(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Mouse speed"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](8,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Mouse pointer speed"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Qe)),i["\u0275did"](12,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](14,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Mouse scroll speed"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Je)),i["\u0275did"](18,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](20,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger mouse-speed-reset-button"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","top"],["title","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,t,n){var o=!0,r=e.component;return"click"===t&&(o=!1!==i["\u0275nov"](e,21).togglePopover()&&o),"confirm"===t&&(o=!1!==r.resetToDefault()&&o),o},null,null)),i["\u0275did"](21,737280,null,0,ye,[i.ViewContainerRef,i.ElementRef,h,i.ComponentFactoryResolver,he,i.Renderer2,P.b],{title:[0,"title"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),i["\u0275ted"](-1,null,["Reset speeds to default\n"]))],function(e,t){var n=t.component;e(t,12,0,n.moveProps),e(t,18,0,n.scrollProps),e(t,21,0,"Are you sure?","Yes","No","top")},null)}var Xe=i["\u0275ccf"]("device-mouse-speed",Ge,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"device-mouse-speed",[["class","container-fluid"]],null,null,null,Ze,Ye)),i["\u0275did"](1,245760,null,0,Ge,[s.m,ze],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),et=function(){function e(e){this.store=e,this.iconsAndLayerTextsBrightness=0,this.alphanumericSegmentsBrightness=0,this.keyBacklightBrightness=0,this.sliderPips={mode:"positions",values:[0,50,100],density:6,stepped:!0}}return e.prototype.ngOnInit=function(){var e=this;this.userConfig$=this.store.select(u.r),this.userConfigSubscription=this.userConfig$.subscribe(function(t){e.iconsAndLayerTextsBrightness=t.iconsAndLayerTextsBrightness,e.alphanumericSegmentsBrightness=t.alphanumericSegmentsBrightness,e.keyBacklightBrightness=t.keyBacklightBrightness})},e.prototype.ngOnDestroy=function(){this.userConfigSubscription.unsubscribe()},e.prototype.onSetPropertyValue=function(e,t){this.store.dispatch(new me.l({propertyName:e,value:t}))},e}(),tt=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] .led-setting[_ngcontent-%COMP%]{margin-bottom:6rem}"]],data:{}});function nt(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["LED brightness"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](8,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,5,"slider-wrapper",[["label","LED display icon and layer texts brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var o=!0,i=e.component;return"ngModelChange"===t&&(o=!1!==(i.iconsAndLayerTextsBrightness=n)&&o),"ngModelChange"===t&&(o=!1!==i.onSetPropertyValue("iconsAndLayerTextsBrightness",n)&&o),o},We,Ke)),i["\u0275did"](13,4374528,null,0,Fe,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),i["\u0275did"](15,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](17,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](21,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,5,"slider-wrapper",[["label","LED display alphanumeric segments brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var o=!0,i=e.component;return"ngModelChange"===t&&(o=!1!==(i.alphanumericSegmentsBrightness=n)&&o),"ngModelChange"===t&&(o=!1!==i.onSetPropertyValue("alphanumericSegmentsBrightness",n)&&o),o},We,Ke)),i["\u0275did"](26,4374528,null,0,Fe,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),i["\u0275did"](28,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](30,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](34,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](36,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](38,0,null,null,5,"slider-wrapper",[["label","Key backlight brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var o=!0,i=e.component;return"ngModelChange"===t&&(o=!1!==(i.keyBacklightBrightness=n)&&o),"ngModelChange"===t&&(o=!1!==i.onSetPropertyValue("keyBacklightBrightness",n)&&o),o},We,Ke)),i["\u0275did"](39,4374528,null,0,Fe,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),i["\u0275did"](41,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](43,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,13,0,"LED display icon and layer texts brightness",0,255,1,n.sliderPips),e(t,15,0,n.iconsAndLayerTextsBrightness),e(t,26,0,"LED display alphanumeric segments brightness",0,255,1,n.sliderPips),e(t,28,0,n.alphanumericSegmentsBrightness),e(t,39,0,"Key backlight brightness",0,255,1,n.sliderPips),e(t,41,0,n.keyBacklightBrightness)},function(e,t){e(t,12,0,i["\u0275nov"](t,17).ngClassUntouched,i["\u0275nov"](t,17).ngClassTouched,i["\u0275nov"](t,17).ngClassPristine,i["\u0275nov"](t,17).ngClassDirty,i["\u0275nov"](t,17).ngClassValid,i["\u0275nov"](t,17).ngClassInvalid,i["\u0275nov"](t,17).ngClassPending),e(t,25,0,i["\u0275nov"](t,30).ngClassUntouched,i["\u0275nov"](t,30).ngClassTouched,i["\u0275nov"](t,30).ngClassPristine,i["\u0275nov"](t,30).ngClassDirty,i["\u0275nov"](t,30).ngClassValid,i["\u0275nov"](t,30).ngClassInvalid,i["\u0275nov"](t,30).ngClassPending),e(t,38,0,i["\u0275nov"](t,43).ngClassUntouched,i["\u0275nov"](t,43).ngClassTouched,i["\u0275nov"](t,43).ngClassPristine,i["\u0275nov"](t,43).ngClassDirty,i["\u0275nov"](t,43).ngClassValid,i["\u0275nov"](t,43).ngClassInvalid,i["\u0275nov"](t,43).ngClassPending)})}var ot=i["\u0275ccf"]("device-led-brightness",et,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"device-led-brightness",[["class","container-fluid"]],null,null,null,nt,tt)),i["\u0275did"](1,245760,null,0,et,[s.m],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),it=function(){function e(e){var t=this;this.store=e,this.flashFirmwareButtonDisbabled$=e.select(u.e),this.xtermLog$=e.select(u.v),this.getAgentVersionInfo$=e.select(u.f),this.hardwareModulesSubscription=e.select(u.j).subscribe(function(e){t.hardwareModules=e})}return e.prototype.ngOnDestroy=function(){this.hardwareModulesSubscription.unsubscribe()},e.prototype.onUpdateFirmware=function(){this.store.dispatch(new V.r)},e.prototype.changeFile=function(e){this.store.dispatch(new V.v(e.data))},e.prototype.openFirmwareGitHubIssuePage=function(e){e.preventDefault(),this.store.dispatch(new F.h(qe.Constants.FIRMWARE_GITHUB_ISSUE_URL))},e}(),rt=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100vh;min-height:100%;width:100%}.link-github[_ngcontent-%COMP%]{cursor:pointer}"]],data:{}});function lt(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,54,"div",[["class","full-height"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,51,"div",[["class","flex-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,38,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](6,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Firmware"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](14,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](15,null,["\n Firmware "," is running on the left keyboard half."])),(e()(),i["\u0275eld"](16,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),i["\u0275ted"](17,null,["\n Firmware "," is running on the right keyboard half.\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](19,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Please note that firmware update doesn't work on Windows 7, Windows Vista, and Windows XP. Use Windows 10, Windows 8, Linux, or OSX instead."])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](22,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["If the update process fails, disconnect every USB device from your computer including USB hubs, KVM switches, and every USB device. Then connect only your UHK and retry."])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](25,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["If you tried the above and the update still keeps failing, please "])),(e()(),i["\u0275eld"](27,0,null,null,1,"a",[["class","link-github"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.openFirmwareGitHubIssuePage(n)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["create a GitHub issue"])),(e()(),i["\u0275ted"](-1,null,[", and attach the update log."])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](31,0,null,null,10,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](33,0,null,null,3,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onUpdateFirmware()&&o),o},null,null)),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](35,null,["\n Flash firmware "," (bundled with Agent)\n "])),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](38,0,null,null,2,"file-upload",[["accept",".tar.bz2"],["label","Choose firmware file and flash it"]],null,[[null,"fileChanged"]],function(e,t,n){var o=!0;return"fileChanged"===t&&(o=!1!==e.component.changeFile(n)&&o),o},fe,pe)),i["\u0275did"](39,49152,null,0,de,[],{label:[0,"label"],disabled:[1,"disabled"],accept:[2,"accept"]},{fileChanged:"fileChanged"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](44,0,null,null,5,"div",[["class","flex-grow"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](46,0,null,null,2,"xterm",[],null,null,null,te,X)),i["\u0275did"](47,573440,null,0,Z,[],{logs:[0,"logs"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](51,0,null,null,1,"div",[["class","flex-footer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,39,0,"Choose firmware file and flash it",i["\u0275unv"](t,39,1,i["\u0275nov"](t,40).transform(n.flashFirmwareButtonDisbabled$)),".tar.bz2"),e(t,47,0,i["\u0275unv"](t,47,0,i["\u0275nov"](t,48).transform(n.xtermLog$)))},function(e,t){var n=t.component;e(t,15,0,n.hardwareModules.leftModuleInfo.firmwareVersion),e(t,17,0,n.hardwareModules.rightModuleInfo.firmwareVersion),e(t,33,0,i["\u0275unv"](t,33,0,i["\u0275nov"](t,34).transform(n.flashFirmwareButtonDisbabled$))),e(t,35,0,i["\u0275unv"](t,35,0,i["\u0275nov"](t,36).transform(n.getAgentVersionInfo$)).firmwareVersion)})}var st=i["\u0275ccf"]("device-firmware",it,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"device-firmware",[["class","container-fluid"]],null,null,null,lt,rt)),i["\u0275did"](1,180224,null,0,it,[s.m],null,null)],null,null)},{},{},[]),at=function(){function e(e,t){this.store=e,this.cdRef=t}return e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(u.h).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.resetUserConfiguration=function(){this.store.dispatch(new V.h)},e.prototype.restoreUserConfiguration=function(){this.store.dispatch(new V.i)},e}(),ut=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"]],data:{}});function ct(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.restoreUserConfiguration()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Restore the last valid device configuration\n"]))],null,function(e,t){e(t,0,0,t.component.state.restoringUserConfiguration)})}function dt(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-danger"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.resetUserConfiguration()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Reset device configuration\n"]))],null,function(e,t){e(t,0,0,t.component.state.restoringUserConfiguration)})}function pt(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-exclamation-circle"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Fix configuration"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275eld"](8,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n Your on-board device configuration is invalid.\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,ct)),i["\u0275did"](12,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,dt)),i["\u0275did"](15,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,12,0,n.state.hasBackupUserConfiguration),e(t,15,0,!n.state.hasBackupUserConfiguration)},null)}var ft=i["\u0275ccf"]("restore-configuration",at,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"restore-configuration",[["class","container-fluid"]],null,null,null,pt,ut)),i["\u0275did"](1,245760,null,0,at,[s.m,i.ChangeDetectorRef],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),ht=function(){function e(){this.close=new i.EventEmitter,this.undo=new i.EventEmitter}return Object.defineProperty(e.prototype,"slideInOut",{get:function(){return this.notification?"in":"out"},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if(e.notification){var t=e.notification.currentValue;t&&(this.text=t.message,this.undoable=!!t.extra)}},e.prototype.clickOnClose=function(){this.close.emit()},e.prototype.clickOnUndo=function(){this.undo.emit(this.notification.extra)},e}(),yt=i["\u0275crt"]({encapsulation:0,styles:[[".alert[_ngcontent-%COMP%]{padding:5px 10px 5px 5px;margin-bottom:.25em;margin-top:-2em}.alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{right:-5px}.alert[_ngcontent-%COMP%] .undo-button[_ngcontent-%COMP%]{cursor:pointer}"]],data:{animation:[{type:7,name:"slideInOut",definitions:[{type:0,name:"in",styles:{type:6,styles:{transform:"translate3d(0, 0, 0)"},offset:null},options:void 0},{type:0,name:"out",styles:{type:6,styles:{transform:"translate3d(200%, 0, 0)"},offset:null},options:void 0},{type:1,expr:"in => out",animation:{type:4,styles:null,timings:"400ms ease-in-out"},options:null},{type:1,expr:"out => in",animation:{type:4,styles:null,timings:"400ms ease-in-out"},options:null}],options:{}}]}});function mt(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"a",[["class","undo-button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.clickOnUndo()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Undo"]))],null,null)}function gt(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,13,"div",[["class","pull-right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","alert alert-warning alert-dismissible"],["role","alert"]],[[24,"@slideInOut",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,4,"button",[["aria-label","Close"],["class","close"],["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.clickOnClose()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\xd7"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](9,null,["\n ","\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,mt)),i["\u0275did"](11,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,11,0,t.component.undoable)},function(e,t){var n=t.component;e(t,2,0,n.slideInOut),e(t,9,0,n.text)})}var vt=function(){function e(e){this.store=e,this.undoableNotification$=this.store.select(u.q)}return e.prototype.onUndoLastNotification=function(e){this.store.dispatch(new F.m(e))},e.prototype.onDismissLastNotification=function(){this.store.dispatch(new F.d)},e}(),bt=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function kt(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](5,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,6,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,3,"undoable-notifier",[],null,[[null,"close"],[null,"undo"]],function(e,t,n){var o=!0,i=e.component;return"close"===t&&(o=!1!==i.onDismissLastNotification()&&o),"undo"===t&&(o=!1!==i.onUndoLastNotification(n)&&o),o},gt,yt)),i["\u0275did"](10,573440,null,0,ht,[],{notification:[0,"notification"]},{close:"close",undo:"undo"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n\n"]))],function(e,t){var n=t.component;e(t,10,0,i["\u0275unv"](t,10,0,i["\u0275nov"](t,11).transform(n.undoableNotification$)))},null)}var _t=function(){function e(e,t){this.elementRef=e,this.renderer=t}return e.prototype.onFocus=function(){this.originalValue=this.elementRef.nativeElement.value},e.prototype.onEscape=function(){this.renderer.setElementProperty(this.elementRef.nativeElement,"value",this.originalValue),this.renderer.invokeElementMethod(this.elementRef.nativeElement,"blur")},e}(),wt=n("WP8/"),At=n("Lt3n"),Tt='Delete keymap',Ct=function(){function e(e,t){this.store=e,this.renderer=t,this.downloadClick=new i.EventEmitter,this.trashTitle=Tt}return e.prototype.ngOnChanges=function(e){e.keymap&&(this.setKeymapTitle(),this.setName(),this.setAbbreviation()),e.deletable&&this.setTrashTitle()},e.prototype.windowResize=function(){this.calculateHeaderTextWidth(this.keymap.name)},e.prototype.setDefault=function(){this.keymap.isDefault||this.store.dispatch(wt.a.setDefault(this.keymap.abbreviation))},e.prototype.removeKeymap=function(){this.deletable&&this.store.dispatch(wt.a.removeKeymap(this.keymap.abbreviation))},e.prototype.duplicateKeymap=function(){this.store.dispatch(wt.a.duplicateKeymap(this.keymap))},e.prototype.editKeymapName=function(e){At.d(e)?this.store.dispatch(wt.a.editKeymapName(this.keymap.abbreviation,e)):this.setName()},e.prototype.editKeymapAbbr=function(e){var t=new RegExp(/^[a-zA-Z\d]+$/g);e.length<1||e.length>3||!t.test(e)?this.setAbbreviation():(e=e.toUpperCase(),this.store.dispatch(wt.a.editKeymapAbbr(this.keymap.name,this.keymap.abbreviation,e)))},e.prototype.setKeymapTitle=function(){this.starTitle=this.keymap.isDefault?"This is the default keymap which gets activated when powering the keyboard.":"Makes this keymap the default keymap which gets activated when powering the keyboard."},e.prototype.setTrashTitle=function(){this.trashTitle=this.deletable?Tt:'The last keymap cannot be deleted.'},e.prototype.onDownloadIconClick=function(){this.downloadClick.emit()},e.prototype.calculateHeaderTextWidth=function(e){var t=this.keymapName.nativeElement,n=t.parentElement.offsetWidth-530,o=At.b(window.getComputedStyle(t),e);this.renderer.setStyle(t,"width",Math.min(n,o)+"px")},e.prototype.setName=function(){this.renderer.setProperty(this.keymapName.nativeElement,"value",this.keymap.name),this.calculateHeaderTextWidth(this.keymap.name)},e.prototype.setAbbreviation=function(){this.renderer.setProperty(this.keymapAbbr.nativeElement,"value",this.keymap.abbreviation)},e}(),xt=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:block}.keymap__is-default.fa-star-o[_ngcontent-%COMP%]{cursor:pointer}.keymap__is-default.fa-star-o[_ngcontent-%COMP%]:hover{color:#337ab7}.keymap__remove[_ngcontent-%COMP%]{font-size:.75em;top:8px}.keymap__remove[_ngcontent-%COMP%]:not(.disabled):hover{cursor:pointer;color:#900}.keymap__remove.disabled[_ngcontent-%COMP%]{opacity:.25}.keymap__duplicate[_ngcontent-%COMP%]{font-size:.75em;top:7px;margin-right:15px;position:relative}.keymap__duplicate[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.keymap__download[_ngcontent-%COMP%]{top:10px;font-size:.8em;position:relative;margin-right:10px}.keymap__download[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.pane-title[_ngcontent-%COMP%]{margin-bottom:1em}.pane-title__abbrev[_ngcontent-%COMP%], .pane-title__name[_ngcontent-%COMP%]{border:none;border-bottom:2px dotted #999;padding:0;margin:0 .25rem}.pane-title__abbrev[_ngcontent-%COMP%]:focus, .pane-title__name[_ngcontent-%COMP%]:focus{-webkit-box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent}.pane-title__name[_ngcontent-%COMP%]{width:290px;text-overflow:ellipsis}.pane-title__abbrev[_ngcontent-%COMP%]{width:90px;text-align:center}"]],data:{}});function Ot(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{keymapName:0}),i["\u0275qud"](402653184,2,{keymapAbbr:0}),(e()(),i["\u0275eld"](2,0,null,null,30,"uhk-header",[],null,null,null,kt,bt)),i["\u0275did"](3,49152,null,0,vt,[s.m],null,null),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275eld"](5,0,null,0,26,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,23,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,[[1,0],["name",1]],null,1,"input",[["cancelable",""],["class","keymap__name pane-title__name"],["type","text"]],null,[[null,"change"],[null,"keyup.enter"],[null,"keyup"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var o=!0,r=e.component;return"focus"===t&&(o=!1!==i["\u0275nov"](e,12).onFocus()&&o),"keyup.escape"===t&&(o=!1!==i["\u0275nov"](e,12).onEscape()&&o),"change"===t&&(o=!1!==r.editKeymapName(n.target.value)&&o),"keyup.enter"===t&&(o=!1!==i["\u0275nov"](e,11).blur()&&o),"keyup"===t&&(o=!1!==r.calculateHeaderTextWidth(n.target.value)&&o),o},null,null)),i["\u0275did"](12,16384,null,0,_t,[i.ElementRef,i.Renderer],null,null),(e()(),i["\u0275ted"](-1,null,[" keymap\n ("])),(e()(),i["\u0275eld"](14,0,[[2,0],["abbr",1]],null,1,"input",[["cancelable",""],["class","keymap__abbrev pane-title__abbrev"],["type","text"]],[[1,"maxLength",0]],[[null,"change"],[null,"keyup.enter"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var o=!0,r=e.component;return"focus"===t&&(o=!1!==i["\u0275nov"](e,15).onFocus()&&o),"keyup.escape"===t&&(o=!1!==i["\u0275nov"](e,15).onEscape()&&o),"change"===t&&(o=!1!==r.editKeymapAbbr(n.target.value)&&o),"keyup.enter"===t&&(o=!1!==i["\u0275nov"](e,14).blur()&&o),o},null,null)),i["\u0275did"](15,16384,null,0,_t,[i.ElementRef,i.Renderer],null,null),(e()(),i["\u0275ted"](-1,null,[")\n "])),(e()(),i["\u0275eld"](17,0,null,null,3,"i",[["class","fa keymap__is-default"],["data-placement","bottom"],["data-toggle","tooltip"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.setDefault()&&o),o},null,null)),i["\u0275did"](18,278528,null,0,d.i,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pod"](19,{"fa-star-o":0,"fa-star":1}),i["\u0275did"](20,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,1,"i",[["class","glyphicon glyphicon-trash keymap__remove pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["html","true"]],[[2,"disabled",null],[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.removeKeymap()&&o),o},null,null)),i["\u0275did"](23,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,1,"i",[["class","fa fa-files-o keymap__duplicate pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["title","Duplicate keymap"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.duplicateKeymap()&&o),o},null,null)),i["\u0275did"](26,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,1,"i",[["class","fa fa-download keymap__download pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["title","Download keymap"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onDownloadIconClick()&&o),o},null,null)),i["\u0275did"](29,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,0,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,18,0,"fa keymap__is-default",e(t,19,0,!n.keymap.isDefault,n.keymap.isDefault)),e(t,20,0,n.starTitle),e(t,23,0,n.trashTitle,"true"),e(t,26,0,"Duplicate keymap"),e(t,29,0,"Download keymap",!0)},function(e,t){var n=t.component;e(t,14,0,3),e(t,17,0,i["\u0275nov"](t,20).placement),e(t,22,0,!n.deletable,i["\u0275nov"](t,23).placement),e(t,25,0,i["\u0275nov"](t,26).placement),e(t,28,0,i["\u0275nov"](t,29).placement)})}var St=function(){function e(){this.select=new i.EventEmitter,this.buttons=["Base","Mod","Fn","Mouse"],this.current=0}return e.prototype.selectLayer=function(e){this.current!==e&&(this.select.emit({oldIndex:this.current,index:e}),this.current=e)},e}(),Mt=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:block}.disabled[_nghost-%COMP%] button[_ngcontent-%COMP%]{cursor:no-drop;background:rgba(204,204,204,.43);pointer-events:none}.disabled[_nghost-%COMP%] button.btn-primary[_ngcontent-%COMP%]{background:#7c7c7c;border-color:#7c7c7c}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]{position:relative;margin-bottom:2rem}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]:before{content:attr(data-title);display:inline-block;position:absolute;bottom:.55em;right:100%;font-size:18px;padding-right:.45em;margin:0}"]],data:{}});function Et(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.selectLayer(e.context.index)&&o),o},null,null)),(e()(),i["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.context.index===t.component.current),e(t,1,0,t.context.$implicit)})}function Pt(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","text-center"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,4,"span",[["class","uhk__layer-switcher--wrapper btn-group btn-group-lg"],["data-title","Layers: "],["role","group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Et)),i["\u0275did"](5,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.buttons)},null)}var It=function(){function e(){}return e.prototype.ngOnInit=function(){this.svgWidth=this.width/3,this.svgHeight=this.height/3},e}(),Rt=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Dt(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon,n.svgWidth,n.svgHeight,n.svgWidth,n.svgHeight)})}var Nt=function(){function e(){}return e.prototype.ngOnInit=function(){this.textY=this.height/2,this.spanX=this.width/2},e}(),jt=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Lt(e){return i["\u0275vid"](2,[(e()(),i["\u0275ted"](-1,null,[" "])),(e()(),i["\u0275eld"](1,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,1,":svg:tspan",[["dy","0"]],[[1,"x",0]],null,null,null,null)),(e()(),i["\u0275ted"](4,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,1,0,0,n.textY,"middle"),e(t,3,0,n.spanX),e(t,4,0,n.text)})}var Ut=function(){function e(){this.spanYs=[]}return e.prototype.ngOnInit=function(){this.textY=this.height/2,this.spanX=this.width/2;for(var e=0;e"]),this.basicScanCodeTextMap.set(56,["/","?"]),this.basicScanCodeTextMap.set(57,["Caps Lock"]),this.basicScanCodeTextMap.set(58,["F1"]),this.basicScanCodeTextMap.set(59,["F2"]),this.basicScanCodeTextMap.set(60,["F3"]),this.basicScanCodeTextMap.set(61,["F4"]),this.basicScanCodeTextMap.set(62,["F5"]),this.basicScanCodeTextMap.set(63,["F6"]),this.basicScanCodeTextMap.set(64,["F7"]),this.basicScanCodeTextMap.set(65,["F8"]),this.basicScanCodeTextMap.set(66,["F9"]),this.basicScanCodeTextMap.set(67,["F10"]),this.basicScanCodeTextMap.set(68,["F11"]),this.basicScanCodeTextMap.set(69,["F12"]),this.basicScanCodeTextMap.set(70,["PrtScn"]),this.basicScanCodeTextMap.set(71,["Scroll Lock"]),this.basicScanCodeTextMap.set(72,["Pause"]),this.basicScanCodeTextMap.set(73,["Insert"]),this.basicScanCodeTextMap.set(74,["Home"]),this.basicScanCodeTextMap.set(75,["PgUp"]),this.basicScanCodeTextMap.set(76,["Del"]),this.basicScanCodeTextMap.set(77,["End"]),this.basicScanCodeTextMap.set(78,["PgDn"]),this.basicScanCodeTextMap.set(79,["Right Arrow"]),this.basicScanCodeTextMap.set(80,["Left Arrow"]),this.basicScanCodeTextMap.set(81,["Down Arrow"]),this.basicScanCodeTextMap.set(82,["Up Arrow"]),this.basicScanCodeTextMap.set(83,["Num Lock"]),this.basicScanCodeTextMap.set(84,["/"]),this.basicScanCodeTextMap.set(85,["*"]),this.basicScanCodeTextMap.set(86,["-"]),this.basicScanCodeTextMap.set(87,["+"]),this.basicScanCodeTextMap.set(88,["Enter"]),this.basicScanCodeTextMap.set(89,["end","1"]),this.basicScanCodeTextMap.set(90,["2"]),this.basicScanCodeTextMap.set(91,["pgdn","3"]),this.basicScanCodeTextMap.set(92,["4"]),this.basicScanCodeTextMap.set(93,["5"]),this.basicScanCodeTextMap.set(94,["6"]),this.basicScanCodeTextMap.set(95,["home","7"]),this.basicScanCodeTextMap.set(96,["8"]),this.basicScanCodeTextMap.set(97,["pgup","9"]),this.basicScanCodeTextMap.set(98,["Insert","0"]),this.basicScanCodeTextMap.set(99,["Del","."]),this.basicScanCodeTextMap.set(100,["ISO key","|"]),this.basicScanCodeTextMap.set(101,["Menu"]),this.basicScanCodeTextMap.set(104,["F13"]),this.basicScanCodeTextMap.set(105,["F14"]),this.basicScanCodeTextMap.set(106,["F15"]),this.basicScanCodeTextMap.set(107,["F16"]),this.basicScanCodeTextMap.set(108,["F17"]),this.basicScanCodeTextMap.set(109,["F18"]),this.basicScanCodeTextMap.set(110,["F19"]),this.basicScanCodeTextMap.set(111,["F20"]),this.basicScanCodeTextMap.set(112,["F21"]),this.basicScanCodeTextMap.set(113,["F22"]),this.basicScanCodeTextMap.set(114,["F23"]),this.basicScanCodeTextMap.set(115,["F24"]),this.basicScanCodeTextMap.set(176,["00"]),this.basicScanCodeTextMap.set(177,["000"]),this.mediaScanCodeTextMap=new Map,this.mediaScanCodeTextMap.set(138,["WWW"]),this.mediaScanCodeTextMap.set(176,["Play"]),this.mediaScanCodeTextMap.set(177,["Pause"]),this.mediaScanCodeTextMap.set(181,["Next"]),this.mediaScanCodeTextMap.set(182,["Prev"]),this.mediaScanCodeTextMap.set(183,["Stop"]),this.mediaScanCodeTextMap.set(184,["Eject"]),this.mediaScanCodeTextMap.set(204,["Eject","Stop"]),this.mediaScanCodeTextMap.set(205,["Pause","Play"]),this.mediaScanCodeTextMap.set(226,["Mute"]),this.mediaScanCodeTextMap.set(233,["Vol +"]),this.mediaScanCodeTextMap.set(234,["Vol -"]),this.mediaScanCodeTextMap.set(406,["Launch Web Browser"]),this.mediaScanCodeTextMap.set(394,["Launch Email Client"]),this.mediaScanCodeTextMap.set(402,["Launch Calculator"]),this.sytemScanCodeTextMap=new Map,this.sytemScanCodeTextMap.set(129,["Power Down"]),this.sytemScanCodeTextMap.set(130,["Sleep"]),this.sytemScanCodeTextMap.set(131,["Wake Up"])},e.prototype.initScancodeIcons=function(){this.basicScancodeIcons=new Map,this.basicScancodeIcons.set(79,"icon-kbd__mod--arrow-right"),this.basicScancodeIcons.set(80,"icon-kbd__mod--arrow-left"),this.basicScancodeIcons.set(81,"icon-kbd__mod--arrow-down"),this.basicScancodeIcons.set(82,"icon-kbd__mod--arrow-up"),this.basicScancodeIcons.set(101,"icon-kbd__mod--menu"),this.mediaScancodeIcons=new Map,this.mediaScancodeIcons.set(138,"icon-kbd__fn--browser"),this.mediaScancodeIcons.set(176,"icon-kbd__media--play"),this.mediaScancodeIcons.set(177,"icon-kbd__media--pause"),this.mediaScancodeIcons.set(181,"icon-kbd__media--next"),this.mediaScancodeIcons.set(182,"icon-kbd__media--prev"),this.mediaScancodeIcons.set(184,"icon-kbd__fn--eject"),this.mediaScancodeIcons.set(226,"icon-kbd__media--mute"),this.mediaScancodeIcons.set(233,"icon-kbd__media--vol-up"),this.mediaScancodeIcons.set(234,"icon-kbd__media--vol-down"),this.mediaScancodeIcons.set(406,"icon-kbd__media--web-browser"),this.mediaScancodeIcons.set(394,"icon-kbd__media--email-client"),this.mediaScancodeIcons.set(402,"icon-kbd__media--calculator"),this.systemScancodeIcons=new Map,this.systemScancodeIcons.set(129,"icon-kbd__system_power_down"),this.systemScancodeIcons.set(130,"icon-kbd__system_sleep"),this.systemScancodeIcons.set(131,"icon-kbd__system_wake_up")},e.prototype.initNameToFileNames=function(){this.nameToFileName=new Map,this.nameToFileName.set("toggle","icon-kbd__fn--toggle"),this.nameToFileName.set("double-tap","icon-kbd__fn--double-tap"),this.nameToFileName.set("switch-keymap","icon-kbd__mod--switch-keymap"),this.nameToFileName.set("macro","icon-icon__macro"),this.nameToFileName.set("shift","icon-kbd__default--modifier-shift"),this.nameToFileName.set("option","icon-kbd__default--modifier-option"),this.nameToFileName.set("command","icon-kbd__default--modifier-command"),this.nameToFileName.set("mouse","icon-kbd__mouse"),this.nameToFileName.set("left-arrow","icon-kbd__mod--arrow-left"),this.nameToFileName.set("right-arrow","icon-kbd__mod--arrow-right"),this.nameToFileName.set("down-arrow","icon-kbd__mod--arrow-down"),this.nameToFileName.set("up-arrow","icon-kbd__mod--arrow-up"),this.nameToFileName.set("scroll-left","icon-kbd__mouse--scroll-left"),this.nameToFileName.set("scroll-right","icon-kbd__mouse--scroll-right"),this.nameToFileName.set("scroll-down","icon-kbd__mouse--scroll-down"),this.nameToFileName.set("scroll-up","icon-kbd__mouse--scroll-up")},e}(),Ht=function(){this.width=0,this.height=0,this.x=0,this.y=0,this.disabled=!0},Wt=function(){function e(e){this.mapper=e,this.modifierIconNames={},this.textContainer=new Ht,this.modifierContainer=new Ht,this.shift=new Ht,this.control=new Ht,this.option=new Ht,this.command=new Ht}return e.prototype.ngOnInit=function(){if(this.viewBox=[0,0,this.width,this.height].join(" "),this.modifierIconNames.shift=this.mapper.getIcon("shift"),this.modifierIconNames.option=this.mapper.getIcon("option"),this.modifierIconNames.command=this.mapper.getIcon("command"),this.width<1.8*this.height){var e=this.width/4,t=this.height,n=(i=.8)*(this.height/this.width)*e,o=i*t;this.modifierContainer.width=this.width,this.modifierContainer.height=this.height/5,this.modifierContainer.y=this.height-this.modifierContainer.height,this.shift.width=n,this.shift.height=o,this.shift.x=(e-n)/2,this.shift.y=(t-o)/2,this.control.width=n,this.control.height=o,this.control.x=this.shift.x+e,this.control.y=this.shift.y,this.option.width=n,this.option.height=o,this.option.x=this.control.x+e,this.option.y=this.shift.y,this.command.width=n,this.command.height=o,this.command.x=this.option.x+e,this.command.y=this.shift.y,this.textContainer.y=-this.modifierContainer.height/2}else{this.modifierContainer.width=this.width/4,this.modifierContainer.height=this.height,this.modifierContainer.x=this.width-this.modifierContainer.width;var i,r=Math.min(this.modifierContainer.width/2,this.modifierContainer.height/2);o=(i=.8)*this.height*(r/this.modifierContainer.height),this.shift.width=n=i*this.width*(r/this.modifierContainer.width),this.shift.height=o,this.shift.x=this.width/4-n/2,this.shift.y=this.height/4-o/2,this.control.width=n,this.control.height=o,this.control.x=this.shift.x+this.width/2,this.control.y=this.shift.y,this.option.width=n,this.option.height=o,this.option.x=this.shift.x,this.option.y=this.shift.y+this.height/2,this.command.width=n,this.command.height=o,this.command.x=this.option.x+this.width/2,this.command.y=this.option.y,this.textContainer.x=-this.modifierContainer.width/2}this.textContainer.width=this.width,this.textContainer.height=this.height},e.prototype.ngOnChanges=function(){if(this.keystrokeAction.hasScancode()){var e,t=this.keystrokeAction.scancode;this.labelSource=this.mapper.scanCodeToSvgImagePath(t,this.keystrokeAction.type),this.labelSource?this.labelType="icon":(e=this.mapper.scanCodeToText(t,this.keystrokeAction.type))&&(1===e.length?(this.labelSource=e[0],this.labelType="one-line"):(this.labelSource=e,this.labelType="two-line"))}else this.labelType="empty";this.shift.disabled=!this.keystrokeAction.isActive(qe.KeyModifiers.leftShift|qe.KeyModifiers.rightShift),this.control.disabled=!this.keystrokeAction.isActive(qe.KeyModifiers.leftCtrl|qe.KeyModifiers.rightCtrl),this.option.disabled=!this.keystrokeAction.isActive(qe.KeyModifiers.leftAlt|qe.KeyModifiers.rightAlt),this.command.disabled=!this.keystrokeAction.isActive(qe.KeyModifiers.leftGui|qe.KeyModifiers.rightGui)},e}(),qt=i["\u0275crt"]({encapsulation:0,styles:[[".disabled[_ngcontent-%COMP%]{fill:gray}text[_ngcontent-%COMP%]{font-size:100px}"]],data:{}});function zt(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-single-icon-key",""]],null,null,null,Dt,Rt)),i["\u0275did"](1,114688,null,0,It,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function $t(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-one-line-text-key",""]],null,null,null,Lt,jt)),i["\u0275did"](1,114688,null,0,Nt,[],{height:[0,"height"],width:[1,"width"],text:[2,"text"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function Gt(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-two-line-text-key",""]],null,null,null,Kt,Vt)),i["\u0275did"](1,114688,null,0,Ut,[],{height:[0,"height"],width:[1,"width"],texts:[2,"texts"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function Yt(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,11,":svg:svg",[],[[1,"viewBox",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),i["\u0275did"](1,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,zt)),i["\u0275did"](4,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,$t)),i["\u0275did"](7,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Gt)),i["\u0275did"](10,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](13,0,null,null,22,":svg:svg",[["preserveAspectRatio","none"]],[[1,"viewBox",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](15,0,null,null,3,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,null,null,4,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,1,":svg:text",[],[[1,"text-anchor",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["C"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](26,0,null,null,3,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](31,0,null,null,3,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](33,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,1,0,t.component.labelType),e(t,4,0,"icon"),e(t,7,0,"one-line"),e(t,10,0,"two-line")},function(e,t){var n=t.component;e(t,0,0,n.viewBox,n.textContainer.width,n.textContainer.height,n.textContainer.x,n.textContainer.y),e(t,13,0,n.viewBox,n.modifierContainer.width,n.modifierContainer.height,n.modifierContainer.x,n.modifierContainer.y),e(t,15,0,n.shift.width,n.shift.height,n.shift.x,n.shift.y,n.shift.disabled),e(t,17,0,n.modifierIconNames.shift),e(t,20,0,n.control.width,n.control.height,n.control.x,n.control.y,n.control.disabled),e(t,22,0,"middle",50,50),e(t,26,0,n.option.width,n.option.height,n.option.x,n.option.y,n.option.disabled),e(t,28,0,n.modifierIconNames.option),e(t,31,0,n.command.width,n.command.height,n.command.x,n.command.y,n.command.disabled),e(t,33,0,n.modifierIconNames.command)})}var Qt=function(){function e(){}return e.prototype.ngOnInit=function(){this.useWidth=this.width/3,this.useHeight=this.height/3,this.useX=this.width>2*this.height?.6*this.width:this.width/3,this.useY=this.width>2*this.height?this.height/3:this.height/2,this.textY=this.width>2*this.height?this.height/2:this.height/3,this.textAnchor=this.width>2*this.height?"end":"middle",this.spanX=this.width>2*this.height?.6*this.width:this.width/2},e}(),Jt=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Zt(e){return i["\u0275vid"](2,[(e()(),i["\u0275ted"](-1,null,[" "])),(e()(),i["\u0275eld"](1,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),i["\u0275ted"](4,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](7,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,1,0,0,n.textY,n.textAnchor),e(t,3,0,n.spanX),e(t,4,0,n.text),e(t,7,0,n.icon,n.useWidth,n.useHeight,n.useX,n.useY)})}var Xt=function(){function e(){}return e.prototype.ngOnInit=function(){this.useWidth=this.width/3,this.useHeight=this.height/3,this.useX=this.width>2*this.height?0:this.width/3,this.useY=this.width>2*this.height?this.height/3:this.height/10,this.textY=this.width>2*this.height?this.height/2:.6*this.height,this.spanX=this.width>2*this.height?.6*this.width:this.width/2},e}(),en=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function tn(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),i["\u0275ted"](6,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon,n.useWidth,n.useHeight,n.useX,n.useY),e(t,3,0,0,n.textY,"middle",11),e(t,5,0,n.spanX),e(t,6,0,n.text)})}var nn=function(){function e(e){this.mapperService=e}return e.prototype.ngOnInit=function(){this.icon=this.mapperService.getIcon("switch-keymap"),this.useWidth=this.width/4,this.useHeight=this.height/4,this.useX=3*this.width/8,this.useY=this.height/5,this.textY=2*this.height/3,this.spanX=this.width/2},e}(),on=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function rn(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),i["\u0275ted"](6,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon,n.useWidth,n.useHeight,n.useX,n.useY),e(t,3,0,0,n.textY,"middle"),e(t,5,0,n.spanX),e(t,6,0,n.abbreviation)})}var ln=function(){function e(e){this.mapper=e,this.icon=this.mapper.getIcon("mouse")}return e.prototype.ngOnInit=function(){},e}(),sn=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function an(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:use",[["height","20"],["width","20"],["x","10"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Click "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](9,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,1,":svg:tspan",[["dy","70"]],null,null,null,null,null)),(e()(),i["\u0275ted"](12,null,[" "," "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon),e(t,3,0,60,0,"middle",25),e(t,9,0,50,0,"middle",25),e(t,12,0,n.button)})}var un=function(){function e(e){this.mapper=e}return e.prototype.ngOnChanges=function(){this.mouseIcon=this.mapper.getIcon("mouse"),this.directionIcon=this.mapper.getIcon(this.direction+"-arrow")},e}(),cn=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function dn(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,0,":svg:use",[["height","20"],["width","20"],["x","8"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](2,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Move "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](8,0,null,null,0,":svg:use",[["height","30"],["width","30"],["x","35"],["y","55"]],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n.mouseIcon),e(t,2,0,60,0,"middle",24),e(t,8,0,n.directionIcon)})}var pn=function(){function e(e){this.mapper=e}return e.prototype.ngOnChanges=function(){this.mouseIcon=this.mapper.getIcon("mouse"),this.directionIcon=this.mapper.getIcon("scroll-"+this.direction)},e}(),fn=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function hn(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,0,":svg:use",[["height","20"],["width","20"],["x","8"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](2,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Scroll "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](8,0,null,null,0,":svg:use",[["height","30"],["width","30"],["x","35"],["y","55"]],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n.mouseIcon),e(t,2,0,60,0,"middle",24),e(t,8,0,n.directionIcon)})}var yn=function(){function e(e){this.mapper=e,this.icon=this.mapper.getIcon("mouse")}return e.prototype.ngOnChanges=function(){this.sign=this.plus?"+":"-"},e}(),mn=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function gn(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:use",[["height","20"],["width","20"],["x","4"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Speed "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](9,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,1,":svg:tspan",[["dy","70"]],null,null,null,null,null)),(e()(),i["\u0275ted"](12,null,[" "," "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon),e(t,3,0,60,0,"middle",25),e(t,9,0,50,0,"middle",30),e(t,12,0,n.sign)})}var vn=function(){function e(){}return e.prototype.ngOnChanges=function(){switch(this.mouseAction.mouseAction){case qe.MouseActionParam.leftClick:this.type="click",this.param="Left";break;case qe.MouseActionParam.rightClick:this.type="click",this.param="Right";break;case qe.MouseActionParam.middleClick:this.type="click",this.param="Middle";break;case qe.MouseActionParam.scrollDown:this.type="scroll",this.param="down";break;case qe.MouseActionParam.scrollLeft:this.type="scroll",this.param="left";break;case qe.MouseActionParam.scrollRight:this.type="scroll",this.param="right";break;case qe.MouseActionParam.scrollUp:this.type="scroll",this.param="up";break;case qe.MouseActionParam.moveDown:this.type="move",this.param="down";break;case qe.MouseActionParam.moveLeft:this.type="move",this.param="left";break;case qe.MouseActionParam.moveRight:this.type="move",this.param="right";break;case qe.MouseActionParam.moveUp:this.type="move",this.param="up";break;case qe.MouseActionParam.accelerate:this.type="speed",this.param=!0;break;case qe.MouseActionParam.decelerate:this.type="speed",this.param=!1}},e}(),bn=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function kn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-click-key",""]],null,null,null,an,sn)),i["\u0275did"](1,114688,null,0,ln,[Bt],{button:[0,"button"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function _n(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-move-key",""]],null,null,null,dn,cn)),i["\u0275did"](1,573440,null,0,un,[Bt],{direction:[0,"direction"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function wn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-scroll-key",""]],null,null,null,hn,fn)),i["\u0275did"](1,573440,null,0,pn,[Bt],{direction:[0,"direction"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function An(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-speed-key",""]],null,null,null,gn,mn)),i["\u0275did"](1,573440,null,0,yn,[Bt],{plus:[0,"plus"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function Tn(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,14,":svg:g",[],null,null,null,null,null)),i["\u0275did"](1,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,kn)),i["\u0275did"](4,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,_n)),i["\u0275did"](7,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,wn)),i["\u0275did"](10,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,An)),i["\u0275did"](13,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,1,0,t.component.type),e(t,4,0,"click"),e(t,7,0,"move"),e(t,10,0,"scroll"),e(t,13,0,"speed")},null)}var Cn=function(){function e(){this.leftModifiers=new Map,this.rightModifiers=new Map,this.mapping=new Map}return e.prototype.getMap=function(e){return this.mapping.get(e)},e.prototype.hasMap=function(e){return this.mapping.has(e)},e.prototype.setModifier=function(e,t){return e?this.leftModifiers.set(t,!0):this.rightModifiers.set(t,!0)},e.prototype.getModifiers=function(e){return this.reMap(e?this.leftModifiers:this.rightModifiers)},e.prototype.initModifiers=function(){this.leftModifiers.set(16,!1),this.leftModifiers.set(17,!1),this.leftModifiers.set(18,!1),this.leftModifiers.set(91,!1),this.rightModifiers.set(16,!1),this.rightModifiers.set(17,!1),this.rightModifiers.set(18,!1),this.rightModifiers.set(91,!1)},e.prototype.populateMapping=function(){this.mapping.set(8,42),this.mapping.set(9,43),this.mapping.set(13,40),this.mapping.set(19,72),this.mapping.set(20,57),this.mapping.set(27,41),this.mapping.set(32,44),this.mapping.set(33,75),this.mapping.set(34,78),this.mapping.set(35,77),this.mapping.set(36,74),this.mapping.set(37,80),this.mapping.set(38,82),this.mapping.set(39,79),this.mapping.set(40,81),this.mapping.set(45,73),this.mapping.set(46,76),this.mapping.set(48,39),this.mapping.set(49,30),this.mapping.set(50,31),this.mapping.set(51,32),this.mapping.set(52,33),this.mapping.set(53,34),this.mapping.set(54,35),this.mapping.set(55,36),this.mapping.set(56,37),this.mapping.set(57,38),this.mapping.set(65,4),this.mapping.set(66,5),this.mapping.set(67,6),this.mapping.set(68,7),this.mapping.set(69,8),this.mapping.set(70,9),this.mapping.set(71,10),this.mapping.set(72,11),this.mapping.set(73,12),this.mapping.set(74,13),this.mapping.set(75,14),this.mapping.set(76,15),this.mapping.set(77,16),this.mapping.set(78,17),this.mapping.set(79,18),this.mapping.set(80,19),this.mapping.set(81,20),this.mapping.set(82,21),this.mapping.set(83,22),this.mapping.set(84,23),this.mapping.set(85,24),this.mapping.set(86,25),this.mapping.set(87,26),this.mapping.set(88,27),this.mapping.set(89,28),this.mapping.set(90,29),this.mapping.set(93,101),this.mapping.set(96,98),this.mapping.set(97,89),this.mapping.set(98,90),this.mapping.set(99,91),this.mapping.set(100,92),this.mapping.set(101,93),this.mapping.set(102,94),this.mapping.set(103,95),this.mapping.set(104,96),this.mapping.set(105,97),this.mapping.set(106,85),this.mapping.set(107,87),this.mapping.set(109,86),this.mapping.set(110,99),this.mapping.set(111,84),this.mapping.set(112,58),this.mapping.set(113,59),this.mapping.set(114,60),this.mapping.set(115,61),this.mapping.set(116,62),this.mapping.set(117,63),this.mapping.set(118,64),this.mapping.set(119,65),this.mapping.set(120,66),this.mapping.set(121,67),this.mapping.set(122,68),this.mapping.set(123,69),this.mapping.set(144,83),this.mapping.set(145,71),this.mapping.set(186,51),this.mapping.set(187,46),this.mapping.set(188,54),this.mapping.set(189,45),this.mapping.set(190,55),this.mapping.set(191,56),this.mapping.set(192,53),this.mapping.set(219,47),this.mapping.set(220,49),this.mapping.set(221,48),this.mapping.set(222,52)},e.prototype.reMap=function(e){return[e.get(16),e.get(17),e.get(91),e.get(18)]},e}(),xn=n("yqBA"),On=function(e){return e[e.KeystrokeKey=0]="KeystrokeKey",e[e.MouseKey=1]="MouseKey",e[e.OneLineText=2]="OneLineText",e[e.TwoLineText=3]="TwoLineText",e[e.TextIcon=4]="TextIcon",e[e.SingleIcon=5]="SingleIcon",e[e.SwitchKeymap=6]="SwitchKeymap",e[e.IconText=7]="IconText",e}({}),Sn=function(){function e(e,t,n,o,r){var l=this;this.mapper=e,this.element=n,this.captureService=o,this.renderer=r,this.keyClick=new i.EventEmitter,this.capture=new i.EventEmitter,this.enumLabelTypes=On,this.changeAnimation="inactive",this.subscription=t.let(Object(xn.d)()).subscribe(function(e){return l.macros=e}),this.reset(),this.captureService.populateMapping(),this.scanCodePressed=!1}return e.prototype.onClick=function(){this.reset(),this.keyClick.emit(this.element.nativeElement)},e.prototype.onMouseDown=function(e){2!==e.which&&1!==e.button||!this.capturingEnabled||(e.preventDefault(),this.renderer.invokeElementMethod(this.element.nativeElement,"focus"),this.recording?this.reset():(this.recording=!0,this.recordAnimation="active"))},e.prototype.onKeyUp=function(e){this.scanCodePressed?(e.preventDefault(),this.scanCodePressed=!1):this.recording&&(e.preventDefault(),this.saveScanCode())},e.prototype.onKeyDown=function(e){var t=e.keyCode;this.recording&&(e.preventDefault(),this.captureService.hasMap(t)?(this.saveScanCode(this.captureService.getMap(t)),this.scanCodePressed=!0):this.captureService.setModifier(1===e.location,t))},e.prototype.onFocusOut=function(){this.reset()},e.prototype.ngOnInit=function(){this.setLabels()},e.prototype.ngOnChanges=function(e){e.keyAction&&(this.setLabels(),this.keybindAnimationEnabled&&(this.changeAnimation="active"))},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.onChangeAnimationDone=function(){this.changeAnimation="inactive"},e.prototype.onRecordingAnimationDone=function(){this.recordAnimation=this.recording&&"inactive"===this.recordAnimation?"active":"inactive"},e.prototype.reset=function(){this.recording=!1,this.changeAnimation="inactive",this.captureService.initModifiers()},e.prototype.saveScanCode=function(e){void 0===e&&(e=0),this.recording=!1,this.changeAnimation="inactive";var t=this.captureService.getModifiers(!0),n=this.captureService.getModifiers(!1);this.capture.emit({code:e,left:t,right:n}),this.captureService.initModifiers()},e.prototype.setLabels=function(){if(!this.keyAction)return this.labelSource=void 0,void(this.labelType=On.OneLineText);if(this.labelType=On.OneLineText,this.keyAction instanceof qe.KeystrokeAction){var e=void 0;if(!(n=this.keyAction).hasActiveModifier()&&n.hasScancode()){var t=n.scancode;e=this.mapper.scanCodeToText(t,n.type),this.mapper.hasScancodeIcon(t,n.type)?(this.labelSource=this.mapper.scanCodeToSvgImagePath(t,n.type),this.labelType=On.SingleIcon):void 0!==e&&(1===e.length?(this.labelSource=e[0],this.labelType=On.OneLineText):(this.labelSource=e,this.labelType=On.TwoLineText))}else if(n.hasOnlyOneActiveModifier()&&!n.hasScancode()){switch(e=[],n.modifierMask){case qe.KeyModifiers.leftCtrl:case qe.KeyModifiers.rightCtrl:e.push("Ctrl");break;case qe.KeyModifiers.leftShift:case qe.KeyModifiers.rightShift:e.push("Shift");break;case qe.KeyModifiers.leftAlt:case qe.KeyModifiers.rightAlt:e.push("Alt");break;case qe.KeyModifiers.leftGui:case qe.KeyModifiers.rightGui:e.push("Super");break;default:e.push("Undefined")}this.labelSource=e}else this.labelType=On.KeystrokeKey,this.labelSource=this.keyAction}else if(this.keyAction instanceof qe.SwitchLayerAction){switch(e=void 0,(n=this.keyAction).layer){case qe.LayerName.mod:e="Mod";break;case qe.LayerName.fn:e="Fn";break;case qe.LayerName.mouse:e="Mouse"}n.switchLayerMode===qe.SwitchLayerMode.toggle?(this.labelType=On.TextIcon,this.labelSource={text:e,icon:this.mapper.getIcon("toggle")}):n.switchLayerMode===qe.SwitchLayerMode.holdAndDoubleTapToggle?(this.labelType=On.TextIcon,this.labelSource={text:e,icon:this.mapper.getIcon("double-tap")}):(this.labelType=On.OneLineText,this.labelSource=e)}else if(this.keyAction instanceof qe.SwitchKeymapAction){var n=this.keyAction;this.labelType=On.SwitchKeymap,this.labelSource=n.keymapAbbreviation}else if(this.keyAction instanceof qe.PlayMacroAction){var o=this.keyAction,i=this.macros.find(function(e){return e.id===o.macroId});this.labelType=On.IconText,this.labelSource={icon:this.mapper.getIcon("macro"),text:i.name}}else this.keyAction instanceof qe.MouseAction?(this.labelType=On.MouseKey,this.labelSource=this.keyAction):this.labelSource=void 0},e}(),Mn=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{cursor:pointer;outline:0}[_nghost-%COMP%] text{dominant-baseline:central}[_nghost-%COMP%]:hover{fill:#494949}"]],data:{animation:[{type:7,name:"change",definitions:[{type:1,expr:"inactive => active",animation:[{type:6,styles:{fill:"#fff"},offset:null},{type:3,steps:[{type:4,styles:{type:6,styles:{fill:"#333"},offset:null},timings:"1s ease-out"}],options:null}],options:null}],options:{}},{type:7,name:"active",definitions:[{type:0,name:"1",styles:{type:6,styles:{fill:"#4099e5"},offset:null},options:void 0},{type:1,expr:"1 => *",animation:{type:4,styles:null,timings:"200ms"},options:null},{type:1,expr:"* => 1",animation:{type:4,styles:null,timings:"0ms"},options:null}],options:{}},{type:7,name:"recording",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{fill:"rgba(204, 0, 0, 1)"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{fill:"rgba(204, 0, 0, 0.6)"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"600ms ease-in-out"},options:null}],options:{}}]}});function En(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,0,":svg:circle",[],[[24,"@recording",0],[1,"cx",0],[1,"cy",0],[1,"r",0],[1,"fill",0]],[[null,"@recording.done"]],function(e,t,n){var o=!0;return"@recording.done"===t&&(o=!1!==e.component.onRecordingAnimationDone()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,1,0,n.recordAnimation,n.width/2,n.height/2,10,"#c00")})}function Pn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-keystroke-key",""]],null,null,null,Yt,qt)),i["\u0275did"](1,638976,null,0,Wt,[Bt],{height:[0,"height"],width:[1,"width"],keystrokeAction:[2,"keystrokeAction"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function In(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-one-line-text-key",""]],null,null,null,Lt,jt)),i["\u0275did"](1,114688,null,0,Nt,[],{height:[0,"height"],width:[1,"width"],text:[2,"text"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function Rn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-two-line-text-key",""]],null,null,null,Kt,Vt)),i["\u0275did"](1,114688,null,0,Ut,[],{height:[0,"height"],width:[1,"width"],texts:[2,"texts"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function Dn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-text-icon-key",""]],null,null,null,Zt,Jt)),i["\u0275did"](1,114688,null,0,Qt,[],{width:[0,"width"],height:[1,"height"],text:[2,"text"],icon:[3,"icon"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource.text,n.labelSource.icon)},null)}function Nn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-icon-text-key",""]],null,null,null,tn,en)),i["\u0275did"](1,114688,null,0,Xt,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"],text:[3,"text"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource.icon,n.labelSource.text)},null)}function jn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-single-icon-key",""]],null,null,null,Dt,Rt)),i["\u0275did"](1,114688,null,0,It,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function Ln(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-switch-keymap-key",""]],null,null,null,rn,on)),i["\u0275did"](1,114688,null,0,nn,[Bt],{width:[0,"width"],height:[1,"height"],abbreviation:[2,"abbreviation"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function Un(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,":svg:svg",[],[[1,"viewBox",0],[1,"width",0],[1,"height",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,":svg:g",[["svg-mouse-key",""]],null,null,null,Tn,bn)),i["\u0275did"](3,573440,null,0,vn,[],{mouseAction:[0,"mouseAction"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,t.component.labelSource)},function(e,t){var n=t.component;e(t,0,0,"0 0 100 100",n.width,n.height)})}function Vn(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,26,":svg:g",[],[[1,"font-size",0],[1,"font-family",0],[1,"fill",0]],null,null,null,null)),i["\u0275did"](2,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Pn)),i["\u0275did"](5,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,In)),i["\u0275did"](8,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Rn)),i["\u0275did"](11,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Dn)),i["\u0275did"](14,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Nn)),i["\u0275did"](17,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,jn)),i["\u0275did"](20,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ln)),i["\u0275did"](23,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Un)),i["\u0275did"](26,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.labelType),e(t,5,0,n.enumLabelTypes.KeystrokeKey),e(t,8,0,n.enumLabelTypes.OneLineText),e(t,11,0,n.enumLabelTypes.TwoLineText),e(t,14,0,n.enumLabelTypes.TextIcon),e(t,17,0,n.enumLabelTypes.IconText),e(t,20,0,n.enumLabelTypes.SingleIcon),e(t,23,0,n.enumLabelTypes.SwitchKeymap),e(t,26,0,n.enumLabelTypes.MouseKey)},function(e,t){e(t,1,0,19,"Helvetica","white")})}function Fn(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,0,":svg:rect",[],[[24,"@change",0],[24,"@active",0],[8,"id",0],[1,"rx",0],[1,"ry",0],[1,"height",0],[1,"width",0]],[[null,"@change.done"]],function(e,t,n){var o=!0;return"@change.done"===t&&(o=!1!==e.component.onChangeAnimationDone()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,En)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Vn)),i["\u0275did"](6,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.recording),e(t,6,0,!n.recording)},function(e,t){var n=t.component;e(t,0,0,n.changeAnimation,n.active,n.id,n.rx,n.ry,n.height,n.width)})}var Kn=function(){function e(e){this.sanitizer=e}return e.prototype.transform=function(e){return this.sanitizer.bypassSecurityTrustStyle(e)},e}(),Bn=function(){function e(){this.keyClick=new i.EventEmitter,this.keyHover=new i.EventEmitter,this.capture=new i.EventEmitter,this.keyboardKeys=[]}return e.prototype.onKeyClick=function(e,t){this.keyClick.emit({index:e,keyTarget:t})},e.prototype.onKeyHover=function(e,t,n){this.keyHover.emit({index:e,event:t,over:n})},e.prototype.onCapture=function(e,t){this.capture.emit({index:e,captured:t})},e}(),Hn=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{position:relative}"]],data:{}});function Wn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:path",[],[[1,"d",0],[1,"style",2]],null,null,null,null)),i["\u0275ppd"](1,1)],null,function(e,t){e(t,0,0,t.context.$implicit.$.d,i["\u0275unv"](t,0,1,e(t,1,0,i["\u0275nov"](t.parent,0),t.context.$implicit.$.style)))})}function qn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-keyboard-key",""]],[[1,"transform",0],[1,"fill",0],[1,"tabindex",0]],[[null,"keyClick"],[null,"capture"],[null,"mouseenter"],[null,"mouseleave"],[null,"click"],[null,"mousedown"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,t,n){var o=!0,r=e.component;return"click"===t&&(o=!1!==i["\u0275nov"](e,1).onClick()&&o),"mousedown"===t&&(o=!1!==i["\u0275nov"](e,1).onMouseDown(n)&&o),"keyup"===t&&(o=!1!==i["\u0275nov"](e,1).onKeyUp(n)&&o),"keydown"===t&&(o=!1!==i["\u0275nov"](e,1).onKeyDown(n)&&o),"focusout"===t&&(o=!1!==i["\u0275nov"](e,1).onFocusOut()&&o),"keyClick"===t&&(o=!1!==r.onKeyClick(e.parent.context.index,n)&&o),"capture"===t&&(o=!1!==r.onCapture(e.parent.context.index,n)&&o),"mouseenter"===t&&(o=!1!==r.onKeyHover(e.parent.context.index,n,!0)&&o),"mouseleave"===t&&(o=!1!==r.onKeyHover(e.parent.context.index,n,!1)&&o),o},Fn,Mn)),i["\u0275did"](1,770048,null,0,Sn,[Bt,s.m,i.ElementRef,Cn,i.Renderer],{id:[0,"id"],rx:[1,"rx"],ry:[2,"ry"],height:[3,"height"],width:[4,"width"],keyAction:[5,"keyAction"],keybindAnimationEnabled:[6,"keybindAnimationEnabled"],capturingEnabled:[7,"capturingEnabled"],active:[8,"active"]},{keyClick:"keyClick",capture:"capture"})],function(e,t){var n=t.component;e(t,1,0,t.parent.context.$implicit.id,t.parent.context.$implicit.rx,t.parent.context.$implicit.ry,t.parent.context.$implicit.height,t.parent.context.$implicit.width,n.keyActions[t.parent.context.index],n.keybindAnimationEnabled,n.capturingEnabled,n.selected&&t.parent.context.index==n.selectedKey.keyId)},function(e,t){e(t,0,0,"translate("+t.parent.context.$implicit.x+" "+t.parent.context.$implicit.y+")",t.parent.context.$implicit.fill,0)})}function zn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,null,null,null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,qn)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,t.context.$implicit)},null)}function $n(e){return i["\u0275vid"](2,[i["\u0275pid"](0,Kn,[P.c]),(e()(),i["\u0275and"](16777216,null,null,1,null,Wn)),i["\u0275did"](2,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,zn)),i["\u0275did"](5,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.coverages),e(t,5,0,n.keyboardKeys)},null)}var Gn=function(){function e(e){this.el=e}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this.el.nativeElement.focus()},e}(),Yn=function(){function e(e){this.cdr=e,this.placeholder="No editable content",this.editing=!1,this.textChange=function(){}}return Object.defineProperty(e.prototype,"isSaveDisabled",{get:function(){return!this.text||0===this.text.trim().length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayText",{get:function(){return this.text&&this.text.replace(/\n/g,"
")},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.text!==e&&(this.text=e,this.cdr.markForCheck())},e.prototype.registerOnChange=function(e){this.textChange=e},e.prototype.registerOnTouched=function(e){},e.prototype.saveText=function(){this.originalText=null,this.editing=!1,this.textChange(this.text)},e.prototype.editText=function(){this.originalText=this.text,this.editing=!0},e.prototype.cancelEditText=function(){this.text=this.originalText,this.editing=!1},e.prototype.keydownEnter=function(){this.isSaveDisabled||this.saveText()},Object.defineProperty(e.prototype,"showPlaceholder",{get:function(){return!this.editing&&!this.text},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showText",{get:function(){return!this.editing&&!!this.text},enumerable:!0,configurable:!0}),e}(),Qn=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{margin-top:.5em}[_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%]{color:gray;display:inline-block}[_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%] .glyphicon[_ngcontent-%COMP%]{color:#000}[_nghost-%COMP%] span.editable[_ngcontent-%COMP%], [_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%] textarea.text-editor[_ngcontent-%COMP%]{display:block;width:100%}[_nghost-%COMP%] .buttons[_ngcontent-%COMP%]{margin-top:.5em}"]],data:{}});function Jn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,"span",[["class","placeholder"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"span",[],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.editText()&&o),o},null,null)),(e()(),i["\u0275ted"](3,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,3,0,t.component.placeholder)})}function Zn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"span",[["class","editable"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,0,"span",[],[[8,"innerHTML",1]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.editText()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,2,0,t.component.displayText)})}function Xn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,18,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"textarea",[["autofocus",""],["class","text-editor"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keydown.control.enter"],[null,"keydown.alt.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,3)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,3).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,3)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,3)._compositionEnd(n.target.value)&&o),"ngModelChange"===t&&(o=!1!==(r.text=n)&&o),"keydown.control.enter"===t&&(o=!1!==r.keydownEnter()&&o),"keydown.alt.enter"===t&&(o=!1!==r.keydownEnter()&&o),o},null,null)),i["\u0275did"](3,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.DefaultValueAccessor]),i["\u0275did"](5,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](7,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),i["\u0275did"](8,4276224,null,0,Gn,[i.ElementRef],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,7,"div",[["class","pull-right buttons"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,1,"button",[["class","btn btn-danger"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.cancelEditText()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n Cancel\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](15,0,null,null,1,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.saveText()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n Update description\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.text),e(t,8,0)},function(e,t){var n=t.component;e(t,2,0,i["\u0275nov"](t,7).ngClassUntouched,i["\u0275nov"](t,7).ngClassTouched,i["\u0275nov"](t,7).ngClassPristine,i["\u0275nov"](t,7).ngClassDirty,i["\u0275nov"](t,7).ngClassValid,i["\u0275nov"](t,7).ngClassInvalid,i["\u0275nov"](t,7).ngClassPending),e(t,15,0,n.isSaveDisabled)})}function eo(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","text-center"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Jn)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Zn)),i["\u0275did"](6,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Xn)),i["\u0275did"](10,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.showPlaceholder),e(t,6,0,n.showText),e(t,10,0,n.editing)},null)}var to=function(e){var t,n=e.rect.map(function(e){return e.$});this.keyboardKeys=[];for(var o=0;o *",animation:{type:4,styles:null,timings:500},options:null}],options:{}}]}});function lo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-module",""]],[[1,"transform",0],[24,"@split",0]],[[null,"keyClick"],[null,"keyHover"],[null,"capture"]],function(e,t,n){var o=!0,i=e.component;return"keyClick"===t&&(o=!1!==i.onKeyClick(e.context.index,n.index,n.keyTarget)&&o),"keyHover"===t&&(o=!1!==i.onKeyHover(n.index,n.event,n.over,e.context.index)&&o),"capture"===t&&(o=!1!==i.onCapture(e.context.index,n.index,n.captured)&&o),o},$n,Hn)),i["\u0275did"](1,49152,null,0,Bn,[],{coverages:[0,"coverages"],keyboardKeys:[1,"keyboardKeys"],keyActions:[2,"keyActions"],selectedKey:[3,"selectedKey"],selected:[4,"selected"],keybindAnimationEnabled:[5,"keybindAnimationEnabled"],capturingEnabled:[6,"capturingEnabled"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture"})],function(e,t){var n=t.component;e(t,1,0,t.context.$implicit.coverages,t.context.$implicit.keyboardKeys,n.moduleConfig[t.context.index].keyActions,n.selectedKey,(null==n.selectedKey?null:n.selectedKey.moduleId)===t.context.index,n.keybindAnimationEnabled,n.capturingEnabled)},function(e,t){e(t,0,0,t.context.$implicit.attributes.transform,t.component.moduleAnimationStates[t.context.index])})}function so(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,5,"editable-text",[["placeholder","No description provided for this keymap."]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var o=!0;return"ngModelChange"===t&&(o=!1!==e.component.descriptionChanged.emit(n)&&o),o},eo,Qn)),i["\u0275did"](1,49152,null,0,Yn,[i.ChangeDetectorRef],{placeholder:[0,"placeholder"]},null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Yn]),i["\u0275did"](3,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](5,16384,null,0,je.NgControlStatus,[je.NgControl],null,null)],function(e,t){var n=t.component;e(t,1,0,"No description provided for this keymap."),e(t,3,0,n.description)},function(e,t){e(t,0,0,i["\u0275nov"](t,5).ngClassUntouched,i["\u0275nov"](t,5).ngClassTouched,i["\u0275nov"](t,5).ngClassPristine,i["\u0275nov"](t,5).ngClassDirty,i["\u0275nov"](t,5).ngClassValid,i["\u0275nov"](t,5).ngClassInvalid,i["\u0275nov"](t,5).ngClassPending)})}function ao(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,8,":svg:svg",[["height","100%"],["width","100%"],["xmlns","http://www.w3.org/2000/svg"]],[[1,"viewBox",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,lo)),i["\u0275did"](3,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](5,0,null,null,2,":svg:path",[],[[1,"d",0],[1,"style",2]],null,null,null,null)),i["\u0275did"](6,278528,null,0,d.i,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngClass:[0,"ngClass"]},null),i["\u0275pod"](7,{"separator-visible":0,"separator-hide":1}),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,so)),i["\u0275did"](11,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.modules),e(t,6,0,e(t,7,0,!n.halvesSplit,n.halvesSplit)),e(t,11,0,n.showDescription)},function(e,t){var n=t.component;e(t,0,0,n.viewBox),e(t,5,0,n.separator.d,n.separatorStyle)})}var uo=function(){function e(){this.keyboardLayout=no.a.ANSI,this.keyClick=new i.EventEmitter,this.keyHover=new i.EventEmitter,this.capture=new i.EventEmitter,this.descriptionChanged=new i.EventEmitter}return e.prototype.ngOnChanges=function(e){e.layers&&(this.layerAnimationState=this.layers.map(function(){return"initOut"}),this.layerAnimationState[this.currentLayer]="init");var t=e.currentLayer;if(t)if(e.layers);else{var n=t.isFirstChange()?t.currentValue:t.previousValue;this.onLayerChange(n,t.currentValue)}},e.prototype.trackKeyboard=function(e){return e},e.prototype.onLayerChange=function(e,t){t>e?(this.layerAnimationState[e]="leftOut",this.layerAnimationState[t]="leftIn"):(this.layerAnimationState[e]="rightOut",this.layerAnimationState[t]="rightIn")},e}(),co=i["\u0275crt"]({encapsulation:0,styles:[["svg-keyboard[_ngcontent-%COMP%]{width:95%;max-width:1400px;position:absolute;left:0;-webkit-transform:translateX(-101%);transform:translateX(-101%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}"]],data:{animation:[{type:7,name:"layerState",definitions:[{type:0,name:"init",styles:{type:6,styles:{transform:"translateX(-50%)",left:"50%"},offset:null},options:void 0},{type:0,name:"initOut",styles:{type:6,styles:{transform:"translateX(0)",left:"101%"},offset:null},options:void 0},{type:0,name:"leftIn, rightIn",styles:{type:6,styles:{transform:"translateX(-50%)",left:"50%"},offset:null},options:void 0},{type:0,name:"leftOut",styles:{type:6,styles:{transform:"translateX(-101%)",left:"0"},offset:null},options:void 0},{type:0,name:"rightOut",styles:{type:6,styles:{transform:"translateX(0)",left:"101%"},offset:null},options:void 0},{type:1,expr:"initOut => leftIn, leftOut => leftIn, rightOut => leftIn",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(0%)",left:"101%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"init => leftOut, leftIn => leftOut, rightIn => leftOut",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-101%)",left:"0%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"* => rightIn",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-101%)",left:"0%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"* => rightOut",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:0},offset:null},{type:6,styles:{transform:"translateX(0%)",left:"101%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:":leave",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{opacity:1,offset:0},offset:null},{type:6,styles:{opacity:0,offset:1},offset:null}]},timings:"2000ms ease-out"}],options:null}],options:{}}]}});function po(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"svg-keyboard",[],[[24,"@layerState",0]],[[null,"keyClick"],[null,"keyHover"],[null,"capture"],[null,"descriptionChanged"]],function(e,t,n){var o=!0,i=e.component;return"keyClick"===t&&(o=!1!==i.keyClick.emit(n)&&o),"keyHover"===t&&(o=!1!==i.keyHover.emit(n)&&o),"capture"===t&&(o=!1!==i.capture.emit(n)&&o),"descriptionChanged"===t&&(o=!1!==i.descriptionChanged.emit(n)&&o),o},ao,ro)),i["\u0275did"](1,638976,null,0,io,[oo,P.c],{moduleConfig:[0,"moduleConfig"],keybindAnimationEnabled:[1,"keybindAnimationEnabled"],capturingEnabled:[2,"capturingEnabled"],selectedKey:[3,"selectedKey"],selected:[4,"selected"],halvesSplit:[5,"halvesSplit"],keyboardLayout:[6,"keyboardLayout"],description:[7,"description"],showDescription:[8,"showDescription"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"}),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,t.context.$implicit.modules,n.keybindAnimationEnabled,n.capturingEnabled,n.selectedKey,(null==n.selectedKey?null:n.selectedKey.layerId)===t.context.index,n.halvesSplit,n.keyboardLayout,n.description,!0)},function(e,t){e(t,0,0,t.component.layerAnimationState[t.context.index])})}function fo(e){return i["\u0275vid"](2,[(e()(),i["\u0275and"](16777216,null,null,1,null,po)),i["\u0275did"](1,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.layers,n.trackKeyboard)},null)}var ho=n("rlkT"),yo=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function mo(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{selector:0}),(e()(),i["\u0275eld"](1,0,[[1,0],["selector",1]],null,0,"select",[],null,null,null,null,null))],null,null)}var go=function(){function e(e){this.captureService=e,this.isLink=!1,this.captureText="Capture keystroke",this.capture=new i.EventEmitter,this.record=!1,this.captureService.initModifiers(),this.captureService.populateMapping(),this.scanCodePressed=!1}return e.prototype.onKeyUp=function(e){this.scanCodePressed?(e.preventDefault(),this.scanCodePressed=!1):this.record&&!this.first&&(e.preventDefault(),this.saveScanCode())},e.prototype.onKeyDown=function(e){var t=e.keyCode;this.record?(e.preventDefault(),e.stopPropagation(),this.first=!1,this.captureService.hasMap(t)?(this.saveScanCode(this.captureService.getMap(t)),this.scanCodePressed=!0):this.captureService.setModifier(1===e.location,t)):13===t&&(this.record=!0,this.first=!0)},e.prototype.onFocusOut=function(){this.record=!1,this.reset()},e.prototype.start=function(){this.record=!0},e.prototype.saveScanCode=function(e){this.record=!1;var t=this.captureService.getModifiers(!0),n=this.captureService.getModifiers(!1);this.capture.emit({code:e,left:t,right:n}),this.reset()},e.prototype.reset=function(){this.first=!1,this.captureService.initModifiers()},e}(),vo=i["\u0275crt"]({encapsulation:0,styles:[[".link--capture-keystroke[_ngcontent-%COMP%]{padding:7px 0;text-decoration:none;border:0;width:100%}.link--capture-keystroke[_ngcontent-%COMP%]:focus{outline:0}.btn--capture-keystroke[_ngcontent-%COMP%]{display:inline-block;margin:0 0 0 .25rem}.fa-circle[_ngcontent-%COMP%]{color:#c00}"]],data:{}});function bo(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](0,null,["\n","\n"]))],null,function(e,t){e(t,0,0,t.component.captureText)})}function ko(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\nCapturing ...\n"]))],null,null)}function _o(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,11,"button",[["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.start()&&o),o},null,null)),i["\u0275did"](1,278528,null,0,d.i,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngClass:[0,"ngClass"]},null),i["\u0275pod"](2,{"btn btn-sm btn--capture-keystroke":0,"btn-link link--capture-keystroke":1,"btn-default":2,"btn-info":3}),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-circle"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,bo)),i["\u0275did"](7,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,ko)),i["\u0275did"](10,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,e(t,2,0,!n.isLink,n.isLink,!n.record&&!n.isLink,n.record&&!n.isLink)),e(t,7,0,!n.record),e(t,10,0,n.record)},null)}var wo=n("TToO"),Ao=function(){return function(){this.validAction=new i.EventEmitter}}(),To=function(e){function t(t){var n=e.call(this)||this;return n.mapper=t,n.scanCodeTemplateResult=function(e){return e.id?e.additional&&e.additional.explanation?jQuery(''+e.text+' '+e.additional.explanation+""):jQuery(''+e.text+""):e.text},n.leftModifiers=["LShift","LCtrl","LSuper","LAlt"],n.rightModifiers=["RShift","RCtrl","RSuper","RAlt"],n.scanCodeGroups=[{id:"0",text:"None"}],n.scanCodeGroups=n.scanCodeGroups.concat(qe.SCANCODES),n.secondaryRoleGroups=qe.SECONDARY_ROLES,n.leftModifierSelects=Array(n.leftModifiers.length).fill(!1),n.rightModifierSelects=Array(n.rightModifiers.length).fill(!1),n.selectedScancodeOption=n.scanCodeGroups[0],n.selectedSecondaryRoleIndex=-1,n.options={templateResult:n.scanCodeTemplateResult,matcher:function(e,t,n){var o=t.toUpperCase().indexOf(e.toUpperCase())>-1;return!o&&n.additional&&n.additional.explanation&&(o=n.additional.explanation.toUpperCase().indexOf(e.toUpperCase())>-1),o}},n}return Object(wo.__extends)(t,e),t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(this.keyActionValid())},t.prototype.keyActionValid=function(e){return e||(e=this.toKeyAction()),!!e&&(e.scancode>0||e.modifierMask>0)},t.prototype.onKeysCapture=function(e){this.selectedScancodeOption=e.code?this.findScancodeOptionByScancode(e.code,qe.KeystrokeType.basic):this.scanCodeGroups[0],this.leftModifierSelects=e.left,this.rightModifierSelects=e.right,this.validAction.emit(this.keyActionValid())},t.prototype.fromKeyAction=function(e){if(!(e instanceof qe.KeystrokeAction))return!1;var t=e;this.selectedScancodeOption=this.findScancodeOptionByScancode(t.scancode||0,t.type);for(var n=this.leftModifiers.length,o=0;o>o&1);for(o=n;o>o&1)}return this.selectedSecondaryRoleIndex=void 0!==t.secondaryRoleAction?this.mapper.modifierMapper(t.secondaryRoleAction):-1,!0},t.prototype.toKeyAction=function(){var e=new qe.KeystrokeAction,t=this.toScancodeTypePair(this.selectedScancodeOption);e.scancode=t[0],e.type="media"===t[1]?e.scancode>255?qe.KeystrokeType.longMedia:qe.KeystrokeType.shortMedia:qe.KeystrokeType[t[1]],e.modifierMask=0;for(var n=this.leftModifierSelects.concat(this.rightModifierSelects).map(function(e){return e?1:0}),o=0;o0;){var o=n.shift();if(e(o)){t=o;break}o.children&&n.push.apply(n,o.children)}return t},t.prototype.findScancodeOptionById=function(e){return this.findScancodeOptionBy(function(t){return t.id===e})},t.prototype.findScancodeOptionByScancode=function(e,t){var n=t===qe.KeystrokeType.shortMedia||t===qe.KeystrokeType.longMedia?"media":qe.KeystrokeType[t];return this.findScancodeOptionBy(function(t){var o=t.additional;return!(!o||o.scancode!==e||o.type!==n)||!(o&&void 0!==o.scancode||+t.id!==e)})},t.prototype.toScancodeTypePair=function(e){var t,n;return e.additional?(t=e.additional.scancode,n=e.additional.type||"basic"):n="basic",void 0===t&&(t=+e.id),[t,n]},t}(Ao),Co=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%]{margin-bottom:10px;margin-top:2px}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{position:relative;top:2px}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{position:relative;top:-9px;margin-right:4px}[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%] .btn-toolbar[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:3rem}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{margin-right:.6em;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] .secondary-role[_ngcontent-%COMP%]{width:135px}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{margin-left:.6em}[_nghost-%COMP%] .setting-label.disabled[_ngcontent-%COMP%]{color:#999}[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%]{display:none;position:absolute;top:50%;margin-top:-4rem;color:#31708f;padding-right:40px}[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{font-size:2.6rem;float:left;padding:1rem 1.5rem 2rem}.disabled[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%]{visibility:hidden}.disabled[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%]{display:block}"]],data:{}});function xo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleModifier(!1,e.context.index)&&o),o},null,null)),(e()(),i["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.component.leftModifierSelects[t.context.index]),e(t,1,0,t.context.$implicit)})}function Oo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleModifier(!0,e.context.index)&&o),o},null,null)),(e()(),i["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.component.rightModifierSelects[t.context.index]),e(t,1,0,t.context.$implicit)})}function So(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,11,"div",[["class","long-press-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Secondary role:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,t,n){var o=!0;return"valueChanged"===t&&(o=!1!==e.component.onSecondaryRoleChange(n)&&o),o},mo,yo)),i["\u0275did"](6,4964352,[["secondaryRoleSelect",4]],0,ho.Select2Component,[i.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"]},{valueChanged:"valueChanged"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","620"],["name","question-circle"],["title","

The secondary role activates when another key gets pressed while holding this key.

\n

Let's say that the scancode is Escape and the secondary role is Mouse. Then:

\n
    \n
  • Tap this key to trigger Escape. (Primary role)
  • \n
  • Hold this key and press another key to activate the relevant key of the Mouse layer. (Secondary role)
  • \n
\n

The secondary role can be any layer or modifier.

"]],[[1,"data-placement",0]],null,null,De,we)),i["\u0275did"](9,114688,null,0,_e,[],{name:[0,"name"]},null),i["\u0275did"](10,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,6,0,n.secondaryRoleGroups,n.selectedSecondaryRoleIndex.toString(),140),e(t,9,0,"question-circle"),e(t,10,0,"

The secondary role activates when another key gets pressed while holding this key.

\n

Let's say that the scancode is Escape and the secondary role is Mouse. Then:

\n
    \n
  • Tap this key to trigger Escape. (Primary role)
  • \n
  • Hold this key and press another key to activate the relevant key of the Mouse layer. (Secondary role)
  • \n
\n

The secondary role can be any layer or modifier.

","true","620")},function(e,t){e(t,8,0,i["\u0275nov"](t,10).placement)})}function Mo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,14,"div",[["class","scancode-options"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Scancode:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,t,n){var o=!0;return"valueChanged"===t&&(o=!1!==e.component.onScancodeChange(n)&&o),o},mo,yo)),i["\u0275did"](6,4964352,null,0,ho.Select2Component,[i.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"],options:[3,"options"]},{valueChanged:"valueChanged"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","330"],["name","question-circle"],["title","

Looking for a non-US character? Just pick the character of the desired key according to the US layout.

\n

Let's say you're a German user and want to map the \xd6 character. You can see that on US keyboards this is the semicolon key, so choose semicolon in this dropdown.

"]],[[1,"data-placement",0]],null,null,De,we)),i["\u0275did"](9,114688,null,0,_e,[],{name:[0,"name"]},null),i["\u0275did"](10,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,1,"capture-keystroke-button",[["tabindex","0"]],null,[[null,"capture"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,t,n){var o=!0,r=e.component;return"keyup"===t&&(o=!1!==i["\u0275nov"](e,13).onKeyUp(n)&&o),"keydown"===t&&(o=!1!==i["\u0275nov"](e,13).onKeyDown(n)&&o),"focusout"===t&&(o=!1!==i["\u0275nov"](e,13).onFocusOut()&&o),"capture"===t&&(o=!1!==r.onKeysCapture(n)&&o),o},_o,vo)),i["\u0275did"](13,49152,null,0,go,[Cn],null,{capture:"capture"}),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](16,0,null,null,19,"div",[["class","modifier-options"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](18,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Modifiers:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](21,0,null,null,13,"div",[["class","btn-toolbar modifiers"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,4,"div",[["class","btn-group btn-group-sm modifiers__left"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,xo)),i["\u0275did"](26,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](29,0,null,null,4,"div",[["class","btn-group btn-group-sm modifiers__right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Oo)),i["\u0275did"](32,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,So)),i["\u0275did"](38,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275eld"](40,0,null,null,9,"div",[["class","disabled-state--text"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](42,0,null,null,0,"i",[["class","fa fa-info-circle"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n When a key is configured as layer switcher key, you can't assign other functions to it.\n To assign a scancode to the key, set the "])),(e()(),i["\u0275eld"](44,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Layer action"])),(e()(),i["\u0275ted"](-1,null,[" to "])),(e()(),i["\u0275eld"](47,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["None"])),(e()(),i["\u0275ted"](-1,null,[".\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,6,0,n.scanCodeGroups,n.selectedScancodeOption.id,200,n.options),e(t,9,0,"question-circle"),e(t,10,0,"

Looking for a non-US character? Just pick the character of the desired key according to the US layout.

\n

Let's say you're a German user and want to map the \xd6 character. You can see that on US keyboards this is the semicolon key, so choose semicolon in this dropdown.

","true","330"),e(t,26,0,n.leftModifiers),e(t,32,0,n.rightModifiers),e(t,38,0,n.secondaryRoleEnabled)},function(e,t){e(t,8,0,i["\u0275nov"](t,10).placement)})}var Eo=function(e){function t(){var t=e.call(this)||this;return t.toggleData=[{id:"active",text:"Activate"},{id:"toggle",text:"Toggle"}],t.layerData=[{id:0,text:"Mod"},{id:1,text:"Fn"},{id:2,text:"Mouse"}],t.toggle="active",t.layer=qe.LayerName.mod,t}return Object(wo.__extends)(t,e),t.prototype.ngOnChanges=function(e){e.defaultKeyAction&&this.fromKeyAction(this.defaultKeyAction),e.currentLayer&&(this.isNotBase=this.currentLayer>0),this.validAction.emit(!0)},t.prototype.keyActionValid=function(){return!this.isNotBase},t.prototype.fromKeyAction=function(e){if(!(e instanceof qe.SwitchLayerAction))return!1;var t=e;switch(t.switchLayerMode){case qe.SwitchLayerMode.holdAndDoubleTapToggle:this.toggle="active",this.lockLayerWhenDoubleTapping=!0;break;case qe.SwitchLayerMode.hold:this.toggle="active",this.lockLayerWhenDoubleTapping=!1;break;default:this.toggle="toggle",this.lockLayerWhenDoubleTapping=!1}return this.layer=t.layer,!0},t.prototype.toKeyAction=function(){var e=new qe.SwitchLayerAction;if(e.switchLayerMode="toggle"===this.toggle?qe.SwitchLayerMode.toggle:!this.allowLayerDoubleTap||this.lockLayerWhenDoubleTapping?qe.SwitchLayerMode.holdAndDoubleTapToggle:qe.SwitchLayerMode.hold,e.layer=this.layer,!this.keyActionValid())throw new Error("KeyAction is invalid!");return e},t.prototype.toggleChanged=function(e){this.toggle=e},t.prototype.layerChanged=function(e){this.layer=+e},t}(Ao),Po=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0 -5px}.no-base[_nghost-%COMP%]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}[_nghost-%COMP%] > select[_ngcontent-%COMP%], [_nghost-%COMP%] > span[_ngcontent-%COMP%]{margin:0 5px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}select[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #aaa;border-radius:4px;padding:4px 20px 4px 8px}"]],data:{}});function Io(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),i["\u0275did"](1,147456,null,0,je.NgSelectOption,[i.ElementRef,i.Renderer2,[8,null]],{value:[0,"value"]},null),i["\u0275did"](2,147456,null,0,je["\u0275q"],[i.ElementRef,i.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),i["\u0275ted"](3,null,["\n ","\n "]))],function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)},function(e,t){e(t,0,0,t.component.toggle===t.context.$implicit.id),e(t,3,0,t.context.$implicit.text)})}function Ro(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),i["\u0275did"](1,147456,null,0,je.NgSelectOption,[i.ElementRef,i.Renderer2,[8,null]],{value:[0,"value"]},null),i["\u0275did"](2,147456,null,0,je["\u0275q"],[i.ElementRef,i.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),i["\u0275ted"](3,null,["\n ","\n "]))],function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)},function(e,t){e(t,0,0,t.component.layer===t.context.$implicit.id),e(t,3,0,t.context.$implicit.text)})}function Do(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["layer by tapping this key."]))],null,null)}function No(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["layer by holding this key."]))],null,null)}function jo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,14,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,5,"input",[["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var o=!0,r=e.component;return"change"===t&&(o=!1!==i["\u0275nov"](e,7).onChange(n.target.checked)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,7).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.lockLayerWhenDoubleTapping=n)&&o),o},null,null)),i["\u0275did"](7,16384,null,0,je.CheckboxControlValueAccessor,[i.Renderer2,i.ElementRef],null,null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.CheckboxControlValueAccessor]),i["\u0275did"](9,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](11,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" Lock layer when double tapping this key.\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,9,0,t.component.lockLayerWhenDoubleTapping)},function(e,t){e(t,6,0,i["\u0275nov"](t,11).ngClassUntouched,i["\u0275nov"](t,11).ngClassTouched,i["\u0275nov"](t,11).ngClassPristine,i["\u0275nov"](t,11).ngClassDirty,i["\u0275nov"](t,11).ngClassValid,i["\u0275nov"](t,11).ngClassInvalid,i["\u0275nov"](t,11).ngClassPending)})}function Lo(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,32,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,26,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,4,"select",[],null,[[null,"change"]],function(e,t,n){var o=!0;return"change"===t&&(o=!1!==e.component.toggleChanged(n.target.value)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Io)),i["\u0275did"](8,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["the"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,4,"select",[],null,[[null,"change"]],function(e,t,n){var o=!0;return"change"===t&&(o=!1!==e.component.layerChanged(n.target.value)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ro)),i["\u0275did"](17,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,null,null,8,"span",[],null,null,null,null,null)),i["\u0275did"](21,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Do)),i["\u0275did"](24,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,No)),i["\u0275did"](27,16384,null,0,d.p,[i.ViewContainerRef,i.TemplateRef,d.n],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,jo)),i["\u0275did"](32,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.toggleData),e(t,17,0,n.layerData),e(t,21,0,n.toggle),e(t,24,0,"toggle"),e(t,32,0,"active"===n.toggle&&n.allowLayerDoubleTap)},null)}function Uo(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Layer switching is only possible from the base layer. "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}function Vo(e){return i["\u0275vid"](0,[(e()(),i["\u0275and"](16777216,null,null,1,null,Lo)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Uo)),i["\u0275did"](4,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,!n.isNotBase),e(t,4,0,n.isNotBase)},null)}var Fo=function(e){function t(){var t=e.call(this)||this;return t.MouseActionParam=qe.MouseActionParam,t.selectedPageIndex=0,t.pages=["Move","Scroll","Click","Speed"],t}return Object(wo.__extends)(t,e),t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(this.keyActionValid())},t.prototype.keyActionValid=function(){return void 0!==this.mouseActionParam},t.prototype.fromKeyAction=function(e){if(!(e instanceof qe.MouseAction))return!1;var t=e;switch(this.mouseActionParam=t.mouseAction,t.mouseAction===qe.MouseActionParam.moveUp&&(this.selectedPageIndex=0),t.mouseAction){case qe.MouseActionParam.moveDown:case qe.MouseActionParam.moveUp:case qe.MouseActionParam.moveLeft:case qe.MouseActionParam.moveRight:this.selectedPageIndex=0;break;case qe.MouseActionParam.scrollDown:case qe.MouseActionParam.scrollUp:case qe.MouseActionParam.scrollLeft:case qe.MouseActionParam.scrollRight:this.selectedPageIndex=1;break;case qe.MouseActionParam.leftClick:case qe.MouseActionParam.middleClick:case qe.MouseActionParam.rightClick:this.selectedPageIndex=2;break;case qe.MouseActionParam.decelerate:case qe.MouseActionParam.accelerate:this.selectedPageIndex=3;break;default:return!1}return!0},t.prototype.toKeyAction=function(){var e=new qe.MouseAction;return e.mouseAction=this.mouseActionParam,e},t.prototype.changePage=function(e){e<-1||e>3?console.error("Invalid index error: "+e):(this.selectedPageIndex=e,this.mouseActionParam=void 0,this.validAction.emit(!1))},t.prototype.setMouseActionParam=function(e){this.mouseActionParam=e,this.validAction.emit(!0)},t}(Ao),Ko=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.popover-content[_nghost-%COMP%]{padding:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%]{border-right:1px solid #ccc}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:italic}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:normal}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{content:'';display:block;position:absolute;width:0;height:0;top:0;right:-4rem;border-color:transparent transparent transparent #337ab7;border-style:solid;border-width:2rem}[_nghost-%COMP%] .details[_ngcontent-%COMP%] .btn-placeholder[_ngcontent-%COMP%]{visibility:hidden}.mouse__config--speed[_ngcontent-%COMP%] .btn-default[_ngcontent-%COMP%]{font-size:25px;line-height:22px;padding-top:4px;padding-bottom:4px}.mouse__config--speed[_ngcontent-%COMP%] .btn-default[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:13px;display:block;text-align:center}"]],data:{}});function Bo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.changePage(e.context.index)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](3,null,[" ",""])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,0,0,t.component.selectedPageIndex===t.context.index),e(t,3,0,t.context.$implicit)})}function Ho(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,35,"div",[["class","mouse__config mouse__config--move text-center"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.moveUp)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-arrow-up"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.moveLeft)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-arrow-left"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.moveRight)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-arrow-right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](30,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.moveDown)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](32,0,null,null,0,"i",[["class","fa fa-arrow-down"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.moveUp),e(t,12,0,n.mouseActionParam===n.MouseActionParam.moveLeft),e(t,22,0,n.mouseActionParam===n.MouseActionParam.moveRight),e(t,30,0,n.mouseActionParam===n.MouseActionParam.moveDown)})}function Wo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,35,"div",[["class","mouse__config mouse__config--scroll text-center"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.scrollUp)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-angle-double-up"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.scrollLeft)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-angle-double-left"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.scrollRight)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-angle-double-right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](30,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.scrollDown)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](32,0,null,null,0,"i",[["class","fa fa-angle-double-down"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.scrollUp),e(t,12,0,n.mouseActionParam===n.MouseActionParam.scrollLeft),e(t,22,0,n.mouseActionParam===n.MouseActionParam.scrollRight),e(t,30,0,n.mouseActionParam===n.MouseActionParam.scrollDown)})}function qo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"div",[["class","mouse__config mouse__config--click"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","btn-group col-xs-12"],["role","group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.leftClick)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Left"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.middleClick)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Middle"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.rightClick)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Right"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.leftClick),e(t,7,0,n.mouseActionParam===n.MouseActionParam.middleClick),e(t,10,0,n.mouseActionParam===n.MouseActionParam.rightClick)})}function zo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,22,"div",[["class","mouse__config mouse__config--speed text-center"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,4,"div",[["class","help-text--mouse-speed text-left"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Press this key along with mouse movement/scrolling to accelerate/decelerate its speed."])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,13,"div",[["class","btn-group btn-group-lg"],["role","group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.decelerate)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n -\n "])),(e()(),i["\u0275eld"](12,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Decelerate"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.accelerate)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n +\n "])),(e()(),i["\u0275eld"](18,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Accelerate"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,10,0,n.mouseActionParam===n.MouseActionParam.decelerate),e(t,16,0,n.mouseActionParam===n.MouseActionParam.accelerate)})}function $o(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,null)}function Go(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","mouse-action col-sm-4"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,4,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Bo)),i["\u0275did"](5,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](9,0,null,null,17,"div",[["class","details col-sm-8"]],null,null,null,null,null)),i["\u0275did"](10,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ho)),i["\u0275did"](13,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Wo)),i["\u0275did"](16,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,qo)),i["\u0275did"](19,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,zo)),i["\u0275did"](22,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,$o)),i["\u0275did"](25,16384,null,0,d.p,[i.ViewContainerRef,i.TemplateRef,d.n],null,null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,n.pages),e(t,10,0,n.selectedPageIndex),e(t,13,0,0),e(t,16,0,1),e(t,19,0,2),e(t,22,0,3)},null)}var Yo=["[_nghost-%COMP%]{display:block;width:100%}.action--editor[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;border-radius:0;border:0}.nav[_ngcontent-%COMP%]{padding-bottom:1rem}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:italic}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{cursor:pointer}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{z-index:2}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:normal}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{content:'';display:block;position:absolute;width:0;height:0;top:0;right:-4rem;border-color:transparent transparent transparent #337ab7;border-style:solid;border-width:2rem}.editor__tab-links[_ngcontent-%COMP%], .editor__tabs[_ngcontent-%COMP%]{padding-top:1rem}.editor__tabs[_ngcontent-%COMP%]{border-left:1px solid #ddd;margin-left:-1.6rem;padding-left:3rem}.editor__actions[_ngcontent-%COMP%]{float:right}.editor__actions-container[_ngcontent-%COMP%]{background:#f5f5f5;border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:1rem 1.5rem}.flex-button-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.flex-button[_ngcontent-%COMP%]{-ms-flex-item-align:end;align-self:flex-end}"],Qo=function(){return function(){var e=this;this.valid=new i.EventEmitter,this.validate=function(){return e.valid.emit(e.isMacroValid())}}}(),Jo=/[^\x00-\x7F]/g,Zo=function(e){function t(t){var n=e.call(this)||this;return n.renderer=t,n.isMacroValid=function(){return!!n.input.nativeElement.value},n.init=function(){n.macroAction||(n.macroAction=new qe.TextMacroAction)},n}return Object(wo.__extends)(t,e),t.prototype.ngOnInit=function(){this.init()},t.prototype.ngAfterViewInit=function(){this.renderer.invokeElementMethod(this.input.nativeElement,"focus")},t.prototype.onTextChange=function(){this.init(),this.macroAction.text=this.input.nativeElement.value},t.prototype.onKeydown=function(e){new RegExp(Jo).test(e.key)&&(e.preventDefault(),e.stopPropagation())},t.prototype.onPaste=function(e){e.preventDefault();var t=this.input.nativeElement,n=e.clipboardData.getData("text/plain"),o=n&&n.replace(Jo,"")||"";if(0!==o.length){var i=t.value||"",r=i.substr(0,t.selectionStart),l=t.selectionEnd,s=i.substr(t.selectionEnd);t.value=r+o+s,t.selectionStart=t.selectionEnd=l+o.length-(0===l?0:1),this.macroAction.text=t.value}},t}(Qo),Xo=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}.macro__text-input[_ngcontent-%COMP%]{width:100%;min-height:10rem;margin-bottom:1rem}"]],data:{}});function ei(e){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{input:0}),(e()(),i["\u0275eld"](1,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Type text"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,[[1,0],["macroTextInput",1]],null,1,"textarea",[["class","macro__text-input"],["name","macro-text"]],null,[[null,"keydown"],[null,"change"],[null,"keyup"],[null,"paste"]],function(e,t,n){var o=!0,i=e.component;return"keydown"===t&&(o=!1!==i.onKeydown(n)&&o),"change"===t&&(o=!1!==i.onTextChange()&&o),"keyup"===t&&(o=!1!==i.validate()&&o),"paste"===t&&(o=!1!==i.onPaste(n)&&o),o},null,null)),(e()(),i["\u0275ted"](7,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,7,0,null==n.macroAction?null:n.macroAction.text)})}var ti=function(e){function t(){var t=e.call(this)||this;return t.keymapOptions=[],t}return Object(wo.__extends)(t,e),t.prototype.ngOnChanges=function(e){e.keymaps&&(this.keymapOptions=this.keymaps.map(function(e){return{id:e.abbreviation,text:e.name}}),this.keymaps.length>0&&(this.selectedKeymap=this.keymaps[0])),this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(!0)},t.prototype.onChange=function(e){this.selectedKeymap="-1"===e.value?void 0:this.keymaps.find(function(t){return t.abbreviation===e.value})},t.prototype.keyActionValid=function(){return!!this.selectedKeymap},t.prototype.fromKeyAction=function(e){if(!(e instanceof qe.SwitchKeymapAction))return!1;var t=e;this.selectedKeymap=this.keymaps.find(function(e){return e.abbreviation===t.keymapAbbreviation})},t.prototype.toKeyAction=function(){if(!this.keyActionValid())throw new Error("KeyAction is not valid. No selected keymap!");var e=new qe.SwitchKeymapAction;return e.keymapAbbreviation=this.selectedKeymap.abbreviation,e},t}(Ao),ni=function(e){function t(t){var n=e.call(this)||this;return n.subscription=t.let(Object(xn.d)()).subscribe(function(e){return n.macros=e}),n.macroOptions=[],n.selectedMacroIndex=0,n}return Object(wo.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroOptions=this.macros.map(function(e,t){return{id:t.toString(),text:e.name}})},t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(!0)},t.prototype.onChange=function(e){this.selectedMacroIndex=+e.value},t.prototype.keyActionValid=function(){return this.selectedMacroIndex>=0},t.prototype.fromKeyAction=function(e){if(!(e instanceof qe.PlayMacroAction))return!1;var t=e;return this.selectedMacroIndex=this.macros.findIndex(function(e){return t.macroId===e.id}),!0},t.prototype.toKeyAction=function(){if(!this.keyActionValid())throw new Error("KeyAction is not valid. No selected macro!");var e=new qe.PlayMacroAction;return e.macroId=this.macros[this.selectedMacroIndex].id,e},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t}(Ao),oi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(wo.__extends)(t,e),t.prototype.ngOnInit=function(){this.validAction.emit(!0)},t.prototype.keyActionValid=function(){return!0},t.prototype.fromKeyAction=function(){return!1},t.prototype.toKeyAction=function(){},t}(Ao),ii=function(e){return e[e.Tap=0]="Tap",e[e.Press=1]="Press",e[e.Release=2]="Release",e}({}),ri=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.TabName=ii,t.isMacroValid=function(){var e=t.getKeyMacroAction();return!!e.scancode||!!e.modifierMask},t}return Object(wo.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new qe.KeyMacroAction),this.defaultKeyAction=new qe.KeystrokeAction(this.macroAction),this.selectTab(this.getTabName(this.macroAction))},t.prototype.selectTab=function(e){this.activeTab=e,this.validate()},t.prototype.getTabName=function(e){return e.action?e.action===qe.MacroKeySubAction.press?ii.Press:e.action===qe.MacroKeySubAction.release?ii.Release:void 0:ii.Tap},t.prototype.getActionType=function(e){switch(e){case ii.Tap:return qe.MacroKeySubAction.tap;case ii.Press:return qe.MacroKeySubAction.press;case ii.Release:return qe.MacroKeySubAction.release;default:throw new Error("Invalid tab type")}},t.prototype.getKeyMacroAction=function(){var e=new qe.KeyMacroAction(this.keypressTab.toKeyAction());return e.action=this.getActionType(this.activeTab),e},t}(Qo),li=i["\u0275crt"]({encapsulation:0,styles:[Yo,[".macro-key__container[_ngcontent-%COMP%]{padding:0}.macro-key__types[_ngcontent-%COMP%]{margin-left:0;padding:0 0 1rem}.macro-key__action[_ngcontent-%COMP%]{padding-left:3rem;padding-bottom:1rem}.macro-key__action-container[_ngcontent-%COMP%]{margin-top:-1rem;padding-top:1rem;border-left:1px solid #ddd}.fa[_ngcontent-%COMP%]{min-width:14px}"]],data:{}});function si(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Tap key"]))],null,null)}function ai(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Press key"]))],null,null)}function ui(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Release key"]))],null,null)}function ci(e){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{selectedTab:0}),i["\u0275qud"](402653184,2,{keypressTab:0}),(e()(),i["\u0275eld"](2,0,null,null,58,"div",[["class","col-xs-12 macro-key__container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,37,"div",[["class","col-xs-3 macro-key__types"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,34,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,[["keyMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Tap)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,0,"i",[["class","fa fa-hand-pointer-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Tap key"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,[["keyHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Press)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](21,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Press key"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](30,0,[["keyRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Release)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](32,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](34,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](36,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Release key"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](43,0,null,null,16,"div",[["class","col-xs-9 macro-key__action-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](45,0,null,null,13,"div",[["class","macro-key__action"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,si)),i["\u0275did"](48,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ai)),i["\u0275did"](51,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ui)),i["\u0275did"](54,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](56,0,null,null,1,"keypress-tab",[],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==e.component.validate()&&o),o},Mo,Co)),i["\u0275did"](57,573440,[[2,4],["keypressTab",4]],0,To,[Bt],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"]},{validAction:"validAction"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,48,0,n.activeTab===n.TabName.Tap),e(t,51,0,n.activeTab===n.TabName.Press),e(t,54,0,n.activeTab===n.TabName.Release),e(t,57,0,n.defaultKeyAction,!1)},function(e,t){var n=t.component;e(t,8,0,n.activeTab===n.TabName.Tap),e(t,19,0,n.activeTab===n.TabName.Press),e(t,30,0,n.activeTab===n.TabName.Release)})}var di=function(e){return e[e.Move=0]="Move",e[e.Scroll=1]="Scroll",e[e.Click=2]="Click",e[e.Hold=3]="Hold",e[e.Release=4]="Release",e}({}),pi=function(e){function t(){var t=e.call(this)||this;return t.TabName=di,t.isMacroValid=function(){switch(t.macroAction.constructor){case qe.MoveMouseMacroAction:case qe.ScrollMouseMacroAction:var e=t.macroAction,n=e.x,o=e.y;return void 0!==n&&null!==n&&void 0!==o&&null!==o&&(0!==n||0!==o)&&n<1e4&&n>-1e4&&o<1e4&&o>-1e4;case qe.MouseButtonMacroAction:return!!t.macroAction.mouseButtonsMask;default:return!0}},t.buttonLabels=["Left","Middle","Right"],t.selectedButtons=Array(t.buttonLabels.length).fill(!1),t}return Object(wo.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new qe.MouseButtonMacroAction,this.macroAction.action=qe.MacroMouseSubAction.click);var e=this.getTabName(this.macroAction);this.selectTab(e),[di.Click,di.Hold,di.Release].includes(this.activeTab)&&(this.selectedButtons=this.macroAction.getMouseButtons())},t.prototype.ngOnChanges=function(){this.ngOnInit()},t.prototype.selectTab=function(e){if(this.activeTab=e,e!==this.getTabName(this.macroAction)){switch(this.selectedButtons=[],e){case di.Scroll:this.macroAction=new qe.ScrollMouseMacroAction;break;case di.Move:this.macroAction=new qe.MoveMouseMacroAction;break;default:this.macroAction=new qe.MouseButtonMacroAction,this.macroAction.action=this.getAction(e)}this.validate()}},t.prototype.setMouseClick=function(e){this.selectedButtons[e]=!this.selectedButtons[e],this.macroAction.setMouseButtons(this.selectedButtons),this.validate()},t.prototype.hasButton=function(e){return this.selectedButtons[e]},t.prototype.getAction=function(e){switch(e){case di.Click:return qe.MacroMouseSubAction.click;case di.Hold:return qe.MacroMouseSubAction.hold;case di.Release:return qe.MacroMouseSubAction.release;default:throw new Error("Invalid tab name: "+di[e])}},t.prototype.getTabName=function(e){if(e instanceof qe.MouseButtonMacroAction){if(!e.action||e.isOnlyClickAction())return di.Click;if(e.isOnlyHoldAction())return di.Hold;if(e.isOnlyReleaseAction())return di.Release}else{if(e instanceof qe.MoveMouseMacroAction)return di.Move;if(e instanceof qe.ScrollMouseMacroAction)return di.Scroll}return di.Move},t}(Qo),fi=i["\u0275crt"]({encapsulation:0,styles:[Yo,[".macro-mouse__container[_ngcontent-%COMP%]{padding:0}.macro-mouse__types[_ngcontent-%COMP%]{border-right:1px solid #ddd;border-left:0;margin-top:-1rem;margin-left:0;padding:1rem 0}.macro-mouse__actions[_ngcontent-%COMP%]{padding-left:3rem;padding-bottom:1rem}.fa[_ngcontent-%COMP%]{min-width:14px}.form-horizontal[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{margin:0 0 .5rem}.form-horizontal[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin-right:.5rem}.form-horizontal[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{display:inline-block;width:10ch}"]],data:{}});function hi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,[[1,0],["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Move mouse pointer"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,1,"label",[["for","move-mouse-x"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["X:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,8,"input",[["class","form-control"],["id","move-mouse-x"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,13)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,13).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,13)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,13)._compositionEnd(n.target.value)&&o),"change"===t&&(o=!1!==i["\u0275nov"](e,14).onChange(n.target.value)&&o),"input"===t&&(o=!1!==i["\u0275nov"](e,14).onChange(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,14).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.macroAction.x=n)&&o),"keyup"===t&&(o=!1!==r.validate()&&o),o},null,null)),i["\u0275did"](13,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275did"](14,16384,null,0,je["\u0275bc"],[i.Renderer2,i.ElementRef],null,null),i["\u0275did"](15,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),i["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),i["\u0275did"](18,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](20,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" pixels\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,1,"label",[["for","move-mouse-y"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Y:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,8,"input",[["class","form-control"],["id","move-mouse-y"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,29)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,29).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,29)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,29)._compositionEnd(n.target.value)&&o),"change"===t&&(o=!1!==i["\u0275nov"](e,30).onChange(n.target.value)&&o),"input"===t&&(o=!1!==i["\u0275nov"](e,30).onChange(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,30).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.macroAction.y=n)&&o),"keyup"===t&&(o=!1!==r.validate()&&o),o},null,null)),i["\u0275did"](29,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275did"](30,16384,null,0,je["\u0275bc"],[i.Renderer2,i.ElementRef],null,null),i["\u0275did"](31,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),i["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),i["\u0275did"](34,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](36,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" pixels\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,15,0,"4"),e(t,18,0,n.macroAction.x),e(t,31,0,"4"),e(t,34,0,n.macroAction.y)},function(e,t){e(t,12,0,i["\u0275nov"](t,15).maxlength?i["\u0275nov"](t,15).maxlength:null,i["\u0275nov"](t,20).ngClassUntouched,i["\u0275nov"](t,20).ngClassTouched,i["\u0275nov"](t,20).ngClassPristine,i["\u0275nov"](t,20).ngClassDirty,i["\u0275nov"](t,20).ngClassValid,i["\u0275nov"](t,20).ngClassInvalid,i["\u0275nov"](t,20).ngClassPending),e(t,28,0,i["\u0275nov"](t,31).maxlength?i["\u0275nov"](t,31).maxlength:null,i["\u0275nov"](t,36).ngClassUntouched,i["\u0275nov"](t,36).ngClassTouched,i["\u0275nov"](t,36).ngClassPristine,i["\u0275nov"](t,36).ngClassDirty,i["\u0275nov"](t,36).ngClassValid,i["\u0275nov"](t,36).ngClassInvalid,i["\u0275nov"](t,36).ngClassPending)})}function yi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,[[1,0],["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Scroll with mouse"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,1,"label",[["for","scroll-mouse-x"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["X:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,8,"input",[["class","form-control"],["id","scroll-mouse-x"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,13)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,13).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,13)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,13)._compositionEnd(n.target.value)&&o),"change"===t&&(o=!1!==i["\u0275nov"](e,14).onChange(n.target.value)&&o),"input"===t&&(o=!1!==i["\u0275nov"](e,14).onChange(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,14).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.macroAction.x=n)&&o),"keyup"===t&&(o=!1!==r.validate()&&o),o},null,null)),i["\u0275did"](13,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275did"](14,16384,null,0,je["\u0275bc"],[i.Renderer2,i.ElementRef],null,null),i["\u0275did"](15,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),i["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),i["\u0275did"](18,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](20,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" pixels\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,1,"label",[["for","scroll-mouse-y"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Y:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,8,"input",[["class","form-control"],["id","scroll-mouse-y"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,29)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,29).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,29)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,29)._compositionEnd(n.target.value)&&o),"change"===t&&(o=!1!==i["\u0275nov"](e,30).onChange(n.target.value)&&o),"input"===t&&(o=!1!==i["\u0275nov"](e,30).onChange(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,30).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.macroAction.y=n)&&o),"keyup"===t&&(o=!1!==r.validate()&&o),o},null,null)),i["\u0275did"](29,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275did"](30,16384,null,0,je["\u0275bc"],[i.Renderer2,i.ElementRef],null,null),i["\u0275did"](31,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),i["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),i["\u0275did"](34,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](36,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" pixels\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,15,0,"4"),e(t,18,0,n.macroAction.x),e(t,31,0,"4"),e(t,34,0,n.macroAction.y)},function(e,t){e(t,12,0,i["\u0275nov"](t,15).maxlength?i["\u0275nov"](t,15).maxlength:null,i["\u0275nov"](t,20).ngClassUntouched,i["\u0275nov"](t,20).ngClassTouched,i["\u0275nov"](t,20).ngClassPristine,i["\u0275nov"](t,20).ngClassDirty,i["\u0275nov"](t,20).ngClassValid,i["\u0275nov"](t,20).ngClassInvalid,i["\u0275nov"](t,20).ngClassPending),e(t,28,0,i["\u0275nov"](t,31).maxlength?i["\u0275nov"](t,31).maxlength:null,i["\u0275nov"](t,36).ngClassUntouched,i["\u0275nov"](t,36).ngClassTouched,i["\u0275nov"](t,36).ngClassPristine,i["\u0275nov"](t,36).ngClassDirty,i["\u0275nov"](t,36).ngClassValid,i["\u0275nov"](t,36).ngClassInvalid,i["\u0275nov"](t,36).ngClassPending)})}function mi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Click mouse button"]))],null,null)}function gi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Hold mouse button"]))],null,null)}function vi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Release mouse button"]))],null,null)}function bi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.setMouseClick(e.context.index)&&o),o},null,null)),(e()(),i["\u0275ted"](1,null,["","\n "]))],null,function(e,t){e(t,0,0,t.component.hasButton(t.context.index)),e(t,1,0,t.context.$implicit)})}function ki(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,[[1,0],["tab",1]],null,16,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,mi)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,gi)),i["\u0275did"](6,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,vi)),i["\u0275did"](9,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,4,"div",[["class","btn-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,bi)),i["\u0275did"](14,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.activeTab===n.TabName.Click),e(t,6,0,n.activeTab===n.TabName.Hold),e(t,9,0,n.activeTab===n.TabName.Release),e(t,14,0,n.buttonLabels)},null)}function _i(e){return i["\u0275vid"](0,[i["\u0275qud"](671088640,1,{selectedTab:0}),(e()(),i["\u0275eld"](1,0,null,null,75,"div",[["class","col-xs-12 macro-mouse__container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,59,"div",[["class","col-xs-3 macro-mouse__types"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,56,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,[["mouseMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Move)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,0,"i",[["class","fa fa-arrows"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Move pointer"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](18,0,[["mouseScroll",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Scroll)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,0,"i",[["class","fa fa-arrows-v"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](24,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Scroll"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](29,0,[["mouseClick",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Click)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](31,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](33,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](35,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Click button"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](40,0,[["mouseHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Hold)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](42,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](44,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](46,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Hold button"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](51,0,[["mouseRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Release)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](53,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](55,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](57,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Release button"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](64,0,null,null,11,"div",[["class","col-xs-9 macro-mouse__actions"]],null,null,null,null,null)),i["\u0275did"](65,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,hi)),i["\u0275did"](68,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,yi)),i["\u0275did"](71,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ki)),i["\u0275did"](74,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,65,0,n.activeTab),e(t,68,0,n.TabName.Move),e(t,71,0,n.TabName.Scroll),e(t,74,0,n.activeTab===n.TabName.Click||n.activeTab===n.TabName.Hold||n.activeTab===n.TabName.Release)},function(e,t){var n=t.component;e(t,7,0,n.activeTab===n.TabName.Move),e(t,18,0,n.activeTab===n.TabName.Scroll),e(t,29,0,n.activeTab===n.TabName.Click),e(t,40,0,n.activeTab===n.TabName.Hold),e(t,51,0,n.activeTab===n.TabName.Release)})}var wi=function(e){function t(){var t=e.call(this)||this;return t.presets=[.1,.5,1,5,10],t.isMacroValid=function(){return 0!==t.macroAction.delay},t}return Object(wo.__extends)(t,e),Object.defineProperty(t.prototype,"delay",{get:function(){return this._delay},set:function(e){this._delay=e,this.validate()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new qe.DelayMacroAction),this.delay=this.macroAction.delay>0?this.macroAction.delay/1e3:.5},t.prototype.setDelay=function(e){this._delay=e,this.macroAction.delay=1e3*this._delay,this.validate()},t}(Qo),Ai=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}.macro-delay__presets[_ngcontent-%COMP%]{margin-top:1rem}.macro-delay__presets[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:.25rem;margin-bottom:.25rem}.form-group[_ngcontent-%COMP%]{margin-bottom:0}.form-control[_ngcontent-%COMP%]{width:16ch;display:inline-block}"]],data:{}});function Ti(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-sm btn-default"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.setDelay(e.context.$implicit)&&o),o},null,null)),(e()(),i["\u0275ted"](1,null,["","s\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit)})}function Ci(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{input:0}),(e()(),i["\u0275eld"](1,0,null,null,39,"div",[["class","macro-delay"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,7,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,4,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Delay"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,12,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](18,0,[[1,0],["macroDelayInput",1]],null,6,"input",[["class","form-control"],["max","1000"],["min","0"],["placeholder","Delay amount"],["step","0.1"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,19)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,19).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,19)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,19)._compositionEnd(n.target.value)&&o),"change"===t&&(o=!1!==i["\u0275nov"](e,20).onChange(n.target.value)&&o),"input"===t&&(o=!1!==i["\u0275nov"](e,20).onChange(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,20).onTouched()&&o),"ngModelChange"===t&&(o=!1!==r.setDelay(i["\u0275nov"](e,18).value)&&o),o},null,null)),i["\u0275did"](19,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275did"](20,16384,null,0,je["\u0275bc"],[i.Renderer2,i.ElementRef],null,null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),i["\u0275did"](22,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](24,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n seconds\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](29,0,null,null,10,"div",[["class","row macro-delay__presets"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](31,0,null,null,7,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](33,0,null,null,1,"h6",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Choose a preset"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ti)),i["\u0275did"](37,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,22,0,n.delay),e(t,37,0,n.presets)},function(e,t){e(t,18,0,i["\u0275nov"](t,24).ngClassUntouched,i["\u0275nov"](t,24).ngClassTouched,i["\u0275nov"](t,24).ngClassPristine,i["\u0275nov"](t,24).ngClassDirty,i["\u0275nov"](t,24).ngClassValid,i["\u0275nov"](t,24).ngClassInvalid,i["\u0275nov"](t,24).ngClassPending)})}var xi=function(e){return e[e.Keypress=0]="Keypress",e[e.Text=1]="Text",e[e.Mouse=2]="Mouse",e[e.Delay=3]="Delay",e}({}),Oi=function(){function e(){var e=this;this.save=new i.EventEmitter,this.cancel=new i.EventEmitter,this.TabName=xi,this.isSelectedMacroValid=!1,this.onValid=function(t){return e.isSelectedMacroValid=t}}return e.prototype.ngOnInit=function(){this.updateEditableMacroAction();var e=this.getTabName(this.editableMacroAction);this.activeTab=e},e.prototype.ngOnChanges=function(){this.ngOnInit()},e.prototype.onCancelClick=function(){this.cancel.emit()},e.prototype.onSaveClick=function(){try{var e=this.selectedTab instanceof ri?this.selectedTab.getKeyMacroAction():this.selectedTab.macroAction;this.save.emit(e)}catch(e){console.error(e)}},e.prototype.selectTab=function(e){this.activeTab=e,e===this.getTabName(this.macroAction)?this.updateEditableMacroAction():(this.editableMacroAction=void 0,this.isSelectedMacroValid=!1)},e.prototype.getTabName=function(e){return e instanceof qe.DelayMacroAction?xi.Delay:e instanceof qe.TextMacroAction?xi.Text:e instanceof qe.KeyMacroAction?xi.Keypress:e instanceof qe.MouseButtonMacroAction||e instanceof qe.MoveMouseMacroAction||e instanceof qe.ScrollMouseMacroAction?xi.Mouse:void 0},e.prototype.updateEditableMacroAction=function(){var e=this.macroAction?this.macroAction:new qe.TextMacroAction;this.editableMacroAction=qe.MacroActionHelper.createMacroAction(e)},e}(),Si=i["\u0275crt"]({encapsulation:0,styles:[Yo],data:{}});function Mi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-text-tab",[["class","macro__text"]],null,[[null,"valid"]],function(e,t,n){var o=!0;return"valid"===t&&(o=!1!==e.component.onValid(n)&&o),o},ei,Xo)),i["\u0275did"](1,4308992,[[1,4],["tab",4]],0,Zo,[i.Renderer],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function Ei(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-key-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,t,n){var o=!0;return"valid"===t&&(o=!1!==e.component.onValid(n)&&o),o},ci,li)),i["\u0275did"](1,114688,[[1,4],["tab",4]],0,ri,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function Pi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-mouse-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,t,n){var o=!0;return"valid"===t&&(o=!1!==e.component.onValid(n)&&o),o},_i,fi)),i["\u0275did"](1,638976,[[1,4],["tab",4]],0,pi,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function Ii(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-delay-tab",[["class","macro__delay"]],null,[[null,"valid"]],function(e,t,n){var o=!0;return"valid"===t&&(o=!1!==e.component.onValid(n)&&o),o},Ci,Ai)),i["\u0275did"](1,114688,[[1,4],["tab",4]],0,wi,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function Ri(e){return i["\u0275vid"](0,[i["\u0275qud"](671088640,1,{selectedTab:0}),(e()(),i["\u0275eld"](1,0,null,null,85,"div",[["class","action--editor"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,67,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,48,"div",[["class","col-lg-3 editor__tab-links"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,45,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,[["macroText",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Text)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,0,"i",[["class","fa fa-font"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](15,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Type text"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,[["macroKeypress",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Keypress)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](26,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Key action"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](31,0,[["macroMouse",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Mouse)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](33,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](35,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](37,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Mouse action"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](42,0,[["macroDelay",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Delay)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](44,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](46,0,null,null,0,"i",[["class","fa fa-clock-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](48,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Delay"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](55,0,null,null,14,"div",[["class","col-xs-12 col-lg-9 editor__tabs"]],null,null,null,null,null)),i["\u0275did"](56,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Mi)),i["\u0275did"](59,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ei)),i["\u0275did"](62,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Pi)),i["\u0275did"](65,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ii)),i["\u0275did"](68,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](72,0,null,null,13,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](74,0,null,null,10,"div",[["class","col-xs-12 flex-button-wrapper editor__actions-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](76,0,null,null,7,"div",[["class","editor__actions"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](78,0,null,null,1,"button",[["class","btn btn-sm btn-default flex-button"],["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onCancelClick()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Cancel "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](81,0,null,null,1,"button",[["class","btn btn-sm btn-primary flex-button"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onSaveClick()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Save "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,56,0,n.activeTab),e(t,59,0,n.TabName.Text),e(t,62,0,n.TabName.Keypress),e(t,65,0,n.TabName.Mouse),e(t,68,0,n.TabName.Delay)},function(e,t){var n=t.component;e(t,9,0,n.activeTab===n.TabName.Text),e(t,20,0,n.activeTab===n.TabName.Keypress),e(t,31,0,n.activeTab===n.TabName.Mouse),e(t,42,0,n.activeTab===n.TabName.Delay),e(t,81,0,!n.isSelectedMacroValid)})}var Di=function(){function e(e){this.mapper=e,this.save=new i.EventEmitter,this.cancel=new i.EventEmitter,this.edit=new i.EventEmitter,this.delete=new i.EventEmitter,this.newItem=!1}return e.prototype.ngOnInit=function(){this.updateView(),this.macroAction||(this.editing=!0,this.newItem=!0)},e.prototype.ngOnChanges=function(e){e.macroAction&&this.updateView()},e.prototype.saveEditedAction=function(e){this.macroAction=e,this.editing=!1,this.updateView(),this.save.emit(e)},e.prototype.editAction=function(){this.editable&&!this.editing?(this.editing=!0,this.edit.emit()):this.cancelEdit()},e.prototype.cancelEdit=function(){this.editing=!1,this.cancel.emit()},e.prototype.deleteAction=function(){this.delete.emit()},e.prototype.updateView=function(){if(this.macroAction)if(this.macroAction instanceof qe.DelayMacroAction)this.iconName="clock",this.title="Delay of "+((e=this.macroAction).delay>0?e.delay/1e3:0)+"s";else if(this.macroAction instanceof qe.TextMacroAction){var e=this.macroAction;this.iconName="font",this.title="Write text: "+e.text}else this.macroAction instanceof qe.KeyMacroAction?this.setKeyActionContent(e=this.macroAction):this.macroAction instanceof qe.MouseButtonMacroAction?this.setMouseButtonActionContent(e=this.macroAction):this.macroAction instanceof qe.MoveMouseMacroAction||this.macroAction instanceof qe.ScrollMouseMacroAction?this.setMouseMoveScrollActionContent(this.macroAction):this.title=this.macroAction.constructor.name;else this.title="New macro action"},e.prototype.setKeyActionContent=function(e){if(e.hasScancode()||e.hasModifiers()){if(e.isTapAction()?(this.iconName="hand-pointer",this.title="Tap key: "):e.isPressAction()?(this.iconName="hand-rock",this.title="Press key: "):e.isReleaseAction()&&(this.iconName="hand-paper",this.title="Release key: "),e.hasScancode()){var t=(this.mapper.scanCodeToText(e.scancode,e.type)||["Unknown"]).join(" ");t&&(this.title+=t)}if(e.hasModifiers())for(var n=qe.KeyModifiers.leftCtrl;n<=qe.KeyModifiers.rightGui;n<<=1)e.isModifierActive(n)&&(this.title+=" "+qe.KeyModifiers[n])}else this.title="Invalid keypress"},e.prototype.setMouseMoveScrollActionContent=function(e){var t,n;e instanceof qe.MoveMouseMacroAction?(this.iconName="mouse-pointer",this.title="Move pointer",t=this.macroAction):(this.iconName="mouse-pointer",this.title="Scroll",t=this.macroAction),0!==Math.abs(t.x)&&(this.title+=" by "+Math.abs(t.x)+"px "+(t.x>0?"leftward":"rightward"),n=!0),0!==Math.abs(t.y)&&(this.title+=" "+(n?"and":"by")+" "+Math.abs(t.y)+"px "+(t.y>0?"downward":"upward"))},e.prototype.setMouseButtonActionContent=function(e){e.isOnlyClickAction()?(this.iconName="mouse-pointer",this.title="Click mouse button: "):e.isOnlyHoldAction()?(this.iconName="hand-rock",this.title="Hold mouse button: "):e.isOnlyReleaseAction()&&(this.iconName="hand-paper",this.title="Release mouse button: ");var t=["Left","Middle","Right"],n=[];e.getMouseButtons().forEach(function(e,o){e&&t[o]&&n.push(t[o])}),this.title+=n.join(", ")},e}(),Ni=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow:hidden;display:block}.macro-item[_nghost-%COMP%]:first-of-type .list-group-item[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.macro-item[_nghost-%COMP%]:last-of-type .list-group-item[_ngcontent-%COMP%]{border-bottom:0}.gu-transit[_nghost-%COMP%]{opacity:.2}.gu-transit[_nghost-%COMP%] .list-group-item[_ngcontent-%COMP%]{background:#f5f5f5}.action--item[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;border:0;border-bottom:1px solid #ddd;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.action--item[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{margin:0 5px}.action--item[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1}.action--item[_ngcontent-%COMP%]:first-child{border-radius:0}.action--item.is-editing[_ngcontent-%COMP%]{background:#f5f5f5}.action--item--wrap[_ngcontent-%COMP%]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.action--item--wrap.pointer[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.action--title[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1}.action--movable[_ngcontent-%COMP%]:hover{cursor:move}.list-group-item[_ngcontent-%COMP%]{margin-bottom:0}.macro-action-editor__container[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;border-radius:0;border:none;overflow:hidden}"]],data:{animation:[{type:7,name:"toggler",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function ji(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-option-vertical action--movable"]],null,null,null,null,null))],null,null)}function Li(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"icon",[["name","pencil"]],null,null,null,De,we)),i["\u0275did"](1,114688,null,0,_e,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"pencil")},null)}function Ui(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"icon",[["name","trash"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.deleteAction()&&o),o},De,we)),i["\u0275did"](1,114688,null,0,_e,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"trash")},null)}function Vi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,19,"div",[["class","list-group-item action--item"]],[[2,"is-editing",null]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ji)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,10,"div",[["class","action--item--wrap"]],[[2,"pointer",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.editAction()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,1,"icon",[],null,null,null,De,we)),i["\u0275did"](8,114688,null,0,_e,[],{name:[0,"name"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,1,"div",[["class","action--title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](11,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Li)),i["\u0275did"](14,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ui)),i["\u0275did"](18,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](21,0,null,null,5,"div",[["class","list-group-item macro-action-editor__container"]],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,2,"macro-action-editor",[["class","macro-action-editor"]],null,[[null,"cancel"],[null,"save"]],function(e,t,n){var o=!0,i=e.component;return"cancel"===t&&(o=!1!==i.cancelEdit()&&o),"save"===t&&(o=!1!==i.saveEditedAction(n)&&o),o},Ri,Si)),i["\u0275did"](24,638976,null,0,Oi,[],{macroAction:[0,"macroAction"]},{save:"save",cancel:"cancel"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.movable),e(t,8,0,n.iconName),e(t,14,0,n.editable&&n.macroAction&&!n.editing),e(t,18,0,n.deletable),e(t,24,0,n.macroAction)},function(e,t){var n=t.component;e(t,0,0,n.editing),e(t,5,0,n.editable),e(t,11,0,n.title),e(t,21,0,n.editable&&n.editing||n.newItem?"active":"inactive")})}var Fi=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:2px}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:7px}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] select2[_ngcontent-%COMP%]{-webkit-box-flex:1;-ms-flex:1;flex:1}[_nghost-%COMP%] .macro-action-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-height:200px;max-height:300px;margin:20px 0;overflow-x:hidden;overflow-y:auto;border-radius:4px;border:1px solid #ddd}[_nghost-%COMP%] .macro-action-container[_ngcontent-%COMP%] .list-group[_ngcontent-%COMP%]{margin-bottom:0;border:0}"]],data:{}});function Ki(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" No macros are available to choose from. Create a macro first! "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}function Bi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"macro-item",[["class","macro-item"]],null,null,null,Vi,Ni)),i["\u0275did"](1,638976,null,0,Di,[Bt],{macroAction:[0,"macroAction"],editable:[1,"editable"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,t.context.$implicit,!1)},null)}function Hi(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),i["\u0275eld"](2,0,null,null,1,"i",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Please note that macro playback is not implemented yet. You can bind macros, but they won't have any effect until firmware support is implemented. We're working on this."])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,7,"div",[["class","macro-selector"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Play macro: "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,t,n){var o=!0;return"valueChanged"===t&&(o=!1!==e.component.onChange(n)&&o),o},mo,yo)),i["\u0275did"](11,4964352,null,0,ho.Select2Component,[i.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"]},{valueChanged:"valueChanged"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,7,"div",[["class","macro-action-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,4,"div",[["class","list-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Bi)),i["\u0275did"](19,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,11,0,n.macroOptions,n.macroOptions[n.selectedMacroIndex].id,"100%"),e(t,19,0,n.macros[n.selectedMacroIndex].macroActions)},null)}function Wi(e){return i["\u0275vid"](0,[(e()(),i["\u0275and"](16777216,null,null,1,null,Ki)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Hi)),i["\u0275did"](4,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,1,0,0===n.macroOptions.length),e(t,4,0,n.macroOptions.length>0)},null)}var qi=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:2px}[_nghost-%COMP%] > div[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:7px}[_nghost-%COMP%] > div[_ngcontent-%COMP%] select2[_ngcontent-%COMP%]{-webkit-box-flex:1;-ms-flex:1;flex:1}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:last-child{margin-top:10px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:last-child img[_ngcontent-%COMP%]{max-height:100%;max-width:100%}.empty[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.empty[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%;position:relative}"]],data:{}});function zi(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" No keymaps are available to choose from. Create a keymap first! "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}function $i(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"div",[["class","empty"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,0,"img",[["src","assets/images/base-layer--blank.svg"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,null)}function Gi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"svg-keyboard",[],null,null,null,ao,ro)),i["\u0275did"](1,638976,null,0,io,[oo,P.c],{moduleConfig:[0,"moduleConfig"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,t.component.selectedKeymap.layers[0].modules)},null)}function Yi(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Switch to keymap:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,t,n){var o=!0;return"valueChanged"===t&&(o=!1!==e.component.onChange(n)&&o),o},mo,yo)),i["\u0275did"](7,4964352,null,0,ho.Select2Component,[i.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"]},{valueChanged:"valueChanged"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,$i)),i["\u0275did"](13,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Gi)),i["\u0275did"](16,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,7,0,n.keymapOptions,(null==n.selectedKeymap?null:n.selectedKeymap.abbreviation)||-1,"100%"),e(t,13,0,!(null!=n.selectedKeymap&&n.selectedKeymap.abbreviation)),e(t,16,0,null==n.selectedKeymap?null:n.selectedKeymap.abbreviation)},null)}function Qi(e){return i["\u0275vid"](2,[(e()(),i["\u0275and"](16777216,null,null,1,null,zi)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Yi)),i["\u0275did"](4,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,0===n.keymapOptions.length),e(t,4,0,n.keymapOptions.length>0)},null)}var Ji=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:2rem 0}"]],data:{}});function Zi(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["This key is unassigned and has no functionality."]))],null,null)}var Xi=n("TfWX"),er=(n("qp8k"),n("+pb+"),function(e){return e[e.Keypress=0]="Keypress",e[e.Layer=1]="Layer",e[e.Mouse=2]="Mouse",e[e.Macro=3]="Macro",e[e.Keymap=4]="Keymap",e[e.None=5]="None",e}({})),tr=function(){function e(e){this.cancel=new i.EventEmitter,this.remap=new i.EventEmitter,this.tabName=er,this.leftArrow=!1,this.rightArrow=!1,this.topPosition=0,this.leftPosition=0,this.currentKeymap$=new Xi.BehaviorSubject(void 0),this.animationState="closed",this.keymaps$=e.let(Object(xn.b)()).combineLatest(this.currentKeymap$).map(function(e){var t=e[1];return e[0].filter(function(e){return t.abbreviation!==e.abbreviation})})}return e.prototype.ngOnChanges=function(e){this.keyPosition&&this.wrapPosition&&(e.keyPosition||e.wrapPosition)&&this.calculatePosition(),e.defaultKeyAction&&this.selectTab(this.defaultKeyAction instanceof qe.KeystrokeAction?er.Keypress:this.defaultKeyAction instanceof qe.SwitchLayerAction?er.Layer:this.defaultKeyAction instanceof qe.MouseAction?er.Mouse:this.defaultKeyAction instanceof qe.PlayMacroAction?er.Macro:this.defaultKeyAction instanceof qe.SwitchKeymapAction?er.Keymap:er.None),e.visible&&(e.visible.currentValue?(this.animationState="opened",this.remapOnAllKeymap=!1,this.remapOnAllLayer=!1):this.animationState="closed"),e.currentKeymap&&this.currentKeymap$.next(this.currentKeymap)},e.prototype.onCancelClick=function(){this.cancel.emit(void 0)},e.prototype.onRemapKey=function(){if(this.keyActionValid)try{this.remap.emit({remapOnAllKeymap:this.remapOnAllKeymap,remapOnAllLayer:this.remapOnAllLayer,action:this.selectedTab.toKeyAction()})}catch(e){console.error(e)}},e.prototype.onEscape=function(){this.cancel.emit()},e.prototype.selectTab=function(e){this.activeTab=e},e.prototype.onOverlay=function(){this.cancel.emit(void 0)},e.prototype.calculatePosition=function(){var e=this.wrapPosition.left+265,t=this.popoverHost.nativeElement,n=this.keyPosition.left+this.keyPosition.width/2;this.leftArrow=ne+this.wrapPosition.width,this.leftArrow?n=this.keyPosition.left:this.rightArrow?n=this.keyPosition.left-t.offsetWidth+this.keyPosition.width:n-=t.offsetWidth/2,this.topPosition=this.keyPosition.top+this.keyPosition.height+7+window.scrollY,this.leftPosition=n},e}(),nr=i["\u0275crt"]({encapsulation:0,styles:[[".popover[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:0;max-width:568px;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.popover.leftArrow[_ngcontent-%COMP%] .arrowCustom[_ngcontent-%COMP%]{-webkit-transform:none;transform:none;left:22px}.popover.rightArrow[_ngcontent-%COMP%] .arrowCustom[_ngcontent-%COMP%]{-webkit-transform:none;transform:none;right:22px;left:auto}.nav-tabs[_ngcontent-%COMP%] > li[_ngcontent-%COMP%], .popover[_ngcontent-%COMP%] > .container-fluid[_ngcontent-%COMP%]{overflow:hidden}.arrowCustom[_ngcontent-%COMP%]{position:absolute;top:-16px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:41px;height:16px}.arrowCustom[_ngcontent-%COMP%]:before{content:'';width:0;height:0;border-left:21px solid transparent;border-right:21px solid transparent;border-bottom:17px solid rgba(0,0,0,.2);display:block;position:absolute;top:-1px}.arrowCustom[_ngcontent-%COMP%]:after{content:'';width:0;height:0;border-left:20px solid transparent;border-right:20px solid transparent;border-bottom:16px solid #f7f7f7;display:block;position:absolute;top:0}.popover-action[_ngcontent-%COMP%]{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-top:1px solid #ebebeb;border-radius:0 0 5px 5px}.popover-title.menu-tabs[_ngcontent-%COMP%]{padding:.5rem .5rem 0;display:block}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%]{position:relative;top:1px;display:-webkit-box;display:-ms-flexbox;display:flex}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%] .menu-tabs--item[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%] .menu-tabs--item[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:.25em}.popover-content[_ngcontent-%COMP%]{padding:10px 24px}.popover-overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:0;top:0;left:0;z-index:1050;background:0 0;-webkit-transition:background .2s ease-out,height 0s .2s linear;transition:background .2s ease-out,height 0s .2s linear}.popover-overlay.display[_ngcontent-%COMP%]{height:100%;background:rgba(0,0,0,.2);-webkit-transition:background .2s ease-out;transition:background .2s ease-out}.select2-item[_ngcontent-%COMP%]{position:relative;font-size:1.5rem}.select2-item.keymap-name--wrapper[_ngcontent-%COMP%]{padding-left:50px}.select2-item[_ngcontent-%COMP%] .layout-segment-code[_ngcontent-%COMP%]{height:2rem;position:absolute;left:0;top:50%;margin-top:-1rem}.popover-action-form[_ngcontent-%COMP%]{margin-top:4px}.popover-action-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-right:5px}"]],data:{animation:[{type:7,name:"popover",definitions:[{type:0,name:"closed",styles:{type:6,styles:{transform:"translateY(30px)",visibility:"hidden",opacity:0},offset:null},options:void 0},{type:0,name:"opened",styles:{type:6,styles:{transform:"translateY(0)",visibility:"visible",opacity:1},offset:null},options:void 0},{type:1,expr:"opened => closed",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(0)",visibility:"visible",opacity:1,offset:0},offset:null},{type:6,styles:{transform:"translateY(30px)",visibility:"hidden",opacity:0,offset:1},offset:null}]},timings:"200ms ease-out"}],options:null},{type:1,expr:"closed => opened",animation:[{type:6,styles:{visibility:"visible"},offset:null},{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(30px)",opacity:0,offset:0},offset:null},{type:6,styles:{transform:"translateY(0)",opacity:1,offset:1},offset:null}]},timings:"200ms ease-out"}],options:null}],options:{}}]}});function or(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"keypress-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Mo,Co)),i["\u0275did"](1,573440,[[1,4],["tab",4]],0,To,[Bt],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction,!0)},null)}function ir(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"layer-tab",[["class","popover-content"]],[[2,"no-base",null]],[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Vo,Po)),i["\u0275did"](1,573440,[[1,4],["tab",4]],0,Eo,[],{defaultKeyAction:[0,"defaultKeyAction"],currentLayer:[1,"currentLayer"],allowLayerDoubleTap:[2,"allowLayerDoubleTap"]},{validAction:"validAction"})],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,n.currentLayer,n.allowLayerDoubleTap)},function(e,t){e(t,0,0,i["\u0275nov"](t,1).isNotBase)})}function rr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"mouse-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Go,Ko)),i["\u0275did"](1,573440,[[1,4],["tab",4]],0,Fo,[],{defaultKeyAction:[0,"defaultKeyAction"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction)},null)}function lr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Wi,Fi)),i["\u0275did"](1,770048,[[1,4],["tab",4]],0,ni,[s.m],{defaultKeyAction:[0,"defaultKeyAction"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction)},null)}function sr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"keymap-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Qi,qi)),i["\u0275did"](1,573440,[[1,4],["tab",4]],0,ti,[],{defaultKeyAction:[0,"defaultKeyAction"],keymaps:[1,"keymaps"]},{validAction:"validAction"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,i["\u0275unv"](t,1,1,i["\u0275nov"](t,2).transform(n.keymaps$)))},null)}function ar(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"none-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Zi,Ji)),i["\u0275did"](1,114688,[[1,4],["tab",4]],0,oi,[],null,{validAction:"validAction"})],function(e,t){e(t,1,0)},null)}function ur(e){return i["\u0275vid"](0,[i["\u0275qud"](671088640,1,{selectedTab:0}),i["\u0275qud"](402653184,2,{popoverHost:0}),(e()(),i["\u0275eld"](2,0,[[2,0],["popover",1]],null,151,"div",[["class","popover"]],[[24,"@popover",0],[4,"top","px"],[4,"left","px"]],null,null,null,null)),i["\u0275did"](3,278528,null,0,d.i,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pod"](4,{leftArrow:0,rightArrow:1}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,0,"div",[["class","arrowCustom"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,70,"div",[["class","popover-title menu-tabs"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,67,"ul",[["class","nav nav-tabs popover-menu"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,[["keypress",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.Keypress)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](18,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Keypress"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,[["layer",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.Layer)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-clone"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](29,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Layer"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](34,0,[["mouse",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.Mouse)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](36,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](38,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](40,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Mouse"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](45,0,[["macro",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.Macro)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](47,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](49,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](51,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Macro"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](56,0,[["keymap",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.Keymap)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](58,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](60,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](62,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Keymap"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](67,0,[["none",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.None)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](69,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](71,0,null,null,0,"i",[["class","fa fa-ban"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](73,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["None"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](80,0,null,null,20,"div",[],null,null,null,null,null)),i["\u0275did"](81,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,or)),i["\u0275did"](84,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ir)),i["\u0275did"](87,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,rr)),i["\u0275did"](90,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,lr)),i["\u0275did"](93,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,sr)),i["\u0275did"](96,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ar)),i["\u0275did"](99,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](102,0,null,null,50,"div",[["class","popover-action"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](104,0,null,null,38,"form",[["class","form-inline d-inline-block popover-action-form"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(e,t,n){var o=!0;return"submit"===t&&(o=!1!==i["\u0275nov"](e,106).onSubmit(n)&&o),"reset"===t&&(o=!1!==i["\u0275nov"](e,106).onReset()&&o),o},null,null)),i["\u0275did"](105,16384,null,0,je["\u0275bf"],[],null,null),i["\u0275did"](106,4210688,null,0,je.NgForm,[[8,null],[8,null]],null,null),i["\u0275prd"](2048,null,je.ControlContainer,null,[je.NgForm]),i["\u0275did"](108,16384,null,0,je.NgControlStatusGroup,[je.ControlContainer],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](110,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](112,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](114,0,null,null,5,"input",[["name","remapOnAllKeymap"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var o=!0,r=e.component;return"change"===t&&(o=!1!==i["\u0275nov"](e,115).onChange(n.target.checked)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,115).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.remapOnAllKeymap=n)&&o),o},null,null)),i["\u0275did"](115,16384,null,0,je.CheckboxControlValueAccessor,[i.Renderer2,i.ElementRef],null,null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.CheckboxControlValueAccessor]),i["\u0275did"](117,671744,null,0,je.NgModel,[[2,je.ControlContainer],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](119,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" Remap on all keymaps\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](123,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](125,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](127,0,null,null,5,"input",[["name","remapOnAllLayer"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var o=!0,r=e.component;return"change"===t&&(o=!1!==i["\u0275nov"](e,128).onChange(n.target.checked)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,128).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.remapOnAllLayer=n)&&o),o},null,null)),i["\u0275did"](128,16384,null,0,je.CheckboxControlValueAccessor,[i.Renderer2,i.ElementRef],null,null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.CheckboxControlValueAccessor]),i["\u0275did"](130,671744,null,0,je.NgModel,[[2,je.ControlContainer],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](132,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" Remap on all layers\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](136,0,null,null,5,"div",[["class","d-inline-block"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](138,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","525"],["name","question-circle"],["title","
    \n
  • Default behavior: Remap the key on the the current layer of the current keymap.
  • \n
  • Remap on all keymaps: Remap key on the current layer of all keymaps.
  • \n
  • Remap on all layers: Remap key on all layers of the current keymap.
  • \n
  • Remap on all keymaps + Remap on all layers: Remap key on all layers of all keymaps.
  • \n
"]],[[1,"data-placement",0]],null,null,De,we)),i["\u0275did"](139,114688,null,0,_e,[],{name:[0,"name"]},null),i["\u0275did"](140,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](144,0,null,null,7,"div",[["class","d-inline-block pull-right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](146,0,null,null,1,"button",[["class","btn btn-sm btn-default"],["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onCancelClick()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Cancel"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](149,0,null,null,1,"button",[["class","btn btn-sm btn-primary"],["type","button"]],[[2,"disabled",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onRemapKey()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Remap Key\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](155,0,null,null,0,"div",[["class","popover-overlay"]],[[2,"display",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onOverlay()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,"popover",e(t,4,0,n.leftArrow,n.rightArrow)),e(t,81,0,n.activeTab),e(t,84,0,n.tabName.Keypress),e(t,87,0,n.tabName.Layer),e(t,90,0,n.tabName.Mouse),e(t,93,0,n.tabName.Macro),e(t,96,0,n.tabName.Keymap),e(t,99,0,n.tabName.None),e(t,117,0,"remapOnAllKeymap",n.remapOnAllKeymap),e(t,130,0,"remapOnAllLayer",n.remapOnAllLayer),e(t,139,0,"question-circle"),e(t,140,0,"
    \n
  • Default behavior: Remap the key on the the current layer of the current keymap.
  • \n
  • Remap on all keymaps: Remap key on the current layer of all keymaps.
  • \n
  • Remap on all layers: Remap key on all layers of the current keymap.
  • \n
  • Remap on all keymaps + Remap on all layers: Remap key on all layers of all keymaps.
  • \n
","true","525")},function(e,t){var n=t.component;e(t,2,0,n.animationState,n.topPosition,n.leftPosition),e(t,12,0,n.activeTab===n.tabName.Keypress),e(t,23,0,n.activeTab===n.tabName.Layer),e(t,34,0,n.activeTab===n.tabName.Mouse),e(t,45,0,n.activeTab===n.tabName.Macro),e(t,56,0,n.activeTab===n.tabName.Keymap),e(t,67,0,n.activeTab===n.tabName.None),e(t,104,0,i["\u0275nov"](t,108).ngClassUntouched,i["\u0275nov"](t,108).ngClassTouched,i["\u0275nov"](t,108).ngClassPristine,i["\u0275nov"](t,108).ngClassDirty,i["\u0275nov"](t,108).ngClassValid,i["\u0275nov"](t,108).ngClassInvalid,i["\u0275nov"](t,108).ngClassPending),e(t,114,0,i["\u0275nov"](t,119).ngClassUntouched,i["\u0275nov"](t,119).ngClassTouched,i["\u0275nov"](t,119).ngClassPristine,i["\u0275nov"](t,119).ngClassDirty,i["\u0275nov"](t,119).ngClassValid,i["\u0275nov"](t,119).ngClassInvalid,i["\u0275nov"](t,119).ngClassPending),e(t,127,0,i["\u0275nov"](t,132).ngClassUntouched,i["\u0275nov"](t,132).ngClassTouched,i["\u0275nov"](t,132).ngClassPristine,i["\u0275nov"](t,132).ngClassDirty,i["\u0275nov"](t,132).ngClassValid,i["\u0275nov"](t,132).ngClassInvalid,i["\u0275nov"](t,132).ngClassPending),e(t,138,0,i["\u0275nov"](t,140).placement),e(t,149,0,!n.keyActionValid),e(t,155,0,n.visible)})}n("1APj");var cr=function(){function e(e,t,n,o){this.store=e,this.mapper=t,this.element=n,this.renderer=o,this.popoverEnabled=!0,this.tooltipEnabled=!1,this.descriptionChanged=new i.EventEmitter,this.currentLayer=0,this.keyEditConfig={moduleId:void 0,keyId:void 0},this.tooltipData={posTop:0,posLeft:0,content:Ve.Observable.of([]),show:!1}}return Object.defineProperty(e.prototype,"space",{get:function(){return this.popoverEnabled},enumerable:!0,configurable:!0}),e.prototype.onResize=function(){this.wrapHost&&(this.wrapPosition=this.wrapHost.getBoundingClientRect()),this.keyElement&&(this.keyPosition=this.keyElement.getBoundingClientRect())},e.prototype.ngOnInit=function(){this.wrapHost=this.element.nativeElement,this.wrapPosition=this.wrapHost.getBoundingClientRect()},e.prototype.ngOnChanges=function(e){var t=e.keymap;t&&(this.popoverShown=!1,this.layers=this.keymap.layers,t.isFirstChange()||t.previousValue.abbreviation!==t.currentValue.abbreviation?(this.currentLayer=0,this.keybindAnimationEnabled=t.isFirstChange()):this.keybindAnimationEnabled=!0)},e.prototype.onKeyClick=function(e,t,n){if(!this.popoverShown&&this.popoverEnabled){this.keyEditConfig={moduleId:e,keyId:t},this.selectedKey={layerId:this.currentLayer,moduleId:e,keyId:t};var o=this.layers[this.currentLayer].modules[e].keyActions[t];this.keyElement=n,this.showPopover(o)}},e.prototype.onKeyHover=function(e,t,n,o){this.tooltipEnabled&&(n?this.showTooltip(this.layers[this.currentLayer].modules[e].keyActions[o],t):this.hideTooltip())},e.prototype.onCapture=function(e,t,n){var o=new qe.KeystrokeAction,i=n.left.concat(n.right).map(function(e){return e?1:0});o.scancode=n.code,o.modifierMask=0;for(var r=0;r0&&(n+=" ("+o+")"),r.push({name:"Scancode",value:n})}return t.hasActiveModifier()&&r.push({name:"Modifiers",value:t.getModifierList().join(", ")}),t.hasSecondaryRoleAction()&&r.push({name:"Secondary role",value:qe.SecondaryRoleAction[t.secondaryRoleAction]}),Ve.Observable.of(r)}if(e instanceof qe.MouseAction){var i=e,r=[{name:"Action type",value:"Mouse"},{name:"Action",value:Object(qe.camelCaseToSentence)(qe.MouseActionParam[i.mouseAction])}];return Ve.Observable.of(r)}if(e instanceof qe.PlayMacroAction){var l=e;return this.store.select(function(e){return e.userConfiguration.macros}).map(function(e){return e.find(function(e){return e.id===l.macroId}).name}).map(function(e){return[{name:"Action type",value:"Play macro"},{name:"Macro name",value:e}]})}if(e instanceof qe.SwitchKeymapAction){var s=e;return this.store.select(function(e){return e.userConfiguration.keymaps}).map(function(e){return e.find(function(e){return e.abbreviation===s.keymapAbbreviation}).name}).map(function(e){return[{name:"Action type",value:"Switch keymap"},{name:"Keymap",value:e}]})}if(e instanceof qe.SwitchLayerAction){var a=e;return r=[{name:"Action type",value:"Switch layer"},{name:"Layer",value:Object(qe.capitalizeFirstLetter)(qe.LayerName[a.layer])},{name:"Toogle",value:a.switchLayerMode===qe.SwitchLayerMode.toggle?"On":"Off"}],Ve.Observable.of(r)}return Ve.Observable.of([])},e}(),dr=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;display:block}.space[_nghost-%COMP%]{margin-bottom:405px}keyboard-slider[_ngcontent-%COMP%]{display:block;position:relative;height:500px;margin-top:30px}.tooltip[_ngcontent-%COMP%]{position:fixed;-webkit-transform:translate(-50%,-6px);transform:translate(-50%,-6px);display:none}.tooltip-inner[_ngcontent-%COMP%]{background:#fff;color:#000;-webkit-box-shadow:0 1px 5px #000;box-shadow:0 1px 5px #000;text-align:left}.tooltip-inner[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:2px}.tooltip-inner[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.tooltip.bottom[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{border-bottom-color:#fff;top:1px}.tooltip.in[_ngcontent-%COMP%]{display:block;opacity:1}"]],data:{}});function pr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](1,null,["\n ",": ","\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit.name,t.context.$implicit.value)})}function fr(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"layers",[],[[2,"disabled",null]],[[null,"select"]],function(e,t,n){var o=!0;return"select"===t&&(o=!1!==e.component.selectLayer(n.index)&&o),o},Pt,Mt)),i["\u0275did"](2,49152,null,0,St,[],{current:[0,"current"]},{select:"select"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"keyboard-slider",[],null,[[null,"keyClick"],[null,"keyHover"],[null,"capture"],[null,"descriptionChanged"]],function(e,t,n){var o=!0,i=e.component;return"keyClick"===t&&(o=!1!==i.onKeyClick(n.moduleId,n.keyId,n.keyTarget)&&o),"keyHover"===t&&(o=!1!==i.onKeyHover(n.moduleId,n.event,n.over,n.keyId)&&o),"capture"===t&&(o=!1!==i.onCapture(n.moduleId,n.keyId,n.captured)&&o),"descriptionChanged"===t&&(o=!1!==i.onDescriptionChanged(n)&&o),o},fo,co)),i["\u0275did"](5,573440,null,0,uo,[],{layers:[0,"layers"],currentLayer:[1,"currentLayer"],keybindAnimationEnabled:[2,"keybindAnimationEnabled"],capturingEnabled:[3,"capturingEnabled"],halvesSplit:[4,"halvesSplit"],selectedKey:[5,"selectedKey"],keyboardLayout:[6,"keyboardLayout"],description:[7,"description"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"}),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](7,0,[[1,0]],null,1,"popover",[["tabindex","0"]],null,[[null,"cancel"],[null,"remap"],[null,"keydown.escape"]],function(e,t,n){var o=!0,r=e.component;return"keydown.escape"===t&&(o=!1!==i["\u0275nov"](e,8).onEscape()&&o),"cancel"===t&&(o=!1!==r.hidePopover()&&o),"remap"===t&&(o=!1!==r.onRemap(n)&&o),o},ur,nr)),i["\u0275did"](8,573440,null,0,tr,[s.m],{defaultKeyAction:[0,"defaultKeyAction"],currentKeymap:[1,"currentKeymap"],currentLayer:[2,"currentLayer"],keyPosition:[3,"keyPosition"],wrapPosition:[4,"wrapPosition"],visible:[5,"visible"],allowLayerDoubleTap:[6,"allowLayerDoubleTap"]},{cancel:"cancel",remap:"remap"}),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](10,0,null,null,10,"div",[["class","tooltip bottom"]],[[2,"in",null],[4,"top","px"],[4,"left","px"]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,0,"div",[["class","tooltip-arrow"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,5,"div",[["class","tooltip-inner"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,2,null,pr)),i["\u0275did"](17,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.currentLayer),e(t,5,0,n.layers,n.currentLayer,n.keybindAnimationEnabled,n.popoverEnabled,n.halvesSplit,n.selectedKey,n.keyboardLayout,n.keymap.description),e(t,8,0,n.popoverInitKeyAction,n.keymap,n.currentLayer,n.keyPosition,n.wrapPosition,n.popoverShown,n.allowLayerDoubleTap),e(t,17,0,i["\u0275unv"](t,17,0,i["\u0275nov"](t,18).transform(n.tooltipData.content)))},function(e,t){var n=t.component;e(t,1,0,n.popoverShown),e(t,10,0,n.tooltipData.show,n.tooltipData.posTop,n.tooltipData.posLeft)})}function hr(e){return i["\u0275vid"](2,[i["\u0275qud"](671088640,1,{popover:0}),(e()(),i["\u0275and"](16777216,null,null,1,null,fr)),i["\u0275did"](2,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,2,0,t.component.layers)},null)}n("okk1"),n("KRCp"),n("PvYY"),n("uCY4"),n("xOQQ");var yr=n("lDdF"),mr=function(){function e(e,t){this.store=e,this.keymap$=t.params.pluck("abbr").switchMap(function(t){return e.let(Object(xn.a)(t))}).publishReplay(1).refCount(),this.deletable$=e.let(Object(xn.b)()).map(function(e){return e.length>1}),this.keyboardLayout$=e.select(u.k),this.allowLayerDoubleTap$=e.select(u.a)}return e.prototype.downloadKeymap=function(){var e=this,t=this.keymap$.switchMap(function(t){return e.toExportableJSON(t)}).map(function(e){return JSON.stringify(e)});this.keymap$.combineLatest(t).first().subscribe(function(e){var t=e[1],n=e[0].name+"_keymap.json";Object(yr.saveAs)(new Blob([t],{type:"application/json"}),n)})},e.prototype.toggleKeyboardSplit=function(){this.keyboardSplit=!this.keyboardSplit},e.prototype.descriptionChanged=function(e){this.store.dispatch(new wt.a.EditDescriptionAction(e))},e.prototype.toExportableJSON=function(e){return this.store.let(Object(xn.e)()).first().map(function(t){return{site:"https://ultimatehackingkeyboard.com",description:"Ultimate Hacking Keyboard keymap",keyboardModel:"UHK60",userConfigMajorVersion:t.userConfigMajorVersion,userConfigMinorVersion:t.userConfigMinorVersion,userConfigPatchVersion:t.userConfigPatchVersion,objectType:"keymap",objectValue:e.toJsonObject()}})},e}(),gr=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function vr(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,3,"keymap-header",[],null,[[null,"downloadClick"],["window","resize"]],function(e,t,n){var o=!0,r=e.component;return"window:resize"===t&&(o=!1!==i["\u0275nov"](e,2).windowResize()&&o),"downloadClick"===t&&(o=!1!==r.downloadKeymap()&&o),o},Ot,xt)),i["\u0275did"](2,573440,null,0,Ct,[s.m,i.Renderer2],{keymap:[0,"keymap"],deletable:[1,"deletable"]},{downloadClick:"downloadClick"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,4,"svg-keyboard-wrap",[],[[2,"space",null]],[[null,"descriptionChanged"],["window","resize"]],function(e,t,n){var o=!0,r=e.component;return"window:resize"===t&&(o=!1!==i["\u0275nov"](e,7).onResize()&&o),"descriptionChanged"===t&&(o=!1!==r.descriptionChanged(n)&&o),o},hr,dr)),i["\u0275did"](7,638976,null,0,cr,[s.m,Bt,i.ElementRef,i.Renderer],{keymap:[0,"keymap"],halvesSplit:[1,"halvesSplit"],keyboardLayout:[2,"keyboardLayout"],allowLayerDoubleTap:[3,"allowLayerDoubleTap"]},{descriptionChanged:"descriptionChanged"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,i["\u0275unv"](t,2,0,i["\u0275nov"](t,3).transform(n.keymap$)),i["\u0275unv"](t,2,1,i["\u0275nov"](t,4).transform(n.deletable$))),e(t,7,0,i["\u0275unv"](t,7,0,i["\u0275nov"](t,8).transform(n.keymap$)),n.keyboardSplit,i["\u0275unv"](t,7,2,i["\u0275nov"](t,9).transform(n.keyboardLayout$)),i["\u0275unv"](t,7,3,i["\u0275nov"](t,10).transform(n.allowLayerDoubleTap$)))},function(e,t){e(t,6,0,i["\u0275nov"](t,7).space)})}function br(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n Sorry, there is no keymap with this abbreviation.\n"]))],null,null)}function kr(e){return i["\u0275vid"](0,[(e()(),i["\u0275and"](16777216,null,null,2,null,vr)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,2,null,br)),i["\u0275did"](5,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,i["\u0275unv"](t,1,0,i["\u0275nov"](t,2).transform(n.keymap$))),e(t,5,0,!i["\u0275unv"](t,5,0,i["\u0275nov"](t,6).transform(n.keymap$)))},null)}var _r=i["\u0275ccf"]("keymap-edit",mr,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"keymap-edit",[["class","container-fluid"]],null,[["window","keydown.alt.s"]],function(e,t,n){var o=!0;return"window:keydown.alt.s"===t&&(o=!1!==i["\u0275nov"](e,1).toggleKeyboardSplit(n)&&o),o},kr,gr)),i["\u0275did"](1,49152,null,0,mr,[s.m,le.a],null,null)],null,null)},{},{},[]),wr=function(){function e(e){this.store=e,this.presetsAll$=e.select(function(e){return e.presetKeymaps}),this.filterExpression$=new Xi.BehaviorSubject(""),this.presets$=this.presetsAll$.combineLatest(this.filterExpression$,function(e,t){return e.filter(function(e){return e.name.toLocaleLowerCase().includes(t)})}).publishReplay(1).refCount()}return e.prototype.filterKeyboards=function(e){this.filterExpression$.next(e)},e.prototype.addKeymap=function(e){this.store.dispatch(wt.a.addKeymap(e))},e}(),Ar=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]{position:relative}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]:before{content:attr(data-title);display:inline-block;position:absolute;bottom:-.3em;right:100%;font-size:2.4rem;padding-right:.25em;margin:0}.keymap__search[_ngcontent-%COMP%]{margin-top:10px}.keymap__search[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{width:100%;max-width:350px;float:left}.keymap__search_amount[_ngcontent-%COMP%]{float:left;margin:7px 0 0 20px}.keymap__description[_ngcontent-%COMP%]{margin-bottom:20px}.keymap__list[_ngcontent-%COMP%]{margin-top:40px}.keymap__list_item[_ngcontent-%COMP%]{margin-bottom:50px}.keymap__list[_ngcontent-%COMP%] .btn-group-lg[_ngcontent-%COMP%]{margin:30px 0 0;width:100%;text-align:center}.keymap__list[_ngcontent-%COMP%] .btn-group-lg[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{float:none;padding-left:50px;padding-right:50px}"]],data:{}});function Tr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,[["keyboard",1]],null,17,"div",[["class","keymap__list_item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),i["\u0275ted"](3,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,"p",[["class","keymap__description"]],null,null,null,null,null)),(e()(),i["\u0275ted"](6,null,["\n ","\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,2,"svg-keyboard-wrap",[],[[2,"space",null]],[["window","resize"]],function(e,t,n){var o=!0;return"window:resize"===t&&(o=!1!==i["\u0275nov"](e,9).onResize()&&o),o},hr,dr)),i["\u0275did"](9,638976,null,0,cr,[s.m,Bt,i.ElementRef,i.Renderer],{keymap:[0,"keymap"],popoverEnabled:[1,"popoverEnabled"],tooltipEnabled:[2,"tooltipEnabled"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,4,"div",[["class","btn-group btn-group-lg"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,1,"button",[["class","btn btn-default"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.addKeymap(e.context.$implicit)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Add keymap"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,9,0,t.context.$implicit,!1,!0)},function(e,t){e(t,3,0,t.context.$implicit.name),e(t,6,0,t.context.$implicit.description),e(t,8,0,i["\u0275nov"](t,9).space)})}function Cr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n Sorry, no keyboard found under this search query.\n"]))],null,null)}function xr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Add new keymap"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](8,0,null,null,16,"div",[["class","keymap__search clearfix"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,8,"div",[["class","input-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,3,"span",[["class","input-group-addon"],["id","sizing-addon1"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-search"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,0,"input",[["class","form-control"],["placeholder","Search ..."],["type","text"]],null,[[null,"input"]],function(e,t,n){var o=!0;return"input"===t&&(o=!1!==e.component.filterKeyboards(n.target.value)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,null,null,3,"div",[["class","keymap__search_amount"]],null,null,null,null,null)),(e()(),i["\u0275ted"](21,null,["\n "," / "," keymaps shown\n "])),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](26,0,null,null,5,"div",[["class","keymap__list"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,2,null,Tr)),i["\u0275did"](29,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,2,null,Cr)),i["\u0275did"](34,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,29,0,i["\u0275unv"](t,29,0,i["\u0275nov"](t,30).transform(n.presets$))),e(t,34,0,0===i["\u0275unv"](t,34,0,i["\u0275nov"](t,35).transform(n.presets$)).length)},function(e,t){var n=t.component;e(t,21,0,i["\u0275unv"](t,21,0,i["\u0275nov"](t,22).transform(n.presets$)).length,i["\u0275unv"](t,21,1,i["\u0275nov"](t,23).transform(n.presetsAll$)).length)})}var Or=i["\u0275ccf"]("keymap-add",wr,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"keymap-add",[["class","container-fluid"]],null,null,null,xr,Ar)),i["\u0275did"](1,49152,null,0,wr,[s.m],null,null)],null,null)},{},{},[]),Sr=function(){},Mr=i["\u0275crt"]({encapsulation:0,styles:[[".not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function Er(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,11,"div",[["class","container-fluid"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,5,"uhk-header",[],null,null,null,kt,bt)),i["\u0275did"](3,49152,null,0,vt,[s.m],null,null),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275eld"](5,0,null,0,1,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\xa0"])),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n You don't have any macros. Try to add one!\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}var Pr=i["\u0275ccf"]("macro-not-found",Sr,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-not-found",[],null,null,null,Er,Mr)),i["\u0275did"](1,49152,null,0,Sr,[],null,null)],null,null)},{},{},[]),Ir=function(){function e(e,t){this.store=e,this.renderer=t}return e.prototype.ngOnChanges=function(e){this.isNew&&this.setFocusOnName(),e.macro&&this.setName()},e.prototype.ngAfterViewInit=function(){this.isNew&&this.setFocusOnName()},e.prototype.windowResize=function(){this.calculateHeaderTextWidth(this.macro.name)},e.prototype.removeMacro=function(){this.store.dispatch(wt.b.removeMacro(this.macro.id))},e.prototype.duplicateMacro=function(){this.store.dispatch(wt.b.duplicateMacro(this.macro))},e.prototype.editMacroName=function(e){At.d(e)?this.store.dispatch(wt.b.editMacroName(this.macro.id,e)):this.setName()},e.prototype.calculateHeaderTextWidth=function(e){var t=this.macroName.nativeElement,n=.8*t.parentElement.offsetWidth,o=At.b(window.getComputedStyle(t),e);this.renderer.setStyle(t,"width",Math.min(n,o)+"px")},e.prototype.setFocusOnName=function(){this.macroName.nativeElement.select()},e.prototype.setName=function(){this.renderer.setProperty(this.macroName.nativeElement,"value",this.macro.name),this.calculateHeaderTextWidth(this.macro.name)},e}(),Rr=i["\u0275crt"]({encapsulation:0,styles:[[".macro__remove[_ngcontent-%COMP%]{font-size:.75em;top:8px}.macro__remove[_ngcontent-%COMP%]:hover{cursor:pointer;color:#900}.macro__duplicate[_ngcontent-%COMP%]{font-size:.75em;top:7px;margin-right:15px;position:relative}.macro__duplicate[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.pane-title[_ngcontent-%COMP%]{margin-bottom:1em}.pane-title__name[_ngcontent-%COMP%]{border:none;border-bottom:2px dotted #999;padding:0;margin:0 .25rem;text-overflow:ellipsis}.pane-title__name[_ngcontent-%COMP%]:focus{-webkit-box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent}"]],data:{}});function Dr(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{macroName:0}),(e()(),i["\u0275eld"](1,0,null,null,19,"uhk-header",[],null,null,null,kt,bt)),i["\u0275did"](2,49152,null,0,vt,[s.m],null,null),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275eld"](4,0,null,0,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,12,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,[[1,0],["macroName",1]],null,1,"input",[["cancelable",""],["class","pane-title__name"],["type","text"]],null,[[null,"change"],[null,"keyup.enter"],[null,"keyup"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var o=!0,r=e.component;return"focus"===t&&(o=!1!==i["\u0275nov"](e,11).onFocus()&&o),"keyup.escape"===t&&(o=!1!==i["\u0275nov"](e,11).onEscape()&&o),"change"===t&&(o=!1!==r.editMacroName(n.target.value)&&o),"keyup.enter"===t&&(o=!1!==i["\u0275nov"](e,10).blur()&&o),"keyup"===t&&(o=!1!==r.calculateHeaderTextWidth(n.target.value)&&o),o},null,null)),i["\u0275did"](11,16384,null,0,_t,[i.ElementRef,i.Renderer],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,1,"i",[["class","glyphicon glyphicon-trash macro__remove pull-right"],["data-original-title","Delete macro"],["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["title",""]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.removeMacro()&&o),o},null,null)),i["\u0275did"](14,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,1,"i",[["class","fa fa-files-o macro__duplicate pull-right"],["data-original-title","Duplicate macro"],["data-placement","bottom"],["data-toggle","tooltip"],["title",""]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.duplicateMacro()&&o),o},null,null)),i["\u0275did"](17,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,0,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,14,0,"","true"),e(t,17,0,"")},function(e,t){e(t,13,0,i["\u0275nov"](t,14).placement),e(t,16,0,i["\u0275nov"](t,17).placement)})}var Nr=n("xiuF"),jr=n("LKU8"),Lr=(n("kkgw"),function(){function e(e,t){var n=this;this.mapper=e,this.dragulaService=t,this.add=new i.EventEmitter,this.edit=new i.EventEmitter,this.delete=new i.EventEmitter,this.reorder=new i.EventEmitter,this.newMacro=void 0,this.showNew=!1,this.activeEdit=void 0,t.setOptions("macroActions",{moves:function(e,t,n){return n.className.includes("action--movable")}}),t.drag.subscribe(function(e){n.dragIndex=+e[1].getAttribute("data-index")}),t.drop.subscribe(function(e){e[4]&&n.reorder.emit({macroId:n.macro.id,oldIndex:n.dragIndex,newIndex:+e[4].getAttribute("data-index")})})}return e.prototype.showNewAction=function(){this.hideActiveEditor(),this.newMacro=void 0,this.showNew=!0},e.prototype.hideNewAction=function(){this.showNew=!1},e.prototype.addNewAction=function(e){this.add.emit({macroId:this.macro.id,action:e}),this.newMacro=void 0,this.showNew=!1},e.prototype.editAction=function(e){this.hideActiveEditor(),this.showNew=!1,this.activeEdit=e},e.prototype.cancelAction=function(){this.activeEdit=void 0},e.prototype.saveAction=function(e,t){this.edit.emit({macroId:this.macro.id,index:t,action:e}),this.hideActiveEditor()},e.prototype.deleteAction=function(e,t){this.delete.emit({macroId:this.macro.id,index:t,action:e}),this.hideActiveEditor()},e.prototype.onKeysCapture=function(e){var t=Object.assign(new qe.KeyMacroAction,this.toKeyAction(e));t.action=qe.MacroKeySubAction.tap,this.add.emit({macroId:this.macro.id,action:t})},e.prototype.toKeyAction=function(e){var t=new qe.KeystrokeAction;t.scancode=e.code,t.modifierMask=0;for(var n=e.left.concat(e.right).map(function(e){return e?1:0}),o=0;o active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}},{type:7,name:"togglerNew",definitions:[{type:0,name:"void",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:":enter",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null},{type:1,expr:":leave",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function Vr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-item",[["class","macro-item"]],[[1,"data-index",0]],[[null,"save"],[null,"edit"],[null,"cancel"],[null,"delete"]],function(e,t,n){var o=!0,i=e.component;return"save"===t&&(o=!1!==i.saveAction(n,e.context.index)&&o),"edit"===t&&(o=!1!==i.editAction(e.context.index)&&o),"cancel"===t&&(o=!1!==i.cancelAction()&&o),"delete"===t&&(o=!1!==i.deleteAction(e.context.$implicit,e.context.index)&&o),o},Vi,Ni)),i["\u0275did"](1,638976,[[1,4]],0,Di,[Bt],{macroAction:[0,"macroAction"],editable:[1,"editable"],deletable:[2,"deletable"],movable:[3,"movable"]},{save:"save",cancel:"cancel",edit:"edit",delete:"delete"})],function(e,t){e(t,1,0,t.context.$implicit,!0,!0,!0)},function(e,t){e(t,0,0,t.context.index)})}function Fr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-item",[["class","macro-item"]],[[24,"@togglerNew",0]],[[null,"save"],[null,"cancel"]],function(e,t,n){var o=!0,i=e.component;return"save"===t&&(o=!1!==i.addNewAction(n)&&o),"cancel"===t&&(o=!1!==i.hideNewAction()&&o),o},Vi,Ni)),i["\u0275did"](1,638976,[[1,4]],0,Di,[Bt],{macroAction:[0,"macroAction"],editable:[1,"editable"],deletable:[2,"deletable"],movable:[3,"movable"]},{save:"save",cancel:"cancel"})],function(e,t){e(t,1,0,t.component.newMacro,!0,!1,!1)},function(e,t){e(t,0,0,t.component.showNew?"active":"inactive")})}function Kr(e){return i["\u0275vid"](0,[i["\u0275qud"](671088640,1,{macroItems:1}),(e()(),i["\u0275eld"](1,0,null,null,38,"div",[["class","row list-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,35,"div",[["class","col-xs-10 col-xs-offset-1 list-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),i["\u0275eld"](6,0,null,null,1,"i",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Please note that macro playback is not implemented yet. You can create macros, but they won't have any effect until firmware support is implemented. We're working on this."])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,8,"div",[["class","macro-actions-container"]],null,null,null,null,null)),i["\u0275did"](10,606208,null,0,Nr.DragulaDirective,[i.ElementRef,jr.DragulaService],{dragula:[0,"dragula"],dragulaModel:[1,"dragulaModel"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Vr)),i["\u0275did"](13,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Fr)),i["\u0275did"](16,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,18,"div",[["class","list-group add-new__action-container"]],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](21,0,null,null,15,"div",[["class","list-group-item action--item add-new__action-item no-reorder clearfix"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,6,"span",[["class","add-new__action-item--link"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.showNewAction()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,3,"button",[["class","btn btn-link"],["type","button"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Add macro action\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](31,0,null,null,4,"span",[["class","add-new__action-item--link"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](33,0,null,null,1,"capture-keystroke-button",[["captureText","Add captured keystroke"],["isLink","true"]],null,[[null,"capture"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,t,n){var o=!0,r=e.component;return"keyup"===t&&(o=!1!==i["\u0275nov"](e,34).onKeyUp(n)&&o),"keydown"===t&&(o=!1!==i["\u0275nov"](e,34).onKeyDown(n)&&o),"focusout"===t&&(o=!1!==i["\u0275nov"](e,34).onFocusOut()&&o),"capture"===t&&(o=!1!==r.onKeysCapture(n)&&o),o},_o,vo)),i["\u0275did"](34,49152,null,0,go,[Cn],{isLink:[0,"isLink"],captureText:[1,"captureText"]},{capture:"capture"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,10,0,"macroActions",n.macro.macroActions),e(t,13,0,n.macro.macroActions),e(t,16,0,n.showNew),e(t,34,0,"true","Add captured keystroke")},function(e,t){e(t,19,0,t.component.showNew?"inactive":"active")})}var Br=function(){function e(e,t){var n=this;this.store=e,this.route=t,this.subscription=t.params.pluck("id").switchMap(function(t){return n.macroId=+t,e.let(Object(xn.c)(n.macroId))}).subscribe(function(e){n.macro=e}),this.isNew="new"===this.route.snapshot.params.empty}return e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.addAction=function(e,t){this.store.dispatch(wt.b.addMacroAction(e,t))},e.prototype.editAction=function(e,t,n){this.store.dispatch(wt.b.saveMacroAction(e,t,n))},e.prototype.deleteAction=function(e,t,n){this.store.dispatch(wt.b.deleteMacroAction(e,t,n))},e.prototype.reorderAction=function(e,t,n){this.store.dispatch(wt.b.reorderMacroAction(e,t,n))},e}(),Hr=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function Wr(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"macro-header",[],null,[["window","resize"]],function(e,t,n){var o=!0;return"window:resize"===t&&(o=!1!==i["\u0275nov"](e,2).windowResize()&&o),o},Dr,Rr)),i["\u0275did"](2,4767744,null,0,Ir,[s.m,i.Renderer2],{macro:[0,"macro"],isNew:[1,"isNew"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,2,"macro-list",[],null,[[null,"add"],[null,"edit"],[null,"delete"],[null,"reorder"]],function(e,t,n){var o=!0,i=e.component;return"add"===t&&(o=!1!==i.addAction(n.macroId,n.action)&&o),"edit"===t&&(o=!1!==i.editAction(n.macroId,n.index,n.action)&&o),"delete"===t&&(o=!1!==i.deleteAction(n.macroId,n.index,n.action)&&o),"reorder"===t&&(o=!1!==i.reorderAction(n.macroId,n.oldIndex,n.newIndex)&&o),o},Kr,Ur)),i["\u0275prd"](8704,null,jr.DragulaService,jr.DragulaService,[]),i["\u0275did"](6,49152,null,0,Lr,[Bt,jr.DragulaService],{macro:[0,"macro"]},{add:"add",edit:"edit",delete:"delete",reorder:"reorder"}),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.macro,n.isNew),e(t,6,0,n.macro)},null)}function qr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),i["\u0275ted"](1,null,["\n There is no macro with id ",".\n"]))],null,function(e,t){e(t,1,0,t.component.macroId)})}function zr(e){return i["\u0275vid"](0,[(e()(),i["\u0275and"](16777216,null,null,1,null,Wr)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,qr)),i["\u0275did"](4,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.macro),e(t,4,0,!n.macro)},null)}var $r=i["\u0275ccf"]("macro-edit",Br,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-edit",[["class","container-fluid"]],null,null,null,zr,Hr)),i["\u0275did"](1,180224,null,0,Br,[s.m,le.a],null,null)],null,null)},{},{},[]),Gr=function(e){this.name$=e.params.pluck("name")},Yr=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function Qr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,10,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,7,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,2,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),i["\u0275ted"](7,null,["",""])),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\nTo be done..."]))],null,function(e,t){var n=t.component;e(t,7,0,i["\u0275unv"](t,7,0,i["\u0275nov"](t,8).transform(n.name$)))})}var Jr=i["\u0275ccf"]("add-on",Gr,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"add-on",[["class","container-fluid"]],null,null,null,Qr,Yr)),i["\u0275did"](1,49152,null,0,Gr,[le.a],null,null)],null,null)},{},{},[]),Zr=function(){function e(){this.toggleCheckForUpdateOnStartUp=new i.EventEmitter,this.toggleUsePreReleaseUpdate=new i.EventEmitter,this.checkForUpdate=new i.EventEmitter}return e.prototype.emitCheckForUpdateOnStartUp=function(e){this.toggleCheckForUpdateOnStartUp.emit(e)},e.prototype.emitUsePreReleaseUpdate=function(e){this.toggleUsePreReleaseUpdate.emit(e)},e.prototype.emitCheckForUpdate=function(){this.checkForUpdate.emit()},e}(),Xr=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function el(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"span",[["class","fa fa-spinner fa-spin"]],null,null,null,null,null))],null,null)}function tl(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,38,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,35,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,t,n){var o=!0;return"change"===t&&(o=!1!==e.component.emitCheckForUpdateOnStartUp(n.target.checked)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Automatically check for update on\n application start\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](12,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,t,n){var o=!0;return"change"===t&&(o=!1!==e.component.emitUsePreReleaseUpdate(n.target.checked)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Allow alpha / pre release\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,1,"label",[["class","col-sm-2 control-label"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Version:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,4,"div",[["class","col-sm-10"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](27,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](28,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](32,0,null,null,4,"button",[["class","btn btn-link"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.emitCheckForUpdate()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n Check for update\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,el)),i["\u0275did"](35,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,35,0,t.component.checkingForUpdate)},function(e,t){var n=t.component;e(t,8,0,n.settings.checkForUpdateOnStartUp),e(t,16,0,n.settings.usePreReleaseUpdate),e(t,28,0,n.version)})}var nl=n("w+X5"),ol=function(){function e(e){this.store=e,this.version=Object(At.c)().version,this.autoUpdateSettings$=e.select(u.g),this.checkingForUpdate$=e.select(u.i)}return e.prototype.toogleCheckForUpdateOnStartUp=function(e){this.store.dispatch(new nl.h(e))},e.prototype.toogleUsePreReleaseUpdate=function(e){this.store.dispatch(new nl.i(e))},e.prototype.checkForUpdate=function(){this.store.dispatch(new nl.c)},e}(),il=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function rl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,1,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Settings"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](11,0,null,null,4,"auto-update-settings",[],null,[[null,"toggleCheckForUpdateOnStartUp"],[null,"toggleUsePreReleaseUpdate"],[null,"checkForUpdate"]],function(e,t,n){var o=!0,i=e.component;return"toggleCheckForUpdateOnStartUp"===t&&(o=!1!==i.toogleCheckForUpdateOnStartUp(n)&&o),"toggleUsePreReleaseUpdate"===t&&(o=!1!==i.toogleUsePreReleaseUpdate(n)&&o),"checkForUpdate"===t&&(o=!1!==i.checkForUpdate()&&o),o},tl,Xr)),i["\u0275did"](12,49152,null,0,Zr,[],{version:[0,"version"],settings:[1,"settings"],checkingForUpdate:[2,"checkingForUpdate"]},{toggleCheckForUpdateOnStartUp:"toggleCheckForUpdateOnStartUp",toggleUsePreReleaseUpdate:"toggleUsePreReleaseUpdate",checkForUpdate:"checkForUpdate"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,12,0,n.version,i["\u0275unv"](t,12,1,i["\u0275nov"](t,13).transform(n.autoUpdateSettings$)),i["\u0275unv"](t,12,2,i["\u0275nov"](t,14).transform(n.checkingForUpdate$)))},null)}var ll=i["\u0275ccf"]("settings",ol,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"settings",[["class","container-fluid"]],null,null,null,rl,il)),i["\u0275did"](1,49152,null,0,ol,[s.m],null,null)],null,null)},{},{},[]),sl=function(){function e(e){this.store=e,this.version=Object(At.c)().version}return e.prototype.openAgentGitHubPage=function(e){e.preventDefault(),this.store.dispatch(new F.h(qe.Constants.AGENT_GITHUB_URL))},e}(),al=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}.agent-version[_ngcontent-%COMP%]{margin-bottom:1rem}.agent-version[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}.link-github[_ngcontent-%COMP%]{cursor:pointer}"]],data:{}});function ul(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,21,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","uhk-icon uhk-icon-agent-icon"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["About"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,10,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,3,"div",[["class","agent-version"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Agent version: "])),(e()(),i["\u0275eld"](14,0,null,null,1,"span",[["class","text-bold"]],null,null,null,null,null)),(e()(),i["\u0275ted"](15,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),i["\u0275eld"](18,0,null,null,1,"a",[["class","link-github"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.openAgentGitHubPage(n)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Agent on GitHub"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){e(t,15,0,t.component.version)})}var cl=i["\u0275ccf"]("about-page",sl,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"about-page",[["class","container-fluid"]],null,null,null,ul,al)),i["\u0275did"](1,49152,null,0,sl,[s.m],null,null)],null,null)},{},{},[]),dl=function(){return function(){this.updateApp=new i.EventEmitter,this.doNotUpdateApp=new i.EventEmitter}}(),pl=i["\u0275crt"]({encapsulation:0,styles:[[".app-update-available-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:.5rem}"]],data:{}});function fl(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","app-update-available-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n New version available.\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.updateApp.emit()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Update"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.doNotUpdateApp.emit()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Close"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}var hl=function(e){},yl=function(){function e(e,t){this._cdRef=e,this._renderer=t,this.maxParentWidthPercent=1,this._onChanged=hl,this._onTouched=hl}return Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model!==e&&(this._model=e)},enumerable:!0,configurable:!0}),e.prototype.registerOnChange=function(e){this._onChanged=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.disabled!==e&&(this.disabled=e,this._cdRef.markForCheck())},e.prototype.windowResize=function(){this.calculateTextWidth(this._model)},e.prototype.writeValue=function(e){console.log("write",new Date),this.model!==e&&(this._model=e,this._originalModel=e,this.calculateTextWidth(this._model),this._cdRef.markForCheck())},e.prototype.focus=function(){this._onTouched(this)},e.prototype.blur=function(){if(!At.d(this._model)||this._model.trim()===this._originalModel)return this._model=this._originalModel,this.calculateTextWidth(this._model),void this._cdRef.markForCheck();this._originalModel=this._model,this._onChanged(this._model)},e.prototype.keyEnter=function(e){e.target.blur()},e.prototype.calculateTextWidth=function(e){var t=this.inputControl.nativeElement,n=t.parentElement.parentElement.offsetWidth*this.maxParentWidthPercent,o=At.b(window.getComputedStyle(t),e);this._renderer.setStyle(t,"width",Math.min(n,o)+"px")},e}(),ml=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function gl(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{inputControl:0}),(e()(),i["\u0275eld"](1,0,[[1,0],["inputControl",1]],null,6,"input",[["cancelable",""],["type","text"]],[[8,"className",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"blur"],[null,"focus"],[null,"keyup.enter"],[null,"keyup"],[null,"input"],[null,"compositionstart"],[null,"compositionend"],[null,"keyup.escape"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,2)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,2).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,2)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,2)._compositionEnd(n.target.value)&&o),"focus"===t&&(o=!1!==i["\u0275nov"](e,7).onFocus()&&o),"keyup.escape"===t&&(o=!1!==i["\u0275nov"](e,7).onEscape()&&o),"ngModelChange"===t&&(o=!1!==(r.model=n)&&o),"blur"===t&&(o=!1!==r.blur()&&o),"focus"===t&&(o=!1!==r.focus()&&o),"keyup.enter"===t&&(o=!1!==r.keyEnter(n)&&o),"keyup"===t&&(o=!1!==r.calculateTextWidth(n.target.value)&&o),o},null,null)),i["\u0275did"](2,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.DefaultValueAccessor]),i["\u0275did"](4,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](6,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),i["\u0275did"](7,16384,null,0,_t,[i.ElementRef,i.Renderer],null,null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0,n.disabled,n.model)},function(e,t){e(t,1,0,t.component.css,i["\u0275nov"](t,6).ngClassUntouched,i["\u0275nov"](t,6).ngClassTouched,i["\u0275nov"](t,6).ngClassPristine,i["\u0275nov"](t,6).ngClassDirty,i["\u0275nov"](t,6).ngClassValid,i["\u0275nov"](t,6).ngClassInvalid,i["\u0275nov"](t,6).ngClassPending)})}n("EnA3");var vl=function(){function e(e,t,n){this.store=e,this.renderer=t,this.cdRef=n,this.animation={device:"active",configuration:"active",keymap:"active",macro:"active",addon:"active"}}return e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(u.p).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.toggleHide=function(e,t){if(!this.state.updatingFirmware){var n=!1;e.target.classList.contains("fa-chevron-down")?(n=!0,this.animation[t]="active"):this.animation[t]="inactive",n?(this.renderer.addClass(e.target,"fa-chevron-up"),this.renderer.removeClass(e.target,"fa-chevron-down")):(this.renderer.removeClass(e.target,"fa-chevron-up"),this.renderer.addClass(e.target,"fa-chevron-down"))}},e.prototype.addMacro=function(){this.store.dispatch(wt.b.addMacro())},e.prototype.editDeviceName=function(e){this.store.dispatch(new me.h(e))},e}(),bl=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{background-color:#f5f5f5;border-right:1px solid #ccc;position:fixed;overflow-y:auto;width:250px;height:100%}a[_ngcontent-%COMP%]{color:#333}a.disabled[_ngcontent-%COMP%]{opacity:.65}ul[_ngcontent-%COMP%]{padding:0;margin:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;padding:0}ul[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{overflow:hidden}.sidebar__level-0[_ngcontent-%COMP%]{padding:.5rem 1rem 0}.sidebar__level-1[_ngcontent-%COMP%]{padding:.5rem 1rem .5rem 2rem}.sidebar__level-0[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]{font-size:2rem;line-height:3rem;cursor:default}.sidebar__level-0[_ngcontent-%COMP%]:hover .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-0[_ngcontent-%COMP%]:hover .fa-chevron-up[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]:hover .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]:hover .fa-chevron-up[_ngcontent-%COMP%]{display:inline-block}.sidebar__level-0--item[_ngcontent-%COMP%], .sidebar__level-1--item[_ngcontent-%COMP%]{margin-top:0}.sidebar__level-0--item[_ngcontent-%COMP%]:nth-child(1), .sidebar__level-1--item[_ngcontent-%COMP%]:nth-child(1){margin:0}.sidebar__level-0[_ngcontent-%COMP%] .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-0[_ngcontent-%COMP%] .fa-chevron-up[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .fa-chevron-up[_ngcontent-%COMP%]{margin-right:1rem;font-size:1.5rem;position:relative;top:.5rem;display:none;cursor:pointer}.sidebar__level-0[_ngcontent-%COMP%] .uhk-icon-agent-icon[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .uhk-icon-agent-icon[_ngcontent-%COMP%]{margin-left:-3px}.sidebar__level-2--item[_ngcontent-%COMP%]{padding:0 20px 0 0;position:relative}.sidebar__level-2--item.active[_ngcontent-%COMP%]{background-color:#555;color:#fff}.sidebar__level-2--item.active[_ngcontent-%COMP%] .fa-star[_ngcontent-%COMP%]{color:#fff}.sidebar__level-2--item.active[_ngcontent-%COMP%]:hover{background-color:#555}.sidebar__level-2--item[_ngcontent-%COMP%]:hover{cursor:pointer}.sidebar__level-2--item[_ngcontent-%COMP%] .fa.pull-right[_ngcontent-%COMP%]{position:relative;top:2px}.sidebar__level-2--item[_ngcontent-%COMP%] .fa-star[_ngcontent-%COMP%]{color:#666}.sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;width:100%;padding:0 15px 0 30px}.sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus, .sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.sidebar__level-2--item[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]{opacity:.65}.sidebar__level-0[_ngcontent-%COMP%]:hover, .sidebar__level-1[_ngcontent-%COMP%]:hover, .sidebar__level-2[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.sidebar__level-0.active[_ngcontent-%COMP%], .sidebar__level-1.active[_ngcontent-%COMP%], .sidebar__level-2.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.18)}.sidebar__fav[_ngcontent-%COMP%]{position:absolute;right:19px;top:3px}.menu--bottom[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.menu--bottom[_ngcontent-%COMP%] .sidebar__level-1[_ngcontent-%COMP%]{display:block;padding:1rem;cursor:pointer}.menu--bottom[_ngcontent-%COMP%] .sidebar__level-1[_ngcontent-%COMP%]:hover{text-decoration:none}"]],data:{animation:[{type:7,name:"toggler",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function kl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,2,{links:1}),i["\u0275qud"](603979776,3,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[3,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,1),(e()(),i["\u0275ted"](-1,null,["Mouse speed"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/mouse-speed"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href)})}function _l(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,4,{links:1}),i["\u0275qud"](603979776,5,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[5,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,1),(e()(),i["\u0275ted"](-1,null,["LED brightness"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/led-brightness"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href)})}function wl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,6,{links:1}),i["\u0275qud"](603979776,7,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[7,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,1),(e()(),i["\u0275ted"](-1,null,["Configuration"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/configuration"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href)})}function Al(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,8,{links:1}),i["\u0275qud"](603979776,9,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[9,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,1),(e()(),i["\u0275ted"](-1,null,["Fix configuration"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/restore-user-configuration"))},function(e,t){e(t,8,0,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href)})}function Tl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"i",[["class","fa fa-star sidebar__fav"],["data-placement","bottom"],["data-toggle","tooltip"],["title","This is the default keymap which gets activated when powering the keyboard."]],[[1,"data-placement",0]],null,null,null,null)),i["\u0275did"](1,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"]},null)],function(e,t){e(t,1,0,"This is the default keymap which gets activated when powering the keyboard.")},function(e,t){e(t,0,0,i["\u0275nov"](t,1).placement)})}function Cl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,16,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,13,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,12,{links:1}),i["\u0275qud"](603979776,13,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[13,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,2),(e()(),i["\u0275ted"](11,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Tl)),i["\u0275did"](14,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/keymap",t.context.$implicit.abbreviation)),e(t,14,0,t.context.$implicit.isDefault)},function(e,t){e(t,8,0,t.component.state.updatingFirmware,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href),e(t,11,0,t.context.$implicit.name)})}function xl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,15,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Keymaps\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"keymap")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,4,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Cl)),i["\u0275did"](13,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,13,0,t.component.state.keymaps)},function(e,t){e(t,10,0,t.component.animation.keymap)})}function Ol(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,14,{links:1}),i["\u0275qud"](603979776,15,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[15,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,2),(e()(),i["\u0275ted"](11,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/macro",t.context.$implicit.id))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href),e(t,11,0,t.context.$implicit.name)})}function Sl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,19,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Macros\n "])),(e()(),i["\u0275eld"](6,0,null,null,3,"a",[["class","btn btn-default pull-right btn-sm"]],[[2,"disabled",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.addMacro()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"macro")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,4,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ol)),i["\u0275did"](17,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,17,0,t.component.state.macros)},function(e,t){var n=t.component;e(t,6,0,n.state.updatingFirmware),e(t,14,0,n.animation.macro)})}function Ml(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,71,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Add-on modules\n "])),(e()(),i["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"addon")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,61,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Key cluster"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](14,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,16,{links:1}),i["\u0275qud"](603979776,17,{linksWithHrefs:1}),i["\u0275pad"](17,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,20).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](20,671744,[[17,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](21,2),(e()(),i["\u0275ted"](-1,null,["Key cluster"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](26,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackball"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](29,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,18,{links:1}),i["\u0275qud"](603979776,19,{linksWithHrefs:1}),i["\u0275pad"](32,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](34,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,35).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](35,671744,[[19,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](36,2),(e()(),i["\u0275ted"](-1,null,["Trackball"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](41,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Toucpad"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](43,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](44,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,20,{links:1}),i["\u0275qud"](603979776,21,{linksWithHrefs:1}),i["\u0275pad"](47,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](49,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,50).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](50,671744,[[21,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](51,2),(e()(),i["\u0275ted"](-1,null,["Touchpad"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](56,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackpoint"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](58,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](59,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,22,{links:1}),i["\u0275qud"](603979776,23,{linksWithHrefs:1}),i["\u0275pad"](62,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](64,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,65).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](65,671744,[[23,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](66,2),(e()(),i["\u0275ted"](-1,null,["Trackpoint"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,14,0,e(t,17,0,"active")),e(t,20,0,e(t,21,0,"/add-on","Key cluster")),e(t,29,0,e(t,32,0,"active")),e(t,35,0,e(t,36,0,"/add-on","Trackball")),e(t,44,0,e(t,47,0,"active")),e(t,50,0,e(t,51,0,"/add-on","Touchpad")),e(t,59,0,e(t,62,0,"active")),e(t,65,0,e(t,66,0,"/add-on","Trackpoint"))},function(e,t){var n=t.component;e(t,9,0,n.animation.addon),e(t,19,0,n.state.updatingFirmware,i["\u0275nov"](t,20).target,i["\u0275nov"](t,20).href),e(t,34,0,n.state.updatingFirmware,i["\u0275nov"](t,35).target,i["\u0275nov"](t,35).href),e(t,49,0,n.state.updatingFirmware,i["\u0275nov"](t,50).target,i["\u0275nov"](t,50).href),e(t,64,0,n.state.updatingFirmware,i["\u0275nov"](t,65).target,i["\u0275nov"](t,65).href)})}function El(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{deviceName:0}),(e()(),i["\u0275eld"](1,0,null,null,117,"ul",[["class","menu--top"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,67,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,12,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,0,"i",[["class","uhk-icon uhk-icon-0401-usb-stick rotate-right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,5,"auto-grow-input",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["window","resize"]],function(e,t,n){var o=!0,r=e.component;return"window:resize"===t&&(o=!1!==i["\u0275nov"](e,10).windowResize()&&o),"ngModelChange"===t&&(o=!1!==r.editDeviceName(n)&&o),o},gl,ml)),i["\u0275did"](10,49152,null,0,yl,[i.ChangeDetectorRef,i.Renderer2],{maxParentWidthPercent:[0,"maxParentWidthPercent"],css:[1,"css"]},null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[yl]),i["\u0275did"](12,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](14,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"device")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,50,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](21,0,null,null,38,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Device\n "])),(e()(),i["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"configuration")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](30,0,null,null,28,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,kl)),i["\u0275did"](33,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,_l)),i["\u0275did"](36,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,wl)),i["\u0275did"](39,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Al)),i["\u0275did"](42,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](44,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](46,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](47,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,10,{links:1}),i["\u0275qud"](603979776,11,{linksWithHrefs:1}),i["\u0275pad"](50,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](52,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,53).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](53,671744,[[11,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](54,1),(e()(),i["\u0275ted"](-1,null,["Firmware"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,xl)),i["\u0275did"](62,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Sl)),i["\u0275did"](65,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ml)),i["\u0275did"](68,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](72,0,null,null,45,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),i["\u0275did"](73,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,24,{links:1}),i["\u0275qud"](603979776,25,{linksWithHrefs:1}),i["\u0275pad"](76,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](78,0,null,null,5,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](80,0,null,null,0,"i",[["class","uhk-icon uhk-icon-agent-icon"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Agent\n "])),(e()(),i["\u0275eld"](82,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"agent")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](85,0,null,null,31,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](87,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](89,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](90,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,26,{links:1}),i["\u0275qud"](603979776,27,{linksWithHrefs:1}),i["\u0275pad"](93,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](95,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,96).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](96,671744,[[27,4],[25,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](97,1),(e()(),i["\u0275ted"](-1,null,["Settings"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](102,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](104,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](105,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,28,{links:1}),i["\u0275qud"](603979776,29,{linksWithHrefs:1}),i["\u0275pad"](108,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](110,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,111).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](111,671744,[[29,4],[25,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](112,1),(e()(),i["\u0275ted"](-1,null,["About"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,10,0,.65,"side-menu-pane-title__name"),e(t,12,0,n.state.restoreUserConfiguration||n.state.updatingFirmware,n.state.deviceName),e(t,33,0,!n.state.restoreUserConfiguration),e(t,36,0,!n.state.restoreUserConfiguration),e(t,39,0,!n.state.restoreUserConfiguration),e(t,42,0,n.state.restoreUserConfiguration),e(t,47,0,e(t,50,0,"active")),e(t,53,0,e(t,54,0,"/device/firmware")),e(t,62,0,!n.state.restoreUserConfiguration),e(t,65,0,!n.state.restoreUserConfiguration),e(t,68,0,n.state.showAddonMenu),e(t,73,0,e(t,76,0,"active")),e(t,90,0,e(t,93,0,"active")),e(t,96,0,e(t,97,0,"/settings")),e(t,105,0,e(t,108,0,"active")),e(t,111,0,e(t,112,0,"/about"))},function(e,t){var n=t.component;e(t,9,0,i["\u0275nov"](t,14).ngClassUntouched,i["\u0275nov"](t,14).ngClassTouched,i["\u0275nov"](t,14).ngClassPristine,i["\u0275nov"](t,14).ngClassDirty,i["\u0275nov"](t,14).ngClassValid,i["\u0275nov"](t,14).ngClassInvalid,i["\u0275nov"](t,14).ngClassPending),e(t,19,0,n.animation.device),e(t,30,0,n.animation.configuration),e(t,52,0,n.state.updatingFirmware,i["\u0275nov"](t,53).target,i["\u0275nov"](t,53).href),e(t,85,0,n.animation.agent),e(t,95,0,n.state.updatingFirmware,i["\u0275nov"](t,96).target,i["\u0275nov"](t,96).href),e(t,110,0,n.state.updatingFirmware,i["\u0275nov"](t,111).target,i["\u0275nov"](t,111).href)})}var Pl=n("MptX"),Il=function(){function e(){this.state=Pl.a,this.clicked=new i.EventEmitter}return e.prototype.onClicked=function(){this.clicked.emit(this.state.action)},e}(),Rl=i["\u0275crt"]({encapsulation:0,styles:[["button[_ngcontent-%COMP%]{min-width:150px}"]],data:{}});function Dl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-spin fa-spinner"]],null,null,null,null,null))],null,null)}function Nl(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,4,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onClicked()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Dl)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](4,null,[" ","\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,t.component.state.showProgress)},function(e,t){var n=t.component;e(t,0,0,n.state.showProgress),e(t,4,0,n.state.text)})}var jl=n("EEr4"),Ll=function(){return function(e){Object.assign(this,e),void 0===e.id&&(this.id="ID_"+(new Date).getTime())}}(),Ul=function(){function e(){this.actionStream=new jl.Subject,this.actionQueue=[],this.isActionInProgress=!1}return e.prototype.push=function(e){this.actionQueue.push(e),this.tryToRunNextAction()},e.prototype.continue=function(){this.isActionInProgress=!1,this.tryToRunNextAction()},e.prototype.tryToRunNextAction=function(){this.isActionInProgress||0===this.actionQueue.length||(this.isActionInProgress=!0,this.actionStream.next(this.actionQueue.shift()))},e}(),Vl=function(){return function(e){void 0===e&&(e={}),this.animations={enabled:!0,hide:{easing:"ease",offset:50,preset:"fade",speed:300},overlap:150,shift:{easing:"ease",speed:300},show:{easing:"ease",preset:"slide",speed:300}},this.behaviour={autoHide:7e3,onClick:!1,onMouseover:"pauseAutoHide",showDismissButton:!0,stacking:4},this.position={horizontal:{distance:12,position:"left"},vertical:{distance:12,gap:10,position:"bottom"}},this.theme="material",void 0!==e.theme&&(this.theme=e.theme),void 0!==e.animations&&(void 0!==e.animations.enabled&&(this.animations.enabled=e.animations.enabled),void 0!==e.animations.overlap&&(this.animations.overlap=e.animations.overlap),void 0!==e.animations.hide&&Object.assign(this.animations.hide,e.animations.hide),void 0!==e.animations.shift&&Object.assign(this.animations.shift,e.animations.shift),void 0!==e.animations.show&&Object.assign(this.animations.show,e.animations.show)),void 0!==e.behaviour&&Object.assign(this.behaviour,e.behaviour),void 0!==e.position&&(void 0!==e.position.horizontal&&Object.assign(this.position.horizontal,e.position.horizontal),void 0!==e.position.vertical&&Object.assign(this.position.vertical,e.position.vertical))}}(),Fl=function(){function e(e,t){this.queueService=e,this.config=t}return e.prototype.getConfig=function(){return this.config},e.prototype.show=function(e){this.queueService.push({payload:e,type:"SHOW"})},e.prototype.hide=function(e){this.queueService.push({payload:e,type:"HIDE"})},e.prototype.hideNewest=function(){this.queueService.push({type:"HIDE_NEWEST"})},e.prototype.hideOldest=function(){this.queueService.push({type:"HIDE_OLDEST"})},e.prototype.hideAll=function(){this.queueService.push({type:"HIDE_ALL"})},e.prototype.notify=function(e,t,n){var o={message:t,type:e};void 0!==n&&(o.id=n),this.show(o)},e}(),Kl=function(){function e(e,t,n){this.changeDetector=e,this.queueService=t,this.config=n.getConfig(),this.notifications=[]}return e.prototype.ngOnInit=function(){var e=this;this.queueServiceSubscription=this.queueService.actionStream.subscribe(function(t){e.handleAction(t).then(function(){e.queueService.continue()})})},e.prototype.ngOnDestroy=function(){this.queueServiceSubscription&&this.queueServiceSubscription.unsubscribe()},e.prototype.identifyNotification=function(e,t){return t.id},e.prototype.onNotificationDismiss=function(e){this.queueService.push({payload:e,type:"HIDE"})},e.prototype.onNotificationReady=function(e){var t=this.notifications[this.notifications.length-1];t.component=e,this.continueHandleShowAction(t)},e.prototype.handleAction=function(e){switch(e.type){case"SHOW":return this.handleShowAction(e);case"HIDE":return this.handleHideAction(e);case"HIDE_OLDEST":return this.handleHideOldestAction(e);case"HIDE_NEWEST":return this.handleHideNewestAction(e);case"HIDE_ALL":return this.handleHideAllAction(e);default:return new Promise(function(e,t){e()})}},e.prototype.handleShowAction=function(e){var t=this;return new Promise(function(n,o){t.tempPromiseResolver=n,t.addNotificationToList(new Ll(e.payload))})},e.prototype.continueHandleShowAction=function(e){var t=this,n=this.notifications.length;if(1===n)e.component.show().then(this.tempPromiseResolver);else if(!1===this.config.behaviour.stacking||this.config.behaviour.stacking<2)this.notifications[0].component.hide().then(function(){t.removeNotificationFromList(t.notifications[0]),e.component.show().then(t.tempPromiseResolver)});else{var o=[];if(n>this.config.behaviour.stacking){var i=this.notifications.slice(1,n-1);this.config.animations.enabled?!1!==this.config.animations.overlap&&this.config.animations.overlap>0?(o.push(this.notifications[0].component.hide()),setTimeout(function(){o.push(t.shiftNotifications(i,e.component.getHeight(),!0))},this.config.animations.hide.speed-this.config.animations.overlap),setTimeout(function(){o.push(e.component.show())},this.config.animations.hide.speed+this.config.animations.shift.speed-this.config.animations.overlap)):o.push(new Promise(function(n,o){t.notifications[0].component.hide().then(function(){t.shiftNotifications(i,e.component.getHeight(),!0).then(function(){e.component.show().then(n)})})})):(o.push(this.notifications[0].component.hide()),o.push(this.shiftNotifications(i,e.component.getHeight(),!0)),o.push(e.component.show()))}else{var r=this.notifications.slice(0,n-1);this.config.animations.enabled?!1!==this.config.animations.overlap&&this.config.animations.overlap>0?(o.push(this.shiftNotifications(r,e.component.getHeight(),!0)),setTimeout(function(){o.push(e.component.show())},this.config.animations.shift.speed-this.config.animations.overlap)):o.push(new Promise(function(n,o){t.shiftNotifications(r,e.component.getHeight(),!0).then(function(){e.component.show().then(n)})})):(o.push(this.shiftNotifications(r,e.component.getHeight(),!0)),o.push(e.component.show()))}Promise.all(o).then(function(){n>t.config.behaviour.stacking&&t.removeNotificationFromList(t.notifications[0]),t.tempPromiseResolver()})}},e.prototype.handleHideAction=function(e){var t=this;return new Promise(function(n,o){var i=[],r=t.findNotificationById(e.payload);if(void 0!==r){var l=t.findNotificationIndexById(e.payload);if(void 0!==l){var s=t.notifications.slice(0,l);s.length>0?t.config.animations.enabled&&t.config.animations.hide.speed>0?!1!==t.config.animations.overlap&&t.config.animations.overlap>0?(i.push(r.component.hide()),setTimeout(function(){i.push(t.shiftNotifications(s,r.component.getHeight(),!1))},t.config.animations.hide.speed-t.config.animations.overlap)):r.component.hide().then(function(){i.push(t.shiftNotifications(s,r.component.getHeight(),!1))}):(i.push(r.component.hide()),i.push(t.shiftNotifications(s,r.component.getHeight(),!1))):i.push(r.component.hide()),Promise.all(i).then(function(){t.removeNotificationFromList(r),n()})}else n()}else n()})},e.prototype.handleHideOldestAction=function(e){return 0===this.notifications.length?new Promise(function(e,t){e()}):(e.payload=this.notifications[0].id,this.handleHideAction(e))},e.prototype.handleHideNewestAction=function(e){return 0===this.notifications.length?new Promise(function(e,t){e()}):(e.payload=this.notifications[this.notifications.length-1].id,this.handleHideAction(e))},e.prototype.handleHideAllAction=function(e){var t=this;return new Promise(function(e,n){var o=t.notifications.length;if(0!==o)if(t.config.animations.enabled&&t.config.animations.hide.speed>0&&!1!==t.config.animations.hide.offset&&t.config.animations.hide.offset>0)for(var i=function(n){setTimeout(function(){t.notifications[n].component.hide().then(function(){("top"===t.config.position.vertical.position&&0===n||"bottom"===t.config.position.vertical.position&&n===o-1)&&(t.removeAllNotificationsFromList(),e())})},t.config.animations.hide.offset*("top"===t.config.position.vertical.position?o-1:n))},r=o-1;r>=0;r--)i(r);else{var l=[];for(r=o-1;r>=0;r--)l.push(t.notifications[r].component.hide());Promise.all(l).then(function(){t.removeAllNotificationsFromList(),e()})}else e()})},e.prototype.shiftNotifications=function(e,t,n){return new Promise(function(o,i){if(0!==e.length){for(var r=[],l=e.length-1;l>=0;l--)r.push(e[l].component.shift(t,n));Promise.all(r).then(o)}else o()})},e.prototype.addNotificationToList=function(e){this.notifications.push(e),this.changeDetector.markForCheck()},e.prototype.removeNotificationFromList=function(e){this.notifications=this.notifications.filter(function(t){return t.component!==e.component}),this.changeDetector.markForCheck()},e.prototype.removeAllNotificationsFromList=function(){this.notifications=[],this.changeDetector.markForCheck()},e.prototype.findNotificationById=function(e){return this.notifications.find(function(t){return t.id===e})},e.prototype.findNotificationIndexById=function(e){var t=this.notifications.findIndex(function(t){return t.id===e});return-1!==t?t:void 0},e}(),Bl={hide:function(e){return{from:{opacity:"1"},to:{opacity:"0"}}},show:function(e){return{from:{opacity:"0"},to:{opacity:"1"}}}},Hl={hide:function(e){var t,n,o=e.component.getConfig(),i=e.component.getShift();return"left"===o.position.horizontal.position?(t={transform:"translate3d( 0, "+i+"px, 0 )"},n={transform:"translate3d( calc( -100% - "+o.position.horizontal.distance+"px - 10px ), "+i+"px, 0 )"}):"right"===o.position.horizontal.position?(t={transform:"translate3d( 0, "+i+"px, 0 )"},n={transform:"translate3d( calc( 100% + "+o.position.horizontal.distance+"px + 10px ), "+i+"px, 0 )"}):(t={transform:"translate3d( -50%, "+i+"px, 0 )"},n={transform:"translate3d( -50%, "+("top"===o.position.vertical.position?"calc( -100% - "+o.position.horizontal.distance+"px - 10px )":"calc( 100% + "+o.position.horizontal.distance+"px + 10px )")+", 0 )"}),{from:t,to:n}},show:function(e){var t,n,o=e.component.getConfig();return"left"===o.position.horizontal.position?(t={transform:"translate3d( calc( -100% - "+o.position.horizontal.distance+"px - 10px ), 0, 0 )"},n={transform:"translate3d( 0, 0, 0 )"}):"right"===o.position.horizontal.position?(t={transform:"translate3d( calc( 100% + "+o.position.horizontal.distance+"px + 10px ), 0, 0 )"},n={transform:"translate3d( 0, 0, 0 )"}):(t={transform:"translate3d( -50%, "+("top"===o.position.vertical.position?"calc( -100% - "+o.position.horizontal.distance+"px - 10px )":"calc( 100% + "+o.position.horizontal.distance+"px + 10px )")+", 0 )"},n={transform:"translate3d( -50%, 0, 0 )"}),{from:t,to:n}}},Wl=function(){function e(){this.animationPresets={fade:Bl,slide:Hl}}return e.prototype.getAnimationData=function(e,t){var n,o,i;return"show"===e?(n=this.animationPresets[t.component.getConfig().animations.show.preset].show(t),o=t.component.getConfig().animations.show.speed,i=t.component.getConfig().animations.show.easing):(n=this.animationPresets[t.component.getConfig().animations.hide.preset].hide(t),o=t.component.getConfig().animations.hide.speed,i=t.component.getConfig().animations.hide.easing),{keyframes:[n.from,n.to],options:{duration:o,easing:i,fill:"forwards"}}},e}(),ql=function(){function e(){this.now=0,this.remaining=0}return e.prototype.start=function(e){var t=this;return new Promise(function(n,o){t.remaining=e,t.finishPromiseResolver=n,t.continue()})},e.prototype.pause=function(){clearTimeout(this.timerId),this.remaining-=(new Date).getTime()-this.now},e.prototype.continue=function(){var e=this;this.now=(new Date).getTime(),this.timerId=setTimeout(function(){e.finish()},this.remaining)},e.prototype.stop=function(){clearTimeout(this.timerId),this.remaining=0},e.prototype.finish=function(){this.finishPromiseResolver()},e}(),zl=function(){function e(e,t,n,o,r){this.config=n.getConfig(),this.ready=new i.EventEmitter,this.dismiss=new i.EventEmitter,this.timerService=o,this.animationService=r,this.renderer=t,this.element=e.nativeElement,this.elementShift=0}return e.prototype.ngAfterViewInit=function(){this.setup(),this.elementHeight=this.element.offsetHeight,this.elementWidth=this.element.offsetWidth,this.ready.emit(this)},e.prototype.getConfig=function(){return this.config},e.prototype.getHeight=function(){return this.elementHeight},e.prototype.getWidth=function(){return this.elementWidth},e.prototype.getShift=function(){return this.elementShift},e.prototype.show=function(){var e=this;return new Promise(function(t,n){if(e.config.animations.enabled&&e.config.animations.show.speed>0){for(var o=e.animationService.getAnimationData("show",e.notification),i=Object.keys(o.keyframes[0]),r=i.length-1;r>=0;r--)e.renderer.setStyle(e.element,i[r],o.keyframes[0][i[r]]);e.renderer.setStyle(e.element,"visibility","visible"),e.element.animate(o.keyframes,o.options).onfinish=function(){e.startAutoHideTimer(),t()}}else e.renderer.setStyle(e.element,"visibility","visible"),e.startAutoHideTimer(),t()})},e.prototype.hide=function(){var e=this;return new Promise(function(t,n){if(e.stopAutoHideTimer(),e.config.animations.enabled&&e.config.animations.hide.speed>0){var o=e.animationService.getAnimationData("hide",e.notification);e.element.animate(o.keyframes,o.options).onfinish=function(){t()}}else t()})},e.prototype.shift=function(e,t){var n=this;return new Promise(function(o,i){var r;r="top"===n.config.position.vertical.position&&t||"bottom"===n.config.position.vertical.position&&!t?n.elementShift+e+n.config.position.vertical.gap:n.elementShift-e-n.config.position.vertical.gap;var l="middle"===n.config.position.horizontal.position?"-50%":"0";if(n.config.animations.enabled&&n.config.animations.shift.speed>0){var s={keyframes:[{transform:"translate3d( "+l+", "+n.elementShift+"px, 0 )"},{transform:"translate3d( "+l+", "+r+"px, 0 )"}],options:{duration:n.config.animations.shift.speed,easing:n.config.animations.shift.easing,fill:"forwards"}};n.elementShift=r,n.element.animate(s.keyframes,s.options).onfinish=function(){o()}}else n.renderer.setStyle(n.element,"transform","translate3d( "+l+", "+r+"px, 0 )"),n.elementShift=r,o()})},e.prototype.onClickDismiss=function(){this.dismiss.emit(this.notification.id)},e.prototype.onNotificationMouseover=function(){"pauseAutoHide"===this.config.behaviour.onMouseover?this.pauseAutoHideTimer():"resetAutoHide"===this.config.behaviour.onMouseover&&this.stopAutoHideTimer()},e.prototype.onNotificationMouseout=function(){"pauseAutoHide"===this.config.behaviour.onMouseover?this.continueAutoHideTimer():"resetAutoHide"===this.config.behaviour.onMouseover&&this.startAutoHideTimer()},e.prototype.onNotificationClick=function(){"hide"===this.config.behaviour.onClick&&this.onClickDismiss()},e.prototype.startAutoHideTimer=function(){var e=this;!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.start(this.config.behaviour.autoHide).then(function(){e.onClickDismiss()})},e.prototype.pauseAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.pause()},e.prototype.continueAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.continue()},e.prototype.stopAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.stop()},e.prototype.setup=function(){"left"===this.config.position.horizontal.position?this.renderer.setStyle(this.element,"left",this.config.position.horizontal.distance+"px"):"right"===this.config.position.horizontal.position?this.renderer.setStyle(this.element,"right",this.config.position.horizontal.distance+"px"):(this.renderer.setStyle(this.element,"left","50%"),this.renderer.setStyle(this.element,"transform","translate3d( -50%, 0, 0 )")),this.renderer.setStyle(this.element,"top"===this.config.position.vertical.position?"top":"bottom",this.config.position.vertical.distance+"px"),this.renderer.addClass(this.element,"notifier__notification--"+this.notification.type),this.renderer.addClass(this.element,"notifier__notification--"+this.config.theme)},e}(),$l=new i.InjectionToken("[angular-notifier] Notifier Options"),Gl=new i.InjectionToken("[anuglar-notifier] Notifier Config");function Yl(e){return new Vl(e)}var Ql=function(){function e(){}return e.withConfig=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:$l,useValue:t},{deps:[$l],provide:Gl,useFactory:Yl}]}},e}(),Jl=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Zl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"li",[["class","notifier__container-list"]],null,null,null,null,null)),(e()(),i["\u0275eld"](1,0,null,null,2,"notifier-notification",[["class","notifier__notification"]],null,[[null,"dismiss"],[null,"ready"],[null,"click"],[null,"mouseout"],[null,"mouseover"]],function(e,t,n){var o=!0,r=e.component;return"click"===t&&(o=!1!==i["\u0275nov"](e,3).onNotificationClick()&&o),"mouseout"===t&&(o=!1!==i["\u0275nov"](e,3).onNotificationMouseout()&&o),"mouseover"===t&&(o=!1!==i["\u0275nov"](e,3).onNotificationMouseover()&&o),"dismiss"===t&&(o=!1!==r.onNotificationDismiss(n)&&o),"ready"===t&&(o=!1!==r.onNotificationReady(n)&&o),o},ns,es)),i["\u0275prd"](512,null,ql,ql,[]),i["\u0275did"](3,4243456,null,0,zl,[i.ElementRef,i.Renderer2,Fl,ql,Wl],{notification:[0,"notification"]},{ready:"ready",dismiss:"dismiss"})],function(e,t){e(t,3,0,t.context.$implicit)},null)}function Xl(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,2,"ul",[],null,null,null,null,null)),(e()(),i["\u0275and"](16777216,null,null,1,null,Zl)),i["\u0275did"](2,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null)],function(e,t){var n=t.component;e(t,2,0,n.notifications,n.identifyNotification)},null)}var es=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function ts(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"button",[["class","notifier__notification-button"],["title","dismiss"],["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onClickDismiss()&&o),o},null,null)),(e()(),i["\u0275eld"](1,0,null,null,1,":svg:svg",[["class","notifier__notification-button-icon"],["height","20"],["viewBox","0 0 24 24"],["width","20"]],null,null,null,null,null)),(e()(),i["\u0275eld"](2,0,null,null,0,":svg:path",[["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"]],null,null,null,null,null))],null,null)}function ns(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,1,"p",[["class","notifier__notification-message"]],null,null,null,null,null)),(e()(),i["\u0275ted"](1,null,["",""])),(e()(),i["\u0275and"](16777216,null,null,1,null,ts)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,3,0,t.component.config.behaviour.showDismissButton)},function(e,t){e(t,1,0,t.component.notification.message)})}var os=i["\u0275crt"]({encapsulation:2,styles:[["main-app{min-height:100%;height:100%;width:100%;display:block;position:relative}.save-to-keyboard-button{position:fixed;bottom:15px;right:15px}"]],data:{animation:[{type:7,name:"showSaveToKeyboardButton",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{transform:"translateY(100%)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(0)"},offset:null},timings:"400ms ease-in-out"}],options:null},{type:1,expr:":leave",animation:[{type:6,styles:{transform:"translateY(0)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(100%)"},offset:null},timings:"400ms ease-in-out"}],options:null}],options:{}}]}});function is(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"app-update-available",[],null,[[null,"updateApp"],[null,"doNotUpdateApp"]],function(e,t,n){var o=!0,i=e.component;return"updateApp"===t&&(o=!1!==i.updateApp()&&o),"doNotUpdateApp"===t&&(o=!1!==i.doNotUpdateApp()&&o),o},fl,pl)),i["\u0275did"](1,49152,null,0,dl,[],null,{updateApp:"updateApp",doNotUpdateApp:"doNotUpdateApp"}),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}function rs(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"side-menu",[],null,null,null,El,bl)),i["\u0275did"](1,245760,null,0,vl,[s.m,i.Renderer2,i.ChangeDetectorRef],null,null)],function(e,t){e(t,1,0)},null)}function ls(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"progress-button",[["class","save-to-keyboard-button"]],[[24,"@showSaveToKeyboardButton",0]],[[null,"clicked"]],function(e,t,n){var o=!0;return"clicked"===t&&(o=!1!==e.component.clickedOnProgressButton(n)&&o),o},Nl,Rl)),i["\u0275did"](1,49152,null,0,Il,[],{state:[0,"state"]},{clicked:"clicked"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,1,0,i["\u0275unv"](t,1,0,i["\u0275nov"](t,2).transform(n.saveToKeyboardState$)))},function(e,t){e(t,0,0,void 0)})}function ss(e){return i["\u0275vid"](0,[(e()(),i["\u0275and"](16777216,null,null,2,null,is)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,2,null,rs)),i["\u0275did"](5,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](8,0,null,null,4,"div",[["class","main-content"],["id","main-content"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),i["\u0275did"](11,212992,null,0,le.q,[le.b,i.ViewContainerRef,i.ComponentFactoryResolver,[8,null],i.ChangeDetectorRef],null,null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](14,0,null,null,1,"notifier-container",[["class","notifier__container"]],null,null,null,Xl,Jl)),i["\u0275did"](15,245760,null,0,Kl,[i.ChangeDetectorRef,Ul,Fl],null,null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,2,null,ls)),i["\u0275did"](18,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,i["\u0275unv"](t,1,0,i["\u0275nov"](t,2).transform(n.showUpdateAvailable$))),e(t,5,0,i["\u0275unv"](t,5,0,i["\u0275nov"](t,6).transform(n.deviceConfigurationLoaded$))),e(t,11,0),e(t,15,0),e(t,18,0,i["\u0275unv"](t,18,0,i["\u0275nov"](t,19).transform(n.saveToKeyboardState$)).showButton)},null)}var as=i["\u0275ccf"]("main-app",c,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"main-app",[],null,null,null,ss,os)),i["\u0275did"](1,49152,null,0,c,[s.m],null,null)],null,null)},{},{},[]),us=function(){},cs="*";function ds(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function ps(e){return{type:6,styles:e,offset:null}}function fs(e){Promise.resolve(null).then(e)}var hs=function(){function e(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;fs(function(){return e._onFinish()})},e.prototype._onStart=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),ys=function(){function e(e){var t=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,o=0,i=0,r=this.players.length;0==r?fs(function(){return t._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++n==r&&t._onFinish()}),e.onDestroy(function(){++o==r&&t._onDestroy()}),e.onStart(function(){++i==r&&t._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this.players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})},e.prototype.pause=function(){this.players.forEach(function(e){return e.pause()})},e.prototype.restart=function(){this.players.forEach(function(e){return e.restart()})},e.prototype.finish=function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})},e.prototype.getPosition=function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e},e.prototype.beforeDestroy=function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),ms="!";function gs(e){switch(e.length){case 0:return new hs;case 1:return e[0];default:return new ys(e)}}function vs(e,t,n,o,i,r){void 0===i&&(i={}),void 0===r&&(r={});var l=[],s=[],a=-1,u=null;if(o.forEach(function(e){var n=e.offset,o=n==a,c=o&&u||{};Object.keys(e).forEach(function(n){var o=n,s=e[n];if("offset"!==n)switch(o=t.normalizePropertyName(o,l),s){case ms:s=i[n];break;case cs:s=r[n];break;default:s=t.normalizeStyleValue(n,o,s,l)}c[o]=s}),o||s.push(c),u=c,a=n}),l.length)throw new Error("Unable to animate due to the following errors:\n - "+l.join("\n - "));return s}function bs(e,t,n,o){switch(t){case"start":e.onStart(function(){return o(n&&ks(n,"start",e.totalTime))});break;case"done":e.onDone(function(){return o(n&&ks(n,"done",e.totalTime))});break;case"destroy":e.onDestroy(function(){return o(n&&ks(n,"destroy",e.totalTime))})}}function ks(e,t,n){var o=_s(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,void 0==n?e.totalTime:n),i=e._data;return null!=i&&(o._data=i),o}function _s(e,t,n,o,i,r){return void 0===i&&(i=""),void 0===r&&(r=0),{element:e,triggerName:t,fromState:n,toState:o,phaseName:i,totalTime:r}}function ws(e,t,n){var o;return e instanceof Map?(o=e.get(t))||e.set(t,o=n):(o=e[t])||(o=e[t]=n),o}function As(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var Ts=function(e,t){return!1},Cs=function(e,t){return!1},xs=function(e,t,n){return[]};if("undefined"!=typeof Element){if(Ts=function(e,t){return e.contains(t)},Element.prototype.matches)Cs=function(e,t){return e.matches(t)};else{var Os=Element.prototype,Ss=Os.matchesSelector||Os.mozMatchesSelector||Os.msMatchesSelector||Os.oMatchesSelector||Os.webkitMatchesSelector;Ss&&(Cs=function(e,t){return Ss.apply(e,[t])})}xs=function(e,t,n){var o=[];if(n)o.push.apply(o,e.querySelectorAll(t));else{var i=e.querySelector(t);i&&o.push(i)}return o}}var Ms=null,Es=!1;function Ps(e){Ms||(Ms=Is()||{},Es=!!Ms.style&&"WebkitAppearance"in Ms.style);var t=!0;return Ms.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in Ms.style)&&Es&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Ms.style),t}function Is(){return"undefined"!=typeof document?document.body:null}var Rs=Cs,Ds=Ts,Ns=xs,js=function(){function e(){}return e.prototype.validateStyleProperty=function(e){return Ps(e)},e.prototype.matchesElement=function(e,t){return Rs(e,t)},e.prototype.containsElement=function(e,t){return Ds(e,t)},e.prototype.query=function(e,t,n){return Ns(e,t,n)},e.prototype.computeStyle=function(e,t,n){return n||""},e.prototype.animate=function(e,t,n,o,i,r){return void 0===r&&(r=[]),new hs},e}(),Ls=function(){function e(){}return e.NOOP=new js,e}(),Us=1e3;function Vs(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Fs(parseFloat(t[1]),t[2])}function Fs(e,t){switch(t){case"s":return e*Us;default:return e}}function Ks(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var o,i=0,r="";if("string"==typeof e){var l=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return t.push('The provided timing value "'+e+'" is invalid.'),{duration:0,delay:0,easing:""};o=Fs(parseFloat(l[1]),l[2]);var s=l[3];null!=s&&(i=Fs(Math.floor(parseFloat(s)),l[4]));var a=l[5];a&&(r=a)}else o=e;if(!n){var u=!1,c=t.length;o<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),i<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(c,0,'The provided timing value "'+e+'" is invalid.')}return{duration:o,delay:i,easing:r}}(e,t,n)}function Bs(e,t){return void 0===t&&(t={}),Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function Hs(e,t,n){if(void 0===n&&(n={}),t)for(var o in e)n[o]=e[o];else Bs(e,n);return n}function Ws(e,t){e.style&&Object.keys(t).forEach(function(n){var o=Zs(n);e.style[o]=t[n]})}function qs(e,t){e.style&&Object.keys(t).forEach(function(t){var n=Zs(t);e.style[n]=""})}function zs(e){return Array.isArray(e)?1==e.length?e[0]:ds(e):e}var $s=new RegExp("{{\\s*(.+?)\\s*}}","g");function Gs(e){var t=[];if("string"==typeof e){for(var n=e.toString(),o=void 0;o=$s.exec(n);)t.push(o[1]);$s.lastIndex=0}return t}function Ys(e,t,n){var o=e.toString(),i=o.replace($s,function(e,o){var i=t[o];return t.hasOwnProperty(o)||(n.push("Please provide a value for the animation param "+o),i=""),i.toString()});return i==o?e:i}function Qs(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var Js=/-+([a-z0-9])/g;function Zs(e){return e.replace(Js,function(){for(var e=[],t=0;t *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof o)return void t.push(o);e=o}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var r=i[1],l=i[2],s=i[3];t.push(oa(r,s)),"<"!=l[0]||r==ea&&s==ea||t.push(oa(s,r))}(e,i,o)}):i.push(n),i),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:ua(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Xs(n,e,t)}),options:ua(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,o=t.currentTime,i=0,r=e.steps.map(function(e){t.currentTime=o;var r=Xs(n,e,t);return i=Math.max(i,t.currentTime),r});return t.currentTime=i,{type:3,steps:r,options:ua(e.options)}},e.prototype.visitAnimate=function(e,t){var n,o=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return ca(Ks(e,t).duration,0,"");var o=e;if(o.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=ca(0,0,"");return i.dynamic=!0,i.strValue=o,i}return ca((n=n||Ks(o,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=o;var i=e.styles?e.styles:ps({});if(5==i.type)n=this.visitKeyframes(i,t);else{var r=e.styles,l=!1;if(!r){l=!0;var s={};o.easing&&(s.easing=o.easing),r=ps(s)}t.currentTime+=o.duration+o.delay;var a=this.visitStyle(r,t);a.isEmptyStep=l,n=a}return t.currentAnimateTimings=null,{type:4,timings:o,style:n,options:null}},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==cs?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var o=!1,i=null;return n.forEach(function(e){if(aa(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!o)for(var r in t)if(t[r].toString().indexOf("{{")>=0){o=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:o,options:null}},e.prototype._validateStyleAst=function(e,t){var n=this,o=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;o&&r>0&&(r-=o.duration+o.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(o){if(n._driver.validateStyleProperty(o)){var l,s,a,u=t.collectedStyles[t.currentQuerySelector],c=u[o],d=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push('The CSS property "'+o+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+r+'ms" and "'+i+'ms"'),d=!1),r=c.startTime),d&&(u[o]={startTime:r,endTime:i}),t.options&&(l=t.errors,s=t.options.params||{},(a=Gs(e[o])).length&&a.forEach(function(e){s.hasOwnProperty(e)||l.push("Unable to resolve the local animation param "+e+" in the given list of values")}))}else t.errors.push('The provided animation property "'+o+'" is not a supported CSS property for animations')})})},e.prototype.visitKeyframes=function(e,t){var n=this,o={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),o;var i=0,r=[],l=!1,s=!1,a=0,u=e.steps.map(function(e){var o=n._makeStyleAst(e,t),u=null!=o.offset?o.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(aa(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(aa(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(o.styles),c=0;return null!=u&&(i++,c=o.offset=u),s=s||c<0||c>1,l=l||c0&&i0?i==p?1:d*i:r[i],s=l*y;t.currentTime=f+h.delay+s,h.duration=s,n._validateStyleAst(e,t),e.offset=l,o.styles.push(e)}),o},e.prototype.visitReference=function(e,t){return{type:8,animation:Xs(this,zs(e.animation),t),options:ua(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:ua(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ua(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,o=e.options||{};t.queryCount++,t.currentQuery=e;var i=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(ia,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),r=i[0],l=i[1];t.currentQuerySelector=n.length?n+" "+r:r,ws(t.collectedStyles,t.currentQuerySelector,{});var s=Xs(this,zs(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:l,animation:s,originalSelector:e.selector,options:ua(e.options)}},e.prototype.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Ks(e.timings,t.errors,!0);return{type:12,animation:Xs(this,zs(e.animation),t),timings:n,options:null}},e}(),sa=function(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function aa(e){return!Array.isArray(e)&&"object"==typeof e}function ua(e){var t;return e?(e=Bs(e)).params&&(e.params=(t=e.params)?Bs(t):null):e={},e}function ca(e,t,n){return{duration:e,delay:t,easing:n}}function da(e,t,n,o,i,r,l,s){return void 0===l&&(l=null),void 0===s&&(s=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:o,duration:i,delay:r,totalTime:i+r,easing:l,subTimeline:s}}var pa=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,t)},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),fa=new RegExp(":enter","g"),ha=new RegExp(":leave","g");function ya(e,t,n,o,i,r,l,s,a,u){return void 0===r&&(r={}),void 0===l&&(l={}),void 0===u&&(u=[]),(new ma).buildKeyframes(e,t,n,o,i,r,l,s,a,u)}var ma=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,o,i,r,l,s,a,u){void 0===u&&(u=[]),a=a||new pa;var c=new va(e,t,a,o,i,u,[]);c.options=s,c.currentTimeline.setStyles([r],null,c.errors,s),Xs(this,n,c);var d=c.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(l).length){var p=d[d.length-1];p.allowOnlyTimelineStyles()||p.setStyles([l],null,c.errors,s)}return d.length?d.map(function(e){return e.buildKeyframes()}):[da(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var o=t.createSubContext(e.options),i=t.currentTimeline.currentTime,r=this._visitSubInstructions(n,o,o.options);i!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var o=t.currentTimeline.currentTime,i=null!=n.duration?Vs(n.duration):null,r=null!=n.delay?Vs(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,r);o=Math.max(o,n.duration+n.delay)}),o},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),Xs(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,o=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&((i=t.createSubContext(r)).transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ga);var l=Vs(r.delay);i.delayNextStep(l)}e.steps.length&&(e.steps.forEach(function(e){return Xs(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>o&&i.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,o=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?Vs(e.options.delay):0;e.steps.forEach(function(l){var s=t.createSubContext(e.options);r&&s.delayNextStep(r),Xs(n,l,s),i=Math.max(i,s.currentTimeline.currentTime),o.push(s.currentTimeline)}),o.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(i),t.previousNode=e},e.prototype._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return Ks(t.params?Ys(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),o=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),o.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),o.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,o=t.currentAnimateTimings;!o&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=o&&o.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,o=t.currentTimeline.duration,i=n.duration,r=t.createSubContext().currentTimeline;r.easing=n.easing,e.styles.forEach(function(e){r.forwardTime((e.offset||0)*i),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(o+i),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,o=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?Vs(i.delay):0;r&&(6===t.previousNode.type||0==o&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ga);var l=o,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=s.length;var a=null;s.forEach(function(o,i){t.currentQueryIndex=i;var s=t.createSubContext(e.options,o);r&&s.delayNextStep(r),o===t.element&&(a=s.currentTimeline),Xs(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(l),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,o=t.currentTimeline,i=e.timings,r=Math.abs(i.duration),l=r*(t.currentQueryTotal-1),s=r*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=l-s;break;case"full":s=n.currentStaggerTime}var a=t.currentTimeline;s&&a.delayNextStep(s);var u=a.currentTime;Xs(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=o.currentTime-u+(o.startTime-n.currentTimeline.startTime)},e}(),ga={},va=function(){function e(e,t,n,o,i,r,l,s){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=i,this.errors=r,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ga,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new ba(this._driver,t,0),l.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var o=e,i=this.options;null!=o.duration&&(i.duration=Vs(o.duration)),null!=o.delay&&(i.delay=Vs(o.delay));var r=o.params;if(r){var l=i.params;l||(l=this.options.params={}),Object.keys(r).forEach(function(e){t&&l.hasOwnProperty(e)||(l[e]=Ys(r[e],l,n.errors))})}}},e.prototype._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e},e.prototype.createSubContext=function(t,n,o){void 0===t&&(t=null);var i=n||this.element,r=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,o||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=ga,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var o={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new ka(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,o,e.stretchStartingKeyframe);return this.timelines.push(i),o},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,o,i,r){var l=[];if(o&&l.push(this.element),e.length>0){e=(e=e.replace(fa,"."+this._enterClassName)).replace(ha,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),l.push.apply(l,s)}return i||0!=l.length||r.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),l},e}(),ba=function(){function e(e,t,n,o){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},e.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||cs,t._currentKeyframe[e]=cs}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,o){var i=this;t&&(this._previousKeyframe.easing=t);var r=o&&o.params||{},l=function(e,t){var n,o={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){o[e]=cs}):Hs(e,!1,o)}),o}(e,this._globalTimelineStyles);Object.keys(l).forEach(function(e){var t=Ys(l[e],r,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:cs),i._updateStyle(e,t)})},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var o=t._styleSummary[n],i=e._styleSummary[n];(!o||i.time>o.time)&&t._updateStyle(n,i.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,o=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(r,l){var s=Hs(r,!0);Object.keys(s).forEach(function(e){var o=s[e];o==ms?t.add(e):o==cs&&n.add(e)}),o||(s.offset=l/e.duration),i.push(s)});var r=t.size?Qs(t.values()):[],l=n.size?Qs(n.values()):[];if(o){var s=i[0],a=Bs(s);s.offset=0,a.offset=1,i=[s,a]}return da(this.element,i,r,l,this.duration,this.startTime,this.easing,!1)},e}(),ka=function(e){function t(t,n,o,i,r,l,s){void 0===s&&(s=!1);var a=e.call(this,t,n,l.delay)||this;return a.element=n,a.keyframes=o,a.preStyleProps=i,a.postStyleProps=r,a._stretchStartingKeyframe=s,a.timings={duration:l.duration,delay:l.delay,easing:l.easing},a}return Object(wo.__extends)(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,o=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var r=[],l=o+n,s=n/l,a=Hs(e[0],!1);a.offset=0,r.push(a);var u=Hs(e[0],!1);u.offset=_a(s),r.push(u);for(var c=e.length-1,d=1;d<=c;d++){var p=Hs(e[d],!1);p.offset=_a((n+p.offset*o)/l),r.push(p)}o=l,n=0,i="",e=r}return da(this.element,e,this.preStyleProps,this.postStyleProps,o,n,i,!0)},t}(ba);function _a(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var wa=function(){},Aa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(wo.__extends)(t,e),t.prototype.normalizePropertyName=function(e,t){return Zs(e)},t.prototype.normalizeStyleValue=function(e,t,n,o){var i="",r=n.toString().trim();if(Ta[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var l=n.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&o.push("Please provide a CSS unit value for "+e+":"+n)}return r+i},t}(wa),Ta=function(e){var t={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(e){return t[e]=!0}),t}();function Ca(e,t,n,o,i,r,l,s,a,u,c,d){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:r,toState:o,toStyles:l,timelines:s,queriedElements:a,preStyleProps:u,postStyleProps:c,errors:d}}var xa={},Oa=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t){return function(e,t,n){return e.some(function(e){return e(t,n)})}(this.ast.matchers,e,t)},e.prototype.buildStyles=function(e,t,n){var o=this._stateStyles["*"],i=this._stateStyles[e],r=o?o.buildStyles(t,n):{};return i?i.buildStyles(t,n):r},e.prototype.build=function(e,t,n,o,i,r,l,s,a){var u=[],c=this.ast.options&&this.ast.options.params||xa,d=this.buildStyles(n,l&&l.params||xa,u),p=s&&s.params||xa,f=this.buildStyles(o,p,u),h=new Set,y=new Map,m=new Map,g="void"===o,v={params:Object(wo.__assign)({},c,p)},b=ya(e,t,this.ast.animation,i,r,d,f,v,a,u);if(u.length)return Ca(t,this._triggerName,n,o,g,d,f,[],[],y,m,u);b.forEach(function(e){var n=e.element,o=ws(y,n,{});e.preStyleProps.forEach(function(e){return o[e]=!0});var i=ws(m,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&h.add(n)});var k=Qs(h.values());return Ca(t,this._triggerName,n,o,g,d,f,b,k,y,m)},e}(),Sa=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},o=Bs(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(o[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach(function(e){var r=i[e];r.length>1&&(r=Ys(r,o,t)),n[e]=r})}}),n},e}(),Ma=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){n.states[e.name]=new Sa(e.style,e.options&&e.options.params||{})}),Ea(this.states,"true","1"),Ea(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new Oa(e,t,n.states))}),this.fallbackTransition=new Oa(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t){return this.transitionFactories.find(function(n){return n.match(e,t)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function Ea(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Pa=new pa,Ia=function(){function e(e,t){this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],o=ra(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=o},e.prototype._buildPlayer=function(e,t,n){var o=e.element,i=vs(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(o,i,e.duration,e.delay,e.easing,[])},e.prototype.create=function(e,t,n){var o=this;void 0===n&&(n={});var i,r=[],l=this._animations[e],s=new Map;if(l?(i=ya(this._driver,t,l,"ng-enter","ng-leave",{},{},n,Pa,r)).forEach(function(e){var t=ws(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(r.push("The requested animation doesn't exist or has already been destroyed"),i=[]),r.length)throw new Error("Unable to create the animation due to the following errors: "+r.join("\n"));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=o._driver.computeStyle(t,n,cs)})});var a=gs(i.map(function(e){var t=s.get(e.element);return o._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(function(){return o.destroy(e)}),this.players.push(a),a},e.prototype.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,o){var i=_s(t,"","","");return bs(this._getPlayer(e),n,i,o),function(){}},e.prototype.command=function(e,t,n,o){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,o[0]||{});else this.register(e,o[0])},e}(),Ra=[],Da={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},Na={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},ja="__ng_removed",La=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){var o=Bs(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},e}(),Ua=new La("void"),Va=new La("DELETED"),Fa=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ga(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,o){var i,r=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var l=ws(this._elementListeners,e,[]),s={name:t,phase:n,callback:o};l.push(s);var a=ws(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Ga(e,"ng-trigger"),Ga(e,"ng-trigger-"+t),a[t]=Ua),function(){r._engine.afterFlush(function(){var e=l.indexOf(s);e>=0&&l.splice(e,1),r._triggers[t]||delete a[t]})}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,o){var i=this;void 0===o&&(o=!0);var r=this._getTrigger(t),l=new Ba(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Ga(e,"ng-trigger"),Ga(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var a=s[t],u=new La(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&u.absorbOptions(a.options),s[t]=u,a){if(a===Va)return l}else a=Ua;if("void"===u.value||a.value!==u.value){var c=ws(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=r.matchTransition(a.value,u.value),p=!1;if(!d){if(!o)return;d=r.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:a,toState:u,player:l,isFallbackTransition:p}),p||(Ga(e,"ng-animate-queued"),l.onStart(function(){Ya(e,"ng-animate-queued")})),l.onDone(function(){var t=i.players.indexOf(l);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var o=n.indexOf(l);o>=0&&n.splice(o,1)}}),this.players.push(l),c.push(l),l}if(!function(e,t){var n=Object.keys(e),o=Object.keys(t);if(n.length!=o.length)return!1;for(var i=0;i=0){for(var o=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),o=!0;break}o||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var o=this._namespaceLookup[e];o&&o.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var o=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(o.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(o);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return o.destroy(t)})}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var o=Object.keys(n),i=0;i=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(function(e){var t=e.player;w.push(t);var r=e.element;if(d&&n.driver.containsElement(d,r)){var c=k.get(r),p=h.get(r),f=n._buildInstruction(e,o,p,c);if(f.errors&&f.errors.length)A.push(f);else{if(e.isFallbackTransition)return t.onStart(function(){return qs(r,f.fromStyles)}),t.onDestroy(function(){return Ws(r,f.toStyles)}),void i.push(t);f.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),o.append(r,f.timelines),l.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(function(e){return ws(s,e,[]).push(t)}),f.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var o=a.get(t);o||a.set(t,o=new Set),n.forEach(function(e){return o.add(e)})}}),f.postStyleProps.forEach(function(e,t){var n=Object.keys(e),o=u.get(t);o||u.set(t,o=new Set),n.forEach(function(e){return o.add(e)})})}}else t.destroy()});if(A.length){var C=[];A.forEach(function(e){C.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return C.push("- "+e+"\n")})}),w.forEach(function(e){return e.destroy()}),this.reportError(C)}var x=new Map,O=new Map;l.forEach(function(e){var t=e.element;o.has(t)&&(O.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,x))}),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){ws(x,t,[]).push(e),e.destroy()})});var S=m.filter(function(e){return Ja(e,a,u)}),M=new Map;qa(M,this.driver,v,u,cs).forEach(function(e){Ja(e,a,u)&&S.push(e)});var E=new Map;f.forEach(function(e,t){qa(E,n.driver,new Set(e),a,ms)}),S.forEach(function(e){var t=M.get(e),n=E.get(e);M.set(e,Object(wo.__assign)({},t,n))});var P=[],I=[],R={};l.forEach(function(e){var t=e.element,l=e.player,s=e.instruction;if(o.has(t)){if(c.has(t))return l.onDestroy(function(){return Ws(t,s.toStyles)}),void i.push(l);var a=R;if(O.size>1){for(var u=t,d=[];u=u.parentNode;){var p=O.get(u);if(p){a=p;break}d.push(u)}d.forEach(function(e){return O.set(e,a)})}var f=n._buildAnimation(l.namespaceId,s,x,r,E,M);if(l.setRealPlayer(f),a===R)P.push(l);else{var h=n.playersByElement.get(a);h&&h.length&&(l.parentPlayer=gs(h)),i.push(l)}}else qs(t,s.fromStyles),l.onDestroy(function(){return Ws(t,s.toStyles)}),I.push(l),c.has(t)&&i.push(l)}),I.forEach(function(e){var t=r.get(e.element);if(t&&t.length){var n=gs(t);e.setRealPlayer(n)}}),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var D=0;D0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new hs},e}(),Ba=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new hs,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.queued=!0}return e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return bs(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.queued=!1)},e.prototype.getRealPlayer=function(){return this._player},e.prototype.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})},e.prototype._queueEvent=function(e,t){ws(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),e.prototype.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function Ha(e){return e&&1===e.nodeType}function Wa(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function qa(e,t,n,o,i){var r=[];n.forEach(function(e){return r.push(Wa(e))});var l=[];o.forEach(function(n,o){var r={};n.forEach(function(e){var n=r[e]=t.computeStyle(o,e,i);n&&0!=n.length||(o[ja]=Na,l.push(o))}),e.set(o,r)});var s=0;return n.forEach(function(e){return Wa(e,r[s++])}),l}function za(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var o=new Set(t),i=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var r=i.get(t);if(r)return r;var l=t.parentNode;return r=n.has(l)?l:o.has(l)?1:e(l),i.set(t,r),r}(e);1!==t&&n.get(t).push(e)}),n}var $a="$$classes";function Ga(e,t){if(e.classList)e.classList.add(t);else{var n=e[$a];n||(n=e[$a]={}),n[t]=!0}}function Ya(e,t){if(e.classList)e.classList.remove(t);else{var n=e[$a];n&&delete n[t]}}function Qa(e,t,n){gs(n).onDone(function(){return e.processLeaveNode(t)})}function Ja(e,t,n){var o=n.get(e);if(!o)return!1;var i=t.get(e);return i?o.forEach(function(e){return i.add(e)}):t.set(e,o),n.delete(e),!0}var Za=function(){function e(e,t){var n=this;this._driver=e,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Ka(e,t),this._timelineEngine=new Ia(e,t),this._transitionEngine.onRemovalComplete=function(e,t){return n.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,o,i){var r=e+"-"+o,l=this._triggerCache[r];if(!l){var s=[],a=ra(this._driver,i,s);if(s.length)throw new Error('The animation trigger "'+o+'" has failed to build due to the following errors:\n - '+s.join("\n - "));l=function(e,t){return new Ma(e,t)}(o,a),this._triggerCache[r]=l}this._transitionEngine.registerTrigger(t,o,l)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,o){this._transitionEngine.insertNode(e,t,n,o)},e.prototype.onRemove=function(e,t,n){this._transitionEngine.removeNode(e,t,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,o){if("@"==n.charAt(0)){var i=As(n);this._timelineEngine.command(i[0],t,i[1],o)}else this._transitionEngine.trigger(e,t,n,o)},e.prototype.listen=function(e,t,n,o,i){if("@"==n.charAt(0)){var r=As(n);return this._timelineEngine.listen(r[0],t,r[1],i)}return this._transitionEngine.listen(e,t,n,o,i)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}(),Xa=function(){function e(e,t,n,o){void 0===o&&(o=[]);var i=this;this.element=e,this.keyframes=t,this.options=n,this.previousPlayers=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,(0===this._duration||0===this._delay)&&o.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return i.previousStyles[e]=t[e]})})}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes.map(function(e){return Hs(e,!1)}),n=Object.keys(this.previousStyles);if(n.length&&t.length){var o=t[0],i=[];if(n.forEach(function(t){o.hasOwnProperty(t)||i.push(t),o[t]=e.previousStyles[t]}),i.length)for(var r=this,l=function(){var e=t[s];i.forEach(function(t){e[t]=eu(r.element,t)})},s=1;s=0&&e0;return n&&e.router.navigate(["/macro",t[0].id]),!n})},e}(),bu=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.d).do(function(t){t&&e.router.navigate(["/"])}).map(function(e){return!e})},e}(),ku=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.d).do(function(t){t||e.router.navigate(["/detection"])})},e}(),_u=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.s).do(function(t){t&&e.router.navigate(["/detection"])}).map(function(e){return!e})},e}(),wu=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.s).do(function(t){t||e.router.navigate(["/privilege"])})},e}(),Au=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.c).do(function(t){t||e.router.navigate(["/loading"])})},e}(),Tu=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.c).do(function(t){t&&e.router.navigate(["/"])}).map(function(e){return!e})},e}(),Cu=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.b).do(function(t){t||e.router.navigate(["/"])})},e}(),xu=n("YXEY"),Ou=n("+GbP"),Su=n("mp4z"),Mu=function(){},Eu=function(){},Pu=n("HZ5C"),Iu=n("7OPe"),Ru=n("/KiA"),Du=n("r/Om"),Nu=n("tXwt"),ju=n("j4Le"),Lu=n("8AXl"),Uu=function(){function e(){}return e.prototype.send=function(e){for(var t=[],n=1;nn.length){o=0;var i=n.indexOf(t.substr(0,1)),r=n.indexOf(t.substr(1,1));++r>n.length&&(r=0,i++),t=n[i]+n[r]+n[o]}return t}(e.keymaps,o.abbreviation),o.name=d(e.keymaps,o.name),o.isDefault=0===e.keymaps.length,n.keymaps=f(e.keymaps,o);break;case s.a.EDIT_NAME:if(!Object(u.d)(t.payload.name))break;var i=t.payload.name.trim(),r=null;if(e.keymaps.some(function(e){return e.abbreviation===t.payload.abbr&&(r=e),e.name===i&&e.abbreviation!==t.payload.abbr}))break;var m=Object.assign(new l.Keymap,r,{name:i});n.keymaps=f(e.keymaps,m,function(e){return e.abbreviation!==m.abbreviation});break;case s.a.EDIT_ABBR:var g=t.payload.newAbbr.toUpperCase(),v=e.keymaps.some(function(e){return e.name!==t.payload.name&&e.abbreviation===g});n.keymaps=e.keymaps.map(function(e){return e=Object.assign(new l.Keymap,e),v||e.abbreviation!==t.payload.abbr?e=e.renameKeymap(t.payload.abbr,t.payload.newAbbr):e.abbreviation=g,e});break;case s.a.SET_DEFAULT:n.keymaps=e.keymaps.map(function(e){return(e.abbreviation===t.payload||e.isDefault)&&((e=Object.assign(new l.Keymap,e)).isDefault=e.abbreviation===t.payload),e});break;case s.a.REMOVE:var b,k=e.keymaps.filter(function(e){return e.abbreviation!==t.payload||(b=e.isDefault,!1)});b&&k.length>0&&(k[0]=Object.assign(new l.Keymap,k[0],{isDefault:!0})),n.keymaps=k.map(function(e){return(e=Object.assign(new l.Keymap,e)).layers=h(e.layers,"keymapAbbreviation",t.payload),e});break;case s.a.SAVE_KEY:var _=t.payload.key,w=t.payload.layer,A=t.payload.module,T=t.payload.keyAction,C=T.action,x=t.payload.keymap,O=C instanceof l.SwitchLayerAction;n.keymaps=e.keymaps.map(function(e){return(T.remapOnAllKeymap||e.abbreviation===x.abbreviation)&&((e=new l.Keymap(e)).layers=e.layers.map(function(e,t){if(T.remapOnAllLayer||t===w||O){e=new l.Layer(e);var n=l.KeyActionHelper.createKeyAction(C);if(O)if(0===t||t-1===C.layer)y(e,A,_,n);else{var o=e.modules[A].keyActions[_];o&&o instanceof l.SwitchLayerAction&&y(e,A,_,null)}else y(e,A,_,n)}return e})),e});break;case s.a.CHECK_MACRO:n.keymaps=e.keymaps.map(function(e){return(e=Object.assign(new l.Keymap,e)).layers=h(e.layers,"_macroId",t.payload),e});break;case s.b.ADD:(S=new l.Macro).id=p(e.macros),S.name=d(e.macros,"New macro"),S.isLooped=!1,S.isPrivate=!0,S.macroActions=[],n.macros=f(e.macros,S);break;case s.b.DUPLICATE:var S;(S=new l.Macro(t.payload)).name=d(e.macros,S.name),S.id=p(e.macros),n.macros=f(e.macros,S);break;case s.b.EDIT_NAME:if(!Object(u.d)(t.payload.name))break;var M=t.payload.name.trim(),E=null;if(e.macros.some(function(e){return e.id===t.payload.id&&(E=e),e.id!==t.payload.id&&e.name===M}))break;var P=Object.assign(new l.Macro,E,{name:M});n.macros=f(e.macros,P,function(e){return e.id!==P.id});break;case s.b.REMOVE:var I=t.payload;n.macros=e.macros.filter(function(e){return e.id!==I});for(var R=0;Rt.payload.oldIndex&&--n,(e=new l.Macro(e)).macroActions.splice(n,0,e.macroActions.splice(t.payload.oldIndex,1)[0])}return e});break;case a.a.RENAME_USER_CONFIGURATION:Object(u.d)(t.payload)&&(n.deviceName=t.payload.trim());break;case a.a.SET_USER_CONFIGURATION_VALUE:n[t.payload.propertyName]=t.payload.value;break;case s.a.EDIT_DESCRIPTION:var H=t.payload;n.keymaps=e.keymaps.map(function(e){return e.abbreviation===H.abbr&&(e.description=H.description),e})}return n},t.e=function(){return function(e){return e.map(function(e){return e.userConfiguration})}},t.b=function(){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}},t.a=function(e){return void 0===e?function(e){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}(e).map(function(e){return e.find(function(e){return e.isDefault})})}:function(t){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}(t).map(function(t){return t.find(function(t){return t.abbreviation===e})})}},t.d=function(){return function(e){return e.map(function(e){return e.userConfiguration.macros})}},t.c=function(e){return isNaN(e)?function(){return o.Observable.of(void 0)}:function(t){return function(e){return e.map(function(e){return e.userConfiguration.macros})}(t).map(function(t){return t.find(function(t){return t.id===e})})}};var o=n("rCTf"),i=n("1APj"),r=(n.n(i),n("+pb+")),l=(n.n(r),n("gI3A")),s=(n.n(l),n("WP8/")),a=n("at4H"),u=n("Lt3n"),c=new l.UserConfiguration;function d(e,t){var n=1,o=/ \(\d+\)$/g,i=t.replace(o,"");return e.forEach(function(e){e.name.replace(o,"")===i&&n++}),i+" ("+n+")"}function p(e){var t=0;return e.forEach(function(e){e.id>t&&(t=e.id)}),t+1}function f(e,t,n){void 0===n&&(n=function(){return!0});for(var o=[],i=!1,r=0,l=e;r0&&(o.push(t),i=!0),n(s)&&o.push(s)}return i||o.push(t),o}function h(e,t,n){for(var o=[],i=0;i"},e.prototype.renameKeymap=function(t,n){var o,i=this,r=!1;if(this.modules.forEach(function(e,l){var s=e.renameKeymap(t,n);s!==e&&(r||(o=i.modules.slice(),r=!0),o[l]=s)}),r){var l=Object.assign(new e,this);return l.modules=o,l}return this},e}()},zF5W:function(e,t,n){var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e="11.1.0";function t(e){return null!==e&&void 0!==e}function n(e){e.preventDefault()}function o(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function i(e,t,n){n>0&&(a(e,t),setTimeout(function(){u(e,t)},n))}function r(e){return Math.max(Math.min(e,100),0)}function l(e){return Array.isArray(e)?e:[e]}function s(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function a(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function u(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function c(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function d(e,t){return 100/(t-e)}function p(e,t){return 100*t/(e[1]-e[0])}function f(e,t){for(var n=1;e>=t[n];)n+=1;return n}function h(t,n,i){var r;if("number"==typeof n&&(n=[n]),!Array.isArray(n))throw new Error("noUiSlider ("+e+"): 'range' contains invalid value.");if(!o(r="min"===t?0:"max"===t?100:parseFloat(t))||!o(n[0]))throw new Error("noUiSlider ("+e+"): 'range' value isn't numeric.");i.xPct.push(r),i.xVal.push(n[0]),r?i.xSteps.push(!isNaN(n[1])&&n[1]):isNaN(n[1])||(i.xSteps[0]=n[1]),i.xHighestCompleteStep.push(0)}function y(e,t,n){if(!t)return!0;n.xSteps[e]=p([n.xVal[e],n.xVal[e+1]],t)/d(n.xPct[e],n.xPct[e+1]);var o=Math.ceil(Number(((n.xVal[e+1]-n.xVal[e])/n.xNumSteps[e]).toFixed(3))-1);n.xHighestCompleteStep[e]=n.xVal[e]+n.xNumSteps[e]*o}function m(e,t,n){var o;this.xPct=[],this.xVal=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=t;var i=[];for(o in e)e.hasOwnProperty(o)&&i.push([e[o],o]);for(i.sort(i.length&&"object"==typeof i[0][0]?function(e,t){return e[0][0]-t[0][0]}:function(e,t){return e[0]-t[0]}),o=0;o=e.slice(-1)[0])return 100;var o=f(n,e),i=t[o-1],r=t[o];return i+function(e,t){return p(e,e[0]<0?t+Math.abs(e[0]):t-e[0])}([e[o-1],e[o]],n)/d(i,r)}(this.xVal,this.xPct,e)},m.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var o=f(n,t),i=t[o-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([e[o-1],e[o]],(n-i)*d(i,t[o]))}(this.xVal,this.xPct,e)},m.prototype.getStep=function(e){return function(e,t,n,o){if(100===o)return o;var i=f(o,e),r=e[i-1],l=e[i];return n?o-r>(l-r)/2?l:r:t[i-1]?e[i-1]+function(e,t){return Math.round(e/t)*t}(o-e[i-1],t[i-1]):o}(this.xPct,this.xSteps,this.snap,e)},m.prototype.getNearbySteps=function(e){var t=f(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t-0],step:this.xNumSteps[t-0],highestStep:this.xHighestCompleteStep[t-0]}}},m.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(s);return Math.max.apply(null,e)},m.prototype.convert=function(e){return this.getStep(this.toStepping(e))};var g={to:function(e){return void 0!==e&&e.toFixed(2)},from:Number};function v(t){if(function(e){return"object"==typeof e&&"function"==typeof e.to&&"function"==typeof e.from}(t))return!0;throw new Error("noUiSlider ("+e+"): 'format' requires 'to' and 'from' methods.")}function b(t,n){if(!o(n))throw new Error("noUiSlider ("+e+"): 'step' is not numeric.");t.singleStep=n}function k(t,n){if("object"!=typeof n||Array.isArray(n))throw new Error("noUiSlider ("+e+"): 'range' is not an object.");if(void 0===n.min||void 0===n.max)throw new Error("noUiSlider ("+e+"): Missing 'min' or 'max' in 'range'.");if(n.min===n.max)throw new Error("noUiSlider ("+e+"): 'range' 'min' and 'max' cannot be equal.");t.spectrum=new m(n,t.snap,t.singleStep)}function _(t,n){if(n=l(n),!Array.isArray(n)||!n.length)throw new Error("noUiSlider ("+e+"): 'start' option is incorrect.");t.handles=n.length,t.start=n}function w(t,n){if(t.snap=n,"boolean"!=typeof n)throw new Error("noUiSlider ("+e+"): 'snap' option must be a boolean.")}function A(t,n){if(t.animate=n,"boolean"!=typeof n)throw new Error("noUiSlider ("+e+"): 'animate' option must be a boolean.")}function T(t,n){if(t.animationDuration=n,"number"!=typeof n)throw new Error("noUiSlider ("+e+"): 'animationDuration' option must be a number.")}function C(t,n){var o,i=[!1];if("lower"===n?n=[!0,!1]:"upper"===n&&(n=[!1,!0]),!0===n||!1===n){for(o=1;o=100)throw new Error("noUiSlider ("+e+"): 'padding' option must not exceed 100% of the range.")}}function E(t,n){switch(n){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider ("+e+"): 'direction' option was not recognized.")}}function P(t,n){if("string"!=typeof n)throw new Error("noUiSlider ("+e+"): 'behaviour' must be a string containing options.");var o=n.indexOf("tap")>=0,i=n.indexOf("drag")>=0,r=n.indexOf("fixed")>=0,l=n.indexOf("snap")>=0,s=n.indexOf("hover")>=0;if(r){if(2!==t.handles)throw new Error("noUiSlider ("+e+"): 'fixed' behaviour must be used with 2 handles");O(t,t.start[1]-t.start[0])}t.events={tap:o||l,drag:i,fixed:r,snap:l,hover:s}}function I(t,n){if(!1!==n)if(!0===n){t.tooltips=[];for(var o=0;o= 2) required for mode 'count'.");var i=n-1,r=100/i;for(n=[];i--;)n[i]=i*r;n.push(100),t="positions"}return"positions"===t?n.map(function(e){return C.fromStepping(o?C.getStep(e):e)}):"values"===t?o?n.map(function(e){return C.fromStepping(C.getStep(C.toStepping(e)))}):n:void 0}(n,t.values||!1,t.stepped||!1),s=function(e,t,n){var o,i={},r=C.xVal[0],l=C.xVal[C.xVal.length-1],s=!1,a=!1,u=0;return o=n.slice().sort(function(e,t){return e-t}),(n=o.filter(function(e){return!this[e]&&(this[e]=!0)},{}))[0]!==r&&(n.unshift(r),s=!0),n[n.length-1]!==l&&(n.push(l),a=!0),n.forEach(function(o,r){var l,c,d,p,f,h,y,m,g=o,v=n[r+1];if("steps"===t&&(l=C.xNumSteps[r]),l||(l=v-g),!1!==g&&void 0!==v)for(l=Math.max(l,1e-7),c=g;c<=v;c=(c+l).toFixed(7)/1){for(m=(f=(p=C.toStepping(c))-u)/(y=Math.round(f/e)),d=1;d<=y;d+=1)i[(u+d*m).toFixed(5)]=["x",0];h=n.indexOf(c)>-1?1:"steps"===t?2:0,!r&&s&&(h=0),c===v&&a||(i[p.toFixed(5)]=[c,h]),u=p}}),i}(i,n,l),u=t.format||{to:Math.round};return y=_.appendChild(function(e,t,n){var i=S.createElement("div"),r=[o.cssClasses.valueNormal,o.cssClasses.valueLarge,o.cssClasses.valueSub],l=[o.cssClasses.markerNormal,o.cssClasses.markerLarge,o.cssClasses.markerSub],s=[o.cssClasses.valueHorizontal,o.cssClasses.valueVertical],u=[o.cssClasses.markerHorizontal,o.cssClasses.markerVertical];function c(e,t){var n=t===o.cssClasses.value;return t+" "+(n?s:u)[o.ort]+" "+(n?r:l)[e]}return a(i,o.cssClasses.pips),a(i,0===o.ort?o.cssClasses.pipsHorizontal:o.cssClasses.pipsVertical),Object.keys(e).forEach(function(r){!function(e,r){r[1]=r[1]&&t?t(r[0],r[1]):r[1];var l=I(i,!1);l.className=c(r[1],o.cssClasses.marker),l.style[o.style]=e+"%",r[1]&&((l=I(i,!1)).className=c(r[1],o.cssClasses.value),l.setAttribute("data-value",r[0]),l.style[o.style]=e+"%",l.innerText=n.to(r[0]))}(r,e[r])}),i}(s,r,u))}function U(){var e=d.getBoundingClientRect(),t="offset"+["Width","Height"][o.ort];return 0===o.ort?e.width||d[t]:e.height||d[t]}function V(e,t,n,i){var r=function(r){return!!(r=function(e,t,n){var o,i,r=0===e.type.indexOf("touch"),l=0===e.type.indexOf("mouse"),s=0===e.type.indexOf("pointer");if(0===e.type.indexOf("MSPointer")&&(s=!0),r){var a=function(e){return e.target===n||n.contains(e.target)};if("touchstart"===e.type){var u=Array.prototype.filter.call(e.touches,a);if(u.length>1)return!1;o=u[0].pageX,i=u[0].pageY}else{var d=Array.prototype.find.call(e.changedTouches,a);if(!d)return!1;o=d.pageX,i=d.pageY}}return t=t||c(S),(l||s)&&(o=e.clientX+t.x,i=e.clientY+t.y),e.pageOffset=t,e.points=[o,i],e.cursor=l||s,e}(r,i.pageOffset,i.target||t))&&!(_.hasAttribute("disabled")&&!i.doNotReject)&&(s=o.cssClasses.tap,!(((l=_).classList?l.classList.contains(s):new RegExp("\\b"+s+"\\b").test(l.className))&&!i.doNotReject)&&!(e===b.start&&void 0!==r.buttons&&r.buttons>1)&&(!i.hover||!r.buttons)&&(k||r.preventDefault(),r.calcPoint=r.points[o.ort],void n(r,i)));var l,s},l=[];return e.split(" ").forEach(function(e){t.addEventListener(e,r,!!k&&{passive:!0}),l.push([e,r])}),l}function F(e){var t,n,i,l,s,a,u=100*(e-(n=o.ort,i=(t=d).getBoundingClientRect(),s=(l=t.ownerDocument).documentElement,a=c(l),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(a.x=0),n?i.top+a.y-s.clientTop:i.left+a.x-s.clientLeft))/U();return u=r(u),o.dir?100-u:u}function K(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&H(e,t)}function B(e,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==t.buttonsProperty)return H(e,t);var n=(o.dir?-1:1)*(e.calcPoint-t.startCalcPoint);Q(n>0,100*n/t.baseSize,t.locations,t.handleNumbers)}function H(e,t){t.handle&&(u(t.handle,o.cssClasses.active),T-=1),t.listeners.forEach(function(e){M.removeEventListener(e[0],e[1])}),0===T&&(u(_,o.cssClasses.drag),Z(),e.cursor&&(E.style.cursor="",E.removeEventListener("selectstart",n))),t.handleNumbers.forEach(function(e){z("change",e),z("set",e),z("end",e)})}function W(e,t){var i;if(1===t.handleNumbers.length){var r=p[t.handleNumbers[0]];if(r.hasAttribute("disabled"))return!1;T+=1,a(i=r.children[0],o.cssClasses.active)}e.stopPropagation();var l=[],s=V(b.move,M,B,{target:e.target,handle:i,listeners:l,startCalcPoint:e.calcPoint,baseSize:U(),pageOffset:e.pageOffset,handleNumbers:t.handleNumbers,buttonsProperty:e.buttons,locations:w.slice()}),u=V(b.end,M,H,{target:e.target,handle:i,listeners:l,doNotReject:!0,handleNumbers:t.handleNumbers}),c=V("mouseout",M,K,{target:e.target,handle:i,listeners:l,doNotReject:!0,handleNumbers:t.handleNumbers});l.push.apply(l,s.concat(u,c)),e.cursor&&(E.style.cursor=getComputedStyle(e.target).cursor,p.length>1&&a(_,o.cssClasses.drag),E.addEventListener("selectstart",n,!1)),t.handleNumbers.forEach(function(e){z("start",e)})}function q(e,t){O[e]=O[e]||[],O[e].push(t),"update"===e.split(".")[0]&&p.forEach(function(e,t){z("update",t)})}function z(e,t,n){Object.keys(O).forEach(function(i){var r=i.split(".")[0];e===r&&O[i].forEach(function(e){e.call(h,x.map(o.format.to),t,x.slice(),n||!1,w.slice())})})}function $(e){return e+"%"}function G(e,t,n,i,l,s){return p.length>1&&(i&&t>0&&(n=Math.max(n,e[t-1]+o.margin)),l&&t1&&o.limit&&(i&&t>0&&(n=Math.min(n,e[t-1]+o.limit)),l&&t1?o.forEach(function(e,n){var o=G(i,e,i[e]+t,r[n],l[n],!1);!1===o?t=0:(t=o-i[e],i[e]=o)}):r=l=[!0];var s=!1;o.forEach(function(e,o){s=X(e,n[e]+t,r[o],l[o])||s}),s&&o.forEach(function(e){z("update",e),z("slide",e)})}function J(e,t){return o.dir?100-e-t:e}function Z(){A.forEach(function(e){p[e].style.zIndex=3+(p.length+(w[e]>50?-1:1)*e)})}function X(e,t,n,i){return!1!==(t=G(w,e,t,n,i,!1))&&(function(e,t){w[e]=t,x[e]=C.fromStepping(t);var n="translate("+Y($(J(t,0)-P),"0")+")";p[e].style[o.transformRule]=n,ee(e),ee(e+1)}(e,t),!0)}function ee(e){if(f[e]){var t=0,n=100;0!==e&&(t=w[e-1]),e!==f.length-1&&(n=w[e]);var i=n-t,r="translate("+Y($(J(t,i)),"0")+")",l="scale("+Y(i/100,"1")+")";f[e].style[o.transformRule]=r+" "+l}}function te(e,t){var n=l(e);t=void 0===t||!!t,o.animate&&!(void 0===w[0])&&i(_,o.cssClasses.tap,o.animationDuration),A.forEach(function(e){X(e,function(e,t){return null===e||!1===e||void 0===e?w[t]:("number"==typeof e&&(e=String(e)),e=o.format.from(e),!1===(e=C.toStepping(e))||isNaN(e)?w[t]:e)}(n[e],e),!0,!1)}),A.forEach(function(e){X(e,w[e],!0,!0)}),Z(),A.forEach(function(e){z("update",e),null!==n[e]&&t&&z("set",e)})}function ne(){var e=x.map(o.format.to);return 1===e.length?e[0]:e}return a(m=_,o.cssClasses.target),a(m,0===o.dir?o.cssClasses.ltr:o.cssClasses.rtl),a(m,0===o.ort?o.cssClasses.horizontal:o.cssClasses.vertical),d=I(m,o.cssClasses.base),function(e,t){var n=I(t,o.cssClasses.connects);p=[],(f=[]).push(D(n,e[0]));for(var i=0;in.stepAfter.startValue&&(i=n.stepAfter.startValue-o),r=o>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&o-n.stepBefore.highestStep,100===e?i=null:0===e&&(r=null);var l=C.countStepDecimals();return null!==i&&!1!==i&&(i=Number(i.toFixed(l))),null!==r&&!1!==r&&(r=Number(r.toFixed(l))),[r,i]})},on:q,off:function(e){var t=e&&e.split(".")[0],n=t&&e.substring(t.length);Object.keys(O).forEach(function(e){var o=e.split(".")[0],i=e.substring(o.length);t&&t!==o||n&&n!==i||delete O[e]})},get:ne,set:te,reset:function(e){te(o.start,e)},__moveHandles:function(e,t,n){Q(e,t,w,n)},options:s,updateOptions:function(e,t){var n=ne(),i=["margin","limit","padding","range","animate","snap","step","format"];i.forEach(function(t){void 0!==e[t]&&(s[t]=e[t])});var r=L(s);i.forEach(function(t){void 0!==e[t]&&(o[t]=r[t])}),C=r.spectrum,o.margin=r.margin,o.limit=r.limit,o.padding=r.padding,o.pips&&j(o.pips),w=[],te(e.start||n,t)},target:_,removePips:N,pips:j},o.pips&&j(o.pips),o.tooltips&&(v=p.map(function(e,t){return!!o.tooltips[t]&&I(e.firstChild,o.cssClasses.tooltip)}),q("update",function(e,t,n){if(v[t]){var i=e[t];!0!==o.tooltips[t]&&(i=o.tooltips[t].to(n[t])),v[t].innerHTML=i}})),q("update",function(e,t,n,i,r){A.forEach(function(e){var t=p[e],i=G(w,e,0,!0,!0,!0),l=G(w,e,100,!0,!0,!0),s=r[e],a=o.ariaFormat.to(n[e]);t.children[0].setAttribute("aria-valuemin",i.toFixed(1)),t.children[0].setAttribute("aria-valuemax",l.toFixed(1)),t.children[0].setAttribute("aria-valuenow",s.toFixed(1)),t.children[0].setAttribute("aria-valuetext",a)})}),h}(t,L(o),o);return t.noUiSlider=s,s}}})?o.apply(t,[]):o)||(e.exports=i)},zQPq:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("B00U");t.Action=function(e){function t(t,n){e.call(this)}return o(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(i.Subscription)}},[0]); \ No newline at end of file diff --git a/polyfills.435a160b7e5ac9e47072.bundle.js b/polyfills.0e6c1c54467440c50b13.bundle.js similarity index 59% rename from polyfills.435a160b7e5ac9e47072.bundle.js rename to polyfills.0e6c1c54467440c50b13.bundle.js index c2421e0d..c0c81527 100644 --- a/polyfills.435a160b7e5ac9e47072.bundle.js +++ b/polyfills.0e6c1c54467440c50b13.bundle.js @@ -1 +1 @@ -webpackJsonp([1],{"+CM9":function(t,e,n){"use strict";var r=n("Ds5P"),o=n("ot5s")(!1),i=[].indexOf,a=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n("NNrz")(i)),"Array",{indexOf:function(t){return a?i.apply(this,arguments)||0:o(this,t,arguments[1])}})},"+yjc":function(t,e,n){var r=n("UKM+");n("3i66")("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},"/Ife":function(t,e,n){n("gYYG"),n("1A13"),n("fx22"),n("dSUw"),t.exports=n("7gX0").Set},"/whu":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"0Rih":function(t,e,n){"use strict";var r=n("OzIq"),o=n("Ds5P"),i=n("R3AP"),a=n("A16L"),s=n("1aA0"),u=n("vmSO"),c=n("9GpA"),l=n("UKM+"),f=n("zgIt"),p=n("qkyc"),h=n("yYvK"),d=n("kic5");t.exports=function(t,e,n,v,g,y){var m=r[t],b=m,x=g?"set":"add",w=b&&b.prototype,k={},T=function(t){var e=w[t];i(w,t,"delete"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(y||w.forEach&&!f(function(){(new b).entries().next()}))){var S=new b,D=S[x](y?{}:-0,1)!=S,_=f(function(){S.has(1)}),E=p(function(t){new b(t)}),P=!y&&f(function(){for(var t=new b,e=5;e--;)t[x](e,e);return!t.has(-0)});E||((b=e(function(e,n){c(e,b,t);var r=d(new m,e,b);return void 0!=n&&u(n,g,r[x],r),r})).prototype=w,w.constructor=b),(_||P)&&(T("delete"),T("has"),g&&T("get")),(P||D)&&T(x),y&&w.clear&&delete w.clear}else b=v.getConstructor(e,t,g,x),a(b.prototype,n),s.NEED=!0;return h(b,t),k[t]=b,o(o.G+o.W+o.F*(b!=m),k),y||v.setStrong(b,t,g),b}},"0pGU":function(t,e,n){"use strict";var r=n("DIVP");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},1:function(t,e,n){t.exports=n("XS25")},"1A13":function(t,e,n){"use strict";var r=n("49qz")(!0);n("uc2A")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},"1ETD":function(t,e,n){var r=n("kkCw")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},"1aA0":function(t,e,n){var r=n("ulTY")("meta"),o=n("UKM+"),i=n("WBcL"),a=n("lDLk").f,s=0,u=Object.isExtensible||function(){return!0},c=!n("zgIt")(function(){return u(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},onFreeze:function(t){return c&&f.NEED&&u(t)&&!i(t,r)&&l(t),t}}},"1ip3":function(t,e,n){var r=n("Ds5P");r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},"2p1q":function(t,e,n){var r=n("lDLk"),o=n("fU25");t.exports=n("bUqO")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"2tFN":function(t,e,n){n("CVR+"),n("vmSu"),n("4ZU1"),n("yx1U"),n("X7aK"),n("SPtU"),n("A52B"),n("PuTd"),n("dm+7"),n("JG34"),n("Rw4K"),n("9mGU"),n("bUY0"),n("mTp7"),t.exports=n("7gX0").Reflect},"3QrE":function(t,e,n){var r=n("Ds5P");r(r.P,"Function",{bind:n("ZtwE")})},"3g/S":function(t,e,n){var r=n("OzIq"),o=n("7gX0"),i=n("V3l/"),a=n("M8WE"),s=n("lDLk").f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},"3i66":function(t,e,n){var r=n("Ds5P"),o=n("7gX0"),i=n("zgIt");t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},"3q4u":function(t,e,n){var r=n("wCso"),o=n("DIVP"),i=r.key,a=r.map,s=r.store;r.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:i(arguments[2]),r=a(o(e),n,!1);if(void 0===r||!r.delete(t))return!1;if(r.size)return!0;var u=s.get(e);return u.delete(n),!!u.size||s.delete(e)}})},"45Dp":function(t,e,n){n("A0n/"),n("i68Q"),n("QzLV"),n("Hhm4"),n("C+4B"),n("W4Z6"),n("tJwI"),n("eC2H"),n("VTn2"),n("W/IU"),n("Y5ex"),n("WpPb"),n("+yjc"),n("gPva"),n("n12u"),n("nRs1"),n("jrHM"),n("gYYG"),t.exports=n("7gX0").Object},"49qz":function(t,e,n){var r=n("oeih"),o=n("/whu");t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):i:t?s.slice(u,u+2):a-56320+(i-55296<<10)+65536}}},"4IZP":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},"4Q0w":function(t,e,n){var r=n("kkCw")("toPrimitive"),o=Date.prototype;r in o||n("2p1q")(o,r,n("jB26"))},"4RlI":function(t,e,n){"use strict";n("y325")("blink",function(t){return function(){return t(this,"blink","","")}})},"4ZU1":function(t,e,n){var r=n("lDLk"),o=n("Ds5P"),i=n("DIVP"),a=n("s4j0");o(o.S+o.F*n("zgIt")(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){i(t),e=a(e,!0),i(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},"594w":function(t,e,n){n("lnZN"),n("FaZr"),n("pd+2"),n("MfeA"),n("VjuZ"),n("qwQ3"),n("mJx5"),t.exports=n("7gX0").RegExp},"5iw+":function(t,e,n){"use strict";n("y325")("strike",function(t){return function(){return t(this,"strike","","")}})},"7Jvp":function(t,e,n){var r=n("Ds5P"),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},"7N90":function(t,e,n){n("gYYG"),n("1A13"),n("fx22"),n("MsuQ"),t.exports=n("7gX0").Map},"7gX0":function(t,e){var n=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=n)},"7t+N":function(t,e,n){var r;!function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,o){"use strict";var i=[],a=n.document,s=Object.getPrototypeOf,u=i.slice,c=i.concat,l=i.push,f=i.indexOf,p={},h=p.toString,d=p.hasOwnProperty,v=d.toString,g=v.call(Object),y={};function m(t,e){var n=(e=e||a).createElement("script");n.text=t,e.head.appendChild(n).parentNode.removeChild(n)}var b=function(t,e){return new b.fn.init(t,e)},x=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,w=/^-ms-/,k=/-([a-z])/g,T=function(t,e){return e.toUpperCase()};function S(t){var e=!!t&&"length"in t&&t.length,n=b.type(t);return"function"!==n&&!b.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}b.fn=b.prototype={jquery:"3.2.1",constructor:b,length:0,toArray:function(){return u.call(this)},get:function(t){return null==t?u.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=b.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return b.each(this,t)},map:function(t){return this.pushStack(b.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n+~]|"+I+")"+I+"*"),U=new RegExp("="+I+"*([^\\]'\"]*?)"+I+"*\\]","g"),X=new RegExp(z),B=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),tt=function(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nt=function(t,e){return e?"\0"===t?"\ufffd":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},rt=function(){p()},ot=mt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{N.apply(O=A.call(w.childNodes),w.childNodes)}catch(t){N={apply:O.length?function(t,e){j.apply(t,A.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function it(t,e,r,o){var i,s,c,l,f,d,y,m=e&&e.ownerDocument,k=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==k&&9!==k&&11!==k)return r;if(!o&&((e?e.ownerDocument||e:w)!==h&&p(e),e=e||h,v)){if(11!==k&&(f=Q.exec(t)))if(i=f[1]){if(9===k){if(!(c=e.getElementById(i)))return r;if(c.id===i)return r.push(c),r}else if(m&&(c=m.getElementById(i))&&b(e,c)&&c.id===i)return r.push(c),r}else{if(f[2])return N.apply(r,e.getElementsByTagName(t)),r;if((i=f[3])&&n.getElementsByClassName&&e.getElementsByClassName)return N.apply(r,e.getElementsByClassName(i)),r}if(n.qsa&&!_[t+" "]&&(!g||!g.test(t))){if(1!==k)m=e,y=t;else if("object"!==e.nodeName.toLowerCase()){for((l=e.getAttribute("id"))?l=l.replace(et,nt):e.setAttribute("id",l=x),s=(d=a(t)).length;s--;)d[s]="#"+l+" "+yt(d[s]);y=d.join(","),m=$.test(t)&&vt(e.parentNode)||e}if(y)try{return N.apply(r,m.querySelectorAll(y)),r}catch(t){}finally{l===x&&e.removeAttribute("id")}}}return u(t.replace(H,"$1"),e,r,o)}function at(){var t=[];return function e(n,o){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=o}}function st(t){return t[x]=!0,t}function ut(t){var e=h.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ct(t,e){for(var n=t.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=e}function lt(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ft(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function ht(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ot(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function dt(t){return st(function(e){return e=+e,st(function(n,r){for(var o,i=t([],n.length,e),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function vt(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}for(e in n=it.support={},i=it.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},p=it.setDocument=function(t){var e,o,a=t?t.ownerDocument||t:w;return a!==h&&9===a.nodeType&&a.documentElement?(d=(h=a).documentElement,v=!i(h),w!==h&&(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",rt,!1):o.attachEvent&&o.attachEvent("onunload",rt)),n.attributes=ut(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=ut(function(t){return t.appendChild(h.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(h.getElementsByClassName),n.getById=ut(function(t){return d.appendChild(t).id=x,!h.getElementsByName||!h.getElementsByName(x).length}),n.getById?(r.filter.ID=function(t){var e=t.replace(J,tt);return function(t){return t.getAttribute("id")===e}},r.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&v){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter.ID=function(t){var e=t.replace(J,tt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&v){var n,r,o,i=e.getElementById(t);if(i){if((n=i.getAttributeNode("id"))&&n.value===t)return[i];for(o=e.getElementsByName(t),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===t)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],o=0,i=e.getElementsByTagName(t);if("*"===t){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&v)return e.getElementsByClassName(t)},y=[],g=[],(n.qsa=K.test(h.querySelectorAll))&&(ut(function(t){d.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+I+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+I+"*(?:value|"+M+")"),t.querySelectorAll("[id~="+x+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]")}),ut(function(t){t.innerHTML="";var e=h.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+I+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),d.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=K.test(m=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(t){n.disconnectedMatch=m.call(t,"*"),m.call(t,"[s!='']:x"),y.push("!=",z)}),g=g.length&&new RegExp(g.join("|")),y=y.length&&new RegExp(y.join("|")),e=K.test(d.compareDocumentPosition),b=e||K.test(d.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},E=e?function(t,e){if(t===e)return f=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t===h||t.ownerDocument===w&&b(w,t)?-1:e===h||e.ownerDocument===w&&b(w,e)?1:l?F(l,t)-F(l,e):0:4&r?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,r=0,o=t.parentNode,i=e.parentNode,a=[t],s=[e];if(!o||!i)return t===h?-1:e===h?1:o?-1:i?1:l?F(l,t)-F(l,e):0;if(o===i)return lt(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?lt(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},h):h},it.matches=function(t,e){return it(t,null,null,e)},it.matchesSelector=function(t,e){if((t.ownerDocument||t)!==h&&p(t),e=e.replace(U,"='$1']"),n.matchesSelector&&v&&!_[e+" "]&&(!y||!y.test(e))&&(!g||!g.test(e)))try{var r=m.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return it(e,h,null,[t]).length>0},it.contains=function(t,e){return(t.ownerDocument||t)!==h&&p(t),b(t,e)},it.attr=function(t,e){(t.ownerDocument||t)!==h&&p(t);var o=r.attrHandle[e.toLowerCase()],i=o&&P.call(r.attrHandle,e.toLowerCase())?o(t,e,!v):void 0;return void 0!==i?i:n.attributes||!v?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},it.escape=function(t){return(t+"").replace(et,nt)},it.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},it.uniqueSort=function(t){var e,r=[],o=0,i=0;if(f=!n.detectDuplicates,l=!n.sortStable&&t.slice(0),t.sort(E),f){for(;e=t[i++];)e===t[i]&&(o=r.push(i));for(;o--;)t.splice(r[o],1)}return l=null,t},o=it.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=o(e);return n},(r=it.selectors={cacheLength:50,createPseudo:st,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(J,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(J,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||it.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&it.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&X.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(J,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|"+I+")"+t+"("+I+"|$)"))&&S(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(r){var o=it.attr(r,t);return null==o?"!="===e:!e||(o+="","="===e?o===n:"!="===e?o!==n:"^="===e?n&&0===o.indexOf(n):"*="===e?n&&o.indexOf(n)>-1:"$="===e?n&&o.slice(-n.length)===n:"~="===e?(" "+o.replace(q," ")+" ").indexOf(n)>-1:"|="===e&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,o){var i="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===o?function(t){return!!t.parentNode}:function(e,n,u){var c,l,f,p,h,d,v=i!==a?"nextSibling":"previousSibling",g=e.parentNode,y=s&&e.nodeName.toLowerCase(),m=!u&&!s,b=!1;if(g){if(i){for(;v;){for(p=e;p=p[v];)if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;d=v="only"===t&&!d&&"nextSibling"}return!0}if(d=[a?g.firstChild:g.lastChild],a&&m){for(b=(h=(c=(l=(f=(p=g)[x]||(p[x]={}))[p.uniqueID]||(f[p.uniqueID]={}))[t]||[])[0]===k&&c[1])&&c[2],p=h&&g.childNodes[h];p=++h&&p&&p[v]||(b=h=0)||d.pop();)if(1===p.nodeType&&++b&&p===e){l[t]=[k,h,b];break}}else if(m&&(b=h=(c=(l=(f=(p=e)[x]||(p[x]={}))[p.uniqueID]||(f[p.uniqueID]={}))[t]||[])[0]===k&&c[1]),!1===b)for(;(p=++h&&p&&p[v]||(b=h=0)||d.pop())&&((s?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++b||(m&&((l=(f=p[x]||(p[x]={}))[p.uniqueID]||(f[p.uniqueID]={}))[t]=[k,b]),p!==e)););return(b-=o)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,e){var n,o=r.pseudos[t]||r.setFilters[t.toLowerCase()]||it.error("unsupported pseudo: "+t);return o[x]?o(e):o.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?st(function(t,n){for(var r,i=o(t,e),a=i.length;a--;)t[r=F(t,i[a])]=!(n[r]=i[a])}):function(t){return o(t,0,n)}):o}},pseudos:{not:st(function(t){var e=[],n=[],r=s(t.replace(H,"$1"));return r[x]?st(function(t,e,n,o){for(var i,a=r(t,null,o,[]),s=t.length;s--;)(i=a[s])&&(t[s]=!(e[s]=i))}):function(t,o,i){return e[0]=t,r(e,null,i,n),e[0]=null,!n.pop()}}),has:st(function(t){return function(e){return it(t,e).length>0}}),contains:st(function(t){return t=t.replace(J,tt),function(e){return(e.textContent||e.innerText||o(e)).indexOf(t)>-1}}),lang:st(function(t){return B.test(t||"")||it.error("unsupported lang: "+t),t=t.replace(J,tt).toLowerCase(),function(e){var n;do{if(n=v?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===d},focus:function(t){return t===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:ht(!1),disabled:ht(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return Y.test(t.nodeName)},input:function(t){return G.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:dt(function(){return[0]}),last:dt(function(t,e){return[e-1]}),eq:dt(function(t,e,n){return[n<0?n+e:n]}),even:dt(function(t,e){for(var n=0;n=0;)t.push(r);return t}),gt:dt(function(t,e,n){for(var r=n<0?n+e:n;++r1?function(e,n,r){for(var o=t.length;o--;)if(!t[o](e,n,r))return!1;return!0}:t[0]}function xt(t,e,n,r,o){for(var i,a=[],s=0,u=t.length,c=null!=e;s-1&&(i[c]=!(a[c]=f))}}else y=xt(y===a?y.splice(d,y.length):y),o?o(null,a,y,u):N.apply(a,y)})}function kt(t){for(var e,n,o,i=t.length,a=r.relative[t[0].type],s=a||r.relative[" "],u=a?1:0,l=mt(function(t){return t===e},s,!0),f=mt(function(t){return F(e,t)>-1},s,!0),p=[function(t,n,r){var o=!a&&(r||n!==c)||((e=n).nodeType?l(t,n,r):f(t,n,r));return e=null,o}];u1&&bt(p),u>1&&yt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(H,"$1"),n,u0,o=t.length>0,i=function(i,a,s,u,l){var f,d,g,y=0,m="0",b=i&&[],x=[],w=c,T=i||o&&r.find.TAG("*",l),S=k+=null==w?1:Math.random()||.1,D=T.length;for(l&&(c=a===h||a||l);m!==D&&null!=(f=T[m]);m++){if(o&&f){for(d=0,a||f.ownerDocument===h||(p(f),s=!v);g=t[d++];)if(g(f,a||h,s)){u.push(f);break}l&&(k=S)}n&&((f=!g&&f)&&y--,i&&b.push(f))}if(y+=m,n&&m!==y){for(d=0;g=e[d++];)g(b,x,a,s);if(i){if(y>0)for(;m--;)b[m]||x[m]||(x[m]=C.call(u));x=xt(x)}N.apply(u,x),l&&!i&&x.length>0&&y+e.length>1&&it.uniqueSort(u)}return l&&(k=S,c=w),b};return n?st(i):i}(i,o))).selector=t}return s},u=it.select=function(t,e,n,o){var i,u,c,l,f,p="function"==typeof t&&t,h=!o&&a(t=p.selector||t);if(n=n||[],1===h.length){if((u=h[0]=h[0].slice(0)).length>2&&"ID"===(c=u[0]).type&&9===e.nodeType&&v&&r.relative[u[1].type]){if(!(e=(r.find.ID(c.matches[0].replace(J,tt),e)||[])[0]))return n;p&&(e=e.parentNode),t=t.slice(u.shift().value.length)}for(i=V.needsContext.test(t)?0:u.length;i--&&!r.relative[l=(c=u[i]).type];)if((f=r.find[l])&&(o=f(c.matches[0].replace(J,tt),$.test(u[0].type)&&vt(e.parentNode)||e))){if(u.splice(i,1),!(t=o.length&&yt(u)))return N.apply(n,o),n;break}}return(p||s(t,h))(o,e,!v,n,!e||$.test(t)&&vt(e.parentNode)||e),n},n.sortStable=x.split("").sort(E).join("")===x,n.detectDuplicates=!!f,p(),n.sortDetached=ut(function(t){return 1&t.compareDocumentPosition(h.createElement("fieldset"))}),ut(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||ct("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&&ut(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ct("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ut(function(t){return null==t.getAttribute("disabled")})||ct(M,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),it}(n);b.find=D,b.expr=D.selectors,b.expr[":"]=b.expr.pseudos,b.uniqueSort=b.unique=D.uniqueSort,b.text=D.getText,b.isXMLDoc=D.isXML,b.contains=D.contains,b.escapeSelector=D.escape;var _=function(t,e,n){for(var r=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&b(t).is(n))break;r.push(t)}return r},E=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},P=b.expr.match.needsContext;function O(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var C=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,j=/^.[^:#\[\.,]*$/;function N(t,e,n){return b.isFunction(e)?b.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?b.grep(t,function(t){return t===e!==n}):"string"!=typeof e?b.grep(t,function(t){return f.call(e,t)>-1!==n}):j.test(e)?b.filter(e,t,n):(e=b.filter(e,t),b.grep(t,function(t){return f.call(e,t)>-1!==n&&1===t.nodeType}))}b.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?b.find.matchesSelector(r,t)?[r]:[]:b.find.matches(t,b.grep(e,function(t){return 1===t.nodeType}))},b.fn.extend({find:function(t){var e,n,r=this.length,o=this;if("string"!=typeof t)return this.pushStack(b(t).filter(function(){for(e=0;e1?b.uniqueSort(n):n},filter:function(t){return this.pushStack(N(this,t||[],!1))},not:function(t){return this.pushStack(N(this,t||[],!0))},is:function(t){return!!N(this,"string"==typeof t&&P.test(t)?b(t):t||[],!1).length}});var A,F=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(b.fn.init=function(t,e,n){var r,o;if(!t)return this;if(n=n||A,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:F.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(b.merge(this,b.parseHTML(r[1],(e=e instanceof b?e[0]:e)&&e.nodeType?e.ownerDocument||e:a,!0)),C.test(r[1])&&b.isPlainObject(e))for(r in e)b.isFunction(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(o=a.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):b.isFunction(t)?void 0!==n.ready?n.ready(t):t(b):b.makeArray(t,this)}).prototype=b.fn,A=b(a);var M=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function L(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}b.fn.extend({has:function(t){var e=b(t,this),n=e.length;return this.filter(function(){for(var t=0;t-1:1===n.nodeType&&b.find.matchesSelector(n,t))){i.push(n);break}return this.pushStack(i.length>1?b.uniqueSort(i):i)},index:function(t){return t?"string"==typeof t?f.call(b(t),this[0]):f.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),b.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return _(t,"parentNode")},parentsUntil:function(t,e,n){return _(t,"parentNode",n)},next:function(t){return L(t,"nextSibling")},prev:function(t){return L(t,"previousSibling")},nextAll:function(t){return _(t,"nextSibling")},prevAll:function(t){return _(t,"previousSibling")},nextUntil:function(t,e,n){return _(t,"nextSibling",n)},prevUntil:function(t,e,n){return _(t,"previousSibling",n)},siblings:function(t){return E((t.parentNode||{}).firstChild,t)},children:function(t){return E(t.firstChild)},contents:function(t){return O(t,"iframe")?t.contentDocument:(O(t,"template")&&(t=t.content||t),b.merge([],t.childNodes))}},function(t,e){b.fn[t]=function(n,r){var o=b.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=b.filter(r,o)),this.length>1&&(I[t]||b.uniqueSort(o),M.test(t)&&o.reverse()),this.pushStack(o)}});var R=/[^\x20\t\r\n\f]+/g;function z(t){return t}function q(t){throw t}function H(t,e,n,r){var o;try{t&&b.isFunction(o=t.promise)?o.call(t).done(e).fail(n):t&&b.isFunction(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}b.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return b.each(t.match(R)||[],function(t,n){e[n]=!0}),e}(t):b.extend({},t);var e,n,r,o,i=[],a=[],s=-1,u=function(){for(o=o||t.once,r=e=!0;a.length;s=-1)for(n=a.shift();++s-1;)i.splice(n,1),n<=s&&s--}),this},has:function(t){return t?b.inArray(t,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||e||(i=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},b.extend({Deferred:function(t){var e=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return b.Deferred(function(n){b.each(e,function(e,r){var o=b.isFunction(t[r[4]])&&t[r[4]];i[r[1]](function(){var t=o&&o.apply(this,arguments);t&&b.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[t]:arguments)})}),t=null}).promise()},then:function(t,r,o){var i=0;function a(t,e,r,o){return function(){var s=this,u=arguments,c=function(){var n,c;if(!(t=i&&(r!==q&&(s=void 0,u=[n]),e.rejectWith(s,u))}};t?l():(b.Deferred.getStackHook&&(l.stackTrace=b.Deferred.getStackHook()),n.setTimeout(l))}}return b.Deferred(function(n){e[0][3].add(a(0,n,b.isFunction(o)?o:z,n.notifyWith)),e[1][3].add(a(0,n,b.isFunction(t)?t:z)),e[2][3].add(a(0,n,b.isFunction(r)?r:q))}).promise()},promise:function(t){return null!=t?b.extend(t,o):o}},i={};return b.each(e,function(t,n){var a=n[2],s=n[5];o[n[1]]=a.add,s&&a.add(function(){r=s},e[3-t][2].disable,e[0][2].lock),a.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=a.fireWith}),o.promise(i),t&&t.call(i,i),i},when:function(t){var e=arguments.length,n=e,r=Array(n),o=u.call(arguments),i=b.Deferred(),a=function(t){return function(n){r[t]=this,o[t]=arguments.length>1?u.call(arguments):n,--e||i.resolveWith(r,o)}};if(e<=1&&(H(t,i.done(a(n)).resolve,i.reject,!e),"pending"===i.state()||b.isFunction(o[n]&&o[n].then)))return i.then();for(;n--;)H(o[n],a(n),i.reject);return i.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&W.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},b.readyException=function(t){n.setTimeout(function(){throw t})};var Z=b.Deferred();function U(){a.removeEventListener("DOMContentLoaded",U),n.removeEventListener("load",U),b.ready()}b.fn.ready=function(t){return Z.then(t).catch(function(t){b.readyException(t)}),this},b.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--b.readyWait:b.isReady)||(b.isReady=!0,!0!==t&&--b.readyWait>0||Z.resolveWith(a,[b]))}}),b.ready.then=Z.then,"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?n.setTimeout(b.ready):(a.addEventListener("DOMContentLoaded",U),n.addEventListener("load",U));var X=function(t,e,n,r,o,i,a){var s=0,u=t.length,c=null==n;if("object"===b.type(n))for(s in o=!0,n)X(t,e,s,n[s],!0,i,a);else if(void 0!==r&&(o=!0,b.isFunction(r)||(a=!0),c&&(a?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(b(t),n)})),e))for(;s1,null,!0)},removeData:function(t){return this.each(function(){Y.remove(this,t)})}}),b.extend({queue:function(t,e,n){var r;if(t)return r=G.get(t,e=(e||"fx")+"queue"),n&&(!r||Array.isArray(n)?r=G.access(t,e,b.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){var n=b.queue(t,e=e||"fx"),r=n.length,o=n.shift(),i=b._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===e&&n.unshift("inprogress"),delete i.stop,o.call(t,function(){b.dequeue(t,e)},i)),!r&&i&&i.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return G.get(t,n)||G.access(t,n,{empty:b.Callbacks("once memory").add(function(){G.remove(t,[e+"queue",n])})})}}),b.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]+)/i,lt=/^$|\/(?:java|ecma)script/i,ft={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function pt(t,e){var n;return n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&O(t,e)?b.merge([t],n):n}function ht(t,e){for(var n=0,r=t.length;n-1)o&&o.push(i);else if(c=b.contains(i.ownerDocument,i),a=pt(f.appendChild(i),"script"),c&&ht(a),n)for(l=0;i=a[l++];)lt.test(i.type||"")&&n.push(i);return f}dt=a.createDocumentFragment().appendChild(a.createElement("div")),(vt=a.createElement("input")).setAttribute("type","radio"),vt.setAttribute("checked","checked"),vt.setAttribute("name","t"),dt.appendChild(vt),y.checkClone=dt.cloneNode(!0).cloneNode(!0).lastChild.checked,dt.innerHTML="",y.noCloneChecked=!!dt.cloneNode(!0).lastChild.defaultValue;var mt=a.documentElement,bt=/^key/,xt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,wt=/^([^.]*)(?:\.(.+)|)/;function kt(){return!0}function Tt(){return!1}function St(){try{return a.activeElement}catch(t){}}function Dt(t,e,n,r,o,i){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(r=r||n,n=void 0),e)Dt(t,s,n,r,e[s],i);return t}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=Tt;else if(!o)return t;return 1===i&&(a=o,(o=function(t){return b().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=b.guid++)),t.each(function(){b.event.add(this,e,o,r,n)})}b.event={global:{},add:function(t,e,n,r,o){var i,a,s,u,c,l,f,p,h,d,v,g=G.get(t);if(g)for(n.handler&&(n=(i=n).handler,o=i.selector),o&&b.find.matchesSelector(mt,o),n.guid||(n.guid=b.guid++),(u=g.events)||(u=g.events={}),(a=g.handle)||(a=g.handle=function(e){return"undefined"!=typeof b&&b.event.triggered!==e.type?b.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(R)||[""]).length;c--;)h=v=(s=wt.exec(e[c])||[])[1],d=(s[2]||"").split(".").sort(),h&&(f=b.event.special[h]||{},f=b.event.special[h=(o?f.delegateType:f.bindType)||h]||{},l=b.extend({type:h,origType:v,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&b.expr.match.needsContext.test(o),namespace:d.join(".")},i),(p=u[h])||((p=u[h]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,d,a)||t.addEventListener&&t.addEventListener(h,a)),f.add&&(f.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,l):p.push(l),b.event.global[h]=!0)},remove:function(t,e,n,r,o){var i,a,s,u,c,l,f,p,h,d,v,g=G.hasData(t)&&G.get(t);if(g&&(u=g.events)){for(c=(e=(e||"").match(R)||[""]).length;c--;)if(h=v=(s=wt.exec(e[c])||[])[1],d=(s[2]||"").split(".").sort(),h){for(f=b.event.special[h]||{},p=u[h=(r?f.delegateType:f.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)l=p[i],!o&&v!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(i,1),l.selector&&p.delegateCount--,f.remove&&f.remove.call(t,l));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(t,d,g.handle)||b.removeEvent(t,h,g.handle),delete u[h])}else for(h in u)b.event.remove(t,h+e[c],n,r,!0);b.isEmptyObject(u)&&G.remove(t,"handle events")}},dispatch:function(t){var e,n,r,o,i,a,s=b.event.fix(t),u=new Array(arguments.length),c=(G.get(this,"events")||{})[s.type]||[],l=b.event.special[s.type]||{};for(u[0]=s,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(i=[],a={},n=0;n-1:b.find(o,this,null,[c]).length),a[o]&&i.push(r);i.length&&s.push({elem:c,handlers:i})}return c=this,u\x20\t\r\n\f]*)[^>]*)\/>/gi,Et=/\s*$/g;function jt(t,e){return O(t,"table")&&O(11!==e.nodeType?e:e.firstChild,"tr")&&b(">tbody",t)[0]||t}function Nt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function At(t){var e=Ot.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Ft(t,e){var n,r,o,i,a,s,u,c;if(1===e.nodeType){if(G.hasData(t)&&(i=G.access(t),a=G.set(e,i),c=i.events))for(o in delete a.handle,a.events={},c)for(n=0,r=c[o].length;n1&&"string"==typeof d&&!y.checkClone&&Pt.test(d))return t.each(function(o){var i=t.eq(o);v&&(e[0]=d.call(this,o,i.html())),Mt(i,e,n,r)});if(p&&(i=(o=yt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(s=(a=b.map(pt(o,"script"),Nt)).length;f")},clone:function(t,e,n){var r,o,i,a,s,u,c,l=t.cloneNode(!0),f=b.contains(t.ownerDocument,t);if(!(y.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||b.isXMLDoc(t)))for(a=pt(l),r=0,o=(i=pt(t)).length;r0&&ht(a,!f&&pt(t,"script")),l},cleanData:function(t){for(var e,n,r,o=b.event.special,i=0;void 0!==(n=t[i]);i++)if(B(n)){if(e=n[G.expando]){if(e.events)for(r in e.events)o[r]?b.event.remove(n,r):b.removeEvent(n,r,e.handle);n[G.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),b.fn.extend({detach:function(t){return It(this,t,!0)},remove:function(t){return It(this,t)},text:function(t){return X(this,function(t){return void 0===t?b.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Mt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||jt(this,t).appendChild(t)})},prepend:function(){return Mt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=jt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Mt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Mt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(b.cleanData(pt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return b.clone(this,t,e)})},html:function(t){return X(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Et.test(t)&&!ft[(ct.exec(t)||["",""])[1].toLowerCase()]){t=b.htmlPrefilter(t);try{for(;n1)}}),b.Tween=$t,($t.prototype={constructor:$t,init:function(t,e,n,r,o,i){this.elem=t,this.prop=n,this.easing=o||b.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=i||(b.cssNumber[n]?"":"px")},cur:function(){var t=$t.propHooks[this.prop];return t&&t.get?t.get(this):$t.propHooks._default.get(this)},run:function(t){var e,n=$t.propHooks[this.prop];return this.pos=e=this.options.duration?b.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):$t.propHooks._default.set(this),this}}).init.prototype=$t.prototype,($t.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=b.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){b.fx.step[t.prop]?b.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[b.cssProps[t.prop]]&&!b.cssHooks[t.prop]?t.elem[t.prop]=t.now:b.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=$t.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},b.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},b.fx=$t.prototype.init,b.fx.step={};var Jt,te,ee=/^(?:toggle|show|hide)$/,ne=/queueHooks$/;function re(){te&&(!1===a.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(re):n.setTimeout(re,b.fx.interval),b.fx.tick())}function oe(){return n.setTimeout(function(){Jt=void 0}),Jt=b.now()}function ie(t,e){var n,r=0,o={height:t};for(e=e?1:0;r<4;r+=2-e)o["margin"+(n=et[r])]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function ae(t,e,n){for(var r,o=(se.tweeners[e]||[]).concat(se.tweeners["*"]),i=0,a=o.length;i1)},removeAttr:function(t){return this.each(function(){b.removeAttr(this,t)})}}),b.extend({attr:function(t,e,n){var r,o,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return"undefined"==typeof t.getAttribute?b.prop(t,e,n):(1===i&&b.isXMLDoc(t)||(o=b.attrHooks[e.toLowerCase()]||(b.expr.match.bool.test(e)?ue:void 0)),void 0!==n?null===n?void b.removeAttr(t,e):o&&"set"in o&&void 0!==(r=o.set(t,n,e))?r:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(r=o.get(t,e))?r:null==(r=b.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!y.radioValue&&"radio"===e&&O(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,o=e&&e.match(R);if(o&&1===t.nodeType)for(;n=o[r++];)t.removeAttribute(n)}}),ue={set:function(t,e,n){return!1===e?b.removeAttr(t,n):t.setAttribute(n,n),n}},b.each(b.expr.match.bool.source.match(/\w+/g),function(t,e){var n=ce[e]||b.find.attr;ce[e]=function(t,e,r){var o,i,a=e.toLowerCase();return r||(i=ce[a],ce[a]=o,o=null!=n(t,e,r)?a:null,ce[a]=i),o}});var le=/^(?:input|select|textarea|button)$/i,fe=/^(?:a|area)$/i;function pe(t){return(t.match(R)||[]).join(" ")}function he(t){return t.getAttribute&&t.getAttribute("class")||""}b.fn.extend({prop:function(t,e){return X(this,b.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[b.propFix[t]||t]})}}),b.extend({prop:function(t,e,n){var r,o,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&b.isXMLDoc(t)||(o=b.propHooks[e=b.propFix[e]||e]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(t,n,e))?r:t[e]=n:o&&"get"in o&&null!==(r=o.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=b.find.attr(t,"tabindex");return e?parseInt(e,10):le.test(t.nodeName)||fe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(b.propHooks.selected={get:function(t){return null},set:function(t){}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){b.propFix[this.toLowerCase()]=this}),b.fn.extend({addClass:function(t){var e,n,r,o,i,a,s,u=0;if(b.isFunction(t))return this.each(function(e){b(this).addClass(t.call(this,e,he(this)))});if("string"==typeof t&&t)for(e=t.match(R)||[];n=this[u++];)if(o=he(n),r=1===n.nodeType&&" "+pe(o)+" "){for(a=0;i=e[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(s=pe(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,o,i,a,s,u=0;if(b.isFunction(t))return this.each(function(e){b(this).removeClass(t.call(this,e,he(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(R)||[];n=this[u++];)if(o=he(n),r=1===n.nodeType&&" "+pe(o)+" "){for(a=0;i=e[a++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");o!==(s=pe(r))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):b.isFunction(t)?this.each(function(n){b(this).toggleClass(t.call(this,n,he(this),e),e)}):this.each(function(){var e,r,o,i;if("string"===n)for(r=0,o=b(this),i=t.match(R)||[];e=i[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=he(this))&&G.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":G.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+pe(he(n))+" ").indexOf(e)>-1)return!0;return!1}});var de=/\r/g;b.fn.extend({val:function(t){var e,n,r,o=this[0];return arguments.length?(r=b.isFunction(t),this.each(function(n){var o;1===this.nodeType&&(null==(o=r?t.call(this,n,b(this).val()):t)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=b.map(o,function(t){return null==t?"":t+""})),(e=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))})):o?(e=b.valHooks[o.type]||b.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(de,""):null==n?"":n:void 0}}),b.extend({valHooks:{option:{get:function(t){var e=b.find.attr(t,"value");return null!=e?e:pe(b.text(t))}},select:{get:function(t){var e,n,r,o=t.options,i=t.selectedIndex,a="select-one"===t.type,s=a?null:[],u=a?i+1:o.length;for(r=i<0?u:a?i:0;r-1)&&(n=!0);return n||(t.selectedIndex=-1),i}}}}),b.each(["radio","checkbox"],function(){b.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=b.inArray(b(t).val(),e)>-1}},y.checkOn||(b.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var ve=/^(?:focusinfocus|focusoutblur)$/;b.extend(b.event,{trigger:function(t,e,r,o){var i,s,u,c,l,f,p,h=[r||a],v=d.call(t,"type")?t.type:t,g=d.call(t,"namespace")?t.namespace.split("."):[];if(s=u=r=r||a,3!==r.nodeType&&8!==r.nodeType&&!ve.test(v+b.event.triggered)&&(v.indexOf(".")>-1&&(v=(g=v.split(".")).shift(),g.sort()),l=v.indexOf(":")<0&&"on"+v,(t=t[b.expando]?t:new b.Event(v,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:b.makeArray(e,[t]),p=b.event.special[v]||{},o||!p.trigger||!1!==p.trigger.apply(r,e))){if(!o&&!p.noBubble&&!b.isWindow(r)){for(ve.test((c=p.delegateType||v)+v)||(s=s.parentNode);s;s=s.parentNode)h.push(s),u=s;u===(r.ownerDocument||a)&&h.push(u.defaultView||u.parentWindow||n)}for(i=0;(s=h[i++])&&!t.isPropagationStopped();)t.type=i>1?c:p.bindType||v,(f=(G.get(s,"events")||{})[t.type]&&G.get(s,"handle"))&&f.apply(s,e),(f=l&&s[l])&&f.apply&&B(s)&&(t.result=f.apply(s,e),!1===t.result&&t.preventDefault());return t.type=v,o||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(h.pop(),e)||!B(r)||l&&b.isFunction(r[v])&&!b.isWindow(r)&&((u=r[l])&&(r[l]=null),b.event.triggered=v,r[v](),b.event.triggered=void 0,u&&(r[l]=u)),t.result}},simulate:function(t,e,n){var r=b.extend(new b.Event,n,{type:t,isSimulated:!0});b.event.trigger(r,null,e)}}),b.fn.extend({trigger:function(t,e){return this.each(function(){b.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return b.event.trigger(t,e,n,!0)}}),b.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){b.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),b.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),y.focusin="onfocusin"in n,y.focusin||b.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){b.event.simulate(e,t.target,b.event.fix(t))};b.event.special[e]={setup:function(){var r=this.ownerDocument||this,o=G.access(r,e);o||r.addEventListener(t,n,!0),G.access(r,e,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=G.access(r,e)-1;o?G.access(r,e,o):(r.removeEventListener(t,n,!0),G.remove(r,e))}}});var ge=n.location,ye=b.now(),me=/\?/;b.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+t),e};var be=/\[\]$/,xe=/\r?\n/g,we=/^(?:submit|button|image|reset|file)$/i,ke=/^(?:input|select|textarea|keygen)/i;function Te(t,e,n,r){var o;if(Array.isArray(e))b.each(e,function(e,o){n||be.test(t)?r(t,o):Te(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,n,r)});else if(n||"object"!==b.type(e))r(t,e);else for(o in e)Te(t+"["+o+"]",e[o],n,r)}b.param=function(t,e){var n,r=[],o=function(t,e){var n=b.isFunction(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!b.isPlainObject(t))b.each(t,function(){o(this.name,this.value)});else for(n in t)Te(n,t[n],e,o);return r.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=b.prop(this,"elements");return t?b.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!b(this).is(":disabled")&&ke.test(this.nodeName)&&!we.test(t)&&(this.checked||!ut.test(t))}).map(function(t,e){var n=b(this).val();return null==n?null:Array.isArray(n)?b.map(n,function(t){return{name:e.name,value:t.replace(xe,"\r\n")}}):{name:e.name,value:n.replace(xe,"\r\n")}}).get()}});var Se=/%20/g,De=/#.*$/,_e=/([?&])_=[^&]*/,Ee=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pe=/^(?:GET|HEAD)$/,Oe=/^\/\//,Ce={},je={},Ne="*/".concat("*"),Ae=a.createElement("a");function Fe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,o=0,i=e.toLowerCase().match(R)||[];if(b.isFunction(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Me(t,e,n,r){var o={},i=t===je;function a(s){var u;return o[s]=!0,b.each(t[s]||[],function(t,s){var c=s(e,n,r);return"string"!=typeof c||i||o[c]?i?!(u=c):void 0:(e.dataTypes.unshift(c),a(c),!1)}),u}return a(e.dataTypes[0])||!o["*"]&&a("*")}function Ie(t,e){var n,r,o=b.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:r||(r={}))[n]=e[n]);return r&&b.extend(!0,t,r),t}Ae.href=ge.href,b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ge.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ge.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ne,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ie(Ie(t,b.ajaxSettings),e):Ie(b.ajaxSettings,t)},ajaxPrefilter:Fe(Ce),ajaxTransport:Fe(je),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var r,o,i,s,u,c,l,f,p,h,d=b.ajaxSetup({},e=e||{}),v=d.context||d,g=d.context&&(v.nodeType||v.jquery)?b(v):b.event,y=b.Deferred(),m=b.Callbacks("once memory"),x=d.statusCode||{},w={},k={},T="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(l){if(!s)for(s={};e=Ee.exec(i);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return l?i:null},setRequestHeader:function(t,e){return null==l&&(t=k[t.toLowerCase()]=k[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==l&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)S.always(t[S.status]);else for(e in t)x[e]=[x[e],t[e]];return this},abort:function(t){var e=t||T;return r&&r.abort(e),D(0,e),this}};if(y.promise(S),d.url=((t||d.url||ge.href)+"").replace(Oe,ge.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(R)||[""],null==d.crossDomain){c=a.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=Ae.protocol+"//"+Ae.host!=c.protocol+"//"+c.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=b.param(d.data,d.traditional)),Me(Ce,d,e,S),l)return S;for(p in(f=b.event&&d.global)&&0==b.active++&&b.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Pe.test(d.type),o=d.url.replace(De,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Se,"+")):(h=d.url.slice(o.length),d.data&&(o+=(me.test(o)?"&":"?")+d.data,delete d.data),!1===d.cache&&(o=o.replace(_e,"$1"),h=(me.test(o)?"&":"?")+"_="+ye+++h),d.url=o+h),d.ifModified&&(b.lastModified[o]&&S.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&S.setRequestHeader("If-None-Match",b.etag[o])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&S.setRequestHeader("Content-Type",d.contentType),S.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Ne+"; q=0.01":""):d.accepts["*"]),d.headers)S.setRequestHeader(p,d.headers[p]);if(d.beforeSend&&(!1===d.beforeSend.call(v,S,d)||l))return S.abort();if(T="abort",m.add(d.complete),S.done(d.success),S.fail(d.error),r=Me(je,d,e,S)){if(S.readyState=1,f&&g.trigger("ajaxSend",[S,d]),l)return S;d.async&&d.timeout>0&&(u=n.setTimeout(function(){S.abort("timeout")},d.timeout));try{l=!1,r.send(w,D)}catch(t){if(l)throw t;D(-1,t)}}else D(-1,"No Transport");function D(t,e,a,s){var c,p,h,w,k,T=e;l||(l=!0,u&&n.clearTimeout(u),r=void 0,i=s||"",S.readyState=t>0?4:0,c=t>=200&&t<300||304===t,a&&(w=function(t,e,n){for(var r,o,i,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){u.unshift(o);break}if(u[0]in n)i=u[0];else{for(o in n){if(!u[0]||t.converters[o+" "+u[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==u[0]&&u.unshift(i),n[i]}(d,S,a)),w=function(t,e,n,r){var o,i,a,s,u,c={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(i=l.shift();i;)if(t.responseFields[i]&&(n[t.responseFields[i]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=i,i=l.shift())if("*"===i)i=u;else if("*"!==u&&u!==i){if(!(a=c[u+" "+i]||c["* "+i]))for(o in c)if((s=o.split(" "))[1]===i&&(a=c[u+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(i=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+i}}}return{state:"success",data:e}}(d,w,S,c),c?(d.ifModified&&((k=S.getResponseHeader("Last-Modified"))&&(b.lastModified[o]=k),(k=S.getResponseHeader("etag"))&&(b.etag[o]=k)),204===t||"HEAD"===d.type?T="nocontent":304===t?T="notmodified":(T=w.state,p=w.data,c=!(h=w.error))):(h=T,!t&&T||(T="error",t<0&&(t=0))),S.status=t,S.statusText=(e||T)+"",c?y.resolveWith(v,[p,T,S]):y.rejectWith(v,[S,T,h]),S.statusCode(x),x=void 0,f&&g.trigger(c?"ajaxSuccess":"ajaxError",[S,d,c?p:h]),m.fireWith(v,[S,T]),f&&(g.trigger("ajaxComplete",[S,d]),--b.active||b.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,n){return b.get(t,e,n,"json")},getScript:function(t,e){return b.get(t,void 0,e,"script")}}),b.each(["get","post"],function(t,e){b[e]=function(t,n,r,o){return b.isFunction(n)&&(o=o||r,r=n,n=void 0),b.ajax(b.extend({url:t,type:e,dataType:o,data:n,success:r},b.isPlainObject(t)&&t))}}),b._evalUrl=function(t){return b.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},b.fn.extend({wrapAll:function(t){var e;return this[0]&&(b.isFunction(t)&&(t=t.call(this[0])),e=b(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return b.isFunction(t)?this.each(function(e){b(this).wrapInner(t.call(this,e))}):this.each(function(){var e=b(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=b.isFunction(t);return this.each(function(n){b(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){b(this).replaceWith(this.childNodes)}),this}}),b.expr.pseudos.hidden=function(t){return!b.expr.pseudos.visible(t)},b.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Le={0:200,1223:204},Re=b.ajaxSettings.xhr();y.cors=!!Re&&"withCredentials"in Re,y.ajax=Re=!!Re,b.ajaxTransport(function(t){var e,r;if(y.cors||Re&&!t.crossDomain)return{send:function(o,i){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);e=function(t){return function(){e&&(e=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Le[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),r=s.onerror=e("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){e&&r()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),b.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return b.globalEval(t),t}}}),b.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),b.ajaxTransport("script",function(t){var e,n;if(t.crossDomain)return{send:function(r,o){e=b("